Lean 4 · 49
declarations statementsfull
abbrev Kernel (G : Type u) [Group G] (T : Type v) (Q : Type w) := body · 1 line
G ∗ FreeGroup (T × Q)abbrev Base (G : Type u) [Group G] (T : Type v) [Group T] (Q : Type w) := body · 1 line
(G × T) ∗ FreeGroup Qdef shift (t : T) : MulAut (Kernel G T Q) := body · 2 lines
(MulEquiv.refl G).coprodCongr
(FreeGroup.freeGroupCongr ((Equiv.mulLeft t).prodCongr (Equiv.refl Q)))@[simp] theorem shift_inl (t : T) (g : G) : shift t (inl g : Kernel G T Q) = inl g := rfl @[simp] theorem shift_inr_of (t s : T) (q : Q) :
shift t (inr (FreeGroup.of (s,q)) : Kernel G T Q) = inr (FreeGroup.of (t*s,q)) := rfl def shifts : T →* MulAut (Kernel G T Q) where body · 19 lines
toFun := shift
map_one' := by
apply MulEquiv.toMonoidHom_injective
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp
· apply FreeGroup.ext_hom
rintro ⟨s,q⟩
simp
map_mul' t s := by
apply MulEquiv.toMonoidHom_injective
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp
· apply FreeGroup.ext_hom
rintro ⟨r,q⟩
simp [mul_assoc]abbrev ShiftGroup (G : Type u) [Group G] (T : Type v) [Group T] (Q : Type w) := body · 1 line
(Kernel G T Q) ⋊[shifts] Tdef coefficient : G →* Base G T Q := inl.comp (MonoidHom.inl G T) def translation : T →* Base G T Q := inl.comp (MonoidHom.inr G T) def marker (t : T) (q : Q) : Base G T Q := body · 1 line
translation t * inr (FreeGroup.of q) * (translation t)⁻¹def inclusion : Kernel G T Q →* Base G T Q := body · 1 line
Coprod.lift coefficient (FreeGroup.lift (fun p ↦ marker p.1 p.2))@[simp] theorem inclusion_inl (g : G) : inclusion (inl g : Kernel G T Q) = coefficient g := by proof · 1 line
simp [inclusion]
@[simp] theorem inclusion_inr_of (t : T) (q : Q) :
inclusion (inr (FreeGroup.of (t,q)) : Kernel G T Q) = marker t q := by proof · 1 line
simp [inclusion]
lemma commute_coefficient_translation (g : G) (t : T) :
Commute (coefficient g : Base G T Q) (translation t) := proof · 1 line
(MonoidHom.commute_inl_inr g t).map inllemma test_commute (g : G) (t : T) :
Commute (SemidirectProduct.inl (inl g) : ShiftGroup G T Q)
(SemidirectProduct.inr t) := by proof · 6 lines
apply SemidirectProduct.ext
· change inl g * shifts (1 : T) 1 = 1 * shifts t (inl g)
simp only [map_one, mul_one, one_mul]
rfl
· change (1 : T) * t = t * 1
simpdef test : Base G T Q →* ShiftGroup G T Q := body · 3 lines
Coprod.lift
((SemidirectProduct.inl.comp inl).noncommCoprod SemidirectProduct.inr test_commute)
(FreeGroup.lift (fun q ↦ SemidirectProduct.inl (inr (FreeGroup.of (1,q)))))@[simp] theorem test_coefficient (g : G) : test (coefficient g : Base G T Q) =
SemidirectProduct.inl (inl g) := by simp [test,coefficient] @[simp] theorem test_translation (t : T) : test (translation t : Base G T Q) =
SemidirectProduct.inr t := by simp [test,translation] @[simp] theorem test_inr_of (q : Q) : test (inr (FreeGroup.of q) : Base G T Q) =
SemidirectProduct.inl (inr (FreeGroup.of (1,q))) := by simp [test] @[simp] theorem test_marker (t : T) (q : Q) : test (marker t q : Base G T Q) =
SemidirectProduct.inl (inr (FreeGroup.of (t,q))) := by proof · 4 lines
simp only [marker,map_mul,map_inv,test_translation,test_inr_of]
rw [← map_inv,← SemidirectProduct.inl_aut]
change SemidirectProduct.inl (inr (FreeGroup.of (t * 1, q))) = _
rw [mul_one]@[simp] theorem test_comp : (test (G := G) (T := T) (Q := Q)).comp inclusion =
SemidirectProduct.inl := by proof · 7 lines
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp
· apply FreeGroup.ext_hom
rintro ⟨t,q⟩
simptheorem inclusion_injective : Function.Injective (inclusion (G := G) (T := T) (Q := Q)) := by proof · 3 lines
apply Function.Injective.of_comp (f := test)
rw [← MonoidHom.coe_comp,test_comp]
exact SemidirectProduct.inl_injectivelemma inclusion_shift (t : T) :
(inclusion (G := G) (Q := Q)).comp (shifts t).toMonoidHom =
(MulAut.conj (translation t)).toMonoidHom.comp inclusion := by proof · 11 lines
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp only [MonoidHom.comp_apply,MulEquiv.coe_toMonoidHom,shifts,MonoidHom.coe_mk,
OneHom.coe_mk,shift_inl,inclusion_inl,MulAut.conj_apply]
rw [← (commute_coefficient_translation g t).eq,mul_inv_cancel_right]
· apply FreeGroup.ext_hom
rintro ⟨s,q⟩
simp only [MonoidHom.comp_apply,MulEquiv.coe_toMonoidHom,shifts,MonoidHom.coe_mk,
OneHom.coe_mk,shift_inr_of,inclusion_inr_of,MulAut.conj_apply,marker,map_mul,map_inv]
groupdef inverse : ShiftGroup G T Q →* Base G T Q := body · 1 line
SemidirectProduct.lift inclusion translation inclusion_shift@[simp] theorem inverse_inl (x : Kernel G T Q) :
inverse (SemidirectProduct.inl x) = inclusion x := by simp [inverse] @[simp] theorem inverse_inr (t : T) :
inverse (SemidirectProduct.inr t : ShiftGroup G T Q) = translation t := by simp [inverse] @[simp] theorem inverse_comp_test : (inverse (G := G) (T := T) (Q := Q)).comp test =
MonoidHom.id _ := by proof · 13 lines
apply Coprod.hom_ext
· apply MonoidHom.ext
rintro ⟨g,t⟩
have he : (inl (g,t) : Base G T Q) = coefficient g * translation t := by
rw [coefficient,translation,MonoidHom.comp_apply,MonoidHom.comp_apply,← map_mul]
simp
change inverse (test (inl (g,t))) = inl (g,t)
rw [he]
simp
· apply FreeGroup.ext_hom
intro q
simp only [MonoidHom.comp_apply,MonoidHom.id_apply,test_inr_of,inverse_inl,
inclusion_inr_of,marker,map_one,one_mul,inv_one,mul_one]@[simp] theorem test_comp_inverse : (test (G := G) (T := T) (Q := Q)).comp inverse =
MonoidHom.id _ := by proof · 8 lines
apply SemidirectProduct.hom_ext
· apply MonoidHom.ext
intro x
simp only [MonoidHom.comp_apply,inverse_inl,MonoidHom.id_apply]
exact DFunLike.congr_fun test_comp x
· apply MonoidHom.ext
intro t
simpdef decomposition : Base G T Q ≃* ShiftGroup G T Q := body · 1 line
MonoidHom.toMulEquiv test inverse inverse_comp_test test_comp_inversedef inclusion (w : X → G) : FreeGroup X →* G ∗ FreeGroup X := body · 1 line
FreeGroup.lift (fun x ↦ inl (w x) * inr (FreeGroup.of x))@[simp] theorem inclusion_of (w : X → G) (x : X) :
inclusion w (FreeGroup.of x) = inl (w x) * inr (FreeGroup.of x) := by proof · 1 line
simp [inclusion]
@[simp] theorem projection_comp (w : X → G) :
(Coprod.snd : G ∗ FreeGroup X →* FreeGroup X).comp (inclusion w) = MonoidHom.id _ := by proof · 3 lines
apply FreeGroup.ext_hom
intro x
simptheorem inclusion_injective (w : X → G) : Function.Injective (inclusion w) := by proof · 3 lines
apply Function.Injective.of_comp (f := (Coprod.snd : G ∗ FreeGroup X →* FreeGroup X))
rw [← MonoidHom.coe_comp,projection_comp]
exact Function.injective_iddef twist (w : X → G) : MulAut (G ∗ FreeGroup X) := body · 19 lines
MonoidHom.toMulEquiv
(Coprod.lift inl (inclusion w))
(Coprod.lift inl (inclusion (fun x ↦ (w x)⁻¹)))
(by
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp
· apply FreeGroup.ext_hom
intro x
simp)
(by
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp
· apply FreeGroup.ext_hom
intro x
simp)@[simp] theorem twist_inl (w : X → G) (g : G) : twist w (inl g) = inl g := by proof · 1 line
simp [twist]
@[simp] theorem twist_inr_of (w : X → G) (x : X) : twist w (inr (FreeGroup.of x)) =
inl (w x) * inr (FreeGroup.of x) := by simp [twist] def index (f : D →* T) (o : P → T) (q : P → Q) (x : D × P) : T × Q := body · 1 line
(f x.1 * o x.2,q x.2)def kernelMap (f : D →* T) (o : P → T) (q : P → Q) (w : P → G) :
Kernel G D P →* Kernel G T Q := body · 2 lines
Coprod.lift inl (FreeGroup.lift (fun x : D × P ↦
inl (w x.2) * inr (FreeGroup.of (index f o q x))))@[simp] theorem kernelMap_inl (f : D →* T) (o : P → T) (q : P → Q) (w : P → G) (g : G) :
kernelMap f o q w (inl g) = inl g := by simp [kernelMap] @[simp] theorem kernelMap_inr_of (f : D →* T) (o : P → T) (q : P → Q) (w : P → G) (x : D × P) :
kernelMap f o q w (inr (FreeGroup.of x)) =
inl (w x.2) * inr (FreeGroup.of (index f o q x)) := by simp [kernelMap] lemma kernelMap_shift (f : D →* T) (o : P → T) (q : P → Q) (w : P → G) (d : D) :
(kernelMap f o q w).comp (shifts d).toMonoidHom =
(shifts (f d)).toMonoidHom.comp (kernelMap f o q w) := by proof · 7 lines
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp [shifts]
· apply FreeGroup.ext_hom
rintro ⟨e,p⟩
simp [shifts,index,mul_assoc]def embedding (f : D →* T) (o : P → T) (q : P → Q) (w : P → G) :
Base G D P →* Base G T Q := body · 2 lines
inverse.comp ((SemidirectProduct.map (kernelMap f o q w) f
(kernelMap_shift f o q w)).comp test)@[simp] theorem embedding_coefficient (f : D →* T) (o : P → T) (q : P → Q) (w : P → G)
(g : G) : embedding f o q w (coefficient g) = coefficient g := by proof · 1 line
simp [embedding]
@[simp] theorem embedding_translation (f : D →* T) (o : P → T) (q : P → Q) (w : P → G)
(d : D) : embedding f o q w (translation d) = translation (f d) := by proof · 1 line
simp [embedding]
@[simp] theorem embedding_inr_of (f : D →* T) (o : P → T) (q : P → Q) (w : P → G)
(p : P) : embedding f o q w (inr (FreeGroup.of p)) = coefficient (w p) * marker (o p) (q p) := by proof · 1 line
simp [embedding,index]
@[simp] theorem embedding_marker (f : D →* T) (o : P → T) (q : P → Q) (w : P → G)
(d : D) (p : P) : embedding f o q w (marker d p) =
coefficient (w p) * marker (f d * o p) (q p) := by proof · 2 lines
simp only [embedding,MonoidHom.comp_apply,test_marker,SemidirectProduct.map_inl,
kernelMap_inr_of,inverse_inl,map_mul,inclusion_inl,inclusion_inr_of,index]theorem kernelMap_injective [Nonempty P] (f : D →* T) (o : P → T) (q : P → Q)
(w : P → G) (hi : Function.Injective (index f o q)) :
Function.Injective (kernelMap f o q w) := by proof · 27 lines
classical
let r := Function.invFun (index f o q)
have hr : Function.LeftInverse r (index f o q) := Function.leftInverse_invFun hi
let k := Coprod.map (MonoidHom.id G) (FreeGroup.map (index f o q))
have hk : Function.Injective k := by
let l := Coprod.map (MonoidHom.id G) (FreeGroup.map r)
have he : l.comp k = MonoidHom.id _ := by
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp [l,k]
· apply FreeGroup.ext_hom
intro x
simp [l,k,hr x]
apply Function.Injective.of_comp (f := l)
rw [← MonoidHom.coe_comp,he]
exact Function.injective_id
have he : kernelMap f o q w = k.comp (DecoratedFreeBasis.twist (w ∘ Prod.snd)).toMonoidHom := by
apply Coprod.hom_ext
· apply MonoidHom.ext
intro g
simp [k]
· apply FreeGroup.ext_hom
intro x
simp [k]
rw [he]
exact hk.comp (DecoratedFreeBasis.twist (w ∘ Prod.snd)).injectivetheorem embedding_injective [Nonempty P] (f : D →* T) (hf : Function.Injective f)
(o : P → T) (q : P → Q) (w : P → G) (hi : Function.Injective (index f o q)) :
Function.Injective (embedding f o q w) := by proof · 9 lines
have hk := kernelMap_injective f o q w hi
have hm : Function.Injective (SemidirectProduct.map (kernelMap f o q w) f
(kernelMap_shift f o q w)) := by
intro x y he
apply SemidirectProduct.ext
· exact hk (congrArg SemidirectProduct.left he)
· exact hf (congrArg SemidirectProduct.right he)
exact (decomposition (G := G) (T := T) (Q := Q)).symm.injective.comp
(hm.comp (decomposition (G := G) (T := D) (Q := P)).injective)theorem index_injective (f : D →* T) (hf : Function.Injective f) (o : P → T)
(q : P → Q) (hq : Function.Injective q) : Function.Injective (index f o q) := by proof · 4 lines
rintro ⟨d,p⟩ ⟨e,r⟩ he
obtain rfl : p = r := hq (congrArg Prod.snd he)
have hd : f d * o p = f e * o p := congrArg Prod.fst he
exact Prod.ext (hf (mul_right_cancel hd)) rflOutline
- abbrev
Kernel12 - abbrev
Base14 - def
shift17 - theorem
shift_inl21 - theorem
shift_inr_of22 - def
shifts25 - abbrev
ShiftGroup46 - def
coefficient49 - def
translation50 - def
marker51 - def
inclusion54 - theorem
inclusion_inl57 - theorem
inclusion_inr_of59 - lemma
commute_coefficient_translation63 - lemma
test_commute67 - def
test77 - theorem
test_coefficient82 - theorem
test_translation84 - theorem
test_inr_of86 - theorem
test_marker88 - theorem
test_comp95 - theorem
inclusion_injective105 - lemma
inclusion_shift110 - def
inverse125 - theorem
inverse_inl128 - theorem
inverse_inr130 - theorem
inverse_comp_test133 - theorem
test_comp_inverse149 - def
decomposition160 - def
inclusion169 - theorem
inclusion_of172 - theorem
projection_comp176 - theorem
inclusion_injective182 - def
twist187 - theorem
twist_inl208 - theorem
twist_inr_of210 - def
index220 - def
kernelMap223 - theorem
kernelMap_inl228 - theorem
kernelMap_inr_of230 - lemma
kernelMap_shift234 - def
embedding245 - theorem
embedding_coefficient250 - theorem
embedding_translation253 - theorem
embedding_inr_of256 - theorem
embedding_marker259 - theorem
kernelMap_injective265 - theorem
embedding_injective296 - theorem
index_injective309
Xet Storage Details
- Size:
- 12.4 kB
- Xet hash:
- 0e51cff93b0ad5b770915906d64ff715f61b6d440834cf60d827d566fe79f923
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.