Iid randomness extraction expansion
OpenQAlgorithms.Papers.Independent.Advance50.P02.extraction_iid_secondOrderAll Hilbert spaces are finite dimensional and complex; all logarithms are binary. Positive-operator inequalities use the identity when comparing with a scalar. Fix a normalized finite CQ source and . Let and be its centered conditional pair variance. For maximal integer extraction length with an independent public seed and the purified-distance security criterion,
The remainder is two-sided with constants before , and includes and singular marginals. The plus sign and squared error distinguish this expansion from compression.
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P02
noncomputable section
open Filter
open scoped BigOperators Matrix ComplexOrder ComplexConjugate Matrix.Norms.L2Operator Topology
namespace QAlgorithms.Papers.Independent.Advance50.P02
attribute [local instance] Classical.propDecidable Classical.decEq
open QAlgorithms.Papers.Independent.Information100.P63
(Mat tensorPower logTwo normalQuantile testingBeta)
open QAlgorithms.Papers.Independent.Information100.P71 (SupportIncluded supportPower)
open QAlgorithms (effectProb)
open QAlgorithms.Papers.Independent.Information100.P06 (Below)
open QAlgorithms.Papers.Independent.Information100.P30 (tensorMap)
open QAlgorithms.Papers.Independent.Information100.P67 (purifiedDistance)
open QAlgorithms.Papers.Independent.Dependency50.P26 (TracePreserving)
open QAlgorithms.Papers.Independent.Dependency50.P28 (pinch)
variable {I J A B X Z : Type} [Fintype I] [DecidableEq I]
[Fintype J] [DecidableEq J] [Fintype A] [DecidableEq A]
[Fintype B] [DecidableEq B] [Fintype X] [DecidableEq X]
[Fintype Z] [DecidableEq Z]
/-- Corollary 16, PDF p.20: plus Phi^-1(epsilon^2), retaining the public seed. Source correction. Printed: Definition 1 p.7 prints V=Tr rho(log rho-log sigma)^2; p.19 prints Gaussian density exp(+x^2/2).
Changed: Use centered V=Tr rho(log rho-log sigma)^2-D^2 and the standard normal density exp(-x^2/2).
Why: Section VI identifies s^2 as Var(Z) and uses the standard normal Berry–Esseen theorem. For pure rho and sigma=I/d the likelihood is constant, hence V=0 even when D=log2(d) is nonzero. -/
theorem extraction_iid_secondOrder (blocks : X → Mat B) (hblocks : NormalizedBlocks blocks)
(e : ℝ) (he : 0 < e ∧ e < 1) :
LogarithmicRemainder (fun n => (extractionLength e (blocksPower n blocks) : EReal))
(fun n => gaussianCenter n (conditionalMean blocks) (cqConditionalVariance blocks) (e^2)) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P02
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For finite types with decidable equality, let matrices indexed by satisfy , and let . Define , , , and
using spectral functional calculus with . At length , put for . An extractor consists of a finite public seed with probabilities , , a positive natural output count , and maps . Its output and its ideal output for a density matrix on are block diagonal in seed and output label, with respective blocks
Its security value is the real infimum over all density matrices of
Let be the supremum in of all natural for which an extractor has security value at most and ; this natural-number supremum is for an empty or unbounded feasible set. With , there exist and such that every natural satisfies
The length is embedded in the extended reals in these inequalities. Zero blocks and zero variance are included; the normalization hypothesis excludes empty or .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.