Orders #
Defines classes for preorders, partial orders, and linear orders and proves some basic lemmas about them.
Unbundled classes #
An empty relation does not relate any elements.
Equations
- EmptyRelation x✝¹ x✝ = False
IsRefl X r
means the binary relation r
on X
is reflexive.
- refl (a : α) : r a a
Instances
- AddCommute.instIsRefl
- AddCommute.on_isRefl
- Associated.instIsRefl
- Commute.instIsRefl
- Commute.on_isRefl
- Finset.instIsReflSubset
- IsIrrefl.compl
- IsRefl.decide
- IsTotal.to_isRefl
- List.SublistForall₂.is_refl
- Nat.ModEq.instIsRefl
- Order.Preimage.instIsRefl
- Prod.instIsReflLex
- Prod.instIsReflLex_1
- Relation.ReflGen.instIsRefl
- Relation.instIsReflReflTransGen
- Set.instIsReflSubset
- Subrel.instIsReflSubtype
- WCovBy.isRefl
- instIsReflDvd
- instIsReflGe
- instIsReflLe
IsSymm X r
means the binary relation r
on X
is symmetric.
- symm (a b : α) : r a b → r b a
IsAntisymm X r
means the binary relation r
on X
is antisymmetric.
- antisymm (a b : α) : r a b → r b a → a = b
IsTrans X r
means the binary relation r
on X
is transitive.
- trans (a b c : α) : r a b → r b c → r a c
Instances
- Associated.instIsTrans
- Finset.instIsTransSSubset
- Finset.instIsTransSubset
- IsTrans.decide
- List.SublistForall₂.is_trans
- Order.Preimage.instIsTrans
- Prod.instIsTransLex
- Relation.instIsTransReflTransGen
- Relation.instIsTransTransGen
- Set.instIsTransSSubset
- Set.instIsTransSubset
- Subrel.instIsTransSubtype
- instIsTransDvd
- instIsTransGe
- instIsTransGt
- instIsTransLe
- instIsTransLt
- instIsTransOfIsWellOrder
- instIsTransOfTrans
Equations
- instTransOfIsTrans = { trans := ⋯ }
IsPreorder X r
means that the binary relation r
on X
is a pre-order, that is, reflexive
and transitive.
Instances
IsPartialOrder X r
means that the binary relation r
on X
is a partial order, that is,
IsPreorder X r
and IsAntisymm X r
.
IsLinearOrder X r
means that the binary relation r
on X
is a linear order, that is,
IsPartialOrder X r
and IsTotal X r
.
IsEquiv X r
means that the binary relation r
on X
is an equivalence relation, that
is, IsPreorder X r
and IsSymm X r
.
IsStrictOrder X r
means that the binary relation r
on X
is a strict order, that is,
IsIrrefl X r
and IsTrans X r
.
IsStrictWeakOrder X lt
means that the binary relation lt
on X
is a strict weak order,
that is, IsStrictOrder X lt
and ¬lt a b ∧ ¬lt b a → ¬lt b c ∧ ¬lt c b → ¬lt a c ∧ ¬lt c a
.
IsTrichotomous X lt
means that the binary relation lt
on X
is trichotomous, that is,
either lt a b
or a = b
or lt b a
for any a
and b
.
IsStrictTotalOrder X lt
means that the binary relation lt
on X
is a strict total order,
that is, IsTrichotomous X lt
and IsStrictOrder X lt
.
Equality is an equivalence relation.
IsTrans
as a definition, suitable for use in proofs.
Equations
- Transitive r = ∀ ⦃x y z : α⦄, r x y → r y z → r x z
IsIrrefl
as a definition, suitable for use in proofs.
Equations
- Irreflexive r = ∀ (x : α), ¬r x x
IsAntisymm
as a definition, suitable for use in proofs.
Equations
- AntiSymmetric r = ∀ ⦃x y : α⦄, r x y → r y x → x = y
Minimal and maximal #
Upper and lower sets #
The type of upper sets of an order.
An upper set in an order α
is a set such that any element greater than one of its members is
also a member. Also called up-set, upward-closed set.
- carrier : Set α
The carrier of an
UpperSet
. - upper' : IsUpperSet self.carrier
The carrier of an
UpperSet
is an upper set.
Instances For
The type of lower sets of an order.
A lower set in an order α
is a set such that any element less than one of its members is also
a member. Also called down-set, downward-closed set.
- carrier : Set α
The carrier of a
LowerSet
. - lower' : IsLowerSet self.carrier
The carrier of a
LowerSet
is a lower set.