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 #
- toFun : α → α
- monotone' : Monotone s.toFun
- le_closure' : ∀ (x : α), x ≤ OrderHom.toFun s.toOrderHom x
An element is less than or equal its closure
- idempotent' : ∀ (x : α), OrderHom.toFun s.toOrderHom (OrderHom.toFun s.toOrderHom x) = OrderHom.toFun s.toOrderHom x
Closures are idempotent
A closure operator on the preorder α
is a monotone function which is extensive (every x
is less than its closure) and idempotent.
Instances For
Equations
- ClosureOperator.instOrderHomClassClosureOperatorToLE α = RelHomClass.mk (_ : ∀ (f : ClosureOperator α) (x x_1 : α), x ≤ x_1 → ↑f.toOrderHom x ≤ ↑f.toOrderHom x_1)
The identity function as a closure operator.
Equations
- One or more equations did not get rendered due to their size.
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' := (_ : ∀ (x : α), f (f x) = f x) }
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' := (_ : ∀ (x y : α), x ≤ y → f x ≤ f y) }, le_closure' := hf, idempotent' := (_ : ∀ (x : α), f (f x) = f x) }
Instances For
Expanded out version of mk₂
. p
implies being closed. This constructor should be used when
you already know a sufficient condition for being closed and using mem_mk₃_closed
will avoid you
the (slight) hassle of having to prove it both inside and outside the constructor.
Equations
- ClosureOperator.mk₃ f p hf hfp hmin = ClosureOperator.mk₂ f hf (_ : ∀ (x y : α), x ≤ f y → f x ≤ f y)
Instances For
This lemma shows that the image of x
of a closure operator built from the mk₃
constructor
respects p
, the property that was fed into it.
Analogue of closure_le_closed_iff_le
but with the p
that was fed into the mk₃
constructor.
Every element is less than its closure. This property is sometimes referred to as extensivity or inflationarity.
An element x
is closed for the closure operator c
if it is a fixed point for it.
Equations
- ClosureOperator.closed c = {x | ↑c x = x}
Instances For
The set of closed elements for c
is exactly its range.
Send an x
to an element of the set of closed elements (by taking the closure).
Equations
- ClosureOperator.toClosed c x = { val := ↑c x, property := (_ : ↑c x ∈ ClosureOperator.closed c) }
Instances For
A closure operator is equal to the closure operator obtained by feeding c.closed
into the
mk₃
constructor.
The property p
fed into the mk₃
constructor exactly corresponds to being closed.
Lower adjoint #
- toFun : α → β
The underlying function
- gc' : GaloisConnection s.toFun u
The underlying function is a 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 (↑) : β → α
.
Instances For
The identity function as a lower adjoint to itself.
Equations
- LowerAdjoint.id α = { toFun := fun x => x, gc' := (_ : GaloisConnection id id) }
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 (LowerAdjoint.toFun l 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 (LowerAdjoint.toFun l x), property := (_ : u (LowerAdjoint.toFun l x) ∈ LowerAdjoint.closed l) }
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
- One or more equations did not get rendered due to their size.
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.