openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Ext /CubicExtCommute.lean
roseking's picture
Add lean source and binary files (part 5)
d7f9a33 verified
Raw History Blame Contribute Delete
1.96 kB
17
private theorem extMk_eq_of_map_eq {n : ℕ} (a b : P.complex.X n ⟶ X)
    (ha : P.complex.d (n+1) n ≫ a = 0) (hb : P.complex.d (n+1) n ≫ b = 0)
    (hab : a = b) : P.extMk a (n+1) rfl ha = P.extMk b (n+1) rfl hb := by
proof · 2 lines
  subst b
  rfl
23
theorem cubic_endExt_commute (hfg : f 3 ≫ g 0 = g 3 ≫ f 0) :
    (endExt P (natCubicCocycle (k := k) P f hf)).comp
      (endExt P (natCubicCocycle (k := k) P g hg)) rfl =
    (endExt P (natCubicCocycle (k := k) P g hg)).comp
      (endExt P (natCubicCocycle (k := k) P f hf)) rfl := by
proof · 13 lines
  have h₁ := (congrArg (fun y =>
      (endExt P (natCubicCocycle (k := k) P f hf)).comp y (show 3+3=6 from rfl))
    (natCubic_endExt_eq (k := k) P g hg)).trans
      (cubic_endExt_comp_extMk (k := k) P f hf (g 0 ≫ P.π.f 0)
        (natCubic_augmented_cycle P g hg))
  have h₂ := (congrArg (fun y =>
      (endExt P (natCubicCocycle (k := k) P g hg)).comp y (show 3+3=6 from rfl))
    (natCubic_endExt_eq (k := k) P f hf)).trans
      (cubic_endExt_comp_extMk (k := k) P g hg (f 0 ≫ P.π.f 0)
        (natCubic_augmented_cycle P f hf))
  refine h₁.trans ((extMk_eq_of_map_eq P _ _ _ _ ?_).trans h₂.symm)
  change f 3 ≫ (g 0 ≫ P.π.f 0) = g 3 ≫ (f 0 ≫ P.π.f 0)
  rw [← Category.assoc, hfg, Category.assoc]