Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

PGM success bound for the agnostic hard ensemble

Open
QAlgorithms.Arunachalam.pgm_agnostic_hard_ensemble

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

arunachalamlecture-notesquantum-information

Fix integers d≥10d\ge 10d≥10, kkk and T≥1T\ge 1T≥1 and a real ε∈(0,1/10)\varepsilon\in(0,1/10)ε∈(0,1/10). Let M∈F2d×kM\in\mathbb F_2^{d\times k}M∈F2d×k​ have rank kkk with k≥d/4k\ge d/4k≥d/4 and dH(Mx,My)≥d/8d_H(Mx,My)\ge d/8dH​(Mx,My)≥d/8 for x≠yx\ne yx=y. For x∈{0,1}kx\in\{0,1\}^kx∈{0,1}k let DxD_xDx​ be the distribution on [d]×{0,1}[d]\times\{0,1\}[d]×{0,1}

Dx(si,b)=1d(12+(−1)(Mx)i+b α2),α=10ε,D_x(s_i,b)=\frac1d\left(\frac12+(-1)^{(Mx)_i+b}\,\frac{\alpha}{2}\right),\qquad \alpha=10\varepsilon,Dx​(si​,b)=d1​(21​+(−1)(Mx)i​+b2α​),α=10ε,

and assume T≤d/(100e3ε2)T\le d/(100e^3\varepsilon^2)T≤d/(100e3ε2). Put ∣ψx⟩=∑(i,b)∈[d]×{0,1}Dx(si,b) ∣si,b⟩|\psi_x\rangle=\sum_{(i,b)\in[d]\times\{0,1\}}\sqrt{D_x(s_i,b)}\,|s_i,b\rangle∣ψx​⟩=∑(i,b)∈[d]×{0,1}​Dx​(si​,b)​∣si​,b⟩ and E={(2−k,∣ψx⟩⊗T):x∈{0,1}k}\mathcal E=\{(2^{-k},|\psi_x\rangle^{\otimes T}):x\in\{0,1\}^k\}E={(2−k,∣ψx​⟩⊗T):x∈{0,1}k}. Then

PPGM(E) ≤ 4ee(dln⁡2)/4+25Tε2  e220000 T2ε4/d+20Tdε2.P^{\mathrm{PGM}}(\mathcal E)\ \le\ \frac{4e}{e^{(d\ln 2)/4+25T\varepsilon^2}}\;e^{220000\,T^2\varepsilon^4/d+20\sqrt{Td\varepsilon^2}}.PPGM(E) ≤ e(dln2)/4+25Tε24e​e220000T2ε4/d+20Tdε2​.

This is the state-identification bound behind Theorem 7.5.8: identifying xxx with constant probability needs T=Ω(d/ε2)T=\Omega(d/\varepsilon^2)T=Ω(d/ε2) copies.

Formalization Note α=10ε\alpha=10\varepsilonα=10ε is the value the lemma's own proof computes with (the factors 1+10ε(−1)(Mx)i+b1+10\varepsilon(-1)^{(Mx)_i+b}1+10ε(−1)(Mx)i​+b and β=1−1−100ε2\beta=1-\sqrt{1-100\varepsilon^2}β=1−1−100ε2​); the surrounding text's α=20ε\alpha=20\varepsilonα=20ε is a recorded discrepancy. The points sis_isi​ are orthonormal labels i∈[d]i\in[d]i∈[d]. The last exponent term, garbled in extraction, is read as 20Tdε220\sqrt{Td\varepsilon^2}20Tdε2​, i.e. 2Tdβ2\sqrt{Td\beta}2Tdβ​ with β≤100ε2\beta\le100\varepsilon^2β≤100ε2.

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

open QAlgorithms.Learning




