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.IntersectionTheory.ProjectionFormula.Relative.ProjectiveLinear |
| 2 | import Mathlib.RingTheory.MvPolynomial.Ideal |
| 3 | |
| 4 | /-! # Projective I -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectiveI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Coefficient specialization induces an actual relative projective |
| 13 | map and commutes with invertible matrix actions. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | namespace Scalars |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectiveLinear |
| 23 | |
| 24 | variable {R S : Type} [CommRing R] [CommRing S] (f : R →+* S) (n : ℕ) |
| 25 | |
| 26 | def graded : ProjectiveLinear.grading R n →+*ᵍ ProjectiveLinear.grading S n where |
| 27 | __ := MvPolynomial.map f |
| 28 | map_mem hp := hp.map f |
| 29 | |
| 30 | theorem irrelevant_le : HomogeneousIdeal.irrelevant (ProjectiveLinear.grading S n) ≤ |
| 31 | (HomogeneousIdeal.irrelevant (ProjectiveLinear.grading R n)).map (graded f n) := by |
| 32 | apply (HomogeneousIdeal.irrelevant_le (ProjectiveLinear.grading S n)).mpr |
| 33 | intro d hd p hp |
| 34 | have hv : p ∈ Ideal.span (Set.range (MvPolynomial.X : Fin (n + 1) → MvPolynomial (Fin (n + 1)) S)) := by |
| 35 | rw [← Set.image_univ, MvPolynomial.mem_ideal_span_X_image] |
| 36 | intro a ha |
| 37 | by_contra hn |
| 38 | push Not at hn |
| 39 | have hz : a = 0 := Finsupp.ext (fun i => hn i (Set.mem_univ i)) |
| 40 | have hh := hp (MvPolynomial.mem_support_iff.mp ha) |
| 41 | rw [hz, map_zero] at hh |
| 42 | omega |
| 43 | apply (Ideal.span_le.mpr ?_) hv |
| 44 | rintro _ ⟨i, rfl⟩ |
| 45 | have hi : MvPolynomial.X i ∈ HomogeneousIdeal.irrelevant (ProjectiveLinear.grading R n) := |
| 46 | HomogeneousIdeal.mem_irrelevant_of_mem _ Nat.zero_lt_one (MvPolynomial.isHomogeneous_X R i) |
| 47 | have hm := Ideal.mem_map_of_mem (graded f n).toRingHom hi |
| 48 | change MvPolynomial.map f (MvPolynomial.X i) ∈ |
| 49 | ((HomogeneousIdeal.irrelevant (ProjectiveLinear.grading R n)).map (graded f n)).toIdeal at hm |
| 50 | rw [MvPolynomial.map_X] at hm |
| 51 | exact hm |
| 52 | |
| 53 | def map : ProjectiveLinear.space S n ⟶ ProjectiveLinear.space R n := Proj.map (graded f n) (Scalars.irrelevant_le f n) |
| 54 | |
| 55 | theorem map_form (A : Matrix (Fin (n + 1)) (Fin (n + 1)) R) (i : Fin (n + 1)) : |
| 56 | MvPolynomial.map f (ProjectiveLinear.form A i) = ProjectiveLinear.form (f.mapMatrix A) i := by |
| 57 | simp [ProjectiveLinear.form] |
| 58 | |
| 59 | theorem graded_naturality (A : Matrix (Fin (n + 1)) (Fin (n + 1)) R) : |
| 60 | (graded f n).comp (ProjectiveLinear.gradedHom A) = (ProjectiveLinear.gradedHom (f.mapMatrix A)).comp (graded f n) := by |
| 61 | have h : (MvPolynomial.map f).comp (ProjectiveLinear.algebraHom A).toRingHom = |
| 62 | (ProjectiveLinear.algebraHom (f.mapMatrix A)).toRingHom.comp (MvPolynomial.map f) := by |
| 63 | apply MvPolynomial.ringHom_ext |
| 64 | · intro r |
| 65 | simp only [RingHom.comp_apply, AlgHom.toRingHom_eq_coe, AlgHom.coe_toRingHom, |
| 66 | ProjectiveLinear.algebraHom_C, MvPolynomial.map_C] |
| 67 | · intro i |
| 68 | simp only [RingHom.comp_apply, AlgHom.toRingHom_eq_coe, AlgHom.coe_toRingHom, |
| 69 | ProjectiveLinear.algebraHom_X, MvPolynomial.map_X] |
| 70 | exact map_form f n A i |
| 71 | apply GradedRingHom.ext |
| 72 | intro p |
| 73 | exact DFunLike.congr_fun h p |
| 74 | |
| 75 | def unit (A : (Matrix (Fin (n + 1)) (Fin (n + 1)) R)ˣ) : |
| 76 | (Matrix (Fin (n + 1)) (Fin (n + 1)) S)ˣ := Units.map (f.mapMatrix.toMonoidHom) A |
| 77 | |
| 78 | theorem naturality (A : (Matrix (Fin (n + 1)) (Fin (n + 1)) R)ˣ) : |
| 79 | ProjectiveLinear.map (unit f n A) ≫ Scalars.map f n = |
| 80 | Scalars.map f n ≫ ProjectiveLinear.map A := by |
| 81 | unfold Scalars.map ProjectiveLinear.map |
| 82 | rw [← Proj.map_comp, ← Proj.map_comp] |
| 83 | congr 1 |
| 84 | exact (graded_naturality f n A.val).symm |
| 85 | |
| 86 | end Scalars |
| 87 | |
| 88 | end |
| 89 | |
| 90 | section |
| 91 | |
| 92 | /-! Relative projective coordinate changes preserve the coefficient |
| 93 | scheme, and coefficient specialization gives a commutative base square. -/ |
| 94 | |
| 95 | set_option backward.isDefEq.respectTransparency false |
| 96 | set_option backward.isDefEq.respectTransparency.types false |
| 97 | |
| 98 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.HomogeneousLocalization |
| 99 | |
| 100 | namespace Base |
| 101 | |
| 102 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectiveLinear |
| 103 | |
| 104 | def constants (R : Type) [CommRing R] (n : ℕ) : R ≃+* ProjectiveLinear.grading R n 0 where |
| 105 | toFun r := ⟨MvPolynomial.C r, MvPolynomial.isHomogeneous_C (Fin (n + 1)) r⟩ |
| 106 | invFun p := AddMonoidAlgebra.coeff (p.val) (0) |
| 107 | left_inv r := MvPolynomial.coeff_zero_C r |
| 108 | right_inv p := by |
| 109 | apply Subtype.ext |
| 110 | exact (MvPolynomial.totalDegree_eq_zero_iff_eq_C.mp |
| 111 | ((MvPolynomial.totalDegree_zero_iff_isHomogeneous (Fin (n + 1))).mpr p.property)).symm |
| 112 | map_mul' r s := by apply Subtype.ext; exact map_mul MvPolynomial.C r s |
| 113 | map_add' r s := by apply Subtype.ext; exact map_add MvPolynomial.C r s |
| 114 | |
| 115 | def base (R : Type) [CommRing R] (n : ℕ) : ProjectiveLinear.space R n ⟶ Spec (.of R) := |
| 116 | Proj.toSpecZero (ProjectiveLinear.grading R n) ≫ Spec.map (CommRingCat.ofHom (constants R n).toRingHom) |
| 117 | |
| 118 | variable {R S : Type} [CommRing R] [CommRing S] {m n : ℕ} |
| 119 | |
| 120 | theorem away_zero (f : ProjectiveLinear.grading R m →+*ᵍ ProjectiveLinear.grading S n) |
| 121 | (s : MvPolynomial (Fin (m + 1)) R) (a : ProjectiveLinear.grading R m 0) : |
| 122 | Away.map f s (fromZeroRingHom (ProjectiveLinear.grading R m) (Submonoid.powers s) a) = |
| 123 | fromZeroRingHom (ProjectiveLinear.grading S n) (Submonoid.powers (f s)) (f.gradedZeroRingHom a) := by |
| 124 | change HomogeneousLocalization.map f _ (HomogeneousLocalization.mk ⟨0, a, 1, by simp⟩) = |
| 125 | HomogeneousLocalization.mk ⟨0, f.gradedZeroRingHom a, 1, by simp⟩ |
| 126 | rw [HomogeneousLocalization.map_mk] |
| 127 | congr 1 |
| 128 | apply HomogeneousLocalization.NumDenSameDeg.ext |
| 129 | · rfl |
| 130 | · rfl |
| 131 | · exact map_one f |
| 132 | |
| 133 | theorem to_zero (f : ProjectiveLinear.grading R m →+*ᵍ ProjectiveLinear.grading S n) |
| 134 | (hf : HomogeneousIdeal.irrelevant (ProjectiveLinear.grading S n) ≤ (HomogeneousIdeal.irrelevant (ProjectiveLinear.grading R m)).map f) : |
| 135 | Proj.map f hf ≫ Proj.toSpecZero (ProjectiveLinear.grading R m) = |
| 136 | Proj.toSpecZero (ProjectiveLinear.grading S n) ≫ Spec.map (CommRingCat.ofHom f.gradedZeroRingHom) := by |
| 137 | apply (Proj.mapAffineOpenCover f hf).openCover.hom_ext |
| 138 | intro s |
| 139 | change Proj.awayι (ProjectiveLinear.grading S n) (f s.2) (f.map_mem s.2.2) s.1.2 ≫ |
| 140 | (Proj.map f hf ≫ Proj.toSpecZero (ProjectiveLinear.grading R m)) = |
| 141 | Proj.awayι (ProjectiveLinear.grading S n) (f s.2) (f.map_mem s.2.2) s.1.2 ≫ |
| 142 | (Proj.toSpecZero (ProjectiveLinear.grading S n) ≫ Spec.map (CommRingCat.ofHom f.gradedZeroRingHom)) |
| 143 | rw [← Category.assoc, Proj.awayι_comp_map f hf s.1.2 s.2 s.2.2, Category.assoc, |
| 144 | Proj.awayι_toSpecZero, ← Category.assoc, Proj.awayι_toSpecZero, ← Spec.map_comp, ← Spec.map_comp] |
| 145 | congr 1 |
| 146 | ext r |
| 147 | exact congrArg HomogeneousLocalization.val (away_zero f s.2 r) |
| 148 | |
| 149 | theorem over (f : ProjectiveLinear.grading R m →+*ᵍ ProjectiveLinear.grading S n) |
| 150 | (hf : HomogeneousIdeal.irrelevant (ProjectiveLinear.grading S n) ≤ (HomogeneousIdeal.irrelevant (ProjectiveLinear.grading R m)).map f) |
| 151 | (g : R →+* S) (hg : ∀ r, f (MvPolynomial.C r) = MvPolynomial.C (g r)) : |
| 152 | Proj.map f hf ≫ base R m = base S n ≫ Spec.map (CommRingCat.ofHom g) := by |
| 153 | have hz : f.gradedZeroRingHom.comp (constants R m).toRingHom = |
| 154 | (constants S n).toRingHom.comp g := by |
| 155 | apply RingHom.ext |
| 156 | intro r |
| 157 | apply Subtype.ext |
| 158 | exact hg r |
| 159 | rw [base, ← Category.assoc, to_zero f hf, Category.assoc, ← Spec.map_comp] |
| 160 | change Proj.toSpecZero (ProjectiveLinear.grading S n) ≫ Spec.map (CommRingCat.ofHom |
| 161 | (f.gradedZeroRingHom.comp (constants R m).toRingHom)) = _ |
| 162 | rw [hz] |
| 163 | change Proj.toSpecZero (ProjectiveLinear.grading S n) ≫ Spec.map |
| 164 | (CommRingCat.ofHom g ≫ CommRingCat.ofHom (constants S n).toRingHom) = _ |
| 165 | rw [Spec.map_comp] |
| 166 | rfl |
| 167 | |
| 168 | theorem matrix_over (A : (Matrix (Fin (n + 1)) (Fin (n + 1)) R)ˣ) : |
| 169 | ProjectiveLinear.map A ≫ base R n = base R n := by |
| 170 | have h := over (ProjectiveLinear.gradedHom A.val) (ProjectiveLinear.irrelevant_le A) (RingHom.id R) |
| 171 | (fun r => ProjectiveLinear.algebraHom_C A.val r) |
| 172 | change ProjectiveLinear.map A ≫ base R n = base R n ≫ Spec.map (𝟙 (CommRingCat.of R)) at h |
| 173 | rw [Spec.map_id, Category.comp_id] at h |
| 174 | exact h |
| 175 | |
| 176 | theorem scalar_over (f : R →+* S) (n : ℕ) : |
| 177 | Scalars.map f n ≫ base R n = base S n ≫ Spec.map (CommRingCat.ofHom f) := |
| 178 | over (Scalars.graded f n) (Scalars.irrelevant_le f n) f |
| 179 | (fun r => MvPolynomial.map_C f r) |
| 180 | |
| 181 | end Base |
| 182 | |
| 183 | end |
| 184 | |
| 185 | /-! |
| 186 | # The finite coordinate affine cover of the actual projective scheme |
| 187 | |
| 188 | The variables generate the irrelevant ideal of the standard polynomial grading. |
| 189 | Consequently the usual coordinate basic opens cover `Proj R[X₀,...,Xₙ]`. |
| 190 | This file concerns the genuine scheme, not its as-yet separately constructed |
| 191 | ordinary complex topology. |
| 192 | -/ |
| 193 | |
| 194 | set_option backward.isDefEq.respectTransparency false |
| 195 | set_option backward.isDefEq.respectTransparency.types false |
| 196 | |
| 197 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 198 | |
| 199 | namespace Chart |
| 200 | |
| 201 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectiveLinear (grading space) |
| 202 | |
| 203 | /-- Every positive-degree homogeneous polynomial lies in the ideal of variables. -/ |
| 204 | theorem positive_homogeneous_mem_coordinateIdeal (R : Type) [CommRing R] (n d : ℕ) (hd : 0 < d) |
| 205 | (f : MvPolynomial (Fin (n + 1)) R) (hf : f ∈ ProjectiveLinear.grading R n d) : |
| 206 | f ∈ Ideal.span (Set.range (MvPolynomial.X : Fin (n + 1) → MvPolynomial (Fin (n + 1)) R)) := by |
| 207 | have hpow : f ∈ MvPolynomial.idealOfVars (Fin (n + 1)) R ^ 1 := by |
| 208 | rw [MvPolynomial.mem_pow_idealOfVars_iff] |
| 209 | intro m hm |
| 210 | have hdeg : m.degree = d := by |
| 211 | simpa only [Finsupp.degree_eq_weight_one, Pi.one_def] using |
| 212 | hf (MvPolynomial.mem_support_iff.mp hm) |
| 213 | simpa only [hdeg] using (Nat.succ_le_iff.mpr hd) |
| 214 | simpa only [pow_one] using hpow |
| 215 | |
| 216 | /-- The irrelevant ideal in the standard polynomial grading is generated by the variables. -/ |
| 217 | theorem projective_irrelevant_eq_coordinateIdeal (R : Type) [CommRing R] (n : ℕ) : |
| 218 | (HomogeneousIdeal.irrelevant (ProjectiveLinear.grading R n)).toIdeal = |
| 219 | Ideal.span (Set.range (MvPolynomial.X : Fin (n + 1) → MvPolynomial (Fin (n + 1)) R)) := by |
| 220 | apply le_antisymm |
| 221 | · apply (HomogeneousIdeal.toIdeal_irrelevant_le (ProjectiveLinear.grading R n)).mpr |
| 222 | intro d hd f hf |
| 223 | exact positive_homogeneous_mem_coordinateIdeal R n d hd f hf |
| 224 | · rw [Ideal.span_le] |
| 225 | rintro f ⟨i, rfl⟩ |
| 226 | exact HomogeneousIdeal.mem_irrelevant_of_mem (ProjectiveLinear.grading R n) (by decide : 0 < 1) |
| 227 | (MvPolynomial.isHomogeneous_X R i) |
| 228 | |
| 229 | /-- The usual coordinate open `Xᵢ ≠ 0` inside the genuine projective scheme. -/ |
| 230 | abbrev projectiveCoordinateOpen (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) : (ProjectiveLinear.space R n).Opens := |
| 231 | Proj.basicOpen (ProjectiveLinear.grading R n) (MvPolynomial.X i) |
| 232 | |
| 233 | @[simp] |
| 234 | theorem mem_projectiveCoordinateOpen (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) (x : ProjectiveLinear.space R n) : |
| 235 | x ∈ projectiveCoordinateOpen R n i ↔ MvPolynomial.X i ∉ x.asHomogeneousIdeal := |
| 236 | Proj.mem_basicOpen (ProjectiveLinear.grading R n) (MvPolynomial.X i) x |
| 237 | |
| 238 | /-- Coordinate opens cover the projective scheme. -/ |
| 239 | theorem iSup_projectiveCoordinateOpen (R : Type) [CommRing R] (n : ℕ) : |
| 240 | (⨆ i, projectiveCoordinateOpen R n i) = ⊤ := by |
| 241 | apply Proj.iSup_basicOpen_eq_top |
| 242 | exact (projective_irrelevant_eq_coordinateIdeal R n).le |
| 243 | |
| 244 | /-- In particular, every scheme point belongs to at least one coordinate chart. -/ |
| 245 | theorem exists_mem_projectiveCoordinateOpen (R : Type) [CommRing R] (n : ℕ) (x : ProjectiveLinear.space R n) : |
| 246 | ∃ i, x ∈ projectiveCoordinateOpen R n i := by |
| 247 | apply TopologicalSpace.Opens.mem_iSup.mp |
| 248 | rw [iSup_projectiveCoordinateOpen] |
| 249 | trivial |
| 250 | |
| 251 | /-- The finite standard affine open cover, with chart rings the actual degree-zero localizations. -/ |
| 252 | def projectiveCoordinateAffineCover (R : Type) [CommRing R] (n : ℕ) : (ProjectiveLinear.space R n).AffineOpenCover := |
| 253 | Proj.affineOpenCoverOfIrrelevantLESpan (ProjectiveLinear.grading R n) |
| 254 | (fun (i : Fin (n + 1)) => MvPolynomial.X i) |
| 255 | (m := fun _ => 1) |
| 256 | (fun i => MvPolynomial.isHomogeneous_X R i) |
| 257 | (fun _ => by decide) |
| 258 | (projective_irrelevant_eq_coordinateIdeal R n).le |
| 259 | |
| 260 | /-- Its indexing type has precisely the `n + 1` standard coordinates. -/ |
| 261 | @[simp] |
| 262 | theorem projectiveCoordinateAffineCover_index (R : Type) [CommRing R] (n : ℕ) : |
| 263 | (projectiveCoordinateAffineCover R n).I₀ = Fin (n + 1) := rfl |
| 264 | |
| 265 | /-- Each coordinate basic open is affine. -/ |
| 266 | theorem projectiveCoordinateOpen_isAffine (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) : |
| 267 | IsAffineOpen (projectiveCoordinateOpen R n i) := |
| 268 | Proj.isAffineOpen_basicOpen (ProjectiveLinear.grading R n) (MvPolynomial.X i) |
| 269 | (MvPolynomial.isHomogeneous_X R i) (by decide : 0 < 1) |
| 270 | |
| 271 | end Chart |
| 272 | |
| 273 | end |
| 274 | |
| 275 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectiveI |