Definition of complete lattices #
This file contains the definition of complete lattices with suprema/infima of arbitrary sets.
Main definitions #
sSupandsInfare the supremum and the infimum of a set;iSup (f : ι → α)andiInf (f : ι → α)are indexed supremum and infimum of a function, defined assSupandsInfof the range of this function;- class
CompleteLattice: a bounded lattice such thatsSup sis always the least upper boundary ofsandsInf sis always the greatest lower boundary ofs; - class
CompleteLinearOrder: a linear ordered complete lattice.
Naming conventions #
In lemma names,
sSupis calledsSupsInfis calledsInf⨆ i, s iis callediSup⨅ i, s iis callediInf⨆ i j, s i jis callediSup₂. This is aniSupinside aniSup.⨅ i j, s i jis callediInf₂. This is aniInfinside aniInf.⨆ i ∈ s, t iis calledbiSupfor "boundediSup". This is the special case ofiSup₂wherej : i ∈ s.⨅ i ∈ s, t iis calledbiInffor "boundediInf". This is the special case ofiInf₂wherej : i ∈ s.
Notation #
Note that we rarely use CompleteSemilatticeSup
(in fact, any such object is always a CompleteLattice, so it's usually best to start there).
Nevertheless it is sometimes a useful intermediate step in constructions.
Any element of a set is less than the set supremum.
Any upper bound is more than the set supremum.
Instances
Alias of the forward direction of isLUB_iff_sSup_eq.
Note that we rarely use CompleteSemilatticeInf
(in fact, any such object is always a CompleteLattice, so it's usually best to start there).
Nevertheless it is sometimes a useful intermediate step in constructions.
Any element of a set is more than the set infimum.
Any lower bound is less than the set infimum.
Instances
Alias of the forward direction of isGLB_iff_sInf_eq.
Equations
- instCompleteSemilatticeSupOrderDualOfCompleteSemilatticeInf = { toPartialOrder := OrderDual.instPartialOrder α, toSupSet := OrderDual.supSet α, le_sSup := ⋯, sSup_le := ⋯ }
Equations
- instCompleteSemilatticeInfOrderDualOfCompleteSemilatticeSup = { toPartialOrder := OrderDual.instPartialOrder α, toInfSet := OrderDual.infSet α, sInf_le := ⋯, le_sInf := ⋯ }
A complete lattice is a bounded lattice which has suprema and infima for every subset.
Instances
Create a CompleteLattice from a PartialOrder and InfSet
that returns the greatest lower bound of a set. Usually this constructor provides
poor definitional equalities. If other fields are known explicitly, they should be
provided; for example, if inf is known explicitly, construct the CompleteLattice
instance as
instance : CompleteLattice my_T where
inf := better_inf
le_inf := ...
inf_le_right := ...
inf_le_left := ...
-- don't care to fix sup, sSup, bot, top
__ := completeLatticeOfInf my_T _
Equations
- One or more equations did not get rendered due to their size.
Instances For
Any CompleteSemilatticeInf is in fact a CompleteLattice.
Note that this construction has bad definitional properties:
see the doc-string on completeLatticeOfInf.
Equations
Instances For
Create a CompleteLattice from a PartialOrder and SupSet
that returns the least upper bound of a set. Usually this constructor provides
poor definitional equalities. If other fields are known explicitly, they should be
provided; for example, if inf is known explicitly, construct the CompleteLattice
instance as
instance : CompleteLattice my_T where
inf := better_inf
le_inf := ...
inf_le_right := ...
inf_le_left := ...
-- don't care to fix sup, sInf, bot, top
__ := completeLatticeOfSup my_T _
Equations
- One or more equations did not get rendered due to their size.
Instances For
Any CompleteSemilatticeSup is in fact a CompleteLattice.
Note that this construction has bad definitional properties:
see the doc-string on completeLatticeOfSup.
Equations
Instances For
A complete linear order is a linear order whose lattice structure is complete.
- sup : α → α → α
- inf : α → α → α
- top : α
- bot : α
- himp : α → α → α
- compl : α → α
- sdiff : α → α → α
- hnot : α → α
A linear order is total.
- toDecidableLE : DecidableLE α
In a linearly ordered type, we assume the order relations are all decidable.
- toDecidableEq : DecidableEq α
In a linearly ordered type, we assume the order relations are all decidable.
- toDecidableLT : DecidableLT α
In a linearly ordered type, we assume the order relations are all decidable.
Comparison via
compareis equal to the canonical comparison given decidable<and=.
Instances
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.