The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Data.Nat.Cast.Prod

5 declarations. Mathlib docs · Source

instance Prod.instAddMonoidWithOne E0 #

{α : Type u_1} → {β : Type u_2} → [AddMonoidWithOne α] → [AddMonoidWithOne β] → AddMonoidWithOne (α × β)

theorem Prod.fst_natCast E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddMonoidWithOne α] [inst_1 : AddMonoidWithOne β] (n : ℕ), (↑n).1 = ↑n

theorem Prod.fst_ofNat E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddMonoidWithOne α] [inst_1 : AddMonoidWithOne β] (n : ℕ)
  [inst_2 : n.AtLeastTwo], (OfNat.ofNat n).1 = OfNat.ofNat n

theorem Prod.snd_natCast E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddMonoidWithOne α] [inst_1 : AddMonoidWithOne β] (n : ℕ), (↑n).2 = ↑n

theorem Prod.snd_ofNat E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddMonoidWithOne α] [inst_1 : AddMonoidWithOne β] (n : ℕ)
  [inst_2 : n.AtLeastTwo], (OfNat.ofNat n).2 = OfNat.ofNat n