Subgroups #
This file defines multiplicative and additive subgroups as an extension of submonoids, in a bundled
form (unbundled subgroups are in deprecated/subgroups.lean).
We prove subgroups of a group form a complete lattice, and results about images and preimages of subgroups under group homomorphisms. The bundled subgroups use bundled monoid homomorphisms.
There are also theorems about the subgroups generated by an element or a subset of a group, defined both inductively and as the infimum of the set of subgroups containing a given element/subset.
Special thanks goes to Amelia Livingston and Yury Kudryashov for their help and inspiration.
Main definitions #
Notation used here:
-
G Naregroups -
Ais anadd_group -
H Karesubgroups ofGoradd_subgroups ofA -
xis an element of typeGor typeA -
f g : N →* Gare group homomorphisms -
s kare sets of elements of typeG
Definitions in the file:
-
subgroup G: the type of subgroups of a groupG -
add_subgroup A: the type of subgroups of an additive groupA -
complete_lattice (subgroup G): the subgroups ofGform a complete lattice -
subgroup.closure k: the minimal subgroup that includes the setk -
subgroup.subtype: the natural group homomorphism from a subgroup of groupGtoG -
subgroup.gi:closureforms a Galois insertion with the coercion to set -
subgroup.comap H f: the preimage of a subgroupHalong the group homomorphismfis also a subgroup -
subgroup.map f H: the image of a subgroupHalong the group homomorphismfis also a subgroup -
subgroup.prod H K: the product of subgroupsH,Kof groupsG,Nrespectively,H × Kis a subgroup ofG × N -
monoid_hom.range f: the range of the group homomorphismfis a subgroup -
monoid_hom.ker f: the kernel of a group homomorphismfis the subgroup of elementsx : Gsuch thatf x = 1 -
monoid_hom.eq_locus f g: given group homomorphismsf,g, the elements ofGsuch thatf x = g xform a subgroup ofG -
is_simple_group G: a class indicating that a group has exactly two normal subgroups
Implementation notes #
Subgroup inclusion is denoted ≤ rather than ⊆, although ∈ is defined as
membership of a subgroup's underlying set.
Tags #
subgroup, subgroups
Reinterpret an add_subgroup as an add_submonoid.
Equations
- subgroup.set_like = {coe := subgroup.carrier _inst_1, coe_injective' := _}
See Note [custom simps projection]
Equations
- subgroup.simps.coe S = ↑S
Equations
- K.fintype = show fintype {g // g ∈ K}, from infer_instance
Conversion to/from additive/multiplicative #
Supgroups of a group G are isomorphic to additive subgroups of additive G.
Equations
- subgroup.to_add_subgroup = {to_equiv := {to_fun := λ (S : subgroup G), {carrier := (⇑submonoid.to_add_submonoid S.to_submonoid).carrier, zero_mem' := _, add_mem' := _, neg_mem' := _}, inv_fun := λ (S : add_subgroup (additive G)), {carrier := (⇑add_submonoid.to_submonoid' S.to_add_submonoid).carrier, one_mem' := _, mul_mem' := _, inv_mem' := _}, left_inv := _, right_inv := _}, map_rel_iff' := _}
Additive subgroup of an additive group additive G are isomorphic to subgroup of G.
Additive supgroups of an additive group A are isomorphic to subgroups of multiplicative A.
Equations
- add_subgroup.to_subgroup = {to_equiv := {to_fun := λ (S : add_subgroup A), {carrier := (⇑add_submonoid.to_submonoid S.to_add_submonoid).carrier, one_mem' := _, mul_mem' := _, inv_mem' := _}, inv_fun := λ (S : subgroup (multiplicative A)), {carrier := (⇑submonoid.to_add_submonoid' S.to_submonoid).carrier, zero_mem' := _, add_mem' := _, neg_mem' := _}, left_inv := _, right_inv := _}, map_rel_iff' := _}
Subgroups of an additive group multiplicative A are isomorphic to additive subgroups of A.
Copy of a subgroup with a new carrier equal to the old one. Useful to fix definitional
equalities.
Copy of an additive subgroup with a new carrier equal to the old one.
Useful to fix definitional equalities
Two add_subgroups are equal if they have the same elements.
A subgroup contains the group's 1.
An add_subgroup contains the group's 0.
An add_subgroup is closed under addition.
An add_subgroup is closed under inverse.
An add_subgroup is closed under subtraction.
Sum of a list of elements in an add_subgroup is in the add_subgroup.
Sum of a multiset of elements in an add_subgroup of an add_comm_group
is in the add_subgroup.
Product of a multiset of elements in a subgroup of a comm_group is in the subgroup.
Sum of elements in an add_subgroup of an add_comm_group indexed by a finset
is in the add_subgroup.
Product of elements of a subgroup of a comm_group indexed by a finset is in the
subgroup.
A subgroup of a group inherits a multiplication.
Equations
- H.has_mul = H.to_submonoid.has_mul
An add_subgroup of an add_group inherits an addition.
A subgroup of a group inherits a 1.
Equations
- H.has_one = H.to_submonoid.has_one
An add_subgroup of an add_group inherits a zero.
A add_subgroup of a add_group inherits an inverse.
An add_subgroup of an add_group inherits a subtraction.
A subgroup of a group inherits a group structure.
Equations
- H.to_group = function.injective.group coe _ _ _ _ _
An add_subgroup of an add_group inherits an add_group structure.
An add_subgroup of an add_comm_group is an add_comm_group.
A subgroup of a comm_group is a comm_group.
Equations
- H.to_comm_group = function.injective.comm_group coe _ _ _ _ _
An add_subgroup of an add_ordered_comm_group is an add_ordered_comm_group.
A subgroup of an ordered_comm_group is an ordered_comm_group.
Equations
A subgroup of a linear_ordered_comm_group is a linear_ordered_comm_group.
Equations
An add_subgroup of a linear_ordered_add_comm_group is a
linear_ordered_add_comm_group.
The natural group hom from an add_subgroup of add_group G to G.
The inclusion homomorphism from a additive subgroup H contained in K to K.
The inclusion homomorphism from a subgroup H contained in K to K.
Equations
- subgroup.inclusion h = monoid_hom.mk' (λ (x : ↥H), ⟨↑x, _⟩) _
The add_subgroup G of the add_group G.
The trivial add_subgroup {0} of an add_group G.
Equations
- subgroup.inhabited = {default := ⊥}
A subgroup is either the trivial subgroup or nontrivial.
The inf of two subgroups is their intersection.
Equations
- subgroup.has_inf = {inf := λ (H₁ H₂ : subgroup G), {carrier := (H₁.to_submonoid ⊓ H₂.to_submonoid).carrier, one_mem' := _, mul_mem' := _, inv_mem' := _}}
The inf of two add_subgroupss is their intersection.
Subgroups of a group form a complete lattice.
Equations
- subgroup.complete_lattice = {sup := complete_lattice.sup (complete_lattice_of_Inf (subgroup G) subgroup.complete_lattice._proof_1), le := complete_lattice.le (complete_lattice_of_Inf (subgroup G) subgroup.complete_lattice._proof_1), lt := complete_lattice.lt (complete_lattice_of_Inf (subgroup G) subgroup.complete_lattice._proof_1), le_refl := _, le_trans := _, lt_iff_le_not_le := _, le_antisymm := _, le_sup_left := _, le_sup_right := _, sup_le := _, inf := has_inf.inf subgroup.has_inf, inf_le_left := _, inf_le_right := _, le_inf := _, top := ⊤, le_top := _, bot := ⊥, bot_le := _, Sup := complete_lattice.Sup (complete_lattice_of_Inf (subgroup G) subgroup.complete_lattice._proof_1), le_Sup := _, Sup_le := _, Inf := complete_lattice.Inf (complete_lattice_of_Inf (subgroup G) subgroup.complete_lattice._proof_1), Inf_le := _, le_Inf := _}
The add_subgroups of an add_group form a complete lattice.
Equations
- subgroup.unique = {to_inhabited := {default := ⊥}, uniq := _}
The add_subgroup generated by a set
The subgroup generated by a set includes the set.
The add_subgroup generated by a set includes the set.
An additive subgroup K includes closure k if and only if it includes k
An induction principle for closure membership. If p holds for 1 and all elements of k, and
is preserved under multiplication and inverse, then p holds for all elements of the closure
of k.
An induction principle for additive closure membership. If p holds for 0 and all
elements of k, and is preserved under addition and inverses, then p holds for all elements
of the additive closure of k.
An induction principle on elements of the subtype subgroup.closure.
If p holds for 1 and all elements of k, and is preserved under multiplication and inverse,
then p holds for all elements x : closure k.
The difference with subgroup.closure_induction is that this acts on the subtype.
An induction principle on elements of the subtype add_subgroup.closure.
If p holds for 0 and all elements of k, and is preserved under addition and negation,
then p holds for all elements x : closure k.
The difference with add_subgroup.closure_induction is that this acts on the subtype.
closure forms a Galois insertion with the coercion to set.
closure forms a Galois insertion with the coercion to set.
Equations
- subgroup.gi G = {choice := λ (s : set G) (_x : ↑(subgroup.closure s) ≤ s), subgroup.closure s, gc := _, le_l_u := _, choice_eq := _}
Closure of a subgroup K equals K.
Additive closure of an additive subgroup K equals K
The subgroup generated by an element of a group equals the set of integer number powers of the element.
An induction principle for closure membership. If p holds for 1 and all elements of
k and their inverse, and is preserved under multiplication, then p holds for all elements of
the closure of k.
An induction principle for additive closure membership. If p holds for 0 and all
elements of k and their negation, and is preserved under addition, then p holds for all
elements of the additive closure of k.
The preimage of an add_subgroup along an add_monoid homomorphism
is an add_subgroup.
The image of an add_subgroup along an add_monoid homomorphism
is an add_subgroup.
Given add_subgroups H, K of add_groups A, B respectively, H × K
as an add_subgroup of A × B.
Product of subgroups is isomorphic to their product as groups.
Product of additive subgroups is isomorphic to their product as additive groups
A subgroup is normal if whenever n ∈ H, then g * n * g⁻¹ ∈ H for every g : G
Instances
An add_subgroup is normal if whenever n ∈ H, then g + n - g ∈ H for every g : G
The center of a group G is the set of elements that commute with everything in
G
The normalizer of H is the largest subgroup of G inside which H is normal.
The set_normalizer of S is the subgroup of G whose elements satisfy g*S*g⁻¹=S
The set_normalizer of S is the subgroup of G whose elements satisfy
g+S-g=S.
Given a set s, conjugates_of_set s is the set of all conjugates of
the elements of s.
Equations
- group.conjugates_of_set s = ⋃ (a : G) (H : a ∈ s), conjugates_of a
The set of conjugates of s is closed under conjugation.
The normal closure of a set s is the subgroup closure of all the conjugates of
elements of s. It is the smallest normal subgroup containing s.
Equations
The normal closure of s is a normal subgroup.
The add_subgroup generated by an element of an add_group equals the set of
natural number multiples of the element.
The range of an add_monoid_hom from an add_group is an add_subgroup.
Equations
- f.decidable_mem_range = λ (x : N), fintype.decidable_exists_fintype
The canonical surjective group homomorphism G →* f(G) induced by a group
homomorphism G →* N.
Equations
- f.range_restrict = monoid_hom.mk' (λ (g : G), ⟨⇑f g, _⟩) _
The range of a surjective monoid homomorphism is the whole of the codomain.
The range of a surjective add_monoid homomorphism is the whole of the codomain.
Restriction of an add_group hom to an add_subgroup of the domain.
Restriction of an add_group hom to an add_subgroup of the codomain.
Computable alternative to monoid_hom.of_injective.
The range of an injective group homomorphism is isomorphic to its domain.
Equations
- monoid_hom.of_injective hf = mul_equiv.of_bijective (f.cod_restrict f.range monoid_hom.of_injective._proof_1) _
The multiplicative kernel of a monoid homomorphism is the subgroup of elements x : G such that
f x = 1
Equations
- f.ker = subgroup.comap f ⊥
The additive kernel of an add_monoid homomorphism is the add_subgroup of elements
such that f x = 0
Equations
- f.decidable_mem_ker = λ (x : G), decidable_of_iff (⇑f x = 1) _
The additive subgroup of elements x : G such that f x = g x
The image under an add_monoid hom of the add_subgroup generated by a set equals
the add_subgroup generated by the image of the set.
The image under a monoid homomorphism of the subgroup generated by a set equals the subgroup generated by the image of the set.
Auxiliary definition used to define lift_of_right_inverse
lift_of_right_inverse f f_inv hf g hg is the unique additive group homomorphism φ
- such that
φ.comp f = g(add_monoid_hom.lift_of_right_inverse_comp), - where
f : G₁ →+ G₂has a right_inversef_inv(hf), - and
g : G₂ →+ G₃satisfieshg : f.ker ≤ g.ker.
See add_monoid_hom.eq_lift_of_right_inverse for the uniqueness lemma.
G₁.
| \
f | \ g
| \
v \⌟
G₂----> G₃
∃!φ
lift_of_right_inverse f hf g hg is the unique group homomorphism φ
- such that
φ.comp f = g(monoid_hom.lift_of_right_inverse_comp), - where
f : G₁ →+* G₂has a right_inversef_inv(hf), - and
g : G₂ →+* G₃satisfieshg : f.ker ≤ g.ker.
See monoid_hom.eq_lift_of_right_inverse for the uniqueness lemma.
G₁.
| \
f | \ g
| \
v \⌟
G₂----> G₃
∃!φ
A non-computable version of add_monoid_hom.lift_of_right_inverse for when no
computable right inverse is available.
A non-computable version of monoid_hom.lift_of_right_inverse for when no computable right
inverse is available, that uses function.surj_inv.
The subgroup generated by an element.
Equations
- subgroup.gpowers g = (⇑(gpowers_hom G) g).range.copy (set.range (pow g)) _
The subgroup generated by an element.
Equations
- add_subgroup.gmultiples a = (⇑(gmultiples_hom A) a).range.copy (set.range (λ (_x : ℤ), _x • a)) _
Makes the identity isomorphism from a proof two subgroups of a multiplicative group are equal.
Equations
- mul_equiv.subgroup_congr h = {to_fun := (equiv.set_congr _).to_fun, inv_fun := (equiv.set_congr _).inv_fun, left_inv := _, right_inv := _, map_mul' := _}
Makes the identity additive isomorphism from a proof two subgroups of an additive group are equal.
- exists_pair_ne : ∃ (x y : A), x ≠ y
- eq_bot_or_eq_top_of_normal : ∀ (H : add_subgroup A), H.normal → H = ⊥ ∨ H = ⊤
An add_group is simple when it has exactly two normal add_subgroups.