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.ProjectiveVectorScale |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveChart |
| 3 | |
| 4 | /-! # Projective Chart Point -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveChartPoint |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Actual affine chart points and normalized homogeneous coordinates |
| 12 | |
| 13 | The inverse affine chart of the genuine projective scheme takes an evaluated |
| 14 | affine point to the vector point obtained by inserting a coordinate equal to one. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization |
| 20 | |
| 21 | /-- The scheme point obtained by evaluating the polynomial coordinates of a |
| 22 | standard affine chart and then including the chart in projective space. -/ |
| 23 | def projectiveAffinePoint (n : ℕ) (i : Fin (n + 1)) |
| 24 | (a : {j : Fin (n + 1) // j ≠ i} → ℂ) : ProjectiveSpace.complexBase ⟶ ProjectiveSpace.projectiveSpace n := |
| 25 | Spec.map (CommRingCat.ofHom (MvPolynomial.eval a)) ≫ ProjectiveChart.projectiveAffineChartMap n i |
| 26 | |
| 27 | @[reassoc (attr := simp)] |
| 28 | theorem projectiveAffinePoint_over_base (n : ℕ) (i : Fin (n + 1)) |
| 29 | (a : {j : Fin (n + 1) // j ≠ i} → ℂ) : |
| 30 | projectiveAffinePoint n i a ≫ ProjectiveSpace.projectiveSpaceToBase n = 𝟙 ProjectiveSpace.complexBase := by |
| 31 | rw [projectiveAffinePoint, Category.assoc, ProjectiveChart.projectiveAffineChartMap_over] |
| 32 | have h : CommRingCat.ofHom (MvPolynomial.C : ℂ →+* ProjectiveChartToPolynomial.projectiveChartPolynomial n i) ≫ |
| 33 | CommRingCat.ofHom (MvPolynomial.eval a) = 𝟙 (CommRingCat.of ℂ) := by |
| 34 | ext c |
| 35 | simp |
| 36 | rw [ProjectiveChart.projectiveChartPolynomialToBase, ← Spec.map_comp, h, Spec.map_id] |
| 37 | |
| 38 | /-- Evaluation of the homogeneous fraction used to test a projective basic open. -/ |
| 39 | theorem projectiveChartToPolynomial_isLocalizationElem (n : ℕ) (i : Fin (n + 1)) |
| 40 | (f : ProjectiveSpace.homogeneousCoordinateRing n) (d : ℕ) (hf : f ∈ ProjectiveSpace.projectiveGrading n d) : |
| 41 | ProjectiveChartToPolynomial.projectiveChartToPolynomial n i |
| 42 | (HomogeneousLocalization.Away.isLocalizationElem |
| 43 | (ProjectiveChartToPolynomial.projectiveVariable_homogeneous n i) hf) = DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i f := by |
| 44 | simp only [HomogeneousLocalization.Away.isLocalizationElem, |
| 45 | ProjectiveChartToPolynomial.projectiveChartToPolynomial_mk, pow_one] |
| 46 | |
| 47 | /-- Projective basic opens pull back under an affine chart point according to |
| 48 | ordinary evaluation on the normalized homogeneous coordinate vector. -/ |
| 49 | theorem projectiveAffinePoint_preimage_basicOpen (n : ℕ) (i : Fin (n + 1)) |
| 50 | (a : {j : Fin (n + 1) // j ≠ i} → ℂ) |
| 51 | (f : ProjectiveSpace.homogeneousCoordinateRing n) (d : ℕ) (hd : 0 < d) |
| 52 | (hf : f ∈ ProjectiveSpace.projectiveGrading n d) : |
| 53 | projectiveAffinePoint n i a ⁻¹ᵁ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f = |
| 54 | PrimeSpectrum.basicOpen (MvPolynomial.eval (DehomogenizationC.Algebraic.Dehomogenization.insertOne i a) f) := by |
| 55 | rw [projectiveAffinePoint, ProjectiveChart.projectiveAffineChartMap, ProjectiveChart.projectiveCoordinateIsoSpec_inv_ι] |
| 56 | rw [Scheme.Hom.comp_preimage, Scheme.Hom.comp_preimage, |
| 57 | Proj.awayι_preimage_basicOpen (𝒜 := ProjectiveSpace.projectiveGrading n) |
| 58 | (ProjectiveChartToPolynomial.projectiveVariable_homogeneous n i) (by decide : 0 < 1) hf hd, |
| 59 | SpecMap_preimage_basicOpen, SpecMap_preimage_basicOpen] |
| 60 | change PrimeSpectrum.basicOpen |
| 61 | (MvPolynomial.eval a (ProjectiveChartToPolynomial.projectiveChartToPolynomial n i |
| 62 | (HomogeneousLocalization.Away.isLocalizationElem |
| 63 | (ProjectiveChartToPolynomial.projectiveVariable_homogeneous n i) hf))) = _ |
| 64 | rw [projectiveChartToPolynomial_isLocalizationElem n i f d hf, DehomogenizationC.Algebraic.Dehomogenization.eval_dehomogenize] |
| 65 | |
| 66 | /-- Homogeneous equations of an evaluated affine chart point, in every degree. -/ |
| 67 | theorem projectiveAffinePoint_homogeneous_mem_iff (n : ℕ) (i : Fin (n + 1)) |
| 68 | (a : {j : Fin (n + 1) // j ≠ i} → ℂ) |
| 69 | (f : ProjectiveSpace.homogeneousCoordinateRing n) (d : ℕ) (hf : f ∈ ProjectiveSpace.projectiveGrading n d) |
| 70 | (x : ProjectiveSpace.complexBase) : |
| 71 | f ∈ (projectiveAffinePoint n i a x).asHomogeneousIdeal ↔ |
| 72 | MvPolynomial.eval (DehomogenizationC.Algebraic.Dehomogenization.insertOne i a) f = 0 := by |
| 73 | cases d with |
| 74 | | zero => |
| 75 | obtain ⟨c, rfl⟩ : ∃ c : ℂ, f = MvPolynomial.C c := |
| 76 | ⟨_, HomogeneousEvalMap.eq_C_of_isHomogeneous_zero hf⟩ |
| 77 | simp only [MvPolynomial.eval_C] |
| 78 | constructor |
| 79 | · intro h |
| 80 | by_contra hc |
| 81 | let : (projectiveAffinePoint n i a x).asHomogeneousIdeal.toIdeal.IsPrime := |
| 82 | (projectiveAffinePoint n i a x).isPrime |
| 83 | exact Ideal.notMem_of_isUnit |
| 84 | (projectiveAffinePoint n i a x).asHomogeneousIdeal.toIdeal |
| 85 | ((isUnit_iff_ne_zero.mpr hc).map MvPolynomial.C) h |
| 86 | · intro hc |
| 87 | simp [hc] |
| 88 | | succ d => |
| 89 | have h : projectiveAffinePoint n i a x ∈ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f ↔ |
| 90 | MvPolynomial.eval (DehomogenizationC.Algebraic.Dehomogenization.insertOne i a) f ≠ 0 := by |
| 91 | change x ∈ projectiveAffinePoint n i a ⁻¹ᵁ Proj.basicOpen (ProjectiveSpace.projectiveGrading n) f ↔ _ |
| 92 | rw [projectiveAffinePoint_preimage_basicOpen n i a f (d + 1) (Nat.succ_pos d) hf] |
| 93 | rw [Subsingleton.elim x (default : ProjectiveSpace.complexBase)] |
| 94 | change MvPolynomial.eval (DehomogenizationC.Algebraic.Dehomogenization.insertOne i a) f ∉ (default : ProjectiveSpace.complexBase).asIdeal ↔ _ |
| 95 | rw [Scheme.default_asIdeal] |
| 96 | rfl |
| 97 | change (¬ f ∈ (projectiveAffinePoint n i a x).asHomogeneousIdeal ↔ |
| 98 | ¬ MvPolynomial.eval (DehomogenizationC.Algebraic.Dehomogenization.insertOne i a) f = 0) at h |
| 99 | exact not_iff_not.mp h |
| 100 | |
| 101 | /-- The normalized homogeneous vector associated to affine coordinates is nonzero. -/ |
| 102 | theorem insertOne_ne_zero (n : ℕ) (i : Fin (n + 1)) |
| 103 | (a : {j : Fin (n + 1) // j ≠ i} → ℂ) : DehomogenizationC.Algebraic.Dehomogenization.insertOne i a ≠ 0 := by |
| 104 | intro h |
| 105 | have : (1 : ℂ) = 0 := by simpa using congrFun h i |
| 106 | exact one_ne_zero this |
| 107 | |
| 108 | /-- The actual inverse affine-chart morphism agrees with the vector-point |
| 109 | construction on normalized coordinates. -/ |
| 110 | theorem projectiveAffineChartMap_eval_eq_vectorPoint (n : ℕ) (i : Fin (n + 1)) |
| 111 | (a : {j : Fin (n + 1) // j ≠ i} → ℂ) (hv : DehomogenizationC.Algebraic.Dehomogenization.insertOne i a ≠ 0) : |
| 112 | Spec.map (CommRingCat.ofHom (MvPolynomial.eval a)) ≫ ProjectiveChart.projectiveAffineChartMap n i = |
| 113 | ProjectiveVectorPoint.projectiveVectorPoint (DehomogenizationC.Algebraic.Dehomogenization.insertOne i a) hv := by |
| 114 | change projectiveAffinePoint n i a = _ |
| 115 | apply ext_of_apply_closedPoint_eq (ProjectiveSpace.projectiveSpaceToBase n) |
| 116 | (projectiveAffinePoint_over_base n i a) (ProjectiveVectorPoint.projectiveVectorPoint_over_base (DehomogenizationC.Algebraic.Dehomogenization.insertOne i a) hv) |
| 117 | apply ProjectiveSpectrum.ext |
| 118 | apply HomogeneousIdeal.ext' |
| 119 | intro d f hf |
| 120 | exact (projectiveAffinePoint_homogeneous_mem_iff n i a f d hf |
| 121 | (IsLocalRing.closedPoint ℂ)).trans |
| 122 | (ProjectiveVectorScale.projectiveVectorPoint_homogeneous_mem_iff (DehomogenizationC.Algebraic.Dehomogenization.insertOne i a) hv f d hf |
| 123 | (IsLocalRing.closedPoint ℂ)).symm |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveChartPoint |