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.ProjectiveCoordinate.Rescaling |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveChart.Naturality |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffinePoints |
| 4 | |
| 5 | /-! # Coordinate Maps -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineProjective.CoordinateMaps |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Projective-coordinate maps directly from affine algebra spectra. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffinePoints |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (R : CommRingCat.{u}) (A : Type u) [CommRing A] [Algebra R A] {n : ℕ} |
| 19 | |
| 20 | def affineProjectiveCoordinateMap (v : Fin (n + 1) → A) (i : Fin (n + 1)) (hi : v i = 1) : |
| 21 | Spec (CommRingCat.of A) ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace R n).left := |
| 22 | Spec.map (CommRingCat.ofHom (ProjectiveChart.Evaluation.projectiveChartEvaluation (algebraMap R A) v i hi)) ≫ |
| 23 | Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 24 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one |
| 25 | |
| 26 | theorem affineProjectiveCoordinateMap_global (v : Fin (n + 1) → A) |
| 27 | (i : Fin (n + 1)) (hi : v i = 1) : |
| 28 | affineProjectiveCoordinateMap R A v i hi = |
| 29 | ProjectiveChart.Evaluation.projectiveChartMap ((Scheme.ΓSpecIso (CommRingCat.of A)).inv.hom.comp (algebraMap R A)) |
| 30 | (fun k => (Scheme.ΓSpecIso (CommRingCat.of A)).inv (v k)) i |
| 31 | ((congrArg (Scheme.ΓSpecIso (CommRingCat.of A)).inv hi).trans (map_one _)) := by |
| 32 | let j : Spec (CommRingCat.of (ProjectiveChart.Evaluation.projectiveChartRing R n i)) ⟶ |
| 33 | (Projective.ProjectivePresentations.affineProjectiveSpace R n).left := Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 34 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one |
| 35 | let T : Scheme.{u} := Spec (CommRingCat.of A) |
| 36 | let e : A →+* Γ(T, ⊤) := (Scheme.ΓSpecIso (CommRingCat.of A)).inv.hom |
| 37 | let ev : ProjectiveChart.Evaluation.projectiveChartRing R n i →+* Γ(T, ⊤) := |
| 38 | ProjectiveChart.Evaluation.projectiveChartEvaluation (e.comp (algebraMap R A)) (fun k => e (v k)) i |
| 39 | ((congrArg e hi).trans e.map_one) |
| 40 | have he : e.comp (ProjectiveChart.Evaluation.projectiveChartEvaluation (algebraMap R A) v i hi) = ev := |
| 41 | ProjectiveChart.Naturality.projectiveChartEvaluation_comp e (algebraMap R A) v i hi |
| 42 | change Spec.map (CommRingCat.ofHom (ProjectiveChart.Evaluation.projectiveChartEvaluation (algebraMap R A) v i hi)) ≫ j = |
| 43 | T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom (S := Γ(T, ⊤)) ev) ≫ j |
| 44 | rw [← he, CommRingCat.ofHom_comp, Spec.map_comp, ← Category.assoc, |
| 45 | ← Category.assoc] |
| 46 | have h : T.toSpecΓ ≫ Spec.map (CommRingCat.ofHom (S := Γ(T, ⊤)) e) = 𝟙 T := |
| 47 | toSpecΓ_SpecMap_ΓSpecIso_inv (CommRingCat.of A) |
| 48 | rw [h, Category.id_comp] |
| 49 | |
| 50 | theorem affineProjectiveCoordinateMap_natural |
| 51 | {B : Type u} [CommRing B] [Algebra R B] (φ : A →ₐ[R] B) |
| 52 | (v : Fin (n + 1) → A) (i : Fin (n + 1)) (hi : v i = 1) : |
| 53 | Spec.map (CommRingCat.ofHom φ.toRingHom) ≫ affineProjectiveCoordinateMap R A v i hi = |
| 54 | affineProjectiveCoordinateMap R B (fun k => φ (v k)) i |
| 55 | ((congrArg φ hi).trans φ.map_one) := by |
| 56 | let j : Spec (CommRingCat.of (ProjectiveChart.Evaluation.projectiveChartRing R n i)) ⟶ |
| 57 | (Projective.ProjectivePresentations.affineProjectiveSpace R n).left := Proj.awayι (Projective.ProjectivePresentations.coordinateGrading R n) (MvPolynomial.X i) |
| 58 | (MvPolynomial.isHomogeneous_X R i) Nat.zero_lt_one |
| 59 | change Spec.map (CommRingCat.ofHom φ.toRingHom) ≫ |
| 60 | Spec.map (CommRingCat.ofHom (ProjectiveChart.Evaluation.projectiveChartEvaluation (algebraMap R A) v i hi)) ≫ j = |
| 61 | Spec.map (CommRingCat.ofHom |
| 62 | (ProjectiveChart.Evaluation.projectiveChartEvaluation (algebraMap R B) (fun k => φ (v k)) i _)) ≫ j |
| 63 | rw [← Spec.map_comp_assoc] |
| 64 | have he := ProjectiveChart.Naturality.projectiveChartEvaluation_comp φ.toRingHom (algebraMap R A) v i hi |
| 65 | have hc : φ.toRingHom.comp (algebraMap R A) = algebraMap R B := RingHom.ext φ.commutes |
| 66 | rw [hc] at he |
| 67 | exact congrArg (fun h => Spec.map (CommRingCat.ofHom h) ≫ j) he |
| 68 | |
| 69 | theorem affineProjectiveCoordinateMap_eq_of_cross |
| 70 | (v w : Fin (n + 1) → A) (i j : Fin (n + 1)) (hi : v i = 1) (hj : w j = 1) |
| 71 | (hu : IsUnit (v j)) (hcross : ∀ k, v j * w k = v k) : |
| 72 | affineProjectiveCoordinateMap R A v i hi = affineProjectiveCoordinateMap R A w j hj := by |
| 73 | rw [affineProjectiveCoordinateMap_global, affineProjectiveCoordinateMap_global] |
| 74 | apply ProjectiveCoordinate.Rescaling.projectiveChartMap_eq_of_cross |
| 75 | · exact hu.map (Scheme.ΓSpecIso (CommRingCat.of A)).inv.hom |
| 76 | · intro k |
| 77 | rw [← map_mul, hcross k] |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineProjective.CoordinateMaps |