Definitions for "Pretty strong" converse for the private capacity of degraded quantum wiretap channels
DefinitionQAlgorithms_Papers_Independent_Bridge50_P35The objects the formalized statements of "Pretty strong" converse for the private capacity of degraded quantum wiretap channels (arXiv:1601.06611) are stated in. Each was checked against the paper by a blind read-back and a moderator.
CqqChannel: Section II, PDF p.1: a cqq channel with normalized joint output on B,E. Nonempty finite registers are imposed by the result binders.CqqChannel.IsDegraded: Section II, PDF p.1: one CPTP degrading map reproduces every Eve marginal from the corresponding Bob marginal. No complementary-channel or isometric-channel-input assumption is made.encodedOutput: Section II, PDF pp.1–2: the actual channel output conditioned on u. The accepted cqPower tensors the fixed letter outputs independently and groups all Bob registers before all Eve registers.decodingState: Equation (1), PDF p.1: the actual classical U,Uhat marginal. U is uniform; off-diagonal classical entries vanish.secrecyState: Equation (2), PDF p.1: the actual U,E^n marginal, before or after Bob's measurement, which does not change this marginal.idealSecrecyState: Equation (2), PDF p.1: the uniform message marginal tensor a single common normalized comparison state sigma. The density condition is in cqqCodeGood.cqqCodeGood: Equations (1)–(2), PDF p.1: two separate purified-distance errors. The comparison sigma is optimized and need not be the actual Eve marginal. The accepted generalized purified distance reduces to sqrt(1-F_root^2) on these normalized states.logMessageNumber: Section II, PDF p.1: log_2 of the largest admissible message number, equivalently the supremum of log_2 M over actual codes. Taking this supremum in EReal preserves an unbounded value at error one and an empty feasible set at impossible tolerances; neither becomes a spurious real zero. For nonnegative tolerances and epsilon<1 the finite-dimensional coding model makes this a finite, attained maximum, with M=1 feasible.cqqBlockRate: Section II, PDF p.1: rate in bits per use. The unused zero-blocklength term is explicitly zero, so no division by zero or zero-times-infinity convention enters the asymptotics.cqqPrivateCapacity: Section II, PDF p.1: the operational private capacity, exactly the infimum over positive transmission and secrecy tolerances of the liminf of their optimal block rates. This is not defined by a single-letter information formula. EReal extrema retain all endpoint values; for finite nonempty alphabets and registers the resulting capacity is finite.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P48
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P67
/-!
Winter, arXiv:1601.06611v2, PDF pp.1–5. Only Theorem 2's finite-block
bound and its separately documented positive-tolerance limit are drafted.
The accepted paper modules supply only reviewed definitions: cqPower,
P56.PrivateCode (stochastic encoding and a POVM), purifiedDistance, and
idealClassicalKey. Their operational capacities, error predicates, and
quantum-input code models are not used.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Bridge50.P35
open scoped BigOperators Matrix ComplexConjugate
open Filter
open QAlgorithms.Papers.Independent.Dependency50.P48 (cqPower)
open QAlgorithms.Papers.Independent.Information100.P56 (PrivateCode)
open QAlgorithms.Papers.Independent.Information100.P67
(purifiedDistance idealClassicalKey)
attribute [local instance] Classical.propDecidable
variable {X B E : Type*}
variable [Fintype X] [DecidableEq X]
variable [Fintype B] [DecidableEq B]
variable [Fintype E] [DecidableEq E]
/-- Section II, PDF p.1: a cqq channel with normalized joint output on B,E.
Nonempty finite registers are imposed by the result binders. -/
structure CqqChannel (X B E : Type*) [Fintype B] [Fintype E] where
output : X → Matrix (B × E) (B × E) ℂ
density : ∀ x, IsDensityMatrix (output x)
/-- Section II, PDF p.1: one CPTP degrading map reproduces every Eve
marginal from the corresponding Bob marginal. No complementary-channel
or isometric-channel-input assumption is made. -/
def CqqChannel.IsDegraded (W : CqqChannel X B E) : Prop :=
∃ D : Superop B E, IsChannel D ∧
∀ x, D (traceRight (W.output x)) = traceLeft (W.output x)
/- Section II, PDF p.1: reuse the accepted P56.PrivateCode raw code data.
Its positive message count, whole-string stochastic law, and Bob POVM match
this paper exactly. Its separate error/leakage definitions are not used. -/
/-- Section II, PDF pp.1–2: the actual channel output conditioned on u.
The accepted cqPower tensors the fixed letter outputs independently and
groups all Bob registers before all Eve registers. -/
def encodedOutput (W : CqqChannel X B E) {n : ℕ}
(code : PrivateCode X B n) (u : Fin code.messages) :
Matrix ((Fin n → B) × (Fin n → E))
((Fin n → B) × (Fin n → E)) ℂ :=
∑ x, (code.input u x : ℂ) • cqPower W.output n x
/-- Equation (1), PDF p.1: the actual classical U,Uhat marginal.
U is uniform; off-diagonal classical entries vanish. -/
def decodingState (W : CqqChannel X B E) {n : ℕ}
(code : PrivateCode X B n) :
Matrix (Fin code.messages × Fin code.messages)
(Fin code.messages × Fin code.messages) ℂ :=
fun a b => if a = b then
(code.messages : ℂ)⁻¹ * (effectProb (code.decoder a.2)
(traceRight (encodedOutput W code a.1)) : ℂ)
else 0
/-- Equation (2), PDF p.1: the actual U,E^n marginal, before or after
Bob's measurement, which does not change this marginal. -/
def secrecyState (W : CqqChannel X B E) {n : ℕ}
(code : PrivateCode X B n) :
Matrix (Fin code.messages × (Fin n → E)) (Fin code.messages × (Fin n → E)) ℂ :=
fun a b => if a.1 = b.1 then
(code.messages : ℂ)⁻¹ * traceLeft (encodedOutput W code a.1) a.2 b.2
else 0
/-- Equation (2), PDF p.1: the uniform message marginal tensor a single
common normalized comparison state sigma. The density condition is in cqqCodeGood. -/
def idealSecrecyState (M : ℕ) {n : ℕ}
(sigma : Matrix (Fin n → E) (Fin n → E) ℂ) :
Matrix (Fin M × (Fin n → E)) (Fin M × (Fin n → E)) ℂ :=
fun a b => if a.1 = b.1 then (M : ℂ)⁻¹ * sigma a.2 b.2 else 0
/-- Equations (1)–(2), PDF p.1: two separate purified-distance errors.
The comparison sigma is optimized and need not be the actual Eve marginal.
The accepted generalized purified distance reduces to sqrt(1-F_root^2)
on these normalized states. -/
def cqqCodeGood {n : ℕ} (code : PrivateCode X B n)
(W : CqqChannel X B E) (epsilon delta : ℝ) : Prop :=
purifiedDistance (decodingState W code) (idealClassicalKey code.messages) ≤ epsilon ∧
∃ sigma : Matrix (Fin n → E) (Fin n → E) ℂ,
IsDensityMatrix sigma ∧
purifiedDistance (secrecyState W code) (idealSecrecyState code.messages sigma) ≤ delta
/-- Section II, PDF p.1: log_2 of the largest admissible message number,
equivalently the supremum of log_2 M over actual codes. Taking this supremum
in EReal preserves an unbounded value at error one and an empty feasible set
at impossible tolerances; neither becomes a spurious real zero.
For nonnegative tolerances and epsilon<1 the finite-dimensional coding
model makes this a finite, attained maximum, with M=1 feasible. -/
def logMessageNumber (W : CqqChannel X B E) (n : ℕ)
(epsilon delta : ℝ) : EReal :=
sSup {r : EReal | ∃ code : PrivateCode X B n,
cqqCodeGood code W epsilon delta ∧
r = (Real.logb 2 (code.messages : ℝ) : EReal)}
/-- Section II, PDF p.1: rate in bits per use. The unused zero-blocklength
term is explicitly zero, so no division by zero or zero-times-infinity
convention enters the asymptotics. -/
def cqqBlockRate (W : CqqChannel X B E) (n : ℕ) (epsilon delta : ℝ) : EReal :=
if n = 0 then 0 else ((n : ℝ)⁻¹ : EReal) * logMessageNumber W n epsilon delta
/-- Section II, PDF p.1: the operational private capacity, exactly the
infimum over positive transmission and secrecy tolerances of the liminf
of their optimal block rates. This is not defined by a single-letter
information formula. EReal extrema retain all endpoint values; for finite
nonempty alphabets and registers the resulting capacity is finite. -/
def cqqPrivateCapacity (W : CqqChannel X B E) : EReal :=
⨅ (epsilon : ℝ) (_ : 0 < epsilon) (delta : ℝ) (_ : 0 < delta),
Filter.liminf (fun n : ℕ => cqqBlockRate W n epsilon delta) atTop
/-- Empty tensor products are one: the zero-use channel adds no output
information (Section II, PDF p.1). This is only a kernel sanity check. -/
example (W : CqqChannel X B E) (x : Fin 0 → X)
(a b : (Fin 0 → B) × (Fin 0 → E)) : cqPower W.output 0 x a b = 1 := by
simp [cqPower]
/-- With a single message, the comparison has precisely sigma's entries. -/
example {n : ℕ} (sigma : Matrix (Fin n → E) (Fin n → E) ℂ)
(e f : Fin n → E) : idealSecrecyState 1 sigma (0, e) (0, f) = sigma e f := by
simp [idealSecrecyState]
/-- The zero-length rate is the deliberately explicit unused value zero. -/
example (W : CqqChannel X B E) (epsilon delta : ℝ) :
cqqBlockRate W 0 epsilon delta = 0 := by
simp [cqqBlockRate]
/-- The ideal decoding target for one message is the scalar density one. -/
example : idealClassicalKey 1 (0, 0) (0, 0) = 1 := by
simp [idealClassicalKey]
end QAlgorithms.Papers.Independent.Bridge50.P35
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Bridge50.P35.CqqChannel.IsDegraded
For a channel with input labels and finite output types , with decidable equality on , being degraded means that there exists a function from complex -indexed square matrices to complex -indexed square matrices that admits a finite Kraus representation: for some natural number and matrices , and for every matrix . This same must satisfy, for every , , where and . If is empty, the last requirement is vacuous, but the existence of is still required.
QAlgorithms.Papers.Independent.Bridge50.P35.CqqChannel
For an arbitrary type and finite types , a channel of this structure consists of a function assigning to every a complex matrix indexed by , together with the requirement that every is positive semidefinite and has trace . No linear map on input matrices is part of this structure. The type may be empty, in which case the density requirements are vacuous; if is inhabited, those requirements exclude an empty .
QAlgorithms.Papers.Independent.Bridge50.P35.cqqBlockRate
For finite types , with decidable equality as needed, a channel of trace on , a natural number , and arbitrary real , the block rate is exactly if . If , it is times the extended-real supremum of over codes with , distributions on , and decoder matrices on summing to , subject to these requirements: writing , the diagonal distribution on is within purified distance of uniform perfect agreement, and the block diagonal matrix with blocks is within purified distance of the matrix with identical blocks for some positive semidefinite, trace-one . Purified distance here means
The supremum of an empty qualifying set is ; the special value at is imposed independently of that supremum.
QAlgorithms.Papers.Independent.Bridge50.P35.cqqCodeGood
For finite types , with decidable equality as needed for the matrix operations, a channel of positive semidefinite, trace-one matrices on , any natural blocklength , a code with messages, whole-string probability distributions on , and decoder matrices on satisfying , define , , and . Let be diagonal with ; let have entries exactly when , and otherwise; and let . For arbitrary real , the code is good precisely when and there exists a positive semidefinite, trace-one matrix on such that , where and
Here matrix square roots use spectral functional calculus, and the real square root is the total function that is on negative inputs. Neither error parameter is assumed nonnegative, and is allowed.
QAlgorithms.Papers.Independent.Bridge50.P35.cqqPrivateCapacity
For finite types , with decidable equality as needed, and a channel of trace on , its private capacity is the extended real number
Here ; for , is times the extended-real supremum of over positive message counts , probability distributions on , and positive semidefinite decoder matrices on summing to . With , qualifying codes require that the diagonal matrix with entries at be within purified distance of uniform perfect agreement, and that the block diagonal matrix with blocks be within purified distance of identical blocks for some positive semidefinite, trace-one on . The distance is , where , with spectral matrix square roots. The infimum ranges over all strictly positive real error parameters, without an upper bound, and the definition does not assert finiteness of the capacity.
QAlgorithms.Papers.Independent.Bridge50.P35.decodingState
For finite types , with decidable equality on , a channel of positive semidefinite, trace-one matrices on , a natural blocklength , and a code with messages, whole-string input distributions on , and positive semidefinite decoder matrices on summing to the identity, define
The decoding state is the diagonal matrix indexed by pairs of messages, with
Thus its diagonal records a uniform input message and the decoder outcome. The definition also applies at .
QAlgorithms.Papers.Independent.Bridge50.P35.encodedOutput
Let be finite types, with decidable equality on , and let be a positive semidefinite, trace-one matrix on for every . For any natural blocklength , a code consists of a positive message count , a probability distribution on the whole string space for each message , and matrices on that are positive semidefinite and satisfy . For each message , its encoded output is the matrix on whose entries are
The distributions may correlate the input coordinates, and the decoder matrices do not enter this expression. The definition includes , when every product is and the resulting matrix has its single entry equal to .
QAlgorithms.Papers.Independent.Bridge50.P35.idealSecrecyState
For natural numbers , an output type , and any complex matrix indexed by , the ideal secrecy matrix is indexed by and has entries
There is no hypothesis that is positive semidefinite or has trace , nor that . If , the indexing type is empty; if , is a matrix on the singleton space of empty strings.
QAlgorithms.Papers.Independent.Bridge50.P35.logMessageNumber
For finite types , with decidable equality as needed, a channel of trace on , a natural blocklength , and arbitrary real , the log message number is the supremum in the extended real numbers of over the following codes: ; each message has a probability distribution on ; and decoder matrices on satisfy . For such a code form , the diagonal decoding matrix with entries at , and the secrecy matrix with message block . The decoding matrix must be within purified distance of the diagonal matrix assigning weight to each pair ; for some positive semidefinite, trace-one on , the secrecy matrix must be within purified distance of the block diagonal matrix having every message block . For matrices , that distance is
All matrix roots use spectral functional calculus. The supremum is if there are no qualifying codes and can be ; and negative error parameters are included.
QAlgorithms.Papers.Independent.Bridge50.P35.secrecyState
For finite types , with decidable equality on , a channel of positive semidefinite, trace-one matrices on , a natural blocklength , and a code with messages, probability distributions on , and a positive semidefinite decoder family on summing to the identity, set
The secrecy state is the matrix on given by when , and otherwise. The decoder family does not enter this expression, and is included.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.