@[inline]
Creates an DecidableLE α
instance using a well-behaved Ord α
instance.
Equations
Instances For
theorem
Std.compare_eq_lt
{α : Type u}
[Ord α]
[LT α]
[LE α]
[LawfulOrderOrd α]
[LawfulOrderLT α]
{a b : α}
:
theorem
Std.compare_eq_gt
{α : Type u}
[Ord α]
[LT α]
[LE α]
[LawfulOrderOrd α]
[LawfulOrderLT α]
{a b : α}
:
theorem
Std.compare_eq_eq
{α : Type u}
[Ord α]
[BEq α]
[LE α]
[LawfulOrderOrd α]
[LawfulOrderBEq α]
{a b : α}
:
@[inline]
def
DecidableLT.ofOrd
(α : Type u)
[LE α]
[LT α]
[Ord α]
[Std.LawfulOrderOrd α]
[Std.LawfulOrderLT α]
:
Creates a DecidableLT α
instance using a well-behaved Ord α
instance.
Equations
- DecidableLT.ofOrd α a b = if h : compare a b = Ordering.lt then isTrue ⋯ else isFalse ⋯
Instances For
The LT α
instance obtained from an Ord α
instance is compatible with the LE α
instance
instance if Ord α
is compatible with it.
The BEq α
instance obtained from an Ord α
instance is compatible with the LE α
instance
instance if Ord α
is compatible with it.