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.Properties |
| 2 | import Mathlib.Topology.Connected.Clopen |
| 3 | |
| 4 | /-! # Functions Connectedness -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.FunctionsConnectedness |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A scheme whose ring of global functions is a domain is preconnected: a nontrivial clopen decomposition would split that ring as a product of two nonzero rings. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem scheme_preconnected_of_globalSections_domain (X : Scheme.{u}) [IsDomain Γ(X, ⊤)] : |
| 17 | PreconnectedSpace X := by |
| 18 | classical |
| 19 | apply preconnectedSpace_iff_clopen.mpr |
| 20 | intro s hs |
| 21 | by_cases he : s = ∅ |
| 22 | · exact Or.inl he |
| 23 | · right |
| 24 | by_contra ht |
| 25 | obtain ⟨x, hx⟩ := Set.nonempty_iff_ne_empty.mpr he |
| 26 | have hc : ∃ y : X, y ∉ s := by |
| 27 | by_contra! h |
| 28 | exact ht (Set.eq_univ_of_forall h) |
| 29 | obtain ⟨y, hy⟩ := hc |
| 30 | let U : X.Opens := ⟨s, hs.isOpen⟩ |
| 31 | let V : X.Opens := ⟨sᶜ, hs.isClosed.isOpen_compl⟩ |
| 32 | have : Nonempty U := ⟨⟨x, hx⟩⟩ |
| 33 | have : Nonempty V := ⟨⟨y, hy⟩⟩ |
| 34 | have hdis : U ⊓ V = ⊥ := by |
| 35 | ext z |
| 36 | change (z ∈ s ∧ z ∉ s) ↔ False |
| 37 | exact iff_false_intro (fun h => h.2 h.1) |
| 38 | have hsup : U ⊔ V = ⊤ := by |
| 39 | ext z |
| 40 | change (z ∈ s ∨ z ∉ s) ↔ True |
| 41 | exact iff_true_intro (em (z ∈ s)) |
| 42 | have : IsDomain Γ(X, U ⊔ V) := by rw [hsup]; infer_instance |
| 43 | let e : Γ(X, U ⊔ V) ≅ CommRingCat.of (Γ(X, U) × Γ(X, V)) := |
| 44 | (X.sheaf.isProductOfDisjoint U V hdis).conePointUniqueUpToIso (CommRingCat.prodFanIsLimit _ _) |
| 45 | have : IsDomain (Γ(X, U) × Γ(X, V)) := e.symm.commRingCatIsoToRingEquiv.toMulEquiv.isDomain _ |
| 46 | exact false_of_nontrivial_of_product_domain Γ(X, U) Γ(X, V) |
| 47 | |
| 48 | theorem scheme_connected_of_globalSections_domain (X : Scheme.{u}) [Nonempty X] [IsDomain Γ(X, ⊤)] : |
| 49 | ConnectedSpace X := by |
| 50 | let : PreconnectedSpace X := scheme_preconnected_of_globalSections_domain X |
| 51 | exact ⟨inferInstance⟩ |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.FunctionsConnectedness |