Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Upper bounds on secret key agreement over lossy thermal bosonic channels

Definition
QAlgorithms_Papers_Independent_Bridge50_P18

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

prove2quantum

The objects the formalized statements of Upper bounds on secret key agreement over lossy thermal bosonic channels (arXiv:1706.04590) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • HasCoefficients: PDF pp.3,5: row=bra, column=ket for an actual bounded operator.
  • realizeCoefficients: PDF pp.3,5: unique bounded realization of an operator coefficient array. Normalized nuclear densities and their finite tensor products have such a realization. The zero off-domain branch is not used as a density.
  • StateSpectrum: PDF p.5, (31),(32): a complete orthonormal spectral presentation of THIS operator. For a density, normalization and summability follow from State. Zero eigenvalues are allowed here; faithfulness is imposed separately.
  • likelihoodWeight: PDF pp.5,12, (33),(C1): rho-weighted spectral probability, not sigma-weighted.
  • likelihoodBits: PDF p.5: binary spectral log likelihood. Used only with faithful spectra.
  • meanSummand: PDF p.5, (33): signed first-moment summand. Summability is explicitly assumed in Proposition 2 and concluded, rather than assumed, in Appendix D.
  • relativeMeanBits: PDF p.5, (33): D in bits on the explicit summable domain.
  • centralMomentBits: PDF p.5, (34),(39): extended nonnegative absolute central spectral moment. Order two is V and order three is T. This is not an operator absolute cube. Infinite positive moments remain infinity instead of defaulting to zero.
  • standardNormalQuantile: PDF p.5, (40),(41): standard-normal inverse on 0<epsilon<1, where this sublevel set is nonempty and bounded above. No endpoint value is asserted.
  • tensorTestingBits: PDF pp.5,11--12: actual n-fold density coefficients on completed l2(I^n). The accepted tensorPower body is a product of n coefficients, with scalar identity at n=0. Bounded realization is unique on every density input.
  • CenteredFiniteEnergyGaussian: PDF pp.2--3,12--13: centered finite-energy Gaussian predicate adapted from the accepted complete oscillator characteristic. Symmetry is explicitly retained, independently of any directional derivative. GaussianWithCovariance includes positivity, nuclear trace class, trace one, finite ACTUAL photon energy, and convergence of the full Weyl traces.
  • thermalPhotonWeight: PDF p.13, (D6), and p.10, (A28): one-mode thermal photon weights.
  • lossPurificationAmplitude: PDF pp.9--10, (A27),(A28): amplitude of |n>_A |n-k>_B |k>_E in the vacuum pure-loss purification of the normalized squeezed input. eta is the intensity transmissivity, and k is the lost photon count.
  • pureLossOutput: PDF pp.9--10: actual rho_AB after sending the second squeezed-vacuum mode through pure loss and tracing E. The shared lost count enforces the environment partial trace. A is the first coordinate, B the second.
  • reverseReference: PDF pp.8--9, (A2),(A10): rho_A tensor I_B in the chosen A,B order. This positive bounded reference is deliberately NOT required to be trace class.
  • regularizedLogBits: PDF p.9, (A10): bounded support-log regularization. For each cutoff k, log2(max(x,1/(k+1))) is continuous on every bounded real spectrum. Taking the rho-weighted limit permits a kernel in rho without assigning a finite unbounded logarithm to that kernel.
  • conditionalVarianceCutoff: PDF p.9, (A10),(A11): centered conditional second moment at a bounded log cutoff, computed from the ACTUAL output density and reference operators.
  • conditionalVarianceBits: PDF pp.8--9, (A2),(A10): conditional variance on its convergent support-log domain. The theorem below explicitly concludes convergence, so no arbitrary limUnder value is used to assert either the identity or the high-energy limit.
  • pureLossVarianceExpression: PDF p.11, exact (A42), in bits squared. The approximate square (A43) is not used as the definition of conditional variance or asserted as an identity.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P19
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P33
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P20
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P13

/-!
Kaur--Wilde, arXiv:1706.04590v2. All citations use PDF pages.
All Hilbert spaces are completed countable-coordinate spaces, including finite
ones. No photon cutoff is used. Local definitions have complete bodies.
The source's spectral moments are in bits. The Gaussian covariance is the full
anticommutator covariance (vacuum I, [q,p]=i); interleaved implementation
coordinates differ from the source's grouped coordinates only by permutation.
Operational capacity statements and numerical resource existence are deferred
in the accompanying HARD.md; no capacity is replaced by a free real number.
Compilation and independent moderation are pending the batch handoff.
-/

noncomputable section

open Filter
open scoped BigOperators ENNReal Topology

namespace QAlgorithms.Papers.Independent.Bridge50.P18

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.RealRegisters (Hilbert)
open QAlgorithms.Papers.Independent.Dependency50.P33 (State IsDensity)
open QAlgorithms.Papers.Independent.Dependency50.P13 (operatorTrace)
open QAlgorithms.Papers.Independent.Information100.P63 (logTwo tensorPower)
open QAlgorithms.Papers.Independent.Support50.P20 (hilbertTestingDivergence)
open QAlgorithms.Papers.Independent.Claimed50.P19
  (Cov GaussianWithCovariance multimodeWeylTrace covarianceCharacteristicValue)

-- The accepted complete coordinate basis has the identical body and type.
open QAlgorithms.Papers.Independent.Next46.P13 (coordinateBasis)

/-- PDF pp.3,5: row=bra, column=ket for an actual bounded operator. -/
def HasCoefficients {I : Type} (T : Hilbert I →L[ℂ] Hilbert I)
    (A : Matrix I I ℂ) : Prop :=
  ∀ i j, T (coordinateBasis I j) i = A i j

/-- PDF pp.3,5: unique bounded realization of an operator coefficient array.
Normalized nuclear densities and their finite tensor products have such a
realization. The zero off-domain branch is not used as a density. -/
def realizeCoefficients {I : Type} (A : Matrix I I ℂ) :
    Hilbert I →L[ℂ] Hilbert I :=
  if h : ∃ T, HasCoefficients T A then Classical.choose h else 0

/-- PDF p.5, (31),(32): a complete orthonormal spectral presentation of THIS
operator. For a density, normalization and summability follow from State.
Zero eigenvalues are allowed here; faithfulness is imposed separately. -/
structure StateSpectrum {I : Type} (K : Type) (A : Matrix I I ℂ) where
  basis : HilbertBasis K ℂ (Hilbert I)
  value : K → ℝ
  nonnegative : ∀ k, 0 ≤ value k
  eigen : ∀ k, realizeCoefficients A (basis k) = (value k : ℂ) • basis k

-- Faithfulness is positivity of density eigenvalues in a complete basis.
-- The frozen Support50.P03.FaithfulSpectrum concerns symplectic eigenvalues
-- in vacuum-I/2 units and therefore is a different predicate.

/-- PDF pp.5,12, (33),(C1): rho-weighted spectral probability, not sigma-weighted. -/
def likelihoodWeight {I K J : Type} {A B : Matrix I I ℂ}
    (r : StateSpectrum K A) (s : StateSpectrum J B) (z : K × J) : ℝ :=
  r.value z.1 * Complex.normSq (inner ℂ (s.basis z.2) (r.basis z.1))

/-- PDF p.5: binary spectral log likelihood. Used only with faithful spectra. -/
def likelihoodBits {I K J : Type} {A B : Matrix I I ℂ}
    (r : StateSpectrum K A) (s : StateSpectrum J B) (z : K × J) : ℝ :=
  logTwo (r.value z.1 / s.value z.2)

/-- PDF p.5, (33): signed first-moment summand. Summability is explicitly
assumed in Proposition 2 and concluded, rather than assumed, in Appendix D. -/
def meanSummand {I K J : Type} {A B : Matrix I I ℂ}
    (r : StateSpectrum K A) (s : StateSpectrum J B) (z : K × J) : ℝ :=
  likelihoodWeight r s z * likelihoodBits r s z

/-- PDF p.5, (33): D in bits on the explicit summable domain. -/
def relativeMeanBits {I K J : Type} {A B : Matrix I I ℂ}
    (r : StateSpectrum K A) (s : StateSpectrum J B) : ℝ :=
  ∑' z, meanSummand r s z

/-- PDF p.5, (34),(39): extended nonnegative absolute central spectral moment.
Order two is V and order three is T. This is not an operator absolute cube.
Infinite positive moments remain infinity instead of defaulting to zero. -/
def centralMomentBits {I K J : Type} {A B : Matrix I I ℂ}
    (r : StateSpectrum K A) (s : StateSpectrum J B) (order : ℕ) : ℝ≥0∞ :=
  ∑' z, ENNReal.ofReal
    (likelihoodWeight r s z * |likelihoodBits r s z - relativeMeanBits r s| ^ order)

/-- PDF p.5, (40),(41): standard-normal inverse on 0<epsilon<1, where this
sublevel set is nonempty and bounded above. No endpoint value is asserted. -/
def standardNormalQuantile (epsilon : ℝ) : ℝ :=
  sSup {a : ℝ | ProbabilityTheory.cdf (ProbabilityTheory.gaussianReal 0 1) a ≤ epsilon}

/-- PDF pp.5,11--12: actual n-fold density coefficients on completed l2(I^n).
The accepted tensorPower body is a product of n coefficients, with scalar
identity at n=0. Bounded realization is unique on every density input. -/
def tensorTestingBits {I : Type} (rho sigma : State I) (n : ℕ)
    (epsilon : ℝ) : EReal :=
  hilbertTestingDivergence (coordinateBasis (Fin n → I)) epsilon
    (realizeCoefficients (tensorPower n rho.coefficients))
    (realizeCoefficients (tensorPower n sigma.coefficients))

/-- PDF pp.2--3,12--13: centered finite-energy Gaussian predicate adapted from
the accepted complete oscillator characteristic. Symmetry is explicitly
retained, independently of any directional derivative. GaussianWithCovariance
includes positivity, nuclear trace class, trace one, finite ACTUAL photon
energy, and convergence of the full Weyl traces. -/
def CenteredFiniteEnergyGaussian {m : ℕ} (rho : State (Fin m → ℕ)) : Prop :=
  ∃ V : Cov m, GaussianWithCovariance rho.coefficients V ∧ V.transpose = V ∧
    ∀ v, multimodeWeylTrace rho.coefficients v = covarianceCharacteristicValue V 0 v

example {I : Type} (A : Matrix I I ℂ)
    (h : ∃ T, HasCoefficients T A) : HasCoefficients (realizeCoefficients A) A := by
  unfold realizeCoefficients
  rw [dif_pos h]
  exact Classical.choose_spec h

example {I : Type} (A : Matrix I I ℂ) (a b : Fin 0 → I) :
    tensorPower 0 A a b = 1 := by
  simp [tensorPower]

example {I K J : Type} {A B : Matrix I I ℂ}
    (r : StateSpectrum K A) (s : StateSpectrum J B) (z : K × J) :
    0 ≤ likelihoodWeight r s z :=
  mul_nonneg (r.nonnegative z.1) (Complex.normSq_nonneg _)

/-- PDF p.13, (D6), and p.10, (A28): one-mode thermal photon weights. -/
def thermalPhotonWeight (S : ℝ) (n : ℕ) : ℝ :=
  1 / (S + 1) * (S / (S + 1)) ^ n

/-- PDF pp.9--10, (A27),(A28): amplitude of |n>_A |n-k>_B |k>_E
in the vacuum pure-loss purification of the normalized squeezed input.
eta is the intensity transmissivity, and k is the lost photon count. -/
def lossPurificationAmplitude (eta S : ℝ) (n k : ℕ) : ℝ :=
  if k ≤ n then Real.sqrt
    (thermalPhotonWeight S n * (Nat.choose n k : ℝ) *
      (1 - eta) ^ k * eta ^ (n - k)) else 0

/-- PDF pp.9--10: actual rho_AB after sending the second squeezed-vacuum mode
through pure loss and tracing E. The shared lost count enforces the environment
partial trace. A is the first coordinate, B the second. -/
def pureLossOutput (eta S : ℝ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
  fun i j => if i.2 ≤ i.1 ∧ j.2 ≤ j.1 ∧ i.1 - i.2 = j.1 - j.2 then
    (lossPurificationAmplitude eta S i.1 (i.1 - i.2) *
      lossPurificationAmplitude eta S j.1 (j.1 - j.2) : ℝ) else 0

/-- PDF pp.8--9, (A2),(A10): rho_A tensor I_B in the chosen A,B order.
This positive bounded reference is deliberately NOT required to be trace class. -/
def reverseReference (S : ℝ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
  fun i j => if i = j then (thermalPhotonWeight S i.1 : ℂ) else 0

/-- PDF p.9, (A10): bounded support-log regularization. For each cutoff k,
log2(max(x,1/(k+1))) is continuous on every bounded real spectrum.
Taking the rho-weighted limit permits a kernel in rho without assigning a
finite unbounded logarithm to that kernel. -/
def regularizedLogBits {I : Type} (A : Matrix I I ℂ) (k : ℕ) :
    Hilbert I →L[ℂ] Hilbert I := by
  letI : ContinuousFunctionalCalculus ℂ (Hilbert I →L[ℂ] Hilbert I) IsStarNormal :=
    IsStarNormal.instContinuousFunctionalCalculus (A := Hilbert I →L[ℂ] Hilbert I)
  letI : ContinuousFunctionalCalculus ℝ (Hilbert I →L[ℂ] Hilbert I) IsSelfAdjoint :=
    IsSelfAdjoint.instContinuousFunctionalCalculus (A := Hilbert I →L[ℂ] Hilbert I)
  exact cfc (fun x : ℝ => logTwo (max x (1 / ((k : ℝ) + 1)))) (realizeCoefficients A)

/-- PDF p.9, (A10),(A11): centered conditional second moment at a bounded
log cutoff, computed from the ACTUAL output density and reference operators. -/
def conditionalVarianceCutoff {I : Type} (rho reference : Matrix I I ℂ)
    (k : ℕ) : ℝ :=
  let L := regularizedLogBits rho k - regularizedLogBits reference k
  let mean := (operatorTrace (coordinateBasis I) ((realizeCoefficients rho).comp L)).re
  let centered := L - (mean : ℂ) • (1 : Hilbert I →L[ℂ] Hilbert I)
  (operatorTrace (coordinateBasis I)
    ((realizeCoefficients rho).comp (centered.comp centered))).re

/-- PDF pp.8--9, (A2),(A10): conditional variance on its convergent support-log
domain. The theorem below explicitly concludes convergence, so no arbitrary
limUnder value is used to assert either the identity or the high-energy limit. -/
def conditionalVarianceBits {I : Type} (rho reference : Matrix I I ℂ) : ℝ :=
  Filter.limUnder atTop (conditionalVarianceCutoff rho reference)

/-- PDF p.11, exact (A42), in bits squared. The approximate square (A43)
is not used as the definition of conditional variance or asserted as an identity. -/
def pureLossVarianceExpression (eta S : ℝ) : ℝ :=
  let q := 1 - eta
  q * S * (q * S + 1) * logTwo (1 + 1 / (q * S)) ^ 2 -
    2 * q * S * (S + 1) * logTwo (1 + 1 / (q * S)) * logTwo (1 + 1 / S) +
    S * (S + 1) * logTwo (1 + 1 / S) ^ 2

example (n : ℕ) : thermalPhotonWeight 0 n = if n = 0 then 1 else 0 := by
  cases n <;> simp [thermalPhotonWeight]

example (eta S : ℝ) (n k : ℕ) (h : n < k) :
    lossPurificationAmplitude eta S n k = 0 := by
  simp [lossPurificationAmplitude, Nat.not_le.mpr h]

example {I : Type} (rho : Matrix I I ℂ) (k : ℕ) :
    conditionalVarianceCutoff rho rho k = 0 := by
  simp [conditionalVarianceCutoff, operatorTrace]

end QAlgorithms.Papers.Independent.Bridge50.P18
Source
Upper bounds on secret key agreement over lossy thermal bosonic channels, arXiv:1706.04590v2, https://arxiv.org/abs/1706.04590v2
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P18.CenteredFiniteEnergyGaussian

For any natural number mmm and state ρ\rhoρ indexed by Nm=N{0,…,m−1}\mathcal N_m=\mathbb N^{\{0,\ldots,m-1\}}Nm​=N{0,…,m−1}, write AAA for its coefficient matrix. Being a state means that Aij=∑r′ur(i)vr(j)‾A_{ij}=\sum'_ru_r(i)\overline{v_r(j)}Aij​=∑r′​ur​(i)vr​(j)​ for sequences ur,vr∈ℓ2(Nm;C)u_r,v_r\in\ell^2(\mathcal N_m;\mathbb C)ur​,vr​∈ℓ2(Nm​;C) with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, all its finite quadratic forms are real and nonnegative, and its real diagonal is summable with sum 111. The predicate asserts that there exists a real matrix VVV indexed by Qm={0,…,m−1}×{0,1}Q_m=\{0,\ldots,m-1\}\times\{0,1\}Qm​={0,…,m−1}×{0,1} such that VVV is positive definite, VT=VV^\mathsf T=VVT=V, and VC+iΩV_{\mathbb C}+i\OmegaVC​+iΩ is positive semidefinite, where Ω\OmegaΩ has diagonal blocks (01−10)\begin{pmatrix}0&1\\-1&0\end{pmatrix}(0−1​10​) and all other blocks zero; additionally, ∑a∈Nm′(∑kak)Re⁡Aaa\sum'_{a\in\mathcal N_m}(\sum_k a_k)\operatorname{Re}A_{aa}∑a∈Nm​′​(∑k​ak​)ReAaa​ has a summable real summand family. For every v:Qm→Rv:Q_m\to\mathbb Rv:Qm​→R, put zk=(−v(k,1)+iv(k,0))/2z_k=(-v_{(k,1)}+i v_{(k,0)})/\sqrt2zk​=(−v(k,1)​+iv(k,0)​)/2​ and Wv(b,a)=∏kD(zk)bkakW_v(b,a)=\prod_k D(z_k)_{b_k a_k}Wv​(b,a)=∏k​D(zk​)bk​ak​​, where D(z)rs=e−∣z∣2/2r!s!∑j=0min⁡(r,s)zr−j(−z‾)s−j/(j!(r−j)!(s−j)!)D(z)_{rs}=e^{-|z|^2/2}\sqrt{r!s!}\sum_{j=0}^{\min(r,s)}z^{r-j}(-\overline z)^{s-j}/(j!(r-j)!(s-j)!)D(z)rs​=e−∣z∣2/2r!s!​∑j=0min(r,s)​zr−j(−z)s−j/(j!(r−j)!(s−j)!). For each vvv, every inner series ∑b′AabWv(b,a)\sum'_b A_{ab}W_v(b,a)∑b′​Aab​Wv​(b,a) and the outer series of their sums must be summable, and there must exist a real vector a0:Qm→Ra_0:Q_m\to\mathbb Ra0​:Qm​→R such that, for every vvv, their iterated sum equals both exp⁡(−14∑i,jviVijvj+i∑i(a0)ivi)\exp(-\tfrac14\sum_{i,j}v_iV_{ij}v_j+i\sum_i(a_0)_iv_i)exp(−41​∑i,j​vi​Vij​vj​+i∑i​(a0​)i​vi​) and exp⁡(−14∑i,jviVijvj)\exp(-\tfrac14\sum_{i,j}v_iV_{ij}v_j)exp(−41​∑i,j​vi​Vij​vj​). The case m=0m=0m=0 is included, using empty sums equal to zero and empty products equal to one.

QAlgorithms.Papers.Independent.Bridge50.P18.HasCoefficients

For an arbitrary index set III, let HI=ℓ2(I;C)H_I=\ell^2(I;\mathbb C)HI​=ℓ2(I;C), and let eje_jej​ be its coordinate basis vector, equal to 111 at jjj and 000 elsewhere. For a bounded complex-linear operator T:HI→HIT:H_I\to H_IT:HI​→HI​ and a complex matrix A=(Aij)i,j∈IA=(A_{ij})_{i,j\in I}A=(Aij​)i,j∈I​, this predicate means that (Tej)i=Aij(Te_j)_i=A_{ij}(Tej​)i​=Aij​ for every i,j∈Ii,j\in Ii,j∈I. No countability or nonemptiness assumption is imposed on III; when III is empty, the condition is vacuous.

QAlgorithms.Papers.Independent.Bridge50.P18.StateSpectrum

For arbitrary index sets I,KI,KI,K and a complex matrix AAA indexed by I×II\times II×I, this structure consists of a complete orthonormal basis (uk)k∈K(u_k)_{k\in K}(uk​)k∈K​ of HI=ℓ2(I;C)H_I=\ell^2(I;\mathbb C)HI​=ℓ2(I;C), a real-valued function a:K→Ra:K\to\mathbb Ra:K→R, proofs that ak≥0a_k\ge0ak​≥0 for every kkk, and the identities RAuk=akukR_Au_k=a_ku_kRA​uk​=ak​uk​ for every kkk. Here RAR_ARA​ is a chosen bounded complex-linear operator with coordinate coefficients AijA_{ij}Aij​, if one exists, and is the zero operator otherwise. There is no requirement that AAA be a density matrix, that the values sum to 111, or that they be strictly positive; zero values are allowed. Empty index sets are not explicitly excluded, subject to the requirement that the specified complete orthonormal basis exist.

QAlgorithms.Papers.Independent.Bridge50.P18.centralMomentBits

For arbitrary index sets I,K,JI,K,JI,K,J, complex matrices A,BA,BA,B indexed by I×II\times II×I, and spectral structures with complete orthonormal bases (uk)k∈K,(vj)j∈J(u_k)_{k\in K},(v_j)_{j\in J}(uk​)k∈K​,(vj​)j∈J​ of ℓ2(I;C)\ell^2(I;\mathbb C)ℓ2(I;C) and nonnegative real values ak,bja_k,b_jak​,bj​, satisfying RAuk=akukR_Au_k=a_ku_kRA​uk​=ak​uk​ and RBvj=bjvjR_Bv_j=b_jv_jRB​vj​=bj​vj​, put wkj=ak∣⟨vj,uk⟩∣2w_{kj}=a_k|\langle v_j,u_k\rangle|^2wkj​=ak​∣⟨vj​,uk​⟩∣2, ℓkj=log⁡(ak/bj)/log⁡2\ell_{kj}=\log(a_k/b_j)/\log2ℓkj​=log(ak​/bj​)/log2, and D=∑k,j′wkjℓkjD=\sum'_{k,j}w_{kj}\ell_{kj}D=∑k,j′​wkj​ℓkj​. Each RRR is a chosen bounded realization of its matrix, or zero if none exists; division by zero and the logarithm at zero give zero, and DDD is zero if its real summand family is not summable. For every natural number rrr, the defined moment is the extended nonnegative sum ∑k,j′max⁡{wkj∣ℓkj−D∣r,0}\sum'_{k,j}\max\{w_{kj}|\ell_{kj}-D|^r,0\}∑k,j′​max{wkj​∣ℓkj​−D∣r,0}, valued in [0,∞][0,\infty][0,∞]. Its summands are already nonnegative, but the sum can be infinite; an empty sum is zero. The order r=0r=0r=0 is included, with 00=10^0=100=1, so that order sums the weights themselves. No normalization, finiteness, or countability hypothesis is imposed.

QAlgorithms.Papers.Independent.Bridge50.P18.conditionalVarianceBits

For any type III and arbitrary complex matrices ρ,F\rho,Fρ,F indexed by III, let H=ℓ2(I;C)H=\ell^2(I;\mathbb C)H=ℓ2(I;C), with coordinate basis (ei)(e_i)(ei​), and let TAT_ATA​ be a chosen bounded operator satisfying (TAej)i=Aij(T_Ae_j)_i=A_{ij}(TA​ej​)i​=Aij​ when one exists, and zero otherwise. Set τ(T)=∑i⟨ei,Tei⟩\tau(T)=\sum_i\langle e_i,Te_i\rangleτ(T)=∑i​⟨ei​,Tei​⟩, using zero for a nonsummable complex family, and define

fk(x)=log⁡(max⁡{x,1/(k+1)})log⁡2,Lk=fk(Tρ)−fk(TF),mk=Re⁡τ(TρLk),Vk=Re⁡τ ⁣(Tρ(Lk−mk Id)2),f_k(x)=\frac{\log(\max\{x,1/(k+1)\})}{\log2},\quad L_k=f_k(T_\rho)-f_k(T_F),\quad m_k=\operatorname{Re}\tau(T_\rho L_k),\quad V_k=\operatorname{Re}\tau\!\left(T_\rho(L_k-m_k\,\mathrm{Id})^2\right),fk​(x)=log2log(max{x,1/(k+1)})​,Lk​=fk​(Tρ​)−fk​(TF​),mk​=Reτ(Tρ​Lk​),Vk​=Reτ(Tρ​(Lk​−mk​Id)2),

where fk(T)f_k(T)fk​(T) uses the total real continuous functional calculus, giving zero if self-adjointness fails. This defines a real number by applying the total, choice-based limit operation to the sequence (Vk)k∈N(V_k)_{k\in\mathbb N}(Vk​)k∈N​ along k→∞k\to\inftyk→∞. The definition supplies no convergence hypothesis or assertion; when the sequence converges, the selected value is its ordinary real limit.

QAlgorithms.Papers.Independent.Bridge50.P18.conditionalVarianceCutoff

For any type III, arbitrary complex matrices ρ,F\rho,Fρ,F indexed by III, and any natural number kkk, work on H=ℓ2(I;C)H=\ell^2(I;\mathbb C)H=ℓ2(I;C) with coordinate basis (ei)(e_i)(ei​). For a matrix AAA, let TAT_ATA​ be a chosen bounded complex-linear operator having coefficients Aij=(TAej)iA_{ij}=(T_Ae_j)_iAij​=(TA​ej​)i​, if one exists, and zero otherwise; let fk(TA)f_k(T_A)fk​(TA​) denote its total real continuous functional calculus for fk(x)=log⁡(max⁡{x,1/(k+1)})/log⁡2f_k(x)=\log(\max\{x,1/(k+1)\})/\log2fk​(x)=log(max{x,1/(k+1)})/log2, which gives zero when self-adjointness fails. Write

τ(T)=∑i∈I⟨ei,Tei⟩,Lk=fk(Tρ)−fk(TF),mk=Re⁡τ(TρLk).\tau(T)=\sum_{i\in I}\langle e_i,Te_i\rangle,\qquad L_k=f_k(T_\rho)-f_k(T_F),\qquad m_k=\operatorname{Re}\tau(T_\rho L_k).τ(T)=i∈I∑​⟨ei​,Tei​⟩,Lk​=fk​(Tρ​)−fk​(TF​),mk​=Reτ(Tρ​Lk​).

This defines the real number

Vk(ρ,F)=Re⁡τ ⁣(Tρ(Lk−mk Id)2).V_k(\rho,F)= \operatorname{Re}\tau\!\left(T_\rho(L_k-m_k\,\mathrm{Id})^2\right).Vk​(ρ,F)=Reτ(Tρ​(Lk​−mk​Id)2).

Here products mean operator composition and τ\tauτ is the indicated coordinate sum, with a nonsummable complex family assigned sum zero. No density, trace-class, coefficient-realization, summability, or nonnegativity hypotheses are imposed.

QAlgorithms.Papers.Independent.Bridge50.P18.likelihoodBits

For arbitrary index sets I,K,JI,K,JI,K,J, complex matrices A,BA,BA,B indexed by I×II\times II×I, and spectral structures with complete orthonormal bases (uk)k∈K,(vj)j∈J(u_k)_{k\in K},(v_j)_{j\in J}(uk​)k∈K​,(vj​)j∈J​ of ℓ2(I;C)\ell^2(I;\mathbb C)ℓ2(I;C) and nonnegative real values ak,bja_k,b_jak​,bj​, satisfying RAuk=akukR_Au_k=a_ku_kRA​uk​=ak​uk​ and RBvj=bjvjR_Bv_j=b_jv_jRB​vj​=bj​vj​, the value at z=(k,j)z=(k,j)z=(k,j) is log⁡(ak/bj)/log⁡2\log(a_k/b_j)/\log 2log(ak​/bj​)/log2. Here each RRR is a chosen bounded operator realizing the corresponding coordinate matrix, or zero if none exists. Strict positivity of ak,bja_k,b_jak​,bj​ is not required: real division by zero is defined to be zero, and the real logarithm at zero is defined to be zero, so the defined value is zero whenever either ak=0a_k=0ak​=0 or bj=0b_j=0bj​=0.

QAlgorithms.Papers.Independent.Bridge50.P18.likelihoodWeight

For arbitrary index sets I,K,JI,K,JI,K,J, complex matrices A,BA,BA,B indexed by I×II\times II×I, and spectral structures r,sr,sr,s, write (uk,ak)k∈K(u_k,a_k)_{k\in K}(uk​,ak​)k∈K​ and (vj,bj)j∈J(v_j,b_j)_{j\in J}(vj​,bj​)j∈J​ for their complete orthonormal bases of ℓ2(I;C)\ell^2(I;\mathbb C)ℓ2(I;C) and nonnegative real values. They satisfy RAuk=akukR_Au_k=a_ku_kRA​uk​=ak​uk​ and RBvj=bjvjR_Bv_j=b_jv_jRB​vj​=bj​vj​, where each RRR is a chosen bounded operator with the corresponding coordinate matrix, or zero if no such operator exists. At any pair z=(k,j)∈K×Jz=(k,j)\in K\times Jz=(k,j)∈K×J, the defined weight is ak∣⟨vj,uk⟩∣2a_k|\langle v_j,u_k\rangle|^2ak​∣⟨vj​,uk​⟩∣2. No trace normalization or strict positivity is assumed, so these nonnegative weights are not required by this definition to sum to 111.

QAlgorithms.Papers.Independent.Bridge50.P18.lossPurificationAmplitude

For arbitrary real numbers η,S\eta,Sη,S and natural numbers n,kn,kn,k, this defines

aη,S(n,k)={1S+1(SS+1)n(nk)(1−η)kη n−k,k≤n,0,k>n.a_{\eta,S}(n,k)= \begin{cases} \displaystyle \sqrt{\frac{1}{S+1}\left(\frac{S}{S+1}\right)^n \binom nk(1-\eta)^k\eta^{\,n-k}},&k\le n,\\[4pt] 0,&k>n. \end{cases}aη,S​(n,k)=⎩⎨⎧​S+11​(S+1S​)n(kn​)(1−η)kηn−k​,0,​k≤n,k>n.​

No restrictions such as 0≤η≤10\le\eta\le10≤η≤1 or S≥0S\ge0S≥0 are imposed. The real square root is zero on negative arguments, division by zero is zero, and zeroth powers are 111. The exponent n−kn-kn−k uses natural-number subtraction, which truncates at zero, although the square-root branch is used only when k≤nk\le nk≤n.

QAlgorithms.Papers.Independent.Bridge50.P18.meanSummand

For arbitrary index sets I,K,JI,K,JI,K,J, complex matrices A,BA,BA,B indexed by I×II\times II×I, and spectral structures consisting of complete orthonormal bases (uk)k∈K,(vj)j∈J(u_k)_{k\in K},(v_j)_{j\in J}(uk​)k∈K​,(vj​)j∈J​ of ℓ2(I;C)\ell^2(I;\mathbb C)ℓ2(I;C) with nonnegative real values ak,bja_k,b_jak​,bj​, satisfying RAuk=akukR_Au_k=a_ku_kRA​uk​=ak​uk​ and RBvj=bjvjR_Bv_j=b_jv_jRB​vj​=bj​vj​, the defined summand at (k,j)(k,j)(k,j) is ak∣⟨vj,uk⟩∣2 log⁡(ak/bj)/log⁡2a_k|\langle v_j,u_k\rangle|^2\,\log(a_k/b_j)/\log 2ak​∣⟨vj​,uk​⟩∣2log(ak​/bj​)/log2. Each RRR is a chosen bounded operator having the corresponding coordinate matrix, or zero if no such operator exists. No normalization or summability condition is imposed. Division by zero and the logarithm at zero both give zero, so this summand is zero if either spectral value is zero.

QAlgorithms.Papers.Independent.Bridge50.P18.pureLossOutput

For arbitrary real η,S\eta,Sη,S, this defines a complex matrix Rη,SR_{\eta,S}Rη,S​ indexed by pairs of natural numbers. For i=(a,b)i=(a,b)i=(a,b) and j=(c,d)j=(c,d)j=(c,d), its entries are

(Rη,S)(a,b),(c,d)={wS(a)(aa−b)(1−η)a−bηb wS(c)(cc−d)(1−η)c−dηd,b≤a, d≤c, a−b=c−d,0,otherwise,wS(h)=1S+1(SS+1)h,(R_{\eta,S})_{(a,b),(c,d)} = \begin{cases} \displaystyle \sqrt{w_S(a)\binom a{a-b}(1-\eta)^{a-b}\eta^b}\, \sqrt{w_S(c)\binom c{c-d}(1-\eta)^{c-d}\eta^d}, &b\le a,\ d\le c,\ a-b=c-d,\\[4pt] 0,&\text{otherwise}, \end{cases} \qquad w_S(h)=\frac1{S+1}\left(\frac S{S+1}\right)^h,(Rη,S​)(a,b),(c,d)​=⎩⎨⎧​wS​(a)(a−ba​)(1−η)a−bηb​wS​(c)(c−dc​)(1−η)c−dηd​,0,​b≤a, d≤c, a−b=c−d,otherwise,​wS​(h)=S+11​(S+1S​)h,

with the displayed real value regarded as complex. All indices, including zero, are allowed. Natural-number subtraction truncates at zero; in the nonzero branch the inequalities ensure ordinary nonnegative differences. Real square roots of negative numbers and divisions by zero are zero, and zeroth powers are 111. The definition itself imposes no positivity, trace, or normalization requirement.

QAlgorithms.Papers.Independent.Bridge50.P18.pureLossVarianceExpression

For arbitrary real η,S\eta,Sη,S, put q=1−ηq=1-\etaq=1−η and ℓ(x)=log⁡x/log⁡2\ell(x)=\log x/\log2ℓ(x)=logx/log2, where the real logarithm is total, with log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for x<0x<0x<0. This defines the real number

E(η,S)=qS(qS+1)ℓ ⁣(1+1qS)2−2qS(S+1)ℓ ⁣(1+1qS)ℓ ⁣(1+1S)+S(S+1)ℓ ⁣(1+1S)2.E(\eta,S)= qS(qS+1)\ell\!\left(1+\frac1{qS}\right)^2 -2qS(S+1)\ell\!\left(1+\frac1{qS}\right) \ell\!\left(1+\frac1S\right) +S(S+1)\ell\!\left(1+\frac1S\right)^2.E(η,S)=qS(qS+1)ℓ(1+qS1​)2−2qS(S+1)ℓ(1+qS1​)ℓ(1+S1​)+S(S+1)ℓ(1+S1​)2.

There are no restrictions on η,S\eta,Sη,S; division by zero is zero. In particular the expression is defined when S=0S=0S=0 or qS=0qS=0qS=0, and it equals zero in either case.

QAlgorithms.Papers.Independent.Bridge50.P18.realizeCoefficients

For any index set III and complex matrix A=(Aij)i,j∈IA=(A_{ij})_{i,j\in I}A=(Aij​)i,j∈I​, this definition returns a bounded complex-linear operator T:ℓ2(I;C)→ℓ2(I;C)T:\ell^2(I;\mathbb C)\to\ell^2(I;\mathbb C)T:ℓ2(I;C)→ℓ2(I;C) chosen from those satisfying (Tej)i=Aij(Te_j)_i=A_{ij}(Tej​)i​=Aij​ for every i,j∈Ii,j\in Ii,j∈I, where eje_jej​ is the coordinate basis vector. If no such bounded operator exists, it returns the zero operator. Thus the definition applies to every matrix, without assuming that its coefficients admit a bounded realization.

QAlgorithms.Papers.Independent.Bridge50.P18.regularizedLogBits

For any type III, any complex matrix AAA indexed by III, and any natural number kkk, let H=ℓ2(I;C)H=\ell^2(I;\mathbb C)H=ℓ2(I;C) and let (ei)(e_i)(ei​) be its coordinate orthonormal basis. Let TAT_ATA​ be a chosen bounded complex-linear operator on HHH satisfying (TAej)i=Aij(T_Ae_j)_i=A_{ij}(TA​ej​)i​=Aij​ for all i,ji,ji,j, if one exists, and zero otherwise. This defines the bounded operator obtained by applying the real continuous functional calculus to TAT_ATA​ with the scalar function

fk(x)=log⁡ ⁣(max⁡{x,1/(k+1)})log⁡2.f_k(x)=\frac{\log\!\left(\max\{x,1/(k+1)\}\right)}{\log2}.fk​(x)=log2log(max{x,1/(k+1)})​.

No countability assumption on III, coefficient-realization hypothesis on AAA, or positivity or self-adjointness hypothesis on TAT_ATA​ is supplied. The functional calculus is total and gives zero when its self-adjointness requirement fails. The scalar cutoff 1/(k+1)1/(k+1)1/(k+1) is positive for every allowed kkk, including k=0k=0k=0.

QAlgorithms.Papers.Independent.Bridge50.P18.relativeMeanBits

For arbitrary index sets I,K,JI,K,JI,K,J, complex matrices A,BA,BA,B indexed by I×II\times II×I, and spectral structures with complete orthonormal bases (uk)k∈K,(vj)j∈J(u_k)_{k\in K},(v_j)_{j\in J}(uk​)k∈K​,(vj​)j∈J​ of ℓ2(I;C)\ell^2(I;\mathbb C)ℓ2(I;C) and nonnegative real values ak,bja_k,b_jak​,bj​, satisfying RAuk=akukR_Au_k=a_ku_kRA​uk​=ak​uk​ and RBvj=bjvjR_Bv_j=b_jv_jRB​vj​=bj​vj​, this definition gives the real number D=∑(k,j)∈K×J′ak∣⟨vj,uk⟩∣2 log⁡(ak/bj)/log⁡2D=\sum'_{(k,j)\in K\times J}a_k|\langle v_j,u_k\rangle|^2\,\log(a_k/b_j)/\log 2D=∑(k,j)∈K×J′​ak​∣⟨vj​,uk​⟩∣2log(ak​/bj​)/log2. Each RRR is a chosen bounded realization of the corresponding coordinate matrix, or zero if none exists. The sum is the generalized sum over the whole index set, without a countability or summability assumption; if the family is not summable in R\mathbb RR, this total sum is defined to be zero, and an empty sum is also zero. Real division by zero and the logarithm at zero are both zero, so zero spectral values contribute zero summands. The weights are not assumed to be normalized.

QAlgorithms.Papers.Independent.Bridge50.P18.reverseReference

For every real SSS, this defines the complex matrix FSF_SFS​ indexed by N×N\mathbb N\times\mathbb NN×N through

(FS)(a,b),(c,d)={1S+1(SS+1)a,(a,b)=(c,d),0,otherwise.(F_S)_{(a,b),(c,d)} = \begin{cases} \displaystyle\frac1{S+1}\left(\frac S{S+1}\right)^a, &(a,b)=(c,d),\\[4pt] 0,&\text{otherwise}. \end{cases}(FS​)(a,b),(c,d)​=⎩⎨⎧​S+11​(S+1S​)a,0,​(a,b)=(c,d),otherwise.​

Thus each diagonal value depends only on the first coordinate and is repeated for every second coordinate. There is no restriction on SSS and no density or normalization condition in this definition. Division by zero is zero and zeroth powers are 111, so F−1=0F_{-1}=0F−1​=0.

QAlgorithms.Papers.Independent.Bridge50.P18.standardNormalQuantile

For every real number ϵ\epsilonϵ, this definition is the real supremum sup⁡{a∈R:Φ(a)≤ϵ}\sup\{a\in\mathbb R:\Phi(a)\le\epsilon\}sup{a∈R:Φ(a)≤ϵ}, where Φ\PhiΦ is the cumulative distribution function of the Gaussian probability distribution with mean 000 and variance 111. The inequality in the defining set is non-strict. There is no restriction that 0<ϵ<10<\epsilon<10<ϵ<1: for ϵ≤0\epsilon\le0ϵ≤0 the defining set is empty, and for ϵ≥1\epsilon\ge1ϵ≥1 it is unbounded above; the total real supremum used here returns zero in either case.

QAlgorithms.Papers.Independent.Bridge50.P18.tensorTestingBits

For any index set III, two states ρ,σ\rho,\sigmaρ,σ, a natural number nnn, and a real number ϵ\epsilonϵ, this definition produces an extended real number as follows. A state here is a complex matrix AAA indexed by I×II\times II×I carrying these conditions: there are sequences ur,vr∈ℓ2(I;C)u_r,v_r\in\ell^2(I;\mathbb C)ur​,vr​∈ℓ2(I;C) with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞ and Aij=∑r′ur(i)vr(j)‾A_{ij}=\sum'_ru_r(i)\overline{v_r(j)}Aij​=∑r′​ur​(i)vr​(j)​; every finite quadratic form ∑i,j∈Fzi‾Aijzj\sum_{i,j\in F}\overline{z_i}A_{ij}z_j∑i,j∈F​zi​​Aij​zj​, for a finite F⊆IF\subseteq IF⊆I and z:I→Cz:I\to\mathbb Cz:I→C, is real and nonnegative; and ((Aii)Re)i∈I((A_{ii})_{\mathrm{Re}})_{i\in I}((Aii​)Re​)i∈I​ is summable with sum 111. Write A,BA,BA,B for the matrices of ρ,σ\rho,\sigmaρ,σ, and form matrices on In={x:{0,…,n−1}→I}I^n=\{x:\{0,\ldots,n-1\}\to I\}In={x:{0,…,n−1}→I} by Axy(n)=∏r=0n−1AxryrA^{(n)}_{xy}=\prod_{r=0}^{n-1}A_{x_r y_r}Axy(n)​=∏r=0n−1​Axr​yr​​ and similarly for B(n)B^{(n)}B(n). Let R,SR,SR,S be chosen bounded operators on ℓ2(In;C)\ell^2(I^n;\mathbb C)ℓ2(In;C) with these coordinate coefficients, using the zero operator separately whenever a bounded realization does not exist. With coordinate basis (ex)x∈In(e_x)_{x\in I^n}(ex​)x∈In​, let β∈[0,∞]\beta\in[0,\infty]β∈[0,∞] be the infimum of max⁡{Re⁡∑x′⟨ex,QSex⟩,0}\max\{\operatorname{Re}\sum'_x\langle e_x,QS e_x\rangle,0\}max{Re∑x′​⟨ex​,QSex​⟩,0} over all bounded complex-linear QQQ such that QQQ and 1−Q1-Q1−Q are self-adjoint with nonnegative real quadratic forms, and 1−ϵ≤Re⁡∑x′⟨ex,QRex⟩1-\epsilon\le\operatorname{Re}\sum'_x\langle e_x,QR e_x\rangle1−ϵ≤Re∑x′​⟨ex​,QRex​⟩. The output is +∞+\infty+∞ if β=0\beta=0β=0, −∞-\infty−∞ if β=+∞\beta=+\inftyβ=+∞, and otherwise −log⁡(β)/log⁡2-\log(\beta)/\log2−log(β)/log2. An empty feasible set gives β=+∞\beta=+\inftyβ=+∞; the complex diagonal sums are total generalized sums, returning zero when not summable. No countability or restriction on ϵ\epsilonϵ is imposed. The case n=0n=0n=0 is included: I0I^0I0 is a singleton and both empty products equal 111; an empty III itself cannot carry the stipulated states.

QAlgorithms.Papers.Independent.Bridge50.P18.thermalPhotonWeight

For every real SSS and every natural number nnn, including n=0n=0n=0, this defines the real number

wS(n)=1S+1(SS+1)n.w_S(n)=\frac{1}{S+1}\left(\frac{S}{S+1}\right)^n.wS​(n)=S+11​(S+1S​)n.

There is no sign or normalization assumption on SSS. Division is total, with division by zero equal to zero, and a zeroth power equals 111; in particular w−1(n)=0w_{-1}(n)=0w−1​(n)=0 for every nnn, while w0(0)=1w_0(0)=1w0​(0)=1 and w0(n)=0w_0(n)=0w0​(n)=0 for n>0n>0n>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