Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for The Security of Practical Quantum Key Distribution

Definition
QAlgorithms_Papers_Independent_Gap48_P25

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of The Security of Practical Quantum Key Distribution (arXiv:0802.4155) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • PhotonLaw: Normalized photon-number law, IV.A.1, PDF pp.26–27.
  • vacuumLaw: Vacuum law, IV.A.1, PDF p.27.
  • classicalMI: Classical mutual information, I.B.5, PDF p.5.
  • IRRecord: Eve's record: none if untouched, otherwise (basis match, outcome). Actual basis labels are independent public randomness. I.B.5, PDF p.5.
  • irLaw: Sifted joint law of uniform BB84 bits for the specified attack. The wrong-basis outcomes are fair, as in the BB84 Born table. I.B.5, PDF p.5.
  • irError: Error event in the same sifted experiment, I.B.5, PDF p.5.
  • irAE: Alice–Eve marginal, I.B.5, PDF p.5.
  • irBE: Bob–Eve marginal, I.B.5, PDF p.5.
  • sourceReplacementVector: Eq.(4), PDF p.8, on an arbitrary Hilbert signal space. The finite direct sum is canonically the tensor product of the label register with that space. This is a preparation vector, distinct from Dependency50.P32.replacement, which constructs the Choi matrix of a replacement channel.
  • replacementBlock: Actual unnormalized conditional signal operator, Eq.(4), PDF p.8.
  • replacementReduction: Partial trace over the orthonormal label register in the direct-sum model, Eq.(4), PDF p.8. No finite cutoff is placed on the signal space H.
  • lossPattern: Independent photon survival pattern probability, IV.A.1, PDF p.27.
  • survivorLaw: Exactly k survivors in the actual independent experiment, IV.A.1, PDF p.27.
  • thinned: Mixture of the photon-loss experiments, IV.A.1, PDF p.27.
  • signedRate: Signed bookkeeping (25), PDF p.28. This definition alone asserts no security.
  • zeroProxy: Zero-error weak-pulse quadratic proxy, IV.B.4, PDF p.29; not a Poisson law.
  • noDecoyF: F(Q) in (36)–(37), PDF p.29; there is one h(Q) term.
  • noDecoyProxy: Quadratic proxy using 2Q only inside entropy, Eqs.(36)–(37), PDF p.29.
  • noDecoyOptimizer: Optimizer of that quadratic proxy, Eq.(37), PDF p.29.
  • decoyProxy: Proxy replacing exp(-mu) by 1-mu, Eqs.(38)–(39), PDF pp.29–30.
  • decoyOptimizer: Optimizer of the decoy proxy, Eq.(39), PDF p.30.
  • MixedSignal: A countable convex mixture of unit vectors on the full signal Hilbert space, IV.A.1, PDF pp.26–27. Every normalized trace-class state admits such a representation; no orthogonality or finite support is imposed.
  • signalExpectation: Born expectation of an effect in the actual signal mixture, Eq.(32), PDF p.29.
  • decoyComponent: Frequency-weighted component rate from setting-independent conditional states and one receiver effect, Eqs.(27),(32), PDF pp.28–29.
  • decoyWrong: Wrong-detection rate from a subeffect W of the same instrument, Eq.(32), PDF p.29; linear in g_n, not separately in epsilon_n.
  • calibratedPhoton: Calibrated photon rate, Eq.(46), PDF p.31.
  • calibratedDark: Calibrated dark rate, Eq.(47), PDF p.31. The model uses 2p_d exactly.
  • calibratedTotal: Total calibrated detection rate, Eq.(44), PDF p.31.
  • calibratedFraction: Photon fraction in IV.C's notation, distinct from IV.A's fractions, PDF p.31.
  • sargAccepted: Equal Bob-basis branches, with other-basis minus probability 1/2 as required by footnote 58; Eq.(53), PDF p.32.
  • sargWrong: Wrong same-basis branch, Eqs.(53)–(54), PDF p.32.
  • networkCount: Continuous device count with free trusted stations, Eq.(79), PDF p.40.
  • networkCost: Continuous network cost, Eq.(79), PDF p.40.
  • directLaw: Three independent Bernoulli factors: total propagation t and two endpoint detections eta. Appendix B, Eq.(B1), PDF p.46.
  • directRate: Coincidence rate in the noiseless direct-link toy model, Eq.(B1), PDF p.46.
  • geometricRound: Geometric waiting law on positive rounds, footnote 75, PDF p.46.
  • twoLinkWaiting: Maximum of two independent waiting times, computed from their product law. Footnote 75, PDF p.46.
  • waitingMean: Exact footnote-75 mean, PDF p.46; used only for 0<x<=1.
  • modeSuccess: Multimode success per round, footnote 75, PDF p.46.
  • cycleTime: Exact-mean cycle time, Eq.(B2) and footnote 75, PDF p.46.
  • repeaterRate: Mean-cutoff toy rate, Eq.(B2), PDF pp.46–47. Equality at the lifetime cuts the rate to zero; random memory-expiration histories are not modelled.
  • bellLaw: Depolarized Bell measurement: index 0 desired; index 1 has the same key correlations. Appendix B, PDF pp.46–47.
  • bellError: Two wrong Bell outcomes reverse the key correlation, Eq.(B3), PDF p.47.
  • repeaterKey: Assigned signed one-way perfect-EC yield of the mean-cycle toy model, Eq.(B3), PDF p.47.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P08

/-! Statements from arXiv:0802.4155v3. Deferred operational security results are
listed in HARD.md and GAPS.json. Exact model calculations do not assert error
bounds for their physical approximations. Compilation is pending batch handoff. -/

noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P25

open scoped BigOperators ComplexConjugate
open Filter

open QAlgorithms.Papers.Independent.Claimed50.P08 (classicalEntropy)

/-- Normalized photon-number law, IV.A.1, PDF pp.26–27. -/
structure PhotonLaw where
  mass : ℕ → ℝ
  nonnegative : ∀ n, 0 ≤ mass n
  normalized : HasSum mass 1

/-- Vacuum law, IV.A.1, PDF p.27. -/
def vacuumLaw : PhotonLaw where
  mass n := if n = 0 then 1 else 0
  nonnegative n := by split_ifs <;> norm_num
  normalized := by simpa using (hasSum_ite_eq (0 : ℕ) (1 : ℝ))

/-- Classical mutual information, I.B.5, PDF p.5. -/
def classicalMI {X Y : Type} [Fintype X] [Fintype Y] (p : X × Y → ℝ) : ℝ := by
  classical
  exact classicalEntropy (fun x => ∑ y, p (x,y)) +
    classicalEntropy (fun y => ∑ x, p (x,y)) - classicalEntropy p

/-- Eve's record: none if untouched, otherwise (basis match, outcome).
Actual basis labels are independent public randomness. I.B.5, PDF p.5. -/
abbrev IRRecord := Option (Bool × Bool)

/-- Sifted joint law of uniform BB84 bits for the specified attack. The wrong-basis
outcomes are fair, as in the BB84 Born table. I.B.5, PDF p.5. -/
def irLaw (p : ℝ) (a b : Bool) : IRRecord → ℝ
  | none => if a = b then (1-p)/2 else 0
  | some (true,e) => if a = b ∧ a = e then p/4 else 0
  | some (false,_) => p/16

/-- Error event in the same sifted experiment, I.B.5, PDF p.5. -/
def irError (p : ℝ) : ℝ :=
  ∑ a : Bool, ∑ b : Bool, ∑ e : IRRecord, if a ≠ b then irLaw p a b e else 0

/-- Alice–Eve marginal, I.B.5, PDF p.5. -/
def irAE (p : ℝ) (z : Bool × IRRecord) : ℝ := ∑ b : Bool, irLaw p z.1 b z.2

/-- Bob–Eve marginal, I.B.5, PDF p.5. -/
def irBE (p : ℝ) (z : Bool × IRRecord) : ℝ := ∑ a : Bool, irLaw p a z.1 z.2

/-- Eq.(4), PDF p.8, on an arbitrary Hilbert signal space. The finite direct
sum is canonically the tensor product of the label register with that space.
This is a preparation vector, distinct from Dependency50.P32.replacement,
which constructs the Choi matrix of a replacement channel. -/
def sourceReplacementVector {S H : Type*} [Fintype S] [NormedAddCommGroup H] [InnerProductSpace ℂ H]
    (psi : S → H) : PiLp 2 (fun _ : S => H) :=
  WithLp.toLp 2 (fun s => ((Real.sqrt (Fintype.card S : ℝ))⁻¹ : ℂ) • psi s)

/-- Actual unnormalized conditional signal operator, Eq.(4), PDF p.8. -/
def replacementBlock {S H : Type*} [Fintype S] [NormedAddCommGroup H] [InnerProductSpace ℂ H]
    (psi : S → H) (s : S) : H →L[ℂ] H :=
  InnerProductSpace.rankOne ℂ (sourceReplacementVector psi s) (sourceReplacementVector psi s)

/-- Partial trace over the orthonormal label register in the direct-sum model,
Eq.(4), PDF p.8. No finite cutoff is placed on the signal space H. -/
def replacementReduction {S H : Type*} [Fintype S] [NormedAddCommGroup H] [InnerProductSpace ℂ H]
    (psi : S → H) : H →L[ℂ] H := ∑ s, replacementBlock psi s

/-- Independent photon survival pattern probability, IV.A.1, PDF p.27. -/
def lossPattern (n : ℕ) (t : ℝ) (b : Fin n → Bool) : ℝ :=
  ∏ i, if b i then t else 1-t

/-- Exactly k survivors in the actual independent experiment, IV.A.1, PDF p.27. -/
def survivorLaw (n : ℕ) (t : ℝ) (k : ℕ) : ℝ :=
  ∑ b : Fin n → Bool, if (Finset.univ.filter fun i => b i = true).card = k
    then lossPattern n t b else 0

/-- Mixture of the photon-loss experiments, IV.A.1, PDF p.27. -/
def thinned (p : PhotonLaw) (t : ℝ) (k : ℕ) : ℝ := ∑' n, p.mass n * survivorLaw n t k

/-- Signed bookkeeping (25), PDF p.28. This definition alone asserts no security. -/
def signedRate (R leak info : ℝ) : ℝ := R * (1-leak-info)

/-- Zero-error weak-pulse quadratic proxy, IV.B.4, PDF p.29; not a Poisson law. -/
def zeroProxy (s mu : ℝ) : ℝ := mu*s-mu^2/2

/-- F(Q) in (36)–(37), PDF p.29; there is one h(Q) term. -/
def noDecoyF (Q : ℝ) : ℝ := 1-QAlgorithms.binEntropy2 (2*Q)-QAlgorithms.binEntropy2 Q

/-- Quadratic proxy using 2Q only inside entropy, Eqs.(36)–(37), PDF p.29. -/
def noDecoyProxy (nu s Q mu : ℝ) : ℝ :=
  nu * (mu*s*noDecoyF Q-mu^2*(1-QAlgorithms.binEntropy2 (2*Q))/2)

/-- Optimizer of that quadratic proxy, Eq.(37), PDF p.29. -/
def noDecoyOptimizer (s Q : ℝ) : ℝ := s*noDecoyF Q/(1-QAlgorithms.binEntropy2 (2*Q))

/-- Proxy replacing exp(-mu) by 1-mu, Eqs.(38)–(39), PDF pp.29–30. -/
def decoyProxy (nu s Q mu : ℝ) : ℝ :=
  nu*s*mu*((1-mu)*(1-QAlgorithms.binEntropy2 Q)-QAlgorithms.binEntropy2 Q)

/-- Optimizer of the decoy proxy, Eq.(39), PDF p.30. -/
def decoyOptimizer (Q : ℝ) : ℝ := (1-QAlgorithms.binEntropy2 Q/(1-QAlgorithms.binEntropy2 Q))/2

/-- A countable convex mixture of unit vectors on the full signal Hilbert
space, IV.A.1, PDF pp.26–27. Every normalized trace-class state admits such a
representation; no orthogonality or finite support is imposed. -/
structure MixedSignal (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] where
  weights : PhotonLaw
  vector : ℕ → H
  unit : ∀ j, ‖vector j‖ = 1

/-- Born expectation of an effect in the actual signal mixture, Eq.(32), PDF p.29. -/
def signalExpectation {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
    (rho : MixedSignal H) (M : H →L[ℂ] H) : ℝ :=
  ∑' j, rho.weights.mass j * (inner ℂ (rho.vector j) (M (rho.vector j))).re

/-- Frequency-weighted component rate from setting-independent conditional states
and one receiver effect, Eqs.(27),(32), PDF pp.28–29. -/
def decoyComponent {X H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
    (nu : ℝ) (w : X → ℝ) (p : X → PhotonLaw) (rho : ℕ → MixedSignal H)
    (M : H →L[ℂ] H) (xi : X) (n : ℕ) : ℝ :=
  nu*w xi*(p xi).mass n*signalExpectation (rho n) M

/-- Wrong-detection rate from a subeffect W of the same instrument, Eq.(32),
PDF p.29; linear in g_n, not separately in epsilon_n. -/
def decoyWrong {X H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
    (nu : ℝ) (w : X → ℝ) (p : X → PhotonLaw) (rho : ℕ → MixedSignal H)
    (W : H →L[ℂ] H) (xi : X) (n : ℕ) : ℝ :=
  nu*w xi*(p xi).mass n*signalExpectation (rho n) W

/-- Calibrated photon rate, Eq.(46), PDF p.31. -/
def calibratedPhoton (p : PhotonLaw) (nu b : ℝ) (f : ℕ → ℝ) (n : ℕ) : ℝ :=
  nu*p.mass n*f n*b

/-- Calibrated dark rate, Eq.(47), PDF p.31. The model uses 2p_d exactly. -/
def calibratedDark (p : PhotonLaw) (nu b pd : ℝ) (f : ℕ → ℝ) (n : ℕ) : ℝ :=
  nu*p.mass n*(1-f n*b)*(2*pd)

/-- Total calibrated detection rate, Eq.(44), PDF p.31. -/
def calibratedTotal (p : PhotonLaw) (nu b pd : ℝ) (f : ℕ → ℝ) : ℝ :=
  ∑' n, (calibratedPhoton p nu b f n + calibratedDark p nu b pd f n)

/-- Photon fraction in IV.C's notation, distinct from IV.A's fractions, PDF p.31. -/
def calibratedFraction (p : PhotonLaw) (nu b pd : ℝ) (f : ℕ → ℝ) : ℝ :=
  (∑' n, calibratedPhoton p nu b f n)/calibratedTotal p nu b pd f

/-- Equal Bob-basis branches, with other-basis minus probability 1/2 as required
by footnote 58; Eq.(53), PDF p.32. -/
def sargAccepted (nu pa f e : ℝ) : ℝ := nu*pa*f*((1/2)*e+(1/2)*(1/2))

/-- Wrong same-basis branch, Eqs.(53)–(54), PDF p.32. -/
def sargWrong (nu pa f e : ℝ) : ℝ := nu*pa*f*((1/2)*e)

/-- Continuous device count with free trusted stations, Eq.(79), PDF p.40. -/
def networkCount (L target ell rate : ℝ) : ℝ := (L/ell)*(target/rate)

/-- Continuous network cost, Eq.(79), PDF p.40. -/
def networkCost (C L target ell rate : ℝ) : ℝ := C*networkCount L target ell rate

/-- Three independent Bernoulli factors: total propagation t and two endpoint
detections eta. Appendix B, Eq.(B1), PDF p.46. -/
def directLaw (t eta : ℝ) (b : Fin 3 → Bool) : ℝ :=
  (if b 0 then t else 1-t) * (if b 1 then eta else 1-eta) * (if b 2 then eta else 1-eta)

/-- Coincidence rate in the noiseless direct-link toy model, Eq.(B1), PDF p.46. -/
def directRate (nu t eta : ℝ) : ℝ :=
  nu * ∑ b : Fin 3 → Bool, if (∀ i, b i = true) then directLaw t eta b else 0

/-- Geometric waiting law on positive rounds, footnote 75, PDF p.46. -/
def geometricRound (x : ℝ) (n : ℕ) : ℝ := if n = 0 then 0 else x*(1-x)^(n-1)

/-- Maximum of two independent waiting times, computed from their product law.
Footnote 75, PDF p.46. -/
def twoLinkWaiting (x : ℝ) (n : ℕ) : ℝ :=
  ∑ i ∈ Finset.range (n+1), ∑ j ∈ Finset.range (n+1),
    if max i j = n then geometricRound x i*geometricRound x j else 0

/-- Exact footnote-75 mean, PDF p.46; used only for 0<x<=1. -/
def waitingMean (x : ℝ) : ℝ := (3-2*x)/(x*(2-x))

/-- Multimode success per round, footnote 75, PDF p.46. -/
def modeSuccess (t eta : ℝ) (N : ℕ) : ℝ := 1-(1-Real.sqrt t*eta)^N

/-- Exact-mean cycle time, Eq.(B2) and footnote 75, PDF p.46. -/
def cycleTime (ell c t eta : ℝ) (N : ℕ) : ℝ := (ell/c)*waitingMean (modeSuccess t eta N)

/-- Mean-cutoff toy rate, Eq.(B2), PDF pp.46–47. Equality at the lifetime cuts
the rate to zero; random memory-expiration histories are not modelled. -/
def repeaterRate (ell c t eta : ℝ) (N : ℕ) (life pM etaM : ℝ) : ℝ :=
  let tau := cycleTime ell c t eta N
  if tau < life then tau⁻¹*(pM^2*etaM^2/2) else 0

/-- Depolarized Bell measurement: index 0 desired; index 1 has the same key
correlations. Appendix B, PDF pp.46–47. -/
def bellLaw (F : ℝ) (i : Fin 4) : ℝ := if i = 0 then F else (1-F)/3

/-- Two wrong Bell outcomes reverse the key correlation, Eq.(B3), PDF p.47. -/
def bellError (F : ℝ) : ℝ := ∑ i : Fin 4, if i.val ≥ 2 then bellLaw F i else 0

/-- Assigned signed one-way perfect-EC yield of the mean-cycle toy model,
Eq.(B3), PDF p.47. -/
def repeaterKey (R F : ℝ) : ℝ :=
  signedRate R (QAlgorithms.binEntropy2 (bellError F)) (QAlgorithms.binEntropy2 (bellError F))

/-! Sanity examples pin definitions only; source theorem proofs are not attempted. -/

example : vacuumLaw.mass 0 = 1 := by simp [vacuumLaw]

example {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] (u : H) :
    sourceReplacementVector (fun _ : Unit => u) () = u := by simp [sourceReplacementVector]

example {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] (rho : MixedSignal H) :
    signalExpectation rho 0 = 0 := by simp [signalExpectation]

example : lossPattern 0 (1/3) (fun _ => false) = 1 := by simp [lossPattern]

example : zeroProxy 1 1 = (1/2 : ℝ) := by norm_num [zeroProxy]

example : noDecoyF 0 = 1 := by simp [noDecoyF, QAlgorithms.binEntropy2]

example : decoyOptimizer 0 = (1/2 : ℝ) := by simp [decoyOptimizer, QAlgorithms.binEntropy2]

example : sargAccepted 1 1 1 0 = (1/4 : ℝ) := by norm_num [sargAccepted]

example : geometricRound 1 1 = 1 := by norm_num [geometricRound]

example : waitingMean 1 = 1 := by norm_num [waitingMean]

example : modeSuccess 1 1 1 = 1 := by norm_num [modeSuccess]

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

example : repeaterKey 0 1 = 0 := by simp [repeaterKey, signedRate]

end QAlgorithms.Papers.Independent.Gap48.P25
Source
The Security of Practical Quantum Key Distribution, arXiv:0802.4155v3, https://arxiv.org/abs/0802.4155v3
Read-back

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

QAlgorithms.Papers.Independent.Gap48.P25.IRRecord

An interaction record is either an absent value, denoted ∅\varnothing∅, or a present ordered pair of Boolean values, denoted some⁡(c,e)\operatorname{some}(c,e)some(c,e). Thus there are five possible records: ∅\varnothing∅ and the four Boolean pairs.

QAlgorithms.Papers.Independent.Gap48.P25.MixedSignal

For any type HHH equipped with a normed additive commutative group structure and a compatible complex inner product space structure, a mixed signal consists of a photon law, namely real weights pj≥0p_j\ge0pj​≥0 indexed by natural numbers with ∑j=0∞pj=1\sum_{j=0}^{\infty}p_j=1∑j=0∞​pj​=1, together with vectors vj∈Hv_j\in Hvj​∈H satisfying ∥vj∥=1\|v_j\|=1∥vj​∥=1 for every natural number jjj. The unit-norm requirement applies even when pj=0p_j=0pj​=0. No finite-dimensionality or completeness assumption on HHH is included.

QAlgorithms.Papers.Independent.Gap48.P25.PhotonLaw

A photon law consists of a function m:N→Rm:\mathbb N\to\mathbb Rm:N→R, a proof that m(n)≥0m(n)\ge 0m(n)≥0 for every natural number nnn, including 000, and a proof that the series ∑n=0∞m(n)\sum_{n=0}^{\infty}m(n)∑n=0∞​m(n) converges to 111. No finite-support or finite-moment condition is imposed.

QAlgorithms.Papers.Independent.Gap48.P25.bellError

For every real number FFF, the definition sums over i∈{0,1,2,3}i\in\{0,1,2,3\}i∈{0,1,2,3}, contributing 000 when i<2i<2i<2 and contributing the value FFF if i=0i=0i=0, or (1−F)/3(1-F)/3(1−F)/3 otherwise, when i≥2i\ge2i≥2. Thus its defined value is

2(1−F)3.\frac{2(1-F)}{3}.32(1−F)​.

There is no restriction on FFF, and the value is not required to lie in [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Gap48.P25.bellLaw

For every real number FFF and every index i∈{0,1,2,3}i\in\{0,1,2,3\}i∈{0,1,2,3}, the definition assigns FFF when i=0i=0i=0 and (1−F)/3(1-F)/3(1−F)/3 when i≠0i\ne0i=0. No hypothesis restricts FFF to [0,1][0,1][0,1], so nonnegativity of these values is not assumed.

QAlgorithms.Papers.Independent.Gap48.P25.calibratedDark

For a photon law ppp, meaning nonnegative real masses pnp_npn​ summing to 111, arbitrary real numbers ν,b,pd\nu,b,p_dν,b,pd​, an arbitrary function f:N→Rf:\mathbb N\to\mathbb Rf:N→R, and any n∈Nn\in\mathbb Nn∈N, including 000, this defines

ν pn(1−f(n)b)(2pd).\nu\,p_n\bigl(1-f(n)b\bigr)(2p_d).νpn​(1−f(n)b)(2pd​).

No sign or range restrictions are imposed on ν,b,pd\nu,b,p_dν,b,pd​, or fff.

QAlgorithms.Papers.Independent.Gap48.P25.calibratedFraction

For a photon law ppp, consisting of nonnegative real masses pnp_npn​ summing to 111, arbitrary real ν,b,pd\nu,b,p_dν,b,pd​, and an arbitrary function f:N→Rf:\mathbb N\to\mathbb Rf:N→R, this defines

∑n=0∞νpnf(n)b∑n=0∞[νpnf(n)b+νpn(1−f(n)b)(2pd)].\frac{\displaystyle\sum_{n=0}^{\infty}\nu p_n f(n)b} {\displaystyle\sum_{n=0}^{\infty} \left[\nu p_n f(n)b+\nu p_n\bigl(1-f(n)b\bigr)(2p_d)\right]}.n=0∑∞​[νpn​f(n)b+νpn​(1−f(n)b)(2pd​)]n=0∑∞​νpn​f(n)b​.

Each infinite sum is assigned 000 if its own series is not summable. No nonzero-denominator hypothesis or parameter bounds are imposed; division by 000 gives 000, and the result is not required to lie in [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Gap48.P25.calibratedPhoton

For a photon law ppp, meaning nonnegative real masses pnp_npn​ with ∑n=0∞pn=1\sum_{n=0}^{\infty}p_n=1∑n=0∞​pn​=1, arbitrary real numbers ν,b\nu,bν,b, an arbitrary function f:N→Rf:\mathbb N\to\mathbb Rf:N→R, and any n∈Nn\in\mathbb Nn∈N, including 000, this defines the real number

ν pn f(n) b.\nu\,p_n\,f(n)\,b.νpn​f(n)b.

There are no sign or range restrictions on ν,b\nu,bν,b, or fff.

QAlgorithms.Papers.Independent.Gap48.P25.calibratedTotal

For a photon law ppp, consisting of nonnegative real masses pnp_npn​ summing to 111, arbitrary real ν,b,pd\nu,b,p_dν,b,pd​, and an arbitrary function f:N→Rf:\mathbb N\to\mathbb Rf:N→R, this defines

∑n=0∞[νpnf(n)b+νpn(1−f(n)b)(2pd)].\sum_{n=0}^{\infty} \left[\nu p_n f(n)b+\nu p_n\bigl(1-f(n)b\bigr)(2p_d)\right].n=0∑∞​[νpn​f(n)b+νpn​(1−f(n)b)(2pd​)].

No sign, boundedness, or summability condition is assumed for the displayed summands; if this real series is not summable, the defined value is 000.

QAlgorithms.Papers.Independent.Gap48.P25.classicalMI

For any finite types XXX and YYY, either of which may be empty, and any function p:X×Y→Rp:X\times Y\to\mathbb Rp:X×Y→R, this defines

H ⁣(x↦∑y∈Yp(x,y))+H ⁣(y↦∑x∈Xp(x,y))−H(p).H\!\left(x\mapsto\sum_{y\in Y}p(x,y)\right) +H\!\left(y\mapsto\sum_{x\in X}p(x,y)\right)-H(p).H​x↦y∈Y∑​p(x,y)​+H(y↦x∈X∑​p(x,y))−H(p).

Here, for a real-valued function qqq on a finite type, H(q)H(q)H(q) is minus the real part of the trace of the real functional calculus of r↦rlog⁡2rr\mapsto r\log_2 rr↦rlog2​r applied to the complex diagonal matrix with diagonal qqq. Equivalently, H(q)=−∑iq(i)ℓ(q(i))H(q)=-\sum_i q(i)\ell(q(i))H(q)=−∑i​q(i)ℓ(q(i)), where ℓ(r)=log⁡∣r∣/log⁡2\ell(r)=\log|r|/\log 2ℓ(r)=log∣r∣/log2 for r≠0r\ne0r=0 and ℓ(0)=0\ell(0)=0ℓ(0)=0. No nonnegativity or normalization assumption is made on ppp; empty sums are 000.

QAlgorithms.Papers.Independent.Gap48.P25.cycleTime

For arbitrary real numbers ℓ,c,t,η\ell,c,t,\etaℓ,c,t,η and every natural number NNN, put q=1−(1−t η)Nq=1-(1-\sqrt t\,\eta)^Nq=1−(1−t​η)N. The definition assigns

ℓc 3−2qq(2−q).\frac{\ell}{c}\,\frac{3-2q}{q(2-q)}.cℓ​q(2−q)3−2q​.

Real square roots and division are total: t=0\sqrt t=0t​=0 for t≤0t\le0t≤0, and division by zero gives zero. In particular, the defined value is 000 if c=0c=0c=0 or q∈{0,2}q\in\{0,2\}q∈{0,2}, including when N=0N=0N=0. No positivity assumptions are imposed.

QAlgorithms.Papers.Independent.Gap48.P25.decoyComponent

For arbitrary types X,HX,HX,H, with HHH equipped with a normed additive commutative group structure and a compatible complex inner product space structure, take any real ν\nuν, any function w:X→Rw:X\to\mathbb Rw:X→R, any assignment of photon laws ppp to elements of XXX, any sequence of mixed signals ρn\rho_nρn​ in HHH, any continuous complex-linear map M:H→HM:H\to HM:H→H, any ξ∈X\xi\in Xξ∈X, and any natural number nnn. Writing pξ,np_{\xi,n}pξ,n​ for the nnn-th mass of pξp_\xipξ​, and writing ρn\rho_nρn​ as weights qn,j≥0q_{n,j}\ge0qn,j​≥0 summing to 111 and vectors vn,jv_{n,j}vn,j​ of norm 111 for every natural number jjj, this defines

decoyComponent⁡(ν,w,p,ρ,M,ξ,n)=ν w(ξ) pξ,n∑j=0∞qn,j Re⁡⟨vn,j,Mvn,j⟩.\operatorname{decoyComponent}(\nu,w,p,\rho,M,\xi,n) =\nu\,w(\xi)\,p_{\xi,n} \sum_{j=0}^{\infty}q_{n,j}\, \operatorname{Re}\langle v_{n,j},Mv_{n,j}\rangle.decoyComponent(ν,w,p,ρ,M,ξ,n)=νw(ξ)pξ,n​j=0∑∞​qn,j​Re⟨vn,j​,Mvn,j​⟩.

Each photon law pξp_\xipξ​ has nonnegative masses summing to 111; no sign or normalization condition is imposed on www or ν\nuν, and no positivity condition is imposed on MMM.

QAlgorithms.Papers.Independent.Gap48.P25.decoyOptimizer

For every real number QQQ, this defines

decoyOptimizer⁡(Q)=12(1−h(Q)1−h(Q)),h(x)=−xlog⁡x−(1−x)log⁡(1−x)log⁡2.\operatorname{decoyOptimizer}(Q) =\frac12\left(1-\frac{h(Q)}{1-h(Q)}\right), \qquad h(x)=\frac{-x\log x-(1-x)\log(1-x)}{\log2}.decoyOptimizer(Q)=21​(1−1−h(Q)h(Q)​),h(x)=log2−xlogx−(1−x)log(1−x)​.

The logarithm is the total real logarithm, with log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx. Division by zero is defined as zero, so when 1−h(Q)=01-h(Q)=01−h(Q)=0, the result is 1/21/21/2. The declaration makes no optimization assertion.

QAlgorithms.Papers.Independent.Gap48.P25.decoyProxy

For arbitrary real numbers ν,s,Q,μ\nu,s,Q,\muν,s,Q,μ, this defines

decoyProxy⁡(ν,s,Q,μ)=νsμ((1−μ)[1−h(Q)]−h(Q)),h(x)=−xlog⁡x−(1−x)log⁡(1−x)log⁡2.\operatorname{decoyProxy}(\nu,s,Q,\mu) =\nu s\mu\bigl((1-\mu)[1-h(Q)]-h(Q)\bigr), \qquad h(x)=\frac{-x\log x-(1-x)\log(1-x)}{\log2}.decoyProxy(ν,s,Q,μ)=νsμ((1−μ)[1−h(Q)]−h(Q)),h(x)=log2−xlogx−(1−x)log(1−x)​.

The logarithm is the total real logarithm, with log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx. No positivity or range assumptions are imposed on the arguments.

QAlgorithms.Papers.Independent.Gap48.P25.decoyWrong

For arbitrary types XXX and HHH, where HHH is a normed additive commutative group with a complex inner product space structure, real ν\nuν, a function w:X→Rw:X\to\mathbb Rw:X→R, photon laws pξp_\xipξ​ indexed by ξ∈X\xi\in Xξ∈X, mixed signals ρn\rho_nρn​ indexed by n∈Nn\in\mathbb Nn∈N, a continuous complex-linear operator W:H→HW:H\to HW:H→H, ξ∈X\xi\in Xξ∈X, and n∈Nn\in\mathbb Nn∈N, this defines

ν w(ξ) pξ(n)∑j=0∞qn(j) Re⁡⟨vn,j,Wvn,j⟩,\nu\,w(\xi)\,p_\xi(n) \sum_{j=0}^{\infty}q_n(j)\, \operatorname{Re}\langle v_{n,j},Wv_{n,j}\rangle,νw(ξ)pξ​(n)j=0∑∞​qn​(j)Re⟨vn,j​,Wvn,j​⟩,

where pξ(n)p_\xi(n)pξ​(n) is the mass of the photon law pξp_\xipξ​, and ρn\rho_nρn​ consists of a photon law qnq_nqn​ and vectors vn,j∈Hv_{n,j}\in Hvn,j​∈H satisfying ∥vn,j∥=1\|v_{n,j}\|=1∥vn,j​∥=1 for every jjj. Each photon law has nonnegative masses summing to 111. No sign or normalization conditions are imposed on ν\nuν or www, and no positivity condition is imposed on WWW. The sum includes j=0j=0j=0; if its real series is not summable, its defined value is 000.

QAlgorithms.Papers.Independent.Gap48.P25.directLaw

For arbitrary real numbers t,ηt,\etat,η and a Boolean triple b:{0,1,2}→{false,true}b:\{0,1,2\}\to\{\mathrm{false},\mathrm{true}\}b:{0,1,2}→{false,true}, this defines

{tb(0)=true,1−tb(0)=false  ⋅  {ηb(1)=true,1−ηb(1)=false  ⋅  {ηb(2)=true,1−ηb(2)=false.\begin{cases}t&b(0)=\mathrm{true},\\1-t&b(0)=\mathrm{false}\end{cases} \;\cdot\; \begin{cases}\eta&b(1)=\mathrm{true},\\1-\eta&b(1)=\mathrm{false}\end{cases} \;\cdot\; \begin{cases}\eta&b(2)=\mathrm{true},\\1-\eta&b(2)=\mathrm{false}.\end{cases}{t1−t​b(0)=true,b(0)=false​⋅{η1−η​b(1)=true,b(1)=false​⋅{η1−η​b(2)=true,b(2)=false.​

Neither ttt nor η\etaη is required to lie in [0,1][0,1][0,1], so the value is not required to be nonnegative.

QAlgorithms.Papers.Independent.Gap48.P25.directRate

For arbitrary real numbers ν,t,η\nu,t,\etaν,t,η, this defines ν\nuν times the sum over all eight Boolean triples, with a triple contributing 000 unless all three entries are true, and the all-true triple contributing tηηt\eta\etatηη. Thus the defined value is

νtη2.\nu t\eta^2.νtη2.

No sign or range restrictions are imposed on the parameters.

QAlgorithms.Papers.Independent.Gap48.P25.geometricRound

For any real number xxx and any natural number nnn, this defines

{0,n=0,x(1−x)n−1,n≥1.\begin{cases} 0,&n=0,\\ x(1-x)^{n-1},&n\ge1. \end{cases}{0,x(1−x)n−1,​n=0,n≥1.​

The subtraction n−1n-1n−1 is natural-number subtraction, truncated at 000, and the power has a natural-number exponent; in particular, the value at n=1n=1n=1 is xxx, including when x=1x=1x=1. There is no assumption that x∈[0,1]x\in[0,1]x∈[0,1].

QAlgorithms.Papers.Independent.Gap48.P25.irAE

For every real number ppp and pair (a,r)(a,r)(a,r) consisting of a Boolean value and a record, this defines the sum over both Boolean values bbb of the record weight: the absent-record weight is (1−p)/2(1-p)/2(1−p)/2 when a=ba=ba=b and 000 otherwise; the weight for some⁡(true,e)\operatorname{some}(\mathrm{true},e)some(true,e) is p/4p/4p/4 when a=b=ea=b=ea=b=e and 000 otherwise; and the weight for some⁡(false,e)\operatorname{some}(\mathrm{false},e)some(false,e) is always p/16p/16p/16. Thus its value is

{(1−p)/2,r=∅,p/4,r=some⁡(true,e) and a=e,0,r=some⁡(true,e) and a≠e,p/8,r=some⁡(false,e).\begin{cases} (1-p)/2,&r=\varnothing,\\ p/4,&r=\operatorname{some}(\mathrm{true},e)\text{ and }a=e,\\ 0,&r=\operatorname{some}(\mathrm{true},e)\text{ and }a\ne e,\\ p/8,&r=\operatorname{some}(\mathrm{false},e). \end{cases}⎩⎨⎧​(1−p)/2,p/4,0,p/8,​r=∅,r=some(true,e) and a=e,r=some(true,e) and a=e,r=some(false,e).​

No restriction is imposed on ppp.

QAlgorithms.Papers.Independent.Gap48.P25.irBE

For every real number ppp and pair (b,r)(b,r)(b,r) consisting of a Boolean value and a record, this defines the sum over both Boolean values aaa of the record weight: the absent-record weight is (1−p)/2(1-p)/2(1−p)/2 when a=ba=ba=b and 000 otherwise; the weight for some⁡(true,e)\operatorname{some}(\mathrm{true},e)some(true,e) is p/4p/4p/4 when a=b=ea=b=ea=b=e and 000 otherwise; and the weight for some⁡(false,e)\operatorname{some}(\mathrm{false},e)some(false,e) is always p/16p/16p/16. Thus its value is

{(1−p)/2,r=∅,p/4,r=some⁡(true,e) and b=e,0,r=some⁡(true,e) and b≠e,p/8,r=some⁡(false,e).\begin{cases} (1-p)/2,&r=\varnothing,\\ p/4,&r=\operatorname{some}(\mathrm{true},e)\text{ and }b=e,\\ 0,&r=\operatorname{some}(\mathrm{true},e)\text{ and }b\ne e,\\ p/8,&r=\operatorname{some}(\mathrm{false},e). \end{cases}⎩⎨⎧​(1−p)/2,p/4,0,p/8,​r=∅,r=some(true,e) and b=e,r=some(true,e) and b=e,r=some(false,e).​

No restriction is imposed on ppp.

QAlgorithms.Papers.Independent.Gap48.P25.irError

For every real number ppp, this defines the sum over Boolean values a,ba,ba,b and all five records of the record weight when a≠ba\ne ba=b, with contribution 000 when a=ba=ba=b. The absent-record weight is (1−p)/2(1-p)/2(1−p)/2 only when a=ba=ba=b, the record some⁡(true,e)\operatorname{some}(\mathrm{true},e)some(true,e) has weight p/4p/4p/4 only when a=b=ea=b=ea=b=e, and each record some⁡(false,e)\operatorname{some}(\mathrm{false},e)some(false,e) has weight p/16p/16p/16 for all a,ba,ba,b. Consequently, the defined sum equals p/4p/4p/4. No restriction is imposed on ppp.

QAlgorithms.Papers.Independent.Gap48.P25.irLaw

For every real number ppp and Boolean values a,ba,ba,b, this defines a real-valued function of a record by

Lp(a,b,r)={(1−p)/2,r=∅ and a=b,0,r=∅ and a≠b,p/4,r=some⁡(true,e) and a=b=e,0,r=some⁡(true,e) and a=b=e fails,p/16,r=some⁡(false,e).L_p(a,b,r)= \begin{cases} (1-p)/2,&r=\varnothing\text{ and }a=b,\\ 0,&r=\varnothing\text{ and }a\ne b,\\ p/4,&r=\operatorname{some}(\mathrm{true},e)\text{ and }a=b=e,\\ 0,&r=\operatorname{some}(\mathrm{true},e)\text{ and }a=b=e\text{ fails},\\ p/16,&r=\operatorname{some}(\mathrm{false},e). \end{cases}Lp​(a,b,r)=⎩⎨⎧​(1−p)/2,0,p/4,0,p/16,​r=∅ and a=b,r=∅ and a=b,r=some(true,e) and a=b=e,r=some(true,e) and a=b=e fails,r=some(false,e).​

The final case is independent of a,b,ea,b,ea,b,e. There is no restriction 0≤p≤10\le p\le10≤p≤1, so the function is not required to be nonnegative.

QAlgorithms.Papers.Independent.Gap48.P25.lossPattern

For every natural number nnn, every real number ttt, and every Boolean assignment b:{0,…,n−1}→{false,true}b:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}b:{0,…,n−1}→{false,true}, this defines

∏i=0n−1{t,b(i)=true,1−t,b(i)=false.\prod_{i=0}^{n-1} \begin{cases} t,&b(i)=\mathrm{true},\\ 1-t,&b(i)=\mathrm{false}. \end{cases}i=0∏n−1​{t,1−t,​b(i)=true,b(i)=false.​

No restriction 0≤t≤10\le t\le10≤t≤1 is imposed. When n=0n=0n=0, the Boolean assignment is the unique empty assignment and the empty product is 111.

QAlgorithms.Papers.Independent.Gap48.P25.modeSuccess

For arbitrary real numbers t,ηt,\etat,η and every natural number NNN, the definition assigns

1−(1−t η)N.1-(1-\sqrt t\,\eta)^N.1−(1−t​η)N.

Here the real square root is 000 for t≤0t\le0t≤0, and natural powers include the convention a0=1a^0=1a0=1 for every real aaa. Consequently, the value is 000 when N=0N=0N=0 or t≤0t\le0t≤0. There are no hypotheses ensuring that the value lies in [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Gap48.P25.networkCost

For arbitrary real numbers C,L,target,ℓ,rateC,L,\mathrm{target},\ell,\mathrm{rate}C,L,target,ℓ,rate, this defines

C Lℓ targetrate.C\,\frac{L}{\ell}\,\frac{\mathrm{target}}{\mathrm{rate}}.CℓL​ratetarget​.

No positivity or nonzero-denominator assumptions are imposed, and no integer rounding is performed. Division by 000 gives 000, so the result is 000 if either ℓ=0\ell=0ℓ=0 or rate=0\mathrm{rate}=0rate=0.

QAlgorithms.Papers.Independent.Gap48.P25.networkCount

For arbitrary real numbers L,target,ℓ,rateL,\mathrm{target},\ell,\mathrm{rate}L,target,ℓ,rate, this defines the real number

Lℓ targetrate.\frac{L}{\ell}\,\frac{\mathrm{target}}{\mathrm{rate}}.ℓL​ratetarget​.

No positivity or nonzero-denominator assumptions are imposed, and no integer rounding is performed. Division by 000 is defined as 000, so the result is 000 if either ℓ=0\ell=0ℓ=0 or rate=0\mathrm{rate}=0rate=0.

QAlgorithms.Papers.Independent.Gap48.P25.noDecoyF

For every real number QQQ, this defines

noDecoyF⁡(Q)=1−h(2Q)−h(Q),h(x)=−xlog⁡x−(1−x)log⁡(1−x)log⁡2.\operatorname{noDecoyF}(Q)=1-h(2Q)-h(Q), \qquad h(x)=\frac{-x\log x-(1-x)\log(1-x)}{\log 2}.noDecoyF(Q)=1−h(2Q)−h(Q),h(x)=log2−xlogx−(1−x)log(1−x)​.

Here log⁡\loglog is the total real logarithm, with log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx. Thus the definition includes every real QQQ, including values for which QQQ or 2Q2Q2Q lies outside [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Gap48.P25.noDecoyOptimizer

For arbitrary real numbers s,Qs,Qs,Q, this defines the scalar

noDecoyOptimizer⁡(s,Q)=s[1−h(2Q)−h(Q)]1−h(2Q),h(x)=−xlog⁡x−(1−x)log⁡(1−x)log⁡2.\operatorname{noDecoyOptimizer}(s,Q) =\frac{s[1-h(2Q)-h(Q)]}{1-h(2Q)}, \qquad h(x)=\frac{-x\log x-(1-x)\log(1-x)}{\log2}.noDecoyOptimizer(s,Q)=1−h(2Q)s[1−h(2Q)−h(Q)]​,h(x)=log2−xlogx−(1−x)log(1−x)​.

The logarithm is the total real logarithm, with log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx. Division is total: if 1−h(2Q)=01-h(2Q)=01−h(2Q)=0, the defined value is zero. The declaration makes no assertion that this scalar optimizes another expression.

QAlgorithms.Papers.Independent.Gap48.P25.noDecoyProxy

For arbitrary real numbers ν,s,Q,μ\nu,s,Q,\muν,s,Q,μ, this defines

noDecoyProxy⁡(ν,s,Q,μ)=ν(μs[1−h(2Q)−h(Q)]−μ2[1−h(2Q)]2),h(x)=−xlog⁡x−(1−x)log⁡(1−x)log⁡2.\operatorname{noDecoyProxy}(\nu,s,Q,\mu) =\nu\left( \mu s[1-h(2Q)-h(Q)] -\frac{\mu^2[1-h(2Q)]}{2} \right), \qquad h(x)=\frac{-x\log x-(1-x)\log(1-x)}{\log2}.noDecoyProxy(ν,s,Q,μ)=ν(μs[1−h(2Q)−h(Q)]−2μ2[1−h(2Q)]​),h(x)=log2−xlogx−(1−x)log(1−x)​.

The logarithm is the total real logarithm, with log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx. None of the four arguments has a sign or range restriction.

QAlgorithms.Papers.Independent.Gap48.P25.repeaterKey

For arbitrary real numbers R,FR,FR,F, let b=2(1−F)/3b=2(1-F)/3b=2(1−F)/3 and let h2(u)=binEntropy⁡(u)/log⁡2h_2(u)=\operatorname{binEntropy}(u)/\log 2h2​(u)=binEntropy(u)/log2, where binEntropy⁡\operatorname{binEntropy}binEntropy is the real binary entropy function. The definition assigns

R(1−h2(b)−h2(b))=R(1−2h2(b)).R\bigl(1-h_2(b)-h_2(b)\bigr)=R\bigl(1-2h_2(b)\bigr).R(1−h2​(b)−h2​(b))=R(1−2h2​(b)).

Neither RRR nor FFF is restricted, so bbb need not belong to [0,1][0,1][0,1]; the total real entropy function is still evaluated there. The resulting value is not truncated at zero.

QAlgorithms.Papers.Independent.Gap48.P25.repeaterRate

For arbitrary real numbers ℓ,c,t,η,life,pM,ηM\ell,c,t,\eta,\mathrm{life},p_M,\eta_Mℓ,c,t,η,life,pM​,ηM​ and every natural number NNN, set

q=1−(1−t η)N,τ=ℓc3−2qq(2−q).q=1-(1-\sqrt t\,\eta)^N,\qquad \tau=\frac{\ell}{c}\frac{3-2q}{q(2-q)}.q=1−(1−t​η)N,τ=cℓ​q(2−q)3−2q​.

The definition assigns τ−1pM2ηM2/2\tau^{-1}p_M^2\eta_M^2/2τ−1pM2​ηM2​/2 when τ<life\tau<\mathrm{life}τ<life, and assigns 000 otherwise, including when τ=life\tau=\mathrm{life}τ=life. All divisions and inverses are total, with 0−1=00^{-1}=00−1=0, and t=0\sqrt t=0t​=0 for t≤0t\le0t≤0; thus τ=0\tau=0τ=0 gives a defined rate of 000 regardless of which branch applies. None of the real parameters is restricted in sign or magnitude.

QAlgorithms.Papers.Independent.Gap48.P25.replacementBlock

For any finite type SSS, any normed additive commutative group HHH equipped with a complex inner product space structure, any family ψ:S→H\psi:S\to Hψ:S→H, and any s∈Ss\in Ss∈S, this defines the continuous complex-linear operator

h⟼⟨vs,h⟩ vs,vs=1∣S∣ ψ(s),h\longmapsto \langle v_s,h\rangle\,v_s, \qquad v_s=\frac{1}{\sqrt{|S|}}\,\psi(s),h⟼⟨vs​,h⟩vs​,vs​=∣S∣​1​ψ(s),

with the inner product conjugate-linear in its first argument. No normalization of ψ(s)\psi(s)ψ(s), completeness of HHH, or finite dimensionality of HHH is assumed. The supplied element sss ensures that SSS is nonempty; if ψ(s)=0\psi(s)=0ψ(s)=0, the operator is zero.

QAlgorithms.Papers.Independent.Gap48.P25.replacementReduction

For any finite type SSS, any normed additive commutative group HHH equipped with a complex inner product space structure, and any family ψ:S→H\psi:S\to Hψ:S→H, this defines the continuous complex-linear operator

h⟼∑s∈S⟨vs,h⟩ vs,vs=1∣S∣ ψ(s),h\longmapsto\sum_{s\in S}\langle v_s,h\rangle\,v_s, \qquad v_s=\frac{1}{\sqrt{|S|}}\,\psi(s),h⟼s∈S∑​⟨vs​,h⟩vs​,vs​=∣S∣​1​ψ(s),

with the inner product conjugate-linear in its first argument. No normalization of the family, completeness of HHH, or finite dimensionality of HHH is assumed. If SSS is empty, the sum is the zero operator.

QAlgorithms.Papers.Independent.Gap48.P25.sargAccepted

For arbitrary real numbers ν,pa,f,e\nu,p_a,f,eν,pa​,f,e, this defines

νpaf(e2+14).\nu p_a f\left(\frac e2+\frac14\right).νpa​f(2e​+41​).

No sign or range restrictions are imposed on any parameter.

QAlgorithms.Papers.Independent.Gap48.P25.sargWrong

For arbitrary real numbers ν,pa,f,e\nu,p_a,f,eν,pa​,f,e, this defines

νpaf e2.\nu p_a f\,\frac e2.νpa​f2e​.

No sign or range restrictions are imposed on any parameter.

QAlgorithms.Papers.Independent.Gap48.P25.signalExpectation

For any normed additive commutative group HHH with a compatible complex inner product space structure, any mixed signal ρ\rhoρ consisting of weights pj≥0p_j\ge0pj​≥0 summing to 111 and vectors vj∈Hv_j\in Hvj​∈H with ∥vj∥=1\|v_j\|=1∥vj​∥=1 for every natural number jjj, and any continuous complex-linear map M:H→HM:H\to HM:H→H, this defines

signalExpectation⁡(ρ,M)=∑j=0∞pj Re⁡⟨vj,Mvj⟩.\operatorname{signalExpectation}(\rho,M) =\sum_{j=0}^{\infty}p_j\,\operatorname{Re}\langle v_j,Mv_j\rangle.signalExpectation(ρ,M)=j=0∑∞​pj​Re⟨vj​,Mvj​⟩.

There is no assumption that MMM is self-adjoint, positive, or bounded between zero and the identity.

QAlgorithms.Papers.Independent.Gap48.P25.signedRate

For arbitrary real numbers R,leak,infoR,\mathrm{leak},\mathrm{info}R,leak,info, this defines

signedRate⁡(R,leak,info)=R(1−leak−info).\operatorname{signedRate}(R,\mathrm{leak},\mathrm{info}) =R(1-\mathrm{leak}-\mathrm{info}).signedRate(R,leak,info)=R(1−leak−info).

No sign or range restrictions are imposed on the arguments, and the result may be negative.

QAlgorithms.Papers.Independent.Gap48.P25.sourceReplacementVector

For any finite type SSS, any normed additive commutative group HHH equipped with a complex inner product space structure, and any family ψ:S→H\psi:S\to Hψ:S→H, this defines the element of the ℓ2\ell^2ℓ2 direct sum of copies of HHH indexed by SSS whose component at sss is

vs=1∣S∣ ψ(s),v_s=\frac{1}{\sqrt{|S|}}\,\psi(s),vs​=∣S∣​1​ψ(s),

where the real coefficient is regarded as complex. The vectors ψ(s)\psi(s)ψ(s) need not be normalized, and HHH need not be complete or finite dimensional. If SSS is empty, the reciprocal of 0\sqrt00​ is defined to be 000, and the result is the unique empty family.

QAlgorithms.Papers.Independent.Gap48.P25.survivorLaw

For every pair of natural numbers n,kn,kn,k and every real number ttt, this defines

survivorLaw⁡(n,t,k)=∑b:{0,…,n−1}→{false,true}∣{i:bi=true}∣=k∏i=0n−1{t,bi=true,1−t,bi=false.\operatorname{survivorLaw}(n,t,k) =\sum_{\substack{b:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}\\ |\{i:b_i=\mathrm{true}\}|=k}} \prod_{i=0}^{n-1} \begin{cases} t,&b_i=\mathrm{true},\\ 1-t,&b_i=\mathrm{false}. \end{cases}survivorLaw(n,t,k)=b:{0,…,n−1}→{false,true}∣{i:bi​=true}∣=k​∑​i=0∏n−1​{t,1−t,​bi​=true,bi​=false.​

There is no restriction on ttt, so the summands need not be nonnegative. When k>nk>nk>n, the sum is zero. When n=0n=0n=0, the empty product gives value 111 for k=0k=0k=0, and value 000 for k>0k>0k>0.

QAlgorithms.Papers.Independent.Gap48.P25.thinned

For any photon law ppp, meaning a sequence of real numbers pn≥0p_n\ge0pn​≥0 whose series sums to 111, any real ttt, and any natural number kkk, this defines

thinned⁡(p,t,k)=∑n=0∞pn∑b:{0,…,n−1}→{false,true}∣{i:bi=true}∣=k∏i=0n−1{t,bi=true,1−t,bi=false.\operatorname{thinned}(p,t,k) =\sum_{n=0}^{\infty}p_n \sum_{\substack{b:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}\\ |\{i:b_i=\mathrm{true}\}|=k}} \prod_{i=0}^{n-1} \begin{cases} t,&b_i=\mathrm{true},\\ 1-t,&b_i=\mathrm{false}. \end{cases}thinned(p,t,k)=n=0∑∞​pn​b:{0,…,n−1}→{false,true}∣{i:bi​=true}∣=k​∑​i=0∏n−1​{t,1−t,​bi​=true,bi​=false.​

The parameter ttt is unrestricted. The inner sum is zero when k>nk>nk>n, and its n=0n=0n=0 value is 111 precisely when k=0k=0k=0. The infinite sum uses the total real-series convention: its value is zero if the summands are not summable.

QAlgorithms.Papers.Independent.Gap48.P25.twoLinkWaiting

For every real number xxx and natural number nnn, define gx(0)=0g_x(0)=0gx​(0)=0 and gx(k)=x(1−x)k−1g_x(k)=x(1-x)^{k-1}gx​(k)=x(1−x)k−1 for k≥1k\ge1k≥1. Then the definition assigns the real value

∑i=0n∑j=0n{gx(i)gx(j),max⁡(i,j)=n,0,max⁡(i,j)≠n.\sum_{i=0}^{n}\sum_{j=0}^{n} \begin{cases} g_x(i)g_x(j),&\max(i,j)=n,\\ 0,&\max(i,j)\ne n. \end{cases}i=0∑n​j=0∑n​{gx​(i)gx​(j),0,​max(i,j)=n,max(i,j)=n.​

In particular, its value at n=0n=0n=0 is 000. There is no hypothesis restricting xxx to [0,1][0,1][0,1], and no assertion that these values form a probability distribution.

QAlgorithms.Papers.Independent.Gap48.P25.vacuumLaw

The vacuum law is the photon law with mass m(0)=1m(0)=1m(0)=1 and m(n)=0m(n)=0m(n)=0 for every n≠0n\ne 0n=0, together with proofs that these masses are nonnegative and their series sums to 111.

QAlgorithms.Papers.Independent.Gap48.P25.waitingMean

For every real number xxx, the definition assigns the real value

3−2xx(2−x).\frac{3-2x}{x(2-x)}.x(2−x)3−2x​.

No restriction on xxx is imposed. Division is total, with division by zero equal to zero, so the defined value is 000 at both x=0x=0x=0 and x=2x=2x=2.

QAlgorithms.Papers.Independent.Gap48.P25.zeroProxy

For arbitrary real numbers s,μs,\mus,μ, this defines

zeroProxy⁡(s,μ)=μs−μ22.\operatorname{zeroProxy}(s,\mu)=\mu s-\frac{\mu^2}{2}.zeroProxy(s,μ)=μs−2μ2​.

There are no positivity or range assumptions on either argument.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 21, 2026

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

  • Endorsed by Gohan · Nov 1, 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