Equations
- instReprOrdering = { reprPrec := reprOrdering✝ }
@[inline]
Combine two Ordering
s lexicographically.
Equations
- Ordering.orElse x✝ x = match x✝, x with | Ordering.lt, x => Ordering.lt | Ordering.eq, o => o | Ordering.gt, x => Ordering.gt
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