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