Equations
- instReprOrdering_mathlib = { reprPrec := reprOrdering✝ }
Compares o a b
means that a
and b
have the ordering relation o
between them, assuming
that the relation a < b
is defined.
Equations
- Ordering.lt.Compares x✝¹ x✝ = (x✝¹ < x✝)
- Ordering.eq.Compares x✝¹ x✝ = (x✝¹ = x✝)
- Ordering.gt.Compares x✝¹ x✝ = (x✝¹ > x✝)
Instances For
Lift a decidable relation to an Ordering
,
assuming that incomparable terms are Ordering.eq
.
Equations
- cmpUsing lt a b = if lt a b then Ordering.lt else if lt b a then Ordering.gt else Ordering.eq