Partitions #
A Partition
of an element a
in a complete lattice is an independent family of nontrivial
elements whose supremum is a
.
An important special case is where s : Set α
, where a Partition s
corresponds to a partition
of the elements of s
into a family of nonempty sets.
This is equivalent to a transitive and symmetric binary relation r : α → α → Prop
where s
is the set of all x
for which r x x
.
Main definitions #
- For
[CompleteLattice α]
ands : α
, aSet.Partition s
is an independent collection of nontrivial elements whose supremum iss
.
TODO #
- Link this to
Finpartition
. - Give API lemmas for the specialization to the
Set
case.
A Partition
of an element s
of a CompleteLattice
is a collection of
independent nontrivial elements whose supremum is s
.
- parts : Set α
The collection of parts
- sSupIndep' : _root_.sSupIndep self.parts
The parts are
sSupIndep
. The bottom element is not a part.
The supremum of all parts is
s
.
Instances For
Equations
- Partition.instSetLike = { coe := Partition.parts, coe_injective' := ⋯ }
The natural equivalence between the subtype of parts and the subtype of parts of a copy.
Equations
- P.partscopyEquiv hst = Equiv.Set.ofEq ⋯
Instances For
A constructor for Partition s
that removes ⊥
from the set of parts.