defsuffix3 (p : AbsoluteBar.Cochain3 k R) : object k RM3→ₗ[k] M:=
body · 31
lines
TensorProduct.lift {
toFun :=fun a =>TensorProduct.lift {
toFun :=fun b =>TensorProduct.lift (((Algebra.lsmul k k M).toLinearMap).comp (p a b))
map_add' :=by
intro b c
apply TensorProduct.ext'
intro d e
simp
map_smul' :=by
intro t b
apply TensorProduct.ext'
intro d e
simp }
map_add' :=by
intro a b
apply TensorProduct.ext'
intro c y
induction y usingTensorProduct.inductionOn with
| add y z hy hz =>
simp only [TensorProduct.tmul_add, map_add, LinearMap.add_apply] at *
rw [hy, hz]
| tmul d e => simp
map_smul' :=by
intro t a
apply TensorProduct.ext'
intro b y
induction y usingTensorProduct.inductionOn with
| add y z hy hz =>
simp only [TensorProduct.tmul_add, map_add, LinearMap.smul_apply] at *
rw [hy, hz]
| tmul c d => simp }
@[simp]theoremcochain3Linear_tmul (p : AbsoluteBar.Cochain3 k R) (a b c d : R) (e : M) :
cochain3Linear k RM p (a ⊗ₜ[k] (b ⊗ₜ[k] (c ⊗ₜ[k] (d ⊗ₜ[k] e)))) =
(a * p b c d) • e :=by
proof · 2
lines
change a • (p b c d • e) = _
exact (mul_smul _ _ _).symm
theoremcochain3Linear_left (p : AbsoluteBar.Cochain3 k R) (a : R) (x : object k RM4) :
cochain3Linear k RM p (left k RM4 a x) = a • cochain3Linear k RM p x :=by
proof · 3
lines
induction x usingTensorProduct.inductionOn with
| add x y hx hy => simp only [map_add, hx, hy, smul_add]
| tmul b x => exact mul_smul _ _ _
theoremcochain3_boundary_tmul (p : AbsoluteBar.Cochain3 k R) (a b c d e : R) (m : M) :
cochain3Linear k RM p (boundary k RM4
(a ⊗ₜ[k] (b ⊗ₜ[k] (c ⊗ₜ[k] (d ⊗ₜ[k] (e ⊗ₜ[k] m)))))) =
(a * (b * p c d e + p (b * c) d e + p b (c * d) e +
p b c (d * e) + p b c d * e)) • m :=by
proof · 6
lines
simp only [boundary_succ_tmul k RM3, boundary_succ_tmul k RM2,
boundary_succ_tmul k RM1, boundary_succ_tmul k RM0, boundary_zero_tmul k RM,
left_tmul k RM3, left_tmul k RM2, left_tmul k RM1, left_tmul k RM0,
TensorProduct.tmul_add, map_add, cochain3Linear_tmul k RM p,
mul_smul, add_smul, smul_add]
abel
theoremcochain3_closed (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
(cochain3Linear k RM p).comp (boundary k RM4) = 0:=by
proof · 5
lines
ext a b c d e m
change cochain3Linear k RM p (boundary k RM4
(a ⊗ₜ[k] (b ⊗ₜ[k] (c ⊗ₜ[k] (d ⊗ₜ[k] (e ⊗ₜ[k] m)))))) = 0
rw [cochain3_boundary_tmul, hp]
simp
theoremcochain3_cycle (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
(complex k RM).d 43 ≫ ModuleCat.ofHom
(X:= moduleObject k RM4) (Y:= moduleObject k RM0) (cochain3 k RM p) = 0:=by
proof · 5
lines
rw [complex_d k RM3]
apply ModuleCat.hom_ext
apply LinearMap.ext
intro x
exact LinearMap.congr_fun (cochain3_closed k RM p hp) x
defextClass3 (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
CategoryTheory.Abelian.Ext (moduleObject k RM0) (moduleObject k RM0) 3:=
body · 3
lines
(resolution k RM).extMk
(ModuleCat.ofHom (X:= moduleObject k RM4) (Y:= moduleObject k RM0) (cochain3 k RM p))
4 rfl (cochain3_cycle k RM p hp)
theoremextClass3_eq_zero_iff (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
extClass3 k RM p hp = 0↔∃g : moduleObject k RM3→ₗ[R] moduleObject k RM0,
g.comp (differential k RM3) = cochain3 k RM p :=by
proof · 14
lines
trans ∃g : (complex k RM).X2⟶ moduleObject k RM0,
(complex k RM).d 32 ≫ g = ModuleCat.ofHom
(X:= moduleObject k RM4) (Y:= moduleObject k RM0) (cochain3 k RM p)
· exact (resolution k RM).extMk_eq_zero_iff _ 4 rfl _ 2 rfl
constructor
· rintro ⟨g, hg⟩
refine ⟨g.hom, ?_⟩
rw [complex_d k RM2] at hg
exact congrArg ModuleCat.Hom.hom hg
· rintro ⟨g, hg⟩
refine ⟨ModuleCat.ofHom (X:= moduleObject k RM3) (Y:= moduleObject k RM0) g, ?_⟩
rw [complex_d k RM2]
apply ModuleCat.hom_ext
exact hg
theoremextClass3_ne_zero_of_detector (p : AbsoluteBar.Cochain3 k R)
(hp : AbsoluteBar.IsCocycle3 k R p) (x : moduleObject k RM4)
(hx : cochain3 k RM p x ≠0)
(hboundary : ∀g : moduleObject k RM3→ₗ[R] moduleObject k RM0,
g (differential k RM3 x) = 0) : extClass3 k RM p hp ≠0:=by
proof · 5
lines
intro h
obtain ⟨g, hg⟩ := (extClass3_eq_zero_iff k RM p hp).mp h
apply hx
rw [← hg]
exact hboundary g