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.Tensor.ScalarSectionValues |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.SectionValueAdditive |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.SectionNonvanishing |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.LinearCombinationNonvanishing |
| 5 | import Mathlib.LinearAlgebra.TensorProduct.Finiteness |
| 6 | |
| 7 | /-! # Section Spanning -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.SectionSpanning |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Surjectivity of the actual Cartesian section tensor comparison expresses sections as finite linear combinations of pulled-back sections and detects a nonvanishing summand. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | open scoped TensorProduct |
| 16 | universe u |
| 17 | |
| 18 | variable {S X Y P : Scheme.{u}} {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ S} {g : Y ⟶ S} |
| 19 | variable (H : IsPullback a b f g) |
| 20 | |
| 21 | theorem geometric_sections_spanned_of_tensor_surjective (M : X.Modules) |
| 22 | (h : Function.Surjective ((Cartesian.ModuleTensorComparison.baseChangeModuleTensorComparison H M).app (op ⊤))) |
| 23 | (t : Line.Bundles.structureModule P ⟶ (Scheme.Modules.pullback a).obj M) : |
| 24 | ∃ (k : ℕ) (c : Fin k → Γ(Y, ⊤)) (s : Fin k → (Line.Bundles.structureModule X ⟶ M)), |
| 25 | t = ∑ i, Scalar.SectionValues.scalarSection (b.appTop (c i)) (Ample.LineBundles.pullbackSection a (s i)) := by |
| 26 | let F : TensorProduct Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra g) |
| 27 | ((Coefficient.ModulePresheaf.coefficientModulePresheaf f.appTop.hom M).obj (op ⊤)) →+ |
| 28 | Γ((Scheme.Modules.pullback a).obj M, ⊤) := |
| 29 | ((Cartesian.ModuleTensorComparison.baseChangeModuleTensorComparison H M).app (op ⊤)).hom.toAddMonoidHom |
| 30 | have hF : Function.Surjective F := h |
| 31 | obtain ⟨z, hz⟩ := hF (Global.Sections.moduleSectionHomEquiv ((Scheme.Modules.pullback a).obj M) t) |
| 32 | obtain ⟨k, c, x, hzx⟩ := TensorProduct.exists_sum_tmul_eq z |
| 33 | let s : Fin k → (Line.Bundles.structureModule X ⟶ M) := fun i => (Global.Sections.moduleSectionHomEquiv M).symm (x i) |
| 34 | refine ⟨k, c, s, (Global.Sections.moduleSectionHomEquiv ((Scheme.Modules.pullback a).obj M)).injective ?_⟩ |
| 35 | calc |
| 36 | Global.Sections.moduleSectionHomEquiv ((Scheme.Modules.pullback a).obj M) t = F z := hz.symm |
| 37 | _ = F (∑ i, c i ⊗ₜ[Γ(S, ⊤)] x i) := congrArg F hzx |
| 38 | _ = ∑ i, F (c i ⊗ₜ[Γ(S, ⊤)] x i) := map_sum F _ _ |
| 39 | _ = ∑ i, Global.Sections.moduleSectionHomEquiv ((Scheme.Modules.pullback a).obj M) |
| 40 | (Scalar.SectionValues.scalarSection (b.appTop (c i)) (Ample.LineBundles.pullbackSection a (s i))) := by |
| 41 | apply Finset.sum_congr rfl |
| 42 | intro i _ |
| 43 | exact Tensor.ScalarSectionValues.tensorComparison_scalarSectionValue H M (c i) (x i) |
| 44 | _ = Global.Sections.moduleSectionHomEquiv ((Scheme.Modules.pullback a).obj M) |
| 45 | (∑ i, Scalar.SectionValues.scalarSection (b.appTop (c i)) (Ample.LineBundles.pullbackSection a (s i))) := |
| 46 | (Module.SectionValueAdditive.moduleSectionHomEquiv_sum ((Scheme.Modules.pullback a).obj M) Finset.univ _).symm |
| 47 | |
| 48 | theorem exists_section_nonvanishing_of_tensor_surjective (L : Line.Bundles.LineBundle X) |
| 49 | (h : Function.Surjective ((Cartesian.ModuleTensorComparison.baseChangeModuleTensorComparison H L.sheaf).app (op ⊤))) |
| 50 | (y : P) (t : Line.Bundles.structureModule P ⟶ (L.pullback a).sheaf) |
| 51 | (hy : y ∈ Ample.LineBundles.sectionNonvanishing t) : |
| 52 | ∃ s : Line.Bundles.structureModule X ⟶ L.sheaf, a y ∈ Ample.LineBundles.sectionNonvanishing s := by |
| 53 | obtain ⟨k, c, s, ht⟩ := geometric_sections_spanned_of_tensor_surjective H L.sheaf h t |
| 54 | have hy' : y ∈ Ample.LineBundles.sectionNonvanishing (∑ i, Scalar.SectionValues.scalarSection (b.appTop (c i)) (Ample.LineBundles.pullbackSection a (s i))) := |
| 55 | (congrArg (fun z => y ∈ Ample.LineBundles.sectionNonvanishing z) ht).mp hy |
| 56 | obtain ⟨i, _, hi⟩ := (L.pullback a).mem_sectionNonvanishing_sum Finset.univ |
| 57 | (fun i => Scalar.SectionValues.scalarSection (b.appTop (c i)) (Ample.LineBundles.pullbackSection a (s i))) y hy' |
| 58 | have hiy := Scalar.SectionNonvanishing.scalarSection_nonvanishing_le (L.pullback a) (b.appTop (c i)) (Ample.LineBundles.pullbackSection a (s i)) hi |
| 59 | exact ⟨s i, (congrArg (fun V : P.Opens => y ∈ V) |
| 60 | (LineBundle.NonvanishingBaseChange.sectionNonvanishing_lineBundle_baseChange a L (s i))).mp hiy⟩ |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.SectionSpanning |