Eqs. (13)–(14) — Chernoff bound in KL form: Pr[Bin(m, p) ≥ 0.95m] ≤ exp(−m D(95%‖p)) for 0 < p < 0.95
ProvedQApproxCount.Counting.eqs_13_14binomialchernoffkullback-leiblerp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1
Let and , and let be the number of heads in tosses of a coin with bias . Then
where is the Kullback–Leibler divergence of two Bernoulli laws,
This is the tight form of the Chernoff–Hoeffding bound that the "no early termination" argument for step 1 needs: for small it decays like , much faster than the additive Hoeffding bound.
Preamble
import Mathlib import Definitions.Def_QApproxCount_Counting_Algorithm
Formal statement
namespace QApproxCount.Counting
/-- Eqs. (13)–(14), p. 6 (Chernoff–Hoeffding in Kullback–Leibler form): for a coin with bias
`0 < p < 0.95` tossed `m` times, the probability of at least 95% heads is at most
`exp(-m D(95% ‖ p))`, where
`D(95% ‖ p) = 0.95 ln(0.95/p) + (1 - 0.95) ln((1 - 0.95)/(1 - p))`. -/
theorem eqs_13_14 (p : ℝ) (hp : 0 < p) (hp95 : p < 0.95) (m : ℕ) :
(coin p m).toOuterMeasure {h : ℕ | 0.95 * (m : ℝ) ≤ (h : ℝ)} ≤
ENNReal.ofReal (Real.exp (-((m : ℝ) *
(0.95 * Real.log (0.95 / p) + (1 - 0.95) * Real.log ((1 - 0.95) / (1 - p)))))) := by sorry
end QApproxCount.Counting
Source
Aaronson & Rall, Quantum Approximate Counting, Simplified, arXiv:1908.10846v6, p. 6, eqs. (13)–(14)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.