OctoInform Beta

OpenAI preprint, September 2026 · §3. Weighted Fourier grading

§3: Total energy (6): Trace formula for orthogonal projection families and the binomial variance identity

Total energy of the centered degree grading.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

In discrete Fourier analysis on the nn-dimensional Boolean cube {−1,1}n\{-1, 1\}^n, a positive weight function induces an orthogonal decomposition of the space of complex-valued functions on the cube into n+1n + 1 degree subspaces of dimensions (n0),…,(nn)\binom{n}{0}, \dots, \binom{n}{n}. Weighting the orthogonal projection onto the degree kk subspace by the centered degree k−n/2k - n/2 defines a self-adjoint grading operator whose Hilbert-Schmidt norm squared measures the total spectral energy of the grading. Evaluating this energy splits into a trace formula valid for any orthogonal projection family and the variance identity for the symmetric binomial distribution.

The centered degree grading

For finite index sets ι\iota and κ\kappa, the Hilbert-Schmidt norm squared of a complex matrix A∈ℂι×κA \in \mathbb{C}^{\iota \times \kappa} is the real number given by (1): ∥A∥HS2=∑i∈ι∑j∈κ|Ai,j|2.\|A\|_{\mathrm{HS}}^2 = \sum_{i \in \iota} \sum_{j \in \kappa} |A_{i, j}|^2.(1)✦

An orthogonal projection family indexed by κ\kappa of complex matrices on ι\iota is a family P=(Pk)k∈κP = (P_k)_{k \in \kappa} of matrices Pk∈ℂι×ιP_k \in \mathbb{C}^{\iota \times \iota} satisfying the self-adjointness, idempotence, pairwise orthogonality, and completeness conditions (2): Pk*=PkandPk2=Pkfor all k∈κ,PrPs=0for all r≠s in κ,∑k∈κPk=I,\begin{aligned} P_k^* &= P_k \quad \text{and} \quad P_k^2 = P_k \quad \text{for all } k \in \kappa, \\ P_r P_s &= 0 \quad \text{for all } r \neq s \text{ in } \kappa, \\ \sum_{k \in \kappa} P_k &= I, \end{aligned}(2)✦ where II is the identity matrix indexed by ι\iota.

For a family P=(Pk)k∈κP = (P_k)_{k \in \kappa} of matrices in ℂι×ι\mathbb{C}^{\iota \times \iota} and a real-valued weight function w:κ→ℝw : \kappa \to \mathbb{R}, the weighted spectral multiplier of PP with weights ww is the complex matrix in ℂι×ι\mathbb{C}^{\iota \times \iota} given by (3): ∑k∈κw(k)Pk.\sum_{k \in \kappa} w(k) P_k.(3)✦

For the uniform weight on the nn-dimensional Boolean cube, the centered degree grading equals minus one-half of the cube adjacency matrix.

For a natural number nn and a family P=(P0,…,Pn)P = (P_0, \dots, P_n) of matrices in ℂι×ι\mathbb{C}^{\iota \times \iota} indexed by {0,…,n}\{0, \dots, n\}, the centered degree grading MM of PP is the weighted spectral multiplier of PP with weights w(k)=k−n/2w(k) = k - n/2, given by (4): M=∑k=0n(k−n2)Pk.M = \sum_{k=0}^{n} \left(k - \frac{n}{2}\right) P_k.(4)✦

The claim

Proposition. Let nn be a natural number, let ι\iota be a finite index set, and let P=(P0,…,Pn)P = (P_0, \dots, P_n) be an orthogonal projection family of complex matrices indexed by ι\iota. The Hilbert-Schmidt norm squared of its centered degree grading MM satisfies ∥M∥HS2=∑k=0n(k−n2)2Re⁡tr⁡(Pk).\|M\|_{\mathrm{HS}}^2 = \sum_{k=0}^{n} \left(k - \frac{n}{2}\right)^2 \operatorname{Re}\operatorname{tr}(P_k).(5)✦ Moreover, for every natural number nn, ∑k=0n(nk)(k−n2)2=n2n4.\sum_{k=0}^{n} \binom{n}{k} \left(k - \frac{n}{2}\right)^2 = \frac{n 2^n}{4}.(6)✦

In the paper, the result reads: for the weighted Fourier degree projections P0,…,PnP_0, \dots, P_n on the nn-dimensional Boolean cube, the centered degree grading MM satisfies ∥M∥HS2=∑k=0n(nk)(k−n/2)2=n2n/4\|M\|_{\mathrm{HS}}^2 = \sum_{k=0}^{n} \binom{n}{k} (k - n/2)^2 = n 2^n / 4.

The Lean library separates the trace formula (5) for a general orthogonal projection family from the binomial variance identity (6), which together give the combined identity when each PkP_k has trace (nk)\binom{n}{k}.

What is checked

The Lean library states the trace formula (5) for the Hilbert-Schmidt norm squared of the centered degree grading of any orthogonal projection family indexed by {0,…,n}\{0, \dots, n\} over complex matrices, and states the binomial variance identity (6) for every natural number nn.