Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Quantum bit commitment under Gaussian constraints

Definition
QAlgorithms_Papers_Independent_Advance50_P33

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

prove2quantum

The objects the formalized statements of Quantum bit commitment under Gaussian constraints (arXiv:1105.2140) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • branchSign: PDF pp.2--3, Eqs.(3)--(5): the relative coherent-branch sign.
  • fockTensorPair: PDF p.2: tensor product in the complete two-mode number basis. The orthogonal Hilbert series converges for every pair of l2 vectors.
  • cat: PDF p.3, Eq.(4): normalized odd/even cat. The odd branch requires A≠0.
  • commitmentEncoding: PDF p.2, Eq.(3): the token--proof encoding; the odd branch requires a≠0.
  • IsBalanced: PDF p.3: a balanced lossless beam splitter with phases fixed so that (z,w)↦((z-w)/sqrt(2),(z+w)/sqrt(2)). This is a device definition on all coherent products, not a promise about a particular cat or attack.
  • balancedInterferometer: PDF p.3: the fixed physical interferometer, chosen by its action on ALL coherent products. The identity fallback is excluded by the IsBalanced conclusion in each interferometric theorem. This definition never refers to a committed bit.
  • firstParity: PDF p.3, Eq.(5): mean parity of the first output; the other is discarded. All uses have norm-one vectors, so the real series is absolutely summable.
  • oppositeProbability: PDF p.3: probability of the opposite-bit parity outcome at unveiling. For b=0 this is even parity; for b=1 it is odd parity.
  • attackedChi: PDF pp.3--4: apply a fixed bounded operation only to the proof of Eq.(3). This finite branch expression is exactly (I tensor U)chi, with no token action.
  • vacuumReflection: PDF p.3, Eq.(6): bounded vacuum reflection exp(ipi|0><0|).
  • nonGaussianFlip: PDF p.3, Eq.(6): D(-a)(I-2|0><0|)D(a); no unbounded exponential.
  • pShift: PDF pp.4--6: D(i*t/sqrt(2)) shifts the physical p quadrature by t, with hbar=1. Thus the proof shift sqrt(2)d is D(id).
  • displacedOutput: PDF pp.5--6: cat shift -d and vacuum shift +d at Bob's two outputs.
  • photonParityMean: PDF p.5: single-mode mean photon parity, on normalized states.
  • catOppositeProbability: PDF p.5: opposite-bit acceptance in the displayed p-displacement family.
  • displacementControl: PDF pp.5--6: direction-specific control is one HALF of changing-bit success. This denotes the specified displacement, without claiming global optimality.
  • arbitraryDisplacementControl: PDF p.5: direction-specific half-success for an ARBITRARY complex cat-mode displacement. This supplies the full displacement-only optimization domain; displacementControl parameterizes its momentum-axis maximizer.
  • oddParityFormula: PDF p.5, Eqs.(9)--(10): pi*W_odd(0,d), for positive real cat amplitude A.
  • stationaryDisplacement: PDF p.5, Eq.(10), CORRECTED: printed sqrt(2)alphasin(...) is changed to sqrt(2)alpha_primesin(...), as differentiating the same cat Wigner function requires. Here A denotes alpha_prime, throughout this equation.
  • vacuumJointProbability: PDF p.6: the vacuum event in the second output, jointly with opposite parity.
  • vacuumProbability: PDF p.6: probability of vacuum in output two, with output one ignored.
  • tokenReducedMatrix: PDF p.6, Eq.(13): actual partial-trace coefficients of Eq.(3), proof discarded. Every scalar environment sum is guarded by Summable in the result.
  • tokenState: PDF p.6: bounded realization of the CONSTRUCTED token partial trace. The results conclude IsDensity and HasFockMatrix, excluding a zero fallback.
  • tokenDifference: PDF pp.6--7: H is rho_0-rho_1, fixing the sign in Eq.(14).
  • tokenEigenvalue: PDF p.7, Eqs.(14)--(16): positive magnitude of the two nonzero eigenvalues.
  • bobGain: PDF p.7, Eq.(16): G_max=D/2=||H||_1/4, an advantage, not success probability.
  • IsOscillatorEffect: PDF pp.6--7: arbitrary binary POVM effect on the ENTIRE oscillator space. Self-adjointness plus quadratic forms gives 0<=E<=I. Outcome E guesses bit 1.
  • tokenGuessProbability: PDF pp.6--7: equal-prior guessing probability for the binary POVM (I-E,E). The theorem supplies trace-product summability for EVERY effect.
  • catPhotonMean: PDF p.8: mean photon number on the full oscillator number distribution. Finiteness/Summable is a conclusion, rather than a hidden default for divergent tsum.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P39

/-!
Mandilara and Cerf, arXiv:1105.2140v2, PDF pp.2--8.
The accepted countable Fock space, coherent vectors, Weyl displacements and
nuclear trace norm are reused without a photon cutoff. New objects are local
to this paper. `false` encodes b=0 (odd); `true` encodes b=1 (even).
Token is the first factor; proof is the second. The balanced interferometer is
fixed on all coherent products, independently of the committed bit and amplitude.
The false global Gaussian-optimality/security assertions are deferred in HARD.md.
Eq.(10)'s unprimed sine coefficient and Eq.(14)'s eigenvalue labels are corrected
explicitly below; their printed forms remain in items.json and HARD.md.
The accepted homonyms pair, chi, balanced, parity, tokenMatrix, IsEffect and
guessProbability have incompatible types or conventions; the distinct local names
below are justified declaration by declaration in ASSESSMENT.json. No equivalent
frozen definition is redeclared. Compilation is pending the mechanical batch handoff.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P33

open Filter
open scoped BigOperators Topology
open QAlgorithms.Papers.Independent.Dependency50.P39
  (Fock FockOperator BipartiteFock fockKet bipartiteKet coherentKet
   coherentCoefficient CoherentRealized displacement displacementMatrix
   DisplacementRealized HasFockMatrix operatorOfMatrix IsDensity IsTraceClass
   nuclearTraceNorm fockTrace)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.2--3, Eqs.(3)--(5): the relative coherent-branch sign. -/
def branchSign (b : Bool) : ℝ := if b then 1 else -1

/-- PDF p.2: tensor product in the complete two-mode number basis. The
orthogonal Hilbert series converges for every pair of l2 vectors. -/
def fockTensorPair (u v : Fock) : BipartiteFock :=
  ∑' p : ℕ × ℕ, (u p.1 * v p.2) • bipartiteKet p

/-- PDF p.3, Eq.(4): normalized odd/even cat. The odd branch requires A≠0. -/
def cat (A : ℂ) (b : Bool) : Fock :=
  ((Real.sqrt (2 * (1 + branchSign b * Real.exp (-2 * Complex.normSq A))))⁻¹ : ℂ) •
    (coherentKet A + (branchSign b : ℂ) • coherentKet (-A))

/-- PDF p.2, Eq.(3): the token--proof encoding; the odd branch requires a≠0. -/
def commitmentEncoding (a : ℂ) (b : Bool) : BipartiteFock :=
  ((Real.sqrt (2 * (1 + branchSign b * Real.exp (-4 * Complex.normSq a))))⁻¹ : ℂ) •
    (fockTensorPair (coherentKet a) (coherentKet (-a)) +
      (branchSign b : ℂ) • fockTensorPair (coherentKet (-a)) (coherentKet a))

