roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
1.64 kB
14
def fullHomPlainZeroEquiv : CohomologyClass K L 0 ≃ₗ[k]
    ((HomotopyCategory.quotient C _).obj K ⟶ (HomotopyCategory.quotient C _).obj L) :=
body · 3 lines
  (fullHomShiftedHomotopyEquiv k K L 0).trans
    (Linear.homCongr k (Iso.refl _)
      ((shiftFunctorZero (HomotopyCategory C (ComplexShape.up ℤ)) ℤ).app _))
20
theorem fullHomPlainZeroEquiv_mk (f : K ⟶ L) :
    fullHomPlainZeroEquiv k K L (CohomologyClass.mk (Cocycle.ofHom f)) =
      (HomotopyCategory.quotient C _).map f := by
proof · 9 lines
  simp only [fullHomPlainZeroEquiv, LinearEquiv.trans_apply, Linear.homCongr_apply,
    Iso.refl_inv, Category.id_comp]
  change fullHomShiftedHomotopyEquiv k K L 0
    (CohomologyClass.mk (Cocycle.ofHom f)) ≫
      (shiftFunctorZero (HomotopyCategory C (ComplexShape.up ℤ)) ℤ).hom.app _ = _
  rw [← fullHomPrecomp_identity f, fullHomShiftedHomotopyEquiv_precomp]
  change (_ ≫ fullHomShiftedHomotopyEquiv k L L 0 (fullHomIdentity L)) ≫ _ = _
  erw [fullHomShiftedHomotopyEquiv_identity, Category.assoc, Iso.inv_hom_id_app,
    Category.comp_id]
33
theorem fullHomPlainZeroEquiv_identity :
    fullHomPlainZeroEquiv k K K (fullHomIdentity K) = 𝟙 _ := by
proof · 1 line
  rw [fullHomIdentity, fullHomPlainZeroEquiv_mk, CategoryTheory.Functor.map_id]