cfahlgren1/math / lean /OAI /Algebra /AuslanderReiten /Bar /ModuleBarSuffix.lean
cfahlgren1's picture
download
raw
3.96 kB
13
def suffixComparison (p : AbsoluteBar.Cochain3 k R) : (n : ℕ) → object k R M (n + 3) →ₗ[k] object k R M n
body · 2 lines
  | 0 => suffix3 k R M p
  | n + 1 => (suffixComparison p n).lTensor R
17
@[simp] theorem suffixComparison_succ_tmul (p : AbsoluteBar.Cochain3 k R) (n : ℕ)
    (a : R) (x : object k R M (n + 3)) :
    suffixComparison k R M p (n + 1) (a ⊗ₜ[k] x) = a ⊗ₜ[k] suffixComparison k R M p n x := rfl
21
theorem suffixComparison_left (p : AbsoluteBar.Cochain3 k R) (n : ℕ) (a : R)
    (x : object k R M (n + 4)) :
    suffixComparison k R M p (n + 1) (left k R M (n + 4) a x) =
      left k R M (n + 1) a (suffixComparison k R M p (n + 1) x) := by
proof · 3 lines
  induction x using TensorProduct.inductionOn with
  | add x y hx hy => simp only [map_add, hx, hy]
  | tmul b x => rfl
29
def suffixComparisonMap (p : AbsoluteBar.Cochain3 k R) (n : ℕ) :
    moduleObject k R M (n + 4) →ₗ[R] moduleObject k R M (n + 1) where
body · 2 lines
  toAddHom := (suffixComparison k R M p (n + 1)).toAddHom
  map_smul' a x := suffixComparison_left k R M p n a x
36
private theorem double_zero {V : Type u} [AddCommGroup V] [Module k V] (x : V) : x + x = 0 := by
proof · 2 lines
  have htwo : (2 : k) = 0 := CharP.cast_eq_zero k 2
  rw [← two_smul k x, htwo, zero_smul]
40
theorem suffixComparison_boundary_zero (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) :
    (boundary k R M 0).comp (suffixComparison k R M p 1) =
      (suffixComparison k R M p 0).comp (boundary k R M 3) := by
proof · 16 lines
  ext a b c d e
  change a • (p b c d • e) = suffix3 k R M p
    (boundary k R M 3 (a ⊗ₜ[k] (b ⊗ₜ[k] (c ⊗ₜ[k] (d ⊗ₜ[k] e)))))
  have h := congrArg (fun x : R => x • e) (hp a b c d)
  simp only [add_smul, zero_smul, mul_smul] at h
  simp only [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 2, left_tmul k R M 1, left_tmul k R M 0,
    TensorProduct.tmul_add, map_add, suffix3_tmul k R M p]
  have h' : a • (p b c d • e) +
      (p (a * b) c d • e + (p a (b * c) d • e +
        (p a b (c * d) • e + p a b c • (d • e)))) = 0 := by
    simpa only [add_assoc] using h
  have hz := double_zero k (a • (p b c d • e))
  have hh := congrArg (fun x : M => a • (p b c d • e) + x) h'
  simpa only [← add_assoc, hz, zero_add, add_zero] using hh.symm
60
theorem suffixComparison_boundary (p : AbsoluteBar.Cochain3 k R) (hp : AbsoluteBar.IsCocycle3 k R p) (n : ℕ)
    (x : object k R M (n + 4)) :
    boundary k R M n (suffixComparison k R M p (n + 1) x) =
      suffixComparison k R M p n (boundary k R M (n + 3) x) := by
proof · 10 lines
  induction n with
  | zero => exact LinearMap.congr_fun (suffixComparison_boundary_zero k R M p hp) x
  | succ n ih =>
    induction x using TensorProduct.inductionOn with
    | add x y hx hy => simp only [map_add, hx, hy]
    | tmul a x =>
      change boundary k R M (n + 1) (a ⊗ₜ[k] suffixComparison k R M p (n + 1) x) =
        suffixComparison k R M p (n + 1) (boundary k R M (n + 4) (a ⊗ₜ[k] x))
      rw [boundary_succ_tmul k R M n, boundary_succ_tmul k R M (n + 3), map_add,
        suffixComparison_left k R M p n, suffixComparison_succ_tmul, ih]
77
theorem suffixComparison_augmentation (p : AbsoluteBar.Cochain3 k R) :
    (differential k R M 0).comp (suffixComparisonMap k R M p 0) = cochain3 k R M p := by
proof · 6 lines
  apply LinearMap.ext
  intro x
  change boundary k R M 0 (suffixComparison k R M p 1 x) = cochain3Linear k R M p x
  induction x using TensorProduct.inductionOn with
  | add x y hx hy => simp only [map_add, hx, hy]
  | tmul a x => rfl

Xet Storage Details

Size:
3.96 kB
·
Xet hash:
35c6353b90e4a02fc2e25d294c5c2372c7d331fe6f63ab628e0013bdda71edc0

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