The areas / V04. Order and lattices
Mathlib.Order.Concept
163 declarations. Mathlib docs · Source
Formal concept analysis
This file defines concept lattices. A concept of a relation r : α → β → Prop is a pair of sets
s : Set α and t : Set β such that s is the set of all a : α that are related to all elements
of t, and t is the set of all b : β that are related to all elements of s.
Ordering the concepts of a relation r by inclusion on the first component gives rise to a
concept lattice. Every concept lattice is complete and in fact every complete lattice arises as
the concept lattice of its ≤.
Implementation notes
Concept lattices are usually defined from a context, that is the triple (α, β, r), but the type
of r determines α and β already, so we do not define contexts as a separate object.
References
- [Davey, Priestley Introduction to Lattices and Order][davey_priestley]
- [Birkhoff, Garrett Lattice Theory][birkhoff1940]
Tags
concept, formal concept analysis, intent, extent, object, attribute
Lower and upper polars
Intent and extent
Concepts
theorem Concept.mk.inj E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {extent : Set α} {intent : Set β}
{upperPolar_extent : upperPolar r extent = intent} {lowerPolar_intent : lowerPolar r intent = extent}
{extent_1 : Set α} {intent_1 : Set β} {upperPolar_extent_1 : upperPolar r extent_1 = intent_1}
{lowerPolar_intent_1 : lowerPolar r intent_1 = extent_1},
{ extent := extent, intent := intent, upperPolar_extent := upperPolar_extent,
lowerPolar_intent := lowerPolar_intent } =
{ extent := extent_1, intent := intent_1, upperPolar_extent := upperPolar_extent_1,
lowerPolar_intent := lowerPolar_intent_1 } →
extent = extent_1 ∧ intent = intent_1
theorem Concept.copy.congr_simp E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c c_1 : Concept α β r) (e_c : c = c_1) (e e_1 : Set α)
(e_e : e = e_1) (i i_1 : Set β) (e_i : i = i_1) (he : e = c.extent) (hi : i = c.intent),
c.copy e i he hi = c_1.copy e_1 i_1 ⋯ ⋯
def Concept.ctorIdx E1 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → Concept α β r → ℕ
theorem Concept.mk.injEq E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (extent : Set α) (intent : Set β)
(upperPolar_extent : upperPolar r extent = intent) (lowerPolar_intent : lowerPolar r intent = extent)
(extent_1 : Set α) (intent_1 : Set β) (upperPolar_extent_1 : upperPolar r extent_1 = intent_1)
(lowerPolar_intent_1 : lowerPolar r intent_1 = extent_1),
({ extent := extent, intent := intent, upperPolar_extent := upperPolar_extent,
lowerPolar_intent := lowerPolar_intent } =
{ extent := extent_1, intent := intent_1, upperPolar_extent := upperPolar_extent_1,
lowerPolar_intent := lowerPolar_intent_1 }) =
(extent = extent_1 ∧ intent = intent_1)
def upperPolar E1 #
{α : Type u_2} → {β : Type u_3} → (α → β → Prop) → Set α → Set β
The upper polar of s : Set α along a relation r : α → β → Prop is the set of all elements
which r relates to all elements of s.
def lowerPolar E1 #
{α : Type u_2} → {β : Type u_3} → (α → β → Prop) → Set β → Set α
The lower polar of t : Set β along a relation r : α → β → Prop is the set of all elements
which r relates to all elements of t.
theorem upperPolar_le E0 #
∀ {α : Type u_2} {s : Set α} [inst : LE α], upperPolar (fun x1 x2 ↦ x1 ≤ x2) s = upperBounds s
theorem lowerPolar_le E0 #
∀ {β : Type u_3} {t : Set β} [inst : LE β], lowerPolar (fun x1 x2 ↦ x1 ≤ x2) t = lowerBounds t
theorem mem_upperPolar_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α} {b : β}, b ∈ upperPolar r s ↔ ∀ ⦃a : α⦄, a ∈ s → r a b
theorem mem_lowerPolar_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t : Set β} {a : α}, a ∈ lowerPolar r t ↔ ∀ ⦃b : β⦄, b ∈ t → r a b
theorem subset_upperPolar_iff_subset_lowerPolar E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α} {t : Set β}, t ⊆ upperPolar r s ↔ s ⊆ lowerPolar r t
theorem gc_upperPolar_lowerPolar E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop),
GaloisConnection (⇑OrderDual.toDual ∘ upperPolar r) (lowerPolar r ∘ ⇑OrderDual.ofDual)
theorem gc_lowerPolar_upperPolar E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop),
GaloisConnection (⇑OrderDual.toDual ∘ lowerPolar r) (upperPolar r ∘ ⇑OrderDual.ofDual)
theorem upperPolar_swap E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (t : Set β), upperPolar (Function.swap r) t = lowerPolar r t
theorem lowerPolar_swap E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (s : Set α), lowerPolar (Function.swap r) s = upperPolar r s
theorem upperPolar_empty E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop), upperPolar r ∅ = Set.univ
theorem lowerPolar_empty E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop), lowerPolar r ∅ = Set.univ
theorem mem_upperPolar_singleton E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) {a : α} {b : β}, b ∈ upperPolar r {a} ↔ r a b
theorem mem_lowerPolar_singleton E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) {a : α} {b : β}, a ∈ lowerPolar r {b} ↔ r a b
theorem upperPolar_union E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (s₁ s₂ : Set α),
upperPolar r (s₁ ∪ s₂) = upperPolar r s₁ ∩ upperPolar r s₂
theorem lowerPolar_union E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (t₁ t₂ : Set β),
lowerPolar r (t₁ ∪ t₂) = lowerPolar r t₁ ∩ lowerPolar r t₂
theorem upperPolar_iUnion E0 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (f : ι → Set α),
upperPolar r (⋃ i, f i) = ⋂ i, upperPolar r (f i)
theorem lowerPolar_iUnion E0 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (f : ι → Set β),
lowerPolar r (⋃ i, f i) = ⋂ i, lowerPolar r (f i)
theorem upperPolar_iUnion₂ E1 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {κ : ι → Sort u_4} (r : α → β → Prop) (f : (i : ι) → κ i → Set α),
upperPolar r (⋃ i, ⋃ j, f i j) = ⋂ i, ⋂ j, upperPolar r (f i j)
theorem lowerPolar_iUnion₂ E1 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {κ : ι → Sort u_4} (r : α → β → Prop) (f : (i : ι) → κ i → Set β),
lowerPolar r (⋃ i, ⋃ j, f i j) = ⋂ i, ⋂ j, lowerPolar r (f i j)
theorem subset_lowerPolar_upperPolar E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (s : Set α), s ⊆ lowerPolar r (upperPolar r s)
theorem subset_upperPolar_lowerPolar E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (t : Set β), t ⊆ upperPolar r (lowerPolar r t)
theorem upperPolar_lowerPolar_upperPolar E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (s : Set α),
upperPolar r (lowerPolar r (upperPolar r s)) = upperPolar r s
theorem lowerPolar_upperPolar_lowerPolar E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (t : Set β),
lowerPolar r (upperPolar r (lowerPolar r t)) = lowerPolar r t
theorem upperPolar_anti E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop), Antitone (upperPolar r)
theorem lowerPolar_anti E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop), Antitone (lowerPolar r)
theorem lowerPolar_upperPolar_monotone E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop), Monotone (lowerPolar r ∘ upperPolar r)
theorem upperPolar_lowerPolar_monotone E1 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop), Monotone (upperPolar r ∘ lowerPolar r)
def extentClosure E1 #
{α : Type u_2} → {β : Type u_3} → (α → β → Prop) → ClosureOperator (Set α)
The extentClosure of a set is the smallest extent containing it. See
IsExtent.lowerPolar_upperPolar_subset for this proof.
theorem extentClosure_apply E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (x : Set α), (extentClosure r) x = lowerPolar r (upperPolar r x)
theorem extentClosure_isClosed E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (x : Set α),
(extentClosure r).IsClosed x = (lowerPolar r (upperPolar r x) = x)
def intentClosure E1 #
{α : Type u_2} → {β : Type u_3} → (α → β → Prop) → ClosureOperator (Set β)
The intentClosure of a set is the smallest intent containing it. See
IsIntent.upperPolar_lowerPolar_subset for this proof.
theorem intentClosure_isClosed E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (x : Set β),
(intentClosure r).IsClosed x = (upperPolar r (lowerPolar r x) = x)
theorem intentClosure_apply E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (x : Set β), (intentClosure r) x = upperPolar r (lowerPolar r x)
def Order.IsExtent E1 #
{α : Type u_2} → {β : Type u_3} → (α → β → Prop) → Set α → Prop
A set is an extent when either of the following equivalent definitions holds:
- The
lowerPolarof itsupperPolaris itself. - The set is the
lowerPolarof some other set.
The latter is used as a definition, but one can rewrite using the former via IsExtent.eq.
theorem Order.isExtent_lowerPolar E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t : Set β}, Order.IsExtent r (lowerPolar r t)
theorem Order.isExtent_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α}, Order.IsExtent r s ↔ lowerPolar r (upperPolar r s) = s
theorem Order.IsExtent.eq E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α}, Order.IsExtent r s → lowerPolar r (upperPolar r s) = s
Alias of the forward direction of Order.isExtent_iff.
theorem Order.IsExtent.univ E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, Order.IsExtent r Set.univ
theorem Order.IsExtent.inter E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s s' : Set α},
Order.IsExtent r s → Order.IsExtent r s' → Order.IsExtent r (s ∩ s')
theorem Order.IsExtent.iInter E1 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (f : ι → Set α),
(∀ (i : ι), Order.IsExtent r (f i)) → Order.IsExtent r (⋂ i, f i)
theorem Order.IsExtent.iInter₂ E1 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {κ : ι → Sort u_4} {r : α → β → Prop} (f : (i : ι) → κ i → Set α),
(∀ (i : ι) (j : κ i), Order.IsExtent r (f i j)) → Order.IsExtent r (⋂ i, ⋂ j, f i j)
theorem Order.IsExtent.lowerPolar_upperPolar_subset E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s s' : Set α},
Order.IsExtent r s → s' ⊆ s → lowerPolar r (upperPolar r s') ⊆ s
def Order.IsIntent E1 #
{α : Type u_2} → {β : Type u_3} → (α → β → Prop) → Set β → Prop
A set is an intent when either of the following equivalent definitions holds:
- The
upperPolarof itslowerPolaris itself. - The set is the
upperPolarof some other set.
The latter is used as a definition, but one can rewrite using the former via IsIntent.eq.
theorem Order.isIntent_upperPolar E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α}, Order.IsIntent r (upperPolar r s)
theorem Order.isIntent_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t : Set β}, Order.IsIntent r t ↔ upperPolar r (lowerPolar r t) = t
theorem Order.IsIntent.eq E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t : Set β}, Order.IsIntent r t → upperPolar r (lowerPolar r t) = t
Alias of the forward direction of Order.isIntent_iff.
theorem Order.IsIntent.univ E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, Order.IsIntent r Set.univ
theorem Order.IsIntent.inter E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t t' : Set β},
Order.IsIntent r t → Order.IsIntent r t' → Order.IsIntent r (t ∩ t')
theorem Order.IsIntent.iInter E1 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (f : ι → Set β),
(∀ (i : ι), Order.IsIntent r (f i)) → Order.IsIntent r (⋂ i, f i)
theorem Order.IsIntent.iInter₂ E1 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {κ : ι → Sort u_4} {r : α → β → Prop} (f : (i : ι) → κ i → Set β),
(∀ (i : ι) (j : κ i), Order.IsIntent r (f i j)) → Order.IsIntent r (⋂ i, ⋂ j, f i j)
theorem Order.IsIntent.upperPolar_lowerPolar_subset E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t t' : Set β},
Order.IsIntent r t → t' ⊆ t → upperPolar r (lowerPolar r t') ⊆ t
structure Concept E1 #
(α : Type u_2) → (β : Type u_3) → (α → β → Prop) → Type (max u_2 u_3)
The formal concepts of a relation. A concept of r : α → β → Prop is a pair of sets s, t
such that s is the set of all elements that are r-related to all of t and t is the set of
all elements that are r-related to all of s.
ctor Concept.mk E0 #
{α : Type u_2} →
{β : Type u_3} →
{r : α → β → Prop} →
(extent : Set α) → (intent : Set β) → upperPolar r extent = intent → lowerPolar r intent = extent → Concept α β r
abbrev Concept.extent E1 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → Concept α β r → Set α
The extent of a concept.
abbrev Concept.intent E1 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → Concept α β r → Set β
The intent of a concept.
theorem Concept.upperPolar_extent E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (self : Concept α β r), upperPolar r self.extent = self.intent
The intent consists of all elements related to all elements of the extent.
theorem Concept.lowerPolar_intent E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (self : Concept α β r), lowerPolar r self.intent = self.extent
The extent consists of all elements related to all elements of the intent.
theorem Concept.ext E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c.extent = d.extent → c = d
See Concept.ext' for a version using the intent.
theorem Concept.ext_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c = d ↔ c.extent = d.extent
theorem Concept.ext' E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c.intent = d.intent → c = d
See Concept.ext for a version using the extent.
theorem Concept.extent_injective E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, Function.Injective Concept.extent
theorem Concept.intent_injective E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, Function.Injective Concept.intent
def Concept.copy E1 #
{α : Type u_2} →
{β : Type u_3} →
{r : α → β → Prop} → (c : Concept α β r) → (e : Set α) → (i : Set β) → e = c.extent → i = c.intent → Concept α β r
Copy a concept, adjusting definitional equalities.
theorem Concept.intent_copy E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c : Concept α β r) (e : Set α) (i : Set β) (he : e = c.extent)
(hi : i = c.intent), (c.copy e i he hi).intent = i
theorem Concept.extent_copy E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c : Concept α β r) (e : Set α) (i : Set β) (he : e = c.extent)
(hi : i = c.intent), (c.copy e i he hi).extent = e
theorem Concept.copy_eq E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c : Concept α β r) (e : Set α) (i : Set β) (he : e = c.extent)
(hi : i = c.intent), c.copy e i he hi = c
def Concept.ofIsExtent E1 #
{α : Type u_2} → {β : Type u_3} → (r : α → β → Prop) → (s : Set α) → Order.IsExtent r s → Concept α β r
Define a concept from an extent, by setting the intent to its upper polar.
theorem Concept.intent_ofIsExtent E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (s : Set α) (hs : Order.IsExtent r s),
(Concept.ofIsExtent r s hs).intent = upperPolar r s
theorem Concept.extent_ofIsExtent E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (s : Set α) (hs : Order.IsExtent r s),
(Concept.ofIsExtent r s hs).extent = s
theorem Concept.isExtent_extent E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c : Concept α β r), Order.IsExtent r c.extent
theorem Concept.isExtent_iff_exists_concept E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α}, Order.IsExtent r s ↔ ∃ c, c.extent = s
def Concept.ofIsIntent E1 #
{α : Type u_2} → {β : Type u_3} → (r : α → β → Prop) → (t : Set β) → Order.IsIntent r t → Concept α β r
Define a concept from an intent, by setting the extent to its lower polar.
theorem Concept.extent_ofIsIntent E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (t : Set β) (ht : Order.IsIntent r t),
(Concept.ofIsIntent r t ht).extent = lowerPolar r t
theorem Concept.intent_ofIsIntent E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (t : Set β) (ht : Order.IsIntent r t),
(Concept.ofIsIntent r t ht).intent = t
theorem Concept.isIntent_intent E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c : Concept α β r), Order.IsIntent r c.intent
theorem Concept.isIntent_iff_exists_concept E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t : Set β}, Order.IsIntent r t ↔ ∃ c, c.intent = t
def Concept.ofObjects E1 #
{α : Type u_2} → {β : Type u_3} → (r : α → β → Prop) → Set α → Concept α β r
The concept generated from the upper polar of a set, i.e. the smallest concept containing the
set of objects s.
theorem Concept.intent_ofObjects E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (s : Set α), (Concept.ofObjects r s).intent = upperPolar r s
theorem Concept.extent_ofObjects E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (s : Set α),
(Concept.ofObjects r s).extent = lowerPolar r (upperPolar r s)
abbrev Concept.ofObject E1 #
{α : Type u_2} → {β : Type u_3} → (r : α → β → Prop) → α → Concept α β r
The concept generated by a single object.
theorem Concept.ofObjects_extent E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c : Concept α β r}, Concept.ofObjects r c.extent = c
theorem Concept.extent_ofObjects_of_isExtent E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α}, Order.IsExtent r s → (Concept.ofObjects r s).extent = s
theorem Concept.leftInverse_ofObjects_extent E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, Function.LeftInverse (Concept.ofObjects r) Concept.extent
theorem Concept.leftInvOn_extent_ofObjects E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop},
Set.LeftInvOn Concept.extent (Concept.ofObjects r) {s | Order.IsExtent r s}
theorem Concept.surjective_ofObjects E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, Function.Surjective (Concept.ofObjects r)
def Concept.ofAttributes E1 #
{α : Type u_2} → {β : Type u_3} → (r : α → β → Prop) → Set β → Concept α β r
The concept generated from the lower polar of a set, i.e. the smallest concept whose set of
attributes is contained in t.
theorem Concept.extent_ofAttributes E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (t : Set β), (Concept.ofAttributes r t).extent = lowerPolar r t
theorem Concept.intent_ofAttributes E0 #
∀ {α : Type u_2} {β : Type u_3} (r : α → β → Prop) (t : Set β),
(Concept.ofAttributes r t).intent = upperPolar r (lowerPolar r t)
abbrev Concept.ofAttribute E1 #
{α : Type u_2} → {β : Type u_3} → (r : α → β → Prop) → β → Concept α β r
The concept generated by a single attribute.
theorem Concept.ofAttributes_intent E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c : Concept α β r}, Concept.ofAttributes r c.intent = c
theorem Concept.intent_ofAttributes_of_isIntent E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t : Set β},
Order.IsIntent r t → (Concept.ofAttributes r t).intent = t
theorem Concept.leftInverse_ofAttributes_extent E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, Function.LeftInverse (Concept.ofAttributes r) Concept.intent
theorem Concept.leftInvOn_ofObjects_intent E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop},
Set.LeftInvOn Concept.intent (Concept.ofAttributes r) {s | Order.IsIntent r s}
theorem Concept.surjective_ofAttributes E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, Function.Surjective (Concept.ofAttributes r)
theorem Concept.rel_extent_intent E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c : Concept α β r} {x : α} {y : β},
x ∈ c.extent → y ∈ c.intent → r x y
theorem Concept.disjoint_extent_intent E1 #
∀ {α : Type u_2} {r' : α → α → Prop} {c' : Concept α α r'} [Std.Irrefl r'], Disjoint c'.extent c'.intent
Note that if r' is the ≤ relation, this theorem will often not be true!
theorem Concept.mem_extent_of_rel_extent E0 #
∀ {α : Type u_2} {r' : α → α → Prop} {c' : Concept α α r'} [IsTrans α r'] {x y : α},
r' y x → x ∈ c'.extent → y ∈ c'.extent
theorem Concept.mem_intent_of_intent_rel E0 #
∀ {α : Type u_2} {r' : α → α → Prop} {c' : Concept α α r'} [IsTrans α r'] {x y : α},
r' x y → x ∈ c'.intent → y ∈ c'.intent
theorem Concept.codisjoint_extent_intent E1 #
∀ {α : Type u_2} {r' : α → α → Prop} {c' : Concept α α r'} [Std.Trichotomous r'] [IsTrans α r'],
Codisjoint c'.extent c'.intent
instance Concept.instPartialOrder E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → PartialOrder (Concept α β r)
theorem Concept.isCompl_extent_intent E1 #
∀ {α : Type u_2} {r' : α → α → Prop} [IsStrictTotalOrder α r'] (c' : Concept α α r'), IsCompl c'.extent c'.intent
theorem Concept.compl_extent E0 #
∀ {α : Type u_2} {r' : α → α → Prop} [IsStrictTotalOrder α r'] (c' : Concept α α r'), c'.extentᶜ = c'.intent
theorem Concept.compl_intent E0 #
∀ {α : Type u_2} {r' : α → α → Prop} [IsStrictTotalOrder α r'] (c' : Concept α α r'), c'.intentᶜ = c'.extent
theorem Concept.extent_subset_extent_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c.extent ⊆ d.extent ↔ c ≤ d
theorem Concept.extent_ssubset_extent_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c.extent ⊂ d.extent ↔ c < d
theorem Concept.intent_subset_intent_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c.intent ⊆ d.intent ↔ d ≤ c
theorem Concept.intent_ssubset_intent_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c.intent ⊂ d.intent ↔ d < c
theorem Concept.strictMono_extent E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, StrictMono Concept.extent
theorem Concept.strictAnti_intent E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, StrictAnti Concept.intent
theorem Concept.isLowerSet_extent_le E0 #
∀ {α : Type u_5} [inst : Preorder α] (c : Concept α α fun x1 x2 ↦ x1 ≤ x2), IsLowerSet c.extent
theorem Concept.isUpperSet_intent_le E0 #
∀ {α : Type u_5} [inst : Preorder α] (c : Concept α α fun x1 x2 ↦ x1 ≤ x2), IsUpperSet c.intent
theorem Concept.isLowerSet_extent_lt E0 #
∀ {α : Type u_5} [inst : PartialOrder α] (c : Concept α α fun x1 x2 ↦ x1 < x2), IsLowerSet c.extent
theorem Concept.isUpperSet_intent_lt E0 #
∀ {α : Type u_5} [inst : PartialOrder α] (c : Concept α α fun x1 x2 ↦ x1 < x2), IsUpperSet c.intent
theorem Concept.intent_max E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c d : Concept α β r), (c ⊔ d).intent = c.intent ∩ d.intent
instance Concept.instMax E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → Max (Concept α β r)
theorem Concept.extent_max E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c d : Concept α β r),
(c ⊔ d).extent = lowerPolar r (c.intent ∩ d.intent)
theorem Concept.extent_sup E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c d : Concept α β r),
(c ⊔ d).extent = lowerPolar r (c.intent ∩ d.intent)
Alias of Concept.extent_max.
theorem Concept.intent_sup E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c d : Concept α β r), (c ⊔ d).intent = c.intent ∩ d.intent
Alias of Concept.intent_max.
theorem Concept.extent_min E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c d : Concept α β r), (c ⊓ d).extent = c.extent ∩ d.extent
theorem Concept.intent_min E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c d : Concept α β r),
(c ⊓ d).intent = upperPolar r (c.extent ∩ d.extent)
instance Concept.instMin E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → Min (Concept α β r)
theorem Concept.extent_inf E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c d : Concept α β r), (c ⊓ d).extent = c.extent ∩ d.extent
Alias of Concept.extent_min.
theorem Concept.intent_inf E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c d : Concept α β r),
(c ⊓ d).intent = upperPolar r (c.extent ∩ d.extent)
Alias of Concept.intent_min.
instance Concept.instSemilatticeInf E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → SemilatticeInf (Concept α β r)
instance Concept.instSemilatticeSup E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → SemilatticeSup (Concept α β r)
instance Concept.instLattice E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → Lattice (Concept α β r)
theorem Concept.ofObjects_le_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α} {c : Concept α β r},
Concept.ofObjects r s ≤ c ↔ s ⊆ c.extent
theorem Concept.le_ofObjects_of_extent_subset E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {s : Set α} {c : Concept α β r},
c.extent ⊆ s → c ≤ Concept.ofObjects r s
theorem Concept.le_ofAttributes_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t : Set β} {c : Concept α β r},
c ≤ Concept.ofAttributes r t ↔ t ⊆ c.intent
theorem Concept.ofAttributes_le_of_intent_subset E1 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {t : Set β} {c : Concept α β r},
c.intent ⊆ t → Concept.ofAttributes r t ≤ c
theorem Concept.ofObject_le_ofAttribute_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {a : α} {b : β},
Concept.ofObject r a ≤ Concept.ofAttribute r b ↔ r a b
theorem Concept.intent_bot E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, ⊥.intent = Set.univ
instance Concept.instBoundedOrderConcept E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → BoundedOrder (Concept α β r)
theorem Concept.intent_top E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, ⊤.intent = upperPolar r Set.univ
theorem Concept.extent_top E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, ⊤.extent = Set.univ
theorem Concept.extent_bot E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop}, ⊥.extent = lowerPolar r Set.univ
theorem Concept.intent_sInf E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (S : Set (Concept α β r)),
(sInf S).intent = upperPolar r (⋂ i ∈ S, i.extent)
instance Concept.instInfSet E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → InfSet (Concept α β r)
theorem Concept.extent_sInf E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (S : Set (Concept α β r)), (sInf S).extent = ⋂ i ∈ S, i.extent
theorem Concept.extent_sSup E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (S : Set (Concept α β r)),
(sSup S).extent = lowerPolar r (⋂ i ∈ S, i.intent)
theorem Concept.intent_sSup E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (S : Set (Concept α β r)), (sSup S).intent = ⋂ i ∈ S, i.intent
instance Concept.instSupSet E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → SupSet (Concept α β r)
instance Concept.instCompleteLattice E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → CompleteLattice (Concept α β r)
One half of the fundamental theorem of concept lattices: every concept lattice is a complete lattice.
See DedekindCut.principalIso for the second half.
theorem Concept.extent_iSup E0 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (f : ι → Concept α β r),
(⨆ i, f i).extent = lowerPolar r (⋂ i, (f i).intent)
theorem Concept.intent_iSup E0 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (f : ι → Concept α β r),
(⨆ i, f i).intent = ⋂ i, (f i).intent
theorem Concept.extent_iInf E0 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (f : ι → Concept α β r),
(⨅ i, f i).extent = ⋂ i, (f i).extent
theorem Concept.intent_iInf E0 #
∀ {ι : Sort u_1} {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (f : ι → Concept α β r),
(⨅ i, f i).intent = upperPolar r (⋂ i, (f i).extent)
instance Concept.instInhabited E0 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → Inhabited (Concept α β r)
def Concept.swap E1 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → Concept α β r → Concept β α (Function.swap r)
Swap the sets of a concept to make it a concept of the dual context.
theorem Concept.extent_swap E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c : Concept α β r), c.swap.extent = c.intent
theorem Concept.intent_swap E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c : Concept α β r), c.swap.intent = c.extent
theorem Concept.swap_swap E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (c : Concept α β r), c.swap.swap = c
theorem Concept.swap_le_swap_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c.swap ≤ d.swap ↔ d ≤ c
theorem Concept.swap_lt_swap_iff E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} {c d : Concept α β r}, c.swap < d.swap ↔ d < c
def Concept.swapEquiv E1 #
{α : Type u_2} → {β : Type u_3} → {r : α → β → Prop} → (Concept α β r)ᵒᵈ ≃o Concept β α (Function.swap r)
The dual of a concept lattice is isomorphic to the concept lattice of the dual context.
theorem Concept.swapEquiv_apply E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (a : (Concept α β r)ᵒᵈ),
Concept.swapEquiv a = (Concept.swap ∘ ⇑OrderDual.ofDual) a
theorem Concept.swapEquiv_symm_apply E0 #
∀ {α : Type u_2} {β : Type u_3} {r : α → β → Prop} (a : Concept β α (Function.swap r)),
(RelIso.symm Concept.swapEquiv) a = (⇑OrderDual.toDual ∘ Concept.swap) a