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.Topology.Sheaves.LocallySurjective |
| 2 | import Mathlib.Topology.Sheaves.Limits |
| 3 | import Mathlib.Topology.Sheaves.Functors |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.CohomologyCoverModule |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.CohomologyExact |
| 8 | |
| 9 | /-! # Additive Sheaf Restriction -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.AdditiveSheafRestriction.ZariskiCohomology.LocalKilling |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | universe u |
| 16 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace _root_.AlgebraicGeometry |
| 17 | |
| 18 | abbrev AbSheaf (X : Scheme.{u}) := |
| 19 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 20 | |
| 21 | abbrev ExtH {X : Scheme.{u}} |
| 22 | (F : AbSheaf X) (n : ℕ) : Type u := |
| 23 | Abelian.Ext |
| 24 | ((CategoryTheory.constantSheaf |
| 25 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj |
| 26 | (AddCommGrpCat.of (ULift ℤ))) F n |
| 27 | |
| 28 | noncomputable def openSheafPullback |
| 29 | {X : Scheme.{u}} (U : X.Opens) : |
| 30 | AbSheaf X ⥤ AbSheaf U := |
| 31 | U.ι.isOpenEmbedding.sheafPullback AddCommGrpCat.{u} |
| 32 | |
| 33 | noncomputable def openSheafPushforward |
| 34 | {X : Scheme.{u}} (U : X.Opens) : |
| 35 | AbSheaf U ⥤ AbSheaf X := |
| 36 | TopCat.Sheaf.pushforward AddCommGrpCat.{u} U.ι.base |
| 37 | |
| 38 | noncomputable def openRestrictionPushforward |
| 39 | {X : Scheme.{u}} (U : X.Opens) : |
| 40 | AbSheaf X ⥤ AbSheaf X := |
| 41 | openSheafPullback U ⋙ openSheafPushforward U |
| 42 | |
| 43 | noncomputable def openRestrictionPushforwardUnit |
| 44 | {X : Scheme.{u}} (U : X.Opens) : |
| 45 | 𝟭 (AbSheaf X) ⟶ |
| 46 | openRestrictionPushforward U where |
| 47 | app F := |
| 48 | { hom := |
| 49 | { app V := F.1.map |
| 50 | (homOfLE (U.ι.image_preimage_le V.unop)).op |
| 51 | naturality := by |
| 52 | intro V W i |
| 53 | change F.1.map i ≫ F.1.map _ = |
| 54 | F.1.map _ ≫ F.1.map _ |
| 55 | calc |
| 56 | _ = F.1.map (i ≫ _) := (F.1.map_comp _ _).symm |
| 57 | _ = F.1.map (_ ≫ _) := congrArg F.1.map (Subsingleton.elim _ _) |
| 58 | _ = _ := F.1.map_comp _ _ } } |
| 59 | naturality F G f := by |
| 60 | apply CategoryTheory.Sheaf.hom_ext |
| 61 | ext V x |
| 62 | change (f.hom.app V ≫ G.1.map _).hom x = |
| 63 | (F.1.map _ ≫ f.hom.app _).hom x |
| 64 | exact congrArg (fun k ↦ k.hom x) |
| 65 | (f.hom.naturality |
| 66 | (homOfLE (U.ι.image_preimage_le V.unop)).op).symm |
| 67 | |
| 68 | noncomputable def openRestrictionPushforwardSection |
| 69 | {X : Scheme.{u}} (U : X.Opens) (F : AbSheaf X) |
| 70 | (t : F.1.obj (op U)) : |
| 71 | ((openRestrictionPushforward U).obj F).1.obj |
| 72 | (op (⊤ : Opens X)) := by |
| 73 | let W := U.ι.isOpenEmbedding.functor.obj |
| 74 | ((Opens.map U.ι.base).obj (⊤ : Opens X)) |
| 75 | change F.1.obj (op W) |
| 76 | have hW : W = U := by |
| 77 | ext x |
| 78 | simp [W] |
| 79 | exact F.1.map (eqToHom hW).op t |
| 80 | |
| 81 | theorem openRestrictionPushforwardSection_map |
| 82 | {X : Scheme.{u}} (U : X.Opens) {F G : AbSheaf X} |
| 83 | (f : F ⟶ G) (t : F.1.obj (op U)) : |
| 84 | (((openRestrictionPushforward U).map f).hom.app (op (⊤ : Opens X))) |
| 85 | (openRestrictionPushforwardSection U F t) = |
| 86 | openRestrictionPushforwardSection U G (f.hom.app (op U) t) := by |
| 87 | let W := U.ι.isOpenEmbedding.functor.obj |
| 88 | ((Opens.map U.ι.base).obj (⊤ : Opens X)) |
| 89 | have hW : W = U := by |
| 90 | ext x |
| 91 | simp [W] |
| 92 | change f.hom.app (op W) (F.1.map (eqToHom hW).op t) = |
| 93 | G.1.map (eqToHom hW).op (f.hom.app (op U) t) |
| 94 | exact congrArg (fun k ↦ k.hom t) |
| 95 | (f.hom.naturality (eqToHom hW).op) |
| 96 | |
| 97 | theorem openRestrictionPushforwardUnit_section |
| 98 | {X : Scheme.{u}} (U : X.Opens) (F : AbSheaf X) |
| 99 | (s : F.1.obj (op (⊤ : Opens X))) : |
| 100 | ((openRestrictionPushforwardUnit U).app F).hom.app |
| 101 | (op (⊤ : Opens X)) s = |
| 102 | openRestrictionPushforwardSection U F |
| 103 | (F.1.map (homOfLE le_top).op s) := by |
| 104 | have hW : U.ι ''ᵁ (U.ι ⁻¹ᵁ (⊤ : Opens X)) = U := by |
| 105 | ext x |
| 106 | simp |
| 107 | change F.1.map (homOfLE (U.ι.image_preimage_le (⊤ : Opens X))).op s = |
| 108 | F.1.map (eqToHom hW).op (F.1.map (homOfLE le_top).op s) |
| 109 | have hk : (homOfLE (U.ι.image_preimage_le (⊤ : Opens X))).op = |
| 110 | (homOfLE le_top).op ≫ (eqToHom hW).op := |
| 111 | Subsingleton.elim _ _ |
| 112 | rw [hk, F.1.map_comp, ConcreteCategory.comp_apply] |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.AdditiveSheafRestriction.ZariskiCohomology.LocalKilling |