English
If there is an injective map f from M1 with 1 and * to a commutative monoid M2 preserving 1, multiplication, and powers, then M1 is a commutative monoid.
Русский
Если существует инъективное отображение f: M1 → M2, сохраняющее 1 и умножение и степени, в коммутативный моноид M2, то M1 является коммутативным моноидом.
LaTeX
$$$\exists f: M_1 \to M_2\,\big(\text{Injective}(f) \land f(1)=1 \land (\forall x,y: M_1)\, f(xy)=f(x)f(y) \land (\forall x: M_1)(\forall n:\mathbb{N})\, f(x^n)=f(x)^n\big)\land \text{CommMonoid}(M_2) \Rightarrow \text{CommMonoid}(M_1)$$
Lean4
/-- A type endowed with `1` and `*` is a commutative monoid, if it admits an injective map that
preserves `1` and `*` to a commutative monoid. See note [reducible non-instances]. -/
@[to_additive /-- A type endowed with `0` and `+` is an additive commutative monoid, if it
admits an injective map that preserves `0` and `+` to an additive commutative monoid. -/
]
protected abbrev commMonoid [CommMonoid M₂] (f : M₁ → M₂) (hf : Injective f) (one : f 1 = 1)
(mul : ∀ x y, f (x * y) = f x * f y) (npow : ∀ (x) (n : ℕ), f (x ^ n) = f x ^ n) : CommMonoid M₁ :=
{ hf.monoid f one mul npow, hf.commSemigroup f mul with }