cfahlgren1/math / lean /OAI /Algebra /AuslanderReiten /Bar /ModuleBarCochain.lean
cfahlgren1's picture
download
raw
5.58 kB
14
def suffix3 (p : AbsoluteBar.Cochain3 k R) : object k R M 3 →ₗ[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 using TensorProduct.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 using TensorProduct.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 }
47
@[simp] theorem suffix3_tmul (p : AbsoluteBar.Cochain3 k R) (a b c : R) (d : M) :
    suffix3 k R M p (a ⊗ₜ[k] (b ⊗ₜ[k] (c ⊗ₜ[k] d))) = p a b c • d := rfl
50
def cochain3Linear (p : AbsoluteBar.Cochain3 k R) : object k R M 4 →ₗ[k] M :=
body · 1 line
  TensorProduct.lift (((Algebra.lsmul k k M).toLinearMap).compl₂ (suffix3 k R M p))
53
@[simp] theorem cochain3Linear_tmul (p : AbsoluteBar.Cochain3 k R) (a b c d : R) (e : M) :
    cochain3Linear k R M 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
59
theorem cochain3Linear_left (p : AbsoluteBar.Cochain3 k R) (a : R) (x : object k R M 4) :
    cochain3Linear k R M p (left k R M 4 a x) = a • cochain3Linear k R M p x := by
proof · 3 lines
  induction x using TensorProduct.inductionOn with
  | add x y hx hy => simp only [map_add, hx, hy, smul_add]
  | tmul b x => exact mul_smul _ _ _
65
def cochain3 (p : AbsoluteBar.Cochain3 k R) :
    moduleObject k R M 4 →ₗ[R] moduleObject k R M 0 where
body · 2 lines
  toAddHom := (cochain3Linear k R M p).toAddHom
  map_smul' a x := cochain3Linear_left k R M p a x
70
theorem cochain3_boundary_tmul (p : AbsoluteBar.Cochain3 k R) (a b c d e : R) (m : M) :
    cochain3Linear k R M p (boundary k R M 4
      (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 R M 3, boundary_succ_tmul k R M 2,
    boundary_succ_tmul k R M 1, boundary_succ_tmul k R M 0, boundary_zero_tmul k R M,
    left_tmul k R M 3, left_tmul k R M 2, left_tmul k R M 1, left_tmul k R M 0,
    TensorProduct.tmul_add, map_add, cochain3Linear_tmul k R M p,
    mul_smul, add_smul, smul_add]
  abel
82
theorem cochain3_closed (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
    (cochain3Linear k R M p).comp (boundary k R M 4) = 0 := by
proof · 5 lines
  ext a b c d e m
  change cochain3Linear k R M p (boundary k R M 4
    (a ⊗ₜ[k] (b ⊗ₜ[k] (c ⊗ₜ[k] (d ⊗ₜ[k] (e ⊗ₜ[k] m)))))) = 0
  rw [cochain3_boundary_tmul, hp]
  simp
92
theorem cochain3_cycle (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
    (complex k R M).d 4 3 ≫ ModuleCat.ofHom
      (X := moduleObject k R M 4) (Y := moduleObject k R M 0) (cochain3 k R M p) = 0 := by
proof · 5 lines
  rw [complex_d k R M 3]
  apply ModuleCat.hom_ext
  apply LinearMap.ext
  intro x
  exact LinearMap.congr_fun (cochain3_closed k R M p hp) x
101
def extClass3 (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
    CategoryTheory.Abelian.Ext (moduleObject k R M 0) (moduleObject k R M 0) 3 :=
body · 3 lines
  (resolution k R M).extMk
    (ModuleCat.ofHom (X := moduleObject k R M 4) (Y := moduleObject k R M 0) (cochain3 k R M p))
    4 rfl (cochain3_cycle k R M p hp)
107
theorem extClass3_eq_zero_iff (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
    extClass3 k R M p hp = 0 ↔
      ∃ g : moduleObject k R M 3 →ₗ[R] moduleObject k R M 0,
        g.comp (differential k R M 3) = cochain3 k R M p := by
proof · 14 lines
  trans ∃ g : (complex k R M).X 2 ⟶ moduleObject k R M 0,
      (complex k R M).d 3 2 ≫ g = ModuleCat.ofHom
        (X := moduleObject k R M 4) (Y := moduleObject k R M 0) (cochain3 k R M p)
  · exact (resolution k R M).extMk_eq_zero_iff _ 4 rfl _ 2 rfl
  constructor
  · rintro ⟨g, hg⟩
    refine ⟨g.hom, ?_⟩
    rw [complex_d k R M 2] at hg
    exact congrArg ModuleCat.Hom.hom hg
  · rintro ⟨g, hg⟩
    refine ⟨ModuleCat.ofHom (X := moduleObject k R M 3) (Y := moduleObject k R M 0) g, ?_⟩
    rw [complex_d k R M 2]
    apply ModuleCat.hom_ext
    exact hg
126
theorem extClass3_ne_zero_of_detector (p : AbsoluteBar.Cochain3 k R)
    (hp : AbsoluteBar.IsCocycle3 k R p) (x : moduleObject k R M 4)
    (hx : cochain3 k R M p x ≠ 0)
    (hboundary : ∀ g : moduleObject k R M 3 →ₗ[R] moduleObject k R M 0,
      g (differential k R M 3 x) = 0) : extClass3 k R M p hp ≠ 0 := by
proof · 5 lines
  intro h
  obtain ⟨g, hg⟩ := (extClass3_eq_zero_iff k R M p hp).mp h
  apply hx
  rw [← hg]
  exact hboundary g

Xet Storage Details

Size:
5.58 kB
·
Xet hash:
2a5927ad49b946e97fe114498ba41e6f37213f1496fa15c3fecc9128ad191bc5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.