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.Gluing |
| 2 | |
| 3 | /-! # Test Gluing -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.TestGluing |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Natural maps on arbitrary affine tests glue to actual morphisms of arbitrary schemes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | structure AffineTestMapData (X Y : Scheme.{u}) where |
| 16 | map : ∀ {R : CommRingCat.{u}}, (Spec R ⟶ X) → (Spec R ⟶ Y) |
| 17 | naturality : ∀ {R A : CommRingCat.{u}} |
| 18 | (x : Spec R ⟶ X) (a : Spec A ⟶ Spec R), a ≫ map x = map (a ≫ x) |
| 19 | |
| 20 | namespace AffineTestMapData |
| 21 | |
| 22 | variable {X Y : Scheme.{u}} (D : AffineTestMapData X Y) |
| 23 | |
| 24 | def chartMap (i : X.affineOpenCover.I₀) : Spec (X.affineOpenCover.X i) ⟶ Y := |
| 25 | D.map (X.affineOpenCover.f i) |
| 26 | |
| 27 | theorem chartMap_compatible (i j : X.affineOpenCover.I₀) : |
| 28 | pullback.fst (X.affineOpenCover.f i) (X.affineOpenCover.f j) ≫ D.chartMap i = |
| 29 | pullback.snd _ _ ≫ D.chartMap j := by |
| 30 | let C := X.affineOpenCover |
| 31 | let W := pullback (C.f i) (C.f j) |
| 32 | apply W.affineOpenCover.openCover.hom_ext |
| 33 | intro k |
| 34 | let a := W.affineOpenCover.f k ≫ pullback.fst (C.f i) (C.f j) |
| 35 | let b := W.affineOpenCover.f k ≫ pullback.snd (C.f i) (C.f j) |
| 36 | have he : a ≫ C.f i = b ≫ C.f j := by |
| 37 | change (W.affineOpenCover.f k ≫ pullback.fst (C.f i) (C.f j)) ≫ C.f i = |
| 38 | (W.affineOpenCover.f k ≫ pullback.snd (C.f i) (C.f j)) ≫ C.f j |
| 39 | rw [Category.assoc, Category.assoc, pullback.condition] |
| 40 | change W.affineOpenCover.f k ≫ (pullback.fst (C.f i) (C.f j) ≫ D.map (C.f i)) = |
| 41 | W.affineOpenCover.f k ≫ (pullback.snd (C.f i) (C.f j) ≫ D.map (C.f j)) |
| 42 | exact (Category.assoc _ _ _).symm.trans |
| 43 | ((D.naturality (C.f i) a).trans ((congrArg D.map he).trans |
| 44 | ((D.naturality (C.f j) b).symm.trans (Category.assoc _ _ _)))) |
| 45 | |
| 46 | def glue : X ⟶ Y := X.affineOpenCover.openCover.glueMorphisms D.chartMap D.chartMap_compatible |
| 47 | |
| 48 | theorem glue_chart (i : X.affineOpenCover.I₀) : X.affineOpenCover.f i ≫ D.glue = D.chartMap i := |
| 49 | X.affineOpenCover.openCover.ι_glueMorphisms D.chartMap D.chartMap_compatible i |
| 50 | |
| 51 | theorem glue_unique (f : X ⟶ Y) (hf : ∀ i : X.affineOpenCover.I₀, |
| 52 | X.affineOpenCover.f i ≫ f = D.chartMap i) : f = D.glue := |
| 53 | X.affineOpenCover.openCover.hom_ext f D.glue (fun i => (hf i).trans (D.glue_chart i).symm) |
| 54 | |
| 55 | end AffineTestMapData |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.TestGluing |