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 ⋖ bmeans thatbcoversa.a ⩿ bmeans thatbweakly coversa.
A preorder is a reflexive, transitive relation ≤ with a < b defined in the obvious way.
Instances
Alias of lt_of_le_not_ge.
Alias of not_le_of_gt.
Alias of not_lt_of_ge.
Alias of not_le_of_gt.
Alias of not_lt_of_ge.
Alias of lt_of_lt_of_le'.
Alias of lt_of_le_of_lt'.
< is decidable if ≤ is.
Equations
Instances For
WCovBy a b means that a = b or b covers a.
This means that a ≤ b and there is no element in between. This is denoted a ⩿ b.
Equations
- «term_⩿_» = Lean.ParserDescr.trailingNode `«term_⩿_» 50 50 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ⩿ ") (Lean.ParserDescr.cat `term 51))
Instances For
CovBy a b means that b covers a. This means that a < b and there is no element in
between. This is denoted a ⋖ b.
Equations
- «term_⋖_» = Lean.ParserDescr.trailingNode `«term_⋖_» 50 50 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ⋖ ") (Lean.ParserDescr.cat `term 51))
Instances For
Definition of PartialOrder and lemmas about types with a partial order #
A partial order is a reflexive, transitive, antisymmetric relation ≤.
Instances
Alias of le_antisymm.
Equality is decidable if ≤ is.