The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V05. Groups

Mathlib.Algebra.Group.Hom.Defs

389 declarations and 8 deprecated aliases. Mathlib docs · Source

Monoid and group homomorphisms

This file defines the bundled structures for monoid and group homomorphisms. Namely, we define MonoidHom (resp., AddMonoidHom) to be bundled homomorphisms between multiplicative (resp., additive) monoids or groups.

We also define coercion to a function, and usual operations: composition, identity homomorphism, pointwise multiplication and pointwise inversion.

This file also defines the lesser-used (and notation-less) homomorphism types which are used as building blocks for other homomorphisms:

  • ZeroHom
  • OneHom
  • AddHom
  • MulHom

Notation

  • →+: Bundled AddMonoid homs. Also use for AddGroup homs.
  • →*: Bundled Monoid homs. Also use for Group homs.
  • →ₙ+: Bundled AddSemigroup homs.
  • →ₙ*: Bundled Semigroup homs.

Implementation notes

There's a coercion from bundled homs to fun, and the canonical notation is to use the bundled hom as a function via this coercion.

There is no GroupHom -- the idea is that MonoidHom is used. The constructor for MonoidHom needs a proof of map_one as well as map_mul; a separate constructor MonoidHom.mk' will construct group homs (i.e. monoid homs between groups) given only a proof that multiplication is preserved,

Implicit {} brackets are often used instead of type class [] brackets. This is done when the instances can be inferred because they are implicit arguments to the type MonoidHom. When they can be inferred from the type it is faster to use this method than to use type class inference.

Historically this file also included definitions of unbundled homomorphism classes; they were deprecated and moved to Deprecated/Group.

Tags

MonoidHom, AddMonoidHom

Bundled morphisms can be down-cast to weaker bundlings

theorem OneHom.mk.injEq E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : One M] [inst_1 : One N] (toFun : M → N) (map_one' : toFun 1 = 1)
  (toFun_1 : M → N) (map_one'_1 : toFun_1 1 = 1),
  ({ toFun := toFun, map_one' := map_one' } = { toFun := toFun_1, map_one' := map_one'_1 }) = (toFun = toFun_1)

theorem MulHom.mk.inj E1 #

∀ {M : Type u_10} {N : Type u_11} {inst : Mul M} {inst_1 : Mul N} {toFun : M → N}
  {map_mul' : ∀ (x y : M), toFun (x * y) = toFun x * toFun y} {toFun_1 : M → N}
  {map_mul'_1 : ∀ (x y : M), toFun_1 (x * y) = toFun_1 x * toFun_1 y},
  { toFun := toFun, map_mul' := map_mul' } = { toFun := toFun_1, map_mul' := map_mul'_1 } → toFun = toFun_1

def MulHom.ctorIdx E1 #

{M : Type u_10} → {N : Type u_11} → {inst : Mul M} → {inst_1 : Mul N} → (M →ₙ* N) → ℕ

theorem OneHom.mk.inj E1 #

∀ {M : Type u_10} {N : Type u_11} {inst : One M} {inst_1 : One N} {toFun : M → N} {map_one' : toFun 1 = 1}
  {toFun_1 : M → N} {map_one'_1 : toFun_1 1 = 1},
  { toFun := toFun, map_one' := map_one' } = { toFun := toFun_1, map_one' := map_one'_1 } → toFun = toFun_1

def AddMonoidHom.ctorIdx E1 #

{M : Type u_10} → {N : Type u_11} → {inst : AddZero M} → {inst_1 : AddZero N} → (M →+ N) → ℕ

def MonoidHom.ctorIdx E1 #

{M : Type u_10} → {N : Type u_11} → {inst : MulOne M} → {inst_1 : MulOne N} → (M →* N) → ℕ

theorem AddHom.mk.injEq E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Add M] [inst_1 : Add N] (toFun : M → N)
  (map_add' : ∀ (x y : M), toFun (x + y) = toFun x + toFun y) (toFun_1 : M → N)
  (map_add'_1 : ∀ (x y : M), toFun_1 (x + y) = toFun_1 x + toFun_1 y),
  ({ toFun := toFun, map_add' := map_add' } = { toFun := toFun_1, map_add' := map_add'_1 }) = (toFun = toFun_1)

theorem AddHom.mk.inj E1 #

∀ {M : Type u_10} {N : Type u_11} {inst : Add M} {inst_1 : Add N} {toFun : M → N}
  {map_add' : ∀ (x y : M), toFun (x + y) = toFun x + toFun y} {toFun_1 : M → N}
  {map_add'_1 : ∀ (x y : M), toFun_1 (x + y) = toFun_1 x + toFun_1 y},
  { toFun := toFun, map_add' := map_add' } = { toFun := toFun_1, map_add' := map_add'_1 } → toFun = toFun_1

def OneHom.ctorIdx E1 #

{M : Type u_10} → {N : Type u_11} → {inst : One M} → {inst_1 : One N} → OneHom M N → ℕ

theorem AddMonoidHom.mk.injEq E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : AddZero M] [inst_1 : AddZero N] (toZeroHom : ZeroHom M N)
  (map_add' : ∀ (x y : M), toZeroHom.toFun (x + y) = toZeroHom.toFun x + toZeroHom.toFun y) (toZeroHom_1 : ZeroHom M N)
  (map_add'_1 : ∀ (x y : M), toZeroHom_1.toFun (x + y) = toZeroHom_1.toFun x + toZeroHom_1.toFun y),
  ({ toZeroHom := toZeroHom, map_add' := map_add' } = { toZeroHom := toZeroHom_1, map_add' := map_add'_1 }) =
    (toZeroHom = toZeroHom_1)

theorem MonoidHom.mk.inj E1 #

∀ {M : Type u_10} {N : Type u_11} {inst : MulOne M} {inst_1 : MulOne N} {toOneHom : OneHom M N}
  {map_mul' : ∀ (x y : M), toOneHom.toFun (x * y) = toOneHom.toFun x * toOneHom.toFun y} {toOneHom_1 : OneHom M N}
  {map_mul'_1 : ∀ (x y : M), toOneHom_1.toFun (x * y) = toOneHom_1.toFun x * toOneHom_1.toFun y},
  { toOneHom := toOneHom, map_mul' := map_mul' } = { toOneHom := toOneHom_1, map_mul' := map_mul'_1 } →
    toOneHom = toOneHom_1

theorem MulHom.mk.injEq E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Mul M] [inst_1 : Mul N] (toFun : M → N)
  (map_mul' : ∀ (x y : M), toFun (x * y) = toFun x * toFun y) (toFun_1 : M → N)
  (map_mul'_1 : ∀ (x y : M), toFun_1 (x * y) = toFun_1 x * toFun_1 y),
  ({ toFun := toFun, map_mul' := map_mul' } = { toFun := toFun_1, map_mul' := map_mul'_1 }) = (toFun = toFun_1)

theorem AddMonoidHom.mk.inj E1 #

∀ {M : Type u_10} {N : Type u_11} {inst : AddZero M} {inst_1 : AddZero N} {toZeroHom : ZeroHom M N}
  {map_add' : ∀ (x y : M), toZeroHom.toFun (x + y) = toZeroHom.toFun x + toZeroHom.toFun y} {toZeroHom_1 : ZeroHom M N}
  {map_add'_1 : ∀ (x y : M), toZeroHom_1.toFun (x + y) = toZeroHom_1.toFun x + toZeroHom_1.toFun y},
  { toZeroHom := toZeroHom, map_add' := map_add' } = { toZeroHom := toZeroHom_1, map_add' := map_add'_1 } →
    toZeroHom = toZeroHom_1

theorem MonoidHom.mk.injEq E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : MulOne M] [inst_1 : MulOne N] (toOneHom : OneHom M N)
  (map_mul' : ∀ (x y : M), toOneHom.toFun (x * y) = toOneHom.toFun x * toOneHom.toFun y) (toOneHom_1 : OneHom M N)
  (map_mul'_1 : ∀ (x y : M), toOneHom_1.toFun (x * y) = toOneHom_1.toFun x * toOneHom_1.toFun y),
  ({ toOneHom := toOneHom, map_mul' := map_mul' } = { toOneHom := toOneHom_1, map_mul' := map_mul'_1 }) =
    (toOneHom = toOneHom_1)

theorem ZeroHom.mk.injEq E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Zero M] [inst_1 : Zero N] (toFun : M → N) (map_zero' : toFun 0 = 0)
  (toFun_1 : M → N) (map_zero'_1 : toFun_1 0 = 0),
  ({ toFun := toFun, map_zero' := map_zero' } = { toFun := toFun_1, map_zero' := map_zero'_1 }) = (toFun = toFun_1)

theorem ZeroHom.mk.inj E1 #

∀ {M : Type u_10} {N : Type u_11} {inst : Zero M} {inst_1 : Zero N} {toFun : M → N} {map_zero' : toFun 0 = 0}
  {toFun_1 : M → N} {map_zero'_1 : toFun_1 0 = 0},
  { toFun := toFun, map_zero' := map_zero' } = { toFun := toFun_1, map_zero' := map_zero'_1 } → toFun = toFun_1

def ZeroHom.ctorIdx E1 #

{M : Type u_10} → {N : Type u_11} → {inst : Zero M} → {inst_1 : Zero N} → ZeroHom M N → ℕ

def AddHom.ctorIdx E1 #

{M : Type u_10} → {N : Type u_11} → {inst : Add M} → {inst_1 : Add N} → (M →ₙ+ N) → ℕ

structure ZeroHom E3 #

(M : Type u_10) → (N : Type u_11) → [Zero M] → [Zero N] → Type (max u_10 u_11)

ZeroHom M N is the type of functions M → N that preserve zero.

When possible, instead of parametrizing results over (f : ZeroHom M N), you should parametrize over (F : Type*) [ZeroHomClass F M N] (f : F).

When you extend this structure, make sure to also extend ZeroHomClass.

ctor ZeroHom.mk E0 #

{M : Type u_10} → {N : Type u_11} → [inst : Zero M] → [inst_1 : Zero N] → (toFun : M → N) → toFun 0 = 0 → ZeroHom M N

abbrev ZeroHom.toFun E1 #

{M : Type u_10} → {N : Type u_11} → [inst : Zero M] → [inst_1 : Zero N] → ZeroHom M N → M → N

The underlying function

theorem ZeroHom.map_zero' E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Zero M] [inst_1 : Zero N] (self : ZeroHom M N), self.toFun 0 = 0

The proposition that the function preserves 0

class ZeroHomClass E1 #

(F : Type u_10) → (M : outParam (Type u_11)) → (N : outParam (Type u_12)) → [Zero M] → [Zero N] → [FunLike F M N] → Prop

ZeroHomClass F M N states that F is a type of zero-preserving homomorphisms.

You should extend this typeclass when you extend ZeroHom.

ctor ZeroHomClass.mk E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} [inst : Zero M] [inst_1 : Zero N]
  [inst_2 : FunLike F M N], (∀ (f : F), f 0 = 0) → ZeroHomClass F M N

theorem ZeroHomClass.map_zero E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} {inst : Zero M} {inst_1 : Zero N}
  {inst_2 : FunLike F M N} [self : ZeroHomClass F M N] (f : F), f 0 = 0

The proposition that the function preserves 0

structure AddHom E1 #

(M : Type u_10) → (N : Type u_11) → [Add M] → [Add N] → Type (max u_10 u_11)

M →ₙ+ N is the type of functions M → N that preserve addition. The ₙ in the notation stands for "non-unital" because it is intended to match the notation for NonUnitalAlgHom and NonUnitalRingHom, so a AddHom is a non-unital additive monoid hom.

When possible, instead of parametrizing results over (f : AddHom M N), you should parametrize over (F : Type*) [AddHomClass F M N] (f : F).

When you extend this structure, make sure to extend AddHomClass.

ctor AddHom.mk E0 #

{M : Type u_10} →
  {N : Type u_11} →
    [inst : Add M] → [inst_1 : Add N] → (toFun : M → N) → (∀ (x y : M), toFun (x + y) = toFun x + toFun y) → M →ₙ+ N

abbrev AddHom.toFun E1 #

{M : Type u_10} → {N : Type u_11} → [inst : Add M] → [inst_1 : Add N] → (M →ₙ+ N) → M → N

The underlying function

theorem AddHom.map_add' E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Add M] [inst_1 : Add N] (self : M →ₙ+ N) (x y : M),
  self.toFun (x + y) = self.toFun x + self.toFun y

The proposition that the function preserves addition

def «term_→ₙ+_» E1 #

Lean.TrailingParserDescr

M →ₙ+ N denotes the type of addition-preserving maps from M to N.

class AddHomClass E1 #

(F : Type u_10) → (M : outParam (Type u_11)) → (N : outParam (Type u_12)) → [Add M] → [Add N] → [FunLike F M N] → Prop

AddHomClass F M N states that F is a type of addition-preserving homomorphisms. You should declare an instance of this typeclass when you extend AddHom.

ctor AddHomClass.mk E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} [inst : Add M] [inst_1 : Add N]
  [inst_2 : FunLike F M N], (∀ (f : F) (x y : M), f (x + y) = f x + f y) → AddHomClass F M N

theorem AddHomClass.map_add E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} {inst : Add M} {inst_1 : Add N}
  {inst_2 : FunLike F M N} [self : AddHomClass F M N] (f : F) (x y : M), f (x + y) = f x + f y

The proposition that the function preserves addition

structure AddMonoidHom E3 #

(M : Type u_10) → (N : Type u_11) → [AddZero M] → [AddZero N] → Type (max u_10 u_11)

M →+ N is the type of functions M → N that preserve the AddZero structure.

AddMonoidHom is also used for group homomorphisms.

When possible, instead of parametrizing results over (f : M →+ N), you should parametrize over (F : Type*) [AddMonoidHomClass F M N] (f : F).

When you extend this structure, make sure to extend AddMonoidHomClass.

Wikidata Q868169

abbrev AddMonoidHom.toAddHom E1 #

{M : Type u_10} → {N : Type u_11} → [inst : AddZero M] → [inst_1 : AddZero N] → (M →+ N) → M →ₙ+ N

abbrev AddMonoidHom.toZeroHom E1 #

{M : Type u_10} → {N : Type u_11} → [inst : AddZero M] → [inst_1 : AddZero N] → (M →+ N) → ZeroHom M N

ctor AddMonoidHom.mk E0 #

{M : Type u_10} →
  {N : Type u_11} →
    [inst : AddZero M] →
      [inst_1 : AddZero N] →
        (toZeroHom : ZeroHom M N) →
          (∀ (x y : M), toZeroHom.toFun (x + y) = toZeroHom.toFun x + toZeroHom.toFun y) → M →+ N

theorem AddMonoidHom.map_add' E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : AddZero M] [inst_1 : AddZero N] (self : M →+ N) (x y : M),
  (↑self).toFun (x + y) = (↑self).toFun x + (↑self).toFun y

The proposition that the function preserves addition

def «term_→+_» E1 #

Lean.TrailingParserDescr

M →+ N denotes the type of additive monoid homomorphisms from M to N.

class AddMonoidHomClass E1 #

(F : Type u_10) →
  (M : outParam (Type u_11)) → (N : outParam (Type u_12)) → [AddZero M] → [AddZero N] → [FunLike F M N] → Prop

AddMonoidHomClass F M N states that F is a type of AddZero-preserving homomorphisms.

You should also extend this typeclass when you extend AddMonoidHom.

ctor AddMonoidHomClass.mk E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} [inst : AddZero M] [inst_1 : AddZero N]
  [inst_2 : FunLike F M N] [toAddHomClass : AddHomClass F M N] [toZeroHomClass : ZeroHomClass F M N],
  AddMonoidHomClass F M N

instance AddMonoidHomClass.toAddHomClass E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} {inst : AddZero M} {inst_1 : AddZero N}
  {inst_2 : FunLike F M N} [self : AddMonoidHomClass F M N], AddHomClass F M N

instance AddMonoidHomClass.toZeroHomClass E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} {inst : AddZero M} {inst_1 : AddZero N}
  {inst_2 : FunLike F M N} [self : AddMonoidHomClass F M N], ZeroHomClass F M N

structure OneHom E1 #

(M : Type u_10) → (N : Type u_11) → [One M] → [One N] → Type (max u_10 u_11)

OneHom M N is the type of functions M → N that preserve one.

When possible, instead of parametrizing results over (f : OneHom M N), you should parametrize over (F : Type*) [OneHomClass F M N] (f : F).

When you extend this structure, make sure to also extend OneHomClass.

ctor OneHom.mk E0 #

{M : Type u_10} → {N : Type u_11} → [inst : One M] → [inst_1 : One N] → (toFun : M → N) → toFun 1 = 1 → OneHom M N

abbrev OneHom.toFun E1 #

{M : Type u_10} → {N : Type u_11} → [inst : One M] → [inst_1 : One N] → OneHom M N → M → N

The underlying function

theorem OneHom.map_one' E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : One M] [inst_1 : One N] (self : OneHom M N), self.toFun 1 = 1

The proposition that the function preserves 1

class OneHomClass E1 #

(F : Type u_10) → (M : outParam (Type u_11)) → (N : outParam (Type u_12)) → [One M] → [One N] → [FunLike F M N] → Prop

OneHomClass F M N states that F is a type of one-preserving homomorphisms. You should extend this typeclass when you extend OneHom.

ctor OneHomClass.mk E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} [inst : One M] [inst_1 : One N]
  [inst_2 : FunLike F M N], (∀ (f : F), f 1 = 1) → OneHomClass F M N

theorem OneHomClass.map_one E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} {inst : One M} {inst_1 : One N}
  {inst_2 : FunLike F M N} [self : OneHomClass F M N] (f : F), f 1 = 1

The proposition that the function preserves 1

instance ZeroHom.funLike E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Zero M] → [inst_1 : Zero N] → FunLike (ZeroHom M N) M N

instance OneHom.funLike E0 #

{M : Type u_4} → {N : Type u_5} → [inst : One M] → [inst_1 : One N] → FunLike (OneHom M N) M N

instance OneHom.oneHomClass E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N], OneHomClass (OneHom M N) M N

instance ZeroHom.zeroHomClass E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N], ZeroHomClass (ZeroHom M N) M N

def LibraryNote.hom_simp_lemma_priority E1 #

Batteries.Util.LibraryNote

The hom class hierarchy allows for a single lemma, such as map_one, to apply to a large variety of morphism types, so long as they have an instance of OneHomClass. For example, this applies to MonoidHom, RingHom, AlgHom, StarAlgHom, as well as their Equiv variants, etc. However, precisely because these lemmas are so widely applicable, they keys in the simp discrimination tree are necessarily highly non-specific. For example, the key for map_one is @DFunLike.coe _ _ _ _ _ 1.

Consequently, whenever lean sees ⇑f 1, for some f : F, it will attempt to synthesize a OneHomClass F ?A ?B instance. If no such instance exists, then Lean will need to traverse (almost) the entirety of the FunLike hierarchy in order to determine this because so many classes have a OneHomClass instance (in fact, this problem is likely worse for ZeroHomClass). This can lead to a significant performance hit when map_one fails to apply.

To avoid this problem, we mark these widely applicable simp lemmas with key discrimination tree keys with mid priority in order to ensure that they are not tried first.

We do not use low, to allow bundled morphisms to unfold themselves with low priority such that the generic morphism lemmas are applied first. For instance, we might have

def fooMonoidHom : M →* N where
  toFun := foo; map_one' := sorry; map_mul' := sorry

@[simp low] lemma fooMonoidHom_apply (x : M) : fooMonoidHom x = foo x := rfl

As map_mul is tagged simp mid, this means that it still fires before fooMonoidHom_apply, which is the behavior we desire.

theorem map_one E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : One M] [inst_1 : One N] [inst_2 : FunLike F M N]
  [OneHomClass F M N] (f : F), f 1 = 1

See note [hom simp lemma priority]

theorem map_zero E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Zero M] [inst_1 : Zero N] [inst_2 : FunLike F M N]
  [ZeroHomClass F M N] (f : F), f 0 = 0

theorem map_comp_one E0 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : One M] [inst_1 : One N] [inst_2 : FunLike F M N]
  [OneHomClass F M N] (f : F), ⇑f ∘ 1 = 1

theorem map_comp_zero E0 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Zero M] [inst_1 : Zero N] [inst_2 : FunLike F M N]
  [ZeroHomClass F M N] (f : F), ⇑f ∘ 0 = 0

theorem Subsingleton.of_oneHomClass E2 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : One M] [inst_1 : One N] [inst_2 : FunLike F M N] [Subsingleton M]
  [OneHomClass F M N], Subsingleton F

In principle this could be an instance, but in practice it causes performance issues.

theorem Subsingleton.of_zeroHomClass E1 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Zero M] [inst_1 : Zero N] [inst_2 : FunLike F M N]
  [Subsingleton M] [ZeroHomClass F M N], Subsingleton F

instance instSubsingletonOneHom E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] [Subsingleton M], Subsingleton (OneHom M N)

