module import Mathlib.Algebra.Azumaya.Basic import Mathlib.Algebra.Order.Star.Real import Mathlib.Topology.Sheaves.Presheaf public import Lib.General.Combinatorics public import Lib.General.LinearAlgebra.BlockEmbeddings public import Lib.Weil.Lift public import Lib.ClassField.HeckeL.EulerProduct import Lib.ClassField.HeckeCharacter.SplitTameCharacters import Lib.ClassField.HeckeL.ContinuationAtOne import Lib.General.LinearAlgebra.HermiteForm import Lib.Weil.DualPair.FiniteAction /-! # Hecke polynomials pass through a theta lift Let `w` be a split place of norm q, let S and T be hermitian spaces of ranks n and n + k, and let the characters `a`, `b` be unramified at `w`. On the vacuum at `w` of the Weil representation `New.pairWeil S T a b`, the Hecke operators of S and of T count subspaces of the kernels of an integral matrix and of its transpose modulo `w`. By the q-binomial theorem the Hecke polynomial for T at `w` is then the rescaled polynomial for S at w̄ times ∏_{l 0 for every τ in the CM type and (1 − ȷ⁻¹)/2 integral; a finite idele α for which the completed integers Ô are self-dual under (z, u) ↦ ψ_f(ȷαᾱzu); and a splitting character υ equal to −1 at uniformisers of the places w with w = w̄. * `New.ofSplitPlace`: the map GL_n(E_w) → G_f, g ↦ the unitary element that is g at w and 1 off w, w̄. * `New.LocField`: the completion E_w of E at the finite place w. ## Relation to the literature Known result: the unramified theta correspondence for GL_n, stated for operators. Compare R. Howe, θ-series and invariant theory, Corvallis 1979; S. Rallis, Langlands' functoriality and the Weil representation, Amer. J. Math. 104 (1982) 469–515, §6 I, pp. 500–501, there for the pair (GL_r, GL_n) and the whole Hecke algebras (normalisations not compared with those here); S. Kudla, On the local theta-correspondence, Invent. Math. 83 (1986). -/ @[expose] public section /-! ## The value at a uniformiser of the character attached to a character of [U(1)] In this section, `a` is a character of `[U(1)]` (`New.AutChar`), `n` is a finite index type of cardinality `N`, and `w` is a finite place. -/ /-- The complex number χ(ϖ_w)·q_w^{N/2}, where N is the cardinality of n, χ = `New.AutChar.spaceChar` a N is the Hecke character x ↦ a(x/x̄)υ(x)^{−N} and ϖ_w the chosen uniformiser at w. -/ noncomputable def New.AutChar.frobValue {E : Type} [Field E] [CMType E] [WeilData E] (a : AutChar E) (n : Type*) [Fintype n] (w : FinPlace E) : ℂ := (a.spaceChar (Fintype.card n)).atUniformizer w * √w.q ^ Fintype.card n /-- The Frobenius value is nonzero at every finite place. -/ @[simp] lemma New.AutChar.frobValue_ne_zero {E : Type} [Field E] [CMType E] [WeilData E] (a : AutChar E) (n : Type*) [Fintype n] (w : FinPlace E) : a.frobValue n w ≠ 0 := by simp [frobValue, HeckeChar.atUniformizer, w.ne_bot] /-! ## Transfer of Hecke polynomials through the Weil representation The Hecke polynomial `New.heckePolyOp π hw X` is the operator ∑_i (−X)^i q^(i choose 2) T_{w,i}; `New.heckePolyCoeff X U` = (−X)^i q^(i choose 2) for a subspace U of dimension i, and `New.basicCosetRep U` is a coset representative in T_{w,i} with kernel U mod w. Here `hw` is a proof that w is split. `New.pairWeil S T a b` is the Weil representation of U(S) × U(T) twisted by the characters a, b; a vacuum at w is a datum fixed by `projOn {w}`, the averaging operator over integral vectors at w and w̄; K_w = `New.maxCompactAt n w` is the part above w and w̄ of the maximal compact subgroup. -/ namespace New open Matrix Fintype WeilData AutChar HeckeChar Valued Space G CharUnramifiedAt open Finset hiding card section Transfer variable {E n m W Z : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] [Fintype m] [DecidableEq m] {w : FinPlace E} [AddCommGroup W] [Module ℂ W] [AddCommGroup Z] [Module ℂ Z] {π : Representation ℂ (Gf E n) W} {a b : AutChar E} {k : ℕ} /-! ### Hecke polynomials as sums over subspaces of the residue space -/ lemma FinPlace.coe_q_eq_sq_sqrt : (w.q : ℂ) = √w.q ^ 2 := mod_cast by simp /-- A Hecke character unramified at w takes at x ∈ E_w^× the value χ(ϖ_w)^(ord_w x). -/ lemma CharUnramifiedAt.apply_locFullIdele {χ : HeckeChar E} (h : CharUnramifiedAt (finPart χ) w) (x : (LocField w)ˣ) : χ.val (locFullIdele w x) = χ.atUniformizer w ^ (-(v x.val).log) := by -- Both sides are values of the finite part of `χ` at ideles concentrated at `w`. have h_locIdele : unitsMapNonUnital (singleAdele w) x = locIdele w x := rfl simpa [HeckeChar.atUniformizer, HeckeChar.finPart, locFullIdele, h_locIdele] using congrArg Units.val (h.apply_locIdele_eq_zpow x) omit [DecidableEq n] in /-- If the `i`-th term is the sum of `y U` over the subspaces `U` of 𝔽_w^n of dimension `i`, then the sum `New.heckePolyEval` is the sum of `heckePolyCoeff X U • y U` over all subspaces. -/ lemma heckePolyEval_sum_finrank_eq (y : Submodule (ResField w) (n → ResField w) → W) (X : ℂ) : heckePolyEval n w (fun i : ℕ ↦ ∑ U ∈ {U : Submodule (ResField w) (n → ResField w) | Module.finrank (ResField w) U = i}, y U) X = ∑ U : Submodule (ResField w) (n → ResField w), heckePolyCoeff X U • y U := by have h_dim (U : Submodule (ResField w) (n → ResField w)) : Module.finrank (ResField w) U ∈ range (card n + 1) := mem_range_succ_iff.mpr (U.finrank_le.trans_eq (Module.finrank_pi _)) rw [← sum_fiberwise_of_maps_to fun U _ ↦ h_dim U, heckePolyEval] simp only [smul_sum] refine sum_congr rfl fun i _ ↦ sum_congr rfl fun U hU ↦ ?_ rw [heckePolyCoeff, (mem_filter.mp hU).right, card_ResField] /-- On K_w-fixed vectors the Hecke polynomials at a split place w and at its conjugate are sums over the subspaces U of 𝔽_w^n, with coefficients `New.heckePolyCoeff` and coset representatives the transpose, respectively the inverse, of γ_U = `New.basicCosetRep U`. -/ lemma heckePolyOp_eq_sum (hw : w.IsSplit) {v : W} (hv : v ∈ sphericalAt π w) (X : ℂ) : heckePolyOp π hw X v = ∑ U : Submodule (ResField w) (n → ResField w), heckePolyCoeff X U • π (ofSplitPlace hw (transposeGL (basicCosetRep U))) v ∧ heckePolyOp π hw.star X v = ∑ U : Submodule (ResField w) (n → ResField w), heckePolyCoeff X U • π (ofSplitPlace hw (basicCosetRep U)⁻¹) v := by have hv_level : v ∈ levelSpace (π.comp (ofSplitPlace hw)) (localIntGL n w) := (mem_sphericalAt_iff hw).mp hv -- The operators `T_{w,i}` and `T_{w̄,i}` are sums over the subspaces `U` of dimension `i`. have h_at (i : ℕ) : heckeSplit π hw i v = ∑ U ∈ {U : Submodule (ResField w) (n → ResField w) | Module.finrank (ResField w) U = i}, π (ofSplitPlace hw (transposeGL (basicCosetRep U))) v := heckeGL_eq_sum hv_level have h_at_star (i : ℕ) : heckeSplit π hw.star i v = ∑ U ∈ {U : Submodule (ResField w) (n → ResField w) | Module.finrank (ResField w) U = i}, π (ofSplitPlace hw (basicCosetRep U)⁻¹) v := (heckeSplit_star hw i hv).trans (heckeFun_basicDoubleCoset_inv hv_level) simp only [← heckePolyEval_sum_finrank_eq] simp [heckePolyOp, heckePolyEval, h_at, h_at_star] @[simp] lemma HeckeChar.norm_atUniformizer (χ : HeckeChar E) (w : FinPlace E) : ‖χ.atUniformizer w‖ = 1 := Circle.norm_coe _ /-- If the base change of `a` is unramified at a split place `w` and `g` is supported there, its determinant character value is `a.baseChange.atUniformizer w` raised to `-(v (g.atPlace w).det.val).log`. -/ lemma CharUnramifiedAt.detFin_of_supportedAt (ha : CharUnramifiedAt a.baseChange.finPart w) (hw : w.IsSplit) {g : Gf E n} (hg : g ∈ Gf.supportedOn n {w}) (s : n → ℤˣ) : (a.val (detFin s g) : ℂ) = a.baseChange.atUniformizer w ^ (-(v (g.atPlace w).det.val).log) := by rw [detFin_of_mem_supportedOn (by simpa using hw) hg, detOn_singleton, ← AutChar.baseChange_apply_coe_toFun, ha.apply_locFullIdele] /-- If the base change of a is unramified at the split place w, then a ∘ det is trivial on K_w. -/ lemma CharUnramifiedAt.det_maxCompactAt_eq_one (ha : CharUnramifiedAt a.baseChange.finPart w) (hw : w.IsSplit) {g : Gf E n} {s : n → ℤˣ} (hg : g ∈ maxCompactAt n w) : a.val (detFin s g) = 1 := by obtain ⟨hg_Kf, hg_supp⟩ : g ∈ stdLevel E n ∧ g ∈ Gf.supportedOn n {w} := Subgroup.mem_inf.mp hg ext rw [ha.detFin_of_supportedAt hw hg_supp] -- The determinant of `g` at `w` is a unit, as `g` lies in `stdLevel`. simp [mem_intGL_iff_det.mp (mem_stdLevel_iff.mp hg_Kf w)] private lemma heckePolyCoeff_mul_pow {ι K : Type*} [Field K] (X c : ℂ) (U : Submodule K (ι → K)) : heckePolyCoeff X U * c ^ Module.finrank K U = heckePolyCoeff (X * c) U := by simp only [heckePolyCoeff, ← neg_mul, mul_pow, mul_right_comm] namespace SiegelWeil /-! ### The Hecke polynomials on the vacuum -/ /-- The product of `1 - q ^ j * X` over `j < k + l` splits into the first `k` factors and the product of length `l` at `q ^ k * X`. -/ lemma qPochhammer_add (q k l : ℕ) (X : ℂ) : qPochhammer q (k + l) X = qPochhammer q k X * qPochhammer q l ((q : ℂ) ^ k * X) := by simp only [qPochhammer, prod_range_add, pow_add, mul_assoc, mul_left_comm ((q : ℂ) ^ k)] open Classical in /-- The `q`-binomial theorem weighted by integrality at `w`. Let `y` be a matrix over `E_w` with columns indexed by `ι₂`, `c : ℂ`, and `γ_U = basicCosetRep U`. The sum over the subspaces `U` of `𝔽_w^ι₂` of `heckePolyCoeff X U * c ^ dim U` times the indicator that `y γ_U⁻¹` is integral is `qPochhammer q (card ι₂ - r) (X * c)` times the indicator that `y` is integral, where `r` is the rank of `y` modulo `w`. -/ private lemma sum_heckePolyCoeff_mul_ite_integral_eq {ι₁ ι₂ : Type} [Fintype ι₂] [DecidableEq ι₂] (X c : ℂ) (y : Matrix ι₁ ι₂ (LocField w)) : ∑ U : Submodule (ResField w) (ι₂ → ResField w), heckePolyCoeff X U * (c ^ Module.finrank (ResField w) U * if ∀ (i : ι₁) (j : ι₂), v ((y * (basicCosetRep U)⁻¹.val) i j) ≤ 1 then 1 else 0) = if ∀ (i : ι₁) (j : ι₂), v (y i j) ≤ 1 then qPochhammer w.q (card ι₂ - (y.map residueOrZero).rank) (X * c) else 0 := by -- Only the subspaces `U` of the kernel of `y` modulo `w` contribute, and only for integral `y`. have h_integral (U : Submodule (ResField w) (ι₂ → ResField w)) : (∀ (i : ι₁) (j : ι₂), v ((y * (basicCosetRep U)⁻¹.val) i j) ≤ 1) ↔ (∀ (i : ι₁) (j : ι₂), v (y i j) ≤ 1) ∧ U ≤ residueKer y := by rw [v_mul_inv_le_one_iff (basicCosetRep_mem_basicDoubleCoset U), residueKer_basicCosetRep U] have h_binom : ∑ U : Submodule (ResField w) (ι₂ → ResField w) with U ≤ residueKer y, heckePolyCoeff (X * c) U = qPochhammer w.q (card ι₂ - (y.map residueOrZero).rank) (X * c) := by rw [q_binomial_submodule, card_ResField, ← finrank_ker_mulVecLin] conv_rhs => rw [← mul_boole] simp only [h_integral, ← mul_assoc, heckePolyCoeff_mul_pow] by_cases hy : ∀ (i : ι₁) (j : ι₂), v (y i j) ≤ 1 · simp only [← h_binom, sum_filter, ite_eq_left hy, and_iff_right hy, mul_one, mul_boole] · simp [hy] omit [Fintype n] [DecidableEq n] [Fintype m] [DecidableEq m] in /-- An adelic matrix lies in the box of vectors integral at w if and only if its component at w has integral entries. -/ lemma matrixToVec_mem_integralBox_singleton (y : Matrix m n (𝔸f E)) : matrixToVec y ∈ integralBox (m × n) {w} ↔ ∀ (i : m) (j : n), v (y.map (evalAt w) i j) ≤ 1 := by simp [mem_integralBox, idem_mul_mem_Ô, matrixToVec, evalAt_apply] variable [WeilData E] {s : n → ℤˣ} {t : m → ℤˣ} {S : Space E n s} {T : Space E m t} {f : 𝒮 (S.hom T)} {p : ℂ → ℂ} omit [DecidableEq n] in /-- Let the base change of a be unramified at w, let χ = `a.spaceChar N` with N the cardinality of n, and let x ∈ E_w^× have order i. Then χ(x)·|x|^(−N/2) = z^i with z = `a.frobValue n w`. -/ lemma spaceChar_div_sqrt_ideleAbs_pow (ha : CharUnramifiedAt a.baseChange.finPart w) {x : (LocField w)ˣ} {i : ℕ} (hx : v x.val = WithZero.exp (-(i : ℤ))) : (a.spaceChar (card n)).val (locFullIdele w x) / (√(ideleAbs (locFullIdele w x)) : ℂ) ^ card n = a.frobValue n w ^ i := by have h_char : (a.spaceChar (card n)).val (locFullIdele w x) = (a.spaceChar (card n)).atUniformizer w ^ i := by simp [AutChar.spaceChar, ha.apply_locFullIdele, (charUnramifiedAt_upsilon w).apply_locFullIdele, hx, atUniformizer, mul_pow, pow_right_comm] have h_abs : √(ideleAbs (locFullIdele w x)) = (√w.q ^ i)⁻¹ := by simp [ideleAbs_locFullIdele, norm_locField_eq_q_zpow, hx, Real.sqrt_eq_rpow, ← Real.rpow_pow_comm, Real.inv_rpow] simp [h_char, h_abs, frobValue, mul_pow, pow_right_comm] /-- Translates of the vacuum at a split place `w`. Let `f` be fixed by `projOn {w}`, and let `g ∈ GL_n(E_w)` and `h ∈ GL_m(E_w)`. Under `pairWeil S T a b`, the pair `(g, h)` placed at `w` sends `f` to `schrodingerOp {w} Ψ f`, where for `x_w = (vecToMatrix x).map (evalAt w)` the value `Ψ(x)` is `(χ_a(det h) / χ_b(det g)) * (|det g| ^ (card m / 2) / |det h| ^ (card n / 2))` times the indicator that every entry of `h⁻¹ x_w g` has valuation at most `1` (lies in `𝒪_w`), for `χ_a = a.spaceChar (card n)` and `χ_b = b.spaceChar (card m)`. -/ lemma pairWeil_ofSplitPlace (a b : AutChar E) (hw : w.IsSplit) (hf : (S.hom T).projOn {w} f = f) (g : GL n (LocField w)) (h : GL m (LocField w)) : pairWeil S T a b ((1, ofSplitPlace hw g), 1, ofSplitPlace hw h) f = (S.hom T).schrodingerOp {w} (fun x : m × n → 𝔸f E ↦ ((a.spaceChar (card n)).val (locFullIdele w h.det) / (b.spaceChar (card m)).val (locFullIdele w g.det) * (√(ideleAbs (locFullIdele w g.det)) : ℂ) ^ card m / (√(ideleAbs (locFullIdele w h.det)) : ℂ) ^ card n) * if ∀ (i : m) (j : n), v ((h⁻¹.val * (vecToMatrix x).map (evalAt w) * g.val) i j) ≤ 1 then 1 else 0) f := by classical have h_loc_g : (ofSplitPlace hw g).val.val.map (evalAt w) = g.val := congrArg Units.val (atPlace_ofSplitPlace hw g) have h_loc_h : (ofSplitPlace hw h)⁻¹.val.val.map (evalAt w) = h⁻¹.val := by rw [← map_inv] exact congrArg Units.val (atPlace_ofSplitPlace hw h⁻¹) have h_integral (x : m × n → 𝔸f E) : matrixToVec ((ofSplitPlace hw h)⁻¹.val.val * vecToMatrix x * (ofSplitPlace hw g).val.val) ∈ integralBox (m × n) {w} ↔ ∀ (i : m) (j : n), v ((h⁻¹.val * (vecToMatrix x).map (evalAt w) * g.val) i j) ≤ 1 := by rw [matrixToVec_mem_integralBox_singleton, Matrix.map_mul, Matrix.map_mul, h_loc_h, h_loc_g] -- Write `f` as `schrodingerOp {w} Ψ f` with `Ψ` the indicator of the matrices integral at `w`; -- `pairWeil_schrodingerOp_of_mem_supportedOn` moves `Ψ` with local determinant scalars. nth_rw 1 [← hf] simp (disch := simp [hw]) only [← schrodingerOp_boxIndicator, detOn_singleton, pairWeil_schrodingerOp_of_mem_supportedOn, smul_schrodingerOp] congr 2 with x simp only [← h_integral] simp [boxIndicator] /-- Let w be split of norm q, let the base changes of a and b be unramified at w, and let f be a vacuum at w (fixed by `projOn {w}`). Let γ_U = `basicCosetRep U`, the representative, with kernel U mod w, of a coset in the double coset of diag(ϖ1_j, 1), where j = dim U. Let `segmentDatum d c` be `schrodingerOp {w} Ψ f` (`New.Space.schrodingerOp`), where Ψ(x) is ∏_{l