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.HilbertConstruction.FamilyGroup.OpenDescent |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FamilyGroup.IsoOperations |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.SchemeTransport |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.OverIsoNaturality |
| 5 | import Mathlib.AlgebraicGeometry.RelativeGluing |
| 6 | |
| 7 | /-! # Gluing -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.Gluing |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Effective gluing of actual abelian schemes on a locally directed |
| 14 | open cover. The data are the original Cartesian transition maps, their |
| 15 | literal composition laws, and preservation of the group law. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open _root_.CategoryTheory.MonoidalCategory |
| 19 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 20 | universe u |
| 21 | |
| 22 | local instance nativePullbackGroup {S T : Scheme.{u}} (X : Over S) [GrpObj X] (f : T ⟶ S) : |
| 23 | GrpObj ((Over.pullback f).obj X) := Functor.grpObjObj |
| 24 | |
| 25 | structure DirectedAbelianGluingData {S : Scheme.{u}} (C : S.OpenCover.{u}) |
| 26 | [Category C.I₀] [C.LocallyDirected] (g : ℕ) where |
| 27 | family : ∀ i, Abelian.Schemes.AbelianScheme g (C.X i) |
| 28 | transition : ∀ {i j : C.I₀} (_ : i ⟶ j), (family i).scheme.left ⟶ (family j).scheme.left |
| 29 | transition_id : ∀ i, transition (𝟙 i) = 𝟙 (family i).scheme.left |
| 30 | transition_comp : ∀ {i j k : C.I₀} (f : i ⟶ j) (h : j ⟶ k), |
| 31 | transition (f ≫ h) = transition f ≫ transition h |
| 32 | cartesian : ∀ {i j : C.I₀} (f : i ⟶ j), |
| 33 | IsPullback (transition f) (family i).scheme.hom (family j).scheme.hom (C.trans f) |
| 34 | group : ∀ {i j : C.I₀} (f : i ⟶ j), |
| 35 | IsMonHom (ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso (transition f) (C.trans f) (cartesian f)).hom |
| 36 | |
| 37 | namespace DirectedAbelianGluingData |
| 38 | variable {S : Scheme.{u}} {C : S.OpenCover.{u}} |
| 39 | [Category C.I₀] [C.LocallyDirected] [Small.{u} C.I₀] [Quiver.IsThin C.I₀] |
| 40 | {g : ℕ} (D : DirectedAbelianGluingData C g) |
| 41 | |
| 42 | def diagram : C.I₀ ⥤ Scheme.{u} where |
| 43 | obj i := (D.family i).scheme.left |
| 44 | map f := D.transition f |
| 45 | map_id := D.transition_id |
| 46 | map_comp := D.transition_comp |
| 47 | |
| 48 | def schemeData : C.RelativeGluingData where |
| 49 | functor := D.diagram |
| 50 | natTrans := |
| 51 | { app i := (D.family i).scheme.hom |
| 52 | naturality _ _ f := (D.cartesian f).w } |
| 53 | equifibered _ _ f := D.cartesian f |
| 54 | |
| 55 | /-- The total scheme is the genuine colimit of the original local total schemes. -/ |
| 56 | def space : Over S := Over.mk D.schemeData.toBase |
| 57 | |
| 58 | def chartMap (i : C.I₀) : (D.family i).scheme.left ⟶ D.space.left := |
| 59 | colimit.ι D.schemeData.functor i |
| 60 | |
| 61 | instance chartMap_open (i : C.I₀) : IsOpenImmersion (D.chartMap i) := by |
| 62 | exact D.schemeData.cover.map_prop i |
| 63 | |
| 64 | theorem chartMap_over (i : C.I₀) : |
| 65 | D.chartMap i ≫ D.space.hom = (D.family i).scheme.hom ≫ C.f i := |
| 66 | D.schemeData.ι_toBase i |
| 67 | |
| 68 | theorem chartMap_transition {i j : C.I₀} (f : i ⟶ j) : |
| 69 | D.transition f ≫ D.chartMap j = D.chartMap i := |
| 70 | colimit.w D.schemeData.functor f |
| 71 | |
| 72 | theorem chart_cartesian (i : C.I₀) : |
| 73 | IsPullback (D.chartMap i) (D.family i).scheme.hom D.space.hom (C.f i) := |
| 74 | (D.schemeData.isPullback_natTrans_ι_toBase i).flip |
| 75 | |
| 76 | def chartIso (i : C.I₀) : |
| 77 | (D.family i).scheme ≅ (Over.pullback (C.f i)).obj D.space := |
| 78 | ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso (D.chartMap i) (C.f i) (D.chart_cartesian i) |
| 79 | |
| 80 | theorem chartIso_fst (i : C.I₀) : |
| 81 | (D.chartIso i).hom.left ≫ pullback.fst D.space.hom (C.f i) = D.chartMap i := |
| 82 | (D.chart_cartesian i).isoPullback_hom_fst |
| 83 | |
| 84 | def transitionIso {i j : C.I₀} (f : i ⟶ j) : |
| 85 | (D.family i).scheme ≅ (Over.pullback (C.trans f)).obj (D.family j).scheme := |
| 86 | ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso (D.transition f) (C.trans f) (D.cartesian f) |
| 87 | |
| 88 | instance transitionIso_group {i j : C.I₀} (f : i ⟶ j) : IsMonHom (D.transitionIso f).hom := |
| 89 | D.group f |
| 90 | |
| 91 | private theorem chartIso_natural_left {i j : C.I₀} (f : i ⟶ j) : |
| 92 | D.transition f ≫ (D.chartIso j).hom.left = |
| 93 | (D.chartIso i).hom.left ≫ |
| 94 | Single.ParameterBaseChange.singleParameterBaseChangeMap (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space := by |
| 95 | let : Mono (pullback.fst D.space.hom (C.f j)) := inferInstance |
| 96 | have hp : Single.ParameterBaseChange.singleParameterBaseChangeMap (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space ≫ |
| 97 | pullback.fst D.space.hom (C.f j) = pullback.fst D.space.hom (C.f i) := |
| 98 | Single.ParameterBaseChange.singleParameterBaseChangeMap_comp (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space |
| 99 | apply (cancel_mono (pullback.fst D.space.hom (C.f j))).mp |
| 100 | rw [Category.assoc, D.chartIso_fst, D.chartMap_transition, |
| 101 | Category.assoc, hp, D.chartIso_fst] |
| 102 | |
| 103 | theorem chartIso_natural {i j : C.I₀} (f : i ⟶ j) : |
| 104 | (D.transitionIso f).hom ≫ (Over.pullback (C.trans f)).map (D.chartIso j).hom = |
| 105 | (D.chartIso i).hom ≫ |
| 106 | (Single.ParameterBaseChange.singleParameterBaseChangeIso (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space).hom := |
| 107 | Cartesian.OverIsoNaturality.cartesianAmbientOverIso_natural (C.trans f) (D.transition f) |
| 108 | (Single.ParameterBaseChange.singleParameterBaseChangeMap (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space) |
| 109 | (D.cartesian f) |
| 110 | (Single.ParameterBaseChange.singleParameterBaseChangeMap_isPullback (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space) |
| 111 | (D.chartIso i).hom (D.chartIso j).hom ((chartIso_natural_left D) f) |
| 112 | |
| 113 | /-- These local groups lie on the literal native pullbacks of the glued scheme. -/ |
| 114 | def localAbelian (i : C.I₀) : Abelian.Schemes.AbelianScheme g (C.X i) := |
| 115 | (D.family i).transport (D.chartIso i) |
| 116 | |
| 117 | private theorem local_comparison_group {i j : C.I₀} (f : i ⟶ j) : |
| 118 | letI : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C i).hom).obj D.space) := |
| 119 | (D.localAbelian i).group |
| 120 | letI : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C j).hom).obj D.space) := |
| 121 | (D.localAbelian j).group |
| 122 | letI : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f).left).obj |
| 123 | ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C j).hom).obj D.space)) := |
| 124 | Functor.grpObjObj |
| 125 | IsMonHom (Single.ParameterBaseChange.singleParameterBaseChangeIso |
| 126 | (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space).hom := by |
| 127 | let : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C i).hom).obj D.space) := |
| 128 | (D.localAbelian i).group |
| 129 | let : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C j).hom).obj D.space) := |
| 130 | (D.localAbelian j).group |
| 131 | let : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f).left).obj |
| 132 | ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C j).hom).obj D.space)) := |
| 133 | Functor.grpObjObj |
| 134 | let ei : (D.family i).scheme ≅ |
| 135 | (Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C i).hom).obj D.space := D.chartIso i |
| 136 | let ej : (D.family j).scheme ≅ |
| 137 | (Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C j).hom).obj D.space := D.chartIso j |
| 138 | let et : (D.family i).scheme ≅ |
| 139 | (Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f).left).obj (D.family j).scheme := |
| 140 | D.transitionIso f |
| 141 | let : IsMonHom ei.hom := isMonHom_ofIso ei |
| 142 | let : IsMonHom ej.hom := isMonHom_ofIso ej |
| 143 | let : IsMonHom et.hom := D.group f |
| 144 | have hsq : et.hom ≫ (Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f).left).map ej.hom = |
| 145 | ei.hom ≫ (Single.ParameterBaseChange.singleParameterBaseChangeIso (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space).hom := |
| 146 | D.chartIso_natural f |
| 147 | have he : (Single.ParameterBaseChange.singleParameterBaseChangeIso |
| 148 | (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space).hom = |
| 149 | ei.inv ≫ et.hom ≫ (Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f).left).map ej.hom := by |
| 150 | rw [hsq, Iso.inv_hom_id_assoc] |
| 151 | rw [he] |
| 152 | infer_instance |
| 153 | |
| 154 | def localOperations (i : C.I₀) : FamilyGroup.Operations.FamilyGroupOperations ((Over.pullback (C.f i)).obj D.space) := |
| 155 | FamilyGroup.Operations.FamilyGroupOperations.ofGrpObj (D.localAbelian i).scheme |
| 156 | |
| 157 | theorem localOperations_laws (i : C.I₀) : (D.localOperations i).Laws := |
| 158 | FamilyGroup.Operations.FamilyGroupOperations.ofGrpObj_laws (D.localAbelian i).scheme |
| 159 | |
| 160 | theorem localOperations_natural {i j : C.I₀} (f : i ⟶ j) : |
| 161 | (D.localOperations j).geometricBaseChange (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) = |
| 162 | D.localOperations i := by |
| 163 | let : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C i).hom).obj D.space) := |
| 164 | (D.localAbelian i).group |
| 165 | let : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C j).hom).obj D.space) := |
| 166 | (D.localAbelian j).group |
| 167 | let : GrpObj ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f).left).obj |
| 168 | ((Over.pullback (FamilyHomGluing.DirectedFamilyHomGluing.test C j).hom).obj D.space)) := |
| 169 | Functor.grpObjObj |
| 170 | let : IsMonHom (Single.ParameterBaseChange.singleParameterBaseChangeIso |
| 171 | (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space).hom := (local_comparison_group D) f |
| 172 | let : IsMonHom (Single.ParameterBaseChange.singleParameterBaseChangeIso |
| 173 | (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space).symm.hom := |
| 174 | inferInstanceAs (IsMonHom (Single.ParameterBaseChange.singleParameterBaseChangeIso |
| 175 | (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space).inv) |
| 176 | exact FamilyGroup.IsoOperations.FamilyGroupOperations.ofGrpObj_ofIso |
| 177 | (Single.ParameterBaseChange.singleParameterBaseChangeIso (FamilyHomGluing.DirectedFamilyHomGluing.testMap C f) D.space).symm |
| 178 | |
| 179 | @[instance_reducible] def globalGroup : GrpObj D.space := |
| 180 | FamilyGroup.Operations.FamilyGroupOperations.descendGroup C D.localOperations D.localOperations_natural |
| 181 | D.localOperations_laws |
| 182 | |
| 183 | theorem globalGroup_commutative : |
| 184 | letI := D.globalGroup |
| 185 | IsCommMonObj D.space := |
| 186 | FamilyGroup.Operations.FamilyGroupOperations.descendGroup_commutative C D.localOperations D.localOperations_natural |
| 187 | D.localOperations_laws |
| 188 | |
| 189 | theorem globalGroup_pullback (i : C.I₀) : |
| 190 | letI := D.globalGroup |
| 191 | Functor.grpObjObj (F := Over.pullback (C.f i)) (G := D.space) = (D.localAbelian i).group := by |
| 192 | let := D.globalGroup |
| 193 | ext |
| 194 | exact congrArg Over.Hom.left (congrArg FamilyGroup.Operations.FamilyGroupOperations.mul |
| 195 | (FamilyGroup.Operations.FamilyGroupOperations.descend_baseChange C D.localOperations D.localOperations_natural i)) |
| 196 | |
| 197 | theorem localProperty (Q : MorphismProperty Scheme.{u}) [IsZariskiLocalAtTarget Q] |
| 198 | (hQ : ∀ i, Q (D.family i).scheme.hom) : Q D.space.hom := by |
| 199 | apply IsZariskiLocalAtTarget.of_openCover C |
| 200 | intro i |
| 201 | let e : Arrow.mk (D.family i).scheme.hom ≅ |
| 202 | Arrow.mk (pullback.snd D.space.hom (C.f i)) := |
| 203 | Arrow.isoMk ((Over.forget (C.X i)).mapIso (D.chartIso i)) (Iso.refl _) (by |
| 204 | exact (D.chartIso i).hom.w.trans (Category.comp_id _).symm) |
| 205 | exact (Q.arrow_mk_iso_iff e).mp (hQ i) |
| 206 | |
| 207 | /-- The glued group is proper, smooth of relative dimension `g`, and |
| 208 | geometrically connected, because these properties hold on each chart. -/ |
| 209 | def abelian : Abelian.Schemes.AbelianScheme g S where |
| 210 | scheme := D.space |
| 211 | group := D.globalGroup |
| 212 | commutative := D.globalGroup_commutative |
| 213 | proper := D.localProperty (@IsProper) (fun i => (D.family i).proper) |
| 214 | smoothDimension := by |
| 215 | let : IsZariskiLocalAtTarget |
| 216 | (@SmoothOfRelativeDimension g : MorphismProperty Scheme.{u}) := |
| 217 | HasRingHomProperty.instIsZariskiLocalAtTarget |
| 218 | (P := @SmoothOfRelativeDimension g) |
| 219 | (Q := RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension g)) |
| 220 | exact D.localProperty (@SmoothOfRelativeDimension g) (fun i => (D.family i).smoothDimension) |
| 221 | connected := by |
| 222 | let : IsZariskiLocalAtTarget |
| 223 | (@GeometricallyConnected : MorphismProperty Scheme.{u}) := by |
| 224 | rw [GeometricallyConnected.eq_geometrically] |
| 225 | infer_instance |
| 226 | exact D.localProperty (@GeometricallyConnected) (fun i => (D.family i).connected) |
| 227 | |
| 228 | instance chartIso_preservesGroup (i : C.I₀) : |
| 229 | IsMonHom (show (D.family i).scheme ⟶ (D.abelian.pullback (C.f i)).scheme |
| 230 | from (D.chartIso i).hom) := by |
| 231 | let : GrpObj D.space := D.globalGroup |
| 232 | change @IsMonHom (Over (C.X i)) _ _ (D.family i).scheme |
| 233 | ((Over.pullback (C.f i)).obj D.space) (D.family i).group.toMonObj |
| 234 | (Functor.grpObjObj (F := Over.pullback (C.f i)) (G := D.space)).toMonObj (D.chartIso i).hom |
| 235 | rw [D.globalGroup_pullback i] |
| 236 | exact isMonHom_ofIso (D.chartIso i) |
| 237 | |
| 238 | end DirectedAbelianGluingData |
| 239 | |
| 240 | end |
| 241 | |
| 242 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.Gluing |