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.NumberTheory.PadicHodge.GeometricComparison.SheafAdapterNaturality |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.ComplexExtensionAdapter |
| 3 | |
| 4 | /-! # Extension Adapter -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Intrinsic.ExtensionAdapter.FormsAdapter |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Parametric extension of the native sectionwise BettiComparison complexes. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | variable (e : (ComplexShape.up ℕ).Embedding (ComplexShape.up ℤ)) |
| 17 | |
| 18 | def nativePresheafComplex (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) : CochainComplex (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.ComplexPresheaves X) ℤ := |
| 19 | AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose |
| 20 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X ⋙ e.extendFunctor (ModuleCat.{0} ℂ)) |
| 21 | |
| 22 | def nativeSheafComplex (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) : CochainComplex (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.ComplexSheaves X) ℤ := |
| 23 | ((presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 24 | (ComplexShape.up ℤ)).obj (nativePresheafComplex e X) |
| 25 | |
| 26 | def nativePresheafPullback {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) : |
| 27 | nativePresheafComplex e Y ⟶ |
| 28 | ((AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.directImagePresheaf f).mapHomologicalComplex (ComplexShape.up ℤ)).obj |
| 29 | (nativePresheafComplex e X) := |
| 30 | AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transposeMap |
| 31 | (Functor.whiskerRight (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafPullback f) |
| 32 | (e.extendFunctor (ModuleCat.{0} ℂ))) |
| 33 | |
| 34 | def nativeSheafificationAdjunction (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) := |
| 35 | AlgebraicGeometry.Comparison.Betti.Complex.Adjunction.onComplexes |
| 36 | (sheafificationAdjunction (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)) |
| 37 | (ComplexShape.up ℤ) |
| 38 | |
| 39 | def nativePresheafSheafPullback {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) : |
| 40 | nativePresheafComplex e Y ⟶ |
| 41 | ((sheafToPresheaf (Opens.grothendieckTopology Y.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 42 | (ComplexShape.up ℤ)).obj |
| 43 | (((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.directImage f).mapHomologicalComplex (ComplexShape.up ℤ)).obj |
| 44 | (nativeSheafComplex e X)) := |
| 45 | nativePresheafPullback e f ≫ |
| 46 | ((AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.directImagePresheaf f).mapHomologicalComplex (ComplexShape.up ℤ)).map |
| 47 | ((nativeSheafificationAdjunction X).unit.app (nativePresheafComplex e X)) |
| 48 | |
| 49 | def nativeSheafDirectImage {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) : |
| 50 | nativeSheafComplex e Y ⟶ |
| 51 | ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.directImage f).mapHomologicalComplex (ComplexShape.up ℤ)).obj (nativeSheafComplex e X) := |
| 52 | ((nativeSheafificationAdjunction Y).homEquiv (nativePresheafComplex e Y) |
| 53 | (((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.directImage f).mapHomologicalComplex (ComplexShape.up ℤ)).obj |
| 54 | (nativeSheafComplex e X))).symm (nativePresheafSheafPullback e f) |
| 55 | |
| 56 | def nativeSheafPullback {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) : |
| 57 | ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).mapHomologicalComplex (ComplexShape.up ℤ)).obj (nativeSheafComplex e Y) ⟶ |
| 58 | nativeSheafComplex e X := |
| 59 | ((AlgebraicGeometry.Comparison.Betti.Complex.Adjunction.onComplexes (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.imageAdjunction f) (ComplexShape.up ℤ)).homEquiv |
| 60 | (nativeSheafComplex e Y) (nativeSheafComplex e X)).symm (nativeSheafDirectImage e f) |
| 61 | |
| 62 | def nativeExtensionIso (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) : nativeSheafComplex e X ≅ |
| 63 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex X).extend e := SheafFormsAdapter.FormsAdapter.sectionSheafExtensionIso X e |
| 64 | |
| 65 | theorem nativeSheafPullback_int {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) : |
| 66 | nativeSheafPullback (ComplexShape.embeddingUpIntGE 0) f = AlgebraicGeometry.Comparison.Betti.OpenForms.deRhamSheafPullbackInt f := rfl |
| 67 | |
| 68 | theorem nativePresheafTerm_isZero (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) (i : ℤ) (hi : e.r i = none) : |
| 69 | IsZero ((nativePresheafComplex e X).X i) := by |
| 70 | apply (Functor.isZero_iff _).mpr |
| 71 | intro U |
| 72 | change IsZero (HomologicalComplex.extend.X |
| 73 | ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X).obj U) (e.r i)) |
| 74 | rw [hi] |
| 75 | exact isZero_zero _ |
| 76 | |
| 77 | theorem nativeSheafTerm_isZero (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) (i : ℤ) (hi : e.r i = none) : |
| 78 | IsZero ((nativeSheafComplex e X).X i) := |
| 79 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).map_isZero |
| 80 | (nativePresheafTerm_isZero e X i hi) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | section |
| 85 | |
| 86 | /-! Componentwise models of the native extension and its actual pullback. -/ |
| 87 | |
| 88 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 89 | |
| 90 | section Options |
| 91 | variable {T C : Type*} [Category* T] [Category* C] [Preadditive C] [HasZeroObject C] |
| 92 | (F : T ⥤ CochainComplex C ℕ) |
| 93 | |
| 94 | def optionFunctor (o : Option ℕ) : T ⥤ C where |
| 95 | obj t := HomologicalComplex.extend.X (F.obj t) o |
| 96 | map f := HomologicalComplex.extend.mapX (F.map f) o |
| 97 | map_id t := by |
| 98 | cases o with |
| 99 | | none => exact (isZero_zero C).eq_of_src _ _ |
| 100 | | some n => exact congrArg (fun f => f.f n) (F.map_id t) |
| 101 | map_comp f g := by |
| 102 | cases o with |
| 103 | | none => exact (isZero_zero C).eq_of_src _ _ |
| 104 | | some n => exact congrArg (fun f => f.f n) (F.map_comp f g) |
| 105 | |
| 106 | def optionFunctorIso (o : Option ℕ) : optionFunctor F o ≅ |
| 107 | HomologicalComplex.extend.X (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose F) o := |
| 108 | NatIso.ofComponents (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.optionXIso F o) |
| 109 | (fun f => AlgebraicGeometry.Comparison.Betti.Complex.Transpose.optionXIso_naturality F o f) |
| 110 | |
| 111 | def optionFunctorMap {G : T ⥤ CochainComplex C ℕ} (φ : F ⟶ G) (o : Option ℕ) : |
| 112 | optionFunctor F o ⟶ optionFunctor G o where |
| 113 | app t := HomologicalComplex.extend.mapX (φ.app t) o |
| 114 | naturality t s f := by |
| 115 | cases o with |
| 116 | | none => exact (isZero_zero C).eq_of_src _ _ |
| 117 | | some n => exact congrArg (fun f => f.f n) (φ.naturality f) |
| 118 | |
| 119 | def optionComplexIso {K L : CochainComplex C ℕ} (e : K ≅ L) (o : Option ℕ) : |
| 120 | HomologicalComplex.extend.X K o ≅ HomologicalComplex.extend.X L o := |
| 121 | match o with |
| 122 | | some n => (HomologicalComplex.eval C (ComplexShape.up ℕ) n).mapIso e |
| 123 | | none => Iso.refl _ |
| 124 | |
| 125 | theorem optionComplexIso_hom {K L : CochainComplex C ℕ} (e : K ≅ L) (o : Option ℕ) : |
| 126 | (optionComplexIso e o).hom = HomologicalComplex.extend.mapX e.hom o := by |
| 127 | cases o with |
| 128 | | none => exact (isZero_zero C).eq_of_src _ _ |
| 129 | | some n => rfl |
| 130 | |
| 131 | end Options |
| 132 | |
| 133 | theorem map_identity_square {C D : Type*} [Category* C] [Category* D] (F : C ⥤ D) (X : C) : |
| 134 | F.map (𝟙 X) ≫ 𝟙 _ ≫ F.map (𝟙 X) = 𝟙 (F.obj X) := by |
| 135 | simp only [F.map_id, Category.id_comp] |
| 136 | |
| 137 | theorem map_identity_action {C D : Type*} [Category* C] [Category* D] (F : C ⥤ D) |
| 138 | {X : C} {Y : D} (f : F.obj X ⟶ Y) : |
| 139 | F.map (𝟙 X) ≫ 𝟙 _ ≫ f = f ≫ 𝟙 _ := by |
| 140 | simp only [F.map_id, Category.id_comp, Category.comp_id] |
| 141 | |
| 142 | def optionPresheaf (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) (o : Option ℕ) : AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.ComplexPresheaves X := |
| 143 | optionFunctor (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X) o |
| 144 | |
| 145 | def optionSheaf (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) (o : Option ℕ) : AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.ComplexSheaves X := |
| 146 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).obj (optionPresheaf X o) |
| 147 | |
| 148 | def optionPresheafPullback {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) (o : Option ℕ) : |
| 149 | optionPresheaf Y o ⟶ (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.directImagePresheaf f).obj (optionPresheaf X o) := |
| 150 | optionFunctorMap _ (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafPullback f) o |
| 151 | |
| 152 | def optionSheafDirectImage {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) (o : Option ℕ) : |
| 153 | optionSheaf Y o ⟶ (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.directImage f).obj (optionSheaf X o) := |
| 154 | ((sheafificationAdjunction (Opens.grothendieckTopology Y.left) (ModuleCat.{0} ℂ)).homEquiv |
| 155 | (optionPresheaf Y o) ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.directImage f).obj (optionSheaf X o))).symm |
| 156 | (optionPresheafPullback f o ≫ (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.directImagePresheaf f).map |
| 157 | ((sheafificationAdjunction (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).unit.app |
| 158 | (optionPresheaf X o))) |
| 159 | |
| 160 | def optionSheafPullback {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) (o : Option ℕ) : |
| 161 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).obj (optionSheaf Y o) ⟶ optionSheaf X o := |
| 162 | ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.imageAdjunction f).homEquiv (optionSheaf Y o) (optionSheaf X o)).symm |
| 163 | (optionSheafDirectImage f o) |
| 164 | |
| 165 | def optionSheafIso (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) (o : Option ℕ) : optionSheaf X o ≅ |
| 166 | HomologicalComplex.extend.X (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex X) o := |
| 167 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapIso |
| 168 | (optionFunctorIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X) o) ≪≫ |
| 169 | AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapXIso |
| 170 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)) |
| 171 | (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X)) o ≪≫ |
| 172 | optionComplexIso |
| 173 | (((presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).mapHomologicalComplex |
| 174 | (ComplexShape.up ℕ)).mapIso (SheafFormsAdapter.FormsAdapter.transposeIso X)) o |
| 175 | |
| 176 | theorem optionSheafIso_some (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) (n : ℕ) : |
| 177 | (optionSheafIso X (some n)).hom = 𝟙 ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex X).X n) := by |
| 178 | change (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).map |
| 179 | (𝟙 (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.formPresheaf X n)) ≫ 𝟙 _ ≫ |
| 180 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)).map |
| 181 | (𝟙 (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.formPresheaf X n)) = 𝟙 _ |
| 182 | exact map_identity_square |
| 183 | (presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ)) |
| 184 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.formPresheaf X n) |
| 185 | |
| 186 | theorem optionSheafPullback_some {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) (n : ℕ) : |
| 187 | optionSheafPullback f (some n) = (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f).f n := rfl |
| 188 | |
| 189 | theorem optionSheafIso_naturality {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) (o : Option ℕ) : |
| 190 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).map (optionSheafIso Y o).hom ≫ |
| 191 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapXIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f) |
| 192 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex Y) o).hom ≫ |
| 193 | HomologicalComplex.extend.mapX (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f) o = |
| 194 | optionSheafPullback f o ≫ (optionSheafIso X o).hom := by |
| 195 | cases o with |
| 196 | | none => |
| 197 | have h : IsZero (optionSheaf Y none) := |
| 198 | (optionSheafIso Y none).isZero_iff.mpr (isZero_zero _) |
| 199 | exact ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).map_isZero h).eq_of_src _ _ |
| 200 | | some n => |
| 201 | rw [optionSheafIso_some, optionSheafIso_some, optionSheafPullback_some] |
| 202 | change (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).map (𝟙 _) ≫ 𝟙 _ ≫ |
| 203 | (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f).f n = (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f).f n ≫ 𝟙 _ |
| 204 | exact map_identity_action (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f) ((AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f).f n) |
| 205 | |
| 206 | variable (e : (ComplexShape.up ℕ).Embedding (ComplexShape.up ℤ)) |
| 207 | |
| 208 | theorem nativeSheafPullback_f {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) (i : ℤ) : |
| 209 | (nativeSheafPullback e f).f i = optionSheafPullback f (e.r i) := rfl |
| 210 | |
| 211 | theorem nativeExtensionIso_f (X : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase) (i : ℤ) : |
| 212 | (nativeExtensionIso e X).hom.f i = (optionSheafIso X (e.r i)).hom := by |
| 213 | let S := presheafToSheaf (Opens.grothendieckTopology X.left) (ModuleCat.{0} ℂ) |
| 214 | let I := (S.mapHomologicalComplex (ComplexShape.up ℕ)).mapIso (SheafFormsAdapter.FormsAdapter.transposeIso X) |
| 215 | change S.map (optionFunctorIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X) (e.r i)).hom ≫ |
| 216 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapXIso S |
| 217 | (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X)) (e.r i)).hom ≫ |
| 218 | HomologicalComplex.extend.mapX I.hom (e.r i) = |
| 219 | S.map (optionFunctorIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X) (e.r i)).hom ≫ |
| 220 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapXIso S |
| 221 | (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X)) (e.r i)).hom ≫ |
| 222 | (optionComplexIso I (e.r i)).hom |
| 223 | exact congrArg (fun h => |
| 224 | S.map (optionFunctorIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X) (e.r i)).hom ≫ |
| 225 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapXIso S |
| 226 | (AlgebraicGeometry.Comparison.Betti.Complex.Transpose.transpose (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.deRhamPresheafOfComplexes X)) (e.r i)).hom ≫ h) |
| 227 | (optionComplexIso_hom I (e.r i)).symm |
| 228 | |
| 229 | theorem nativeExtensionIso_naturality {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) : |
| 230 | ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).mapHomologicalComplex (ComplexShape.up ℤ)).map |
| 231 | (nativeExtensionIso e Y).hom ≫ |
| 232 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapExtendIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f) e |
| 233 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex Y)).hom ≫ |
| 234 | HomologicalComplex.extendMap (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f) e = |
| 235 | nativeSheafPullback e f ≫ (nativeExtensionIso e X).hom := by |
| 236 | apply HomologicalComplex.Hom.ext |
| 237 | funext i |
| 238 | change (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).map ((nativeExtensionIso e Y).hom.f i) ≫ |
| 239 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapXIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f) |
| 240 | (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex Y) (e.r i)).hom ≫ |
| 241 | HomologicalComplex.extend.mapX (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f) (e.r i) = |
| 242 | (nativeSheafPullback e f).f i ≫ (nativeExtensionIso e X).hom.f i |
| 243 | rw [nativeExtensionIso_f, nativeExtensionIso_f, nativeSheafPullback_f] |
| 244 | exact optionSheafIso_naturality f (e.r i) |
| 245 | |
| 246 | end |
| 247 | |
| 248 | /-! Native pullback compatibility for the integer-indexed sheaf-complex adapter. -/ |
| 249 | |
| 250 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 251 | |
| 252 | section Generic |
| 253 | variable {C D : Type*} [Category* C] [Category* D] |
| 254 | [Preadditive C] [Preadditive D] [HasZeroObject C] [HasZeroObject D] |
| 255 | (F : C ⥤ D) [F.Additive] |
| 256 | (e : (ComplexShape.up ℕ).Embedding (ComplexShape.up ℤ)) |
| 257 | |
| 258 | def extendedPullback {K : CochainComplex C ℕ} {L : CochainComplex D ℕ} |
| 259 | (f : (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj K ⟶ L) : |
| 260 | (F.mapHomologicalComplex (ComplexShape.up ℤ)).obj (K.extend e) ⟶ L.extend e := |
| 261 | (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapExtendIso F e K).hom ≫ HomologicalComplex.extendMap f e |
| 262 | |
| 263 | theorem changeEmbedding_pullback {K : CochainComplex C ℕ} {L : CochainComplex D ℕ} |
| 264 | (f : (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj K ⟶ L) |
| 265 | {e' : (ComplexShape.up ℕ).Embedding (ComplexShape.up ℤ)} (h : e = e') : |
| 266 | (F.mapHomologicalComplex (ComplexShape.up ℤ)).map (SheafFormsAdapter.FormsAdapter.changeEmbeddingIso K h).hom ≫ |
| 267 | extendedPullback F e' f = extendedPullback F e f ≫ (SheafFormsAdapter.FormsAdapter.changeEmbeddingIso L h).hom := by |
| 268 | subst e' |
| 269 | simp only [SheafFormsAdapter.FormsAdapter.changeEmbeddingIso, eqToIso.hom, eqToHom_refl, |
| 270 | (F.mapHomologicalComplex (ComplexShape.up ℤ)).map_id, Category.id_comp, Category.comp_id] |
| 271 | |
| 272 | theorem extendedPullback_square {K L : CochainComplex C ℕ} {M N : CochainComplex D ℕ} |
| 273 | (φ : K ⟶ L) (ψ : M ⟶ N) |
| 274 | (α : (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj K ⟶ M) |
| 275 | (β : (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj L ⟶ N) |
| 276 | (h : (F.mapHomologicalComplex (ComplexShape.up ℕ)).map φ ≫ β = α ≫ ψ) : |
| 277 | (F.mapHomologicalComplex (ComplexShape.up ℤ)).map (HomologicalComplex.extendMap φ e) ≫ |
| 278 | extendedPullback F e β = extendedPullback F e α ≫ HomologicalComplex.extendMap ψ e := by |
| 279 | have h₂ := congrArg (fun k => HomologicalComplex.extendMap k e) h |
| 280 | simp only [HomologicalComplex.extendMap_comp] at h₂ |
| 281 | exact SheafAdapterNaturality.FormsAdapter.composition_square (AlgebraicGeometry.Comparison.Betti.Complex.Extension.mapExtendIso_naturality F e φ) h₂ |
| 282 | |
| 283 | end Generic |
| 284 | |
| 285 | theorem pullback_square_comp {C D : Type*} [Category* C] [Category* D] (F : C ⥤ D) |
| 286 | {A B C' : C} {X Y Z : D} (a : A ⟶ B) (b : B ⟶ C') |
| 287 | (x : X ⟶ Y) (y : Y ⟶ Z) (p : F.obj A ⟶ X) (q : F.obj B ⟶ Y) (r : F.obj C' ⟶ Z) |
| 288 | (h₁ : F.map a ≫ q = p ≫ x) (h₂ : F.map b ≫ r = q ≫ y) : |
| 289 | F.map (a ≫ b) ≫ r = p ≫ (x ≫ y) := by |
| 290 | rw [F.map_comp, Category.assoc, h₂, ← Category.assoc, h₁, Category.assoc] |
| 291 | |
| 292 | variable {X Y : Over AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace.complexBase} (f : X ⟶ Y) |
| 293 | |
| 294 | theorem sheafIntExtensionIso_naturality : |
| 295 | ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).mapHomologicalComplex (ComplexShape.up ℤ)).map |
| 296 | (SheafFormsAdapter.FormsAdapter.sheafIntExtensionIso Y).hom ≫ |
| 297 | extendedPullback (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f) ComplexShape.embeddingUpNat |
| 298 | (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f) = |
| 299 | AlgebraicGeometry.Comparison.Betti.OpenForms.deRhamSheafPullbackInt f ≫ (SheafFormsAdapter.FormsAdapter.sheafIntExtensionIso X).hom := |
| 300 | pullback_square_comp ((AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f).mapHomologicalComplex (ComplexShape.up ℤ)) |
| 301 | (nativeExtensionIso (ComplexShape.embeddingUpIntGE 0) Y).hom |
| 302 | (SheafFormsAdapter.FormsAdapter.changeEmbeddingIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex Y) SheafFormsAdapter.FormsAdapter.embedding_eq).hom |
| 303 | (nativeExtensionIso (ComplexShape.embeddingUpIntGE 0) X).hom |
| 304 | (SheafFormsAdapter.FormsAdapter.changeEmbeddingIso (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.algebraicDeRhamSheafComplex X) SheafFormsAdapter.FormsAdapter.embedding_eq).hom |
| 305 | (AlgebraicGeometry.Comparison.Betti.OpenForms.deRhamSheafPullbackInt f) |
| 306 | (extendedPullback (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f) (ComplexShape.embeddingUpIntGE 0) |
| 307 | (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f)) |
| 308 | (extendedPullback (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f) ComplexShape.embeddingUpNat |
| 309 | (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f)) |
| 310 | (nativeExtensionIso_naturality (ComplexShape.embeddingUpIntGE 0) f) |
| 311 | (changeEmbedding_pullback (AlgebraicGeometry.Comparison.Betti.Algebraic.Sheaves.inverseImage f) (ComplexShape.embeddingUpIntGE 0) |
| 312 | (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f) SheafFormsAdapter.FormsAdapter.embedding_eq) |
| 313 | |
| 314 | theorem sheafComplexIntIso_naturality : |
| 315 | ((DeRham.Int.inverseImage f).mapHomologicalComplex (ComplexShape.up ℤ)).map |
| 316 | (SheafFormsAdapter.FormsAdapter.sheafComplexIntIso Y).hom ≫ DeRham.Int.sheafPullbackInt f = |
| 317 | AlgebraicGeometry.Comparison.Betti.OpenForms.deRhamSheafPullbackInt f ≫ (SheafFormsAdapter.FormsAdapter.sheafComplexIntIso X).hom := |
| 318 | pullback_square_comp ((DeRham.Int.inverseImage f).mapHomologicalComplex (ComplexShape.up ℤ)) |
| 319 | (SheafFormsAdapter.FormsAdapter.sheafIntExtensionIso Y).hom |
| 320 | (HomologicalComplex.extendMap (SheafFormsAdapter.FormsAdapter.sheafComplexIso Y).hom ComplexShape.embeddingUpNat) |
| 321 | (SheafFormsAdapter.FormsAdapter.sheafIntExtensionIso X).hom |
| 322 | (HomologicalComplex.extendMap (SheafFormsAdapter.FormsAdapter.sheafComplexIso X).hom ComplexShape.embeddingUpNat) |
| 323 | (AlgebraicGeometry.Comparison.Betti.OpenForms.deRhamSheafPullbackInt f) |
| 324 | (extendedPullback (DeRham.Int.inverseImage f) ComplexShape.embeddingUpNat (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f)) |
| 325 | (DeRham.Int.sheafPullbackInt f) |
| 326 | (sheafIntExtensionIso_naturality f) |
| 327 | (extendedPullback_square (DeRham.Int.inverseImage f) ComplexShape.embeddingUpNat |
| 328 | (SheafFormsAdapter.FormsAdapter.sheafComplexIso Y).hom (SheafFormsAdapter.FormsAdapter.sheafComplexIso X).hom |
| 329 | (AlgebraicGeometry.Comparison.Betti.Sheaf.CochainPullback.deRhamSheafPullback f) (DeRham.Int.sheafPullback f) (SheafAdapterNaturality.FormsAdapter.sheafComplexIso_naturality f)) |
| 330 | |
| 331 | end |
| 332 | |
| 333 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Intrinsic.ExtensionAdapter.FormsAdapter |