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 | import Mathlib.Algebra.Order.Ring.Opposite |
| 4 | import Mathlib.Algebra.Order.Star.Rat |
| 5 | public import Lib.Cohomology.TorsionTheories |
| 6 | public import Lib.Cohomology.LerayHirsch |
| 7 | public import Lib.PadicComparison.HodgeTate.ExtCocycles |
| 8 | import Lib.Cohomology.Etale.DenseSubfunctors |
| 9 | |
| 10 | /-! |
| 11 | # Tate module, Kummer sequence and the first Chern class of O(1) on the projective line |
| 12 | |
| 13 | Let `g` be a functor from `C` to tests over a ring `A`, and let `ℓ` be a prime. The Tate module `𝕋` |
| 14 | of `G_m` along `g` sits in the Kummer sequence. When `A` is local and absolutely integrally closed |
| 15 | and `ℓ` is invertible in `A`, a section `ε` of `𝕋` makes `𝕋` act on every coefficient `M` |
| 16 | (`New.Variety.TorsionCoeff`: killed by `ℓ`, with Zariski descent). On the projective line `ℙ¹`, the |
| 17 | cocycle of `O(1)` and the Kummer class give the first Chern class `η ∈ H²(ℙ¹, 𝕋)`, and the |
| 18 | projective line formula `H(ℙ¹ × S) = H(S) ⊕ η H(S)` is stated as a property of a coefficient. |
| 19 | |
| 20 | ## Main definitions and results |
| 21 | |
| 22 | * `New.Variety.shortExact_kummerSeq`: the Kummer sequence 0 → 𝕋 → Hom(ℚ, G_m) → G_m → 0 is exact. |
| 23 | * `New.Variety.tateGen`, `New.Variety.isCohomEquiv_tensorPoint_tateGen`: a section ε of 𝕋 such that |
| 24 | S → S ⊗ 𝕋, x ↦ x ⊗ ε, is bijective on Ext(−, F) for S killed by ℓ and F with Zariski descent. Here |
| 25 | A is local and absolutely integrally closed, and the prime ℓ is invertible in A |
| 26 | (`New.Variety.InvertsPrime`). |
| 27 | * `New.Variety.TorsionCoeff.tateAction`: the class in Ext⁰(M ⊗ 𝕋, M) inverse to x ↦ x ⊗ ε; it |
| 28 | commutes with all classes between coefficients (`New.Variety.TorsionCoeff.tateAction_comm`). |
| 29 | * `New.Variety.TorsionCoeff.mulClass`: the product y · ξ of a class y in M with a class ξ in 𝕋, |
| 30 | natural in M. |
| 31 | * `New.Variety.etaClass`: the class `η ∈ H²(ℙ¹, 𝕋)`, the cocycle class times the Kummer class. |
| 32 | * `New.Variety.TorsionCoeff.etaAt`, `New.Variety.TorsionCoeff.HasLineFormula`: product with `η`; |
| 33 | `H(ℙ¹ × S) = H(S) ⊕ η H(S)`. |
| 34 | |
| 35 | Notions from other files: |
| 36 | * `New.Variety.IsTest`: a test ring A is reduced and absolutely integrally closed, and any a, b ∈ A |
| 37 | admit an idempotent e with a ∣ eb and b ∣ (1 − e)a. |
| 38 | * `New.Variety.TestOver`: The category of tests over A: the full subcategory of commutative |
| 39 | A-algebras whose underlying rings are test rings. |
| 40 | * `New.Variety.H`: The group Ext^n(N,F) in the category of functors from C to abelian groups. |
| 41 | * `New.Variety.Cocycle`: A 1-cocycle from F to G: homomorphisms D(f): F(c) → G(d) for f: c → d with |
| 42 | D(gf) = G(g)D(f) + D(g)F(f). It defines an extension of F by G. |
| 43 | |
| 44 | ## Relation to the literature |
| 45 | |
| 46 | Known; see `Lib.Cohomology.ProjectiveLine.ConstantLineFormula` and |
| 47 | `Lib.PadicComparison.Duality.GoodPairs` for sources. |
| 48 | -/ |
| 49 | |
| 50 | @[expose] public section |
| 51 | |
| 52 | noncomputable section |
| 53 | |
| 54 | /-- For an additive map χ from ℚ and a nonzero natural number n, n times the map x ↦ χ(x / n) is |
| 55 | χ. -/ |
| 56 | theorem AddMonoidHom.nsmul_comp_mulRight_inv_natCast {G : Type*} [AddCommGroup G] (χ : ℚ →+ G) |
| 57 | (n : ℕ) [NeZero n] : n • χ.comp (AddMonoidHom.mulRight (n : ℚ)⁻¹) = χ := by |
| 58 | ext |
| 59 | simp [← map_nsmul, mul_left_comm] |
| 60 | |
| 61 | namespace New.Variety |
| 62 | |
| 63 | /-! |
| 64 | ## Kummer sequence, Tate module and its action on torsion coefficients |
| 65 | |
| 66 | `New.Variety.TotalH N F` is total Ext(N, F), `New.Variety.TotalH.comp` the Yoneda product in diagram |
| 67 | order, and `New.Variety.abTensor` the pointwise tensor product over ℤ. |
| 68 | -/ |
| 69 | |
| 70 | section TateModule |
| 71 | |
| 72 | open CategoryTheory AddCommGrpCat Polynomial Module TotalH Function TensorProduct NeZero |
| 73 | AddCommGroup |
| 74 | |
| 75 | variable {C C' : Type _} [Category C] [Category C'] {ℓ : ℕ} {A : Type} [CommRing A] |
| 76 | (g : C ⥤ TestOver A) |
| 77 | |
| 78 | /-! ### The Kummer sequence and the Tate module -/ |
| 79 | |
| 80 | /-- The Kummer short complex 𝕋 → Hom(ℚ, G_m) → G_m of functors along g, formed by evaluation at |
| 81 | 1 and its kernel 𝕋, the Tate module. -/ |
| 82 | abbrev kummerSeq : ShortComplex (AbFunctor C) := |
| 83 | -- the kernel sequence of evaluation at 1 on homomorphisms from `ℚ` to the units |
| 84 | kerComplex |
| 85 | (M := |
| 86 | CategoryTheory.Functor.mk (fun c ↦ of (ℚ →+ (ringOf g ⋙ Gm) c)) fun f ↦ |
| 87 | ofHom (AddMonoidHom.compHom ((ringOf g ⋙ Gm).map f).hom)) |
| 88 | (G := ringOf g ⋙ Gm) {app _ := ofHom (AddMonoidHom.eval 1)} |
| 89 | |
| 90 | /-- The Tate module 𝕋 of the multiplicative group along g: its value at c is the group of |
| 91 | homomorphisms χ from ℚ to the units of g(c) with χ(1) = 1. It is the first term `X₁` of the |
| 92 | Kummer complex `New.Variety.kummerSeq`, that is, the kernel of evaluation at 1, |
| 93 | Hom(ℚ, G_m) → G_m. A member χ is a compatible system χ(1/n) of n-th roots of unity for all |
| 94 | n ≥ 1, so all primes are included, not only ℓ. -/ |
| 95 | abbrev tateModule : AbFunctor C := (kummerSeq g).X₁ |
| 96 | |
| 97 | instance : HasFlatValues (tateModule g) where |
| 98 | flat c := by |
| 99 | -- Homomorphisms from `ℚ` form a `ℚ`-vector space, so their subgroups are torsion-free. |
| 100 | let : Module ℚᵐᵒᵖ (ℚ →+ (ringOf g ⋙ Gm) c) := AddMonoidHom.instDomMulActModule |
| 101 | have : HasUniqueDiv (ℚ →+ (ringOf g ⋙ Gm).obj c) := |
| 102 | HasUniqueDiv.of_isTorsionFree ℚᵐᵒᵖ (ℚ →+ (ringOf g ⋙ Gm) c) |
| 103 | let φ : (ℚ →+ (ringOf g ⋙ Gm).obj c) →+ (ringOf g ⋙ Gm).obj c := AddMonoidHom.eval 1 |
| 104 | exact inferInstanceAs (Flat ℤ φ.ker) |
| 105 | |
| 106 | /-- Along a functor g to tests over A, the Kummer sequence 0 → 𝕋 → Hom(ℚ, G_m) → G_m → 0, with |
| 107 | last map evaluation at 1, is short exact. -/ |
| 108 | lemma shortExact_kummerSeq : (kummerSeq g).ShortExact := by |
| 109 | -- Evaluation at 1 is onto: g(c) is absolutely integrally closed, so every unit has a compatible |
| 110 | -- system of roots. |
| 111 | refine kerComplex_shortExact fun (c : C) (y : (ringOf g ⋙ Gm).obj c) ↦ ?_ |
| 112 | obtain ⟨χ, hχ⟩ := |
| 113 | exists_compatible_roots (h := (g c).property.toIsAbsIntegrallyClosed) (.ofMul y.down) |
| 114 | let up : Additive ((ringOf g).obj c)ˣ →+ (ringOf g ⋙ Gm).obj c := .mk' ULift.up fun _ _ ↦ rfl |
| 115 | exact ⟨up.comp χ, congrArg ULift.up hχ⟩ |
| 116 | |
| 117 | variable [u : InvertsPrime A ℓ] |
| 118 | |
| 119 | /-! ### A generator of the Tate module modulo ℓ -/ |
| 120 | |
| 121 | /-- For a prime ℓ invertible in a local, absolutely integrally closed ring A, there is a |
| 122 | homomorphism χ from ℚ to A^× with χ(1) = 1 such that χ(1/ℓ) is a root of the ℓ-th cyclotomic |
| 123 | polynomial. -/ |
| 124 | def compatibleRootsOfUnity : |
| 125 | {χ : Multiplicative ℚ →* Aˣ // |
| 126 | χ (Multiplicative.ofAdd 1) = 1 ∧ |
| 127 | (cyclotomic ℓ A).IsRoot (χ (Multiplicative.ofAdd (1 / ℓ)))} := |
| 128 | Nonempty.some <| by |
| 129 | -- Take a root ζ of the cyclotomic polynomial; it is a unit with ζ ^ ℓ = 1. Choose a compatible |
| 130 | -- system of roots χ of ζ, with χ 1 = ζ, and rescale it to s ↦ χ (ℓ * s). |
| 131 | obtain ⟨ζ, hζ⟩ : ∃ ζ : A, (cyclotomic ℓ A).IsRoot ζ := |
| 132 | IsAbsIntegrallyClosed.exists_root _ (cyclotomic.monic ℓ A) |
| 133 | (by simp [natDegree_cyclotomic, pos]) |
| 134 | have hζ_pow : ζ ^ ℓ = 1 := isRoot_of_unity_of_root_cyclotomic (by aesop) hζ |
| 135 | obtain ⟨χ, hχ⟩ : |
| 136 | ∃ χ : ℚ →+ Additive Aˣ, χ 1 = Additive.ofMul (Units.ofPowEqOne ζ ℓ hζ_pow (ne ℓ)) := |
| 137 | exists_compatible_roots _ |
| 138 | exact ⟨(ℓ • χ).toMultiplicativeLeft, by simp [hχ], by simpa [← map_nsmul, hχ] using hζ⟩ |
| 139 | |
| 140 | /-- The homomorphism `compatibleRootsOfUnity` takes the value `1` at `1`. -/ |
| 141 | lemma compatibleRootsOfUnity_ofAdd_one : |
| 142 | (compatibleRootsOfUnity (A := A) (ℓ := ℓ)).val (Multiplicative.ofAdd 1) = 1 := |
| 143 | compatibleRootsOfUnity.property.left |
| 144 | |
| 145 | lemma isRoot_cyclotomic_compatibleRootsOfUnity : |
| 146 | (cyclotomic ℓ A).IsRoot |
| 147 | ((compatibleRootsOfUnity (A := A) (ℓ := ℓ)).val (Multiplicative.ofAdd (1 / ℓ))) := |
| 148 | compatibleRootsOfUnity.property.right |
| 149 | |
| 150 | /-- The section ε of the Tate module `New.Variety.tateModule` along g, as a map from the constant |
| 151 | functor ℤ (the free abelian group on the one-point functor). At c it is the homomorphism |
| 152 | `New.Variety.compatibleRootsOfUnity` χ: ℚ → Aˣ, with χ(1) = 1 and χ(1/ℓ) a root of the ℓ-th |
| 153 | cyclotomic polynomial, followed by the structure map A → g(c). -/ |
| 154 | def tateGen : freeAb (onePointFunctor C) ⟶ tateModule g := |
| 155 | -- at `c`, the image of `compatibleRootsOfUnity` under the structure map of `g c`, which still |
| 156 | -- sends 1 to 1 |
| 157 | freeAb.desc |
| 158 | (fun c _ ↦ |
| 159 | ⟨AddMonoidHom.comp (AddMonoidHom.mk' ULift.up fun _ _ ↦ rfl) |
| 160 | ((Units.map (algebraMap A (g c).1).1).comp compatibleRootsOfUnity.1).toAdditiveRight, |
| 161 | Gm.ext.2 ((congrArg (fun x : Aˣ ↦ algebraMap A (g c).obj x) |
| 162 | compatibleRootsOfUnity_ofAdd_one).trans (map_one _))⟩) |
| 163 | (by |
| 164 | intros |
| 165 | congr |
| 166 | ext |
| 167 | exact Gm.ext.2 ((g.map _).hom.hom.commutes' _).symm) |
| 168 | |
| 169 | end TateModule |
| 170 | |
| 171 | section TateAction |
| 172 | |
| 173 | open CategoryTheory AddCommGrpCat Polynomial Module TotalH Function TensorProduct NeZero |
| 174 | AddCommGroup |
| 175 | |
| 176 | variable {C C' : Type _} [Category C] [Category C'] {ℓ : ℕ} {A : Type} [CommRing A] |
| 177 | {g : C ⥤ TestOver A} [u : InvertsPrime A ℓ] {S S' P F : AbFunctor C} |
| 178 | |
| 179 | /-- For t in the Tate module at c, the value t(1/ℓ) is an ℓ-th root of unity of the ring g(c): |
| 180 | ℓ • t(1/ℓ) = t(1), which is the unit 1 (written 0, as the group of units is written additively). -/ |
| 181 | private lemma tateModule_apply_inv_mem_rootsOfUnity {c : C} (t : tateModule g c) : |
| 182 | (t.val (1 / ℓ)).down ∈ rootsOfUnity ℓ ((ringOf g).obj c) := by |
| 183 | have h_pow : ℓ • t.val (1 / ℓ) = 0 := by |
| 184 | calc ℓ • t.val (1 / ℓ) = (ℓ • t.val.comp (.mulRight (ℓ : ℚ)⁻¹)) 1 := by |
| 185 | simp only [AddMonoidHom.nsmul_apply, AddMonoidHom.comp_apply, |
| 186 | AddMonoidHom.mulRight_apply, one_mul, one_div] |
| 187 | _ = t.val 1 := by rw [AddMonoidHom.nsmul_comp_mulRight_inv_natCast] |
| 188 | _ = 0 := t.property |
| 189 | exact congrArg ULift.down h_pow |
| 190 | |
| 191 | /-- For a ring map ψ from g(c) to K, the additive map t ↦ ψ(t(1/ℓ)) from the Tate module at c to |
| 192 | the ℓ-th roots of unity of K, written additively. -/ |
| 193 | private def tateRoot {c : C} {K : Type} [CommRing K] (ψ : (ringOf g).obj c →+* K) : |
| 194 | tateModule g c →+ Additive (rootsOfUnity ℓ K) := |
| 195 | (restrictRootsOfUnity ψ ℓ).toAdditive.comp |
| 196 | (.mk' (fun t ↦ ⟨(t.val (1 / ℓ)).down, tateModule_apply_inv_mem_rootsOfUnity t⟩) fun _ _ ↦ rfl) |
| 197 | |
| 198 | /-- For a ring map ψ from g(c) to a domain K, the image ψ(ε(1/ℓ)) of the section |
| 199 | ε = `New.Variety.tateGen` is a primitive ℓ-th root of unity. -/ |
| 200 | private lemma isPrimitiveRoot_tateRoot_tateGen {c : C} {K : Type} [CommRing K] [IsDomain K] |
| 201 | (ψ : (ringOf g).obj c →+* K) : |
| 202 | IsPrimitiveRoot (tateRoot ψ (tateGen g c (.of ⟨⟩))).val ℓ := by |
| 203 | -- ψ(ε(1/ℓ)) is the image of a root of the ℓ-th cyclotomic polynomial, and ℓ ≠ 0 in K |
| 204 | let φ : A →+* K := ψ.comp (algebraMap A (g c).obj) |
| 205 | have h_unit : IsUnit (ℓ : K) := by simpa using (InvertsPrime.isUnit_prime (A := A)).map φ |
| 206 | have h_ne_zero : NeZero (ℓ : K) := ⟨h_unit.ne_zero⟩ |
| 207 | have h_val : ((tateRoot ψ (tateGen g c (.of ⟨⟩))).val : K) = |
| 208 | φ ((compatibleRootsOfUnity (A := A)).val (.ofAdd (1 / ℓ))) := by |
| 209 | have h_gen : tateGen g c (.of ⟨⟩) = |
| 210 | ⟨AddMonoidHom.comp (AddMonoidHom.mk' ULift.up fun _ _ ↦ rfl) |
| 211 | ((Units.map (algebraMap A (g c).1).1).comp compatibleRootsOfUnity.1).toAdditiveRight, |
| 212 | Gm.ext.2 ((congrArg (fun x : Aˣ ↦ algebraMap A (g c).obj x) |
| 213 | compatibleRootsOfUnity_ofAdd_one).trans (map_one _))⟩ := |
| 214 | freeAb.desc_of (Y := onePointFunctor C) _ _ c ⟨⟩ |
| 215 | exact congrArg (fun x : tateModule g c ↦ ((tateRoot ψ x).val : K)) h_gen |
| 216 | have h_root : (cyclotomic ℓ K).IsRoot ((tateRoot ψ (tateGen g c (.of ⟨⟩))).val : K) := by |
| 217 | rw [h_val, ← map_cyclotomic ℓ φ] |
| 218 | exact isRoot_cyclotomic_compatibleRootsOfUnity.map φ |
| 219 | exact IsPrimitiveRoot.coe_units_iff.mp (isRoot_cyclotomic_iff.mp h_root) |
| 220 | |
| 221 | /-- Let A be local and absolutely integrally closed, with the prime ℓ invertible in A. If ℓ kills |
| 222 | every value of S and F satisfies Zariski descent along g (a subfunctor that contains everything near |
| 223 | each maximal ideal of the rings g(c) is dense for F), then the map S → S ⊗ 𝕋, x ↦ x ⊗ ε, induces |
| 224 | bijections on all Ext^n(−, F). Here 𝕋 is the Tate module and ε = `New.Variety.tateGen`. -/ |
| 225 | lemma isCohomEquiv_tensorPoint_tateGen (hS : ∀ (c : C) (x : S c), ℓ • x = 0) |
| 226 | (hF : HasZariskiDescent (ringOf g) F) : |
| 227 | IsCohomEquiv F (tensorPoint (tateGen g) S) := by |
| 228 | -- The map is locally bijective. In the localization at a maximal ideal, a domain, ζ = ε (1 / ℓ) |
| 229 | -- is a primitive ℓ-th root of unity. So s ⊗ ε = 0 forces s = 0; and every t in the Tate module |
| 230 | -- is i • ε plus an element t' that is locally divisible by ℓ, so that s ⊗ t' is locally zero. |
| 231 | let ε {c : C} : tateModule g c := tateGen g c (.of ⟨⟩) |
| 232 | -- The localization at a maximal ideal is a local domain, absolutely integrally closed. |
| 233 | have h_local {d : C} (m : Ideal ((ringOf g).obj d)) [hm : m.IsPrime] : |
| 234 | IsAbsIntegrallyClosedLocal (Localization.AtPrime m) := |
| 235 | (@IsTest.exists_valuationSubring_atPrime _ _ (g d).property (m : Ideal (g d).obj) hm).left |
| 236 | -- It suffices that kernel and cokernel are locally zero; by Zariski descent this is tested near |
| 237 | -- each maximal ideal m, along each map f from c. |
| 238 | have h_prim {c d : C} (f : c ⟶ d) (m : Ideal ((ringOf g).obj d)) [m.IsPrime] : |
| 239 | IsPrimitiveRoot (tateRoot ((algebraMap _ (Localization.AtPrime m)).comp |
| 240 | ((ringOf g).map f).hom) (ε (c := c))).val ℓ := |
| 241 | isPrimitiveRoot_tateRoot_tateGen _ |
| 242 | refine LocalIso.isCohomEquiv ⟨?_, ?_⟩ |
| 243 | · -- Kernel: the discrete logarithm l to the base ζ turns s ⊗ ε = 0 into l ζ • s = 0. |
| 244 | rintro c (s : S c) hs |
| 245 | refine hF fun d f m hm ↦ ?_ |
| 246 | let ψ : (ringOf g).obj c →+* Localization.AtPrime m := |
| 247 | (algebraMap _ (Localization.AtPrime m)).comp ((ringOf g).map f.down).hom |
| 248 | have hζ : IsPrimitiveRoot (tateRoot ψ ε).val ℓ := h_prim f.down m |
| 249 | have h_zmod : Module (ZMod ℓ) (S c) := zmodModule (hS c) |
| 250 | let l : Additive (rootsOfUnity ℓ (Localization.AtPrime m)) ≃+ ZMod ℓ := |
| 251 | (hζ.zmodEquivZPowers.trans (MulEquiv.toAdditive (MulEquiv.subgroupCongr hζ.zpowers_eq))).symm |
| 252 | have hl : l (tateRoot ψ ε) ≠ 0 := |
| 253 | l.map_ne_zero_iff.mpr fun h ↦ hζ.ne_one Fact.out (congrArg Subtype.val h) |
| 254 | -- pair s ⊗ t with l (tateRoot ψ t) ∈ ZMod ℓ, which acts on S c |
| 255 | let pairing : S c →ₗ[ℤ] tateModule g c →ₗ[ℤ] S c := |
| 256 | ((l.toAddMonoidHom.comp (tateRoot ψ)).toIntLinearMap.smulRight 1).flip |
| 257 | have h_smul : l (tateRoot ψ ε) • s = 0 := by |
| 258 | change pairing s ε = 0 |
| 259 | simpa only [lift.tmul, map_zero] using |
| 260 | congrArg (lift pairing) (show s ⊗ₜ[ℤ] ε = 0 from hs) |
| 261 | obtain rfl : s = 0 := (smul_eq_zero_iff_right hl).mp h_smul |
| 262 | exact ⟨1, m.one_notMem, fun b f' _ ↦ map_zero (S.map _).hom⟩ |
| 263 | · -- Cokernel: t (1 / ℓ) = ζ ^ i at m, so y = t' (1 / ℓ) is 1 at m for t' = t - i • ε. |
| 264 | intro c t |
| 265 | refine t.inductionOn (fun s t ↦ hF fun d f m hm ↦ ?_) fun _ _ ↦ add_mem |
| 266 | let ψ : (ringOf g).obj c →+* Localization.AtPrime m := |
| 267 | (algebraMap _ (Localization.AtPrime m)).comp ((ringOf g).map f.down).hom |
| 268 | have hζ : IsPrimitiveRoot (tateRoot ψ ε).val ℓ := h_prim f.down m |
| 269 | obtain ⟨i, hi : (tateRoot ψ ε).val ^ i = (tateRoot ψ t).val⟩ := |
| 270 | hζ.zpowers_eq.ge (tateRoot ψ t).property |
| 271 | let t' : tateModule g c := t - i • ε |
| 272 | let y : (ringOf g).obj c := (t'.val (1 / ℓ)).down.val |
| 273 | have h_ker : tateRoot ψ t' = 0 := by |
| 274 | rw [map_sub, map_zsmul, show i • tateRoot ψ ε = tateRoot ψ t from Subtype.ext hi, sub_self] |
| 275 | -- read in the localization, ψ(t'(1/ℓ)) = 1 |
| 276 | have hy : ψ y = 1 := |
| 277 | congrArg (fun r : Additive (rootsOfUnity ℓ (Localization.AtPrime m)) ↦ |
| 278 | ((r.val : (Localization.AtPrime m)ˣ) : Localization.AtPrime m)) h_ker |
| 279 | -- Hence a y = a for some a outside m, and where a is a unit, y = 1. |
| 280 | obtain ⟨a, ha⟩ : |
| 281 | ∃ a : m.primeCompl, (a : (ringOf g).obj d) * (ringOf g).map f.down y = a * 1 := |
| 282 | Localization.isLocalization.exists_of_eq (hy.trans (map_one _).symm) |
| 283 | refine ⟨a, a.property, fun b f' h_unit ↦ ?_⟩ |
| 284 | have hy_map : (ringOf g).map (f.down ≫ f') y = 1 := by |
| 285 | rw [(ringOf g).map_comp_apply, ← h_unit.mul_eq_left, ← map_mul, ha, mul_one] |
| 286 | -- There, for the image τ of t', τ (· / ℓ) lies in the Tate module, so τ is divisible by ℓ, |
| 287 | -- which kills S. |
| 288 | let τ : tateModule g b := (tateModule g).map (f.down ≫ f') t' |
| 289 | let τ' : tateModule g b := ⟨τ.val.comp (.mulRight (ℓ : ℚ)⁻¹), Gm.ext.mpr hy_map⟩ |
| 290 | have hτ : τ = ℓ • τ' := Subtype.ext (AddMonoidHom.nsmul_comp_mulRight_inv_natCast τ.val ℓ).symm |
| 291 | have h_zero : S.map (f.down ≫ f') s ⊗ₜ[ℤ] τ = 0 := by rw [hτ, ← smul_tmul, hS, zero_tmul] |
| 292 | -- In the cokernel s ⊗ t and s ⊗ t' agree, as they differ by (i • s) ⊗ ε. |
| 293 | have h_sub : (i • s) ⊗ₜ[ℤ] ε = s ⊗ₜ[ℤ] t - s ⊗ₜ[ℤ] t' := by |
| 294 | dsimp only [t'] |
| 295 | rw [tmul_sub, sub_sub_cancel, smul_tmul] |
| 296 | have h_class : (abCoker.π ((tensorPoint (tateGen g)).app S)).app c (s ⊗ₜ[ℤ] t) = |
| 297 | (abCoker.π ((tensorPoint (tateGen g)).app S)).app c (s ⊗ₜ[ℤ] t') := |
| 298 | QuotientAddGroup.eq_iff_sub_mem.mpr ⟨i • s, h_sub⟩ |
| 299 | calc _ = (abCoker ((tensorPoint (tateGen g)).app S)).map (f.down ≫ f') |
| 300 | ((abCoker.π ((tensorPoint (tateGen g)).app S)).app c (s ⊗ₜ[ℤ] t')) := |
| 301 | congrArg ((abCoker ((tensorPoint (tateGen g)).app S)).map (f.down ≫ f')) h_class |
| 302 | _ = 0 := congrArg _ h_zero |
| 303 | |
| 304 | /-! ### The action on coefficients and the product with a class -/ |
| 305 | |
| 306 | variable (M K : TorsionCoeff g) (φ : C' ⥤ C) (M' : TorsionCoeff (φ ⋙ g)) |
| 307 | (T : TotalH (φ ⋙ K.functor) M'.functor) |
| 308 | |
| 309 | /-- The action of the Tate module 𝕋 on a coefficient M: the class in Ext⁰(M ⊗ 𝕋, M) whose |
| 310 | pull-back along x ↦ x ⊗ ε, ε = `New.Variety.tateGen`, is the identity. -/ |
| 311 | def TorsionCoeff.tateAction : H ((abTensor.flip.obj (tateModule g)).obj M.functor) M.functor 0 := |
| 312 | surjInv (isCohomEquiv_tensorPoint_tateGen M.prime_smul_eq_zero M.zariski_descent 0).2 |
| 313 | (Abelian.Ext.mk₀ (𝟙 ((𝟭 (AbFunctor C)).obj M.functor))) |
| 314 | |
| 315 | /-- The class `New.Variety.TorsionCoeff.tateAction` of M pulls back along x ↦ x ⊗ ε to the identity |
| 316 | class of M (ε = `New.Variety.tateGen`). -/ |
| 317 | lemma TorsionCoeff.pullbackAlong_tensorPoint_tateAction : |
| 318 | pullbackAlong (tensorPoint (tateGen g) M.functor) M.tateAction.toTotalH = homClass |
| 319 | (𝟙 M.functor) := by |
| 320 | -- `M.tateAction` is defined as a preimage of the identity class under this pull-back |
| 321 | rw [pullbackAlong_of, show H.map M.functor (tensorPoint (tateGen g) M.functor) 0 M.tateAction = |
| 322 | Abelian.Ext.mk₀ (𝟙 M.functor) from |
| 323 | surjInv_eq (isCohomEquiv_tensorPoint_tateGen M.prime_smul_eq_zero M.zariski_descent 0).2 _] |
| 324 | rfl |
| 325 | |
| 326 | /-- The generator ε acts as the identity: for a class y in total Ext(S, M), the Yoneda composite of |
| 327 | x ↦ x ⊗ ε, y ⊗ 𝕋 and `New.Variety.TorsionCoeff.tateAction` of M is y (𝕋 the Tate module, |
| 328 | ε = `New.Variety.tateGen`). -/ |
| 329 | lemma TorsionCoeff.pullbackAlong_tensorPoint_comp_tateAction (y : TotalH S M.functor) : |
| 330 | pullbackAlong (tensorPoint (tateGen g) S) |
| 331 | (TotalH.comp (TotalH.map (abTensor.flip.obj (tateModule g)) y) |
| 332 | M.tateAction.toTotalH) = y := by |
| 333 | -- By naturality x ↦ x ⊗ ε moves past `y`; and `M.tateAction` pulls back along this map to the |
| 334 | -- identity class. |
| 335 | calc _ = TotalH.comp (TotalH.map (𝟭 (AbFunctor C)) y) |
| 336 | (pullbackAlong (tensorPoint (tateGen g) M.functor) M.tateAction.toTotalH) := |
| 337 | TotalH.comp_assoc_of_sq (y.naturality (tensorPoint (tateGen g))).symm _ |
| 338 | _ = TotalH.comp y (homClass (𝟙 M.functor)) := by |
| 339 | rw [M.pullbackAlong_tensorPoint_tateAction, TotalH.map_id] |
| 340 | _ = y := TotalH.comp_id |
| 341 | |
| 342 | /-- For coefficients K along g and M' along g∘φ, every class T in total Ext(K∘φ, M') commutes |
| 343 | with the actions μ = `New.Variety.TorsionCoeff.tateAction` of the Tate module 𝕋: in diagram |
| 344 | order, μ_K restricted along φ and then T equals T ⊗ 𝕋 and then μ_{M'}. -/ |
| 345 | lemma TorsionCoeff.tateAction_comm : |
| 346 | mapThenComp (restrictAlong φ) T K.tateAction.toTotalH = |
| 347 | TotalH.comp (TotalH.map (abTensor.flip.obj (tateModule (φ ⋙ g))) T) |
| 348 | M'.tateAction.toTotalH := by |
| 349 | -- Pull-back along x ↦ x ⊗ ε is injective on classes with values in `M'.functor`, and it sends |
| 350 | -- both sides to `T`, because ε acts as the identity on both coefficients. |
| 351 | apply (isCohomEquiv_tensorPoint_tateGen (S := φ ⋙ K.functor) |
| 352 | (fun (c : C') ↦ K.prime_smul_eq_zero (φ.obj c)) |
| 353 | M'.zariski_descent).bijective_pullbackAlong.injective |
| 354 | rw [M'.pullbackAlong_tensorPoint_comp_tateAction T] |
| 355 | -- On the left, the action on K restricted along φ pulls back to the identity class as well. |
| 356 | have h_restricted : |
| 357 | pullbackAlong (tensorPoint (tateGen (φ ⋙ g)) (φ ⋙ K.functor)) |
| 358 | (TotalH.map (restrictAlong φ) K.tateAction.toTotalH) = homClass (𝟙 (φ ⋙ K.functor)) := by |
| 359 | have h_mapped : |
| 360 | TotalH.map (restrictAlong φ) |
| 361 | (pullbackAlong (tensorPoint (tateGen g) K.functor) K.tateAction.toTotalH) = |
| 362 | TotalH.map (restrictAlong φ) (homClass (𝟙 K.functor)) := |
| 363 | congrArg _ K.pullbackAlong_tensorPoint_tateAction |
| 364 | rw [map_pullbackAlong, map_homClass, CategoryTheory.Functor.map_id] at h_mapped |
| 365 | exact h_mapped |
| 366 | calc _ = TotalH.comp (pullbackAlong (tensorPoint (tateGen (φ ⋙ g)) (φ ⋙ K.functor)) |
| 367 | (TotalH.map (restrictAlong φ) K.tateAction.toTotalH)) T := |
| 368 | (TotalH.comp_assoc _ _).symm |
| 369 | _ = T := by |
| 370 | rw [h_restricted] |
| 371 | exact TotalH.pullbackAlong_id |
| 372 | |
| 373 | /-- The product with a class ξ in total Ext(P, 𝕋), 𝕋 the Tate module `New.Variety.tateModule`. For |
| 374 | S with flat values it is the additive map y ↦ y · ξ from total Ext(S, M) to total Ext(S ⊗ P, M), |
| 375 | where y · ξ is the Yoneda composite S ⊗ P → S ⊗ 𝕋 → M ⊗ 𝕋 → M of S ⊗ ξ, y ⊗ 𝕋 and |
| 376 | `New.Variety.TorsionCoeff.tateAction`. |
| 377 | |
| 378 | `M.mulClass ξ y` is elaborated before it is compared with the type expected of it |
| 379 | (`elab_without_expected_type`): only `y` determines `S`; see `New.Variety.TotalH.map`. -/ |
| 380 | @[elab_without_expected_type] |
| 381 | def TorsionCoeff.mulClass [HasFlatValues S] (ξ : TotalH P (tateModule g)) : |
| 382 | TotalH S M.functor →+ TotalH ((abTensor.obj S).obj P) M.functor := |
| 383 | (ξ.map (abTensor S)).comp.comp (mapThenComp (abTensor.flip (tateModule g)) M.tateAction.toTotalH) |
| 384 | |
| 385 | lemma TorsionCoeff.mulClass_apply [HasFlatValues S] (ξ : TotalH P (tateModule g)) |
| 386 | (y : TotalH S M.functor) : |
| 387 | M.mulClass ξ y = TotalH.comp (TotalH.map (abTensor S) ξ) |
| 388 | (mapThenComp (abTensor.flip (tateModule g)) M.tateAction.toTotalH y) := |
| 389 | rfl |
| 390 | |
| 391 | /-- The product is natural in the coefficient. Let φ : C' ⥤ C, K a coefficient along g (an ℓ-torsion |
| 392 | functor with Zariski descent, `TorsionCoeff`) and M' one along φ ⋙ g, and let S have flat values. |
| 393 | Let y be a class in total Ext(S, K), ξ one in total Ext(P, 𝕋) (𝕋 the Tate module) and T one in total |
| 394 | Ext(K∘φ, M'). Restricting the product y · ξ ∈ total Ext(S ⊗ P, K) along φ and composing with T gives |
| 395 | the product of (y restricted, then T) with ξ restricted. -/ |
| 396 | lemma TorsionCoeff.mulClass_naturality [HasFlatValues S] (ξ : TotalH P (tateModule g)) |
| 397 | (y : TotalH S K.functor) : |
| 398 | mapThenComp (restrictAlong φ) T (K.mulClass ξ y) = |
| 399 | M'.mulClass (S := φ ⋙ S) (P := φ ⋙ P) (TotalH.map (restrictAlong φ) ξ) |
| 400 | (mapThenComp (restrictAlong φ) T y) := by |
| 401 | -- Both sides expand to the product of S ⊗ ξ, y ⊗ 𝕋, `T` ⊗ 𝕋 and the action μ (𝕋 the Tate |
| 402 | -- module): restriction along φ and tensoring with 𝕋 are multiplicative, and `T` commutes with μ. |
| 403 | -- Restricting along φ and tensoring commute, as the two composite functors agree by definition. |
| 404 | have h_ξ : TotalH.map (restrictAlong φ) (TotalH.map (abTensor.obj S) ξ) = |
| 405 | TotalH.map (abTensor.obj (φ ⋙ S)) (TotalH.map (restrictAlong φ) ξ) := by |
| 406 | rw [TotalH.map_map, TotalH.map_map] |
| 407 | rfl |
| 408 | have h_y : TotalH.map (restrictAlong φ) (TotalH.map (abTensor.flip.obj (tateModule g)) y) = |
| 409 | TotalH.map (abTensor.flip.obj (tateModule (φ ⋙ g))) (TotalH.map (restrictAlong φ) y) := by |
| 410 | rw [TotalH.map_map, TotalH.map_map] |
| 411 | rfl |
| 412 | have h_step1 : mapThenComp (restrictAlong φ) T (K.mulClass ξ y) = |
| 413 | TotalH.comp (TotalH.map (abTensor.obj (φ ⋙ S)) (TotalH.map (restrictAlong φ) ξ)) |
| 414 | (TotalH.comp |
| 415 | (TotalH.map (abTensor.flip.obj (tateModule (φ ⋙ g))) (TotalH.map (restrictAlong φ) y)) |
| 416 | (TotalH.comp (TotalH.map (abTensor.flip.obj (tateModule (φ ⋙ g))) T) |
| 417 | M'.tateAction.toTotalH)) := |
| 418 | ((map_comp_assoc (restrictAlong φ) T).trans |
| 419 | (congrArg _ (map_comp_assoc (restrictAlong φ) T))).trans |
| 420 | (congrArg₂ (fun a b ↦ TotalH.comp a b) h_ξ |
| 421 | (congrArg₂ (fun a b ↦ TotalH.comp a b) h_y (K.tateAction_comm φ M' T))) |
| 422 | exact h_step1.trans |
| 423 | (congrArg _ |
| 424 | (map_comp_assoc (abTensor.flip.obj (tateModule (φ ⋙ g))) M'.tateAction.toTotalH).symm) |
| 425 | |
| 426 | /-- Let `C` be a category, `A` a commutative ring in which a prime `ℓ` is invertible |
| 427 | (`InvertsPrime A ℓ`), `g : C ⥤ TestOver A` a functor, and `Θ : Theory g` a theory along `g` (an |
| 428 | `ℓ`-torsion coefficient `F = Θ.functor` with Zariski descent that behaves well on closed loci). Let |
| 429 | `J` be a compatible family of ideals `J_c` of the rings `g(c)`, for `c` in `C`, and let |
| 430 | `U = relFreeAb J.topLocus` (`ℤ` modulo `ℤ[V]`, where `V` is the locus where `J` is the unit ideal). |
| 431 | For every class `ξ` in `Ext²(U, 𝕋)` (where `𝕋 = tateModule g` is the Tate module), there exists a |
| 432 | class `v` in total `Ext(F_J ⊗ U, F)` (where `F_J = J.zerosCoeff F`) such that for every functor |
| 433 | `N : AbFunctor C` with flat values and every class `z` in total `Ext(N, F)`, the product |
| 434 | `Θ.mulClass ξ.toTotalH z` equals the Yoneda composite of `(J.toZerosCoeff F ∘ z) ⊗ U` with `v`. -/ |
| 435 | private lemma Theory.exists_mulClass_eq_comp_toZerosCoeff (Θ : Theory g) |
| 436 | (J : IdealFamily (ringOf g)) (ξ : H (relFreeAb J.topLocus) (tateModule g) 2) : |
| 437 | ∃ v : TotalH ((abTensor.flip.obj (relFreeAb J.topLocus)).obj (J.zerosCoeff Θ.functor)) |
| 438 | Θ.functor, |
| 439 | ∀ (N : AbFunctor C) [HasFlatValues N] (z : TotalH N Θ.functor), |
| 440 | Θ.mulClass ξ.toTotalH z = |
| 441 | TotalH.comp (.map (abTensor.flip.obj (relFreeAb J.topLocus)) |
| 442 | (z.comp (.homClass (J.toZerosCoeff Θ.functor)))) v := by |
| 443 | let Φ : AbFunctor C ⥤ AbFunctor C := abTensor.flip.obj (relFreeAb J.topLocus) |
| 444 | -- By `exists_isTensorClass`, a class w from F ⊗ U to F ⊗ 𝕋 (𝕋 the Tate module) has |
| 445 | -- z ∪ ξ = (z ⊗ U, then w). |
| 446 | obtain ⟨w, hw⟩ : |
| 447 | ∃ w : TotalH (Φ.obj Θ.functor) ((abTensor.flip.obj (tateModule g)).obj Θ.functor), |
| 448 | ∀ (S : AbFunctor C) [HasFlatValues S] (z : TotalH S Θ.functor), |
| 449 | TotalH.comp (.map Φ z) w = z.cup ξ.toTotalH := by |
| 450 | obtain ⟨family, h_family⟩ := exists_isTensorClass ξ |
| 451 | refine ⟨(family C (𝟭 C) Θ.functor).toTotalH, fun S _ z ↦ ?_⟩ |
| 452 | -- for S with flat values the class of the family is S ⊗ ξ |
| 453 | have h_flat : (family C (𝟭 C) S).toTotalH = TotalH.map (abTensor.obj S) ξ.toTotalH := |
| 454 | (h_family.eq_of_flat C (𝟭 C) S).trans (congrArg (TotalH.map (abTensor.obj S)) TotalH.map_id) |
| 455 | have h_comm := h_family.comm C (𝟭 C) S Θ.functor z |
| 456 | rw [h_flat] at h_comm |
| 457 | exact h_comm |
| 458 | -- The sections of ker (F → F_J) ⊗ U are locally zero: locally s dies, or J is the unit ideal |
| 459 | -- and then U is zero. |
| 460 | have h_loc (c : C) (t : Φ (kerComplex (J.toZerosCoeff Θ.functor)).X₁ c) : |
| 461 | t ∈ locallyZero Θ.functor _ c := by |
| 462 | refine t.inductionOn (fun s r ↦ ?_) fun x y hx hy ↦ add_mem hx hy |
| 463 | refine (Θ.zariski_descent (Θ.isZariskiLocallyTop_ker_toZerosCoeff J)).of_preimage_le |
| 464 | (pointMap s) fun b f hf ↦ ?_ |
| 465 | change (kerComplex (J.toZerosCoeff Θ.functor)).X₁.map f.down s ⊗ₜ[ℤ] |
| 466 | (relFreeAb J.topLocus).map f.down r = 0 |
| 467 | rcases hf with (hs : (kerComplex (J.toZerosCoeff Θ.functor)).X₁.map f.down s = 0) | hb |
| 468 | · -- s dies along f |
| 469 | rw [hs, zero_tmul] |
| 470 | · -- J is the unit ideal at b, where the relative chains U vanish |
| 471 | have h_r : (relFreeAb J.topLocus).map f.down r = 0 := |
| 472 | AddSubgroup.mem_bot.mp (relFreeAb.mem_of_mk_mem ⊥ (fun _ ↦ relFreeAb.mk_eq_zero hb) _) |
| 473 | rw [h_r, tmul_zero] |
| 474 | -- Hence F ⊗ U → F_J ⊗ U is an equivalence for F, and the class (w, then the action) lifts to v. |
| 475 | have h_eqv : IsCohomEquiv Θ.functor ((kerComplex (J.toZerosCoeff Θ.functor)).map Φ).g := |
| 476 | isCohomEquiv_quotient_of_acyclic |
| 477 | ((kerComplex_shortExact fun _ ↦ Quot.mk_surjective).map_of_exact Φ) |
| 478 | (cohomology_eq_zero_of_locallyZero h_loc) |
| 479 | obtain ⟨v, hv⟩ : ∃ v : TotalH (Φ.obj (J.zerosCoeff Θ.functor)) Θ.functor, |
| 480 | pullbackAlong (Φ.map (J.toZerosCoeff Θ.functor)) v = w.comp Θ.tateAction.toTotalH := |
| 481 | h_eqv.bijective_pullbackAlong.surjective (w.comp Θ.tateAction.toTotalH) |
| 482 | refine ⟨v, fun N _ z ↦ ?_⟩ |
| 483 | rw [map_comp_assoc, map_homClass, hv] |
| 484 | exact (TotalH.comp_assoc_of_sq (hw N z) _).symm |
| 485 | |
| 486 | /-- Let Θ be a theory along g (an ℓ-torsion coefficient F = Θ.functor with Zariski descent that |
| 487 | behaves well on closed loci). Let J be a compatible family of ideals J_c of the rings g(c), and |
| 488 | U = `relFreeAb J.topLocus` (ℤ modulo ℤ[V], V the locus where J is the unit ideal). Let ξ be a class |
| 489 | in Ext²(U, 𝕋), 𝕋 the Tate module. If a, a' : S' → S, between functors with flat values, agree at |
| 490 | every c with J_c = 0, then (a^*y) · ξ = (a' ⊗ U)^*(y · ξ) for every class y in total Ext(S, F). Here |
| 491 | y · ξ in total Ext(S ⊗ U, F) is the Yoneda composite of S ⊗ ξ, y ⊗ 𝕋 and the action of 𝕋 on F. -/ |
| 492 | lemma Theory.mulClass_congr_of_eq_on_zeros [HasFlatValues S] [HasFlatValues S'] (Θ : Theory g) |
| 493 | (J : IdealFamily (ringOf g)) (ξ : H (relFreeAb J.topLocus) (tateModule g) 2) |
| 494 | {a a' : S' ⟶ S} (h_agree : ∀ c : C, J.ideal c = ⊥ → a c = a' c) (y : TotalH S Θ.functor) : |
| 495 | Θ.mulClass ξ.toTotalH (pullbackAlong a y) = |
| 496 | pullbackAlong (abTensor.map a' (relFreeAb J.topLocus)) (Θ.mulClass ξ.toTotalH y) := by |
| 497 | -- The product z · ξ is z ⊗ U, then F ⊗ U → F_J ⊗ U, then one class v that depends only on ξ |
| 498 | -- (`Theory.exists_mulClass_eq_comp_toZerosCoeff`); here F = `Θ.functor`, |
| 499 | -- F_J = `J.zerosCoeff Θ.functor` and U = `relFreeAb J.topLocus`. So z · ξ depends only on the |
| 500 | -- image of z with coefficients F_J, and there the pull-backs along a and a' agree. |
| 501 | let Φ : AbFunctor C ⥤ AbFunctor C := abTensor.flip.obj (relFreeAb J.topLocus) |
| 502 | obtain ⟨v, h_dot⟩ : |
| 503 | ∃ v : TotalH (Φ.obj (J.zerosCoeff Θ.functor)) Θ.functor, |
| 504 | ∀ (N : AbFunctor C) [HasFlatValues N] (z : TotalH N Θ.functor), |
| 505 | Θ.mulClass ξ.toTotalH z = |
| 506 | TotalH.comp (.map Φ (z.comp (.homClass (J.toZerosCoeff Θ.functor)))) v := |
| 507 | Θ.exists_mulClass_eq_comp_toZerosCoeff J ξ |
| 508 | -- The inclusion of ker (a - a') is bijective where J = 0, a dense locus for F_J, and it |
| 509 | -- equalizes a and a'. |
| 510 | have h_ker : IsCohomEquiv (J.zerosCoeff Θ.functor) (kerComplex (a - a')).f := |
| 511 | (Θ.isCohomDense_botLocus J).isCohomEquiv_of_bijective_on fun (c : C) (hc : J.ideal c = ⊥) ↦ by |
| 512 | have h_mem (x : S' c) : x ∈ ((a - a').app c).hom.ker := by simp [h_agree c hc] |
| 513 | exact ⟨Subtype.val_injective, fun x ↦ ⟨⟨x, h_mem x⟩, rfl⟩⟩ |
| 514 | -- the inclusion ι of ker (a - a') has ι ≫ a = ι ≫ a' |
| 515 | let ι : (kerComplex (a - a')).X₁ ⟶ S' := (kerComplex (a - a')).f |
| 516 | have h_equalizes : ι ≫ a = ι ≫ a' := |
| 517 | sub_eq_zero.mp ((Preadditive.comp_sub ι a a').symm.trans (kerComplex (a - a')).zero) |
| 518 | have h_classes : |
| 519 | TotalH.comp (homClass ι) (homClass a) = TotalH.comp (homClass ι) (homClass a') := by |
| 520 | rw [← homClass_comp, ← homClass_comp, h_equalizes] |
| 521 | have h_pull (z : TotalH S (J.zerosCoeff Θ.functor)) : pullbackAlong a z = pullbackAlong a' z := |
| 522 | h_ker.bijective_pullbackAlong.injective (TotalH.comp_assoc_of_sq h_classes z) |
| 523 | calc Θ.mulClass ξ.toTotalH (pullbackAlong a y) |
| 524 | = TotalH.comp |
| 525 | (TotalH.map Φ (pullbackAlong a (y.comp (homClass (J.toZerosCoeff Θ.functor))))) v := by |
| 526 | rw [h_dot, TotalH.comp_assoc] |
| 527 | _ = TotalH.comp |
| 528 | (TotalH.map Φ (pullbackAlong a' (y.comp (homClass (J.toZerosCoeff Θ.functor))))) v := by |
| 529 | rw [h_pull] |
| 530 | _ = pullbackAlong (Φ.map a') |
| 531 | (TotalH.comp (TotalH.map Φ (y.comp (homClass (J.toZerosCoeff Θ.functor)))) v) := by |
| 532 | rw [map_comp_assoc, map_homClass] |
| 533 | _ = pullbackAlong (abTensor.map a' (relFreeAb J.topLocus)) (Θ.mulClass ξ.toTotalH y) := by |
| 534 | -- `Φ.map a'` is a' ⊗ U by definition; the two sides differ only in how this is written |
| 535 | rw [← h_dot] |
| 536 | rfl |
| 537 | |
| 538 | end TateAction |
| 539 | |
| 540 | /-! |
| 541 | ## The projective line, the class η and the line formula |
| 542 | |
| 543 | The projective line `New.Variety.projLine` sends a ring `B` to the points `(1 + u v : v)`. Along a |
| 544 | ring map the chosen rows change by units, and these units form a cocycle from `ℤ[ℙ¹]` to `𝔾_m` |
| 545 | (`New.Variety.projLine.cocycle`), the cocycle of `O(1)`. For a coefficient `M`, the product with `η` |
| 546 | at a point is `New.Variety.TorsionCoeff.etaAt`; the projective line formula |
| 547 | (`New.Variety.TorsionCoeff.HasLineFormula`) says that `1` and `η` are a basis over the cohomology of |
| 548 | every `S`. |
| 549 | |
| 550 | Here `g : C ⥤ TestOver A` is a functor to tests over `A`, `New.Variety.ringOf g` gives the ring of |
| 551 | `g c`, `New.Variety.freeAb` is `Y ↦ ℤ[Y]`, and `New.Variety.H N F n` is `Extⁿ(N, F)` of functors |
| 552 | `C ⥤ Ab`. |
| 553 | -/ |
| 554 | |
| 555 | section LineChernClass |
| 556 | |
| 557 | open CategoryTheory AddCommGrpCat Abelian TotalH FreeAddCommGroup Ideal |
| 558 | |
| 559 | variable {C C' : Type _} [Category C] [Category C'] {ℓ : ℕ} {A : Type} [CommRing A] |
| 560 | (g : C ⥤ TestOver A) |
| 561 | |
| 562 | /-! ### The projective line and the cocycle of `O(1)` -/ |
| 563 | |
| 564 | /-- The relation on pairs `(u, v)` whose classes are the points of the projective line. The pair |
| 565 | `(u, v)` stands for the row `(1 + u v, v)`; two pairs are related if the determinant of their rows |
| 566 | is zero. This gives the points `(a : v)` with a representative such that `a ≡ 1 mod v`. -/ |
| 567 | def projLineSetoid (B : Type) [CommRing.{0} B] : Setoid (B × B) where |
| 568 | r (x y : B × B) := (1 + x.1 * x.2) * y.2 = x.2 * (1 + y.1 * y.2) |
| 569 | iseqv := by grind [Equivalence.mk] |
| 570 | |
| 571 | /-- The projective line as a functor (`PointFunctor`) from commutative rings (`CommRingCat`) to |
| 572 | `Type 1`: B goes to the set of points (1 + uv : v) with u, v in B, that is, pairs (u, v) modulo |
| 573 | `New.Variety.projLineSetoid`. -/ |
| 574 | def projLine : PointFunctor where |
| 575 | obj B := ULift (Quotient (projLineSetoid B)) |
| 576 | map f := |
| 577 | ↾fun q ↦ ⟨q.down.map (Prod.map f.hom f.hom) fun x y |
| 578 | (h : (1 + x.1 * x.2) * y.2 = x.2 * (1 + y.1 * y.2)) ↦ |
| 579 | show (1 + f.hom x.1 * f.hom x.2) * f.hom y.2 = f.hom x.2 * (1 + f.hom y.1 * f.hom y.2) by |
| 580 | simpa using congrArg f.hom h⟩ |
| 581 | map_id _ := by |
| 582 | ext ⟨⟨⟩⟩ |
| 583 | rfl |
| 584 | map_comp _ _ := by |
| 585 | ext ⟨⟨⟩⟩ |
| 586 | rfl |
| 587 | |
| 588 | /-- The product of copies of the projective line indexed by `ι`. -/ |
| 589 | def projLinePow (ι : Type) : PointFunctor where |
| 590 | obj B := ι → projLine B |
| 591 | map f := ↾fun q i ↦ projLine.map f (q i) |
| 592 | |
| 593 | /-- For a functor of points X, the projection (c, x) ↦ c from pairs of a test c over A and |
| 594 | x ∈ X(c) to tests over A. -/ |
| 595 | abbrev testOfPoint (A : Type) [CommRing A] (X : CommRingCat ⥤ Type 1) : |
| 596 | (ringOf (𝟭 (TestOver A)) ⋙ X).Elements ⥤ TestOver A := |
| 597 | elementsProj (ringOf (𝟭 (TestOver A)) ⋙ X) ⋙ 𝟭 (TestOver A) |
| 598 | |
| 599 | /-- The projective line over the tests of `g`. -/ |
| 600 | abbrev projLineAlong : C ⥤ Type 1 := ringOf g ⋙ projLine |
| 601 | |
| 602 | namespace projLine |
| 603 | |
| 604 | variable {B B' : CommRingCat} (f : B ⟶ B') (q : projLine B) |
| 605 | |
| 606 | /-- The homogeneous coordinates `(1 + u v, v)` of a point, for a chosen representative `(u, v)`. -/ |
| 607 | def unimodularRow : B × B := (1 + q.down.out.1 * q.down.out.2, q.down.out.2) |
| 608 | |
| 609 | /-- The row `(1 + u v, v)` of a pair `x = (u, v)` is a unit times the row of its point. -/ |
| 610 | lemma exists_unit_smul_unimodularRow (x : B × B) : |
| 611 | ∃ ε : Bˣ, (1 + x.fst * x.snd, x.snd) = ε.val • unimodularRow ⟨⟦x⟧⟩ := by |
| 612 | -- The chosen representative `y` of the class of `x` has a row of determinant zero with that of |
| 613 | -- `x`. Writing `x = (u, v)` and `y = (u', v')`, the unit is `1 + (u - u') v`, with inverse |
| 614 | -- `1 + (u' - u) v'`. |
| 615 | let y : B × B := (⟦x⟧ : Quotient (projLineSetoid B)).out |
| 616 | have h_det : (1 + y.fst * y.snd) * x.snd = y.snd * (1 + x.fst * x.snd) := |
| 617 | Quotient.mk_out (s := projLineSetoid B) x |
| 618 | have h_mul_inv : (1 + (x.fst - y.fst) * x.snd) * (1 + (y.fst - x.fst) * y.snd) = 1 := by |
| 619 | linear_combination (x.fst - y.fst) * h_det |
| 620 | have h_fst : 1 + x.fst * x.snd = (1 + (x.fst - y.fst) * x.snd) * (1 + y.fst * y.snd) := by |
| 621 | linear_combination y.fst * h_det |
| 622 | have h_snd : x.snd = (1 + (x.fst - y.fst) * x.snd) * y.snd := by |
| 623 | linear_combination h_det |
| 624 | have h_row : unimodularRow (⟨⟦x⟧⟩ : projLine B) = (1 + y.fst * y.snd, y.snd) := rfl |
| 625 | refine ⟨Units.mkOfMulEqOne _ _ h_mul_inv, ?_⟩ |
| 626 | simp [h_row, ← h_fst, ← h_snd] |
| 627 | |
| 628 | /-- Unit multiples of chosen rows determine both the unit and the point. -/ |
| 629 | lemma eq_and_eq_of_smul_unimodularRow_eq {q q' : projLine.obj B} {a b : Bˣ} |
| 630 | (h_smul : a.val • unimodularRow (B := B) q = b.val • unimodularRow q') : |
| 631 | a = b ∧ q = q' := by |
| 632 | -- Compare the coordinates of the rows of the chosen representatives of `q` and `q'`. |
| 633 | obtain ⟨h_fst, h_snd⟩ : |
| 634 | a.val * (1 + q.down.out.fst * q.down.out.snd) = |
| 635 | b.val * (1 + q'.down.out.fst * q'.down.out.snd) ∧ |
| 636 | a.val * q.down.out.snd = b.val * q'.down.out.snd := by |
| 637 | simpa only [unimodularRow, Prod.smul_mk, smul_eq_mul, Prod.mk.injEq] using h_smul |
| 638 | -- Cross-multiplying the two coordinates gives `a` times the relation that defines the line. |
| 639 | have h_rel : (1 + q.down.out.fst * q.down.out.snd) * q'.down.out.snd = |
| 640 | q.down.out.snd * (1 + q'.down.out.fst * q'.down.out.snd) := by |
| 641 | apply a.mul_right_inj.mp |
| 642 | linear_combination q'.down.out.snd * h_fst - (1 + q'.down.out.fst * q'.down.out.snd) * h_snd |
| 643 | obtain rfl : q = q' := ULift.down_injective (Quotient.out_equiv_out.mp h_rel) |
| 644 | -- The coordinates `1 + u v` and `v` of the row of a representative `(u, v)` generate the unit |
| 645 | -- ideal, so `a = b`. |
| 646 | exact ⟨Units.ext (by linear_combination h_fst - q.down.out.fst * h_snd), rfl⟩ |
| 647 | |
| 648 | /-- The unit by which `f` rescales the row of a point (`unimodularRow_map`), extended additively |
| 649 | to the free abelian group on the points. -/ |
| 650 | def rowUnit : FreeAddCommGroup (projLine B) →+ Gm B' := |
| 651 | lift fun q : projLine B ↦ ⟨(exists_unit_smul_unimodularRow (q.down.out.map f f)).choose⟩ |
| 652 | |
| 653 | /-- The image under `f` of a point `q` is the class of the image of its chosen representative. -/ |
| 654 | lemma map_eq_mk_map_out (f : B ⟶ B') (q : projLine B) : |
| 655 | projLine.map f q = ⟨⟦q.down.out.map f f⟧⟩ := by |
| 656 | exact congrArg (projLine.map f) (congrArg ULift.up q.down.out_eq.symm : q = ⟨⟦q.down.out⟧⟩) |
| 657 | |
| 658 | /-- The image under `f` of the chosen row of `q` is the unit `New.Variety.projLine.rowUnit` times |
| 659 | the chosen row of the image point of `q`. -/ |
| 660 | lemma unimodularRow_map : |
| 661 | (unimodularRow q).map f f = |
| 662 | (rowUnit f (FreeAddCommGroup.of q)).down.toMul.val • unimodularRow (projLine.map f q) := by |
| 663 | -- `rowUnit f q` is the unit chosen for the image of the representative of `q`. |
| 664 | have h_unit : (rowUnit f (FreeAddCommGroup.of q)).down.toMul = |
| 665 | (exists_unit_smul_unimodularRow (q.down.out.map f f)).choose := |
| 666 | congrArg (fun u : Gm B' ↦ u.down.toMul) (lift_apply_of _ q) |
| 667 | rw [h_unit, map_eq_mk_map_out, ← (exists_unit_smul_unimodularRow _).choose_spec] |
| 668 | simp [unimodularRow] |
| 669 | |
| 670 | /-- If `f` maps `a` times the row of `q` to `b` times a row, then `b` is the product of `f a` and |
| 671 | the unit `rowUnit f q`. -/ |
| 672 | lemma add_rowUnit_eq {q' : projLine B'} {a : Bˣ} {b : B'ˣ} |
| 673 | (h_row : (a.val • unimodularRow q).map f f = b.val • unimodularRow q') : |
| 674 | Gm.map f ⟨a⟩ + rowUnit f (FreeAddCommGroup.of q) = ⟨b⟩ := by |
| 675 | -- Write the image of `a • unimodularRow q` in two ways as a unit times a row; the unit is unique. |
| 676 | have h_smul : (Gm.map f ⟨a⟩ + rowUnit f (FreeAddCommGroup.of q)).down.toMul.val • |
| 677 | unimodularRow (projLine.map f q) = b.val • unimodularRow q' := by |
| 678 | change (f a.val * (rowUnit f (FreeAddCommGroup.of q)).down.toMul.val) • |
| 679 | unimodularRow (projLine.map f q) = _ |
| 680 | rw [mul_smul, ← unimodularRow_map, ← h_row] |
| 681 | ext <;> simp |
| 682 | exact Gm.ext.mpr (congrArg Units.val (eq_and_eq_of_smul_unimodularRow_eq h_smul).left) |
| 683 | |
| 684 | /-- The point (x : 1) of the projective line over B. -/ |
| 685 | def affinePt (x : B) : projLine B := ⟨⟦(x - 1, 1)⟧⟩ |
| 686 | |
| 687 | lemma map_affinePt (x : B) : projLine.map f (affinePt x) = affinePt (f x) := by |
| 688 | change (⟨⟦(f (x - 1), f 1)⟧⟩ : projLine B') = affinePt (f x) |
| 689 | simp [affinePt] |
| 690 | |
| 691 | /-- The first coordinate of the row of the point `(x : 1)` is a unit exactly when `x` is a unit. -/ |
| 692 | lemma isUnit_unimodularRow_affinePt_iff {x : B} : |
| 693 | IsUnit (unimodularRow (affinePt x)).fst ↔ IsUnit x := by |
| 694 | obtain ⟨ε, h_ε⟩ := exists_unit_smul_unimodularRow (x - 1, 1) |
| 695 | have h_fst : x = ε.val * (unimodularRow (affinePt x)).fst := by |
| 696 | simpa [affinePt] using congrArg Prod.fst h_ε |
| 697 | rw [← ε.isUnit_units_mul, ← h_fst] |
| 698 | |
| 699 | lemma affinePt_injective : Function.Injective (affinePt (B := B)) := by |
| 700 | intro x y |
| 701 | simp [affinePt, projLine, projLineSetoid, Quotient.eq] |
| 702 | |
| 703 | /-- If the image of the row of `q` is proportional to `(x, 1)`, then `q` maps to `(x : 1)`. -/ |
| 704 | lemma affinePt_eq_map (x : B') |
| 705 | (h_ratio : f (unimodularRow q).fst = f (unimodularRow q).snd * x) : |
| 706 | affinePt x = projLine.map f q := by |
| 707 | -- The pair `(x - 1, 1)` and the image of the representative of `q` have proportional rows. |
| 708 | have h_rel : (projLineSetoid B').r (x - 1, 1) (q.down.out.map f f) := by |
| 709 | simp only [unimodularRow, map_add, map_mul, map_one] at h_ratio |
| 710 | change (1 + (x - 1) * 1) * f q.down.out.snd = 1 * (1 + f q.down.out.fst * f q.down.out.snd) |
| 711 | linear_combination -h_ratio |
| 712 | simpa only [map_eq_mk_map_out] using! congrArg ULift.up (Quotient.sound h_rel) |
| 713 | |
| 714 | /-- If `f` sends the first coordinate of the row of `q` to a unit, then the row of the image point |
| 715 | also has a unit as first coordinate. -/ |
| 716 | lemma isUnit_fst_unimodularRow_map (h_unit : IsUnit (f (unimodularRow q).fst)) : |
| 717 | IsUnit (unimodularRow (projLine.map f q)).fst := by |
| 718 | rw [show f (unimodularRow q).fst = (rowUnit f (FreeAddCommGroup.of q)).down.toMul.val * |
| 719 | (unimodularRow (projLine.map f q)).fst from congrArg Prod.fst (unimodularRow_map f q)] |
| 720 | at h_unit |
| 721 | exact (IsUnit.mul_iff.mp h_unit).right |
| 722 | |
| 723 | /-- The complement of `(0 : 1)`: the points whose row has a unit as first coordinate. -/ |
| 724 | def affineChart : Subfunctor projLine where |
| 725 | obj _ := {q | IsUnit (unimodularRow q).1} |
| 726 | map f q h_unit := isUnit_fst_unimodularRow_map f q (IsUnit.map f.hom h_unit) |
| 727 | |
| 728 | /-- The section of the projective line along g whose value at every object c is the base point |
| 729 | (1 : 1) over the ring g(c). -/ |
| 730 | def basePt : (projLineAlong g).sections := |
| 731 | ⟨fun _ : C ↦ affinePt 1, fun {c d : C} (_ : c ⟶ d) ↦ by simp [map_affinePt]⟩ |
| 732 | |
| 733 | /-- The 1-cocycle from ℤ[P¹] to G_m along g sending a morphism f and a point q to the transition |
| 734 | unit `New.Variety.projLine.rowUnit` of the chosen rows. -/ |
| 735 | def cocycle : Cocycle (freeAb (projLineAlong g)) (ringOf g ⋙ Gm) where |
| 736 | component f := ofHom (rowUnit ((ringOf g).map f)) |
| 737 | cocycle_comp f h := by |
| 738 | -- Both sides are the unit by which `unimodularRow` changes along the composite map. |
| 739 | ext q : 2 |
| 740 | symm |
| 741 | let F := (ringOf g).map f |
| 742 | let H := (ringOf g).map h |
| 743 | let q' := projLine.map F q |
| 744 | change Gm.map H (rowUnit F (.of q)) + rowUnit H (.of q') = |
| 745 | rowUnit ((ringOf g).map (f ≫ h)) (.of q) |
| 746 | let K := (ringOf g).map (f ≫ h) |
| 747 | apply add_rowUnit_eq (q' := projLine.map K q) |
| 748 | change ((rowUnit F (.of q)).down.toMul.val • unimodularRow (projLine.map F q)).map H H = |
| 749 | (rowUnit K (.of q)).down.toMul.val • unimodularRow (projLine.map K q) |
| 750 | rw [← unimodularRow_map F q, ← unimodularRow_map K q] |
| 751 | ext <;> simp [F, H, K] |
| 752 | |
| 753 | /-- The determinant `a v' - v a'` of the rows `(a, v)` and `(a', v')` of two points `p`, `p'` of the |
| 754 | projective line. -/ |
| 755 | private def rowDet (p p' : projLine B) : B := |
| 756 | (unimodularRow p).fst * (unimodularRow p').snd - (unimodularRow p).snd * (unimodularRow p').fst |
| 757 | |
| 758 | /-- A ring map `f` sends the determinant of the rows of `p` and `p'` to the value of `rowUnit f` at |
| 759 | `p + p'` times the determinant of the rows of the image points. -/ |
| 760 | private lemma map_rowDet (p p' : projLine B) : |
| 761 | f (rowDet p p') = (rowUnit f (.of p + .of p')).down.toMul.val * |
| 762 | rowDet (projLine.map f p) (projLine.map f p') := by |
| 763 | have h_fst (r : projLine B) : f (unimodularRow r).fst = |
| 764 | (rowUnit f (.of r)).down.toMul.val * (unimodularRow (projLine.map f r)).fst := |
| 765 | congrArg Prod.fst (unimodularRow_map f r) |
| 766 | have h_snd (r : projLine B) : f (unimodularRow r).snd = |
| 767 | (rowUnit f (.of r)).down.toMul.val * (unimodularRow (projLine.map f r)).snd := |
| 768 | congrArg Prod.snd (unimodularRow_map f r) |
| 769 | -- The sum in `Gm` is the product of the units. |
| 770 | have h_add : (rowUnit f (.of p + .of p')).down.toMul.val = |
| 771 | (rowUnit f (.of p)).down.toMul.val * (rowUnit f (.of p')).down.toMul.val := by |
| 772 | rw [map_add] |
| 773 | rfl |
| 774 | simp only [rowDet, map_sub, map_mul, h_fst, h_snd, h_add] |
| 775 | ring |
| 776 | |
| 777 | /-- Two points of the projective line are equal exactly when their rows have determinant zero. -/ |
| 778 | lemma eq_iff_unimodularRow_fst_mul_snd_eq {p p' : projLine B} : |
| 779 | p = p' ↔ (unimodularRow p).fst * (unimodularRow p').snd = |
| 780 | (unimodularRow p).snd * (unimodularRow p').fst := by |
| 781 | refine ⟨?_, fun h_det ↦ ULift.down_injective (Quotient.out_equiv_out.mp h_det)⟩ |
| 782 | rintro rfl |
| 783 | exact mul_comm _ _ |
| 784 | |
| 785 | end projLine |
| 786 | |
| 787 | open projLine |
| 788 | |
| 789 | /-! ### The class `η` -/ |
| 790 | |
| 791 | /-- The class `η` in `Ext²(ℤ[ℙ¹], T)`, with `T` the Tate module: the product of the extension class |
| 792 | of the cocycle of `O(1)` and the extension class of the Kummer sequence. -/ |
| 793 | @[irreducible] |
| 794 | def etaClass : H (freeAb (projLineAlong g)) (tateModule g) 2 := |
| 795 | (cocycle g).shortExact_extension.extClass.comp (shortExact_kummerSeq g).extClass rfl |
| 796 | |
| 797 | /-! ### The product with `η` on a coefficient, and the line formula -/ |
| 798 | |
| 799 | /-- A family of classes in `Ext²(S ⊗ ℤ[ℙ¹], S ⊗ T)`, with `T` the Tate module, one for each functor |
| 800 | `φ` to tests over `A` and each functor `S` from `D` to abelian groups, not only torsion |
| 801 | coefficients. It is chosen by `exists_isTensorClass` for the class `η` on the category of all tests |
| 802 | over `A`. -/ |
| 803 | abbrev TorsionCoeff.etaTensor (D : Type 1) [Category.{0} D] (φ : D ⥤ TestOver A) (S : AbFunctor D) : |
| 804 | H (abTensor.flip (φ ⋙ freeAb (projLineAlong (𝟭 (TestOver A)))) S) |
| 805 | (abTensor.flip (φ ⋙ tateModule (𝟭 (TestOver A))) S) 2 := |
| 806 | (exists_isTensorClass (etaClass (𝟭 (TestOver A)))).choose D φ S |
| 807 | |
| 808 | /-- The family `etaTensor` tensors the class `η` on the category of all tests over `A` with every |
| 809 | coefficient. -/ |
| 810 | lemma TorsionCoeff.isTensorClass_etaTensor : |
| 811 | IsTensorClass (etaClass (𝟭 (TestOver A))) TorsionCoeff.etaTensor := |
| 812 | (exists_isTensorClass (etaClass (𝟭 (TestOver A)))).choose_spec |
| 813 | |
| 814 | /-- The class `S ⊗ η` in `Ext²(S ⊗ ℤ[ℙ¹], S ⊗ T)`, defined for every coefficient `S`, flat or not. |
| 815 | It is used through `etaTensorClass_naturality`, `etaTensorClass_of_hasFlatValues` and |
| 816 | `map_restrictAlong_etaTensorClass`. -/ |
| 817 | def etaTensorClass (S : AbFunctor C) : |
| 818 | H (abTensor.flip (freeAb (projLineAlong g)) S) (abTensor.flip (tateModule g) S) 2 := |
| 819 | TorsionCoeff.etaTensor C g S |
| 820 | |
| 821 | end LineChernClass |
| 822 | |
| 823 | section EtaProduct |
| 824 | |
| 825 | open CategoryTheory AddCommGrpCat Abelian TotalH FreeAddCommGroup Ideal projLine |
| 826 | |
| 827 | variable {C C' : Type _} [Category C] [Category C'] {ℓ : ℕ} {A : Type} [CommRing A] |
| 828 | {g : C ⥤ TestOver A} {S : AbFunctor C} {Y : C ⥤ Type 1} (φ : C' ⥤ C) |
| 829 | |
| 830 | /-- The class `etaTensorClass g S` is natural in the coefficient `S`, for classes of every |
| 831 | degree. -/ |
| 832 | lemma etaTensorClass_naturality {S' : AbFunctor C} (y : TotalH S S') : |
| 833 | comp (map (abTensor.flip (freeAb (projLineAlong g))) y) (etaTensorClass g S').toTotalH = |
| 834 | comp (etaTensorClass g S).toTotalH (map (abTensor.flip (tateModule g)) y) := |
| 835 | TorsionCoeff.isTensorClass_etaTensor.comm C g S S' y |
| 836 | |
| 837 | /-- The class `etaTensorClass g S` is compatible with restriction along a functor `φ`. -/ |
| 838 | lemma map_restrictAlong_etaTensorClass : |
| 839 | map (restrictAlong φ) (etaTensorClass g S).toTotalH = |
| 840 | (etaTensorClass (φ ⋙ g) (φ ⋙ S)).toTotalH := |
| 841 | TorsionCoeff.isTensorClass_etaTensor.restrict C g S C' φ |
| 842 | |
| 843 | /-- A section `q` of `Y` as a map `ℤ[pt] ⟶ ℤ[Y]`. -/ |
| 844 | abbrev freeAbSectionMap (q : Y.sections) : freeAb (onePointFunctor C) ⟶ freeAb Y := |
| 845 | freeAb.map (sectionMap q) |
| 846 | |
| 847 | /-- The class `η` is compatible with restriction along a functor `φ`. -/ |
| 848 | lemma map_restrictAlong_etaClass : |
| 849 | map (restrictAlong φ) (etaClass g).toTotalH = (etaClass (φ ⋙ g)).toTotalH := by |
| 850 | -- Restriction along `φ` is exact, so it maps the product of the extension classes of the cocycle |
| 851 | -- and of the Kummer sequence to the product of the extension classes of the restricted sequences, |
| 852 | -- which are the sequences along `φ ⋙ g`. |
| 853 | have h₁ : (cocycle g).shortExact_extension.extClass.mapExactFunctor (restrictAlong φ) = |
| 854 | (cocycle (φ ⋙ g)).shortExact_extension.extClass := |
| 855 | Ext.mapExactFunctor_extClass (restrictAlong φ) (cocycle g).shortExact_extension |
| 856 | have h₂ : ((shortExact_kummerSeq g).extClass : |
| 857 | H (cocycle g).extension.X₁ (tateModule g) 1).mapExactFunctor (restrictAlong φ) = |
| 858 | (shortExact_kummerSeq (φ ⋙ g)).extClass := |
| 859 | Ext.mapExactFunctor_extClass (restrictAlong φ) (shortExact_kummerSeq g) |
| 860 | rw [TotalH.map_of, etaClass, etaClass] |
| 861 | exact congrArg (DirectSum.of _ 2) <| |
| 862 | (Ext.mapExactFunctor_comp (restrictAlong φ) (cocycle g).shortExact_extension.extClass |
| 863 | ((shortExact_kummerSeq g).extClass : H (cocycle g).extension.X₁ (tateModule g) 1) rfl).trans |
| 864 | (congrArg₂ (fun a b ↦ a.comp b rfl) h₁ h₂) |
| 865 | |
| 866 | /-- If `S` has flat values, then `etaTensorClass g S` is the image of `η` under the exact functor |
| 867 | `S ⊗ -`. -/ |
| 868 | lemma etaTensorClass_of_hasFlatValues [HasFlatValues S] : |
| 869 | (etaTensorClass g S).toTotalH = map (abTensor S) (etaClass g).toTotalH := by |
| 870 | have h_restrict : (etaTensorClass g S).toTotalH = |
| 871 | map (abTensor S) (map (restrictAlong g) (etaClass (𝟭 (TestOver A))).toTotalH) := |
| 872 | TorsionCoeff.isTensorClass_etaTensor.eq_of_flat C g S |
| 873 | rw [h_restrict, map_restrictAlong_etaClass] |
| 874 | -- `g ⋙ 𝟭 _` is `g` by definition |
| 875 | rfl |
| 876 | |
| 877 | /-- If the cocycle of `O(1)`, pulled back along `b`, is the coboundary of a family of units `u`, |
| 878 | then `η` pulls back to zero along `b`. -/ |
| 879 | lemma map_etaClass_eq_zero_of_coboundary (b : freeAb Y ⟶ freeAb (projLineAlong g)) |
| 880 | (u : ∀ c : C, Y c → (ringOf g ⋙ Gm) c) |
| 881 | (h_coboundary : ∀ (c d : C) (f : c ⟶ d) (x : Y c), (ringOf g ⋙ Gm).map f (u c x) = |
| 882 | (cocycle g).component f (b c (FreeAddCommGroup.of x)) + u d (Y.map f x)) : |
| 883 | H.map (tateModule g) b 2 (etaClass g) = 0 := by |
| 884 | -- The units `u` trivialize the cocycle along `b`, so `b` lifts to the middle term of the |
| 885 | -- extension `(cocycle g).extension`, and the extension class dies on the middle term. |
| 886 | let s (c : C) (x : Y c) : (cocycle g).extension.X₂ c := (-u c x, b c (.of x)) |
| 887 | have h_nat (c d : C) (f : c ⟶ d) (x : Y c) : |
| 888 | s d (Y.map f x) = (cocycle g).extension.X₂.map f (s c x) := by |
| 889 | refine Prod.ext ?_ (b.naturality_apply f (.of x)) |
| 890 | change -u d (Y.map f x) = (ringOf g ⋙ Gm).map f (-u c x) + (cocycle g).component f (b c (.of x)) |
| 891 | rw [map_neg, h_coboundary c d f x] |
| 892 | abel |
| 893 | let b' : freeAb Y ⟶ (cocycle g).extension.X₂ := freeAb.desc s h_nat |
| 894 | let g_proj : (cocycle g).extension.X₂ ⟶ freeAb (projLineAlong g) := (cocycle g).extension.g |
| 895 | -- the second coordinate of `b'` is `b` |
| 896 | have h_lift : b = b' ≫ g_proj := freeAb.hom_ext fun c x ↦ by |
| 897 | change b c (.of x) = g_proj c (b' c (.of x)) |
| 898 | rw [freeAb.desc_of] |
| 899 | rfl |
| 900 | -- `etaClass` starts with the extension class of the cocycle, which dies on the middle term. |
| 901 | have h_middle : H.map (tateModule g) g_proj 2 (etaClass g) = 0 := by |
| 902 | rw [etaClass] |
| 903 | exact (cocycle g).shortExact_extension.comp_extClass_assoc |
| 904 | ((shortExact_kummerSeq g).extClass : H (cocycle g).extension.X₁ (tateModule g) 1) rfl |
| 905 | rw [h_lift, H.map_comp] |
| 906 | exact (congrArg (H.map (tateModule g) b' 2) h_middle).trans (map_zero _) |
| 907 | |
| 908 | /-- The class `η` pulls back to zero along a map `b` into the affine chart, where the first |
| 909 | coordinate of the row is a unit. -/ |
| 910 | lemma pullbackAlong_etaClass_eq_zero_of_isUnit (b : Y ⟶ projLineAlong g) |
| 911 | (h_unit : ∀ (c : C) (x : Y c), IsUnit (unimodularRow (b c x)).fst) : |
| 912 | pullbackAlong (freeAb.map b) (etaClass g).toTotalH = 0 := by |
| 913 | -- The first coordinate of the row trivializes the cocycle. |
| 914 | have h_zero : H.map (tateModule g) (freeAb.map b) 2 (etaClass g) = 0 := by |
| 915 | refine map_etaClass_eq_zero_of_coboundary _ (fun c x ↦ ⟨(h_unit c x).unit⟩) |
| 916 | fun c d f x ↦ Gm.ext.mpr ?_ |
| 917 | change (ringOf g).map f (unimodularRow (b c x)).fst = |
| 918 | (rowUnit ((ringOf g).map f) (.of (b c x))).down.toMul.val * |
| 919 | (unimodularRow (b d (Y.map f x))).fst |
| 920 | rw [b.naturality_apply f x] |
| 921 | exact congrArg Prod.fst (unimodularRow_map ((ringOf g).map f) (b c x)) |
| 922 | rw [pullbackAlong_of, h_zero, map_zero] |
| 923 | |
| 924 | /-- For sections `q`, `q'` of the projective line along `g`, the pullback of `η ∈ Ext²(ℤ[ℙ¹], T)` |
| 925 | (`T` the Tate module) along `q + q'` is supported where `q = q'`. That is, there is a family of |
| 926 | ideals `J` such that `q` and `q'` agree where `J` is zero, and the class comes from a class `ξ` |
| 927 | relative to the locus where `J` is the unit ideal. -/ |
| 928 | lemma exists_etaClass_supported_diagonal (q q' : (projLineAlong g).sections) : |
| 929 | ∃ J : IdealFamily (ringOf g), (∀ c : C, J.ideal c = ⊥ → q.val c = q'.val c) ∧ |
| 930 | ∃ ξ : H (relFreeAb J.topLocus) (tateModule g) 2, |
| 931 | pullbackAlong (relFreeAb.π J.topLocus) ξ.toTotalH = |
| 932 | pullbackAlong (freeAbSectionMap q + freeAbSectionMap q') (etaClass g).toTotalH := by |
| 933 | -- Let `J c` be generated by the determinant of the rows of `q c` and `q' c`. Where it is a unit, |
| 934 | -- it trivializes the cocycle along `q + q'`, so the class dies there and is a relative class. |
| 935 | -- A ring map `f` sends the determinant at `c` to a unit times the determinant at `d`. |
| 936 | have h_gen {c d : C} (f : c ⟶ d) : ((ringOf g).map f).hom (rowDet (q.val c) (q'.val c)) = |
| 937 | (rowUnit ((ringOf g).map f) (.of (q.val c) + .of (q'.val c))).down.toMul.val * |
| 938 | rowDet (q.val d) (q'.val d) := by |
| 939 | rw [← q.property f, ← q'.property f] |
| 940 | exact map_rowDet ((ringOf g).map f) (q.val c) (q'.val c) |
| 941 | let J : IdealFamily (ringOf g) := ⟨fun c ↦ span {rowDet (q.val c) (q'.val c)}, fun f ↦ by |
| 942 | let u : ((ringOf g).obj _)ˣ := |
| 943 | (rowUnit ((ringOf g).map f) (.of (q.val _) + .of (q'.val _))).down.toMul |
| 944 | rw [map_span, Set.image_singleton, h_gen f, span_singleton_mul_left_unit u.isUnit]⟩ |
| 945 | refine ⟨J, fun c h_bot ↦ |
| 946 | -- Where `J c` is zero the determinant is zero, so the points agree. |
| 947 | eq_iff_unimodularRow_fst_mul_snd_eq.mpr (sub_eq_zero.mp (span_singleton_eq_bot.mp h_bot)), ?_⟩ |
| 948 | have h_dies : H.map (tateModule g) |
| 949 | (freeAb.map J.topLocus.ι ≫ (freeAbSectionMap q + freeAbSectionMap q')) 2 |
| 950 | (etaClass g) = 0 := |
| 951 | -- The unit at `c` is the determinant, and `f` rescales it by the cocycle (`map_rowDet`). |
| 952 | map_etaClass_eq_zero_of_coboundary _ (fun c x ↦ ⟨(span_singleton_eq_top.mp x.property).unit⟩) |
| 953 | fun c d f x ↦ Gm.ext.mpr (h_gen f) |
| 954 | rw [H.map_comp] at h_dies |
| 955 | -- Exactness at `H² (ℤ[pt], T)` of the sequence of the pair `(pt, J.topLocus)`. |
| 956 | obtain ⟨_, h_exact : ShortComplex.ShortExact _⟩ := relFreeAb.shortExact J.topLocus |
| 957 | obtain ⟨ξ, hξ⟩ : ∃ ξ : H (relFreeAb J.topLocus) (tateModule g) 2, |
| 958 | H.map (tateModule g) (relFreeAb.π J.topLocus) 2 ξ = |
| 959 | H.map (tateModule g) (freeAbSectionMap q + freeAbSectionMap q') 2 (etaClass g) := |
| 960 | Ext.contravariant_sequence_exact₂ h_exact _ _ h_dies |
| 961 | exact ⟨ξ, by rw [pullbackAlong_of, pullbackAlong_of, hξ]⟩ |
| 962 | |
| 963 | namespace TorsionCoeff |
| 964 | |
| 965 | variable [InvertsPrime A ℓ] |
| 966 | (M K : TorsionCoeff g) (M' : TorsionCoeff (φ ⋙ g)) (T : TotalH (φ ⋙ K.functor) M'.functor) |
| 967 | |
| 968 | /-- The product with `η` at `b : ℤ[pt] ⟶ ℤ[ℙ¹]`, an additive map in `b`: the class in `Ext²(M, M)` |
| 969 | of the composite `M → M ⊗ ℤ[ℙ¹] → (M ⊗ T)[2] → M[2]` of `x ↦ x ⊗ b` (`tensorPoint b`), of `M ⊗ η` |
| 970 | (`etaTensorClass`) and of the action `M.tateAction` of the Tate module `T`. -/ |
| 971 | @[irreducible] |
| 972 | def etaAt : (freeAb (onePointFunctor C) ⟶ freeAb (projLineAlong g)) →+ H M.functor M.functor 2 := |
| 973 | AddMonoidHom.mk' |
| 974 | (fun b ↦ H.map M.functor (tensorPoint b M.functor) 2 |
| 975 | ((etaTensorClass g M.functor).comp M.tateAction rfl)) |
| 976 | fun a b ↦ by |
| 977 | have h_add : tensorPoint (a + b) M.functor = tensorPoint a M.functor + tensorPoint b |
| 978 | M.functor := by |
| 979 | ext |
| 980 | apply TensorProduct.tmul_add |
| 981 | simp [H.map, h_add, Ext.mk₀_add] |
| 982 | |
| 983 | /-- As a total class, `M.etaAt b` is the pullback along `x ↦ x ⊗ b` of the product of `M ⊗ η` and |
| 984 | `M.tateAction`. -/ |
| 985 | lemma toTotalH_etaAt (b : freeAb (onePointFunctor C) ⟶ freeAb (projLineAlong g)) : |
| 986 | (M.etaAt b).toTotalH = pullbackAlong (tensorPoint b M.functor) |
| 987 | (comp (etaTensorClass g M.functor).toTotalH M.tateAction.toTotalH) := by |
| 988 | rw [comp_of (h := rfl), pullbackAlong_of, etaAt, AddMonoidHom.mk'_apply] |
| 989 | -- the degrees `2` and `2 + 0` agree by definition |
| 990 | rfl |
| 991 | |
| 992 | /-- The product of a class `y` from `S` to `M` with `M.etaAt b` is the composite of `x ↦ x ⊗ b`, |
| 993 | `S ⊗ η`, `y ⊗ T` and the action `M.tateAction`. -/ |
| 994 | lemma comp_etaAt (b : freeAb (onePointFunctor C) ⟶ freeAb (projLineAlong g)) |
| 995 | (y : TotalH S M.functor) : |
| 996 | comp y (M.etaAt b).toTotalH = pullbackAlong (tensorPoint b S) |
| 997 | (comp (etaTensorClass g S).toTotalH |
| 998 | (mapThenComp (abTensor.flip (tateModule g)) M.tateAction.toTotalH y)) := by |
| 999 | -- Both `tensorPoint b` and `etaTensorClass g` are natural in the coefficient: move `y` past them. |
| 1000 | have h_point : comp y (homClass (tensorPoint b M.functor)) = |
| 1001 | pullbackAlong (tensorPoint b S) (map (abTensor.flip (freeAb (projLineAlong g))) y) := by |
| 1002 | nth_rw 1 [← TotalH.map_id (x := y)] |
| 1003 | exact y.naturality (tensorPoint b) |
| 1004 | calc comp y (M.etaAt b).toTotalH |
| 1005 | = comp y (comp (homClass (tensorPoint b M.functor)) |
| 1006 | (comp (etaTensorClass g M.functor).toTotalH M.tateAction.toTotalH)) := |
| 1007 | congrArg (comp y) (toTotalH_etaAt M b) |
| 1008 | _ = comp (homClass (tensorPoint b S)) (comp (map (abTensor.flip (freeAb (projLineAlong g))) y) |
| 1009 | (comp (etaTensorClass g M.functor).toTotalH M.tateAction.toTotalH)) := |
| 1010 | TotalH.comp_assoc_of_sq h_point _ |
| 1011 | _ = comp (homClass (tensorPoint b S)) (comp (etaTensorClass g S).toTotalH |
| 1012 | (comp (map (abTensor.flip (tateModule g)) y) M.tateAction.toTotalH)) := |
| 1013 | congrArg (comp (homClass (tensorPoint b S))) |
| 1014 | (TotalH.comp_assoc_of_sq (etaTensorClass_naturality y) _) |
| 1015 | |
| 1016 | /-- Let `K` be a coefficient along `g`, `M'` one along `φ ⋙ g`, and `T` (not the Tate module) a |
| 1017 | class of any degree in total Ext from `K` restricted along `φ` to `M'`. Then `T` commutes with the |
| 1018 | product with `η` at `b`: restricting `K.etaAt b` along `φ` and composing with `T` is `T` followed by |
| 1019 | `M'.etaAt` at `b` restricted. -/ |
| 1020 | lemma etaAt_naturality (b : freeAb (onePointFunctor C) ⟶ freeAb (projLineAlong g)) : |
| 1021 | mapThenComp (restrictAlong φ) T (K.etaAt b).toTotalH = |
| 1022 | comp T (M'.etaAt (φ.whiskerLeft b)).toTotalH := by |
| 1023 | -- `T` commutes with `tateAction`, and `etaTensorClass` is compatible with restriction along `φ`. |
| 1024 | calc mapThenComp (restrictAlong φ) T (K.etaAt b).toTotalH |
| 1025 | = comp (map (restrictAlong φ) (comp (homClass (tensorPoint b K.functor)) |
| 1026 | (comp (etaTensorClass g K.functor).toTotalH K.tateAction.toTotalH))) T := |
| 1027 | congrArg (fun x ↦ comp (map (restrictAlong φ) x) T) (toTotalH_etaAt K b) |
| 1028 | _ = comp (homClass (tensorPoint (φ.whiskerLeft b) (φ ⋙ K.functor))) |
| 1029 | (comp (etaTensorClass (φ ⋙ g) (φ ⋙ K.functor)).toTotalH |
| 1030 | (mapThenComp (restrictAlong φ) T K.tateAction.toTotalH)) := by |
| 1031 | simp only [mapThenComp, AddMonoidHom.coe_comp, Function.comp_apply, AddMonoidHom.flip_apply] |
| 1032 | rw [map_comp_assoc, map_comp_assoc, map_homClass, |
| 1033 | map_restrictAlong_etaTensorClass] |
| 1034 | -- the sides differ only in implicit objects, `(restrictAlong φ).obj F` against `φ ⋙ F` |
| 1035 | rfl |
| 1036 | _ = comp (homClass (tensorPoint (φ.whiskerLeft b) (φ ⋙ K.functor))) |
| 1037 | (comp (etaTensorClass (φ ⋙ g) (φ ⋙ K.functor)).toTotalH |
| 1038 | (comp (map (abTensor.flip (tateModule (φ ⋙ g))) T) M'.tateAction.toTotalH)) := by |
| 1039 | rw [K.tateAction_comm φ M' T] |
| 1040 | _ = comp T (M'.etaAt (φ.whiskerLeft b)).toTotalH := (comp_etaAt M' (φ.whiskerLeft b) T).symm |
| 1041 | |
| 1042 | /-- Pulling `M.mulClass ζ y` back along `x ↦ x ⊗ σ` equals pulling `M.mulClass (σ^* ζ) y` back along |
| 1043 | `x ↦ x ⊗ 1`, where `σ^* ζ` is `ζ` pulled back along `σ`. -/ |
| 1044 | private lemma pullbackAlong_tensorPoint_mulClass {S : AbFunctor C} [HasFlatValues S] |
| 1045 | {Q : AbFunctor C} (σ : freeAb (onePointFunctor C) ⟶ Q) (ζ : TotalH Q (tateModule g)) |
| 1046 | (y : TotalH S M.functor) : |
| 1047 | pullbackAlong (tensorPoint σ S) (M.mulClass ζ y) = |
| 1048 | pullbackAlong (tensorPoint (𝟙 (freeAb (onePointFunctor C))) S) |
| 1049 | (M.mulClass (pullbackAlong σ ζ) y) := by |
| 1050 | -- `x ↦ x ⊗ σ` is `x ↦ x ⊗ 1` followed by `S ⊗ σ`, by definition |
| 1051 | have h_tp : tensorPoint σ S = |
| 1052 | tensorPoint (𝟙 (freeAb (onePointFunctor C))) S ≫ (abTensor S).map σ := rfl |
| 1053 | have h_map : map (abTensor S) (pullbackAlong σ ζ) = |
| 1054 | pullbackAlong ((abTensor S).map σ) (map (abTensor S) ζ) := |
| 1055 | map_pullbackAlong |
| 1056 | rw [h_tp, ← pullbackAlong_pullbackAlong, mulClass_apply, mulClass_apply, h_map, comp_assoc] |
| 1057 | rfl -- `pullbackAlong` is composition with `homClass` |
| 1058 | |
| 1059 | /-- Let `S` have flat values. If `ξ` pulled back along `ρ` is `η` pulled back along `b`, then the |
| 1060 | product `M.mulClass ξ y` of `y` with `ξ`, pulled back along `x ↦ x ⊗ ρ`, is the product of `y` |
| 1061 | with `M.etaAt b`. -/ |
| 1062 | lemma mulClass_eq_comp_etaAt [HasFlatValues S] {P : AbFunctor C} (ξ : TotalH P (tateModule g)) |
| 1063 | (ρ : freeAb (onePointFunctor C) ⟶ P) {b : freeAb (onePointFunctor C) ⟶ freeAb (projLineAlong g)} |
| 1064 | (hξ : pullbackAlong ρ ξ = pullbackAlong b (etaClass g).toTotalH) (y : TotalH S M.functor) : |
| 1065 | pullbackAlong (tensorPoint ρ S) (M.mulClass ξ y) = comp y (M.etaAt b).toTotalH := by |
| 1066 | -- For flat `S` the class `etaTensorClass g S` is `S ⊗ η`, so the right side is the product of `y` |
| 1067 | -- with `η` pulled back along `x ↦ x ⊗ b`. Move both pullbacks to `x ↦ x ⊗ 1` and use `hξ`. |
| 1068 | have h_right : comp y (M.etaAt b).toTotalH = |
| 1069 | pullbackAlong (tensorPoint b S) (M.mulClass (etaClass g).toTotalH y) := by |
| 1070 | rw [comp_etaAt, etaTensorClass_of_hasFlatValues, mulClass_apply] |
| 1071 | rw [h_right, pullbackAlong_tensorPoint_mulClass M ρ ξ y, |
| 1072 | pullbackAlong_tensorPoint_mulClass M b (etaClass g).toTotalH y, hξ] |
| 1073 | |
| 1074 | /-- For `S` with flat values, the product of every class `y` from `S` to `M` with `η` at the base |
| 1075 | point of the line is zero. -/ |
| 1076 | lemma comp_etaAt_basePt [HasFlatValues S] (y : TotalH S M.functor) : |
| 1077 | comp y (M.etaAt (freeAbSectionMap (basePt g))).toTotalH = 0 := by |
| 1078 | -- The row of the base point has a unit as first coordinate, so `η` pulls back to zero. |
| 1079 | have h_zero : pullbackAlong (freeAbSectionMap (basePt g)) (etaClass g).toTotalH = 0 := |
| 1080 | pullbackAlong_etaClass_eq_zero_of_isUnit (sectionMap (basePt g)) fun _ _ ↦ |
| 1081 | isUnit_unimodularRow_affinePt_iff.mpr isUnit_one |
| 1082 | have h_mul_zero : M.mulClass (0 : TotalH (freeAb (onePointFunctor C)) (tateModule g)) y = 0 := by |
| 1083 | simp [mulClass] |
| 1084 | -- With `ρ = 𝟙`, the product with `η` at the base point is the product with `0`. |
| 1085 | rw [← M.mulClass_eq_comp_etaAt |
| 1086 | (pullbackAlong (freeAbSectionMap (basePt g)) (etaClass g).toTotalH) |
| 1087 | (𝟙 (freeAb (onePointFunctor C))) pullbackAlong_id y, |
| 1088 | h_zero, h_mul_zero, map_zero] |
| 1089 | |
| 1090 | /-- The product with `η` on the category of points of the line: `etaAt` at the tautological |
| 1091 | point. -/ |
| 1092 | abbrev cupClass : |
| 1093 | H (M.onElements (X := projLineAlong g)).functor (M.onElements (X := projLineAlong g)).functor |
| 1094 | 2 := |
| 1095 | M.onElements.etaAt (freeAb.map (tautologicalSection (X := projLineAlong g))) |
| 1096 | |
| 1097 | /-- The degrees of the classes `1` (index `true`) and `η` (index `false`). -/ |
| 1098 | abbrev lineDegree : Bool → ℕ |
| 1099 | | true => 0 |
| 1100 | | false => 2 |
| 1101 | |
| 1102 | /-- The two classes `1` (index `true`, degree 0) and `η` (index `false`, degree 2) on the category |
| 1103 | of points of the line. -/ |
| 1104 | def lineBasis : ∀ i : Bool, H (restrictAlong (elementsProj (projLineAlong g)) M.functor) |
| 1105 | (elementsProj (projLineAlong g) ⋙ M.functor) (lineDegree i) |
| 1106 | | true => Ext.mk₀ (𝟙 (elementsProj (projLineAlong g) ⋙ M.functor)) |
| 1107 | | false => M.cupClass |
| 1108 | |
| 1109 | |
| 1110 | lemma lineBasis_false : M.lineBasis false = M.cupClass := rfl |
| 1111 | |
| 1112 | /-- The projective line formula `H(ℙ¹ × S) = H(S) ⊕ η H(S)`: the classes `1` and `η` are a basis |
| 1113 | over the cohomology of every `S`. -/ |
| 1114 | def HasLineFormula : Prop := ∀ S : AbFunctor C, IsLerayHirschBasis M.lineBasis S |
| 1115 | |
| 1116 | /-- Restricting `M.etaAt b` to the category of points of `X` gives `etaAt` of the restrictions. -/ |
| 1117 | lemma map_etaAt_onElements (X : C ⥤ Type 1) |
| 1118 | (b : freeAb (onePointFunctor C) ⟶ freeAb (projLineAlong g)) : |
| 1119 | map (restrictAlong (elementsProj X)) (M.etaAt b).toTotalH = |
| 1120 | (M.onElements.etaAt ((elementsProj X).whiskerLeft b)).toTotalH := by |
| 1121 | -- `etaAt_naturality` for the identity class of `M` restricted to the points of `X` |
| 1122 | exact comp_id.symm.trans ((etaAt_naturality (elementsProj X) M M.onElements |
| 1123 | (homClass (𝟙 (elementsProj X ⋙ M.functor))) b).trans pullbackAlong_id) |
| 1124 | |
| 1125 | end TorsionCoeff |
| 1126 | |
| 1127 | end EtaProduct |
| 1128 | |
| 1129 | end New.Variety |
| 1130 | |
| 1131 | end |