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
Lift a decidable relation to an Ordering,
assuming that incomparable terms are Ordering.eq.