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.ReducedFieldPullbackDetection |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Iterated.PullbackMapEquality |
| 3 | import Mathlib.AlgebraicGeometry.SpreadingOut |
| 4 | import Mathlib.AlgebraicGeometry.Noetherian |
| 5 | |
| 6 | /-! # Stalk Pullback Detection -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.StalkPullbackDetection |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Morphisms with locally noetherian source are detected by base changes to every local ring of the base scheme, including nonreduced local rings. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem overHom_eq_of_stalkPullbacks {S : Scheme.{u}} {A B : Over S} |
| 19 | [IsLocallyNoetherian A.left] (f g : A ⟶ B) |
| 20 | (h : ∀ x : S, (Over.pullback (S.fromSpecStalk x)).map f = |
| 21 | (Over.pullback (S.fromSpecStalk x)).map g) : f = g := by |
| 22 | apply Over.OverMorphism.ext |
| 23 | apply Scheme.hom_ext_of_forall |
| 24 | intro x |
| 25 | apply spread_out_unique_of_isGermInjective' f.left g.left |
| 26 | let r := A.left.fromSpecStalk x |
| 27 | let b := S.fromSpecStalk (A.hom x) |
| 28 | let a := Spec.map (A.hom.stalkMap x) |
| 29 | have hr : r ≫ A.hom = a ≫ b := (Scheme.SpecMap_stalkMap_fromSpecStalk A.hom).symm |
| 30 | have hp : (Over.pullback (a ≫ b)).map f = (Over.pullback (a ≫ b)).map g := |
| 31 | (Iterated.PullbackMapEquality.overPullback_map_eq_iff_iterated a b f g).mpr (congrArg (Over.pullback a).map (h (A.hom x))) |
| 32 | exact ReducedFieldPullbackDetection.overHom_point_eq_of_pullback_eq (a ≫ b) r hr f g hp |
| 33 | |
| 34 | end |
| 35 | |
| 36 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.StalkPullbackDetection |