# Unbundled monoid and group homomorphisms #

This file is deprecated, and is no longer imported by anything in mathlib other than other deprecated files, and test files. You should not need to import it.

This file defines predicates for unbundled monoid and group homomorphisms. Instead of using this file, please use MonoidHom, defined in Algebra.Hom.Group, with notation →*, for morphisms between monoids or groups. For example use φ : G →* H to represent a group homomorphism between multiplicative groups, and ψ : A →+ B to represent a group homomorphism between additive groups.

## Main Definitions #

IsMonoidHom (deprecated), IsGroupHom (deprecated)

## Tags #

IsGroupHom, IsMonoidHom

structure IsAddHom {α : Type u_1} {β : Type u_2} [Add α] [Add β] (f : αβ) :

Predicate for maps which preserve an addition.

• map_add : ∀ (x y : α), f (x + y) = f x + f y

The proposition that f preserves addition.

Instances For
theorem IsAddHom.map_add {α : Type u_1} {β : Type u_2} [Add α] [Add β] {f : αβ} (self : ) (x : α) (y : α) :
f (x + y) = f x + f y

The proposition that f preserves addition.

structure IsMulHom {α : Type u_1} {β : Type u_2} [Mul α] [Mul β] (f : αβ) :

Predicate for maps which preserve a multiplication.

• map_mul : ∀ (x y : α), f (x * y) = f x * f y

The proposition that f preserves multiplication.

Instances For
theorem IsMulHom.map_mul {α : Type u_1} {β : Type u_2} [Mul α] [Mul β] {f : αβ} (self : ) (x : α) (y : α) :
f (x * y) = f x * f y

The proposition that f preserves multiplication.

theorem IsMulHom.id {α : Type u} [Mul α] :

The identity map preserves multiplication.

theorem IsAddHom.comp {α : Type u} {β : Type v} [Add α] [Add β] {γ : Type u_1} [Add γ] {f : αβ} {g : βγ} (hf : ) (hg : ) :

theorem IsMulHom.comp {α : Type u} {β : Type v} [Mul α] [Mul β] {γ : Type u_1} [Mul γ] {f : αβ} {g : βγ} (hf : ) (hg : ) :

The composition of maps which preserve multiplication, also preserves multiplication.

theorem IsAddHom.add {α : Type u_2} {β : Type u_3} [] [] {f : αβ} {g : αβ} (hf : ) (hg : ) :
IsAddHom fun (a : α) => f a + g a

A sum of maps which preserves addition, preserves addition when the target is commutative.

theorem IsMulHom.mul {α : Type u_2} {β : Type u_3} [] [] {f : αβ} {g : αβ} (hf : ) (hg : ) :
IsMulHom fun (a : α) => f a * g a

A product of maps which preserve multiplication, preserves multiplication when the target is commutative.

theorem IsAddHom.neg {α : Type u_2} {β : Type u_3} [Add α] [] {f : αβ} (hf : ) :
IsAddHom fun (a : α) => -f a

The negation of a map which preserves addition, preserves addition when the target is commutative.

theorem IsMulHom.inv {α : Type u_2} {β : Type u_3} [Mul α] [] {f : αβ} (hf : ) :
IsMulHom fun (a : α) => (f a)⁻¹

The inverse of a map which preserves multiplication, preserves multiplication when the target is commutative.

structure IsAddMonoidHom {α : Type u} {β : Type v} [] [] (f : αβ) extends :

Predicate for additive monoid homomorphisms (deprecated -- use the bundled MonoidHom version).

• map_add : ∀ (x y : α), f (x + y) = f x + f y
• map_zero : f 0 = 0

The proposition that f preserves the additive identity.

Instances For
theorem IsAddMonoidHom.map_zero {α : Type u} {β : Type v} [] [] {f : αβ} (self : ) :
f 0 = 0

The proposition that f preserves the additive identity.

structure IsMonoidHom {α : Type u} {β : Type v} [] [] (f : αβ) extends :

Predicate for monoid homomorphisms (deprecated -- use the bundled MonoidHom version).

• map_mul : ∀ (x y : α), f (x * y) = f x * f y
• map_one : f 1 = 1

The proposition that f preserves the multiplicative identity.

Instances For
theorem IsMonoidHom.map_one {α : Type u} {β : Type v} [] [] {f : αβ} (self : ) :
f 1 = 1

The proposition that f preserves the multiplicative identity.

def AddMonoidHom.of {M : Type u_1} {N : Type u_2} {mM : } {mN : } {f : MN} (h : ) :
M →+ N

Interpret a map f : M → N as a homomorphism M →+ N.

Equations
• = { toFun := f, map_zero' := , map_add' := }
Instances For
theorem AddMonoidHom.of.proof_1 {M : Type u_2} {N : Type u_1} {mM : } {mN : } {f : MN} (h : ) (x : M) (y : M) :
f (x + y) = f x + f y
def MonoidHom.of {M : Type u_1} {N : Type u_2} {mM : } {mN : } {f : MN} (h : ) :
M →* N

