Cast of natural numbers (additional theorems) #
This file proves additional properties about the canonical homomorphism from
the natural numbers into an additive monoid with a one (Nat.cast
).
Main declarations #
Order dual #
Equations
- instAddMonoidWithOneOrderDual = h
Equations
- instAddCommMonoidWithOneOrderDual = h
@[simp]
theorem
toDual_ofNat
{α : Type u_1}
[NatCast α]
(n : ℕ)
[n.AtLeastTwo]
:
OrderDual.toDual (OfNat.ofNat n) = OfNat.ofNat n
@[simp]
theorem
ofDual_ofNat
{α : Type u_1}
[NatCast α]
(n : ℕ)
[n.AtLeastTwo]
:
OrderDual.ofDual (OfNat.ofNat n) = OfNat.ofNat n
Lexicographic order #
Equations
- instAddMonoidWithOneLex = h
Equations
- instAddCommMonoidWithOneLex = h
@[simp]
theorem
toLex_ofNat
{α : Type u_1}
[NatCast α]
(n : ℕ)
[n.AtLeastTwo]
:
toLex (OfNat.ofNat n) = OfNat.ofNat n
@[simp]
theorem
ofLex_ofNat
{α : Type u_1}
[NatCast α]
(n : ℕ)
[n.AtLeastTwo]
:
ofLex (OfNat.ofNat n) = OfNat.ofNat n