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 Mathlib.AlgebraicGeometry.Stalk |
| 2 | |
| 3 | /-! # Local Spectra Detection -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.LocalSpectraDetection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Maps of schemes are detected on their actual local spectra, without |
| 10 | any noetherianity hypothesis on the source. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem localSpectrumPoint_comp {X Y : Scheme.{u}} (f : X ⟶ Y) (x : X) : |
| 17 | SpecToEquivOfLocalRing Y (X.presheaf.stalk x) (X.fromSpecStalk x ≫ f) = |
| 18 | ⟨f x, f.stalkMap x, inferInstance⟩ := by |
| 19 | apply SpecToEquivOfLocalRing_eq_iff.mpr |
| 20 | refine ⟨?_, ?_⟩ |
| 21 | · exact congrArg f Scheme.fromSpecStalk_closedPoint |
| 22 | · change Scheme.stalkClosedPointTo (X.fromSpecStalk x ≫ f) = _ |
| 23 | rw [Scheme.stalkClosedPointTo_comp, Scheme.stalkClosedPointTo_fromSpecStalk] |
| 24 | exact Scheme.Hom.stalkMap_congr_point f _ _ Scheme.fromSpecStalk_closedPoint |
| 25 | |
| 26 | theorem schemeHom_eq_of_localSpectra {X Y : Scheme.{u}} (f g : X ⟶ Y) |
| 27 | (h : ∀ x : X, X.fromSpecStalk x ≫ f = X.fromSpecStalk x ≫ g) : f = g := by |
| 28 | have hp (x : X) : |
| 29 | (⟨f x, f.stalkMap x, inferInstance⟩ : |
| 30 | Σ y, {a : Y.presheaf.stalk y ⟶ X.presheaf.stalk x // IsLocalHom a.hom}) = |
| 31 | ⟨g x, g.stalkMap x, inferInstance⟩ := by |
| 32 | have he := congrArg (SpecToEquivOfLocalRing Y (X.presheaf.stalk x)) (h x) |
| 33 | rw [localSpectrumPoint_comp, localSpectrumPoint_comp] at he |
| 34 | exact he |
| 35 | have hb : f.base = g.base := by |
| 36 | ext x |
| 37 | exact congrArg Sigma.fst (hp x) |
| 38 | apply Scheme.Hom.ext' |
| 39 | apply LocallyRingedSpace.Hom.ext' |
| 40 | have he := SheafedSpace.hom_stalk_ext f.toLRSHom.toShHom g.toLRSHom.toShHom hb |
| 41 | (fun x => (SpecToEquivOfLocalRing_eq_iff.mp (hp x)).choose_spec) |
| 42 | exact congrArg (fun a => a.hom) he |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.LocalSpectraDetection |