English
Two commutative monoid structures are equal if their multiplications agree.
Русский
Две коммутативные моноидальные структуры равны, если их умножения совпадают.
LaTeX
$$$(\forall x,y \in M), x *_{m_1} y = x *_{m_2} y \Rightarrow m_1 = m_2$$$
Lean4
@[to_additive (attr := ext)]
theorem ext {M : Type*} ⦃m₁ m₂ : CommMonoid M⦄
(h_mul :
(letI := m₁;
HMul.hMul :
M → M → M) =
(letI := m₂;
HMul.hMul :
M → M → M)) :
m₁ = m₂ :=
CommMonoid.toMonoid_injective <| Monoid.ext h_mul