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.Basic

80 declarations and 12 deprecated aliases. Mathlib docs · Source

def powMonoidHom E1 #

{α : Type u_1} → [inst : CommMonoid α] → ℕ → α →* α

The nth power map on a commutative monoid for a natural n, considered as a morphism of monoids.

theorem nsmulAddMonoidHom_apply E0 #

∀ {α : Type u_1} [inst : AddCommMonoid α] (n : ℕ) (x : α), (nsmulAddMonoidHom n) x = n • x

def nsmulAddMonoidHom E1 #

{α : Type u_1} → [inst : AddCommMonoid α] → ℕ → α →+ α

Multiplication by a natural n on a commutative additive monoid, considered as a morphism of additive monoids.

theorem powMonoidHom_apply E0 #

∀ {α : Type u_1} [inst : CommMonoid α] (n : ℕ) (x : α), (powMonoidHom n) x = x ^ n

def zpowGroupHom E1 #

{α : Type u_1} → [inst : DivisionCommMonoid α] → ℤ → α →* α

The n-th power map (for an integer n) on a commutative group, considered as a group homomorphism.

def zsmulAddGroupHom E1 #

{α : Type u_1} → [inst : SubtractionCommMonoid α] → ℤ → α →+ α

Multiplication by an integer n on a commutative additive group, considered as an additive group homomorphism.

theorem zpowGroupHom_apply E0 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (n : ℤ) (x : α), (zpowGroupHom n) x = x ^ n

theorem zsmulAddGroupHom_apply E0 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (n : ℤ) (x : α), (zsmulAddGroupHom n) x = n • x

def invMonoidHom E1 #

{α : Type u_1} → [inst : DivisionCommMonoid α] → α →* α

Inversion on a commutative group, considered as a monoid homomorphism.

def negAddMonoidHom E1 #

{α : Type u_1} → [inst : SubtractionCommMonoid α] → α →+ α

Negation on a commutative additive group, considered as an additive monoid homomorphism.

theorem coe_invMonoidHom E0 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α], ⇑invMonoidHom = Inv.inv

theorem coe_negAddMonoidHom E0 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α], ⇑negAddMonoidHom = Neg.neg

theorem negAddMonoidHom_apply E0 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α] (a : α), negAddMonoidHom a = -a

theorem invMonoidHom_apply E0 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α] (a : α), invMonoidHom a = a⁻¹

theorem invMonoidHom_comp_invMonoidHom E0 #

∀ {α : Type u_1} [inst : DivisionCommMonoid α], invMonoidHom.comp invMonoidHom = MonoidHom.id α

theorem negAddMonoidHom_comp_negAddMonoidHom E0 #

∀ {α : Type u_1} [inst : SubtractionCommMonoid α], negAddMonoidHom.comp negAddMonoidHom = AddMonoidHom.id α

instance OneHom.instMul E0 #

{M : Type u_2} → {N : Type u_3} → [inst : One M] → [inst_1 : MulOneClass N] → Mul (OneHom M N)

Given two one-preserving morphisms f, g, f * g is the one-preserving morphism sending x to f x * g x.

instance ZeroHom.instAdd E0 #

{M : Type u_2} → {N : Type u_3} → [inst : Zero M] → [inst_1 : AddZeroClass N] → Add (ZeroHom M N)

Given two zero-preserving morphisms f, g, f + g is the zero-preserving morphism sending x to f x + g x.

instance ZeroHom.instIsAddApply E0 #

∀ {M : Type u_2} {N : Type u_3} [inst : Zero M] [inst_1 : AddZeroClass N], IsAddApply (ZeroHom M N)

instance OneHom.instIsMulApply E0 #

∀ {M : Type u_2} {N : Type u_3} [inst : One M] [inst_1 : MulOneClass N], IsMulApply (OneHom M N)

