Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Decoding quantum information via the Petz recovery map

Definition
QAlgorithms_Papers_Independent_Bridge50_P38

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

prove2quantum

The objects the formalized statements of Decoding quantum information via the Petz recovery map (arXiv:1504.04449) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • SubspaceCode: PDF pp.7–8, (3.1),(3.4): a positive integer dimensional subspace, represented by an orthonormal frame, and a CPTP decoder into the ambient input. Changing the frame does not change either Haar-average or entanglement fidelity.
  • codeMap: PDF pp.7–8: the actual decoded map compressed to code coordinates. This compression need not preserve trace: ambient decoder leakage is retained.
  • codeAverageFidelity: PDF p.7, (3.1): normalized Haar average of squared pure-state overlap.
  • codeEntanglementFidelity: PDF p.8, (3.4): squared fidelity to the normalized maximally entangled code input, evaluated after the actual ambient decoder.
  • subspaceCapacity: PDF p.8, (3.2)–(3.6): exact feasible positive integer message sizes. For a lawful channel and 0<=epsilon<1 the set is nonempty and bounded by card(A)^n. Extended suprema also give explicit empty/unbounded conventions off that domain.
  • averageCapacity: PDF p.8, (3.3): average pure-state transmission capacity in qubits per block.
  • inputVariance: PDF pp.6–7: relative information variance for the actual purified output. For density inputs and CPTP N the support inclusion needed by D and V is automatic.
  • quantumDispersion: PDF p.7, (2.5): source dispersion in the two OPEN error regimes. Only used at epsilon != 1/2; this definition supplies no source value at 1/2.
  • secondOrderCorrection: PDF pp.18–20: the second-order correction, with its zero middle-error case stated directly, without assigning a value to V_(1/2).
  • basisClock: PDF p.10: Z_U = U diag(exp(2 pi i (k+1)/d)) U^dagger. The diagonal clock is the accepted one-based clock, not a zero-based variant.
  • firstAction: PDF p.10: a map acting on the first register, keeping all second-register blocks.
  • collisionExponential: PDF pp.6,11: the actual collision exponential tr(rho sigma^-1/2 rho sigma^-1/2). The inverse square root is the support inverse, zero on the kernel. This quadratic form is defined even for zero or unnormalized CP outputs, with no log(0) artifact.
  • symmetricErasure: PDF pp.2,20: symmetric erasure channel into the input plus one orthogonal flag. Both transmitted off-diagonal entries and the erasure probability are explicit.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_FiniteRegisters
import Definitions.Def_QAlgorithms_Defs_QuditChannelFidelities
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P36
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P03
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P35
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P22
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P23

/-!
Beigi–Datta–Leditzky, arXiv:1504.04449v4. Page numbers are PDF pages.
The source's codes have isometric subspace inclusion and an ambient-space decoder.
Capacities below are total log2(message dimension), not per-use rates.
Theorem 3.1 and the quantitative Petz-decoder witness are deferred in HARD.md.
Compilation and independent moderation are pending the batch handoff.
-/

noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder
open QAlgorithms

namespace QAlgorithms.Papers.Independent.Bridge50.P38

open QAlgorithms.Papers.Independent.Information100.P80 (log2)
open QAlgorithms.Papers.Independent.Information100.P63 (normalQuantile)
open QAlgorithms.Papers.Independent.Dependency50.P36
  (relativeEntropyFinite pairInformationVariance)
open QAlgorithms.Papers.Independent.Dependency50.P35
  (columnProjector pinch marginalAB marginalAC)
open QAlgorithms.Papers.Independent.Information100.P22
  (densityPurification singleUseInformation coherentInformation)
open QAlgorithms.Papers.Independent.Gap48.P23 (CompletelyPositive)

attribute [local instance] Classical.propDecidable Classical.decEq

variable {A B C : Type} [Fintype A] [DecidableEq A]
variable [Fintype B] [DecidableEq B] [Fintype C] [DecidableEq C]

/-- PDF pp.7–8, (3.1),(3.4): a positive integer dimensional subspace,
represented by an orthonormal frame, and a CPTP decoder into the ambient input.
Changing the frame does not change either Haar-average or entanglement fidelity. -/
structure SubspaceCode (A B : Type) [Fintype A] [DecidableEq A]
    [Fintype B] [DecidableEq B] where
  m : ℕ
  positive : 0 < m
  inclusion : Matrix A (Fin m) ℂ
  isometry : inclusionᴴ * inclusion = 1
  decoder : Superop B A
  decoder_channel : IsChannel decoder

/-- PDF pp.7–8: the actual decoded map compressed to code coordinates.
This compression need not preserve trace: ambient decoder leakage is retained. -/
def codeMap (N : Superop A B) (K : SubspaceCode A B) :
    Superop (Fin K.m) (Fin K.m) :=
  fun X => K.inclusionᴴ * K.decoder (N (conjSuperop K.inclusion X)) * K.inclusion

/-- PDF p.7, (3.1): normalized Haar average of squared pure-state overlap. -/
def codeAverageFidelity (N : Superop A B) (K : SubspaceCode A B) : ℝ :=
  QuditFidelity.averageFidelity K.m K.positive (codeMap N K)

/-- PDF p.8, (3.4): squared fidelity to the normalized maximally entangled
code input, evaluated after the actual ambient decoder. -/
def codeEntanglementFidelity (N : Superop A B) (K : SubspaceCode A B) : ℝ :=
  QuditFidelity.entanglementFidelity K.m K.positive (codeMap N K)

/-- PDF p.8, (3.2)–(3.6): exact feasible positive integer message sizes.
For a lawful channel and 0<=epsilon<1 the set is nonempty and bounded by card(A)^n.
Extended suprema also give explicit empty/unbounded conventions off that domain. -/
def subspaceCapacity (entanglement : Bool) (N : Superop A B)
    (n : ℕ) (epsilon : ℝ) : EReal :=
  sSup {r | ∃ K : SubspaceCode (Fin n → A) (Fin n → B),
    1 - epsilon ≤ (if entanglement then
      codeEntanglementFidelity (piSuperop (fun _ : Fin n => N)) K else
      codeAverageFidelity (piSuperop (fun _ : Fin n => N)) K) ∧
    r = (log2 K.m : EReal)}

/-- PDF p.8, (3.3): average pure-state transmission capacity in qubits per block. -/
def averageCapacity (N : Superop A B) (n : ℕ) (epsilon : ℝ) : EReal :=
  subspaceCapacity false N n epsilon

/-- PDF pp.6–7: relative information variance for the actual purified output.
For density inputs and CPTP N the support inclusion needed by D and V is automatic. -/
def inputVariance (N : Superop A B) (rho : Matrix A A ℂ) : ℝ :=
  let omega := idTensorSuperop N (pureDensity (densityPurification rho))
  pairInformationVariance omega (Matrix.kronecker (1 : Matrix A A ℂ) (traceLeft omega))

/-- PDF p.7, (2.5): source dispersion in the two OPEN error regimes.
Only used at epsilon != 1/2; this definition supplies no source value at 1/2. -/
def quantumDispersion (N : Superop A B) (epsilon : ℝ)
    (_hne : epsilon ≠ 1/2) : ℝ :=
  let vs := {v | ∃ rho : Matrix A A ℂ,
    (IsDensityMatrix rho ∧ coherentInformation N rho = singleUseInformation N) ∧
    v = inputVariance N rho}
  if epsilon < 1/2 then sInf vs else sSup vs

/-- PDF pp.18–20: the second-order correction, with its zero middle-error
case stated directly, without assigning a value to V_(1/2). -/
def secondOrderCorrection (N : Superop A B) (epsilon : ℝ) (n : ℕ) : ℝ :=
  if h : epsilon = 1/2 then 0 else
    Real.sqrt ((n : ℝ) * quantumDispersion N epsilon h) * normalQuantile epsilon

/-- PDF p.10: Z_U = U diag(exp(2 pi i (k+1)/d)) U^dagger.
The diagonal clock is the accepted one-based clock, not a zero-based variant. -/
def basisClock {d : ℕ} (U : Matrix.unitaryGroup (Fin d) ℂ) : Matrix (Fin d) (Fin d) ℂ :=
  (U : Matrix (Fin d) (Fin d) ℂ) *
    QAlgorithms.Papers.Independent.Gap48.P03.clockUnitary d *
    (U : Matrix (Fin d) (Fin d) ℂ)ᴴ

/-- PDF p.10: a map acting on the first register, keeping all second-register blocks. -/
def firstAction {R S T : Type} (L : Superop R S) : Superop (R × T) (S × T) :=
  fun X p q => L (fun i j => X (i,p.2) (j,q.2)) p.1 q.1

/-- PDF pp.6,11: the actual collision exponential tr(rho sigma^-1/2 rho sigma^-1/2).
The inverse square root is the support inverse, zero on the kernel. This quadratic
form is defined even for zero or unnormalized CP outputs, with no log(0) artifact. -/
def collisionExponential {I : Type} [Fintype I] [DecidableEq I]
    (rho sigma : Matrix I I ℂ) : ℝ :=
  let S := cfc (fun x : ℝ => (Real.sqrt x)⁻¹) sigma
  (rho * S * rho * S).trace.re

/-- PDF pp.2,20: symmetric erasure channel into the input plus one orthogonal flag.
Both transmitted off-diagonal entries and the erasure probability are explicit. -/
def symmetricErasure (A : Type) [Fintype A] : Superop A (Option A) :=
  fun X p q => match p, q with
  | some a, some b => (1/2 : ℂ) * X a b
  | none, none => (1/2 : ℂ) * X.trace
  | _, _ => 0

/-- Sanity: the middle-error second-order term is exactly zero. -/
example (N : Superop A B) (n : ℕ) : secondOrderCorrection N (1/2) n = 0 := by
  simp [secondOrderCorrection]

/-- Sanity: no inaccessible output-flag coherence is introduced by erasure. -/
example (X : Matrix A A ℂ) (a : A) : symmetricErasure A X (some a) none = 0 := by
  rfl

/-- Sanity: the erasure flag carries half the actual input trace. -/
example (X : Matrix A A ℂ) : symmetricErasure A X none none = (1/2 : ℂ) * X.trace := by
  rfl

/-- Sanity: zero CP output has zero collision quadratic form, even at singular sigma. -/
example {I : Type} [Fintype I] [DecidableEq I] (sigma : Matrix I I ℂ) :
    collisionExponential 0 sigma = 0 := by
  simp [collisionExponential]

/-- Sanity: register order in the input purification is second-factor input. -/
example (rho : Matrix A A ℂ) (r a s b : A) :
    pureDensity (densityPurification rho) (r,a) (s,b) =
      cfc Real.sqrt rho a r * conj (cfc Real.sqrt rho b s) := by
  rfl

/-- Sanity: a singleton marginal is the projector of the same supplied vector. -/
example (psi : EuclideanSpace ℂ (Unit × Unit × Unit)) :
    marginalAB (pureDensity psi) ((),()) ((),()) = psi ((),(),()) * conj (psi ((),(),())) := by
  simp [marginalAB, pureDensity]

end QAlgorithms.Papers.Independent.Bridge50.P38
Source
Decoding quantum information via the Petz recovery map, arXiv:1504.04449v4, https://arxiv.org/abs/1504.04449v4
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Bridge50.P38.SubspaceCode

For finite types AAA and BBB, each with decidable equality, a subspace code consists of a natural number m>0m>0m>0, a complex matrix JJJ with rows indexed by AAA and columns indexed by {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1}, satisfying J†J=ImJ^\dagger J=I_mJ†J=Im​, and a map DDD from complex B×BB\times BB×B matrices to complex A×AA\times AA×A matrices that has a finite Kraus representation: there exist a natural number sss and matrices Ej∈CA×BE_j\in\mathbb C^{A\times B}Ej​∈CA×B such that ∑j<sEj†Ej=IB\sum_{j<s}E_j^\dagger E_j=I_B∑j<s​Ej†​Ej​=IB​ and D(X)=∑j<sEjXEj†D(X)=\sum_{j<s}E_jXE_j^\daggerD(X)=∑j<s​Ej​XEj†​ for every XXX. Thus the columns of JJJ are orthonormal; in particular, m≤∣A∣m\le |A|m≤∣A∣, so no such code exists when AAA is empty. No recovery or fidelity requirement is included in this structure.

QAlgorithms.Papers.Independent.Bridge50.P38.averageCapacity

For finite types A,BA,BA,B with decidable equality, any matrix map N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, any natural number nnn, and any real ϵ\epsilonϵ, the average capacity is the extended-real supremum of log⁡m/log⁡2\log m/\log2logm/log2 over positive integers mmm, matrices J:Cm→CAnJ:\mathbb C^m\to\mathbb C^{A^n}J:Cm→CAn satisfying J†J=ImJ^\dagger J=I_mJ†J=Im​, and decoders DDD admitting finite Kraus representations D(X)=∑jEjXEj†D(X)=\sum_jE_jXE_j^\daggerD(X)=∑j​Ej​XEj†​ with ∑jEj†Ej=IBn\sum_jE_j^\dagger E_j=I_{B^n}∑j​Ej†​Ej​=IBn​, subject to

∫U(m)Re⁡tr⁡ ⁣[PUJ†D ⁣(N[n](JPUJ†))J]dμ(U)≥1−ϵ,PU=∣Ue0⟩⟨Ue0∣.\int_{U(m)}\operatorname{Re}\operatorname{tr} \!\left[P_UJ^\dagger D\!\left(N^{[n]}(JP_UJ^\dagger)\right)J\right]d\mu(U) \ge1-\epsilon, \qquad P_U=|Ue_0\rangle\langle Ue_0|.∫U(m)​Retr[PU​J†D(N[n](JPU​J†))J]dμ(U)≥1−ϵ,PU​=∣Ue0​⟩⟨Ue0​∣.

Here μ\muμ is normalized Haar measure, and

N[n](X)y,y′=∑x,x′∈AnXx,x′∏i<nN(exiexi′†)yi,yi′.N^{[n]}(X)_{y,y'}= \sum_{x,x'\in A^n}X_{x,x'}\prod_{i<n} N(e_{x_i}e_{x'_i}^\dagger)_{y_i,y'_i}.N[n](X)y,y′​=x,x′∈An∑​Xx,x′​i<n∏​N(exi​​exi′​†​)yi​,yi′​​.

The definition permits n=0n=0n=0, arbitrary real ϵ\epsilonϵ, and maps NNN without channel assumptions; if there is no qualifying code, its value is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Bridge50.P38.basisClock

For every natural number ddd, including d=0d=0d=0, and every unitary d×dd\times dd×d complex matrix UUU, the basis clock is

U diag⁡(exp⁡ ⁣(2πi(j+1)d))j=0d−1U†.U\,\operatorname{diag}\left( \exp\!\left(\frac{2\pi i(j+1)}d\right) \right)_{j=0}^{d-1}U^\dagger.Udiag(exp(d2πi(j+1)​))j=0d−1​U†.

The index in the exponential is j+1j+1j+1. When d=0d=0d=0, there are no diagonal entries and the result is the empty matrix.

QAlgorithms.Papers.Independent.Bridge50.P38.codeAverageFidelity

For finite types A,BA,BA,B with decidable equality, an arbitrary matrix map N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, and a code KKK with positive dimension mmm, isometric inclusion JJJ satisfying J†J=ImJ^\dagger J=I_mJ†J=Im​, and decoder D(X)=∑jEjXEj†D(X)=\sum_jE_jXE_j^\daggerD(X)=∑j​Ej​XEj†​ for a finite family satisfying ∑jEj†Ej=IB\sum_jE_j^\dagger E_j=I_B∑j​Ej†​Ej​=IB​, define EK(X)=J†D(N(JXJ†))J\mathcal E_K(X)=J^\dagger D(N(JXJ^\dagger))JEK​(X)=J†D(N(JXJ†))J. The code average fidelity is the real number

∫U(m)Re⁡tr⁡ ⁣[∣ψU⟩⟨ψU∣ EK(∣ψU⟩⟨ψU∣)] dμ(U),ψU=Ue0,\int_{U(m)} \operatorname{Re}\operatorname{tr}\!\left[ |\psi_U\rangle\langle\psi_U|\, \mathcal E_K(|\psi_U\rangle\langle\psi_U|) \right]\,d\mu(U), \qquad \psi_U=Ue_0,∫U(m)​Retr[∣ψU​⟩⟨ψU​∣EK​(∣ψU​⟩⟨ψU​∣)]dμ(U),ψU​=Ue0​,

where μ\muμ is normalized Haar measure and e0e_0e0​ is the first coordinate unit vector in Cm\mathbb C^mCm. No channel assumption on NNN, or resulting bound between zero and one, is part of this definition.

QAlgorithms.Papers.Independent.Bridge50.P38.codeEntanglementFidelity

For finite types A,BA,BA,B with decidable equality, an arbitrary matrix map N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, and a code KKK with m>0m>0m>0, inclusion J†J=ImJ^\dagger J=I_mJ†J=Im​, and a decoder D(X)=∑jEjXEj†D(X)=\sum_jE_jXE_j^\daggerD(X)=∑j​Ej​XEj†​ with finitely many EjE_jEj​ satisfying ∑jEj†Ej=IB\sum_jE_j^\dagger E_j=I_B∑j​Ej†​Ej​=IB​, put EK(X)=J†D(N(JXJ†))J\mathcal E_K(X)=J^\dagger D(N(JXJ^\dagger))JEK​(X)=J†D(N(JXJ†))J. Its code entanglement fidelity is

Re⁡tr⁡ ⁣[∣Ωm⟩⟨Ωm∣ (id⁡⊗EK)(∣Ωm⟩⟨Ωm∣)],∣Ωm⟩=1m∑i=0m−1ei⊗ei.\operatorname{Re}\operatorname{tr}\!\left[ |\Omega_m\rangle\langle\Omega_m|\, (\operatorname{id}\otimes\mathcal E_K) (|\Omega_m\rangle\langle\Omega_m|) \right], \qquad |\Omega_m\rangle=\frac1{\sqrt m}\sum_{i=0}^{m-1}e_i\otimes e_i.Retr[∣Ωm​⟩⟨Ωm​∣(id⊗EK​)(∣Ωm​⟩⟨Ωm​∣)],∣Ωm​⟩=m​1​i=0∑m−1​ei​⊗ei​.

Here the extended map applies EK\mathcal E_KEK​ separately to each matrix block indexed by the first register. This is a real-valued definition for arbitrary NNN, without an assumption that NNN is a channel.

QAlgorithms.Papers.Independent.Bridge50.P38.codeMap

For finite types A,BA,BA,B with decidable equality, any map N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, and a code KKK consisting of m>0m>0m>0, an inclusion matrix J∈CA×mJ\in\mathbb C^{A\times m}J∈CA×m with J†J=ImJ^\dagger J=I_mJ†J=Im​, and a decoder D:CB×B→CA×AD:\mathbb C^{B\times B}\to\mathbb C^{A\times A}D:CB×B→CA×A admitting finitely many Kraus matrices EjE_jEj​ with ∑jEj†Ej=IB\sum_jE_j^\dagger E_j=I_B∑j​Ej†​Ej​=IB​, the associated map on m×mm\times mm×m matrices is

EK(X)=J†D ⁣(N(JXJ†))J.\mathcal E_K(X)=J^\dagger D\!\left(N(JXJ^\dagger)\right)J.EK​(X)=J†D(N(JXJ†))J.

This formula applies to every complex matrix XXX; no channel, linearity, or positivity assumption is imposed on NNN.

QAlgorithms.Papers.Independent.Bridge50.P38.collisionExponential

For any finite type III with decidable equality and arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, let SSS be the matrix obtained from σ\sigmaσ by the supplied functional calculus with scalar function x↦(x)−1x\mapsto(\sqrt{x})^{-1}x↦(x​)−1. The collision exponential is

Re⁡tr⁡(ρSρS).\operatorname{Re}\operatorname{tr}(\rho S\rho S).Retr(ρSρS).

There is no density, Hermiticity, positivity, invertibility, or support hypothesis. The scalar function takes value zero at zero, and also at negative real arguments because the real square root and inverse are total with x=0\sqrt{x}=0x​=0 for x<0x<0x<0 and 0−1=00^{-1}=00−1=0. If III is empty, the trace and hence this quantity are zero.

QAlgorithms.Papers.Independent.Bridge50.P38.firstAction

For arbitrary types R,S,TR,S,TR,S,T, without finiteness assumptions, and any map L:CR×R→CS×SL:\mathbb C^{R\times R}\to\mathbb C^{S\times S}L:CR×R→CS×S, its first action maps matrices indexed by R×TR\times TR×T to matrices indexed by S×TS\times TS×T according to

(L(X))(s,t),(s′,t′)=L ⁣((X(r,t),(r′,t′))r,r′∈R)s,s′.\bigl(\mathcal L(X)\bigr)_{(s,t),(s',t')} = L\!\left((X_{(r,t),(r',t')})_{r,r'\in R}\right)_{s,s'}.(L(X))(s,t),(s′,t′)​=L((X(r,t),(r′,t′)​)r,r′∈R​)s,s′​.

Thus LLL is applied separately to each block determined by t,t′t,t't,t′. No linearity, positivity, or channel assumption is imposed on LLL, and the types may be empty.

QAlgorithms.Papers.Independent.Bridge50.P38.inputVariance

For finite types A,BA,BA,B with decidable equality, any matrix map N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, and any complex A×AA\times AA×A matrix ρ\rhoρ, form the vector ψρ(a,a′)=[ρ]a′,a\psi_\rho(a,a')=[\sqrt{\rho}]_{a',a}ψρ​(a,a′)=[ρ​]a′,a​, where the square root is defined by the supplied functional calculus, and put ω=(id⁡A⊗N)(∣ψρ⟩⟨ψρ∣)\omega=(\operatorname{id}_A\otimes N)(|\psi_\rho\rangle\langle\psi_\rho|)ω=(idA​⊗N)(∣ψρ​⟩⟨ψρ​∣); explicitly, its (a,b),(a′,b′)(a,b),(a',b')(a,b),(a′,b′) entry is N((ψρ(a,i)ψρ(a′,j)‾)i,j)b,b′N((\psi_\rho(a,i)\overline{\psi_\rho(a',j)})_{i,j})_{b,b'}N((ψρ​(a,i)ψρ​(a′,j)​)i,j​)b,b′​. Let ωB(b,b′)=∑aω(a,b),(a,b′)\omega_B(b,b')=\sum_a\omega_{(a,b),(a,b')}ωB​(b,b′)=∑a​ω(a,b),(a,b′)​, σ=IA⊗ωB\sigma=I_A\otimes\omega_Bσ=IA​⊗ωB​, and L=log⁡2(ω)−log⁡2(σ)L=\log_2(\omega)-\log_2(\sigma)L=log2​(ω)−log2​(σ), using functional calculus with the scalar function log⁡2x=log⁡x/log⁡2\log_2x=\log x/\log2log2​x=logx/log2. The defined input variance is

Re⁡tr⁡(ωL2)−(Re⁡tr⁡[f(ω)−ωlog⁡(σ)]log⁡2)2,f(x)=xlog⁡x.\operatorname{Re}\operatorname{tr}(\omega L^2) -\left( \frac{\operatorname{Re}\operatorname{tr} \bigl[f(\omega)-\omega\log(\sigma)\bigr]}{\log2} \right)^2, \qquad f(x)=x\log x.Retr(ωL2)−(log2Retr[f(ω)−ωlog(σ)]​)2,f(x)=xlogx.

Neither ρ\rhoρ being a density matrix nor NNN being a channel is required, and no support condition or nonnegativity conclusion is included; scalar logarithms use the total convention log⁡0=0\log0=0log0=0.

QAlgorithms.Papers.Independent.Bridge50.P38.quantumDispersion

For finite types A,BA,BA,B with decidable equality, any matrix map N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, and any real ϵ≠12\epsilon\ne\tfrac12ϵ=21​, define H(X)=−Re⁡tr⁡[f(X)]H(X)=-\operatorname{Re}\operatorname{tr}[f(X)]H(X)=−Retr[f(X)], using functional calculus with f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x, and define ωρ=(id⁡A⊗N)(∣ψρ⟩⟨ψρ∣)\omega_\rho=(\operatorname{id}_A\otimes N)(|\psi_\rho\rangle\langle\psi_\rho|)ωρ​=(idA​⊗N)(∣ψρ​⟩⟨ψρ​∣), where ψρ(a,a′)=[ρ]a′,a\psi_\rho(a,a')=[\sqrt\rho]_{a',a}ψρ​(a,a′)=[ρ​]a′,a​. Let

IN(ρ)=H(N(ρ))−H(ωρ),Imax⁡=sup⁡τ⪰0, tr⁡τ=1IN(τ).I_N(\rho)=H(N(\rho))-H(\omega_\rho), \qquad I_{\max}=\sup_{\tau\succeq0,\ \operatorname{tr}\tau=1}I_N(\tau).IN​(ρ)=H(N(ρ))−H(ωρ​),Imax​=τ⪰0, trτ=1sup​IN​(τ).

For each density matrix ρ\rhoρ satisfying IN(ρ)=Imax⁡I_N(\rho)=I_{\max}IN​(ρ)=Imax​, put σρ=IA⊗tr⁡Aωρ\sigma_\rho=I_A\otimes\operatorname{tr}_A\omega_\rhoσρ​=IA​⊗trA​ωρ​, Lρ=log⁡2ωρ−log⁡2σρL_\rho=\log_2\omega_\rho-\log_2\sigma_\rhoLρ​=log2​ωρ​−log2​σρ​, and

VN(ρ)=Re⁡tr⁡(ωρLρ2)−(Re⁡tr⁡[f0(ωρ)−ωρlog⁡σρ]log⁡2)2,f0(x)=xlog⁡x.V_N(\rho)=\operatorname{Re}\operatorname{tr}(\omega_\rho L_\rho^2) -\left( \frac{\operatorname{Re}\operatorname{tr} [f_0(\omega_\rho)-\omega_\rho\log\sigma_\rho]}{\log2} \right)^2, \qquad f_0(x)=x\log x.VN​(ρ)=Retr(ωρ​Lρ2​)−(log2Retr[f0​(ωρ​)−ωρ​logσρ​]​)2,f0​(x)=xlogx.

The quantum dispersion is inf⁡{VN(ρ):ρ⪰0,tr⁡ρ=1,IN(ρ)=Imax⁡}\inf\{V_N(\rho):\rho\succeq0,\operatorname{tr}\rho=1,I_N(\rho)=I_{\max}\}inf{VN​(ρ):ρ⪰0,trρ=1,IN​(ρ)=Imax​} if ϵ<12\epsilon<\tfrac12ϵ<21​, and the supremum of that same set if ϵ>12\epsilon>\tfrac12ϵ>21​. All extrema here are real-valued extrema with the supplied total conventions, so an empty optimizing set has infimum and supremum zero. No channel assumption on NNN, attainment assumption, or restriction 0<ϵ<10<\epsilon<10<ϵ<1 is imposed.

QAlgorithms.Papers.Independent.Bridge50.P38.secondOrderCorrection

For finite types A,BA,BA,B with decidable equality, an arbitrary matrix map N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, any real ϵ\epsilonϵ, and any natural number nnn, the correction is zero when ϵ=12\epsilon=\tfrac12ϵ=21​; otherwise it is

n Vϵ(N) Q(ϵ),Q(ϵ)=inf⁡{z∈R:ϵ≤∫−∞ze−x2/22π dx}.\sqrt{n\,V_\epsilon(N)}\,Q(\epsilon), \qquad Q(\epsilon)=\inf\left\{z\in\mathbb R: \epsilon\le\int_{-\infty}^{z}\frac{e^{-x^2/2}}{\sqrt{2\pi}}\,dx\right\}.nVϵ​(N)​Q(ϵ),Q(ϵ)=inf{z∈R:ϵ≤∫−∞z​2π​e−x2/2​dx}.

Here Vϵ(N)V_\epsilon(N)Vϵ​(N) is the infimum, for ϵ<12\epsilon<\tfrac12ϵ<21​, or supremum, for ϵ>12\epsilon>\tfrac12ϵ>21​, of VN(ρ)V_N(\rho)VN​(ρ) over density matrices ρ\rhoρ maximizing H(N(ρ))−H(ωρ)H(N(\rho))-H(\omega_\rho)H(N(ρ))−H(ωρ​) among all density matrices, where H(X)=−Re⁡tr⁡[x↦xlog⁡2x](X)H(X)=-\operatorname{Re}\operatorname{tr}[x\mapsto x\log_2x](X)H(X)=−Retr[x↦xlog2​x](X), ωρ=(id⁡A⊗N)(∣ψρ⟩⟨ψρ∣)\omega_\rho=(\operatorname{id}_A\otimes N)(|\psi_\rho\rangle\langle\psi_\rho|)ωρ​=(idA​⊗N)(∣ψρ​⟩⟨ψρ​∣), and ψρ(a,a′)=[ρ]a′,a\psi_\rho(a,a')=[\sqrt\rho]_{a',a}ψρ​(a,a′)=[ρ​]a′,a​. With σρ=IA⊗tr⁡Aωρ\sigma_\rho=I_A\otimes\operatorname{tr}_A\omega_\rhoσρ​=IA​⊗trA​ωρ​ and Lρ=log⁡2ωρ−log⁡2σρL_\rho=\log_2\omega_\rho-\log_2\sigma_\rhoLρ​=log2​ωρ​−log2​σρ​, the variance used is

VN(ρ)=Re⁡tr⁡(ωρLρ2)−(Re⁡tr⁡[(x↦xlog⁡x)(ωρ)−ωρlog⁡σρ]log⁡2)2,V_N(\rho)=\operatorname{Re}\operatorname{tr}(\omega_\rho L_\rho^2) -\left( \frac{\operatorname{Re}\operatorname{tr} \bigl[(x\mapsto x\log x)(\omega_\rho)-\omega_\rho\log\sigma_\rho\bigr]}{\log2} \right)^2,VN​(ρ)=Retr(ωρ​Lρ2​)−(log2Retr[(x↦xlogx)(ωρ​)−ωρ​logσρ​]​)2,

with all matrix functions interpreted through the supplied functional calculus. No channel assumption or restriction on ϵ\epsilonϵ is imposed; real infima and suprema retain their total conventions, and the real square root is zero for nonpositive arguments. In particular, n=0n=0n=0 gives correction zero.

QAlgorithms.Papers.Independent.Bridge50.P38.subspaceCapacity

For finite types A,BA,BA,B with decidable equality, a Boolean flag bbb, any matrix map N:CA×A→CB×BN:\mathbb C^{A\times A}\to\mathbb C^{B\times B}N:CA×A→CB×B, a natural number nnn, and any real ϵ\epsilonϵ, this quantity is the supremum in the extended real numbers of log⁡2m=log⁡m/log⁡2\log_2m=\log m/\log2log2​m=logm/log2 over the following codes: m>0m>0m>0, J:Cm→CAnJ:\mathbb C^m\to\mathbb C^{A^n}J:Cm→CAn satisfies J†J=ImJ^\dagger J=I_mJ†J=Im​, and D:CBn×Bn→CAn×AnD:\mathbb C^{B^n\times B^n}\to\mathbb C^{A^n\times A^n}D:CBn×Bn→CAn×An has a finite Kraus representation whose Kraus matrices satisfy ∑jEj†Ej=IBn\sum_jE_j^\dagger E_j=I_{B^n}∑j​Ej†​Ej​=IBn​. Write E(X)=J†D(N[n](JXJ†))J\mathcal E(X)=J^\dagger D(N^{[n]}(JXJ^\dagger))JE(X)=J†D(N[n](JXJ†))J, where the defined parallel extension is

N[n](X)y,y′=∑x,x′∈AnXx,x′∏i=0n−1N(exiexi′†)yi,yi′.N^{[n]}(X)_{y,y'} =\sum_{x,x'\in A^n}X_{x,x'}\prod_{i=0}^{n-1} N(e_{x_i}e_{x'_i}^\dagger)_{y_i,y'_i}.N[n](X)y,y′​=x,x′∈An∑​Xx,x′​i=0∏n−1​N(exi​​exi′​†​)yi​,yi′​​.

When bbb is true, the required inequality is Re⁡tr⁡[Pm(id⁡⊗E)(Pm)]≥1−ϵ\operatorname{Re}\operatorname{tr}[P_m(\operatorname{id}\otimes\mathcal E)(P_m)]\ge1-\epsilonRetr[Pm​(id⊗E)(Pm​)]≥1−ϵ, where Pm=∣Ωm⟩⟨Ωm∣P_m=|\Omega_m\rangle\langle\Omega_m|Pm​=∣Ωm​⟩⟨Ωm​∣ and Ωm=m−1/2∑iei⊗ei\Omega_m=m^{-1/2}\sum_i e_i\otimes e_iΩm​=m−1/2∑i​ei​⊗ei​; when bbb is false, it is ∫U(m)Re⁡tr⁡[PUE(PU)] dμ(U)≥1−ϵ\int_{U(m)}\operatorname{Re}\operatorname{tr}[P_U\mathcal E(P_U)]\,d\mu(U)\ge1-\epsilon∫U(m)​Retr[PU​E(PU​)]dμ(U)≥1−ϵ, with PU=∣Ue0⟩⟨Ue0∣P_U=|Ue_0\rangle\langle Ue_0|PU​=∣Ue0​⟩⟨Ue0​∣ and normalized Haar measure μ\muμ. No channel assumption on NNN or restriction on ϵ\epsilonϵ is imposed. The case n=0n=0n=0 is included, with singleton word registers and empty products equal to one; an empty set of qualifying codes gives supremum −∞-\infty−∞.

QAlgorithms.Papers.Independent.Bridge50.P38.symmetricErasure

For every finite type AAA, including the empty type, this defines a map EA\mathcal E_AEA​ from complex matrices indexed by AAA to complex matrices indexed by A∪{⊥}A\cup\{\bot\}A∪{⊥}, where ⊥\bot⊥ is an additional index. For every input matrix XXX, its output entries are

EA(X)a,b=12Xa,b,EA(X)⊥,⊥=12tr⁡X,EA(X)a,⊥=EA(X)⊥,a=0(a,b∈A).\mathcal E_A(X)_{a,b}=\tfrac12X_{a,b},\qquad \mathcal E_A(X)_{\bot,\bot}=\tfrac12\operatorname{tr}X,\qquad \mathcal E_A(X)_{a,\bot}=\mathcal E_A(X)_{\bot,a}=0 \quad(a,b\in A).EA​(X)a,b​=21​Xa,b​,EA​(X)⊥,⊥​=21​trX,EA​(X)a,⊥​=EA​(X)⊥,a​=0(a,b∈A).

The definition applies to arbitrary matrices XXX, without a positivity or normalization hypothesis.

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