Homomorphism_with_Cancellable_Codomain_Preserves_Identity
Provedcancellabilityhomomorphismsidentity-elementsproofwiki
A monoid homomorphism to a cancellative monoid preserves the identity.
Preamble
import Mathlib.Algebra.Group.Hom.Defs
Formal statement
theorem Homomorphism_with_Cancellable_Codomain_Preserves_Identity {G H : Type _} [Monoid G] [Monoid H] [IsCancelMul H] (f : G →* H) : f 1 = 1 := by sorrySource