theorem OneHom.mul_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : One M] [inst_1 : One N] [inst_2 : MulOneClass P]
  (g₁ g₂ : OneHom N P) (f : OneHom M N), (g₁ * g₂).comp f = g₁.comp f * g₂.comp f

theorem ZeroHom.add_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : Zero M] [inst_1 : Zero N] [inst_2 : AddZeroClass P]
  (g₁ g₂ : ZeroHom N P) (f : ZeroHom M N), (g₁ + g₂).comp f = g₁.comp f + g₂.comp f

instance OneHom.instInv E0 #

{M : Type u_2} → {N : Type u_3} → [inst : One M] → [inst_1 : InvOneClass N] → Inv (OneHom M N)

Given a one-preserving morphism f, f⁻¹ is the one-preserving morphism sending x to (f x)⁻¹.

instance ZeroHom.instNeg E0 #

{M : Type u_2} → {N : Type u_3} → [inst : Zero M] → [inst_1 : NegZeroClass N] → Neg (ZeroHom M N)

Given a zero-preserving morphism f, -f is the zero-preserving morphism sending x to -f x.

instance OneHom.instIsInvApply E0 #

∀ {M : Type u_2} {N : Type u_3} [inst : One M] [inst_1 : InvOneClass N], IsInvApply (OneHom M N)

instance ZeroHom.instIsNegApply E0 #

∀ {M : Type u_2} {N : Type u_3} [inst : Zero M] [inst_1 : NegZeroClass N], IsNegApply (ZeroHom M N)

theorem ZeroHom.neg_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : Zero M] [inst_1 : Zero N] [inst_2 : NegZeroClass P]
  (g : ZeroHom N P) (f : ZeroHom M N), (-g).comp f = -g.comp f

theorem OneHom.inv_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : One M] [inst_1 : One N] [inst_2 : InvOneClass P] (g : OneHom N P)
  (f : OneHom M N), g⁻¹.comp f = (g.comp f)⁻¹

instance OneHom.instDiv E0 #

{M : Type u_2} → {N : Type u_3} → [inst : One M] → [inst_1 : DivisionMonoid N] → Div (OneHom M N)

Given two one-preserving morphisms f, g, f / g is the one-preserving morphism sending x to f x / g x.

instance ZeroHom.instSub E0 #

{M : Type u_2} → {N : Type u_3} → [inst : Zero M] → [inst_1 : SubtractionMonoid N] → Sub (ZeroHom M N)

Given two zero-preserving morphisms f, g, f - g is the additive morphism sending x to f x - g x.

instance OneHom.instIsDivApply E0 #

∀ {M : Type u_2} {N : Type u_3} [inst : One M] [inst_1 : DivisionMonoid N], IsDivApply (OneHom M N)

instance ZeroHom.instIsSubApply E0 #

∀ {M : Type u_2} {N : Type u_3} [inst : Zero M] [inst_1 : SubtractionMonoid N], IsSubApply (ZeroHom M N)

theorem ZeroHom.sub_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : Zero M] [inst_1 : Zero N] [inst_2 : SubtractionMonoid P]
  (g₁ g₂ : ZeroHom N P) (f : ZeroHom M N), (g₁ - g₂).comp f = g₁.comp f - g₂.comp f

theorem OneHom.div_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : One M] [inst_1 : One N] [inst_2 : DivisionMonoid P]
  (g₁ g₂ : OneHom N P) (f : OneHom M N), (g₁ / g₂).comp f = g₁.comp f / g₂.comp f

instance MulHom.instMul E0 #

{M : Type u_2} → {N : Type u_3} → [inst : Mul M] → [inst_1 : CommSemigroup N] → Mul (M →ₙ* N)

Given two mul morphisms f, g to a commutative semigroup, f * g is the mul morphism sending x to f x * g x.

instance AddHom.instAdd E0 #

{M : Type u_2} → {N : Type u_3} → [inst : Add M] → [inst_1 : AddCommSemigroup N] → Add (M →ₙ+ N)

