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.ProjectiveI |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.DehomogenizationC |
| 3 | import Mathlib.RingTheory.Localization.Away.Basic |
| 4 | |
| 5 | /-! # Projective Chart -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectiveChart |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # The actual standard Proj chart maps to its polynomial coordinate ring |
| 13 | |
| 14 | This uses the homogeneous localization that occurs in mathlib's affine chart |
| 15 | isomorphism for `Proj`, rather than a separate model of projective points. |
| 16 | -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectiveLinear |
| 22 | |
| 23 | open _root_.MvPolynomial _root_.HomogeneousLocalization |
| 24 | open OAI.AlgebraicGeometry.Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization |
| 25 | |
| 26 | /-- The homogeneous localization defining the standard `i`-th Proj chart. -/ |
| 27 | abbrev projectiveChartRing (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) := |
| 28 | HomogeneousLocalization.Away (ProjectiveLinear.grading R n) (MvPolynomial.X i) |
| 29 | |
| 30 | /-- The affine polynomial coordinate ring, omitting the `i`-th variable. -/ |
| 31 | abbrev projectiveChartPolynomial (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) := |
| 32 | MvPolynomial {j : Fin (n + 1) // j ≠ i} R |
| 33 | |
| 34 | theorem projectiveVariable_homogeneous (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) : |
| 35 | MvPolynomial.X i ∈ ProjectiveLinear.grading R n 1 := |
| 36 | MvPolynomial.isHomogeneous_X R i |
| 37 | |
| 38 | /-- Constant coefficients in the actual homogeneous chart ring. -/ |
| 39 | def projectiveChartConstants (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) : |
| 40 | R →+* projectiveChartRing R n i := |
| 41 | (HomogeneousLocalization.fromZeroRingHom (ProjectiveLinear.grading R n) |
| 42 | (Submonoid.powers (MvPolynomial.X i))).comp (ProjectiveI.Base.constants R n).toRingHom |
| 43 | |
| 44 | /-- Setting `Xᵢ = 1` extends to the ordinary localization at `Xᵢ`. -/ |
| 45 | def projectiveChartLocalizationToPolynomial (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) : |
| 46 | Localization.Away (MvPolynomial.X i : MvPolynomial (Fin (n + 1)) R) →+* |
| 47 | projectiveChartPolynomial R n i := |
| 48 | Localization.awayLift (Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i) (MvPolynomial.X i) |
| 49 | (isUnit_iff_exists_inv.mpr ⟨1, by simp⟩) |
| 50 | |
| 51 | /-- Dehomogenization restricted to the actual degree-zero localization. -/ |
| 52 | def projectiveChartToPolynomial (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) : |
| 53 | projectiveChartRing R n i →+* projectiveChartPolynomial R n i := |
| 54 | (projectiveChartLocalizationToPolynomial R n i).comp |
| 55 | (algebraMap (projectiveChartRing R n i) |
| 56 | (Localization.Away (MvPolynomial.X i : MvPolynomial (Fin (n + 1)) R))) |
| 57 | |
| 58 | /-- A homogeneous fraction `f / Xᵢ^k` maps exactly to `f(Xᵢ:= 1)`. -/ |
| 59 | @[simp] |
| 60 | theorem projectiveChartToPolynomial_mk (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) |
| 61 | (k : ℕ) (f : MvPolynomial (Fin (n + 1)) R) |
| 62 | (hf : f ∈ ProjectiveLinear.grading R n (k • (1 : ℕ))) : |
| 63 | projectiveChartToPolynomial R n i |
| 64 | (HomogeneousLocalization.Away.mk (ProjectiveLinear.grading R n) |
| 65 | (projectiveVariable_homogeneous R n i) k f hf) = Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i f := by |
| 66 | change Localization.awayLift (Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i) (MvPolynomial.X i) (by simp) |
| 67 | (Localization.mk f ⟨MvPolynomial.X i ^ k, k, rfl⟩) = _ |
| 68 | simpa using Localization.awayLift_mk (Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i) |
| 69 | (MvPolynomial.X i) f 1 (by simp) k |
| 70 | |
| 71 | /-- Dehomogenization preserves the coefficient homomorphism to the chart. -/ |
| 72 | @[simp] |
| 73 | theorem projectiveChartToPolynomial_constants (R : Type) [CommRing R] (n : ℕ) (i : Fin (n + 1)) (c : R) : |
| 74 | projectiveChartToPolynomial R n i (projectiveChartConstants R n i c) = |
| 75 | MvPolynomial.C c := by |
| 76 | change Localization.awayLift (Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i) (MvPolynomial.X i) (by simp) |
| 77 | (Localization.mk (MvPolynomial.C c) ⟨1, Submonoid.one_mem _⟩) = _ |
| 78 | simpa using Localization.awayLift_mk (Foundations.Scheme.DehomogenizationC.Algebraic.Dehomogenization.dehomogenize i) |
| 79 | (MvPolynomial.X i) (MvPolynomial.C c) 1 (by simp) 0 |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.ProjectiveChart |