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 Mathlib.Tactic.Monotonicity.Lemmas |
| 4 | public import Mathlib.Algebra.DualNumber |
| 5 | import Mathlib.RingTheory.Coalgebra.IsFrobenius |
| 6 | import Mathlib.RingTheory.Henselian |
| 7 | import Mathlib.RingTheory.RegularLocalRing.Defs |
| 8 | import Mathlib.RingTheory.SimpleRing.Principal |
| 9 | public import Lib.Cohomology.Hodge.GrothendieckSymbol |
| 10 | import Lib.Cohomology.Hodge.DiagonalClass |
| 11 | import Lib.Cohomology.Hodge.Kunneth |
| 12 | import Lib.General.Algebra.MultivariatePolynomials |
| 13 | |
| 14 | /-! |
| 15 | # Reduced coincidences and the fixed point formula in Hodge cohomology |
| 16 | |
| 17 | Let `W`, `X` be functors from `k`-algebras to sets (`New.Variety.CommAlg k ⥤ Type 1`), standing for |
| 18 | schemes, and let `u c : W ⟶ X` be two maps. A coincidence is a point `x` of `W` with `c x = u x`. |
| 19 | The file proves the fixed point formula in Hodge cohomology `Hdg^d(W)`, that is |
| 20 | `HodgeH (freeAb.obj W) d`, computed on square-zero extensions `A ⊕ M`: a pulled-back diagonal class |
| 21 | is a sum of point classes `New.Variety.pointClass d w` over the coincidences, weighted by Jacobian |
| 22 | determinants. If `k` is algebraically closed, `X` is separated, every `k[ε]`-valued coincidence is |
| 23 | constant and finitely many charts of `W` contain all field-valued coincidences, then the |
| 24 | coincidences form a finite set of rational points, which carry these local terms. |
| 25 | |
| 26 | ## Main definitions and results |
| 27 | |
| 28 | * `New.Variety.ConstIfCoincident`, `New.Variety.IsCoincidenceSet`: reduced coincidences, and a |
| 29 | finite set of rational points that lists them all. |
| 30 | * `New.Variety.HasJacobianRatio`: the local term, the determinant of `(t du - dc) (du - dc)⁻¹`. |
| 31 | * `New.Variety.IsTangentPoly.hasJacobianRatio_eval_div`: a tangent polynomial `P` with `P 1 ≠ 0` |
| 32 | gives this term as `P t / P 1`; by `New.Variety.IsTangentPoly.constIfCoincident` the coincidences |
| 33 | at that point are then reduced. |
| 34 | * `New.Variety.scaledGraph`: the graph of `(u, c)` twisted by the scaling of `M` by `t` in the first |
| 35 | factor. |
| 36 | * `New.Variety.exists_diagonal_local_terms`: the class `δ` of the diagonal, pulled back along this |
| 37 | twisted graph, is `∑ n w • pointClass d w` over the coincidences `w` of `u` and `c`, where `n w` |
| 38 | is the determinant of a matrix `N` with `t du - dc = N (du - dc)` at `w` |
| 39 | (`New.Variety.HasJacobianRatio`). |
| 40 | * `New.Variety.IsPointSum.cup_pointClass`: the external product of the class of a point of `X` and |
| 41 | the class of a point of a curve is the class of the product point. |
| 42 | |
| 43 | Notions from other files: |
| 44 | * `New.Variety.HodgeH`: Hodge cohomology: for a functor N from k-algebras to abelian groups, Ext^q |
| 45 | from (A, M) ↦ N(A ⊕ M) to (A, M) ↦ ⋀_A M, in functors on pairs. |
| 46 | * `New.Variety.symbolClass`: The Grothendieck symbol [dT/T] in Hdg^d(𝔸^d, 𝔸^d ∖ 0); its pull-back |
| 47 | along a tuple f of functions is the symbol [df/f]. |
| 48 | * `New.Variety.IsPointSum`: A relative class has multiplicity n z at each z in s: on some chart |
| 49 | containing z it restricts to n z times the symbol [dg / g] of functions g that cut out z. |
| 50 | * `New.Variety.IsTangentPoly`: at a point `y ∈ W(k)`, the tangent map `dc` on the tangent space of |
| 51 | dimension `d` is injective, `du = dc ∘ B`, and `P t = P 0 * det (1 - t B)`. |
| 52 | * `New.Variety.HasAtlas`: X is separated and has finitely many charts, each with exactly d étale |
| 53 | coordinates, that contain every field-valued point. |
| 54 | * `New.Variety.offPoints`: for a set s of k-points of X, the subfunctor of the points none of whose |
| 55 | values in fields comes from s. |
| 56 | * `New.Variety.exteriorAlg`, `CategoryTheory.Functor.mulPairing`: the exterior algebra ⋀_A M of a |
| 57 | pair (A, M), and the pairing given by its multiplication (the wedge product of coefficients in the |
| 58 | cup product). |
| 59 | * `New.Variety.freeAb.prod`: for set-valued functors X, Y, the map ℤ[X × Y] → ℤ[X] ⊗ ℤ[Y], [(x, |
| 60 | y)] ↦ [x] ⊗ [y]. |
| 61 | |
| 62 | ## Relation to the literature |
| 63 | |
| 64 | Known result: the fixed point formula in Hodge cohomology, with local terms computed by |
| 65 | Grothendieck symbols. Here the setting is characteristic 0 and smooth separated varieties with a |
| 66 | finite atlas, with cohomology taken as Ext of functors. The class of the diagonal and Künneth |
| 67 | surjectivity for X×X are not proved here; they come from `exists_diagonal_class` and `kunneth` in |
| 68 | other files. Here the point classes are multiplied for a product with a curve, and the pull-back of |
| 69 | the diagonal class along reduced coincidences is given as a weighted sum of point classes. Source: |
| 70 | Stacks Project, tags 0BEC (Künneth) and 0G82 (Gysin maps); A. Chatzistamatiou, K. Rülling, Higher |
| 71 | direct images of the structure sheaf in positive characteristic, Algebra & Number Theory 5 (2011) |
| 72 | 693-775, sections 2-3; V. Srinivas, Gysin maps and cycle classes for Hodge cohomology, Proc. Indian |
| 73 | Acad. Sci. Math. Sci. 103 (1993) 209-247; Hartshorne, Residues and Duality (1966) III.9 for the |
| 74 | symbol. |
| 75 | |
| 76 | See also `Lib.Cohomology.WoodsHole` and `Lib.Cohomology.PointClass.LinearIndependence`. |
| 77 | -/ |
| 78 | |
| 79 | @[expose] public section |
| 80 | |
| 81 | namespace New.Variety |
| 82 | |
| 83 | /-! |
| 84 | ## Reduced coincidences and their Jacobian determinants |
| 85 | |
| 86 | A chart `New.Variety.EtaleChart d X` is an affine open of `X` with `d` étale coordinates, given by a |
| 87 | ring `R` and a point of `X` in `R`; its locus `New.Variety.EtaleChart.locus` is the open subfunctor |
| 88 | of the points that come from `R`. Tangent vectors are `k[ε]`-points; `New.Variety.SqZeroExt.fst` is |
| 89 | the map `k ⊕ M → k` (so `k[ε] → k`) and `New.Variety.structureMap` the structure map of a |
| 90 | `k`-algebra. |
| 91 | -/ |
| 92 | |
| 93 | open CategoryTheory in |
| 94 | /-- In a separated target, the coincidences of two natural transformations at a point after |
| 95 | base change are cut out by an ideal of its coefficient ring. -/ |
| 96 | lemma IsSeparatedFunctor.exists_ideal_coincidence {k : Type} [CommRing k] |
| 97 | {W X : CommAlg k ⥤ Type 1} [IsSeparatedFunctor X] (u c : W ⟶ X) |
| 98 | {A : CommAlg k} (x : W.obj A) : |
| 99 | ∃ J : Ideal A, ∀ (B : CommAlg k) (φ : A ⟶ B), |
| 100 | u.app B (W.map φ x) = c.app B (W.map φ x) ↔ J ≤ RingHom.ker φ.hom := by |
| 101 | simpa only [u.naturality_apply, c.naturality_apply] using |
| 102 | (IsSeparatedFunctor.exists_ideal A (u.app A x) (c.app A x)) |
| 103 | |
| 104 | section IsolatedCoincidences |
| 105 | |
| 106 | open CategoryTheory Ideal CommAlgCat Algebra TrivSqZeroExt Matrix Set SqZeroExt NatTrans DualNumber |
| 107 | Module |
| 108 | |
| 109 | variable {k E : Type} {d : ℕ} [Field k] {W X : CommAlg k ⥤ Type 1} [Field E] [Algebra E k] |
| 110 | |
| 111 | /-- For two maps `u c : W ⟶ X`: if the `k[ε]`-valued point `x` of `W` is a coincidence of `u` and |
| 112 | `c`, then it is constant, that is, the image of its base point under `k → k[ε]`. -/ |
| 113 | abbrev ConstIfCoincident (u c : W ⟶ X) (x : W.obj (CommAlgCat.of k k[ε])) : Prop := |
| 114 | c.app (CommAlgCat.of k k[ε]) x = u.app (CommAlgCat.of k k[ε]) x → |
| 115 | x = W.map (SqZeroExt.fst ≫ structureMap) x |
| 116 | |
| 117 | /-- The finite set `s` of `k`-points of `W` is the set of coincidences of the maps `u c : W ⟶ X`, |
| 118 | and these are reduced: every `k[ε]`-valued coincidence is constant, every point of `s` is a |
| 119 | coincidence, and every field-valued coincidence comes from a point of `s`. -/ |
| 120 | def IsCoincidenceSet (u c : W ⟶ X) (s : Finset (W.obj (CommAlgCat.of k k))) : Prop := |
| 121 | (∀ x : W.obj (CommAlgCat.of k k[ε]), ConstIfCoincident u c x) ∧ |
| 122 | (∀ w ∈ s, c.app (CommAlgCat.of k k) w = u.app (CommAlgCat.of k k) w) ∧ |
| 123 | ∀ K : CommAlg k, IsField K → ∀ x : W.obj K, c.app K x = u.app K x → |
| 124 | ∃ w ∈ s, x = W.map structureMap w |
| 125 | |
| 126 | /-- If all dual-number points cut out by `I` are constant, Nakayama gives a `b` nonzero at `ζ` |
| 127 | that multiplies its kernel into `I`. Thus the two ideals agree locally at `ζ`. -/ |
| 128 | private lemma exists_mem_colon_of_const_tangents (a : EtaleChart d W) {I : Ideal a.coordRing} |
| 129 | (ζ : a.coordRing →ₐ[k] k) (hζ : I ≤ RingHom.ker ζ) |
| 130 | (h_const : ∀ p : a.coordRing →ₐ[k] k[ε], I ≤ RingHom.ker p → |
| 131 | W.map (ofHom p) a.point = W.map (SqZeroExt.fst ≫ structureMap) (W.map (ofHom p) a.point)) : |
| 132 | ∃ b ∈ I.colon (RingHom.ker ζ), ζ b ≠ 0 := by |
| 133 | refine exists_mem_colon_of_tangent (k := k) rfl hζ fun p _ hp r ↦ ?_ |
| 134 | exact congrArg TrivSqZeroExt.snd |
| 135 | (ConcreteCategory.congr_hom (a.eq_comp_of_map_point_eq _ (h_const p hp)) r) |
| 136 | |
| 137 | /-- Let `k` be algebraically closed, `X` separated (`IsSeparatedFunctor X`) and `u c : W ⟶ X` two |
| 138 | maps. Suppose that every `k[ε]`-valued coincidence of `u` and `c` is constant (`h_red`) and that |
| 139 | finitely many charts `a i` of `W`, affine opens with `d` étale coordinates, contain all |
| 140 | field-valued coincidences (`h_cover`). Then there is a finite set `s` of `k`-points of `W` with |
| 141 | `IsCoincidenceSet u c s`: the coincidences are the points of `s`, and they are reduced. -/ |
| 142 | lemma exists_isCoincidenceSet (u c : W ⟶ X) [IsAlgClosed k] [hX : IsSeparatedFunctor X] |
| 143 | (h_red : ∀ x : W.obj (CommAlgCat.of k k[ε]), ConstIfCoincident u c x) |
| 144 | {ι : Sort*} [Finite ι] (a : ι → EtaleChart d W) |
| 145 | (h_cover : ∀ K : CommAlg k, IsField K → ∀ x : W.obj K, c.app K x = u.app K x → |
| 146 | ∃ i : ι, x ∈ (a i).locus.obj K) : |
| 147 | ∃ s : Finset (W.obj (CommAlgCat.of k k)), IsCoincidenceSet u c s := by |
| 148 | -- In each chart the coincidences are cut out by an ideal `J i`. Choose a rational point on each |
| 149 | -- of its finitely many components; as the coincidences have no nonzero tangent vectors |
| 150 | -- (`h_red`), a component is that point. |
| 151 | choose J hJ using fun i : ι ↦ IsSeparatedFunctor.exists_ideal_coincidence c u (a i).point |
| 152 | have h_point ⦃i : ι⦄ ⦃p : Ideal (a i).coordRing⦄ (hp : p ∈ (J i).minimalPrimes) : |
| 153 | ∃ o : (a i).coordRing →ₐ[k] k, p ≤ RingHom.ker o := |
| 154 | nullstellensatz_exists_le_ker hp.isPrime.ne_top |
| 155 | choose o ho using h_point |
| 156 | have h_fin (i : ι) : (J i).minimalPrimes.Finite := |
| 157 | have : IsNoetherianRing (a i).coordRing := FiniteType.isNoetherianRing k (a i).coordRing |
| 158 | finite_minimalPrimes_of_isNoetherianRing (a i).coordRing (J i) |
| 159 | -- `s` is the finite set of these points, over all charts and all minimal primes. |
| 160 | let s : Finset (W.obj (CommAlgCat.of k k)) := (finite_iUnion fun i ↦ |
| 161 | (h_fin i).dependent_image fun p hp ↦ W.map (ofHom (o hp)) (a i).point).toFinset |
| 162 | have h_mem (w : W.obj (CommAlgCat.of k k)) : w ∈ s ↔ ∃ (i : ι) (p : Ideal (a i).coordRing) |
| 163 | (hp : p ∈ (J i).minimalPrimes), W.map (ofHom (o hp)) (a i).point = w := by |
| 164 | simp [s] |
| 165 | refine ⟨s, h_red, ?_, ?_⟩ |
| 166 | · -- The point `o hp` kills `J i`, so it is a coincidence. |
| 167 | intro w hw |
| 168 | obtain ⟨i, p, hp, rfl⟩ := (h_mem w).mp hw |
| 169 | exact (hJ i (CommAlgCat.of k k) (ofHom (o hp))).mpr (hp.le.trans (ho hp)) |
| 170 | · -- A coincidence `x` with values in a field comes from a map `φ` out of the ring of a chart. |
| 171 | intro K hK x hx |
| 172 | obtain ⟨i, ⟨φ : (a i).coordRing ⟶ K⟩, (rfl : W.map φ (a i).point = x)⟩ := h_cover K hK x hx |
| 173 | -- The kernel of `φ` is a prime containing `J i`, so it contains a minimal prime `p` of `J i`. |
| 174 | have : IsDomain K := hK.isDomain |
| 175 | have : (RingHom.ker φ.hom).IsPrime := RingHom.ker_isPrime φ.hom |
| 176 | obtain ⟨p, hp, hp_ker⟩ := exists_minimalPrimes_le ((hJ i K φ).mp hx) |
| 177 | -- Constant tangents make the chart ideal agree locally with the ideal of the point. |
| 178 | obtain ⟨b, hb, hb_ne⟩ := exists_mem_colon_of_const_tangents (a i) (o hp) |
| 179 | (hp.le.trans (ho hp)) fun v hv ↦ h_red _ ((hJ i _ (ofHom v)).mpr hv) |
| 180 | -- Since `b ∉ p`, that ideal lies in `p`, so `φ` factors through the point. |
| 181 | have h_ker : RingHom.ker (o hp) ≤ p := fun r hr ↦ |
| 182 | (hp.isPrime.mem_or_mem (hp.le (Submodule.mem_colon.mp hb r hr))).resolve_left |
| 183 | fun hb_mem ↦ hb_ne (RingHom.mem_ker.mp (ho hp hb_mem)) |
| 184 | obtain rfl : φ = ofHom (o hp) ≫ structureMap := |
| 185 | eq_comp_structureMap_of_ker_le (h_ker.trans hp_ker) |
| 186 | exact ⟨_, (h_mem _).mpr ⟨i, p, hp, rfl⟩, W.map_comp_apply (ofHom (o hp)) structureMap _⟩ |
| 187 | |
| 188 | /-- For a scalar `t` of `k`, the number `n` is `det ((t du - dc) (du - dc)⁻¹)` at `w`: in every |
| 189 | chart `A` of `X` that contains `c w` there is a matrix `N` of determinant `n` with |
| 190 | `t du v - dc v = N (du v - dc v)` for all tangent vectors `v` at `w`, where `ξ` gives the |
| 191 | coordinates of a tangent vector in `A`. Here `X` is a functor on `E`-algebras, and `u`, `c` map |
| 192 | `W` to `X` read on `k`-algebras (`restrictAlg E k ⋙ X`). -/ |
| 193 | def HasJacobianRatio {X : CommAlg E ⥤ Type 1} (u c : W ⟶ restrictAlg E k ⋙ X) (d : ℕ) (t n : k) |
| 194 | (w : W.obj (CommAlgCat.of k k)) : Prop := |
| 195 | ∀ A : EtaleChart d X, |
| 196 | c.app (CommAlgCat.of k k) w ∈ A.locus.obj ((restrictAlg E k).obj (CommAlgCat.of k k)) → |
| 197 | let ξ (γ : A.coordRing ⟶ (restrictAlg E k).obj (CommAlgCat.of k k[ε])) (i : Fin d) : k := |
| 198 | (γ (A.coordinate i)).snd |
| 199 | ∃ N : Matrix (Fin d) (Fin d) k, N.det = n ∧ |
| 200 | ∀ (v : W.obj (CommAlgCat.of k k[ε])) |
| 201 | (α γ : A.coordRing ⟶ (restrictAlg E k).obj (CommAlgCat.of k k[ε])), |
| 202 | W.map SqZeroExt.fst v = w → |
| 203 | X.map α A.point = u.app (CommAlgCat.of k k[ε]) v → |
| 204 | X.map γ A.point = c.app (CommAlgCat.of k k[ε]) v → |
| 205 | t • ξ α - ξ γ = N *ᵥ (ξ α - ξ γ) |
| 206 | |
| 207 | /-- The tangent vector of a jet `v`, a point of `W` with values in `k ⊕ T*`, in the direction |
| 208 | `φ ∈ T`: the image of `v` under the map `k ⊕ T* → k[ε]` given by evaluation at `φ`. -/ |
| 209 | abbrev jetTangent {T : FGModuleCat k} (v : W.obj (CommAlgCat.of k (TrivSqZeroExt k (Dual k T)))) |
| 210 | (φ : T) : W.obj (CommAlgCat.of k k[ε]) := |
| 211 | W.map (ofHom (TrivSqZeroExt.map (Dual.eval k T φ))) v |
| 212 | |
| 213 | /-- Let `v` be a jet of `X` with values in `k ⊕ T*`, where `T` has dimension `d`, whose base point |
| 214 | lies in a chart `A` with `d` coordinates, and whose tangent vectors in distinct directions are |
| 215 | distinct. Then every tangent vector at the base point is one of these, and the coordinates of the |
| 216 | tangent vector in the direction `φ` are `D φ` for a linear isomorphism `D : T ≃ kᵈ`. Here `X` is |
| 217 | a functor on `E`-algebras, read on `k`-algebras through `restrictAlg E k`. -/ |
| 218 | lemma EtaleChart.tangent_mem_range_of_jet {X : CommAlg E ⥤ Type 1} (A : EtaleChart d X) |
| 219 | {T : FGModuleCat k} (hT : finrank k T = d) |
| 220 | (v : (restrictAlg E k ⋙ X).obj (CommAlgCat.of k (TrivSqZeroExt k (Dual k T)))) |
| 221 | (hv : (restrictAlg E k ⋙ X).map SqZeroExt.fst v ∈ |
| 222 | A.locus.obj ((restrictAlg E k).obj (CommAlgCat.of k k))) |
| 223 | (h_inj : Function.Injective (jetTangent v)) : |
| 224 | (∀ w : (restrictAlg E k ⋙ X).obj (CommAlgCat.of k k[ε]), |
| 225 | (restrictAlg E k ⋙ X).map SqZeroExt.fst w = (restrictAlg E k ⋙ X).map SqZeroExt.fst v → |
| 226 | w ∈ range (jetTangent v)) ∧ |
| 227 | ∃ D : T ≃ₗ[k] (Fin d → k), ∀ (φ : T) (α : |
| 228 | A.coordRing ⟶ (restrictAlg E k).obj (CommAlgCat.of k k[ε])), |
| 229 | X.map α A.point = jetTangent v φ → (fun i : Fin d ↦ (α (A.coordinate i)).snd) = D φ := by |
| 230 | -- By definition, `IsSquareZero` of the projection `k ⊕ M → k` is the statement of |
| 231 | -- `fst_surjective_and_kerIdeal_sq_eq_bot`. |
| 232 | have h_sq {M : Type} [AddCommGroup M] [Module k M] [Module kᵐᵒᵖ M] [IsCentralScalar k M] : |
| 233 | IsSquareZero ((restrictAlg E k).map (fst (M := M))) := |
| 234 | fst_surjective_and_kerIdeal_sq_eq_bot (k := k) (M := M) |
| 235 | -- The chart is open and contains the base point of `v`, so it contains `v`: `v` is given by a |
| 236 | -- map `γ` from the ring of the chart. |
| 237 | obtain ⟨⟨γ : A.coordRing ⟶ (restrictAlg E k).obj (.of k (TrivSqZeroExt k (Dual k T)))⟩, |
| 238 | (rfl : X.map γ A.point = v)⟩ := A.isOpenSubfunctor.mem_of_isSquareZero _ h_sq v hv |
| 239 | -- The coordinates being étale, a tangent vector is determined by its base point and its |
| 240 | -- coordinates. |
| 241 | have h_uniq {α β : A.coordRing ⟶ (restrictAlg E k).obj (.of k k[ε])} |
| 242 | (h_base : α ≫ (restrictAlg E k).map fst = β ≫ (restrictAlg E k).map fst) |
| 243 | (h_coord : (fun i : Fin d ↦ (α (A.coordinate i)).snd) = |
| 244 | fun i : Fin d ↦ (β (A.coordinate i)).snd) : |
| 245 | α = β := by |
| 246 | exact A.lift_unique h_sq h_base fun i ↦ |
| 247 | TrivSqZeroExt.ext (ConcreteCategory.congr_hom h_base (A.coordinate i)) (congrFun h_coord i) |
| 248 | -- The tangent vector of `v` in the direction `φ` is given by the map `g φ`; all of them have the |
| 249 | -- base point of `v`. |
| 250 | let g (φ : T) : A.coordRing ⟶ (restrictAlg E k).obj (.of k k[ε]) := |
| 251 | γ ≫ (restrictAlg E k).map (ofHom (map (Dual.eval k T φ))) |
| 252 | have h_jet_eq (φ : T) : |
| 253 | jetTangent (W := restrictAlg E k ⋙ X) (X.map γ A.point) φ = X.map (g φ) A.point := |
| 254 | (X.map_comp_apply γ _ _).symm |
| 255 | have hg_base (φ : T) : g φ ≫ (restrictAlg E k).map fst = γ ≫ (restrictAlg E k).map fst := by |
| 256 | have h_fst_map : ofHom (map (Dual.eval k T φ)) ≫ SqZeroExt.fst = SqZeroExt.fst := by |
| 257 | ext r |
| 258 | simp [SqZeroExt.fst] |
| 259 | simp only [g, Category.assoc, ← Functor.map_comp, h_fst_map] |
| 260 | -- The coordinates of the tangent vector in the direction `φ` are linear in `φ` and |
| 261 | -- injective, hence bijective by dimension. |
| 262 | let L : T →ₗ[k] Fin d → k := .pi fun i ↦ (γ (A.coordinate i)).snd |
| 263 | have hL_coord (φ : T) : (fun i : Fin d ↦ (g φ (A.coordinate i)).snd) = L φ := by |
| 264 | ext i |
| 265 | change (TrivSqZeroExt.map (Dual.eval k T φ) (γ (A.coordinate i))).snd = |
| 266 | (γ (A.coordinate i)).snd φ |
| 267 | exact snd_map (Dual.eval k T φ) _ |
| 268 | have hL : Function.Injective L := by |
| 269 | intro φ ψ h_eq |
| 270 | have hg : g φ = g ψ := h_uniq ((hg_base φ).trans (hg_base ψ).symm) |
| 271 | (by rw [hL_coord, hL_coord, h_eq]) |
| 272 | apply h_inj |
| 273 | rw [h_jet_eq φ, h_jet_eq ψ, hg] |
| 274 | let D : T ≃ₗ[k] (Fin d → k) := |
| 275 | L.linearEquivOfInjective hL (hT.trans (Module.finrank_fin_fun k).symm) |
| 276 | refine ⟨fun w hw ↦ ?_, D, fun φ α hα ↦ ?_⟩ |
| 277 | · -- A tangent vector `w` at the base point is given by a map `α`; it is `g φ` for the `φ` with |
| 278 | -- the coordinates of `α`. |
| 279 | obtain ⟨⟨α : A.coordRing ⟶ (restrictAlg E k).obj (.of k k[ε])⟩, (rfl : X.map α A.point = w)⟩ := |
| 280 | A.isOpenSubfunctor.mem_of_isSquareZero _ h_sq w (mem_of_eq_of_mem hw hv) |
| 281 | obtain ⟨φ, hφ⟩ := D.surjective fun i : Fin d ↦ (α (A.coordinate i)).snd |
| 282 | have h_base_eq : α ≫ (restrictAlg E k).map fst = γ ≫ (restrictAlg E k).map fst := by |
| 283 | apply A.injective |
| 284 | change X.map (α ≫ (restrictAlg E k).map fst) A.point = |
| 285 | X.map (γ ≫ (restrictAlg E k).map fst) A.point |
| 286 | rw [X.map_comp_apply, X.map_comp_apply] |
| 287 | exact hw |
| 288 | obtain rfl : g φ = α := h_uniq ((hg_base φ).trans h_base_eq.symm) ((hL_coord φ).trans hφ) |
| 289 | exact ⟨φ, h_jet_eq φ⟩ |
| 290 | · obtain rfl : α = g φ := A.injective _ (hα.trans (h_jet_eq φ)) |
| 291 | exact hL_coord φ |
| 292 | |
| 293 | /-- Let `v` be a jet of `X` with values in `k ⊕ T*`, where `T` has dimension `d`, whose base point |
| 294 | lies in a chart `A` and whose tangent vectors in distinct directions are distinct. Then every |
| 295 | `k[ε]`-point `w` of `X` with the base point of `v` is a tangent vector `jetTangent v φ` of `v`. -/ |
| 296 | lemma EtaleChart.mem_range_jetTangent_of_injective {X : CommAlg E ⥤ Type 1} (A : EtaleChart d X) |
| 297 | {T : FGModuleCat k} (hT : finrank k T = d) |
| 298 | (v : (restrictAlg E k ⋙ X).obj (CommAlgCat.of k (TrivSqZeroExt k (Dual k T)))) |
| 299 | (hv : (restrictAlg E k ⋙ X).map SqZeroExt.fst v ∈ |
| 300 | A.locus.obj ((restrictAlg E k).obj (CommAlgCat.of k k))) |
| 301 | (h_inj : Function.Injective (jetTangent v)) |
| 302 | (w : (restrictAlg E k ⋙ X).obj (CommAlgCat.of k k[ε])) |
| 303 | (hw : (restrictAlg E k ⋙ X).map SqZeroExt.fst w = (restrictAlg E k ⋙ X).map SqZeroExt.fst v) : |
| 304 | w ∈ range (jetTangent v) := by |
| 305 | exact (A.tangent_mem_range_of_jet hT v hv h_inj).left w hw |
| 306 | |
| 307 | /-- Let `v` be a jet of `X` with values in `k ⊕ T*`, where `T` has dimension `d`, whose base point |
| 308 | lies in a chart `A` and whose tangent vectors in distinct directions are distinct. Then there is a |
| 309 | linear isomorphism `D : T ≃ kᵈ` such that every `α` representing `jetTangent v φ` in the chart has |
| 310 | `ε`-parts of its coordinates equal to `D φ`. -/ |
| 311 | lemma EtaleChart.exists_linearEquiv_coordinate_jetTangent {X : CommAlg E ⥤ Type 1} |
| 312 | (A : EtaleChart d X) {T : FGModuleCat k} (hT : finrank k T = d) |
| 313 | (v : (restrictAlg E k ⋙ X).obj (CommAlgCat.of k (TrivSqZeroExt k (Dual k T)))) |
| 314 | (hv : (restrictAlg E k ⋙ X).map SqZeroExt.fst v ∈ |
| 315 | A.locus.obj ((restrictAlg E k).obj (CommAlgCat.of k k))) |
| 316 | (h_inj : Function.Injective (jetTangent v)) : |
| 317 | ∃ D : T ≃ₗ[k] (Fin d → k), ∀ (φ : T) (α : |
| 318 | A.coordRing ⟶ (restrictAlg E k).obj (CommAlgCat.of k k[ε])), |
| 319 | X.map α A.point = jetTangent v φ → (fun i : Fin d ↦ (α (A.coordinate i)).snd) = D φ := by |
| 320 | exact (A.tangent_mem_range_of_jet hT v hv h_inj).right |
| 321 | |
| 322 | /-- Let every field-valued point of `W` lie in a chart with `d` coordinates. Let `P` be a tangent |
| 323 | polynomial of `c`, `u` at `w`, that is `P t = P 0 * det (1 - t (dc)⁻¹ du)`, with `P 1 ≠ 0`. Then for |
| 324 | every `t : k`, `HasJacobianRatio u c d t (P t / P 1) w` holds: in every chart of `X` containing |
| 325 | `c w` there is a matrix `N` of determinant `P t / P 1` with `t du v - dc v = N (du v - dc v)` for |
| 326 | all tangent vectors `v` at `w`. -/ |
| 327 | lemma IsTangentPoly.hasJacobianRatio_eval_div {X : CommAlg E ⥤ Type 1} |
| 328 | {c u : W ⟶ restrictAlg E k ⋙ X} {w : W.obj (CommAlgCat.of k k)} {P : Polynomial k} |
| 329 | (hP : IsTangentPoly d c u w P) (hW : IsChartCovered d W) (hP_one : P.eval 1 ≠ 0) (t : k) : |
| 330 | HasJacobianRatio u c d t (P.eval t / P.eval 1) w := by |
| 331 | -- The tangent vectors at `w` are the `jetTangent v φ`, `φ ∈ T`, with `dc` injective and |
| 332 | -- `du = dc ∘ B`. As `P 1 ≠ 0`, `S = 1 - B` is invertible, and |
| 333 | -- `t du - dc = (1 - t B) S⁻¹ (du - dc)` when `dc` identifies `T` with the coordinates of a chart. |
| 334 | obtain ⟨T, v, B, hT, rfl, hc_inj, hu, hP_eval⟩ := hP |
| 335 | have hB_det : (1 - B).det ≠ 0 := fun h_zero ↦ |
| 336 | hP_one (by rw [hP_eval 1, one_smul, h_zero, mul_zero]) |
| 337 | obtain ⟨S, rfl⟩ : ∃ S : T ≃ₗ[k] T, 1 - S.toLinearMap = B := |
| 338 | ⟨(1 - B).equivOfDetNeZero hB_det, by simp⟩ |
| 339 | have hu_sub (φ : T) : u.app _ (jetTangent v φ) = c.app _ (jetTangent v (φ - S φ)) := hu φ |
| 340 | have h_tangent : ∀ x : W.obj (CommAlgCat.of k k[ε]), W.map fst x = W.map fst v → |
| 341 | x ∈ range (jetTangent v) := by |
| 342 | obtain ⟨A, hA⟩ := hW.exists_chart _ (Field.toIsField k) (W.map fst v) |
| 343 | exact EtaleChart.mem_range_jetTangent_of_injective (E := k) A hT v hA hc_inj.of_comp |
| 344 | -- In a chart `A` around `c w` the tangent vector `c (jetTangent v φ)` has coordinates `D φ`. |
| 345 | intro A hw ξ |
| 346 | have hc_nat (φ : T) : jetTangent (c.app _ v) φ = c.app _ (jetTangent v φ) := |
| 347 | (naturality_apply c _ v).symm |
| 348 | have hv_chart : (restrictAlg E k ⋙ X).map fst (c.app _ v) ∈ A.locus.obj _ := |
| 349 | mem_of_eq_of_mem (naturality_apply c _ v).symm hw |
| 350 | have hcv_inj : Function.Injective (jetTangent (c.app _ v)) := fun φ ψ h_eq ↦ |
| 351 | hc_inj (((hc_nat φ).symm.trans h_eq).trans (hc_nat ψ)) |
| 352 | obtain ⟨D, hD⟩ : ∃ D : T ≃ₗ[k] (Fin d → k), ∀ (φ : T) |
| 353 | (α : A.coordRing ⟶ (restrictAlg E k).obj (CommAlgCat.of k k[ε])), |
| 354 | X.map α A.point = jetTangent (c.app _ v) φ → ξ α = D φ := |
| 355 | A.exists_linearEquiv_coordinate_jetTangent hT (c.app _ v) hv_chart hcv_inj |
| 356 | let N : Module.End k T := (1 - t • (1 - S.toLinearMap)) ∘ₗ S.symm.toLinearMap |
| 357 | refine ⟨(D.toLinearMap ∘ₗ N ∘ₗ D.symm.toLinearMap).toMatrix', ?_, fun x α γ hx hα hγ ↦ ?_⟩ |
| 358 | · -- The determinant is `det (1 - t B) / det S = P t / P 1`. |
| 359 | have hP_one_eq : P.eval 1 = P.eval 0 * S.toLinearMap.det := by |
| 360 | rw [hP_eval 1, one_smul, sub_sub_cancel] |
| 361 | have hP_zero : P.eval 0 ≠ 0 := left_ne_zero_of_mul (hP_one_eq.symm.trans_ne hP_one) |
| 362 | have hN_det : N.det = (1 - t • (1 - S.toLinearMap)).det / S.toLinearMap.det := by |
| 363 | rw [LinearMap.det_comp, S.det_coe_symm, div_eq_mul_inv] |
| 364 | rw [LinearMap.det_toMatrix', LinearMap.det_conj, hN_det, hP_eval t, hP_one_eq, |
| 365 | mul_div_mul_left _ _ hP_zero] |
| 366 | · -- For `x = jetTangent v φ` the coordinates of `u x` and `c x` are `D (φ - S φ)` and `D φ`. |
| 367 | obtain ⟨φ, rfl⟩ := h_tangent x hx |
| 368 | have hγ_coord : ξ γ = D φ := hD φ γ (hγ.trans (hc_nat φ).symm) |
| 369 | have hα_coord : ξ α = D (φ - S φ) := hD _ α (hα.trans ((hu_sub φ).trans (hc_nat _).symm)) |
| 370 | have h_N : N (-S φ) = t • (φ - S φ) - φ := by |
| 371 | simp only [N, LinearMap.comp_apply, LinearEquiv.coe_coe, map_neg, |
| 372 | LinearEquiv.symm_apply_apply, LinearMap.sub_apply, LinearMap.smul_apply, |
| 373 | one_apply_eq_self] |
| 374 | exact neg_sub φ (t • (φ - S φ)) |
| 375 | calc |
| 376 | t • ξ α - ξ γ = D (t • (φ - S φ) - φ) := by |
| 377 | rw [hα_coord, hγ_coord, map_sub D (t • (φ - S φ)) φ, map_smul] |
| 378 | _ = D (N (-S φ)) := by rw [h_N] |
| 379 | _ = (D.toLinearMap ∘ₗ N ∘ₗ D.symm.toLinearMap).toMatrix' *ᵥ (ξ α - ξ γ) := by |
| 380 | rw [LinearMap.toMatrix'_mulVec, hα_coord, hγ_coord, ← map_sub, sub_sub_cancel_left] |
| 381 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply] |
| 382 | |
| 383 | /-- Let every field-valued point of `W` lie in a chart with `d` étale coordinates. Let `P` be a |
| 384 | tangent polynomial of `c`, `u` at the `k`-point `w`, that is, the algebraic form of |
| 385 | `P t = P 0 * det (1 - t (dc)⁻¹ du)` on the tangent space at `w`, and suppose `P 1 ≠ 0`. Then every |
| 386 | `k[ε]`-valued point `x` of `W` above `w` that is a coincidence of `u` and `c` is constant. -/ |
| 387 | lemma IsTangentPoly.constIfCoincident {c u : W ⟶ X} {w : W.obj (CommAlgCat.of k k)} |
| 388 | {P : Polynomial k} (hP : IsTangentPoly d c u w P) (hW : IsChartCovered d W) |
| 389 | (hP_one : P.eval 1 ≠ 0) {x : W.obj (CommAlgCat.of k k[ε])} (hx : W.map SqZeroExt.fst x = w) : |
| 390 | ConstIfCoincident u c x := by |
| 391 | -- The tangent vectors at `w` are the `jetTangent v φ`, `φ ∈ T`, with `dc` injective and |
| 392 | -- `du = dc ∘ B`. As `P 1 ≠ 0`, the map `1 - B` is injective. |
| 393 | obtain ⟨T, v, B, hT, rfl, hc_inj, hu, hP_eval⟩ := hP |
| 394 | have hB_det : (1 - B).det ≠ 0 := fun h_zero ↦ |
| 395 | hP_one (by rw [hP_eval 1, one_smul, h_zero, mul_zero]) |
| 396 | have hB_inj : Function.Injective (1 - B : Module.End k T) := |
| 397 | ((1 - B).equivOfDetNeZero hB_det).injective |
| 398 | obtain ⟨A, hA⟩ := hW.exists_chart _ (Field.toIsField k) (W.map fst v) |
| 399 | obtain ⟨φ, rfl⟩ := EtaleChart.mem_range_jetTangent_of_injective (E := k) A hT v hA hc_inj.of_comp |
| 400 | x hx |
| 401 | -- A coincidence `jetTangent v φ` has `φ = B φ` by injectivity of `dc`, so `φ = 0`. |
| 402 | intro (h_coin : c.app _ (jetTangent v φ) = u.app _ (jetTangent v φ)) |
| 403 | have h_fixed : φ = B φ := hc_inj (h_coin.trans (hu φ)) |
| 404 | have h_ker : (1 - B) φ = (1 - B) 0 := by simpa [sub_eq_zero] using h_fixed |
| 405 | obtain rfl : φ = 0 := hB_inj h_ker |
| 406 | -- `jetTangent v 0` is constant: both sides are images of `v` under the same map |
| 407 | -- `k ⊕ T* → k → k[ε]`. |
| 408 | have h_map : ofHom (TrivSqZeroExt.map (Dual.eval k T 0)) = |
| 409 | ofHom (TrivSqZeroExt.map (Dual.eval k T 0)) ≫ SqZeroExt.fst ≫ structureMap := by |
| 410 | ext r |
| 411 | · rfl |
| 412 | · change (TrivSqZeroExt.map (Dual.eval k T 0) (inr r)).snd = |
| 413 | (algebraMap k k[ε] (TrivSqZeroExt.map (Dual.eval k T 0) (inr r)).fst).snd |
| 414 | rw [snd_map, snd_inr, map_zero, LinearMap.zero_apply, algebraMap_eq_inl', snd_inl] |
| 415 | change W.map (ofHom (TrivSqZeroExt.map (Dual.eval k T 0))) v = |
| 416 | W.map (SqZeroExt.fst ≫ structureMap) (W.map (ofHom (TrivSqZeroExt.map (Dual.eval k T 0))) v) |
| 417 | rw [← W.map_comp_apply, ← h_map] |
| 418 | |
| 419 | end IsolatedCoincidences |
| 420 | |
| 421 | /-! |
| 422 | ## Local terms of the diagonal class at simple coincidences |
| 423 | |
| 424 | The pull-back of the diagonal class along the twisted graph `scaledGraph t u c` is a sum of point |
| 425 | classes over the coincidences of `u` and `c`. Near one coincidence the computation is the |
| 426 | transformation law `New.Variety.symbolClass_transformation` for Grothendieck symbols. |
| 427 | -/ |
| 428 | |
| 429 | section FixedPointFormula |
| 430 | |
| 431 | open CategoryTheory MonoidalCategory CartesianMonoidalCategory RingHom Ideal TrivSqZeroExt |
| 432 | CommAlgCat Abelian.Ext H HodgeTest Field |
| 433 | |
| 434 | variable {k : Type} [Field k] [CharZero k] {d : ℕ} {W X : CommAlg k ⥤ Type 1} |
| 435 | |
| 436 | /-- The graph of the pair `(u, c)` twisted by `t` in the first factor. For a scalar `t` of `k` |
| 437 | and maps `u c : W ⟶ X`, it is the natural map `W(A ⊕ M) → X(A ⊕ M) × X(A ⊕ M)` on square-zero |
| 438 | extensions, `w ↦ (u (s_t w), c w)`, where `s_t : A ⊕ M → A ⊕ M` is `(a, m) ↦ (a, t m)`. -/ |
| 439 | def scaledGraph (t : k) (u c : W ⟶ X) : sqZeroExt ⋙ W ⟶ sqZeroExt ⋙ X ⊗ sqZeroExt ⋙ X := |
| 440 | CartesianMonoidalCategory.lift (scaleModule t (HodgeTest.sqZeroExt ⋙ W) ≫ sqZeroExt.whiskerLeft u) |
| 441 | (sqZeroExt.whiskerLeft c) |
| 442 | |
| 443 | /-- For a `k`-point `z` of `X`, the constant map `W ⟶ X` that sends every `A`-point of `W` to |
| 444 | the image of `z` in `X(A)`. -/ |
| 445 | def constMap (z : X (of k k)) : W ⟶ X where |
| 446 | app A := ↾fun _ ↦ X.map structureMap z |
| 447 | |
| 448 | omit [CharZero k] in |
| 449 | /-- The universal symbol `symbolClass` in degree `d` is compatible with a change of the base |
| 450 | field: for a field `E` of characteristic `0` over `k`, the base change to `E` of the symbol over |
| 451 | `k` is the symbol over `E`. -/ |
| 452 | lemma symbolClass_baseChange {E : Type} [Field E] [Algebra k E] : |
| 453 | (symbolClass (k := k) (d := d)).baseChange (k := E) = symbolClass := by |
| 454 | -- Both classes are given by the same determinant cocycle on the same relation; the three |
| 455 | -- compatibilities hold by unfolding the identity maps. |
| 456 | refine witnessed.pull_cocycleClass exists_jouanolouRel_of_unimodular |
| 457 | exists_jouanolouRel_of_unimodular _ (𝟙 _) { app _ := ↾Prod.snd } ?_ ?_ ?_ |
| 458 | · -- the relation over `E` maps into the relation over `k` |
| 459 | tauto |
| 460 | · -- the two determinant cocycles agree |
| 461 | tauto |
| 462 | · -- the map of relative chains is the identity |
| 463 | tauto |
| 464 | |
| 465 | omit [CharZero k] in |
| 466 | /-- Let `U` be an open subfunctor of `X × X` and `x` a point of `W` with values in a square-zero |
| 467 | extension `A ⊕ M`. If `(u x, c x)` lies in `U`, then so does `scaledGraph t u c x`: the two pairs |
| 468 | agree modulo `M`, and membership in an open subfunctor is decided modulo a square-zero ideal. -/ |
| 469 | lemma preimage_lift_le_preimage_scaledGraph (t : k) (u c : W ⟶ X) {U : Subfunctor (X ⊗ X)} |
| 470 | (hU : IsOpenSubfunctor U) : |
| 471 | (U.preimage (CartesianMonoidalCategory.lift u c)).whisker HodgeTest.sqZeroExt ≤ |
| 472 | (U.whisker HodgeTest.sqZeroExt).preimage (scaledGraph t u c) := by |
| 473 | intro C x hx |
| 474 | -- Modulo `M` the pairs `scaledGraph t u c x` and `(u x, c x)` agree, and the latter lies in `U`. |
| 475 | have base_eq : (X ⊗ X).map C.baseProj ((scaledGraph t u c).app C x) = |
| 476 | (X ⊗ X).map C.baseProj ((CartesianMonoidalCategory.lift u c).app (sqZeroExt.obj C) x) := by |
| 477 | refine Prod.ext ?_ rfl |
| 478 | change X.map C.baseProj (u.app _ (W.map ((scaleModule t sqZeroExt).app C) x)) = _ |
| 479 | rw [u.naturality_apply] |
| 480 | exact (X.map_comp_apply ((scaleModule t sqZeroExt).app C) C.baseProj _).symm |
| 481 | refine hU.mem_of_isSquareZero C.baseProj fst_surjective_and_kerIdeal_sq_eq_bot _ ?_ |
| 482 | exact (congrArg (fun p ↦ p ∈ U.obj C.baseAlg) base_eq).mpr (U.map C.baseProj hx) |
| 483 | |
| 484 | omit [CharZero k] in |
| 485 | /-- Let `s` be the set of coincidences of `u` and `c` (`IsCoincidenceSet`), `a` a chart of `W` |
| 486 | with ring `a.coordRing`, and `ζ : a.coordRing ⟶ k` a `k`-point of `a` that lies in `s` and is the |
| 487 | only point of `s` in `a`. Let `I` be an ideal of `a.coordRing` that cuts out the coincidences in |
| 488 | `a`: a map `α` from `a.coordRing` kills `I` exactly when the point `α` of `W` is a coincidence. Then |
| 489 | `I` contains the ideal `ker ζ` of the point `ζ`. -/ |
| 490 | lemma ker_le_of_cuts_out_coincidences {u c : W ⟶ X} {s : Finset (W.obj (of k k))} |
| 491 | (hs : IsCoincidenceSet u c s) (a : EtaleChart d W) (ζ : a.coordRing ⟶ of k k) |
| 492 | (hw : W.map ζ a.point ∈ s) |
| 493 | (ha_off : a.point ∈ (offPoints (s \ {W.map ζ a.point} : Set (W.obj (of k k)))).obj a.coordRing) |
| 494 | {I : Ideal a.coordRing} |
| 495 | (h_cut : ∀ {C : CommAlg k} (α : a.coordRing ⟶ C), |
| 496 | I ≤ ker α.hom ↔ c.app C (W.map α a.point) = u.app C (W.map α a.point)) : |
| 497 | ker ζ.hom ≤ I := by |
| 498 | obtain ⟨h_red, h_coin, h_field⟩ := hs |
| 499 | obtain ⟨b, hb_colon, hb_ne⟩ := exists_mem_colon_of_const_tangents a ζ.hom |
| 500 | ((h_cut ζ).mpr (h_coin _ hw)) fun p hp ↦ h_red _ ((h_cut (ofHom p)).mp hp) |
| 501 | -- A field point `κ` that kills the colon ideal is a coincidence in the chart `a`, so it comes |
| 502 | -- from `ζ`, against `ζ b ≠ 0`. Hence the colon ideal is `⊤`. |
| 503 | have colon_top : I.colon (ker ζ.hom) = ⊤ := by |
| 504 | refine (eq_top_iff_forall_isField _).mpr fun K κ hK h_le ↦ ?_ |
| 505 | obtain ⟨z, hz, hκz⟩ : ∃ z ∈ s, W.map κ a.point = W.map structureMap z := |
| 506 | h_field K hK _ ((h_cut _).mp (le_colon.trans h_le)) |
| 507 | refine ha_off K κ hK ⟨z, ⟨hz, fun hzw ↦ hb_ne ?_⟩, hκz⟩ |
| 508 | have hκ : κ = ζ ≫ structureMap := |
| 509 | a.eq_comp_of_map_point_eq _ (by rw [hκz, Set.mem_singleton_iff.mp hzw]) |
| 510 | simpa [hκ, hK.nontrivial] using h_le hb_colon |
| 511 | exact Submodule.colon_eq_top_iff_subset.mp colon_top |
| 512 | |
| 513 | omit [CharZero k] in |
| 514 | /-- Carrying a chart expression along a map of algebras. Let `A` be a chart of `X` and `v` a map |
| 515 | from `W` to `X`. If `χ` expresses the point `v y` in the coordinates of `A`, then `χ` followed by |
| 516 | `α : B ⟶ C` expresses the point `v (α y)`. -/ |
| 517 | private lemma map_comp_map_point_eq_app_map_of_map_point_eq {E : Type} [Field E] [Algebra k E] |
| 518 | {W : CommAlg E ⥤ Type 1} {A : EtaleChart d X} {v : W ⟶ restrictAlg k E ⋙ X} {B C : CommAlg E} |
| 519 | {χ : A.coordRing ⟶ (restrictAlg k E).obj B} {y : W.obj B} |
| 520 | (h_map : X.map χ A.point = v.app B y) (α : B ⟶ C) : |
| 521 | X.map (χ ≫ (restrictAlg k E).map α) A.point = v.app C (W.map α y) := by |
| 522 | rw [v.naturality_apply, ← h_map] |
| 523 | exact X.map_comp_apply .. |
| 524 | |
| 525 | omit [CharZero k] in |
| 526 | /-- Off the coincidences, the twisted graph avoids the diagonal. Let every field-valued coincidence |
| 527 | of `u` and `c` come from a point of the finite set `s`. Then `scaledGraph t u c` maps the |
| 528 | square-zero points of the complement `offPoints s` of `s` into the complement `offDiagonal X` of |
| 529 | the diagonal. -/ |
| 530 | private lemma offPoints_whisker_le_preimage_scaledGraph [IsSeparatedFunctor X] {E : Type} [Field E] |
| 531 | [Algebra k E] {W : CommAlg E ⥤ Type 1} (u c : W ⟶ restrictAlg k E ⋙ X) |
| 532 | (s : Finset (W.obj (of E E))) (t : E) |
| 533 | (h_field : ∀ K : CommAlg E, IsField K → ∀ x : W.obj K, c.app K x = u.app K x → |
| 534 | ∃ w ∈ s, x = W.map structureMap w) : |
| 535 | (offPoints (s : Set (W.obj (of E E)))).whisker sqZeroExt ≤ |
| 536 | (((offDiagonal X).whisker (restrictAlg k E)).whisker sqZeroExt).preimage |
| 537 | (scaledGraph t u c) := by |
| 538 | have off_open : IsOpenSubfunctor ((offDiagonal X).whisker (restrictAlg k E)) := |
| 539 | (isOpenSubfunctor_offDiagonal (X := X)).whisker_restrictAlg |
| 540 | intro C x hx |
| 541 | -- It is enough that `(u x, c x)` avoids the diagonal, and this is checked at field-valued |
| 542 | -- points, where a point of the diagonal is a coincidence and so comes from `s`. |
| 543 | refine preimage_lift_le_preimage_scaledGraph t u c off_open C ?_ |
| 544 | refine (off_open.preimage _).fieldLocus_le _ fun K α hK ↦ ?_ |
| 545 | exact mem_offDiagonal_of_ne (X := X) hK fun h_eq ↦ hx K α hK (h_field K hK _ h_eq.symm) |
| 546 | |
| 547 | omit [CharZero k] in |
| 548 | /-- The tangent step of the transformation law. `φ`, `ψ` write `u`, `c` on the chart `a` in the |
| 549 | coordinates `xᵢ` of `A`, `f` is their difference, `ν` a section of |
| 550 | `a.coordRing ⊕ a.coordRing ^ d → a.coordRing`, and `t du - dc = Q (du - dc)` at |
| 551 | `w = W.map ζ a.point` (as in `HasJacobianRatio`). Then `ζ` kills |
| 552 | `t (ν (φ xᵢ))ⱼ - (ν (ψ xᵢ))ⱼ - ∑ l, Q i l (ν (f l))ⱼ` for all `i`, `j`. -/ |
| 553 | private lemma apply_tangent_sub_sum_eq_zero {E : Type} [Field E] [Algebra k E] |
| 554 | {W : CommAlg E ⥤ Type 1} {u c : W ⟶ restrictAlg k E ⋙ X} {t : E} {A : EtaleChart d X} |
| 555 | {a : EtaleChart d W} {ζ : a.coordRing ⟶ of E E} |
| 556 | {φ ψ : A.coordRing ⟶ (restrictAlg k E).obj a.coordRing} |
| 557 | (hφ : X.map φ A.point = u.app a.coordRing a.point) |
| 558 | (hψ : X.map ψ A.point = c.app a.coordRing a.point) {f : Fin d → a.coordRing} |
| 559 | (hf : f = (φ ∘ A.coordinate : Fin d → a.coordRing) - (ψ ∘ A.coordinate : Fin d → a.coordRing)) |
| 560 | (ν : a.coordRing ⟶ sqZeroExt.obj (⟨a.coordRing, Fin d⟩ : HodgeTest E)) |
| 561 | (ν_fst : Function.LeftInverse TrivSqZeroExt.fst ν) {Q : Matrix (Fin d) (Fin d) E} |
| 562 | (hQ_tan : ∀ (v : W.obj (of E (DualNumber E))) |
| 563 | (α γ : A.coordRing ⟶ (restrictAlg k E).obj (of E (DualNumber E))), |
| 564 | W.map SqZeroExt.fst v = W.map ζ a.point → X.map α A.point = u.app (of E (DualNumber E)) v → |
| 565 | X.map γ A.point = c.app (of E (DualNumber E)) v → |
| 566 | t • (fun i : Fin d ↦ (α (A.coordinate i)).snd) - |
| 567 | (fun i : Fin d ↦ (γ (A.coordinate i)).snd) = |
| 568 | Q.mulVec ((fun i : Fin d ↦ (α (A.coordinate i)).snd) - |
| 569 | (fun i : Fin d ↦ (γ (A.coordinate i)).snd))) |
| 570 | (i j : Fin d) : |
| 571 | ζ (t • (ν (φ (A.coordinate i))).snd j - (ν (ψ (A.coordinate i))).snd j - |
| 572 | ∑ l : Fin d, Q.map (algebraMap E a.coordRing) i l * (ν (f l)).snd j) = 0 := by |
| 573 | -- Apply `hQ_tan` to the `j`-th coordinate tangent vector `ν ≫ μ` at `w`. |
| 574 | let P : HodgeTest E := ⟨a.coordRing, Fin d⟩ |
| 575 | let μ := (withIndex _ ⋙ sqZeroExt).map ζ ≫ ofHom (TrivSqZeroExt.map (.proj j)) |
| 576 | have μ_snd (x : sqZeroExt.obj P) : (μ x).2 = ζ (x.snd j) := zero_add _ |
| 577 | have h_base : W.map SqZeroExt.fst (W.map (ν ≫ μ) a.point) = W.map ζ a.point := by |
| 578 | refine (W.map_comp_apply (_ ≫ μ) ..).symm.trans ?_ |
| 579 | congr with x |
| 580 | exact (add_zero _).trans (congrArg ζ (ν_fst x)) |
| 581 | have h_tan := congrFun (hQ_tan _ _ _ h_base |
| 582 | (map_comp_map_point_eq_app_map_of_map_point_eq hφ _) |
| 583 | (map_comp_map_point_eq_app_map_of_map_point_eq hψ _)) i |
| 584 | rw [map_sub, map_sub, map_smul, map_sum, sub_eq_zero, ← μ_snd, ← μ_snd] |
| 585 | refine h_tan.trans ?_ |
| 586 | simp only [Matrix.mulVec, dotProduct, Pi.sub_apply] |
| 587 | refine Finset.sum_congr rfl fun l _ ↦ ?_ |
| 588 | rw [map_mul, Matrix.map_apply, AlgHom.commutes, ← μ_snd, hf, Pi.sub_apply, map_sub, map_sub] |
| 589 | exact congrArg (Q i l * ·) (snd_sub _ _).symm |
| 590 | |
| 591 | /-- The multiplicity at one coincidence. On `O`, the class `δ` (relative to the complement of the |
| 592 | diagonal) is the symbol of the coordinate differences of the chart `A`; `lift u c` maps the chart |
| 593 | `a` of `W`, with a point `ζ`, into `O`; `φ`, `ψ` write `u`, `c` on `a`; their difference `f` cuts |
| 594 | out `w = W.map ζ a.point` and generates `ker ζ`; `m` is the Jacobian ratio at `w`. Then on `a`, |
| 595 | relative to the complement of `w`, `δ.baseChange` (`δ` read on `E`-algebras through |
| 596 | `restrictAlg k E`) pulls back along `scaledGraph t u c` to `m • [df / f]`. -/ |
| 597 | private lemma map_pointMap_map_scaledGraph_eq_smul_symbolClass {E : Type} |
| 598 | [Field E] [Algebra k E] {W : CommAlg E ⥤ Type 1} {u c : W ⟶ restrictAlg k E ⋙ X} |
| 599 | {s : Finset (W.obj (of E E))} {t m : E} {δ : HodgeH (relFreeAb (offDiagonal X)) d} |
| 600 | {A : EtaleChart d X} {O : Subfunctor (X ⊗ X)} (hO : IsOpenSubfunctor O) |
| 601 | (h_near : IsDiagonalSymbolOn δ A O) |
| 602 | (off_le : (offPoints (s : Set (W.obj (of E E)))).whisker sqZeroExt ≤ |
| 603 | (((offDiagonal X).whisker (restrictAlg k E)).whisker sqZeroExt).preimage (scaledGraph t u c)) |
| 604 | {a : EtaleChart d W} {ζ : a.coordRing ⟶ of E E} |
| 605 | (ha_O : a.point ∈ |
| 606 | ((O.whisker (restrictAlg k E)).preimage (CartesianMonoidalCategory.lift u c)).obj a.coordRing) |
| 607 | {φ ψ : A.coordRing ⟶ (restrictAlg k E).obj a.coordRing} |
| 608 | (hφ : X.map φ A.point = u.app a.coordRing a.point) |
| 609 | (hψ : X.map ψ A.point = c.app a.coordRing a.point) {f : Fin d → a.coordRing} |
| 610 | (hf : f = (φ ∘ A.coordinate : Fin d → a.coordRing) - (ψ ∘ A.coordinate : Fin d → a.coordRing)) |
| 611 | (ker_le : ker ζ.hom ≤ span (.range f)) |
| 612 | (f_cut : CutsOutLocus W (ComesFromPoints {W.map ζ a.point}) a.point f) |
| 613 | (V_le : (offPoints {W.map ζ a.point}).preimage (pointMap a.point) ≤ |
| 614 | (offPoints (s : Set (W.obj (of E E)))).preimage (pointMap a.point)) |
| 615 | (hJ : HasJacobianRatio u c d t m (W.map ζ a.point)) |
| 616 | (hc_mem_O : (c.app (of E E) (W.map ζ a.point), c.app (of E E) (W.map ζ a.point)) ∈ |
| 617 | O.obj ((restrictAlg k E).obj (of E E))) : |
| 618 | HodgeH.map (relFreeAb.map (pointMap a.point) V_le) |
| 619 | (H.map hodgeCoeff ((relFreeAb.map (scaledGraph t u c) off_le :) : |
| 620 | sqZeroExt ⋙ relFreeAb (offPoints (s : Set (W.obj (of E E)))) ⟶ |
| 621 | sqZeroExt ⋙ restrictAlg k E ⋙ relFreeAb (offDiagonal X)) d δ.baseChange) = |
| 622 | m • HodgeH.map (relFreeAb.map (U := unimodular) (pointMap (A := a.coordRing) ⟨f⟩) |
| 623 | f_cut.preimage_fieldLocus_not.le) symbolClass := by |
| 624 | let r : CommAlg E ⥤ CommAlg k := restrictAlg k E |
| 625 | let q : sqZeroExt ⋙ relFreeAb (offPoints (s : Set (W.obj (of E E)))) ⟶ |
| 626 | sqZeroExt ⋙ r ⋙ relFreeAb (offDiagonal X) := (relFreeAb.map (scaledGraph t u c) off_le :) |
| 627 | let V := (offPoints {W.map ζ a.point}).preimage (pointMap a.point) |
| 628 | obtain ⟨Q, hQ_det, hQ_tan⟩ := hJ A (h_near.fst_mem_locus hc_mem_O) |
| 629 | -- The two classes on the chart are compared at its universal point |
| 630 | -- `ν : a.coordRing → a.coordRing ⊕ a.coordRing ^ d`: pull-back along `e` is injective on |
| 631 | -- cohomology. |
| 632 | obtain ⟨ν, ν_fst, hν⟩ := a.exists_section_isCohomEquiv |
| 633 | obtain ⟨h_unit, h_eqv⟩ := hν f_cut.preimage_fieldLocus_not |
| 634 | refine (h_eqv d).injective ?_ |
| 635 | let P : HodgeTest E := ⟨a.coordRing, Fin d⟩ |
| 636 | let e : relFreeAb (someUnitLocus (c := P) f) ⟶ sqZeroExt ⋙ relFreeAb V := |
| 637 | (relFreeAb.map (𝟙 _) h_unit ≫ |
| 638 | relFreeAb.map (U := V.whisker sqZeroExt) (pointMap ⟨ν⟩) le_rfl :) |
| 639 | let ρ := relFreeAb.map (U := offPoints s) (pointMap a.point) V_le |
| 640 | let τ := relFreeAb.map (U := unimodular) (pointMap (A := a.coordRing) ⟨f⟩) |
| 641 | f_cut.preimage_fieldLocus_not.le |
| 642 | -- At the image `y` of the universal point, `δ` is the symbol of `F`, which lifts `f`. |
| 643 | let S : CommAlg k := r.obj (sqZeroExt.obj P) |
| 644 | let y : (X ⊗ X).obj S := (scaledGraph t u c).app P (W.map ν a.point) |
| 645 | let φ' : A.coordRing ⟶ S := (φ ≫ r.map ν) ≫ r.map ((scaleModule t sqZeroExt).app P) |
| 646 | let ψ' : A.coordRing ⟶ S := ψ ≫ r.map ν |
| 647 | let F : Fin d → S := fun i ↦ φ' (A.coordinate i) - ψ' (A.coordinate i) |
| 648 | have hy_O : y ∈ O.obj S := |
| 649 | preimage_lift_le_preimage_scaledGraph t u c hO.whisker_restrictAlg _ (Subfunctor.map _ ν ha_O) |
| 650 | obtain ⟨F_cut, h_refl, δ_eq⟩ : IsLocalSymbol δ y (fun _ x ↦ x.1 = x.2) F 1 := |
| 651 | h_near.isLocalSymbol hy_O |
| 652 | (map_comp_map_point_eq_app_map_of_map_point_eq |
| 653 | (map_comp_map_point_eq_app_map_of_map_point_eq hφ _) _) |
| 654 | (map_comp_map_point_eq_app_map_of_map_point_eq hψ _) |
| 655 | have F_fst (i : Fin d) : TrivSqZeroExt.fst (F i) = f i := by |
| 656 | rw [hf] |
| 657 | exact congrArg₂ Sub.sub (ν_fst (φ (A.coordinate i))) (ν_fst (ψ (A.coordinate i))) |
| 658 | let V' := (offDiagonal X).preimage (pointMap y) |
| 659 | have unit_le : someUnitLocus (c := P) f ≤ |
| 660 | ((V'.whisker r).whisker sqZeroExt).preimage (pointMap (A := P) ⟨𝟙 S⟩) := by |
| 661 | intro C σ ⟨i, hi⟩ |
| 662 | rw [← F_fst i] at hi |
| 663 | exact F_cut.preimage_fieldLocus_not.ge _ |
| 664 | (projSpace.span_eq_top_of_isUnit i (isUnit_iff_isUnit_fst.2 hi)) |
| 665 | let β : relFreeAb (someUnitLocus (c := P) f) ⟶ sqZeroExt ⋙ r ⋙ relFreeAb V' := |
| 666 | (relFreeAb.map _ unit_le :) |
| 667 | let γ := relFreeAb.map (U := offDiagonal X) (pointMap y) h_refl |
| 668 | let γ' := relFreeAb.map (U := unimodular) (pointMap (A := S) ⟨F⟩) |
| 669 | F_cut.preimage_fieldLocus_not.le |
| 670 | have h_square : (e ≫ sqZeroExt.whiskerLeft ρ) ≫ q = |
| 671 | β ≫ sqZeroExt.whiskerLeft (r.whiskerLeft γ) := by |
| 672 | refine relFreeAb.hom_ext fun C σ ↦ congrArg (relFreeAb.mk _) ?_ |
| 673 | exact (congrArg _ (W.map_comp_apply ν (sqZeroExt.map σ.down) a.point)).trans |
| 674 | ((scaledGraph t u c).naturality_apply σ.down (W.map ν a.point)) |
| 675 | have δ_bc : HodgeH.map (r.whiskerLeft γ) δ.baseChange = |
| 676 | HodgeH.map (r.whiskerLeft γ') symbolClass := |
| 677 | calc _ = HodgeH.baseChange (k := E) (δ.map γ) := (HodgeH.baseChange_map ..).symm |
| 678 | _ = HodgeH.baseChange (symbolClass.map γ') := congrArg _ (δ_eq.trans (one_smul ..)) |
| 679 | _ = _ := (HodgeH.baseChange_map ..).trans (congrArg _ symbolClass_baseChange) |
| 680 | -- The transformation law: `F = (f, t du - dc)`, `ν ∘ f = (f, du - dc)`, and modulo `f` the |
| 681 | -- second components are related by `Q`, whose determinant is `m`. |
| 682 | have h_symbol : H.map _ (β ≫ sqZeroExt.whiskerLeft (r.whiskerLeft γ')) d symbolClass = |
| 683 | m • H.map _ (e ≫ sqZeroExt.whiskerLeft τ) d symbolClass := by |
| 684 | refine symbolClass_transformation (f := F) (g := fun l ↦ ν (f l)) (fun _ _ ↦ rfl) |
| 685 | (fun _ _ ↦ rfl) (funext F_fst) 1 (Q.map (algebraMap ..)) _ ?_ (fun i j ↦ ker_le ?_) ?_ |
| 686 | · rw [Matrix.one_mulVec] |
| 687 | exact funext fun l ↦ (ν_fst (f l)).symm |
| 688 | · change ζ (t • (ν _).snd j - (ν _).snd j - _) = 0 |
| 689 | exact apply_tangent_sub_sum_eq_zero hφ hψ hf ν ν_fst hQ_tan i j |
| 690 | · simp [← hQ_det, map_det] |
| 691 | calc H.map _ e d (HodgeH.map ρ (H.map _ q d δ.baseChange)) |
| 692 | _ = H.map _ ((e ≫ sqZeroExt.whiskerLeft ρ) ≫ q) d δ.baseChange := |
| 693 | (map_comp ..).symm.trans (map_comp ..).symm |
| 694 | _ = H.map _ (β ≫ sqZeroExt.whiskerLeft (r.whiskerLeft γ)) d δ.baseChange := by rw [h_square] |
| 695 | _ = H.map _ (β ≫ sqZeroExt.whiskerLeft (r.whiskerLeft γ')) d symbolClass := |
| 696 | (map_comp ..).trans ((congrArg _ δ_bc).trans (map_comp ..).symm) |
| 697 | _ = m • H.map _ (e ≫ sqZeroExt.whiskerLeft τ) d symbolClass := h_symbol |
| 698 | _ = H.map _ e d (m • HodgeH.map τ symbolClass) := |
| 699 | (congrArg _ (map_comp ..)).trans (map_push ..).symm |
| 700 | |
| 701 | /-- Let `X` be a functor on algebras over a field `k` of characteristic `0`, let `d : ℕ`, and let |
| 702 | `δ` be a degree-`d` Hodge class on `X × X` relative to `offDiagonal X`. Over a field `E` extending |
| 703 | `k`, let `V` be a separated functor on `E`-algebras covered by charts of dimension `d`, let |
| 704 | `u c : V ⟶ restrictAlg k E ⋙ X` have reduced coincidence set `s` (`IsCoincidenceSet`), let `t : E`, |
| 705 | and let `n : V(E) → E` give the Jacobian ratio (`HasJacobianRatio`) at each `w ∈ s`. Assume |
| 706 | `scaledGraph t u c` sends `offPoints s` into `offDiagonal X`, and for every `w ∈ s` there exist a |
| 707 | chart `A` of `X` and an open `O` of `X × X` containing `(c w, c w)` on which `δ` is the diagonal |
| 708 | symbol (`IsDiagonalSymbolOn`). Then the pull-back of `δ.baseChange` along `scaledGraph t u c` |
| 709 | satisfies `IsPointSum s n`. -/ |
| 710 | private lemma isPointSum_map_scaledGraph {E : Type} [Field E] [Algebra k E] |
| 711 | {V : CommAlg E ⥤ Type 1} [IsSeparatedFunctor V] [IsChartCovered d V] |
| 712 | {u c : V ⟶ restrictAlg k E ⋙ X} {s : Finset (V.obj (of E E))} {t : E} |
| 713 | {n : V.obj (of E E) → E} {δ : HodgeH (relFreeAb (offDiagonal X)) d} |
| 714 | (hs : IsCoincidenceSet u c s) (hJ : ∀ w ∈ s, HasJacobianRatio u c d t (n w) w) |
| 715 | (off_le : (offPoints (s : Set (V.obj (of E E)))).whisker sqZeroExt ≤ |
| 716 | (((offDiagonal X).whisker (restrictAlg k E)).whisker sqZeroExt).preimage (scaledGraph t u c)) |
| 717 | (hδ : ∀ w ∈ s, ∃ (A : EtaleChart d X) (O : Subfunctor (X ⊗ X)), |
| 718 | IsOpenSubfunctor O ∧ |
| 719 | (c.app (of E E) w, c.app (of E E) w) ∈ O.obj ((restrictAlg k E).obj (of E E)) ∧ |
| 720 | IsDiagonalSymbolOn δ A O) : |
| 721 | IsPointSum s n (U := offPoints s) |
| 722 | (H.map hodgeCoeff ((relFreeAb.map (scaledGraph t u c) off_le :) : |
| 723 | sqZeroExt ⋙ relFreeAb (offPoints (X := V) s) ⟶ |
| 724 | sqZeroExt ⋙ restrictAlg k E ⋙ relFreeAb (offDiagonal X)) d δ.baseChange) := by |
| 725 | -- Near `w` the differences `f` of the coordinates of `u` and `c` cut out `w`, and the |
| 726 | -- transformation law `symbolClass_transformation` gives the multiplicity `n w`. |
| 727 | obtain ⟨h_red, h_coin, h_field⟩ := hs |
| 728 | let r : CommAlg E ⥤ CommAlg k := restrictAlg k E |
| 729 | intro w hw |
| 730 | -- A chart `A` of `X` and an open `O ∋ (c w, c w)`: by `h_near` every point of `O` comes from `A`, |
| 731 | -- the differences of its coordinates cut out the diagonal, and `δ` is their symbol. |
| 732 | obtain ⟨A, O, hO, hc_mem_O, h_near⟩ := hδ w hw |
| 733 | -- A chart `a` of `V` at `w = ζ a.point` that `lift u c` maps into `O` and that avoids `s \ {w}`. |
| 734 | have h_open : IsOpenSubfunctor ((O.whisker r).preimage (lift u c :) ⊓ offPoints |
| 735 | (s \ {w} : Set _)) := |
| 736 | (hO.whisker_restrictAlg.preimage (lift u c :)).inf isOpenSubfunctor_offPoints |
| 737 | have hw_O : (u.app (of E E) w, c.app (of E E) w) ∈ O.obj (r.obj (of E E)) := by |
| 738 | rwa [← h_coin w hw] |
| 739 | have hw_off : w ∈ (offPoints (X := V) (s \ {w} : Set _)).obj (of E E) := by |
| 740 | simp [mem_offPoints_iff, toIsField, ComesFromPoints] |
| 741 | obtain ⟨a, ⟨⟨ζ : a.coordRing ⟶ of E E⟩, rfl⟩, ha_O, ha_off⟩ := |
| 742 | h_open.exists_mem_locus_and_point_mem (toIsField E) ⟨hw_O, hw_off⟩ |
| 743 | -- `φ`, `ψ` express `u`, `c` in the charts; the differences `f` cut out the coincidences. |
| 744 | obtain ⟨⟨φ : A.coordRing ⟶ r.obj a.coordRing⟩, hφ⟩ := h_near.fst_mem_locus ha_O |
| 745 | obtain ⟨⟨ψ : A.coordRing ⟶ r.obj a.coordRing⟩, hψ⟩ := h_near.snd_mem_locus ha_O |
| 746 | obtain ⟨h_cut, -⟩ := h_near.isLocalSymbol ha_O hφ hψ |
| 747 | let f : Fin d → a.coordRing := (φ ∘ A.coordinate : _ → a.coordRing) - |
| 748 | (ψ ∘ A.coordinate : _ → a.coordRing) |
| 749 | replace h_cut {C : CommAlg E} (α : a.coordRing ⟶ C) : |
| 750 | span (.range f) ≤ ker α.hom ↔ c.app C (V.map α a.point) = u.app C (V.map α a.point) := by |
| 751 | rw [c.naturality_apply, u.naturality_apply, eq_comm] |
| 752 | exact h_cut _ (r.map α) |
| 753 | -- The coincidences are reduced and `w` is the only one in `a`, so `f` generates `ker ζ`. |
| 754 | have ker_le : ker ζ.hom ≤ span (.range f) := |
| 755 | ker_le_of_cuts_out_coincidences ⟨h_red, h_coin, h_field⟩ a ζ hw ha_off h_cut |
| 756 | -- So `f` cuts out exactly the point `w` of the chart `a`. |
| 757 | have f_cut : CutsOutLocus V (ComesFromPoints {V.map ζ a.point}) a.point f := by |
| 758 | refine fun C α ↦ ⟨fun hα ↦ ?_, fun ⟨_, rfl, hα⟩ ↦ (h_cut α).mpr ?_⟩ |
| 759 | · simp [ComesFromPoints, eq_comp_structureMap_of_ker_le (ker_le.trans hα)] |
| 760 | · rw [hα, c.naturality_apply, u.naturality_apply] |
| 761 | exact congrArg _ (h_coin _ hw) |
| 762 | have V_le : (offPoints {V.map ζ a.point}).preimage (pointMap a.point) ≤ |
| 763 | (offPoints s).preimage (pointMap a.point) := by |
| 764 | -- A point that avoids `w` avoids `s`, as the chart `a` avoids `s \ {w}`. |
| 765 | intro C p hp K κ hK ⟨z, hz, hκz⟩ |
| 766 | exact (offPoints _).map p.down ha_off K κ hK |
| 767 | ⟨z, ⟨hz, fun hzw ↦ hp K κ hK ⟨z, hzw, hκz⟩⟩, hκz⟩ |
| 768 | -- On the chart `a`, the class is `n w` times the symbol of `f`. |
| 769 | exact ⟨a, f, ⟨_, rfl⟩, f_cut, V_le, |
| 770 | map_pointMap_map_scaledGraph_eq_smul_symbolClass hO h_near off_le ha_O hφ hψ rfl ker_le f_cut |
| 771 | V_le (hJ _ hw) hc_mem_O⟩ |
| 772 | |
| 773 | /-- The local terms of the diagonal class. If `X` has an atlas of dimension `d`, some `δ` in |
| 774 | `Hdg^d(X × X)` works for every field `E` of characteristic `0` over `k`, every separated `W` over |
| 775 | `E` with field points in charts of dimension `d`, every `t : E` and all `u c : W ⟶ X` with reduced |
| 776 | coincidences `s` and `n w = det((t du − dc)(du − dc)⁻¹)` at `w ∈ s`. (a) Some class relative to |
| 777 | `offPoints s` (points avoiding `s`) is `n w • [dg/g]` near each `w`, where the functions `g` cut out |
| 778 | `w`. (b) `δ.baseChange`, the class `δ` over `k` read on `E`-algebras through `restrictAlg k E`, |
| 779 | pulls back to `∑ n w • pointClass d w` along `scaledGraph t u c`, the map `w ↦ (u (s_t w), c w)` on |
| 780 | square-zero extensions, where `s_t(a, m) = (a, t m)`. -/ |
| 781 | lemma exists_diagonal_local_terms (hX : HasAtlas d X) : |
| 782 | ∃ δ : HodgeH (freeAb.obj (X ⊗ X)) d, |
| 783 | ∀ {E : Type} [Field E] [CharZero E] [Algebra k E] {W : CommAlg E ⥤ Type 1} |
| 784 | [IsSeparatedFunctor W] [IsChartCovered d W] (u c : W ⟶ restrictAlg k E ⋙ X) |
| 785 | (s : Finset (W.obj (of E E))) (t : E) (n : W.obj (of E E) → E), |
| 786 | IsCoincidenceSet u c s → (∀ w ∈ s, HasJacobianRatio u c d t (n w) w) → |
| 787 | -- (a) |
| 788 | (∃ ξ : HodgeH (relFreeAb (offPoints s)) d, IsPointSum s n ξ) ∧ |
| 789 | -- (b) |
| 790 | H.map hodgeCoeff (freeAb.map (scaledGraph t u c)) d δ.baseChange = |
| 791 | ∑ w ∈ s, n w • pointClass d w := by |
| 792 | -- Take the class `δ` of the diagonal with supports (`exists_diagonal_class`) and forget the |
| 793 | -- supports. Its pull-back along `scaledGraph t u c` has supports in `s`, so it is enough to find |
| 794 | -- its multiplicity at each `w ∈ s` (`IsPointSum.map_eq_sum_pointClass`), which is given by |
| 795 | -- `isPointSum_map_scaledGraph`. |
| 796 | obtain ⟨δ, hδ⟩ := exists_diagonal_class hX |
| 797 | refine ⟨.map (relFreeAb.π _) δ, ?_⟩ |
| 798 | intro E hE_field hE_char hE_alg W hW_sep hW_cov u c s t n hs hJ |
| 799 | let r : CommAlg E ⥤ CommAlg k := restrictAlg k E |
| 800 | -- Off `s` there is no coincidence, so `scaledGraph t u c` maps into the complement of the |
| 801 | -- diagonal. |
| 802 | have off_le : (offPoints s).whisker sqZeroExt ≤ |
| 803 | (((offDiagonal X).whisker r).whisker sqZeroExt).preimage (scaledGraph t u c) := |
| 804 | offPoints_whisker_le_preimage_scaledGraph u c s t hs.2.2 |
| 805 | let q : sqZeroExt ⋙ relFreeAb (offPoints (X := W) s) ⟶ |
| 806 | sqZeroExt ⋙ r ⋙ relFreeAb (offDiagonal X) := (relFreeAb.map (scaledGraph t u c) off_le :) |
| 807 | have h_loc : IsPointSum s n (U := offPoints s) (H.map _ q d δ.baseChange) := |
| 808 | isPointSum_map_scaledGraph hs hJ off_le fun w _ ↦ hδ _ (c.app _ w) (toIsField E) |
| 809 | refine ⟨⟨_, h_loc⟩, ?_⟩ |
| 810 | rw [← h_loc.map_eq_sum_pointClass rfl] |
| 811 | -- Forgetting supports commutes with base change and with the pull-back. |
| 812 | have forget_bc : (HodgeH.map (relFreeAb.π (offDiagonal X)) δ).baseChange (k := E) = |
| 813 | HodgeH.map (r.whiskerLeft (relFreeAb.π (offDiagonal X))) δ.baseChange := |
| 814 | HodgeH.baseChange_map .. |
| 815 | have forget_pull : H.map _ (freeAb.map (scaledGraph t u c)) d |
| 816 | (HodgeH.map (r.whiskerLeft (relFreeAb.π (offDiagonal X))) δ.baseChange) = |
| 817 | H.map _ (sqZeroExt.whiskerLeft (relFreeAb.π (offPoints (X := W) s)) ≫ q) d |
| 818 | δ.baseChange := |
| 819 | (map_comp ..).symm |
| 820 | exact (congrArg _ forget_bc).trans (forget_pull.trans (map_comp ..)) |
| 821 | |
| 822 | /-- The fixed point formula. If `X` has an atlas of dimension `d`, some `δ` in `Hdg^d(X × X)` pulls |
| 823 | back, as `δ.baseChange` (`δ` read on `E`-algebras through `restrictAlg k E`), along |
| 824 | `scaledGraph t u c` to `∑ w ∈ s, n w • pointClass d w` whenever the coincidences of `u`, `c` are |
| 825 | reduced and form `s`, with Jacobian ratio `n w` at `w ∈ s`. -/ |
| 826 | lemma exists_diagonal_map_scaledGraph_eq_sum_pointClass (hX : HasAtlas d X) : |
| 827 | ∃ δ : HodgeH (freeAb.obj (X ⊗ X)) d, |
| 828 | ∀ {E : Type} [Field E] [CharZero E] [Algebra k E] {W : CommAlg E ⥤ Type 1} |
| 829 | [IsSeparatedFunctor W] [IsChartCovered d W] (u c : W ⟶ restrictAlg k E ⋙ X) |
| 830 | (s : Finset (W.obj (of E E))) (t : E) (n : W.obj (of E E) → E), |
| 831 | IsCoincidenceSet u c s → (∀ w ∈ s, HasJacobianRatio u c d t (n w) w) → |
| 832 | H.map hodgeCoeff (freeAb.map (scaledGraph t u c)) d δ.baseChange = |
| 833 | ∑ w ∈ s, n w • pointClass d w := by |
| 834 | obtain ⟨δ, hδ⟩ := exists_diagonal_local_terms hX |
| 835 | exact ⟨δ, fun u c s t n hs hJ ↦ (hδ u c s t n hs hJ).2⟩ |
| 836 | |
| 837 | /-- The classes of the `k`-points of `X`, where `X` has an atlas of charts with `d` étale |
| 838 | coordinates (`HasAtlas d X`). There is a degree-`d` Hodge class `δ` on `X × X` such that for every |
| 839 | `k`-point `z`: (a) some class with support `z` has multiplicity `1` at `z`; (b) the class of `z` is |
| 840 | the pull-back of `δ` along `x ↦ (z, x)`; (c) for every separated `W` whose field-valued points lie |
| 841 | in charts with `d` coordinates, and every `u : W ⟶ X` whose coincidences with the constant map at |
| 842 | `z` form the reduced finite set `s`, the pull-back of the class of `z` along `u` is the sum of the |
| 843 | classes of the points of `s`. -/ |
| 844 | lemma exists_diagonal_pointClass [hX : HasAtlas d X] : |
| 845 | ∃ δ : HodgeH (freeAb.obj (X ⊗ X)) d, ∀ z : X.obj (of k k), |
| 846 | -- (a) |
| 847 | (∃ ξ : HodgeH (relFreeAb (offPoints {z})) d, IsPointSum {z} 1 ξ) ∧ |
| 848 | -- (b) |
| 849 | HodgeH.map (freeAb.map (lift (constMap z) (𝟙 X))) δ = pointClass d z ∧ |
| 850 | -- (c) |
| 851 | ∀ {W : CommAlg k ⥤ Type 1} [IsSeparatedFunctor W] [IsChartCovered d W] (u : W ⟶ X) |
| 852 | (s : Finset (W.obj (of k k))), IsCoincidenceSet (constMap z) u s → |
| 853 | HodgeH.map (freeAb.map u) (pointClass d z) = ∑ w ∈ s, pointClass d w := by |
| 854 | obtain ⟨δ, hδ⟩ := exists_diagonal_local_terms hX |
| 855 | refine ⟨δ.baseChange, fun z ↦ ?_⟩ |
| 856 | -- The fixed point formula for the constant map `constMap z` with `t = 1`: all ratios are `1`. |
| 857 | have formula {W : CommAlg k ⥤ Type 1} [IsSeparatedFunctor W] [IsChartCovered d W] (u : W ⟶ X) |
| 858 | (s : Finset (W.obj (of k k))) (hs : IsCoincidenceSet (constMap z) u s) : |
| 859 | (∃ ξ : HodgeH (relFreeAb (offPoints s)) d, IsPointSum (X := W) s 1 ξ) ∧ |
| 860 | H.map _ (freeAb.map (scaledGraph 1 (constMap z) u)) d (δ.baseChange (k := k)) = |
| 861 | ∑ w ∈ s, pointClass d w := by |
| 862 | -- The identity matrix has determinant `1` and relates `du - dc` to itself. |
| 863 | have ratio_one (w : W.obj (of k k)) : HasJacobianRatio (E := k) (constMap z) u d 1 1 w := |
| 864 | fun A _ ↦ ⟨1, Matrix.det_one, fun v α γ _ _ _ ↦ by rw [one_smul, Matrix.one_mulVec]⟩ |
| 865 | obtain ⟨h_pts, h_sum⟩ := hδ (E := k) (constMap z) u s 1 1 hs fun w _ ↦ ratio_one w |
| 866 | exact ⟨h_pts, h_sum.trans (Finset.sum_congr rfl fun w _ ↦ one_smul _ _)⟩ |
| 867 | -- For `u = 𝟙 X` the only coincidence is `z`. |
| 868 | have coin_id : IsCoincidenceSet (constMap z) (𝟙 X) {z} := by |
| 869 | refine ⟨?_, by simp [constMap]⟩ |
| 870 | rintro _ (rfl : _ = X.map structureMap z) |
| 871 | exact (map_map_structureMap ..).symm |
| 872 | obtain ⟨h_pts, h_cl⟩ := formula (𝟙 X) {z} coin_id |
| 873 | rw [Finset.sum_singleton] at h_cl |
| 874 | rw [Finset.coe_singleton] at h_pts |
| 875 | refine ⟨h_pts, h_cl, ?_⟩ |
| 876 | intro W hW_sep hW_cov u s hs |
| 877 | -- Pull the formula for `𝟙 X` back along `u`. |
| 878 | have pr_comp : sqZeroExt.whiskerLeft (freeAb.map u) ≫ |
| 879 | freeAb.map (scaledGraph 1 (constMap z) (𝟙 X)) = freeAb.map (scaledGraph 1 (constMap z) u) := |
| 880 | freeAb.hom_ext (Y := _ ⋙ _) |
| 881 | rw [← (formula u s hs).2, ← h_cl, ← pr_comp] |
| 882 | exact (map_comp ..).symm |
| 883 | |
| 884 | /-- If `X` has an atlas of dimension `d`, then for every `k`-point `z` of `X` some class of degree |
| 885 | `d` relative to the complement of `z` has multiplicity `1` at `z`. -/ |
| 886 | lemma exists_isPointSum_singleton [HasAtlas d X] (z : X.obj (of k k)) : |
| 887 | ∃ ξ : HodgeH (relFreeAb (offPoints {z})) d, IsPointSum {z} 1 ξ := by |
| 888 | obtain ⟨δ, hδ⟩ := exists_diagonal_pointClass (d := d) (X := X) |
| 889 | exact (hδ z).1 |
| 890 | |
| 891 | /-- If `X` has an atlas of dimension `d`, the class of every `k`-point `z` of `X` is the pull-back |
| 892 | of one class `δ` on `X × X` along `x ↦ (z, x)`. -/ |
| 893 | private lemma exists_map_lift_constMap_eq_pointClass [HasAtlas d X] : |
| 894 | ∃ δ : HodgeH (freeAb.obj (X ⊗ X)) d, ∀ z : X.obj (of k k), |
| 895 | HodgeH.map (freeAb.map (lift (constMap z) (𝟙 X))) δ = pointClass d z := by |
| 896 | obtain ⟨δ, hδ⟩ := exists_diagonal_pointClass (d := d) (X := X) |
| 897 | exact ⟨δ, fun z ↦ let ⟨_, h_cl, _⟩ := hδ z; h_cl⟩ |
| 898 | |
| 899 | /-- Let `X` have an atlas of dimension `d`, `z` a `k`-point of `X`, and `u : W ⟶ X` a map from a |
| 900 | separated `W` covered by charts of dimension `d` whose fibre over `z` is reduced and is the finite |
| 901 | set `s` (`IsCoincidenceSet (constMap z) u s`). Then `u` pulls the class of `z` back to the sum of |
| 902 | the classes of the points of `s`. -/ |
| 903 | lemma map_pointClass_eq_sum_of_isCoincidenceSet [HasAtlas d X] {z : X.obj (of k k)} |
| 904 | {W : CommAlg k ⥤ Type 1} [IsSeparatedFunctor W] [IsChartCovered d W] (u : W ⟶ X) |
| 905 | (s : Finset (W.obj (of k k))) (hs : IsCoincidenceSet (constMap z) u s) : |
| 906 | HodgeH.map (freeAb.map u) (pointClass d z) = ∑ w ∈ s, pointClass d w := by |
| 907 | obtain ⟨δ, hδ⟩ := exists_diagonal_pointClass (d := d) (X := X) |
| 908 | exact (hδ z).2.2 u s hs |
| 909 | |
| 910 | omit [CharZero k] in |
| 911 | /-- Let `z`, `z'` be two `k`-points of `X` at which every map from `X` to the affine line takes |
| 912 | the same value. Then every Hodge class `x` on `X`, of any degree `a`, has the same restriction to |
| 913 | `z` and to `z'`: the same pull-back along the constant maps from the one-point functor `𝟙_`. -/ |
| 914 | lemma map_constMap_eq_of_forall_affine_eq {z z' : X.obj (of k k)} |
| 915 | (h_val : ∀ g : X ⟶ affineSpace k 1, (g (of k k) z).down 0 = (g (of k k) z').down 0) |
| 916 | {a : ℕ} (x : HodgeH (freeAb.obj X) a) : |
| 917 | H.map hodgeCoeff (freeAb.map |
| 918 | (sqZeroExt.whiskerLeft (constMap (W := 𝟙_ (CommAlg k ⥤ Type 1)) z))) a x = |
| 919 | H.map hodgeCoeff (freeAb.map |
| 920 | (sqZeroExt.whiskerLeft (constMap (W := 𝟙_ (CommAlg k ⥤ Type 1)) z'))) a x := by |
| 921 | -- The point is represented by the pair `P = (k, 0)`. So it has no cohomology in positive degree, |
| 922 | -- and a class of degree 0 is determined by its value at `P`. |
| 923 | let P : HodgeTest k := ⟨of k k, Empty⟩ |
| 924 | obtain ⟨h_proj, eval_bij⟩ := |
| 925 | -- `P` represents the one-point functor: each of its points comes from exactly one map. |
| 926 | projective_and_eval_bijective (Y := sqZeroExt ⋙ 𝟙_ _) hodgeCoeff (B := P) ⟨⟩ fun _ ↦ |
| 927 | ⟨fun ⟨_⟩ ⟨_⟩ _ ↦ congrArg _ (hom_ext (by ext) nofun), fun _ ↦ ⟨⟨structureMap, 0⟩, rfl⟩⟩ |
| 928 | cases a with |
| 929 | | succ a => |
| 930 | -- `h_proj` makes the cohomology of the point vanish in positive degree. |
| 931 | subsingleton |
| 932 | | zero => |
| 933 | rw [← x.mk₀_homEquiv₀_apply] |
| 934 | -- In degree `0` the pull-back of the class of a map is the class of the composite. |
| 935 | have map_mk₀ (w : X.obj (of k k)) : |
| 936 | H.map hodgeCoeff (freeAb.map |
| 937 | (sqZeroExt.whiskerLeft (constMap (W := 𝟙_ (CommAlg k ⥤ Type 1)) w))) 0 |
| 938 | (mk₀ (homEquiv₀ x)) = |
| 939 | mk₀ (freeAb.map (sqZeroExt.whiskerLeft (constMap (W := 𝟙_ (CommAlg k ⥤ Type 1)) w)) ≫ |
| 940 | homEquiv₀ x) := by |
| 941 | dsimp only [H.map] |
| 942 | rw [bilinearComp_apply_apply, mk₀_comp_mk₀] |
| 943 | refine (map_mk₀ z).trans ((congrArg mk₀ ?_).trans (map_mk₀ z').symm) |
| 944 | refine eval_bij.1 (ULift.down_injective (formBasis.ext_elem fun i ↦ ?_)) |
| 945 | -- On the pairs `(A, 0)` the class `x` is a natural map from `X A` to forms; its `i`-th |
| 946 | -- coordinate is a map to the affine line, to which `h_val` applies. |
| 947 | let incl : 𝟭 (CommAlg k) ⟶ HodgeTest.withIndex Empty ⋙ HodgeTest.sqZeroExt := |
| 948 | ⟨fun _ ↦ ofHom (inlAlgHom ..), by intros; ext; exact ext rfl (funext nofun)⟩ |
| 949 | let form : X ⟶ ((Functor.whiskeringRight (CommAlg k) AddCommGrpCat (Type 1)).obj |
| 950 | (forget AddCommGrpCat)).obj (withIndex Empty ⋙ hodgeCoeff) := |
| 951 | freeAb.homEquiv X _ (Functor.whiskerRight incl |
| 952 | (freeAb.obj X) ≫ (HodgeTest.withIndex Empty).whiskerLeft (homEquiv₀ x)) |
| 953 | exact h_val (form ≫ ⟨fun A ↦ ↾(⟨fun _ ↦ formBasis.repr ·.down i⟩), fun _ _ _ ↦ by |
| 954 | ext; congrm ⟨fun _ ↦ $(repr_withIndex_map ..)⟩⟩) |
| 955 | |
| 956 | /-- Two `k`-points of `X` at which all maps from `X` to the affine line take the same value have |
| 957 | the same class. -/ |
| 958 | lemma pointClass_eq_of_functions_eq [HasAtlas d X] {z z' : X.obj (of k k)} |
| 959 | (h_val : ∀ g : X ⟶ affineSpace k 1, (g (of k k) z).down 0 = (g (of k k) z').down 0) : |
| 960 | pointClass d z = pointClass d z' := by |
| 961 | -- `pointClass d z` is the pull-back of one class `δ` along `lift (constMap z) (𝟙 X)`; by the |
| 962 | -- Künneth formula `δ` is a sum of products `x × y`, so it is enough to compare their pull-backs. |
| 963 | obtain ⟨δ, hδ⟩ := exists_map_lift_constMap_eq_pointClass (d := d) (X := X) |
| 964 | rw [← hδ z, ← hδ z'] |
| 965 | refine AddMonoidHom.eqOn_closureM (f := H.map _ _ d) (g := H.map _ _ d) ?_ (kunneth δ) |
| 966 | rintro _ ⟨a, b, hab, x, y, rfl⟩ |
| 967 | -- The pull-back of `x × y` is the product of the restriction of `x` to the point with `y`. |
| 968 | let γ := freeAb.map (λ_ (sqZeroExt ⋙ X)).inv ≫ freeAb.prod (sqZeroExt ⋙ 𝟙_ _) (sqZeroExt ⋙ X) |
| 969 | have pull_prod (w : X.obj (of k k)) : |
| 970 | H.map hodgeCoeff (sqZeroExt.whiskerLeft (freeAb.map (lift (constMap w) (𝟙 X)))) d |
| 971 | (HodgeH.map (freeAb.prod X X) (cup exteriorAlg.mulPairing x y hab :)) = |
| 972 | H.map _ γ d (cup exteriorAlg.mulPairing |
| 973 | (H.map hodgeCoeff (freeAb.map (sqZeroExt.whiskerLeft (constMap (W := 𝟙_ _) w))) a x) |
| 974 | (H.map _ (𝟙 _) b y) hab) := |
| 975 | (HodgeH.map_comp ..).symm.trans |
| 976 | (cup_map exteriorAlg.mulPairing x y hab _ _ (freeAb.hom_ext (Y := _ ⋙ _))) |
| 977 | refine (pull_prod z).trans (.trans ?_ (pull_prod z').symm) |
| 978 | rw [map_constMap_eq_of_forall_affine_eq h_val] |
| 979 | |
| 980 | end FixedPointFormula |
| 981 | |
| 982 | end New.Variety |
| 983 | |
| 984 | /-! |
| 985 | ## The product of a point class with a point class of a curve |
| 986 | |
| 987 | `New.Variety.IsPointSum.cup_pointClass`: in Hodge cohomology (`New.Variety.HodgeH`) the external |
| 988 | product (`New.Variety.cup`) of the classes `New.Variety.pointClass` of a point of `X` and a point of |
| 989 | a curve `Y` is the class of the product point. On a product chart this is |
| 990 | `New.Variety.symbolClass_succ`, the product rule for the symbols `[dT / T]`; excision carries it to |
| 991 | `X × Y`. |
| 992 | -/ |
| 993 | |
| 994 | section PointClassProduct |
| 995 | |
| 996 | open CategoryTheory MonoidalCategory CartesianMonoidalCategory Functor New.Variety.relFreeAb |
| 997 | |
| 998 | |
| 999 | /-- Let `x` be a class of degree `d` on `X` relative to `U`, `y` a class of degree `1` on `Y` |
| 1000 | relative to `W`, and `s`, `t` points of `X` and `Y` with values in `R` that map `T` into `U` and |
| 1001 | `S` into `W`. The pull-back of the external product of `x` and `y` along the point `(s, t)` of |
| 1002 | `X × Y` is the external product of the pull-backs of `x` along `s` and `y` along `t`, pulled back |
| 1003 | along the diagonal of `Spec R` (`lift (𝟙 _) (𝟙 _)`). -/ |
| 1004 | lemma New.Variety.pull_cup_along_pair {k : Type} [Field k] [CharZero k] {d : ℕ} {R : CommAlg k} |
| 1005 | {X Y : CommAlg k ⥤ Type 1} {U : Subfunctor X} {W : Subfunctor Y} {T S : Subfunctor (reprBy R)} |
| 1006 | (s : X.obj R) (t : Y.obj R) (hT : T ≤ U.preimage (pointMap s)) |
| 1007 | (hS : S ≤ W.preimage (pointMap t)) (x : HodgeH (relFreeAb U) d) (y : HodgeH (relFreeAb W) 1) : |
| 1008 | HodgeH.map (relFreeAb.map (pointMap (Y := X ⊗ Y) (A := R) (s, t)) (sup_le_sup hT hS)) |
| 1009 | (HodgeH.map (relFreeAb.prod U W) (cup exteriorAlg.mulPairing x y (add_comm 1 d) :)) = |
| 1010 | HodgeH.map (relFreeAb.map (lift (𝟙 (reprBy R)) (𝟙 (reprBy R))) le_rfl ≫ relFreeAb.prod T S) |
| 1011 | (cup exteriorAlg.mulPairing (x.map (relFreeAb.map (pointMap s) hT)) |
| 1012 | (y.map (relFreeAb.map (pointMap t) hS)) (add_comm 1 d) :) := |
| 1013 | (HodgeH.map_comp ..).symm.trans <| |
| 1014 | cup_map _ x y _ (whiskerLeft _ (relFreeAb.map _ hT)) (whiskerLeft _ (relFreeAb.map _ hS)) |
| 1015 | (hom_ext (U := (T ⊔ S).whisker _)) |
| 1016 | |
| 1017 | /-- If `g` cuts out `z.1` on an étale chart `a` of `X` and `g'` cuts out `z.2` on an étale chart |
| 1018 | `b` of `Y`, then `Fin.snoc (g · ⊗ₜ 1) (1 ⊗ₜ g' 0)` cuts out `z` on the product chart `a.prod b` |
| 1019 | of `X × Y`. -/ |
| 1020 | private lemma New.Variety.cutsOutLocus_prod_singleton {k : Type} [Field k] {d : ℕ} |
| 1021 | {X Y : CommAlg k ⥤ Type 1} (a : EtaleChart d X) (b : EtaleChart 1 Y) |
| 1022 | (z : (X ⊗ Y).obj (CommAlgCat.of k k)) (g : Fin d → a.coordRing) (g' : Fin 1 → b.coordRing) |
| 1023 | (hg : CutsOutLocus X (ComesFromPoints {z.1}) a.point g) |
| 1024 | (hg' : CutsOutLocus Y (ComesFromPoints {z.2}) b.point g') : |
| 1025 | CutsOutLocus (X ⊗ Y) (ComesFromPoints {z}) (a.prod b).point |
| 1026 | (Fin.snoc (g · ⊗ₜ[k] 1) (1 ⊗ₜ[k] g' 0)) := fun K α ↦ by |
| 1027 | let G : Fin (d + 1) → (a.prod b).coordRing := Fin.snoc (g · ⊗ₜ 1) (1 ⊗ₜ g' 0) |
| 1028 | refine .symm (exists_eq_left.trans (Prod.ext_iff.trans ?_)) |
| 1029 | change (X.map α (X.map tensorInl a.point) = X.map (CommAlgCat.ofHom (Algebra.ofId k K)) z.1 ∧ |
| 1030 | Y.map α (Y.map tensorInr b.point) = Y.map (CommAlgCat.ofHom (Algebra.ofId k K)) z.2) ↔ |
| 1031 | Ideal.span (Set.range G) ≤ RingHom.ker α.hom |
| 1032 | rw [show X.map α (X.map tensorInl a.point) = X.map (tensorInl ≫ α) a.point from |
| 1033 | (X.map_comp_apply tensorInl α a.point).symm, |
| 1034 | show Y.map α (Y.map tensorInr b.point) = Y.map (tensorInr ≫ α) b.point from |
| 1035 | (Y.map_comp_apply tensorInr α b.point).symm] |
| 1036 | simp only [Ideal.span_le, Set.range_subset_iff, Fin.forall_fin_succ'] |
| 1037 | have h_cut := ((hg K (tensorInl ≫ α)).and (hg' K (tensorInr ≫ α))).symm |
| 1038 | simp only [ComesFromPoints, Set.mem_singleton_iff, exists_eq_left, Ideal.span_le, |
| 1039 | Set.range_subset_iff, Fin.forall_fin_one] at h_cut |
| 1040 | convert h_cut using 2 |
| 1041 | · change (∀ i : Fin d, α.hom (G i.castSucc) = 0) ↔ |
| 1042 | ∀ i : Fin d, α.hom (g i ⊗ₜ[k] 1) = 0 |
| 1043 | have hG (i : Fin d) : G i.castSucc = g i ⊗ₜ[k] 1 := Fin.snoc_castSucc _ _ _ |
| 1044 | simp only [hG] |
| 1045 | · change α.hom (G (Fin.last d)) = 0 ↔ α.hom (1 ⊗ₜ[k] g' 0) = 0 |
| 1046 | rw [show G (Fin.last d) = 1 ⊗ₜ[k] g' 0 from Fin.snoc_last _ _] |
| 1047 | |
| 1048 | /-- Excision comparison on the product `X × Y`: if local classes `x` for `z.1`, `y` for `z.2`, and |
| 1049 | `ξ` for `z` agree with the corresponding Grothendieck symbols on charts `a ∋ z.1`, `b ∋ z.2`, and |
| 1050 | `a.prod b`, then the relative cup product of `x` and `y` equals the restriction of `ξ` to |
| 1051 | `(X ∖ z.1) × Y ∪ X × (Y ∖ z.2)`. -/ |
| 1052 | private lemma New.Variety.cup_rel_eq_map_of_isLocalSymbol {k : Type} [Field k] [CharZero k] {d : ℕ} |
| 1053 | {X Y : CommAlg k ⥤ Type 1} [HasAtlas d X] [HasAtlas 1 Y] |
| 1054 | {z : (X ⊗ Y).obj (CommAlgCat.of k k)} |
| 1055 | {x : HodgeH (relFreeAb (offPoints {z.1})) d} {y : HodgeH (relFreeAb (offPoints {z.2})) 1} |
| 1056 | {ξ : HodgeH (relFreeAb (offPoints {z})) (d + 1)} |
| 1057 | {a : EtaleChart d X} {b : EtaleChart 1 Y} {g : Fin d → a.coordRing} {g' : Fin 1 → b.coordRing} |
| 1058 | (ha : z.1 ∈ a.locus (CommAlgCat.of k k)) (hb : z.2 ∈ b.locus (CommAlgCat.of k k)) |
| 1059 | (hx : IsLocalSymbol x a.point (ComesFromPoints {z.1}) g 1) |
| 1060 | (hy : IsLocalSymbol y b.point (ComesFromPoints {z.2}) g' 1) |
| 1061 | (ξ_local : IsLocalSymbol ξ (a.prod b).point (ComesFromPoints {z}) |
| 1062 | (Fin.snoc (g · ⊗ₜ[k] 1) (1 ⊗ₜ[k] g' 0)) 1) |
| 1063 | (hU : (offPoints {z.1}).preimage (fst X Y) ⊔ (offPoints {z.2}).preimage (snd X Y) ≤ |
| 1064 | (offPoints (X := X ⊗ Y) {z}).preimage (𝟙 _)) : |
| 1065 | HodgeH.map (relFreeAb.prod (offPoints {z.1}) (offPoints {z.2})) |
| 1066 | (cup exteriorAlg.mulPairing x y (add_comm 1 d) :) = |
| 1067 | ξ.map (relFreeAb.map (𝟙 _) hU) := by |
| 1068 | let G : Fin (d + 1) → (a.prod b).coordRing := Fin.snoc (g · ⊗ₜ 1) (1 ⊗ₜ g' 0) |
| 1069 | let U : Subfunctor (X ⊗ Y) := |
| 1070 | (offPoints {z.1}).preimage (fst X Y) ⊔ (offPoints {z.2}).preimage (snd X Y) |
| 1071 | -- A point off the product chart is off `a` or off `b`, so it has a neighbourhood in `U`. |
| 1072 | have near (K) (hK : IsField K.carrier) (q) (hq : q ∉ (a.prod b).locus.obj K) : |
| 1073 | ∃ O, IsOpenSubfunctor O ∧ q ∈ O.obj K ∧ O ≤ U := by |
| 1074 | obtain hq | hq := not_and_or.1 fun h ↦ hq ((range_pointMap_prod a b).ge K h) |
| 1075 | · obtain ⟨O, hO_open, hqO, hO_le⟩ := exists_isOpenSubfunctor_le_offPoints ha hK hq |
| 1076 | exact ⟨_, hO_open.preimage _, hqO, fun _ _ h ↦ .inl (hO_le _ h)⟩ |
| 1077 | · obtain ⟨O, hO_open, hqO, hO_le⟩ := exists_isOpenSubfunctor_le_offPoints hb hK hq |
| 1078 | exact ⟨_, hO_open.preimage _, hqO, fun _ _ h ↦ .inr (hO_le _ h)⟩ |
| 1079 | -- By excision it suffices to compare pull-backs to the product chart. That of the relative cup |
| 1080 | -- product is the product of the symbols of `g ⊗ 1` and `1 ⊗ g'` (`pull_cup_along_pair`, `hx`, |
| 1081 | -- `hy`). |
| 1082 | refine (hodge_excision (a.prod b).isOpenSubfunctor near (by rfl) _).1 |
| 1083 | ((pull_cup_along_pair ..).trans |
| 1084 | ((congrArg _ (congrArg₂ (fun u v ↦ cup _ u v _) |
| 1085 | ((hx.map _).2.2.trans (one_smul _ _)) |
| 1086 | ((hy.map _).2.2.trans (one_smul _ _)))).trans ?_)) |
| 1087 | change _ = |
| 1088 | (ξ.map (relFreeAb.map (𝟙 _) hU)).map (relFreeAb.map (pointMap (a.prod b).point) le_rfl) |
| 1089 | -- Read `pull_cup_along_pair` backwards: this is the pull-back, along `(g ⊗ 1, 1 ⊗ g')`, of the |
| 1090 | -- product of the universal symbols on `𝔸^d × 𝔸^1`. |
| 1091 | refine (pull_cup_along_pair (U := unimodular) (W := unimodular) _ _ _ _ |
| 1092 | symbolClass symbolClass).symm.trans ?_ |
| 1093 | -- `symbolClass_succ` turns the product into `[dG / G]`, the pull-back of `ξ` by `ξ_local`. |
| 1094 | refine (congrArg (HodgeH.map _) (symbolClass_succ k d).2).trans ?_ |
| 1095 | let p := pointMap (a.prod b).point |
| 1096 | let Q := U.preimage p |
| 1097 | let Z := (offPoints {z}).preimage p |
| 1098 | let restrict : relFreeAb Q ⟶ relFreeAb Z := |
| 1099 | relFreeAb.map (𝟙 (reprBy _)) fun K _ h ↦ hU K h |
| 1100 | let toPoint : relFreeAb Z ⟶ relFreeAb (offPoints {z}) := relFreeAb.map p ξ_local.2.1 |
| 1101 | let toSymbol : relFreeAb Z ⟶ relFreeAb (unimodular (k := k) (d := d + 1)) := |
| 1102 | relFreeAb.map (pointMap ⟨G⟩) ξ_local.1.preimage_fieldLocus_not.le |
| 1103 | have h_local : ξ.map toPoint = symbolClass.map toSymbol := |
| 1104 | ξ_local.2.2.trans (one_smul _ _) |
| 1105 | have h_comp : ξ.map (restrict ≫ toPoint) = symbolClass.map (restrict ≫ toSymbol) := |
| 1106 | (HodgeH.map_comp restrict toPoint ξ).trans |
| 1107 | ((congrArg (fun w : HodgeH (relFreeAb Z) (d + 1) ↦ w.map restrict) h_local).trans |
| 1108 | (HodgeH.map_comp restrict toSymbol symbolClass).symm) |
| 1109 | refine (HodgeH.map_comp _ _ _).symm.trans ?_ |
| 1110 | refine Eq.trans ?_ (HodgeH.map_comp _ _ _) |
| 1111 | refine (congrArg (fun f ↦ symbolClass.map f) ?_).trans |
| 1112 | (h_comp.symm.trans (congrArg (fun f ↦ ξ.map f) ?_)) |
| 1113 | · exact relFreeAb.hom_ext fun C σ ↦ congrArg (relFreeAb.mk _) <| |
| 1114 | ULift.ext (Fin.comp_snoc σ.down.hom (g · ⊗ₜ[k] 1) (1 ⊗ₜ[k] g' 0)).symm |
| 1115 | · exact relFreeAb.hom_ext |
| 1116 | |
| 1117 | /-- Over a field `k` of characteristic `0`, let `X` and `Y` have atlases of dimensions `d` and `1`. |
| 1118 | Let `z` be a `k`-point of `X × Y`. Take the classes of `z.1` and `z.2` and multiply them with the |
| 1119 | wedge product of coefficients. Pull the product back along `ℤ[X × Y] → ℤ[X] ⊗ ℤ[Y]`. The result is |
| 1120 | the class of `z`, in degree `d + 1` of the Hodge cohomology of `X × Y`. -/ |
| 1121 | lemma New.Variety.IsPointSum.cup_pointClass {k : Type} [Field k] [CharZero k] {d : ℕ} |
| 1122 | {X Y : CommAlg k ⥤ Type 1} [HasAtlas d X] [HasAtlas 1 Y] (z : (X ⊗ Y).obj (CommAlgCat.of k k)) : |
| 1123 | HodgeH.map (freeAb.prod X Y) |
| 1124 | (cup (exteriorAlg (k := k)).mulPairing (pointClass d z.1) (pointClass 1 z.2) |
| 1125 | (add_comm 1 d)) = |
| 1126 | pointClass (d + 1) z := by |
| 1127 | -- The product of the local classes `x`, `y` of `z.1`, `z.2` is a class relative to |
| 1128 | -- `U = (X ∖ z.1) × Y ∪ X × (Y ∖ z.2)`. By excision we compare it with a local class `ξ` of `z` on |
| 1129 | -- the product chart, where both come from the universal symbol `symbolClass`, by |
| 1130 | -- `symbolClass_succ`. By `exists_isPointSum_singleton` local classes exist, and `pointClass` is |
| 1131 | -- the image of any of them. |
| 1132 | obtain ⟨x, x_pt⟩ : ∃ x : HodgeH (relFreeAb (offPoints {z.1})) d, IsPointSum {z.1} 1 x := |
| 1133 | exists_isPointSum_singleton z.1 |
| 1134 | obtain ⟨y, y_pt⟩ : ∃ y : HodgeH (relFreeAb (offPoints {z.2})) 1, IsPointSum {z.2} 1 y := |
| 1135 | exists_isPointSum_singleton z.2 |
| 1136 | have cl_fst : pointClass d z.1 = .map (π _) x := x_pt.map_eq_pointClass.symm |
| 1137 | have cl_snd : pointClass 1 z.2 = .map (π _) y := y_pt.map_eq_pointClass.symm |
| 1138 | -- Charts `a ∋ z.1`, `b ∋ z.2` and functions `g`, `g'` on them that cut out these points, with |
| 1139 | -- `x = [dg / g]` on `a` and `y = [dg' / g']` on `b`. |
| 1140 | obtain ⟨a, g, ha, hx⟩ := x_pt z.1 rfl |
| 1141 | obtain ⟨b, g', hb, hy⟩ := y_pt z.2 rfl |
| 1142 | have cut := cutsOutLocus_prod_singleton a b z g g' hx.1 hy.1 |
| 1143 | obtain ⟨ξ, ξ_local, ξ_pt⟩ := |
| 1144 | (a.prod b).exists_isLocalSymbol cut ((range_pointMap_prod ..).ge _ ⟨ha, hb⟩) |
| 1145 | let U : Subfunctor (X ⊗ Y) := |
| 1146 | (offPoints {z.1}).preimage (fst X Y) ⊔ (offPoints {z.2}).preimage (snd X Y) |
| 1147 | -- A point that avoids `z.1` or `z.2` in its coordinate avoids `z`. |
| 1148 | have hU : U ≤ (offPoints (X := X ⊗ Y) {z}).preimage (𝟙 _) := by |
| 1149 | rintro _ _ (h | h) _ _ hK ⟨_, ⟨⟩, e⟩ <;> exact h _ _ hK ⟨_, rfl, by injections⟩ |
| 1150 | have η_eq := cup_rel_eq_map_of_isLocalSymbol ha hb hx hy ξ_local hU |
| 1151 | rw [cl_fst, cl_snd] |
| 1152 | -- The left side is the image of the relative cup product, hence of `ξ`, in the cohomology of |
| 1153 | -- `X ⊗ Y`. |
| 1154 | refine (cup_map _ _ _ _ (whiskerLeft _ (π _)) (whiskerLeft _ (π _)) rfl).symm.trans |
| 1155 | ((HodgeH.map_comp (π U) (relFreeAb.prod ..) _).trans ((congrArg _ η_eq).trans ?_)) |
| 1156 | refine (HodgeH.map_comp _ _ _).symm.trans ?_ |
| 1157 | have hπ : π U ≫ relFreeAb.map (𝟙 _) hU = π (offPoints {z}) := by |
| 1158 | rw [π_map, freeAb.map_id, Category.id_comp] |
| 1159 | exact (congrArg (ξ.map ·) hπ).trans ξ_pt.map_eq_pointClass |
| 1160 | |
| 1161 | end PointClassProduct |