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.ArithmeticGeometry.Models.SpreadingOut.OpenOver |
| 2 | import Mathlib.AlgebraicGeometry.FunctionField |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | |
| 5 | /-! # Finite Affine Cover -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.FiniteAffineCover.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite nonempty affine charts and their common dense open domain. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem finite_nonempty_affine_open_cover |
| 18 | (X : Scheme.{u}) [CompactSpace X] : |
| 19 | ∃ (ι : Type u) (_ : Finite ι) (V : ι → X.Opens), |
| 20 | (∀ i, IsAffineOpen (V i) ∧ (V i : Set X).Nonempty) ∧ (⨆ i, V i) = ⊤ := by |
| 21 | obtain ⟨Us, hUs, hfin, htop⟩ := X.isBasis_affineOpens.exists_finite_of_isCompact |
| 22 | (show IsCompact ((⊤ : X.Opens) : Set X) from isCompact_univ) |
| 23 | let T : Set X.Opens := {V | V ∈ Us ∧ (V : Set X).Nonempty} |
| 24 | have hT : T.Finite := hfin.subset (fun _ h ↦ h.1) |
| 25 | let ι := T |
| 26 | let : Finite ι := hT.to_subtype |
| 27 | let V : ι → X.Opens := Subtype.val |
| 28 | refine ⟨ι, inferInstance, V, ?_, ?_⟩ |
| 29 | · intro i |
| 30 | exact ⟨hUs i.property.1, i.property.2⟩ |
| 31 | · apply top_unique |
| 32 | intro x _ |
| 33 | have hx : x ∈ sSup Us := by rw [← htop]; trivial |
| 34 | obtain ⟨A, hA, hxA⟩ := Opens.mem_sSup.mp hx |
| 35 | exact Opens.mem_iSup.mpr ⟨⟨A, hA, x, hxA⟩, hxA⟩ |
| 36 | |
| 37 | /-- Finitely many nonempty opens in an irreducible scheme have a common |
| 38 | dense open contained in all of them. -/ |
| 39 | theorem common_dense_open |
| 40 | (X : Scheme.{u}) [IrreducibleSpace X] |
| 41 | {ι : Type u} [Finite ι] (V : ι → X.Opens) (hV : ∀ i, (V i : Set X).Nonempty) : |
| 42 | ∃ U : X.Opens, Dense (U : Set X) ∧ ∀ i, U ≤ V i := by |
| 43 | let U := ⨅ i, V i |
| 44 | have hη : genericPoint X ∈ U := by |
| 45 | change genericPoint X ∈ (U : Set X) |
| 46 | rw [Opens.coe_iInf] |
| 47 | apply Set.mem_iInter.mpr |
| 48 | intro i |
| 49 | exact ((genericPoint_spec X).mem_open_set_iff (V i).isOpen).mpr |
| 50 | (by simpa using hV i) |
| 51 | exact ⟨U, U.isOpen.dense ⟨genericPoint X, hη⟩, fun i ↦ iInf_le V i⟩ |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.ArithmeticGeometry.Models.SpreadingOut.FiniteAffineCover.Construction |