The areas / V04. Order and lattices
Mathlib.Order.Closure
119 declarations and 1 deprecated aliases. Mathlib docs · Source
Closure operators between preorders
We define (bundled) closure operators on a preorder as monotone (increasing), extensive (inflationary) and idempotent functions. We define closed elements for the operator as elements which are fixed by it.
Lower adjoints to a function between preorders u : β → α allow to generalise closure operators to
situations where the closure operator we are dealing with naturally decomposes as u ∘ l where l
is a worthy function to have on its own. Typical examples include
l : Set G → Subgroup G := Subgroup.closure, u : Subgroup G → Set G := (↑), where G is a group.
This shows there is a close connection between closure operators, lower adjoints and Galois
connections/insertions: every Galois connection induces a lower adjoint which itself induces a
closure operator by composition (see GaloisConnection.lowerAdjoint and
LowerAdjoint.closureOperator), and every closure operator on a partial order induces a Galois
insertion from the set of closed elements to the underlying type (see ClosureOperator.gi).
Main definitions
ClosureOperator: A closure operator is a monotone functionf : α → αsuch that∀ x, x ≤ f xand∀ x, f (f x) = f x.LowerAdjoint: A lower adjoint tou : β → αis a functionl : α → βsuch thatlanduform a Galois connection.
Implementation notes
Although LowerAdjoint is technically a generalisation of ClosureOperator (by defining
toFun := id), it is desirable to have both as otherwise ids would be carried all over the
place when using concrete closure operators such as ConvexHull.
LowerAdjoint really is a semibundled structure version of GaloisConnection.
References
- https://en.wikipedia.org/wiki/Closure_operator#Closure_operators_on_partially_ordered_sets
Closure operator
Lower adjoint
Translations between GaloisConnection, LowerAdjoint, ClosureOperator
def LowerAdjoint.ctorIdx E1 #
{α : Type u_1} → {β : Type u_4} → {inst : Preorder α} → {inst_1 : Preorder β} → {u : β → α} → LowerAdjoint u → ℕ
theorem LowerAdjoint.mk.inj E1 #
∀ {α : Type u_1} {β : Type u_4} {inst : Preorder α} {inst_1 : Preorder β} {u : β → α} {toFun : α → β}
{gc' : GaloisConnection toFun u} {toFun_1 : α → β} {gc'_1 : GaloisConnection toFun_1 u},
{ toFun := toFun, gc' := gc' } = { toFun := toFun_1, gc' := gc'_1 } → toFun = toFun_1
theorem LowerAdjoint.mk.injEq E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} (toFun : α → β)
(gc' : GaloisConnection toFun u) (toFun_1 : α → β) (gc'_1 : GaloisConnection toFun_1 u),
({ toFun := toFun, gc' := gc' } = { toFun := toFun_1, gc' := gc'_1 }) = (toFun = toFun_1)
theorem ClosureOperator.mk.inj E1 #
∀ {α : Type u_1} {inst : Preorder α} {toOrderHom : α →o α} {le_closure' : ∀ (x : α), x ≤ toOrderHom.toFun x}
{idempotent' : ∀ (x : α), toOrderHom.toFun (toOrderHom.toFun x) = toOrderHom.toFun x} {IsClosed : α → Prop}
{isClosed_iff : autoParam (∀ {x : α}, IsClosed x ↔ toOrderHom.toFun x = x) ClosureOperator.isClosed_iff._autoParam}
{toOrderHom_1 : α →o α} {le_closure'_1 : ∀ (x : α), x ≤ toOrderHom_1.toFun x}
{idempotent'_1 : ∀ (x : α), toOrderHom_1.toFun (toOrderHom_1.toFun x) = toOrderHom_1.toFun x} {IsClosed_1 : α → Prop}
{isClosed_iff_1 :
autoParam (∀ {x : α}, IsClosed_1 x ↔ toOrderHom_1.toFun x = x) ClosureOperator.isClosed_iff._autoParam},
{ toOrderHom := toOrderHom, le_closure' := le_closure', idempotent' := idempotent', IsClosed := IsClosed,
isClosed_iff := isClosed_iff } =
{ toOrderHom := toOrderHom_1, le_closure' := le_closure'_1, idempotent' := idempotent'_1, IsClosed := IsClosed_1,
isClosed_iff := isClosed_iff_1 } →
toOrderHom = toOrderHom_1 ∧ IsClosed = IsClosed_1
def ClosureOperator.ctorIdx E1 #
{α : Type u_1} → {inst : Preorder α} → ClosureOperator α → ℕ
theorem ClosureOperator.mk.injEq E0 #
∀ {α : Type u_1} [inst : Preorder α] (toOrderHom : α →o α) (le_closure' : ∀ (x : α), x ≤ toOrderHom.toFun x)
(idempotent' : ∀ (x : α), toOrderHom.toFun (toOrderHom.toFun x) = toOrderHom.toFun x) (IsClosed : α → Prop)
(isClosed_iff : autoParam (∀ {x : α}, IsClosed x ↔ toOrderHom.toFun x = x) ClosureOperator.isClosed_iff._autoParam)
(toOrderHom_1 : α →o α) (le_closure'_1 : ∀ (x : α), x ≤ toOrderHom_1.toFun x)
(idempotent'_1 : ∀ (x : α), toOrderHom_1.toFun (toOrderHom_1.toFun x) = toOrderHom_1.toFun x) (IsClosed_1 : α → Prop)
(isClosed_iff_1 :
autoParam (∀ {x : α}, IsClosed_1 x ↔ toOrderHom_1.toFun x = x) ClosureOperator.isClosed_iff._autoParam),
({ toOrderHom := toOrderHom, le_closure' := le_closure', idempotent' := idempotent', IsClosed := IsClosed,
isClosed_iff := isClosed_iff } =
{ toOrderHom := toOrderHom_1, le_closure' := le_closure'_1, idempotent' := idempotent'_1, IsClosed := IsClosed_1,
isClosed_iff := isClosed_iff_1 }) =
(toOrderHom = toOrderHom_1 ∧ IsClosed = IsClosed_1)
theorem ClosureOperator.ofPred.congr_simp E1 #
∀ {α : Type u_1} [inst : PartialOrder α] (f f_1 : α → α) (e_f : f = f_1) (p p_1 : α → Prop) (e_p : p = p_1)
(hf : ∀ (x : α), x ≤ f x) (hfp : ∀ (x : α), p (f x)) (hmin : ∀ ⦃x y : α⦄, x ≤ y → p y → f x ≤ y),
ClosureOperator.ofPred f p hf hfp hmin = ClosureOperator.ofPred f_1 p_1 ⋯ ⋯ ⋯
structure ClosureOperator E3 #
(α : Type u_1) → [Preorder α] → Type u_1
A closure operator on the preorder α is a monotone function which is extensive (every x
is less than its closure) and idempotent.
ctor ClosureOperator.mk E0 #
{α : Type u_1} →
[inst : Preorder α] →
(toOrderHom : α →o α) →
(∀ (x : α), x ≤ toOrderHom.toFun x) →
(∀ (x : α), toOrderHom.toFun (toOrderHom.toFun x) = toOrderHom.toFun x) →
(IsClosed : α → Prop) →
autoParam (∀ {x : α}, IsClosed x ↔ toOrderHom.toFun x = x) ClosureOperator.isClosed_iff._autoParam →
ClosureOperator α
abbrev ClosureOperator.toOrderHom E1 #
{α : Type u_1} → [inst : Preorder α] → ClosureOperator α → α →o α
theorem ClosureOperator.le_closure' E1 #
∀ {α : Type u_1} [inst : Preorder α] (self : ClosureOperator α) (x : α), x ≤ self.toFun x
An element is less than or equal its closure
theorem ClosureOperator.idempotent' E1 #
∀ {α : Type u_1} [inst : Preorder α] (self : ClosureOperator α) (x : α), self.toFun (self.toFun x) = self.toFun x
Closures are idempotent
abbrev ClosureOperator.IsClosed E1 #
{α : Type u_1} → [inst : Preorder α] → ClosureOperator α → α → Prop
Predicate for an element to be closed.
By default, this is defined as c.IsClosed x := (c x = x) (see isClosed_iff).
We allow an override to fix definitional equalities.
theorem ClosureOperator.isClosed_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] (self : ClosureOperator α) {x : α}, self.IsClosed x ↔ self.toFun x = x
instance ClosureOperator.instFunLike E0 #
(α : Type u_1) → [inst : Preorder α] → FunLike (ClosureOperator α) α α
instance ClosureOperator.instOrderHomClass E0 #
∀ (α : Type u_1) [inst : Preorder α], OrderHomClass (ClosureOperator α) α α
def ClosureOperator.conjBy E1 #
{α : Type u_4} →
{β : Type u_5} → [inst : Preorder α] → [inst_1 : Preorder β] → ClosureOperator α → α ≃o β → ClosureOperator β
If c is a closure operator on α and e an order-isomorphism
between α and β then e ∘ c ∘ e⁻¹ is a closure operator on β.
theorem ClosureOperator.conjBy_apply E0 #
∀ {α : Type u_4} {β : Type u_5} [inst : Preorder α] [inst_1 : Preorder β] (c : ClosureOperator α) (e : α ≃o β) (a : β),
(c.conjBy e) a = (e.conj ↑c) a
theorem ClosureOperator.conjBy_refl E1 #
∀ {α : Type u_4} [inst : Preorder α] (c : ClosureOperator α), c.conjBy (OrderIso.refl α) = c
theorem ClosureOperator.conjBy_trans E1 #
∀ {α : Type u_4} {β : Type u_5} {γ : Type u_6} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
(e₁ : α ≃o β) (e₂ : β ≃o γ) (c : ClosureOperator α), c.conjBy (e₁.trans e₂) = (c.conjBy e₁).conjBy e₂
def ClosureOperator.id E1 #
(α : Type u_1) → [inst : Preorder α] → ClosureOperator α
The identity function as a closure operator.
theorem ClosureOperator.id_apply E0 #
∀ (α : Type u_1) [inst : Preorder α] (a : α), (ClosureOperator.id α) a = a
theorem ClosureOperator.id_isClosed E0 #
∀ (α : Type u_1) [inst : Preorder α] (x : α), (ClosureOperator.id α).IsClosed x = True
instance ClosureOperator.instInhabited E0 #
(α : Type u_1) → [inst : Preorder α] → Inhabited (ClosureOperator α)
theorem ClosureOperator.ext E1 #
∀ {α : Type u_1} [inst : Preorder α] (c₁ c₂ : ClosureOperator α), (∀ (x : α), c₁ x = c₂ x) → c₁ = c₂
theorem ClosureOperator.ext_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {c₁ c₂ : ClosureOperator α}, c₁ = c₂ ↔ ∀ (x : α), c₁ x = c₂ x
theorem ClosureOperator.monotone E1 #
∀ {α : Type u_1} [inst : Preorder α] (c : ClosureOperator α), Monotone ⇑c
theorem ClosureOperator.le_closure E1 #
∀ {α : Type u_1} [inst : Preorder α] (c : ClosureOperator α) (x : α), x ≤ c x
Every element is less than its closure. This property is sometimes referred to as extensivity or inflationarity.
theorem ClosureOperator.idempotent E0 #
∀ {α : Type u_1} [inst : Preorder α] (c : ClosureOperator α) (x : α), c (c x) = c x
theorem ClosureOperator.isClosed_closure E0 #
∀ {α : Type u_1} [inst : Preorder α] (c : ClosureOperator α) (x : α), c.IsClosed (c x)
abbrev ClosureOperator.Closeds E1 #
{α : Type u_1} → [inst : Preorder α] → ClosureOperator α → Type (max 0 u_1)
The type of elements closed under a closure operator.
def ClosureOperator.toCloseds E1 #
{α : Type u_1} → [inst : Preorder α] → (c : ClosureOperator α) → α → c.Closeds
Send an element to a closed element (by taking the closure).
theorem ClosureOperator.IsClosed.closure_eq E0 #
∀ {α : Type u_1} [inst : Preorder α] {c : ClosureOperator α} {x : α}, c.IsClosed x → c x = x
theorem ClosureOperator.setOfPred_isClosed_eq_range_closure E1 #
∀ {α : Type u_1} [inst : Preorder α] {c : ClosureOperator α}, {x | c.IsClosed x} = Set.range ⇑c
The set of closed elements for c is exactly its range.
theorem ClosureOperator.le_closure_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {c : ClosureOperator α} {x y : α}, x ≤ c y ↔ c x ≤ c y
theorem ClosureOperator.IsClosed.closure_le_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {c : ClosureOperator α} {x y : α}, c.IsClosed y → (c x ≤ y ↔ x ≤ y)
theorem ClosureOperator.closure_min E1 #
∀ {α : Type u_1} [inst : Preorder α] {c : ClosureOperator α} {x y : α}, x ≤ y → c.IsClosed y → c x ≤ y
theorem ClosureOperator.closure_isGLB E1 #
∀ {α : Type u_1} [inst : Preorder α] {c : ClosureOperator α} (x : α), IsGLB {y | x ≤ y ∧ c.IsClosed y} (c x)
theorem ClosureOperator.closure_binop_le E1 #
∀ {α : Type u_1} [inst : Preorder α] (c : ClosureOperator α) {f : α → α → α},
(∀ ⦃x y x' y' : α⦄, x ≤ x' → y ≤ y' → f x y ≤ f x' y') →
(∀ ⦃x y : α⦄, c.IsClosed x → c.IsClosed y → c.IsClosed (f x y)) → ∀ (x y : α), c (f x y) ≤ f (c x) (c y)
If the closed elements are stable under a binary operation f that is monotone in both of its
arguments, then the closure is sub-f: c (f x y) ≤ f (c x) (c y). Compare closure_inf_le,
which is the case f = (· ⊓ ·), where no stability assumption is needed.
def ClosureOperator.mk' E1 #
{α : Type u_1} →
[inst : PartialOrder α] →
(f : α → α) → Monotone f → (∀ (x : α), x ≤ f x) → (∀ (x : α), f (f x) ≤ f x) → ClosureOperator α
Constructor for a closure operator using the weaker idempotency axiom: f (f x) ≤ f x.
theorem ClosureOperator.mk'_apply E0 #
∀ {α : Type u_1} [inst : PartialOrder α] (f : α → α) (hf₁ : Monotone f) (hf₂ : ∀ (x : α), x ≤ f x)
(hf₃ : ∀ (x : α), f (f x) ≤ f x) (a : α), (ClosureOperator.mk' f hf₁ hf₂ hf₃) a = f a
theorem ClosureOperator.mk'_isClosed E0 #
∀ {α : Type u_1} [inst : PartialOrder α] (f : α → α) (hf₁ : Monotone f) (hf₂ : ∀ (x : α), x ≤ f x)
(hf₃ : ∀ (x : α), f (f x) ≤ f x) (x : α), (ClosureOperator.mk' f hf₁ hf₂ hf₃).IsClosed x = (f x = x)
def ClosureOperator.mk₂ E1 #
{α : Type u_1} →
[inst : PartialOrder α] → (f : α → α) → (∀ (x : α), x ≤ f x) → (∀ ⦃x y : α⦄, x ≤ f y → f x ≤ f y) → ClosureOperator α
Convenience constructor for a closure operator using the weaker minimality axiom:
x ≤ f y → f x ≤ f y, which is sometimes easier to prove in practice.
theorem ClosureOperator.mk₂_isClosed E0 #
∀ {α : Type u_1} [inst : PartialOrder α] (f : α → α) (hf : ∀ (x : α), x ≤ f x) (hmin : ∀ ⦃x y : α⦄, x ≤ f y → f x ≤ f y)
(x : α), (ClosureOperator.mk₂ f hf hmin).IsClosed x = (f x = x)
theorem ClosureOperator.mk₂_apply E0 #
∀ {α : Type u_1} [inst : PartialOrder α] (f : α → α) (hf : ∀ (x : α), x ≤ f x) (hmin : ∀ ⦃x y : α⦄, x ≤ f y → f x ≤ f y)
(a : α), (ClosureOperator.mk₂ f hf hmin) a = f a
def ClosureOperator.ofPred E1 #
{α : Type u_1} →
[inst : PartialOrder α] →
(f : α → α) →
(p : α → Prop) →
(∀ (x : α), x ≤ f x) → (∀ (x : α), p (f x)) → (∀ ⦃x y : α⦄, x ≤ y → p y → f x ≤ y) → ClosureOperator α
Construct a closure operator from an inflationary function f and a "closedness" predicate p
witnessing minimality of f x among closed elements greater than x.
theorem ClosureOperator.ofPred_isClosed E0 #
∀ {α : Type u_1} [inst : PartialOrder α] (f : α → α) (p : α → Prop) (hf : ∀ (x : α), x ≤ f x) (hfp : ∀ (x : α), p (f x))
(hmin : ∀ ⦃x y : α⦄, x ≤ y → p y → f x ≤ y) (a : α), (ClosureOperator.ofPred f p hf hfp hmin).IsClosed a = p a
theorem ClosureOperator.ofPred_apply E0 #
∀ {α : Type u_1} [inst : PartialOrder α] (f : α → α) (p : α → Prop) (hf : ∀ (x : α), x ≤ f x) (hfp : ∀ (x : α), p (f x))
(hmin : ∀ ⦃x y : α⦄, x ≤ y → p y → f x ≤ y) (a : α), (ClosureOperator.ofPred f p hf hfp hmin) a = f a
theorem ClosureOperator.isClosed_iff_closure_le E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {c : ClosureOperator α} {x : α}, c.IsClosed x ↔ c x ≤ x
theorem ClosureOperator.ext_isClosed E1 #
∀ {α : Type u_1} [inst : PartialOrder α] (c₁ c₂ : ClosureOperator α),
(∀ (x : α), c₁.IsClosed x ↔ c₂.IsClosed x) → c₁ = c₂
theorem ClosureOperator.closure_top E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderTop α] (c : ClosureOperator α), c ⊤ = ⊤
theorem ClosureOperator.isClosed_top E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderTop α] (c : ClosureOperator α), c.IsClosed ⊤
theorem ClosureOperator.closure_inf_le E1 #
∀ {α : Type u_1} [inst : SemilatticeInf α] (c : ClosureOperator α) (x y : α), c (x ⊓ y) ≤ c x ⊓ c y
theorem ClosureOperator.sup_closure_le E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] (c : ClosureOperator α) (x y : α), x ⊔ c y ≤ c (x ⊔ y)
theorem ClosureOperator.closure_sup_le E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] (c : ClosureOperator α) (x y : α), c x ⊔ y ≤ c (x ⊔ y)
theorem ClosureOperator.closure_sup_closure_le E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] (c : ClosureOperator α) (x y : α), c x ⊔ c y ≤ c (x ⊔ y)
theorem ClosureOperator.closure_sup_closure_left E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] (c : ClosureOperator α) (x y : α), c (c x ⊔ y) = c (x ⊔ y)
theorem ClosureOperator.closure_sup_closure_right E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] (c : ClosureOperator α) (x y : α), c (x ⊔ c y) = c (x ⊔ y)
theorem ClosureOperator.closure_sup_closure E1 #
∀ {α : Type u_1} [inst : SemilatticeSup α] (c : ClosureOperator α) (x y : α), c (c x ⊔ c y) = c (x ⊔ y)
def ClosureOperator.ofCompletePred E1 #
{α : Type u_1} →
[inst : CompleteLattice α] → (p : α → Prop) → (∀ (s : Set α), (∀ a ∈ s, p a) → p (sInf s)) → ClosureOperator α
Define a closure operator from a predicate that's preserved under infima.
theorem ClosureOperator.ofCompletePred_apply E0 #
∀ {α : Type u_1} [inst : CompleteLattice α] (p : α → Prop) (hsinf : ∀ (s : Set α), (∀ a ∈ s, p a) → p (sInf s)) (a : α),
(ClosureOperator.ofCompletePred p hsinf) a = ⨅ b, ↑b
theorem ClosureOperator.ofCompletePred_isClosed E0 #
∀ {α : Type u_1} [inst : CompleteLattice α] (p : α → Prop) (hsinf : ∀ (s : Set α), (∀ a ∈ s, p a) → p (sInf s)) (a : α),
(ClosureOperator.ofCompletePred p hsinf).IsClosed a = p a
theorem ClosureOperator.sInf_isClosed E1 #
∀ {α : Type u_1} [inst : CompleteLattice α] {c : ClosureOperator α} {S : Set α},
(∀ x ∈ S, c.IsClosed x) → c.IsClosed (sInf S)
theorem ClosureOperator.closure_iSup_closure E0 #
∀ {α : Type u_1} {ι : Sort u_2} [inst : CompleteLattice α] (c : ClosureOperator α) (f : ι → α),
c (⨆ i, c (f i)) = c (⨆ i, f i)
theorem ClosureOperator.closure_iSup₂_closure E0 #
∀ {α : Type u_1} {ι : Sort u_2} {κ : ι → Sort u_3} [inst : CompleteLattice α] (c : ClosureOperator α)
(f : (i : ι) → κ i → α), c (⨆ i, ⨆ j, c (f i j)) = c (⨆ i, ⨆ j, f i j)
def OrderIso.equivClosureOperator E1 #
{α : Type u_4} →
{β : Type u_5} → [inst : Preorder α] → [inst_1 : Preorder β] → α ≃o β → ClosureOperator α ≃ ClosureOperator β
Conjugating ClosureOperators on α and on β by a fixed isomorphism
e : α ≃o β gives an equivalence ClosureOperator α ≃ ClosureOperator β.
theorem OrderIso.equivClosureOperator_apply E0 #
∀ {α : Type u_4} {β : Type u_5} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) (c : ClosureOperator α),
e.equivClosureOperator c = c.conjBy e
theorem OrderIso.equivClosureOperator_symm_apply E0 #
∀ {α : Type u_4} {β : Type u_5} [inst : Preorder α] [inst_1 : Preorder β] (e : α ≃o β) (c : ClosureOperator β),
e.equivClosureOperator.symm c = c.conjBy e.symm
structure LowerAdjoint E3 #
{α : Type u_1} → {β : Type u_4} → [Preorder α] → [Preorder β] → (β → α) → Type (max u_1 u_4)
A lower adjoint of u on the preorder α is a function l such that l and u form a Galois
connection. It allows us to define closure operators whose output does not match the input. In
practice, u is often (↑) : β → α.
ctor LowerAdjoint.mk E0 #
{α : Type u_1} →
{β : Type u_4} →
[inst : Preorder α] →
[inst_1 : Preorder β] → {u : β → α} → (toFun : α → β) → GaloisConnection toFun u → LowerAdjoint u
abbrev LowerAdjoint.toFun E1 #
{α : Type u_1} → {β : Type u_4} → [inst : Preorder α] → [inst_1 : Preorder β] → {u : β → α} → LowerAdjoint u → α → β
The underlying function
theorem LowerAdjoint.gc' E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} (self : LowerAdjoint u),
GaloisConnection self.toFun u
The underlying function is a lower adjoint.
def LowerAdjoint.id E1 #
(α : Type u_1) → [inst : Preorder α] → LowerAdjoint id
The identity function as a lower adjoint to itself.
theorem LowerAdjoint.id_toFun E0 #
∀ (α : Type u_1) [inst : Preorder α] (x : α), (LowerAdjoint.id α).toFun x = x
instance LowerAdjoint.instInhabitedId E0 #
{α : Type u_1} → [inst : Preorder α] → Inhabited (LowerAdjoint id)
instance LowerAdjoint.instCoeFunForall E0 #
{α : Type u_1} →
{β : Type u_4} → [inst : Preorder α] → [inst_1 : Preorder β] → {u : β → α} → CoeFun (LowerAdjoint u) fun x ↦ α → β
theorem LowerAdjoint.gc E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u),
GaloisConnection l.toFun u
theorem LowerAdjoint.ext E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} (l₁ l₂ : LowerAdjoint u),
l₁.toFun = l₂.toFun → l₁ = l₂
theorem LowerAdjoint.ext_iff E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} {l₁ l₂ : LowerAdjoint u},
l₁ = l₂ ↔ l₁.toFun = l₂.toFun
theorem LowerAdjoint.monotone E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u),
Monotone (u ∘ l.toFun)
theorem LowerAdjoint.le_closure E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) (x : α),
x ≤ u (l.toFun x)
Every element is less than its closure. This property is sometimes referred to as extensivity or inflationarity.
def LowerAdjoint.closureOperator E1 #
{α : Type u_1} →
{β : Type u_4} → [inst : PartialOrder α] → [inst_1 : Preorder β] → {u : β → α} → LowerAdjoint u → ClosureOperator α
Every lower adjoint induces a closure operator given by the composition. This is the partial order version of the statement that every adjunction induces a monad.
theorem LowerAdjoint.closureOperator_apply E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) (x : α),
l.closureOperator x = u (l.toFun x)
theorem LowerAdjoint.closureOperator_isClosed E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) (x : α),
l.closureOperator.IsClosed x = ((fun x ↦ u (l.toFun x)) x = x)
theorem LowerAdjoint.idempotent E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) (x : α),
u (l.toFun (u (l.toFun x))) = u (l.toFun x)
theorem LowerAdjoint.le_closure_iff E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u)
(x y : α), x ≤ u (l.toFun y) ↔ u (l.toFun x) ≤ u (l.toFun y)
def LowerAdjoint.closed E1 #
{α : Type u_1} → {β : Type u_4} → [inst : Preorder α] → [inst_1 : Preorder β] → {u : β → α} → LowerAdjoint u → Set α
An element x is closed for l : LowerAdjoint u if it is a fixed point: u (l x) = x
theorem LowerAdjoint.mem_closed_iff E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) (x : α),
x ∈ l.closed ↔ u (l.toFun x) = x
theorem LowerAdjoint.closure_eq_self_of_mem_closed E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) {x : α},
x ∈ l.closed → u (l.toFun x) = x
theorem LowerAdjoint.mem_closed_iff_closure_le E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) (x : α),
x ∈ l.closed ↔ u (l.toFun x) ≤ x
theorem LowerAdjoint.closure_is_closed E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) (x : α),
u (l.toFun x) ∈ l.closed
theorem LowerAdjoint.closed_eq_range_close E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u),
l.closed = Set.range (u ∘ l.toFun)
The set of closed elements for l is the range of u ∘ l.
def LowerAdjoint.toClosed E1 #
{α : Type u_1} →
{β : Type u_4} → [inst : PartialOrder α] → [inst_1 : Preorder β] → {u : β → α} → (l : LowerAdjoint u) → α → ↑l.closed
Send an x to an element of the set of closed elements (by taking the closure).
theorem LowerAdjoint.closure_le_closed_iff_le E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u) (x : α)
{y : α}, y ∈ l.closed → (u (l.toFun x) ≤ y ↔ x ≤ y)
theorem LowerAdjoint.closure_top E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : OrderTop α] [inst_2 : Preorder β] {u : β → α}
(l : LowerAdjoint u), u (l.toFun ⊤) = ⊤
theorem LowerAdjoint.closure_inf_le E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SemilatticeInf α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u)
(x y : α), u (l.toFun (x ⊓ y)) ≤ u (l.toFun x) ⊓ u (l.toFun y)
theorem LowerAdjoint.closure_sup_closure_le E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SemilatticeSup α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u)
(x y : α), u (l.toFun x) ⊔ u (l.toFun y) ≤ u (l.toFun (x ⊔ y))
theorem LowerAdjoint.closure_sup_closure_left E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SemilatticeSup α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u)
(x y : α), u (l.toFun (u (l.toFun x) ⊔ y)) = u (l.toFun (x ⊔ y))
theorem LowerAdjoint.closure_sup_closure_right E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SemilatticeSup α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u)
(x y : α), u (l.toFun (x ⊔ u (l.toFun y))) = u (l.toFun (x ⊔ y))
theorem LowerAdjoint.closure_sup_closure E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SemilatticeSup α] [inst_1 : Preorder β] {u : β → α} (l : LowerAdjoint u)
(x y : α), u (l.toFun (u (l.toFun x) ⊔ u (l.toFun y))) = u (l.toFun (x ⊔ y))
theorem LowerAdjoint.closure_iSup_closure E1 #
∀ {α : Type u_1} {ι : Sort u_2} {β : Type u_4} [inst : CompleteLattice α] [inst_1 : Preorder β] {u : β → α}
(l : LowerAdjoint u) (f : ι → α), u (l.toFun (⨆ i, u (l.toFun (f i)))) = u (l.toFun (⨆ i, f i))
theorem LowerAdjoint.closure_iSup₂_closure E1 #
∀ {α : Type u_1} {ι : Sort u_2} {κ : ι → Sort u_3} {β : Type u_4} [inst : CompleteLattice α] [inst_1 : Preorder β]
{u : β → α} (l : LowerAdjoint u) (f : (i : ι) → κ i → α),
u (l.toFun (⨆ i, ⨆ j, u (l.toFun (f i j)))) = u (l.toFun (⨆ i, ⨆ j, f i j))
theorem LowerAdjoint.subset_closure E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe) (s : Set β),
s ⊆ ↑(l.toFun s)
theorem LowerAdjoint.notMem_of_notMem_closure E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe) {s : Set β}
{P : β}, P ∉ l.toFun s → P ∉ s
theorem LowerAdjoint.le_iff_subset E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe) (s : Set β)
(S : α), l.toFun s ≤ S ↔ s ⊆ ↑S
theorem LowerAdjoint.mem_iff E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe) (s : Set β)
(x : β), x ∈ l.toFun s ↔ ∀ (S : α), s ⊆ ↑S → x ∈ S
theorem LowerAdjoint.closure_union_closure_subset E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe) (x y : α),
↑(l.toFun ↑x) ∪ ↑(l.toFun ↑y) ⊆ ↑(l.toFun (↑x ∪ ↑y))
theorem LowerAdjoint.closure_union_closure_left E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe) (x y : α),
l.toFun (↑(l.toFun ↑x) ∪ ↑y) = l.toFun (↑x ∪ ↑y)
theorem LowerAdjoint.closure_union_closure_right E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe) (x y : α),
l.toFun (↑x ∪ ↑(l.toFun ↑y)) = l.toFun (↑x ∪ ↑y)
theorem LowerAdjoint.closure_union_closure E1 #
∀ {α : Type u_1} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe) (x y : α),
l.toFun (↑(l.toFun ↑x) ∪ ↑(l.toFun ↑y)) = l.toFun (↑x ∪ ↑y)
theorem LowerAdjoint.closure_iUnion_closure E0 #
∀ {α : Type u_1} {ι : Sort u_2} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α] (l : LowerAdjoint SetLike.coe)
(f : ι → α), l.toFun (⋃ i, ↑(l.toFun ↑(f i))) = l.toFun (⋃ i, ↑(f i))
theorem LowerAdjoint.closure_iUnion₂_closure E0 #
∀ {α : Type u_1} {ι : Sort u_2} {κ : ι → Sort u_3} {β : Type u_4} [inst : SetLike α β] [inst_1 : Preorder α]
(l : LowerAdjoint SetLike.coe) (f : (i : ι) → κ i → α),
l.toFun (⋃ i, ⋃ j, ↑(l.toFun ↑(f i j))) = l.toFun (⋃ i, ⋃ j, ↑(f i j))
def GaloisConnection.lowerAdjoint E1 #
{α : Type u_1} →
{β : Type u_4} →
[inst : Preorder α] → [inst_1 : Preorder β] → {l : α → β} → {u : β → α} → GaloisConnection l u → LowerAdjoint u
Every Galois connection induces a lower adjoint.
theorem GaloisConnection.lowerAdjoint_toFun E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : Preorder α] [inst_1 : Preorder β] {l : α → β} {u : β → α}
(gc : GaloisConnection l u) (a : α), gc.lowerAdjoint.toFun a = l a
def GaloisConnection.closureOperator E1 #
{α : Type u_1} →
{β : Type u_4} →
[inst : PartialOrder α] →
[inst_1 : Preorder β] → {l : α → β} → {u : β → α} → GaloisConnection l u → ClosureOperator α
Every Galois connection induces a closure operator given by the composition. This is the partial order version of the statement that every adjunction induces a monad.
theorem GaloisConnection.closureOperator_isClosed E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {l : α → β} {u : β → α}
(gc : GaloisConnection l u) (x : α), gc.closureOperator.IsClosed x = (u (l x) = x)
theorem GaloisConnection.closureOperator_apply E0 #
∀ {α : Type u_1} {β : Type u_4} [inst : PartialOrder α] [inst_1 : Preorder β] {l : α → β} {u : β → α}
(gc : GaloisConnection l u) (x : α), gc.closureOperator x = u (l x)
def ClosureOperator.gi E1 #
{α : Type u_1} → [inst : PartialOrder α] → (c : ClosureOperator α) → GaloisInsertion c.toCloseds Subtype.val
The set of closed elements has a Galois insertion to the underlying type.
theorem closureOperator_gi_self E0 #
∀ {α : Type u_1} [inst : PartialOrder α] (c : ClosureOperator α), ⋯.closureOperator = c
The Galois insertion associated to a closure operator can be used to reconstruct the closure operator. Note that the inverse in the opposite direction does not hold in general.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ClosureOperator.setOf_isClosed_eq_range_closure | ClosureOperator.setOfPred_isClosed_eq_range_closure | 2026-07-09 |