Structured proof · Unit 147
lemma exchange_of_partners
Space(E, n, s), X : Space(E, m, s'), U : Space(E, b, u); \mu weights; A a base-adapted splitting of hypSum(Unit, X) (X plus one hyperbolic plane) over W along p; V : Space(E, r, t); \sigma : b \sqcup r \simeq n; z, y rapid real data (r_{1}, \mathit{hy}); 1 + negCount(s') = |p| + negCount(t) + negCount(u) (\mathit{hs}, by default proved by simp) and |n| even (\mathit{hn}, by default proved by simp). There are a real C and a rapid real datum v such that every split tame character \mathfrak{c} of weight \mu, with \gamma = rankTwist(\nu_{\mathfrak{c}}^{-1}, n), has c \in \mathbb{C} with C\cdot |c|^{2} = lValueProdInt(\mathfrak{c}, |r| - |n|/2)\cdotequalRankThetaRatio(hypSum(Unit, X), \mathfrak{c}, z) and, for all partners \Phi, \Psi for \chi_{\mathfrak{c}} over O with respect to \sigma with \Psi locally constant and every point g: thetaIntegral(W, V, \gamma, 1, localDatum(W, V, v, \Phi, readsAt(\mathfrak{c})))(g) = c\cdot \int_{[U(U)]} pairTheta(U, W, \gamma, \gamma, localDatum(U, W, y, \Psi, readsAt(\mathfrak{c})), (h, g)) \mathit{dh}.flipSpace U); build matched data at the top of the tower (exists_stdExchange_top after exists_rapid_with_realSlice), descend by removing the planes of A, and extend the identity from standard data to all partners with the equivariant lift (partner_mem_of_stdColDatum).Not a step of the proof: lines 102–105 are the rest of the statement, which ends before the
:=on line 105 (a second-reader message). The line census takes the:=oflet γ :=on line 102 for the start of the value, so the check requires these lines to be owned here. They state: \gamma =rankTwist(\nu_{\mathfrak{c}}^{-1}, n); there is c with C\cdot |c|^{2} =lValueProdInt(\mathfrak{c}, |r| - |n|/2)\cdotequalRankThetaRatio(hypSum(Unit, X), \mathfrak{c}, z) such that for all \Phi, \Psi with \Psi locally constant andIsPartner(O, \sigma, \chi_{\mathfrak{c}}, \Phi, \Psi), and every g:thetaIntegral(W, V, \gamma, 1,localDatum(W, V, v, \Phi,readsAt(\mathfrak{c})))(g) = c\cdot \intpairTheta(U, W, \gamma, \gamma,localDatum(U, W, y, \Psi,readsAt(\mathfrak{c})), (h, g)) \mathit{dh} over [U(U)].Let f be the flip of coordinates from \operatorname{Hom}(U, W) to \operatorname{Hom}(W,
flipSpace(U)) (conjugating the coordinates with the norm-one element).The flipped datum f(y) is rapid: the flip preserves the weighted norms (it is a measure-preserving isometry of the Fock models,
Heisenberg.).IsVacuum. measurePreserving_equiv Lean states
IsRapidDatum (f.realMap y)Usesstep 2
exists_rapid_with_realSlicefor the opposite splitting of A and a smooth non-negative bump u with u(0) \ne 0: a rapid w (a) whose slice at 0 is f(y) (e).exists_stdExchange_topat the top of the tower (hypSum(Unit, X) over X along a line,flipSpace(U)): x and x' with slice w at 0 andStdExchangewith the ratioequalRankThetaRatio(hypSum(Unit, X), \cdot, z) (H); and |n| = 2k (hn).Descend by removing the planes of A (
exists_stdExchange_removing_planes, part (1)), identifying the slices (slice_zero_comp):StdExchangefor (W, V,flipSpace(U)) with a rapid datum \mathit{rv}, a constant C and constants c(\mathfrak{c}) with identities K on standard data.Usesstep 4, step 5,
exists_stdExchange_removing_planesunit 147,slice_zero_compunit 147Let t be the component at S of the norm-one element (used by the flip).
The flip of theta kernels (
exists_pairTheta_flip: |d| = 1 and the flipped kernel is d times the kernel of (U, W)); the reading map r; and the equivariant lift (M, \mathcal{D}) ofthetaLarge- c(\mathfrak{c})\cdotthetaSmallfor (W, V,flipSpace(U)) (exists_isEquivariantLift; R).Usesstep 3, step 6,
exists_pairTheta_flipunit 43,exists_isEquivariantLiftunit 147Take c' = c(\mathfrak{c})\cdot \chi_{\mathfrak{c}}(t)^{|b|}\cdot d: since |\chi_{\mathfrak{c}}(t)| = |d| = 1 (
TameLocalChar.), the norm relation is that of step 6; fix partners \Phi, \Psi (m: \Psi locally constant; P) and g.norm_eq_one The local datum of the flipped pair with \Psi(\cdot^{\mathsf{T}}) equals \chi_{\mathfrak{c}}(t)^{|b|} times the flip of the local datum of (U, W) with \Psi: naming commutes with the flip (
map_integrated,map_name) and the partner \Psi transforms by \chi under the scalar t (IsPartner.).right_mul Lean states
localDatum W (flipSpace U) (f.realMap y) (Ψ ·ᵀ) r.star = 𝔠.χ t ^ card b • f.map (localDatum U W y Ψ r)\mathcal{D}\Psi = 0: M \cap ker \mathcal{D} is \mathrm{GL}-stable (
IsEquivariantLift.) and contains the standard datum of the primitive matrixcomp_mul_mem_ker firstCols(\sigma, 1) (by K,isPrimitiveMatrix_firstCols), hence contains \Psi (partner_mem_of_stdColDatum); sothetaLarge(\Phi) = c(\mathfrak{c})\cdotthetaSmall(\Psi), which, multiplied by the character value at \det g and rewritten with the flip, step 12 and the integral over the opposite space (isForm_neg_iff_and_integral_neg), is the claim.Usesstep 6, step 9, step 12,
IsEquivariantLift.unit 38,comp_mul_mem_ker isPrimitiveMatrix_firstColsunit 112,partner_mem_of_stdColDatumunit 147,isForm_neg_iff_and_integral_negunit 147The remaining identities of integrands are field identities.