Given two additive morphisms f, g to an additive commutative semigroup, f + g is the additive morphism sending x to f x + g x.

theorem MulHom.mul_apply E0 #

∀ {M : Type u_8} {N : Type u_9} [inst : Mul M] [inst_1 : CommSemigroup N] (f g : M →ₙ* N) (x : M), (f * g) x = f x * g x

theorem AddHom.add_apply E0 #

∀ {M : Type u_8} {N : Type u_9} [inst : Add M] [inst_1 : AddCommSemigroup N] (f g : M →ₙ+ N) (x : M),
  (f + g) x = f x + g x

theorem MulHom.mul_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : Mul M] [inst_1 : Mul N] [inst_2 : CommSemigroup P]
  (g₁ g₂ : N →ₙ* P) (f : M →ₙ* N), (g₁ * g₂).comp f = g₁.comp f * g₂.comp f

theorem AddHom.add_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : Add M] [inst_1 : Add N] [inst_2 : AddCommSemigroup P]
  (g₁ g₂ : N →ₙ+ P) (f : M →ₙ+ N), (g₁ + g₂).comp f = g₁.comp f + g₂.comp f

theorem MulHom.comp_mul E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : Mul M] [inst_1 : CommSemigroup N] [inst_2 : CommSemigroup P]
  (g : N →ₙ* P) (f₁ f₂ : M →ₙ* N), g.comp (f₁ * f₂) = g.comp f₁ * g.comp f₂

theorem AddHom.comp_add E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : Add M] [inst_1 : AddCommSemigroup N]
  [inst_2 : AddCommSemigroup P] (g : N →ₙ+ P) (f₁ f₂ : M →ₙ+ N), g.comp (f₁ + f₂) = g.comp f₁ + g.comp f₂

theorem injective_iff_map_eq_one E1 #

∀ {F : Type u_7} {G : Type u_8} {H : Type u_9} [inst : Group G] [inst_1 : MulOneClass H] [inst_2 : FunLike F G H]
  [MonoidHomClass F G H] (f : F), Function.Injective ⇑f ↔ ∀ (a : G), f a = 1 → a = 1

A homomorphism from a group to a monoid is injective iff its kernel is trivial. For the iff statement on the triviality of the kernel, see injective_iff_map_eq_one'.

theorem injective_iff_map_eq_zero E1 #

∀ {F : Type u_7} {G : Type u_8} {H : Type u_9} [inst : AddGroup G] [inst_1 : AddZeroClass H] [inst_2 : FunLike F G H]
  [AddMonoidHomClass F G H] (f : F), Function.Injective ⇑f ↔ ∀ (a : G), f a = 0 → a = 0

A homomorphism from an additive group to an additive monoid is injective iff its kernel is trivial. For the iff statement on the triviality of the kernel, see injective_iff_map_eq_zero'.

theorem injective_iff_map_eq_one' E1 #

∀ {F : Type u_7} {G : Type u_8} {H : Type u_9} [inst : Group G] [inst_1 : MulOneClass H] [inst_2 : FunLike F G H]
  [MonoidHomClass F G H] (f : F), Function.Injective ⇑f ↔ ∀ (a : G), f a = 1 ↔ a = 1

A homomorphism from a group to a monoid is injective iff its kernel is trivial, stated as an iff on the triviality of the kernel. For the implication, see injective_iff_map_eq_one.

theorem injective_iff_map_eq_zero' E1 #

∀ {F : Type u_7} {G : Type u_8} {H : Type u_9} [inst : AddGroup G] [inst_1 : AddZeroClass H] [inst_2 : FunLike F G H]
  [AddMonoidHomClass F G H] (f : F), Function.Injective ⇑f ↔ ∀ (a : G), f a = 0 ↔ a = 0

A homomorphism from an additive group to an additive monoid is injective iff its kernel is trivial, stated as an iff on the triviality of the kernel. For the implication, see injective_iff_map_eq_zero.

