Expurgation from average reliability and secrecy to messagewise guarantees
OpenQAlgorithms.Papers.Independent.Intakenext100.P30.average_to_worstFix a code on a finite nonempty message alphabet and a single normalized eavesdropper reference . Write for the decoding error and for secrecy error. If and the uniform-message averages of both errors are at most , there is a nonempty subset and a code obtained by restricting the same encoder and changing the decoder such that
The reference remains the original one. This converts uniform-average guarantees into messagewise guarantees at a loss of at most one bit in message size.
All alphabets are finite and nonempty, and output Hilbert spaces are finite dimensional and nonzero. A classical–quantum channel assigns a positive semidefinite, trace-one matrix to each input. Encoders may use private randomness; decoders are normalized POVMs. Codes are fixed independently of the message, with no supplied shared key or entanglement. Logarithms and entropies are in bits.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P30
noncomputable section
open scoped BigOperators ComplexConjugate Matrix ComplexOrder
open Filter
namespace QAlgorithms.Papers.Independent.Intakenext100.P30
variable {X Y Z M U V A B C : Type*}
variable [Fintype X] [DecidableEq X] [Fintype Y] [DecidableEq Y]
variable [Fintype Z] [DecidableEq Z] [Fintype M] [DecidableEq M]
variable [Fintype U] [DecidableEq U] [Fintype V] [DecidableEq V]
variable [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]
variable [Fintype C] [DecidableEq C]
attribute [local instance] Classical.propDecidable
/-- Lemma 1, PDF p.3. Restrict the original encoder to at least half the
messages, changing only the decoder. Keep the SAME normalized secrecy reference
(footnote 2, p.2). Subset allows equality; epsilon=0 is included. -/
theorem average_to_worst [Nonempty X] [Nonempty Y] [Nonempty Z] [Nonempty M]
(thetaY : X → Matrix Y Y ℂ) (thetaZ : X → Matrix Z Z ℂ)
(hY : RRIsCq thetaY) (hZ : RRIsCq thetaZ) (code : RRCode M X Y)
(reference : Matrix Z Z ℂ) (href : IsDensityMatrix reference)
(epsilon : ℝ) (he : 0 ≤ epsilon)
(herror : (Fintype.card M : ℝ)⁻¹ * ∑ m, rrCodeError thetaY code m ≤ epsilon / 4)
(hleak : (Fintype.card M : ℝ)⁻¹ *
∑ m, rrCodeLeak thetaZ code.encoder reference m ≤ epsilon / 4) :
∃ s : Finset M, s.Nonempty ∧ (Fintype.card M : ℝ) / 2 ≤ s.card ∧
∃ restricted : RRCode {m : M // m ∈ s} X Y,
(∀ m, restricted.encoder m = code.encoder m.val) ∧
RRPublicGood thetaY restricted epsilon ∧
∀ m, rrCodeLeak thetaZ restricted.encoder reference m ≤ epsilon := by sorry
end QAlgorithms.Papers.Independent.Intakenext100.P30
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For finite, nonempty types , with decidable equality where required, suppose every and is positive semidefinite with trace one. Let a code consist of a distribution on for each , and matrices with . Fix a density matrix , a real , and define
where the square root is given by continuous functional calculus. If and , then there exists a nonempty subset with , and a code on the message type , whose encoder at each is exactly . Its decoding matrices are positive semidefinite and sum to , and for every retained message,
The conclusion does not require the retained decoding matrices to equal the original ones, and is included.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.