Definition of complete lattices #
This file contains the definition of complete lattices with suprema/infima of arbitrary sets.
Main definitions #
- sSupand- sInfare the supremum and the infimum of a set;
- iSup (f : ι → α)and- iInf (f : ι → α)are indexed supremum and infimum of a function, defined as- sSupand- sInfof 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 called- sSup
- sInfis called- sInf
- ⨆ i, s iis called- iSup
- ⨅ i, s iis called- iInf
- ⨆ i j, s i jis called- iSup₂. This is an- iSupinside an- iSup.
- ⨅ i j, s i jis called- iInf₂. This is an- iInfinside an- iInf.
- ⨆ i ∈ s, t iis called- biSupfor "bounded- iSup". This is the special case of- iSup₂where- j : i ∈ s.
- ⨅ i ∈ s, t iis called- biInffor "bounded- iInf". This is the special case of- iInf₂where- j : 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.