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.Limits |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.IsIso |
| 3 | |
| 4 | /-! # Disjoint Open Cover Finite -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.DisjointOpenCoverFinite |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A disjoint open cover of a compact scheme by nonempty schemes has |
| 11 | finitely many components. Its actual coproduct map is an isomorphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | variable {I : Type} {X : Scheme.{0}} (Y : I → Scheme.{0}) (f : ∀ i, Y i ⟶ X) |
| 16 | [∀ i, IsOpenImmersion (f i)] |
| 17 | |
| 18 | theorem disjoint_open_cover_finite [CompactSpace X] [∀ i, Nonempty (Y i)] |
| 19 | (hd : Pairwise (fun i j => Disjoint (Set.range (f i)) (Set.range (f j)))) |
| 20 | (hcover : (⋃ i, Set.range (f i)) = Set.univ) : Finite I := by |
| 21 | classical |
| 22 | obtain ⟨t, ht⟩ := isCompact_univ.elim_finite_subcover (fun i => Set.range (f i)) |
| 23 | (fun i => (f i).isOpenEmbedding.isOpen_range) (by rw [hcover]) |
| 24 | have hall (i : I) : i ∈ t := by |
| 25 | let y : Y i := Classical.choice inferInstance |
| 26 | obtain ⟨j, hj⟩ := Set.mem_iUnion.mp (ht (Set.mem_univ (f i y))) |
| 27 | obtain ⟨hjt, hy⟩ := Set.mem_iUnion.mp hj |
| 28 | by_cases hij : i = j |
| 29 | · exact hij.symm ▸ hjt |
| 30 | · exact False.elim (Set.disjoint_left.mp (hd hij) (Set.mem_range_self y) hy) |
| 31 | exact Set.finite_univ_iff.mp (t.finite_toSet.subset (fun i _ => hall i)) |
| 32 | |
| 33 | theorem disjoint_open_cover_sigma_isIso |
| 34 | (hd : Pairwise (fun i j => Disjoint (Set.range (f i)) (Set.range (f j)))) |
| 35 | (hcover : (⋃ i, Set.range (f i)) = Set.univ) : IsIso (Sigma.desc f) := by |
| 36 | have : IsOpenImmersion (Sigma.desc f) := isOpenImmersion_sigmaDesc Y f hd |
| 37 | have : Surjective (Sigma.desc f) := Surjective.sigmaDesc_of_union_range_eq_univ hcover |
| 38 | exact (isIso_iff_isOpenImmersion_and_surjective (Sigma.desc f)).mpr ⟨inferInstance, inferInstance⟩ |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.DisjointOpenCoverFinite |