One-shot randomness extraction and all-protocol converse
OpenQAlgorithms.Papers.Independent.Advance50.P02.extraction_oneShotAll Hilbert spaces are finite dimensional and complex; all logarithms are binary. Positive-operator inequalities use the identity when comparing with a scalar. Let be normalized and classical on , and let . A protocol applies a seed-dependent hash with an independent public seed . Its security is , with one normalized reference shared across seeds. Let be the maximal integer length achievable with and security at most . Then
For every individual protocol, the supporting converse (9) also gives
This characterizes extraction while retaining the public seed in the security criterion.
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]
/-- Theorem 8, PDF pp.10--11: public-seed security and integer lengths. -/
theorem extraction_oneShot (blocks : X → Mat B) (hblocks : NormalizedBlocks blocks)
(e eta : ℝ) (heta : 0 < eta) (hetae : eta ≤ e) (he : e < 1) :
positiveTraceSmoothedMinEntropy (e-eta) (cqBlockMatrix blocks) - (logTwo (1 / eta^4) : ℝ) - 3 ≤
(extractionLength e blocks : EReal) ∧
(extractionLength e blocks : EReal) ≤ positiveTraceSmoothedMinEntropy e (cqBlockMatrix blocks) ∧
(∀ P : Extractor X, positiveTraceSmoothedMinEntropy e (cqBlockMatrix blocks) < (logTwo P.outputs : EReal) →
e < extractionSecurity P blocks) := 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 index types , let be matrices on with , and let real satisfy . Put . Then
and every extractor with outputs satisfies
Here means
The distance is , where , using spectral matrix square roots. An extractor consists of a finite seed set, probabilities summing to , a positive integer , and arbitrary functions . Its output and ideal matrices are block diagonal in , with respective blocks and ; its security is the real infimum of their purified distance over all density matrices on . The natural number is the supremum of all integers for which some such extractor has and security at most ; this natural-number supremum is zero if the set is empty or unbounded. All displayed entropy comparisons use extended reals, and . No restriction beyond the stated data is imposed on the hash functions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.