Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingExtDegreeTwo |
| 2 | |
| 3 | /-! # Resolution Lift Independence -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ResolutionLiftIndependence |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual changes of lifts differ by a proved resolution boundary. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive _root_.CategoryTheory.Abelian |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | |
| 17 | universe u v w |
| 18 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 19 | |
| 20 | theorem shortExact_lift_difference_boundary {S : ShortComplex C} (hS : S.ShortExact) |
| 21 | {B D : C} (d : B ⟶ D) (m m' : S.X₂ ⟶ B) (hm : S.f ≫ m = S.f ≫ m') |
| 22 | (q q' : S.X₃ ⟶ D) (hq : S.g ≫ q = m ≫ d) (hq' : S.g ≫ q' = m' ≫ d) : |
| 23 | ∃ b : S.X₃ ⟶ B, b ≫ d = q - q' := by |
| 24 | have := hS.epi_g |
| 25 | let b := hS.exact.desc (m - m') (by rw [comp_sub, hm, sub_self]) |
| 26 | refine ⟨b, ?_⟩ |
| 27 | apply (cancel_epi S.g).mp |
| 28 | rw [← Category.assoc, hS.exact.g_desc, sub_comp, comp_sub, hq, hq'] |
| 29 | |
| 30 | variable [HasExt.{w} C] |
| 31 | |
| 32 | theorem resolution_extMk_eq_of_boundary {X Y : C} (R : InjectiveResolution Y) (n : ℕ) |
| 33 | (f g : X ⟶ R.cocomplex.X (n + 1)) |
| 34 | (hf : f ≫ R.cocomplex.d (n + 1) (n + 2) = 0) |
| 35 | (hg : g ≫ R.cocomplex.d (n + 1) (n + 2) = 0) |
| 36 | (hb : ∃ b : X ⟶ R.cocomplex.X n, b ≫ R.cocomplex.d n (n + 1) = f - g) : |
| 37 | R.extMk f (n + 2) rfl hf = R.extMk g (n + 2) rfl hg := by |
| 38 | apply sub_eq_zero.mp |
| 39 | rw [R.sub_extMk] |
| 40 | exact (R.extMk_eq_zero_iff _ _ rfl _ n rfl).mpr hb |
| 41 | |
| 42 | theorem connectingExtClass_eq_neg_of_lift {S : ShortComplex C} (hS : S.ShortExact) |
| 43 | (R : InjectiveResolution S.X₁) (m : S.X₂ ⟶ R.cocomplex.X 0) |
| 44 | (hm : S.f ≫ m = R.ι.f 0) (q : S.X₃ ⟶ R.cocomplex.X 1) |
| 45 | (hq : S.g ≫ q = m ≫ R.cocomplex.d 0 1) (hclosed : q ≫ R.cocomplex.d 1 2 = 0) : |
| 46 | hS.extClass = -R.extMk q 2 rfl hclosed := by |
| 47 | let := HasDerivedCategory.standard C |
| 48 | have heq := resolution_extMk_eq_of_boundary R 0 q (ConnectingResolutionCocycle.connectingResolutionQuotient hS R) |
| 49 | hclosed (ConnectingResolutionCocycle.connectingResolutionQuotient_closed hS R) |
| 50 | (shortExact_lift_difference_boundary hS (R.cocomplex.d 0 1) m (ConnectingResolutionCocycle.connectingResolutionMiddle hS R) |
| 51 | (hm.trans (ConnectingResolutionCocycle.connectingResolutionMiddle_comm hS R).symm) q (ConnectingResolutionCocycle.connectingResolutionQuotient hS R) |
| 52 | hq (ConnectingResolutionCocycle.connectingResolutionQuotient_comm hS R)) |
| 53 | rw [ConnectingExt.connectingExtClass_eq_neg_resolution hS R, ← heq] |
| 54 | |
| 55 | theorem connectingExt_comp_eq_of_lift {S : ShortComplex C} (hS : S.ShortExact) |
| 56 | {Y : C} (R : InjectiveResolution Y) (f : S.X₁ ⟶ R.cocomplex.X 1) |
| 57 | (hf : f ≫ R.cocomplex.d 1 2 = 0) (m : S.X₂ ⟶ R.cocomplex.X 1) |
| 58 | (hm : S.f ≫ m = f) (q : S.X₃ ⟶ R.cocomplex.X 2) |
| 59 | (hq : S.g ≫ q = m ≫ R.cocomplex.d 1 2) (hclosed : q ≫ R.cocomplex.d 2 3 = 0) : |
| 60 | hS.extClass.comp (R.extMk f 2 rfl hf) (rfl : 1 + 1 = 2) = R.extMk q 3 rfl hclosed := by |
| 61 | let := HasDerivedCategory.standard C |
| 62 | have heq := resolution_extMk_eq_of_boundary R 1 q (ConnectingResolutionDegreeTwo.connectingResolutionTwoQuotient hS R f hf) |
| 63 | hclosed (ConnectingResolutionDegreeTwo.connectingResolutionTwoQuotient_closed hS R f hf) |
| 64 | (shortExact_lift_difference_boundary hS (R.cocomplex.d 1 2) m (ConnectingResolutionDegreeTwo.connectingResolutionOneMiddle hS R f) |
| 65 | (hm.trans (ConnectingResolutionDegreeTwo.connectingResolutionOneMiddle_comm hS R f).symm) q (ConnectingResolutionDegreeTwo.connectingResolutionTwoQuotient hS R f hf) |
| 66 | hq (ConnectingResolutionDegreeTwo.connectingResolutionTwoQuotient_comm hS R f hf)) |
| 67 | rw [ConnectingExtDegreeTwo.connectingExt_comp_resolutionOne hS R f hf, ← heq] |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ResolutionLiftIndependence |