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.Topology.Baire.Lemmas |
| 2 | import Mathlib.Topology.Maps.Proper.Basic |
| 3 | import Mathlib.Topology.Compactness.SigmaCompact |
| 4 | |
| 5 | /-! # Countable Compact Relations -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.CountableCompactRelations |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A countable cover by closed relations with compact auxiliary |
| 12 | parameters has one fixed relation valid on a nonempty open patch. -/ |
| 13 | |
| 14 | open Set |
| 15 | |
| 16 | theorem isClosed_exists_mem_compact_relation |
| 17 | {X Z : Type*} [TopologicalSpace X] [TopologicalSpace Z] |
| 18 | (K : Set Z) (hK : IsCompact K) (R : Set (X × Z)) (hR : IsClosed R) : |
| 19 | IsClosed {x : X | ∃ z ∈ K, (x, z) ∈ R} := by |
| 20 | let : CompactSpace K := isCompact_iff_compactSpace.mp hK |
| 21 | let T : Set (X × K) := (fun q : X × K => (q.1, q.2.val)) ⁻¹' R |
| 22 | have hT : IsClosed T := hR.preimage |
| 23 | (continuous_fst.prodMk (continuous_subtype_val.comp continuous_snd)) |
| 24 | have hproj : IsClosed (Prod.fst '' T) := isClosedMap_fst_of_compactSpace T hT |
| 25 | have heq : Prod.fst '' T = {x : X | ∃ z ∈ K, (x, z) ∈ R} := by |
| 26 | ext x |
| 27 | constructor |
| 28 | · rintro ⟨⟨y, z⟩, hy, rfl⟩ |
| 29 | exact ⟨z.val, z.property, hy⟩ |
| 30 | · rintro ⟨z, hz, hx⟩ |
| 31 | exact ⟨(x, ⟨z, hz⟩), hx, rfl⟩ |
| 32 | exact heq ▸ hproj |
| 33 | |
| 34 | theorem exists_open_fixed_compact_relation |
| 35 | {X Z I : Type*} [TopologicalSpace X] [BaireSpace X] [Nonempty X] |
| 36 | [TopologicalSpace Z] [Countable I] |
| 37 | (K : I → Set Z) (hK : ∀ i, IsCompact (K i)) |
| 38 | (R : I → Set (X × Z)) (hR : ∀ i, IsClosed (R i)) |
| 39 | (hcover : ∀ x : X, ∃ i z, z ∈ K i ∧ (x, z) ∈ R i) : |
| 40 | ∃ (i : I) (O : Set X), IsOpen O ∧ O.Nonempty ∧ |
| 41 | ∀ x ∈ O, ∃ z ∈ K i, (x, z) ∈ R i := by |
| 42 | let F := fun i => {x : X | ∃ z ∈ K i, (x, z) ∈ R i} |
| 43 | have hclosed : ∀ i, IsClosed (F i) := fun i => |
| 44 | isClosed_exists_mem_compact_relation (K i) (hK i) (R i) (hR i) |
| 45 | have hall : ⋃ i, F i = univ := by |
| 46 | apply eq_univ_of_forall |
| 47 | intro x |
| 48 | obtain ⟨i, z, hz, hrel⟩ := hcover x |
| 49 | exact mem_iUnion.mpr ⟨i, z, hz, hrel⟩ |
| 50 | obtain ⟨i, hi⟩ := nonempty_interior_of_iUnion_of_closed hclosed hall |
| 51 | exact ⟨i, interior (F i), isOpen_interior, hi, |
| 52 | fun _ hx => (show interior (F i) ⊆ F i from interior_subset) hx⟩ |
| 53 | |
| 54 | theorem exists_open_fixed_relation_of_sigmaCompact |
| 55 | {X Z I : Type*} [TopologicalSpace X] [BaireSpace X] [Nonempty X] |
| 56 | [TopologicalSpace Z] [SigmaCompactSpace Z] [Countable I] |
| 57 | (R : I → Set (X × Z)) (hR : ∀ i, IsClosed (R i)) |
| 58 | (hcover : ∀ x : X, ∃ i z, (x, z) ∈ R i) : |
| 59 | ∃ (i : I) (O : Set X), IsOpen O ∧ O.Nonempty ∧ |
| 60 | ∀ x ∈ O, ∃ z, (x, z) ∈ R i := by |
| 61 | obtain ⟨⟨i, n⟩, O, hO, hOn, hrel⟩ := exists_open_fixed_compact_relation |
| 62 | (fun j : I × ℕ => compactCovering Z j.2) |
| 63 | (fun j => isCompact_compactCovering Z j.2) |
| 64 | (fun j : I × ℕ => R j.1) (fun j => hR j.1) (by |
| 65 | intro x |
| 66 | obtain ⟨i, z, hz⟩ := hcover x |
| 67 | obtain ⟨n, hn⟩ := exists_mem_compactCovering z |
| 68 | exact ⟨(i, n), z, hn, hz⟩) |
| 69 | refine ⟨i, O, hO, hOn, ?_⟩ |
| 70 | intro x hx |
| 71 | obtain ⟨z, _, hz⟩ := hrel x hx |
| 72 | exact ⟨z, hz⟩ |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.CountableCompactRelations |