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.ReferenceFamily.ProjectiveCoefficientsId |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveChart.Naturality |
| 3 | |
| 4 | /-! # Projective Chart Coefficients -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ProjectiveChartCoefficients.ProjectiveCoefficients |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Coefficient changes preserve the actual normalized projective-chart maps. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveChart.Naturality |
| 15 | |
| 16 | variable {R T B : Type} [CommRing R] [CommRing T] [CommRing B] |
| 17 | |
| 18 | theorem gradedMap_X (f : R →+* T) (n : ℕ) (i : Fin (n + 1)) : |
| 19 | ProjectiveCoefficientsId.ProjectiveCoefficients.gradedMap f n (MvPolynomial.X i) = MvPolynomial.X i := MvPolynomial.map_X f i |
| 20 | |
| 21 | def coordinateAwayMap (f : R →+* T) (n : ℕ) (i : Fin (n + 1)) : |
| 22 | HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartRing R n i →+* HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartRing T n i := |
| 23 | HomogeneousLocalization.map (ProjectiveCoefficientsId.ProjectiveCoefficients.gradedMap f n) (by |
| 24 | rintro _ ⟨k, rfl⟩ |
| 25 | refine ⟨k, ?_⟩ |
| 26 | change (MvPolynomial.X i : HilbertConstruction.Projective.ProjectivePresentations.coordinateRing T n) ^ k = |
| 27 | MvPolynomial.map f ((MvPolynomial.X i : HilbertConstruction.Projective.ProjectivePresentations.coordinateRing R n) ^ k) |
| 28 | rw [map_pow, MvPolynomial.map_X]) |
| 29 | |
| 30 | theorem coordinateAwayMap_mk (f : R →+* T) (n : ℕ) (i : Fin (n + 1)) |
| 31 | (d : ℕ) (p : HilbertConstruction.Projective.ProjectivePresentations.coordinateRing R n) (hp : p ∈ HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n d) : |
| 32 | coordinateAwayMap f n i |
| 33 | (HomogeneousLocalization.Away.mk (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.isHomogeneous_X R i) |
| 34 | d p (by simpa only [smul_eq_mul, mul_one] using hp)) = |
| 35 | HomogeneousLocalization.Away.mk (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading T n) (MvPolynomial.isHomogeneous_X T i) |
| 36 | d (MvPolynomial.map f p) (by |
| 37 | change (MvPolynomial.map f p).IsHomogeneous (d • 1) |
| 38 | simpa only [smul_eq_mul, mul_one] using MvPolynomial.IsHomogeneous.map hp f) := by |
| 39 | apply HomogeneousLocalization.val_injective |
| 40 | change Localization.mk (MvPolynomial.map f p) |
| 41 | ⟨MvPolynomial.map f ((MvPolynomial.X i : HilbertConstruction.Projective.ProjectivePresentations.coordinateRing R n) ^ d), _⟩ = |
| 42 | Localization.mk (MvPolynomial.map f p) ⟨(MvPolynomial.X i : HilbertConstruction.Projective.ProjectivePresentations.coordinateRing T n) ^ d, _⟩ |
| 43 | simp only [map_pow, MvPolynomial.map_X] |
| 44 | |
| 45 | theorem coordinateAwayMap_evaluation (f : R →+* T) (c : T →+* B) |
| 46 | {n : ℕ} (v : Fin (n + 1) → B) (i : Fin (n + 1)) (hi : v i = 1) : |
| 47 | (HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation c v i hi).comp (coordinateAwayMap f n i) = |
| 48 | HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation (c.comp f) v i hi := by |
| 49 | apply RingHom.ext |
| 50 | intro z |
| 51 | obtain ⟨d, p, hp, rfl⟩ := HomogeneousLocalization.Away.mk_surjective |
| 52 | (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.isHomogeneous_X R i) z |
| 53 | have hp' : p ∈ HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n d := by simpa only [smul_eq_mul, mul_one] using hp |
| 54 | change HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation c v i hi (coordinateAwayMap f n i _) = _ |
| 55 | rw [coordinateAwayMap_mk f n i d p hp', |
| 56 | HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation_mk c v i hi d (MvPolynomial.map f p) ((ProjectiveCoefficientsId.ProjectiveCoefficients.gradedMap f n).map_mem hp'), |
| 57 | HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation_mk (c.comp f) v i hi d p hp'] |
| 58 | exact MvPolynomial.eval₂_map _ _ _ _ |
| 59 | |
| 60 | theorem chart_scheme_map_of_eq (f : R →+* T) (n : ℕ) (i : Fin (n + 1)) |
| 61 | (t : HilbertConstruction.Projective.ProjectivePresentations.coordinateRing T n) (ht : ProjectiveCoefficientsId.ProjectiveCoefficients.gradedMap f n (MvPolynomial.X i) = t) |
| 62 | (htm : t ∈ HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading T n 1) |
| 63 | (hpow : Submonoid.powers (MvPolynomial.X i) ≤ (Submonoid.powers t).comap (ProjectiveCoefficientsId.ProjectiveCoefficients.gradedMap f n)) : |
| 64 | Proj.awayι (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading T n) t htm Nat.zero_lt_one ≫ ProjectiveCoefficientsId.ProjectiveCoefficients.schemeMap f n = |
| 65 | Spec.map (CommRingCat.ofHom (HomogeneousLocalization.map (ProjectiveCoefficientsId.ProjectiveCoefficients.gradedMap f n) hpow)) ≫ |
| 66 | Proj.awayι (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) (MvPolynomial.isHomogeneous_X R i) |
| 67 | Nat.zero_lt_one := by |
| 68 | subst t |
| 69 | exact Proj.awayι_comp_map (ProjectiveCoefficientsId.ProjectiveCoefficients.gradedMap f n) (ProjectiveCoefficientsId.ProjectiveCoefficients.gradedMap_irrelevant f n) |
| 70 | Nat.zero_lt_one (MvPolynomial.X i) (MvPolynomial.isHomogeneous_X R i) |
| 71 | |
| 72 | theorem coordinateAwayMap_scheme (f : R →+* T) (n : ℕ) (i : Fin (n + 1)) : |
| 73 | Proj.awayι (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading T n) (MvPolynomial.X i) (MvPolynomial.isHomogeneous_X T i) |
| 74 | Nat.zero_lt_one ≫ ProjectiveCoefficientsId.ProjectiveCoefficients.schemeMap f n = |
| 75 | Spec.map (CommRingCat.ofHom (coordinateAwayMap f n i)) ≫ |
| 76 | Proj.awayι (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) (MvPolynomial.isHomogeneous_X R i) |
| 77 | Nat.zero_lt_one := |
| 78 | chart_scheme_map_of_eq f n i (MvPolynomial.X i) (gradedMap_X f n i) |
| 79 | (MvPolynomial.isHomogeneous_X T i) _ |
| 80 | |
| 81 | theorem projectiveChartMap_coefficients {X : Scheme.{0}} |
| 82 | (f : R →+* T) (c : T →+* Γ(X, ⊤)) {n : ℕ} |
| 83 | (v : Fin (n + 1) → Γ(X, ⊤)) (i : Fin (n + 1)) (hi : v i = 1) : |
| 84 | HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartMap c v i hi ≫ ProjectiveCoefficientsId.ProjectiveCoefficients.schemeMap f n = HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartMap (c.comp f) v i hi := by |
| 85 | have h : CommRingCat.ofHom (coordinateAwayMap f n i) ≫ |
| 86 | CommRingCat.ofHom (HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation c v i hi) = |
| 87 | CommRingCat.ofHom (HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation (c.comp f) v i hi) := |
| 88 | congrArg CommRingCat.ofHom (coordinateAwayMap_evaluation f c v i hi) |
| 89 | let a := X.toSpecΓ |
| 90 | let b := Spec.map (CommRingCat.ofHom (HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation c v i hi)) |
| 91 | let t := Proj.awayι (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading T n) (MvPolynomial.X i) |
| 92 | (show MvPolynomial.X i ∈ HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading T n 1 from MvPolynomial.isHomogeneous_X T i) |
| 93 | Nat.zero_lt_one |
| 94 | let d := Spec.map (CommRingCat.ofHom (coordinateAwayMap f n i)) |
| 95 | let u := Proj.awayι (HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 96 | (show MvPolynomial.X i ∈ HilbertConstruction.Projective.ProjectivePresentations.coordinateGrading R n 1 from MvPolynomial.isHomogeneous_X R i) |
| 97 | Nat.zero_lt_one |
| 98 | have hb : b ≫ d = Spec.map (CommRingCat.ofHom (HilbertConstruction.ProjectiveChart.Evaluation.projectiveChartEvaluation (c.comp f) v i hi)) := |
| 99 | (Spec.map_comp _ _).symm.trans (congrArg Spec.map h) |
| 100 | exact (Category.assoc a (b ≫ t) (ProjectiveCoefficientsId.ProjectiveCoefficients.schemeMap f n)).trans |
| 101 | (congrArg (fun z => a ≫ z) ((Category.assoc b t (ProjectiveCoefficientsId.ProjectiveCoefficients.schemeMap f n)).trans |
| 102 | ((congrArg (fun z => b ≫ z) (coordinateAwayMap_scheme f n i)).trans |
| 103 | ((Category.assoc b d u).symm.trans (congrArg (fun z => z ≫ u) hb))))) |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ProjectiveChartCoefficients.ProjectiveCoefficients |