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.Etale.RegularRing |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkDimension |
| 3 | import Mathlib.RingTheory.RegularLocalRing.Polynomial |
| 4 | |
| 5 | /-! # Stalk Regular -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkRegular |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual stalks of a smooth scheme over a field are regular local |
| 12 | rings. The proof passes through its genuine standard smooth charts and |
| 13 | their etale polynomial presentations. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem stalk_regular {K : Type u} [Field K] {X : Scheme.{u}} |
| 22 | (f : X ⟶ Spec (.of K)) (m : ℕ) [SmoothOfRelativeDimension m f] (x : X) : |
| 23 | IsRegularLocalRing (X.presheaf.stalk x) := by |
| 24 | obtain ⟨U, hU, V, hV, hx, e, hstd⟩ := |
| 25 | SmoothOfRelativeDimension.exists_isStandardSmoothOfRelativeDimension (n := m) (f := f) x |
| 26 | have hu : U = ⊤ := by |
| 27 | ext y |
| 28 | constructor |
| 29 | · intro _ |
| 30 | trivial |
| 31 | · intro _ |
| 32 | exact (Subsingleton.elim (f x) y) ▸ e hx |
| 33 | subst U |
| 34 | let := Betti.AffineDimension.Realization.sectionBaseAlgebra f V |
| 35 | change Algebra.IsStandardSmoothOfRelativeDimension m Γ(Spec (.of K), ⊤) Γ(X, V) at hstd |
| 36 | let := hstd |
| 37 | let : IsRegularRing Γ(Spec (.of K), ⊤) := IsRegularRing.of_ringEquiv |
| 38 | (Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.symm |
| 39 | obtain ⟨g, hg⟩ := Algebra.IsStandardSmoothOfRelativeDimension.exists_etale_mvPolynomial |
| 40 | m Γ(Spec (.of K), ⊤) Γ(X, V) |
| 41 | let P := MvPolynomial (Fin m) Γ(Spec (.of K), ⊤) |
| 42 | let := g.toRingHom.toAlgebra |
| 43 | let : Algebra.Etale P Γ(X, V) := RingHom.etale_algebraMap.mp hg |
| 44 | let : IsNoetherianRing Γ(X, V) := Algebra.FiniteType.isNoetherianRing P Γ(X, V) |
| 45 | let : IsRegularRing Γ(X, V) := ProjectionFormula.Etale.RegularRing.regular P Γ(X, V) |
| 46 | let := (X.presheaf.germ V x hx).hom.toAlgebra |
| 47 | let T := (hV.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl |
| 48 | let : IsLocalization T (X.presheaf.stalk x) := hV.isLocalization_stalk ⟨x, hx⟩ |
| 49 | exact ProjectionFormula.Etale.RegularRing.local_localization Γ(X, V) (X.presheaf.stalk x) T |
| 50 | |
| 51 | theorem maximalIdeal_generators {K : Type u} [Field K] {X : Scheme.{u}} |
| 52 | (f : X ⟶ Spec (.of K)) (m : ℕ) [SmoothOfRelativeDimension m f] (x : X) : |
| 53 | ((IsLocalRing.maximalIdeal (X.presheaf.stalk x)).spanFinrank : WithBot ℕ∞) = |
| 54 | Order.coheight x := by |
| 55 | let := stalk_regular f m x |
| 56 | exact ((isRegularLocalRing_iff (X.presheaf.stalk x)).mp inferInstance).trans |
| 57 | (ringKrullDim_stalk_eq_coheight x) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkRegular |