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.LocalCoefficientFrameNeighborhood |
| 2 | import Mathlib.Order.ULift |
| 3 | |
| 4 | /-! # Pointed Finite Affine Cover -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.PointedFiniteAffineCover.LocalPointedFiniteAffineCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite ordered affine cover with one member containing the image |
| 11 | of a morphism from an affine scheme with local coefficient ring. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S X : Scheme.{u}} |
| 18 | |
| 19 | structure Data (s : S ⟶ X) where |
| 20 | I : Type u |
| 21 | fintype : Fintype I |
| 22 | linearOrder : LinearOrder I |
| 23 | opens : I → X.Opens |
| 24 | affine : ∀ i, IsAffineOpen (opens i) |
| 25 | covers : iSup opens = ⊤ |
| 26 | distinguished : I |
| 27 | point_in : ⊤ ≤ s ⁻¹ᵁ opens distinguished |
| 28 | |
| 29 | /-- Compactness supplies the finite affine cover. The member containing |
| 30 | the coefficient-residue point contains the entire image of the local base. -/ |
| 31 | theorem nonempty [IsAffine S] [IsLocalRing Γ(S, ⊤)] [CompactSpace X] |
| 32 | (s : S ⟶ X) : Nonempty (Data s) := by |
| 33 | classical |
| 34 | have ha (x : X) : ∃ U : X.Opens, IsAffineOpen U ∧ x ∈ U := by |
| 35 | obtain ⟨_, ⟨U, hU, rfl⟩, hxU, _⟩ := |
| 36 | X.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ x) isOpen_univ |
| 37 | exact ⟨U, hU, hxU⟩ |
| 38 | choose U hUa hxU using ha |
| 39 | have hcover : Set.univ ⊆ ⋃ x : X, (U x : Set X) := by |
| 40 | intro x _ |
| 41 | exact Set.mem_iUnion.mpr ⟨x, hxU x⟩ |
| 42 | obtain ⟨t, ht⟩ := isCompact_univ.elim_finite_subcover (fun x : X => (U x : Set X)) |
| 43 | (fun x => (U x).isOpen) hcover |
| 44 | let e := (Fintype.equivFin t).symm |
| 45 | let V : ULift.{u} (Fin (Fintype.card t)) → X.Opens := fun i => U (e i.down).1 |
| 46 | have hV : iSup V = ⊤ := by |
| 47 | apply top_unique |
| 48 | intro x _ |
| 49 | obtain ⟨i, hi⟩ := Set.mem_iUnion.mp (ht (Set.mem_univ x)) |
| 50 | obtain ⟨hit, hxi⟩ := Set.mem_iUnion.mp hi |
| 51 | apply Opens.mem_iSup.mpr |
| 52 | refine ⟨⟨e.symm ⟨i, hit⟩⟩, ?_⟩ |
| 53 | change x ∈ U (e (e.symm ⟨i, hit⟩)).1 |
| 54 | rw [e.apply_symm_apply] |
| 55 | change x ∈ (U i : Set X) |
| 56 | exact hxi |
| 57 | let x₀ := ReferenceFamily.Affine.CoefficientUnitExactness.coefficientFieldPoint S |
| 58 | (IsLocalRing.ResidueField Γ(S, ⊤)) |
| 59 | (IsLocalRing.closedPoint (IsLocalRing.ResidueField Γ(S, ⊤))) |
| 60 | have hx₀ : s x₀ ∈ iSup V := by rw [hV]; trivial |
| 61 | obtain ⟨i, hi⟩ := Opens.mem_iSup.mp hx₀ |
| 62 | refine ⟨⟨ULift.{u} (Fin (Fintype.card t)), inferInstance, inferInstance, |
| 63 | V, (fun j => hUa (e j.down).1), hV, i, ?_⟩⟩ |
| 64 | exact (Quotients.FiniteDescent.LocalCoefficientFrameNeighborhood.Construction.ModelFrameNeighborhood.coefficientResidue_open_eq_top |
| 65 | S (s ⁻¹ᵁ V i) hi).ge |
| 66 | |
| 67 | /-- A finite ordered affine cover with a member containing the full local-base image. -/ |
| 68 | def ofLocalBase [IsAffine S] [IsLocalRing Γ(S, ⊤)] [CompactSpace X] |
| 69 | (s : S ⟶ X) : Data s := |
| 70 | (nonempty s).some |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.PointedFiniteAffineCover.LocalPointedFiniteAffineCover |