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 Mathlib |
| 2 | |
| 3 | /-! # Sheaf Resolution Sections -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Module.SheafResolutionSections |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: vanishing Ext makes sections of an injective resolution exact |
| 11 | |
| 12 | The original constant module sheaf represents sections at a terminal |
| 13 | object. A cycle in sections therefore defines an actual Ext class; |
| 14 | vanishing of that class supplies a boundary in the same resolution. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 18 | |
| 19 | universe w w' u v |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] (J : GrothendieckTopology C) |
| 22 | (R : Type w) [Ring R] [HasSheafify J (ModuleCat.{w} R)] |
| 23 | {T : C} (hT : IsTerminal T) |
| 24 | |
| 25 | abbrev constantUnit : Sheaf J (ModuleCat.{w} R) := |
| 26 | (constantSheaf J (ModuleCat.{w} R)).obj (ModuleCat.of R R) |
| 27 | |
| 28 | def homEquiv (M : Sheaf J (ModuleCat.{w} R)) : |
| 29 | (constantUnit J R ⟶ M) ≃+ M.obj.obj (op T) := |
| 30 | ((constantSheafAdj J (ModuleCat.{w} R) hT).homAddEquiv (ModuleCat.of R R) M).trans |
| 31 | (ModuleCat.homAddEquiv.trans (LinearMap.ringLmapEquivSelf R ℤ _).toAddEquiv) |
| 32 | |
| 33 | theorem homEquiv_natural {M N : Sheaf J (ModuleCat.{w} R)} |
| 34 | (a : constantUnit J R ⟶ M) (b : M ⟶ N) : |
| 35 | SheafResolutionSections.homEquiv J R hT N (a ≫ b) = b.hom.app (op T) (SheafResolutionSections.homEquiv J R hT M a) := by |
| 36 | change (((constantSheafAdj J (ModuleCat.{w} R) hT).homEquiv _ N) (a ≫ b)).hom 1 = _ |
| 37 | rw [Adjunction.homEquiv_naturality_right] |
| 38 | rfl |
| 39 | |
| 40 | variable [HasExt.{w'} (Sheaf J (ModuleCat.{w} R))] |
| 41 | {M : Sheaf J (ModuleCat.{w} R)} (I : InjectiveResolution M) |
| 42 | |
| 43 | include hT in |
| 44 | theorem exact_succ (n : ℕ) [Subsingleton (Abelian.Ext.{w'} (constantUnit J R) M (n + 1))] |
| 45 | (x : (I.cocomplex.X (n + 1)).obj.obj (op T)) |
| 46 | (hx : (I.cocomplex.d (n + 1) (n + 2)).hom.app (op T) x = 0) : |
| 47 | ∃ y : (I.cocomplex.X n).obj.obj (op T), |
| 48 | (I.cocomplex.d n (n + 1)).hom.app (op T) y = x := by |
| 49 | let a := (SheafResolutionSections.homEquiv J R hT (I.cocomplex.X (n + 1))).symm x |
| 50 | have ha : a ≫ I.cocomplex.d (n + 1) (n + 2) = 0 := by |
| 51 | apply (SheafResolutionSections.homEquiv J R hT _).injective |
| 52 | rw [homEquiv_natural, AddEquiv.map_zero] |
| 53 | exact (congrArg ((I.cocomplex.d (n + 1) (n + 2)).hom.app (op T)) |
| 54 | ((SheafResolutionSections.homEquiv J R hT _).apply_symm_apply x)).trans hx |
| 55 | obtain ⟨b, hb⟩ := (I.extMk_eq_zero_iff a (n + 2) rfl ha n rfl).mp (Subsingleton.elim _ _) |
| 56 | refine ⟨SheafResolutionSections.homEquiv J R hT _ b, ?_⟩ |
| 57 | rw [← homEquiv_natural, hb] |
| 58 | exact (SheafResolutionSections.homEquiv J R hT _).apply_symm_apply x |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Module.SheafResolutionSections |