Theorem 5: explicit finite-sample upper and lower testing bounds
OpenQAlgorithms.Papers.Independent.Advance50.P01.theorem5_finiteSampleBoundsLet and be positive semidefinite complex matrices of trace one on a common nonzero finite-dimensional Hilbert space, with . All logarithms are natural. Write and , with zero kernel contributions. Tests are all binary POVMs on the -fold tensor product; their conditional errors are and . Let denote the standard normal cumulative distribution function.
Assume and fix . Let be a valid universal Berry–Esseen constant, independent of the states, bases, sample size and tolerance, with . For any complete spectral presentations let and . Zero-weight terms are zero. Define , and . For every integer , the following bounds hold whenever their respective shifted-tolerance conditions hold:
Use and . For sufficiently large , both arguments are interior and, with ,
These are separate finite bounds and expansions of the bounding expressions. In particular the theorem does not identify the optimized remainder with either bounding remainder.
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P01
noncomputable section
open Filter
open scoped Topology
namespace QAlgorithms.Papers.Independent.Advance50.P01
open QAlgorithms.Papers.Independent.Information100.P71 (SupportIncluded)
open QAlgorithms.Papers.Independent.Information100.P63 (normalCDF normalQuantile tensorPower)
open QAlgorithms.Papers.Independent.Information100.P58 (testingBeta testingD)
open QAlgorithms.Papers.Independent.Dependency50.P36 (relativeEntropyFinite)
attribute [local instance] Classical.propDecidable
-- Match the universe-zero matrix indices of the pinned accepted interfaces.
variable {I : Type} [Fintype I] [DecidableEq I]
-- SupportIncluded is opened directly from the accepted Information100.P71 module.
/-- Theorem 5, source PDF pp. 14–16, (44)–(45). Each finite inequality has its own
weak shifted-epsilon condition and n>=1. Extended quantiles retain the endpoints.
The final clauses expand the bounding expressions, not the optimized divergence itself.
Zero-weight sigma-kernel terms implement compression (p. 5). -/
theorem theorem5_finiteSampleBounds (C : ℝ) (hC : IsBerryEsseenConstant C)
(hCrange : (0.40973 : ℝ) ≤ C ∧ C ≤ (0.4784 : ℝ))
[Nonempty I] (rho sigma : Matrix I I ℂ)
(hrho : IsDensityMatrix rho) (hsigma : IsDensityMatrix sigma)
(hsupport : SupportIncluded rho sigma) (hV : 0 < relativeVarianceNats rho sigma)
(r : SpectralDecomposition rho) (s : SpectralDecomposition sigma)
(epsilon : ℝ) (hepsilon : 0 < epsilon ∧ epsilon < 1) :
(∀ n : ℕ, 1 ≤ n →
0 ≤ epsilon - beCorrection C (relativeVarianceNats rho sigma) (spectralThirdMoment r s) n →
finiteLower rho sigma epsilon C (spectralThirdMoment r s) n ≤
iidTestingDivergenceNats rho sigma n epsilon) ∧
(∀ n : ℕ, 1 ≤ n →
epsilon + beCorrection C (relativeVarianceNats rho sigma) (spectralThirdMoment r s) n +
2 / Real.sqrt n ≤ 1 →
iidTestingDivergenceNats rho sigma n epsilon ≤
finiteUpper rho sigma epsilon C (spectralThirdMoment r s) n) ∧
(∃ lowerRemainder upperRemainder : ℕ → ℝ,
(lowerRemainder =O[atTop] (fun _ : ℕ => (1 : ℝ))) ∧
(upperRemainder =O[atTop] (fun _ : ℕ => (1 : ℝ))) ∧
∃ N : ℕ, 1 ≤ N ∧ ∀ n ≥ N,
0 < epsilon - beCorrection C (relativeVarianceNats rho sigma) (spectralThirdMoment r s) n ∧
epsilon + beCorrection C (relativeVarianceNats rho sigma) (spectralThirdMoment r s) n +
2 / Real.sqrt n < 1 ∧
finiteLower rho sigma epsilon C (spectralThirdMoment r s) n =
((secondOrderCenter rho sigma epsilon n + lowerRemainder n : ℝ) : EReal) ∧
finiteUpper rho sigma epsilon C (spectralThirdMoment r s) n =
((secondOrderCenter rho sigma epsilon n + 2 * Real.log n +
upperRemainder n : ℝ) : EReal)) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P01
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let satisfy the following property: , and for every natural number , every probability vector on , and every real family with mean , positive variance , and third absolute central moment , the probability that , for independent samples with law , differs from by at most , for every and real ; here . Let be a nonempty finite type with decidable equality, and let be positive semidefinite matrices of trace one with . Define
Choose any spectral decompositions , , with orthonormal bases and nonnegative weights summing to one. Put , let when both weights are nonzero and otherwise, and set ; strict positivity of every is not assumed. For , define
and . Let for , for , and otherwise, and put and . The theorem asserts for every satisfying , and for every satisfying , including equality at these quantile endpoints. It also asserts that there are real sequences , each bounded in absolute value eventually, and an , such that for every both quantile arguments lie strictly between zero and one and
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.