Interpret a map f : M → N as a homomorphism M →* N.

Equations
• = { toFun := f, map_one' := , map_mul' := }
Instances For
@[simp]
theorem AddMonoidHom.coe_of {M : Type u_1} {N : Type u_2} {mM : } {mN : } {f : MN} (hf : ) :
@[simp]
theorem MonoidHom.coe_of {M : Type u_1} {N : Type u_2} {mM : } {mN : } {f : MN} (hf : ) :
(MonoidHom.of hf) = f
theorem AddMonoidHom.isAddMonoidHom_coe {M : Type u_1} {N : Type u_2} {mM : } {mN : } (f : M →+ N) :
theorem MonoidHom.isMonoidHom_coe {M : Type u_1} {N : Type u_2} {mM : } {mN : } (f : M →* N) :
theorem AddEquiv.isAddHom {M : Type u_1} {N : Type u_2} [] [] (h : M ≃+ N) :

theorem MulEquiv.isMulHom {M : Type u_1} {N : Type u_2} [] [] (h : M ≃* N) :

A multiplicative isomorphism preserves multiplication (deprecated).

theorem AddEquiv.isAddMonoidHom {M : Type u_1} {N : Type u_2} [] [] (h : M ≃+ N) :

theorem MulEquiv.isMonoidHom {M : Type u_1} {N : Type u_2} [] [] (h : M ≃* N) :

A multiplicative bijection between two monoids is a monoid hom (deprecated -- use MulEquiv.toMonoidHom).

theorem IsAddMonoidHom.map_add' {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) (x : α) (y : α) :
f (x + y) = f x + f y

theorem IsMonoidHom.map_mul' {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) (x : α) (y : α) :
f (x * y) = f x * f y

A monoid homomorphism preserves multiplication.

theorem IsAddMonoidHom.neg {α : Type u_1} {β : Type u_2} [] [] {f : αβ} (hf : ) :
IsAddMonoidHom fun (a : α) => -f a

The negation of a map which preserves addition, preserves addition when the target is commutative.

theorem IsMonoidHom.inv {α : Type u_1} {β : Type u_2} [] [] {f : αβ} (hf : ) :
IsMonoidHom fun (a : α) => (f a)⁻¹

The inverse of a map which preserves multiplication, preserves multiplication when the target is commutative.

theorem IsAddHom.to_isAddMonoidHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :

theorem IsMulHom.to_isMonoidHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :

A map to a group preserving multiplication is a monoid homomorphism.

theorem IsAddMonoidHom.id {α : Type u} [] :

The identity map is an additive monoid homomorphism.

theorem IsMonoidHom.id {α : Type u} [] :

The identity map is a monoid homomorphism.

theorem IsAddMonoidHom.comp {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) {γ : Type u_1} [] {g : βγ} (hg : ) :

The composite of two additive monoid homomorphisms is an additive monoid homomorphism.

theorem IsMonoidHom.comp {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) {γ : Type u_1} [] {g : βγ} (hg : ) :

The composite of two monoid homomorphisms is a monoid homomorphism.

IsAddMonoidHom fun (y : γ) => x * y

Left multiplication in a ring is an additive monoid morphism.

IsAddMonoidHom fun (y : γ) => y * x

Right multiplication in a ring is an additive monoid morphism.

structure IsAddGroupHom {α : Type u} {β : Type v} [] [] (f : αβ) extends :

Predicate for additive group homomorphism (deprecated -- use bundled MonoidHom).

Instances For
structure IsGroupHom {α : Type u} {β : Type v} [] [] (f : αβ) extends :

Predicate for group homomorphisms (deprecated -- use bundled MonoidHom).

Instances For
∀ {x : } {x_1 : } (f : G →+ H),
theorem MonoidHom.isGroupHom {G : Type u_1} {H : Type u_2} :
∀ {x : } {x_1 : } (f : G →* H),
∀ {x : } {x_1 : } (h : G ≃+ H),
theorem MulEquiv.isGroupHom {G : Type u_1} {H : Type u_2} :
∀ {x : } {x_1 : } (h : G ≃* H),
theorem IsAddGroupHom.mk' {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ∀ (x y : α), f (x + y) = f x + f y) :

Construct IsAddGroupHom from its only hypothesis.

theorem IsGroupHom.mk' {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ∀ (x y : α), f (x * y) = f x * f y) :

Construct IsGroupHom from its only hypothesis.

theorem IsAddGroupHom.id {α : Type u} [] :

The identity is an additive group homomorphism.

theorem IsGroupHom.id {α : Type u} [] :

The identity is a group homomorphism.

theorem IsGroupHom.map_mul' {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) (x : α) (y : α) :
f (x * y) = f x * f y
theorem IsAddGroupHom.to_isAddMonoidHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :

theorem IsGroupHom.to_isMonoidHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :

