Composition of comparisons #
This file defines the composition of two comparison results. In a linear order the comparison of
a with c is constrained by the comparisons of a with b and of b with c: two lt
compose to lt, eq is an identity, and lt followed by gt leaves the result open.
Ordering.comp o₁ o₂ is the set of results compatible with o₁ followed by o₂, and
compare_mem_comp shows that the actual comparison lies in it. In a dense linear order without
endpoints the table is exact: every result it allows is realized by some intermediate point.
Main declarations #
Ordering.comp: the composition table onOrdering.Ordering.compare_mem_comp:compare a clies in(compare a b).comp (compare b c).Ordering.exists_compare_eq_of_mem_comp: in a dense linear order without endpoints, a result ino₁.comp o₂is realized through an intermediate point.
The results of comparing a with c compatible with a comparing to b as o₁ and b
to c as o₂, in a linear order.
Equations
Instances For
In a dense linear order without endpoints, every result the composition table allows is realized by some intermediate point.