Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

PGM success bound for the PAC hard ensemble

Proved
QAlgorithms.Arunachalam.pgm_pac_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/20)\varepsilon\in(0,1/20)ε∈(0,1/20). Let M∈F2d×kM\in\mathbb F_2^{d\times k}M∈F2d×k​ be a matrix of rank kkk with k≥d/4k\ge d/4k≥d/4 whose codewords satisfy dH(Mx,My)≥d/8d_H(Mx,My)\ge d/8dH​(Mx,My)≥d/8 for x≠yx\neq yx=y (the generator matrix of a [d,k,r]2[d,k,r]_2[d,k,r]2​ code with r≥d/8r\ge d/8r≥d/8). On the points s0,…,sds_0,\dots,s_ds0​,…,sd​ let D(s0)=1−20εD(s_0)=1-20\varepsilonD(s0​)=1−20ε and D(si)=20ε/dD(s_i)=20\varepsilon/dD(si​)=20ε/d for i∈[d]i\in[d]i∈[d], and for x∈{0,1}kx\in\{0,1\}^kx∈{0,1}k let cx(s0)=0c^x(s_0)=0cx(s0​)=0 and cx(si)=(Mx)ic^x(s_i)=(Mx)_icx(si​)=(Mx)i​. Assume T≤d/(20e3ε)T\le d/(20e^3\varepsilon)T≤d/(20e3ε). Put

∣ψx⟩=∑i=0dD(si) ∣si,cx(si)⟩,E={(2−k,∣ψx⟩⊗T):x∈{0,1}k}.|\psi_x\rangle=\sum_{i=0}^{d}\sqrt{D(s_i)}\,|s_i,c^x(s_i)\rangle,\qquad \mathcal E=\{(2^{-k},|\psi_x\rangle^{\otimes T}):x\in\{0,1\}^k\}.∣ψx​⟩=i=0∑d​D(si​)​∣si​,cx(si​)⟩,E={(2−k,∣ψx​⟩⊗T):x∈{0,1}k}.

Then the success probability of the pretty good measurement for E\mathcal EE satisfies

PPGM(E) ≤ 4e2d/4+Tε  e8800T2ε2/d+45Tdε.P^{\mathrm{PGM}}(\mathcal E)\ \le\ \frac{4e}{2^{d/4+T\varepsilon}}\;e^{8800T^2\varepsilon^2/d+4\sqrt{5Td\varepsilon}}.PPGM(E) ≤ 2d/4+Tε4e​e8800T2ε2/d+45Tdε​.

Since the PGM is optimal for this ensemble, the bound shows that T=Ω(d/ε)T=\Omega(d/\varepsilon)T=Ω(d/ε) copies are needed to identify xxx with constant probability; it is the core of Theorem 7.5.6.

Formalization Note The points sis_isi​ enter only as orthonormal labels, so ∣si,b⟩|s_i,b\rangle∣si​,b⟩ is the basis vector of (i,b)∈{0,…,d}×{0,1}(i,b)\in\{0,\dots,d\}\times\{0,1\}(i,b)∈{0,…,d}×{0,1}. PPGM(E)=∑xpx∣⟨ψx′∣ρ−1/2∣ψx⟩∣2P^{\mathrm{PGM}}(\mathcal E)=\sum_x p_x|\langle\psi_x'|\rho^{-1/2}|\psi_x\rangle|^2PPGM(E)=∑x​px​∣⟨ψx′​∣ρ−1/2∣ψx​⟩∣2 with ρ=∑x∣ψx′⟩⟨ψx′∣\rho=\sum_x|\psi_x'\rangle\langle\psi_x'|ρ=∑x​∣ψx′​⟩⟨ψx′​∣, ψx′=pxψx\psi_x'=\sqrt{p_x}\psi_xψx′​=px​​ψx​ (pseudo-inverse square root). The hypotheses d≥10d\ge 10d≥10, T≥1T\ge1T≥1, T≤d/(20e3ε)T\le d/(20e^3\varepsilon)T≤d/(20e3ε) and the code parameters are those of the surrounding proof (Theorem 7.5.1 with m=dm=dm=d, β=20ε\beta=20\varepsilonβ=20ε).

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

open QAlgorithms.Learning


