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.AlgebraicGeometry.Morphisms.Affine |
| 5 | import Mathlib.Algebra.CharZero.Infinite |
| 6 | |
| 7 | /-! # Affine Neighborhood -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.AffineNeighborhood |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Every finite set of points in a complex projective presentation has a |
| 14 | common affine neighborhood. A linear homogeneous polynomial avoiding all |
| 15 | the point ideals is obtained by finite subspace avoidance. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe v |
| 20 | |
| 21 | theorem exists_linear_form (n : ℕ) {ι : Type v} [Finite ι] |
| 22 | (x : ι → Foundations.Scheme.ProjectiveSpace.projectiveSpace n) : |
| 23 | ∃ f : Foundations.Scheme.ProjectiveSpace.homogeneousCoordinateRing n, f ∈ Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 ∧ |
| 24 | ∀ i, f ∉ (x i).asHomogeneousIdeal := by |
| 25 | let V := Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 |
| 26 | let N : ι → Submodule ℂ V := fun i => |
| 27 | ((x i).asHomogeneousIdeal.toIdeal.restrictScalars ℂ).comap V.subtype |
| 28 | have hN (i : ι) : N i ≠ ⊤ := by |
| 29 | obtain ⟨k, hk⟩ := Foundations.Scheme.ProjectiveCoordinateCover.exists_mem_projectiveCoordinateOpen n (x i) |
| 30 | rw [Foundations.Scheme.ProjectiveCoordinateCover.mem_projectiveCoordinateOpen] at hk |
| 31 | intro h |
| 32 | have hm : (⟨MvPolynomial.X k, MvPolynomial.isHomogeneous_X ℂ k⟩ : V) ∈ N i := by |
| 33 | rw [h] |
| 34 | trivial |
| 35 | exact hk hm |
| 36 | obtain ⟨f, hf⟩ := Submodule.exists_forall_notMem_of_forall_ne_top N hN |
| 37 | exact ⟨f, f.property, hf⟩ |
| 38 | |
| 39 | theorem projectiveSpace_common_affine (n : ℕ) {ι : Type v} [Finite ι] |
| 40 | (x : ι → Foundations.Scheme.ProjectiveSpace.projectiveSpace n) : |
| 41 | ∃ U : (Foundations.Scheme.ProjectiveSpace.projectiveSpace n).Opens, IsAffineOpen U ∧ ∀ i, x i ∈ U := by |
| 42 | obtain ⟨f, hf, hx⟩ := exists_linear_form n x |
| 43 | exact ⟨Proj.basicOpen (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) f, |
| 44 | Proj.isAffineOpen_basicOpen (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) f hf (by decide : 0 < 1), |
| 45 | fun i => (Proj.mem_basicOpen (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) f (x i)).mpr (hx i)⟩ |
| 46 | |
| 47 | theorem common_affine {X : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 48 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X f) {ι : Type v} [Finite ι] (x : ι → X) : |
| 49 | ∃ U : X.Opens, IsAffineOpen U ∧ ∀ i, x i ∈ U := by |
| 50 | obtain ⟨U, hU, hx⟩ := projectiveSpace_common_affine P.ambientDimension (fun i => P.embedding (x i)) |
| 51 | exact ⟨P.embedding ⁻¹ᵁ U, hU.preimage P.embedding, hx⟩ |
| 52 | |
| 53 | theorem common_affine_finset {X : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 54 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X f) (s : Finset X) : |
| 55 | ∃ U : X.Opens, IsAffineOpen U ∧ ∀ x ∈ s, x ∈ U := by |
| 56 | obtain ⟨U, hU, hx⟩ := common_affine P (fun x : s => x.val) |
| 57 | exact ⟨U, hU, fun x hx' => hx ⟨x, hx'⟩⟩ |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.AffineNeighborhood |