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.Cover.Open |
| 2 | import Mathlib.AlgebraicGeometry.OpenImmersion |
| 3 | |
| 4 | /-! # Subset Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.SubsetGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatible open subsets on any open cover glue uniquely to an actual open subset. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem opens_eq_of_open_cover {X : Scheme.{u}} (C : X.OpenCover) (U V : X.Opens) |
| 17 | (h : ∀ i, (C.f i) ⁻¹ᵁ U = (C.f i) ⁻¹ᵁ V) : U = V := by |
| 18 | apply TopologicalSpace.Opens.ext |
| 19 | apply Set.ext |
| 20 | intro x |
| 21 | obtain ⟨i, y, rfl⟩ := C.exists_eq x |
| 22 | exact Iff.of_eq (congrArg (fun W : (C.X i).Opens => y ∈ W) (h i)) |
| 23 | |
| 24 | structure OpenSubsetMatchingData {X : Scheme.{u}} (C : X.OpenCover) where |
| 25 | opens : ∀ i, (C.X i).Opens |
| 26 | compatible : ∀ {W : Scheme.{u}} (i j : C.I₀) (a : W ⟶ C.X i) (b : W ⟶ C.X j), |
| 27 | a ≫ C.f i = b ≫ C.f j → a ⁻¹ᵁ opens i = b ⁻¹ᵁ opens j |
| 28 | |
| 29 | namespace OpenSubsetMatchingData |
| 30 | |
| 31 | variable {X : Scheme.{u}} {C : X.OpenCover} (D : OpenSubsetMatchingData C) |
| 32 | |
| 33 | def glue : X.Opens := ⨆ i, (C.f i) ''ᵁ D.opens i |
| 34 | |
| 35 | theorem glue_preimage (i : C.I₀) : (C.f i) ⁻¹ᵁ D.glue = D.opens i := by |
| 36 | rw [OpenSubsetMatchingData.glue, (C.f i).preimage_iSup] |
| 37 | apply le_antisymm |
| 38 | · apply iSup_le |
| 39 | intro j |
| 40 | let a := pullback.fst (C.f i) (C.f j) |
| 41 | let b := pullback.snd (C.f i) (C.f j) |
| 42 | have he : a ''ᵁ b ⁻¹ᵁ D.opens j = (C.f i) ⁻¹ᵁ (C.f j) ''ᵁ D.opens j := |
| 43 | IsOpenImmersion.image_preimage_eq_preimage_image_of_isPullback |
| 44 | (IsPullback.of_hasPullback (C.f i) (C.f j)).flip (D.opens j) |
| 45 | rw [← he, ← D.compatible i j a b pullback.condition] |
| 46 | exact a.image_preimage_le (D.opens i) |
| 47 | · have hi := le_iSup (fun j => (C.f i) ⁻¹ᵁ (C.f j) ''ᵁ D.opens j) i |
| 48 | rw [(C.f i).preimage_image_eq] at hi |
| 49 | exact hi |
| 50 | |
| 51 | theorem glue_unique (U : X.Opens) (hU : ∀ i, (C.f i) ⁻¹ᵁ U = D.opens i) : U = D.glue := |
| 52 | opens_eq_of_open_cover C U D.glue (fun i => (hU i).trans (D.glue_preimage i).symm) |
| 53 | |
| 54 | end OpenSubsetMatchingData |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.SubsetGluing |