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.AbelianModuli.HilbertConstruction.Global.ModuleSectionIdentity |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.SectionValueAdditive |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.LinearCombinationNonvanishing |
| 4 | import Mathlib.LinearAlgebra.Dimension.Free |
| 5 | |
| 6 | /-! # Basis Section Generation -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisSectionGeneration |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A basis of the genuine finite-dimensional section space generates |
| 13 | wherever all global sections generate. The proof uses actual coefficient scalars. -/ |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | universe u v |
| 16 | variable {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) |
| 17 | |
| 18 | def coefficientSectionAddEquiv (M : X.Modules) : |
| 19 | (Line.Bundles.structureModule X ⟶ M) ≃+ (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M where |
| 20 | __ := (Global.Sections.moduleSectionHomEquiv M).trans |
| 21 | (Global.ModuleSectionIdentity.coefficientGlobalSectionsNativeIso (Coefficient.ModulePresheaf.schemeCoefficientMap p) M).symm.toEquiv |
| 22 | map_add' s t := by |
| 23 | change Global.Sections.moduleSectionHomEquiv M (s + t) = Global.Sections.moduleSectionHomEquiv M s + Global.Sections.moduleSectionHomEquiv M t |
| 24 | rfl |
| 25 | |
| 26 | theorem coefficientSectionAddEquiv_scalar (M : X.Modules) (c : K) (s : Line.Bundles.structureModule X ⟶ M) : |
| 27 | coefficientSectionAddEquiv p M (Coefficient.ScalarSections.coefficientScalarSection p c s) = |
| 28 | c • coefficientSectionAddEquiv p M s := by |
| 29 | change (show (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M from |
| 30 | Global.Sections.moduleSectionHomEquiv M (Coefficient.ScalarSections.coefficientScalarSection p c s)) = |
| 31 | c • (show (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M from Global.Sections.moduleSectionHomEquiv M s) |
| 32 | exact Coefficient.ScalarSections.coefficientScalarSection_value p c s |
| 33 | |
| 34 | def sectionBasisFamily (M : X.Modules) {ι : Type v} |
| 35 | (b : Module.Basis ι K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M)) : |
| 36 | ι → (Line.Bundles.structureModule X ⟶ M) := |
| 37 | fun i => (coefficientSectionAddEquiv p M).symm (b i) |
| 38 | |
| 39 | theorem section_eq_basis_linearCombination (M : X.Modules) {ι : Type v} [Fintype ι] |
| 40 | (b : Module.Basis ι K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M)) (s : Line.Bundles.structureModule X ⟶ M) : |
| 41 | s = ∑ i, Coefficient.ScalarSections.coefficientScalarSection p (b.repr (coefficientSectionAddEquiv p M s) i) |
| 42 | (sectionBasisFamily p M b i) := by |
| 43 | apply (coefficientSectionAddEquiv p M).injective |
| 44 | rw [map_sum] |
| 45 | simp only [coefficientSectionAddEquiv_scalar, sectionBasisFamily, AddEquiv.apply_symm_apply] |
| 46 | exact (b.sum_repr (coefficientSectionAddEquiv p M s)).symm |
| 47 | |
| 48 | theorem sectionBasisFamily_covers (L : Line.Bundles.LineBundle X) {ι : Type v} [Fintype ι] |
| 49 | (b : Module.Basis ι K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj L.sheaf)) |
| 50 | (h : ∀ x : X, ∃ s : Line.Bundles.structureModule X ⟶ L.sheaf, x ∈ Ample.LineBundles.sectionNonvanishing s) : |
| 51 | ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (sectionBasisFamily p L.sheaf b i) := by |
| 52 | intro x |
| 53 | obtain ⟨s, hs⟩ := h x |
| 54 | rw [section_eq_basis_linearCombination p L.sheaf b s] at hs |
| 55 | obtain ⟨i, _, hi⟩ := Section.LinearCombinationNonvanishing.coefficient_linearCombination_nonvanishing p L Finset.univ |
| 56 | (fun i => b.repr (coefficientSectionAddEquiv p L.sheaf s) i) |
| 57 | (sectionBasisFamily p L.sheaf b) x hs |
| 58 | exact ⟨i, hi⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisSectionGeneration |