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
.
Conversion from WithTop α
to α
, mapping ⊤
to zero.
Equations
- a.untop₀ = WithTop.untopD 0 a
Instances For
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 LinearOrderedAddCommGroup #
@[simp]