Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.1 — orthonormality of characters, Fourier expansion and Parseval's identity

Proved
QTolTest1673.Unified.lemma_2_1

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

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

For u,x∈F2nu,x\in\mathbb F_2^nu,x∈F2n​ let χu(x)=(−1)u⋅x\chi_u(x)=(-1)^{u\cdot x}χu​(x)=(−1)u⋅x, and for a Boolean function f:F2n→{±1}f:\mathbb F_2^n\to\{\pm1\}f:F2n​→{±1} let f^(u)=Exf(x)χu(x)\hat f(u)=\mathbb E_x f(x)\chi_u(x)f^​(u)=Ex​f(x)χu​(x), with xxx uniform. The characters form an orthonormal basis of the real functions on F2n\mathbb F_2^nF2n​:

  1. for all u,vu,vu,v,
Ex χu(x)χv(x)=1u=v;\mathbb E_x\,\chi_u(x)\chi_v(x)=\mathbf 1_{u=v};Ex​χu​(x)χv​(x)=1u=v​;
  1. the 2n2^n2n characters are linearly independent and span all functions F2n→R\mathbb F_2^n\to\mathbb RF2n​→R;
  2. every Boolean fff satisfies the Fourier expansion f(x)=∑uf^(u)χu(x)f(x)=\sum_u\hat f(u)\chi_u(x)f(x)=∑u​f^​(u)χu​(x) for all xxx;
  3. every Boolean fff satisfies Parseval's identity ∑uf^(u)2=1\sum_u\hat f(u)^2=1∑u​f^​(u)2=1.

This is the basic Fourier toolkit of the paper: Parseval makes u↦f^(u)2u\mapsto\hat f(u)^2u↦f^​(u)2 a probability distribution, the one sampled by a single quantum query, and orthonormality turns mean squares of Fourier sums into sums of squared coefficients.

Differences from the source:

  • encoding: f:F2n→{±1}f:\mathbb F_2^n\to\{\pm1\}f:F2n​→{±1} → its bit function BoolFn n with f=(−1)bff=(-1)^{b_f}f=(−1)bf​ (toSign); reason: a bijection; the XOR oracle adds bf=(1−f)/2b_f=(1-f)/2bf​=(1−f)/2; same instances
  • encoding: uniform expectation Ex\mathbb E_xEx​ → 2−n∑x2^{-n}\sum_x2−n∑x​; reason: definition of the uniform expectation on F2n\mathbb F_2^nF2n​
  • encoding: the characters form an orthonormal basis → orthonormality for Ex\mathbb E_xEx​ plus LinearIndependent and span =⊤=\top=⊤ in the real functions on F2n\mathbb F_2^nF2n​; reason: the linear-algebra meaning of an orthonormal basis; all three displayed identities are kept
Preamble
import Definitions.Def_FourierDimTesting102_Quantum_Model
Formal statement
namespace QTolTest1673.Unified

open FourierDimTesting102.Quantum

/-- Lemma 2.1, p. 14 (Fourier expansion and Parseval's identity). The characters
`χ_u(x) = (-1)^{u·x}` are orthonormal for `⟨g, h⟩ = E_x g(x) h(x)` and form a basis of the real
functions on `F₂ⁿ`; every `{±1}`-valued `f` satisfies `f(x) = ∑_u f̂(u) χ_u(x)` and
`∑_u f̂(u)² = 1`. -/
theorem lemma_2_1 (n : ℕ) :
    (∀ u v : V n, ((2 : ℝ) ^ n)⁻¹ * ∑ x : V n, chi u x * chi v x = if u = v then 1 else 0) ∧
      LinearIndependent ℝ (fun u : V n => (chi u : V n → ℝ)) ∧
      Submodule.span ℝ (Set.range fun u : V n => (chi u : V n → ℝ)) = ⊤ ∧
      (∀ (f : BoolFn n) (x : V n), toSign f x = ∑ u : V n, coeff f u * chi u x) ∧
      (∀ f : BoolFn n, ∑ u : V n, coeff f u ^ 2 = 1) := by sorry

end QTolTest1673.Unified
Source
Zekun Ye, Jialin Zhang, Quantum Tolerant Testing of Fourier Dimensionality and Juntas, STOC 2027 submission #1673 (October 2026), source.pdf SHA-256 5f8e9058de57e5bfe86cd485966905d576e77df38d613213662f8930b3e0e51e, https://github.com/sigact-stoc/stoc2027/releases/download/papers-2/1673.pdf, Lemma 2.1, p. 14
Human review
  • Endorsed by Shuze Chen · Nov 11, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Nov 11, 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