instance instSubsingletonZeroHom E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] [Subsingleton M], Subsingleton (ZeroHom M N)

theorem map_eq_one_iff E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : One M] [inst_1 : One N] [inst_2 : FunLike F M N]
  [OneHomClass F M N] (f : F), Function.Injective ⇑f → ∀ {x : M}, f x = 1 ↔ x = 1

theorem map_eq_zero_iff E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Zero M] [inst_1 : Zero N] [inst_2 : FunLike F M N]
  [ZeroHomClass F M N] (f : F), Function.Injective ⇑f → ∀ {x : M}, f x = 0 ↔ x = 0

theorem map_ne_zero_iff E0 #

∀ {R : Type u_10} {S : Type u_11} {F : Type u_12} [inst : Zero R] [inst_1 : Zero S] [inst_2 : FunLike F R S]
  [ZeroHomClass F R S] (f : F), Function.Injective ⇑f → ∀ {x : R}, f x ≠ 0 ↔ x ≠ 0

theorem map_ne_one_iff E0 #

∀ {R : Type u_10} {S : Type u_11} {F : Type u_12} [inst : One R] [inst_1 : One S] [inst_2 : FunLike F R S]
  [OneHomClass F R S] (f : F), Function.Injective ⇑f → ∀ {x : R}, f x ≠ 1 ↔ x ≠ 1

theorem ne_zero_of_map E1 #

∀ {R : Type u_10} {S : Type u_11} {F : Type u_12} [inst : Zero R] [inst_1 : Zero S] [inst_2 : FunLike F R S]
  [ZeroHomClass F R S] {f : F} {x : R}, f x ≠ 0 → x ≠ 0

theorem ne_one_of_map E1 #

∀ {R : Type u_10} {S : Type u_11} {F : Type u_12} [inst : One R] [inst_1 : One S] [inst_2 : FunLike F R S]
  [OneHomClass F R S] {f : F} {x : R}, f x ≠ 1 → x ≠ 1

def OneHomClass.toOneHom E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} → [inst : One M] → [inst_1 : One N] → [inst_2 : FunLike F M N] → [OneHomClass F M N] → F → OneHom M N

Turn an element of a type F satisfying OneHomClass F M N into an actual OneHom. This is declared as the default coercion from F to OneHom M N.

def ZeroHomClass.toZeroHom E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : Zero M] → [inst_1 : Zero N] → [inst_2 : FunLike F M N] → [ZeroHomClass F M N] → F → ZeroHom M N

Turn an element of a type F satisfying ZeroHomClass F M N into an actual ZeroHom. This is declared as the default coercion from F to ZeroHom M N.

instance instCoeTCOneHomOfOneHomClass E0 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : One M] → [inst_1 : One N] → [inst_2 : FunLike F M N] → [OneHomClass F M N] → CoeTC F (OneHom M N)

Any type satisfying OneHomClass can be cast into OneHom via OneHomClass.toOneHom.

instance instCoeTCZeroHomOfZeroHomClass E0 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : Zero M] → [inst_1 : Zero N] → [inst_2 : FunLike F M N] → [ZeroHomClass F M N] → CoeTC F (ZeroHom M N)

Any type satisfying ZeroHomClass can be cast into ZeroHom via ZeroHomClass.toZeroHom.

theorem OneHom.coe_coe E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : One M] [inst_1 : One N] [inst_2 : FunLike F M N]
  [inst_3 : OneHomClass F M N] (f : F), ⇑↑f = ⇑f

theorem ZeroHom.coe_coe E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Zero M] [inst_1 : Zero N] [inst_2 : FunLike F M N]
  [inst_3 : ZeroHomClass F M N] (f : F), ⇑↑f = ⇑f

structure MulHom E1 #

(M : Type u_10) → (N : Type u_11) → [Mul M] → [Mul N] → Type (max u_10 u_11)

M →ₙ* N is the type of functions M → N that preserve multiplication. The ₙ in the notation stands for "non-unital" because it is intended to match the notation for NonUnitalAlgHom and NonUnitalRingHom, so a MulHom is a non-unital monoid hom.

When possible, instead of parametrizing results over (f : M →ₙ* N), you should parametrize over (F : Type*) [MulHomClass F M N] (f : F). When you extend this structure, make sure to extend MulHomClass.

ctor MulHom.mk E0 #

{M : Type u_10} →
  {N : Type u_11} →
    [inst : Mul M] → [inst_1 : Mul N] → (toFun : M → N) → (∀ (x y : M), toFun (x * y) = toFun x * toFun y) → M →ₙ* N

abbrev MulHom.toFun E1 #

{M : Type u_10} → {N : Type u_11} → [inst : Mul M] → [inst_1 : Mul N] → (M →ₙ* N) → M → N

The underlying function

theorem MulHom.map_mul' E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Mul M] [inst_1 : Mul N] (self : M →ₙ* N) (x y : M),
  self.toFun (x * y) = self.toFun x * self.toFun y

The proposition that the function preserves multiplication

def «term_→ₙ*_» E1 #

Lean.TrailingParserDescr

M →ₙ* N denotes the type of multiplication-preserving maps from M to N.

class MulHomClass E1 #

(F : Type u_10) → (M : outParam (Type u_11)) → (N : outParam (Type u_12)) → [Mul M] → [Mul N] → [FunLike F M N] → Prop

MulHomClass F M N states that F is a type of multiplication-preserving homomorphisms.

You should declare an instance of this typeclass when you extend MulHom.

ctor MulHomClass.mk E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} [inst : Mul M] [inst_1 : Mul N]
  [inst_2 : FunLike F M N], (∀ (f : F) (x y : M), f (x * y) = f x * f y) → MulHomClass F M N

theorem MulHomClass.map_mul E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} {inst : Mul M} {inst_1 : Mul N}
  {inst_2 : FunLike F M N} [self : MulHomClass F M N] (f : F) (x y : M), f (x * y) = f x * f y

The proposition that the function preserves multiplication

instance AddHom.funLike E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Add M] → [inst_1 : Add N] → FunLike (M →ₙ+ N) M N

instance MulHom.funLike E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Mul M] → [inst_1 : Mul N] → FunLike (M →ₙ* N) M N

instance MulHom.mulHomClass E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N], MulHomClass (M →ₙ* N) M N

MulHom is a type of multiplication-preserving homomorphisms

instance AddHom.addHomClass E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N], AddHomClass (M →ₙ+ N) M N

AddHom is a type of addition-preserving homomorphisms

theorem map_mul E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Mul M] [inst_1 : Mul N] [inst_2 : FunLike F M N]
  [MulHomClass F M N] (f : F) (x y : M), f (x * y) = f x * f y

See note [hom simp lemma priority]

theorem map_add E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Add M] [inst_1 : Add N] [inst_2 : FunLike F M N]
  [AddHomClass F M N] (f : F) (x y : M), f (x + y) = f x + f y

theorem map_comp_add E0 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Add M] [inst_1 : Add N] [inst_2 : FunLike F M N]
  [AddHomClass F M N] (f : F) (g h : ι → M), ⇑f ∘ (g + h) = ⇑f ∘ g + ⇑f ∘ h

theorem map_comp_mul E0 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Mul M] [inst_1 : Mul N] [inst_2 : FunLike F M N]
  [MulHomClass F M N] (f : F) (g h : ι → M), ⇑f ∘ (g * h) = ⇑f ∘ g * ⇑f ∘ h

def MulHomClass.toMulHom E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} → [inst : Mul M] → [inst_1 : Mul N] → [inst_2 : FunLike F M N] → [MulHomClass F M N] → F → M →ₙ* N

Turn an element of a type F satisfying MulHomClass F M N into an actual MulHom. This is declared as the default coercion from F to M →ₙ* N.

def AddHomClass.toAddHom E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} → [inst : Add M] → [inst_1 : Add N] → [inst_2 : FunLike F M N] → [AddHomClass F M N] → F → M →ₙ+ N

Turn an element of a type F satisfying AddHomClass F M N into an actual AddHom. This is declared as the default coercion from F to M →ₙ+ N.

instance instCoeTCMulHomOfMulHomClass E0 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : Mul M] → [inst_1 : Mul N] → [inst_2 : FunLike F M N] → [MulHomClass F M N] → CoeTC F (M →ₙ* N)

Any type satisfying MulHomClass can be cast into MulHom via MulHomClass.toMulHom.

instance instCoeTCAddHomOfAddHomClass E0 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : Add M] → [inst_1 : Add N] → [inst_2 : FunLike F M N] → [AddHomClass F M N] → CoeTC F (M →ₙ+ N)

Any type satisfying AddHomClass can be cast into AddHom via AddHomClass.toAddHom.

theorem MulHom.coe_coe E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Mul M] [inst_1 : Mul N] [inst_2 : FunLike F M N]
  [inst_3 : MulHomClass F M N] (f : F), ⇑↑f = ⇑f

theorem AddHom.coe_coe E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Add M] [inst_1 : Add N] [inst_2 : FunLike F M N]
  [inst_3 : AddHomClass F M N] (f : F), ⇑↑f = ⇑f

structure MonoidHom E3 #

(M : Type u_10) → (N : Type u_11) → [MulOne M] → [MulOne N] → Type (max u_10 u_11)

M →* N is the type of functions M → N that preserve the MulOne structure. MonoidHom is used for both monoid and group homomorphisms.

When possible, instead of parametrizing results over (f : M →* N), you should parametrize over (F : Type*) [MonoidHomClass F M N] (f : F).

When you extend this structure, make sure to extend MonoidHomClass.

Wikidata Q868169

ctor MonoidHom.mk E0 #

{M : Type u_10} →
  {N : Type u_11} →
    [inst : MulOne M] →
      [inst_1 : MulOne N] →
        (toOneHom : OneHom M N) → (∀ (x y : M), toOneHom.toFun (x * y) = toOneHom.toFun x * toOneHom.toFun y) → M →* N

abbrev MonoidHom.toMulHom E1 #

{M : Type u_10} → {N : Type u_11} → [inst : MulOne M] → [inst_1 : MulOne N] → (M →* N) → M →ₙ* N

abbrev MonoidHom.toOneHom E1 #

{M : Type u_10} → {N : Type u_11} → [inst : MulOne M] → [inst_1 : MulOne N] → (M →* N) → OneHom M N

theorem MonoidHom.map_mul' E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : MulOne M] [inst_1 : MulOne N] (self : M →* N) (x y : M),
  (↑self).toFun (x * y) = (↑self).toFun x * (↑self).toFun y

The proposition that the function preserves multiplication

def «term_→*_» E1 #

Lean.TrailingParserDescr

M →* N denotes the type of monoid homomorphisms from M to N.

class MonoidHomClass E1 #

(F : Type u_10) →
  (M : outParam (Type u_11)) → (N : outParam (Type u_12)) → [MulOne M] → [MulOne N] → [FunLike F M N] → Prop

MonoidHomClass F M N states that F is a type of Monoid-preserving homomorphisms. You should also extend this typeclass when you extend MonoidHom.

ctor MonoidHomClass.mk E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} [inst : MulOne M] [inst_1 : MulOne N]
  [inst_2 : FunLike F M N] [toMulHomClass : MulHomClass F M N] [toOneHomClass : OneHomClass F M N], MonoidHomClass F M N

instance MonoidHomClass.toOneHomClass E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} {inst : MulOne M} {inst_1 : MulOne N}
  {inst_2 : FunLike F M N} [self : MonoidHomClass F M N], OneHomClass F M N

instance MonoidHomClass.toMulHomClass E0 #

∀ {F : Type u_10} {M : outParam (Type u_11)} {N : outParam (Type u_12)} {inst : MulOne M} {inst_1 : MulOne N}
  {inst_2 : FunLike F M N} [self : MonoidHomClass F M N], MulHomClass F M N

instance MonoidHom.instFunLike E0 #

{M : Type u_4} → {N : Type u_5} → [inst : MulOne M] → [inst_1 : MulOne N] → FunLike (M →* N) M N

instance AddMonoidHom.instFunLike E0 #

{M : Type u_4} → {N : Type u_5} → [inst : AddZero M] → [inst_1 : AddZero N] → FunLike (M →+ N) M N

instance MonoidHom.instMonoidHomClass E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N], MonoidHomClass (M →* N) M N

instance AddMonoidHom.instAddMonoidHomClass E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N], AddMonoidHomClass (M →+ N) M N

instance instSubsingletonAddMonoidHom E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] [Subsingleton M], Subsingleton (M →+ N)

instance instSubsingletonMonoidHom E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] [Subsingleton M], Subsingleton (M →* N)

def MonoidHom.ofClass E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : MulOne M] → [inst_1 : MulOne N] → [inst_2 : FunLike F M N] → [MonoidHomClass F M N] → F → M →* N

Turn an element of a type F satisfying MonoidHomClass F M N into an actual MonoidHom. This is declared as the default coercion from F to M →* N.

def AddMonoidHom.ofClass E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : AddZero M] → [inst_1 : AddZero N] → [inst_2 : FunLike F M N] → [AddMonoidHomClass F M N] → F → M →+ N

Turn an element of a type F satisfying AddMonoidHomClass F M N into an actual AddMonoidHom. This is declared as the default coercion from F to M →+ N.

instance instCoeTCMonoidHomOfMonoidHomClass E0 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : MulOne M] → [inst_1 : MulOne N] → [inst_2 : FunLike F M N] → [MonoidHomClass F M N] → CoeTC F (M →* N)

Any type satisfying MonoidHomClass can be cast into MonoidHom via MonoidHom.ofClass.

instance instCoeTCAddMonoidHomOfAddMonoidHomClass E0 #

