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.HilbertScheme.Presentations.Noetherian.StalkFactorization |
| 2 | import Mathlib.AlgebraicGeometry.IdealSheaf.Functorial |
| 3 | import Mathlib.Topology.Separation.Basic |
| 4 | |
| 5 | /-! # Closed Stalk Detection -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Ideal.ClosedStalkDetection |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! On a quasi-compact locally Noetherian scheme, an ideal sheaf is zero |
| 12 | if its pullback to every closed-point local spectrum is zero. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | universe u |
| 17 | variable {X : Scheme.{u}} [IsLocallyNoetherian X] |
| 18 | |
| 19 | theorem ideal_eq_bot_of_localSpectra (I : X.IdealSheafData) |
| 20 | (h : ∀ x : X, I.comap (X.fromSpecStalk x) = ⊥) : I = ⊥ := by |
| 21 | obtain ⟨g, hg, _⟩ := Noetherian.StalkFactorization.lift_of_fromSpecStalk (𝟙 X) I.subschemeι (fun x => by |
| 22 | have hx : I.subschemeι.ker ≤ (X.fromSpecStalk x).ker := by |
| 23 | rw [I.ker_subschemeι] |
| 24 | rw [← Scheme.IdealSheafData.map_bot (X.fromSpecStalk x), |
| 25 | Scheme.IdealSheafData.le_map_iff_comap_le, h x] |
| 26 | refine ⟨IsClosedImmersion.lift I.subschemeι (X.fromSpecStalk x) hx, ?_⟩ |
| 27 | simpa only [Category.comp_id] using IsClosedImmersion.lift_fac _ _ hx) |
| 28 | have hi : I ≤ (𝟙 X : X ⟶ X).ker := by |
| 29 | have hi' := I.ker_subschemeι.symm.le.trans (Scheme.Hom.le_ker_comp g I.subschemeι) |
| 30 | rwa [hg] at hi' |
| 31 | exact bot_unique (hi.trans_eq (𝟙 X : X ⟶ X).ker_eq_bot_of_isIso) |
| 32 | |
| 33 | theorem ideal_eq_bot_of_closed_localSpectra [CompactSpace X] (I : X.IdealSheafData) |
| 34 | (h : ∀ x : X, IsClosed ({x} : Set X) → I.comap (X.fromSpecStalk x) = ⊥) : I = ⊥ := by |
| 35 | apply ideal_eq_bot_of_localSpectra I |
| 36 | intro x |
| 37 | obtain ⟨y, hy, hyc⟩ := isClosed_closure.exists_closed_singleton |
| 38 | (Set.singleton_nonempty x).closure |
| 39 | have hxy : x ⤳ y := specializes_iff_mem_closure.mpr hy |
| 40 | rw [← Scheme.SpecMap_stalkSpecializes_fromSpecStalk hxy, |
| 41 | Scheme.IdealSheafData.comap_comp, h y hyc, Scheme.IdealSheafData.comap_bot] |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Ideal.ClosedStalkDetection |