/-- Arunachalam p.178–180, Lemma 7.5.9, in the setting of the proof of Theorem 7.5.8:
`ε ∈ (0, 1/10)`; `M ∈ F₂^{d×k}` is the rank-`k` generator matrix of a `[d, k, r]₂` code with
`k ≥ d/4` and `r ≥ d/8`; `D_x(s_i, b) = (1/d)(1/2 + (−1)^{(Mx)_i + b} α/2)` on `[d] × {0,1}` with
`α = 10ε` (the value the lemma's proof computes with; recorded discrepancy with the text's
`α = 20ε`); `1 ≤ T ≤ d/(100e³ε²)` and `d ≥ 10` (Theorem 7.5.1 with `m = d`,
`β = 1 − √(1 − 100ε²)`). For `x ∈ {0,1}^k` let
`|ψ_x⟩ = ∑_{(i,b) ∈ [d]×{0,1}} √D_x(s_i, b) |s_i, b⟩` and `E = {(2^{−k}, |ψ_x⟩^{⊗T})}`. Then
`P^PGM(E) ≤ (4e / e^{(d ln 2)/4 + 25Tε²}) e^{220000T²ε⁴/d + 20√(Tdε²)}`. -/
theorem pgm_agnostic_hard_ensemble {d k T : ℕ} {ε : ℝ} (hd : 10 ≤ d) (hε : 0 < ε)
    (hε' : ε < 1 / 10) (M : Matrix (Fin d) (Fin k) (ZMod 2)) (hM : M.rank = k) (hkd : k ≤ d)
    (hdk : d ≤ 4 * k)
    (hdist : ∀ x y : Fin k → ZMod 2, x ≠ y →
      (d : ℝ) / 8 ≤ (hammingDist (M.mulVec x) (M.mulVec y) : ℝ))
    (hT : 1 ≤ T) (hTd : (T : ℝ) ≤ (d : ℝ) / (100 * Real.exp 3 * ε ^ 2)) :
    pgmSuccess (fun _ : Fin k → ZMod 2 => ((2 : ℝ) ^ k)⁻¹)
        (fun x => tensorPow T (agnosticExampleState (agnHardDist M ε x))) ≤
      4 * Real.exp 1 / Real.exp ((d : ℝ) * Real.log 2 / 4 + 25 * (T : ℝ) * ε ^ 2) *
        Real.exp (220000 * (T : ℝ) ^ 2 * ε ^ 4 / (d : ℝ) +
          20 * Real.sqrt ((T : ℝ) * (d : ℝ) * ε ^ 2)) := by
  sorry



end QAlgorithms.Arunachalam
Source
Srinivasan Arunachalam, Quantum Algorithms and Learning Theory — Part II, 2018 thesis, ILLC DS-2018-08, PDF p. 179, Lemma 7.5.9. 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 d,k,T∈Nd, k, T \in \mathbb{N}d,k,T∈N and ε∈R\varepsilon \in \mathbb{R}ε∈R, and let MMM be a d×kd \times kd×k matrix over F2\mathbb{F}_2F2​. Assume:

  • d≥10d \ge 10d≥10 and 0<ε<1/100 < \varepsilon < 1/100<ε<1/10;
  • MMM has rank kkk over F2\mathbb{F}_2F2​, and k≤d≤4kk \le d \le 4kk≤d≤4k;
  • for all distinct x≠yx \ne yx=y in F2k\mathbb{F}_2^kF2k​, the Hamming distance between MxMxMx and MyMyMy is at least d/8d/8d/8;
  • 1≤T1 \le T1≤T and T≤d100 e3 ε2T \le \dfrac{d}{100\,e^3\,\varepsilon^2}T≤100e3ε2d​.

For x∈F2kx \in \mathbb{F}_2^kx∈F2k​, define the following on {1,…,d}×{0,1}\{1,\dots,d\} \times \{0,1\}{1,…,d}×{0,1} (the index set has ddd points):

  • cx(i)=1c_x(i) = 1cx​(i)=1 iff (Mx)i=1(Mx)_i = 1(Mx)i​=1;
  • the distribution
Dx(i,b)=1+10ε s2d,s={+1b=cx(i),−1b≠cx(i);D_x(i,b) = \frac{1 + 10\varepsilon\, s}{2d}, \qquad s = \begin{cases} +1 & b = c_x(i),\\ -1 & b \ne c_x(i);\end{cases}Dx​(i,b)=2d1+10εs​,s={+1−1​b=cx​(i),b=cx​(i);​
  • ϕx\phi_xϕx​ has amplitude Dx(i,b)\sqrt{D_x(i,b)}Dx​(i,b)​ at (i,b)(i,b)(i,b), and Φx=ϕx⊗T\Phi_x = \phi_x^{\otimes T}Φx​=ϕx⊗T​.

With uniform prior px=2−kp_x = 2^{-k}px​=2−k, set Φx′=px Φx\Phi'_x = \sqrt{p_x}\,\Phi_xΦx′​=px​​Φx​ and ρ=∑x∣Φx′⟩⟨Φx′∣\rho = \sum_x |\Phi'_x\rangle\langle\Phi'_x|ρ=∑x​∣Φx′​⟩⟨Φx′​∣. Let ρ−1/2\rho^{-1/2}ρ−1/2 apply t↦1/tt \mapsto 1/\sqrt tt↦1/t​ to the eigenvalues of ρ\rhoρ, with zero eigenvalues sent to 000. The pretty-good-measurement success quantity is

PPGM=∑x2−k ∣⟨ρ−1/2Φx′,Φx⟩∣2.P_{\mathrm{PGM}} = \sum_x 2^{-k}\,\big|\langle \rho^{-1/2}\Phi'_x, \Phi_x\rangle\big|^2.PPGM​=x∑​2−k​⟨ρ−1/2Φx′​,Φx​⟩​2.

The theorem states

PPGM≤4eexp⁡ ⁣(dln⁡24+25 Tε2)⋅exp⁡ ⁣(220000 T2ε4d+20Td ε2).P_{\mathrm{PGM}} \le \frac{4e}{\exp\!\big(\tfrac{d\ln 2}{4} + 25\,T\varepsilon^2\big)}\cdot\exp\!\left(\frac{220000\,T^2\varepsilon^4}{d} + 20\sqrt{T d\,\varepsilon^2}\right).PPGM​≤exp(4dln2​+25Tε2)4e​⋅exp(d220000T2ε4​+20Tdε2​).
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