Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.3: the spectral projection is a coset average

Proved
FourierDimTesting102.Quantum.projection_coset_average

by mikedeng1 · Nov 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

boolean-fourier-analysisp2o-batch-stoc27ap2o-gran-per-chapterp2o-plan-paperp2o-v1property-testingquantum-query-complexity

Let UUU be a linear subspace of F2n\mathbb F_2^nF2n​, let U⊥U^\perpU⊥ be its annihilator for the dot product, and let fff be a boolean function. For every x∈F2nx\in\mathbb F_2^nx∈F2n​,

ΠUf(x)=Eh∈U⊥[f(x+h)],\Pi_Uf(x)=\mathbb E_{h\in U^\perp}[f(x+h)],ΠU​f(x)=Eh∈U⊥​[f(x+h)],

where ΠUf(x)=∑s∈Uf^(s)χs(x)\Pi_Uf(x)=\sum_{s\in U}\widehat f(s)\chi_s(x)ΠU​f(x)=∑s∈U​f​(s)χs​(x) and hhh is uniform on the whole of U⊥U^\perpU⊥, including 000.

So the projection of fff onto the frequencies in UUU is the average of fff over the coset x+U⊥x+U^\perpx+U⊥. This is the bridge between Fourier weight on UUU and Hamming distance to CUC_UCU​ used in Lemma 3.2.

Differences from the source:

  • encoding: boolean functions f : {0,1}^n → {−1,1}, with frequencies written as subsets S ⊆ [n] or their indicator vectors → f is its bit function BoolFn n := (Fin n → ZMod 2) → Bool, with sign toSign f x = (−1)^{f x}, and frequencies are vectors of Fin n → ZMod 2; reason: a bijection on the same functions; the bit is what the XOR oracle adds and the vectors carry the F₂-subspaces
Preamble
import Definitions.Def_FourierDimTesting102_Quantum_Model
Formal statement
namespace FourierDimTesting102.Quantum

/-- Lemma 3.3, p.15: `Π_U f(x) = E_{h ∈ U^⊥}[f(x+h)]`, for every subspace `U` and point `x`. -/
theorem projection_coset_average {n : ℕ} (U : Submodule (ZMod 2) (V n)) (f : BoolFn n) (x : V n) :
    proj U f x = cosetAverage U f x := by sorry

end FourierDimTesting102.Quantum
Source
Kenny Chen, Exponential Quantum Advantage in Testing Fourier Dimensionality, September 2026 STOC 2027 submission #102 preprint, source.pdf SHA-256 afe3d00f3d3887de87812ce319a69c1fca5c95912047974553110aa755de4298, https://github.com/sigact-stoc/stoc2027/releases/download/papers-1/102.pdf, p.15, Lemma 3.3
Human review
  • Endorsed by Shuze Chen · Nov 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Nov 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me