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.AlgebraicGeometry.Limits |
| 3 | import Mathlib.Topology.Connected.Clopen |
| 4 | |
| 5 | /-! # Global Domain Connected -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.GlobalDomainConnected.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: a scheme with a global function domain is connected |
| 13 | |
| 14 | A separation into two nonempty open-and-closed pieces would split global |
| 15 | functions as a product of two nontrivial rings, contradicting the domain |
| 16 | property. This is applied to actual flat base changes of global sections. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 20 | |
| 21 | set_option backward.defeqAttrib.useBackward true |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | /-- Nontrivial global functions force the actual scheme to be nonempty. -/ |
| 27 | theorem scheme_nonempty_of_nontrivial_globalFunctions (X : Scheme.{u}) |
| 28 | [Nontrivial Γ(X, ⊤)] : Nonempty X := by |
| 29 | by_contra hn |
| 30 | have : IsEmpty X := not_nonempty_iff.mp hn |
| 31 | have he : ((⊤ : X.Opens) : Set X) = ∅ := Set.eq_empty_of_isEmpty _ |
| 32 | have : Subsingleton Γ(X, ⊤) := |
| 33 | CommRingCat.subsingleton_of_isTerminal (X.sheaf.isTerminalOfEqEmpty (TopologicalSpace.Opens.ext he)) |
| 34 | exact zero_ne_one (Subsingleton.elim (0 : Γ(X, ⊤)) 1) |
| 35 | |
| 36 | /-- The actual global function domain rules out a disconnected decomposition of the scheme. -/ |
| 37 | theorem scheme_connected_of_globalFunctionDomain (X : Scheme.{u}) |
| 38 | [IsDomain Γ(X, ⊤)] : ConnectedSpace X := by |
| 39 | rw [connectedSpace_iff_clopen] |
| 40 | refine ⟨scheme_nonempty_of_nontrivial_globalFunctions X, ?_⟩ |
| 41 | intro s hs |
| 42 | by_cases hse : s = ∅ |
| 43 | · exact Or.inl hse |
| 44 | by_cases hsu : s = Set.univ |
| 45 | · exact Or.inr hsu |
| 46 | exfalso |
| 47 | let U : X.Opens := ⟨s, hs.isOpen⟩ |
| 48 | let V : X.Opens := ⟨sᶜ, hs.isClosed.isOpen_compl⟩ |
| 49 | have : Nonempty U := (Set.nonempty_iff_ne_empty.mpr hse).to_subtype |
| 50 | have : Nonempty V := by |
| 51 | have hn : sᶜ ≠ ∅ := by |
| 52 | intro he |
| 53 | apply hsu |
| 54 | simpa using congrArg (fun t : Set X => tᶜ) he |
| 55 | exact (Set.nonempty_iff_ne_empty.mpr hn).to_subtype |
| 56 | have hu : U ⊔ V = ⊤ := by ext; simp [U, V] |
| 57 | have hd : U ⊓ V = ⊥ := by ext; simp [U, V] |
| 58 | let e : Γ(X, ⊤) ≅ CommRingCat.of (Γ(X, U) × Γ(X, V)) := |
| 59 | X.presheaf.mapIso (eqToIso hu).op ≪≫ |
| 60 | (X.sheaf.isProductOfDisjoint U V hd).conePointUniqueUpToIso |
| 61 | (CommRingCat.prodFanIsLimit Γ(X, U) Γ(X, V)) |
| 62 | have : IsDomain (Γ(X, U) × Γ(X, V)) := e.symm.commRingCatIsoToRingEquiv.toMulEquiv.isDomain _ |
| 63 | have hm : ((1, 0) : Γ(X, U) × Γ(X, V)) * (0, 1) = 0 := by simp |
| 64 | rcases mul_eq_zero.mp hm with h | h |
| 65 | · exact one_ne_zero (congrArg Prod.fst h) |
| 66 | · exact one_ne_zero (congrArg Prod.snd h) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.GlobalDomainConnected.Construction |