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.AbelianScheme.TorsionQuotient.LocalLifts |
| 2 | import Mathlib.Geometry.RingedSpace.SheafedSpace |
| 3 | |
| 4 | /-! # Local Detection Of -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.LocalDetectionOf.LocalDetection |
| 7 | |
| 8 | /-! |
| 9 | # TorsionQuotient: detecting equality of scheme maps on local test rings |
| 10 | |
| 11 | The maps from spectra of all source stalks jointly detect scheme morphisms. |
| 12 | This lets a local-ring infinitesimal argument prove a global uniqueness |
| 13 | statement without assuming an affine target. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem hom_ext_of_fromSpecStalk {X Y : Scheme.{u}} (f g : X ⟶ Y) |
| 21 | (h : ∀ x : X, X.fromSpecStalk x ≫ f = X.fromSpecStalk x ≫ g) : f = g := by |
| 22 | have hb : f.base = g.base := by |
| 23 | ext x |
| 24 | have hx := congrArg |
| 25 | (fun z : Spec (X.presheaf.stalk x) ⟶ Y => z (IsLocalRing.closedPoint (X.presheaf.stalk x))) |
| 26 | (h x) |
| 27 | change f (X.fromSpecStalk x (IsLocalRing.closedPoint (X.presheaf.stalk x))) = |
| 28 | g (X.fromSpecStalk x (IsLocalRing.closedPoint (X.presheaf.stalk x))) at hx |
| 29 | simpa only [Scheme.fromSpecStalk_closedPoint] using hx |
| 30 | have hs := SheafedSpace.hom_stalk_ext f.toLRSHom.toShHom g.toLRSHom.toShHom hb |
| 31 | (fun x => by |
| 32 | have he : (SpecToEquivOfLocalRing Y (X.presheaf.stalk x)).symm |
| 33 | ⟨f x, ⟨f.stalkMap x, inferInstance⟩⟩ = |
| 34 | (SpecToEquivOfLocalRing Y (X.presheaf.stalk x)).symm |
| 35 | ⟨g x, ⟨g.stalkMap x, inferInstance⟩⟩ := |
| 36 | (Scheme.SpecMap_stalkMap_fromSpecStalk f).trans |
| 37 | ((h x).trans (Scheme.SpecMap_stalkMap_fromSpecStalk g).symm) |
| 38 | obtain ⟨_, he⟩ := SpecToEquivOfLocalRing_eq_iff.mp |
| 39 | ((SpecToEquivOfLocalRing Y (X.presheaf.stalk x)).symm.injective he) |
| 40 | exact he) |
| 41 | apply Scheme.Hom.ext' |
| 42 | apply LocallyRingedSpace.Hom.ext' |
| 43 | exact congrArg (fun z => z.hom) hs |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.LocalDetectionOf.LocalDetection |