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.RepresentationTheory.Theta.Geometric.Projective.Charts |
| 2 | import Mathlib.AlgebraicGeometry.ProjectiveSpectrum.Functor |
| 3 | import Mathlib.RingTheory.MvPolynomial.Ideal |
| 4 | |
| 5 | /-! # Map -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Geometric.Projective.Map.RelativeProjective |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | variable (R : Type) [CommRing R] |
| 14 | |
| 15 | abbrev projectiveSpace (n : ℕ) : Scheme := Proj (Charts.RelativeProjective.projectiveGrading R n) |
| 16 | def projectiveSpaceToBase (n : ℕ) : projectiveSpace R n ⟶ Spec (.of R) := |
| 17 | Proj.toSpecZero (Charts.RelativeProjective.projectiveGrading R n) ≫ |
| 18 | Spec.map (CommRingCat.ofHom (Charts.RelativeProjective.degreeZeroConstants R n).toRingHom) |
| 19 | |
| 20 | theorem projectiveSpaceToBase_chart (n m : ℕ) |
| 21 | (f : Charts.RelativeProjective.homogeneousCoordinateRing R n) (hf : f ∈ Charts.RelativeProjective.projectiveGrading R n m) (hm : 0 < m) : |
| 22 | Proj.awayι (Charts.RelativeProjective.projectiveGrading R n) f hf hm ≫ projectiveSpaceToBase R n = |
| 23 | Spec.map (CommRingCat.ofHom |
| 24 | ((HomogeneousLocalization.fromZeroRingHom (Charts.RelativeProjective.projectiveGrading R n) (Submonoid.powers f)).comp |
| 25 | (Charts.RelativeProjective.degreeZeroConstants R n).toRingHom)) := by |
| 26 | change Proj.awayι _ f hf hm ≫ (Proj.toSpecZero _ ≫ Spec.map _) = _ |
| 27 | rw [← Category.assoc, Proj.awayι_toSpecZero, ← Spec.map_comp] |
| 28 | rfl |
| 29 | |
| 30 | /-- Every positive-degree homogeneous polynomial lies in the ideal of variables. -/ |
| 31 | theorem positive_homogeneous_mem_coordinateIdeal (n d : ℕ) (hd : 0 < d) |
| 32 | (f : Charts.RelativeProjective.homogeneousCoordinateRing R n) (hf : f ∈ Charts.RelativeProjective.projectiveGrading R n d) : |
| 33 | f ∈ Ideal.span (Set.range (MvPolynomial.X : Fin (n + 1) → Charts.RelativeProjective.homogeneousCoordinateRing R n)) := by |
| 34 | have hpow : f ∈ MvPolynomial.idealOfVars (Fin (n + 1)) R ^ 1 := by |
| 35 | rw [MvPolynomial.mem_pow_idealOfVars_iff] |
| 36 | intro m hm |
| 37 | have hdeg : m.degree = d := by |
| 38 | simpa only [Finsupp.degree_eq_weight_one, Pi.one_def] using |
| 39 | hf (MvPolynomial.mem_support_iff.mp hm) |
| 40 | simpa only [hdeg] using (Nat.succ_le_iff.mpr hd) |
| 41 | simpa only [pow_one] using hpow |
| 42 | |
| 43 | /-- The irrelevant ideal in the standard polynomial grading is generated by the variables. -/ |
| 44 | theorem projective_irrelevant_eq_coordinateIdeal (n : ℕ) : |
| 45 | (HomogeneousIdeal.irrelevant (Charts.RelativeProjective.projectiveGrading R n)).toIdeal = |
| 46 | Ideal.span (Set.range (MvPolynomial.X : Fin (n + 1) → Charts.RelativeProjective.homogeneousCoordinateRing R n)) := by |
| 47 | apply le_antisymm |
| 48 | · apply (HomogeneousIdeal.toIdeal_irrelevant_le (Charts.RelativeProjective.projectiveGrading R n)).mpr |
| 49 | intro d hd f hf |
| 50 | exact positive_homogeneous_mem_coordinateIdeal R n d hd f hf |
| 51 | · rw [Ideal.span_le] |
| 52 | rintro f ⟨i, rfl⟩ |
| 53 | exact HomogeneousIdeal.mem_irrelevant_of_mem (Charts.RelativeProjective.projectiveGrading R n) (by decide : 0 < 1) |
| 54 | (MvPolynomial.isHomogeneous_X R i) |
| 55 | |
| 56 | /-- The usual coordinate open `Xᵢ ≠ 0` inside the genuine projective scheme. -/ |
| 57 | abbrev projectiveCoordinateOpen (n : ℕ) (i : Fin (n + 1)) : (projectiveSpace R n).Opens := |
| 58 | Proj.basicOpen (Charts.RelativeProjective.projectiveGrading R n) (MvPolynomial.X i) |
| 59 | |
| 60 | @[simp] |
| 61 | theorem mem_projectiveCoordinateOpen (n : ℕ) (i : Fin (n + 1)) (x : projectiveSpace R n) : |
| 62 | x ∈ projectiveCoordinateOpen R n i ↔ MvPolynomial.X i ∉ x.asHomogeneousIdeal := |
| 63 | Proj.mem_basicOpen (Charts.RelativeProjective.projectiveGrading R n) (MvPolynomial.X i) x |
| 64 | |
| 65 | /-- Coordinate opens cover the projective scheme. -/ |
| 66 | theorem iSup_projectiveCoordinateOpen (n : ℕ) : |
| 67 | (⨆ i, projectiveCoordinateOpen R n i) = ⊤ := by |
| 68 | apply Proj.iSup_basicOpen_eq_top |
| 69 | exact (projective_irrelevant_eq_coordinateIdeal R n).le |
| 70 | |
| 71 | /-- In particular, every scheme point belongs to at least one coordinate chart. -/ |
| 72 | theorem exists_mem_projectiveCoordinateOpen (n : ℕ) (x : projectiveSpace R n) : |
| 73 | ∃ i, x ∈ projectiveCoordinateOpen R n i := by |
| 74 | apply TopologicalSpace.Opens.mem_iSup.mp |
| 75 | rw [iSup_projectiveCoordinateOpen] |
| 76 | trivial |
| 77 | |
| 78 | /-- The finite standard affine open cover, with chart rings the actual degree-zero localizations. -/ |
| 79 | def projectiveCoordinateAffineCover (n : ℕ) : (projectiveSpace R n).AffineOpenCover := |
| 80 | Proj.affineOpenCoverOfIrrelevantLESpan (Charts.RelativeProjective.projectiveGrading R n) |
| 81 | (fun (i : Fin (n + 1)) => MvPolynomial.X i) |
| 82 | (m := fun _ => 1) |
| 83 | (fun i => MvPolynomial.isHomogeneous_X R i) |
| 84 | (fun _ => by decide) |
| 85 | (projective_irrelevant_eq_coordinateIdeal R n).le |
| 86 | |
| 87 | /-- Its indexing type has precisely the `n + 1` standard coordinates. -/ |
| 88 | @[simp] |
| 89 | theorem projectiveCoordinateAffineCover_index (n : ℕ) : |
| 90 | (projectiveCoordinateAffineCover R n).I₀ = Fin (n + 1) := rfl |
| 91 | |
| 92 | /-- Each coordinate basic open is affine. -/ |
| 93 | theorem projectiveCoordinateOpen_isAffine (n : ℕ) (i : Fin (n + 1)) : |
| 94 | IsAffineOpen (projectiveCoordinateOpen R n i) := |
| 95 | Proj.isAffineOpen_basicOpen (Charts.RelativeProjective.projectiveGrading R n) (MvPolynomial.X i) |
| 96 | (MvPolynomial.isHomogeneous_X R i) (by decide : 0 < 1) |
| 97 | |
| 98 | variable {R} {S : Type} [CommRing S] |
| 99 | |
| 100 | def coordinateGradedMap (f : R →+* S) (n : ℕ) : |
| 101 | Charts.RelativeProjective.projectiveGrading R n →+*ᵍ Charts.RelativeProjective.projectiveGrading S n where |
| 102 | toRingHom := MvPolynomial.map f |
| 103 | map_mem h := h.map f |
| 104 | |
| 105 | @[simp] theorem coordinateGradedMap_X (f : R →+* S) (n : ℕ) (i : Fin (n + 1)) : |
| 106 | coordinateGradedMap f n (MvPolynomial.X i) = MvPolynomial.X i := MvPolynomial.map_X f i |
| 107 | |
| 108 | theorem irrelevant_le_coordinateMap (f : R →+* S) (n : ℕ) : |
| 109 | HomogeneousIdeal.irrelevant (Charts.RelativeProjective.projectiveGrading S n) ≤ |
| 110 | (HomogeneousIdeal.irrelevant (Charts.RelativeProjective.projectiveGrading R n)).map (coordinateGradedMap f n) := by |
| 111 | apply toIdeal_le_toIdeal_iff.mp |
| 112 | rw [projective_irrelevant_eq_coordinateIdeal] |
| 113 | apply Ideal.span_le.mpr |
| 114 | rintro _ ⟨i, rfl⟩ |
| 115 | rw [← coordinateGradedMap_X f n i] |
| 116 | apply Ideal.mem_map_of_mem |
| 117 | exact HomogeneousIdeal.mem_irrelevant_of_mem (Charts.RelativeProjective.projectiveGrading R n) Nat.zero_lt_one |
| 118 | (MvPolynomial.isHomogeneous_X R i) |
| 119 | |
| 120 | def coefficientMap (f : R →+* S) (n : ℕ) : projectiveSpace S n ⟶ projectiveSpace R n := |
| 121 | Proj.map (coordinateGradedMap f n) (irrelevant_le_coordinateMap f n) |
| 122 | |
| 123 | @[simp] theorem coefficientMap_preimage (f : R →+* S) (n : ℕ) (i : Fin (n + 1)) : |
| 124 | coefficientMap f n ⁻¹ᵁ projectiveCoordinateOpen R n i = projectiveCoordinateOpen S n i := by |
| 125 | change Proj.basicOpen (Charts.RelativeProjective.projectiveGrading S n) (coordinateGradedMap f n (MvPolynomial.X i)) = _ |
| 126 | rw [coordinateGradedMap_X] |
| 127 | |
| 128 | end |
| 129 | |
| 130 | end OAI.RepresentationTheory.Theta.Geometric.Projective.Map.RelativeProjective |