{M : Type u_4} →
  {N : Type u_5} →
    {F : Type u_9} →
      [inst : AddZero M] →
        [inst_1 : AddZero N] → [inst_2 : FunLike F M N] → [AddMonoidHomClass F M N] → CoeTC F (M →+ N)

Any type satisfying AddMonoidHomClass can be cast into AddMonoidHom via AddMonoidHom.ofClass.

theorem AddMonoidHom.coe_ofClass E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : FunLike F M N]
  [inst_3 : AddMonoidHomClass F M N] (f : F), ⇑↑f = ⇑f

theorem MonoidHom.coe_ofClass E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : FunLike F M N]
  [inst_3 : MonoidHomClass F M N] (f : F), ⇑↑f = ⇑f

theorem map_mul_eq_one E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : FunLike F M N]
  [MonoidHomClass F M N] (f : F) {a b : M}, a * b = 1 → f a * f b = 1

theorem map_add_eq_zero E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : FunLike F M N]
  [AddMonoidHomClass F M N] (f : F) {a b : M}, a + b = 0 → f a + f b = 0

theorem map_div' E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : DivInvMonoid G]
  [inst_2 : DivInvMonoid H] [MulHomClass F G H] (f : F),
  (∀ (a : G), f a⁻¹ = (f a)⁻¹) → ∀ (a b : G), f (a / b) = f a / f b

theorem map_sub' E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : SubNegMonoid G]
  [inst_2 : SubNegMonoid H] [AddHomClass F G H] (f : F), (∀ (a : G), f (-a) = -f a) → ∀ (a b : G), f (a - b) = f a - f b

theorem map_comp_sub' E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : SubNegMonoid G]
  [inst_2 : SubNegMonoid H] [AddHomClass F G H] (f : F),
  (∀ (a : G), f (-a) = -f a) → ∀ (g h : ι → G), ⇑f ∘ (g - h) = ⇑f ∘ g - ⇑f ∘ h

theorem map_comp_div' E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : DivInvMonoid G]
  [inst_2 : DivInvMonoid H] [MulHomClass F G H] (f : F),
  (∀ (a : G), f a⁻¹ = (f a)⁻¹) → ∀ (g h : ι → G), ⇑f ∘ (g / h) = ⇑f ∘ g / ⇑f ∘ h

theorem map_inv E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Group G] [inst_2 : DivisionMonoid H]
  [MonoidHomClass F G H] (f : F) (a : G), f a⁻¹ = (f a)⁻¹

Group homomorphisms preserve inverse.

See note [hom simp lemma priority]

theorem map_neg E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddGroup G]
  [inst_2 : SubtractionMonoid H] [AddMonoidHomClass F G H] (f : F) (a : G), f (-a) = -f a

Additive group homomorphisms preserve negation.

theorem map_comp_inv E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Group G]
  [inst_2 : DivisionMonoid H] [MonoidHomClass F G H] (f : F) (g : ι → G), ⇑f ∘ g⁻¹ = (⇑f ∘ g)⁻¹

theorem map_comp_neg E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddGroup G]
  [inst_2 : SubtractionMonoid H] [AddMonoidHomClass F G H] (f : F) (g : ι → G), ⇑f ∘ (-g) = -⇑f ∘ g

theorem map_mul_inv E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Group G] [inst_2 : DivisionMonoid H]
  [MonoidHomClass F G H] (f : F) (a b : G), f (a * b⁻¹) = f a * (f b)⁻¹

Group homomorphisms preserve division.

theorem map_add_neg E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddGroup G]
  [inst_2 : SubtractionMonoid H] [AddMonoidHomClass F G H] (f : F) (a b : G), f (a + -b) = f a + -f b

Additive group homomorphisms preserve subtraction.

theorem map_comp_add_neg E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddGroup G]
  [inst_2 : SubtractionMonoid H] [AddMonoidHomClass F G H] (f : F) (g h : ι → G), ⇑f ∘ (g + -h) = ⇑f ∘ g + -⇑f ∘ h

theorem map_comp_mul_inv E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Group G]
  [inst_2 : DivisionMonoid H] [MonoidHomClass F G H] (f : F) (g h : ι → G), ⇑f ∘ (g * h⁻¹) = ⇑f ∘ g * (⇑f ∘ h)⁻¹

theorem map_div E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Group G] [inst_2 : DivisionMonoid H]
  [MonoidHomClass F G H] (f : F) (a b : G), f (a / b) = f a / f b

Group homomorphisms preserve division.

See note [hom simp lemma priority]

theorem map_sub E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddGroup G]
  [inst_2 : SubtractionMonoid H] [AddMonoidHomClass F G H] (f : F) (a b : G), f (a - b) = f a - f b

Additive group homomorphisms preserve subtraction.

theorem map_comp_div E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Group G]
  [inst_2 : DivisionMonoid H] [MonoidHomClass F G H] (f : F) (g h : ι → G), ⇑f ∘ (g / h) = ⇑f ∘ g / ⇑f ∘ h

theorem map_comp_sub E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddGroup G]
  [inst_2 : SubtractionMonoid H] [AddMonoidHomClass F G H] (f : F) (g h : ι → G), ⇑f ∘ (g - h) = ⇑f ∘ g - ⇑f ∘ h

theorem map_pow E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Monoid G] [inst_2 : Monoid H]
  [MonoidHomClass F G H] (f : F) (a : G) (n : ℕ), f (a ^ n) = f a ^ n

See note [hom simp lemma priority]

theorem map_nsmul E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddMonoid G] [inst_2 : AddMonoid H]
  [AddMonoidHomClass F G H] (f : F) (n : ℕ) (a : G), f (n • a) = n • f a

theorem map_comp_pow E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Monoid G]
  [inst_2 : Monoid H] [MonoidHomClass F G H] (f : F) (g : ι → G) (n : ℕ), ⇑f ∘ (g ^ n) = ⇑f ∘ g ^ n

theorem map_comp_nsmul E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddMonoid G]
  [inst_2 : AddMonoid H] [AddMonoidHomClass F G H] (f : F) (g : ι → G) (n : ℕ), ⇑f ∘ (n • g) = n • ⇑f ∘ g

theorem map_zsmul' E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : SubNegMonoid G]
  [inst_2 : SubNegMonoid H] [AddMonoidHomClass F G H] (f : F),
  (∀ (x : G), f (-x) = -f x) → ∀ (a : G) (n : ℤ), f (n • a) = n • f a

theorem map_zpow' E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : DivInvMonoid G]
  [inst_2 : DivInvMonoid H] [MonoidHomClass F G H] (f : F),
  (∀ (x : G), f x⁻¹ = (f x)⁻¹) → ∀ (a : G) (n : ℤ), f (a ^ n) = f a ^ n

theorem map_comp_zsmul' E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : SubNegMonoid G]
  [inst_2 : SubNegMonoid H] [AddMonoidHomClass F G H] (f : F),
  (∀ (x : G), f (-x) = -f x) → ∀ (g : ι → G) (n : ℤ), ⇑f ∘ (n • g) = n • ⇑f ∘ g

theorem map_comp_zpow' E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : DivInvMonoid G]
  [inst_2 : DivInvMonoid H] [MonoidHomClass F G H] (f : F),
  (∀ (x : G), f x⁻¹ = (f x)⁻¹) → ∀ (g : ι → G) (n : ℤ), ⇑f ∘ (g ^ n) = ⇑f ∘ g ^ n

theorem map_zpow E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Group G] [inst_2 : DivisionMonoid H]
  [MonoidHomClass F G H] (f : F) (g : G) (n : ℤ), f (g ^ n) = f g ^ n

Group homomorphisms preserve integer power.

See note [hom simp lemma priority]

theorem map_zsmul E0 #

∀ {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddGroup G]
  [inst_2 : SubtractionMonoid H] [AddMonoidHomClass F G H] (f : F) (n : ℤ) (g : G), f (n • g) = n • f g

Additive group homomorphisms preserve integer scaling.

theorem map_comp_zsmul E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : AddGroup G]
  [inst_2 : SubtractionMonoid H] [AddMonoidHomClass F G H] (f : F) (g : ι → G) (n : ℤ), ⇑f ∘ (n • g) = n • ⇑f ∘ g

theorem map_comp_zpow E0 #

∀ {ι : Type u_1} {G : Type u_7} {H : Type u_8} {F : Type u_9} [inst : FunLike F G H] [inst_1 : Group G]
  [inst_2 : DivisionMonoid H] [MonoidHomClass F G H] (f : F) (g : ι → G) (n : ℤ), ⇑f ∘ (g ^ n) = ⇑f ∘ g ^ n

theorem Function.Injective.isMulTorsionFree E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Monoid M] [inst_1 : Monoid N] [IsMulTorsionFree N] (f : M →* N),
  Function.Injective ⇑f → IsMulTorsionFree M

If the codomain of an injective monoid homomorphism is torsion free, then so is the domain.

theorem Function.Injective.isAddTorsionFree E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddMonoid M] [inst_1 : AddMonoid N] [IsAddTorsionFree N] (f : M →+ N),
  Function.Injective ⇑f → IsAddTorsionFree M

If the codomain of an injective additive monoid homomorphism is torsion free, then so is the domain.

theorem Function.Injective.hasUniqueRoots E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Monoid M] [inst_1 : Monoid N] [HasUniqueRoots N] (f : M →* N),
  Function.Injective ⇑f → HasUniqueRoots M

If the codomain of an injective monoid homomorphism has unique roots, then so is the domain.

theorem Function.Injective.hasUniqueDiv E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddMonoid M] [inst_1 : AddMonoid N] [HasUniqueDiv N] (f : M →+ N),
  Function.Injective ⇑f → HasUniqueDiv M

If the codomain of an injective additive monoid homomorphism has unique divisibility, then so is the domain.

instance MonoidHom.coeToOneHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : MulOne M] → [inst_1 : MulOne N] → Coe (M →* N) (OneHom M N)

MonoidHom down-cast to a OneHom, forgetting the multiplicative property.

instance AddMonoidHom.coeToZeroHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : AddZero M] → [inst_1 : AddZero N] → Coe (M →+ N) (ZeroHom M N)

AddMonoidHom down-cast to a ZeroHom, forgetting the additive property

instance MonoidHom.coeToMulHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : MulOne M] → [inst_1 : MulOne N] → Coe (M →* N) (M →ₙ* N)

MonoidHom down-cast to a MulHom, forgetting the 1-preserving property.

instance AddMonoidHom.coeToAddHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : AddZero M] → [inst_1 : AddZero N] → Coe (M →+ N) (M →ₙ+ N)

AddMonoidHom down-cast to an AddHom, forgetting the 0-preserving property.

theorem OneHom.coe_mk E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] (f : M → N) (h1 : f 1 = 1),
  ⇑{ toFun := f, map_one' := h1 } = f

theorem ZeroHom.coe_mk E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] (f : M → N) (h1 : f 0 = 0),
  ⇑{ toFun := f, map_zero' := h1 } = f

theorem OneHom.toFun_eq_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] (f : OneHom M N), f.toFun = ⇑f

theorem ZeroHom.toFun_eq_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] (f : ZeroHom M N), f.toFun = ⇑f

theorem MulHom.coe_mk E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M → N) (hmul : ∀ (x y : M), f (x * y) = f x * f y),
  ⇑{ toFun := f, map_mul' := hmul } = f

theorem AddHom.coe_mk E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M → N) (hadd : ∀ (x y : M), f (x + y) = f x + f y),
  ⇑{ toFun := f, map_add' := hadd } = f

theorem MulHom.toFun_eq_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M →ₙ* N), f.toFun = ⇑f

theorem AddHom.toFun_eq_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M →ₙ+ N), f.toFun = ⇑f

