Structured proof · Unit 147
lemma Data.IsTidy.exists_square_move
GridDatum(\vartheta); nodes p, v, Q, U, R, r; a finite type T, a type J; bijections \tau : GridIndex(z, a, b) \simeq NodeIndex(U), \sigma : NodeIndex(p) \sqcup T \simeq NodeIndex(Q), \rho : NodeIndex(r) \sqcup T \simeq NodeIndex(R); an additive character \psi of the residue ring; a multiplicative character \chi, a bijection \varepsilon and a constant C; and families L(i), M(i), i \in J, with SquareLaw(\chi, \varepsilon, C, L(i), M(i)) for all i (q). Assume (hQ) every admissible family g has g(R) = blockInlGL(\rho, g(r)) and, for every k, the family u = g updated at p by k and at Q by blockInlGL(\sigma, k) is admissible with u(p) = k; (h) U \ne v, (Q, U) is a \mu-edge and (U, R) is not, or (p, v) is and (v, r) is not, the nodes U, R, v, r have index pairs at most (m, m) and are different from p and Q, and every edge of w has source outside \{p, Q\} and target outside \{p, Q, R, r\}; (H) \Lambda is tidy of order n on w \cup \{(p, v), (Q, U)\}; and (X) \chi = (edgeChar(\vartheta, (p, v))\cdotedgeChar(\vartheta, (Q, U)))^{-1}, edgeChar(\vartheta, (U, R)) = edgeChar(\vartheta, (p, v)) and edgeChar(\vartheta, (v, r)) = edgeChar(\vartheta, (Q, U)). Then there is \Phi, tidy of order n + 2 on w \cup \{(U, R), (v, r)\}, such that for every f(S, k) \in J depending only on the values of S on w: \Lambda(S \mapsto \sum_{k} \psi(\operatorname{tr}(k\cdot x_{2}))\cdot M(f(S, k))((S(p, v); x_{1}))) = C\cdot \Phi(S \mapsto L(f(S, x'_{2}))((S(v, r) | x'_{1}))), where x = S(Q, U) reindexed by \tau, \sigma with column blocks x_{1}, x_{2} and x' = S(U, R) reindexed by \rho, \tau with row blocks x'_{1}, x'_{2}.graphKernel \chi \varepsilon, a weight d and the Fourier factor \psi: tidiness from the equivariance of the kernel and the averaging property of d; the identity from exists_partner_kernel (L' = c\sum \delta L) applied term by term in the short sum of \Lambda.Not a step of the proof: lines 253–254 are the rest of the statement, which ends before the
:=on line 254 (a second-reader message). The line census takes the:=oflet x :=on line 253 for the start of the value, so the check requires these lines to be owned here. They state: the right side of the identity, C\cdot \Phi(S \mapsto L(f(S, x'_{2}))((S(v, r) | x'_{1}))), x' = S(U, R) reindexed by \rho, \tau with row blocks x'_{1}, x'_{2}.Unpack the hypotheses: U \ne v (uv), the \mu-edge alternative (\mu), the bounds on the nodes (
bQ), the conditions on w (hw); the short-sum presentation of \Lambda (W, c, s, the root-of-unity and left-inverse property \mathit{hc}, and \Lambda = \sum c\cdot f(s), h\Lambda); and the partner kernel for \chi, \varepsilon over the residue ring (a valuation pair,Modulus.): a weight d with the root-of-unity and left-inverse properties (d_{1}), its average equal to the kernel, and L' = c\sum \delta L underisValuationPair_resRing SquareLaw(d_{4}) (exists_partner_kernel).Uses
exists_partner_kernelunit 147,Modulus.unit 38isValuationPair_resRing Simplify these hypotheses (left inverses on \mu-edges, products of pairs).
Let y(S) =(S(p, v); first column block of S(Q, U) reindexed by \tau, \sigma).
Let t(S, M) be the tuple equal to S on w and to M_{1} on (U, R), M_{2} on (v, r), 0 elsewhere.
Equivariance of G: for every admissible g, every k \in \mathrm{GL}(
NodeIndex(p)), every weight d and f: G(d moved byblockGL(g(v), g(U)) and k)(f\circtupleAction(g)) =edgeCharProd(g, w \cup \{(U, R), (v, r)\})\cdot G(d)(f).Lean states
G (d <| (blockGL (g v, reindexGL τ.symm (g U)))⁻¹.1 * · * k.1) (f <| tupleAction g ·) = edgeCharProd g (insert (U, R) (insert (v, r) w)) * G d fUsesstep 6
Write
edgeCharProd(g, \ldots) as a quotient timesedgeCharProdof the updated family on w \cup \{(p, v), (Q, U)\}, and use the equivariance of \Lambda (H) for the admissible updated family (hQ).Expand G with the short sum of \Lambda and the equivariance of
graphKernelunderblockGL(g(v), g(U)), g(r), k (graphKernel_equivariant).Change variables in the sum over the matrices M by M \mapsto(g(R)^{-1}M_{1}g(U), g(r)^{-1}M_{2}g(v)), a bijection (
injective_gl_inv_mul_mul).Compare the summands: the moved tuples and the reindexed blocks agree (
tupleAction, reindexing by \sigma, \rho, \tau).The tuples t agree pointwise (piecewise and update).
Case by case on the edge (subst of the equal nodes).
The character factors: by X, \mathit{hw} and U \ne v the edge characters of the new edges equal those of the old ones.
Clear denominators (the character values are non-zero).
If S(Q, U) has a left inverse, so does the second row block of y(S).
Lean states
HasLeftInv (S (Q, U)) → HasLeftInv (y S).toRows₂Usesstep 4
Take \Phi = G(1): it is equivariant (step 7 with d = 1), and G(1) = G(d) (left open) is a short sum of order n + 2 on the new edges by
Data.(|matrices on two edges| \leIsShortSum. bind tupleBound^{2},Data.), provided the weights are roots of unity with left-invertible tuples (left open); the identity remains.card_matrix_le_tupleBound Usesstep 7,
Data.unit 147,IsShortSum. bind Data.unit 147card_matrix_le_tupleBound G(1) = G(d): average the equivariance of step 7 over k \in \mathrm{GL}(
NodeIndex(p)) with g = 1; the average of d(y\cdot k) times the kernel is the kernel (d_{1}).Usesstep 7
The weights are roots of unity and the tuples left invertible on the \mu-edges: from d_{1} (the product of the kernel weight with a value of \psi, a root of unity in a finite group), the left-inverse transfer of d_{1} and step 8.
Usesstep 8
The identity: expand both sides by the short sum of \Lambda (h\Lambda) and compare term by term.
For each term: if c(i) = 0 both sides vanish; otherwise the tuple s(i) is left invertible on the \mu-edges (hc), so
exists_partner_kernel(d_{4}) applies to the square law q at y(s(i)): M = C\cdot \sum \delta \cdot L; then sum over the blocks (sum_eq_sum_fromRows,sum_eq_sum_fromCols), using that f depends only on w (hL).Usesstep 2, step 8,
sum_eq_sum_fromRowsunit 147,sum_eq_sum_fromColsunit 147