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.AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations |
| 2 | import Mathlib.AlgebraicGeometry.ProjectiveSpectrum.Basic |
| 3 | import Mathlib.RingTheory.Localization.Away.Basic |
| 4 | |
| 5 | /-! # Evaluation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveChart.Evaluation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Construct actual morphisms to standard projective charts from normalized regular coordinates. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {R B : Type u} [CommRing R] [CommRing B] {n : ℕ} |
| 18 | |
| 19 | /-- The coordinate ring of the ith standard chart of projective n-space. -/ |
| 20 | abbrev projectiveChartRing (R : Type u) [CommRing R] (n : ℕ) (i : Fin (n + 1)) := |
| 21 | HomogeneousLocalization.Away (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 22 | |
| 23 | /-- Evaluate a projective-chart function at coordinates with the ith coordinate equal to one. -/ |
| 24 | def projectiveChartEvaluation (c : R →+* B) (v : Fin (n + 1) → B) |
| 25 | (i : Fin (n + 1)) (hi : v i = 1) : projectiveChartRing R n i →+* B := by |
| 26 | let ev := MvPolynomial.eval₂Hom c v |
| 27 | have hu : IsUnit (ev (MvPolynomial.X i)) := by |
| 28 | change IsUnit (MvPolynomial.eval₂Hom c v (MvPolynomial.X i)) |
| 29 | rw [MvPolynomial.eval₂Hom_X', hi] |
| 30 | exact isUnit_one |
| 31 | exact (IsLocalization.Away.lift |
| 32 | (S := Localization.Away (MvPolynomial.X i : Projective.ProjectivePresentations.coordinateRing R n)) (g := ev) |
| 33 | (MvPolynomial.X i) hu).comp |
| 34 | (algebraMap (projectiveChartRing R n i) |
| 35 | (Localization.Away (MvPolynomial.X i : Projective.ProjectivePresentations.coordinateRing R n))) |
| 36 | |
| 37 | /-- Evaluation on a chart restricts to the given coefficient-ring map. -/ |
| 38 | theorem projectiveChartEvaluation_constant (c : R →+* B) (v : Fin (n + 1) → B) |
| 39 | (i : Fin (n + 1)) (hi : v i = 1) (r : R) : |
| 40 | projectiveChartEvaluation c v i hi |
| 41 | (HomogeneousLocalization.fromZeroRingHom (Projective.ProjectivePresentations.coordinateGrading R n) _ |
| 42 | (Projective.ProjectivePresentations.degreeZeroConstants R n r)) = c r := by |
| 43 | have hv : (HomogeneousLocalization.fromZeroRingHom (Projective.ProjectivePresentations.coordinateGrading R n) |
| 44 | (Submonoid.powers (MvPolynomial.X i)) (Projective.ProjectivePresentations.degreeZeroConstants R n r)).val = |
| 45 | algebraMap (Projective.ProjectivePresentations.coordinateRing R n) (Localization.Away (MvPolynomial.X i : Projective.ProjectivePresentations.coordinateRing R n)) |
| 46 | (MvPolynomial.C r) := by |
| 47 | change Localization.mk (MvPolynomial.C r) 1 = _ |
| 48 | rw [Localization.mk_eq_mk', IsLocalization.mk'_one] |
| 49 | dsimp [projectiveChartEvaluation] |
| 50 | rw [hv, IsLocalization.Away.lift_eq] |
| 51 | exact MvPolynomial.eval₂_C _ _ _ |
| 52 | |
| 53 | /-- A homogeneous fraction is evaluated by its numerator when the chart denominator is one. -/ |
| 54 | theorem projectiveChartEvaluation_mk (c : R →+* B) (v : Fin (n + 1) → B) |
| 55 | (i : Fin (n + 1)) (hi : v i = 1) (d : ℕ) (p : Projective.ProjectivePresentations.coordinateRing R n) |
| 56 | (hp : p ∈ Projective.ProjectivePresentations.coordinateGrading R n d) : |
| 57 | projectiveChartEvaluation c v i hi |
| 58 | (HomogeneousLocalization.Away.mk (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.isHomogeneous_X R i) |
| 59 | d p (by simpa only [smul_eq_mul, mul_one] using hp)) = MvPolynomial.eval₂Hom c v p := by |
| 60 | let ev := MvPolynomial.eval₂Hom c v |
| 61 | have hv : ev (MvPolynomial.X i) * (1 : B) = 1 := by |
| 62 | rw [mul_one] |
| 63 | exact (MvPolynomial.eval₂Hom_X' c v i).trans hi |
| 64 | change (Localization.awayLift ev (MvPolynomial.X i) (isUnit_iff_exists_inv.mpr ⟨1, hv⟩)) |
| 65 | (Localization.mk p ⟨(MvPolynomial.X i : Projective.ProjectivePresentations.coordinateRing R n) ^ d, d, rfl⟩) = ev p |
| 66 | exact (Localization.awayLift_mk ev (MvPolynomial.X i) p 1 hv d).trans (by rw [one_pow, mul_one]) |
| 67 | |
| 68 | /-- The jth affine coordinate of the ith chart evaluates to the supplied normalized coordinate. -/ |
| 69 | theorem projectiveChartEvaluation_coordinate (c : R →+* B) (v : Fin (n + 1) → B) |
| 70 | (i : Fin (n + 1)) (hi : v i = 1) (j : Fin (n + 1)) : |
| 71 | projectiveChartEvaluation c v i hi |
| 72 | (HomogeneousLocalization.Away.mk (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.isHomogeneous_X R i) |
| 73 | 1 (MvPolynomial.X j) (by |
| 74 | change (MvPolynomial.X j : Projective.ProjectivePresentations.coordinateRing R n).IsHomogeneous 1 |
| 75 | exact MvPolynomial.isHomogeneous_X R j)) = v j := |
| 76 | (projectiveChartEvaluation_mk c v i hi 1 (MvPolynomial.X j) (MvPolynomial.isHomogeneous_X R j)).trans |
| 77 | (MvPolynomial.eval₂Hom_X' c v j) |
| 78 | |
| 79 | variable {T : Scheme.{u}} |
| 80 | |
| 81 | /-- Regular normalized coordinates define a morphism from any scheme into a projective chart. -/ |
| 82 | def projectiveChartMap (c : R →+* Γ(T, ⊤)) (v : Fin (n + 1) → Γ(T, ⊤)) |
| 83 | (i : Fin (n + 1)) (hi : v i = 1) : T ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace R n).left := |
| 84 | T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom (projectiveChartEvaluation c v i hi)) ≫ |
| 85 | Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 86 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one |
| 87 | |
| 88 | /-- The resulting projective-chart morphism lies over the prescribed coefficient-ring map. -/ |
| 89 | theorem projectiveChartMap_over (c : R →+* Γ(T, ⊤)) (v : Fin (n + 1) → Γ(T, ⊤)) |
| 90 | (i : Fin (n + 1)) (hi : v i = 1) : |
| 91 | projectiveChartMap c v i hi ≫ (Projective.ProjectivePresentations.affineProjectiveSpace R n).hom = |
| 92 | T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom c) := by |
| 93 | have hc : CommRingCat.ofHom (Projective.ProjectivePresentations.degreeZeroConstants R n).toRingHom ≫ |
| 94 | CommRingCat.ofHom (HomogeneousLocalization.fromZeroRingHom (Projective.ProjectivePresentations.coordinateGrading R n) |
| 95 | (Submonoid.powers (MvPolynomial.X i))) ≫ |
| 96 | CommRingCat.ofHom (projectiveChartEvaluation c v i hi) = CommRingCat.ofHom c := by |
| 97 | ext r |
| 98 | exact projectiveChartEvaluation_constant c v i hi r |
| 99 | change (T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom (projectiveChartEvaluation c v i hi)) ≫ |
| 100 | Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 101 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one) ≫ |
| 102 | (Proj.toSpecZero (Projective.ProjectivePresentations.coordinateGrading R n) ≫ |
| 103 | Spec.map (CommRingCat.ofHom (Projective.ProjectivePresentations.degreeZeroConstants R n).toRingHom)) = _ |
| 104 | have ha := Proj.awayι_toSpecZero (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 105 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one |
| 106 | calc |
| 107 | _ = T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom (projectiveChartEvaluation c v i hi)) ≫ |
| 108 | (Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 109 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one ≫ |
| 110 | Proj.toSpecZero (Projective.ProjectivePresentations.coordinateGrading R n)) ≫ |
| 111 | Spec.map (CommRingCat.ofHom (Projective.ProjectivePresentations.degreeZeroConstants R n).toRingHom) := by |
| 112 | simp only [Category.assoc] |
| 113 | _ = T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom (projectiveChartEvaluation c v i hi)) ≫ |
| 114 | Spec.map (CommRingCat.ofHom (HomogeneousLocalization.fromZeroRingHom |
| 115 | (Projective.ProjectivePresentations.coordinateGrading R n) (Submonoid.powers (MvPolynomial.X i)))) ≫ |
| 116 | Spec.map (CommRingCat.ofHom (Projective.ProjectivePresentations.degreeZeroConstants R n).toRingHom) := |
| 117 | congrArg (fun z => T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom (projectiveChartEvaluation c v i hi)) ≫ |
| 118 | z ≫ Spec.map (CommRingCat.ofHom (Projective.ProjectivePresentations.degreeZeroConstants R n).toRingHom)) ha |
| 119 | _ = T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom c) := by |
| 120 | rw [← Spec.map_comp, ← Spec.map_comp, Category.assoc, hc] |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveChart.Evaluation |