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.Crystalline.Cohomology.ConstantSheaf |
| 2 | import Mathlib.CategoryTheory.Abelian.Injective.Ext |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 4 | |
| 5 | /-! # Coefficient Resolution -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.CoefficientResolution.CoefficientResolutionExactness |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # Vanishing original coefficient Ext makes the section complex of an injective resolution exact -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Abelian Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) |
| 18 | |
| 19 | local notation "V" => OAI.AlgebraicGeometry.Crystalline.Cohomology.ConstantSheaf.ConstantSheafSections.Sheaves R X |
| 20 | local notation "A" => OAI.AlgebraicGeometry.Crystalline.Cohomology.ConstantSheaf.ConstantSheafSections.coefficient R X |
| 21 | |
| 22 | local instance coefficientExt : HasExt.{u + 1} V := HasExt.standard _ |
| 23 | |
| 24 | abbrev sections : V ⥤ ModuleCat.{u} R := |
| 25 | (sheafSections (Opens.grothendieckTopology X) (ModuleCat.{u} R)).obj (op ⊤) |
| 26 | |
| 27 | theorem section_exact {F : V} (I : InjectiveResolution F) (n : ℕ) |
| 28 | [Subsingleton (Ext.{u + 1} A F (n + 1))] |
| 29 | (x : (I.cocomplex.X (n + 1)).obj.obj (op ⊤)) |
| 30 | (hx : (I.cocomplex.d (n + 1) (n + 2)).hom.app (op ⊤) x = 0) : |
| 31 | ∃ y : (I.cocomplex.X n).obj.obj (op ⊤), |
| 32 | (I.cocomplex.d n (n + 1)).hom.app (op ⊤) y = x := by |
| 33 | let e (j : ℕ) := ConstantSheaf.ConstantSheafSections.linearEquiv R X (I.cocomplex.X j) |
| 34 | let f : A ⟶ I.cocomplex.X (n + 1) := (e (n + 1)).symm x |
| 35 | have hf : f ≫ I.cocomplex.d (n + 1) (n + 2) = 0 := by |
| 36 | apply (e (n + 2)).injective |
| 37 | rw [map_zero] |
| 38 | exact (ConstantSheaf.ConstantSheafSections.naturality R X f (I.cocomplex.d (n + 1) (n + 2))).trans |
| 39 | ((congrArg ((I.cocomplex.d (n + 1) (n + 2)).hom.app (op ⊤)) |
| 40 | ((e (n + 1)).apply_symm_apply x)).trans hx) |
| 41 | have hz : I.extMk f (n + 2) rfl hf = 0 := Subsingleton.elim _ _ |
| 42 | obtain ⟨g, hg⟩ := (I.extMk_eq_zero_iff f (n + 2) rfl hf n rfl).mp hz |
| 43 | refine ⟨e n g, ?_⟩ |
| 44 | exact (ConstantSheaf.ConstantSheafSections.naturality R X g (I.cocomplex.d n (n + 1))).symm.trans |
| 45 | ((congrArg (e (n + 1)) hg).trans ((e (n + 1)).apply_symm_apply x)) |
| 46 | |
| 47 | theorem exactAt {F : V} (I : InjectiveResolution F) (n : ℕ) |
| 48 | [Subsingleton (Ext.{u + 1} A F (n + 1))] : |
| 49 | (((sections R X).mapHomologicalComplex (.up ℕ)).obj I.cocomplex).ExactAt (n + 1) := by |
| 50 | rw [HomologicalComplex.exactAt_iff' _ n (n + 1) (n + 2) (by simp) (by simp)] |
| 51 | exact (ShortComplex.moduleCat_exact_iff _).mpr (section_exact R X I n) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.CoefficientResolution.CoefficientResolutionExactness |