Lemma C.7: classical weighted testing bound (adapted from Han)
ProvedQAlgorithms.Papers.Independent.Intake100.P63.classical_weighted_testingprove2quantum
Let p and q be probability distributions on the same finite nonempty alphabet X, let for every , and let . Then
This is the source proof’s support-safe version of the event : p_i=q_i=0 contributes zero weight, and p_i>0=q_i is included.
Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P63
Formal statement
noncomputable section
namespace QAlgorithms.Papers.Independent.Intake100.P63
open QAlgorithms Filter Topology
open QAlgorithms.Papers.Independent.Information100.P60 (Mat relativeBits)
open QAlgorithms.Papers.Independent.Information100.P07 (positivePart)
open QAlgorithms.Papers.Independent.Information100.P21 (Vec)
open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)
open QAlgorithms.Papers.Independent.Advance50.P30 (joinCopies defectTensor)
open QAlgorithms.Papers.Independent.Information100.P69 (permute)
open scoped Matrix ComplexConjugate ENNReal ComplexOrder
attribute [local instance] Classical.propDecidable Classical.decEq
/-- PDF p.34 Lemma C.7 Eqs.(C16),(C17): the event p_i≥2^mu q_i is the
source proof's support-safe interpretation of log(p_i/q_i)≥mu. -/
theorem classical_weighted_testing {K : Type*} [Fintype K] [Nonempty K]
(p q weight : K → ℝ) (hp : (∀ i, 0 ≤ p i) ∧ (∑ i, p i) = 1)
(hq : (∀ i, 0 ≤ q i) ∧ (∑ i, q i) = 1)
(hweight : ∀ i, weight i ∈ Set.Icc (0 : ℝ) 1) (mu : ℝ) :
(∑ i, weight i * (p i - (2 : ℝ) ^ mu * q i)) ≤
∑ i, if (2 : ℝ) ^ mu * q i ≤ p i then p i else 0 := by sorry
end QAlgorithms.Papers.Independent.Intake100.P63
end
Source
A Generalization of Quantum Stein's Lemma, arXiv:0904.0281v3, PDF p. 34, Lemma C.7: classical weighted testing bound (adapted from Han)
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every finite nonempty set , functions satisfying , , and for every , and every real number , one has
Zero values of or and endpoint weights or are allowed; indices satisfying are included in the right-hand sum.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.