@[simp]
theorem
cmpUsing_eq_lt
{α : Type u}
{lt : α → α → Prop}
[DecidableRel lt]
(a b : α)
:
(cmpUsing lt a b = Ordering.lt) = lt a b
@[simp]
theorem
cmpUsing_eq_gt
{α : Type u}
{lt : α → α → Prop}
[DecidableRel lt]
[IsStrictOrder α lt]
(a b : α)
:
cmpUsing lt a b = Ordering.gt ↔ lt b a
@[simp]