The product of two AddMonoidWithOne
s. #
instance
Prod.instAddMonoidWithOne
{α : Type u_1}
{β : Type u_2}
[AddMonoidWithOne α]
[AddMonoidWithOne β]
:
AddMonoidWithOne (α × β)
Equations
- Prod.instAddMonoidWithOne = let src := Prod.instAddMonoid; let src_1 := Prod.instOne; AddMonoidWithOne.mk
@[simp]
theorem
Prod.fst_natCast
{α : Type u_1}
{β : Type u_2}
[AddMonoidWithOne α]
[AddMonoidWithOne β]
(n : ℕ)
:
(↑n).fst = ↑n
@[simp]
theorem
Prod.snd_natCast
{α : Type u_1}
{β : Type u_2}
[AddMonoidWithOne α]
[AddMonoidWithOne β]
(n : ℕ)
:
(↑n).snd = ↑n