Antichains #
This file defines antichains. An antichain is a set where any two distinct elements are not related.
If the relation is (≤)
, this corresponds to incomparability and usual order antichains. If the
relation is G.adj
for G : SimpleGraph α
, this corresponds to independent sets of G
.
Definitions #
IsAntichain r s
: Any two elements ofs : Set α
are unrelated byr : α → α → Prop
.IsStrongAntichain r s
: Any two elements ofs : Set α
are not related byr : α → α → Prop
to a common element.IsAntichain.mk r s
: Turnss
into an antichain by keeping only the "maximal" elements.
An antichain is a set such that no two distinct elements are related.
Equations
- IsAntichain r s = s.Pairwise rᶜ
Instances For
A set which is simultaneously a chain and antichain is subsingleton.
The intersection of a chain and an antichain is subsingleton.
The intersection of an antichain and a chain is subsingleton.
If t
is an antichain shadowing and including the set of maximal elements of s
,
then t
is the set of maximal elements of s
.
If t
is an antichain shadowed by and including the set of minimal elements of s
,
then t
is the set of minimal elements of s
.
Strong antichains #
Weak antichains #
A weak antichain in Π i, α i
is a set such that no two distinct elements are strongly less
than each other.
Equations
- IsWeakAntichain s = IsAntichain (fun (x1 x2 : (i : ι) → α i) => StrongLT x1 x2) s