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.Deformation.Localization |
| 2 | import Mathlib.AlgebraicGeometry.IdealSheaf.Basic |
| 3 | import Mathlib.AlgebraicGeometry.Sites.SmallAffineZariski |
| 4 | |
| 5 | /-! # Deformation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Global.Deformation.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: the global deformation scheme of an ideal sheaf |
| 13 | |
| 14 | On each affine open U, take Spec(Γ(U)[t,I(U)/t]). The coefficient restriction |
| 15 | maps form a functor, and the proved localization comparison makes its |
| 16 | structure transformation coequifibered. Relative gluing therefore constructs |
| 17 | an actual scheme over X, with the affine deformation charts as its inverse |
| 18 | images. Specialization on cycles is not included in this construction. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 22 | open _root_.AlgebraicGeometry.Scheme.AffineZariskiSite |
| 23 | |
| 24 | universe u |
| 25 | variable {X : Scheme.{u}} (I : X.IdealSheafData) |
| 26 | |
| 27 | /-- The coefficientwise extended Rees diagram on the affine Zariski site. -/ |
| 28 | def deformationDiagram : X.AffineZariskiSiteᵒᵖ ⥤ CommRingCat where |
| 29 | obj U := CommRingCat.of (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U.unop)) |
| 30 | map {U V} f := CommRingCat.ofHom |
| 31 | (Deformation.Maps.BundleCycles.deformationMap (I.ideal U.unop) (I.ideal V.unop) |
| 32 | (X.presheaf.map ((toOpensFunctor X).op.map f)).hom |
| 33 | (I.ideal_le_comap_ideal (toOpens_mono f.unop.le))) |
| 34 | map_id U := by |
| 35 | apply CommRingCat.hom_ext |
| 36 | ext p n |
| 37 | have h : (X.presheaf.map ((toOpensFunctor X).op.map (𝟙 U))).hom = |
| 38 | RingHom.id Γ(X, U.unop.1) := |
| 39 | congrArg CommRingCat.Hom.hom (((toOpensFunctor X).op ⋙ X.presheaf).map_id U) |
| 40 | change (AddMonoidAlgebra.mapRingHom ℤ |
| 41 | (X.presheaf.map ((toOpensFunctor X).op.map (𝟙 U))).hom p.val).coeff n = p.val.coeff n |
| 42 | exact (AddMonoidAlgebra.coeff_mapRingHom |
| 43 | (X.presheaf.map ((toOpensFunctor X).op.map (𝟙 U))).hom p.val n).trans |
| 44 | (DFunLike.congr_fun h _) |
| 45 | map_comp {U V W} f g := by |
| 46 | apply CommRingCat.hom_ext |
| 47 | ext p n |
| 48 | have h : (X.presheaf.map ((toOpensFunctor X).op.map (f ≫ g))).hom = |
| 49 | ((X.presheaf.map ((toOpensFunctor X).op.map g)).hom).comp |
| 50 | (X.presheaf.map ((toOpensFunctor X).op.map f)).hom := |
| 51 | congrArg CommRingCat.Hom.hom (((toOpensFunctor X).op ⋙ X.presheaf).map_comp f g) |
| 52 | change (AddMonoidAlgebra.mapRingHom ℤ |
| 53 | (X.presheaf.map ((toOpensFunctor X).op.map (f ≫ g))).hom p.val).coeff n = |
| 54 | (AddMonoidAlgebra.mapRingHom ℤ (X.presheaf.map ((toOpensFunctor X).op.map g)).hom |
| 55 | (AddMonoidAlgebra.mapRingHom ℤ (X.presheaf.map ((toOpensFunctor X).op.map f)).hom |
| 56 | p.val)).coeff n |
| 57 | simp only [AddMonoidAlgebra.coeff_mapRingHom] |
| 58 | exact DFunLike.congr_fun h _ |
| 59 | |
| 60 | /-- Constants provide the map from the structure presheaf to the deformation. -/ |
| 61 | def deformationDiagramMap : (toOpensFunctor X).op ⋙ X.presheaf ⟶ deformationDiagram I where |
| 62 | app U := CommRingCat.ofHom (algebraMap Γ(X, U.unop.1) (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U.unop))) |
| 63 | naturality {U V} f := by |
| 64 | apply CommRingCat.hom_ext |
| 65 | ext r : 1 |
| 66 | exact (Deformation.Maps.BundleCycles.deformationMap_algebraMap (I.ideal U.unop) (I.ideal V.unop) |
| 67 | (X.presheaf.map ((toOpensFunctor X).op.map f)).hom |
| 68 | (I.ideal_le_comap_ideal (toOpens_mono f.unop.le)) r).symm |
| 69 | |
| 70 | /-- The affine diagram preserves restriction to every principal open. -/ |
| 71 | theorem deformationDiagramMap_coequifibered : (deformationDiagramMap I).Coequifibered := by |
| 72 | apply coequifibered_iff_forall_isLocalizationAway.mpr |
| 73 | intro U r |
| 74 | let V : X.AffineZariskiSite := U.basicOpen r |
| 75 | let f : Γ(X, U.1) →+* Γ(X, V.1) := |
| 76 | (X.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom |
| 77 | let : Algebra Γ(X, U.1) Γ(X, V.1) := f.toAlgebra |
| 78 | have : IsLocalization.Away r Γ(X, V.1) := U.2.isLocalization_basicOpen r |
| 79 | have hI : (I.ideal U).map (algebraMap Γ(X, U.1) Γ(X, V.1)) = I.ideal V := |
| 80 | I.map_ideal_basicOpen U r |
| 81 | have h := Deformation.Localization.BundleCycles.deformationMap_isLocalization (I.ideal U) (Submonoid.powers r) Γ(X, V.1) |
| 82 | (I.ideal V) hI (I.ideal_le_comap_ideal (X.basicOpen_le r)) |
| 83 | let : Algebra (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U)) (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal V)) := |
| 84 | (Deformation.Maps.BundleCycles.deformationMap (I.ideal U) (I.ideal V) f |
| 85 | (I.ideal_le_comap_ideal (X.basicOpen_le r))).toAlgebra |
| 86 | change IsLocalization.Away (algebraMap Γ(X, U.1) (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U)) r) |
| 87 | (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal V)) |
| 88 | simpa only [Deformation.Localization.BundleCycles.deformationDenominators, Submonoid.map_powers] using h |
| 89 | |
| 90 | /-- Relative gluing datum whose affine pieces are the actual deformations. -/ |
| 91 | def deformationGlueData : (directedCover X).RelativeGluingData := |
| 92 | relativeGluingData (deformationDiagramMap_coequifibered I) |
| 93 | |
| 94 | instance deformationGlueData_isLocallyDirected : |
| 95 | ((deformationGlueData I).functor ⋙ Scheme.forget).IsLocallyDirected := |
| 96 | Scheme.Cover.RelativeGluingData.instIsLocallyDirectedI₀CompFunctorForgetOfIsThin .. |
| 97 | |
| 98 | /-- The global deformation to the normal cone of the ideal sheaf I. -/ |
| 99 | def globalDeformation : Scheme := (deformationGlueData I).glued |
| 100 | |
| 101 | /-- The deformation's structural projection to its original scheme. -/ |
| 102 | def globalDeformationProjection : globalDeformation I ⟶ X := |
| 103 | (deformationGlueData I).toBase |
| 104 | |
| 105 | /-- The affine deformation charts cover the glued scheme. -/ |
| 106 | def globalDeformationCover : (globalDeformation I).OpenCover := |
| 107 | (deformationGlueData I).cover |
| 108 | |
| 109 | /-- The chart over an affine open is its actual extended-Rees spectrum. -/ |
| 110 | theorem globalDeformationCover_obj (U : X.AffineZariskiSite) : |
| 111 | (globalDeformationCover I).X U = Spec (CommRingCat.of (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U))) := rfl |
| 112 | |
| 113 | /-- Each affine deformation chart is exactly the inverse image of the |
| 114 | corresponding affine open in X. -/ |
| 115 | theorem globalDeformation_chart_isPullback (U : X.AffineZariskiSite) : |
| 116 | IsPullback ((deformationGlueData I).natTrans.app U) ((globalDeformationCover I).f U) |
| 117 | U.1.ι (globalDeformationProjection I) := |
| 118 | (deformationGlueData I).isPullback_natTrans_ι_toBase U |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Global.Deformation.BundleCycles |