source := p.source.map i
target := p.target.map i
equiv := ((p.source.equivMapOfInjective i hi).symm.trans p.equiv).trans
(p.target.equivMapOfInjective i hi)
@[simp]theoremmap_equiv (p : PartialIsoG) (i : G→* K) (hi : Function.Injective i)
(a : p.source) :
((p.map i hi).equiv (p.source.equivMapOfInjective i hi a) : K) = i (p.equiv a) :=by
proof · 3
lines
change i (p.equiv ((p.source.equivMapOfInjective i hi).symm
(p.source.equivMapOfInjective i hi a))) = i (p.equiv a)
rw [MulEquiv.symm_apply_apply]
theoreminvariant_map (p : PartialIsoG) (i : G→* K) (hi : Function.Injective i)
(R : SubgroupG) (S : SubgroupK) (he : S.comap i = R) (h : p.InvariantR) :
(p.map i hi).InvariantS:=by
proof · 6
lines
intro a
obtain ⟨b,rfl⟩ := (p.source.equivMapOfInjective i hi).surjective a
rw [map_equiv]
change (p.equiv b : G) ∈S.comap i ↔ (b : G) ∈S.comap i
rw [he]
exact h b
theoremrealization (ps : List (PartialIsoG))
(hfg : ∀ p ∈ ps, p.source.FG) (R : SubgroupG)
(hinv : ∀ p ∈ ps, p.InvariantR) :
∃ (K : Type u) (_ : GroupK) (_ : Group.IsFinitelyPresentedK)
(i : G→* K), Function.Injective i ∧∃T : SetK, T.Finite∧
(Subgroup.closure (i '' (R : SetG) ∪T)).comap i = R∧∀ p ∈ ps, ∃ t ∈T, ∀a : p.source,
i (p.equiv a) = t * i a * t⁻¹:=by
proof · 55
lines
induction ps with
| nil =>
refine ⟨G,inferInstance,inferInstance,MonoidHom.id G,Function.injective_id,
∅,Set.finite_empty,?_,?_⟩
· simp
· simp
| cons p ps ih =>
obtain ⟨K,_,_,i,hi,T,hT,hR,hrel⟩ := ih
(fun q hq ↦ hfg q (List.mem_cons_of_mem p hq))
(fun q hq ↦ hinv q (List.mem_cons_of_mem p hq))
let q := p.map i hi
letE:=HNNExtensionK q.source q.target q.equiv
letj : K→* E:=HNNExtension.of
let i' := j.comp i
letC:=Subgroup.closure (i '' (R : SetG) ∪T)
letT' : SetE:= j '' T∪ {HNNExtension.t}
havehqfg : q.source.FG:=by
obtain ⟨S,hS⟩ := hfg p (List.mem_cons_self)
refine (Subgroup.fg_iff _).mpr ⟨i '' (S : SetG),?_,S.finite_toSet.image i⟩
rw [←MonoidHom.map_closure,hS]
rfl
havehCinv : q.InvariantC:=
p.invariant_map i hi RC hR (hinv p (List.mem_cons_self))
havehC : (Subgroup.closure (j '' (C : SetK) ∪ {HNNExtension.t})).comap j = C:=HNNSubgroup.closure_comap_of q.equiv C hCinv
havehclosure : Subgroup.closure (i' '' (R : SetG) ∪T') =
Subgroup.closure (j '' (C : SetK) ∪ {HNNExtension.t}) :=by
conv_rhs => rw [Subgroup.closure_union,←MonoidHom.map_closure j (C : SetK),Subgroup.closure_eq]
change Subgroup.closure (i' '' (R : SetG) ∪T') =
C.map j ⊔ Subgroup.closure {HNNExtension.t}
rw [showC.map j = Subgroup.closure (j '' (i '' (R : SetG) ∪T)) fromMonoidHom.map_closure j _]
rw [←Subgroup.closure_union]
congr 1
simp only [T',Set.image_union,Set.image_image,Set.union_assoc,i',MonoidHom.coe_comp]
rfl
refine ⟨E,inferInstance,HNN.finitelyPresented q.equiv hqfg,i',
(HNNExtension.of_injective (φ := q.equiv)).comp hi,T',
(hT.image j).union (Set.finite_singleton _),?_,?_⟩
· rw [hclosure]
change ((Subgroup.closure (j '' (C : SetK) ∪ {HNNExtension.t})).comap j).comap i = R
rw [hC]
exact hR
· intro a ha
rcases List.mem_cons.mp ha with rfl | ha
· refine ⟨HNNExtension.t,Or.inr rfl,?_⟩
intro b
have he :=HNNExtension.equiv_eq_conj (φ := q.equiv)
(a.source.equivMapOfInjective i hi b)
simpa only [q,PartialIso.map_equiv,i',j,MonoidHom.comp_apply,
Subgroup.coe_equivMapOfInjective_apply] using he
· obtain ⟨t,ht,he⟩ := hrel a ha
refine ⟨j t,Or.inl ⟨t,ht,rfl⟩,?_⟩
intro b
simpa only [i',MonoidHom.comp_apply,map_mul,map_inv] using congrArg j (he b)
theorembenign [Group.IsFinitelyPresentedG] (ps : List (PartialIsoG))
(hfg : ∀ p ∈ ps, p.source.FG) (S : SetG) (hS : S.Finite) :
IsBenign (subgroup ps S) :=by
proof · 26
lines
letR:= subgroup ps S
obtain ⟨K,_,_,i,hi,T,hT,hR,hrel⟩ :=FiniteHNN.realization ps hfg R
(fun p hp ↦ invariant ps S p hp)
letB:=Subgroup.closure (i '' S∪T)
havehB : B.FG:= (Subgroup.fg_iff _).mpr ⟨i '' S∪T, rfl, (hS.image i).union hT⟩
refine ⟨K,inferInstance,inferInstance,i,hi,B,hB,?_⟩
apply le_antisymm
· calcB.comap i ≤ (Subgroup.closure (i '' (R : SetG) ∪T)).comap i :=Subgroup.comap_mono (Subgroup.closure_mono
(Set.union_subset_union_left _ (Set.image_mono (subset ps S))))
_ = R:= hR
· apply minimal ps S (B.comap i)
· intro x hx
exact Subgroup.subset_closure (Or.inl ⟨x,hx,rfl⟩)
· intro p hp a
obtain ⟨t,ht,he⟩ := hrel p hp
havehtB : t ∈B:=Subgroup.subset_closure (Or.inr ht)
change i (p.equiv a) ∈B↔ i a ∈B
rw [he a]
constructor
· intro ha
have hh :=B.mul_mem (B.mul_mem (B.inv_mem htB) ha) htB
simpa only [inv_mul_cancel_left,mul_assoc,inv_mul_cancel,mul_one] using hh
· intro ha
exact B.mul_mem (B.mul_mem htB ha) (B.inv_mem htB)