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.ShrinkingLemma |
| 2 | import Mathlib.Topology.Sets.Opens |
| 3 | import Mathlib.Data.Fintype.EquivFin |
| 4 | |
| 5 | /-! # Compact Shrinking Cover -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.DeRham.Comparison.CompactShrinkingCover |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Finite shrinking refinements of compact Hausdorff open covers |
| 13 | |
| 14 | The finite refinement is constructed from compactness followed by mathlib's |
| 15 | shrinking lemma. Its index set is `Fin n`, including `Fin 0` when appropriate. |
| 16 | Every closure containment refers to the actual topological closure in `X`. |
| 17 | -/ |
| 18 | |
| 19 | open Set _root_.TopologicalSpace |
| 20 | |
| 21 | variable {X ι : Type*} [TopologicalSpace X] [CompactSpace X] [T2Space X] |
| 22 | |
| 23 | /-- Every open cover of a compact Hausdorff space has a finite open shrinking |
| 24 | refinement. Each new set has its closure inside its assigned original set. -/ |
| 25 | theorem exists_finite_shrinking_cover (U : ι → Opens X) (hU : iSup U = ⊤) : |
| 26 | ∃ (n : ℕ) (r : Fin n → ι) (V : Fin n → Opens X), |
| 27 | iSup V = ⊤ ∧ ∀ j, closure (V j : Set X) ⊆ (U (r j) : Set X) := by |
| 28 | classical |
| 29 | have hcoverSet : (⋃ i, (U i : Set X)) = univ := by |
| 30 | rw [← Opens.coe_iSup, hU, Opens.coe_top] |
| 31 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover |
| 32 | (fun i => (U i : Set X)) (fun i => (U i).isOpen) hcoverSet.ge |
| 33 | let n := Fintype.card s |
| 34 | let e : Fin n ≃ s := (Fintype.equivFin s).symm |
| 35 | let r : Fin n → ι := fun j => (e j).1 |
| 36 | have hfiniteCover : (⋃ j, (U (r j) : Set X)) = univ := by |
| 37 | apply Set.eq_univ_of_forall |
| 38 | intro x |
| 39 | obtain ⟨i, hi, hxi⟩ := Set.mem_iUnion₂.mp (hs (Set.mem_univ x)) |
| 40 | refine Set.mem_iUnion.mpr ⟨e.symm ⟨i, hi⟩, ?_⟩ |
| 41 | simpa only [r, Equiv.apply_symm_apply] using hxi |
| 42 | obtain ⟨V, hcover, hopen, hsub⟩ := exists_iUnion_eq_closure_subset |
| 43 | (fun j => (U (r j)).isOpen) (fun _ => Set.toFinite _) hfiniteCover |
| 44 | refine ⟨n, r, fun j => ⟨V j, hopen j⟩, ?_, hsub⟩ |
| 45 | apply Opens.ext |
| 46 | simpa only [Opens.coe_iSup, Opens.coe_top, Opens.coe_mk] using hcover |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicTopology.DeRham.Comparison.CompactShrinkingCover |