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.Foundations.Scheme.ProjectiveCoordinateCover |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.SmoothProjective |
| 3 | import Mathlib.Algebra.Module.Submodule.Union |
| 4 | import Mathlib.Algebra.CharZero.Infinite |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 6 | |
| 7 | /-! # Finite Affine -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Projective.FiniteAffine.BundleCycles |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! # LineBundleCycles: every finite family of points in a projective complex scheme has a common affine neighborhood -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 16 | |
| 17 | def projectiveVanishingLinearForms (n : ℕ) (x : Foundations.Scheme.ProjectiveSpace.projectiveSpace n) : |
| 18 | Submodule ℂ (Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) := |
| 19 | (x.asHomogeneousIdeal.toIdeal.restrictScalars ℂ).comap (Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1).subtype |
| 20 | |
| 21 | theorem projectiveVanishingLinearForms_ne_top (n : ℕ) (x : Foundations.Scheme.ProjectiveSpace.projectiveSpace n) : |
| 22 | projectiveVanishingLinearForms n x ≠ ⊤ := by |
| 23 | obtain ⟨i, hi⟩ := Foundations.Scheme.ProjectiveCoordinateCover.exists_mem_projectiveCoordinateOpen n x |
| 24 | have hn := (Foundations.Scheme.ProjectiveCoordinateCover.mem_projectiveCoordinateOpen n i x).mp hi |
| 25 | intro he |
| 26 | have hm : (⟨MvPolynomial.X i, MvPolynomial.isHomogeneous_X ℂ i⟩ : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) ∈ |
| 27 | projectiveVanishingLinearForms n x := by rw [he]; exact Submodule.mem_top |
| 28 | exact hn hm |
| 29 | |
| 30 | theorem exists_projective_linearForm_avoiding {ι : Type*} [Finite ι] |
| 31 | (n : ℕ) (x : ι → Foundations.Scheme.ProjectiveSpace.projectiveSpace n) : |
| 32 | ∃ a : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1, ∀ i, a.val ∉ (x i).asHomogeneousIdeal := |
| 33 | Submodule.exists_forall_notMem_of_forall_ne_top (fun i => projectiveVanishingLinearForms n (x i)) |
| 34 | (fun i => projectiveVanishingLinearForms_ne_top n (x i)) |
| 35 | |
| 36 | theorem exists_projectiveSpace_commonAffine {ι : Type*} [Finite ι] |
| 37 | (n : ℕ) (x : ι → Foundations.Scheme.ProjectiveSpace.projectiveSpace n) : |
| 38 | ∃ U : (Foundations.Scheme.ProjectiveSpace.projectiveSpace n).Opens, IsAffineOpen U ∧ ∀ i, x i ∈ U := by |
| 39 | obtain ⟨a, ha⟩ := exists_projective_linearForm_avoiding n x |
| 40 | exact ⟨Proj.basicOpen (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) a.val, |
| 41 | Proj.isAffineOpen_basicOpen (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) a.val a.property Nat.zero_lt_one, |
| 42 | fun i => (Proj.mem_basicOpen (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) a.val (x i)).mpr (ha i)⟩ |
| 43 | |
| 44 | theorem exists_projective_commonAffine {X : Scheme.{0}} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 45 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X f) {ι : Type*} [Finite ι] (x : ι → X) : |
| 46 | ∃ U : X.Opens, IsAffineOpen U ∧ ∀ i, x i ∈ U := by |
| 47 | obtain ⟨U, hU, hx⟩ := exists_projectiveSpace_commonAffine P.ambientDimension (fun i => P.embedding (x i)) |
| 48 | exact ⟨P.embedding ⁻¹ᵁ U, hU.preimage P.embedding, hx⟩ |
| 49 | |
| 50 | theorem exists_affineOverProjective_commonAffine {X Y : Scheme.{0}} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 51 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X f) (q : Y ⟶ X) [IsAffineHom q] |
| 52 | {ι : Type*} [Finite ι] (x : ι → Y) : |
| 53 | ∃ U : Y.Opens, IsAffineOpen U ∧ ∀ i, x i ∈ U := by |
| 54 | obtain ⟨U, hU, hx⟩ := exists_projective_commonAffine P (fun i => q (x i)) |
| 55 | exact ⟨q ⁻¹ᵁ U, hU.preimage q, hx⟩ |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Projective.FiniteAffine.BundleCycles |