3 A Useful Moment Computation
Throughout this chapter \(\mathcal{C}_{\mathrm{out}}\subseteq \mathbb {F}_q^n\) and \(\mathcal{C}_{\mathrm{in}}\subseteq \mathbb {F}_2^{n_0}\) are fixed linear codes of rate \(\varepsilon \) (with \(q = 2^{k_0}\), \(k = \varepsilon n\), \(k_0 = \varepsilon n_0\), \(N = n_0 n\)); the only randomness is in a uniform nonzero message \(m \in \mathbb {F}_q^k \setminus \{ 0\} \).
Let \(G_0 \in \mathbb {F}_2^{n_0 \times k_0}\) be a generator matrix of \(\mathcal{C}_{\mathrm{in}}\), so that \(\mathcal{C}_{\mathrm{in}}= \{ G_0 x : x \in \mathbb {F}_2^{k_0}\} \). Let \(\Omega \subseteq \mathbb {F}_2^{k_0}\) be the set of rows of \(G_0\), so \(|\Omega | = n_0\). Identifying \(\mathbb {F}_2^{k_0}\) with \(\mathbb {F}_q\) via a self-dual basis, we also view \(\Omega \subseteq \mathbb {F}_q\). We call \(\Omega \) the set derived from \(\mathcal{C}_{\mathrm{in}}\).
For a message \(m \in \mathbb {F}_q^k\), define
Then \(X_m\) is the bias (number of zeros minus number of ones) of the codeword \(\mathcal{C}(m) = (\mathcal{C}_{\mathrm{out}}\circ \mathcal{C}_{\mathrm{in}})(m)\): the weight of \(\mathcal{C}(m)\) is at least \(\frac12 - O(\varepsilon )\) iff \(X_m = O(\varepsilon N)\). For an ordered list \(\mathcal{V}\) of pairs in \([n]\times \Omega \) and \(\alpha \in [n]\), let \(\mathcal{V}_\alpha \) be the multiset \(\{ b : (\alpha ,b) \in \mathcal{V}\} \) (with multiplicity).
Suppose \(\Omega \) is derived from \(\mathcal{C}_{\mathrm{in}}\). For every integer \(r \geq 1\),
where \(\mathcal{V}\) ranges over tuples \(((\alpha _1,b_1),\dots ,(\alpha _r,b_r))\) and \(g_\mathcal{V}\in \mathbb {F}_q^n\) is defined by \((g_\mathcal{V})_\alpha = \sum _{b \in \mathcal{V}_\alpha } b\).
Expanding the \(r\)-th power,
Taking the expectation over \(m \in \mathbb {F}_q^k \setminus \{ 0\} \) and grouping the \(b_j\) by their coordinate \(\alpha \),
with the convention \(\sum _{b \in \mathcal{V}_\alpha } b = 0\) when \(\mathcal{V}_\alpha \) is empty. For \(\alpha \in [n]\) set \(\varphi _\alpha (x) = (-1)^{\langle x, \sum _{b\in \mathcal{V}_\alpha }b\rangle }\). Its Fourier transform over \(\mathbb {F}_2^{k_0}\) (Definition 20) is
Write \(\overline{m} = \mathcal{C}_{\mathrm{out}}(m)\). Substituting via Fourier inversion (Lemma 21) and exchanging the product and sum over \(g : [n] \to \mathbb {F}_2^{k_0}\),
Moving the sum over \(m\) inside,
Now by Lemma 22 applied to \(V = \mathcal{C}_{\mathrm{out}}\) (so \(|\mathcal{C}_{\mathrm{out}}| = q^k\)),
since \(\sum _{m \in \mathbb {F}_q^k}(-1)^{\langle g, \overline{m}\rangle } = q^n \widehat{\mathbf{1}_{\mathcal{C}_{\mathrm{out}}}}(g) = |\mathcal{C}_{\mathrm{out}}|\mathbf{1}_{\mathcal{C}_{\mathrm{out}}^\perp }(g) = q^k \mathbf{1}_{\mathcal{C}_{\mathrm{out}}^\perp }(g)\) and we subtract the \(m=0\) term, which equals \(1\). Plugging (6) into (5),
Finally \(\prod _\alpha \widehat{\varphi _\alpha }(g_\alpha ) = \mathbf{1}[\forall \alpha ,\ g_\alpha = \sum _{b\in \mathcal{V}_\alpha }b] = \mathbf{1}[g = g_\mathcal{V}]\), so the only surviving \(g\) is \(g_\mathcal{V}\), yielding the claimed formula.