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.Generated.LineBundleSectionCover |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.ScalarSections |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.NonvanishingAddition |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.ModuleSectionIdentity |
| 5 | import Mathlib.Algebra.Module.Submodule.Union |
| 6 | |
| 7 | /-! # Point Section Avoidance -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.PointSectionAvoidance |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Over an infinite field, a globally generated line bundle has an actual section nonvanishing at any prescribed finite family of scheme points, including nonclosed generic points. -/ |
| 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)) (L : Line.Bundles.LineBundle X) |
| 17 | |
| 18 | private def coefficientSectionValueEquiv : |
| 19 | (Line.Bundles.structureModule X ⟶ L.sheaf) ≃+ (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj L.sheaf where |
| 20 | __ := (Global.Sections.moduleSectionHomEquiv L.sheaf).trans |
| 21 | (Global.ModuleSectionIdentity.coefficientGlobalSectionsNativeIso (Coefficient.ModulePresheaf.schemeCoefficientMap p) L.sheaf).symm.toEquiv |
| 22 | map_add' s t := by |
| 23 | change Global.Sections.moduleSectionHomEquiv L.sheaf (s + t) = |
| 24 | Global.Sections.moduleSectionHomEquiv L.sheaf s + Global.Sections.moduleSectionHomEquiv L.sheaf t |
| 25 | rfl |
| 26 | |
| 27 | private theorem coefficientSectionValueEquiv_scalar (c : K) (s : Line.Bundles.structureModule X ⟶ L.sheaf) : |
| 28 | coefficientSectionValueEquiv p L (Coefficient.ScalarSections.coefficientScalarSection p c s) = |
| 29 | c • coefficientSectionValueEquiv p L s := by |
| 30 | change (show (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj L.sheaf from |
| 31 | Global.Sections.moduleSectionHomEquiv L.sheaf (Coefficient.ScalarSections.coefficientScalarSection p c s)) = |
| 32 | c • (show (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj L.sheaf from Global.Sections.moduleSectionHomEquiv L.sheaf s) |
| 33 | exact Coefficient.ScalarSections.coefficientScalarSection_value p c s |
| 34 | |
| 35 | def sectionVanishingSubmodule (x : X) : |
| 36 | Submodule K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj L.sheaf) where |
| 37 | carrier := {v | x ∉ Ample.LineBundles.sectionNonvanishing ((coefficientSectionValueEquiv p L).symm v)} |
| 38 | zero_mem' := by |
| 39 | change x ∉ Ample.LineBundles.sectionNonvanishing ((coefficientSectionValueEquiv p L).symm 0) |
| 40 | rw [map_zero, L.sectionNonvanishing_zero] |
| 41 | exact fun h => h |
| 42 | add_mem' := by |
| 43 | intro v w hv hw |
| 44 | change x ∉ Ample.LineBundles.sectionNonvanishing ((coefficientSectionValueEquiv p L).symm (v + w)) |
| 45 | rw [map_add] |
| 46 | intro hx |
| 47 | exact (L.sectionNonvanishing_add_le _ _ hx).elim hv hw |
| 48 | smul_mem' := by |
| 49 | intro c v hv |
| 50 | have he : (coefficientSectionValueEquiv p L).symm (c • v) = |
| 51 | Coefficient.ScalarSections.coefficientScalarSection p c ((coefficientSectionValueEquiv p L).symm v) := by |
| 52 | apply (coefficientSectionValueEquiv p L).injective |
| 53 | rw [AddEquiv.apply_symm_apply, coefficientSectionValueEquiv_scalar, AddEquiv.apply_symm_apply] |
| 54 | change x ∉ Ample.LineBundles.sectionNonvanishing ((coefficientSectionValueEquiv p L).symm (c • v)) |
| 55 | rw [he] |
| 56 | exact fun hx => hv (Coefficient.ScalarSections.coefficientScalarSection_nonvanishing_le p L c _ hx) |
| 57 | |
| 58 | theorem sectionVanishingSubmodule_ne_top (x : X) |
| 59 | (s : Line.Bundles.structureModule X ⟶ L.sheaf) (hs : x ∈ Ample.LineBundles.sectionNonvanishing s) : |
| 60 | sectionVanishingSubmodule p L x ≠ ⊤ := by |
| 61 | intro htop |
| 62 | have hv : coefficientSectionValueEquiv p L s ∈ sectionVanishingSubmodule p L x := by |
| 63 | rw [htop] |
| 64 | trivial |
| 65 | change x ∉ Ample.LineBundles.sectionNonvanishing |
| 66 | ((coefficientSectionValueEquiv p L).symm (coefficientSectionValueEquiv p L s)) at hv |
| 67 | rw [AddEquiv.symm_apply_apply] at hv |
| 68 | exact hv hs |
| 69 | |
| 70 | include p in |
| 71 | theorem exists_section_nonvanishing_at_finite_points [Infinite K] |
| 72 | {ι : Type v} [Finite ι] (x : ι → X) |
| 73 | (h : ∀ i, ∃ s : Line.Bundles.structureModule X ⟶ L.sheaf, x i ∈ Ample.LineBundles.sectionNonvanishing s) : |
| 74 | ∃ s : Line.Bundles.structureModule X ⟶ L.sheaf, ∀ i, x i ∈ Ample.LineBundles.sectionNonvanishing s := by |
| 75 | have hp (i : ι) : sectionVanishingSubmodule p L (x i) ≠ ⊤ := by |
| 76 | obtain ⟨s, hs⟩ := h i |
| 77 | exact sectionVanishingSubmodule_ne_top p L (x i) s hs |
| 78 | obtain ⟨v, hv⟩ := Submodule.exists_forall_notMem_of_forall_ne_top |
| 79 | (fun i => sectionVanishingSubmodule p L (x i)) hp |
| 80 | refine ⟨(coefficientSectionValueEquiv p L).symm v, fun i => ?_⟩ |
| 81 | exact Classical.not_not.mp (hv i) |
| 82 | |
| 83 | include p in |
| 84 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.GlobalModuleGenerators.HasFiniteGlobalGenerators.exists_section_nonvanishing_at_finite_points [Infinite K] |
| 85 | (hL : GlobalModuleGenerators.HasFiniteGlobalGenerators L.sheaf) {ι : Type v} [Finite ι] (x : ι → X) : |
| 86 | ∃ s : Line.Bundles.structureModule X ⟶ L.sheaf, ∀ i, x i ∈ Ample.LineBundles.sectionNonvanishing s := by |
| 87 | obtain ⟨J, _, s, hs⟩ := hL.lineBundle_section_cover L |
| 88 | apply PointSectionAvoidance.exists_section_nonvanishing_at_finite_points p L x |
| 89 | intro i |
| 90 | obtain ⟨j, hj⟩ := hs (x i) |
| 91 | exact ⟨s j, hj⟩ |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.PointSectionAvoidance |