Epimorphism_Preserves_Commutativity
Provedcommutativityepimorphismsproofwiki
If f is a surjective homomorphism from a commutative structure, then the codomain operation is also commutative.
Preamble
import Mathlib.Algebra.Group.Defs import Mathlib.Logic.Function.Basic
Formal statement
theorem Epimorphism_Preserves_Commutativity {G H : Type _} [CommSemigroup G] [Mul H] (f : G → H) (hf : ∀ a b : G, f (a * b) = f a * f b) (hsurj : Function.Surjective f) (a b : H) : a * b = b * a := by sorrySource