theorem AddMonoidHom.coe_mk E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : ZeroHom M N)
  (hadd : ∀ (x y : M), f.toFun (x + y) = f.toFun x + f.toFun y), ⇑{ toZeroHom := f, map_add' := hadd } = ⇑f

theorem MonoidHom.coe_mk E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : OneHom M N)
  (hmul : ∀ (x y : M), f.toFun (x * y) = f.toFun x * f.toFun y), ⇑{ toOneHom := f, map_mul' := hmul } = ⇑f

theorem AddMonoidHom.toZeroHom_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : M →+ N), ⇑↑f = ⇑f

theorem MonoidHom.toOneHom_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : M →* N), ⇑↑f = ⇑f

theorem MonoidHom.toMulHom_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : M →* N), (↑f).toFun = ⇑f

theorem AddMonoidHom.toAddHom_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : M →+ N), (↑f).toFun = ⇑f

theorem AddMonoidHom.toFun_eq_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : M →+ N), (↑f).toFun = ⇑f

theorem MonoidHom.toFun_eq_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : M →* N), (↑f).toFun = ⇑f

theorem OneHom.ext_iff E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] {f g : OneHom M N}, f = g ↔ ∀ (x : M), f x = g x

theorem ZeroHom.ext_iff E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] {f g : ZeroHom M N}, f = g ↔ ∀ (x : M), f x = g x

theorem OneHom.ext E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] ⦃f g : OneHom M N⦄, (∀ (x : M), f x = g x) → f = g

theorem ZeroHom.ext E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] ⦃f g : ZeroHom M N⦄, (∀ (x : M), f x = g x) → f = g

theorem AddHom.ext_iff E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] {f g : M →ₙ+ N}, f = g ↔ ∀ (x : M), f x = g x

theorem MulHom.ext_iff E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] {f g : M →ₙ* N}, f = g ↔ ∀ (x : M), f x = g x

theorem MulHom.ext E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] ⦃f g : M →ₙ* N⦄, (∀ (x : M), f x = g x) → f = g

theorem AddHom.ext E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] ⦃f g : M →ₙ+ N⦄, (∀ (x : M), f x = g x) → f = g

theorem MonoidHom.ext E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] ⦃f g : M →* N⦄, (∀ (x : M), f x = g x) → f = g

theorem AddMonoidHom.ext E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] ⦃f g : M →+ N⦄, (∀ (x : M), f x = g x) → f = g

theorem MonoidHom.ext_iff E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] {f g : M →* N}, f = g ↔ ∀ (x : M), f x = g x

theorem AddMonoidHom.ext_iff E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] {f g : M →+ N}, f = g ↔ ∀ (x : M), f x = g x

def MonoidHom.mk' E1 #

{M : Type u_4} →
  {G : Type u_7} →
    [inst : Group G] → [inst_1 : MulOneClass M] → (f : M → G) → (∀ (a b : M), f (a * b) = f a * f b) → M →* G

Makes a group homomorphism from a proof that the map preserves multiplication.

theorem MonoidHom.mk'_apply E0 #

∀ {M : Type u_4} {G : Type u_7} [inst : Group G] [inst_1 : MulOneClass M] (f : M → G)
  (map_mul : ∀ (a b : M), f (a * b) = f a * f b), ⇑(MonoidHom.mk' f map_mul) = f

def AddMonoidHom.mk' E1 #

{M : Type u_4} →
  {G : Type u_7} →
    [inst : AddGroup G] → [inst_1 : AddZeroClass M] → (f : M → G) → (∀ (a b : M), f (a + b) = f a + f b) → M →+ G

Makes an additive group homomorphism from a proof that the map preserves addition.

theorem AddMonoidHom.mk'_apply E0 #

∀ {M : Type u_4} {G : Type u_7} [inst : AddGroup G] [inst_1 : AddZeroClass M] (f : M → G)
  (map_add : ∀ (a b : M), f (a + b) = f a + f b), ⇑(AddMonoidHom.mk' f map_add) = f

theorem OneHom.mk_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] (f : OneHom M N) (h1 : f 1 = 1),
  { toFun := ⇑f, map_one' := h1 } = f

theorem ZeroHom.mk_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] (f : ZeroHom M N) (h1 : f 0 = 0),
  { toFun := ⇑f, map_zero' := h1 } = f

theorem AddHom.mk_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M →ₙ+ N)
  (hadd : ∀ (x y : M), f (x + y) = f x + f y), { toFun := ⇑f, map_add' := hadd } = f

theorem MulHom.mk_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M →ₙ* N)
  (hmul : ∀ (x y : M), f (x * y) = f x * f y), { toFun := ⇑f, map_mul' := hmul } = f

theorem AddMonoidHom.mk_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : M →+ N)
  (hadd : ∀ (x y : M), (↑f).toFun (x + y) = (↑f).toFun x + (↑f).toFun y), { toZeroHom := ↑f, map_add' := hadd } = f

theorem MonoidHom.mk_coe E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : M →* N)
  (hmul : ∀ (x y : M), (↑f).toFun (x * y) = (↑f).toFun x * (↑f).toFun y), { toOneHom := ↑f, map_mul' := hmul } = f

def OneHom.copy E1 #

{M : Type u_4} →
  {N : Type u_5} → [inst : One M] → [inst_1 : One N] → (f : OneHom M N) → (f' : M → N) → f' = ⇑f → OneHom M N

Copy of a OneHom with a new toFun equal to the old one. Useful to fix definitional equalities.

def ZeroHom.copy E1 #

{M : Type u_4} →
  {N : Type u_5} → [inst : Zero M] → [inst_1 : Zero N] → (f : ZeroHom M N) → (f' : M → N) → f' = ⇑f → ZeroHom M N

Copy of a ZeroHom with a new toFun equal to the old one. Useful to fix definitional equalities.

theorem ZeroHom.coe_copy E0 #

∀ {M : Type u_4} {N : Type u_5} {x : Zero M} {x_1 : Zero N} (f : ZeroHom M N) (f' : M → N) (h : f' = ⇑f),
  ⇑(f.copy f' h) = f'

theorem OneHom.coe_copy E0 #

∀ {M : Type u_4} {N : Type u_5} {x : One M} {x_1 : One N} (f : OneHom M N) (f' : M → N) (h : f' = ⇑f),
  ⇑(f.copy f' h) = f'

theorem ZeroHom.coe_copy_eq E0 #

∀ {M : Type u_4} {N : Type u_5} {x : Zero M} {x_1 : Zero N} (f : ZeroHom M N) (f' : M → N) (h : f' = ⇑f),
  f.copy f' h = f

theorem OneHom.coe_copy_eq E0 #

∀ {M : Type u_4} {N : Type u_5} {x : One M} {x_1 : One N} (f : OneHom M N) (f' : M → N) (h : f' = ⇑f), f.copy f' h = f

def MulHom.copy E1 #

{M : Type u_4} → {N : Type u_5} → [inst : Mul M] → [inst_1 : Mul N] → (f : M →ₙ* N) → (f' : M → N) → f' = ⇑f → M →ₙ* N

Copy of a MulHom with a new toFun equal to the old one. Useful to fix definitional equalities.

def AddHom.copy E1 #

{M : Type u_4} → {N : Type u_5} → [inst : Add M] → [inst_1 : Add N] → (f : M →ₙ+ N) → (f' : M → N) → f' = ⇑f → M →ₙ+ N

Copy of an AddHom with a new toFun equal to the old one. Useful to fix definitional equalities.

theorem MulHom.coe_copy E0 #

∀ {M : Type u_4} {N : Type u_5} {x : Mul M} {x_1 : Mul N} (f : M →ₙ* N) (f' : M → N) (h : f' = ⇑f), ⇑(f.copy f' h) = f'

theorem AddHom.coe_copy E0 #

∀ {M : Type u_4} {N : Type u_5} {x : Add M} {x_1 : Add N} (f : M →ₙ+ N) (f' : M → N) (h : f' = ⇑f), ⇑(f.copy f' h) = f'

theorem MulHom.coe_copy_eq E0 #

∀ {M : Type u_4} {N : Type u_5} {x : Mul M} {x_1 : Mul N} (f : M →ₙ* N) (f' : M → N) (h : f' = ⇑f), f.copy f' h = f

theorem AddHom.coe_copy_eq E0 #

∀ {M : Type u_4} {N : Type u_5} {x : Add M} {x_1 : Add N} (f : M →ₙ+ N) (f' : M → N) (h : f' = ⇑f), f.copy f' h = f

def MonoidHom.copy E1 #

{M : Type u_4} →
  {N : Type u_5} → [inst : MulOne M] → [inst_1 : MulOne N] → (f : M →* N) → (f' : M → N) → f' = ⇑f → M →* N

Copy of a MonoidHom with a new toFun equal to the old one. Useful to fix definitional equalities.

def AddMonoidHom.copy E1 #

{M : Type u_4} →
  {N : Type u_5} → [inst : AddZero M] → [inst_1 : AddZero N] → (f : M →+ N) → (f' : M → N) → f' = ⇑f → M →+ N

Copy of an AddMonoidHom with a new toFun equal to the old one. Useful to fix definitional equalities.

theorem AddMonoidHom.coe_copy E0 #

∀ {M : Type u_4} {N : Type u_5} {x : AddZero M} {x_1 : AddZero N} (f : M →+ N) (f' : M → N) (h : f' = ⇑f),
  ⇑(f.copy f' h) = f'

theorem MonoidHom.coe_copy E0 #

∀ {M : Type u_4} {N : Type u_5} {x : MulOne M} {x_1 : MulOne N} (f : M →* N) (f' : M → N) (h : f' = ⇑f),
  ⇑(f.copy f' h) = f'

theorem AddMonoidHom.copy_eq E0 #

∀ {M : Type u_4} {N : Type u_5} {x : AddZero M} {x_1 : AddZero N} (f : M →+ N) (f' : M → N) (h : f' = ⇑f),
  f.copy f' h = f

theorem MonoidHom.copy_eq E0 #

∀ {M : Type u_4} {N : Type u_5} {x : MulOne M} {x_1 : MulOne N} (f : M →* N) (f' : M → N) (h : f' = ⇑f), f.copy f' h = f

theorem OneHom.map_one E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] (f : OneHom M N), f 1 = 1

theorem ZeroHom.map_zero E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] (f : ZeroHom M N), f 0 = 0

theorem MonoidHom.map_one E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : M →* N), f 1 = 1

If f is a monoid homomorphism then f 1 = 1.

theorem AddMonoidHom.map_zero E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : M →+ N), f 0 = 0

If f is an additive monoid homomorphism then f 0 = 0.

theorem MulHom.map_mul E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M →ₙ* N) (a b : M), f (a * b) = f a * f b

theorem AddHom.map_add E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M →ₙ+ N) (a b : M), f (a + b) = f a + f b

theorem MonoidHom.map_mul E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : M →* N) (a b : M), f (a * b) = f a * f b

If f is a monoid homomorphism then f (a * b) = f a * f b.

theorem AddMonoidHom.map_add E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : M →+ N) (a b : M), f (a + b) = f a + f b

If f is an additive monoid homomorphism then f (a + b) = f a + f b.

theorem MonoidHom.map_exists_right_inv E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : FunLike F M N]
  [MonoidHomClass F M N] (f : F) {x : M}, (∃ y, x * y = 1) → ∃ y, f x * y = 1

Given a monoid homomorphism f : M →* N and an element x : M, if x has a right inverse, then f x has a right inverse too. For elements invertible on both sides see IsUnit.map.

theorem AddMonoidHom.map_exists_right_neg E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : FunLike F M N]
  [AddMonoidHomClass F M N] (f : F) {x : M}, (∃ y, x + y = 0) → ∃ y, f x + y = 0

Given an AddMonoid homomorphism f : M →+ N and an element x : M, if x has a right inverse, then f x has a right inverse too.

theorem MonoidHom.map_exists_left_inv E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : FunLike F M N]
  [MonoidHomClass F M N] (f : F) {x : M}, (∃ y, y * x = 1) → ∃ y, y * f x = 1

Given a monoid homomorphism f : M →* N and an element x : M, if x has a left inverse, then f x has a left inverse too. For elements invertible on both sides see IsUnit.map.

theorem AddMonoidHom.map_exists_left_neg E0 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : FunLike F M N]
  [AddMonoidHomClass F M N] (f : F) {x : M}, (∃ y, y + x = 0) → ∃ y, y + f x = 0

Given an AddMonoid homomorphism f : M →+ N and an element x : M, if x has a left inverse, then f x has a left inverse too. For elements invertible on both sides see IsAddUnit.map.

theorem IsDedekindFiniteAddMonoid.of_injective E1 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : FunLike F M N]
  [AddMonoidHomClass F M N] (f : F),
  Function.Injective ⇑f → ∀ [IsDedekindFiniteAddMonoid N], IsDedekindFiniteAddMonoid M

theorem IsDedekindFiniteMonoid.of_injective E1 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : FunLike F M N]
  [MonoidHomClass F M N] (f : F), Function.Injective ⇑f → ∀ [IsDedekindFiniteMonoid N], IsDedekindFiniteMonoid M

