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 | /- |
| 2 | Copyright (c) 2026 The AINTLIB contributors. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: AINTLIB ModularCurves project |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentCechData |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentWeightFinite |
| 9 | |
| 10 | /-! # Twist Cech Weight Components -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistCechWeightComponents.MvPolynomial |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.MvPolynomial |
| 17 | |
| 18 | /-! |
| 19 | # Fixed-weight components of the projective twist Cech complex |
| 20 | |
| 21 | This file identifies each global homogeneous Laurent weight in the ordered projective twist Cech |
| 22 | complex with the ordered support-restricted complex used in the Stacks Project computation of the |
| 23 | cohomology of projective space. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 27 | |
| 28 | universe u |
| 29 | |
| 30 | variable {R : Type u} {σ : Type} [CommRing R] |
| 31 | |
| 32 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 33 | |
| 34 | local instance : DecidableEq σ := Classical.decEq σ |
| 35 | |
| 36 | private abbrev coordinateBaseRing (R : Type u) [CommRing R] := |
| 37 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 38 | |
| 39 | /-- A Cech deletion map preserves the coefficient of every allowed global homogeneous weight. -/ |
| 40 | @[simp] |
| 41 | theorem coordinateHomogeneousLaurentDeleteLinearMap_coeff |
| 42 | [LinearOrder σ] {n : ℕ} |
| 43 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) (n + 1)) |
| 44 | (k : Fin (n + 2)) (d : ℤ) |
| 45 | (e : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 46 | e.IsAllowedOn (fun l => ((a.delete k).1 l).down)}) |
| 47 | (x : AddMonoidAlgebra |
| 48 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 49 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 50 | e.IsAllowedOn (fun l => ((a.delete k).1 l).down)}) : |
| 51 | (StandardCech.MvPolynomial.coordinateHomogeneousLaurentDeleteLinearMap (R := R) a k d x).coeff |
| 52 | (StandardCech.MvPolynomial.coordinateLaurentExponentDeleteEmbedding a k d e) = x.coeff e := by |
| 53 | rw [StandardCech.MvPolynomial.coordinateHomogeneousLaurentDeleteLinearMap, |
| 54 | AddMonoidAlgebra.coeff_mapDomainLinearMap, |
| 55 | Finsupp.mapDomain_apply_of_injective (StandardCech.MvPolynomial.coordinateLaurentExponentDeleteEmbedding a k d).injective] |
| 56 | |
| 57 | private abbrev coordinateHomogeneousLaurentWeightFactor |
| 58 | [LinearOrder σ] (d : ℤ) {n : ℕ} |
| 59 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) : |
| 60 | ModuleCat.{u} (coordinateBaseRing R) := |
| 61 | ModuleCat.of (coordinateBaseRing R) |
| 62 | (AddMonoidAlgebra (coordinateBaseRing R) |
| 63 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 64 | e.IsAllowedOn (fun k => (a.1 k).down)}) |
| 65 | |
| 66 | private noncomputable def coordinateHomogeneousLaurentWeightProjection |
| 67 | [LinearOrder σ] (d : ℤ) {n : ℕ} |
| 68 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) : |
| 69 | LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject (R := R) (σ := σ) d n ⟶ |
| 70 | coordinateHomogeneousLaurentWeightFactor (R := R) d a := |
| 71 | Pi.π _ a |
| 72 | |
| 73 | private noncomputable def coordinateHomogeneousLaurentWeightFactorCoefficient |
| 74 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 75 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) : |
| 76 | coordinateHomogeneousLaurentWeightFactor (R := R) d a ⟶ |
| 77 | ModuleCat.of (coordinateBaseRing R) (coordinateBaseRing R) := by |
| 78 | classical |
| 79 | exact if h : e.IsAllowedOn (fun k => (a.1 k).down) then |
| 80 | ModuleCat.ofHom ((Finsupp.lapply (R := coordinateBaseRing R) |
| 81 | (M := coordinateBaseRing R) |
| 82 | (⟨e, h⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 83 | e.IsAllowedOn (fun k => (a.1 k).down)})).comp |
| 84 | (AddMonoidAlgebra.coeffLinearEquiv |
| 85 | (coordinateBaseRing R)).toLinearMap) |
| 86 | else 0 |
| 87 | |
| 88 | private theorem coordinateHomogeneousLaurentWeightFactorCoefficient_delete |
| 89 | [LinearOrder σ] {n : ℕ} |
| 90 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) (n + 1)) |
| 91 | (k : Fin (n + 2)) (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) : |
| 92 | ModuleCat.ofHom (StandardCech.MvPolynomial.coordinateHomogeneousLaurentDeleteLinearMap |
| 93 | (R := R) a k d) ≫ |
| 94 | coordinateHomogeneousLaurentWeightFactorCoefficient |
| 95 | (R := R) d e a = |
| 96 | coordinateHomogeneousLaurentWeightFactorCoefficient |
| 97 | (R := R) d e (a.delete k) := by |
| 98 | classical |
| 99 | by_cases hdelete : e.IsAllowedOn (fun l => ((a.delete k).1 l).down) |
| 100 | · have hfull : e.IsAllowedOn (fun l => (a.1 l).down) := |
| 101 | (StandardCech.MvPolynomial.coordinateLaurentExponentDeleteEmbedding a k d |
| 102 | (⟨e, hdelete⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 103 | e.IsAllowedOn (fun l => ((a.delete k).1 l).down)})).2 |
| 104 | rw [coordinateHomogeneousLaurentWeightFactorCoefficient, |
| 105 | dite_eq_left hfull, |
| 106 | coordinateHomogeneousLaurentWeightFactorCoefficient, |
| 107 | dite_eq_left hdelete] |
| 108 | apply ModuleCat.hom_ext |
| 109 | apply AddMonoidAlgebra.lhom_ext' |
| 110 | intro f |
| 111 | apply LinearMap.ext |
| 112 | intro r |
| 113 | by_cases hf : f = ⟨e, hdelete⟩ |
| 114 | · subst f |
| 115 | have hembed : StandardCech.MvPolynomial.coordinateLaurentExponentDeleteEmbedding a k d |
| 116 | (⟨e, hdelete⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 117 | e.IsAllowedOn (fun l => ((a.delete k).1 l).down)}) = |
| 118 | (⟨e, hfull⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 119 | e.IsAllowedOn (fun l => (a.1 l).down)}) := by |
| 120 | rfl |
| 121 | simp [hembed] |
| 122 | · have hne : StandardCech.MvPolynomial.coordinateLaurentExponentDeleteEmbedding a k d f ≠ |
| 123 | (⟨e, hfull⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 124 | e.IsAllowedOn (fun l => (a.1 l).down)}) := by |
| 125 | intro h |
| 126 | apply hf |
| 127 | apply Subtype.ext |
| 128 | exact congrArg |
| 129 | (fun x : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 130 | e.IsAllowedOn (fun l => (a.1 l).down)} => x.1) h |
| 131 | simp [hne, hf] |
| 132 | · by_cases hfull : e.IsAllowedOn (fun l => (a.1 l).down) |
| 133 | · rw [coordinateHomogeneousLaurentWeightFactorCoefficient, |
| 134 | dite_eq_left hfull, |
| 135 | coordinateHomogeneousLaurentWeightFactorCoefficient, |
| 136 | dite_eq_right hdelete] |
| 137 | apply ModuleCat.hom_ext |
| 138 | apply AddMonoidAlgebra.lhom_ext' |
| 139 | intro f |
| 140 | apply LinearMap.ext |
| 141 | intro r |
| 142 | have hne : StandardCech.MvPolynomial.coordinateLaurentExponentDeleteEmbedding a k d f ≠ |
| 143 | (⟨e, hfull⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 144 | e.IsAllowedOn (fun l => (a.1 l).down)}) := by |
| 145 | intro h |
| 146 | apply hdelete |
| 147 | have hfe : f.1 = e := congrArg Subtype.val h |
| 148 | rw [← hfe] |
| 149 | exact f.2 |
| 150 | simp [hne] |
| 151 | · simp [coordinateHomogeneousLaurentWeightFactorCoefficient, |
| 152 | hdelete, hfull] |
| 153 | |
| 154 | private noncomputable def coordinateHomogeneousLaurentWeightCoefficientProjection |
| 155 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 156 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) : |
| 157 | LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject (R := R) (σ := σ) d n ⟶ |
| 158 | ModuleCat.of (coordinateBaseRing R) (coordinateBaseRing R) := by |
| 159 | classical |
| 160 | exact coordinateHomogeneousLaurentWeightProjection (R := R) d a ≫ |
| 161 | coordinateHomogeneousLaurentWeightFactorCoefficient (R := R) d e a |
| 162 | |
| 163 | private theorem coordinateHomogeneousLaurentOrderedCechCoface_comp_weightCoefficient |
| 164 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) |
| 165 | (n : ℕ) (k : Fin (n + 2)) |
| 166 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) (n + 1)) : |
| 167 | LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechCoface |
| 168 | (R := R) (σ := σ) d n k ≫ |
| 169 | coordinateHomogeneousLaurentWeightCoefficientProjection |
| 170 | (R := R) d e a = |
| 171 | coordinateHomogeneousLaurentWeightCoefficientProjection |
| 172 | (R := R) d e (a.delete k) := by |
| 173 | unfold coordinateHomogeneousLaurentWeightCoefficientProjection |
| 174 | rw [← Category.assoc] |
| 175 | unfold coordinateHomogeneousLaurentWeightProjection |
| 176 | rw [LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechCoface_comp_π] |
| 177 | erw [Category.assoc] |
| 178 | rw [coordinateHomogeneousLaurentWeightFactorCoefficient_delete] |
| 179 | |
| 180 | private theorem coordinateHomogeneousLaurentOrderedCechCoface_weightCoefficient_apply |
| 181 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) |
| 182 | (n : ℕ) (k : Fin (n + 2)) |
| 183 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) (n + 1)) |
| 184 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 185 | (R := R) (σ := σ) d n) : |
| 186 | (coordinateHomogeneousLaurentWeightCoefficientProjection |
| 187 | (R := R) d e a).hom |
| 188 | ((LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechCoface |
| 189 | (R := R) (σ := σ) d n k).hom x) = |
| 190 | (coordinateHomogeneousLaurentWeightCoefficientProjection |
| 191 | (R := R) d e (a.delete k)).hom x := by |
| 192 | have h := congrArg (fun f => f.hom x) |
| 193 | (coordinateHomogeneousLaurentOrderedCechCoface_comp_weightCoefficient |
| 194 | (R := R) d e n k a) |
| 195 | exact h |
| 196 | |
| 197 | @[simp] |
| 198 | private theorem coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_allowed |
| 199 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 200 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) |
| 201 | (h : e.IsAllowedOn (fun k => (a.1 k).down)) |
| 202 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 203 | (R := R) (σ := σ) d n) : |
| 204 | (coordinateHomogeneousLaurentWeightCoefficientProjection |
| 205 | (R := R) d e a).hom x = |
| 206 | ((coordinateHomogeneousLaurentWeightProjection |
| 207 | (R := R) d a).hom x).coeff |
| 208 | (⟨e, h⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 209 | e.IsAllowedOn (fun k => (a.1 k).down)}) := by |
| 210 | simp [coordinateHomogeneousLaurentWeightCoefficientProjection, |
| 211 | coordinateHomogeneousLaurentWeightFactorCoefficient, h] |
| 212 | |
| 213 | @[simp] |
| 214 | private theorem coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_not_allowed |
| 215 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 216 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) |
| 217 | (h : ¬e.IsAllowedOn (fun k => (a.1 k).down)) |
| 218 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 219 | (R := R) (σ := σ) d n) : |
| 220 | (coordinateHomogeneousLaurentWeightCoefficientProjection |
| 221 | (R := R) d e a).hom x = 0 := by |
| 222 | simp [coordinateHomogeneousLaurentWeightCoefficientProjection, |
| 223 | coordinateHomogeneousLaurentWeightFactorCoefficient, h] |
| 224 | |
| 225 | /-- Project a homogeneous-weight Cech cochain onto one global Laurent weight. Its values form a |
| 226 | support-restricted ordered Cech cochain indexed by the negative support of that weight. -/ |
| 227 | noncomputable def coordinateHomogeneousLaurentWeightComponent |
| 228 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (n : ℕ) : |
| 229 | LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject (R := R) (σ := σ) d n →ₗ[ |
| 230 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens))] |
| 231 | OrderedCechSupportContraction.OrderedCechSupportCochain |
| 232 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 233 | e.liftedNegativeSupport n := by |
| 234 | classical |
| 235 | exact |
| 236 | { toFun := fun x => |
| 237 | ⟨fun a => |
| 238 | (coordinateHomogeneousLaurentWeightCoefficientProjection |
| 239 | (R := R) d e a).hom x, |
| 240 | fun a ha => by |
| 241 | have hnot : ¬e.IsAllowedOn (fun k => (a.1 k).down) := |
| 242 | fun h => ha ((e.isAllowedOn_iff_liftedNegativeSupport_subset a).mp h) |
| 243 | simp [coordinateHomogeneousLaurentWeightCoefficientProjection, |
| 244 | coordinateHomogeneousLaurentWeightFactorCoefficient, hnot]⟩ |
| 245 | map_add' := fun x y => by |
| 246 | apply Subtype.ext |
| 247 | funext a |
| 248 | simp |
| 249 | map_smul' := fun r x => by |
| 250 | apply Subtype.ext |
| 251 | funext a |
| 252 | simp } |
| 253 | |
| 254 | @[simp] |
| 255 | private theorem coordinateHomogeneousLaurentWeightComponent_apply |
| 256 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (n : ℕ) |
| 257 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 258 | (R := R) (σ := σ) d n) |
| 259 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) : |
| 260 | (coordinateHomogeneousLaurentWeightComponent |
| 261 | (R := R) d e n x).1 a = |
| 262 | (coordinateHomogeneousLaurentWeightCoefficientProjection |
| 263 | (R := R) d e a).hom x := rfl |
| 264 | |
| 265 | /-- On a tuple allowing `e`, the `e`-component is the corresponding Laurent coefficient. -/ |
| 266 | theorem coordinateHomogeneousLaurentWeightComponent_apply_of_allowed |
| 267 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 268 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) |
| 269 | (h : e.IsAllowedOn (fun k => (a.1 k).down)) |
| 270 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 271 | (R := R) (σ := σ) d n) : |
| 272 | (coordinateHomogeneousLaurentWeightComponent (R := R) d e n x).1 a = |
| 273 | ((Pi.π (fun b : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n => |
| 274 | ModuleCat.of |
| 275 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 276 | (AddMonoidAlgebra |
| 277 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 278 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 279 | e.IsAllowedOn (fun k => (b.1 k).down)})) a).hom x).coeff |
| 280 | (⟨e, h⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 281 | e.IsAllowedOn (fun k => (a.1 k).down)}) := by |
| 282 | rw [coordinateHomogeneousLaurentWeightComponent_apply, |
| 283 | coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_allowed (h := h)] |
| 284 | rfl |
| 285 | |
| 286 | /-- On a tuple not allowing `e`, the `e`-component vanishes. -/ |
| 287 | theorem coordinateHomogeneousLaurentWeightComponent_apply_of_not_allowed |
| 288 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 289 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) |
| 290 | (h : ¬e.IsAllowedOn (fun k => (a.1 k).down)) |
| 291 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 292 | (R := R) (σ := σ) d n) : |
| 293 | (coordinateHomogeneousLaurentWeightComponent (R := R) d e n x).1 a = 0 := by |
| 294 | rw [coordinateHomogeneousLaurentWeightComponent_apply, |
| 295 | coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_not_allowed (h := h)] |
| 296 | |
| 297 | private def orderedCechSupportEvaluation |
| 298 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (n : ℕ) |
| 299 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) : |
| 300 | OrderedCechSupportContraction.OrderedCechSupportCochain (coordinateBaseRing R) |
| 301 | e.liftedNegativeSupport n →ₗ[coordinateBaseRing R] |
| 302 | coordinateBaseRing R where |
| 303 | toFun s := s.1 a |
| 304 | map_add' _ _ := rfl |
| 305 | map_smul' _ _ := rfl |
| 306 | |
| 307 | private noncomputable def coordinateHomogeneousLaurentWeightSingle |
| 308 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 309 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) : |
| 310 | ModuleCat.of (coordinateBaseRing R) |
| 311 | (OrderedCechSupportContraction.OrderedCechSupportCochain (coordinateBaseRing R) |
| 312 | e.liftedNegativeSupport n) ⟶ |
| 313 | coordinateHomogeneousLaurentWeightFactor (R := R) d a := by |
| 314 | classical |
| 315 | exact if h : e.IsAllowedOn (fun k => (a.1 k).down) then |
| 316 | ModuleCat.ofHom ((AddMonoidAlgebra.lsingle (R := coordinateBaseRing R) |
| 317 | (⟨e, h⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 318 | e.IsAllowedOn (fun k => (a.1 k).down)})).comp |
| 319 | (orderedCechSupportEvaluation (R := R) d e n a)) |
| 320 | else 0 |
| 321 | |
| 322 | @[simp] |
| 323 | private theorem coordinateHomogeneousLaurentWeightSingle_apply_of_allowed |
| 324 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 325 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) |
| 326 | (h : e.IsAllowedOn (fun k => (a.1 k).down)) |
| 327 | (s : OrderedCechSupportContraction.OrderedCechSupportCochain (coordinateBaseRing R) |
| 328 | e.liftedNegativeSupport n) : |
| 329 | (coordinateHomogeneousLaurentWeightSingle |
| 330 | (R := R) d e a).hom s = |
| 331 | AddMonoidAlgebra.single |
| 332 | (⟨e, h⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 333 | e.IsAllowedOn (fun k => (a.1 k).down)}) (s.1 a) := by |
| 334 | simp [coordinateHomogeneousLaurentWeightSingle, |
| 335 | orderedCechSupportEvaluation, h] |
| 336 | |
| 337 | @[simp] |
| 338 | private theorem coordinateHomogeneousLaurentWeightSingle_apply_of_not_allowed |
| 339 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) {n : ℕ} |
| 340 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) |
| 341 | (h : ¬e.IsAllowedOn (fun k => (a.1 k).down)) |
| 342 | (s : OrderedCechSupportContraction.OrderedCechSupportCochain (coordinateBaseRing R) |
| 343 | e.liftedNegativeSupport n) : |
| 344 | (coordinateHomogeneousLaurentWeightSingle |
| 345 | (R := R) d e a).hom s = 0 := by |
| 346 | simp [coordinateHomogeneousLaurentWeightSingle, h] |
| 347 | |
| 348 | /-- Insert a support-restricted ordered Cech cochain as one global Laurent weight in the |
| 349 | homogeneous-weight Cech term. -/ |
| 350 | noncomputable def coordinateHomogeneousLaurentWeightInclusion |
| 351 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (n : ℕ) : |
| 352 | OrderedCechSupportContraction.OrderedCechSupportCochain |
| 353 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 354 | e.liftedNegativeSupport n →ₗ[ |
| 355 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens))] |
| 356 | LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject (R := R) (σ := σ) d n := by |
| 357 | classical |
| 358 | exact (Pi.lift fun a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n => |
| 359 | coordinateHomogeneousLaurentWeightSingle (R := R) d e a).hom |
| 360 | |
| 361 | private theorem coordinateHomogeneousLaurentWeightProjection_inclusion_apply |
| 362 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (n : ℕ) |
| 363 | (a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n) |
| 364 | (s : OrderedCechSupportContraction.OrderedCechSupportCochain (coordinateBaseRing R) |
| 365 | e.liftedNegativeSupport n) : |
| 366 | (coordinateHomogeneousLaurentWeightProjection (R := R) d a).hom |
| 367 | (coordinateHomogeneousLaurentWeightInclusion |
| 368 | (R := R) d e n s) = |
| 369 | (coordinateHomogeneousLaurentWeightSingle |
| 370 | (R := R) d e a).hom s := by |
| 371 | classical |
| 372 | unfold coordinateHomogeneousLaurentWeightInclusion |
| 373 | unfold coordinateHomogeneousLaurentWeightProjection |
| 374 | have h := congrArg (fun f => f.hom s) |
| 375 | (Pi.lift_comp_π |
| 376 | (fun b : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) n => |
| 377 | coordinateHomogeneousLaurentWeightSingle (R := R) d e b) a) |
| 378 | exact h |
| 379 | |
| 380 | /-- Projecting a cochain immediately after inserting it at the same weight is the identity. -/ |
| 381 | theorem coordinateHomogeneousLaurentWeightComponent_inclusion |
| 382 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (n : ℕ) |
| 383 | (s : OrderedCechSupportContraction.OrderedCechSupportCochain |
| 384 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 385 | e.liftedNegativeSupport n) : |
| 386 | coordinateHomogeneousLaurentWeightComponent (R := R) d e n |
| 387 | (coordinateHomogeneousLaurentWeightInclusion |
| 388 | (R := R) d e n s) = s := by |
| 389 | apply Subtype.ext |
| 390 | funext a |
| 391 | by_cases h : e.IsAllowedOn (fun k => (a.1 k).down) |
| 392 | · rw [coordinateHomogeneousLaurentWeightComponent_apply, |
| 393 | coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_allowed (h := h), |
| 394 | coordinateHomogeneousLaurentWeightProjection_inclusion_apply, |
| 395 | coordinateHomogeneousLaurentWeightSingle_apply_of_allowed (h := h)] |
| 396 | simp |
| 397 | · rw [coordinateHomogeneousLaurentWeightComponent_apply, |
| 398 | coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_not_allowed (h := h)] |
| 399 | have hsupport : ¬e.liftedNegativeSupport ⊆ Set.range a.1 := |
| 400 | fun hs => h ((e.isAllowedOn_iff_liftedNegativeSupport_subset a).2 hs) |
| 401 | exact (s.2 a hsupport).symm |
| 402 | |
| 403 | /-- Inserting one global Laurent weight has zero component at every distinct weight. -/ |
| 404 | theorem coordinateHomogeneousLaurentWeightComponent_inclusion_ne |
| 405 | [LinearOrder σ] (d : ℤ) |
| 406 | (e f : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (hef : f ≠ e) (n : ℕ) |
| 407 | (s : OrderedCechSupportContraction.OrderedCechSupportCochain |
| 408 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 409 | e.liftedNegativeSupport n) : |
| 410 | coordinateHomogeneousLaurentWeightComponent (R := R) d f n |
| 411 | (coordinateHomogeneousLaurentWeightInclusion |
| 412 | (R := R) d e n s) = 0 := by |
| 413 | apply Subtype.ext |
| 414 | funext a |
| 415 | by_cases hf : f.IsAllowedOn (fun k => (a.1 k).down) |
| 416 | · rw [coordinateHomogeneousLaurentWeightComponent_apply, |
| 417 | coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_allowed (h := hf), |
| 418 | coordinateHomogeneousLaurentWeightProjection_inclusion_apply] |
| 419 | by_cases he : e.IsAllowedOn (fun k => (a.1 k).down) |
| 420 | · rw [coordinateHomogeneousLaurentWeightSingle_apply_of_allowed (h := he)] |
| 421 | have hne : |
| 422 | (⟨e, he⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 423 | e.IsAllowedOn (fun k => (a.1 k).down)}) ≠ |
| 424 | (⟨f, hf⟩ : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // |
| 425 | e.IsAllowedOn (fun k => (a.1 k).down)}) := by |
| 426 | intro h |
| 427 | exact hef (congrArg Subtype.val h).symm |
| 428 | simp [hne] |
| 429 | · rw [coordinateHomogeneousLaurentWeightSingle_apply_of_not_allowed (h := he)] |
| 430 | rfl |
| 431 | · rw [coordinateHomogeneousLaurentWeightComponent_apply, |
| 432 | coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_not_allowed (h := hf)] |
| 433 | rfl |
| 434 | |
| 435 | /-- Fixed-weight projection commutes with the alternating ordered Cech differentials. -/ |
| 436 | theorem coordinateHomogeneousLaurentWeightComponent_differential |
| 437 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (n : ℕ) |
| 438 | (x : LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechObject |
| 439 | (R := R) (σ := σ) d n) : |
| 440 | coordinateHomogeneousLaurentWeightComponent (R := R) d e (n + 1) |
| 441 | ((LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechDifferential |
| 442 | (R := R) (σ := σ) d n).hom x) = |
| 443 | OrderedCechSupportContraction.orderedCechSupportDifferential |
| 444 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 445 | e.liftedNegativeSupport n |
| 446 | (coordinateHomogeneousLaurentWeightComponent |
| 447 | (R := R) d e n x) := by |
| 448 | apply Subtype.ext |
| 449 | funext a |
| 450 | simp only [LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechDifferential, |
| 451 | Int.reduceNeg, ModuleCat.hom_sum, ModuleCat.hom_smul, LinearMap.coe_sum, |
| 452 | LinearMap.coe_smul, Finset.sum_apply, Pi.smul_apply, map_sum, |
| 453 | LinearMap.map_smul_of_tower, AddSubmonoidClass.coe_finsetSum, |
| 454 | SetLike.val_smul_of_tower, zsmul_eq_mul, Int.cast_pow, Int.cast_neg, |
| 455 | Int.cast_one, Pi.mul_apply, Pi.pow_apply, Pi.neg_apply, Pi.one_apply, |
| 456 | coordinateHomogeneousLaurentWeightComponent_apply, |
| 457 | OrderedCechSupportContraction.orderedCechSupportDifferential, LinearMap.coe_mk, |
| 458 | AddHom.coe_mk] |
| 459 | apply Finset.sum_congr rfl |
| 460 | intro k _ |
| 461 | rw [coordinateHomogeneousLaurentOrderedCechCoface_weightCoefficient_apply] |
| 462 | |
| 463 | /-- Fixed-weight inclusion commutes with the alternating ordered Cech differentials. -/ |
| 464 | theorem coordinateHomogeneousLaurentWeightInclusion_differential |
| 465 | [LinearOrder σ] (d : ℤ) (e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d) (n : ℕ) |
| 466 | (s : OrderedCechSupportContraction.OrderedCechSupportCochain |
| 467 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 468 | e.liftedNegativeSupport n) : |
| 469 | (LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechDifferential |
| 470 | (R := R) (σ := σ) d n).hom |
| 471 | (coordinateHomogeneousLaurentWeightInclusion |
| 472 | (R := R) d e n s) = |
| 473 | coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 474 | (OrderedCechSupportContraction.orderedCechSupportDifferential |
| 475 | Γ(Spec (CommRingCat.of R), (⊤ : (Spec (CommRingCat.of R)).Opens)) |
| 476 | e.liftedNegativeSupport n s) := by |
| 477 | apply Concrete.limit_ext (Discrete.functor fun |
| 478 | a : OrderedBaseCech.Scheme.Modules.OrderedCechIndex (ULift.{u} σ) (n + 1) => |
| 479 | coordinateHomogeneousLaurentWeightFactor (R := R) d a) |
| 480 | intro a |
| 481 | rcases a with ⟨a⟩ |
| 482 | change |
| 483 | (coordinateHomogeneousLaurentWeightProjection (R := R) d a).hom |
| 484 | ((LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechDifferential |
| 485 | (R := R) (σ := σ) d n).hom |
| 486 | (coordinateHomogeneousLaurentWeightInclusion |
| 487 | (R := R) d e n s)) = |
| 488 | (coordinateHomogeneousLaurentWeightProjection (R := R) d a).hom |
| 489 | (coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 490 | (OrderedCechSupportContraction.orderedCechSupportDifferential |
| 491 | (coordinateBaseRing R) e.liftedNegativeSupport n s)) |
| 492 | apply AddMonoidAlgebra.coeff_injective |
| 493 | ext f |
| 494 | have hf : f.1.IsAllowedOn (fun k => (a.1 k).down) := f.2 |
| 495 | have hleft : |
| 496 | ((coordinateHomogeneousLaurentWeightProjection (R := R) d a).hom |
| 497 | ((LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechDifferential |
| 498 | (R := R) (σ := σ) d n).hom |
| 499 | (coordinateHomogeneousLaurentWeightInclusion |
| 500 | (R := R) d e n s))).coeff f = |
| 501 | (coordinateHomogeneousLaurentWeightComponent (R := R) d f.1 (n + 1) |
| 502 | ((LaurentCechData.MvPolynomial.coordinateHomogeneousLaurentOrderedCechDifferential |
| 503 | (R := R) (σ := σ) d n).hom |
| 504 | (coordinateHomogeneousLaurentWeightInclusion |
| 505 | (R := R) d e n s))).1 a := by |
| 506 | rw [coordinateHomogeneousLaurentWeightComponent_apply, |
| 507 | coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_allowed |
| 508 | (h := hf)] |
| 509 | have hright : |
| 510 | ((coordinateHomogeneousLaurentWeightProjection (R := R) d a).hom |
| 511 | (coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 512 | (OrderedCechSupportContraction.orderedCechSupportDifferential |
| 513 | (coordinateBaseRing R) e.liftedNegativeSupport n s))).coeff f = |
| 514 | (coordinateHomogeneousLaurentWeightComponent (R := R) d f.1 (n + 1) |
| 515 | (coordinateHomogeneousLaurentWeightInclusion (R := R) d e (n + 1) |
| 516 | (OrderedCechSupportContraction.orderedCechSupportDifferential |
| 517 | (coordinateBaseRing R) e.liftedNegativeSupport n s))).1 a := by |
| 518 | rw [coordinateHomogeneousLaurentWeightComponent_apply, |
| 519 | coordinateHomogeneousLaurentWeightCoefficientProjection_apply_of_allowed |
| 520 | (h := hf)] |
| 521 | rw [hleft, hright, |
| 522 | coordinateHomogeneousLaurentWeightComponent_differential] |
| 523 | by_cases hfe : f.1 = e |
| 524 | · subst e |
| 525 | rw [coordinateHomogeneousLaurentWeightComponent_inclusion, |
| 526 | coordinateHomogeneousLaurentWeightComponent_inclusion] |
| 527 | · rw [coordinateHomogeneousLaurentWeightComponent_inclusion_ne |
| 528 | (hef := hfe), |
| 529 | map_zero, |
| 530 | coordinateHomogeneousLaurentWeightComponent_inclusion_ne |
| 531 | (hef := hfe)] |
| 532 | |
| 533 | end |
| 534 | |
| 535 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistCechWeightComponents.MvPolynomial |