Operations on Submonoid
s #
In this file we define various operations on Submonoid
s and MonoidHom
s.
Main definitions #
Conversion between multiplicative and additive definitions #
Submonoid.toAddSubmonoid
,Submonoid.toAddSubmonoid'
,AddSubmonoid.toSubmonoid
,AddSubmonoid.toSubmonoid'
: convert between multiplicative and additive submonoids ofM
,Multiplicative M
, andAdditive M
. These are stated asOrderIso
s.
(Commutative) monoid structure on a submonoid #
Submonoid.toMonoid
,Submonoid.toCommMonoid
: a submonoid inherits a (commutative) monoid structure.
Group actions by submonoids #
Submonoid.MulAction
,Submonoid.DistribMulAction
: a submonoid inherits (distributive) multiplicative actions.
Operations on submonoids #
Submonoid.comap
: preimage of a submonoid under a monoid homomorphism as a submonoid of the domain;Submonoid.map
: image of a submonoid under a monoid homomorphism as a submonoid of the codomain;Submonoid.prod
: product of two submonoidss : Submonoid M
andt : Submonoid N
as a submonoid ofM × N
;
Monoid homomorphisms between submonoid #
Submonoid.subtype
: embedding of a submonoid into the ambient monoid.Submonoid.inclusion
: given two submonoidsS
,T
such thatS ≤ T
,S.inclusion T
is the inclusion ofS
intoT
as a monoid homomorphism;MulEquiv.submonoidCongr
: converts a proof ofS = T
into a monoid isomorphism betweenS
andT
.Submonoid.prodEquiv
: monoid isomorphism betweens.prod t
ands × t
;
Operations on MonoidHom
s #
MonoidHom.mrange
: range of a monoid homomorphism as a submonoid of the codomain;MonoidHom.mker
: kernel of a monoid homomorphism as a submonoid of the domain;MonoidHom.restrict
: restrict a monoid homomorphism to a submonoid;MonoidHom.codRestrict
: restrict the codomain of a monoid homomorphism to a submonoid;MonoidHom.mrangeRestrict
: restrict a monoid homomorphism to its range;
Tags #
submonoid, range, product, map, comap
Conversion to/from Additive
/Multiplicative
#
Submonoids of monoid M
are isomorphic to additive submonoids of Additive M
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Additive submonoids of an additive monoid Additive M
are isomorphic to submonoids of M
.
Equations
- AddSubmonoid.toSubmonoid' = OrderIso.symm Submonoid.toAddSubmonoid
Instances For
Additive submonoids of an additive monoid A
are isomorphic to
multiplicative submonoids of Multiplicative A
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Submonoids of a monoid Multiplicative A
are isomorphic to additive submonoids of A
.
Equations
- Submonoid.toAddSubmonoid' = OrderIso.symm AddSubmonoid.toSubmonoid
Instances For
The preimage of an AddSubmonoid
along an AddMonoid
homomorphism is an AddSubmonoid
.
Equations
- AddSubmonoid.comap f S = { toAddSubsemigroup := { carrier := ⇑f ⁻¹' ↑S, add_mem' := ⋯ }, zero_mem' := ⋯ }
Instances For
The preimage of a submonoid along a monoid homomorphism is a submonoid.
Equations
- Submonoid.comap f S = { toSubsemigroup := { carrier := ⇑f ⁻¹' ↑S, mul_mem' := ⋯ }, one_mem' := ⋯ }
Instances For
The image of an AddSubmonoid
along an AddMonoid
homomorphism is an AddSubmonoid
.
Equations
- AddSubmonoid.map f S = { toAddSubsemigroup := { carrier := ⇑f '' ↑S, add_mem' := ⋯ }, zero_mem' := ⋯ }
Instances For
The image of a submonoid along a monoid homomorphism is a submonoid.
Equations
- Submonoid.map f S = { toSubsemigroup := { carrier := ⇑f '' ↑S, mul_mem' := ⋯ }, one_mem' := ⋯ }
Instances For
Equations
- ⋯ = ⋯
Instances For
map f
and comap f
form a GaloisCoinsertion
when f
is injective.
Equations
Instances For
map f
and comap f
form a GaloisCoinsertion
when f
is injective.
Equations
Instances For
map f
and comap f
form a GaloisInsertion
when f
is surjective.
Equations
Instances For
map f
and comap f
form a GaloisInsertion
when f
is surjective.
Equations
Instances For
An AddSubmonoid
of an AddMonoid
inherits a zero.
Equations
- ZeroMemClass.zero S' = { zero := { val := 0, property := ⋯ } }
A submonoid of a monoid inherits a 1.
Equations
- OneMemClass.one S' = { one := { val := 1, property := ⋯ } }
An AddSubmonoid
of an AddMonoid
inherits a scalar multiplication.
Equations
- AddSubmonoidClass.nSMul S = { smul := fun (n : ℕ) (a : ↥S) => { val := n • ↑a, property := ⋯ } }
A submonoid of a monoid inherits a power operator.
Equations
- SubmonoidClass.nPow S = { pow := fun (a : ↥S) (n : ℕ) => { val := ↑a ^ n, property := ⋯ } }
An AddSubmonoid
of a unital additive magma inherits a unital additive magma structure.
Equations
- AddSubmonoidClass.toAddZeroClass S = Function.Injective.addZeroClass Subtype.val ⋯ ⋯ ⋯
A submonoid of a unital magma inherits a unital magma structure.
Equations
- SubmonoidClass.toMulOneClass S = Function.Injective.mulOneClass Subtype.val ⋯ ⋯ ⋯
An AddSubmonoid
of an AddMonoid
inherits an AddMonoid
structure.
Equations
- AddSubmonoidClass.toAddMonoid S = Function.Injective.addMonoid Subtype.val ⋯ ⋯ ⋯ ⋯
A submonoid of a monoid inherits a monoid structure.
Equations
- SubmonoidClass.toMonoid S = Function.Injective.monoid Subtype.val ⋯ ⋯ ⋯ ⋯
An AddSubmonoid
of an AddCommMonoid
is an AddCommMonoid
.
Equations
- AddSubmonoidClass.toAddCommMonoid S = Function.Injective.addCommMonoid Subtype.val ⋯ ⋯ ⋯ ⋯
A submonoid of a CommMonoid
is a CommMonoid
.
Equations
- SubmonoidClass.toCommMonoid S = Function.Injective.commMonoid Subtype.val ⋯ ⋯ ⋯ ⋯
The natural monoid hom from an AddSubmonoid
of AddMonoid
M
to M
.
Equations
- AddSubmonoidClass.subtype S' = { toZeroHom := { toFun := Subtype.val, map_zero' := ⋯ }, map_add' := ⋯ }
Instances For
The natural monoid hom from a submonoid of monoid M
to M
.
Equations
- SubmonoidClass.subtype S' = { toOneHom := { toFun := Subtype.val, map_one' := ⋯ }, map_mul' := ⋯ }
Instances For
An AddSubmonoid
of an AddMonoid
inherits an addition.
Equations
- AddSubmonoid.add S = { add := fun (a b : ↥S) => { val := ↑a + ↑b, property := ⋯ } }
A submonoid of a monoid inherits a multiplication.
Equations
- Submonoid.mul S = { mul := fun (a b : ↥S) => { val := ↑a * ↑b, property := ⋯ } }
An AddSubmonoid
of an AddMonoid
inherits a zero.
Equations
- AddSubmonoid.zero S = { zero := { val := 0, property := ⋯ } }
A submonoid of a monoid inherits a 1.
Equations
- Submonoid.one S = { one := { val := 1, property := ⋯ } }
An AddSubmonoid
of a unital additive magma inherits a unital additive magma structure.
Equations
- AddSubmonoid.toAddZeroClass S = Function.Injective.addZeroClass Subtype.val ⋯ ⋯ ⋯
A submonoid of a unital magma inherits a unital magma structure.
Equations
- Submonoid.toMulOneClass S = Function.Injective.mulOneClass Subtype.val ⋯ ⋯ ⋯
An AddSubmonoid
of an AddMonoid
inherits an AddMonoid
structure.
Equations
- AddSubmonoid.toAddMonoid S = Function.Injective.addMonoid Subtype.val ⋯ ⋯ ⋯ ⋯
A submonoid of a monoid inherits a monoid structure.
Equations
- Submonoid.toMonoid S = Function.Injective.monoid Subtype.val ⋯ ⋯ ⋯ ⋯
An AddSubmonoid
of an AddCommMonoid
is an AddCommMonoid
.
Equations
- AddSubmonoid.toAddCommMonoid S = Function.Injective.addCommMonoid Subtype.val ⋯ ⋯ ⋯ ⋯
A submonoid of a CommMonoid
is a CommMonoid
.
Equations
- Submonoid.toCommMonoid S = Function.Injective.commMonoid Subtype.val ⋯ ⋯ ⋯ ⋯
The natural monoid hom from an AddSubmonoid
of AddMonoid
M
to M
.
Equations
- AddSubmonoid.subtype S = { toZeroHom := { toFun := Subtype.val, map_zero' := ⋯ }, map_add' := ⋯ }
Instances For
The natural monoid hom from a submonoid of monoid M
to M
.
Equations
- Submonoid.subtype S = { toOneHom := { toFun := Subtype.val, map_one' := ⋯ }, map_mul' := ⋯ }
Instances For
The top additive submonoid is isomorphic to the additive monoid.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The top submonoid is isomorphic to the monoid.
Equations
Instances For
An additive subgroup is isomorphic to its image under an injective function. If you
have an isomorphism, use AddEquiv.addSubmonoidMap
for better definitional equalities.
Equations
- AddSubmonoid.equivMapOfInjective S f hf = let __src := Equiv.Set.image (⇑f) (↑S) hf; { toEquiv := __src, map_add' := ⋯ }
Instances For
A subgroup is isomorphic to its image under an injective function. If you have an isomorphism,
use MulEquiv.submonoidMap
for better definitional equalities.
Equations
- Submonoid.equivMapOfInjective S f hf = let __src := Equiv.Set.image (⇑f) (↑S) hf; { toEquiv := __src, map_mul' := ⋯ }
Instances For
Given AddSubmonoid
s s
, t
of AddMonoid
s A
, B
respectively, s × t
as an AddSubmonoid
of A × B
.
Equations
- AddSubmonoid.prod s t = { toAddSubsemigroup := { carrier := ↑s ×ˢ ↑t, add_mem' := ⋯ }, zero_mem' := ⋯ }
Instances For
Given submonoids s
, t
of monoids M
, N
respectively, s × t
as a submonoid
of M × N
.
Equations
- Submonoid.prod s t = { toSubsemigroup := { carrier := ↑s ×ˢ ↑t, mul_mem' := ⋯ }, one_mem' := ⋯ }
Instances For
The product of additive submonoids is isomorphic to their product as additive monoids
Equations
- AddSubmonoid.prodEquiv s t = let __src := Equiv.Set.prod ↑s ↑t; { toEquiv := __src, map_add' := ⋯ }
Instances For
The product of submonoids is isomorphic to their product as monoids.
Equations
- Submonoid.prodEquiv s t = let __src := Equiv.Set.prod ↑s ↑t; { toEquiv := __src, map_mul' := ⋯ }
Instances For
Equations
- ⋯ = ⋯
Instances For
Equations
- ⋯ = ⋯
Instances For
Equations
- ⋯ = ⋯
Instances For
Equations
- ⋯ = ⋯
Instances For
The range of an AddMonoidHom
is an AddSubmonoid
.
Equations
- AddMonoidHom.mrange f = AddSubmonoid.copy (AddSubmonoid.map f ⊤) (Set.range ⇑f) ⋯
Instances For
The range of a monoid homomorphism is a submonoid. See Note [range copy pattern].
Equations
- MonoidHom.mrange f = Submonoid.copy (Submonoid.map f ⊤) (Set.range ⇑f) ⋯
Instances For
The range of a surjective AddMonoid
hom is the whole of the codomain.
The range of a surjective monoid hom is the whole of the codomain.
The image under an AddMonoid
hom of the AddSubmonoid
generated by a set equals
the AddSubmonoid
generated by the image of the set.
The image under a monoid hom of the submonoid generated by a set equals the submonoid generated by the image of the set.
Restriction of an AddMonoid
hom to an AddSubmonoid
of the domain.
Equations
Instances For
Restriction of a monoid hom to a submonoid of the domain.
Equations
Instances For
Restriction of an AddMonoid
hom to an AddSubmonoid
of the codomain.
Equations
- AddMonoidHom.codRestrict f s h = { toZeroHom := { toFun := fun (n : M) => { val := f n, property := ⋯ }, map_zero' := ⋯ }, map_add' := ⋯ }
Instances For
Restriction of a monoid hom to a submonoid of the codomain.
Equations
- MonoidHom.codRestrict f s h = { toOneHom := { toFun := fun (n : M) => { val := f n, property := ⋯ }, map_one' := ⋯ }, map_mul' := ⋯ }
Instances For
Restriction of an AddMonoid
hom to its range interpreted as a submonoid.
Equations
Instances For
Restriction of a monoid hom to its range interpreted as a submonoid.
Equations
Instances For
Equations
- ⋯ = ⋯
Instances For
The additive kernel of an AddMonoid
hom is the AddSubmonoid
of
elements such that f x = 0
Equations
Instances For
The multiplicative kernel of a monoid hom is the submonoid of elements x : G
such
that f x = 1
Equations
Instances For
Equations
- AddMonoidHom.decidableMemMker f x = decidable_of_iff (f x = 0) ⋯
Equations
- MonoidHom.decidableMemMker f x = decidable_of_iff (f x = 1) ⋯
the AddMonoidHom
from the preimage of an additive submonoid to itself.
Equations
- AddMonoidHom.addSubmonoidComap f N' = { toZeroHom := { toFun := fun (x : ↥(AddSubmonoid.comap f N')) => { val := f ↑x, property := ⋯ }, map_zero' := ⋯ }, map_add' := ⋯ }
Instances For
The MonoidHom
from the preimage of a submonoid to itself.
Equations
- MonoidHom.submonoidComap f N' = { toOneHom := { toFun := fun (x : ↥(Submonoid.comap f N')) => { val := f ↑x, property := ⋯ }, map_one' := ⋯ }, map_mul' := ⋯ }
Instances For
the AddMonoidHom
from an additive submonoid to its image. See
AddEquiv.AddSubmonoidMap
for a variant for AddEquiv
s.
Equations
- AddMonoidHom.addSubmonoidMap f M' = { toZeroHom := { toFun := fun (x : ↥M') => { val := f ↑x, property := ⋯ }, map_zero' := ⋯ }, map_add' := ⋯ }
Instances For
The MonoidHom
from a submonoid to its image.
See MulEquiv.SubmonoidMap
for a variant for MulEquiv
s.
Equations
- MonoidHom.submonoidMap f M' = { toOneHom := { toFun := fun (x : ↥M') => { val := f ↑x, property := ⋯ }, map_one' := ⋯ }, map_mul' := ⋯ }
Instances For
The AddMonoid
hom associated to an inclusion of submonoids.
Equations
Instances For
The monoid hom associated to an inclusion of submonoids.
Equations
Instances For
An additive submonoid is either the trivial additive submonoid or nontrivial.
A submonoid is either the trivial submonoid or nontrivial.
An additive submonoid is either the trivial additive submonoid or contains a nonzero element.
A submonoid is either the trivial submonoid or contains a nonzero element.
Makes the identity additive isomorphism from a proof two submonoids of an additive monoid are equal.
Equations
- AddEquiv.addSubmonoidCongr h = let __src := Equiv.setCongr ⋯; { toEquiv := __src, map_add' := ⋯ }
Instances For
Makes the identity isomorphism from a proof that two submonoids of a multiplicative monoid are equal.
Equations
- MulEquiv.submonoidCongr h = let __src := Equiv.setCongr ⋯; { toEquiv := __src, map_mul' := ⋯ }
Instances For
An additive monoid homomorphism f : M →+ N
with a left-inverse g : N → M
defines an additive equivalence between M
and f.mrange
.
This is a bidirectional version of AddMonoidHom.mrange_restrict
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- ⋯ = ⋯
Instances For
A monoid homomorphism f : M →* N
with a left-inverse g : N → M
defines a multiplicative
equivalence between M
and f.mrange
.
This is a bidirectional version of MonoidHom.mrange_restrict
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An AddEquiv
φ
between two additive monoids M
and N
induces an AddEquiv
between a submonoid S ≤ M
and the submonoid φ(S) ≤ N
. See
AddMonoidHom.addSubmonoidMap
for a variant for AddMonoidHom
s.
Equations
- AddEquiv.addSubmonoidMap e S = let __src := Equiv.image ↑e ↑S; { toEquiv := __src, map_add' := ⋯ }
Instances For
A MulEquiv
φ
between two monoids M
and N
induces a MulEquiv
between
a submonoid S ≤ M
and the submonoid φ(S) ≤ N
.
See MonoidHom.submonoidMap
for a variant for MonoidHom
s.
Equations
- MulEquiv.submonoidMap e S = let __src := Equiv.image ↑e ↑S; { toEquiv := __src, map_mul' := ⋯ }
Instances For
Actions by Submonoid
s #
These instances transfer the action by an element m : M
of a monoid M
written as m • a
onto
the action by an element s : S
of a submonoid S : Submonoid M
such that s • a = (s : M) • a
.
These instances work particularly well in conjunction with Monoid.toMulAction
, enabling
s • m
as an alias for ↑s * m
.
Equations
- AddSubmonoid.vadd S = VAdd.comp α ⇑(AddSubmonoid.subtype S)
Equations
- Submonoid.smul S = SMul.comp α ⇑(Submonoid.subtype S)
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Note that this provides IsScalarTower S M' M'
which is needed by SMulMulAssoc
.
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
The additive action by an AddSubmonoid
is the action by the underlying AddMonoid
.
Equations
The action by a submonoid is the action by the underlying monoid.
Equations
The action by a submonoid is the action by the underlying monoid.
Equations
The additive equivalence between the type of additive units of M
and the additive submonoid whose elements are the additive units of M
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The multiplicative equivalence between the type of units of M
and the submonoid of unit
elements of M
.
Equations
- One or more equations did not get rendered due to their size.