instance AddMonoidHom.instAddMonoidHomClassAddHom E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : AddMonoid M] [inst_1 : AddLeftCancelMonoid N], AddMonoidHomClass (M →ₙ+ N) M N

instance MonoidHom.instMonoidHomClassMulHom E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Monoid M] [inst_1 : LeftCancelMonoid N], MonoidHomClass (M →ₙ* N) M N

instance AddMonoidHom.instAddMonoidHomClassAddHom_1 E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : AddMonoid M] [inst_1 : AddRightCancelMonoid N],
  AddMonoidHomClass (M →ₙ+ N) M N

instance MonoidHom.instMonoidHomClassMulHom_1 E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Monoid M] [inst_1 : RightCancelMonoid N], MonoidHomClass (M →ₙ* N) M N

instance AddMonoidHom.instAddMonoidHomClassAddHom_2 E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : AddMonoid M] [inst_1 : AddCancelMonoid N], AddMonoidHomClass (M →ₙ+ N) M N

instance MonoidHom.instMonoidHomClassMulHom_2 E0 #

∀ {M : Type u_10} {N : Type u_11} [inst : Monoid M] [inst_1 : CancelMonoid N], MonoidHomClass (M →ₙ* N) M N

def OneHom.id E1 #

(M : Type u_10) → [inst : One M] → OneHom M M

The identity map from a type with 1 to itself.

theorem OneHom.id_apply E0 #

∀ (M : Type u_10) [inst : One M] (x : M), (OneHom.id M) x = x

def ZeroHom.id E1 #

(M : Type u_10) → [inst : Zero M] → ZeroHom M M

The identity map from a type with zero to itself.

theorem ZeroHom.id_apply E0 #

∀ (M : Type u_10) [inst : Zero M] (x : M), (ZeroHom.id M) x = x

def MulHom.id E1 #

(M : Type u_10) → [inst : Mul M] → M →ₙ* M

The identity map from a type with multiplication to itself.

theorem MulHom.id_apply E0 #

∀ (M : Type u_10) [inst : Mul M] (x : M), (MulHom.id M) x = x

theorem AddHom.id_apply E0 #

∀ (M : Type u_10) [inst : Add M] (x : M), (AddHom.id M) x = x

def AddHom.id E1 #

(M : Type u_10) → [inst : Add M] → M →ₙ+ M

The identity map from a type with addition to itself.

def MonoidHom.id E1 #

(M : Type u_10) → [inst : MulOne M] → M →* M

The identity map from a monoid to itself.

theorem AddMonoidHom.id_apply E0 #

∀ (M : Type u_10) [inst : AddZero M] (x : M), (AddMonoidHom.id M) x = x

def AddMonoidHom.id E1 #

(M : Type u_10) → [inst : AddZero M] → M →+ M

The identity map from an additive monoid to itself.

theorem MonoidHom.id_apply E0 #

∀ (M : Type u_10) [inst : MulOne M] (x : M), (MonoidHom.id M) x = x

theorem ZeroHom.coe_id E0 #

∀ {M : Type u_10} [inst : Zero M], ⇑(ZeroHom.id M) = id

theorem OneHom.coe_id E0 #

∀ {M : Type u_10} [inst : One M], ⇑(OneHom.id M) = id

theorem AddHom.coe_id E0 #

∀ {M : Type u_10} [inst : Add M], ⇑(AddHom.id M) = id

theorem MulHom.coe_id E0 #

∀ {M : Type u_10} [inst : Mul M], ⇑(MulHom.id M) = id

theorem AddMonoidHom.coe_id E0 #

∀ {M : Type u_10} [inst : AddZero M], ⇑(AddMonoidHom.id M) = id

theorem MonoidHom.coe_id E0 #

∀ {M : Type u_10} [inst : MulOne M], ⇑(MonoidHom.id M) = id

def OneHom.comp E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {P : Type u_6} → [inst : One M] → [inst_1 : One N] → [inst_2 : One P] → OneHom N P → OneHom M N → OneHom M P

Composition of OneHoms as a OneHom.

def ZeroHom.comp E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {P : Type u_6} → [inst : Zero M] → [inst_1 : Zero N] → [inst_2 : Zero P] → ZeroHom N P → ZeroHom M N → ZeroHom M P

Composition of ZeroHoms as a ZeroHom.

def MulHom.comp E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {P : Type u_6} → [inst : Mul M] → [inst_1 : Mul N] → [inst_2 : Mul P] → (N →ₙ* P) → (M →ₙ* N) → M →ₙ* P

Composition of MulHoms as a MulHom.

def AddHom.comp E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {P : Type u_6} → [inst : Add M] → [inst_1 : Add N] → [inst_2 : Add P] → (N →ₙ+ P) → (M →ₙ+ N) → M →ₙ+ P

Composition of AddHoms as an AddHom.

def MonoidHom.comp E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {P : Type u_6} → [inst : MulOne M] → [inst_1 : MulOne N] → [inst_2 : MulOne P] → (N →* P) → (M →* N) → M →* P

Composition of monoid morphisms as a monoid morphism.

def AddMonoidHom.comp E1 #

{M : Type u_4} →
  {N : Type u_5} →
    {P : Type u_6} → [inst : AddZero M] → [inst_1 : AddZero N] → [inst_2 : AddZero P] → (N →+ P) → (M →+ N) → M →+ P

Composition of additive monoid morphisms as an additive monoid morphism.

theorem ZeroHom.coe_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Zero M] [inst_1 : Zero N] [inst_2 : Zero P] (g : ZeroHom N P)
  (f : ZeroHom M N), ⇑(g.comp f) = ⇑g ∘ ⇑f

theorem OneHom.coe_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : One M] [inst_1 : One N] [inst_2 : One P] (g : OneHom N P)
  (f : OneHom M N), ⇑(g.comp f) = ⇑g ∘ ⇑f

theorem AddHom.coe_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Add M] [inst_1 : Add N] [inst_2 : Add P] (g : N →ₙ+ P)
  (f : M →ₙ+ N), ⇑(g.comp f) = ⇑g ∘ ⇑f

theorem MulHom.coe_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Mul M] [inst_1 : Mul N] [inst_2 : Mul P] (g : N →ₙ* P)
  (f : M →ₙ* N), ⇑(g.comp f) = ⇑g ∘ ⇑f

theorem MonoidHom.coe_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : MulOne P] (g : N →* P)
  (f : M →* N), ⇑(g.comp f) = ⇑g ∘ ⇑f

theorem AddMonoidHom.coe_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : AddZero P] (g : N →+ P)
  (f : M →+ N), ⇑(g.comp f) = ⇑g ∘ ⇑f

theorem ZeroHom.comp_apply E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Zero M] [inst_1 : Zero N] [inst_2 : Zero P] (g : ZeroHom N P)
  (f : ZeroHom M N) (x : M), (g.comp f) x = g (f x)

theorem OneHom.comp_apply E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : One M] [inst_1 : One N] [inst_2 : One P] (g : OneHom N P)
  (f : OneHom M N) (x : M), (g.comp f) x = g (f x)

theorem MulHom.comp_apply E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Mul M] [inst_1 : Mul N] [inst_2 : Mul P] (g : N →ₙ* P)
  (f : M →ₙ* N) (x : M), (g.comp f) x = g (f x)

theorem AddHom.comp_apply E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Add M] [inst_1 : Add N] [inst_2 : Add P] (g : N →ₙ+ P)
  (f : M →ₙ+ N) (x : M), (g.comp f) x = g (f x)

theorem AddMonoidHom.comp_apply E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : AddZero P] (g : N →+ P)
  (f : M →+ N) (x : M), (g.comp f) x = g (f x)

theorem MonoidHom.comp_apply E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : MulOne P] (g : N →* P)
  (f : M →* N) (x : M), (g.comp f) x = g (f x)

theorem OneHom.comp_assoc E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} {Q : Type u_10} [inst : One M] [inst_1 : One N] [inst_2 : One P]
  [inst_3 : One Q] (f : OneHom M N) (g : OneHom N P) (h : OneHom P Q), (h.comp g).comp f = h.comp (g.comp f)

Composition of monoid homomorphisms is associative.

theorem ZeroHom.comp_assoc E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} {Q : Type u_10} [inst : Zero M] [inst_1 : Zero N] [inst_2 : Zero P]
  [inst_3 : Zero Q] (f : ZeroHom M N) (g : ZeroHom N P) (h : ZeroHom P Q), (h.comp g).comp f = h.comp (g.comp f)

Composition of additive monoid homomorphisms is associative.

theorem AddHom.comp_assoc E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} {Q : Type u_10} [inst : Add M] [inst_1 : Add N] [inst_2 : Add P]
  [inst_3 : Add Q] (f : M →ₙ+ N) (g : N →ₙ+ P) (h : P →ₙ+ Q), (h.comp g).comp f = h.comp (g.comp f)

theorem MulHom.comp_assoc E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} {Q : Type u_10} [inst : Mul M] [inst_1 : Mul N] [inst_2 : Mul P]
  [inst_3 : Mul Q] (f : M →ₙ* N) (g : N →ₙ* P) (h : P →ₙ* Q), (h.comp g).comp f = h.comp (g.comp f)

theorem AddMonoidHom.comp_assoc E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} {Q : Type u_10} [inst : AddZero M] [inst_1 : AddZero N]
  [inst_2 : AddZero P] [inst_3 : AddZero Q] (f : M →+ N) (g : N →+ P) (h : P →+ Q),
  (h.comp g).comp f = h.comp (g.comp f)

theorem MonoidHom.comp_assoc E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} {Q : Type u_10} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : MulOne P]
  [inst_3 : MulOne Q] (f : M →* N) (g : N →* P) (h : P →* Q), (h.comp g).comp f = h.comp (g.comp f)

theorem ZeroHom.cancel_right E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Zero M] [inst_1 : Zero N] [inst_2 : Zero P] {g₁ g₂ : ZeroHom N P}
  {f : ZeroHom M N}, Function.Surjective ⇑f → (g₁.comp f = g₂.comp f ↔ g₁ = g₂)

