-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20b4143
commit fed4fb6
Showing
8 changed files
with
692 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/- | ||
Copyright (c) 2018 Kenny Lau. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Kenny Lau | ||
The functor Grp → Ab which is the left adjoint | ||
of the forgetful functor Ab → Grp. | ||
-/ | ||
|
||
import group_theory.quotient_group | ||
|
||
universes u v | ||
|
||
section abelianization | ||
|
||
variables (α : Type u) [group α] | ||
|
||
def commutator : set α := | ||
{ x | ∃ L : list α, (∀ z ∈ L, ∃ p q, p * q * p⁻¹ * q⁻¹ = z) ∧ L.prod = x } | ||
|
||
instance : normal_subgroup (commutator α) := | ||
{ one_mem := ⟨[], by simp⟩, | ||
mul_mem := λ x y ⟨L1, HL1, HP1⟩ ⟨L2, HL2, HP2⟩, | ||
⟨L1 ++ L2, list.forall_mem_append.2 ⟨HL1, HL2⟩, by simp*⟩, | ||
inv_mem := λ x ⟨L, HL, HP⟩, ⟨L.reverse.map has_inv.inv, | ||
λ x hx, let ⟨y, h3, h4⟩ := list.exists_of_mem_map hx in | ||
let ⟨p, q, h5⟩ := HL y (list.mem_reverse.1 h3) in | ||
⟨q, p, by rw [← h4, ← h5]; simp [mul_assoc]⟩, | ||
by rw ← HP; from list.rec_on L (by simp) (λ hd tl ih, | ||
by rw [list.reverse_cons, list.map_append, list.prod_append, ih]; simp)⟩, | ||
normal := λ x ⟨L, HL, HP⟩ g, ⟨L.map $ λ z, g * z * g⁻¹, | ||
λ x hx, let ⟨y, h3, h4⟩ := list.exists_of_mem_map hx in | ||
let ⟨p, q, h5⟩ := HL y h3 in | ||
⟨g * p * g⁻¹, g * q * g⁻¹, | ||
by rw [← h4, ← h5]; simp [mul_assoc]⟩, | ||
by rw ← HP; from list.rec_on L (by simp) (λ hd tl ih, | ||
by rw [list.map_cons, list.prod_cons, ih]; simp [mul_assoc])⟩, } | ||
|
||
def abelianization : Type u := | ||
quotient_group.quotient $ commutator α | ||
|
||
local attribute [instance] quotient_group.left_rel normal_subgroup.to_is_subgroup | ||
|
||
instance : comm_group (abelianization α) := | ||
{ mul_comm := λ x y, quotient.induction_on₂ x y $ λ m n, | ||
quotient.sound $ ⟨[n⁻¹*m⁻¹*n*m], | ||
by simp; refine ⟨n⁻¹, m⁻¹, _⟩; simp, | ||
by simp [mul_assoc]⟩, | ||
.. quotient_group.group _ } | ||
|
||
variable {α} | ||
|
||
def abelianization.of (x : α) : abelianization α := | ||
quotient.mk x | ||
|
||
instance abelianization.of.is_group_hom : is_group_hom (@abelianization.of α _) := | ||
⟨λ _ _, rfl⟩ | ||
|
||
section to_comm_group | ||
|
||
variables {β : Type v} [comm_group β] (f : α → β) [is_group_hom f] | ||
|
||
def abelianization.to_comm_group : abelianization α → β := | ||
quotient_group.lift _ f $ λ x ⟨L, HL, hx⟩, | ||
hx ▸ list.rec_on L (λ _, is_group_hom.one f) (λ hd tl HL ih, | ||
by rw [list.forall_mem_cons] at ih; | ||
rcases ih with ⟨⟨p, q, hpq⟩, ih⟩; | ||
specialize HL ih; rw [list.prod_cons, is_group_hom.mul f, ← hpq, HL]; | ||
simp [is_group_hom.mul f, is_group_hom.inv f, mul_comm]) HL | ||
|
||
def abelianization.to_comm_group.is_group_hom : | ||
is_group_hom (abelianization.to_comm_group f) := | ||
quotient_group.is_group_hom_quotient_lift _ _ _ | ||
|
||
@[simp] lemma abelianization.to_comm_group.of (x : α) : | ||
abelianization.to_comm_group f (abelianization.of x) = f x := | ||
rfl | ||
|
||
theorem abelianization.to_comm_group.unique | ||
(g : abelianization α → β) [is_group_hom g] | ||
(hg : ∀ x, g (abelianization.of x) = f x) {x} : | ||
g x = abelianization.to_comm_group f x := | ||
quotient.induction_on x $ λ m, hg m | ||
|
||
end to_comm_group | ||
|
||
end abelianization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.