diff 4a958d5..7458d43 exact_dft_power_saving_v2.txt
diff --git a/exact_dft_power_saving_v2.txt b/exact_dft_power_saving_v2.txt
index 75ad3b7..95be77d 100644
--- a/exact_dft_power_saving_v2.txt
+++ b/exact_dft_power_saving_v2.txt
@@ -48,6 +48,8 @@ Lemma. For arbitrary initial auxiliary values the forward invocation sends $(x,y
Proof. The first two rows subtract $JA+Rc$ from $y$, the middle rows add $R(c+Gx)+J(A+Vx)$, and the last two restore $c$ and $A$; the net addition to $y$ is $(RG+JV)x$. The coefficient of $x_T$ in $(RG)_S$ is $(|S\cap T|-1)/2$, which is $1$ when $S=T$, $0$ when $|S\cap T|=1$, and is cancelled by $JV$ when $|S\cap T|=0$ or $2$. Hence $RG+JV$ is the identity, and the auxiliary values cancel in each invocation on its own coordinates. The stage sequence $(x,y)\mapsto(x,y+x)\mapsto(-y,y+x)\mapsto(-y,x)$ gives the stated bank exchange.
+A triple has $d_{\mathrm{nbr}}=\binom{97}{3}+3\cdot97=147731$ neighbours, the two terms counting intersections of size $0$ and $2$, and the number of physical wires is $W=2N_0+I_0(vd_{\mathrm{nbr}}+101)=1873807244643542670000$, the term $vd_{\mathrm{nbr}}$ counting ordered pairs.
+
The network alone would still cost $Wm$ pointwise operations to turn into tensor powers. The saving comes from changing frame along its wires. Work in the binary space $D=\mathbb{F}_2^m$ with its dot product; call a subspace nondegenerate when its bilinear form has zero radical. For $z\in D$ write $R_z$ for translation of addresses, $(R_z f)(x)=f(x+z)$, and let $J_m=2^{-m/2}\,((-1)^{x\cdot y})_{x,y}$ be the normalized Walsh matrix, with $J_m^2$ the identity. Conjugating the diagonal character $(-1)^{z\cdot x}$ by $J_m$ returns $R_z$. For a nondegenerate label $U$ let $P_U$ be projection onto $U$ along $U^\perp$ and set
$$ q_U(x)=\mathrm{wt}(P_U x)\bmod 4,\qquad \Phi_U=J_m\,\mathrm{diag}_x\bigl(i^{q_U(x)}\bigr)\,J_m, $$
where $\mathrm{wt}$ is integer Hamming weight. These matrices are used only to prove identities; the algorithm never executes a Walsh transform. Plainly $\Phi_0$ is the identity, and $\Phi_D=C^{\otimes m}$, because $q_D(x)=\mathrm{wt}(x)$ splits over the $m$ bits and each bit factor is the $2\times 2$ kernel $C$.
@@ -95,9 +97,9 @@ Unrolling $d\le\lceil\log_m(k+1)\rceil$ steps, with successive arguments $\lfloo
$$ t(k)\le A\sum_{j=0}^{d-1}\lambda^j+B\lambda^d\le\Bigl(\frac{A}{\lambda-1}+B\Bigr)\lambda^d=O\bigl((k+1)^\theta\bigr), $$
using $\lambda^d\le\lambda(k+1)^\theta$. Fixed tables are generated once at absolute cost. The recursion can reuse working arrays: its stack has $O(\log(k+2))$ levels, consecutive active lengths drop by at least a factor two, and all counters and strides fit $O(k+1)$ bits. Initializing $W_*-1$ unused arrays, running the simultaneous procedure on the requested array in the last role, and keeping that role's output costs $O(W_*2^k)=O(2^k)$, and $W_*$ is an absolute constant. This proves the stated single-array bound.
-Restoring arbitrary auxiliary values in the scalar lemma is exactly what makes this work: after the frame changes those auxiliary roles must undergo the same tensor transform as the data banks, and only a network valid on arbitrary inputs lets arbitrary fibres serve as all $W_*$ roles.
+Restoring arbitrary auxiliary values in the scalar lemma is exactly what makes the recursion work: after the frame changes those auxiliary roles must undergo the same tensor transform as the data banks, and only a network valid on arbitrary inputs lets arbitrary fibres serve as all $W_*$ roles.
-Second, compiling a Fourier matrix on exactly its own coordinates. Padding a coordinate set is forbidden, because the sets later become tensor factors and separate padding would multiply the total dimension. The Fourier matrix is first factored into diagonal and triangular Toeplitz factors, the Toeplitz factors are realized as words on the original coordinates, with recorded workspace, and every two-coordinate shear is then compiled to the single kernel $C$. Call an update that adds a scalar multiple of one coordinate to a distinct coordinate a shear; a shear layer is a set of shears on disjoint pairs; a monomial layer is an invertible monomial matrix.
+Second, compiling a Fourier matrix on exactly its own coordinates. Padding a coordinate set is forbidden, because the sets later become tensor factors and separate padding would multiply the total dimension. The Fourier matrix is first factored into diagonal and triangular Toeplitz factors, the Toeplitz factors are realized as words on the original coordinates, with recorded workspace, and every two-coordinate shear is then compiled to the single kernel $C$. Call an update that adds a scalar multiple of one coordinate to a distinct coordinate a shear; a shear layer is a set of shears on disjoint pairs; a monomial layer is an invertible monomial matrix; a mixed round performs monomial layers or shear layers on disjoint coordinate regions, and splits into a monomial layer followed by a shear layer.
Lemma (Newton reduction). For every primitive $r$-th root $u$ and $r\ge1$ there is an invertible lower triangular $N$ with $F_r(u)=N D_N^{-1} N^{\mathsf T}$, where $D_N=\mathrm{diag}(N_{00},\ldots,N_{r-1,r-1})$; $N$ is a product of two invertible diagonal matrices and one invertible lower triangular Toeplitz matrix of width $r$, prepared as rational expressions in $u$ with every denominator nonzero.