def MonoidHom.ofMapMulInv E1 #

{G : Type u_5} →
  [inst : Group G] →
    {H : Type u_8} → [inst_1 : Group H] → (f : G → H) → (∀ (a b : G), f (a * b⁻¹) = f a * (f b)⁻¹) → G →* H

Makes a group homomorphism from a proof that the map preserves right division fun x y => x * y⁻¹. See also MonoidHom.of_map_div for a version using fun x y => x / y.

def AddMonoidHom.ofMapAddNeg E1 #

{G : Type u_5} →
  [inst : AddGroup G] →
    {H : Type u_8} → [inst_1 : AddGroup H] → (f : G → H) → (∀ (a b : G), f (a + -b) = f a + -f b) → G →+ H

Makes an additive group homomorphism from a proof that the map preserves the operation fun a b => a + -b. See also AddMonoidHom.ofMapSub for a version using fun a b => a - b.

theorem AddMonoidHom.coe_of_map_add_neg E0 #

∀ {G : Type u_5} [inst : AddGroup G] {H : Type u_8} [inst_1 : AddGroup H] (f : G → H)
  (map_sub : ∀ (a b : G), f (a + -b) = f a + -f b), ⇑(AddMonoidHom.ofMapAddNeg f map_sub) = f

theorem MonoidHom.coe_of_map_mul_inv E0 #

∀ {G : Type u_5} [inst : Group G] {H : Type u_8} [inst_1 : Group H] (f : G → H)
  (map_div : ∀ (a b : G), f (a * b⁻¹) = f a * (f b)⁻¹), ⇑(MonoidHom.ofMapMulInv f map_div) = f

def MonoidHom.ofMapDiv E1 #

{G : Type u_5} →
  [inst : Group G] → {H : Type u_8} → [inst_1 : Group H] → (f : G → H) → (∀ (x y : G), f (x / y) = f x / f y) → G →* H

Define a morphism of additive groups given a map which respects ratios.

def AddMonoidHom.ofMapSub E1 #

{G : Type u_5} →
  [inst : AddGroup G] →
    {H : Type u_8} → [inst_1 : AddGroup H] → (f : G → H) → (∀ (x y : G), f (x - y) = f x - f y) → G →+ H

Define a morphism of additive groups given a map which respects difference.

theorem MonoidHom.coe_of_map_div E0 #

∀ {G : Type u_5} [inst : Group G] {H : Type u_8} [inst_1 : Group H] (f : G → H)
  (hf : ∀ (x y : G), f (x / y) = f x / f y), ⇑(MonoidHom.ofMapDiv f hf) = f

theorem AddMonoidHom.coe_of_map_sub E0 #

∀ {G : Type u_5} [inst : AddGroup G] {H : Type u_8} [inst_1 : AddGroup H] (f : G → H)
  (hf : ∀ (x y : G), f (x - y) = f x - f y), ⇑(AddMonoidHom.ofMapSub f hf) = f

instance MonoidHom.mul E0 #

{M : Type u_2} → {N : Type u_3} → [inst : MulOneClass M] → [inst_1 : CommMonoid N] → Mul (M →* N)

Given two monoid morphisms f, g to a commutative monoid, f * g is the monoid morphism sending x to f x * g x.

instance AddMonoidHom.add E0 #

{M : Type u_2} → {N : Type u_3} → [inst : AddZeroClass M] → [inst_1 : AddCommMonoid N] → Add (M →+ N)

Given two additive monoid morphisms f, g to an additive commutative monoid, f + g is the additive monoid morphism sending x to f x + g x.

theorem AddMonoidHom.add_apply E0 #

∀ {M : Type u_2} {N : Type u_3} [inst : AddZeroClass M] [inst_1 : AddCommMonoid N] (f g : M →+ N) (x : M),
  (f + g) x = f x + g x

theorem MonoidHom.mul_apply E0 #

