Test vectors, and the regular Hecke element that does not kill them
Lib.Shimura.TraceFormula.TestFunction.lean
Reading
Upstream documentation written by Claude
A test vector has a cuspidal type at one split place and is spherical at another.
New.Variety.exists_local_hecke_element: a Hecke element that averages against a character at one place.New.Variety.exists_test_function: the test functionb₁ b₀, withb₀averaging against the type atw₀andb₁acting as a central translate of an injective operatorU_tatw₁.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Conventions: New.Variety.levelGU is the principal level K(𝔑), New.Variety.conjAtSplit embeds
GL(E_w) at a split place w into the adelic group, New.Variety.GU is the group of similitudes
of the standard form, New.proIwahori is the pro-p Iwahori subgroup, and New.Variety.heckeAlgebra
is the Hecke algebra inside the group ring, acting through asAlgebraHom.
Notions from other files:
New.Variety.SplitFinPlace: The finite places w of E with w̄ ≠ w, that is, those split over the maximal real subfield.New.Variety.IsRegularHecke: f is regular if f(x⁻¹y⁻¹x) ≠ 0, with y in GL_n(E) and x adelic, forces the characteristic polynomial of y to be separable.New.Variety.dualComponent: The inverse transpose of the component at a split place; a left inverse ofNew.Variety.conjAtSplit.New.iwahoriHeckeHom: t ↦ U_t, the mean overNew.proIwahoricomposed with the action of a dominant diagonal t, on the vectors fixed byNew.proIwahori.New.Variety.GUPlus: The monoid of similitudesgwhose inverse has integral entries, that is, which enlarge the standard lattice.
Relation to the literature
Known; see Lib.Shimura.TraceFormula.MarkedDefiniteSums for sources.
Declarations
theorem exists_test_function {w₀ w₁ : SplitFinPlace E} {J : Subgroup (GL (Fin a) (LocField w₀.val))} {χ : J →* ℂ} {π : Representation ℂ (GL (Fin a) (𝔸f E)) W} {φ : W} (hφ_lev : φ ∈ levelSpace π (levelGU (Fin a) 𝔑)) (hφ_test : IsTestVector 𝔑 π φ w₀ w₁ χ) {c : heckeAlgebra (Fin a) ℂ 𝔑} (hc : c.val ∈ spanOn ℂ (GU E (Fin a) ⊓ (dualComponent w₁).ker).carrier) (hcφ : π.asAlgebraHom c φ = φ) : ∃ b : heckeAlgebra (Fin a) ℂ 𝔑, ∀ m : ℕ, π.asAlgebraHom ((b * c) ^ m).val φ ≠ 0 ∧ IsRegularHecke ((b * c) ^ (m + 1)) ∧ ((b * c) ^ (m + 1)).val ∈ fixedToEigen (levelGU (Fin a) 𝔑) (conjAtSplit w₀) J χ
Import route to Main
Lib.Shimura.TraceFormula.TestFunction → Lib.Shimura.Transfer.WeightOccurs (pinned import) → Lib.GaloisRep.Main.SeedRepresentation (pinned import) → Lib.GaloisRep.Main.SplitCase (pinned import) → Lib.GaloisRep.Main.OddRank (pinned import) → Lib.ClassField.Avatar.LocalGlobalCompatibility (pinned import) → Lib.GaloisRep.Main.AllRanks (pinned import) → Lib.GaloisRep.TaylorWiles (pinned import) → New.Congruences.FirstOrder.TrianglePrimes (pinned import) → New.Congruences.FirstOrder.DenominatorBound (pinned import) → New.Congruences.FitTwistsExist (pinned import) → New.Determinant.Twist.LongForms (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)