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.Divisors.LineBundles.Global.Deformation |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.SpecialFiberLocalization |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 4 | |
| 5 | /-! # Special Fiber -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Global.SpecialFiber.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: gluing the affine special fibers |
| 13 | |
| 14 | The quotients R[t,I/t]/(t) form an actual affine-site diagram. Their base |
| 15 | localization property is proved, so relative gluing assembles a scheme over |
| 16 | X. The quotient maps also glue to a morphism into the global deformation. |
| 17 | Each affine chart is the already identified normal-cone algebra. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 21 | open _root_.AlgebraicGeometry.Scheme.AffineZariskiSite |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | /-- Closed immersions descend from a target open cover and explicit pullback charts. -/ |
| 26 | theorem isClosedImmersion_of_cover_pullbacks {A B : Scheme.{u}} (f : A ⟶ B) |
| 27 | (C : B.OpenCover) (Z : C.I₀ → Scheme.{u}) (a : ∀ i, Z i ⟶ A) |
| 28 | (b : ∀ i, Z i ⟶ C.X i) |
| 29 | (h : ∀ i, IsPullback (b i) (a i) (C.f i) f) |
| 30 | (hb : ∀ i, IsClosedImmersion (b i)) : IsClosedImmersion f := by |
| 31 | apply IsZariskiLocalAtTarget.of_openCover (P := @IsClosedImmersion) C |
| 32 | intro i |
| 33 | let hi := (h i).flip |
| 34 | let := hb i |
| 35 | have hc : IsClosedImmersion (hi.isoPullback.inv ≫ b i) := |
| 36 | IsClosedImmersion.comp hi.isoPullback.inv (b i) |
| 37 | exact (congrArg (fun k => IsClosedImmersion k) hi.isoPullback_inv_snd).mp hc |
| 38 | |
| 39 | variable {X : Scheme.{u}} (I : X.IdealSheafData) |
| 40 | |
| 41 | /-- The actual special-fiber quotient rings and coefficient restriction maps. -/ |
| 42 | def specialFiberDiagram : X.AffineZariskiSiteᵒᵖ ⥤ CommRingCat where |
| 43 | obj U := CommRingCat.of (SpecialFiber.BundleCycles.DeformationSpecialRing (I.ideal U.unop)) |
| 44 | map {U V} f := CommRingCat.ofHom |
| 45 | (Deformation.Maps.BundleCycles.deformationSpecialMap (I.ideal U.unop) (I.ideal V.unop) |
| 46 | (X.presheaf.map ((toOpensFunctor X).op.map f)).hom |
| 47 | (I.ideal_le_comap_ideal (toOpens_mono f.unop.le))) |
| 48 | map_id U := by |
| 49 | apply CommRingCat.hom_ext |
| 50 | apply Ideal.Quotient.ringHom_ext |
| 51 | ext p : 1 |
| 52 | change Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U.unop)) |
| 53 | ((Deformation.BundleCycles.deformationDiagram I).map (𝟙 U) p) = |
| 54 | Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U.unop)) p |
| 55 | exact congrArg (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U.unop))) |
| 56 | (ConcreteCategory.congr_hom ((Deformation.BundleCycles.deformationDiagram I).map_id U) p) |
| 57 | map_comp {U V W} f g := by |
| 58 | apply CommRingCat.hom_ext |
| 59 | apply Ideal.Quotient.ringHom_ext |
| 60 | ext p : 1 |
| 61 | change Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal W.unop)) |
| 62 | ((Deformation.BundleCycles.deformationDiagram I).map (f ≫ g) p) = |
| 63 | Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal W.unop)) |
| 64 | ((Deformation.BundleCycles.deformationDiagram I).map g ((Deformation.BundleCycles.deformationDiagram I).map f p)) |
| 65 | exact congrArg (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal W.unop))) |
| 66 | (ConcreteCategory.congr_hom ((Deformation.BundleCycles.deformationDiagram I).map_comp f g) p) |
| 67 | |
| 68 | /-- The actual quotient maps form a natural transformation of affine diagrams. -/ |
| 69 | def deformationToSpecialDiagram : Deformation.BundleCycles.deformationDiagram I ⟶ specialFiberDiagram I where |
| 70 | app U := CommRingCat.ofHom (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U.unop))) |
| 71 | naturality {U V} f := by |
| 72 | apply CommRingCat.hom_ext |
| 73 | ext p : 1 |
| 74 | rfl |
| 75 | |
| 76 | /-- Constants give the structure map of the special-fiber diagram over X. -/ |
| 77 | def specialFiberDiagramMap : (toOpensFunctor X).op ⋙ X.presheaf ⟶ specialFiberDiagram I := |
| 78 | Deformation.BundleCycles.deformationDiagramMap I ≫ deformationToSpecialDiagram I |
| 79 | |
| 80 | /-- The special-fiber diagram is compatible with affine basic-open restriction. -/ |
| 81 | theorem specialFiberDiagramMap_coequifibered : (specialFiberDiagramMap I).Coequifibered := by |
| 82 | apply coequifibered_iff_forall_isLocalizationAway.mpr |
| 83 | intro U r |
| 84 | let V : X.AffineZariskiSite := U.basicOpen r |
| 85 | let f : Γ(X, U.1) →+* Γ(X, V.1) := |
| 86 | (X.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom |
| 87 | let : Algebra Γ(X, U.1) Γ(X, V.1) := f.toAlgebra |
| 88 | have : IsLocalization.Away r Γ(X, V.1) := U.2.isLocalization_basicOpen r |
| 89 | have hI : (I.ideal U).map (algebraMap Γ(X, U.1) Γ(X, V.1)) = I.ideal V := |
| 90 | I.map_ideal_basicOpen U r |
| 91 | exact SpecialFiberLocalization.BundleCycles.deformationSpecialMap_isLocalization_away (I := I.ideal U) (S := Γ(X, V.1)) r |
| 92 | (I.ideal V) hI (I.ideal_le_comap_ideal (X.basicOpen_le r)) |
| 93 | |
| 94 | /-- Relative gluing data for the actual t = 0 fibers. -/ |
| 95 | def specialFiberGlueData : (directedCover X).RelativeGluingData := |
| 96 | relativeGluingData (specialFiberDiagramMap_coequifibered I) |
| 97 | |
| 98 | instance specialFiberGlueData_isLocallyDirected : |
| 99 | ((specialFiberGlueData I).functor ⋙ Scheme.forget).IsLocallyDirected := |
| 100 | Scheme.Cover.RelativeGluingData.instIsLocallyDirectedI₀CompFunctorForgetOfIsThin .. |
| 101 | |
| 102 | /-- The scheme obtained by gluing the actual affine special fibers. -/ |
| 103 | def globalSpecialFiber : Scheme := (specialFiberGlueData I).glued |
| 104 | |
| 105 | def globalSpecialFiberProjection : globalSpecialFiber I ⟶ X := |
| 106 | (specialFiberGlueData I).toBase |
| 107 | |
| 108 | def globalSpecialFiberCover : (globalSpecialFiber I).OpenCover := |
| 109 | (specialFiberGlueData I).cover |
| 110 | |
| 111 | /-- Each glued fiber chart has the canonical affine normal-cone presentation. -/ |
| 112 | def globalSpecialFiberNormalConeChart (U : X.AffineZariskiSite) : |
| 113 | Normal.Cone.BundleCycles.affineNormalCone (I.ideal U) ≅ (globalSpecialFiberCover I).X U := |
| 114 | Scheme.Spec.mapIso (SpecialFiber.BundleCycles.normalConeSpecialFiberEquiv (I.ideal U)).toCommRingCatIso.symm.op |
| 115 | |
| 116 | /-- Each fiber chart is the inverse image of its affine open in the original base. -/ |
| 117 | theorem globalSpecialFiber_chart_isPullback (U : X.AffineZariskiSite) : |
| 118 | IsPullback ((specialFiberGlueData I).natTrans.app U) ((globalSpecialFiberCover I).f U) |
| 119 | U.1.ι (globalSpecialFiberProjection I) := |
| 120 | (specialFiberGlueData I).isPullback_natTrans_ι_toBase U |
| 121 | |
| 122 | /-- Quotient maps followed by the deformation chart inclusions are compatible. -/ |
| 123 | def globalSpecialFiberMapCocone : Cocone (specialFiberGlueData I).functor where |
| 124 | pt := Deformation.BundleCycles.globalDeformation I |
| 125 | ι := Functor.whiskerRight (deformationToSpecialDiagram I).rightOp Scheme.Spec ≫ |
| 126 | (colimit.cocone (Deformation.BundleCycles.deformationGlueData I).functor).ι |
| 127 | |
| 128 | /-- The global morphism induced by all actual affine special-fiber inclusions. -/ |
| 129 | def globalSpecialFiberMap : globalSpecialFiber I ⟶ Deformation.BundleCycles.globalDeformation I := |
| 130 | colimit.desc _ (globalSpecialFiberMapCocone I) |
| 131 | |
| 132 | /-- Its restriction to a fiber chart is the actual quotient spectrum map. -/ |
| 133 | theorem globalSpecialFiberMap_on_chart (U : X.AffineZariskiSite) : |
| 134 | (globalSpecialFiberCover I).f U ≫ globalSpecialFiberMap I = |
| 135 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U)))) ≫ |
| 136 | (Deformation.BundleCycles.globalDeformationCover I).f U := |
| 137 | colimit.ι_desc (globalSpecialFiberMapCocone I) U |
| 138 | |
| 139 | /-- The affine quotient map commutes with the structure morphisms to the base open. -/ |
| 140 | theorem specialFiber_chart_toBase (U : X.AffineZariskiSite) : |
| 141 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U)))) ≫ |
| 142 | (Deformation.BundleCycles.deformationGlueData I).natTrans.app U = |
| 143 | (specialFiberGlueData I).natTrans.app U := by |
| 144 | change Spec.map ((deformationToSpecialDiagram I).app (.op U)) ≫ |
| 145 | (Spec.map ((Deformation.BundleCycles.deformationDiagramMap I).app (.op U)) ≫ |
| 146 | (restrictIsoSpec X).inv.app U) = |
| 147 | Spec.map ((specialFiberDiagramMap I).app (.op U)) ≫ |
| 148 | (restrictIsoSpec X).inv.app U |
| 149 | rw [← Category.assoc, ← Spec.map_comp] |
| 150 | rfl |
| 151 | |
| 152 | /-- The global special-fiber inclusion is a morphism over the original scheme. -/ |
| 153 | theorem globalSpecialFiberMap_toBase : |
| 154 | globalSpecialFiberMap I ≫ Deformation.BundleCycles.globalDeformationProjection I = |
| 155 | globalSpecialFiberProjection I := by |
| 156 | apply (globalSpecialFiberCover I).hom_ext |
| 157 | intro U |
| 158 | let q : (globalSpecialFiberCover I).X U ⟶ (Deformation.BundleCycles.globalDeformationCover I).X U := |
| 159 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U)))) |
| 160 | have hd : (Deformation.BundleCycles.globalDeformationCover I).f U ≫ Deformation.BundleCycles.globalDeformationProjection I = |
| 161 | (Deformation.BundleCycles.deformationGlueData I).natTrans.app U ≫ U.1.ι := |
| 162 | (Deformation.BundleCycles.deformationGlueData I).ι_toBase U |
| 163 | have hs : (globalSpecialFiberCover I).f U ≫ globalSpecialFiberProjection I = |
| 164 | (specialFiberGlueData I).natTrans.app U ≫ U.1.ι := |
| 165 | (specialFiberGlueData I).ι_toBase U |
| 166 | have hq : q ≫ (Deformation.BundleCycles.deformationGlueData I).natTrans.app U = |
| 167 | (specialFiberGlueData I).natTrans.app U := specialFiber_chart_toBase I U |
| 168 | exact (Category.assoc _ _ _).symm.trans |
| 169 | ((congrArg (fun k => k ≫ Deformation.BundleCycles.globalDeformationProjection I) |
| 170 | (globalSpecialFiberMap_on_chart I U)).trans |
| 171 | ((Category.assoc q _ _).trans |
| 172 | ((congrArg (fun k => q ≫ k) hd).trans |
| 173 | ((Category.assoc q _ _).symm.trans |
| 174 | ((congrArg (fun k => k ≫ U.1.ι) hq).trans hs.symm))))) |
| 175 | |
| 176 | /-- Restricting the global inclusion to any deformation chart gives its quotient map. -/ |
| 177 | theorem globalSpecialFiberMap_chart_isPullback (U : X.AffineZariskiSite) : |
| 178 | IsPullback |
| 179 | (Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U))))) |
| 180 | ((globalSpecialFiberCover I).f U) ((Deformation.BundleCycles.globalDeformationCover I).f U) |
| 181 | (globalSpecialFiberMap I) := by |
| 182 | have h := globalSpecialFiber_chart_isPullback I U |
| 183 | rw [← specialFiber_chart_toBase I U, ← globalSpecialFiberMap_toBase I] at h |
| 184 | exact h.of_right (globalSpecialFiberMap_on_chart I U).symm |
| 185 | (Deformation.BundleCycles.globalDeformation_chart_isPullback I U) |
| 186 | |
| 187 | /-- The glued special fiber is a genuine closed subscheme of the deformation. -/ |
| 188 | instance globalSpecialFiberMap_isClosedImmersion : |
| 189 | IsClosedImmersion (globalSpecialFiberMap I) := by |
| 190 | apply isClosedImmersion_of_cover_pullbacks (globalSpecialFiberMap I) |
| 191 | (Deformation.BundleCycles.globalDeformationCover I) (globalSpecialFiberCover I).X |
| 192 | (globalSpecialFiberCover I).f |
| 193 | (fun U => Spec.map (CommRingCat.ofHom |
| 194 | (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U))))) |
| 195 | (globalSpecialFiberMap_chart_isPullback I) |
| 196 | intro U |
| 197 | have hsurj : Function.Surjective |
| 198 | (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U))) := |
| 199 | Ideal.Quotient.mk_surjective |
| 200 | exact IsClosedImmersion.spec_of_surjective |
| 201 | (R := CommRingCat.of (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U))) |
| 202 | (S := CommRingCat.of (SpecialFiber.BundleCycles.DeformationSpecialRing (I.ideal U))) |
| 203 | (CommRingCat.ofHom (Ideal.Quotient.mk (Deformation.Iff.BundleCycles.deformationSpecialIdeal (I.ideal U)))) hsurj |
| 204 | |
| 205 | end |
| 206 | |
| 207 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Global.SpecialFiber.BundleCycles |