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.Affine.ParameterRestriction |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | import Mathlib.RingTheory.Flat.TorsionFree |
| 4 | |
| 5 | /-! # Affine Parameter -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.AffineParameter |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An actual flat affine-line parameter acts regularly on every |
| 12 | stalk, and on native reduced-support modules that are flat over the line. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | open scoped _root_.Polynomial |
| 19 | |
| 20 | variable (k : Type) [Field k] |
| 21 | |
| 22 | theorem toStalk_injective (p : PrimeSpectrum k[X]) : |
| 23 | Function.Injective (StructureSheaf.toStalk k[X] p) := by |
| 24 | let : Algebra k[X] ((Spec (.of k[X])).presheaf.stalk p) := |
| 25 | (StructureSheaf.toStalk k[X] p).hom.toAlgebra |
| 26 | let : IsLocalization p.asIdeal.primeCompl ((Spec (.of k[X])).presheaf.stalk p) := by |
| 27 | change IsLocalization p.asIdeal.primeCompl ((structurePresheafInCommRingCat k[X]).stalk p) |
| 28 | infer_instance |
| 29 | exact IsLocalization.injective ((Spec (.of k[X])).presheaf.stalk p) |
| 30 | p.asIdeal.primeCompl_le_nonZeroDivisors |
| 31 | |
| 32 | theorem base_regular (p : PrimeSpectrum k[X]) (a : k) : |
| 33 | IsSMulRegular (R := (Spec (.of k[X])).presheaf.stalk p) |
| 34 | ((Spec (.of k[X])).presheaf.stalk p) |
| 35 | (StructureSheaf.toStalk k[X] p (Polynomial.X - Polynomial.C a)) := by |
| 36 | have hne : (StructureSheaf.toStalk k[X] p (Polynomial.X - Polynomial.C a) : |
| 37 | (Spec (.of k[X])).presheaf.stalk p) ≠ 0 := |
| 38 | (map_ne_zero_iff _ (toStalk_injective k p)).mpr (Polynomial.X_sub_C_ne_zero a) |
| 39 | exact fun _ _ h => mul_left_cancel₀ hne h |
| 40 | |
| 41 | theorem regular {Z : Scheme} (t : Z ⟶ Spec (.of k[X])) [Flat t] (x : Z) (a : k) : |
| 42 | IsSMulRegular (Z.presheaf.stalk x) (Affine.ParameterFiber.germ k t x a) := by |
| 43 | let R := (Spec (.of k[X])).presheaf.stalk (t x) |
| 44 | let S := Z.presheaf.stalk x |
| 45 | let : Algebra R S := (t.stalkMap x).hom.toAlgebra |
| 46 | let : Module.Flat R S := Flat.stalkMap t x |
| 47 | exact (base_regular k (t x) a).of_flat |
| 48 | |
| 49 | theorem nonzero {Z : Scheme} (t : Z ⟶ Spec (.of k[X])) [Flat t] (x : Z) (a : k) : |
| 50 | Affine.ParameterFiber.germ k t x a ≠ 0 := by |
| 51 | intro h |
| 52 | have hr := regular k t x a |
| 53 | have he : Affine.ParameterFiber.germ k t x a • (0 : Z.presheaf.stalk x) = |
| 54 | Affine.ParameterFiber.germ k t x a • (1 : Z.presheaf.stalk x) := by simp [h] |
| 55 | exact zero_ne_one (hr he) |
| 56 | |
| 57 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 58 | |
| 59 | theorem support_regular (Z : Scheme) (W : IrreducibleCloseds Z) |
| 60 | (t : Z ⟶ Spec (.of ℂ[X])) [Flat (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ t)] |
| 61 | (x : Z) (hx : x ∈ (W : Set Z)) (a : ℂ) : |
| 62 | IsSMulRegular (CycleClass.Thom.IntersectionGeometry.localSupportModule Z W x hx) (Affine.ParameterFiber.germ ℂ t x a) := by |
| 63 | have h := regular ℂ (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ t) (CycleClass.Thom.IntersectionGeometry.supportPreimage W x hx) a |
| 64 | rw [← Affine.ParameterRestriction.support Z W t x hx a] at h |
| 65 | exact h |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.AffineParameter |