Additional lemmas about monoid and group homomorphisms #
The n
th power map on a commutative monoid for a natural n
, considered as a morphism of
monoids.
Equations
- powMonoidHom n = { toFun := fun (x : α) => x ^ n, map_one' := ⋯, map_mul' := ⋯ }
Instances For
Multiplication by a natural n
on a commutative additive monoid,
considered as a morphism of additive monoids.
Equations
- nsmulAddMonoidHom n = { toFun := fun (x : α) => n • x, map_zero' := ⋯, map_add' := ⋯ }
Instances For
The n
-th power map (for an integer n
) on a commutative group, considered as a group
homomorphism.
Equations
- zpowGroupHom n = { toFun := fun (x : α) => x ^ n, map_one' := ⋯, map_mul' := ⋯ }
Instances For
Multiplication by an integer n
on a commutative additive group,
considered as an additive group homomorphism.
Equations
- zsmulAddGroupHom n = { toFun := fun (x : α) => n • x, map_zero' := ⋯, map_add' := ⋯ }
Instances For
Inversion on a commutative group, considered as a monoid homomorphism.
Equations
- invMonoidHom = { toFun := Inv.inv, map_one' := ⋯, map_mul' := ⋯ }
Instances For
Negation on a commutative additive group, considered as an additive monoid homomorphism.
Equations
- negAddMonoidHom = { toFun := Neg.neg, map_zero' := ⋯, map_add' := ⋯ }
Instances For
Given two mul morphisms f
, g
to a commutative semigroup, f * g
is the mul morphism
sending x
to f x * g x
.
Given two additive morphisms f
, g
to an additive commutative semigroup,
f + g
is the additive morphism sending x
to f x + g x
.
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'
.
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'
.
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
.
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
.
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
.
Equations
- MonoidHom.ofMapMulInv f map_div = MonoidHom.mk' f ⋯
Instances For
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
.
Equations
- AddMonoidHom.ofMapAddNeg f map_div = AddMonoidHom.mk' f ⋯
Instances For
Define a morphism of additive groups given a map which respects ratios.
Equations
- MonoidHom.ofMapDiv f hf = MonoidHom.ofMapMulInv f ⋯
Instances For
Given two monoid morphisms f
, g
to a commutative monoid, f * g
is the monoid morphism
sending x
to f x * g x
.
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
.
If f
is a monoid homomorphism to a commutative group, then f⁻¹
is the homomorphism sending
x
to (f x)⁻¹
.
Equations
- MonoidHom.instInv = { inv := fun (f : M →* G) => MonoidHom.mk' (fun (g : M) => (f g)⁻¹) ⋯ }
If f
is an additive monoid homomorphism to an additive commutative group,
then -f
is the homomorphism sending x
to -(f x)
.
Equations
- AddMonoidHom.instNeg = { neg := fun (f : M →+ G) => AddMonoidHom.mk' (fun (g : M) => -f 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)
.
Equations
- MonoidHom.instDiv = { div := fun (f g : M →* G) => MonoidHom.mk' (fun (x : M) => f x / g x) ⋯ }
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)
.
Equations
- AddMonoidHom.instSub = { sub := fun (f g : M →+ G) => AddMonoidHom.mk' (fun (x : M) => f x - g x) ⋯ }