module import Mathlib.RingTheory.PiTensorProduct public import Lib.Cohomology.Hodge.FixedPointFormula public import Lib.General.Geometry.ProjectiveSpace public import Lib.PadicComparison.HodgeTate.Map import Lib.Cohomology.Hodge.Kunneth import Lib.Cohomology.PointClass.LinearIndependence import Lib.General.Geometry.PointsOfProperSchemes /-! # Woods Hole (half of Atiyah–Bott): maps killed under λ_h on Hodge classes are h-null The main theorem, `New.Variety.ellAdicCohom.woods_hole`: if a combination `∑ b_i u_i` of maps `W → Y` kills all Hodge classes of `Y` under the Hodge–Tate map `λ_h` (`New.Variety.hodgeTateMap`), then for every `c : W → Y` the local terms of weight `h` at the coincidences of `c` and the `u_i` add up to zero (`New.Variety.IsNullFamily`). The proof pulls back the diagonal class of `New.Variety.exists_diagonal_local_terms`, writes it as a sum of cross products (`New.Variety.kunneth`) and compares two polynomials in the scaling parameter. On a cross product, `New.Variety.map_scaledGraph_baseChange_cross` computes the pull-back and the Hodge–Tate cup product formula expands its image in powers of `t`. By additivity, `New.Variety.exists_polynomial_scaledGraph_coeff_eq_zero` gives a polynomial with vanishing coefficient of degree `h`. On the diagonal class its values agree with the sum of the normalized tangent polynomials at the coincidences. `New.Variety.HodgeH` is Hodge cohomology, `New.Variety.algPoints` the functor of points, and `New.Variety.HasAtlas` a finite cover by charts with `d` étale coordinates. ## Overview of this theory Throughout, `ℓ` is a fixed prime. Cohomology of a functor `X` to sets, with coefficients in a functor `F` to abelian groups, is `Extⁿ(ℤ[X], F)`. Here `ℤ[X]` is the free abelian group functor on `X`, and the Ext is taken in functors on test objects: rings, or pairs of a ring and a module. On absolutely integrally closed rings `A` (every monic polynomial of positive degree has a root), locally constant functions on `Spec A` give `𝔽_ℓ`-cohomology. Their Witt vectors give `ℤ_ℓ`-cohomology. `New.Variety.ellAdicCohom` is `X ↦ ℚ_ℓ ⊗ Hⁿ(X ×_R Ω, ℤ_ℓ)`, for `X` over a ring `R` and an `R`-algebra `Ω`. Test objects may also be pairs `(B, M)` of a `k`-algebra `B` and a `B`-module `M`. On these, `New.Variety.HodgeH` of a functor `N` in degree `q` is `Ext^q` from `(B, M) ↦ N(B ⊕ M)` to `(B, M) ↦ ⋀_B M`. * `New.Variety.IsProperOver.proper_base_change`: let `A` be an absolutely integrally closed local domain that is a valuation ring, with `ℓ` a unit in `A`. Let `Y` be proper over `Spec A`. Then restriction from `Y` to its closed fibre is bijective on `𝔽_ℓ`-cohomology in every degree. * `New.Variety.isTestCohomEquiv_baseChangeTransition`: let `A` be a valuation ring of an algebraic closure `ℚ̄` of `ℚ`, with a prime `p` in its maximal ideal and `ℓ` a unit. Let `A` be an algebra over a ring `R`, and let `Y` over `R` be built from charts étale over tori (`New.Variety.IsCharted`). Then pull-back `Hⁿ(Y_A, 𝔽_ℓ) → Hⁿ(Y_ℚ̄, 𝔽_ℓ)` is bijective for all `n`. * `New.Variety.ellAdicCohom.woods_hole`: let `R ⊆ E → k ⊆ ℚ̄_p`, with `E` a field of characteristic 0 and `k` algebraically closed. Let `Y` be proper and `W` projective over `R`. Let `Y` over `E` and `W` over `k` have atlases of dimension `d`. Let `uᵢ : W ⟶ Y` be maps, and let `bᵢ ∈ k` be almost all zero. Let `λ_h` be the Hodge–Tate map `New.Variety.hodgeTateMap h`. Assume that `h > d`, or that `∑ bᵢ λ_h(uᵢ^* x) = 0`, read over `k`, for all `x` of degree at most `d` in `HodgeH` of `Y` over `E`. Then `New.Variety.IsNullFamily` holds: for `c : W ⟶ Y`, if each coincidence `c y = uᵢ y`, `y ∈ W(k)`, has a tangent polynomial `P` with `P(1) ≠ 0`, the terms `bᵢ · (coefficient of degree h of P) / P(1)` add up to zero. These replace proper base change (SGA 4, XII) and smooth base change (SGA 4), here with coefficients `𝔽_ℓ` over such rings. They also replace half of the holomorphic Lefschetz (Woods Hole) formula of Atiyah and Bott, for `h`-forms and correspondences. No comparison with étale or coherent cohomology is stated. Structure of the development. `Etale`: descent, Mayer–Vietoris, limits, `ℓ`-adic coefficients. `ProperBaseChange`: cover `X` by points with values in valuation rings, and reduce to the valuation rings of a single field. `LerayHirsch`, `TorsionTheories`, `ProjectiveLine`: `1` and the first Chern class of `O(1)` form a basis of the cohomology of `ℙ¹`. With duality from `Lib.PadicComparison`, `SmoothBaseChange` follows. `Hodge`: point classes, the Künneth formula, local terms of the diagonal. `PointClass`: the Hodge–Tate map of `Lib.PadicComparison` keeps distinct point classes independent, by reduction to `ℙᵈ` and `ℙ¹`. ## This file Notions from other files: * `New.Variety.HodgeH.baseChange`: Base change: for an E-algebra k, the additive map from the Hodge cohomology over E of N to that over k of N restricted to k-algebras. ## Relation to the literature Known result: Half of the holomorphic Lefschetz (Woods Hole) formula for h-forms and correspondences. No trace is computed here. The statement is that if a combination of pull-backs kills the Hodge classes of degree at most the dimension d under the Hodge–Tate map λ_h, then the z^h coefficients of the local terms det(1−zA)/det(1−A) at simple coincidences add up to zero. Source: M. F. Atiyah, R. Bott, A Lefschetz fixed point formula for elliptic complexes II, Ann. of Math. 88 (1968) 451-491, formula (4.9) with (4.10), p. 458, for a single map with transversal fixed points (bundle version Thm 4.12, pp. 458–459); there the local term of weight h is tr Λ^h A / det(1−A), which differs from the z^h coefficient above by the sign (−1)^h; G. Kondyrev, A. Prikhodko, Holomorphic Atiyah-Bott formula for correspondences, Arnold Math. J. (2022), for correspondences; SGA5 III 6.12. -/ @[expose] public section open CategoryTheory AlgebraicGeometry Polynomial Finset CartesianMonoidalCategory Functor MonoidalCategory /-- Let `f g : W ⟶ X` be maps from a functor on `k`-algebras to a functor on `E`-algebras restricted to `k`-algebras, and `t` in `k`. Pulling the cross product `x × y` of two Hodge classes of `X` back along `scaledGraph t f g` (`w ↦ (f (s_t w), g w)`, where `s_t : (a, m) ↦ (a, t m)` scales the module part of `A ⊕ M`), after base change to `k`, gives the cup product of the scaled pull-back `s_t f^* x` and of `g^* y`, restricted to the diagonal of `W`. -/ lemma New.Variety.map_scaledGraph_baseChange_cross {E k : Type} [Field E] [CharZero E] [Field k] [CharZero k] [Algebra E k] {X : CommAlg E ⥤ Type 1} {W : CommAlg k ⥤ Type 1} (f g : W ⟶ restrictAlg E k ⋙ X) (t : k) {d q q' : ℕ} (e : q' + q = d) (x : HodgeH (freeAb X) q) (y : HodgeH (freeAb X) q') : H.map hodgeCoeff (freeAb.map (scaledGraph t f g)) d (HodgeH.baseChange (HodgeH.map (freeAb.prod X X) (cup exteriorAlg.mulPairing x y e :))) = HodgeH.map (freeAb.map (lift (𝟙 W) (𝟙 W)) ≫ freeAb.prod W W) (cup exteriorAlg.mulPairing (HodgeH.scale t (HodgeH.map (freeAbMap f) x.baseChange)) (HodgeH.map (freeAbMap g) y.baseChange) e :) := by -- base change commutes with the cross product; then the pull-back of a cup product is the cup -- product of the pull-backs (`cup_map`) have h_bc : (HodgeH.map (freeAb.prod X X) (cup exteriorAlg.mulPairing x y e :)).baseChange (k := k) = .map (whiskerLeft _ (freeAb.prod X X)) (cup (exteriorAlg (k := k)).mulPairing x.baseChange y.baseChange e :) := (HodgeH.baseChange_map (freeAb.prod X X) (cup exteriorAlg.mulPairing x y e :)).trans (congrArg _ ((HodgeTest.baseComparison (k := k) (E := E)).pull_cup (abTensor_hom_ext fun _ _ _ ↦ by rfl) x y _)) refine (congrArg (H.map _ _ d) h_bc).trans ?_ -- `using!`: the pull-back along `scaledGraph` matches the composite `γ` of `cup_map` only up to -- unfolding simpa only [H.map_comp] using! cup_map (γ := _ ≫ _) exteriorAlg.mulPairing x.baseChange y.baseChange e (HodgeTest.scaleModule t _ ≫ whiskerLeft _ (freeAbMap f)) (whiskerLeft _ (freeAbMap g)) freeAb.hom_ext /-- Applying `hodgeTateMap d` to the pull-back of a cross product `x × y` along `scaledGraph t f g` expands as a polynomial in `t` of degree `d`, whose `t ^ j` coefficient is the diagonal pull-back of the cross product of `λ_{d - j} (g^* y)` and `λ_j (f^* x)` with the Koszul sign and binomial weight from `hodgeTateMap_cup`. -/ private lemma New.Variety.hodgeTateMap_scaledGraph_baseChange_cross {p : ℕ} {E k : Type} [Field E] [CharZero E] [Field k] [EmbeddedInQpBar p k] [Algebra E k] {X : CommAlg E ⥤ Type 1} {W : CommAlg k ⥤ Type 1} (f g : W ⟶ restrictAlg E k ⋙ X) (t : k) {d q q' : ℕ} (e : q' + q = d) (x : HodgeH (freeAb X) q) (y : HodgeH (freeAb X) q') : hodgeTateMap (N := freeAb W) d (H.map hodgeCoeff (freeAb.map (scaledGraph t f g)) d (HodgeH.baseChange (HodgeH.map (freeAb.prod X X) (cup exteriorAlg.mulPairing x y e :)))) = ∑ j ∈ range (d + 1), t ^ j • PairH.map (freeAb.map (lift (𝟙 W) (𝟙 W)) ≫ freeAb.prod W W) ((d.choose j • (-1 : k) ^ ((q + j) * (d - j)) • HodgeTatePair.cross (M := HodgeTatePair.pairAlg ⋙ freeAb.obj W) (hodgeTateMap (d - j) (HodgeH.map (freeAbMap g) y.baseChange))) (hodgeTateMap j (HodgeH.map (freeAbMap f) x.baseChange))) := by let Δ := PairH.map (freeAb.map (lift (𝟙 W) (𝟙 W)) ≫ freeAb.prod W W) refine (congrArg (hodgeTateMap (N := freeAb W) d) (map_scaledGraph_baseChange_cross f g t e x y)).trans ?_ refine (hodgeTateMap_map _ _).trans ?_ rw [hodgeTateMap_cup] refine (_root_.map_sum Δ _ _).trans (sum_congr rfl fun j _ ↦ ?_) rw [hodgeTateMap_scale] exact (congrArg Δ (_root_.map_smul _ _ _)).trans (_root_.map_smul _ _ _) /-- The weighted pull-back of a cross product along the scaled graphs is polynomial in the scale. Its coefficient of degree `h` vanishes when the weighted pull-backs of the first factor vanish under the weight-`h` Hodge–Tate map. -/ private lemma New.Variety.exists_polynomial_scaledGraph_cross {p : ℕ} {E k : Type} {d h : ℕ} {I : Type} [Field E] [CharZero E] [Field k] [EmbeddedInQpBar p k] [Algebra E k] {X : CommAlg E ⥤ Type 1} {W : CommAlg k ⥤ Type 1} (f : I → (W ⟶ restrictAlg E k ⋙ X)) (g : W ⟶ restrictAlg E k ⋙ X) {b : I →₀ k} {q q' : ℕ} (e : q' + q = d) (x : HodgeH (freeAb X) q) (y : HodgeH (freeAb X) q') (h_wt : h ≤ d → ∑ i : b.support, b i • hodgeTateMap h (HodgeH.map (freeAbMap (f i)) x.baseChange) = 0) (φ : Module.Dual k (PairH (freeAb W))) : ∃ Q : k[X], Q.coeff h = 0 ∧ ∀ t : k, Q.eval t = ∑ i : b.support, b i * φ (hodgeTateMap d (H.map hodgeCoeff (freeAb.map (scaledGraph t (f i) g)) d (HodgeH.baseChange (HodgeH.map (freeAb.prod X X) (cup exteriorAlg.mulPairing x y e :))))) := by let Δ := PairH.map (freeAb.map (lift (𝟙 W) (𝟙 W)) ≫ freeAb.prod W W) let M (j : ℕ) : PairH (freeAb W) →ₗ[k] k := φ ∘ₗ Δ ∘ₗ (d.choose j • (-1 : k) ^ ((q + j) * (d - j)) • HodgeTatePair.cross (hodgeTateMap (d - j) (HodgeH.map (freeAbMap g) y.baseChange))) -- The coefficient at j pairs the weighted Hodge–Tate image of x with the image of y. let v (i : b.support) (j : ℕ) := hodgeTateMap j (HodgeH.map (freeAbMap (f i)) x.baseChange) refine ⟨∑ j ∈ range (d + 1), monomial j (M j (∑ i : b.support, b i • v i j)), ?_, fun t ↦ ?_⟩ · rw [finsetSum_coeff] simp only [coeff_monomial, Finsupp.single_apply, sum_ite_eq', mem_range, Nat.lt_succ_iff] split_ifs with hd · rw [show (∑ i : b.support, b i • v i h) = 0 from h_wt hd, map_zero] · rfl · simp only [eval_finsetSum, eval_monomial, _root_.map_sum, _root_.map_smul, smul_eq_mul] rw [sum_comm] refine sum_congr rfl fun i _ ↦ ?_ rw [hodgeTateMap_scaledGraph_baseChange_cross (f i) g t e x y, _root_.map_sum, mul_sum] refine sum_congr rfl fun j _ ↦ ?_ rw [_root_.map_smul, smul_eq_mul] change b i * M j (v i j) * t ^ j = b i * (t ^ j * M j (v i j)) ring /-- The vanishing half of the Woods Hole argument. Let `u i : W ⟶ Y` be maps over `R` and `b i ∈ k` almost all zero. Assume that `Y` over `E` (`algPointsOf E R Y`, the functor of `E`-algebra points of `Y`) has an atlas of dimension `d`, and that `h > d` or the sum of the `b i • λ_h ((u i)^* x)` is zero for the Hodge classes `x` of `Y` of degree at most `d`, where `λ_h` is the Hodge–Tate map `hodgeTateMap`. Let `c : W ⟶ Y`, and let `φ` be a linear form on `PairH` of `W`, the target of `λ_d`: total cohomology on pairs `(S, M)` of `Z[W](B_{S,M})` with coefficients `S[1/p]`. For every class `z` of `Y × Y`, the sum of the `b i · φ (λ_d (Φ t i z))` is polynomial in `t` with vanishing coefficient of degree `h`. Here `Φ t i z` is `z` pulled back along `(u i ∘ s_t, c)` (`New.Variety.scaledGraph`), with `s_t : (a, m) ↦ (a, t m)` on the square-zero extension `B ⊕ M` of a `k`-algebra `B`. -/ lemma New.Variety.exists_polynomial_scaledGraph_coeff_eq_zero {p : ℕ} {A : Type*} {E k : Type} {d h : ℕ} {I : Type} [CommRing A] [Field E] [CharZero E] [Algebra A E] [Field k] [EmbeddedInQpBar p k] [Algebra E k] {R : Subalgebra A E} {W Y : Over (Spec (CommRingCat.of R))} {u : I → (W ⟶ Y)} {b : I →₀ k} (hY_atlas : HasAtlas d (algPointsOf E (CommRingCat.of R) Y)) (h_null : h ≤ d → ∀ q : ℕ, q ≤ d → ∀ x : HodgeH (freeAb.obj ((algPoints E (CommRingCat.of R)).obj Y)) q, (b.linearCombination k fun i : I ↦ hodgeTateMap h (x.map (freeAb.map ((algPoints E (CommRingCat.of R)).map (u i)))).baseChange) = 0) (c : W ⟶ Y) (φ : Module.Dual k (PairH (freeAb (algPointsOf k (CommRingCat.of R) W)))) (z : HodgeH (freeAb.obj (algPointsOf E (CommRingCat.of R) Y ⊗ algPointsOf E (CommRingCat.of R) Y)) d) : ∃ Q : k[X], Q.coeff h = 0 ∧ ∀ t : k, Q.eval t = ∑ i : b.support, b i * φ (hodgeTateMap d (H.map hodgeCoeff (freeAb.map (scaledGraph t ((algPoints k (CommRingCat.of R)).map (u i)) ((algPoints k (CommRingCat.of R)).map c))) d (HodgeH.baseChange z))) := by let XY : CommAlg E ⥤ Type 1 := algPointsOf E (CommRingCat.of R) Y let XW : CommAlg k ⥤ Type 1 := algPointsOf k (CommRingCat.of R) W let D (f : W ⟶ Y) : XW ⟶ restrictAlg E k ⋙ XY := (algPoints k (CommRingCat.of R)).map f -- `Φ t i` is base change to `k` followed by pull-back along `(u i ∘ s_t, c)`. let Φ (t : k) (i : b.support) : HodgeH (freeAb.obj (XY ⊗ XY)) d →+ HodgeH (freeAb XW) d := (H.map hodgeCoeff (freeAb.map (scaledGraph t (D (u i)) (D c))) d).comp HodgeH.baseChange -- restate the goal with `Φ`, and `φ`, `z` in terms of `XW`, `XY` revert φ z intro (φ : Module.Dual k (PairH (freeAb XW))) (z : HodgeH (freeAb.obj (XY ⊗ XY)) d) change ∃ Q : k[X], Q.coeff h = 0 ∧ ∀ t : k, Q.eval t = ∑ i : b.support, b i * φ (hodgeTateMap d (Φ t i z)) -- Künneth expresses the class as a sum of cross products. Add their polynomials. induction kunneth z using AddSubmonoid.closure_induction_left with | zero => exact ⟨0, by simp, by simp⟩ | add_left g hg z _ ih => obtain ⟨q, q', e, x, y, rfl⟩ := hg -- the sum of `h_null`, read through the pull-backs along `D (u i)` have h_wt (hd : h ≤ d) : ∑ i : b.support, b i • hodgeTateMap h (.map (freeAbMap (D (u i))) x.baseChange) = 0 := by -- `using!`: `h_null` pulls back along `algPoints E` then restricts, `D` along `algPoints k`; -- the two agree only by unfolding simpa using! (sum_attach b.support _).trans (h_null hd q (by omega) x) obtain ⟨P, hP, hPeval⟩ := exists_polynomial_scaledGraph_cross (fun i ↦ D (u i)) (D c) e x y h_wt φ obtain ⟨Q, hQ, hQeval⟩ := ih exact ⟨P + Q, by simp [hP, hQ], fun t ↦ by simp only [eval_add, hPeval, hQeval, _root_.map_add, mul_add, sum_add_distrib] rfl⟩ /-- Reducedness of the coincidences of `c` and `u i` from nonvanishing tangent polynomials: given an atlas `hW_atlas` of `W` over `k` and tangent polynomials `P` with `P(1) ≠ 0` at every coincidence in `S`, each `u i` and `c` have a finite coincidence set `s i` whose union is `S`. -/ private lemma New.Variety.exists_coincidenceSet_of_isTangentPoly {A : Type*} {E k : Type} {d : ℕ} {I : Type} [CommRing A] [Field E] [Field k] [IsAlgClosed k] [Algebra A E] [Algebra E k] {R : Subalgebra A E} {W Y : Over (Spec (CommRingCat.of R))} [IsSeparated Y.hom] {u : I → (W ⟶ Y)} {b : I →₀ k} (hW_atlas : HasAtlas d (algPointsOf k (CommRingCat.of R) W)) (c : W ⟶ Y) {S : Set (Σ _ : b.support, PointsIn W (CommAlgCat.of k k))} (hS_def : ∀ w : Σ _ : b.support, PointsIn W (CommAlgCat.of k k), w ∈ S ↔ ((algPoints k (CommRingCat.of R)).map c).app _ w.snd = ((algPoints k (CommRingCat.of R)).map (u w.fst)).app _ w.snd) {P : (Σ _ : b.support, PointsIn W (CommAlgCat.of k k)) → k[X]} (hP : ∀ y ∈ S, IsTangentPoly d ((algPoints k (CommRingCat.of R)).map c) ((algPoints k (CommRingCat.of R)).map (u y.fst)) y.snd (P y) ∧ (P y).eval 1 ≠ 0) : ∃ s : b.support → Finset ((algPointsOf k (CommRingCat.of R) W).obj (CommAlgCat.of k k)), (∀ i : b.support, IsCoincidenceSet ((algPoints k (CommRingCat.of R)).map (u i)) ((algPoints k (CommRingCat.of R)).map c) (s i)) ∧ S = univ.sigma s := by let XW : CommAlg k ⥤ Type 1 := algPointsOf k (CommRingCat.of R) W let D (f : W ⟶ Y) : XW ⟶ restrictAlg E k ⋙ algPointsOf E (CommRingCat.of R) Y := (algPoints k (CommRingCat.of R)).map f have h_const (y : Σ _ : b.support, PointsIn W (CommAlgCat.of k k)) (hy : y ∈ S) (x : XW.obj (CommAlgCat.of k (DualNumber k))) (hx : XW.map SqZeroExt.fst x = y.snd) : ConstIfCoincident (D (u y.fst)) (D c) x := IsTangentPoly.constIfCoincident (c := D c) (hP y hy).left hW_atlas.isChartCovered (hP y hy).right hx have h_coin (i : b.support) : ∃ s : Finset (XW.obj (CommAlgCat.of k k)), IsCoincidenceSet (D (u i)) (D c) s := by obtain ⟨r, chart, h_cover⟩ := hW_atlas.exists_finite_charts -- a `k[ε]`-valued coincidence reduces to a `k`-valued one, a point of `S` have h_mem_red (x : XW.obj (CommAlgCat.of k (DualNumber k))) (e : (D c).app _ x = (D (u i)).app _ x) : (⟨i, XW.map SqZeroExt.fst x⟩ : Σ _ : b.support, PointsIn W (CommAlgCat.of k k)) ∈ S := by rw [hS_def] exact ULift.down_inj.1 (by congrm _ ≫ $e.1) exact exists_isCoincidenceSet _ _ (hX := isSeparatedFunctor_algPointsOf) (fun x e ↦ h_const ⟨i, XW.map SqZeroExt.fst x⟩ (h_mem_red x e) x rfl e) chart fun K hK x _ ↦ h_cover K hK x choose s hs using h_coin refine ⟨s, hs, Set.ext fun w ↦ ⟨fun hw ↦ ?_, fun hw ↦ ?_⟩⟩ · -- a coincidence at a `k`-point comes from a point of `s` obtain ⟨-, -, hs_all⟩ := hs w.fst simpa using hs_all _ (Field.toIsField k) _ ((hS_def w).1 hw) · obtain ⟨-, hs_coin, -⟩ := hs w.fst exact (hS_def w).2 (hs_coin w.snd (by simpa using hw)) /-- Half of the Atiyah–Bott formula. Let `Y` be proper and `W` projective over `R`, a subalgebra of `E`; let `R → E → k → ℚ̄_p` with `E`, `k` fields of characteristic 0 and `k` algebraically closed (`EmbeddedInQpBar p k`); let `Y` over `E` and `W` over `k` have atlases of dimension `d` (`New.Variety.HasAtlas`: finitely many charts with `d` étale coordinates). Let `u i : W ⟶ Y` be maps and `b i ∈ k` almost all zero. Assume that `h > d`, or that `∑ b i • λ_h ((u i)^* x) = 0` for every Hodge class `x` of `Y` over `E` of degree `q ≤ d`, read over `k`, with `λ_h` the Hodge–Tate map `New.Variety.hodgeTateMap h`. Then `∑ b i [u i]` is `h`-null: for every `c : W ⟶ Y`, the local terms of weight `h` at the coincidences of `c` and the `u i` add up to zero (`New.Variety.IsNullFamily`). -/ lemma New.Variety.ellAdicCohom.woods_hole {p : ℕ} {A : Type*} {E k : Type} {d h : ℕ} {I : Type} [CommRing A] [Field E] [CharZero E] [Algebra A E] [Field k] [IsAlgClosed k] [EmbeddedInQpBar p k] [Algebra E k] {R : Subalgebra A E} {W Y : Over (Spec (CommRingCat.of R))} [IsProper Y.hom] {u : I → (W ⟶ Y)} {b : I →₀ k} (hY_atlas : HasAtlas d (algPointsOf E (CommRingCat.of R) Y)) (hW_atlas : HasAtlas d (algPointsOf k (CommRingCat.of R) W)) (h_proj : HasProjEmbedding W.hom) (h_null : h ≤ d → ∀ q : ℕ, q ≤ d → ∀ x : HodgeH (freeAb.obj ((algPoints E (CommRingCat.of R)).obj Y)) q, (b.linearCombination k fun i : I ↦ hodgeTateMap h (x.map (freeAb.map ((algPoints E (CommRingCat.of R)).map (u i)))).baseChange) = 0) : IsNullFamily u b d h := by -- Apply a linear form taking point classes to one to the weighted pull-back of the diagonal. -- Künneth gives a polynomial with zero coefficient at h. The fixed-point formula computes its -- values from the tangent polynomials at the coincidences. let XY : CommAlg E ⥤ Type 1 := algPointsOf E (CommRingCat.of R) Y let XW : CommAlg k ⥤ Type 1 := algPointsOf k (CommRingCat.of R) W let D (f : W ⟶ Y) : XW ⟶ restrictAlg E k ⋙ XY := (algPoints k (CommRingCat.of R)).map f -- `IsNullFamily`: given `c`, the set `S` of pairs `(i, y)` with `c y = u i y` at a `k`-point -- `y`, and tangent polynomials `P` with `P(1) ≠ 0` at them (`hP`), the local terms add up to zero intro (c : W ⟶ Y) S (P : (Σ _ : b.support, PointsIn W (CommAlgCat.of k k)) → k[X]) (hP : ∀ y ∈ S, IsTangentPoly d (D c) (D (u y.fst)) y.snd (P y) ∧ (P y).eval 1 ≠ 0) -- `δ` is the class of the diagonal; `hδ` computes its pull-backs (`exists_diagonal_local_terms`) obtain ⟨δ, hδ⟩ := exists_diagonal_local_terms hY_atlas obtain ⟨φ, hφ⟩ : ∃ φ : Module.Dual k (PairH (freeAb XW)), ∀ z ∈ Set.range (pointClass d), φ (hodgeTateMap d z) = 1 := Module.exists_dual_forall_apply_eq_one (linearIndepOn_hodgeTateMap_pointClass h_proj) -- `Φ t i` is base change to `k` followed by pull-back along `(u i ∘ s_t, c)`. let Φ (t : k) (i : b.support) : HodgeH (freeAb.obj (XY ⊗ XY)) d →+ HodgeH (freeAb XW) d := (H.map hodgeCoeff (freeAb.map (scaledGraph t (D (u i)) (D c))) d).comp HodgeH.baseChange -- A coincidence `y` has Jacobian ratio `P y t / P y 1` and is reduced, so the coincidences of `c` -- and `u i` form a finite set `s i` of `k`-points. have h_ratio (y : Σ _ : b.support, PointsIn W (CommAlgCat.of k k)) (hy : y ∈ S) (t : k) : HasJacobianRatio (D (u y.fst)) (D c) d t ((P y).eval t / (P y).eval 1) y.snd := IsTangentPoly.hasJacobianRatio_eval_div (c := D c) (hP y hy).left hW_atlas.isChartCovered (hP y hy).right t obtain ⟨s, hs, hS⟩ := exists_coincidenceSet_of_isTangentPoly hW_atlas c (fun _ ↦ ULift.down_inj) hP have h_mem (i : b.support) (w : XW.obj (CommAlgCat.of k k)) (hw : w ∈ s i) : (⟨i, w⟩ : Σ _ : b.support, PointsIn W (CommAlgCat.of k k)) ∈ S := by rw [hS] simpa using hw have h_fix (i : b.support) (t : k) : Φ t i δ = ∑ w ∈ s i, ((P ⟨i, w⟩).eval t / (P ⟨i, w⟩).eval 1) • pointClass d w := (hδ (D (u i)) (D c) (s i) t (fun w ↦ (P ⟨i, w⟩).eval t / (P ⟨i, w⟩).eval 1) (hs i) fun w hw ↦ h_ratio ⟨i, w⟩ (h_mem i w hw) t).right obtain ⟨Q, hQ, hQeval⟩ := exists_polynomial_scaledGraph_coeff_eq_zero hY_atlas h_null c φ δ -- The diagonal formula identifies the polynomial by its values at every scale. have h_local : Q = ∑ i : b.support, ∑ w ∈ s i, (b i / (P ⟨i, w⟩).eval 1) • P ⟨i, w⟩ := by apply Polynomial.funext intro t change Q.eval t = _ rw [hQeval] change (∑ i : b.support, b i * φ (hodgeTateMap d (Φ t i δ))) = _ simp [h_fix, hφ, eval_finsetSum, mul_sum, div_eq_mul_inv, mul_comm, mul_left_comm] rw [hS] refine ⟨finite_toSet _, ?_⟩ rw [finsum_mem_coe_finset, sum_sigma] simpa [h_local, finsetSum_coeff, div_eq_mul_inv, mul_comm, mul_left_comm, mul_assoc] using hQ