openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /HomComplex /FullHomZeroRepresentative.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
1.8 kB
14
def fullHomZeroRepresentative (x : CohomologyClass K L 0) : K ⟶ L :=
body · 1 line
  Cocycle.homOf (Classical.choose (CohomologyClass.mk_surjective x))
17
@[simp] theorem fullHomZeroRepresentative_class (x : CohomologyClass K L 0) :
    CohomologyClass.mk (Cocycle.ofHom (fullHomZeroRepresentative x)) = x := by
proof · 2 lines
  rw [fullHomZeroRepresentative, Cocycle.ofHom_homOf_eq_self]
  exact Classical.choose_spec (CohomologyClass.mk_surjective x)
25
theorem fullHomZero_class_eq_iff (f g : K ⟶ L) :
    CohomologyClass.mk (Cocycle.ofHom f) = CohomologyClass.mk (Cocycle.ofHom g) ↔
      (HomotopyCategory.quotient C _).map f = (HomotopyCategory.quotient C _).map g := by
proof · 12 lines
  constructor
  · intro h
    rw [← fullHomPrecomp_identity f, ← fullHomPrecomp_identity g] at h
    have hh := congrArg (fullHomShiftedHomotopyEquiv k K L 0) h
    rw [fullHomShiftedHomotopyEquiv_precomp, fullHomShiftedHomotopyEquiv_precomp] at hh
    change _ ≫ fullHomShiftedHomotopyEquiv k L L 0 (CompleteComparison.fullHomIdentity L) =
      _ ≫ fullHomShiftedHomotopyEquiv k L L 0 (CompleteComparison.fullHomIdentity L) at hh
    rw [fullHomShiftedHomotopyEquiv_identity] at hh
    exact (cancel_mono _).1 hh
  · intro h
    rw [← fullHomPrecomp_identity f, ← fullHomPrecomp_identity g]
    exact fullHomPrecomp_congr k 0 h _