A group homomorphism is a monoid homomorphism.

theorem IsAddGroupHom.map_zero {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :
f 0 = 0

An additive group homomorphism sends 0 to 0.

theorem IsGroupHom.map_one {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :
f 1 = 1

A group homomorphism sends 1 to 1.

theorem IsAddGroupHom.map_neg {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) (a : α) :
f (-a) = -f a

An additive group homomorphism sends negations to negations.

theorem IsGroupHom.map_inv {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) (a : α) :
f a⁻¹ = (f a)⁻¹

A group homomorphism sends inverses to inverses.

theorem IsAddGroupHom.map_sub {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) (a : α) (b : α) :
f (a - b) = f a - f b
theorem IsGroupHom.map_div {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) (a : α) (b : α) :
f (a / b) = f a / f b
theorem IsAddGroupHom.comp {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) {γ : Type u_1} [] {g : βγ} (hg : ) :

The composition of two additive group homomorphisms is an additive group homomorphism.

theorem IsGroupHom.comp {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) {γ : Type u_1} [] {g : βγ} (hg : ) :

The composition of two group homomorphisms is a group homomorphism.

theorem IsAddGroupHom.injective_iff {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :
∀ (a : α), f a = 0a = 0

An additive group homomorphism is injective if its kernel is trivial.

theorem IsGroupHom.injective_iff {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :
∀ (a : α), f a = 1a = 1

A group homomorphism is injective iff its kernel is trivial.

theorem IsAddGroupHom.add {α : Type u_1} {β : Type u_2} [] [] {f : αβ} {g : αβ} (hf : ) (hg : ) :
IsAddGroupHom fun (a : α) => f a + g a

The sum of two additive group homomorphisms is an additive group homomorphism if the target is commutative.

theorem IsGroupHom.mul {α : Type u_1} {β : Type u_2} [] [] {f : αβ} {g : αβ} (hf : ) (hg : ) :
IsGroupHom fun (a : α) => f a * g a

The product of group homomorphisms is a group homomorphism if the target is commutative.

theorem IsAddGroupHom.neg {α : Type u_1} {β : Type u_2} [] [] {f : αβ} (hf : ) :
IsAddGroupHom fun (a : α) => -f a

The negation of an additive group homomorphism is an additive group homomorphism if the target is commutative.

theorem IsGroupHom.inv {α : Type u_1} {β : Type u_2} [] [] {f : αβ} (hf : ) :
IsGroupHom fun (a : α) => (f a)⁻¹

The inverse of a group homomorphism is a group homomorphism if the target is commutative.

These instances look redundant, because Deprecated.Ring provides IsRingHom for a →+*. Nevertheless these are harmless, and helpful for stripping out dependencies on Deprecated.Ring.

theorem RingHom.to_isMonoidHom {R : Type u_1} {S : Type u_2} [] [] (f : R →+* S) :
theorem RingHom.to_isAddMonoidHom {R : Type u_1} {S : Type u_2} [] [] (f : R →+* S) :
theorem RingHom.to_isAddGroupHom {R : Type u_1} {S : Type u_2} [Ring R] [Ring S] (f : R →+* S) :
theorem Neg.isAddGroupHom {α : Type u} [] :

Negation is an AddGroup homomorphism if the AddGroup is commutative.

theorem Inv.isGroupHom {α : Type u} [] :
IsGroupHom Inv.inv

Inversion is a group homomorphism if the group is commutative.

theorem IsAddGroupHom.sub {α : Type u_1} {β : Type u_2} [] [] {f : αβ} {g : αβ} (hf : ) (hg : ) :
IsAddGroupHom fun (a : α) => f a - g a

The difference of two additive group homomorphisms is an additive group homomorphism if the target is commutative.

@[reducible, inline]
abbrev Units.map' {M : Type u_1} {N : Type u_2} [] [] {f : MN} (hf : ) :

The group homomorphism on units induced by a multiplicative morphism.

Equations
Instances For
@[simp]
theorem Units.coe_map' {M : Type u_1} {N : Type u_2} [] [] {f : MN} (hf : ) (x : Mˣ) :
((Units.map' hf) x) = f x
theorem Units.coe_isMonoidHom {M : Type u_1} [] :
IsMonoidHom fun (x : Mˣ) => x
theorem IsUnit.map' {M : Type u_1} {N : Type u_2} [] [] {f : MN} (hf : ) {x : M} (h : ) :
IsUnit (f x)
theorem Additive.isAddHom {α : Type u} {β : Type v} [Mul α] [Mul β] {f : αβ} (hf : ) :
theorem Multiplicative.isMulHom {α : Type u} {β : Type v} [Add α] [Add β] {f : αβ} (hf : ) :
theorem Additive.isAddMonoidHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :
theorem Multiplicative.isMonoidHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :
theorem Additive.isAddGroupHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :
theorem Multiplicative.isGroupHom {α : Type u} {β : Type v} [] [] {f : αβ} (hf : ) :