/-- PDF p.3: a balanced lossless beam splitter with phases fixed so that
(z,w)↦((z-w)/sqrt(2),(z+w)/sqrt(2)). This is a device definition on all
coherent products, not a promise about a particular cat or attack. -/
def IsBalanced (B : BipartiteFock ≃ₗᵢ[ℂ] BipartiteFock) : Prop :=
  ∀ z w : ℂ, B (fockTensorPair (coherentKet z) (coherentKet w)) =
    fockTensorPair (coherentKet ((z - w) / (Real.sqrt 2 : ℂ)))
      (coherentKet ((z + w) / (Real.sqrt 2 : ℂ)))

/-- PDF p.3: the fixed physical interferometer, chosen by its action on ALL
coherent products. The identity fallback is excluded by the IsBalanced conclusion
in each interferometric theorem. This definition never refers to a committed bit. -/
def balancedInterferometer : BipartiteFock ≃ₗᵢ[ℂ] BipartiteFock :=
  if h : ∃ B : BipartiteFock ≃ₗᵢ[ℂ] BipartiteFock, IsBalanced B then
    Classical.choose h else LinearIsometryEquiv.refl ℂ BipartiteFock

/-- PDF p.3, Eq.(5): mean parity of the first output; the other is discarded.
All uses have norm-one vectors, so the real series is absolutely summable. -/
def firstParity (psi : BipartiteFock) : ℝ :=
  ∑' p : ℕ × ℕ, (-1 : ℝ) ^ p.1 * ‖psi p‖ ^ 2

/-- PDF p.3: probability of the opposite-bit parity outcome at unveiling.
For b=0 this is even parity; for b=1 it is odd parity. -/
def oppositeProbability (b : Bool) (psi : BipartiteFock) : ℝ :=
  ∑' p : ℕ × ℕ, if (if b then Odd p.1 else Even p.1) then ‖psi p‖ ^ 2 else 0

/-- PDF pp.3--4: apply a fixed bounded operation only to the proof of Eq.(3).
This finite branch expression is exactly (I tensor U)chi, with no token action. -/
def attackedChi (a : ℂ) (b : Bool) (U : FockOperator) : BipartiteFock :=
  ((Real.sqrt (2 * (1 + branchSign b * Real.exp (-4 * Complex.normSq a))))⁻¹ : ℂ) •
    (fockTensorPair (coherentKet a) (U (coherentKet (-a))) +
      (branchSign b : ℂ) • fockTensorPair (coherentKet (-a)) (U (coherentKet a)))

/-- PDF p.3, Eq.(6): bounded vacuum reflection exp(i*pi*|0><0|). -/
def vacuumReflection : FockOperator :=
  1 - (2 : ℂ) • InnerProductSpace.rankOne ℂ (fockKet 0) (fockKet 0)

/-- PDF p.3, Eq.(6): D(-a)(I-2|0><0|)D(a); no unbounded exponential. -/
def nonGaussianFlip (a : ℂ) : FockOperator :=
  (displacement (-a)).comp (vacuumReflection.comp (displacement a))

/-- PDF pp.4--6: D(i*t/sqrt(2)) shifts the physical p quadrature by t,
with hbar=1. Thus the proof shift sqrt(2)*d is D(i*d). -/
def pShift (t : ℝ) : FockOperator :=
  displacement (Complex.I * (t / Real.sqrt 2 : ℝ))

/-- PDF pp.5--6: cat shift -d and vacuum shift +d at Bob's two outputs. -/
def displacedOutput (A : ℂ) (b : Bool) (d : ℝ) : BipartiteFock :=
  fockTensorPair (pShift (-d) (cat A b)) (coherentKet (Complex.I * (d / Real.sqrt 2 : ℝ)))

/-- PDF p.5: single-mode mean photon parity, on normalized states. -/
def photonParityMean (psi : Fock) : ℝ := ∑' n : ℕ, (-1 : ℝ) ^ n * ‖psi n‖ ^ 2

/-- PDF p.5: opposite-bit acceptance in the displayed p-displacement family. -/
def catOppositeProbability (A : ℂ) (b : Bool) (d : ℝ) : ℝ :=
  ∑' n : ℕ, if (if b then Odd n else Even n) then ‖pShift (-d) (cat A b) n‖ ^ 2 else 0

/-- PDF pp.5--6: direction-specific control is one HALF of changing-bit success.
This denotes the specified displacement, without claiming global optimality. -/
def displacementControl (A : ℂ) (b : Bool) (d : ℝ) : ℝ :=
  catOppositeProbability A b d / 2

/-- PDF p.5: direction-specific half-success for an ARBITRARY complex
cat-mode displacement. This supplies the full displacement-only optimization
domain; displacementControl parameterizes its momentum-axis maximizer. -/
def arbitraryDisplacementControl (A : ℂ) (b : Bool) (z : ℂ) : ℝ :=
  (∑' n : ℕ, if (if b then Odd n else Even n) then
    ‖displacement z (cat A b) n‖ ^ 2 else 0) / 2

/-- PDF p.5, Eqs.(9)--(10): pi*W_odd(0,d), for positive real cat amplitude A. -/
def oddParityFormula (A d : ℝ) : ℝ :=
  Real.exp (-d ^ 2) * (Real.exp (-2 * A ^ 2) - Real.cos (2 * Real.sqrt 2 * d * A)) /
    (1 - Real.exp (-2 * A ^ 2))

/-- PDF p.5, Eq.(10), CORRECTED: printed sqrt(2)*alpha*sin(...) is changed
to sqrt(2)*alpha_prime*sin(...), as differentiating the same cat Wigner
function requires. Here A denotes alpha_prime, throughout this equation. -/
def stationaryDisplacement (A d : ℝ) : Prop :=
  d * Real.cos (2 * Real.sqrt 2 * d * A) +
    Real.sqrt 2 * A * Real.sin (2 * Real.sqrt 2 * d * A) = d * Real.exp (-2 * A ^ 2)

/-- PDF p.6: the vacuum event in the second output, jointly with opposite parity. -/
def vacuumJointProbability (b : Bool) (psi : BipartiteFock) : ℝ :=
  ∑' n : ℕ, if (if b then Odd n else Even n) then ‖psi (n, 0)‖ ^ 2 else 0

/-- PDF p.6: probability of vacuum in output two, with output one ignored. -/
def vacuumProbability (psi : BipartiteFock) : ℝ := ∑' n : ℕ, ‖psi (n, 0)‖ ^ 2

/-- PDF p.6, Eq.(13): actual partial-trace coefficients of Eq.(3), proof discarded.
Every scalar environment sum is guarded by Summable in the result. -/
def tokenReducedMatrix (a : ℂ) (b : Bool) (m n : ℕ) : ℂ :=
  ∑' k : ℕ, commitmentEncoding a b (m, k) * star (commitmentEncoding a b (n, k))

/-- PDF p.6: bounded realization of the CONSTRUCTED token partial trace.
The results conclude IsDensity and HasFockMatrix, excluding a zero fallback. -/
def tokenState (a : ℂ) (b : Bool) : FockOperator := operatorOfMatrix (tokenReducedMatrix a b)

/-- PDF pp.6--7: H is rho_0-rho_1, fixing the sign in Eq.(14). -/
def tokenDifference (a : ℂ) : FockOperator := tokenState a false - tokenState a true

