Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Versatile relative entropy bounds for quantum networks

Definition
QAlgorithms_Papers_Independent_Bridge50_P20

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

prove2quantum

The objects the formalized statements of Versatile relative entropy bounds for quantum networks (arXiv:1707.05543) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • stateEMax: PDF p.4, (10): optimize over all separable normalized comparison states.
  • channelEMax: PDF pp.2,17, (1),(50): the original optimization over all normalized mixed inputs and all positive finite reference dimensions, before the pure-input reduction. Writing r+1 includes every positive reference dimension, independently of the input.
  • comparisonFeasible: PDF p.17, (51): false selects all separable states; true adds the fixed reference marginal, retaining the normalization of the full comparison state.
  • comparisonMinimum: PDF p.17, (51): extended optimal value; attainment is not built into the definition.
  • IsComparisonOptimizer: PDF p.28, Lemma 1: an actual attaining optimizer in its specified feasible set.
  • privateDensity: PDF p.5, (14)-(15): private state on (keyA,shieldA):(keyB,shieldB). The twisting blocks may act jointly on both shields. This is the entry formula for U(psi_d tensor shield)U-adjoint after regrouping the local registers.
  • IsPrivateTarget: PDF p.5, (14)-(15): actual private targets, with arbitrary positive finite shield dimensions in the theorem binders. One-dimensional shields include maximally entangled targets; no shield dimension is bounded by d.
  • amplitudeDampingKraus: PDF p.18, (54)-(55): excited-state damping probability lambda.
  • amplitudeChoiLower: PDF p.18, (57): the unconstrained Choi minimum. The branch containing 1/(2 lambda) is never selected at zero on the theorem's physical domain.
  • amplitudeValue: PDF p.18, (57)-(58): the constrained Choi optimum and exact channel value.
  • phaseUnitary: PDF p.27, (B2): opposite signs and half angles on the two parties. The frozen zRotation a is exp(-i a sigma_z/2); arguments -theta,theta therefore give exactly exp(+i theta sigma_z/2) tensor exp(-i theta sigma_z/2).
  • phaseConjugate: PDF pp.27-28, (B2)-(B4): conjugation by the source's product unitary.
  • phaseTwirl: PDF p.28, (B3)-(B4): normalized angular average, on every matrix entry. The integrands are continuous on a compact interval, so the Bochner integrals are genuine integrals rather than nonintegrability defaults.
  • IsPhaseCovariant: PDF pp.27-28, (B1): covariance is required for every normalized input and every real angle. The frozen zRotation (-2*theta) is exp(+i theta sigma_z), so the source's sign and angle in (B1) are retained.
  • IsPhaseInvariant: PDF p.28, (B3): invariance under every angle in a complete period.
  • PhaseParameters: PDF p.28, (B6): parameters in the source's order alpha,beta,gamma,delta,xi,phi.
  • PhaseParameters.Valid: PDF p.28, (B6): positivity, trace one, phase range, and the two PPT/PSD coherence bounds, specialized to two qubits.
  • invariantSeparableMatrix: PDF p.28, (B6): basis order 00,01,10,11. Upper-right coherence has +i phi.
  • PhaseParameters.FixedMarginal: PDF p.28, (B6): extra marginal equations for the upper Choi bound.
  • relativeAdvantage: PDF p.16, (49): a is the finite squashed cut cost, b the finite versatile cut cost. This compares cost terms in the vanishing-error regime.
  • dephasingSquashedBound: PDF p.21, (63): the cited dephasing squashed-entanglement upper bound. The +1/2 is outside the radical. Binary entropy uses the frozen convention.
  • dampingSquashedBound: PDF p.21, (64): the cited amplitude-damping squashed-entanglement upper bound.
  • dephasingRelativeValue: PDF p.21: the cited exact dephasing REE value, phase-flip probability x/2.
  • exampleAdvantage: PDF pp.20-21, (49),(62): substituted cost ratio before cancelling the common expected channel use count m. No claim to compute exact E_sq is made.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_BipartiteSeparability
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P35
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P04
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P53
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P75
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P29
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P11

/-!
arXiv:1707.05543v2, finite-dimensional state/channel results.
The reported duplicate definitions are imported from the pinned accepted library.
Its zRotation is used with the source's signs and angle scaling; the distinct
(B6) state family is named invariantSeparableMatrix to distinguish phase gates.
All entropies are in bits. Optimizations use EReal so infeasible sets and
support failures retain infinity. The original channel optimization includes
mixed inputs and every positive finite reference dimension.
Operational LOCC/network results are deferred in the unit's HARD.md; they
are not represented by assumed scalar recurrences. Compilation is pending.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Bridge50.P20

open QAlgorithms QAlgorithms.Entanglement

-- Reuse pinned accepted definitions; source-specific conventions are audited below.
open QAlgorithms.Papers.Independent.Dependency50.P35 (maxRelative)
open QAlgorithms.Papers.Independent.Information100.P04 (bellProjector)
open QAlgorithms.Papers.Independent.Information100.P53 (amplitudeDamping)
open QAlgorithms.Papers.Independent.Information100.P75 (mixedIdentity)
open QAlgorithms.Papers.Independent.Next46.P29 (zRotation)
open QAlgorithms.Papers.Independent.Support50.P11 (choiState)
open scoped Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.4, (10): optimize over all separable normalized comparison states. -/
def stateEMax {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] [Nonempty A] [Nonempty B]
    (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  sInf {v : EReal | ∃ sigma : Matrix (A × B) (A × B) ℂ,
    IsSeparableDensity sigma ∧ v = maxRelative rho sigma}

/-- PDF pp.2,17, (1),(50): the original optimization over all normalized mixed
inputs and all positive finite reference dimensions, before the pure-input reduction.
Writing r+1 includes every positive reference dimension, independently of the input. -/
def channelEMax {I O : Type} [Fintype I] [Fintype O]
    [DecidableEq I] [DecidableEq O] [Nonempty I] [Nonempty O]
    (N : Superop I O) : EReal :=
  sSup {v : EReal | ∃ r : ℕ,
    ∃ rho : Matrix (Fin (r + 1) × I) (Fin (r + 1) × I) ℂ,
      IsDensityMatrix rho ∧ v = stateEMax (idTensorSuperop N rho)}

/-- PDF p.17, (51): false selects all separable states; true adds the fixed
reference marginal, retaining the normalization of the full comparison state. -/
def comparisonFeasible {A B : Type*} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] [Nonempty A] [Nonempty B]
    (fixed : Bool) (sigma : Matrix (A × B) (A × B) ℂ) : Prop :=
  IsSeparableDensity sigma ∧ (fixed = true → traceRight sigma = mixedIdentity A)

/-- PDF p.17, (51): extended optimal value; attainment is not built into the definition. -/
def comparisonMinimum {A B : Type} [Fintype A] [Fintype B]
    [DecidableEq A] [DecidableEq B] [Nonempty A] [Nonempty B]
    (rho : Matrix (A × B) (A × B) ℂ) (fixed : Bool) : EReal :=
  sInf {v : EReal | ∃ sigma : Matrix (A × B) (A × B) ℂ,
    comparisonFeasible fixed sigma ∧ v = maxRelative rho sigma}

/-- PDF p.28, Lemma 1: an actual attaining optimizer in its specified feasible set. -/
def IsComparisonOptimizer (rho sigma : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ)
    (fixed : Bool) : Prop :=
  comparisonFeasible fixed sigma ∧
    ∀ tau, comparisonFeasible fixed tau → maxRelative rho sigma ≤ maxRelative rho tau

/-- PDF p.5, (14)-(15): private state on (keyA,shieldA):(keyB,shieldB).
The twisting blocks may act jointly on both shields. This is the entry formula
for U(psi_d tensor shield)U-adjoint after regrouping the local registers. -/
def privateDensity {d s t : ℕ}
    (shield : Matrix (Fin s × Fin t) (Fin s × Fin t) ℂ)
    (U : Fin d → Fin d → Matrix (Fin s × Fin t) (Fin s × Fin t) ℂ) :
    Matrix ((Fin d × Fin s) × (Fin d × Fin t))
      ((Fin d × Fin s) × (Fin d × Fin t)) ℂ :=
  fun x y => if x.1.1 = x.2.1 ∧ y.1.1 = y.2.1 then
    (d : ℂ)⁻¹ * (U x.1.1 x.2.1 * shield * (U y.1.1 y.2.1)ᴴ)
      (x.1.2, x.2.2) (y.1.2, y.2.2)
  else 0

/-- PDF p.5, (14)-(15): actual private targets, with arbitrary positive finite
shield dimensions in the theorem binders. One-dimensional shields include
maximally entangled targets; no shield dimension is bounded by d. -/
def IsPrivateTarget {d s t : ℕ}
    (phi : Matrix ((Fin d × Fin s) × (Fin d × Fin t))
      ((Fin d × Fin s) × (Fin d × Fin t)) ℂ) : Prop :=
  ∃ shield : Matrix (Fin s × Fin t) (Fin s × Fin t) ℂ,
    IsDensityMatrix shield ∧
    ∃ U : Fin d → Fin d → Matrix (Fin s × Fin t) (Fin s × Fin t) ℂ,
      (∀ i j, (U i j)ᴴ * U i j = 1 ∧ U i j * (U i j)ᴴ = 1) ∧
      phi = privateDensity shield U

/-- PDF p.18, (54)-(55): excited-state damping probability lambda. -/
def amplitudeDampingKraus (lambda : ℝ) : Fin 2 → Matrix (Fin 2) (Fin 2) ℂ :=
  ![!![1, 0; 0, (Real.sqrt (1 - lambda) : ℂ)],
    !![0, (Real.sqrt lambda : ℂ); 0, 0]]

/-- PDF p.18, (57): the unconstrained Choi minimum. The branch containing
1/(2 lambda) is never selected at zero on the theorem's physical domain. -/
def amplitudeChoiLower (lambda : ℝ) : ℝ :=
  if lambda ≤ (Real.sqrt 5 - 1) / 2 then
    Real.logb 2 ((1 / 2 : ℝ) * (1 + Real.sqrt (1 - lambda)) ^ 2)
  else Real.logb 2 ((1 + lambda) / (2 * lambda))

/-- PDF p.18, (57)-(58): the constrained Choi optimum and exact channel value. -/
def amplitudeValue (lambda : ℝ) : ℝ := Real.logb 2 (2 - lambda)

/-- PDF p.27, (B2): opposite signs and half angles on the two parties.
The frozen zRotation a is exp(-i a sigma_z/2); arguments -theta,theta
therefore give exactly exp(+i theta sigma_z/2) tensor exp(-i theta sigma_z/2). -/
def phaseUnitary (theta : ℝ) : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ :=
  Matrix.kronecker (zRotation (-theta)) (zRotation theta)

/-- PDF pp.27-28, (B2)-(B4): conjugation by the source's product unitary. -/
def phaseConjugate (theta : ℝ)
    (rho : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ) :
    Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ :=
  phaseUnitary theta * rho * (phaseUnitary theta)ᴴ

/-- PDF p.28, (B3)-(B4): normalized angular average, on every matrix entry.
The integrands are continuous on a compact interval, so the Bochner integrals
are genuine integrals rather than nonintegrability defaults. -/
def phaseTwirl (rho : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ) :
    Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ :=
  fun x y => ((2 * Real.pi : ℝ) : ℂ)⁻¹ *
    ∫ theta in (0 : ℝ)..(2 * Real.pi), phaseConjugate theta rho x y

/-- PDF pp.27-28, (B1): covariance is required for every normalized input
and every real angle. The frozen zRotation (-2*theta) is exp(+i theta sigma_z),
so the source's sign and angle in (B1) are retained. -/
def IsPhaseCovariant (N : Superop (Fin 2) (Fin 2)) : Prop :=
  ∀ theta : ℝ, ∀ rho : Matrix (Fin 2) (Fin 2) ℂ, IsDensityMatrix rho →
    N (zRotation (-2 * theta) * rho * (zRotation (-2 * theta))ᴴ) =
      zRotation (-2 * theta) * N rho * (zRotation (-2 * theta))ᴴ

/-- PDF p.28, (B3): invariance under every angle in a complete period. -/
def IsPhaseInvariant (rho : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ) : Prop :=
  ∀ theta ∈ Set.Icc (0 : ℝ) (2 * Real.pi), phaseConjugate theta rho = rho

/-- PDF p.28, (B6): parameters in the source's order alpha,beta,gamma,delta,xi,phi. -/
structure PhaseParameters where
  alpha : ℝ
  beta : ℝ
  gamma : ℝ
  delta : ℝ
  xi : ℝ
  phi : ℝ

/-- PDF p.28, (B6): positivity, trace one, phase range, and the two PPT/PSD
coherence bounds, specialized to two qubits. -/
def PhaseParameters.Valid (p : PhaseParameters) : Prop :=
  0 ≤ p.alpha ∧ 0 ≤ p.beta ∧ 0 ≤ p.gamma ∧ 0 ≤ p.delta ∧ 0 ≤ p.xi ∧
  p.alpha + p.beta + p.gamma + p.delta = 2 ∧
  p.phi ∈ Set.Icc (0 : ℝ) (2 * Real.pi) ∧
  p.xi ≤ min (Real.sqrt (p.alpha * p.beta)) (Real.sqrt (p.gamma * p.delta))

/-- PDF p.28, (B6): basis order 00,01,10,11. Upper-right coherence has +i phi. -/
def invariantSeparableMatrix (p : PhaseParameters) :
    Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ :=
  fun x y => (1 / 2 : ℂ) *
    (if x = (0, 0) ∧ y = (0, 0) then (p.alpha : ℂ)
    else if x = (0, 1) ∧ y = (0, 1) then (p.gamma : ℂ)
    else if x = (1, 0) ∧ y = (1, 0) then (p.delta : ℂ)
    else if x = (1, 1) ∧ y = (1, 1) then (p.beta : ℂ)
    else if x = (0, 0) ∧ y = (1, 1) then
      (p.xi : ℂ) * Complex.exp ((p.phi : ℂ) * Complex.I)
    else if x = (1, 1) ∧ y = (0, 0) then
      (p.xi : ℂ) * Complex.exp (-((p.phi : ℂ) * Complex.I))
    else 0)

/-- PDF p.28, (B6): extra marginal equations for the upper Choi bound. -/
def PhaseParameters.FixedMarginal (p : PhaseParameters) : Prop :=
  p.gamma = 1 - p.alpha ∧ p.delta = 1 - p.beta

/-- PDF p.16, (49): a is the finite squashed cut cost, b the finite versatile
cut cost. This compares cost terms in the vanishing-error regime. -/
def relativeAdvantage (a b : ℝ) : ℝ := (a - b) / (a + b)

/-- PDF p.21, (63): the cited dephasing squashed-entanglement upper bound.
The +1/2 is outside the radical. Binary entropy uses the frozen convention. -/
def dephasingSquashedBound (x : ℝ) : ℝ :=
  binEntropy2 (Real.sqrt ((x / 2) * (1 - x / 2)) + 1 / 2)

/-- PDF p.21, (64): the cited amplitude-damping squashed-entanglement upper bound. -/
def dampingSquashedBound (lambda : ℝ) : ℝ :=
  binEntropy2 (1 / 2 - lambda / 4) - binEntropy2 (1 - lambda / 4)

/-- PDF p.21: the cited exact dephasing REE value, phase-flip probability x/2. -/
def dephasingRelativeValue (x : ℝ) : ℝ := 1 - binEntropy2 (x / 2)

/-- PDF pp.20-21, (49),(62): substituted cost ratio before cancelling the
common expected channel use count m. No claim to compute exact E_sq is made. -/
def exampleAdvantage (k : ℕ) (x lambda m : ℝ) : ℝ :=
  relativeAdvantage
    (m * ((k : ℝ) * dephasingSquashedBound x + dampingSquashedBound lambda))
    (m * ((k : ℝ) * dephasingRelativeValue x + amplitudeValue lambda))

/-! Small sanity examples for the complete paper-local definition bodies. -/

example : bellProjector 1 (0, 0) (0, 0) = 1 := by
  norm_num [bellProjector]

example : choiState (fun X : Matrix (Fin 2) (Fin 2) ℂ => X) (0, 0) (1, 1) = 1 / 2 := by
  norm_num [choiState, QAlgorithms.Papers.Independent.Information100.P34.choi]

example : privateDensity (d := 1) (s := 1) (t := 1)
    (1 : Matrix (Fin 1 × Fin 1) (Fin 1 × Fin 1) ℂ) (fun _ _ => 1)
    ((0, 0), (0, 0)) ((0, 0), (0, 0)) = 1 := by
  norm_num [privateDensity]

example : phaseTwirl (0 : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ) = 0 := by
  ext x y
  simp [phaseTwirl, phaseConjugate]

example : amplitudeDampingKraus 0 0 = (1 : Matrix (Fin 2) (Fin 2) ℂ) := by
  ext i j
  fin_cases i <;> fin_cases j <;> norm_num [amplitudeDampingKraus, Matrix.one_apply]

example : amplitudeDampingKraus 1 0 1 1 = 0 := by
  norm_num [amplitudeDampingKraus]

example : zRotation 0 = (1 : Matrix (Fin 2) (Fin 2) ℂ) := by
  ext i j
  fin_cases i <;> fin_cases j <;> simp [zRotation, Matrix.diagonal_apply, Matrix.one_apply]

example (p : PhaseParameters) : invariantSeparableMatrix p (0, 1) (0, 1) = (p.gamma : ℂ) / 2 := by
  simp [invariantSeparableMatrix, div_eq_mul_inv, mul_comm]

example (p : PhaseParameters) : invariantSeparableMatrix p (1, 0) (1, 0) = (p.delta : ℂ) / 2 := by
  simp [invariantSeparableMatrix, div_eq_mul_inv, mul_comm]

example : relativeAdvantage 1 0 = 1 := by norm_num [relativeAdvantage]

example : amplitudeValue 1 = 0 := by norm_num [amplitudeValue]

end QAlgorithms.Papers.Independent.Bridge50.P20
Source
Versatile relative entropy bounds for quantum networks, arXiv:1707.05543v2, https://arxiv.org/abs/1707.05543v2
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P20.IsComparisonOptimizer

For arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ on {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1} and a Boolean flag fixed\mathrm{fixed}fixed, define

Dρ(Z)=inf⁡{ℓ∈R:2ℓZ−ρ⪰0}D_\rho(Z)=\inf\{\ell\in\mathbb R:2^\ell Z-\rho\succeq0\}Dρ​(Z)=inf{ℓ∈R:2ℓZ−ρ⪰0}

in the extended reals, with empty-set infimum +∞+\infty+∞. This predicate says that σ\sigmaσ is a finite convex combination ∑j=0q−1wj(Aj⊗Bj)\sum_{j=0}^{q-1}w_j(A_j\otimes B_j)∑j=0q−1​wj​(Aj​⊗Bj​) of positive semidefinite trace-111 matrices on the two factors, with nonnegative real weights summing to 111, that tr⁡Bσ=12I2\operatorname{tr}_B\sigma=\tfrac12I_2trB​σ=21​I2​ if the flag is true, and that Dρ(σ)≤Dρ(τ)D_\rho(\sigma)\le D_\rho(\tau)Dρ​(σ)≤Dρ​(τ) for every matrix τ\tauτ with these same decomposition and, when applicable, marginal properties. Here (tr⁡BZ)a,a′=∑b=01Z((a,b),(a′,b))(\operatorname{tr}_BZ)_{a,a'}=\sum_{b=0}^1Z((a,b),(a',b))(trB​Z)a,a′​=∑b=01​Z((a,b),(a′,b)). The flag being false imposes no marginal condition, ρ\rhoρ is not assumed to be a density matrix, and neither uniqueness nor finiteness of the optimizing value is required.

QAlgorithms.Papers.Independent.Bridge50.P20.IsPhaseCovariant

For any function NNN from complex 2×22\times22×2 matrices to complex 2×22\times22×2 matrices, this property means that, for every real θ\thetaθ and every positive semidefinite matrix ρ\rhoρ with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1,

N(UθρUθ†)=UθN(ρ)Uθ†,Uθ=diag⁡(eiθ,e−iθ).N(U_\theta\rho U_\theta^\dagger) =U_\theta N(\rho)U_\theta^\dagger, \qquad U_\theta=\operatorname{diag}(e^{i\theta},e^{-i\theta}).N(Uθ​ρUθ†​)=Uθ​N(ρ)Uθ†​,Uθ​=diag(eiθ,e−iθ).

The equality is required only on such density matrices; the definition imposes no separate linearity or channel assumption on NNN.

QAlgorithms.Papers.Independent.Bridge50.P20.IsPhaseInvariant

For every complex matrix ρ\rhoρ indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, this property means

DθρDθ†=ρfor every θ∈[0,2π],Dθ=diag⁡(1,eiθ,e−iθ,1),D_\theta\rho D_\theta^\dagger=\rho \quad\text{for every }\theta\in[0,2\pi], \qquad D_\theta=\operatorname{diag}(1,e^{i\theta},e^{-i\theta},1),Dθ​ρDθ†​=ρfor every θ∈[0,2π],Dθ​=diag(1,eiθ,e−iθ,1),

in basis order (0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1). Both endpoints are included, and no positivity or trace condition is required of ρ\rhoρ.

QAlgorithms.Papers.Independent.Bridge50.P20.IsPrivateTarget

For any natural numbers d,s,td,s,td,s,t and any complex matrix ϕ\phiϕ indexed by ({0,…,d−1}×{0,…,s−1})×({0,…,d−1}×{0,…,t−1})(\{0,\ldots,d-1\}\times\{0,\ldots,s-1\})\times(\{0,\ldots,d-1\}\times\{0,\ldots,t-1\})({0,…,d−1}×{0,…,s−1})×({0,…,d−1}×{0,…,t−1}), this predicate holds exactly when there exist a positive semidefinite trace-111 matrix SSS on {0,…,s−1}×{0,…,t−1}\{0,\ldots,s-1\}\times\{0,\ldots,t-1\}{0,…,s−1}×{0,…,t−1} and matrices UijU_{ij}Uij​ on that space for every i,j<di,j<di,j<d, satisfying Uij†Uij=UijUij†=IU_{ij}^{\dagger}U_{ij}=U_{ij}U_{ij}^{\dagger}=IUij†​Uij​=Uij​Uij†​=I, such that

ϕ((i,a),(j,b)), ((k,c),(ℓ,e))={d−1(UijS Ukℓ†)(a,b),(c,e),i=j and k=ℓ,0,otherwise.\phi_{((i,a),(j,b)),\,((k,c),(\ell,e))} = \begin{cases} d^{-1}(U_{ij}S\,U_{k\ell}^{\dagger})_{(a,b),(c,e)}, &i=j\ \text{and}\ k=\ell,\\ 0,&\text{otherwise}. \end{cases}ϕ((i,a),(j,b)),((k,c),(ℓ,e))​={d−1(Uij​SUkℓ†​)(a,b),(c,e)​,0,​i=j and k=ℓ,otherwise.​

All UijU_{ij}Uij​ must satisfy the unitary equations, although only the diagonal-indexed ones enter nonzero entries. If s=0s=0s=0 or t=0t=0t=0, the trace-111 requirement is impossible. If d=0d=0d=0 and s,t>0s,t>0s,t>0, the unitary requirements are vacuous and ϕ\phiϕ is the unique matrix on the empty index set.

QAlgorithms.Papers.Independent.Bridge50.P20.PhaseParameters.FixedMarginal

For a tuple p=(α,β,γ,δ,ξ,ϕ)p=(\alpha,\beta,\gamma,\delta,\xi,\phi)p=(α,β,γ,δ,ξ,ϕ) of six real numbers, this property means exactly γ=1−α\gamma=1-\alphaγ=1−α and δ=1−β\delta=1-\betaδ=1−β. It imposes no additional conditions on α,β,ξ,ϕ\alpha,\beta,\xi,\phiα,β,ξ,ϕ and does not require validity of the tuple.

QAlgorithms.Papers.Independent.Bridge50.P20.PhaseParameters.Valid

For a tuple p=(α,β,γ,δ,ξ,ϕ)p=(\alpha,\beta,\gamma,\delta,\xi,\phi)p=(α,β,γ,δ,ξ,ϕ) of six real numbers, validity means precisely

α,β,γ,δ,ξ≥0,α+β+γ+δ=2,0≤ϕ≤2π,ξ≤min⁡{αβ,γδ}.\alpha,\beta,\gamma,\delta,\xi\ge0,\qquad \alpha+\beta+\gamma+\delta=2,\qquad 0\le\phi\le2\pi,\qquad \xi\le\min\{\sqrt{\alpha\beta},\sqrt{\gamma\delta}\}.α,β,γ,δ,ξ≥0,α+β+γ+δ=2,0≤ϕ≤2π,ξ≤min{αβ​,γδ​}.

Zero values and both phase endpoints are permitted.

QAlgorithms.Papers.Independent.Bridge50.P20.PhaseParameters

This structure consists of six arbitrary real numbers, named α,β,γ,δ,ξ,ϕ\alpha,\beta,\gamma,\delta,\xi,\phiα,β,γ,δ,ξ,ϕ, with no constraints imposed on any of them.

QAlgorithms.Papers.Independent.Bridge50.P20.amplitudeChoiLower

For every real λ\lambdaλ, this defines the real value

{log⁡2 ⁣(12(1+1−λ)2),λ≤5−12,log⁡2 ⁣(1+λ2λ),λ>5−12.\begin{cases} \displaystyle\log_2\!\left(\frac12(1+\sqrt{1-\lambda})^2\right), &\displaystyle\lambda\le\frac{\sqrt5-1}{2},\\[4pt] \displaystyle\log_2\!\left(\frac{1+\lambda}{2\lambda}\right), &\displaystyle\lambda>\frac{\sqrt5-1}{2}. \end{cases}⎩⎨⎧​log2​(21​(1+1−λ​)2),log2​(2λ1+λ​),​λ≤25​−1​,λ>25​−1​.​

Equality at the threshold selects the first branch. The definition applies to all real λ\lambdaλ, without restricting it to [0,1][0,1][0,1]; the logarithm arguments are positive in their respective branches.

QAlgorithms.Papers.Independent.Bridge50.P20.amplitudeDampingKraus

For every real λ\lambdaλ, this defines the two complex matrices indexed by 0,10,10,1:

K0=(1001−λ),K1=(0λ00).K_0= \begin{pmatrix} 1&0\\ 0&\sqrt{1-\lambda} \end{pmatrix}, \qquad K_1= \begin{pmatrix} 0&\sqrt{\lambda}\\ 0&0 \end{pmatrix}.K0​=(10​01−λ​​),K1​=(00​λ​0​).

The square roots are real square roots embedded into C\mathbb CC, with the real square root of a negative argument defined as 000. No restriction λ∈[0,1]\lambda\in[0,1]λ∈[0,1] or normalization property of this family is part of the definition.

QAlgorithms.Papers.Independent.Bridge50.P20.amplitudeValue

For every real λ\lambdaλ, this defines log⁡2(2−λ)\log_2(2-\lambda)log2​(2−λ), where the real base-222 logarithm is the total function log⁡(x)/log⁡2\log(x)/\log 2log(x)/log2. In particular, the value at λ=2\lambda=2λ=2 is 000, and for λ>2\lambda>2λ>2 it equals log⁡2∣ ⁣2−λ ⁣∣\log_2|\!2-\lambda\!|log2​∣2−λ∣; no restriction on λ\lambdaλ is imposed.

QAlgorithms.Papers.Independent.Bridge50.P20.channelEMax

For finite nonempty types I,OI,OI,O, each equipped with decidable equality, and any function NNN from complex matrices on III to complex matrices on OOO, this defines

sup⁡r∈Nρ⪰0, tr⁡ρ=1 inf⁡σ inf⁡{ℓ∈R:2ℓσ−YN,ρ⪰0},\sup_{\substack{r\in\mathbb N\\ \rho\succeq0,\ \operatorname{tr}\rho=1}} \ \inf_{\sigma}\ \inf\{\ell\in\mathbb R:2^\ell\sigma-Y_{N,\rho}\succeq0\},r∈Nρ⪰0, trρ=1​sup​ σinf​ inf{ℓ∈R:2ℓσ−YN,ρ​⪰0},

as an extended real number. Here ρ\rhoρ is indexed by {0,…,r}×I\{0,\ldots,r\}\times I{0,…,r}×I, the output matrix is defined blockwise by

YN,ρ((a,o),(b,o′))=N((ρ((a,i),(b,j)))i,j∈I)o,o′,Y_{N,\rho}\bigl((a,o),(b,o')\bigr) =N\bigl((\rho((a,i),(b,j)))_{i,j\in I}\bigr)_{o,o'},YN,ρ​((a,o),(b,o′))=N((ρ((a,i),(b,j)))i,j∈I​)o,o′​,

and σ\sigmaσ ranges over finite convex combinations ∑jwj(Sj⊗Tj)\sum_jw_j(S_j\otimes T_j)∑j​wj​(Sj​⊗Tj​), with nonnegative real weights summing to 111 and positive semidefinite trace-111 matrices SjS_jSj​ on {0,…,r}\{0,\ldots,r\}{0,…,r} and TjT_jTj​ on OOO. Empty inner feasible sets have infimum +∞+\infty+∞. The quantification includes r=0r=0r=0, giving a one-dimensional auxiliary register, and includes all density matrices ρ\rhoρ, not merely pure ones. The function NNN is not assumed linear, positive, or a channel.

QAlgorithms.Papers.Independent.Bridge50.P20.comparisonFeasible

For finite nonempty types A,BA,BA,B, each equipped with decidable equality, a Boolean flag fixed\mathrm{fixed}fixed, and a complex matrix σ\sigmaσ on A×BA\times BA×B, this predicate holds exactly when σ=∑j=0q−1wj(Aj⊗Bj)\sigma=\sum_{j=0}^{q-1}w_j(A_j\otimes B_j)σ=∑j=0q−1​wj​(Aj​⊗Bj​) for some natural number qqq, nonnegative real weights summing to 111, and positive semidefinite trace-111 matrices Aj,BjA_j,B_jAj​,Bj​ on A,BA,BA,B, respectively, and, if fixed\mathrm{fixed}fixed is true,

∑b∈Bσ((a,b),(a′,b))=1∣A∣ δa,a′(a,a′∈A).\sum_{b\in B}\sigma((a,b),(a',b)) =\frac{1}{|A|}\,\delta_{a,a'} \qquad(a,a'\in A).b∈B∑​σ((a,b),(a′,b))=∣A∣1​δa,a′​(a,a′∈A).

When the flag is false, the marginal requirement imposes no condition. The weights cannot sum to 111 when q=0q=0q=0.

QAlgorithms.Papers.Independent.Bridge50.P20.comparisonMinimum

For finite nonempty types A,BA,BA,B, each equipped with decidable equality, any complex matrix ρ\rhoρ on A×BA\times BA×B, and a Boolean flag fixed\mathrm{fixed}fixed, this defines the extended real number

inf⁡σ inf⁡{ℓ∈R:2ℓσ−ρ⪰0}.\inf_{\sigma}\ \inf\{\ell\in\mathbb R:2^\ell\sigma-\rho\succeq0\}.σinf​ inf{ℓ∈R:2ℓσ−ρ⪰0}.

The outer infimum ranges over matrices σ=∑j=0q−1wj(Aj⊗Bj)\sigma=\sum_{j=0}^{q-1}w_j(A_j\otimes B_j)σ=∑j=0q−1​wj​(Aj​⊗Bj​), where qqq is a natural number, the real weights are nonnegative and sum to 111, and every Aj,BjA_j,B_jAj​,Bj​ is positive semidefinite with trace 111 on its respective space; when the flag is true, σ\sigmaσ must additionally satisfy ∑b∈Bσ((a,b),(a′,b))=∣A∣−1δa,a′\sum_{b\in B}\sigma((a,b),(a',b))=|A|^{-1}\delta_{a,a'}∑b∈B​σ((a,b),(a′,b))=∣A∣−1δa,a′​. When the flag is false there is no marginal restriction. No density-matrix assumption is imposed on ρ\rhoρ. Infima are taken in the extended reals, with an empty feasible set having infimum +∞+\infty+∞; a convex decomposition with q=0q=0q=0 cannot satisfy the weight condition.

QAlgorithms.Papers.Independent.Bridge50.P20.dampingSquashedBound

For every real λ\lambdaλ, this defines

h ⁣(12−λ4)−h ⁣(1−λ4),h(u)=−uln⁡u−(1−u)ln⁡(1−u)ln⁡2,h\!\left(\frac12-\frac{\lambda}{4}\right) -h\!\left(1-\frac{\lambda}{4}\right), \qquad h(u)=\frac{-u\ln u-(1-u)\ln(1-u)}{\ln2},h(21​−4λ​)−h(1−4λ​),h(u)=ln2−ulnu−(1−u)ln(1−u)​,

using the total real logarithm, for which ln⁡0=0\ln0=0ln0=0 and ln⁡u=ln⁡∣u∣\ln u=\ln|u|lnu=ln∣u∣ when u<0u<0u<0. The parameter λ\lambdaλ is unrestricted, so the entropy arguments need not lie in [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Bridge50.P20.dephasingRelativeValue

For every real xxx, this defines

1−h(x/2),h(u)=−uln⁡u−(1−u)ln⁡(1−u)ln⁡2,1-h(x/2), \qquad h(u)=\frac{-u\ln u-(1-u)\ln(1-u)}{\ln2},1−h(x/2),h(u)=ln2−ulnu−(1−u)ln(1−u)​,

using the total real logarithm with ln⁡0=0\ln0=0ln0=0 and ln⁡u=ln⁡∣u∣\ln u=\ln|u|lnu=ln∣u∣ for u<0u<0u<0. No restriction on xxx is assumed.

QAlgorithms.Papers.Independent.Bridge50.P20.dephasingSquashedBound

For every real xxx, this defines

h ⁣(x2(1−x2)+12),h(u)=−uln⁡u−(1−u)ln⁡(1−u)ln⁡2.h\!\left(\sqrt{\frac{x}{2}\left(1-\frac{x}{2}\right)}+\frac12\right), \qquad h(u)=\frac{-u\ln u-(1-u)\ln(1-u)}{\ln2}.h(2x​(1−2x​)​+21​),h(u)=ln2−ulnu−(1−u)ln(1−u)​.

Here the real logarithm is total, with ln⁡0=0\ln0=0ln0=0 and ln⁡u=ln⁡∣u∣\ln u=\ln|u|lnu=ln∣u∣ for negative uuu, and the real square root of a negative number is 000. No restriction such as 0≤x≤10\le x\le10≤x≤1 is imposed.

QAlgorithms.Papers.Independent.Bridge50.P20.exampleAdvantage

For every natural number kkk, including 000, and arbitrary real numbers x,λ,mx,\lambda,mx,λ,m, define

A=m[k h ⁣(x2(1−x2)+12)+h ⁣(12−λ4)−h ⁣(1−λ4)],B=m[k(1−h(x/2))+ln⁡(2−λ)ln⁡2],h(u)=−uln⁡u−(1−u)ln⁡(1−u)ln⁡2.\begin{aligned} A&=m\left[ k\,h\!\left(\sqrt{\frac{x}{2}\left(1-\frac{x}{2}\right)}+\frac12\right) +h\!\left(\frac12-\frac{\lambda}{4}\right) -h\!\left(1-\frac{\lambda}{4}\right)\right],\\ B&=m\left[k\bigl(1-h(x/2)\bigr)+\frac{\ln(2-\lambda)}{\ln2}\right], \qquad h(u)=\frac{-u\ln u-(1-u)\ln(1-u)}{\ln2}. \end{aligned}AB​=m[kh(2x​(1−2x​)​+21​)+h(21​−4λ​)−h(1−4λ​)],=m[k(1−h(x/2))+ln2ln(2−λ)​],h(u)=ln2−ulnu−(1−u)ln(1−u)​.​

The defined value is (A−B)/(A+B)(A-B)/(A+B)(A−B)/(A+B). All logarithms use the total real convention ln⁡0=0\ln0=0ln0=0 and ln⁡u=ln⁡∣u∣\ln u=\ln|u|lnu=ln∣u∣ for negative uuu; negative square-root arguments give 000, and division by zero gives 000. In particular, the value is 000 whenever A+B=0A+B=0A+B=0, including when m=0m=0m=0; there are no sign or interval restrictions on the real parameters.

QAlgorithms.Papers.Independent.Bridge50.P20.invariantSeparableMatrix

For every tuple p=(α,β,γ,δ,ξ,ϕ)p=(\alpha,\beta,\gamma,\delta,\xi,\phi)p=(α,β,γ,δ,ξ,ϕ) of six real numbers, this defines the complex matrix

12(α00ξeiϕ0γ0000δ0ξe−iϕ00β)\frac12 \begin{pmatrix} \alpha&0&0&\xi e^{i\phi}\\ 0&\gamma&0&0\\ 0&0&\delta&0\\ \xi e^{-i\phi}&0&0&\beta \end{pmatrix}21​​α00ξe−iϕ​0γ00​00δ0​ξeiϕ00β​​

in basis order (0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1). The definition accepts arbitrary parameters and does not require the validity inequalities.

QAlgorithms.Papers.Independent.Bridge50.P20.phaseConjugate

For every real θ\thetaθ and every complex matrix ρ\rhoρ on {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, this defines DθρDθ†D_\theta\rho D_\theta^\daggerDθ​ρDθ†​, where Dθ=diag⁡(1,eiθ,e−iθ,1)D_\theta=\operatorname{diag}(1,e^{i\theta},e^{-i\theta},1)Dθ​=diag(1,eiθ,e−iθ,1) in the order (0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1) and †\dagger† denotes conjugate transpose. Equivalently, its entry at row (a,b)(a,b)(a,b) and column (c,e)(c,e)(c,e) is eiθ(b−a−e+c)ρ(a,b),(c,e)e^{i\theta(b-a-e+c)}\rho_{(a,b),(c,e)}eiθ(b−a−e+c)ρ(a,b),(c,e)​. No positivity or trace normalization is required of ρ\rhoρ.

QAlgorithms.Papers.Independent.Bridge50.P20.phaseTwirl

For every complex matrix ρ\rhoρ indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, this defines a matrix by averaging conjugation entry by entry:

phaseTwirl⁡(ρ)x,y=12π∫02π(DθρDθ†)x,y dθ,Dθ=diag⁡(1,eiθ,e−iθ,1),\operatorname{phaseTwirl}(\rho)_{x,y} =\frac{1}{2\pi}\int_0^{2\pi}(D_\theta\rho D_\theta^\dagger)_{x,y}\,d\theta, \qquad D_\theta=\operatorname{diag}(1,e^{i\theta},e^{-i\theta},1),phaseTwirl(ρ)x,y​=2π1​∫02π​(Dθ​ρDθ†​)x,y​dθ,Dθ​=diag(1,eiθ,e−iθ,1),

where the basis order is (0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1) and †\dagger† denotes conjugate transpose. No positivity or normalization assumption is imposed on ρ\rhoρ.

QAlgorithms.Papers.Independent.Bridge50.P20.phaseUnitary

For every real θ\thetaθ, this defines the complex matrix on {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1} given by

(eiθ/200e−iθ/2)⊗(e−iθ/200eiθ/2)=diag⁡(1,eiθ,e−iθ,1),\begin{pmatrix}e^{i\theta/2}&0\\0&e^{-i\theta/2}\end{pmatrix} \otimes \begin{pmatrix}e^{-i\theta/2}&0\\0&e^{i\theta/2}\end{pmatrix} = \operatorname{diag}(1,e^{i\theta},e^{-i\theta},1),(eiθ/20​0e−iθ/2​)⊗(e−iθ/20​0eiθ/2​)=diag(1,eiθ,e−iθ,1),

with the displayed diagonal ordered as (0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1). The parameter θ\thetaθ ranges over all real numbers.

QAlgorithms.Papers.Independent.Bridge50.P20.privateDensity

For any natural numbers d,s,td,s,td,s,t, any complex matrix SSS on {0,…,s−1}×{0,…,t−1}\{0,\ldots,s-1\}\times\{0,\ldots,t-1\}{0,…,s−1}×{0,…,t−1}, and any family UijU_{ij}Uij​ of matrices on that same space indexed by 0≤i,j<d0\le i,j<d0≤i,j<d, this defines a matrix PPP whose entries are

P((i,a),(j,b)), ((k,c),(ℓ,e))={1d(UijS Ukℓ†)(a,b),(c,e),i=j and k=ℓ,0,otherwise.P_{((i,a),(j,b)),\,((k,c),(\ell,e))} = \begin{cases} \dfrac1d\bigl(U_{ij}S\,U_{k\ell}^{\dagger}\bigr)_{(a,b),(c,e)}, & i=j\ \text{and}\ k=\ell,\\ 0,&\text{otherwise}. \end{cases}P((i,a),(j,b)),((k,c),(ℓ,e))​=⎩⎨⎧​d1​(Uij​SUkℓ†​)(a,b),(c,e)​,0,​i=j and k=ℓ,otherwise.​

Here a,c<sa,c<sa,c<s, b,e<tb,e<tb,e<t, and †\dagger† denotes conjugate transpose. There are no positivity, normalization, or unitarity assumptions on the inputs; only UiiU_{ii}Uii​ occur in potentially nonzero entries. Zero values of any of d,s,td,s,td,s,t are allowed and give an empty matrix index set; complex inversion uses 0−1=00^{-1}=00−1=0.

QAlgorithms.Papers.Independent.Bridge50.P20.relativeAdvantage

For arbitrary real numbers a,ba,ba,b, this defines

relativeAdvantage⁡(a,b)=a−ba+b.\operatorname{relativeAdvantage}(a,b)=\frac{a-b}{a+b}.relativeAdvantage(a,b)=a+ba−b​.

There are no sign restrictions or nonzero denominator hypothesis; when a+b=0a+b=0a+b=0, the defined value is 000 under the total real division convention.

QAlgorithms.Papers.Independent.Bridge50.P20.stateEMax

For finite nonempty types A,BA,BA,B, each equipped with decidable equality, and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines the extended real number

inf⁡σ inf⁡{ℓ∈R:2ℓσ−ρ⪰0},\inf_{\sigma}\ \inf\{\ell\in\mathbb R:2^\ell\sigma-\rho\succeq0\},σinf​ inf{ℓ∈R:2ℓσ−ρ⪰0},

where the outer infimum ranges over matrices admitting a representation σ=∑j=0q−1wj(Aj⊗Bj)\sigma=\sum_{j=0}^{q-1}w_j(A_j\otimes B_j)σ=∑j=0q−1​wj​(Aj​⊗Bj​) for some natural number qqq, nonnegative real weights wjw_jwj​ summing to 111, and positive semidefinite matrices Aj,BjA_j,B_jAj​,Bj​ on A,BA,BA,B, respectively, each with complex trace 111. Here ⪰0\succeq0⪰0 means positive semidefinite, and real values in the inner set are regarded as extended real numbers. No positivity or normalization assumption is imposed on ρ\rhoρ. An empty inner feasible set has infimum +∞+\infty+∞; the mixture conditions cannot hold with q=0q=0q=0.

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