Documentation

Mathlib.Data.Nat.Cast.Synonym

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).

Lexicographic order #

@[implicit_reducible]
instance instNatCastLex {α : Type u_1} [h : NatCast α] :
NatCast (Lex α)
@[implicit_reducible]
@[implicit_reducible]
@[simp]
theorem toLex_natCast {α : Type u_1} [NatCast α] (n : ) :
toLex n = n
@[simp]
theorem toLex_ofNat {α : Type u_1} [NatCast α] (n : ) [n.AtLeastTwo] :
toLex (OfNat.ofNat n) = OfNat.ofNat n
@[simp]
theorem ofLex_natCast {α : Type u_1} [NatCast α] (n : ) :
ofLex n = n
@[simp]
theorem ofLex_ofNat {α : Type u_1} [NatCast α] (n : ) [n.AtLeastTwo] :
ofLex (OfNat.ofNat n) = OfNat.ofNat n