module import Mathlib.Algebra.Azumaya.Basic import Mathlib.RingTheory.Etale.Weakly public import Lib.Adelic.AutomorphicForms.PAdicGauge public import Lib.ClassField.HeckeCharacter.TameModulus public import Lib.General.LinearAlgebra.MatrixPolynomials public import Lib.Weil.Unramified.HeckeTransfer import Lib.ClassField.Avatar.HeckeBaseChange import Lib.PadicComparison.Descent.TestCategory import New.UpperBound.Kernels.DefiniteKernelSize /-! # The period of a determinant theta kernel (used in rank two for the L-value at z = 1) The period of a theta kernel for the pair `(I_n, I_n)` of standard definite spaces (`New.stdSpace`), with polynomial `∏ Ο„, det ^ c Ο„` and finite datum a character of the determinant modulo `π”ͺ`. * `New.Rows.detKernel`, `New.Rows.detPeriod`: the kernel on the finite adelic group and its class sum. * `New.Rows.detPeriod_eq_stdClassSum_sum`: the period is the class sum of the sums, over `GL_n(O/π”ͺ)`, of the kernel values for the indicator of the unit matrix. * `New.Rows.detPeriod_insert`: if `Ξ±` has weight `-c` and tame part `ψ` trivial outside `π”ͺ`, adding a prime `v` to `π”ͺ` multiplies the period by `∏ l < card n, (1 - q ^ l X)`. Here `q` is the norm of `v` and `X` is the inverse of the scalar `Ξ±.frobValue n v` (`New.AutChar.frobValue`). `New.stdClassSum K f` is the sum of `f g / #Aut g` over the classes of level `K`; `New.stdLevel` is the stabiliser of the standard lattice; `Ξ±.HasWeight e ψ` says that `Ξ±` has weight `e` and tame part `ψ`; `π”ͺ.places` is the set of primes of the modulus `π”ͺ` and `π”ͺ.charOfTamePart ψ` the character modulo `π”ͺ` made of `ψ`. Notions from other files: * `New.Modulus`: a nonzero ideal of O_E prime to its complex conjugate, that is, never divisible by both w and wΜ„. * `New.WeilData`: the fixed choices on the CM field E that define the Weil representations (a purely imaginary element, a self-dual finite idele and a splitting character). * `Ξ±.frobValue n v`: the number Ο‡(Ο–) q ^ (N/2), where N is the cardinality of `n`, Ο‡ is the Hecke character `Ξ±.spaceChar N`, Ο– a uniformiser at `v` and q the norm of `v`. ## Relation to the literature See `New.Congruences.Selmer.ClassSums`. -/ @[expose] public section namespace New.Rows open Matrix Finset Fintype RingHom Space SiegelWeil Set attribute [local instance low] Fintype.ofFinite variable {E : Type} {n : Type} [Field E] [CMType E] [WeilData E] [Fintype n] [DecidableEq n] {Ξ± : AutChar E} {c : NumberField.InfinitePlace E β†’ β„•} {π”ͺ π”ͺ' : Modulus E} {ψ : (w : FinPlace E) β†’ MulChar (ResField w) β„‚} section Definitions variable (n) (Ξ± : AutChar E) (c : NumberField.InfinitePlace E β†’ β„•) (π”ͺ : Modulus E) (ψ : (w : FinPlace E) β†’ MulChar (ResField w) β„‚) /-- The theta kernel (`New.modKernelStdSpace`) of the pair (I_n, I_n) of standard definite spaces, at the point (1, h) with h finite adelic. Both characters of the pair are Ξ±, the datum is the function Ξ¨ on matrices modulo π”ͺ and the polynomial is the product over Ο„ of the c_Ο„-th powers of the determinant of the matrix of variables at Ο„ (`New.Rows.variableMinor Ο„ id id`). The character Ξ± twists the Weil action, so the factor Ξ±(det h) is part of the kernel. -/ noncomputable def detKernel (Ξ¨ : Matrix n n π”ͺ.ResidueRing β†’ β„‚) : Gf E n β†’ β„‚ := fun g ↦ modKernelStdSpace (stdSpace E n) Ξ± Ξ± π”ͺ Ξ¨ (∏ Ο„ : NumberField.InfinitePlace E, variableMinor Ο„ id id ^ c Ο„) 1 g /-- The period: the class sum, at the level of the standard lattice, of `New.Rows.detKernel` for the datum `x ↦ Ο‡ (det x)`. Here `ψ` is a family of characters `ψ w` of the residue fields and `Ο‡` is the character modulo `π”ͺ` with local components `ψ w`. -/ noncomputable def detPeriod : β„‚ := stdClassSum (stdLevel E n) (detKernel n Ξ± c π”ͺ fun x ↦ π”ͺ.charOfTamePart ψ (det x)) end Definitions section omit [WeilData E] /-- For a square matrix `x` over the residue field at `v`, the product of `1 - q ^ l` over `l < card n - x.rank`, with `q = v.q` the norm of `v`, is the value of the trivial character at `det x`. So it is `1` if `x` is invertible and `0` otherwise. -/ lemma prod_range_corank_one_sub_q_pow (v : FinPlace E) (x : Matrix n n (ResField v)) : ∏ l ∈ .range (card n - x.rank), (1 - v.q ^ l : β„‚) = (1 : MulChar (ResField v) β„‚) x.det := by by_cases hx : IsUnit x Β· simp [rank_of_isUnit, hx, MulChar.one_apply ((isUnit_iff_isUnit_det x).1 hx)] Β· have h_corank : 0 < card n - x.rank := by simp [← finrank_ker_mulVecLin, pos_iff_ne_zero, coe_mulVecLin, LinearMap.ker_eq_bot, hx, mulVec_injective_iff_isUnit] rw [MulChar.map_nonunit _ (mt (isUnit_iff_isUnit_det x).2 hx)] -- the factor at `l = 0` vanishes exact prod_eq_zero (i := 0) (Finset.mem_range.2 h_corank) (by simp) /-- Let `ψ` be a family of multiplicative characters `ψ w` of the residue fields of `E`, and let `Ο‡` be the character modulo a modulus `𝔫` with local components `ψ w`. The lift to finite adelic matrices of `x ↦ Ο‡ (det x)` sends a matrix integral at all primes `w` of `𝔫` to the product of the `ψ w (det (S w))`, with `S w` its reduction at `w`, and every other matrix to `0`. -/ lemma liftFn_charOfTamePart_det_eq_residueDatum {ψ : (w : FinPlace E) β†’ MulChar (ResField w) β„‚} (𝔫 : Modulus E) : 𝔫.liftFn ((fun x : Matrix n n 𝔫.ResidueRing ↦ 𝔫.charOfTamePart ψ x.det) ∘ vecToMatrix) = residueDatum Subtype.val fun S : (w : 𝔫.places) β†’ Matrix n n (ResField w.val) ↦ ∏ᢠ w : 𝔫.places, ψ w (S w).det := by simpa [← mapMatrix_apply, ← map_det] using! liftFn_eq_residueDatum (π”ͺ := 𝔫) Subtype.range_coe.symm fun S ↦ ∏ᢠ w, ψ _ (det (n := n) (S w)) /-- Let `ψ` be a family of multiplicative characters `ψ w` of the residue fields of `E`. The residue datum (`New.residueDatum`) of a function at some places is that function of the reductions of an adelic matrix integral at these places, and `0` elsewhere. If the primes of `π”ͺ'` are those of `π”ͺ` and one new prime `v`, the datum of `S ↦ ∏ ψ w (det (S w))` over the primes `w` of `π”ͺ'` is the product of the datum of `ψ v ∘ det` at `v` and of the same datum over the primes of `π”ͺ`. -/ lemma residueDatum_singleton_mul {π”ͺ π”ͺ' : Modulus E} {ψ : (w : FinPlace E) β†’ MulChar (ResField w) β„‚} {v : FinPlace E} (hv : v βˆ‰ π”ͺ.places) (h_places : π”ͺ'.places = insert v π”ͺ.places) : (residueDatum (fun _ : Unit ↦ v) (fun S : Unit β†’ Matrix n n (ResField v) ↦ ψ v (S ()).det) * residueDatum Subtype.val fun S : (w : π”ͺ.places) β†’ Matrix n n (ResField w.val) ↦ ∏ᢠ w : π”ͺ.places, ψ w (S w).det) = residueDatum Subtype.val fun S : (w : π”ͺ'.places) β†’ Matrix n n (ResField w.val) ↦ ∏ᢠ w : π”ͺ'.places, ψ w (S w).det := by classical ext x -- integral at the places of `π”ͺ'` means integral at those of `π”ͺ` and at `v` have h_int : (βˆ€ (w : π”ͺ'.places) (p : n Γ— n), x p w ∈ LocInt w.val) ↔ (Unit β†’ βˆ€ p : n Γ— n, x p v ∈ LocInt v) ∧ βˆ€ (w : π”ͺ.places) (p : n Γ— n), x p w ∈ LocInt w.val := by simp only [Subtype.forall, h_places, forall_const] grind let ψDetAt (w : FinPlace E) : β„‚ := ψ w ((vecToMatrix x : Matrix n n (𝔸f E)).map (residueOrZero ∘ evalAt w)).det have h_prod : ∏ᢠ w : π”ͺ'.places, ψDetAt w = ψDetAt v * ∏ᢠ w : π”ͺ.places, ψDetAt w := by simp only [finprod_set_coe_eq_finprod_mem, h_places, finprod_mem_insert _ hv (Set.toFinite _)] simp only [Pi.mul_apply, residueDatum, ite_zero_mul_ite_zero] exact if_congr h_int.symm h_prod.symm rfl end /-- Let Ξ± have weight βˆ’c and tame part ψ. Then `detKernel n Ξ± c π”ͺ Ξ¨`, the theta kernel of the pair (I_n, I_n) with datum Ξ¨ modulo π”ͺ and polynomial ∏_Ο„ det ^ c_Ο„, is, as a function on the finite adelic points of U(I_n), invariant under left multiplication by rational points. -/ lemma detKernel_stdEmbFin_mul [hΞ± : Ξ±.HasWeight (fun Ο„ : NumberField.InfinitePlace E ↦ -c Ο„) ψ] (Ξ¨ : Matrix n n π”ͺ.ResidueRing β†’ β„‚) (Ξ³ : U (stdSpace E n).J) (g : Gf E n) : detKernel n Ξ± c π”ͺ Ξ¨ (stdEmbFin Ξ³ * g) = detKernel n Ξ± c π”ͺ Ξ¨ g := by set Q := ∏ Ο„ : NumberField.InfinitePlace E, variableMinor (n := n) (n' := n) Ο„ id id ^ c Ο„ with hQ -- Substituting `γ⁻¹` multiplies `Q = ∏ det ^ c` by `∏ (det Ξ³ ^ c)⁻¹`: this is -- `twoSidedSubst_stackedDetProd` for determinants without constant rows. have h_subst : twoSidedSubst (fun Ο„ ↦ γ⁻¹.val.val.map (Ξ¦ Ο„)) 1 Q = (∏ Ο„, (Ξ¦ Ο„ Ξ³.val.val.det ^ c Ο„)⁻¹) β€’ Q := by simpa [hQ, stackedDetProd, stackedDet, ← det_submatrix_equiv_self (.symm (.emptySum _ n)), ← map_det, ← mapMatrix_apply] using! twoSidedSubst_stackedDetProd (ΞΉ := fun Ο„ ↦ Fin (c Ο„)) (.emptySum Empty n) 0 (fun Ο„ ↦ γ⁻¹.val.val.map (Ξ¦ Ο„)) 1 -- Translating the kernel by `Ξ³` gives the factor `∏ det Ξ³ ^ c`, which cancels it. have h_transl : modKernelStdSpace (stdSpace E n) Ξ± Ξ± π”ͺ Ξ¨ Q 1 (stdEmbFin Ξ³ * g) = (∏ Ο„, Ξ¦ Ο„ Ξ³.val.val.det ^ c Ο„) * modKernelStdSpace (stdSpace E n) Ξ± Ξ± π”ͺ Ξ¨ (twoSidedSubst (fun Ο„ ↦ γ⁻¹.1.1.map (Ξ¦ Ο„)) 1 Q) 1 g := by simpa [Prod.mk_one_one, ← Pi.one_def] using! modKernelStdSpace_embFin_mul hΞ± hΞ± π”ͺ Ξ¨ Q 1 Ξ³ 1 g simp only [detKernel, ← hQ] rw [h_transl, h_subst] simp only [modKernelStdSpace, ← modKernelBilin_apply, map_smul, smul_eq_mul, prod_inv_distrib] exact mul_inv_cancel_leftβ‚€ (by simp [prod_ne_zero_iff, Ξ³.val.det_ne_zero]) _ /-- Let `Ξ±` have weight `-c` and tame part `ψ` trivial outside the primes of `π”ͺ`. Write `detKernel n Ξ± c π”ͺ Ξ¨` for the theta kernel of the pair `(I_n, I_n)` with characters `Ξ±`, datum `Ξ¨` modulo `π”ͺ` and polynomial `∏ Ο„, det ^ c Ο„`, a function on the finite adelic points of `U(I_n)`. The period `detPeriod n Ξ± c π”ͺ ψ` is its class sum, at the level of the standard lattice, for the datum `Ο‡ ∘ det`, with `Ο‡` the character modulo `π”ͺ` made of `ψ`. It equals the class sum of the function sending `g` to the sum, over `y` in `GL_n(O/π”ͺ)`, of the values at `g * liftMod y` of the kernel for the indicator of the unit matrix; `liftMod y` is a lift of `y` to the stabiliser of the standard lattice. -/ lemma detPeriod_eq_stdClassSum_sum [hΞ± : Ξ±.HasWeight (fun Ο„ : NumberField.InfinitePlace E ↦ -c Ο„) ψ] (hψ : βˆ€ w : FinPlace E, w βˆ‰ π”ͺ.places β†’ ψ w = 1) : detPeriod n Ξ± c π”ͺ ψ = stdClassSum (stdLevel E n) fun g : Gf E n ↦ βˆ‘ y : GL n π”ͺ.ResidueRing, detKernel n Ξ± c π”ͺ (Pi.single 1 1) (g * liftMod y) := by -- The character of the determinant is a combination of indicators of invertible matrices. have h_expand : (fun x : Matrix n n π”ͺ.ResidueRing ↦ π”ͺ.charOfTamePart ψ (det x)) = βˆ‘ y : GL n π”ͺ.ResidueRing, π”ͺ.charOfTamePart ψ y.1.det β€’ fun x ↦ if y.1 = x then 1 else 0 := by rw [pi_eq_sum_univ fun x : Matrix n n π”ͺ.ResidueRing ↦ π”ͺ.charOfTamePart ψ (det x), ← sum_of_injective _ Units.val_injective _ _ _ (fun _ ↦ rfl)] -- outside the image of `GL_n` the determinant is no unit, so the character vanishes there simp +contextual [← IsUnit.eq_1, MulChar.map_nonunit, isUnit_iff_isUnit_det] -- Translation by `liftMod y` turns the indicator of `1` into that of `y`, times the character. have h_move (g : Gf E n) (y : GL n π”ͺ.ResidueRing) : detKernel n Ξ± c π”ͺ (Pi.single 1 1) (g * liftMod y) = π”ͺ.charOfTamePart ψ y.1.det * detKernel n Ξ± c π”ͺ (fun x ↦ if y.1 = x then 1 else 0) g := by -- `↓`: the translation has to move to the datum before the kernel becomes bilinear in it simp +unfoldPartialApp [detKernel, ← modKernelBilin_apply, ↓modKernel_mul_stdLevel_right, hΞ±.apply_det_eq_charOfTamePart hψ, -coe_units_inv, Pi.single_apply] -- The kernel is linear in the datum. simp only [detPeriod, h_expand, h_move] simp +unfoldPartialApp [detKernel, ← modKernelBilin_apply] /-- Let `Ξ±` have weight `-c` and tame part `ψ` trivial outside the primes of `π”ͺ`. Write `detKernel n Ξ± c π”ͺ Ξ¨` for the theta kernel of the pair `(I_n, I_n)` of standard definite spaces with characters `Ξ±`, datum `Ξ¨` modulo `π”ͺ` and polynomial `∏ Ο„, det ^ c Ο„`, a function on the finite adelic points of `U(I_n)`. For the datum `x ↦ Ο‡ (det x)`, with `Ο‡` the character modulo `π”ͺ` made of `ψ`, it is invariant under right translation by the stabiliser `stdLevel E n` of the standard lattice. -/ lemma stdLevel_le_rightStabilizer_detKernel [hΞ± : Ξ±.HasWeight (fun Ο„ : NumberField.InfinitePlace E ↦ -c Ο„) ψ] (hψ : βˆ€ w : FinPlace E, w βˆ‰ π”ͺ.places β†’ ψ w = 1) : stdLevel E n ≀ rightStabilizer (detKernel n Ξ± c π”ͺ fun x : Matrix n n π”ͺ.ResidueRing ↦ π”ͺ.charOfTamePart ψ x.det) := by intro k hk g -- Right translation by `k` replaces the datum by `y ↦ Ξ± (det k) Ο‡ (det (k⁻¹ y))`. have h_datum : (Ξ±.val (detFin 1 k) : β„‚) β€’ (fun y : Matrix n n π”ͺ.ResidueRing ↦ π”ͺ.charOfTamePart ψ ((π”ͺ.reductionGL ⟨k, hk⟩)⁻¹.val * y).det) = fun y : Matrix n n π”ͺ.ResidueRing ↦ π”ͺ.charOfTamePart ψ y.det := by ext y simp [hΞ±.apply_det_eq_charOfTamePart hψ ⟨k, hk⟩, ← map_mul, ← det_mul] simp only [detKernel, modKernelStdSpace] rw [modKernel_mul_stdLevel_right (k := ⟨k, hk⟩), h_datum] /-- Let `Ξ±` have weight `-c` and tame part `ψ` trivial outside the primes of `π”ͺ`, and let the primes of `π”ͺ'` be those of `π”ͺ` and one new split prime `v`. Translate the datum of `Ο‡ ∘ det` modulo `π”ͺ`, with `Ο‡` the character made of `ψ`, in the Weil representation `pairWeil` by the transposed Hecke coset representative of a subspace `U` of `(O/v)^n`, placed at `v` in the unitary group by `ofSplitPlace`. The sum over `U` of these translates, with coefficients `heckePolyCoeff X U = (-X) ^ i * q ^ (i choose 2)` for `i = dim U`, `q` the norm of `v` and `X` the inverse of `Ξ±.frobValue n v`, is the datum of `Ο‡ ∘ det` modulo `π”ͺ'`. -/ lemma sum_heckePolyCoeff_smul_modDatum_eq_modDatum [hΞ± : Ξ±.HasWeight (fun Ο„ : NumberField.InfinitePlace E ↦ -c Ο„) ψ] (hψ : βˆ€ w : FinPlace E, w βˆ‰ π”ͺ.places β†’ ψ w = 1) {v : FinPlace E} (hv : v βˆ‰ π”ͺ.places) (h_places : π”ͺ'.places = insert v π”ͺ.places) (h_split : v.IsSplit) (P : Heisenberg.IsVacuum.Model (Fock.realHeisenberg (realSigns E (homSigns 1 1)))) : βˆ‘ U : Submodule (ResField v) (n β†’ ResField v), heckePolyCoeff (Ξ±.frobValue n v)⁻¹ U β€’ pairWeil (stdSpace E n) (stdSpace E n) Ξ± Ξ± ((1, 1), 1, ofSplitPlace h_split (transposeGL (basicCosetRep U))) (modDatum (stdSpace E n) (stdSpace E n) π”ͺ (π”ͺ.charOfTamePart ψ Β·.det) P) = modDatum (stdSpace E n) (stdSpace E n) π”ͺ' (π”ͺ'.charOfTamePart ψ Β·.det) P := by have h_conjDisjoint : (insert v π”ͺ.places).IsConjDisjoint := by simpa [h_places] using π”ͺ'.isConjDisjoint_places have h_unr : CharUnramifiedAt Ξ±.baseChange.finPart v := hΞ±.charUnramifiedAt (hψ v hv) (by simp_all) -- The datum for `π”ͺ` is the vacuum at `v`, which lies outside `π”ͺ.places` and its conjugate. set f := modDatum (stdSpace E n) (stdSpace E n) π”ͺ (π”ͺ.charOfTamePart ψ Β·.det) P with hf have h_vac : ((stdSpace E n).hom (stdSpace E n)).projOn {v} f = f := by rw [hf, modDatum, projOn_integrated, projOn_schrodingerOp_vacElem _ (show Disjoint π”ͺ.places.conjClosure {v} by aesop)] -- Hence the sum puts in, at `v`, the product of `1 - q ^ l` over `l < corank`. This is the -- indicator of the invertible matrices, that is `ψ v ∘ det`, as `ψ v` is trivial. rw [(sum_heckePolyCoeff_smul_pairWeil h_unr h_unr h_split h_vac (Ξ±.frobValue n v)⁻¹).1] have h_local (x : Matrix n n (ResField v)) : ∏ l ∈ .range (card n - x.rank), (1 - v.q ^ l : β„‚) = ψ v x.det := by rw [hψ v hv, prod_range_corank_one_sub_q_pow] simp only [hf, modDatum, integrated_schrodingerOp, qPochhammer, inv_mul_cancelβ‚€ (Ξ±.frobValue_ne_zero n v), mul_one, h_local, liftFn_charOfTamePart_det_eq_residueDatum] -- The functions put in by `schrodingerOp` at `v` and at `π”ͺ.places` join to one function at -- `π”ͺ'.places = {v} βˆͺ π”ͺ.places`. rw [← residueDatum_singleton_mul hv h_places, h_places, ← Set.singleton_union] have : IsSchwartzBruhat {v} (residueDatum (fun _ : Unit ↦ v) fun x : Unit β†’ Matrix n n (ResField v) ↦ ψ v (x ()).det) := by simpa using isSchwartzBruhat_residueDatum (w := fun _ : Unit ↦ v) (fun x : Unit β†’ Matrix n n (ResField v) ↦ ψ v (x ()).det) (by simpa) have : IsSchwartzBruhat π”ͺ.places (residueDatum (Subtype.val : π”ͺ.places β†’ FinPlace E) fun S ↦ ∏ᢠ w : π”ͺ.places, ψ w (S w : Matrix n n (ResField (w : FinPlace E))).det) := by rw [← liftFn_charOfTamePart_det_eq_residueDatum (n := n) (ψ := ψ) π”ͺ]; infer_instance exact (schrodingerOp_union (S := {v}) _ h_conjDisjoint (disjoint_singleton_left.2 hv) _).symm /-- Let `Ξ±` have weight `-c` and tame part `ψ` trivial outside the primes of `π”ͺ`, and let the primes of `π”ͺ'` be those of `π”ͺ` and one new prime `v`, of norm `q`. Let `X` be the inverse of `Ξ±.frobValue n v`, which is the value at a uniformiser at `v` of the Hecke character `Ξ±.spaceChar N` times `q ^ (N/2)`, where `N = card n`. Then the period for `π”ͺ'` is `∏ l < N, (1 - q ^ l X)`, which is `qPochhammer q N X`, times the period for `π”ͺ`. The factor is the sum, over the subspaces `U` of `(O/v)^n`, of the coefficients `heckePolyCoeff X U`, evaluated by the q-binomial theorem. -/ lemma detPeriod_insert [h : Ξ±.HasWeight (fun Ο„ : NumberField.InfinitePlace E ↦ -c Ο„) ψ] (hψ : βˆ€ w : FinPlace E, w βˆ‰ π”ͺ.places β†’ ψ w = 1) (v : FinPlace E) (hv : v βˆ‰ π”ͺ.places) (h_places : π”ͺ'.places = insert v π”ͺ.places) : detPeriod n Ξ± c π”ͺ' ψ = qPochhammer v.q (Fintype.card n) (Ξ±.frobValue n v)⁻¹ * detPeriod n Ξ± c π”ͺ ψ := by -- The datum for `π”ͺ'` is a combination of translates of that for `π”ͺ`, and a translate has the -- same period. The new prime `v` splits, as `π”ͺ'` is prime to its conjugate. have h_split : v.IsSplit := fun h_conj_eq ↦ π”ͺ'.isConjDisjoint_places.notMem_of_mem_left (a := v) (by simp [h_places]) (by simp [*]) -- `Ξ³ U` is the transpose of the Hecke coset representative at `v` attached to `U`. let Ξ³ (U : Submodule (ResField v) (n β†’ ResField v)) : Gf E n := ofSplitPlace h_split (transposeGL (basicCosetRep U)) let X : β„‚ := (Ξ±.frobValue n v)⁻¹ -- Applying the theta functional to the identity of the data gives that of the kernels. have h_kernel (g : Gf E n) : detKernel n Ξ± c π”ͺ' (π”ͺ'.charOfTamePart ψ Β·.det) g = βˆ‘ U, heckePolyCoeff X U * detKernel n Ξ± c π”ͺ (π”ͺ.charOfTamePart ψ Β·.det) (g * Ξ³ U) := by simp only [detKernel, modKernelStdSpace, modKernel] rw [← sum_heckePolyCoeff_smul_modDatum_eq_modDatum (Ξ± := Ξ±) (c := c) hψ hv h_places h_split] simp [pairTheta, rep_apply_apply, Prod.mk_one_one, X, Ξ³] -- The kernels have level `stdLevel`, so the class sums are integrals, which do not see -- translations. have h_level : stdLevel E n ≀ rightStabilizer (detKernel n Ξ± c π”ͺ (π”ͺ.charOfTamePart ψ Β·.det)) := stdLevel_le_rightStabilizer_detKernel hψ have h_level' : stdLevel E n ≀ rightStabilizer (detKernel n Ξ± c π”ͺ' (π”ͺ'.charOfTamePart ψ Β·.det)) := stdLevel_le_rightStabilizer_detKernel fun w hw ↦ hψ w (by simp_all) have h_smooth : detKernel n Ξ± c π”ͺ (π”ͺ.charOfTamePart ψ Β·.det) ∈ smoothInvariants (stdSpace E n).Ξ“f := ⟨forall_mem_range.2 (detKernel_stdEmbFin_mul _), Subgroup.isOpen_mono h_level isOpen_stdLevel⟩ rw [detPeriod, stdClassSum, ← classIntegral_eq_classSum h_level', classIntegral_sum univ (fun U ↦ .mulLeft (heckePolyCoeff X U)) Ξ³ (fun _ ↦ h_smooth) h_kernel] -- The coefficients add up to the product by the `q`-binomial theorem. have h_coeff : βˆ‘ U : Submodule (ResField v) (n β†’ ResField v), heckePolyCoeff X U = qPochhammer v.q (card n) X := by simpa [← card_ResField] using q_binomial_submodule n (ResField v) ⊀ X simp [detPeriod, ← sum_mul, classIntegral_eq_classSum h_level, h_coeff, X] end New.Rows