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.RepresentationTheory.Theta.Geometric.FlatSourceLocalizations |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FlatMono |
| 3 | |
| 4 | /-! # Mono Stalk Sections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MonoStalkSections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A quasi-compact monomorphism with sections over every actual base |
| 11 | local ring is an isomorphism. Nilpotents remain visible in these tests. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem mono_isIso_of_stalk_sections {X S : Scheme.{u}} |
| 18 | (f : X ⟶ S) [Mono f] [QuasiCompact f] |
| 19 | (h : ∀ x : S, ∃ t : Spec (S.presheaf.stalk x) ⟶ X, |
| 20 | t ≫ f = S.fromSpecStalk x) : IsIso f := by |
| 21 | have hp (x : S) : IsIso (pullback.snd f (S.fromSpecStalk x)) := by |
| 22 | obtain ⟨t, ht⟩ := h x |
| 23 | let s := pullback.lift t (𝟙 _) (ht.trans (Category.id_comp _).symm) |
| 24 | have hs : s ≫ pullback.snd f (S.fromSpecStalk x) = 𝟙 _ := pullback.lift_snd _ _ _ |
| 25 | exact ⟨⟨s, by |
| 26 | apply (cancel_mono (pullback.snd f (S.fromSpecStalk x))).mp |
| 27 | rw [Category.assoc, hs, Category.comp_id, Category.id_comp], hs⟩⟩ |
| 28 | have hflat : Flat (f ≫ 𝟙 S) := RepresentationTheory.Theta.Geometric.FlatSourceLocalizations.flat_of_ambient_stalk_localizations f (𝟙 S) (by |
| 29 | intro z |
| 30 | rw [Category.comp_id, pullback.condition] |
| 31 | have := hp (f z) |
| 32 | have := FormalGeometry.Completion.StalkFlat.Construction.scheme_fromSpecStalk_flat S (f z) |
| 33 | infer_instance) |
| 34 | have : Flat f := by simpa only [Category.comp_id] using hflat |
| 35 | have : Surjective f := by |
| 36 | constructor |
| 37 | intro x |
| 38 | obtain ⟨t, ht⟩ := h x |
| 39 | refine ⟨t (IsLocalRing.closedPoint (S.presheaf.stalk x)), ?_⟩ |
| 40 | exact (congrArg (fun a : Spec (S.presheaf.stalk x) ⟶ S => |
| 41 | a (IsLocalRing.closedPoint (S.presheaf.stalk x))) ht).trans Scheme.fromSpecStalk_closedPoint |
| 42 | exact Flat.isIso_of_surjective_of_mono f |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MonoStalkSections |