theorem OneHom.cancel_right E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : One M] [inst_1 : One N] [inst_2 : One P] {g₁ g₂ : OneHom N P}
  {f : OneHom M N}, Function.Surjective ⇑f → (g₁.comp f = g₂.comp f ↔ g₁ = g₂)

theorem MulHom.cancel_right E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Mul M] [inst_1 : Mul N] [inst_2 : Mul P] {g₁ g₂ : N →ₙ* P}
  {f : M →ₙ* N}, Function.Surjective ⇑f → (g₁.comp f = g₂.comp f ↔ g₁ = g₂)

theorem AddHom.cancel_right E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Add M] [inst_1 : Add N] [inst_2 : Add P] {g₁ g₂ : N →ₙ+ P}
  {f : M →ₙ+ N}, Function.Surjective ⇑f → (g₁.comp f = g₂.comp f ↔ g₁ = g₂)

theorem MonoidHom.cancel_right E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : MulOne P]
  {g₁ g₂ : N →* P} {f : M →* N}, Function.Surjective ⇑f → (g₁.comp f = g₂.comp f ↔ g₁ = g₂)

theorem AddMonoidHom.cancel_right E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : AddZero P]
  {g₁ g₂ : N →+ P} {f : M →+ N}, Function.Surjective ⇑f → (g₁.comp f = g₂.comp f ↔ g₁ = g₂)

theorem OneHom.cancel_left E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : One M] [inst_1 : One N] [inst_2 : One P] {g : OneHom N P}
  {f₁ f₂ : OneHom M N}, Function.Injective ⇑g → (g.comp f₁ = g.comp f₂ ↔ f₁ = f₂)

theorem ZeroHom.cancel_left E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Zero M] [inst_1 : Zero N] [inst_2 : Zero P] {g : ZeroHom N P}
  {f₁ f₂ : ZeroHom M N}, Function.Injective ⇑g → (g.comp f₁ = g.comp f₂ ↔ f₁ = f₂)

theorem AddHom.cancel_left E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Add M] [inst_1 : Add N] [inst_2 : Add P] {g : N →ₙ+ P}
  {f₁ f₂ : M →ₙ+ N}, Function.Injective ⇑g → (g.comp f₁ = g.comp f₂ ↔ f₁ = f₂)

theorem MulHom.cancel_left E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Mul M] [inst_1 : Mul N] [inst_2 : Mul P] {g : N →ₙ* P}
  {f₁ f₂ : M →ₙ* N}, Function.Injective ⇑g → (g.comp f₁ = g.comp f₂ ↔ f₁ = f₂)

theorem MonoidHom.cancel_left E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : MulOne P] {g : N →* P}
  {f₁ f₂ : M →* N}, Function.Injective ⇑g → (g.comp f₁ = g.comp f₂ ↔ f₁ = f₂)

theorem AddMonoidHom.cancel_left E1 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : AddZero P] {g : N →+ P}
  {f₁ f₂ : M →+ N}, Function.Injective ⇑g → (g.comp f₁ = g.comp f₂ ↔ f₁ = f₂)

theorem AddMonoidHom.toZeroHom_injective E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N], Function.Injective AddMonoidHom.toZeroHom

theorem MonoidHom.toOneHom_injective E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N], Function.Injective MonoidHom.toOneHom

theorem AddMonoidHom.toAddHom_injective E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N], Function.Injective AddMonoidHom.toAddHom

theorem MonoidHom.toMulHom_injective E1 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N], Function.Injective MonoidHom.toMulHom

theorem ZeroHom.comp_id E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] (f : ZeroHom M N), f.comp (ZeroHom.id M) = f

theorem OneHom.comp_id E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] (f : OneHom M N), f.comp (OneHom.id M) = f

theorem MulHom.comp_id E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M →ₙ* N), f.comp (MulHom.id M) = f

theorem AddHom.comp_id E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M →ₙ+ N), f.comp (AddHom.id M) = f

theorem AddMonoidHom.comp_id E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : M →+ N), f.comp (AddMonoidHom.id M) = f

theorem MonoidHom.comp_id E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : M →* N), f.comp (MonoidHom.id M) = f

theorem OneHom.id_comp E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] (f : OneHom M N), (OneHom.id N).comp f = f

theorem ZeroHom.id_comp E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] (f : ZeroHom M N), (ZeroHom.id N).comp f = f

theorem AddHom.id_comp E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M →ₙ+ N), (AddHom.id N).comp f = f

theorem MulHom.id_comp E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M →ₙ* N), (MulHom.id N).comp f = f

theorem MonoidHom.id_comp E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOne N] (f : M →* N), (MonoidHom.id N).comp f = f

theorem AddMonoidHom.id_comp E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZero N] (f : M →+ N), (AddMonoidHom.id N).comp f = f

theorem AddMonoidHom.map_nsmul E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddMonoid M] [inst_1 : AddMonoid N] (f : M →+ N) (n : ℕ) (a : M),
  f (n • a) = n • f a

theorem MonoidHom.map_pow E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Monoid M] [inst_1 : Monoid N] (f : M →* N) (a : M) (n : ℕ), f (a ^ n) = f a ^ n

theorem AddMonoidHom.map_zsmul' E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : SubNegMonoid M] [inst_1 : SubNegMonoid N] (f : M →+ N),
  (∀ (x : M), f (-x) = -f x) → ∀ (n : ℤ) (a : M), f (n • a) = n • f a

theorem MonoidHom.map_zpow' E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : DivInvMonoid M] [inst_1 : DivInvMonoid N] (f : M →* N),
  (∀ (x : M), f x⁻¹ = (f x)⁻¹) → ∀ (a : M) (n : ℤ), f (a ^ n) = f a ^ n

def OneHom.inverse E1 #

{M : Type u_4} →
  {N : Type u_5} →
    [inst : One M] → [inst_1 : One N] → (f : OneHom M N) → (g : N → M) → Function.LeftInverse g ⇑f → OneHom N M

Makes a OneHom inverse from the bijective inverse of a OneHom

theorem ZeroHom.inverse_apply E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N] (f : ZeroHom M N) (g : N → M)
  (h₁ : Function.LeftInverse g ⇑f) (a : N), (f.inverse g h₁) a = g a

def ZeroHom.inverse E1 #

{M : Type u_4} →
  {N : Type u_5} →
    [inst : Zero M] → [inst_1 : Zero N] → (f : ZeroHom M N) → (g : N → M) → Function.LeftInverse g ⇑f → ZeroHom N M

Make a ZeroHom inverse from the bijective inverse of a ZeroHom

theorem OneHom.inverse_apply E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N] (f : OneHom M N) (g : N → M)
  (h₁ : Function.LeftInverse g ⇑f) (a : N), (f.inverse g h₁) a = g a

def MulHom.inverse E1 #

{M : Type u_4} →
  {N : Type u_5} →
    [inst : Mul M] →
      [inst_1 : Mul N] → (f : M →ₙ* N) → (g : N → M) → Function.LeftInverse g ⇑f → Function.RightInverse g ⇑f → N →ₙ* M

Makes a multiplicative inverse from a bijection which preserves multiplication.

theorem MulHom.inverse_apply E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Mul M] [inst_1 : Mul N] (f : M →ₙ* N) (g : N → M)
  (h₁ : Function.LeftInverse g ⇑f) (h₂ : Function.RightInverse g ⇑f) (a : N), (f.inverse g h₁ h₂) a = g a

theorem AddHom.inverse_apply E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Add M] [inst_1 : Add N] (f : M →ₙ+ N) (g : N → M)
  (h₁ : Function.LeftInverse g ⇑f) (h₂ : Function.RightInverse g ⇑f) (a : N), (f.inverse g h₁ h₂) a = g a

def AddHom.inverse E1 #

{M : Type u_4} →
  {N : Type u_5} →
    [inst : Add M] →
      [inst_1 : Add N] → (f : M →ₙ+ N) → (g : N → M) → Function.LeftInverse g ⇑f → Function.RightInverse g ⇑f → N →ₙ+ M

Makes an additive inverse from a bijection which preserves addition.

theorem Function.Surjective.isMulCommutative E1 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Mul M] [inst_1 : Mul N] [inst_2 : FunLike F M N]
  [MulHomClass F M N] {f : F}, Function.Surjective ⇑f → ∀ [IsMulCommutative M], IsMulCommutative N

If M and N have multiplications, f is a surjective multiplicative map, and M is commutative, then N is commutative.

theorem Function.Surjective.isAddCommutative E1 #

∀ {M : Type u_4} {N : Type u_5} {F : Type u_9} [inst : Add M] [inst_1 : Add N] [inst_2 : FunLike F M N]
  [AddHomClass F M N] {f : F}, Function.Surjective ⇑f → ∀ [IsAddCommutative M], IsAddCommutative N

If M and N have additions, f is a surjective additive map, and M is commutative, then N is commutative.

def MonoidHom.inverse E1 #

{A : Type u_10} →
  {B : Type u_11} →
    [inst : Monoid A] →
      [inst_1 : Monoid B] → (f : A →* B) → (g : B → A) → Function.LeftInverse g ⇑f → Function.RightInverse g ⇑f → B →* A

The inverse of a bijective MonoidHom is a MonoidHom.

theorem AddMonoidHom.inverse_apply E0 #

∀ {A : Type u_10} {B : Type u_11} [inst : AddMonoid A] [inst_1 : AddMonoid B] (f : A →+ B) (g : B → A)
  (h₁ : Function.LeftInverse g ⇑f) (h₂ : Function.RightInverse g ⇑f) (a : B), (f.inverse g h₁ h₂) a = g a

theorem MonoidHom.inverse_apply E0 #

∀ {A : Type u_10} {B : Type u_11} [inst : Monoid A] [inst_1 : Monoid B] (f : A →* B) (g : B → A)
  (h₁ : Function.LeftInverse g ⇑f) (h₂ : Function.RightInverse g ⇑f) (a : B), (f.inverse g h₁ h₂) a = g a

def AddMonoidHom.inverse E1 #

{A : Type u_10} →
  {B : Type u_11} →
    [inst : AddMonoid A] →
      [inst_1 : AddMonoid B] →
        (f : A →+ B) → (g : B → A) → Function.LeftInverse g ⇑f → Function.RightInverse g ⇑f → B →+ A

The inverse of a bijective AddMonoidHom is an AddMonoidHom.

def Monoid.End E1 #

(M : Type u_4) → [MulOne M] → Type u_4

The monoid of endomorphisms.

def AddMonoid.End E1 #

(M : Type u_4) → [AddZero M] → Type u_4

The monoid of endomorphisms.

instance Monoid.End.instFunLike E0 #

(M : Type u_4) → [inst : MulOne M] → FunLike (Monoid.End M) M M

instance AddMonoid.End.instFunLike E0 #

(M : Type u_4) → [inst : AddZero M] → FunLike (AddMonoid.End M) M M

theorem AddMonoid.End.ext_iff E0 #

∀ {M : Type u_4} [inst : AddZero M] {f g : AddMonoid.End M}, f = g ↔ ∀ (x : M), f x = g x

theorem AddMonoid.End.ext E1 #

∀ (M : Type u_4) [inst : AddZero M] {f g : AddMonoid.End M}, (∀ (x : M), f x = g x) → f = g

theorem Monoid.End.ext_iff E0 #

∀ {M : Type u_4} [inst : MulOne M] {f g : Monoid.End M}, f = g ↔ ∀ (x : M), f x = g x

theorem Monoid.End.ext E1 #

∀ (M : Type u_4) [inst : MulOne M] {f g : Monoid.End M}, (∀ (x : M), f x = g x) → f = g

instance AddMonoid.End.instAddMonoidHomClass E0 #

