openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Ext /ExtendShortExact.lean
roseking's picture
Add lean source and binary files (part 5)
d7f9a33 verified
Raw History Blame Contribute Delete
1.8 kB
13
theorem extend_shortExact (e : c.Embedding c')
    (S : ShortComplex (HomologicalComplex C c)) (h : S.ShortExact) :
    (S.map (e.extendFunctor C)).ShortExact := by
proof · 28 lines
  have := h.mono_f
  have := h.epi_g
  apply HomologicalComplex.shortExact_of_degreewise_shortExact
  intro j
  by_cases hj : ∃ i, e.f i = j
  · obtain ⟨i, hi⟩ := hj
    let E : ((S.map (e.extendFunctor C)).map (HomologicalComplex.eval C c' j)) ≅
        S.map (HomologicalComplex.eval C c i) :=
      ShortComplex.isoMk (S.X₁.extendXIso e hi) (S.X₂.extendXIso e hi)
        (S.X₃.extendXIso e hi)
        (by
          change (S.X₁.extendXIso e hi).hom ≫ S.f.f i =
            (HomologicalComplex.extendMap S.f e).f j ≫ (S.X₂.extendXIso e hi).hom
          rw [HomologicalComplex.extendMap_f _ _ hi]
          simp)
        (by
          change (S.X₂.extendXIso e hi).hom ≫ S.g.f i =
            (HomologicalComplex.extendMap S.g e).f j ≫ (S.X₃.extendXIso e hi).hom
          rw [HomologicalComplex.extendMap_f _ _ hi]
          simp)
    exact ShortComplex.shortExact_of_iso E.symm (h.map (HomologicalComplex.eval C c i))
  · have hj' : ∀ i, e.f i ≠ j := by simpa using hj
    have h₁ := S.X₁.isZero_extend_X e j hj'
    have h₂ := S.X₂.isZero_extend_X e j hj'
    have h₃ := S.X₃.isZero_extend_X e j hj'
    exact { exact := ShortComplex.exact_of_isZero_X₂ _ h₂
            mono_f := h₁.mono _
            epi_g := h₃.epi _ }