What it saysLet F be a semilocal field, a, b, n finite index types, \chi a multiplicative character of F which is tame (h\chi), e : b \sqcup a \simeq n, X any type and \Lambda a linear map from complex functions on a \times n matrices to functions X \to \mathbb{C} such that \chi(\det g)\cdot \Lambda(\Phi(g\cdot)) = \Lambda(\Phi) for every g \in \mathrm{GL}_a(F) and every Schwartz–Bruhat \Phi supported on surjective matrices (h\Lambda). Then there is a linear map T from complex functions on n \times b matrices to functions X \to \mathbb{C} with T(\Psi) = \Lambda(\Phi) for every pair (\Phi, \Psi) in matchingPairs(\chi, e).
The argument in briefDefine T(\Psi) as \Lambda of the function x \mapsto \chi(\det k_x)\cdotlocalSection(\chi, firstCols(e, k_x))(\Psi) on primitive x (k_x \in \mathrm{GL}_n(O) with x =invLastRows(e, k_x)); for a matched pair, cover the support of \Phi by finitely many translates of the primitive set and use the invariance of \Lambda.
For every x whose transpose is primitive choose k(x) \in \mathrm{GL}_n(O) with x =invLastRows(e, k(x)) (exists_invLastRows_iff_transpose, IsValuationPair.exists_firstCols_iff; K).
Choose representatives r_q of \mathrm{GL}_a(F)/\mathrm{GL}_a(O) with the properties of exists_common_coset_reps (S: finite sums; R: for every left-invertible y, exactly one q with y\cdot r_q primitive and exactly one q with y\cdot r_q^{-1} primitive, the representatives serving both directions).
For every coset q, the function x \mapsto \Phi(x)\cdot [x^{\mathsf{T}}\cdot r_q^{-1} primitive] (\Phi cut down to the preimage of the primitive set under x \mapsto x^{\mathsf{T}}\cdot r_q^{-1}; Lean's (r q).2 is the inverse of r_q) is Schwartz–Bruhat: an indicator of a clopen set (TameLocalChar.isClopen_primitive) times \Phi.
For every x in the support of \Phi choose its coset p(x), the unique q with x^{\mathsf{T}}\cdot r_q^{-1} primitive (U: the uniqueness in that direction).
\Lambda(\Phi) = \sum_{q\in t} \Lambda(cut-down of \Phi at q), and by the invariance h\Lambda applied to transposeGL(r_q) each term is \Lambda of the function x \mapsto \chi(\det r_q)\cdot(cut-down at q)(r_q^{\mathsf{T}}\cdot x), whose indicator [(r_q^{\mathsf{T}}x)^{\mathsf{T}}\cdot r_q^{-1} primitive] = [x^{\mathsf{T}} primitive] (the weighted change of variables is by r_q^{\mathsf{T}}); it remains to compare the summed functions pointwise in x.
If x^{\mathsf{T}} is primitive: by the matching identity h at k(x) and the finite-sum property S, the value is \chi(\det k(x))\cdotlocalSection(\chi, firstCols(e, k(x)))(\Psi) (K).
The remaining pointwise identities: only the term q = p(x) of the sum over t survives (Finset.sum_eq_single, by the uniqueness U), and outside the primitive set both sides vanish.