Comparability and incomparability relations #
Two values in a preorder are said to be comparable (SymmRel) whenever a ≤ b or b ≤ a. We
define both the comparability and incomparability relations.
In a linear order, SymmGen (· ≤ ·) a b is always true, and IncompRel (· ≤ ·) a b is always
false.
Implementation notes #
Although comparability and incomparability are negations of each other, both relations are
convenient in different contexts, and as such, it's useful to keep them distinct. To move from one
to the other, use not_symmGen_iff and not_incompRel_iff_symmGen.
Main declarations #
CompRel: The comparability relation.CompRel r a bmeans thataandbis related in either direction byr. This is deprecated in favor ofRelation.SymmGen, with naming chosen for consistency withRelation.TransGenin core and other definitions inMathlib.Logic.Relation.IncompRel: The incomparability relation.IncompRel r a bmeans thataandbare related in neither direction byr.
Todo #
These definitions should be linked to IsChain and IsAntichain.
Comparability #
Equations
Alias of Relation.symmGen_of_total.
Alias of CompRel.of_le.
Alias of CompRel.of_ge.
Alias of CompRel.of_lt.
Alias of CompRel.of_gt.
Alias of CompRel.of_compRel_of_antisymmRel.
Equations
Alias of CompRel.of_antisymmRel_of_compRel.
Equations
A partial order where any two elements are comparable is a linear order.
Equations
Instances For
A partial order where any two elements are comparable is a linear order.
Equations
Instances For
Incomparability relation #
Equations
Alias of not_incompRel_of_total.
Exactly one of the following is true.
Alias of incompRel_of_incompRel_of_antisymmRel.
Equations
Alias of incompRel_of_antisymmRel_of_incompRel.
Equations
Exactly one of the following is true.