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 x
and∀ x, f (f x) = f x
.LowerAdjoint
: A lower adjoint tou : β → α
is a functionl : α → β
such thatl
andu
form a Galois connection.
Implementation details #
Although LowerAdjoint
is technically a generalisation of ClosureOperator
(by defining
toFun := id
), it is desirable to have both as otherwise id
s 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 #
A closure operator on the preorder α
is a monotone function which is extensive (every x
is less than its closure) and idempotent.
- toFun : α → α
- monotone' : Monotone self.toFun
- le_closure' : ∀ (x : α), x ≤ self.toFun x
An element is less than or equal its closure
- idempotent' : ∀ (x : α), self.toFun (self.toFun x) = self.toFun x
Closures are idempotent
- IsClosed : α → Prop
Predicate for an element to be closed.
By default, this is defined as
c.IsClosed x := (c x = x)
(seeisClosed_iff
). We allow an override to fix definitional equalities.
Instances For
Equations
- ClosureOperator.instFunLikeClosureOperator α = { coe := fun (c : ClosureOperator α) => ⇑c.toOrderHom, coe_injective' := ⋯ }
Equations
- ⋯ = ⋯
If c
is a closure operator on α
and e
an order-isomorphism
between α
and β
then e ∘ c ∘ e⁻¹
is a closure operator on β
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The identity function as a closure operator.
Equations
- ClosureOperator.id α = { toOrderHom := OrderHom.id, le_closure' := ⋯, idempotent' := ⋯, IsClosed := fun (x : α) => True, isClosed_iff := ⋯ }
Instances For
Equations
- ClosureOperator.instInhabitedClosureOperatorToPreorder α = { default := ClosureOperator.id α }
Constructor for a closure operator using the weaker idempotency axiom: f (f x) ≤ f x
.
Equations
- ClosureOperator.mk' f hf₁ hf₂ hf₃ = { toOrderHom := { toFun := f, monotone' := hf₁ }, le_closure' := hf₂, idempotent' := ⋯, IsClosed := fun (x : α) => f x = x, isClosed_iff := ⋯ }
Instances For
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.
Equations
- ClosureOperator.mk₂ f hf hmin = { toOrderHom := { toFun := f, monotone' := ⋯ }, le_closure' := hf, idempotent' := ⋯, IsClosed := fun (x : α) => f x = x, isClosed_iff := ⋯ }
Instances For
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
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Every element is less than its closure. This property is sometimes referred to as extensivity or inflationarity.
The type of elements closed under a closure operator.
Equations
- ClosureOperator.Closeds c = { x : α // c.IsClosed x }
Instances For
Send an element to a closed element (by taking the closure).
Equations
- ClosureOperator.toCloseds c x = { val := c x, property := ⋯ }
Instances For
The set of closed elements for c
is exactly its range.
A closure operator is equal to the closure operator obtained by feeding c.closed
into the
ofPred
constructor.
Define a closure operator from a predicate that's preserved under infima.
Equations
- ClosureOperator.ofCompletePred p hsinf = ClosureOperator.ofPred (fun (a : α) => ⨅ (b : { b : α // a ≤ b ∧ p b }), ↑b) p ⋯ ⋯ ⋯
Instances For
Conjugating ClosureOperators
on α
and on β
by a fixed isomorphism
e : α ≃o β
gives an equivalence ClosureOperator α ≃ ClosureOperator β
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Lower adjoint #
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 (↑) : β → α
.
- toFun : α → β
The underlying function
- gc' : GaloisConnection self.toFun u
The underlying function is a lower adjoint.
Instances For
The identity function as a lower adjoint to itself.
Equations
- LowerAdjoint.id α = { toFun := fun (x : α) => x, gc' := ⋯ }
Instances For
Equations
- LowerAdjoint.instInhabitedLowerAdjointId = { default := LowerAdjoint.id α }
Equations
- LowerAdjoint.instCoeFunLowerAdjointForAll = { coe := LowerAdjoint.toFun }
Every element is less than its closure. This property is sometimes referred to as extensivity or inflationarity.
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.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An element x
is closed for l : LowerAdjoint u
if it is a fixed point: u (l x) = x
Equations
- LowerAdjoint.closed l = {x : α | u (l.toFun x) = x}
Instances For
The set of closed elements for l
is the range of u ∘ l
.
Send an x
to an element of the set of closed elements (by taking the closure).
Equations
- LowerAdjoint.toClosed l x = { val := u (l.toFun x), property := ⋯ }
Instances For
Translations between GaloisConnection
, LowerAdjoint
, ClosureOperator
#
Every Galois connection induces a lower adjoint.
Equations
- GaloisConnection.lowerAdjoint gc = { toFun := l, gc' := gc }
Instances For
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.
Equations
Instances For
The set of closed elements has a Galois insertion to the underlying type.
Equations
- ClosureOperator.gi c = { choice := fun (x : α) (hx : ↑(ClosureOperator.toCloseds c x) ≤ x) => { val := x, property := ⋯ }, gc := ⋯, le_l_u := ⋯, choice_eq := ⋯ }
Instances For
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.