Structured proof · Unit 147
lemma exchange_theorem
Space(E, n, s), V : Space(E, a, t), V' : Space(E, b, t'); \sigma : b \sqcup a \simeq n (so \mathit{rk} W = \mathit{rk} V + \mathit{rk} V'); suppose negCount(s) = negCount(t) + negCount(t') (hs), |a| = |b| + 2e for a natural number e (he), 2\cdotnegCount(s) + 2 \le |n| (hn); let \mu be weights with |n| \le 2\mu(v) + 2\cdotnegCount(s) at every infinite place v (h\mu), and v a rapid real datum (hv). There are a real C and a rapid real datum x such that for every modulus \mathfrak{m}, character \nu of U(1)(\mathbb{A}), and multiplicative character \chi of O_E/\mathfrak{m} with IsTameFor(\mathfrak{m}, \nu, \mu, \chi) (\mathfrak{m} \ne (1); \nu of weight \mu with tame part non-trivial exactly at the places of \mathfrak{m}; \chi the product of its local tame parts), writing \gamma = rankTwist(\nu^{-1}, n) = \nu^{-1}\upsilon^{\lfloor |n|/2\rfloor}: there is c \ne 0 with |c|^{2} = C\cdotlValueProd(places(\mathfrak{m}), \nu, e) = C\cdot(\prod_{w\in S} Nw)^{e^{2}}\cdot \prod_{j=1}^{e} |L^{S\cup \overline{S}}(j, BC \nu)|^{2}, S = places(\mathfrak{m}), where L^{S\cup \overline{S}}(\cdot, BC \nu) = \nu.L(S, \cdot) is the Hecke L-function of the base change x \mapsto \nu(x/\overline{x}) without the Euler factors at S and at the conjugate places (both products are 1 when e = 0), such that for all partners \Phi, \Psi for \chi over O_E/\mathfrak{m} with respect to \sigma (IsPartner ⊤ σ χ Φ Ψ) and every point g: thetaIntegral(W, V, \gamma, 1, modDatum(W, V, \mathfrak{m}, \Phi, x))(g) = c\cdot \int_{[U(V')]} pairTheta(V', W, \gamma, \gamma, modDatum(V', W, \mathfrak{m}, \Psi, v), (h, g)) \mathit{dh}. C and x are chosen once, before the triple (\mathfrak{m}, \nu, \chi); c depends on the triple only, and serves all partners and all g; only |c|^{2} is specified. Here |n| = 2|b| + 2e.exists_equalRankThetaRatio_value) and the exchange with implicit constant (exchange_of_partners) give the constant C_{0}/C; for tame (\mathfrak{m}, \nu, \chi), make the split tame character \mathfrak{c} with places those of \mathfrak{m}, read the identity for it, and transport partners and data from O_E/\mathfrak{m} to the local product at S by pulling them back along the surjective ring map \pi : O_S \to O_E/\mathfrak{m} through which the reduction factors (entry by entry on integral matrices, 0 elsewhere).Not a step of the proof: lines 19–21 are the rest of the statement, which ends before the
:=on line 21 (a second-reader message). The line census takes the:=oflet γ :=on line 19 for the start of the value, so the check requires these lines to be owned here. They state: \gamma =rankTwist(\nu^{-1}, n); there is c \ne 0 with |c|^{2} = C\cdotlValueProd(places(\mathfrak{m}), \nu, e) (= C\cdot(\prod_{w\in S} Nw)^{e^{2}}\cdot \prod_{j=1}^{e}|L^{S\cup \overline{S}}(j, BC \nu)|^{2}, S =places(\mathfrak{m})) such that for all \Phi, \Psi withIsPartner(\top, \sigma, \chi, \Phi, \Psi) and every g:thetaIntegral(W, V, \gamma, 1,modDatum(W, V, \mathfrak{m}, \Phi, x))(g) = c\cdot \intpairTheta(V', W, \gamma, \gamma,modDatum(V', W, \mathfrak{m}, \Psi, v), (h, g)) \mathit{dh} over [U(V')].The equal-rank value for W (
exists_equalRankThetaRatio_valuewith k = |n|/2 -negCount(s)): a rapid r_{0} and C_{0} \ne 0 withequalRankThetaRatio(hypSum(Unit, W), \mathfrak{c}, r_{0}) = C_{0} for every \mathfrak{c} (its two hypotheses are proved at the end).The exchange with implicit constant (
exchange_of_partners) for (V', W, V) and the splittingremovePlanes(W) ofhypSum(Unit, W) over W: C, a rapid x (r) and, for every \mathfrak{c}, constants with C|c|^{2} = \Pi(|a| - |n|/2)\cdotequalRankThetaRatioand the identity on partners (H).The set of places of \mathfrak{m}, as a finite set (o).
For \mathfrak{c}: c with the norm relation \mathit{hc} and the identity H (step 3); \Pi(e) > 0 (
lValueProdInt_pos); and the reading of the components at S (the maps m, \rho, k, k').Usesstep 3, step 6,
lValueProdInt_posunit 131,SplitTameChar.unit 104readsAt Unfold \Pi(e) =
lValueProd(S, \nu, e) (e \ge 0).Let \pi : O_S \to O_E/\mathfrak{m} be the surjective ring homomorphism from the integral ring O_S of the local product at S (the image of the integral adeles under
evalPlaces) to the modulus ring, through which the reduction \mathfrak{m}.reduction factors: \pi(evalPlaces(u)) =reduction(u) (RingHom.of the restrictedliftOfRightInverse evalPlaces, whose kernel lies in that of the reduction; the right inverse ofevalPlacesbuilt from the reading maps m, \rho, k is auxiliary). \pi goes from the local product to O_E/\mathfrak{m}, not the other way.Usesstep 7
\pi is compatible with the residues at every place i of S (
Modulus.).modulusResidue_reduction Lean states
modulusResidue _ (o.le i.2) (π u) = residueAt i uUsesstep 11
For index types n, n' and a function \Phi on matrices mod \mathfrak{m}: the adelic lift \mathfrak{m}.
liftFn(\Phi) equalsliftIntegralFn(\pi, \Phi) evaluated at the components at S: the pull-back of \Phi along \pi, entry by entry, on the integral matrices over O_S, extended by 0 off the integral locus (liftFn_apply).Lean states
𝔪.liftFn (Φ ∘ @vecToMat n n' _) = (liftIntegralFn π Φ <| vecToMat <| evalPlaces _ ∘ ·)Apply H to the lifts of \Phi and \Psi: the lift of \Psi is locally constant (
isSchwartzBruhat_liftFn), and the lifts are partners over O (IsPartner., which needs \pi : O_S \to O_E/\mathfrak{m} in this direction: \pi is a local homomorphism, an element whose image is a unit having non-zero residues and so being a unit (step 12); \pi is surjective, as the reduction is; and the local character of \mathfrak{c} is \chi \circ \pi on units, by a_{3} and step 12); by step 13 thelift_of_reduction modDatum's are the local data of H.Usesstep 7, step 12, step 13,
IsPartner.unit 112lift_of_reduction The remaining hypotheses (of steps 2 and 3, and the positive weights of \mathfrak{c}) hold by arithmetic with |n| = |a| + |b|.