/-- Arunachalam p.176–177, Lemma 7.5.7, in the setting of the proof of Theorem 7.5.6:
`ε ∈ (0, 1/20)`; `D(s₀) = 1 − 20ε`, `D(s_i) = 20ε/d` for `i ∈ [d]`; `M ∈ F₂^{d×k}` is the rank-`k`
generator matrix of a `[d, k, r]₂` code with `k ≥ d/4` and distance `r ≥ d/8`; `c^x(s₀) = 0`,
`c^x(s_i) = (Mx)_i`; `1 ≤ T ≤ d/(20e³ε)` and `d ≥ 10` (the hypotheses of Theorem 7.5.1 with
`m = d`, `β = 20ε`). For every `x ∈ {0,1}^k` let `|ψ_x⟩ = ∑_{i ∈ {0,…,d}} √D(s_i) |s_i, c^x(s_i)⟩`
and `E = {(2^{−k}, |ψ_x⟩^{⊗T}) : x ∈ {0,1}^k}`. Then
`P^PGM(E) ≤ (4e / 2^{d/4 + Tε}) e^{8800T²ε²/d + 4√(5Tdε)}`. -/
theorem pgm_pac_hard_ensemble {d k T : ℕ} {ε : ℝ} (hd : 10 ≤ d) (hε : 0 < ε) (hε' : ε < 1 / 20)
    (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 : ℝ) / (20 * Real.exp 3 * ε)) :
    pgmSuccess (fun _ : Fin k → ZMod 2 => ((2 : ℝ) ^ k)⁻¹)
        (fun x => tensorPow T (exampleState (pacHardConcept M x) (pacHardDist d ε))) ≤
      4 * Real.exp 1 / (2 : ℝ) ^ ((d : ℝ) / 4 + (T : ℝ) * ε) *
        Real.exp (8800 * (T : ℝ) ^ 2 * ε ^ 2 / (d : ℝ) +
          4 * Real.sqrt (5 * (T : ℝ) * (d : ℝ) * ε)) := by
  sorry





end QAlgorithms.Arunachalam
Source
Srinivasan Arunachalam, Quantum Algorithms and Learning Theory — Part II, 2018 thesis, ILLC DS-2018-08, PDF p. 176, Lemma 7.5.7. 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/200 < \varepsilon < 1/200<ε<1/20;
  • 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 the codewords MxMxMx and MyMyMy is at least d/8d/8d/8;
  • 1≤T1 \le T1≤T and T≤d20 e3 εT \le \dfrac{d}{20\, e^3\, \varepsilon}T≤20e3εd​.

For x∈F2kx \in \mathbb{F}_2^kx∈F2k​, define the following objects on the index set {0,1,…,d}\{0,1,\dots,d\}{0,1,…,d}:

  • the concept cxc_xcx​ has cx(0)=0c_x(0) = 0cx​(0)=0 and cx(i)=1c_x(i) = 1cx​(i)=1 iff (Mx)i=1(Mx)_i = 1(Mx)i​=1, for i=1,…,di = 1,\dots,di=1,…,d;
  • the distribution DDD has D(0)=1−20εD(0) = 1 - 20\varepsilonD(0)=1−20ε and D(i)=20ε/dD(i) = 20\varepsilon/dD(i)=20ε/d for i=1,…,di = 1,\dots,di=1,…,d;
  • ψx\psi_xψx​ is the vector on {0,…,d}×{0,1}\{0,\dots,d\} \times \{0,1\}{0,…,d}×{0,1} with amplitude D(j)\sqrt{D(j)}D(j)​ at (j,cx(j))(j, c_x(j))(j,cx​(j)) and 000 at (j,1−cx(j))(j, 1 - c_x(j))(j,1−cx​(j));
  • Ψx=ψx⊗T\Psi_x = \psi_x^{\otimes T}Ψx​=ψx⊗T​, with amplitude ∏iψx(zi)\prod_i \psi_x(z_i)∏i​ψx​(zi​) at (z1,…,zT)(z_1,\dots,z_T)(z1​,…,zT​).

The conclusion bounds the "pretty good measurement" success quantity for the ensemble {Ψx}\{\Psi_x\}{Ψx​} with uniform prior px=2−kp_x = 2^{-k}px​=2−k. Set Ψx′=px Ψx\Psi'_x = \sqrt{p_x}\,\Psi_xΨx′​=px​​Ψx​ and ρ=∑x∣Ψx′⟩⟨Ψx′∣\rho = \sum_x |\Psi'_x\rangle\langle\Psi'_x|ρ=∑x​∣Ψx′​⟩⟨Ψx′​∣. Let ρ−1/2\rho^{-1/2}ρ−1/2 be obtained by applying t↦1/tt \mapsto 1/\sqrt{t}t↦1/t​ to the eigenvalues of ρ\rhoρ; zero eigenvalues are sent to 000, by the convention 1/0=01/0 = 01/0=0. The success quantity is

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

The theorem states

PPGM  ≤  4e2 d/4+Tε⋅exp⁡ ⁣(8800 T2ε2d+45 Td ε),P_{\mathrm{PGM}} \;\le\; \frac{4e}{2^{\,d/4 + T\varepsilon}}\cdot \exp\!\left(\frac{8800\, T^2\varepsilon^2}{d} + 4\sqrt{5\,T d\,\varepsilon}\right),PPGM​≤2d/4+Tε4e​⋅exp(d8800T2ε2​+45Tdε​),

where 2(⋅)2^{(\cdot)}2(⋅) is a real power.

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