roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
2.2 kB
15
def negIndexEmbedding : (ComplexShape.up ℤ).Embedding (ComplexShape.down ℤ) :=
body · 4 lines
  ComplexShape.Embedding.mk' _ _ (fun i : ℤ => -i) neg_injective (by
    intro i j
    change i + 1 = j ↔ -j + 1 = -i
    omega)
21
instance : negIndexEmbedding.IsRelIff := by
body · 2 lines
  dsimp [negIndexEmbedding]
  infer_instance
25
noncomputable abbrev chainOfCochain (K : CochainComplex (ModuleCat.{u} R) ℤ) :=
body · 1 line
  K.extend negIndexEmbedding
28
private instance negIndexFunctor_additive :
    (negIndexEmbedding.extendHomotopyFunctor (ModuleCat.{u} R)).Additive := by
body · 4 lines
  have := Functor.additive_of_iso
    (negIndexEmbedding.extendHomotopyFunctorFactors (ModuleCat.{u} R)).symm
  exact Functor.additive_of_full_essSurj_comp
    (HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.up ℤ)) _
35
noncomputable def fullHomStableEquiv
    (K L : CochainComplex (ModuleCat.{u} R) ℤ) (n : ℤ)
    (hK : TotallyAcyclicComplex (chainOfCochain K))
    (hL : ExactProjectiveComplex (chainOfCochain (L⟦n⟧))) :
    CochainComplex.HomComplex.CohomologyClass K L n ≃+
      StableHom R (Cokernel (chainOfCochain K) 0) (Cokernel (chainOfCochain (L⟦n⟧)) 0) :=
body · 5 lines
  CochainComplex.HomComplex.CohomologyClass.homAddEquiv.trans
    ((AddEquiv.ofBijective
      (Functor.mapAddHom (negIndexEmbedding.extendHomotopyFunctor (ModuleCat.{u} R)))
      ⟨Functor.map_injective _, Functor.map_surjective _⟩).trans
        (homotopyCokernelEquiv hK hL))
47
theorem fullHomStableEquiv_eq_zero_iff
    (K L : CochainComplex (ModuleCat.{u} R) ℤ) (n : ℤ)
    (hK : TotallyAcyclicComplex (chainOfCochain K))
    (hL : ExactProjectiveComplex (chainOfCochain (L⟦n⟧)))
    (x : CochainComplex.HomComplex.CohomologyClass K L n) :
    fullHomStableEquiv K L n hK hL x = 0 ↔ x = 0 :=
proof · 1 line
  map_eq_zero_iff (fullHomStableEquiv K L n hK hL) (fullHomStableEquiv K L n hK hL).injective