Four properties of hypothesis-testing relative entropy
OpenQAlgorithms.Papers.Independent.Bridge50.P01.lemma7_testing_propertiesLet and let all Hilbert spaces be finite dimensional and nonzero. For a density matrix and a positive semidefinite operator , define
A zero minimum gives . Then:
- For , .
- For , .
- For any finite nonempty alphabet , independently chosen probability distributions , conditional density matrices , and density matrix , put and . Then
- If and are densities with , then for every positive semidefinite .
These properties control comparison states, scaling, classical conditioning, and perturbations in the one-shot analysis.
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P01
noncomputable section
namespace QAlgorithms.Papers.Independent.Bridge50.P01
open QAlgorithms Filter MeasureTheory
open scoped Matrix ComplexConjugate ComplexOrder ENNReal
-- Reuse pinned accepted definitions; these are not other draft chunks.
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
open QAlgorithms.Papers.Independent.Information100.P58 (testingBeta testingD)
open QAlgorithms.Papers.Independent.Information100.P63 (normalCDF normalQuantile)
open QAlgorithms.Papers.Independent.Information100.P71 (channelPower)
open QAlgorithms.Papers.Independent.Information100.P80 (log2)
open QAlgorithms.Papers.Independent.Dependency50.P19 (mutualInformation)
open QAlgorithms.Papers.Independent.Dependency50.P24 (cqState)
open QAlgorithms.Papers.Independent.Dependency50.P36 (relativeEntropyFinite)
open QAlgorithms.Papers.Independent.Frontier30.P01 (classicalState)
attribute [local instance] Classical.propDecidable Classical.decEq
/-- PDF pp.7–8, Lemma 7: all four properties, including arbitrary p and q
in the cq comparison and an unnormalized, possibly zero, PSD alternative. -/
theorem lemma7_testing_properties (epsilon : ℝ) (h0 : 0 < epsilon) (h1 : epsilon < 1) :
(∀ (I : Type) [Fintype I] [DecidableEq I] [Nonempty I]
(rho sigma sigmaLarge : Op I),
IsDensityMatrix rho → sigma.PosSemidef → (sigmaLarge - sigma).PosSemidef →
testingD epsilon rho sigmaLarge ≤ testingD epsilon rho sigma) ∧
(∀ (I : Type) [Fintype I] [DecidableEq I] [Nonempty I]
(rho sigma : Op I) (alpha : ℝ),
IsDensityMatrix rho → sigma.PosSemidef → 0 < alpha →
testingD epsilon rho ((alpha : ℂ) • sigma) =
testingD epsilon rho sigma - (log2 alpha : EReal)) ∧
(∀ (X B : Type) [Fintype X] [Fintype B] [DecidableEq X] [DecidableEq B]
[Nonempty X] [Nonempty B] (p q : X → ℝ) (rho : X → Op B) (sigma : Op B),
(∀ x, 0 ≤ p x) → (∑ x, p x) = 1 →
(∀ x, 0 ≤ q x) → (∑ x, q x) = 1 →
(∀ x, IsDensityMatrix (rho x)) → IsDensityMatrix sigma →
(Finset.univ.inf (fun x => testingD epsilon (rho x) sigma)) ≤
testingD epsilon (cqState p rho) (Matrix.kronecker (classicalState q) sigma)) ∧
(∀ (I : Type) [Fintype I] [DecidableEq I] [Nonempty I]
(rho rhoNear sigma : Op I) (delta : ℝ),
0 < delta → delta < 1 - epsilon → IsDensityMatrix rho → IsDensityMatrix rhoNear →
traceNorm (rho - rhoNear) / 2 ≤ delta → sigma.PosSemidef →
testingD epsilon rhoNear sigma ≤ testingD (epsilon + delta) rho sigma) := by sorry
end QAlgorithms.Papers.Independent.Bridge50.P01
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Fix a real number . For matrices on a common finite index set, write
where the infimum is a real infimum and the resulting logarithm is embedded in the extended reals. Also write , and call a matrix a density matrix when it is positive semidefinite with trace . The theorem asserts all four of the following statements: for every finite nonempty type with decidable equality and matrices on , if is a density matrix, , and , then ; for every such , every density matrix , every , and every real ,
for every two finite nonempty types with decidable equality, every two functions satisfying and , every family of density matrices on , and every density matrix on ,
and, for every finite nonempty with decidable equality, matrices , and on , and real , if are density matrices, , and , then
The two distributions in the third statement need not coincide and may contain zero weights; its minimum is over every , including zero-weight indices. The positive semidefinite matrices used as second arguments need not have trace and may be zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.