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.StalkPullbackDetection |
| 2 | |
| 3 | /-! # Map All Stalk Detection -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MapAllStalkDetection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! All local-ring points detect scheme morphisms, without noetherian or reduced hypotheses. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem schemeMap_eq_of_allStalkPoints {X Y : Scheme.{u}} (f g : X ⟶ Y) |
| 16 | (h : ∀ x : X, X.fromSpecStalk x ≫ f = X.fromSpecStalk x ≫ g) : f = g := by |
| 17 | have he : ∀ x : X, f x = g x := by |
| 18 | intro x |
| 19 | have e := congrArg (fun q : Spec (X.presheaf.stalk x) ⟶ Y => q (IsLocalRing.closedPoint _)) (h x) |
| 20 | change f (X.fromSpecStalk x (IsLocalRing.closedPoint _)) = |
| 21 | g (X.fromSpecStalk x (IsLocalRing.closedPoint _)) at e |
| 22 | rw [Scheme.fromSpecStalk_closedPoint] at e |
| 23 | exact e |
| 24 | have hb : f.base = g.base := by ext x; exact he x |
| 25 | have hs : ∀ x : X, f.stalkMap x = |
| 26 | Y.presheaf.stalkSpecializes (Inseparable.of_eq (he x).symm).specializes ≫ g.stalkMap x := by |
| 27 | intro x |
| 28 | apply Spec.map_injective |
| 29 | rw [← cancel_mono (Y.fromSpecStalk (f x)), Spec.map_comp, Category.assoc, |
| 30 | Scheme.SpecMap_stalkSpecializes_fromSpecStalk, Scheme.SpecMap_stalkMap_fromSpecStalk, |
| 31 | Scheme.SpecMap_stalkMap_fromSpecStalk] |
| 32 | exact h x |
| 33 | apply Scheme.Hom.ext' |
| 34 | apply LocallyRingedSpace.forgetToSheafedSpace.map_injective |
| 35 | apply SheafedSpace.hom_stalk_ext _ _ hb |
| 36 | intro x |
| 37 | exact hs x |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MapAllStalkDetection |