Eqs. (2.10)–(2.11) — the Bayes error is
ProvedFuchsThesis.Chernoff.eq_2_11hypothesis-testinginformation-theoryp2o-gran-per-chapterp2o-plan-bookp2o-v1probability
Let be probability distributions on a finite outcome set and priors with . Write for the total probability of outcome and for the posterior probabilities. For every Bayes decision function , its probability of error satisfies
The last expression is the concrete formula for the first distinguishability measure of the thesis, and it is the formula used for in the Chernoff bound.
Formalization Note Lean's division returns when ; each posterior is multiplied by , so those terms are on both sides, as in the source.
Differences from the source:
- encoding: posterior p(i|b) = πi pi(b)/p(b), undefined where p(b) = 0 → Lean division with x/0 = 0; reason: every posterior is multiplied by p(b), so terms with p(b) = 0 vanish on both sides and no instance changes
- encoding: outcome set {1, …, n} → arbitrary finite type B; reason: every finite set is in bijection with some {1, …, n}, and IsDist forces it to be nonempty; no instance changes
- encoding: δ : {1, …, n} → {0, 1} with Pe(δ) given by (2.3) → δ : B → Fin 2 with errorProb given by (2.7), δ(b) cast to ℝ; reason: (2.7) is the source's own rewriting of (2.3); no instance changes
- encoding: Bayes' decision function δB of (2.6), with "anything" on ties → predicate IsBayesDecision, the statement quantified over every δB satisfying it; reason: (2.6) leaves ties free, so the predicate is exactly the family of rules (2.6) describes
Preamble
import Mathlib import Definitions.Def_CalibratedCE_Forecast_IsDist import Definitions.Def_FuchsThesis_Chernoff_errorProb import Definitions.Def_FuchsThesis_Chernoff_IsBayesDecision import Definitions.Def_FuchsThesis_Chernoff_bayesError open CalibratedCE.Forecast
Formal statement
namespace FuchsThesis.Chernoff
/-- Fuchs, *Distinguishability and Accessible Information in Quantum Theory*,
arXiv:quant-ph/9601020v1, §2.2.1, eqs. (2.10)–(2.11), pp.14–15 (PDF pp.23–24).
With `p(b) = π0 p0(b) + π1 p1(b)` (2.5) and the posteriors `p(i|b) = πi pi(b) / p(b)` (2.4),
the probability of error `Pe` of Bayes' decision method satisfies
`Pe = ∑_b p(b) (1 − max{p(0|b), p(1|b)}) = ∑_b p(b) min{p(0|b), p(1|b)} = ∑_b min{π0 p0(b), π1 p1(b)}`.
`Pe` is the error probability (2.7) of any Bayes decision function `δB` (2.6).
**Formalization Note.** Lean's division gives `x / 0 = 0`; the posterior is then a junk value
exactly where `p(b) = 0`, and every such term is multiplied by `p(b) = 0`, so the chain is the
source's. -/
theorem eq_2_11 {B : Type} [Fintype B] (π0 π1 : ℝ) (p0 p1 : B → ℝ)
(hp0 : IsDist p0) (hp1 : IsDist p1) (hπ0 : 0 ≤ π0) (hπ1 : 0 ≤ π1) (hπ : π0 + π1 = 1)
(δB : B → Fin 2) (hB : IsBayesDecision π0 π1 p0 p1 δB) :
errorProb π0 π1 p0 p1 δB =
∑ b, (π0 * p0 b + π1 * p1 b) *
(1 - max (π0 * p0 b / (π0 * p0 b + π1 * p1 b))
(π1 * p1 b / (π0 * p0 b + π1 * p1 b))) ∧
∑ b, (π0 * p0 b + π1 * p1 b) *
(1 - max (π0 * p0 b / (π0 * p0 b + π1 * p1 b))
(π1 * p1 b / (π0 * p0 b + π1 * p1 b))) =
∑ b, (π0 * p0 b + π1 * p1 b) *
min (π0 * p0 b / (π0 * p0 b + π1 * p1 b))
(π1 * p1 b / (π0 * p0 b + π1 * p1 b)) ∧
∑ b, (π0 * p0 b + π1 * p1 b) *
min (π0 * p0 b / (π0 * p0 b + π1 * p1 b))
(π1 * p1 b / (π0 * p0 b + π1 * p1 b)) =
bayesError π0 π1 p0 p1 := by sorry
end FuchsThesis.Chernoff
Source
Fuchs, Distinguishability and Accessible Information in Quantum Theory, arXiv:quant-ph/9601020v1, §2.2.1, eqs. (2.10)–(2.11), pp.14–15 (PDF pp.23–24)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.