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.NumberTheory.PadicHodge.GeometricComparison.Finite.AffineCover |
| 2 | |
| 3 | /-! # Affine Refinement -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Finite.AffineRefinement.FiniteAffineRefinement |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Every open covering family of a quasi-compact scheme admits an actual finite affine refinement. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {X : Scheme.{u}} {ι : Type u} (U : ι → X.Opens) |
| 16 | |
| 17 | structure Refinement where |
| 18 | Index : Type u |
| 19 | finite : Fintype Index |
| 20 | opens : Index → X.Opens |
| 21 | index : Index → ι |
| 22 | affine : ∀ i, IsAffineOpen (opens i) |
| 23 | cover : iSup opens = ⊤ |
| 24 | le : ∀ i, opens i ≤ U (index i) |
| 25 | |
| 26 | attribute [instance] Refinement.finite |
| 27 | |
| 28 | def ofCompact [CompactSpace X] (hU : iSup U = ⊤) : Refinement U := by |
| 29 | classical |
| 30 | have hi (x : X) : ∃ i, x ∈ U i := by |
| 31 | have hx : x ∈ iSup U := hU.symm ▸ (show x ∈ (⊤ : X.Opens) from trivial) |
| 32 | simpa only [Opens.mem_iSup] using hx |
| 33 | choose j hj using hi |
| 34 | choose W hW hxW hsub using fun x => exists_isAffineOpen_mem_and_subset (hj x) |
| 35 | let H := CompactSpace.elim_nhds_subcover (fun x => (W x : Set X)) |
| 36 | (fun x => (W x).isOpen.mem_nhds (hxW x)) |
| 37 | let t := H.choose |
| 38 | have ht := H.choose_spec |
| 39 | refine { |
| 40 | Index := t |
| 41 | finite := inferInstance |
| 42 | opens := fun x => W x.1 |
| 43 | index := fun x => j x.1 |
| 44 | affine := fun x => hW x.1 |
| 45 | le := fun x => hsub x.1 |
| 46 | cover := ?_ } |
| 47 | apply Opens.ext |
| 48 | apply Set.eq_univ_of_forall |
| 49 | intro x |
| 50 | have hx : x ∈ (⋃ y ∈ t, (W y : Set X)) := ht.symm ▸ Set.mem_univ x |
| 51 | rcases Set.mem_iUnion.mp hx with ⟨y, hy⟩ |
| 52 | rcases Set.mem_iUnion.mp hy with ⟨hyt, hxy⟩ |
| 53 | exact Opens.mem_iSup.mpr ⟨⟨y, hyt⟩, hxy⟩ |
| 54 | |
| 55 | def overAffine (R : Type) [CommRing R] (X : Over (Spec (CommRingCat.of R))) |
| 56 | [QuasiCompact X.hom] {ι : Type} (U : ι → X.left.Opens) (hU : iSup U = ⊤) : Refinement U := by |
| 57 | have : CompactSpace X.left := QuasiCompact.compactSpace_of_compactSpace X.hom |
| 58 | exact ofCompact U hU |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Finite.AffineRefinement.FiniteAffineRefinement |