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.Projection.ChartSmooth |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.BasicOpen |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | |
| 5 | /-! # Standard Smooth -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.StandardSmooth |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual standard rational projection is smooth of relative |
| 12 | dimension n-m on the complement of its center. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.HomogeneousLocalization |
| 18 | |
| 19 | namespace Projection |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.HomogeneousChartRenaming OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.LinearChart.Hom OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.BasicOpen.RationalProjection |
| 22 | |
| 23 | theorem away_of_eq {a b : ℕ} (r : ℕ) (f : Foundations.Scheme.ProjectiveSpace.projectiveGrading a →+*ᵍ Foundations.Scheme.ProjectiveSpace.projectiveGrading b) |
| 24 | (s : Foundations.Scheme.ProjectiveSpace.homogeneousCoordinateRing a) (t : Foundations.Scheme.ProjectiveSpace.homogeneousCoordinateRing b) (ht : f s = t) |
| 25 | (hp : Submonoid.powers s ≤ (Submonoid.powers t).comap f) |
| 26 | (h : RingHom.IsStandardSmoothOfRelativeDimension r (HomogeneousLocalization.map f hp)) : |
| 27 | RingHom.IsStandardSmoothOfRelativeDimension r (Away.map f s) := by |
| 28 | subst t |
| 29 | exact h |
| 30 | |
| 31 | variable {m n : ℕ} (j : Fin (m + 1) → Fin (n + 1)) (hj : Function.Injective j) |
| 32 | |
| 33 | include hj |
| 34 | |
| 35 | theorem away (i : Fin (m + 1)) : RingHom.IsStandardSmoothOfRelativeDimension (n - m) |
| 36 | (Away.map (HomogeneousChartRenaming.gradedRename j) (MvPolynomial.X i)) := by |
| 37 | exact away_of_eq (n - m) (HomogeneousChartRenaming.gradedRename j) (MvPolynomial.X i) (MvPolynomial.X (j i)) |
| 38 | (HomogeneousChartRenaming.gradedRename_X j i) (HomogeneousChartRenaming.powers_le j i) (Projection.ChartSmooth.chart j hj i) |
| 39 | |
| 40 | theorem affine (i : Fin (m + 1)) : SmoothOfRelativeDimension (n - m) |
| 41 | (Projective.LinearChart.Hom.affine (HomogeneousChartRenaming.gradedRename j) (MvPolynomial.X i) |
| 42 | (MvPolynomial.isHomogeneous_X ℂ i) Nat.zero_lt_one) := by |
| 43 | let f := Away.map (HomogeneousChartRenaming.gradedRename j) (MvPolynomial.X i) |
| 44 | have hs : SmoothOfRelativeDimension (n - m) (Spec.map (CommRingCat.ofHom f)) := by |
| 45 | rw [HasRingHomProperty.Spec_iff (P := @SmoothOfRelativeDimension (n - m))] |
| 46 | exact RingHom.locally_of RingHom.isStandardSmoothOfRelativeDimension_respectsIso _ (away j hj i) |
| 47 | let := hs |
| 48 | have hc : SmoothOfRelativeDimension ((n - m) + 0) |
| 49 | (Spec.map (CommRingCat.ofHom f) ≫ Proj.awayι (Foundations.Scheme.ProjectiveSpace.projectiveGrading m) |
| 50 | (MvPolynomial.X i) (MvPolynomial.isHomogeneous_X ℂ i) Nat.zero_lt_one) := inferInstance |
| 51 | rw [Nat.add_zero] at hc |
| 52 | exact hc |
| 53 | |
| 54 | theorem chart (i : Fin (m + 1)) : SmoothOfRelativeDimension (n - m) |
| 55 | (Projective.LinearChart.Hom.chart (HomogeneousChartRenaming.gradedRename j) (MvPolynomial.X i) |
| 56 | (MvPolynomial.isHomogeneous_X ℂ i) Nat.zero_lt_one) := by |
| 57 | let := affine j hj i |
| 58 | have hc : SmoothOfRelativeDimension (0 + (n - m)) |
| 59 | ((Proj.basicOpenIsoSpec (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) (HomogeneousChartRenaming.gradedRename j (MvPolynomial.X i)) |
| 60 | ((HomogeneousChartRenaming.gradedRename j).map_mem (MvPolynomial.isHomogeneous_X ℂ i)) Nat.zero_lt_one).hom ≫ |
| 61 | Projective.LinearChart.Hom.affine (HomogeneousChartRenaming.gradedRename j) (MvPolynomial.X i) |
| 62 | (MvPolynomial.isHomogeneous_X ℂ i) Nat.zero_lt_one) := inferInstance |
| 63 | rw [Nat.zero_add] at hc |
| 64 | exact hc |
| 65 | |
| 66 | theorem smooth : SmoothOfRelativeDimension (n - m) (Projective.BasicOpen.RationalProjection.map (HomogeneousChartRenaming.gradedRename j)) := by |
| 67 | let f := HomogeneousChartRenaming.gradedRename j |
| 68 | apply IsZariskiLocalAtSource.of_openCover (P := @SmoothOfRelativeDimension (n - m)) (Projective.BasicOpen.RationalProjection.cover f) |
| 69 | intro i |
| 70 | have hs : SmoothOfRelativeDimension (n - m) ((Projective.BasicOpen.RationalProjection.cover f).f i ≫ Projective.BasicOpen.RationalProjection.map f) := by |
| 71 | change SmoothOfRelativeDimension (n - m) |
| 72 | ((Foundations.Scheme.ProjectiveSpace.projectiveSpace n).homOfLE (le_iSup (Projective.BasicOpen.RationalProjection.coordinateOpen f) i) ≫ Projective.BasicOpen.RationalProjection.map f) |
| 73 | rw [Projective.BasicOpen.RationalProjection.chart_map] |
| 74 | exact chart j hj i |
| 75 | exact hs |
| 76 | |
| 77 | end Projection |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.StandardSmooth |