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.FunctionField |
| 2 | import Mathlib.Data.Fintype.EquivFin |
| 3 | |
| 4 | /-! # Integral Finite -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.IntegralFinite.IntegralFiniteAffineCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite nonempty affine covers with a common nonempty affine open. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | structure Data (X : Scheme.{u}) where |
| 17 | n : ℕ |
| 18 | opens : Fin n → X.Opens |
| 19 | affine : ∀ i, IsAffineOpen (opens i) |
| 20 | nonempty : ∀ i, Nonempty (opens i) |
| 21 | covers : ∀ x : X, ∃ i, x ∈ opens i |
| 22 | common : X.Opens |
| 23 | common_affine : IsAffineOpen common |
| 24 | common_nonempty : Nonempty common |
| 25 | common_le : ∀ i, common ≤ opens i |
| 26 | |
| 27 | theorem nonempty (X : Scheme.{u}) [IsIntegral X] [CompactSpace X] : Nonempty (IntegralFiniteAffineCover.Data X) := by |
| 28 | classical |
| 29 | have ha (x : X) : ∃ U : X.Opens, IsAffineOpen U ∧ x ∈ U := by |
| 30 | obtain ⟨_, ⟨U, hU, rfl⟩, hxU, _⟩ := |
| 31 | X.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ x) isOpen_univ |
| 32 | exact ⟨U, hU, hxU⟩ |
| 33 | choose U hUa hxU using ha |
| 34 | have hcover : Set.univ ⊆ ⋃ x : X, (U x : Set X) := by |
| 35 | intro x _ |
| 36 | exact Set.mem_iUnion.mpr ⟨x, hxU x⟩ |
| 37 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover (fun x : X => (U x : Set X)) |
| 38 | (fun x => (U x).isOpen) hcover |
| 39 | let e := (Fintype.equivFin s).symm |
| 40 | let V : Fin (Fintype.card s) → X.Opens := fun i => U (e i).1 |
| 41 | have hV (i) : Nonempty (V i) := ⟨⟨(e i).1, hxU (e i).1⟩⟩ |
| 42 | have hη : genericPoint X ∈ iInf V := by |
| 43 | change genericPoint X ∈ ((iInf V : X.Opens) : Set X) |
| 44 | rw [Opens.coe_iInf, Set.mem_iInter] |
| 45 | intro i |
| 46 | have := hV i |
| 47 | exact ((genericPoint_spec X).mem_open_set_iff (V i).isOpen).mpr |
| 48 | (by simpa using hV i) |
| 49 | obtain ⟨_, ⟨W, hW, rfl⟩, hηW, hWV⟩ := |
| 50 | X.isBasis_affineOpens.exists_subset_of_mem_open hη (iInf V).isOpen |
| 51 | refine ⟨⟨Fintype.card s, V, (fun i => hUa (e i).1), hV, ?_, W, hW, |
| 52 | ⟨⟨genericPoint X, hηW⟩⟩, (fun i => hWV.trans (iInf_le V i))⟩⟩ |
| 53 | intro x |
| 54 | obtain ⟨i, hi⟩ := Set.mem_iUnion.mp (hs (Set.mem_univ x)) |
| 55 | obtain ⟨his, hxi⟩ := Set.mem_iUnion.mp hi |
| 56 | refine ⟨e.symm ⟨i, his⟩, ?_⟩ |
| 57 | change x ∈ U (e (e.symm ⟨i, his⟩)).1 |
| 58 | rw [e.apply_symm_apply] |
| 59 | exact hxi |
| 60 | |
| 61 | def ofIntegral (X : Scheme.{u}) [IsIntegral X] [CompactSpace X] : IntegralFiniteAffineCover.Data X := |
| 62 | (IntegralFiniteAffineCover.nonempty X).some |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.IntegralFinite.IntegralFiniteAffineCover |