/-- PDF p.7, Eqs.(14)--(16): positive magnitude of the two nonzero eigenvalues. -/
def tokenEigenvalue (a : ℂ) : ℝ :=
  Real.exp (-2 * Complex.normSq a) / (1 + Real.exp (-4 * Complex.normSq a))

/-- PDF p.7, Eq.(16): G_max=D/2=||H||_1/4, an advantage, not success probability. -/
def bobGain (a : ℂ) : ℝ := nuclearTraceNorm (tokenDifference a) / 4

/-- PDF pp.6--7: arbitrary binary POVM effect on the ENTIRE oscillator space.
Self-adjointness plus quadratic forms gives 0<=E<=I. Outcome E guesses bit 1. -/
def IsOscillatorEffect (E : FockOperator) : Prop :=
  E.adjoint = E ∧ ∀ psi : Fock,
    0 ≤ (inner ℂ psi (E psi)).re ∧ (inner ℂ psi (E psi)).re ≤ ‖psi‖ ^ 2

/-- PDF pp.6--7: equal-prior guessing probability for the binary POVM (I-E,E).
The theorem supplies trace-product summability for EVERY effect. -/
def tokenGuessProbability (a : ℂ) (E : FockOperator) : ℝ :=
  ((fockTrace ((1 - E).comp (tokenState a false))).re +
    (fockTrace (E.comp (tokenState a true))).re) / 2

/-- PDF p.8: mean photon number on the full oscillator number distribution.
Finiteness/Summable is a conclusion, rather than a hidden default for divergent tsum. -/
def catPhotonMean (A : ℂ) (b : Bool) : ℝ :=
  ∑' n : ℕ, (n : ℝ) * ‖cat A b n‖ ^ 2

example : branchSign false = -1 := rfl

example : branchSign true = 1 := rfl

example (u : Fock) : fockTensorPair 0 u = 0 := by simp [fockTensorPair]

example : stationaryDisplacement 1 0 := by simp [stationaryDisplacement]

example : vacuumJointProbability false (0 : BipartiteFock) = 0 := by
  simp [vacuumJointProbability]

end QAlgorithms.Papers.Independent.Advance50.P33
Source
Quantum bit commitment under Gaussian constraints, arXiv:1105.2140v2, https://arxiv.org/abs/1105.2140v2
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P33.IsBalanced

For a complex-linear isometric bijection BBB of ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C) onto itself, this predicate means that, for every z,w∈Cz,w\in\mathbb Cz,w∈C,

B(T(C(z),C(w)))=T(C(z−w2),C(z+w2)).B\bigl(T(C(z),C(w))\bigr) = T\left(C\left(\frac{z-w}{\sqrt2}\right), C\left(\frac{z+w}{\sqrt2}\right)\right).B(T(C(z),C(w)))=T(C(2​z−w​),C(2​z+w​)).

Here C(ζ)C(\zeta)C(ζ) is a classically chosen vector in ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C) whose nnnth coordinate is e−∣ζ∣2/2ζn/n!e^{-|\zeta|^2/2}\zeta^n/\sqrt{n!}e−∣ζ∣2/2ζn/n!​ for all n∈Nn\in\mathbb Nn∈N, if such a vector exists, and 000 otherwise; T(u,v)=∑m,n∈Numvne(m,n)T(u,v)=\sum_{m,n\in\mathbb N}u_m v_n e_{(m,n)}T(u,v)=∑m,n∈N​um​vn​e(m,n)​ is the norm-convergent sum of coordinate unit vectors in ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C). The quantification includes zero values of either or both complex parameters.

QAlgorithms.Papers.Independent.Advance50.P33.IsOscillatorEffect

For a bounded complex-linear operator EEE on H=ℓ2(N;C)H=\ell^2(\mathbb N;\mathbb C)H=ℓ2(N;C), this defines the predicate that EEE equals its Hilbert-space adjoint and that every vector ψ∈H\psi\in Hψ∈H, including the zero vector, satisfies

0≤Re⁡⟨ψ,Eψ⟩≤∥ψ∥2.0\le \operatorname{Re}\langle\psi,E\psi\rangle \le \|\psi\|^2.0≤Re⟨ψ,Eψ⟩≤∥ψ∥2.

There is no requirement that ψ\psiψ have unit norm.

QAlgorithms.Papers.Independent.Advance50.P33.arbitraryDisplacementControl

For every A,z∈CA,z\in\mathbb CA,z∈C and Boolean bbb, this defines

12∑n∈Jb∣(DzCA+sC−A2(1+se−2∣A∣2))n∣2.\frac12\sum_{n\in J_b} \left| \left( D_z \frac{C_A+sC_{-A}}{\sqrt{2(1+s e^{-2|A|^2})}} \right)_n \right|^2.21​n∈Jb​∑​​(Dz​2(1+se−2∣A∣2)​CA​+sC−A​​)n​​2.

Here s=1s=1s=1 and JbJ_bJb​ consists of the odd natural numbers when bbb is true, whereas s=−1s=-1s=−1 and JbJ_bJb​ consists of the even natural numbers, including 000, when bbb is false. For each α∈C\alpha\in\mathbb Cα∈C, CαC_\alphaCα​ is a chosen square-summable vector with coordinates e−∣α∣2/2αj/j!e^{-|\alpha|^2/2}\alpha^j/\sqrt{j!}e−∣α∣2/2αj/j!​, if one exists, and the zero vector otherwise. The operator DzD_zDz​ is a chosen bounded complex-linear operator on ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C) having matrix

(Dz)mn=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj!(m−j)!(n−j)!,(D_z)_{mn} =e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}} {j!(m-j)!(n-j)!},(Dz​)mn​=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​,

if such an operator exists, and the zero operator otherwise. There are no restrictions on AAA or zzz; division by zero is zero, so A=0A=0A=0 and b=falseb=\mathrm{false}b=false give value zero.

QAlgorithms.Papers.Independent.Advance50.P33.attackedChi

For every a∈Ca\in\mathbb Ca∈C, Boolean bbb, and bounded complex-linear operator UUU on ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C), put s=1s=1s=1 for true bbb and s=−1s=-1s=−1 for false bbb. Let C(z)C(z)C(z) be a classically chosen square-summable sequence satisfying C(z)n=e−∣z∣2/2zn/n!C(z)_n=e^{-|z|^2/2}z^n/\sqrt{n!}C(z)n​=e−∣z∣2/2zn/n!​ for all n∈Nn\in\mathbb Nn∈N, if one exists, and 000 otherwise, and let T(u,v)=∑m,n∈Numvne(m,n)T(u,v)=\sum_{m,n\in\mathbb N}u_m v_n e_{(m,n)}T(u,v)=∑m,n∈N​um​vn​e(m,n)​ in ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C), where e(m,n)e_{(m,n)}e(m,n)​ is the coordinate unit vector. The definition is

attackedChi⁡(a,b,U)=(2(1+se−4∣a∣2))−1(T(C(a),U(C(−a)))+sT(C(−a),U(C(a)))).\operatorname{attackedChi}(a,b,U) =\left(\sqrt{2(1+s e^{-4|a|^2})}\right)^{-1} \bigl(T(C(a),U(C(-a)))+sT(C(-a),U(C(a)))\bigr).attackedChi(a,b,U)=(2(1+se−4∣a∣2)​)−1(T(C(a),U(C(−a)))+sT(C(−a),U(C(a)))).

There is no hypothesis that UUU is unitary or preserves norms. The case a=0a=0a=0 is included; when bbb is false and a=0a=0a=0, the reciprocal scalar is 000 under 0−1=00^{-1}=00−1=0, so the defined vector is 000.

QAlgorithms.Papers.Independent.Advance50.P33.balancedInterferometer

This defines a complex-linear isometric bijection of ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C) onto itself by choosing one satisfying

B(T(C(z),C(w)))=T(C(z−w2),C(z+w2))for every z,w∈C,B\bigl(T(C(z),C(w))\bigr) = T\left(C\left(\frac{z-w}{\sqrt2}\right), C\left(\frac{z+w}{\sqrt2}\right)\right) \qquad\text{for every }z,w\in\mathbb C,B(T(C(z),C(w)))=T(C(2​z−w​),C(2​z+w​))for every z,w∈C,

if any such bijection exists, and choosing the identity map otherwise. Here C(ζ)C(\zeta)C(ζ) is a classically chosen square-summable sequence with coordinates e−∣ζ∣2/2ζn/n!e^{-|\zeta|^2/2}\zeta^n/\sqrt{n!}e−∣ζ∣2/2ζn/n!​ for all n∈Nn\in\mathbb Nn∈N, if such a sequence exists, and 000 otherwise; T(u,v)=∑m,n∈Numvne(m,n)T(u,v)=\sum_{m,n\in\mathbb N}u_m v_n e_{(m,n)}T(u,v)=∑m,n∈N​um​vn​e(m,n)​ in ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C), where e(m,n)e_{(m,n)}e(m,n)​ is the coordinate unit vector. This definition makes the choice conditional on existence; it does not itself assert that such a bijection exists.

QAlgorithms.Papers.Independent.Advance50.P33.bobGain

Let H=ℓ2(N;C)H=\ell^2(\mathbb N;\mathbb C)H=ℓ2(N;C), with coordinate vectors ene_nen​, and let H2=ℓ2(N×N;C)H_2=\ell^2(\mathbb N\times\mathbb N;\mathbb C)H2​=ℓ2(N×N;C), with coordinate vectors e(m,n)e_{(m,n)}e(m,n)​. For each α∈C\alpha\in\mathbb Cα∈C, let cα∈Hc_\alpha\in Hcα​∈H be a selected vector satisfying

(cα)n=e−∣α∣2/2αnn!(n∈N)(c_\alpha)_n=e^{-|\alpha|^2/2}\frac{\alpha^n}{\sqrt{n!}} \quad(n\in\mathbb N)(cα​)n​=e−∣α∣2/2n!​αn​(n∈N)

if such a vector exists, and let cα=0c_\alpha=0cα​=0 otherwise. Write

T(u,v)=∑m,n≥0umvne(m,n),qσ(a)=T(ca,c−a)+σT(c−a,ca)2(1+σe−4∣a∣2)(σ∈{−1,1}).T(u,v)=\sum_{m,n\ge0}u_m v_n e_{(m,n)},\qquad q_\sigma(a)= \frac{T(c_a,c_{-a})+\sigma T(c_{-a},c_a)} {\sqrt{2(1+\sigma e^{-4|a|^2})}} \quad(\sigma\in\{-1,1\}).T(u,v)=m,n≥0∑​um​vn​e(m,n)​,qσ​(a)=2(1+σe−4∣a∣2)​T(ca​,c−a​)+σT(c−a​,ca​)​(σ∈{−1,1}).

For each sign σ\sigmaσ, let ρσ(a)\rho_\sigma(a)ρσ​(a) be a selected bounded complex-linear operator on HHH with matrix entries

(ρσ(a)en)m=∑k≥0(qσ(a))m,k (qσ(a))n,k‾(\rho_\sigma(a)e_n)_m =\sum_{k\ge0}(q_\sigma(a))_{m,k}\, \overline{(q_\sigma(a))_{n,k}}(ρσ​(a)en​)m​=k≥0∑​(qσ​(a))m,k​(qσ​(a))n,k​​

if such an operator exists, and let it be zero otherwise. Set Δa=ρ−1(a)−ρ1(a)\Delta_a=\rho_{-1}(a)-\rho_1(a)Δa​=ρ−1​(a)−ρ1​(a). For every complex aaa, this defines

bobGain⁡(a)=14inf⁡{∑r≥0∥ur∥∥vr∥:u,v:N→H,∑r≥0∥ur∥∥vr∥ is summable,∑r≥0[x↦⟨vr,x⟩ur]=Δa in operator norm}.\operatorname{bobGain}(a) =\frac14\inf\left\{ \sum_{r\ge0}\|u_r\|\|v_r\|: \begin{array}{l} u,v:\mathbb N\to H,\quad \sum_{r\ge0}\|u_r\|\|v_r\|\text{ is summable},\\ \displaystyle\sum_{r\ge0}\bigl[x\mapsto\langle v_r,x\rangle u_r\bigr] =\Delta_a\text{ in operator norm} \end{array} \right\}.bobGain(a)=41​inf⎩⎨⎧​r≥0∑​∥ur​∥∥vr​∥:u,v:N→H,∑r≥0​∥ur​∥∥vr​∥ is summable,r≥0∑​[x↦⟨vr​,x⟩ur​]=Δa​ in operator norm​⎭⎬⎫​.

The real infimum is defined to be zero if this set is empty. The other infinite sums use the total-sum convention, giving zero when the corresponding family is not summable. No nonzero-amplitude or trace-class hypothesis is imposed; division by zero in the displayed normalization is interpreted as zero.

QAlgorithms.Papers.Independent.Advance50.P33.branchSign

For a Boolean bbb, the real number branchSign⁡(b)\operatorname{branchSign}(b)branchSign(b) is 111 when bbb is true and −1-1−1 when bbb is false.

QAlgorithms.Papers.Independent.Advance50.P33.cat

For every A∈CA\in\mathbb CA∈C and Boolean bbb, put s=1s=1s=1 if bbb is true and s=−1s=-1s=−1 otherwise. For each z∈Cz\in\mathbb Cz∈C, let C(z)∈ℓ2(N;C)C(z)\in\ell^2(\mathbb N;\mathbb C)C(z)∈ℓ2(N;C) be a classically chosen vector satisfying

C(z)n=e−∣z∣2/2znn!(n∈N)C(z)_n=e^{-|z|^2/2}\frac{z^n}{\sqrt{n!}}\qquad(n\in\mathbb N)C(z)n​=e−∣z∣2/2n!​zn​(n∈N)

if such a vector exists, and the zero vector otherwise. The definition is

cat⁡(A,b)=(2(1+se−2∣A∣2))−1(C(A)+sC(−A)).\operatorname{cat}(A,b) =\left(\sqrt{2(1+s e^{-2|A|^2})}\right)^{-1} \bigl(C(A)+sC(-A)\bigr).cat(A,b)=(2(1+se−2∣A∣2)​)−1(C(A)+sC(−A)).

Here ∣z∣2|z|^2∣z∣2 is the squared complex norm, and the real scalar is regarded as complex when multiplying vectors. No restriction excludes A=0A=0A=0: when A=0A=0A=0 and bbb is false, the square root and its totalized reciprocal are both 000, so the defined vector is 000.

