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.Comparison.Betti.Algebraic.Forms |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |
| 3 | import OAI.AlgebraicGeometry.Betti.Scheme |
| 4 | |
| 5 | /-! # Sheaves -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # Algebraic forms on the actual Zariski site |
| 15 | |
| 16 | The rings on opens are the scheme's structure-sheaf sections, with complex |
| 17 | scalars supplied by its structure morphism. The algebraic differential-form |
| 18 | complex is constructed sectionwise and sheafified. Its hypercohomology is |
| 19 | defined as morphisms from the constant complex sheaf in the derived category. |
| 20 | No comparison map or comparison theorem is assumed here. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.TopologicalSpace |
| 24 | |
| 25 | variable (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 26 | |
| 27 | /-- Smoothness, separatedness and finite type, with no properness hypothesis. -/ |
| 28 | def IsSmoothComplexVariety : Prop := |
| 29 | Smooth X.hom ∧ IsSeparated X.hom ∧ |
| 30 | LocallyOfFiniteType X.hom ∧ QuasiCompact X.hom |
| 31 | |
| 32 | local instance sectionAlgebra (U : X.left.Opens) : Algebra ℂ Γ(X.left, U) := |
| 33 | Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra X.hom U |
| 34 | |
| 35 | /-- The genuine restriction map, respecting the scalars from Spec ℂ. -/ |
| 36 | def sectionRestriction {U V : X.left.Opensᵒᵖ} (f : U ⟶ V) : |
| 37 | Γ(X.left, U.unop) →ₐ[ℂ] Γ(X.left, V.unop) where |
| 38 | __ := (X.left.presheaf.map f).hom |
| 39 | commutes' c := by |
| 40 | change (X.left.presheaf.map f) |
| 41 | ((X.hom.appLE ⊤ U.unop le_top) ((Scheme.ΓSpecIso (.of ℂ)).inv c)) = |
| 42 | (X.hom.appLE ⊤ V.unop le_top) ((Scheme.ΓSpecIso (.of ℂ)).inv c) |
| 43 | exact ConcreteCategory.congr_hom (X.hom.appLE_map le_top f) |
| 44 | ((Scheme.ΓSpecIso (.of ℂ)).inv c) |
| 45 | |
| 46 | /-- The actual structure presheaf, retaining its complex algebra structure. -/ |
| 47 | def sectionAlgebraFunctor : X.left.Opensᵒᵖ ⥤ CommAlgCat.{0} ℂ where |
| 48 | obj U := CommAlgCat.of ℂ Γ(X.left, U.unop) |
| 49 | map f := CommAlgCat.ofHom (sectionRestriction X f) |
| 50 | map_id U := by |
| 51 | ext a |
| 52 | change (X.left.presheaf.map (𝟙 U)) a = a |
| 53 | rw [X.left.presheaf.map_id] |
| 54 | rfl |
| 55 | map_comp f g := by |
| 56 | ext a |
| 57 | change (X.left.presheaf.map (f ≫ g)) a = |
| 58 | (X.left.presheaf.map g) ((X.left.presheaf.map f) a) |
| 59 | rw [X.left.presheaf.map_comp] |
| 60 | rfl |
| 61 | |
| 62 | /-- Algebraic differential forms computed on the actual rings of sections. -/ |
| 63 | def deRhamPresheafOfComplexes : |
| 64 | X.left.Opensᵒᵖ ⥤ CochainComplex (ModuleCat.{0} ℂ) ℕ := |
| 65 | sectionAlgebraFunctor X ⋙ Forms.algebraicDeRhamFunctor |
| 66 | |
| 67 | def formPresheaf (n : ℕ) : X.left.Opensᵒᵖ ⥤ ModuleCat.{0} ℂ := |
| 68 | deRhamPresheafOfComplexes X ⋙ HomologicalComplex.eval _ _ n |
| 69 | |
| 70 | def presheafDifferential (n : ℕ) : formPresheaf X n ⟶ formPresheaf X (n + 1) where |
| 71 | app U := ((deRhamPresheafOfComplexes X).obj U).d n (n + 1) |
| 72 | naturality := fun _ _ f => ((deRhamPresheafOfComplexes X).map f).comm n (n + 1) |
| 73 | |
| 74 | def deRhamPresheafComplex : |
| 75 | CochainComplex (X.left.Opensᵒᵖ ⥤ ModuleCat.{0} ℂ) ℕ := |
| 76 | CochainComplex.of (formPresheaf X) (presheafDifferential X) |
| 77 | (fun n => NatTrans.ext (funext (fun U => |
| 78 | ((deRhamPresheafOfComplexes X).obj U).d_comp_d n (n + 1) (n + 2)))) |
| 79 | |
| 80 | @[simp] |
| 81 | theorem deRhamPresheafComplex_d (n : ℕ) : |
| 82 | (deRhamPresheafComplex X).d n (n + 1) = presheafDifferential X n := |
| 83 | CochainComplex.of_d (formPresheaf X) (presheafDifferential X) n |
| 84 | |
| 85 | abbrev ComplexSheaves := |
| 86 | Sheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ) |
| 87 | |
| 88 | /-- Sheafification of the algebraic differential-form complex. -/ |
| 89 | def algebraicDeRhamSheafComplex : CochainComplex (ComplexSheaves X) ℕ := |
| 90 | ((presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 91 | (ComplexShape.up ℕ)).obj (deRhamPresheafComplex X) |
| 92 | |
| 93 | /-- Extend each section complex by zero in negative degrees. -/ |
| 94 | def deRhamPresheafOfComplexesInt : |
| 95 | X.left.Opensᵒᵖ ⥤ CochainComplex (ModuleCat.{0} ℂ) ℤ := |
| 96 | deRhamPresheafOfComplexes X ⋙ |
| 97 | (ComplexShape.embeddingUpIntGE 0).extendFunctor (ModuleCat.{0} ℂ) |
| 98 | |
| 99 | /-- Transpose the sectionwise integer complexes into a complex of presheaves. -/ |
| 100 | def deRhamPresheafComplexInt : |
| 101 | CochainComplex (X.left.Opensᵒᵖ ⥤ ModuleCat.{0} ℂ) ℤ where |
| 102 | X n := deRhamPresheafOfComplexesInt X ⋙ HomologicalComplex.eval _ _ n |
| 103 | d i j := |
| 104 | { app := fun U => ((deRhamPresheafOfComplexesInt X).obj U).d i j |
| 105 | naturality := fun _ _ f => ((deRhamPresheafOfComplexesInt X).map f).comm i j } |
| 106 | shape i j h := NatTrans.ext (funext (fun U => |
| 107 | ((deRhamPresheafOfComplexesInt X).obj U).shape i j h)) |
| 108 | d_comp_d' i j k _ _ := NatTrans.ext (funext (fun U => |
| 109 | ((deRhamPresheafOfComplexesInt X).obj U).d_comp_d i j k)) |
| 110 | |
| 111 | /-- The algebraic de Rham sheaf complex indexed by integers. Sheafification |
| 112 | is applied after extension on sections, so it also constructs the negative |
| 113 | zero terms without choosing any comparison isomorphism. -/ |
| 114 | def algebraicDeRhamSheafComplexInt : CochainComplex (ComplexSheaves X) ℤ := |
| 115 | ((presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 116 | (ComplexShape.up ℤ)).obj (deRhamPresheafComplexInt X) |
| 117 | |
| 118 | instance complexSheavesHasDerivedCategory : HasDerivedCategory.{1} (ComplexSheaves X) := |
| 119 | HasDerivedCategory.standard _ |
| 120 | |
| 121 | def constantComplexSheaf : ComplexSheaves X := |
| 122 | (constantSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).obj |
| 123 | (ModuleCat.of ℂ ℂ) |
| 124 | |
| 125 | /-- Hypercohomology of the algebraic de Rham sheaf complex. The larger universe |
| 126 | comes from the standard constructed derived category; no smallness or |
| 127 | finite-dimensionality theorem is assumed. -/ |
| 128 | def algebraicDeRham (n : ℕ) : ModuleCat.{1} ℂ := |
| 129 | ModuleCat.of ℂ |
| 130 | ((DerivedCategory.singleFunctor (ComplexSheaves X) 0).obj (constantComplexSheaf X) ⟶ |
| 131 | ((DerivedCategory.Q.obj (algebraicDeRhamSheafComplexInt X))⟦(n : ℤ)⟧)) |
| 132 | |
| 133 | /-- Existing genuine complex singular cohomology, moved to the universe of |
| 134 | the standard derived-category construction without changing coefficients. -/ |
| 135 | def betti (n : ℕ) : ModuleCat.{1} ℂ := |
| 136 | (ModuleCat.uliftFunctor.{1, 0} ℂ).obj (Betti.Scheme.schemeBetti (ModuleCat.of ℂ ℂ) X n) |
| 137 | |
| 138 | def bettiPullback {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) (n : ℕ) : |
| 139 | betti Y n ⟶ betti X n := |
| 140 | (ModuleCat.uliftFunctor.{1, 0} ℂ).map (Betti.Scheme.schemeBettiMap (ModuleCat.of ℂ ℂ) n f) |
| 141 | |
| 142 | end |
| 143 | |
| 144 | /-! Exact inverse image on sheaves of complex vector spaces over the Zariski |
| 145 | spaces of complex schemes. All maps are the standard site constructions. -/ |
| 146 | |
| 147 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 148 | |
| 149 | variable {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) |
| 150 | |
| 151 | def inverseImage : ComplexSheaves Y ⥤ ComplexSheaves X := |
| 152 | (Opens.map f.left.base).sheafPullback (ModuleCat.{0} ℂ) |
| 153 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left) |
| 154 | |
| 155 | def directImage : ComplexSheaves X ⥤ ComplexSheaves Y := |
| 156 | (Opens.map f.left.base).sheafPushforwardContinuous (ModuleCat.{0} ℂ) |
| 157 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left) |
| 158 | |
| 159 | def imageAdjunction : inverseImage f ⊣ directImage f := |
| 160 | (Opens.map f.left.base).sheafAdjunctionContinuous (ModuleCat.{0} ℂ) |
| 161 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left) |
| 162 | |
| 163 | instance inverseImageIsLeftAdjoint : (inverseImage f).IsLeftAdjoint := |
| 164 | (imageAdjunction f).isLeftAdjoint |
| 165 | |
| 166 | instance inverseImagePreservesFiniteLimits : PreservesFiniteLimits (inverseImage f) := by |
| 167 | exact Functor.SmallCategories.instPreservesFiniteLimitsSheafSheafPullbackOfRepresentablyFlat |
| 168 | (Opens.map f.left.base) (ModuleCat.{0} ℂ) |
| 169 | (Opens.grothendieckTopology Y.left) (Opens.grothendieckTopology X.left) |
| 170 | |
| 171 | instance inverseImagePreservesFiniteColimits : PreservesFiniteColimits (inverseImage f) := |
| 172 | inferInstance |
| 173 | |
| 174 | instance inverseImageAdditive : (inverseImage f).Additive := by |
| 175 | let := preservesBinaryBiproducts_of_preservesBinaryCoproducts (inverseImage f) |
| 176 | exact (inverseImage f).additive_of_preservesBinaryBiproducts |
| 177 | |
| 178 | def derivedInverseImage : DerivedCategory (ComplexSheaves Y) ⥤ |
| 179 | DerivedCategory (ComplexSheaves X) := |
| 180 | (inverseImage f).mapDerivedCategory |
| 181 | |
| 182 | instance directImageLinear : (directImage f).Linear ℂ where |
| 183 | map_smul := by intros; rfl |
| 184 | |
| 185 | /-- The adjunction transfers complex linearity of direct image to inverse image. -/ |
| 186 | instance inverseImageLinear : (inverseImage f).Linear ℂ where |
| 187 | map_smul {M N} c g := by |
| 188 | let adj := imageAdjunction f |
| 189 | apply (adj.homEquiv M ((inverseImage f).obj N)).injective |
| 190 | have hmap (k : M ⟶ N) : |
| 191 | adj.homEquiv M ((inverseImage f).obj N) ((inverseImage f).map k) = |
| 192 | k ≫ adj.unit.app N := by |
| 193 | simpa only [Category.comp_id, adj.homEquiv_id] using |
| 194 | adj.homEquiv_naturality_left k (𝟙 ((inverseImage f).obj N)) |
| 195 | rw [hmap, Linear.smul_comp, adj.homEquiv_unit, |
| 196 | Functor.map_smul, Linear.comp_smul, ← adj.homEquiv_unit, hmap] |
| 197 | |
| 198 | instance derivedInverseImageLinear : (derivedInverseImage f).Linear ℂ := |
| 199 | inferInstanceAs ((inverseImage f).mapDerivedCategory.Linear ℂ) |
| 200 | |
| 201 | /-- Inverse image preserves the constant coefficient sheaf, by uniqueness |
| 202 | of the left adjoint to global sections. -/ |
| 203 | def inverseImageConstantFunctorIso : |
| 204 | constantSheaf (Opens.grothendieckTopology Y.left) (ModuleCat.{0} ℂ) ⋙ |
| 205 | inverseImage f ≅ |
| 206 | constantSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ) := by |
| 207 | have hT : IsTerminal ((Opens.map f.left.base).obj (⊤ : Y.left.Opens)) := by |
| 208 | change IsTerminal (⊤ : X.left.Opens) |
| 209 | exact isTerminalTop |
| 210 | exact ((constantSheafAdj (Opens.grothendieckTopology Y.left) |
| 211 | (ModuleCat.{0} ℂ) isTerminalTop).comp (imageAdjunction f)).leftAdjointUniq |
| 212 | (constantSheafAdj (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ) hT) |
| 213 | |
| 214 | def inverseImageConstantIso : |
| 215 | (inverseImage f).obj (constantComplexSheaf Y) ≅ constantComplexSheaf X := |
| 216 | (inverseImageConstantFunctorIso f).app (ModuleCat.of ℂ ℂ) |
| 217 | |
| 218 | attribute [local instance] sectionAlgebra |
| 219 | |
| 220 | /-- Pullback of regular functions along the given scheme morphism. -/ |
| 221 | def sectionPullback (U : Y.left.Opens) : |
| 222 | Γ(Y.left, U) →ₐ[ℂ] Γ(X.left, f.left ⁻¹ᵁ U) where |
| 223 | __ := (f.left.app U).hom |
| 224 | commutes' c := by |
| 225 | change (f.left.app U) |
| 226 | ((Y.hom.appLE ⊤ U le_top) ((Scheme.ΓSpecIso (.of ℂ)).inv c)) = |
| 227 | (X.hom.appLE ⊤ (f.left ⁻¹ᵁ U) le_top) ((Scheme.ΓSpecIso (.of ℂ)).inv c) |
| 228 | have h : Y.hom.appLE ⊤ U le_top ≫ f.left.app U = |
| 229 | X.hom.appLE ⊤ (f.left ⁻¹ᵁ U) le_top := by |
| 230 | have hcomp := Scheme.Hom.appLE_comp_appLE f.left Y.hom |
| 231 | ⊤ U (f.left ⁻¹ᵁ U) le_top le_rfl |
| 232 | have hbase := congrArg |
| 233 | (fun g : X.left ⟶ Foundations.Scheme.ProjectiveSpace.complexBase => g.appLE ⊤ (f.left ⁻¹ᵁ U) le_top) |
| 234 | (Over.w f) |
| 235 | exact (congrArg (fun g => Y.hom.appLE ⊤ U le_top ≫ g) |
| 236 | (f.left.app_eq_appLE (U := U))).trans (hcomp.trans hbase) |
| 237 | exact ConcreteCategory.congr_hom h ((Scheme.ΓSpecIso (.of ℂ)).inv c) |
| 238 | |
| 239 | theorem sectionPullback_naturality {U V : Y.left.Opensᵒᵖ} (i : U ⟶ V) : |
| 240 | (sectionRestriction X ((Opens.map f.left.base).op.map i)).comp |
| 241 | (sectionPullback f U.unop) = |
| 242 | (sectionPullback f V.unop).comp (sectionRestriction Y i) := by |
| 243 | ext a |
| 244 | exact (ConcreteCategory.congr_hom (f.left.naturality i) a).symm |
| 245 | |
| 246 | /-- Pullback of the entire presheaf complex, induced on every coefficient |
| 247 | by the actual pullback of regular functions. -/ |
| 248 | def deRhamPresheafPullback : deRhamPresheafOfComplexes Y ⟶ |
| 249 | (Opens.map f.left.base).op ⋙ deRhamPresheafOfComplexes X where |
| 250 | app U := Forms.complexPullback (sectionPullback f U.unop) |
| 251 | naturality := fun U V i => by |
| 252 | change Forms.complexPullback (sectionRestriction Y i) ≫ |
| 253 | Forms.complexPullback (sectionPullback f V.unop) = |
| 254 | Forms.complexPullback (sectionPullback f U.unop) ≫ |
| 255 | Forms.complexPullback |
| 256 | (sectionRestriction X ((Opens.map f.left.base).op.map i)) |
| 257 | rw [← Forms.complexPullback_comp, ← Forms.complexPullback_comp, |
| 258 | sectionPullback_naturality] |
| 259 | |
| 260 | end |
| 261 | |
| 262 | end OAI.AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves |