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.ProjectiveSpace |
| 2 | import Mathlib.RingTheory.Ideal.Maps |
| 3 | |
| 4 | /-! # Projective Vector Point -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveVectorPoint |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Actual projective scheme points from homogeneous coordinates |
| 12 | |
| 13 | A nonzero complex vector defines a scheme morphism from `Spec ℂ` to the |
| 14 | standard projective scheme, using mathlib's construction from global sections. |
| 15 | The morphism is proved to be over `Spec ℂ`, and its homogeneous basic-open |
| 16 | membership is identified with ordinary polynomial evaluation. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option warningAsError true |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 23 | |
| 24 | variable {n : ℕ} |
| 25 | |
| 26 | /-- Evaluate homogeneous coordinates, then view the resulting complex number |
| 27 | as a global section of the actual affine scheme `Spec ℂ`. -/ |
| 28 | def vectorGlobalSections (v : Fin (n + 1) → ℂ) : |
| 29 | ProjectiveSpace.homogeneousCoordinateRing n →+* Γ(ProjectiveSpace.complexBase, ⊤) := |
| 30 | (Scheme.ΓSpecIso (.of ℂ)).inv.hom.comp (MvPolynomial.eval v) |
| 31 | |
| 32 | @[simp] |
| 33 | theorem vectorGlobalSections_apply (v : Fin (n + 1) → ℂ) |
| 34 | (f : ProjectiveSpace.homogeneousCoordinateRing n) : |
| 35 | vectorGlobalSections v f = (Scheme.ΓSpecIso (.of ℂ)).inv (MvPolynomial.eval v f) := rfl |
| 36 | |
| 37 | @[simp] |
| 38 | theorem vectorGlobalSections_X (v : Fin (n + 1) → ℂ) (i : Fin (n + 1)) : |
| 39 | vectorGlobalSections v (MvPolynomial.X i) = (Scheme.ΓSpecIso (.of ℂ)).inv (v i) := by |
| 40 | simp [vectorGlobalSections] |
| 41 | |
| 42 | /-- A nonzero coordinate vector makes the image of the irrelevant ideal |
| 43 | contain a unit. This is the genuine hypothesis required by the `Proj` map. -/ |
| 44 | theorem vectorGlobalSections_map_irrelevant_eq_top (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) : |
| 45 | (HomogeneousIdeal.irrelevant (ProjectiveSpace.projectiveGrading n)).toIdeal.map |
| 46 | (vectorGlobalSections v) = ⊤ := by |
| 47 | classical |
| 48 | have hn : ∃ i, v i ≠ 0 := by |
| 49 | by_contra h |
| 50 | push Not at h |
| 51 | exact hv (funext h) |
| 52 | obtain ⟨i, hi⟩ := hn |
| 53 | have hX : (MvPolynomial.X i : ProjectiveSpace.homogeneousCoordinateRing n) ∈ |
| 54 | (HomogeneousIdeal.irrelevant (ProjectiveSpace.projectiveGrading n)).toIdeal := |
| 55 | HomogeneousIdeal.mem_irrelevant_of_mem _ Nat.zero_lt_one (MvPolynomial.isHomogeneous_X ℂ i) |
| 56 | apply Ideal.eq_top_of_isUnit_mem _ (Ideal.mem_map_of_mem (vectorGlobalSections v) hX) |
| 57 | rw [vectorGlobalSections_X] |
| 58 | exact (isUnit_iff_ne_zero.mpr hi).map (Scheme.ΓSpecIso (.of ℂ)).inv.hom |
| 59 | |
| 60 | /-- The scheme-theoretic complex point with homogeneous coordinates v. -/ |
| 61 | def projectiveVectorPoint (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) : |
| 62 | ProjectiveSpace.complexBase ⟶ ProjectiveSpace.projectiveSpace n := |
| 63 | Proj.fromOfGlobalSections (ProjectiveSpace.projectiveGrading n) (vectorGlobalSections v) |
| 64 | (vectorGlobalSections_map_irrelevant_eq_top v hv) |
| 65 | |
| 66 | /-- Pulling back a homogeneous projective basic open amounts to testing |
| 67 | whether its polynomial evaluation is nonzero on `Spec ℂ`. -/ |
| 68 | theorem projectiveVectorPoint_preimage_basicOpen (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) |
| 69 | (f : ProjectiveSpace.homogeneousCoordinateRing n) {d : ℕ} (hd : 0 < d) |
| 70 | (hf : f ∈ ProjectiveSpace.projectiveGrading n d) : |
| 71 | projectiveVectorPoint v hv ⁻¹ᵁ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f = |
| 72 | PrimeSpectrum.basicOpen (MvPolynomial.eval v f) := by |
| 73 | rw [projectiveVectorPoint, Proj.fromOfGlobalSections_preimage_basicOpen _ _ _ hd hf] |
| 74 | exact basicOpen_eq_of_affine (R := .of ℂ) (MvPolynomial.eval v f) |
| 75 | |
| 76 | /-- Membership of the underlying point in any positive-degree homogeneous |
| 77 | basic open is exactly nonvanishing of ordinary evaluation. -/ |
| 78 | theorem projectiveVectorPoint_mem_basicOpen_iff (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) |
| 79 | (f : ProjectiveSpace.homogeneousCoordinateRing n) {d : ℕ} (hd : 0 < d) |
| 80 | (hf : f ∈ ProjectiveSpace.projectiveGrading n d) (x : ProjectiveSpace.complexBase) : |
| 81 | projectiveVectorPoint v hv x ∈ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f ↔ |
| 82 | MvPolynomial.eval v f ≠ 0 := by |
| 83 | change x ∈ projectiveVectorPoint v hv ⁻¹ᵁ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f ↔ _ |
| 84 | rw [projectiveVectorPoint_preimage_basicOpen v hv f hd hf] |
| 85 | change x ∈ PrimeSpectrum.basicOpen (MvPolynomial.eval v f) ↔ _ |
| 86 | rw [Subsingleton.elim x (default : ProjectiveSpace.complexBase)] |
| 87 | change (MvPolynomial.eval v f ∉ (default : ProjectiveSpace.complexBase).asIdeal) ↔ _ |
| 88 | rw [Scheme.default_asIdeal] |
| 89 | rfl |
| 90 | |
| 91 | /-- In particular, the standard i-th projective chart contains this point |
| 92 | exactly when its i-th homogeneous coordinate is nonzero. -/ |
| 93 | @[simp] |
| 94 | theorem projectiveVectorPoint_mem_coordinateOpen_iff (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) |
| 95 | (i : Fin (n + 1)) (x : ProjectiveSpace.complexBase) : |
| 96 | projectiveVectorPoint v hv x ∈ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) (MvPolynomial.X i) ↔ |
| 97 | v i ≠ 0 := by |
| 98 | simpa using projectiveVectorPoint_mem_basicOpen_iff v hv (MvPolynomial.X i) |
| 99 | Nat.zero_lt_one (MvPolynomial.isHomogeneous_X ℂ i) x |
| 100 | |
| 101 | /-- The constructed point is a morphism over the complex base, not merely an |
| 102 | unstructured scheme morphism into the projective scheme. -/ |
| 103 | @[reassoc (attr := simp)] |
| 104 | theorem projectiveVectorPoint_over_base (v : Fin (n + 1) → ℂ) (hv : v ≠ 0) : |
| 105 | projectiveVectorPoint v hv ≫ ProjectiveSpace.projectiveSpaceToBase n = 𝟙 ProjectiveSpace.complexBase := by |
| 106 | have hc : CommRingCat.ofHom (ProjectiveSpace.degreeZeroConstants n).toRingHom ≫ |
| 107 | CommRingCat.ofHom ((vectorGlobalSections v).comp |
| 108 | (algebraMap (ProjectiveSpace.projectiveGrading n 0) (ProjectiveSpace.homogeneousCoordinateRing n))) = |
| 109 | (Scheme.ΓSpecIso (.of ℂ)).inv := by |
| 110 | ext c |
| 111 | change (Scheme.ΓSpecIso (.of ℂ)).inv (MvPolynomial.eval v (MvPolynomial.C c)) = |
| 112 | (Scheme.ΓSpecIso (.of ℂ)).inv c |
| 113 | simp |
| 114 | rw [ProjectiveSpace.projectiveSpaceToBase, ← Category.assoc, projectiveVectorPoint, |
| 115 | Proj.fromOfGlobalSections_toSpecZero, Category.assoc, ← Spec.map_comp, hc] |
| 116 | exact toSpecΓ_SpecMap_ΓSpecIso_inv (.of ℂ) |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveVectorPoint |