Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for "Pretty strong" converse for the private capacity of degraded quantum wiretap channels

Definition
QAlgorithms_Papers_Independent_Bridge50_P35

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The 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.
Definition code
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
Source
"Pretty strong" converse for the private capacity of degraded quantum wiretap channels, arXiv:1601.06611v2, https://arxiv.org/abs/1601.06611v2
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 WWW with input labels XXX and finite output types B,EB,EB,E, with decidable equality on BBB, being degraded means that there exists a function DDD from complex BBB-indexed square matrices to complex EEE-indexed square matrices that admits a finite Kraus representation: for some natural number rrr and matrices Kj:CB→CEK_j:\mathbb C^B\to\mathbb C^EKj​:CB→CE, ∑j<rKj†Kj=IB\sum_{j<r}K_j^\dagger K_j=I_B∑j<r​Kj†​Kj​=IB​ and D(A)=∑j<rKjAKj†D(A)=\sum_{j<r}K_jAK_j^\daggerD(A)=∑j<r​Kj​AKj†​ for every matrix AAA. This same DDD must satisfy, for every x∈Xx\in Xx∈X, D(Tr⁡EWx)=Tr⁡BWxD(\operatorname{Tr}_E W_x)=\operatorname{Tr}_B W_xD(TrE​Wx​)=TrB​Wx​, where (Tr⁡EWx)b,b′=∑e(Wx)(b,e),(b′,e)(\operatorname{Tr}_E W_x)_{b,b'}=\sum_e(W_x)_{(b,e),(b',e)}(TrE​Wx​)b,b′​=∑e​(Wx​)(b,e),(b′,e)​ and (Tr⁡BWx)e,e′=∑b(Wx)(b,e),(b,e′)(\operatorname{Tr}_B W_x)_{e,e'}=\sum_b(W_x)_{(b,e),(b,e')}(TrB​Wx​)e,e′​=∑b​(Wx​)(b,e),(b,e′)​. If XXX is empty, the last requirement is vacuous, but the existence of DDD is still required.

QAlgorithms.Papers.Independent.Bridge50.P35.CqqChannel

For an arbitrary type XXX and finite types B,EB,EB,E, a channel of this structure consists of a function WWW assigning to every x∈Xx\in Xx∈X a complex matrix WxW_xWx​ indexed by B×EB\times EB×E, together with the requirement that every WxW_xWx​ is positive semidefinite and has trace 111. No linear map on input matrices is part of this structure. The type XXX may be empty, in which case the density requirements are vacuous; if XXX is inhabited, those requirements exclude an empty B×EB\times EB×E.

QAlgorithms.Papers.Independent.Bridge50.P35.cqqBlockRate

For finite types X,B,EX,B,EX,B,E, with decidable equality as needed, a channel Wx≥0W_x\ge0Wx​≥0 of trace 111 on B×EB\times EB×E, a natural number nnn, and arbitrary real ϵ,δ\epsilon,\deltaϵ,δ, the block rate is exactly 000 if n=0n=0n=0. If n>0n>0n>0, it is n−1n^{-1}n−1 times the extended-real supremum of log⁡2M\log_2Mlog2​M over codes with M>0M>0M>0, distributions pup_upu​ on XnX^nXn, and decoder matrices Fv≥0F_v\ge0Fv​≥0 on BnB^nBn summing to III, subject to these requirements: writing Ωu=∑xpu(x)⨂i<nWxi\Omega_u=\sum_xp_u(x)\bigotimes_{i<n}W_{x_i}Ωu​=∑x​pu​(x)⨂i<n​Wxi​​, the diagonal distribution M−1Re⁡Tr⁡(FvTr⁡EnΩu)M^{-1}\operatorname{Re}\operatorname{Tr}(F_v\operatorname{Tr}_{E^n}\Omega_u)M−1ReTr(Fv​TrEn​Ωu​) on (u,v)(u,v)(u,v) is within purified distance ϵ\epsilonϵ of uniform perfect agreement, and the block diagonal matrix with blocks M−1Tr⁡BnΩuM^{-1}\operatorname{Tr}_{B^n}\Omega_uM−1TrBn​Ωu​ is within purified distance δ\deltaδ of the matrix with identical blocks M−1σM^{-1}\sigmaM−1σ for some positive semidefinite, trace-one σ\sigmaσ. Purified distance here means

P(H,J)=1−(Re⁡Tr⁡H JH+(1−Re⁡Tr⁡H)(1−Re⁡Tr⁡J))2.P(H,J)=\sqrt{1-\left(\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt H\,J\sqrt H} +\sqrt{(1-\operatorname{Re}\operatorname{Tr}H)(1-\operatorname{Re}\operatorname{Tr}J)}\right)^2}.P(H,J)=1−(ReTrH​JH​​+(1−ReTrH)(1−ReTrJ)​)2​.

The supremum of an empty qualifying set is −∞-\infty−∞; the special value at n=0n=0n=0 is imposed independently of that supremum.

QAlgorithms.Papers.Independent.Bridge50.P35.cqqCodeGood

For finite types X,B,EX,B,EX,B,E, with decidable equality as needed for the matrix operations, a channel WxW_xWx​ of positive semidefinite, trace-one matrices on B×EB\times EB×E, any natural blocklength nnn, a code with M>0M>0M>0 messages, whole-string probability distributions pup_upu​ on XnX^nXn, and decoder matrices Fv≥0F_v\ge0Fv​≥0 on BnB^nBn satisfying ∑vFv=I\sum_vF_v=I∑v​Fv​=I, define Ωu=∑xpu(x)⨂i<nWxi\Omega_u=\sum_xp_u(x)\bigotimes_{i<n}W_{x_i}Ωu​=∑x​pu​(x)⨂i<n​Wxi​​, Bu=Tr⁡EnΩuB_u=\operatorname{Tr}_{E^n}\Omega_uBu​=TrEn​Ωu​, and Eu=Tr⁡BnΩuE_u=\operatorname{Tr}_{B^n}\Omega_uEu​=TrBn​Ωu​. Let AAA be diagonal with A(u,v),(u,v)=M−1Re⁡Tr⁡(FvBu)A_{(u,v),(u,v)}=M^{-1}\operatorname{Re}\operatorname{Tr}(F_vB_u)A(u,v),(u,v)​=M−1ReTr(Fv​Bu​); let KKK have entries K(u,v),(u′,v′)=M−1K_{(u,v),(u',v')}=M^{-1}K(u,v),(u′,v′)​=M−1 exactly when u=v=u′=v′u=v=u'=v'u=v=u′=v′, and 000 otherwise; and let S(u,e),(v,e′)=1u=vM−1(Eu)e,e′S_{(u,e),(v,e')}=\mathbf1_{u=v}M^{-1}(E_u)_{e,e'}S(u,e),(v,e′)​=1u=v​M−1(Eu​)e,e′​. For arbitrary real ϵ,δ\epsilon,\deltaϵ,δ, the code is good precisely when P(A,K)≤ϵP(A,K)\le\epsilonP(A,K)≤ϵ and there exists a positive semidefinite, trace-one matrix σ\sigmaσ on EnE^nEn such that P(S,Tσ)≤δP(S,T_\sigma)\le\deltaP(S,Tσ​)≤δ, where (Tσ)(u,e),(v,e′)=1u=vM−1σe,e′(T_\sigma)_{(u,e),(v,e')}=\mathbf1_{u=v}M^{-1}\sigma_{e,e'}(Tσ​)(u,e),(v,e′)​=1u=v​M−1σe,e′​ and

P(H,J)=1−(Re⁡Tr⁡H JH+(1−Re⁡Tr⁡H)(1−Re⁡Tr⁡J))2.P(H,J)=\sqrt{1-\left(\operatorname{Re}\operatorname{Tr} \sqrt{\sqrt H\,J\sqrt H} +\sqrt{(1-\operatorname{Re}\operatorname{Tr}H)(1-\operatorname{Re}\operatorname{Tr}J)}\right)^2}.P(H,J)=1−(ReTrH​JH​​+(1−ReTrH)(1−ReTrJ)​)2​.

Here matrix square roots use spectral functional calculus, and the real square root is the total function that is 000 on negative inputs. Neither error parameter is assumed nonnegative, and n=0n=0n=0 is allowed.

QAlgorithms.Papers.Independent.Bridge50.P35.cqqPrivateCapacity

For finite types X,B,EX,B,EX,B,E, with decidable equality as needed, and a channel Wx≥0W_x\ge0Wx​≥0 of trace 111 on B×EB\times EB×E, its private capacity is the extended real number

inf⁡ϵ>0,  δ>0  lim inf⁡n→∞Rn(ϵ,δ).\inf_{\epsilon>0,\;\delta>0}\;\liminf_{n\to\infty}R_n(\epsilon,\delta).ϵ>0,δ>0inf​n→∞liminf​Rn​(ϵ,δ).

Here R0(ϵ,δ)=0R_0(\epsilon,\delta)=0R0​(ϵ,δ)=0; for n>0n>0n>0, RnR_nRn​ is n−1n^{-1}n−1 times the extended-real supremum of log⁡2M\log_2Mlog2​M over positive message counts MMM, probability distributions pup_upu​ on XnX^nXn, and positive semidefinite decoder matrices FvF_vFv​ on BnB^nBn summing to III. With Ωu=∑xpu(x)⨂i<nWxi\Omega_u=\sum_xp_u(x)\bigotimes_{i<n}W_{x_i}Ωu​=∑x​pu​(x)⨂i<n​Wxi​​, qualifying codes require that the diagonal matrix with entries M−1Re⁡Tr⁡(FvTr⁡EnΩu)M^{-1}\operatorname{Re}\operatorname{Tr}(F_v\operatorname{Tr}_{E^n}\Omega_u)M−1ReTr(Fv​TrEn​Ωu​) at (u,v)(u,v)(u,v) be within purified distance ϵ\epsilonϵ of uniform perfect agreement, and that the block diagonal matrix with blocks M−1Tr⁡BnΩuM^{-1}\operatorname{Tr}_{B^n}\Omega_uM−1TrBn​Ωu​ be within purified distance δ\deltaδ of identical blocks M−1σM^{-1}\sigmaM−1σ for some positive semidefinite, trace-one σ\sigmaσ on EnE^nEn. The distance is P(H,J)=1−(f(H,J)+(1−Re⁡Tr⁡H)(1−Re⁡Tr⁡J))2P(H,J)=\sqrt{1-(f(H,J)+\sqrt{(1-\operatorname{Re}\operatorname{Tr}H)(1-\operatorname{Re}\operatorname{Tr}J)})^2}P(H,J)=1−(f(H,J)+(1−ReTrH)(1−ReTrJ)​)2​, where f(H,J)=Re⁡Tr⁡H JHf(H,J)=\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt H\,J\sqrt H}f(H,J)=ReTrH​JH​​, 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 X,B,EX,B,EX,B,E, with decidable equality on BBB, a channel x↦Wxx\mapsto W_xx↦Wx​ of positive semidefinite, trace-one matrices on B×EB\times EB×E, a natural blocklength nnn, and a code with M>0M>0M>0 messages, whole-string input distributions pup_upu​ on XnX^nXn, and positive semidefinite decoder matrices FvF_vFv​ on BnB^nBn summing to the identity, define

(Ωu)(b,e),(b′,e′)=∑x∈Xnpu(x)∏i<n(Wxi)(bi,ei),(bi′,ei′),(Bu)b,b′=∑e∈En(Ωu)(b,e),(b′,e).(\Omega_u)_{(b,e),(b',e')} =\sum_{x\in X^n}p_u(x)\prod_{i<n}(W_{x_i})_{(b_i,e_i),(b'_i,e'_i)}, \qquad (B_u)_{b,b'}=\sum_{e\in E^n}(\Omega_u)_{(b,e),(b',e)}.(Ωu​)(b,e),(b′,e′)​=x∈Xn∑​pu​(x)i<n∏​(Wxi​​)(bi​,ei​),(bi′​,ei′​)​,(Bu​)b,b′​=e∈En∑​(Ωu​)(b,e),(b′,e)​.

The decoding state is the diagonal matrix AAA indexed by pairs (u,v)(u,v)(u,v) of messages, with

A(u,v),(u′,v′)={M−1Re⁡Tr⁡(FvBu),(u,v)=(u′,v′),0,otherwise.A_{(u,v),(u',v')}= \begin{cases} M^{-1}\operatorname{Re}\operatorname{Tr}(F_vB_u),&(u,v)=(u',v'),\\ 0,&\text{otherwise}. \end{cases}A(u,v),(u′,v′)​={M−1ReTr(Fv​Bu​),0,​(u,v)=(u′,v′),otherwise.​

Thus its diagonal records a uniform input message and the decoder outcome. The definition also applies at n=0n=0n=0.

QAlgorithms.Papers.Independent.Bridge50.P35.encodedOutput

Let X,B,EX,B,EX,B,E be finite types, with decidable equality on BBB, and let WxW_xWx​ be a positive semidefinite, trace-one matrix on B×EB\times EB×E for every x∈Xx\in Xx∈X. For any natural blocklength nnn, a code consists of a positive message count MMM, a probability distribution pup_upu​ on the whole string space XnX^nXn for each message u<Mu<Mu<M, and matrices FuF_uFu​ on BnB^nBn that are positive semidefinite and satisfy ∑u<MFu=I\sum_{u<M}F_u=I∑u<M​Fu​=I. For each message uuu, its encoded output is the matrix Ωu\Omega_uΩu​ on Bn×EnB^n\times E^nBn×En whose entries are

(Ωu)(b,e),(b′,e′)=∑x∈Xnpu(x)∏i=0n−1(Wxi)(bi,ei),(bi′,ei′).(\Omega_u)_{(b,e),(b',e')} =\sum_{x\in X^n}p_u(x)\prod_{i=0}^{n-1}(W_{x_i})_{(b_i,e_i),(b'_i,e'_i)}.(Ωu​)(b,e),(b′,e′)​=x∈Xn∑​pu​(x)i=0∏n−1​(Wxi​​)(bi​,ei​),(bi′​,ei′​)​.

The distributions pup_upu​ may correlate the input coordinates, and the decoder matrices do not enter this expression. The definition includes n=0n=0n=0, when every product is 111 and the resulting matrix has its single entry equal to 111.

QAlgorithms.Papers.Independent.Bridge50.P35.idealSecrecyState

For natural numbers M,nM,nM,n, an output type EEE, and any complex matrix σ\sigmaσ indexed by EnE^nEn, the ideal secrecy matrix is indexed by {0,…,M−1}×En\{0,\ldots,M-1\}\times E^n{0,…,M−1}×En and has entries

T(u,e),(v,e′)={M−1σe,e′,u=v,0,u≠v.T_{(u,e),(v,e')}= \begin{cases} M^{-1}\sigma_{e,e'},&u=v,\\ 0,&u\ne v. \end{cases}T(u,e),(v,e′)​={M−1σe,e′​,0,​u=v,u=v.​

There is no hypothesis that σ\sigmaσ is positive semidefinite or has trace 111, nor that M>0M>0M>0. If M=0M=0M=0, the indexing type is empty; if n=0n=0n=0, σ\sigmaσ is a matrix on the singleton space of empty strings.

QAlgorithms.Papers.Independent.Bridge50.P35.logMessageNumber

For finite types X,B,EX,B,EX,B,E, with decidable equality as needed, a channel Wx≥0W_x\ge0Wx​≥0 of trace 111 on B×EB\times EB×E, a natural blocklength nnn, and arbitrary real ϵ,δ\epsilon,\deltaϵ,δ, the log message number is the supremum in the extended real numbers of log⁡2M\log_2Mlog2​M over the following codes: M>0M>0M>0; each message u<Mu<Mu<M has a probability distribution pup_upu​ on XnX^nXn; and decoder matrices Fv≥0F_v\ge0Fv​≥0 on BnB^nBn satisfy ∑vFv=I\sum_vF_v=I∑v​Fv​=I. For such a code form Ωu=∑xpu(x)⨂i<nWxi\Omega_u=\sum_xp_u(x)\bigotimes_{i<n}W_{x_i}Ωu​=∑x​pu​(x)⨂i<n​Wxi​​, the diagonal decoding matrix with entries M−1Re⁡Tr⁡(FvTr⁡EnΩu)M^{-1}\operatorname{Re}\operatorname{Tr}(F_v\operatorname{Tr}_{E^n}\Omega_u)M−1ReTr(Fv​TrEn​Ωu​) at (u,v)(u,v)(u,v), and the secrecy matrix with message block M−1Tr⁡BnΩuM^{-1}\operatorname{Tr}_{B^n}\Omega_uM−1TrBn​Ωu​. The decoding matrix must be within purified distance ϵ\epsilonϵ of the diagonal matrix assigning weight M−1M^{-1}M−1 to each pair (u,u)(u,u)(u,u); for some positive semidefinite, trace-one σ\sigmaσ on EnE^nEn, the secrecy matrix must be within purified distance δ\deltaδ of the block diagonal matrix having every message block M−1σM^{-1}\sigmaM−1σ. For matrices H,JH,JH,J, that distance is

1−(Re⁡Tr⁡H JH+(1−Re⁡Tr⁡H)(1−Re⁡Tr⁡J))2.\sqrt{1-\left(\operatorname{Re}\operatorname{Tr}\sqrt{\sqrt H\,J\sqrt H} +\sqrt{(1-\operatorname{Re}\operatorname{Tr}H)(1-\operatorname{Re}\operatorname{Tr}J)}\right)^2}.1−(ReTrH​JH​​+(1−ReTrH)(1−ReTrJ)​)2​.

All matrix roots use spectral functional calculus. The supremum is −∞-\infty−∞ if there are no qualifying codes and can be +∞+\infty+∞; n=0n=0n=0 and negative error parameters are included.

QAlgorithms.Papers.Independent.Bridge50.P35.secrecyState

For finite types X,B,EX,B,EX,B,E, with decidable equality on BBB, a channel x↦Wxx\mapsto W_xx↦Wx​ of positive semidefinite, trace-one matrices on B×EB\times EB×E, a natural blocklength nnn, and a code with M>0M>0M>0 messages, probability distributions pup_upu​ on XnX^nXn, and a positive semidefinite decoder family on BnB^nBn summing to the identity, set

(Ωu)(b,e),(b′,e′)=∑x∈Xnpu(x)∏i<n(Wxi)(bi,ei),(bi′,ei′),(Eu)e,e′=∑b∈Bn(Ωu)(b,e),(b,e′).(\Omega_u)_{(b,e),(b',e')} =\sum_{x\in X^n}p_u(x)\prod_{i<n}(W_{x_i})_{(b_i,e_i),(b'_i,e'_i)}, \qquad (E_u)_{e,e'}=\sum_{b\in B^n}(\Omega_u)_{(b,e),(b,e')}.(Ωu​)(b,e),(b′,e′)​=x∈Xn∑​pu​(x)i<n∏​(Wxi​​)(bi​,ei​),(bi′​,ei′​)​,(Eu​)e,e′​=b∈Bn∑​(Ωu​)(b,e),(b,e′)​.

The secrecy state is the matrix SSS on {0,…,M−1}×En\{0,\ldots,M-1\}\times E^n{0,…,M−1}×En given by S(u,e),(v,e′)=M−1(Eu)e,e′S_{(u,e),(v,e')}=M^{-1}(E_u)_{e,e'}S(u,e),(v,e′)​=M−1(Eu​)e,e′​ when u=vu=vu=v, and 000 otherwise. The decoder family does not enter this expression, and n=0n=0n=0 is included.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me