Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import Aesop.BuiltinRules |
| 4 | import Mathlib.RingTheory.RegularLocalRing.Defs |
| 5 | import Mathlib.RingTheory.SimpleRing.Principal |
| 6 | public import Lib.Cohomology.Hodge.DepthVanishing |
| 7 | public import Lib.Cohomology.Etale.RelativeChains |
| 8 | import Lib.Cohomology.Etale.DenseSubfunctors |
| 9 | import Lib.PadicComparison.HodgeTate.ExtCocycles |
| 10 | |
| 11 | /-! |
| 12 | # Grothendieck's symbol [dT/T], cut-out loci and Hodge classes of points |
| 13 | |
| 14 | Let `k` be a field (of characteristic zero for `symbolClass_succ`). Spaces are functors `X` from |
| 15 | `k`-algebras to sets. `New.Variety.HodgeH (relFreeAb U) d` is the Hodge cohomology of `X` relative |
| 16 | to a subfunctor `U`, and `New.Variety.offPoints s` is the complement of a set `s` of `k`-points; |
| 17 | `ComesFromPoints s K x` says that `x ∈ X(K)` is the image of some `z ∈ s`. Grothendieck's symbol |
| 18 | `New.Variety.symbolClass` is a class in the Hodge cohomology of affine d-space relative to the |
| 19 | complement of the origin. `[dg / g]` denotes its pull-back along a tuple of functions `g`. |
| 20 | |
| 21 | ## Main definitions and results |
| 22 | |
| 23 | * `New.Variety.CutsOutLocus X P x f` says that the elements `f i` of `R` cut out the locus of |
| 24 | `Spec R` where the point `x` of `X(R)` satisfies `P`. |
| 25 | * `New.Variety.symbolClass`: the class, given by the cocycle (v, l_1, …, l_d) ↦ det(l) · dT(v). |
| 26 | * `New.Variety.symbolClass_transformation`: the transformation law between the pull-backs along two |
| 27 | tuples. |
| 28 | * `New.Variety.symbolClass_succ`: the class in degree d + 1 restricts to the product of the classes |
| 29 | in degrees d and 1. |
| 30 | * `New.Variety.IsPointSum`: near each `z ∈ s`, a relative class is `n z • [dg / g]` for functions |
| 31 | `g` that cut out `z`; `New.Variety.pointClass` is the image of a chosen class of multiplicity `1`. |
| 32 | * `New.Variety.IsPointSum.map_eq_smul_pointClass`, `New.Variety.IsPointSum.map_eq_sum_pointClass`: |
| 33 | on a separated `X`, a class with support in a finite set `s` and multiplicities `n` maps to |
| 34 | `∑ z ∈ s, n z • pointClass d z`. The proof is by excision for one point and by Mayer–Vietoris for |
| 35 | several. |
| 36 | |
| 37 | Notions from other files: |
| 38 | * `New.Variety.unimodular`: The subfunctor of affine d-space of vectors whose entries generate the |
| 39 | unit ideal. |
| 40 | * `New.Variety.pointMap`: The map Hom(A, −) → Y given by a point y of Y(A) (Yoneda). |
| 41 | * `New.Variety.IsSeparatedFunctor`: X is separated: for x, y in X(A) there is an ideal J of A such |
| 42 | that φ: A → B makes x and y equal exactly when φ kills J. |
| 43 | * `New.Variety.HodgeTest`: a test for Hodge cohomology over k, namely a commutative k-algebra A and |
| 44 | a finite index set ι, standing for the pair (A, M) with M = A^ι. |
| 45 | * `New.Variety.HodgeTest.sqZeroExt`: The functor sending a pair (A, M) to the square-zero extension |
| 46 | A ⊕ M, as a k-algebra. |
| 47 | * `New.Variety.hodgeCoeff`: The functor (A, M) ↦ ⋀_A M to abelian groups, the coefficients. |
| 48 | * `New.Variety.EtaleChart`: A chart of X: a k-algebra R with finitely many étale coordinates and a |
| 49 | point of X(R) that embeds Spec R as an open subfunctor (its image is `a.locus`). |
| 50 | * `New.Variety.HodgeH`: Hodge cohomology: for a functor N from k-algebras to abelian groups, Ext^q |
| 51 | from (A, M) ↦ N(A ⊕ M) to (A, M) ↦ ⋀_A M, in functors on pairs. |
| 52 | |
| 53 | ## Relation to the literature |
| 54 | |
| 55 | Known; see `Lib.Cohomology.Hodge.FixedPointFormula` and |
| 56 | `Lib.Cohomology.PointClass.LinearIndependence` for sources. |
| 57 | -/ |
| 58 | |
| 59 | @[expose] public section |
| 60 | |
| 61 | noncomputable section |
| 62 | |
| 63 | namespace New.Variety |
| 64 | |
| 65 | /-! |
| 66 | ## Functions cutting out a locus of points, and its complement |
| 67 | |
| 68 | * `New.Variety.CutsOutLocus.preimage_fieldLocus_not`: the locus where `P` fails at every field point |
| 69 | pulls back to the locus where `g` is a unimodular vector. |
| 70 | -/ |
| 71 | |
| 72 | section LocusEquations |
| 73 | |
| 74 | open CategoryTheory RingHom Set Ideal |
| 75 | |
| 76 | variable {k : Type} [Field k] {X : CommAlg k ⥤ Type 1} {d : ℕ} {R K : CommAlg k} |
| 77 | |
| 78 | /-- Let `ζ : R ⟶ k` be a `k`-point of `Spec R` and `φ : R ⟶ K` a map of `k`-algebras. If the |
| 79 | kernel of `ζ` lies in the kernel of `φ`, then `φ` is `ζ` followed by the structure map `k ⟶ K`. -/ |
| 80 | lemma eq_comp_structureMap_of_ker_le {ζ : R ⟶ CommAlgCat.of k k} {φ : R ⟶ K} |
| 81 | (h_ker : ker ζ.hom ≤ ker φ.hom) : |
| 82 | φ = ζ ≫ structureMap := by |
| 83 | ext r |
| 84 | -- `r - ζ r` lies in the kernel of `ζ`, hence in that of `φ` |
| 85 | have h_zero : φ (r - algebraMap k R (ζ r)) = 0 := mem_ker.mp (h_ker (by simp)) |
| 86 | simpa [sub_eq_zero] using h_zero |
| 87 | |
| 88 | /-- The elements `f i` of `R` cut out the locus where the point `x` of `X(R)` satisfies `P`: a map |
| 89 | `α : R ⟶ C` kills every `f i` exactly when the image of `x` in `X(C)` satisfies `P`. -/ |
| 90 | def CutsOutLocus (X : CommAlg k ⥤ Type 1) (P : (K : CommAlg k) → X.obj K → Prop) (x : X.obj R) |
| 91 | (f : Fin d → R) : Prop := |
| 92 | ∀ (C : CommAlg k) (α : R ⟶ C), span (Set.range f) ≤ ker α.hom ↔ P C (X.map α x) |
| 93 | |
| 94 | section OffPoints |
| 95 | |
| 96 | variable {x : X.obj K} {s : Set (X.obj (CommAlgCat.of k k))} |
| 97 | |
| 98 | /-- Let `X` be separated, `K` a field and `s` a set of `k`-points of `X`. A point `x` of `X(K)` |
| 99 | lies in `offPoints s`, the points none of whose images in fields comes from `s`, exactly when `x` |
| 100 | itself is not the image of a point of `s`. -/ |
| 101 | lemma mem_offPoints_iff [IsSeparatedFunctor X] (hK : IsField K) : |
| 102 | x ∈ offPoints s K ↔ ¬ComesFromPoints (X := X) s K x := by |
| 103 | constructor |
| 104 | · -- take the identity map of the field `K` |
| 105 | intro hx |
| 106 | simpa [X.map_id_apply] using hx K (𝟙 K) hK |
| 107 | · rintro hx C φ hC ⟨z, hz, h_eq⟩ |
| 108 | -- `x` and the image of `z` differ over the field `K`; as `X` is separated, they stay |
| 109 | -- different in the field `C` |
| 110 | have hx_ne : x ≠ X.map structureMap z := fun h_eq_z ↦ hx ⟨z, hz, h_eq_z⟩ |
| 111 | have h_ne : X.map φ x ≠ X.map φ (X.map structureMap z) := |
| 112 | mem_offDiagonal_of_ne hK hx_ne C φ hC |
| 113 | exact h_ne (h_eq.trans (map_map_structureMap φ z).symm) |
| 114 | |
| 115 | end OffPoints |
| 116 | |
| 117 | section CutsOut |
| 118 | |
| 119 | variable {g : Fin d → R} {x : X.obj R} {P : (K : CommAlg k) → X.obj K → Prop} |
| 120 | |
| 121 | /-- If `g` cuts out the locus where `x` satisfies `P`, then the preimage in `Spec R` of the locus |
| 122 | where `P` fails at every field point is the locus where the `g i` generate the unit ideal. -/ |
| 123 | lemma CutsOutLocus.preimage_fieldLocus_not (h : CutsOutLocus X P x g) : |
| 124 | (fieldLocus fun (K : CommAlg k) (y : X.obj K) ↦ ¬P K y).preimage (pointMap x) = |
| 125 | unimodular.preimage (pointMap ⟨g⟩) := by |
| 126 | ext C ⟨φ⟩ |
| 127 | -- Both sides say that no map `ψ` from `C` to a field kills the image of the ideal of the `g i`. |
| 128 | have h_left : ⟨φ⟩ ∈ ((fieldLocus fun (K : CommAlg k) (y : X.obj K) ↦ ¬P K y).preimage |
| 129 | (pointMap x)).obj C ↔ |
| 130 | ∀ (K : CommAlg k) (ψ : C ⟶ K), IsField K → ¬span (range g) ≤ ker (φ ≫ ψ).hom := by |
| 131 | refine forall₃_congr fun K ψ _ ↦ ?_ |
| 132 | rw [h K (φ ≫ ψ), X.map_comp_apply] |
| 133 | rfl |
| 134 | have h_right : ⟨φ⟩ ∈ (unimodular.preimage (pointMap ⟨g⟩)).obj C ↔ |
| 135 | (span (range g)).map φ.hom = ⊤ := by |
| 136 | rw [map_span, ← range_comp] |
| 137 | rfl |
| 138 | rw [h_left, h_right, map_eq_top_iff_forall_isField] |
| 139 | |
| 140 | end CutsOut |
| 141 | |
| 142 | end LocusEquations |
| 143 | |
| 144 | /-! |
| 145 | ## Grothendieck's symbol [dT/T] and its product formula |
| 146 | |
| 147 | A point v of (A ⊕ M)^d off the origin has a witness: a linear form l ∈ A^d with value 1 on the |
| 148 | A-part of v (`New.Variety.jouanolouRel`). Points with several witnesses turn cocycles into relative |
| 149 | classes. The cocycle condition and the product formula are Laplace expansions |
| 150 | (`New.Variety.sum_minor_eq_mul_det`). |
| 151 | |
| 152 | * `New.Variety.symbolClass_one`: in degree 1 the class is the boundary of dT/T. |
| 153 | -/ |
| 154 | |
| 155 | section GrothendieckSymbol |
| 156 | |
| 157 | open CategoryTheory Function MonoidalCategory TensorProduct Finset Abelian Ext RingHom TrivSqZeroExt |
| 158 | Matrix exteriorPower Set Ideal Fin ULift witnessed HodgeTest Comparison H TotalH freeAb |
| 159 | |
| 160 | set_option backward.isDefEq.respectTransparency false |
| 161 | |
| 162 | variable {k : Type} [Field k] |
| 163 | {d : ℕ} {V : HodgeTest k ⥤ Type 1} (f : V ⟶ HodgeTest.sqZeroExt ⋙ affineSpace k d) |
| 164 | |
| 165 | /-! ### Witnesses and the cocycle of the symbol -/ |
| 166 | |
| 167 | /-- For f from V to d-tuples in A ⊕ M, the subfunctor of pairs (v, l), l ∈ A^d, with l · f̄(v) = 1, |
| 168 | where f̄ is the A-component of f. The second factor is the functor (A, M) ↦ A^d. -/ |
| 169 | def jouanolouRel : |
| 170 | Subfunctor (V ⊗ CategoryTheory.Functor.mk (·.baseAlg) (·.fst) ⋙ affineSpace k d) where |
| 171 | obj c := {(v, l) | l.down ⬝ᵥ TrivSqZeroExt.fst ∘ (f.app c v).down = 1} |
| 172 | map {c c' : HodgeTest k} (φ : c ⟶ c') x hx := by |
| 173 | -- apply the ring map `φ.fst` to the equation at `c`, and use that `f` is natural |
| 174 | change (φ.fst ∘ x.snd.down) ⬝ᵥ fst ∘ (f.app c' (V.map φ x.fst)).down = 1 |
| 175 | rw [f.naturality_apply] |
| 176 | have h_image := congrArg φ.fst.hom.toRingHom |
| 177 | (hx : x.snd.down ⬝ᵥ TrivSqZeroExt.fst ∘ (f.app c x.fst).down = 1) |
| 178 | rw [map_one, map_dotProduct] at h_image |
| 179 | exact h_image |
| 180 | |
| 181 | /-- A unimodular tuple v in A ⊕ M has a witness: some l ∈ A^d (a point of affine d-space over A) |
| 182 | has dot product 1 with the A-part of v. Here A ⊕ M is the square-zero extension of the test `c`. -/ |
| 183 | lemma exists_jouanolouRel_of_unimodular (c : HodgeTest k) |
| 184 | (v : (HodgeTest.sqZeroExt ⋙ affineSpace k d).obj c) |
| 185 | (h : v ∈ ((unimodular : Subfunctor (affineSpace k d)).whisker HodgeTest.sqZeroExt).obj c) : |
| 186 | ∃ l, (v, l) ∈ (jouanolouRel (𝟙 (HodgeTest.sqZeroExt ⋙ affineSpace k d))).obj c := by |
| 187 | -- The A-parts of the entries of `v` generate the unit ideal, so `1` is a combination of them. |
| 188 | have h_top : span (Set.range (TrivSqZeroExt.fst ∘ v.down)) = ⊤ := unimodular.map c.baseProj h |
| 189 | obtain ⟨l, hl⟩ : ∃ l : Fin d → c.baseAlg, ∑ i, l i • (TrivSqZeroExt.fst ∘ v.down) i = 1 := |
| 190 | mem_span_range_iff_exists_fun.mp (h_top.ge trivial) |
| 191 | exact ⟨⟨l⟩, hl⟩ |
| 192 | |
| 193 | variable {R : Subfunctor (V ⊗ CategoryTheory.Functor.mk (·.baseAlg) (·.fst) ⋙ affineSpace k d)} |
| 194 | (ω : freeAb.obj V ⟶ hodgeCoeff) {c : HodgeTest k} |
| 195 | |
| 196 | /-- The exterior algebra ⋀_A M of a test c = (A, M) as a module over A. -/ |
| 197 | instance : Module c.baseAlg (hodgeCoeff.obj c) := module' (M := ExteriorAlgebra ..) |
| 198 | |
| 199 | /-- The map (v, l_1, …, l_d) ↦ det(l_1, …, l_d)·ω(v) from the free abelian group on points v with d |
| 200 | witnesses l_i ∈ A^d, that is, (v, l_i) ∈ R for each i (the functor `witnessed R d`), to ⋀_A M. -/ |
| 201 | @[simp] |
| 202 | def detCochain : freeAb.obj (witnessed R d) ⟶ hodgeCoeff := |
| 203 | desc (Y := witnessed R d) |
| 204 | (fun c t ↦ det (fun i ↦ (t.val.snd i).down) • ω.app c (FreeAddCommGroup.of t.val.fst)) |
| 205 | fun c c' φ t ↦ by |
| 206 | -- `φ` commutes with `det`, and `ω` is natural |
| 207 | refine congrArg ULift.up (.symm ((exteriorMap_smul ..).trans (congrArg₂ _ (map_det ..) ?_))) |
| 208 | exact (congrArg ULift.down (ω.naturality_apply φ (FreeAddCommGroup.of t.val.fst))).symm |
| 209 | |
| 210 | /-- If every row of t has dot product 1 with f, then the signed sum over j of the minors of t |
| 211 | without row j and column i is f i · det t. -/ |
| 212 | lemma sum_minor_eq_mul_det {A : Type*} [CommRing A] (t : Matrix (Fin (d + 1)) (Fin (d + 1)) A) |
| 213 | (f : Fin (d + 1) → A) (i : Fin (d + 1)) (h : ∀ j : Fin (d + 1), t j ⬝ᵥ f = 1) : |
| 214 | ∑ j : Fin d.succ, (-1) ^ (j.val + i.val) • (t.submatrix j.succAbove i.succAbove).det = |
| 215 | f i * t.det := by |
| 216 | -- Apply the adjugate to the column of ones and take its `i`th coordinate. |
| 217 | have h_adj := congrArg (t.adjugate *ᵥ ·) (show t *ᵥ f = 1 from funext h) |
| 218 | rw [mulVec_mulVec, adjugate_mul, smul_mulVec, one_mulVec] at h_adj |
| 219 | simpa [mulVec, dotProduct, adjugate_fin_succ_eq_det_submatrix, mul_comm, add_comm] using |
| 220 | (congrFun h_adj i).symm |
| 221 | |
| 222 | /-- The map (v, l_1, …, l_d) ↦ det(l_1, …, l_d)·ω(v), on points with d witnesses for |
| 223 | `New.Variety.jouanolouRel` f, kills boundaries. This is the induced map on the cokernel. -/ |
| 224 | def detCocycle : abCoker (boundary (jouanolouRel f) d) ⟶ hodgeCoeff := |
| 225 | abCoker.desc (detCochain ω) <| |
| 226 | freeAb.hom_ext fun c ⟨⟨v, l⟩, hl_one⟩ ↦ by |
| 227 | -- The boundary of `(v, l)` goes to the alternating sum of the `d × d` minors of `l`. Border |
| 228 | -- `l` with a zero column and apply `sum_minor_eq_mul_det` there: the right side is `0`. |
| 229 | have h_rows (j : Fin (d + 1)) : |
| 230 | vecCons 0 (l j).down ⬝ᵥ vecCons 0 (TrivSqZeroExt.fst ∘ (f.app c v).down) = 1 := by |
| 231 | have h_row : (l j).down ⬝ᵥ TrivSqZeroExt.fst ∘ (f.app c v).down = 1 := hl_one j |
| 232 | simpa using h_row |
| 233 | -- The minors of the bordered matrix without its new column are the minors of `l`. |
| 234 | have h_minor (j : Fin (d + 1)) : |
| 235 | (submatrix (fun j ↦ vecCons 0 (l j).down) j.succAbove succ).det = |
| 236 | det fun i ↦ (l (j.succAbove i)).down := |
| 237 | rfl |
| 238 | have h_sum : |
| 239 | ∑ j : Fin (d + 1), (-1) ^ (j : ℕ) * (det fun i ↦ (l (j.succAbove i)).down) = 0 := by |
| 240 | simpa [h_minor] using sum_minor_eq_mul_det (fun j ↦ vecCons 0 (l j).down) _ 0 h_rows |
| 241 | -- `NatTrans.app_sum` is left out so that `sum_app_apply` evaluates the sum at the generator |
| 242 | simpa [boundary, sum_app_apply, -NatTrans.app_sum, ← smul_assoc, sum_smul, reindexWitness] |
| 243 | using congrArg (· • ω.app c (.of v)) h_sum |
| 244 | |
| 245 | @[simp] |
| 246 | lemma pi_comp_detCocycle : |
| 247 | abCoker.π (boundary (jouanolouRel f) d) ≫ detCocycle f ω = detCochain ω := |
| 248 | rfl |
| 249 | |
| 250 | /-- The natural map from the free abelian group on (A⊕M)^d to ⋀_A M sending a tuple (a_i,m_i) to |
| 251 | m_1∧…∧m_d. -/ |
| 252 | def volumeForm : freeAb.obj (HodgeTest.sqZeroExt ⋙ affineSpace k d) ⟶ hodgeCoeff := |
| 253 | desc (fun c v ↦ ⟨(ιMulti c.baseAlg d (TrivSqZeroExt.snd ∘ v.down)).val⟩) fun _ _ _ _ ↦ |
| 254 | congrArg ULift.up (exteriorMap_iotaMulti ..).symm |
| 255 | |
| 256 | /-- The class [dT/T], in the Hodge cohomology of degree d of 𝔸^d relative to 𝔸^d ∖ 0, of the |
| 257 | cocycle det(l_1, …, l_d)·dT_1 ∧ … ∧ dT_d on tuples of linear forms with l_j(T) = 1. -/ |
| 258 | def symbolClass : HodgeH (relFreeAb (unimodular : Subfunctor (affineSpace k d))) d := |
| 259 | cocycleClass exists_jouanolouRel_of_unimodular |
| 260 | (detCocycle (𝟙 (HodgeTest.sqZeroExt ⋙ affineSpace k d)) volumeForm) |
| 261 | |
| 262 | /-- For v ∈ A^d and a d-tuple f in A ⊕ A^ι, the map α of relative chains, defined relative to the |
| 263 | locus where some v i becomes a unit, sends each point σ of Hom(c, −) to the tuple σ f. -/ |
| 264 | abbrev IsInducedByCoords (v : Fin d → c.baseAlg) |
| 265 | (f : Fin d → TrivSqZeroExt c.baseAlg (c.Index → c.baseAlg)) |
| 266 | (α : relFreeAb (someUnitLocus v) ⟶ relFreeAb ((unimodular (d := d)).whisker sqZeroExt)) : |
| 267 | Prop := |
| 268 | ∀ (C : HodgeTest k) (σ : (reprBy c).obj C), α.app C (relFreeAb.mk (someUnitLocus v) σ) = |
| 269 | relFreeAb.mk (unimodular.whisker sqZeroExt) ⟨sqZeroExt.map σ.down ∘ f⟩ |
| 270 | |
| 271 | /-- For a test c = (A, A^ι) and a d-tuple g in A ⊕ A^ι, the subfunctor of Hom(c, −) of the maps |
| 272 | that make g unimodular. -/ |
| 273 | abbrev unimodularLocus (g : Fin d → TrivSqZeroExt c.baseAlg (c.Index → c.baseAlg)) : |
| 274 | Subfunctor (reprBy c) := |
| 275 | ((unimodular (d := d)).whisker sqZeroExt).preimage (pointMap ⟨g⟩) |
| 276 | |
| 277 | /-- If v = M ḡ, a map that makes some v i a unit makes g unimodular. -/ |
| 278 | lemma someUnitLocus_le_unimodularLocus {v : Fin d → c.baseAlg} |
| 279 | {g : Fin d → TrivSqZeroExt c.baseAlg (c.Index → c.baseAlg)} |
| 280 | {M : Matrix (Fin d) (Fin d) c.baseAlg} (hM : v = M *ᵥ fst ∘ g) : |
| 281 | someUnitLocus v ≤ unimodularLocus g := by |
| 282 | rintro C σ ⟨i, hi⟩ |
| 283 | -- The image of `∑ l, M i l * g l` lies in the span and has the unit `σ (v i)` as ring part. |
| 284 | let g' : Fin d → TrivSqZeroExt C.baseAlg (C.Index → C.baseAlg) := sqZeroExt.map σ.down ∘ g |
| 285 | have h_mem : ∑ l, inl (σ.down.fst (M i l)) * g' l ∈ span (Set.range g') := |
| 286 | Ideal.sum_mem _ fun l _ ↦ mul_mem_left _ _ (subset_span ⟨l, rfl⟩) |
| 287 | have h_fst : (∑ l, inl (σ.down.fst (M i l)) * g' l).fst = σ.down.fst (v i) := by |
| 288 | simp [g', hM, mulVec, dotProduct, fst_sum, HodgeTest.sqZeroExt] |
| 289 | refine eq_top_of_isUnit_mem (span (Set.range g')) h_mem ?_ |
| 290 | simpa only [isUnit_iff_isUnit_fst, h_fst] using! hi |
| 291 | |
| 292 | section Symbol |
| 293 | |
| 294 | variable {U : Subfunctor (reprBy c)} {f g : Fin d → TrivSqZeroExt c.baseAlg (c.Index → c.baseAlg)} |
| 295 | |
| 296 | /-- The symbol [η/ḡ] of a d-tuple g = (ḡ, η) in A ⊕ A^ι: the pull-back of [dT/T] along g, in the |
| 297 | cohomology of Hom(c, −) relative to a subfunctor U (`H N F d` is Ext^d from N to F in functors on |
| 298 | tests) on which g is unimodular. -/ |
| 299 | def grothendieckSymbol (g : Fin d → TrivSqZeroExt c.baseAlg (c.Index → c.baseAlg)) |
| 300 | (hg : U ≤ unimodularLocus g) : H (relFreeAb U) hodgeCoeff d := |
| 301 | H.map hodgeCoeff (relFreeAb.map (U := unimodular.whisker sqZeroExt) (pointMap ⟨g⟩) hg) d |
| 302 | symbolClass |
| 303 | |
| 304 | /-- On U, where f is unimodular, every point σ has a linear form l ∈ A^d with value 1 at σ f. -/ |
| 305 | lemma exists_jouanolouRel_of_le_unimodularLocus (hf : U ≤ unimodularLocus f) (C : HodgeTest k) : |
| 306 | ∀ σ ∈ U.obj C, ∃ l, (σ, l) ∈ (jouanolouRel (pointMap ⟨f⟩)).obj C := |
| 307 | fun _ hσ ↦ exists_jouanolouRel_of_unimodular C _ (hf C hσ) |
| 308 | |
| 309 | /-- A d-form x on A^ι, as the map σ ↦ σ x from Hom(c, −) to forms. -/ |
| 310 | def formOfExteriorPower (x : ⋀[c.baseAlg]^d (c.Index → c.baseAlg)) : |
| 311 | freeAb.obj (reprBy c) ⟶ hodgeCoeff := |
| 312 | ((homReprEquiv c hodgeCoeff).trans .ulift).symm x.val |
| 313 | |
| 314 | /-- The generalized fraction [x/f̄] of a d-form x: the class, relative to a subfunctor U on which |
| 315 | f is unimodular, of the cocycle (σ, l) ↦ det l • σ x, where the l j take the value 1 at σ f̄. -/ |
| 316 | def fractionClass (hf : U ≤ unimodularLocus f) : |
| 317 | ⋀[c.baseAlg]^d (c.Index → c.baseAlg) →+ H (relFreeAb U) hodgeCoeff d := |
| 318 | (cocycleClass (exists_jouanolouRel_of_le_unimodularLocus hf)).comp |
| 319 | (.mk' (fun x ↦ detCocycle (pointMap ⟨f⟩) (formOfExteriorPower x)) fun x y ↦ |
| 320 | (cancel_epi (abCoker.π _)).1 (hom_ext (by simp [formOfExteriorPower]))) |
| 321 | |
| 322 | -- Keeps definitional checks from unfolding the finite sums. |
| 323 | seal Finset.sum in |
| 324 | /-- For a test c = (A, A^ι), let `f` and `g` be d-tuples in A ⊕ A^ι with first components |
| 325 | f̄ = `fst ∘ f` and ḡ, and write g = (ḡ, η). Let `U` be a subfunctor of Hom(c, −) on which both `f` |
| 326 | and `g` are unimodular, and suppose f̄ = M ḡ for a d × d matrix `M` over A. Then for every a ∈ k, |
| 327 | the scaled Grothendieck symbol a • [η/ḡ] equals the generalized fraction |
| 328 | [a det M · η₁ ∧ ⋯ ∧ η_d / f̄], both taken in the cohomology of Hom(c, −) relative to `U`. -/ |
| 329 | lemma smul_grothendieckSymbol_eq_fractionClass (hf : U ≤ unimodularLocus f) |
| 330 | (hg : U ≤ unimodularLocus g) {M : Matrix (Fin d) (Fin d) c.baseAlg} |
| 331 | (hM : fst ∘ f = M *ᵥ fst ∘ g) (a : k) : |
| 332 | a • grothendieckSymbol g hg = |
| 333 | fractionClass hf ((algebraMap k c.baseAlg a * M.det) • ιMulti c.baseAlg d (snd ∘ g)) := by |
| 334 | -- A witness `l` for `f` at `σ` gives the witness `l ᵥ* σ M` for `g`. |
| 335 | let L : HodgeTest k ⥤ Type 1 := .mk (·.baseAlg) (·.fst) ⋙ affineSpace k d |
| 336 | let w : reprBy c ⊗ L ⟶ L := |
| 337 | { app C := ↾fun ((σ, l) : ULift (c ⟶ C) × L.obj C) ↦ ⟨l.down ᵥ* M.map σ.down.fst⟩ |
| 338 | naturality _ _ _ := by |
| 339 | ext |
| 340 | exact congrArg _ (funext (map_vecMul _ _ _)).symm } |
| 341 | have hw (C : HodgeTest k) (x : (reprBy c ⊗ L).obj C) |
| 342 | (hx : x ∈ (jouanolouRel (pointMap ⟨f⟩)).obj C) : |
| 343 | ((pointMap (Y := sqZeroExt ⋙ affineSpace k d) ⟨g⟩).app C x.fst, w.app C x) ∈ |
| 344 | (jouanolouRel (𝟙 _)).obj C := by |
| 345 | obtain ⟨⟨σ⟩, ⟨l⟩⟩ := x |
| 346 | have h_map : σ.fst ∘ fst ∘ f = M.map σ.fst *ᵥ σ.fst ∘ fst ∘ g := by |
| 347 | rw [hM] |
| 348 | exact funext (map_mulVec _ _ _) |
| 349 | change (l ᵥ* M.map σ.fst) ⬝ᵥ σ.fst ∘ fst ∘ g = 1 |
| 350 | rwa [← dotProduct_mulVec, ← h_map] |
| 351 | -- Read `a • H.map _ _ d` as a pull-back along the comparison given by the action of `a`. |
| 352 | -- `pull_cocycleClass` reduces the claim to the witnesses, the cocycles and the points. |
| 353 | unfold grothendieckSymbol |
| 354 | let actHom : hodgeCoeff (k := k) ⟶ hodgeCoeff := (CoeffAction.act a).asHom |
| 355 | let actC : Comparison (hodgeCoeff (k := k)) hodgeCoeff := { functor := 𝟭 _, coeffHom := actHom } |
| 356 | rw [smul_eq_push, ← pull_id_eq_push] |
| 357 | refine (map_pull_eq_pull_map (c := actC) (a' := 𝟙 _) |
| 358 | (a := relFreeAb.map (U := unimodular.whisker sqZeroExt) (pointMap ⟨g⟩) hg) |
| 359 | (α := relFreeAb.map (U := unimodular.whisker sqZeroExt) (pointMap ⟨g⟩) hg) |
| 360 | (b := 𝟙 _) rfl d symbolClass).symm.trans ?_ |
| 361 | rw [H.map_id] |
| 362 | refine pull_cocycleClass exists_jouanolouRel_of_unimodular |
| 363 | (exists_jouanolouRel_of_le_unimodularLocus hf) _ (pointMap ⟨g⟩) w hw |
| 364 | (fun C t ↦ ?_) fun _ _ ↦ rfl |
| 365 | -- The cocycles agree since `det (l * σ M) = det l * σ (det M)`. |
| 366 | simp [volumeForm, formOfExteriorPower, w] |
| 367 | let rows : Matrix (Fin d) (Fin d) C.baseAlg := fun i ↦ (t.val.2 i).down |
| 368 | conv in (det (fun i ↦ _)) => |
| 369 | change det (rows * M.map t.val.1.down.fst) |
| 370 | tactic => |
| 371 | exact (det_mul rows _).trans |
| 372 | (congrArg (rows.det * ·) (t.val.1.down.fst.hom.toRingHom.map_det M).symm) |
| 373 | refine congrArg ULift.up (.trans ?_ |
| 374 | (congrArg (_ • ·) ((add_zero _).trans (exteriorMap_smul ..))).symm) |
| 375 | simp [exteriorMap_iotaMulti, mul_smul, ← smul_comm a] |
| 376 | rfl |
| 377 | |
| 378 | /-- The fraction [x/f̄] vanishes when the coefficient of x lies in the ideal spanned by f̄. -/ |
| 379 | lemma fractionClass_smul_eq_zero (hf : U ≤ unimodularLocus f) {r : c.baseAlg} |
| 380 | (hr : r ∈ span (Set.range (fst ∘ f))) (m : Fin d → c.Index → c.baseAlg) : |
| 381 | fractionClass hf (r • ιMulti c.baseAlg d m) = 0 := by |
| 382 | -- For `ḡ` the `i`-th basis vector, `f̄ = M ḡ` with `M = updateCol 1 i f̄` of determinant `f̄ i`. |
| 383 | -- As `ḡ` is unimodular everywhere, its symbol is `0`. The factor `s` is put into `η i`. |
| 384 | have h_gen (i : Fin d) (s : c.baseAlg) : |
| 385 | fractionClass hf ((s * (f i).fst) • ιMulti c.baseAlg d m) = 0 := by |
| 386 | let g (j : Fin d) : TrivSqZeroExt c.baseAlg (c.Index → c.baseAlg) := |
| 387 | (if j = i then 1 else 0, update m i (s • m i) j) |
| 388 | have hM : fst ∘ f = updateCol 1 i (fst ∘ f) *ᵥ fst ∘ g := by |
| 389 | simp [g, funext_iff, mulVec, dotProduct] |
| 390 | have h_top (C : HodgeTest k) (σ : (reprBy c).obj C) : σ ∈ (unimodularLocus g).obj C := |
| 391 | projSpace.span_eq_top_of_isUnit i (by |
| 392 | change IsUnit (sqZeroExt.map σ.down (g i)) |
| 393 | simp [g, isUnit_iff_isUnit_fst, HodgeTest.sqZeroExt]) |
| 394 | have hg : U ≤ unimodularLocus g := fun C σ _ ↦ h_top C σ |
| 395 | have h_map : relFreeAb.map (U := unimodular.whisker sqZeroExt) (pointMap ⟨g⟩) hg = 0 := |
| 396 | relFreeAb.hom_ext fun C σ ↦ relFreeAb.mk_eq_zero (h_top C σ) |
| 397 | have h_frac := smul_grothendieckSymbol_eq_fractionClass hf hg hM 1 |
| 398 | simp only [grothendieckSymbol, h_map, H.map] at h_frac |
| 399 | simpa [g, ← cramer_apply, smul_smul, Function.comp_def, mul_comm, eq_comm] using h_frac |
| 400 | obtain ⟨t, rfl⟩ := mem_span_range_iff_exists_fun.1 hr |
| 401 | simp [sum_smul, h_gen] |
| 402 | |
| 403 | /-- Transformation law for Grothendieck symbols. Let f = (f̄, ω) and g = (ḡ, η) be d-tuples in |
| 404 | A ⊕ A^ι, unimodular on U, and I the ideal spanned by f̄. If f̄ = M ḡ, ω ≡ N η modulo I |
| 405 | coordinatewise and det N ≡ a det M modulo I with a ∈ k, then [ω/f̄] = a [η/ḡ]. -/ |
| 406 | lemma grothendieckSymbol_transformation (hf : U ≤ unimodularLocus f) (hg : U ≤ unimodularLocus g) |
| 407 | (M N : Matrix (Fin d) (Fin d) c.baseAlg) (a : k) (hM : fst ∘ f = M *ᵥ fst ∘ g) |
| 408 | (hN : ∀ (i : Fin d) (j : c.Index), |
| 409 | (f i).snd j - ∑ l, N i l * (g l).snd j ∈ span (Set.range (fst ∘ f))) |
| 410 | (ha : N.det - algebraMap k c.baseAlg a * M.det ∈ span (Set.range (fst ∘ f))) : |
| 411 | grothendieckSymbol f hf = a • grothendieckSymbol g hg := by |
| 412 | -- Both sides are fractions with denominator `f̄`, and their numerators agree modulo `I`. |
| 413 | have h_left : grothendieckSymbol f hf = fractionClass hf (ιMulti c.baseAlg d (snd ∘ f)) := by |
| 414 | simpa using smul_grothendieckSymbol_eq_fractionClass hf hf (one_mulVec _).symm 1 |
| 415 | -- The coordinates of `ω₁ ∧ ⋯ ∧ ω_d - (a * det M) • η₁ ∧ ⋯ ∧ η_d` are differences of minors. |
| 416 | -- Modulo `I` the minor of `ω` is `det N` times the minor of `η`, and `det N ≡ a * det M`. |
| 417 | have h_minor (s : Fin d → c.Index) : |
| 418 | (Matrix.of fun i j ↦ (f i).snd (s j)).det - |
| 419 | algebraMap k c.baseAlg a * M.det * (Matrix.of fun i j ↦ (g i).snd (s j)).det ∈ |
| 420 | span (Set.range (fst ∘ f)) := by |
| 421 | rw [← Ideal.Quotient.eq] |
| 422 | set toQuot : c.baseAlg →+* c.baseAlg ⧸ span (Set.range (fst ∘ f)) := Ideal.Quotient.mk _ |
| 423 | -- Modulo `I`, the matrix of the `ω i (s j)` is `N` times the matrix of the `η i (s j)`. |
| 424 | have h_rows : (Matrix.of fun i j ↦ (f i).snd (s j)).map toQuot = |
| 425 | (N * Matrix.of fun i j ↦ (g i).snd (s j)).map toQuot := by |
| 426 | ext i j |
| 427 | exact Ideal.Quotient.eq.mpr (hN i (s j)) |
| 428 | have ha_quot : toQuot N.det = toQuot (algebraMap k c.baseAlg a * M.det) := |
| 429 | Ideal.Quotient.eq.mpr ha |
| 430 | have h_det : toQuot (Matrix.of fun i j ↦ (f i).snd (s j)).det = |
| 431 | toQuot N.det * toQuot (Matrix.of fun i j ↦ (g i).snd (s j)).det := by |
| 432 | rw [← map_mul, ← det_mul, RingHom.map_det, RingHom.map_det, RingHom.mapMatrix_apply, |
| 433 | RingHom.mapMatrix_apply, h_rows] |
| 434 | rw [h_det, ha_quot, ← map_mul] |
| 435 | rw [h_left, smul_grothendieckSymbol_eq_fractionClass hf hg hM, ← sub_eq_zero, ← map_sub] |
| 436 | -- Expand the difference of the numerators in the basis of `d`-fold wedges; by `h_minor` each |
| 437 | -- coefficient lies in `I`, so each summand has fraction `0`. |
| 438 | rw [← ((Pi.basisFun c.baseAlg c.Index).exteriorPower d).sum_repr |
| 439 | (ιMulti c.baseAlg d (snd ∘ f) - |
| 440 | (algebraMap k c.baseAlg a * M.det) • ιMulti c.baseAlg d (snd ∘ g))] |
| 441 | simpa [basis_repr_apply, ιMulti_family] using |
| 442 | sum_eq_zero fun s _ ↦ fractionClass_smul_eq_zero hf (h_minor _) _ |
| 443 | |
| 444 | /-- A map of relative chains induced by the tuple f = (f̄, ω) pulls [dT/T] back to [ω/f̄]. -/ |
| 445 | lemma IsInducedByCoords.map_symbolClass {v : Fin d → c.baseAlg} |
| 446 | {α : relFreeAb (someUnitLocus v) ⟶ relFreeAb ((unimodular (d := d)).whisker sqZeroExt)} |
| 447 | (hα : IsInducedByCoords v f α) (hf : someUnitLocus v ≤ unimodularLocus f) : |
| 448 | H.map hodgeCoeff α d symbolClass = grothendieckSymbol f hf := by |
| 449 | have h_map : α = relFreeAb.map (U := unimodular.whisker sqZeroExt) (pointMap ⟨f⟩) hf := |
| 450 | relFreeAb.hom_ext hα |
| 451 | rw [h_map, grothendieckSymbol] |
| 452 | |
| 453 | /-! ### Transformation law -/ |
| 454 | |
| 455 | /-- Transformation law for Grothendieck symbols, for maps α and β of relative chains induced by |
| 456 | f = (f̄, ω) and g = (ḡ, η). Let v = f̄ and let I be the ideal spanned by v. If v = M ḡ, ω ≡ N η |
| 457 | modulo I coordinatewise and det N ≡ a det M modulo I with a ∈ k, then the pull-back of [dT/T] |
| 458 | along α is a times its pull-back along β. -/ |
| 459 | lemma symbolClass_transformation {v : Fin d → c.baseAlg} |
| 460 | {α β : relFreeAb (someUnitLocus v) ⟶ relFreeAb ((unimodular (d := d)).whisker sqZeroExt)} |
| 461 | (hα : IsInducedByCoords v f α) (hβ : IsInducedByCoords v g β) (hf : fst ∘ f = v) |
| 462 | (M N : Matrix (Fin d) (Fin d) c.baseAlg) (a : k) (hM : v = M *ᵥ fst ∘ g) |
| 463 | (hN : ∀ (i : Fin d) (j : c.Index), |
| 464 | (f i).snd j - ∑ l, N i l * (g l).snd j ∈ span (Set.range v)) |
| 465 | (ha : N.det - algebraMap k c.baseAlg a * M.det ∈ span (Set.range v)) : |
| 466 | H.map hodgeCoeff α d symbolClass = a • H.map hodgeCoeff β d symbolClass := by |
| 467 | subst hf |
| 468 | have hf_le : someUnitLocus (fst ∘ f) ≤ unimodularLocus f := |
| 469 | someUnitLocus_le_unimodularLocus (one_mulVec _).symm |
| 470 | have hg_le : someUnitLocus (fst ∘ f) ≤ unimodularLocus g := someUnitLocus_le_unimodularLocus hM |
| 471 | rw [hα.map_symbolClass hf_le, hβ.map_symbolClass hg_le] |
| 472 | exact grothendieckSymbol_transformation hf_le hg_le M N a hM hN ha |
| 473 | |
| 474 | end Symbol |
| 475 | |
| 476 | section |
| 477 | |
| 478 | variable (k : Type) [Field k] (d : ℕ) |
| 479 | |
| 480 | /-! ### Product formula -/ |
| 481 | |
| 482 | -- Keeps definitional checks from unfolding the finite sums. |
| 483 | seal Finset.sum in |
| 484 | /-- In degree 1 the symbol is a boundary: there is a form ω on the complement of the origin in 𝔸^1 |
| 485 | with (a) ω(a + m) = w for some w with a w = m, that is ω = dT/T, and (b) `New.Variety.symbolClass` |
| 486 | of degree 1 is the image of ω under the connecting map of 0 → ℤ[𝔸^1 ∖ 0] → ℤ[𝔸^1] → ℤ[𝔸^1]/ℤ[𝔸^1 ∖ |
| 487 | 0] → 0. -/ |
| 488 | lemma symbolClass_one : |
| 489 | ∃ ω : HodgeTest.sqZeroExt ⋙ freeAb.obj (unimodular : Subfunctor (affineSpace k 1)).toFunctor ⟶ |
| 490 | hodgeCoeff, |
| 491 | -- (a) |
| 492 | (∀ (c : HodgeTest k) (v : unimodular.toFunctor.obj (HodgeTest.sqZeroExt.obj c)), |
| 493 | ∃ w : c.Index → c.baseAlg, (v.val.down 0).fst • w = (v.val.down 0).snd ∧ |
| 494 | ω.app c (FreeAddCommGroup.of v) = ⟨ExteriorAlgebra.ι c.baseAlg w⟩) ∧ |
| 495 | -- (b) |
| 496 | symbolClass (k := k) (d := 1) = (relFreeAb.shortExact |
| 497 | (unimodular.whisker HodgeTest.sqZeroExt)).2.extClass.comp (Ext.mk₀ ω) rfl := by |
| 498 | -- `symbolClass` is `fromRel` followed by the extension class of `shortExact_boundaryFromCoker` |
| 499 | -- and the cocycle `detCocycle _ volumeForm`. `exists_map_extClass_comp` moves it to the sequence |
| 500 | -- of `relFreeAb` (`h_class`) and produces `ω`: its value at `v` is that of the cocycle at any |
| 501 | -- chain with boundary `v` (`hω`). |
| 502 | obtain ⟨ω, hω, h_class⟩ := exists_map_extClass_comp (relFreeAb.shortExact _).2 |
| 503 | shortExact_boundaryFromCoker.2 (detCocycle (𝟙 (sqZeroExt ⋙ affineSpace k 1)) volumeForm) |
| 504 | (.mk₀ (𝟙 _)) _ (fromRel exists_jouanolouRel_of_unimodular) rfl |
| 505 | refine ⟨ω, fun c v ↦ ?_, by |
| 506 | simp_all [symbolClass, cocycleClass_apply, universalClass_succ, universalClass_zero, push]⟩ |
| 507 | -- Write `v = a + m`. A witness `l` has `l * a = 1`, so `w = l • m` is "`m / a`". |
| 508 | obtain ⟨l, hl⟩ := exists_jouanolouRel_of_unimodular _ _ v.property |
| 509 | have hl_one : l.down 0 * (v.val.down 0).fst = 1 := (Fin.sum_univ_one _).symm.trans hl |
| 510 | refine ⟨l.down 0 • (v.val.down 0).snd, ?_, |
| 511 | .symm (hω c _ _ ⟨⟦.of ⟨(v.val, fun _ ↦ l), fun _ ↦ hl⟩⟧, ?_, ?_⟩)⟩ |
| 512 | · rw [smul_smul, mul_comm, hl_one, one_smul] |
| 513 | · -- the boundary of `v` with the one witness `l` is `v` with no witness |
| 514 | simp [boundaryFromCoker, boundary, freeAb, noWitness, abCoker.desc, reindexWitness] |
| 515 | congrm .of ⟨⟨_, $(funext nofun)⟩, _⟩ |
| 516 | · -- the cocycle sends it to `det l • volumeForm v = l • ι m` |
| 517 | refine congrArg ULift.up ?_ |
| 518 | simp [volumeForm] |
| 519 | rfl |
| 520 | |
| 521 | /-- The natural map 𝔸^d × 𝔸^1 → 𝔸^{d+1} appending a last coordinate. -/ |
| 522 | @[simp] |
| 523 | def affineSpace.snoc : affineSpace k d ⊗ affineSpace k 1 ⟶ affineSpace k d.succ where |
| 524 | app _ := ↾fun v ↦ ⟨Fin.snoc v.1.down (v.2.down 0)⟩ |
| 525 | naturality := by aesop_cat (add simp [affineSpace, comp_snoc]) |
| 526 | |
| 527 | /-- The subfunctor of 𝔸^d × 𝔸^1 of the pairs (v, x) in which v or x is unimodular, that is, has |
| 528 | entries that generate the unit ideal. -/ |
| 529 | abbrev unimodularSup : Subfunctor (affineSpace k d ⊗ affineSpace k 1) := |
| 530 | (unimodular (d := d)).preimage |
| 531 | (CartesianMonoidalCategory.fst (affineSpace k d) (affineSpace k 1)) ⊔ |
| 532 | (unimodular (d := 1)).preimage |
| 533 | (CartesianMonoidalCategory.snd (affineSpace k d) (affineSpace k 1)) |
| 534 | |
| 535 | /-- If v or x is unimodular, then so is the tuple (v, x) ∈ 𝔸^(d+1) obtained by appending x to v: |
| 536 | the entries of v, and the entry of x, are among its entries. -/ |
| 537 | lemma unimodularSup_le_preimage_snoc : |
| 538 | unimodularSup k d ≤ unimodular.preimage (affineSpace.snoc k d) := by |
| 539 | rintro A ⟨v, x⟩ (hv | hx) |
| 540 | · refine eq_top_mono (span_mono ?_) hv |
| 541 | rintro _ ⟨i, rfl⟩ |
| 542 | exact ⟨i.castSucc, snoc_castSucc (α := fun _ ↦ A) (x.down 0) v.down i⟩ |
| 543 | · refine eq_top_mono (span_mono ?_) hx |
| 544 | rintro _ ⟨i, rfl⟩ |
| 545 | obtain rfl : i = 0 := Subsingleton.elim i 0 |
| 546 | exact ⟨last d, snoc_last (α := fun _ ↦ A) (x.down 0) v.down⟩ |
| 547 | |
| 548 | /-- For a test (A, M) and a pair (v, x) ∈ 𝔸^d × 𝔸^1 with entries in A ⊕ M, the subfunctor of the |
| 549 | pairs ((v, x), l) in which l ∈ A^(d+1) has dot product 1 with the A-part of the tuple (v, x) and |
| 550 | the last entry of l is 0 unless x is unimodular. -/ |
| 551 | abbrev snocRel : |
| 552 | Subfunctor ((sqZeroExt ⋙ (affineSpace k d ⊗ affineSpace k 1 : CommAlg k ⥤ Type 1)) ⊗ |
| 553 | ((.mk (·.baseAlg) (·.fst) : HodgeTest k ⥤ CommAlg k) ⋙ affineSpace k d.succ)) := |
| 554 | jouanolouRel (sqZeroExt.whiskerLeft (affineSpace.snoc k d)) ⊓ |
| 555 | { obj c := {p | p.fst.snd ∈ (unimodular.whisker sqZeroExt).obj c ∨ p.snd.down (last d) = 0} |
| 556 | map φ _ hx := hx.imp ((unimodular.whisker sqZeroExt).map φ ·) fun h_last ↦ by |
| 557 | simpa using! congrArg φ.fst h_last } |
| 558 | |
| 559 | end |
| 560 | |
| 561 | section |
| 562 | |
| 563 | variable {k : Type} [Field k] {d : ℕ} {c : HodgeTest k} |
| 564 | |
| 565 | /-- Every pair x = (v, x₁) over a test c = (A, M) in which v or x₁ is unimodular has a witness |
| 566 | l ∈ A^(d+1) for `snocRel`: a witness of v followed by 0 if v is unimodular, a witness of the tuple |
| 567 | (v, x₁) if x₁ is. -/ |
| 568 | lemma exists_snocRel (c : HodgeTest k) : |
| 569 | ∀ x : (sqZeroExt ⋙ (affineSpace k d ⊗ affineSpace k 1)).obj c, |
| 570 | x ∈ ((unimodularSup k d).whisker sqZeroExt).obj c → ∃ l, (x, l) ∈ (snocRel k d).obj c := by |
| 571 | rintro x (hv | hx) |
| 572 | · -- a witness `l` of `v`, followed by `0` |
| 573 | obtain ⟨l, hl⟩ := exists_jouanolouRel_of_unimodular _ _ hv |
| 574 | refine ⟨⟨snoc l.down 0⟩, ?_, by simp⟩ |
| 575 | -- the dot product splits off the last entry, where the witness is `0` |
| 576 | have h_dot : ∑ i, l.down i * TrivSqZeroExt.fst (x.fst.down i) = 1 := hl |
| 577 | exact (sum_univ_castSucc _).trans (by simpa using h_dot) |
| 578 | · -- a witness of the unimodular tuple `(v, x₁)` |
| 579 | obtain ⟨l, hl⟩ := |
| 580 | exists_jouanolouRel_of_unimodular _ _ (unimodularSup_le_preimage_snoc k d _ (.inr hx)) |
| 581 | exact ⟨l, hl, .inl hx⟩ |
| 582 | |
| 583 | /-- Let V be a functor from tests to sets, G a subfunctor, x a point of V over the test c, and [x] |
| 584 | its class in ℤ[V]/ℤ[G]. For a and b in an abelian group B, a ⊗ [x] = b ⊗ [x] as soon as x ∉ G |
| 585 | implies a = b, since [x] = 0 when x ∈ G. -/ |
| 586 | lemma relFreeAb.tmul_mk_congr {V : HodgeTest k ⥤ Type 1} {c : HodgeTest k} {G : Subfunctor V} |
| 587 | {B : Ab.{1}} {x : V.obj c} {a b : B} (h_eq : x ∉ G.obj c → a = b) : |
| 588 | a ⊗ₜ[ℤ] relFreeAb.mk G x = b ⊗ₜ[ℤ] relFreeAb.mk G x := by |
| 589 | by_cases hx_mem : x ∈ G.obj c |
| 590 | · simp [relFreeAb.mk_eq_zero hx_mem] |
| 591 | · rw [h_eq hx_mem] |
| 592 | |
| 593 | /-- The first d coordinates v of a point (v, x) ∈ 𝔸^d × 𝔸^1 with m witnesses for `snocRel`. -/ |
| 594 | abbrev snocRel.firstPoint {m : ℕ} (t : (witnessed (snocRel k d) m).obj c) : |
| 595 | (sqZeroExt ⋙ affineSpace k d).obj c := |
| 596 | t.val.fst.fst |
| 597 | |
| 598 | /-- The last coordinate x of a point (v, x) ∈ 𝔸^d × 𝔸^1 with m witnesses for `snocRel`. -/ |
| 599 | abbrev snocRel.lastPoint {m : ℕ} (t : (witnessed (snocRel k d) m).obj c) : |
| 600 | (sqZeroExt ⋙ affineSpace k 1).obj c := |
| 601 | t.val.fst.snd |
| 602 | |
| 603 | /-- Let t be a point (v, x) with m witnesses for `snocRel`. If x is not unimodular, the last entry |
| 604 | of each witness is 0, and dropping it gives m witnesses for v. -/ |
| 605 | def snocRel.dropLast {m : ℕ} (t : (witnessed (snocRel k d) m).obj c) |
| 606 | (hx : lastPoint t ∉ (unimodular.whisker sqZeroExt).obj c) : |
| 607 | (witnessed (jouanolouRel (𝟙 (sqZeroExt ⋙ affineSpace k d))) m).obj c := |
| 608 | ⟨(firstPoint t, fun i ↦ ⟨init (t.val.snd i).down⟩), fun i ↦ by |
| 609 | have h_last : (t.val.snd i).down (last d) = 0 := (t.property i).right.resolve_left hx |
| 610 | simpa [h_last] using! (sum_univ_castSucc _).symm.trans (t.property i).left⟩ |
| 611 | |
| 612 | end |
| 613 | |
| 614 | section |
| 615 | |
| 616 | variable (k : Type) [Field k] (d : ℕ) |
| 617 | |
| 618 | open scoped Classical in |
| 619 | /-- The map of chains that sends a point (v, x) with m witnesses l for `snocRel` to |
| 620 | (v, init l) ⊗ [x], where init l drops the last entry of each witness and [x] is the class of x in |
| 621 | ℤ[𝔸^1]/ℤ[unimodular points]. It is 0 when x is unimodular. -/ |
| 622 | def snocRel.split (m : ℕ) : freeAb.obj (witnessed (snocRel k d) m) ⟶ |
| 623 | (abTensor.flip.obj (relFreeAb ((unimodular (d := 1)).whisker sqZeroExt))).obj |
| 624 | (freeAb.obj (witnessed (jouanolouRel (𝟙 (sqZeroExt ⋙ affineSpace k d))) m)) := |
| 625 | desc |
| 626 | (fun c t ↦ |
| 627 | (if hx : lastPoint t ∈ (unimodular.whisker sqZeroExt).obj c then 0 else .of (dropLast t hx)) |
| 628 | ⊗ₜ relFreeAb.mk (unimodular.whisker sqZeroExt) (lastPoint t)) |
| 629 | fun c _ φ t ↦ relFreeAb.tmul_mk_congr fun hx ↦ by |
| 630 | have ht : lastPoint t ∉ (unimodular.whisker sqZeroExt).obj c := |
| 631 | fun h ↦ hx ((unimodular.whisker sqZeroExt).map φ h) |
| 632 | simp only [dite_eq_right hx] |
| 633 | let W := witnessed (jouanolouRel (𝟙 (sqZeroExt ⋙ affineSpace k d))) m |
| 634 | have h_value : (if h : lastPoint t ∈ (unimodular.whisker sqZeroExt).obj c |
| 635 | then 0 else FreeAddCommGroup.of (dropLast t h)) = FreeAddCommGroup.of (dropLast t ht) := |
| 636 | dite_eq_right ht |
| 637 | exact (congrArg ((freeAb.obj W).map φ) h_value).symm |
| 638 | |
| 639 | /-- The maps `snocRel.split` commute with reindexing the witnesses along g : Fin m → Fin n. -/ |
| 640 | lemma snocRel.reindexWitness_comp_split (m n : ℕ) (g : Fin m → Fin n) : |
| 641 | freeAb.map (reindexWitness (snocRel k d) g) ≫ split k d m = |
| 642 | split k d n ≫ (abTensor.flip.obj (relFreeAb (unimodular.whisker sqZeroExt))).map |
| 643 | (freeAb.map (reindexWitness (jouanolouRel (𝟙 (sqZeroExt ⋙ affineSpace k d))) g)) := by |
| 644 | refine hom_ext fun c t ↦ relFreeAb.tmul_mk_congr fun hx ↦ ?_ |
| 645 | -- For `x` not unimodular, both sides are `dropLast` of the reindexed point. |
| 646 | rw [dite_eq_right hx, dite_eq_right (show lastPoint t ∉ (unimodular.whisker sqZeroExt).obj c |
| 647 | from hx)] |
| 648 | rfl |
| 649 | |
| 650 | /-- The cochain on points (v, x) with d witnesses l for `snocRel` that sends ((v, x), l) to |
| 651 | ((-1)^d det(init l) · dT(v)) ⊗ [x]. Here init l drops the last entry of each witness, dT(v) is |
| 652 | `New.Variety.volumeForm` at v, and [x] is the generator of ℤ[𝔸^1] at x. -/ |
| 653 | def snocRel.detTensor : freeAb.obj (witnessed (snocRel k d) d) ⟶ |
| 654 | (abTensor.obj hodgeCoeff).obj (freeAb.obj (sqZeroExt ⋙ affineSpace k 1)) := |
| 655 | desc |
| 656 | (fun c ⟨⟨⟨v, x⟩, l⟩, _⟩ ↦ ((-1) ^ d • (detCochain (R := ⊤) volumeForm).app c |
| 657 | (.of ⟨(v, fun i ↦ ⟨init (l i).down⟩), by simp⟩)) ⊗ₜ .of x) |
| 658 | fun _ _ _ _ ↦ .symm congr($(((_ : ℤ) • detCochain _).naturality_apply ..) ⊗ₜ _).symm |
| 659 | |
| 660 | end |
| 661 | |
| 662 | section |
| 663 | |
| 664 | variable {k : Type} [Field k] {d : ℕ} {c : HodgeTest k} |
| 665 | |
| 666 | /-- Work over tests `(A, M)` and let ω be a form on the unimodular points x = a + m of 𝔸^1 with |
| 667 | ω(x) = w for some w with a • w = m, that is, the form dT/T. Let t be a point (v, x) ∈ 𝔸^d × 𝔸^1 |
| 668 | with d + 1 witnesses l for `snocRel`: each l ∈ A^(d+1) has dot product 1 with the A-part of (v, x), |
| 669 | and its last entry is 0 unless x is unimodular. Apply `detTensor`, the cochain |
| 670 | ((v, x), l) ↦ ((-1)^d det(init l) · dT(v)) ⊗ [x], to the boundary of t, the alternating sum over |
| 671 | dropping one witness. The result is the image of a tensor s in ⋀_A M ⊗ ℤ[unimodular points of 𝔸^1], |
| 672 | and applying ω to the second factor of s and multiplying in ⋀_A M gives det l · dT(v, x), with dT |
| 673 | the `volumeForm` on 𝔸^(d+1). -/ |
| 674 | lemma snocRel.exists_detTensor_boundary_eq |
| 675 | {ω : freeAb.obj ((unimodular (d := 1)).whisker sqZeroExt).toFunctor ⟶ hodgeCoeff} |
| 676 | (hω : ∀ (c : HodgeTest k) (x : ((unimodular (d := 1)).whisker sqZeroExt).toFunctor.obj c), |
| 677 | ∃ w : c.Index → c.baseAlg, (x.val.down 0).fst • w = (x.val.down 0).snd ∧ |
| 678 | ω.app c (.of x) = ⟨.ι c.baseAlg w⟩) |
| 679 | (t : (witnessed (snocRel k d) (d + 1)).obj c) : |
| 680 | ∃ s, ((abTensor.obj hodgeCoeff).map (freeAb.map (unimodular.whisker sqZeroExt).ι)).app c s = |
| 681 | (detTensor k d).app c ((boundary (snocRel k d) d).app c (.of t)) ∧ |
| 682 | ((abTensor.obj hodgeCoeff).map ω ≫ exteriorAlg.mulPairing).app c s = |
| 683 | det (fun i ↦ (t.val.snd i).down) • volumeForm.app c |
| 684 | (.of ((sqZeroExt.whiskerLeft (affineSpace.snoc k d)).app c t.val.fst)) := by |
| 685 | obtain ⟨⟨⟨v, x⟩, l⟩, hl⟩ := t |
| 686 | -- As all `l i` take the value `1` at `(v, x)`, the signed sum of the minors of `l` without the |
| 687 | -- last column is `a * det l`, with `a` the ring part of `x`. |
| 688 | let A : Matrix (Fin d.succ) (Fin d.succ) c.baseAlg := fun i ↦ (l i).down |
| 689 | let a : c.baseAlg := |
| 690 | (fst ∘ ((sqZeroExt.whiskerLeft (affineSpace.snoc k d)).app c (v, x)).down) (last d) |
| 691 | have h_laplace : ∑ j : Fin d.succ, (-1) ^ (j.val + (last d).val) • |
| 692 | (A.submatrix j.succAbove (last d).succAbove).det = a * A.det := |
| 693 | sum_minor_eq_mul_det A _ (last d) fun i ↦ (hl i).left |
| 694 | -- Expand the boundary as an alternating sum and apply `detTensor` term by term. |
| 695 | have h_boundary : |
| 696 | (detTensor k d).app c ((boundary (snocRel k d) d).app c (.of ⟨((v, x), l), hl⟩)) = |
| 697 | ((a * A.det) • volumeForm.app c (.of v)) ⊗ₜ[ℤ] FreeAddCommGroup.of x := by |
| 698 | have h_sum := congrArg (fun r ↦ (r • volumeForm.app c (.of v)) ⊗ₜ[ℤ] FreeAddCommGroup.of x) |
| 699 | h_laplace |
| 700 | have h_bd : (boundary (snocRel k d) d).app c (.of ⟨((v, x), l), hl⟩) = |
| 701 | ∑ j : Fin (d + 1), ((-1) ^ (j : ℕ) • |
| 702 | freeAb.map (reindexWitness (snocRel k d) j.succAbove)).app c (.of ⟨((v, x), l), hl⟩) := |
| 703 | sum_app_apply |
| 704 | rw [h_bd] |
| 705 | -- (`using!` sees through the match in `detTensor` on the reindexed points.) |
| 706 | simpa [detTensor, A, sum_smul, sum_tmul, pow_add, mul_zsmul, -zsmul_eq_mul] using! h_sum |
| 707 | rw [h_boundary] |
| 708 | by_cases hx : x ∈ (unimodular.whisker sqZeroExt).obj c |
| 709 | · -- Here `ω x = ι w` with `a • w` the module part of `x`; hence `volumeForm (v, x)` is |
| 710 | -- `a • volumeForm v * ι w`. |
| 711 | obtain ⟨w, hw, hωx⟩ := hω c ⟨x, hx⟩ |
| 712 | refine ⟨_ ⊗ₜ .of ⟨x, hx⟩, rfl, congrArg ULift.up ?_⟩ |
| 713 | simp [volumeForm, ExteriorAlgebra.ιMulti, ↓List.ofFn_succ', a, smul_smul, ← hw, mul_comm] |
| 714 | -- `erw`, because `hωx` is stated on the subtype of unimodular points. |
| 715 | rw [hωx] |
| 716 | · -- Otherwise the last column of `l` vanishes, and so do both sides. |
| 717 | have h_det : det (fun i ↦ (l i).down) = 0 := |
| 718 | det_eq_zero_of_column_eq_zero (last d) fun i ↦ (hl i).right.resolve_left hx |
| 719 | refine ⟨0, ?_, ?_⟩ |
| 720 | · simp [A, h_det] |
| 721 | · simp [h_det] |
| 722 | |
| 723 | end |
| 724 | |
| 725 | section |
| 726 | |
| 727 | variable (k : Type) [Field k] [CharZero k] (d : ℕ) |
| 728 | |
| 729 | /-- The symbol is multiplicative. On 𝔸^d × 𝔸^1, relative to the pairs (v, x) with v or x |
| 730 | unimodular, the product of [dT/T] in degrees d and 1 is the restriction of [dT/T] in degree |
| 731 | d + 1. -/ |
| 732 | lemma symbolClass_succ : |
| 733 | ∃ h_le : unimodularSup k d ≤ unimodular.preimage (affineSpace.snoc k d), |
| 734 | HodgeH.map (relFreeAb.prod (unimodular (d := d)) (unimodular (d := 1))) |
| 735 | (cup exteriorAlg.mulPairing (symbolClass (k := k) (d := d)) symbolClass |
| 736 | (add_comm 1 d) :) = |
| 737 | HodgeH.map (relFreeAb.map (affineSpace.snoc k d) h_le) symbolClass := by |
| 738 | -- Write the class in degree `1` as a connecting class and move it past the class in degree `d`. |
| 739 | -- With the witnesses `snocRel` the product becomes the class of a cocycle `z` on `d + 1` |
| 740 | -- witnesses, and Laplace expansion shows that `z` is the pull-back of the determinant cocycle. |
| 741 | obtain ⟨ω, hω, h_one⟩ := symbolClass_one k |
| 742 | rw [h_one] |
| 743 | refine ⟨unimodularSup_le_preimage_snoc k d, ?_⟩ |
| 744 | let G : Subfunctor (sqZeroExt ⋙ affineSpace k 1) := unimodular.whisker sqZeroExt |
| 745 | -- The maps `split` are compatible with `fromRel` and with reindexing. So |
| 746 | -- `(-1) ^ d • (symbolClass ⊗ relFreeAb G)` pulls back to the class of a cocycle `y`. |
| 747 | obtain ⟨y, hy, h_coc⟩ := map_cocycleClass exists_jouanolouRel_of_unimodular exists_snocRel |
| 748 | (abTensor.flip.obj (relFreeAb G)) ((-1) ^ d • 𝟙 _) |
| 749 | (α := sqZeroExt.whiskerLeft (relFreeAb.prod unimodular unimodular)) (snocRel.split k d) |
| 750 | (fun c x ↦ relFreeAb.tmul_mk_congr fun hx ↦ |
| 751 | .symm (congrArg _ ((dite_eq_right hx).trans congr(.of ⟨⟨_, $(funext nofun)⟩, _⟩)))) |
| 752 | (snocRel.reindexWitness_comp_split k d) (detCocycle _ volumeForm) |
| 753 | -- The cochain `detTensor` lifts `y` to the sequence of `G` tensored with `hodgeCoeff`. So `y` |
| 754 | -- followed by the connecting class and `β` is the class of a cocycle `z`. |
| 755 | have hS := (relFreeAb.shortExact G).2.map_of_exact (abTensor.obj hodgeCoeff) |
| 756 | let β : (abTensor.obj hodgeCoeff).obj (freeAb.obj G.toFunctor) ⟶ hodgeCoeff := |
| 757 | (abTensor.obj hodgeCoeff).map ω ≫ exteriorAlg.mulPairing |
| 758 | have h_lift_y : abCoker.π (boundary (snocRel k d) d) ≫ y = |
| 759 | snocRel.detTensor k d ≫ (abTensor.obj hodgeCoeff).map (relFreeAb.π G) := |
| 760 | hy.trans (hom_ext fun c t ↦ relFreeAb.tmul_mk_congr fun hx ↦ |
| 761 | congrArg _ (congrArg _ (dite_eq_right hx))) |
| 762 | obtain ⟨z, hz, h_lift⟩ := exists_map_extClass_comp shortExact_boundaryFromCoker.2 hS β |
| 763 | (universalClass exists_snocRel d) (snocRel.detTensor k d) y h_lift_y |
| 764 | -- The cocycle `z` sends `((v, x), l)` to `det l • volumeForm (v, x)`. |
| 765 | have hz_val (c : HodgeTest k) (t : (witnessed (snocRel k d) (d + 1)).obj c) : |
| 766 | det (fun i ↦ (t.val.snd i).down) • volumeForm.app c |
| 767 | (.of ((sqZeroExt.whiskerLeft (affineSpace.snoc k d)).app c t.val.fst)) = |
| 768 | z.app c ((abCoker.π (boundary (snocRel k d) (d + 1))).app c (.of t)) := |
| 769 | hz c _ _ (snocRel.exists_detTensor_boundary_eq hω t) |
| 770 | calc |
| 771 | _ = (cocycleClass exists_snocRel y).comp (hS.extClass.comp (.mk₀ β) rfl) rfl := by |
| 772 | -- In total Ext, moving the connecting class past `symbolClass` costs the sign `(-1) ^ d`. |
| 773 | have h_sign := extClass_sign_comm (abTensor_shortExact (relFreeAb.shortExact G).2) |
| 774 | (symbolClass (k := k) (d := d)) |
| 775 | have map_comp {N N' F F' : AbFunctor (HodgeTest k)} (α : N' ⟶ N) (x : H N F d) |
| 776 | (ε : H F F' 1) : |
| 777 | (H.map F α d x).comp ε rfl = H.map F' α (d + 1) (x.comp ε rfl) := by |
| 778 | simp [H.map, Ext.comp_assoc (h₂₃ := rfl)] |
| 779 | rw [← h_coc, map_comp] |
| 780 | refine congrArg _ (.symm ?_) |
| 781 | apply DirectSum.of_injective (β := H _ hodgeCoeff) |
| 782 | rw [← comp_of, ← of_comp_homClass] |
| 783 | refine .trans ?_ (cup_of exteriorAlg.mulPairing symbolClass _ (add_comm 1 d)) |
| 784 | rw [← comp_of _ (mk₀ ω), cup_comp_homClass_right, TotalH.cup] |
| 785 | rcases neg_one_pow_eq_or ℤ d with h_parity | h_parity <;> |
| 786 | simpa [h_parity, β, TotalH.comp_assoc, -Functor.flip_obj_obj, ← comp_of, TotalH.homClass, |
| 787 | ← homClass_comp, mapExactFunctor_extClass] using! |
| 788 | congrArg ((-1 : ℤ) ^ d • ·) (comp_assoc_of_eq h_sign _) |
| 789 | _ = cocycleClass exists_snocRel z := h_lift |
| 790 | _ = (Comparison.id _).pull (sqZeroExt.whiskerLeft (relFreeAb.map (affineSpace.snoc k d) |
| 791 | (unimodularSup_le_preimage_snoc k d))) (d + 1) symbolClass := |
| 792 | (pull_cocycleClass exists_jouanolouRel_of_unimodular exists_snocRel _ |
| 793 | (sqZeroExt.whiskerLeft (affineSpace.snoc k d)) { app _ := ↾Prod.snd } |
| 794 | (fun _ _ ↦ And.left) |
| 795 | (by exact fun c t ↦ (FreeAddCommGroup.lift_apply_of _ _).trans (hz_val c t)) |
| 796 | (by exact fun _ _ ↦ rfl)).symm |
| 797 | _ = _ := congr($(id_pull _) _ _) |
| 798 | |
| 799 | end |
| 800 | |
| 801 | end GrothendieckSymbol |
| 802 | |
| 803 | /-! ## Point classes, excision and classes supported at finitely many points -/ |
| 804 | |
| 805 | section PointClass |
| 806 | |
| 807 | open CategoryTheory Function Ideal TrivSqZeroExt relFreeAb Field HodgeTest |
| 808 | |
| 809 | variable {k : Type} [Field k] |
| 810 | {X X' : CommAlg k ⥤ Type 1} {d e : ℕ} {R R' : CommAlg k} {U : Subfunctor X} {g : Fin d → R} |
| 811 | {m : k} {ξ : HodgeH (relFreeAb U) d} (a : EtaleChart e X) {z : X (CommAlgCat.of k k)} |
| 812 | |
| 813 | seal H.map |
| 814 | |
| 815 | /-! ### Symbols on a chart and excision -/ |
| 816 | |
| 817 | /-- Let `a` be a chart with ring `R` and `e` coordinates. Some ring map `μ : R → R ⊕ R ^ e` is a |
| 818 | section of the projection such that, for `f ∈ R ^ d` and `S` the locus of `Spec R` where `f` spans |
| 819 | the unit ideal, `μ` maps the test `(R, R ^ e)` relative to `someUnitLocus f` (where some `f i` is a |
| 820 | unit) into `Spec R` relative to `S`, by an inclusion `h`, bijectively on Hodge cohomology in all |
| 821 | degrees. -/ |
| 822 | lemma EtaleChart.exists_section_isCohomEquiv : ∃ μ : a.coordRing ⟶ HodgeTest.sqZeroExt ⟨_, Fin e⟩, |
| 823 | LeftInverse fst μ ∧ |
| 824 | ∀ {d : ℕ} {f : Fin d → a.coordRing} {S}, |
| 825 | S = (unimodular (k := k)).preimage (pointMap ⟨f⟩) → ∃ h, |
| 826 | IsCohomEquiv hodgeCoeff (relFreeAb.map (U' := someUnitLocus (c := ⟨_, Fin e⟩) f) (𝟙 _) h ≫ |
| 827 | relFreeAb.map (U := S.whisker HodgeTest.sqZeroExt) (pointMap ⟨μ⟩) le_rfl) := by |
| 828 | -- A unit `f i` generates the unit ideal. The first map is an equivalence because |
| 829 | -- `someUnitLocus f` is dense where `f` is unimodular, the second because the universal point |
| 830 | -- represents the chart. |
| 831 | obtain ⟨μ, μ_fst, μ_bij⟩ := a.exists_univPoint |
| 832 | obtain ⟨μ_inj, μ_surj⟩ := forall_and.mp μ_bij |
| 833 | refine ⟨μ, μ_fst, fun {d f S} hS ↦ ?_⟩ |
| 834 | -- Read `f` as `fst ∘ μ ∘ f`, so that both sides speak of the point `μ ∘ f`. |
| 835 | rw [show f = fun i ↦ fst (μ (f i)) by simp [μ_fst _], hS] |
| 836 | refine ⟨fun _ _ ⟨i, hi⟩ ↦ projSpace.span_eq_top_of_isUnit i (isUnit_iff_isUnit_fst.mpr hi), |
| 837 | Iff.mpr (IsCohomEquiv.comp_iff (isCohomEquiv_of_le _ fun c y ↦ |
| 838 | isCohomEquiv_someUnitLocus_of_span_eq_top ?_)) |
| 839 | ?_⟩ |
| 840 | · -- `f` is unimodular at `y`; project from `A ⊕ M` to `A` |
| 841 | apply unimodular.map c.baseProj y.property |
| 842 | · -- by `μ_surj` the range of the universal point is everything, so excision applies |
| 843 | exact relFreeAb.excision _ (.of_top_le (by tauto)) (m := mono_of_app_injective μ_inj) rfl |
| 844 | |
| 845 | /-- On a chart `a` of `X`, let `x` be a point of a functor `X'` with values in the coordinate ring, |
| 846 | and let `P` be a property of points of `X'`. Suppose two `d`-tuples `f`, `g` of functions both cut |
| 847 | out the locus where `x` satisfies `P`, meaning an algebra map kills all their entries exactly when |
| 848 | the image of `x` satisfies `P`. Then they have the same symbol, `[df / f] = [dg / g]`, relative to |
| 849 | the preimage of the complement of that locus. -/ |
| 850 | lemma EtaleChart.symbolClass_eq_of_cutsOutLocus {f g : Fin d → a.coordRing} |
| 851 | {P : (K : CommAlg k) → X'.obj K → Prop} {x : X'.obj a.coordRing} (hf : CutsOutLocus X' P x f) |
| 852 | (hg : CutsOutLocus X' P x g) : |
| 853 | symbolClass.map (relFreeAb.map _ hf.preimage_fieldLocus_not.le) = |
| 854 | symbolClass.map (relFreeAb.map _ hg.preimage_fieldLocus_not.le) := by |
| 855 | -- Both families cut out `P`, so they span one ideal: test against the quotient by any ideal. |
| 856 | have h_span : span (.range f) = span (.range g) := by |
| 857 | refine eq_of_forall_ge_iff fun I ↦ ?_ |
| 858 | rw [← I.mk_ker] |
| 859 | exact (hf _ (CommAlgCat.ofHom (Quotient.mkₐ k I))).trans (hg ..).symm |
| 860 | -- Write `f = M g`. Pull both classes back along the universal point `μ` and apply the |
| 861 | -- transformation law `symbolClass_transformation` with both matrices equal to `M` and scalar `1`. |
| 862 | have h_comb (i : Fin d) : ∃ M_i : Fin d → a.coordRing, ∑ j, M_i j * g j = f i := |
| 863 | mem_span_range_iff_exists_fun.mp (h_span.le (subset_span ⟨i, rfl⟩)) |
| 864 | choose M hM using h_comb |
| 865 | obtain ⟨⟨μ : _ →ₐ[k] TrivSqZeroExt a.coordRing (Fin e → a.coordRing)⟩, μ_fst : LeftInverse _ μ, |
| 866 | h_eqv⟩ := |
| 867 | a.exists_section_isCohomEquiv |
| 868 | -- By the Leibniz rule, `d f = M d g` modulo the ideal. |
| 869 | have h_leibniz (i : Fin d) (j : Fin e) : |
| 870 | (μ (f i)).snd j - ∑ l, M i l * (μ (g l)).snd j ∈ span (.range f) := by |
| 871 | rw [h_span] |
| 872 | simp [← hM, snd_sum, μ_fst _, Ideal.sum_mem, mul_mem_right, mem_span_range_self, |
| 873 | Finset.sum_add_distrib] |
| 874 | have hf_eq : f = Matrix.mulVec M (fst ∘ μ ∘ g) := by |
| 875 | simp [funext_iff, ← hM, Matrix.mulVec, dotProduct, μ_fst _] |
| 876 | -- The pull-back is injective, so compare there. The two composite maps of relative chains are |
| 877 | -- induced by the tuples `μ ∘ f` and `μ ∘ g`. |
| 878 | obtain ⟨h_le, h_bij⟩ := h_eqv hf.preimage_fieldLocus_not |
| 879 | apply (h_bij d).injective |
| 880 | refine (H.map_comp ..).symm.trans ((symbolClass_transformation (f := μ ∘ f) (g := μ ∘ g) |
| 881 | (fun _ _ ↦ rfl) (fun _ _ ↦ rfl) (by simp [comp_def, μ_fst _]) M M 1 hf_eq h_leibniz |
| 882 | (by simp)).trans ((one_smul ..).trans (H.map_comp ..))) |
| 883 | |
| 884 | /-- Excision. Let `u : X' ⟶ X` be injective on points with open image, and let every point in a |
| 885 | field outside the image lie in an open subfunctor contained in `U`. Then pull-back along `u` |
| 886 | is bijective from the Hodge cohomology of `(X, U)` to that of `(X', u⁻¹ U)` in all degrees. -/ |
| 887 | lemma hodge_excision {u : X' ⟶ X} [Mono u] (hu_open : IsOpenSubfunctor (Subfunctor.range u)) |
| 888 | (h_cover : ∀ K : CommAlg k, IsField K.carrier → ∀ x ∉ Subfunctor.range u K, ∃ O : Subfunctor X, |
| 889 | IsOpenSubfunctor O ∧ x ∈ O K ∧ O ≤ U) |
| 890 | {U' : Subfunctor X'} (hU' : U' = U.preimage u) : |
| 891 | IsCohomEquiv hodgeCoeff (sqZeroExt.whiskerLeft (relFreeAb.map u hU'.le)) := by |
| 892 | -- Every point in a field lies in an open set contained in the range of `u` or in `U`. |
| 893 | have h_open (K : CommAlg k) (hK : IsField K.carrier) (x : X K) : |
| 894 | ∃ O : Subfunctor X, IsOpenSubfunctor O ∧ x ∈ O K ∧ |
| 895 | O.whisker sqZeroExt ≤ .range (sqZeroExt.whiskerLeft u) ⊔ U.whisker sqZeroExt := by |
| 896 | by_cases hx : x ∈ Subfunctor.range u K |
| 897 | · exact ⟨_, hu_open, hx, le_sup_left⟩ |
| 898 | · obtain ⟨O, hO_open, hx_O, hO_le⟩ := h_cover K hK x hx |
| 899 | exact ⟨O, hO_open, hx_O, le_sup_of_le_right fun c ↦ hO_le _⟩ |
| 900 | -- So their union is dense by Zariski descent, and `relFreeAb.excision` applies. |
| 901 | have h_dens : IsCohomDense hodgeCoeff (.range (sqZeroExt.whiskerLeft u) ⊔ U.whisker sqZeroExt) := |
| 902 | hasZariskiDescent_hodgeCoeff (isZariskiLocallyTop_of_open_cover h_open) |
| 903 | subst hU' |
| 904 | exact excision (U := U.whisker _) ((restrictAlong _).map u) h_dens rfl |
| 905 | |
| 906 | /-- Pulling a Hodge class back along α ≫ β is pulling it back along β, then along α. -/ |
| 907 | @[local simp ←] |
| 908 | lemma HodgeH.map_comp {N : CommAlg k ⥤ AddCommGrpCat} {N' M : AbFunctor (CommAlg k)} (α : M ⟶ N') |
| 909 | (β : N' ⟶ N) (x : HodgeH (k := k) N d) : |
| 910 | x.map (α ≫ β) = (x.map β).map α := .symm (H.map_comp ..).symm |
| 911 | |
| 912 | @[simp] |
| 913 | lemma HodgeH.map_zero {N : AbFunctor (CommAlg k)} : ξ.map (N' := N) 0 = 0 := |
| 914 | ((H.mapHom ..).flip ξ).map_zero |
| 915 | |
| 916 | /-! ### Local multiplicities and the class of a point -/ |
| 917 | |
| 918 | /-- Let `y ∈ X(R)` be a point, `P` a locus of `X`, and `g ∈ R ^ d` functions. Then |
| 919 | `IsLocalSymbol ξ y P g m` says three things. First, `g` cuts out `P` at `y`. Second, the point `y` |
| 920 | maps the part of `Spec R` off the preimage of `P` into `U`. Third, the pull-back of `ξ` along `y` is |
| 921 | `m • [dg / g]` in the Hodge cohomology of `Spec R` relative to that part. -/ |
| 922 | def IsLocalSymbol (ξ : HodgeH (relFreeAb U) d) (y : X.obj R) (P : (K : CommAlg k) → X.obj K → Prop) |
| 923 | (g : Fin d → R) (m : k) : Prop := |
| 924 | ∃ D : CutsOutLocus X P y g, ∃ h, |
| 925 | HodgeH.map (relFreeAb.map (pointMap (A := R) y) (U := U) h) ξ = |
| 926 | m • HodgeH.map (relFreeAb.map _ D.preimage_fieldLocus_not.le) (symbolClass (k := k) (d := d)) |
| 927 | |
| 928 | /-- A local description `m • [dg / g]` at `y` is preserved by a ring map `φ : R ⟶ R'`. -/ |
| 929 | lemma IsLocalSymbol.map {y : X.obj R} {P : (K : CommAlg k) → X.obj K → Prop} |
| 930 | (h_symbol : IsLocalSymbol ξ y P g m) (φ : R ⟶ R') : |
| 931 | IsLocalSymbol ξ (X.map φ y) P (φ ∘ g) m := by |
| 932 | -- Pull the equation back along the map `Spec R' ⟶ Spec R` induced by `φ`. |
| 933 | obtain ⟨h_cut, h_le, h_eq⟩ := h_symbol |
| 934 | have cut : CutsOutLocus X P (X.map φ y) (φ ∘ g) := fun A ψ ↦ by |
| 935 | simpa [span_le, Set.range_subset_iff] using h_cut A (φ ≫ ψ) |
| 936 | use cut |
| 937 | rw! (transparency := .all) [← pointMap_comp _ (pointMap y)] |
| 938 | exact ⟨_, by simpa using! congr($(h_eq).map (relFreeAb.map _ le_rfl))⟩ |
| 939 | |
| 940 | /-- The relative class `ξ` has multiplicity `n z` at each `z ∈ s`: some chart contains `z`, |
| 941 | some `d` functions `g` on it cut out `z`, and there `ξ` restricts to `n z • [dg / g]` |
| 942 | relative to the complement of `z`. Nothing is asked of `ξ` away from `s`. -/ |
| 943 | def IsPointSum (s : Set (X (CommAlgCat.of k k))) (n : X (CommAlgCat.of k k) → k) |
| 944 | (ξ : HodgeH (relFreeAb U) d) : |
| 945 | Prop := |
| 946 | ∀ z ∈ s, ∃ a : EtaleChart d X, ∃ g : Fin d → a.coordRing, |
| 947 | z ∈ a.locus (CommAlgCat.of k k) ∧ IsLocalSymbol ξ a.point (ComesFromPoints {z}) g (n z) |
| 948 | |
| 949 | /-- The class of a `k`-point `z` in the Hodge cohomology of degree `d`: the image of a chosen |
| 950 | class with support `z` and multiplicity `1` at `z`; if there is no such class, the image of |
| 951 | an arbitrary class with support `z`. -/ |
| 952 | noncomputable def pointClass (d : ℕ) (z : X (CommAlgCat.of k k)) : HodgeH (freeAb.obj X) d := |
| 953 | HodgeH.map (q := d) (π (offPoints {z})) (Classical.epsilon (IsPointSum {z} 1)) |
| 954 | |
| 955 | variable [IsSeparatedFunctor X] |
| 956 | |
| 957 | /-- Let X be separated and z a k-point of X that lies in U. A point x of X over a field K that is |
| 958 | not in U lies in an open subfunctor contained in the complement of z, namely that complement. -/ |
| 959 | lemma exists_isOpenSubfunctor_le_offPoints (hz : z ∈ U.obj (CommAlgCat.of k k)) ⦃K : CommAlg k⦄ |
| 960 | (hK : IsField K.carrier) ⦃x : X.obj K⦄ (hx : x ∉ U K) : |
| 961 | ∃ O : Subfunctor X, IsOpenSubfunctor O ∧ x ∈ O K ∧ O ≤ offPoints {z} := by |
| 962 | -- The image of `z` lies in `U K`, so it is not `x`; take `O = offPoints {z}`. |
| 963 | have hz_mem : X.map structureMap z ∈ U K := U.map structureMap hz |
| 964 | have hx_off : x ∈ offPoints {z} K := by |
| 965 | apply (mem_offPoints_iff hK).2 |
| 966 | rintro ⟨w, hw, rfl⟩ |
| 967 | obtain rfl := Set.mem_singleton_iff.mp hw |
| 968 | exact hx hz_mem |
| 969 | exact ⟨offPoints {z}, isOpenSubfunctor_offPoints, hx_off, le_rfl⟩ |
| 970 | |
| 971 | /-- Let `X` be separated, `a` a chart of dimension `e` that contains `z`, and `g` functions on `a` |
| 972 | that cut out `z`. Some class with support `z` restricts to `[dg / g]` on `a`, and so has |
| 973 | multiplicity `1` at `z`. -/ |
| 974 | lemma EtaleChart.exists_isLocalSymbol {g : Fin e → a.coordRing} |
| 975 | (h_cut : CutsOutLocus X (ComesFromPoints {z}) a.point g) |
| 976 | (hz : z ∈ a.locus.obj (CommAlgCat.of k k)) : |
| 977 | ∃ ξ : HodgeH (relFreeAb (offPoints {z})) e, |
| 978 | IsLocalSymbol ξ a.point (ComesFromPoints {z}) g 1 ∧ IsPointSum {z} 1 ξ := by |
| 979 | -- By excision, the symbol of `g` on the chart comes from a class with support `z`. |
| 980 | obtain ⟨ξ, hξ⟩ := (hodge_excision a.isOpenSubfunctor |
| 981 | (exists_isOpenSubfunctor_le_offPoints hz) rfl e).surjective _ |
| 982 | have h_loc : IsLocalSymbol ξ a.point (ComesFromPoints {z}) g 1 := ⟨h_cut, _, hξ⟩ |
| 983 | exact ⟨ξ, h_loc, forall_eq.mpr ⟨a, g, hz, h_loc⟩⟩ |
| 984 | |
| 985 | /-- On a separated `X`, a class with support `z` and multiplicity `n z` at `z` maps to |
| 986 | `n z • pointClass d z` in the Hodge cohomology of `X`. -/ |
| 987 | lemma IsPointSum.map_eq_smul_pointClass {n : X.obj (CommAlgCat.of k k) → k} |
| 988 | {ξ : HodgeH (relFreeAb (offPoints {z})) d} (h_mult : IsPointSum {z} n ξ) : |
| 989 | HodgeH.map (π (offPoints {z})) ξ = n z • pointClass d z := by |
| 990 | -- Compare `ξ` with the class `ξ₀` chosen in `pointClass`, on the intersection `c` of their two |
| 991 | -- charts. |
| 992 | obtain ⟨a, g, hz, hξ⟩ := h_mult z rfl |
| 993 | let ξ₀ : HodgeH (relFreeAb (offPoints {z})) d := Classical.epsilon (IsPointSum {z} 1) |
| 994 | have h₀ : IsPointSum {z} 1 ξ₀ := |
| 995 | Classical.epsilon_spec ((a.exists_isLocalSymbol hξ.fst hz).imp fun _ ↦ And.right) |
| 996 | obtain ⟨b, g₀, hz₀, hξ₀⟩ := h₀ z rfl |
| 997 | obtain ⟨c, hc⟩ := a.exists_locus_eq_inf b |
| 998 | obtain ⟨⟨⟨φ : a.coordRing ⟶ c.coordRing⟩, hφ : X.map φ a.point = c.point⟩, |
| 999 | ⟨ψ : b.coordRing ⟶ c.coordRing⟩, hψ : X.map ψ b.point = c.point⟩ := hc.le _ c.point_mem_locus |
| 1000 | obtain ⟨cut, _, local_eq⟩ : IsLocalSymbol ξ c.point (ComesFromPoints {z}) (φ ∘ g) (n z) := by |
| 1001 | simpa only [hφ] using hξ.map φ |
| 1002 | obtain ⟨cut₀, _, local_eq₀⟩ : IsLocalSymbol ξ₀ c.point (ComesFromPoints {z}) (ψ ∘ g₀) 1 := by |
| 1003 | simpa only [hψ, Pi.one_apply] using hξ₀.map ψ |
| 1004 | -- Both families cut out `z` on `c`, so they have the same symbol. |
| 1005 | rw [c.symbolClass_eq_of_cutsOutLocus cut cut₀, ← local_eq₀.trans (one_smul ..), ← map_smul] |
| 1006 | at local_eq |
| 1007 | -- By excision, restriction to the chart `c` is injective on classes with support `z`. |
| 1008 | obtain rfl : ξ = n z • ξ₀ := (hodge_excision c.isOpenSubfunctor |
| 1009 | (exists_isOpenSubfunctor_le_offPoints (hc.ge _ ⟨hz, hz₀⟩)) rfl d).injective local_eq |
| 1010 | exact map_smul .. |
| 1011 | |
| 1012 | /-- On a separated `X`, every class with support `z` and multiplicity `1` at `z` maps to |
| 1013 | `pointClass d z`. So `pointClass d z` does not depend on the choice made in its definition. -/ |
| 1014 | lemma IsPointSum.map_eq_pointClass {d : ℕ} {z : X (CommAlgCat.of k k)} |
| 1015 | {ξ₀ : HodgeH (relFreeAb (offPoints {z})) d} (h_mult : IsPointSum {z} 1 ξ₀) : |
| 1016 | HodgeH.map (π (offPoints {z})) ξ₀ = pointClass d z := by |
| 1017 | rw [h_mult.map_eq_smul_pointClass, Pi.one_apply, one_smul] |
| 1018 | |
| 1019 | /-- Over a field `k`, on a separated `X`, let `ξ` be a relative class on `(X, U)` with |
| 1020 | multiplicities `n` at a set `s` of `k`-points (`IsPointSum s n ξ`). Suppose `ξ` is the sum of the |
| 1021 | pull-backs of classes `x` on `(X, A)` and `y` on `(X, B)`, where `B` is the complement |
| 1022 | `offPoints t'` of a set `t'` of `k`-points. Then `x` has the same multiplicities `n` on |
| 1023 | `t = s \ t'`. -/ |
| 1024 | private lemma IsPointSum.of_eq_add {s t : Set (X (CommAlgCat.of k k))} |
| 1025 | {n : X.obj (CommAlgCat.of k k) → k} (h_mult : IsPointSum s n ξ) |
| 1026 | {A B : Subfunctor X} {l : U ≤ A.preimage (𝟙 X)} {l' : U ≤ B.preimage (𝟙 X)} |
| 1027 | {x : HodgeH (relFreeAb A) d} {y : HodgeH (relFreeAb B) d} |
| 1028 | (t' : Set (X (CommAlgCat.of k k))) |
| 1029 | (h_sum : ξ = .map (map (𝟙 X) (U := A) l) x + .map (map (𝟙 X) (U := B) l') y) |
| 1030 | (hB : B = offPoints t') (ht : t = s \ t') : IsPointSum t n x := by |
| 1031 | -- In such a sum, a class with support `t'` vanishes on the chart at a point `w ∉ t'`, as that |
| 1032 | -- chart misses `t'`; so the other summand has the multiplicity of `ξ` at `w`. |
| 1033 | subst hB ht |
| 1034 | rintro w ⟨hw, hw'⟩ |
| 1035 | obtain ⟨a, g, ha, cut, h_le_chart, local_eq⟩ := h_mult w hw |
| 1036 | have h_vanish : map _ h_le_chart ≫ map _ l' = 0 := by |
| 1037 | refine hom_ext fun C σ ↦ mk_eq_zero fun K φ hK ↦ (mem_offPoints_iff hK).mp ?_ |
| 1038 | -- a point of the chart in `t'` is not `w`, so by `h_le_chart` and `l'` it lies in |
| 1039 | -- `offPoints t'` |
| 1040 | change X.map φ (X.map σ.down a.point) ∈ (offPoints t').obj K |
| 1041 | rw [← X.map_comp_apply] |
| 1042 | by_contra h_notMem |
| 1043 | have hw_mem : w ∈ (offPoints t').obj (CommAlgCat.of k k) := by |
| 1044 | aesop (add simp [mem_offPoints_iff, ComesFromPoints, toIsField]) |
| 1045 | obtain ⟨O, -, h_mem_O, hO_le⟩ := exists_isOpenSubfunctor_le_offPoints hw_mem hK h_notMem |
| 1046 | tauto |
| 1047 | exact ⟨a, g, ha, cut, _, by simpa [h_sum, h_vanish] using local_eq⟩ |
| 1048 | |
| 1049 | /-- On a separated `X`, a class with support in a finite set `s` of `k`-points and |
| 1050 | multiplicities `n` maps to `∑ z ∈ s, n z • pointClass d z` in the Hodge cohomology of `X`. -/ |
| 1051 | lemma IsPointSum.map_eq_sum_pointClass {s : Finset (X (CommAlgCat.of k k))} |
| 1052 | {n : X.obj (CommAlgCat.of k k) → k} (h_mult : IsPointSum s n ξ) (hU : U = offPoints s) : |
| 1053 | HodgeH.map (π U) ξ = ∑ z ∈ s, n z • pointClass d z := by |
| 1054 | classical |
| 1055 | induction s using Finset.induction generalizing U with |
| 1056 | | empty => |
| 1057 | -- no point lies in the empty set, so every class is `0` relative to `offPoints ∅` |
| 1058 | have h_zero : π U = 0 := freeAb.hom_ext fun _ _ ↦ mk_eq_zero (hU.ge _ nofun) |
| 1059 | simp [h_zero] |
| 1060 | | insert z s hz ih => ?_ |
| 1061 | obtain rfl : U = offPoints {z} ⊓ offPoints s := by |
| 1062 | aesop (add simp [offPoints, fieldLocus]) (add simp ComesFromPoints) |
| 1063 | -- Mayer–Vietoris: `ξ` is the sum of classes `x` with support `z` and `y` with support `s`. |
| 1064 | -- Excision gives `x` that agrees with `ξ` on `V = offPoints s`. |
| 1065 | let V : Subfunctor X := offPoints s |
| 1066 | have hV_open : IsOpenSubfunctor (Subfunctor.range V.ι) := by simp [V, isOpenSubfunctor_offPoints] |
| 1067 | have hz_V : z ∈ (Subfunctor.range V.ι).obj (CommAlgCat.of k k) := by |
| 1068 | simpa [V, toIsField, mem_offPoints_iff, ComesFromPoints] |
| 1069 | have h_restrict : (offPoints {z} ⊓ V).preimage V.ι = (offPoints {z}).preimage V.ι := |
| 1070 | Subfunctor.ext (funext fun _ ↦ Set.ext fun p ↦ and_iff_left p.property) |
| 1071 | obtain ⟨x : HodgeH (relFreeAb (offPoints {z})) d, |
| 1072 | hx : x.map (map V.ι h_restrict.le) = ξ.map (map V.ι le_rfl)⟩ := |
| 1073 | (hodge_excision hV_open (exists_isOpenSubfunctor_le_offPoints hz_V) h_restrict d).2 _ |
| 1074 | -- `ξ - x` restricts to `0` on `V`, so by the long exact sequence of the triple |
| 1075 | -- `offPoints {z} ⊓ V ≤ V ≤ X` it comes from a class `y` relative to `V`. |
| 1076 | have h_diff : (ξ - x.map (map (𝟙 X) (by simp))).map (map V.ι le_rfl) = 0 := |
| 1077 | (HodgeH.map _).sub_mem_ker_iff.mpr (by simpa using! hx.symm) |
| 1078 | obtain ⟨y : HodgeH .., hy : y.map (relFreeAb.map _ (by simp)) = _⟩ := |
| 1079 | ((LongExactSeq.contravariant ((shortExact_triple ..).2.map_of_exact (restrictAlong _)) |
| 1080 | _).exact_f_g d _).1 h_diff |
| 1081 | obtain rfl := add_eq_of_eq_sub' hy |
| 1082 | -- The case of one point applies to `x`, the induction hypothesis to `y`. |
| 1083 | have hx_sum : IsPointSum {z} n x := h_mult.of_eq_add s rfl (by simp [V]) (by |
| 1084 | ext w |
| 1085 | simp only [Set.mem_singleton_iff, Set.mem_sdiff, Finset.mem_coe, Finset.mem_insert] |
| 1086 | exact ⟨fun hw ↦ ⟨Or.inl hw, hw ▸ hz⟩, fun ⟨h, hns⟩ ↦ h.resolve_right hns⟩) |
| 1087 | have hy_sum : IsPointSum s n y := h_mult.of_eq_add {z} (add_comm ..) rfl (by |
| 1088 | rw [Finset.coe_insert, |
| 1089 | Set.insert_sdiff_self_of_notMem (by simpa only [Finset.mem_coe] using hz)]) |
| 1090 | simp [V, hz, ← ih hy_sum, ← hx_sum.map_eq_smul_pointClass, π_map] |
| 1091 | |
| 1092 | end PointClass |
| 1093 | |
| 1094 | end New.Variety |
| 1095 | |
| 1096 | end |