Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Diagonal of √A in terms of Fourier coefficients of f

Proved
QAlgorithms.Arunachalam.sqrtA_diag

by Goku · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

arunachalamlecture-notesquantum-information

Work in the setting of Theorem 7.5.1: let m≥10m\ge10m≥10, β∈(0,1]\beta\in(0,1]β∈(0,1] and let TTT be an integer with 1≤T≤m/(e3β)1\le T\le m/(e^3\beta)1≤T≤m/(e3β); let f:{0,1}m→Rf:\{0,1\}^m\to\mathbb Rf:{0,1}m→R, f(z)=(1−β∣z∣/m)Tf(z)=(1-\beta|z|/m)^Tf(z)=(1−β∣z∣/m)T, where ∣z∣|z|∣z∣ is the Hamming weight; let k≤mk\le mk≤m and let M∈F2m×kM\in\mathbb F_2^{m\times k}M∈F2m×k​ have rank kkk; and let A∈R2k×2kA\in\mathbb R^{2^k\times 2^k}A∈R2k×2k be A(x,y)=(f∘M)(x+y)=f(M(x+y))A(x,y)=(f\circ M)(x+y)=f(M(x+y))A(x,y)=(f∘M)(x+y)=f(M(x+y)). Then for every x∈{0,1}kx\in\{0,1\}^kx∈{0,1}k,

A (x,x)=12k/2∑Q∈{0,1}k∑S∈{0,1}m: MTS=Qf^(S),\sqrt A\,(x,x)=\frac1{2^{k/2}}\sum_{Q\in\{0,1\}^k}\sqrt{\sum_{S\in\{0,1\}^m:\,M^{\mathsf T}S=Q}\hat f(S)},A​(x,x)=2k/21​Q∈{0,1}k∑​S∈{0,1}m:MTS=Q∑​f^​(S)​,

where A\sqrt AA​ is the positive semidefinite square root of AAA and f^\hat ff^​ is the Fourier transform of fff.

This expresses the diagonal of A\sqrt AA​, which governs the pretty good measurement success probability, through the Fourier coefficients of fff.

Formalization Note A\sqrt AA​ is computed by the continuous functional calculus applied to the symmetric matrix AAA (the square root of each eigenvalue). The hypotheses of Theorem 7.5.1 are carried as hypotheses of the claim.

Preamble
import Definitions.Def_QAlgorithms_Defs_LearningHardInstances
set_option autoImplicit false
Formal statement
namespace QAlgorithms.Arunachalam

open QAlgorithms.Learning




/-- Arunachalam p.170–172, Claim 7.5.3, in the setting of Theorem 7.5.1: `m ≥ 10`,
`f(z) = (1 − β|z|/m)^T` on `{0,1}^m` with `β ∈ (0, 1]` and `T ∈ [1, m/(e³β)]` (a natural number),
`k ≤ m`, `M ∈ F₂^{m×k}` of rank `k`, and `A(x, y) = (f ∘ M)(x + y)` for `x, y ∈ {0,1}^k`. Then for
all `x ∈ {0,1}^k`,
`√A(x, x) = 2^{−k/2} ∑_{Q ∈ {0,1}^k} √(∑_{S ∈ {0,1}^m : Mᵀ S = Q} f̂(S))`,
where `√A` is the positive semidefinite square root of `A`. -/
theorem sqrtA_diag {m k T : ℕ} {β : ℝ} (hm : 10 ≤ m) (hβ : 0 < β) (hβ1 : β ≤ 1) (hT : 1 ≤ T)
    (hTm : (T : ℝ) ≤ (m : ℝ) / (Real.exp 3 * β)) (hk : k ≤ m)
    (M : Matrix (Fin m) (Fin k) (ZMod 2)) (hM : M.rank = k) (x : Fin k → ZMod 2) :
    psdSqrt (xorConvMatrix fun z => weightPowFun m β T (M.mulVec z)) x x =
      (Real.sqrt ((2 : ℝ) ^ k))⁻¹ *
        ∑ Q : Fin k → ZMod 2, Real.sqrt
          (∑ S ∈ Finset.univ.filter (fun S : Fin m → ZMod 2 => M.transpose.mulVec S = Q),
            boolFourier (weightPowFun m β T) S) := by
  sorry



end QAlgorithms.Arunachalam
Source
Srinivasan Arunachalam, Quantum Algorithms and Learning Theory — Part II, 2018 thesis, ILLC DS-2018-08, PDF p. 171, Claim 7.5.3. https://ir.cwi.nl/pub/27536/Thesis_S_Arunachalam
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let m,k,T∈Nm, k, T \in \mathbb{N}m,k,T∈N and β∈R\beta \in \mathbb{R}β∈R. Assume:

  • m≥10m \ge 10m≥10;
  • 0<β≤10 < \beta \le 10<β≤1;
  • T≥1T \ge 1T≥1;
  • T≤m/(e3β)T \le m / (e^3 \beta)T≤m/(e3β);
  • k≤mk \le mk≤m;
  • MMM is an m×km \times km×k matrix over F2\mathbb{F}_2F2​ of rank kkk;
  • x∈F2kx \in \mathbb{F}_2^kx∈F2k​.

Define w:F2m→Rw : \mathbb{F}_2^m \to \mathbb{R}w:F2m​→R by

w(u)=(1−β ∣u∣m)T,w(u) = \left(1 - \frac{\beta\,|u|}{m}\right)^T,w(u)=(1−mβ∣u∣​)T,

where ∣u∣|u|∣u∣ is the Hamming weight of uuu. Let AAA be the real 2k×2k2^k \times 2^k2k×2k matrix indexed by F2k\mathbb{F}_2^kF2k​ with entries

Ay,z=w(M(y+z)).A_{y,z} = w\big(M(y+z)\big).Ay,z​=w(M(y+z)).

Let A\sqrt{A}A​ be the matrix square root given by the real continuous functional calculus. On a symmetric matrix, this applies t↦tt \mapsto \sqrt tt↦t​ to the eigenvalues, where t\sqrt tt​ is taken to be 000 for t<0t < 0t<0. On a non-symmetric matrix it gives 000; AAA is symmetric here.

Let w^(S)=2−m∑u∈F2mw(u)(−1)S⋅u\hat w(S) = 2^{-m}\sum_{u \in \mathbb{F}_2^m} w(u)(-1)^{S\cdot u}w^(S)=2−m∑u∈F2m​​w(u)(−1)S⋅u be the Fourier transform of www on F2m\mathbb{F}_2^mF2m​.

The theorem asserts that the diagonal entry of A\sqrt AA​ at (x,x)(x,x)(x,x) is

(A)x,x=12k∑Q∈F2k∑S∈F2m : MTS=Qw^(S).\big(\sqrt A\big)_{x,x} = \frac{1}{\sqrt{2^k}} \sum_{Q \in \mathbb{F}_2^k} \sqrt{\sum_{S \in \mathbb{F}_2^m \,:\, M^{\mathsf T} S = Q} \hat w(S)}.(A​)x,x​=2k​1​Q∈F2k​∑​S∈F2m​:MTS=Q∑​w^(S)​.

Here each ⋅\sqrt{\cdot}⋅​ is the real square root, again 000 on negative arguments. The right-hand side does not depend on xxx.

Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 13, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me