∀ {M : Type u_2} {N : Type u_3} [inst : MulOneClass M] [inst_1 : CommMonoid N] (f g : M →* N) (x : M),
  (f * g) x = f x * g x

theorem MonoidHom.mul_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : MulOneClass M] [inst_1 : CommMonoid N] [inst_2 : MulOneClass P]
  (g₁ g₂ : M →* N) (f : P →* M), (g₁ * g₂).comp f = g₁.comp f * g₂.comp f

theorem AddMonoidHom.add_comp E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : AddZeroClass M] [inst_1 : AddCommMonoid N]
  [inst_2 : AddZeroClass P] (g₁ g₂ : M →+ N) (f : P →+ M), (g₁ + g₂).comp f = g₁.comp f + g₂.comp f

theorem MonoidHom.comp_mul E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : MulOneClass M] [inst_1 : CommMonoid N] [inst_2 : CommMonoid P]
  (g : N →* P) (f₁ f₂ : M →* N), g.comp (f₁ * f₂) = g.comp f₁ * g.comp f₂

theorem AddMonoidHom.comp_add E1 #

∀ {M : Type u_2} {N : Type u_3} {P : Type u_4} [inst : AddZeroClass M] [inst_1 : AddCommMonoid N]
  [inst_2 : AddCommMonoid P] (g : N →+ P) (f₁ f₂ : M →+ N), g.comp (f₁ + f₂) = g.comp f₁ + g.comp f₂

instance MonoidHom.instInv E0 #

{M : Type u_2} → {G : Type u_5} → [inst : MulOneClass M] → [inst_1 : CommGroup G] → Inv (M →* G)

If f is a monoid homomorphism to a commutative group, then f⁻¹ is the homomorphism sending x to (f x)⁻¹.

instance AddMonoidHom.instNeg E0 #

{M : Type u_2} → {G : Type u_5} → [inst : AddZeroClass M] → [inst_1 : AddCommGroup G] → Neg (M →+ G)

If f is an additive monoid homomorphism to an additive commutative group, then -f is the homomorphism sending x to -(f x).

theorem MonoidHom.inv_apply E0 #

∀ {M : Type u_2} {G : Type u_5} [inst : MulOneClass M] [inst_1 : CommGroup G] (f : M →* G) (x : M), f⁻¹ x = (f x)⁻¹

theorem AddMonoidHom.neg_apply E0 #

∀ {M : Type u_2} {G : Type u_5} [inst : AddZeroClass M] [inst_1 : AddCommGroup G] (f : M →+ G) (x : M), (-f) x = -f x

theorem AddMonoidHom.neg_comp E0 #

∀ {M : Type u_2} {N : Type u_3} {G : Type u_5} [inst : AddZeroClass M] [inst_1 : AddZeroClass N]
  [inst_2 : AddCommGroup G] (φ : N →+ G) (ψ : M →+ N), (-φ).comp ψ = -φ.comp ψ

theorem MonoidHom.inv_comp E0 #

∀ {M : Type u_2} {N : Type u_3} {G : Type u_5} [inst : MulOneClass M] [inst_1 : MulOneClass N] [inst_2 : CommGroup G]
  (φ : N →* G) (ψ : M →* N), φ⁻¹.comp ψ = (φ.comp ψ)⁻¹

theorem MonoidHom.comp_inv E0 #

∀ {M : Type u_2} {G : Type u_5} {H : Type u_6} [inst : MulOneClass M] [inst_1 : CommGroup G] [inst_2 : CommGroup H]
  (φ : G →* H) (ψ : M →* G), φ.comp ψ⁻¹ = (φ.comp ψ)⁻¹

theorem AddMonoidHom.comp_neg E0 #

∀ {M : Type u_2} {G : Type u_5} {H : Type u_6} [inst : AddZeroClass M] [inst_1 : AddCommGroup G]
  [inst_2 : AddCommGroup H] (φ : G →+ H) (ψ : M →+ G), φ.comp (-ψ) = -φ.comp ψ