QAlgorithms.Papers.Independent.Advance50.P33.catOppositeProbability

For every A∈CA\in\mathbb CA∈C, Boolean bbb, and d∈Rd\in\mathbb Rd∈R, let s=1s=1s=1 if bbb is true and s=−1s=-1s=−1 otherwise, and let Jb⊆NJ_b\subseteq\mathbb NJb​⊆N consist of the odd indices if bbb is true and the even indices, including 000, otherwise. For each α∈C\alpha\in\mathbb Cα∈C, let CαC_\alphaCα​ be a chosen square-summable vector with coordinates e−∣α∣2/2αj/j!e^{-|\alpha|^2/2}\alpha^j/\sqrt{j!}e−∣α∣2/2αj/j!​, if one exists, and zero otherwise. Define

v=CA+sC−A2(1+se−2∣A∣2).v=\frac{C_A+sC_{-A}}{\sqrt{2(1+s e^{-2|A|^2})}}.v=2(1+se−2∣A∣2)​CA​+sC−A​​.

For ζ∈C\zeta\in\mathbb Cζ∈C, let DζD_\zetaDζ​ be a chosen bounded complex-linear operator on ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C) with matrix

(Dζ)mn=e−∣ζ∣2/2m! n!∑j=0min⁡(m,n)ζm−j(−ζ‾)n−jj!(m−j)!(n−j)!,(D_\zeta)_{mn} =e^{-|\zeta|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{\zeta^{m-j}(-\overline\zeta)^{n-j}} {j!(m-j)!(n-j)!},(Dζ​)mn​=e−∣ζ∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!ζm−j(−ζ​)n−j​,

if one exists, and the zero operator otherwise. The defined real number is

∑n∈Jb∣(D−id/2v)n∣2.\sum_{n\in J_b}\left|\left(D_{-id/\sqrt2}v\right)_n\right|^2.n∈Jb​∑​​(D−id/2​​v)n​​2.

There are no restrictions on AAA or ddd; division by zero is zero, so this value is zero when A=0A=0A=0 and bbb is false.

QAlgorithms.Papers.Independent.Advance50.P33.catPhotonMean

Let H=ℓ2(N;C)H=\ell^2(\mathbb N;\mathbb C)H=ℓ2(N;C), and let cαc_\alphacα​ be a selected vector with coordinates e−∣α∣2/2αn/n!e^{-|\alpha|^2/2}\alpha^n/\sqrt{n!}e−∣α∣2/2αn/n!​ if such a vector exists, and zero otherwise. For any complex AAA and Boolean bbb, put sb=1s_b=1sb​=1 when bbb is true and sb=−1s_b=-1sb​=−1 when bbb is false, and define

fA,b=cA+sbc−A2(1+sbe−2∣A∣2).f_{A,b} =\frac{c_A+s_b c_{-A}} {\sqrt{2(1+s_b e^{-2|A|^2})}}.fA,b​=2(1+sb​e−2∣A∣2)​cA​+sb​c−A​​.

This declaration defines

catPhotonMean⁡(A,b)=∑n≥0n ∣(fA,b)n∣2.\operatorname{catPhotonMean}(A,b) =\sum_{n\ge0}n\,|(f_{A,b})_n|^2.catPhotonMean(A,b)=n≥0∑​n∣(fA,b​)n​∣2.

No summability or normalization hypothesis is required: the sum is defined to be zero if its real-valued summands are not summable. The definition includes A=0A=0A=0; for b=falseb=\mathrm{false}b=false, the normalization factor then uses 0−1=00^{-1}=00−1=0, so f0,false=0f_{0,\mathrm{false}}=0f0,false​=0 and the defined mean is zero.

QAlgorithms.Papers.Independent.Advance50.P33.commitmentEncoding

For every a∈Ca\in\mathbb Ca∈C and Boolean bbb, put s=1s=1s=1 if bbb is true and s=−1s=-1s=−1 otherwise. Write C(z)C(z)C(z) for a classically chosen square-summable complex sequence with coordinates C(z)n=e−∣z∣2/2zn/n!C(z)_n=e^{-|z|^2/2}z^n/\sqrt{n!}C(z)n​=e−∣z∣2/2zn/n!​ for every n∈Nn\in\mathbb Nn∈N, if such a sequence exists, and 000 otherwise; for square-summable sequences u,vu,vu,v, write T(u,v)=∑m,n∈Numvne(m,n)T(u,v)=\sum_{m,n\in\mathbb N}u_m v_n e_{(m,n)}T(u,v)=∑m,n∈N​um​vn​e(m,n)​, with the sum in ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C) and e(m,n)e_{(m,n)}e(m,n)​ its coordinate unit vector. Then

commitmentEncoding⁡(a,b)=(2(1+se−4∣a∣2))−1(T(C(a),C(−a))+sT(C(−a),C(a))).\operatorname{commitmentEncoding}(a,b) =\left(\sqrt{2(1+s e^{-4|a|^2})}\right)^{-1} \bigl(T(C(a),C(-a))+sT(C(-a),C(a))\bigr).commitmentEncoding(a,b)=(2(1+se−4∣a∣2)​)−1(T(C(a),C(−a))+sT(C(−a),C(a))).

The real scalar acts through its inclusion in C\mathbb CC. The parameter a=0a=0a=0 is included; for a=0a=0a=0 and false bbb, the reciprocal is 000 under the convention 0−1=00^{-1}=00−1=0, and the defined vector is 000.

QAlgorithms.Papers.Independent.Advance50.P33.displacedOutput

For every complex number AAA, Boolean bbb, and real number ddd, this defines a vector in ℓ2(N×N;C)\ell^2(\mathbb N\times\mathbb N;\mathbb C)ℓ2(N×N;C) as follows. Write em,ne_{m,n}em,n​ for the coordinate unit vectors, and let Cα∈ℓ2(N;C)C_\alpha\in\ell^2(\mathbb N;\mathbb C)Cα​∈ℓ2(N;C) be a chosen vector with coordinates e−∣α∣2/2αj/j!e^{-|\alpha|^2/2}\alpha^j/\sqrt{j!}e−∣α∣2/2αj/j!​, if such a vector exists, and the zero vector otherwise. Set s=1s=1s=1 when bbb is true and s=−1s=-1s=−1 when bbb is false, and put

v=CA+sC−A2(1+se−2∣A∣2).v=\frac{C_A+sC_{-A}}{\sqrt{2(1+s e^{-2|A|^2})}}.v=2(1+se−2∣A∣2)​CA​+sC−A​​.

For each ζ∈C\zeta\in\mathbb Cζ∈C, let DζD_\zetaDζ​ be a chosen bounded complex-linear operator whose coordinate matrix is

(Dζ)mn=e−∣ζ∣2/2m! n!∑j=0min⁡(m,n)ζm−j(−ζ‾)n−jj!(m−j)!(n−j)!,(D_\zeta)_{mn} =e^{-|\zeta|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{\zeta^{m-j}(-\overline\zeta)^{n-j}} {j!(m-j)!(n-j)!},(Dζ​)mn​=e−∣ζ∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!ζm−j(−ζ​)n−j​,

if such an operator exists, and the zero operator otherwise. The defined vector is

∑m,n≥0(D−id/2v)m(Cid/2)nem,n.\sum_{m,n\ge0} \left(D_{-id/\sqrt2}v\right)_m \left(C_{id/\sqrt2}\right)_n e_{m,n}.m,n≥0∑​(D−id/2​​v)m​(Cid/2​​)n​em,n​.

All parameters are unrestricted; division by zero is defined to be zero, so A=0A=0A=0 and b=falseb=\mathrm{false}b=false give the zero vector.

QAlgorithms.Papers.Independent.Advance50.P33.displacementControl

For every A∈CA\in\mathbb CA∈C, Boolean bbb, and d∈Rd\in\mathbb Rd∈R, this defines

12∑n∈Jb∣(D−id/2CA+sC−A2(1+se−2∣A∣2))n∣2,\frac12\sum_{n\in J_b} \left| \left( D_{-id/\sqrt2} \frac{C_A+sC_{-A}}{\sqrt{2(1+s e^{-2|A|^2})}} \right)_n \right|^2,21​n∈Jb​∑​​(D−id/2​​2(1+se−2∣A∣2)​CA​+sC−A​​)n​​2,

where s=1s=1s=1 and JbJ_bJb​ is the set of odd natural numbers when bbb is true, while s=−1s=-1s=−1 and JbJ_bJb​ is the set of even natural numbers, including 000, when bbb is false. Here CαC_\alphaCα​ is a chosen vector in ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C) with coordinates e−∣α∣2/2αj/j!e^{-|\alpha|^2/2}\alpha^j/\sqrt{j!}e−∣α∣2/2αj/j!​, if such a vector exists, and zero otherwise; DζD_\zetaDζ​ is a chosen bounded complex-linear operator with matrix

(Dζ)mn=e−∣ζ∣2/2m! n!∑j=0min⁡(m,n)ζm−j(−ζ‾)n−jj!(m−j)!(n−j)!,(D_\zeta)_{mn} =e^{-|\zeta|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{\zeta^{m-j}(-\overline\zeta)^{n-j}} {j!(m-j)!(n-j)!},(Dζ​)mn​=e−∣ζ∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!ζm−j(−ζ​)n−j​,

if such an operator exists, and zero otherwise. All parameters are unrestricted, and division by zero is zero; in particular, A=0A=0A=0 and b=falseb=\mathrm{false}b=false give value zero.

QAlgorithms.Papers.Independent.Advance50.P33.firstParity

For every ψ∈ℓ2(N2;C)\psi\in\ell^2(\mathbb N^2;\mathbb C)ψ∈ℓ2(N2;C), this defines the real number

firstParity⁡(ψ)=∑m,n∈N(−1)m∣ψm,n∣2.\operatorname{firstParity}(\psi) =\sum_{m,n\in\mathbb N}(-1)^m|\psi_{m,n}|^2.firstParity(ψ)=m,n∈N∑​(−1)m∣ψm,n​∣2.

Thus coordinates with even first index contribute positively and those with odd first index negatively, including the first index 000 among the even indices. No unit-norm hypothesis is imposed on ψ\psiψ.

QAlgorithms.Papers.Independent.Advance50.P33.fockTensorPair

For arbitrary square-summable complex sequences u,v∈ℓ2(N;C)u,v\in\ell^2(\mathbb N;\mathbb C)u,v∈ℓ2(N;C), this defines the vector in ℓ2(N×N;C)\ell^2(\mathbb N\times\mathbb N;\mathbb C)ℓ2(N×N;C) by

fockTensorPair⁡(u,v)=∑(m,n)∈N2umvn e(m,n),\operatorname{fockTensorPair}(u,v) =\sum_{(m,n)\in\mathbb N^2}u_m v_n\,e_{(m,n)},fockTensorPair(u,v)=(m,n)∈N2∑​um​vn​e(m,n)​,

where e(m,n)e_{(m,n)}e(m,n)​ is the sequence equal to 111 at (m,n)(m,n)(m,n) and 000 elsewhere, and the sum is taken in the Hilbert-space norm. Neither input is required to have norm 111; indices include 000.

QAlgorithms.Papers.Independent.Advance50.P33.nonGaussianFlip

For every a∈Ca\in\mathbb Ca∈C, this defines the bounded complex-linear operator

nonGaussianFlip⁡(a)=D(−a)∘R∘D(a)\operatorname{nonGaussianFlip}(a)=D(-a)\circ R\circ D(a)nonGaussianFlip(a)=D(−a)∘R∘D(a)

on ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C), where Rv=v−2v0e0Rv=v-2v_0e_0Rv=v−2v0​e0​ and e0e_0e0​ is the coordinate unit vector at 000. For each z∈Cz\in\mathbb Cz∈C, D(z)D(z)D(z) is a classically chosen bounded complex-linear operator whose matrix entries, relative to coordinate unit vectors ene_nen​, satisfy

(D(z)en)m=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!(m,n∈N),(D(z)e_n)_m =e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}} {j!\,(m-j)!\,(n-j)!} \qquad(m,n\in\mathbb N),(D(z)en​)m​=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​(m,n∈N),

if such an operator exists, and is the zero operator otherwise. In the composition, D(a)D(a)D(a) acts first, then RRR, then D(−a)D(-a)D(−a); no restriction is placed on aaa, including a=0a=0a=0.

QAlgorithms.Papers.Independent.Advance50.P33.oddParityFormula

For all real numbers AAA and ddd, this defines the real number

e−d2(e−2A2−cos⁡(22 dA))1−e−2A2.\frac{e^{-d^2}\left(e^{-2A^2}-\cos(2\sqrt2\,dA)\right)} {1-e^{-2A^2}}.1−e−2A2e−d2(e−2A2−cos(22​dA))​.

There are no positivity or nonzero assumptions on either parameter. In particular, when A=0A=0A=0, the denominator is zero and the defined value is zero under the convention that division by zero is zero.

QAlgorithms.Papers.Independent.Advance50.P33.oppositeProbability

For every Boolean bbb and every ψ∈ℓ2(N2;C)\psi\in\ell^2(\mathbb N^2;\mathbb C)ψ∈ℓ2(N2;C), this defines

oppositeProbability⁡(b,ψ)={∑m,n∈Nm odd∣ψm,n∣2,b true,∑m,n∈Nm even∣ψm,n∣2,b false.\operatorname{oppositeProbability}(b,\psi) = \begin{cases} \displaystyle\sum_{\substack{m,n\in\mathbb N\\m\text{ odd}}}|\psi_{m,n}|^2, & b\text{ true},\\[6pt] \displaystyle\sum_{\substack{m,n\in\mathbb N\\m\text{ even}}}|\psi_{m,n}|^2, & b\text{ false}. \end{cases}oppositeProbability(b,ψ)=⎩⎨⎧​m,n∈Nm odd​∑​∣ψm,n​∣2,m,n∈Nm even​∑​∣ψm,n​∣2,​b true,b false.​

The second index is unrestricted, 000 is included among even first indices, and ψ\psiψ need not have norm 111.

QAlgorithms.Papers.Independent.Advance50.P33.pShift

For every real ttt, this defines the bounded complex-linear operator

pShift⁡(t)=D(it2)\operatorname{pShift}(t)=D\left(\frac{it}{\sqrt2}\right)pShift(t)=D(2​it​)

on ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C), where iii is the imaginary unit. For each complex zzz, D(z)D(z)D(z) is a classically chosen bounded complex-linear operator with coordinate matrix

(D(z)en)m=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!(m,n∈N),(D(z)e_n)_m =e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}} {j!\,(m-j)!\,(n-j)!} \qquad(m,n\in\mathbb N),(D(z)en​)m​=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​(m,n∈N),

if any such operator exists, and the zero operator otherwise; ene_nen​ denotes the sequence equal to 111 at nnn and 000 elsewhere. All real values of ttt, including 000 and negative values, are allowed.

QAlgorithms.Papers.Independent.Advance50.P33.photonParityMean

For every vector ψ∈ℓ2(N;C)\psi\in\ell^2(\mathbb N;\mathbb C)ψ∈ℓ2(N;C), with no unit-norm assumption, this defines the real number

∑n=0∞(−1)n∣ψn∣2.\sum_{n=0}^{\infty}(-1)^n|\psi_n|^2.n=0∑∞​(−1)n∣ψn​∣2.

Thus the squared magnitudes of the even-indexed coordinates, including index 000, contribute positively, and those of the odd-indexed coordinates contribute negatively. This series is absolutely convergent because ψ\psiψ is square-summable.

QAlgorithms.Papers.Independent.Advance50.P33.stationaryDisplacement

For every pair of real numbers A,dA,dA,d, this defines a proposition that holds exactly when

dcos⁡(22 dA)+2 Asin⁡(22 dA)=de−2A2.d\cos(2\sqrt2\,dA) +\sqrt2\,A\sin(2\sqrt2\,dA) =d e^{-2A^2}.dcos(22​dA)+2​Asin(22​dA)=de−2A2.

There are no additional conditions on AAA or ddd; the equality holds for every ddd when A=0A=0A=0, and for every AAA when d=0d=0d=0.

QAlgorithms.Papers.Independent.Advance50.P33.tokenDifference

For every a∈Ca\in\mathbb Ca∈C, this defines the bounded complex-linear operator T−1−T+1T_{-1}-T_{+1}T−1​−T+1​ on H=ℓ2(N;C)H=\ell^2(\mathbb N;\mathbb C)H=ℓ2(N;C) by the following construction. For each α∈C\alpha\in\mathbb Cα∈C, let Cα∈HC_\alpha\in HCα​∈H be a chosen vector whose jjj-th coordinate is e−∣α∣2/2αj/j!e^{-|\alpha|^2/2}\alpha^j/\sqrt{j!}e−∣α∣2/2αj/j!​, if one exists, and zero otherwise. For each s∈{−1,+1}s\in\{-1,+1\}s∈{−1,+1}, set

Es=∑p,q≥0(Ca)p(C−a)qep,q+s∑p,q≥0(C−a)p(Ca)qep,q2(1+se−4∣a∣2),Rmn(s)=∑k=0∞(Es)m,k(Es)n,k‾,E_s= \frac{ \displaystyle\sum_{p,q\ge0}(C_a)_p(C_{-a})_q e_{p,q} +s\displaystyle\sum_{p,q\ge0}(C_{-a})_p(C_a)_q e_{p,q}} {\sqrt{2(1+s e^{-4|a|^2})}}, \qquad R^{(s)}_{mn}=\sum_{k=0}^{\infty}(E_s)_{m,k}\overline{(E_s)_{n,k}},Es​=2(1+se−4∣a∣2)​p,q≥0∑​(Ca​)p​(C−a​)q​ep,q​+sp,q≥0∑​(C−a​)p​(Ca​)q​ep,q​​,Rmn(s)​=k=0∑∞​(Es​)m,k​(Es​)n,k​​,

where ep,qe_{p,q}ep,q​ are the coordinate unit vectors of ℓ2(N×N;C)\ell^2(\mathbb N\times\mathbb N;\mathbb C)ℓ2(N×N;C). If a bounded complex-linear operator with coordinate matrix R(s)R^{(s)}R(s) exists, TsT_sTs​ is a chosen such operator; otherwise Ts=0T_s=0Ts​=0. The subtraction places the operator for Boolean false, corresponding to s=−1s=-1s=−1, first, and the operator for Boolean true, corresponding to s=+1s=+1s=+1, second. The parameter a=0a=0a=0 is included, with division by zero defined as zero, so E−1=0E_{-1}=0E−1​=0 in that case.

QAlgorithms.Papers.Independent.Advance50.P33.tokenEigenvalue

For every complex number aaa, including a=0a=0a=0, this defines the real number

tokenEigenvalue⁡(a)=e−2∣a∣21+e−4∣a∣2.\operatorname{tokenEigenvalue}(a) =\frac{e^{-2|a|^2}}{1+e^{-4|a|^2}}.tokenEigenvalue(a)=1+e−4∣a∣2e−2∣a∣2​.

Here ∣a∣2|a|^2∣a∣2 is the squared complex modulus. In particular, the defined value at a=0a=0a=0 is 1/21/21/2.

QAlgorithms.Papers.Independent.Advance50.P33.tokenGuessProbability

Let H=ℓ2(N;C)H=\ell^2(\mathbb N;\mathbb C)H=ℓ2(N;C), with coordinate vectors ene_nen​, and H2=ℓ2(N2;C)H_2=\ell^2(\mathbb N^2;\mathbb C)H2​=ℓ2(N2;C), with coordinate vectors e(m,n)e_{(m,n)}e(m,n)​. Let cα∈Hc_\alpha\in Hcα​∈H be a selected vector with coordinates e−∣α∣2/2αn/n!e^{-|\alpha|^2/2}\alpha^n/\sqrt{n!}e−∣α∣2/2αn/n!​ if one exists, and zero otherwise. Define

T(u,v)=∑m,n≥0umvne(m,n),qσ(a)=T(ca,c−a)+σT(c−a,ca)2(1+σe−4∣a∣2)(σ∈{−1,1}).T(u,v)=\sum_{m,n\ge0}u_m v_n e_{(m,n)},\qquad q_\sigma(a)= \frac{T(c_a,c_{-a})+\sigma T(c_{-a},c_a)} {\sqrt{2(1+\sigma e^{-4|a|^2})}} \quad(\sigma\in\{-1,1\}).T(u,v)=m,n≥0∑​um​vn​e(m,n)​,qσ​(a)=2(1+σe−4∣a∣2)​T(ca​,c−a​)+σT(c−a​,ca​)​(σ∈{−1,1}).

Let ρσ(a)\rho_\sigma(a)ρσ​(a) be a selected bounded complex-linear operator whose matrix entries are

(ρσ(a)en)m=∑k≥0(qσ(a))m,k(qσ(a))n,k‾,(\rho_\sigma(a)e_n)_m =\sum_{k\ge0}(q_\sigma(a))_{m,k} \overline{(q_\sigma(a))_{n,k}},(ρσ​(a)en​)m​=k≥0∑​(qσ​(a))m,k​(qσ​(a))n,k​​,

or the zero operator if no such bounded operator exists. For every complex aaa and every bounded complex-linear operator E:H→HE:H\to HE:H→H, this defines the real number

tokenGuessProbability⁡(a,E)=12[Re⁡(∑n≥0((I−E)ρ−1(a)en)n)+Re⁡(∑n≥0(Eρ1(a)en)n)].\operatorname{tokenGuessProbability}(a,E) =\frac12\left[ \operatorname{Re}\left(\sum_{n\ge0} ((I-E)\rho_{-1}(a)e_n)_n\right) + \operatorname{Re}\left(\sum_{n\ge0} (E\rho_1(a)e_n)_n\right) \right].tokenGuessProbability(a,E)=21​[Re(n≥0∑​((I−E)ρ−1​(a)en​)n​)+Re(n≥0∑​(Eρ1​(a)en​)n​)].

All infinite sums are total sums, giving zero for a nonsummable family, and division by zero is interpreted as zero. The definition assumes neither that EEE satisfies the effect inequalities nor that any operator appearing here is trace class; it also allows a=0a=0a=0.

QAlgorithms.Papers.Independent.Advance50.P33.tokenReducedMatrix

For every a∈Ca\in\mathbb Ca∈C, Boolean bbb, and m,n∈Nm,n\in\mathbb Nm,n∈N, this defines the complex number

∑k=0∞Em,k En,k‾.\sum_{k=0}^{\infty}E_{m,k}\,\overline{E_{n,k}}.k=0∑∞​Em,k​En,k​​.

To specify EEE, let s=1s=1s=1 if bbb is true and s=−1s=-1s=−1 otherwise, and, for each α∈C\alpha\in\mathbb Cα∈C, let Cα∈ℓ2(N;C)C_\alpha\in\ell^2(\mathbb N;\mathbb C)Cα​∈ℓ2(N;C) be a chosen vector with coordinates e−∣α∣2/2αj/j!e^{-|\alpha|^2/2}\alpha^j/\sqrt{j!}e−∣α∣2/2αj/j!​, if such a vector exists, and zero otherwise. Then E∈ℓ2(N×N;C)E\in\ell^2(\mathbb N\times\mathbb N;\mathbb C)E∈ℓ2(N×N;C) is

E=∑p,q≥0(Ca)p(C−a)qep,q+s∑p,q≥0(C−a)p(Ca)qep,q2(1+se−4∣a∣2),E= \frac{ \displaystyle\sum_{p,q\ge0}(C_a)_p(C_{-a})_q e_{p,q} +s\displaystyle\sum_{p,q\ge0}(C_{-a})_p(C_a)_q e_{p,q}} {\sqrt{2(1+s e^{-4|a|^2})}},E=2(1+se−4∣a∣2)​p,q≥0∑​(Ca​)p​(C−a​)q​ep,q​+sp,q≥0∑​(C−a​)p​(Ca​)q​ep,q​​,

where ep,qe_{p,q}ep,q​ are the coordinate unit vectors. All indices include 000, and aaa is unrestricted. Division by zero is zero, so a=0a=0a=0 and b=falseb=\mathrm{false}b=false give E=0E=0E=0 and all the defined matrix entries equal zero.

QAlgorithms.Papers.Independent.Advance50.P33.tokenState

For every a∈Ca\in\mathbb Ca∈C and Boolean bbb, this defines a bounded complex-linear operator on H=ℓ2(N;C)H=\ell^2(\mathbb N;\mathbb C)H=ℓ2(N;C) by a conditional choice. Let s=1s=1s=1 when bbb is true and s=−1s=-1s=−1 otherwise, and let Cα∈HC_\alpha\in HCα​∈H be a chosen vector with coordinates e−∣α∣2/2αj/j!e^{-|\alpha|^2/2}\alpha^j/\sqrt{j!}e−∣α∣2/2αj/j!​, if one exists, and zero otherwise. With ep,qe_{p,q}ep,q​ denoting the coordinate unit vectors in ℓ2(N×N;C)\ell^2(\mathbb N\times\mathbb N;\mathbb C)ℓ2(N×N;C), define

E=∑p,q≥0(Ca)p(C−a)qep,q+s∑p,q≥0(C−a)p(Ca)qep,q2(1+se−4∣a∣2),Rmn=∑k=0∞Em,kEn,k‾.E= \frac{ \displaystyle\sum_{p,q\ge0}(C_a)_p(C_{-a})_q e_{p,q} +s\displaystyle\sum_{p,q\ge0}(C_{-a})_p(C_a)_q e_{p,q}} {\sqrt{2(1+s e^{-4|a|^2})}}, \qquad R_{mn}=\sum_{k=0}^{\infty}E_{m,k}\overline{E_{n,k}}.E=2(1+se−4∣a∣2)​p,q≥0∑​(Ca​)p​(C−a​)q​ep,q​+sp,q≥0∑​(C−a​)p​(Ca​)q​ep,q​​,Rmn​=k=0∑∞​Em,k​En,k​​.

If there exists a bounded complex-linear operator T:H→HT:H\to HT:H→H satisfying (Ten)m=Rmn(Te_n)_m=R_{mn}(Ten​)m​=Rmn​ for every m,n∈Nm,n\in\mathbb Nm,n∈N, where ene_nen​ is the nnn-th coordinate unit vector, the definition returns a chosen such TTT; otherwise it returns the zero operator. No density or normalization condition is part of this definition. Division by zero is zero, so the case a=0a=0a=0, b=falseb=\mathrm{false}b=false has E=0E=0E=0.

QAlgorithms.Papers.Independent.Advance50.P33.vacuumJointProbability

For every Boolean bbb and vector ψ∈ℓ2(N×N;C)\psi\in\ell^2(\mathbb N\times\mathbb N;\mathbb C)ψ∈ℓ2(N×N;C), this defines

{∑n≥0n odd∣ψn,0∣2,b=true,∑n≥0n even∣ψn,0∣2,b=false.\begin{cases} \displaystyle\sum_{\substack{n\ge0\\ n\text{ odd}}}|\psi_{n,0}|^2, & b=\mathrm{true},\\[6pt] \displaystyle\sum_{\substack{n\ge0\\ n\text{ even}}}|\psi_{n,0}|^2, & b=\mathrm{false}. \end{cases}⎩⎨⎧​n≥0n odd​∑​∣ψn,0​∣2,n≥0n even​∑​∣ψn,0​∣2,​b=true,b=false.​

The second coordinate is fixed at 000, and the even case includes n=0n=0n=0. No unit-norm assumption is imposed on ψ\psiψ.

QAlgorithms.Papers.Independent.Advance50.P33.vacuumProbability

For every vector ψ∈ℓ2(N×N;C)\psi\in\ell^2(\mathbb N\times\mathbb N;\mathbb C)ψ∈ℓ2(N×N;C), this defines the real number

∑n=0∞∣ψn,0∣2.\sum_{n=0}^{\infty}|\psi_{n,0}|^2.n=0∑∞​∣ψn,0​∣2.

It sums the squared magnitudes of all coordinates whose second index is 000, including the coordinate (0,0)(0,0)(0,0), without imposing a unit-norm assumption on ψ\psiψ.

QAlgorithms.Papers.Independent.Advance50.P33.vacuumReflection

This defines the bounded complex-linear operator on ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C) given by

R=I−2 ∣e0⟩⟨e0∣,Rv=v−2v0e0,R=I-2\,|e_0\rangle\langle e_0|, \qquad Rv=v-2v_0e_0,R=I−2∣e0​⟩⟨e0​∣,Rv=v−2v0​e0​,

where III is the identity operator and e0e_0e0​ is the sequence equal to 111 at index 000 and 000 elsewhere. Thus the operator negates coordinate 000 and leaves every positive-index coordinate unchanged.

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