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.IntegralComparison.RelativeCech.Intersections |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 4 | import Mathlib.SetTheory.Cardinal.Order |
| 5 | |
| 6 | /-! # Complementary Affine Cover -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ComplementaryAffineCover |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! An actual affine cover adapted to one affine neighborhood and its |
| 13 | open complement. Its distinguished member is the original neighborhood. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | universe u |
| 18 | variable {X : Scheme.{u}} (O : X.Opens) |
| 19 | |
| 20 | def Index : Type u := { V : X.affineOpens // V.val ≤ O } |
| 21 | |
| 22 | instance indexLinearOrder : LinearOrder (Index O) := |
| 23 | IsWellOrder.linearOrder WellOrderingRel |
| 24 | |
| 25 | def opens (i : Index O) : X.Opens := i.val.val |
| 26 | |
| 27 | theorem affine (i : Index O) : IsAffineOpen (opens O i) := i.val.property |
| 28 | |
| 29 | theorem le (i : Index O) : opens O i ≤ O := i.property |
| 30 | |
| 31 | theorem covers : (⨆ i, opens O i) = O := by |
| 32 | apply le_antisymm (iSup_le (le O)) |
| 33 | intro x hx |
| 34 | obtain ⟨V, hV, hxV, hVO⟩ := Opens.isBasis_iff_nbhd.mp X.isBasis_affineOpens hx |
| 35 | exact Opens.mem_iSup.mpr ⟨⟨⟨V, hV⟩, hVO⟩, hxV⟩ |
| 36 | |
| 37 | variable (U : X.Opens) |
| 38 | |
| 39 | def cover : WithBot (Index O) → X.Opens := |
| 40 | RelativeCech.Intersections.cover U (opens O) |
| 41 | |
| 42 | theorem cover_bot : cover O U ⊥ = U := rfl |
| 43 | |
| 44 | theorem cover_coe (i : Index O) : cover O U (i : WithBot (Index O)) = opens O i := rfl |
| 45 | |
| 46 | theorem cover_affine (hU : IsAffineOpen U) (i : WithBot (Index O)) : |
| 47 | IsAffineOpen (cover O U i) := by |
| 48 | cases i with |
| 49 | | bot => exact hU |
| 50 | | coe i => exact affine O i |
| 51 | |
| 52 | theorem cover_top (h : U ⊔ O = ⊤) : (⨆ i, cover O U i) = ⊤ := by |
| 53 | apply top_unique |
| 54 | intro x _ |
| 55 | have hx : x ∈ U ⊔ O := by rw [h]; trivial |
| 56 | rcases hx with hx | hx |
| 57 | · exact Opens.mem_iSup.mpr ⟨⊥, hx⟩ |
| 58 | · obtain ⟨i, hi⟩ := Opens.mem_iSup.mp (show x ∈ ⨆ i, opens O i by rw [covers]; exact hx) |
| 59 | exact Opens.mem_iSup.mpr ⟨(i : WithBot (Index O)), hi⟩ |
| 60 | |
| 61 | theorem intersection_covers : (⨆ i, U ⊓ opens O i) = U ⊓ O := by |
| 62 | rw [← inf_iSup_eq, covers] |
| 63 | |
| 64 | theorem intersection_affine [X.IsSeparated] (hU : IsAffineOpen U) (i : Index O) : |
| 65 | IsAffineOpen (U ⊓ opens O i) := hU.inf (affine O i) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ComplementaryAffineCover |