Diagonal of √A in terms of Fourier coefficients of f
ProvedQAlgorithms.Arunachalam.sqrtA_diagWork in the setting of Theorem 7.5.1: let , and let be an integer with ; let , , where is the Hamming weight; let and let have rank ; and let be . Then for every ,
where is the positive semidefinite square root of and is the Fourier transform of .
This expresses the diagonal of , which governs the pretty good measurement success probability, through the Fourier coefficients of .
Formalization Note is computed by the continuous functional calculus applied to the symmetric matrix (the square root of each eigenvalue). The hypotheses of Theorem 7.5.1 are carried as hypotheses of the claim.
import Definitions.Def_QAlgorithms_Defs_LearningHardInstances set_option autoImplicit false
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and . Assume:
- ;
- ;
- ;
- ;
- ;
- is an matrix over of rank ;
- .
Define by
where is the Hamming weight of . Let be the real matrix indexed by with entries
Let be the matrix square root given by the real continuous functional calculus. On a symmetric matrix, this applies to the eigenvalues, where is taken to be for . On a non-symmetric matrix it gives ; is symmetric here.
Let be the Fourier transform of on .
The theorem asserts that the diagonal entry of at is
Here each is the real square root, again on negative arguments. The right-hand side does not depend on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.