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