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