Conversion from WithTop to Base Type #
For types α that are instances of Zero
, we provide a convenient conversion,
WithTop.untop₀
, that maps elements a : WithTop α
to α
, by mapping ⊤
to
zero.
For settings where α
has additional structure, we provide a large number of
simplifier lemmas, akin to those that already exists for ENat.toNat
.
Simplifying Lemmas in cases where α is an Instance of Zero #
Simplifying Lemmas in cases where α is an AddMonoid #
Simplifying Lemmas in cases where α is a MulZeroClass #
@[simp]
Simplifying Lemmas in cases where α is a OrderedAddCommGroup #
@[simp]
Elements of ordered additive commutative groups are nonnegative iff their untop₀ is nonnegative.
Simplifying Lemmas in cases where α is a LinearOrderedAddCommGroup #
@[simp]
theorem
WithTop.untop₀_neg
{α : Type u_1}
[AddCommGroup α]
[LinearOrder α]
[IsOrderedAddMonoid α]
(a : WithTop α)
: