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.QuotientFiber |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Deformation.FiniteType |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 4 | import Mathlib.Topology.Sets.OpenCover |
| 5 | |
| 6 | /-! # Deformation Properties -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Global.DeformationProperties.BundleCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # LineBundleCycles: geometric properties of the global deformation |
| 14 | |
| 15 | The affine chart pullback squares prove that the global structural map is |
| 16 | affine. Noetherianity then follows from the actual Noetherian extended-Rees |
| 17 | algebras and compactness over a Noetherian base. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 21 | open _root_.AlgebraicGeometry.Scheme.AffineZariskiSite |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | /-- Evaluation at t = 1 on the actual extended-Rees subalgebra. -/ |
| 26 | def deformationAtOne {R : Type u} [CommRing R] (J : Ideal R) : |
| 27 | Deformation.Iff.BundleCycles.deformationAlgebra J →+* R := |
| 28 | (LaurentPolynomial.eval₂ (RingHom.id R) (1 : Rˣ)).comp (Deformation.Iff.BundleCycles.deformationAlgebra J).val.toRingHom |
| 29 | |
| 30 | theorem deformationAtOne_algebraMap {R : Type u} [CommRing R] (J : Ideal R) : |
| 31 | (deformationAtOne J).comp (algebraMap R (Deformation.Iff.BundleCycles.deformationAlgebra J)) = RingHom.id R := by |
| 32 | apply RingHom.ext |
| 33 | intro r |
| 34 | exact LaurentPolynomial.eval₂_C _ _ r |
| 35 | |
| 36 | /-- A target-local morphism property can be checked on specified pullback charts. -/ |
| 37 | theorem morphismProperty_of_cover_pullbacks (P : MorphismProperty Scheme.{u}) |
| 38 | [IsZariskiLocalAtTarget P] {A B : Scheme.{u}} (f : A ⟶ B) |
| 39 | (C : B.OpenCover) (Z : C.I₀ → Scheme.{u}) (a : ∀ i, Z i ⟶ A) |
| 40 | (b : ∀ i, Z i ⟶ C.X i) |
| 41 | (h : ∀ i, IsPullback (b i) (a i) (C.f i) f) |
| 42 | (hb : ∀ i, P (b i)) : P f := by |
| 43 | apply IsZariskiLocalAtTarget.of_openCover (P := P) C |
| 44 | intro i |
| 45 | let hi := (h i).flip |
| 46 | have hc : P (hi.isoPullback.inv ≫ b i) := |
| 47 | (P.cancel_left_of_respectsIso _ _).mpr (hb i) |
| 48 | exact (congrArg (fun k => P k) hi.isoPullback_inv_snd).mp hc |
| 49 | |
| 50 | variable {X : Scheme.{u}} (I : X.IdealSheafData) |
| 51 | |
| 52 | instance affineBaseRing_noetherian [IsLocallyNoetherian X] (U : X.AffineZariskiSite) : |
| 53 | IsNoetherianRing Γ(X, U.1) := IsLocallyNoetherian.component_noetherian U |
| 54 | |
| 55 | instance globalDeformationCover_isAffine (U : X.AffineZariskiSite) : |
| 56 | IsAffine ((Deformation.BundleCycles.globalDeformationCover I).X U) := |
| 57 | inferInstanceAs (IsAffine (Spec (CommRingCat.of (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U))))) |
| 58 | |
| 59 | instance globalDeformationCover_isOpenImmersion (U : X.AffineZariskiSite) : |
| 60 | IsOpenImmersion ((Deformation.BundleCycles.globalDeformationCover I).f U) := |
| 61 | (Deformation.BundleCycles.globalDeformationCover I).map_prop U |
| 62 | |
| 63 | /-- The inverse image of a base affine open is exactly its deformation chart. -/ |
| 64 | theorem globalDeformationProjection_preimage (U : X.AffineZariskiSite) : |
| 65 | Deformation.BundleCycles.globalDeformationProjection I ⁻¹ᵁ U.1 = ((Deformation.BundleCycles.globalDeformationCover I).f U).opensRange := by |
| 66 | have h := (Deformation.BundleCycles.deformationGlueData I).toBase_preimage_eq_opensRange_ι U |
| 67 | change Deformation.BundleCycles.globalDeformationProjection I ⁻¹ᵁ U.1.ι.opensRange = |
| 68 | ((Deformation.BundleCycles.globalDeformationCover I).f U).opensRange at h |
| 69 | rw [Scheme.Opens.opensRange_ι] at h |
| 70 | exact h |
| 71 | |
| 72 | /-- The actual global deformation is affine over its original base. -/ |
| 73 | instance globalDeformationProjection_isAffineHom : |
| 74 | IsAffineHom (Deformation.BundleCycles.globalDeformationProjection I) := by |
| 75 | constructor |
| 76 | intro U hU |
| 77 | let V : X.AffineZariskiSite := ⟨U, hU⟩ |
| 78 | have he : Deformation.BundleCycles.globalDeformationProjection I ⁻¹ᵁ U = |
| 79 | ((Deformation.BundleCycles.globalDeformationCover I).f V).opensRange := |
| 80 | globalDeformationProjection_preimage I V |
| 81 | exact he.symm ▸ isAffineOpen_opensRange ((Deformation.BundleCycles.globalDeformationCover I).f V) |
| 82 | |
| 83 | /-- Noetherianity of the coefficient rings gives local Noetherianity of the gluing. -/ |
| 84 | instance globalDeformation_isLocallyNoetherian [IsLocallyNoetherian X] : |
| 85 | IsLocallyNoetherian (Deformation.BundleCycles.globalDeformation I) := by |
| 86 | have : ∀ U, IsAffine ((Deformation.BundleCycles.globalDeformationCover I).X U) := |
| 87 | fun U => globalDeformationCover_isAffine I U |
| 88 | apply (isLocallyNoetherian_iff_of_affine_openCover (Deformation.BundleCycles.globalDeformationCover I)).mpr |
| 89 | intro U |
| 90 | have : IsNoetherianRing Γ(X, U.1) := IsLocallyNoetherian.component_noetherian U |
| 91 | exact isNoetherianRing_of_ringEquiv (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U)) |
| 92 | (Scheme.ΓSpecIso (CommRingCat.of (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U)))).symm.commRingCatIsoToRingEquiv |
| 93 | |
| 94 | /-- Over a Noetherian scheme the global deformation is itself Noetherian. -/ |
| 95 | instance globalDeformation_isNoetherian [AlgebraicGeometry.IsNoetherian X] : |
| 96 | AlgebraicGeometry.IsNoetherian (Deformation.BundleCycles.globalDeformation I) := by |
| 97 | have : CompactSpace (Deformation.BundleCycles.globalDeformation I) := |
| 98 | QuasiCompact.compactSpace_of_compactSpace (Deformation.BundleCycles.globalDeformationProjection I) |
| 99 | exact ⟨⟩ |
| 100 | |
| 101 | /-- Evaluation at one supplies an actual section of each affine deformation chart. -/ |
| 102 | def deformationChartSection (U : X.AffineZariskiSite) : |
| 103 | U.1.toScheme ⟶ (Deformation.BundleCycles.globalDeformationCover I).X U := |
| 104 | U.2.isoSpec.hom ≫ Spec.map (CommRingCat.ofHom (deformationAtOne (I.ideal U))) |
| 105 | |
| 106 | theorem deformationChartSection_toBase (U : X.AffineZariskiSite) : |
| 107 | deformationChartSection I U ≫ (Deformation.BundleCycles.deformationGlueData I).natTrans.app U = 𝟙 U.1.toScheme := by |
| 108 | let a : Γ(X, U.1) ⟶ CommRingCat.of (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U)) := |
| 109 | CommRingCat.ofHom (algebraMap Γ(X, U.1) (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U))) |
| 110 | let b : CommRingCat.of (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U)) ⟶ Γ(X, U.1) := |
| 111 | CommRingCat.ofHom (deformationAtOne (I.ideal U)) |
| 112 | have hab : a ≫ b = 𝟙 Γ(X, U.1) := |
| 113 | CommRingCat.hom_ext (deformationAtOne_algebraMap (I.ideal U)) |
| 114 | have hs : Spec.map b ≫ Spec.map a = 𝟙 (Spec Γ(X, U.1)) := |
| 115 | (Spec.map_comp a b).symm.trans ((congrArg Spec.map hab).trans (Spec.map_id _)) |
| 116 | change (U.2.isoSpec.hom ≫ Spec.map b) ≫ (Spec.map a ≫ U.2.isoSpec.inv) = _ |
| 117 | rw [Category.assoc, ← Category.assoc (Spec.map b), hs, Category.id_comp, U.2.isoSpec.hom_inv_id] |
| 118 | |
| 119 | /-- Every base point has a point above it in the deformation, namely at t = 1. -/ |
| 120 | theorem globalDeformationProjection_surjective : Function.Surjective (Deformation.BundleCycles.globalDeformationProjection I) := by |
| 121 | intro x |
| 122 | let U : X.AffineZariskiSite := (directedCover X).idx x |
| 123 | obtain ⟨y, hy⟩ := (directedCover X).covers x |
| 124 | let z := deformationChartSection I U y |
| 125 | refine ⟨(Deformation.BundleCycles.globalDeformationCover I).f U z, ?_⟩ |
| 126 | have hbase := congrArg (fun k => k z) ((Deformation.BundleCycles.deformationGlueData I).ι_toBase U) |
| 127 | have hsection := congrArg (fun k => k y) (deformationChartSection_toBase I U) |
| 128 | change (Deformation.BundleCycles.deformationGlueData I).natTrans.app U z = y at hsection |
| 129 | change Deformation.BundleCycles.globalDeformationProjection I ((Deformation.BundleCycles.globalDeformationCover I).f U z) = |
| 130 | U.1.ι ((Deformation.BundleCycles.deformationGlueData I).natTrans.app U z) at hbase |
| 131 | exact hbase.trans ((congrArg U.1.ι hsection).trans hy) |
| 132 | |
| 133 | /-- Empty affine base opens may be discarded without losing any deformation point. -/ |
| 134 | def nonemptyDeformationCover : (Deformation.BundleCycles.globalDeformation I).OpenCover := |
| 135 | Scheme.Cover.mkOfCovers {U : X.AffineZariskiSite // Nonempty U.1} |
| 136 | (fun U => (Deformation.BundleCycles.globalDeformationCover I).X U.1) |
| 137 | (fun U => (Deformation.BundleCycles.globalDeformationCover I).f U.1) |
| 138 | (by |
| 139 | intro x |
| 140 | obtain ⟨U, y, rfl⟩ := (Deformation.BundleCycles.globalDeformationCover I).exists_eq x |
| 141 | exact ⟨⟨U, ⟨(Deformation.BundleCycles.deformationGlueData I).natTrans.app U y⟩⟩, y, rfl⟩) |
| 142 | (fun U => globalDeformationCover_isOpenImmersion I U.1) |
| 143 | |
| 144 | instance nonemptyDeformationCover_isIntegral [IsIntegral X] |
| 145 | (U : (nonemptyDeformationCover I).I₀) : |
| 146 | IsIntegral ((nonemptyDeformationCover I).X U) := by |
| 147 | have : Nonempty U.1.1 := U.2 |
| 148 | have : IsDomain Γ(X, U.1.1) := inferInstance |
| 149 | exact inferInstanceAs (IsIntegral (Spec (CommRingCat.of (Deformation.Iff.BundleCycles.deformationAlgebra (I.ideal U.1))))) |
| 150 | |
| 151 | instance globalDeformation_isReduced [IsIntegral X] : IsReduced (Deformation.BundleCycles.globalDeformation I) := by |
| 152 | have : ∀ U, IsReduced ((nonemptyDeformationCover I).X U) := fun U => by |
| 153 | have := nonemptyDeformationCover_isIntegral I U |
| 154 | infer_instance |
| 155 | exact IsReduced.of_openCover (Deformation.BundleCycles.globalDeformation I) (nonemptyDeformationCover I) |
| 156 | |
| 157 | /-- Any two retained deformation charts intersect above their nonempty base intersection. -/ |
| 158 | theorem nonemptyDeformationCover_pairwise_inter [IsIntegral X] : |
| 159 | Pairwise (fun U V : (nonemptyDeformationCover I).I₀ => |
| 160 | ¬ Disjoint ((nonemptyDeformationCover I).f U).opensRange |
| 161 | ((nonemptyDeformationCover I).f V).opensRange) := by |
| 162 | intro U V _ |
| 163 | obtain ⟨x, hxU, hxV⟩ := nonempty_preirreducible_inter U.1.1.isOpen V.1.1.isOpen |
| 164 | (Set.nonempty_coe_sort.mp U.2) (Set.nonempty_coe_sort.mp V.2) |
| 165 | obtain ⟨y, hy⟩ := globalDeformationProjection_surjective I x |
| 166 | have hU : y ∈ ((nonemptyDeformationCover I).f U).opensRange := by |
| 167 | change y ∈ ((Deformation.BundleCycles.globalDeformationCover I).f U.1).opensRange |
| 168 | rw [← globalDeformationProjection_preimage I U.1] |
| 169 | change Deformation.BundleCycles.globalDeformationProjection I y ∈ U.1.1 |
| 170 | exact hy.symm ▸ hxU |
| 171 | have hV : y ∈ ((nonemptyDeformationCover I).f V).opensRange := by |
| 172 | change y ∈ ((Deformation.BundleCycles.globalDeformationCover I).f V.1).opensRange |
| 173 | rw [← globalDeformationProjection_preimage I V.1] |
| 174 | change Deformation.BundleCycles.globalDeformationProjection I y ∈ V.1.1 |
| 175 | exact hy.symm ▸ hxV |
| 176 | intro hd |
| 177 | exact Set.disjoint_left.mp (TopologicalSpace.Opens.coe_disjoint.mpr hd) hU hV |
| 178 | |
| 179 | /-- Integrality of the base implies integrality of its actual global deformation. -/ |
| 180 | instance globalDeformation_isIntegral [IsIntegral X] : IsIntegral (Deformation.BundleCycles.globalDeformation I) := by |
| 181 | have hpre : ∀ U : (nonemptyDeformationCover I).I₀, |
| 182 | IsPreirreducible (((nonemptyDeformationCover I).f U).opensRange : Set (Deformation.BundleCycles.globalDeformation I)) := by |
| 183 | intro U |
| 184 | have := nonemptyDeformationCover_isIntegral I U |
| 185 | have h := (IrreducibleSpace.isIrreducible_univ ((nonemptyDeformationCover I).X U)).2.image |
| 186 | ((nonemptyDeformationCover I).f U) ((nonemptyDeformationCover I).f U).continuous.continuousOn |
| 187 | simp only [Set.image_univ] at h |
| 188 | exact h |
| 189 | have : PreirreducibleSpace (Deformation.BundleCycles.globalDeformation I) := ⟨IsPreirreducible.of_subset_iUnion |
| 190 | (nonemptyDeformationCover_pairwise_inter I) hpre isOpen_univ |
| 191 | (by |
| 192 | change Set.univ ⊆ ⋃ U, Set.range ((nonemptyDeformationCover I).f U) |
| 193 | rw [(nonemptyDeformationCover I).iUnion_range])⟩ |
| 194 | have : Nonempty (Deformation.BundleCycles.globalDeformation I) := by |
| 195 | obtain ⟨y, _⟩ := globalDeformationProjection_surjective I (Classical.choice (inferInstance : Nonempty X)) |
| 196 | exact ⟨y⟩ |
| 197 | have : IrreducibleSpace (Deformation.BundleCycles.globalDeformation I) := |
| 198 | { toPreirreducibleSpace := inferInstance, toNonempty := inferInstance } |
| 199 | exact isIntegral_of_irreducibleSpace_of_isReduced _ |
| 200 | |
| 201 | end |
| 202 | |
| 203 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Global.DeformationProperties.BundleCycles |