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.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.OpenDiagram |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 3 | |
| 4 | /-! # Affine Cover Intersections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Family.AffineCoverIntersections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A separated family over an affine base has actual affine pair |
| 11 | and triple intersections of every affine open cover. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | variable (R : Type) [CommRing R] (X : Over (Spec (.of R))) |
| 16 | (U : X.left.AffineOpenCover) |
| 17 | |
| 18 | def familyCoverAffineOpen (i : U.I₀) : X.left.affineOpens := |
| 19 | ⟨(U.f i).opensRange, isAffineOpen_opensRange (U.f i)⟩ |
| 20 | |
| 21 | variable [IsSeparated X.hom] |
| 22 | |
| 23 | theorem family_affineDiagonal : IsAffineHom (pullback.diagonal (terminal.from X.left)) := by |
| 24 | have : IsSeparated (terminal.from (Spec (.of R))) := inferInstance |
| 25 | have h : IsSeparated (X.hom ≫ terminal.from (Spec (.of R))) := inferInstance |
| 26 | have he : X.hom ≫ terminal.from (Spec (.of R)) = terminal.from X.left := Subsingleton.elim _ _ |
| 27 | have : IsSeparated (terminal.from X.left) := he ▸ h |
| 28 | infer_instance |
| 29 | |
| 30 | theorem family_affineIntersection (V W : X.left.Opens) |
| 31 | (hV : IsAffineOpen V) (hW : IsAffineOpen W) : IsAffineOpen (V ⊓ W) := by |
| 32 | have := family_affineDiagonal R X |
| 33 | exact hV.inf hW |
| 34 | |
| 35 | def familyCoverPairAffineOpen (i j : U.I₀) : X.left.affineOpens := |
| 36 | ⟨(U.f i).opensRange ⊓ (U.f j).opensRange, |
| 37 | family_affineIntersection R X _ _ (isAffineOpen_opensRange (U.f i)) (isAffineOpen_opensRange (U.f j))⟩ |
| 38 | |
| 39 | def familyCoverTripleAffineOpen (i j l : U.I₀) : X.left.affineOpens := |
| 40 | ⟨(familyCoverPairAffineOpen R X U i j).1 ⊓ (U.f l).opensRange, |
| 41 | family_affineIntersection R X _ _ (familyCoverPairAffineOpen R X U i j).2 |
| 42 | (isAffineOpen_opensRange (U.f l))⟩ |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Family.AffineCoverIntersections |