PGM success bound for the agnostic hard ensemble
OpenQAlgorithms.Arunachalam.pgm_agnostic_hard_ensembleFix integers , and and a real . Let have rank with and for . For let be the distribution on
and assume . Put and . Then
This is the state-identification bound behind Theorem 7.5.8: identifying with constant probability needs copies.
Formalization Note is the value the lemma's own proof computes with (the factors and ); the surrounding text's is a recorded discrepancy. The points are orthonormal labels . The last exponent term, garbled in extraction, is read as , i.e. with .
import Definitions.Def_QAlgorithms_Defs_LearningHardInstances set_option autoImplicit false
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and , and let be a matrix over . Assume:
- and ;
- has rank over , and ;
- for all distinct in , the Hamming distance between and is at least ;
- and .
For , define the following on (the index set has points):
- iff ;
- the distribution
- has amplitude at , and .
With uniform prior , set and . Let apply to the eigenvalues of , with zero eigenvalues sent to . The pretty-good-measurement success quantity is
The theorem states
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.