∀ (M : Type u_4) [inst : AddZero M], AddMonoidHomClass (AddMonoid.End M) M M

instance Monoid.End.instMonoidHomClass E0 #

∀ (M : Type u_4) [inst : MulOne M], MonoidHomClass (Monoid.End M) M M

instance Monoid.End.instOne E0 #

(M : Type u_4) → [inst : MulOne M] → One (Monoid.End M)

instance AddMonoid.End.instOne E0 #

(M : Type u_4) → [inst : AddZero M] → One (AddMonoid.End M)

instance Monoid.End.instMul E0 #

(M : Type u_4) → [inst : MulOne M] → Mul (Monoid.End M)

instance AddMonoid.End.instMul E0 #

(M : Type u_4) → [inst : AddZero M] → Mul (AddMonoid.End M)

instance Monoid.End.instMonoid E0 #

(M : Type u_4) → [inst : MulOne M] → Monoid (Monoid.End M)

instance AddMonoid.End.instMonoid E0 #

(M : Type u_4) → [inst : AddZero M] → Monoid (AddMonoid.End M)

instance AddMonoid.End.instInhabited E0 #

(M : Type u_4) → [inst : AddZero M] → Inhabited (AddMonoid.End M)

instance Monoid.End.instInhabited E0 #

(M : Type u_4) → [inst : MulOne M] → Inhabited (Monoid.End M)

theorem Monoid.End.coe_pow E0 #

∀ (M : Type u_4) [inst : MulOne M] (f : Monoid.End M) (n : ℕ), ⇑(f ^ n) = (⇑f)^[n]

theorem AddMonoid.End.coe_pow E0 #

∀ (M : Type u_4) [inst : AddZero M] (f : AddMonoid.End M) (n : ℕ), ⇑(f ^ n) = (⇑f)^[n]

theorem Monoid.End.coe_one E0 #

∀ (M : Type u_4) [inst : MulOne M], ⇑1 = id

theorem AddMonoid.End.coe_one E0 #

∀ (M : Type u_4) [inst : AddZero M], ⇑1 = id

theorem Monoid.End.coe_mul E0 #

∀ (M : Type u_4) [inst : MulOne M] (f g : Monoid.End M), ⇑(f * g) = ⇑f ∘ ⇑g

theorem AddMonoid.End.coe_mul E0 #

∀ (M : Type u_4) [inst : AddZero M] (f g : AddMonoid.End M), ⇑(f * g) = ⇑f ∘ ⇑g

instance instOneOneHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : One M] → [inst_1 : One N] → One (OneHom M N)

1 is the homomorphism sending all elements to 1.

instance instZeroZeroHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Zero M] → [inst_1 : Zero N] → Zero (ZeroHom M N)

0 is the homomorphism sending all elements to 0.

instance instIsOneApplyOneHom E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : One M] [inst_1 : One N], IsOneApply (OneHom M N)

instance instIsZeroApplyZeroHom E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Zero M] [inst_1 : Zero N], IsZeroApply (ZeroHom M N)

instance instOneMulHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Mul M] → [inst_1 : MulOneClass N] → One (M →ₙ* N)

1 is the multiplicative homomorphism sending all elements to 1.

instance instZeroAddHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Add M] → [inst_1 : AddZeroClass N] → Zero (M →ₙ+ N)

0 is the additive homomorphism sending all elements to 0

instance instOneMonoidHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : MulOne M] → [inst_1 : MulOneClass N] → One (M →* N)

1 is the monoid homomorphism sending all elements to 1.

instance instZeroAddMonoidHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : AddZero M] → [inst_1 : AddZeroClass N] → Zero (M →+ N)

0 is the additive monoid homomorphism sending all elements to 0.

theorem AddMonoidHom.zero_apply E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : AddZero M] [inst_1 : AddZeroClass N] (x : M), 0 x = 0

theorem MonoidHom.one_apply E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : MulOne M] [inst_1 : MulOneClass N] (x : M), 1 x = 1

theorem OneHom.one_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : One M] [inst_1 : One N] [inst_2 : One P] (f : OneHom M N),
  OneHom.comp 1 f = 1

theorem ZeroHom.zero_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Zero M] [inst_1 : Zero N] [inst_2 : Zero P] (f : ZeroHom M N),
  ZeroHom.comp 0 f = 0

theorem ZeroHom.comp_zero E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : Zero M] [inst_1 : Zero N] [inst_2 : Zero P] (f : ZeroHom N P),
  f.comp 0 = 0

theorem OneHom.comp_one E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : One M] [inst_1 : One N] [inst_2 : One P] (f : OneHom N P),
  f.comp 1 = 1

instance instInhabitedOneHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : One M] → [inst_1 : One N] → Inhabited (OneHom M N)

instance instInhabitedZeroHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Zero M] → [inst_1 : Zero N] → Inhabited (ZeroHom M N)

instance instInhabitedAddHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Add M] → [inst_1 : AddZeroClass N] → Inhabited (M →ₙ+ N)

instance instInhabitedMulHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : Mul M] → [inst_1 : MulOneClass N] → Inhabited (M →ₙ* N)

instance instInhabitedAddMonoidHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : AddZero M] → [inst_1 : AddZeroClass N] → Inhabited (M →+ N)

instance instInhabitedMonoidHom E0 #

{M : Type u_4} → {N : Type u_5} → [inst : MulOne M] → [inst_1 : MulOneClass N] → Inhabited (M →* N)

theorem MonoidHom.one_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : MulOne M] [inst_1 : MulOne N] [inst_2 : MulOneClass P]
  (f : M →* N), MonoidHom.comp 1 f = 1

theorem AddMonoidHom.zero_comp E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : AddZero M] [inst_1 : AddZero N] [inst_2 : AddZeroClass P]
  (f : M →+ N), AddMonoidHom.comp 0 f = 0

theorem AddMonoidHom.comp_zero E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : AddZero M] [inst_1 : AddZeroClass N] [inst_2 : AddZeroClass P]
  (f : N →+ P), f.comp 0 = 0

theorem MonoidHom.comp_one E0 #

∀ {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : MulOne M] [inst_1 : MulOneClass N] [inst_2 : MulOneClass P]
  (f : N →* P), f.comp 1 = 1

theorem MonoidHom.map_inv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Group α] [inst_1 : DivisionMonoid β] (f : α →* β) (a : α), f a⁻¹ = (f a)⁻¹

Group homomorphisms preserve inverse.

theorem AddMonoidHom.map_neg E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddGroup α] [inst_1 : SubtractionMonoid β] (f : α →+ β) (a : α), f (-a) = -f a

Additive group homomorphisms preserve negation.

theorem MonoidHom.map_zpow E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Group α] [inst_1 : DivisionMonoid β] (f : α →* β) (g : α) (n : ℤ),
  f (g ^ n) = f g ^ n

Group homomorphisms preserve integer power.

theorem AddMonoidHom.map_zsmul E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddGroup α] [inst_1 : SubtractionMonoid β] (f : α →+ β) (n : ℤ) (g : α),
  f (n • g) = n • f g

Additive group homomorphisms preserve integer scaling.

theorem MonoidHom.map_div E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Group α] [inst_1 : DivisionMonoid β] (f : α →* β) (g h : α),
  f (g / h) = f g / f h

Group homomorphisms preserve division.

theorem AddMonoidHom.map_sub E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddGroup α] [inst_1 : SubtractionMonoid β] (f : α →+ β) (g h : α),
  f (g - h) = f g - f h

Additive group homomorphisms preserve subtraction.

theorem MonoidHom.map_mul_inv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Group α] [inst_1 : DivisionMonoid β] (f : α →* β) (g h : α),
  f (g * h⁻¹) = f g * (f h)⁻¹

Group homomorphisms preserve division.

theorem AddMonoidHom.map_add_neg E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddGroup α] [inst_1 : SubtractionMonoid β] (f : α →+ β) (g h : α),
  f (g + -h) = f g + -f h

Additive group homomorphisms preserve subtraction.

theorem iterate_map_add E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : Add M] [inst_1 : FunLike F M M] [AddHomClass F M M] (f : F) (n : ℕ) (x y : M),
  (⇑f)^[n] (x + y) = (⇑f)^[n] x + (⇑f)^[n] y

theorem iterate_map_mul E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : Mul M] [inst_1 : FunLike F M M] [MulHomClass F M M] (f : F) (n : ℕ) (x y : M),
  (⇑f)^[n] (x * y) = (⇑f)^[n] x * (⇑f)^[n] y

theorem iterate_map_one E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : One M] [inst_1 : FunLike F M M] [OneHomClass F M M] (f : F) (n : ℕ),
  (⇑f)^[n] 1 = 1

theorem iterate_map_zero E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : Zero M] [inst_1 : FunLike F M M] [ZeroHomClass F M M] (f : F) (n : ℕ),
  (⇑f)^[n] 0 = 0

theorem iterate_map_neg E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : AddGroup M] [inst_1 : FunLike F M M] [AddMonoidHomClass F M M] (f : F) (n : ℕ)
  (x : M), (⇑f)^[n] (-x) = -(⇑f)^[n] x

theorem iterate_map_inv E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : Group M] [inst_1 : FunLike F M M] [MonoidHomClass F M M] (f : F) (n : ℕ)
  (x : M), (⇑f)^[n] x⁻¹ = ((⇑f)^[n] x)⁻¹

theorem iterate_map_div E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : Group M] [inst_1 : FunLike F M M] [MonoidHomClass F M M] (f : F) (n : ℕ)
  (x y : M), (⇑f)^[n] (x / y) = (⇑f)^[n] x / (⇑f)^[n] y

theorem iterate_map_sub E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : AddGroup M] [inst_1 : FunLike F M M] [AddMonoidHomClass F M M] (f : F) (n : ℕ)
  (x y : M), (⇑f)^[n] (x - y) = (⇑f)^[n] x - (⇑f)^[n] y

theorem iterate_map_pow E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : Monoid M] [inst_1 : FunLike F M M] [MonoidHomClass F M M] (f : F) (n : ℕ)
  (x : M) (k : ℕ), (⇑f)^[n] (x ^ k) = (⇑f)^[n] x ^ k

theorem iterate_map_nsmul E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : AddMonoid M] [inst_1 : FunLike F M M] [AddMonoidHomClass F M M] (f : F)
  (n : ℕ) (x : M) (k : ℕ), (⇑f)^[n] (k • x) = k • (⇑f)^[n] x

theorem iterate_map_zpow E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : Group M] [inst_1 : FunLike F M M] [MonoidHomClass F M M] (f : F) (n : ℕ)
  (x : M) (k : ℤ), (⇑f)^[n] (x ^ k) = (⇑f)^[n] x ^ k

theorem iterate_map_zsmul E0 #

∀ {M : Type u_10} {F : Type u_11} [inst : AddGroup M] [inst_1 : FunLike F M M] [AddMonoidHomClass F M M] (f : F) (n : ℕ)
  (x : M) (k : ℤ), (⇑f)^[n] (k • x) = k • (⇑f)^[n] x

Deprecated aliases

NameNew nameSince
AddMonoidHom.coe_coeAddMonoidHom.coe_ofClass2026-09-15
AddMonoidHomClass.toAddMonoidHomAddMonoidHom.ofClass2026-09-15
Function.Surjective.add_commFunction.Surjective.isAddCommutative2026-08-11
Function.Surjective.mul_commFunction.Surjective.isMulCommutative2026-08-11
MonoidHom.coe_coeMonoidHom.coe_ofClass2026-09-15
MonoidHomClass.toMonoidHomMonoidHom.ofClass2026-09-15
OneHom.one_applyone_apply2026-11-10
ZeroHom.zero_applyzero_apply2026-11-10