instance MonoidHom.instDiv E0 #

{M : Type u_2} → {G : Type u_5} → [inst : MulOneClass M] → [inst_1 : CommGroup G] → Div (M →* G)

If f and g are monoid homomorphisms to a commutative group, then f / g is the homomorphism sending x to (f x) / (g x).

instance AddMonoidHom.instSub E0 #

{M : Type u_2} → {G : Type u_5} → [inst : AddZeroClass M] → [inst_1 : AddCommGroup G] → Sub (M →+ G)

If f and g are monoid homomorphisms to an additive commutative group, then f - g is the homomorphism sending x to (f x) - (g x).

theorem AddMonoidHom.sub_apply E0 #

∀ {M : Type u_2} {G : Type u_5} [inst : AddZeroClass M] [inst_1 : AddCommGroup G] (f g : M →+ G) (x : M),
  (f - g) x = f x - g x

theorem MonoidHom.div_apply E0 #

∀ {M : Type u_2} {G : Type u_5} [inst : MulOneClass M] [inst_1 : CommGroup G] (f g : M →* G) (x : M),
  (f / g) x = f x / g x

theorem MonoidHom.div_comp E0 #

∀ {M : Type u_2} {N : Type u_3} {G : Type u_5} [inst : MulOneClass M] [inst_1 : MulOneClass N] [inst_2 : CommGroup G]
  (f g : N →* G) (h : M →* N), (f / g).comp h = f.comp h / g.comp h

theorem AddMonoidHom.sub_comp E0 #

∀ {M : Type u_2} {N : Type u_3} {G : Type u_5} [inst : AddZeroClass M] [inst_1 : AddZeroClass N]
  [inst_2 : AddCommGroup G] (f g : N →+ G) (h : M →+ N), (f - g).comp h = f.comp h - g.comp h

theorem MonoidHom.comp_div E0 #

∀ {M : Type u_2} {G : Type u_5} {H : Type u_6} [inst : MulOneClass M] [inst_1 : CommGroup G] [inst_2 : CommGroup H]
  (f : G →* H) (g h : M →* G), f.comp (g / h) = f.comp g / f.comp h

theorem AddMonoidHom.comp_sub E0 #

∀ {M : Type u_2} {G : Type u_5} {H : Type u_6} [inst : AddZeroClass M] [inst_1 : AddCommGroup G]
  [inst_2 : AddCommGroup H] (f : G →+ H) (g h : M →+ G), f.comp (g - h) = f.comp g - f.comp h

def MonoidHom.commGroupOfInjective E1 #

{G : Type u_5} →
  {H : Type u_6} → [inst : Group G] → [inst_1 : CommGroup H] → (f : G →* H) → Function.Injective ⇑f → CommGroup G

If H is commutative and G →* H is injective, then G is commutative.

def MonoidHom.commGroupOfSurjective E1 #

{G : Type u_5} →
  {H : Type u_6} → [inst : CommGroup G] → [inst_1 : Group H] → (f : G →* H) → Function.Surjective ⇑f → CommGroup H

If G is commutative and G →* H is surjective, then H is commutative.

Deprecated aliases

NameNew nameSince
OneHom.coe_divFunLike.coe_div2026-11-10
OneHom.coe_invFunLike.coe_inv2026-11-10
OneHom.coe_mulFunLike.coe_mul2026-11-10
OneHom.div_applydiv_apply2026-11-10
OneHom.inv_applyinv_apply2026-11-10
OneHom.mul_applymul_apply2026-11-10
ZeroHom.add_applyadd_apply2026-11-10
ZeroHom.coe_addFunLike.coe_add2026-11-10
ZeroHom.coe_negFunLike.coe_neg2026-11-10
ZeroHom.coe_subFunLike.coe_sub2026-11-10
ZeroHom.neg_applyneg_apply2026-11-10
ZeroHom.sub_applysub_apply2026-11-10