Orders #
Defines classes for preorders and partial orders and proves some basic lemmas about them.
We also define covering relations on a preorder.
We say that b
covers a
if a < b
and there is no element in between.
We say that b
weakly covers a
if a ≤ b
and there is no element between a
and b
.
In a partial order this is equivalent to a ⋖ b ∨ a = b
,
in a preorder this is equivalent to a ⋖ b ∨ (a ≤ b ∧ b ≤ a)
Notation #
a ⋖ b
means thatb
coversa
.a ⩿ b
means thatb
weakly coversa
.
A preorder is a reflexive, transitive relation ≤
with a < b
defined in the obvious way.
Instances
- AddUnits.instPreorder
- Additive.preorder
- BotHom.instPreorder
- Multiplicative.preorder
- Nat.instPreorder
- OrderDual.instPreorder
- OrderHom.instPreorder
- OrderRingHom.instPreorder
- Pi.preorder
- Prod.instPreorder
- Rat.instPreorder
- Subtype.preorder
- Sum.Lex.preorder
- Sum.instPreorderSum
- TopHom.instPreorder
- ULift.instPreorder
- Units.instPreorder
- WithBot.preorder
- WithTop.preorder
- WithZero.instPreorder
Alias of not_le_of_lt
.
Alias of not_lt_of_le
.
<
is decidable if ≤
is.
Notation for WCovBy a b
.
Equations
- «term_⩿_» = Lean.ParserDescr.trailingNode `«term_⩿_» 50 50 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ⩿ ") (Lean.ParserDescr.cat `term 51))
Notation for CovBy a b
.
Equations
- «term_⋖_» = Lean.ParserDescr.trailingNode `«term_⋖_» 50 50 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ⋖ ") (Lean.ParserDescr.cat `term 51))
Definition of PartialOrder
and lemmas about types with a partial order #
A partial order is a reflexive, transitive, antisymmetric relation ≤
.
Instances
- AddUnits.instPartialOrderAddUnits
- Additive.partialOrder
- Bool.instPartialOrder
- BotHom.instPartialOrder
- Cardinal.partialOrder
- Filter.instPartialOrder
- Fin.instPartialOrder
- Finset.Colex.instPartialOrder
- Finset.partialOrder
- Multiplicative.partialOrder
- Multiset.instPartialOrder
- Nat.instPartialOrder
- OmegaCompletePartialOrder.instPartialOrderContinuousHom
- OrderDual.instPartialOrder
- OrderHom.instPartialOrder
- OrderRingHom.instPartialOrder
- Part.instPartialOrder
- Pi.partialOrder
- Prod.instPartialOrder
- Prop.partialOrder
- Rat.instPartialOrder
- SetLike.instPartialOrder
- Setoid.instPartialOrder
- Subtype.partialOrder
- Sum.Lex.partialOrder
- Sum.instPartialOrder
- TopHom.instPartialOrder
- ULift.instPartialOrder
- Units.instPartialOrderUnits
- WithBot.partialOrder
- WithTop.partialOrder
- WithZero.instPartialOrder
- instPartialOrderAntisymmetrization
Alias of le_antisymm
.
Equality is decidable if ≤
is.
theorem
Decidable.lt_or_eq_of_le
{α : Type u_1}
[PartialOrder α]
{a b : α}
[DecidableLE α]
(hab : a ≤ b)
:
theorem
Decidable.eq_or_lt_of_le
{α : Type u_1}
[PartialOrder α]
{a b : α}
[DecidableLE α]
(hab : a ≤ b)
: