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.Tor.DimensionBound |
| 2 | import OAI.AlgebraicGeometry.Betti.AffineDimension |
| 3 | import Mathlib.RingTheory.RingHom.StandardSmooth |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 5 | |
| 6 | /-! # Stalk Dimension -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkDimension |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The local ring of a scheme smooth of relative dimension m over a field |
| 13 | has projective dimension at most m for every module. Standard smooth charts |
| 14 | factor through an etale algebra over a polynomial ring in exactly m variables. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Polynomial.DimensionBound |
| 23 | |
| 24 | theorem stalk_bound {K : Type u} [Field K] {X : Scheme.{u}} |
| 25 | (f : X ⟶ Spec (.of K)) (m : ℕ) [SmoothOfRelativeDimension m f] (x : X) : |
| 26 | Polynomial.DimensionBound.GlobalBound (X.presheaf.stalk x) m := by |
| 27 | obtain ⟨U, hU, V, hV, hx, e, hstd⟩ := |
| 28 | SmoothOfRelativeDimension.exists_isStandardSmoothOfRelativeDimension (n := m) (f := f) x |
| 29 | have hu : U = ⊤ := by |
| 30 | ext y |
| 31 | constructor |
| 32 | · intro _ |
| 33 | trivial |
| 34 | · intro _ |
| 35 | exact (Subsingleton.elim (f x) y) ▸ e hx |
| 36 | subst U |
| 37 | let := Betti.AffineDimension.Realization.sectionBaseAlgebra f V |
| 38 | change Algebra.IsStandardSmoothOfRelativeDimension m Γ(Spec (.of K), ⊤) Γ(X, V) at hstd |
| 39 | let := hstd |
| 40 | have hb : Polynomial.DimensionBound.GlobalBound Γ(Spec (.of K), ⊤) 0 := |
| 41 | Polynomial.DimensionBound.bound_of_ringEquiv (Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.symm 0 (Polynomial.DimensionBound.field_bound K) |
| 42 | obtain ⟨g, hg⟩ := Algebra.IsStandardSmoothOfRelativeDimension.exists_etale_mvPolynomial |
| 43 | m Γ(Spec (.of K), ⊤) Γ(X, V) |
| 44 | let := g.toRingHom.toAlgebra |
| 45 | let : Algebra.Etale (MvPolynomial (Fin m) Γ(Spec (.of K), ⊤)) Γ(X, V) := |
| 46 | RingHom.etale_algebraMap.mp hg |
| 47 | have hVbound : Polynomial.DimensionBound.GlobalBound Γ(X, V) m := |
| 48 | ProjectionFormula.Etale.DimensionBound.extension_bound (MvPolynomial (Fin m) Γ(Spec (.of K), ⊤)) Γ(X, V) |
| 49 | m (Polynomial.DimensionBound.mvPolynomial_bound_of_zero Γ(Spec (.of K), ⊤) hb m) |
| 50 | let := (X.presheaf.germ V x hx).hom.toAlgebra |
| 51 | let T := (hV.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl |
| 52 | let : IsLocalization T (X.presheaf.stalk x) := hV.isLocalization_stalk ⟨x, hx⟩ |
| 53 | let : Module.Flat Γ(X, V) (X.presheaf.stalk x) := IsLocalization.flat _ T |
| 54 | let : Algebra.FormallyUnramified Γ(X, V) (X.presheaf.stalk x) := |
| 55 | Algebra.FormallyUnramified.of_isLocalization T |
| 56 | let : Algebra.EssFiniteType Γ(X, V) (X.presheaf.stalk x) := |
| 57 | Algebra.EssFiniteType.of_isLocalization _ T |
| 58 | exact ProjectionFormula.Etale.DimensionBound.extension_bound Γ(X, V) (X.presheaf.stalk x) m hVbound |
| 59 | |
| 60 | theorem stalk_tor_length_zero {K : Type u} [Field K] {X : Scheme.{u}} |
| 61 | (f : X ⟶ Spec (.of K)) (m : ℕ) [SmoothOfRelativeDimension m f] (x : X) |
| 62 | (M N : ModuleCat.{u} (X.presheaf.stalk x)) (i : ℕ) (hi : m < i) : |
| 63 | Module.length (X.presheaf.stalk x) |
| 64 | (((Tor (ModuleCat (X.presheaf.stalk x)) i).obj M).obj N) = 0 := |
| 65 | ProjectionFormula.Tor.DimensionBound.tor_length_zero_of_bound _ m (stalk_bound f m x) M N i hi |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkDimension |