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