Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Long distance quantum key distribution with continuous variables

Definition
QAlgorithms_Papers_Independent_Advance50_P37

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

prove2quantum

The objects the formalized statements of Long distance quantum key distribution with continuous variables (arXiv:1005.0328) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • ModulationSpace: PDF pp.4--5, Eq.(2): Euclidean R^8, with its l2 norm.
  • standardModulationGaussian: PDF p.5, footnote 4: eight independent centered unit-variance normals.
  • sphericalModulation: PDF pp.4--5: independent Hausdorff surface measure, normalized on S^7(2 alpha). Used as a probability only for alpha>0.
  • normalizeModulation: PDF p.5, footnote 4: radial normalization; Gaussian-null zero input is sent to a specified point of the same sphere.
  • modulationAmplitudes: PDF p.5, Eq.(2): successive real coordinates form complex amplitudes.
  • sphericalSchmidtCoefficient: PDF p.6, Eq.(3): actual diagonal Schmidt coefficient, including the sector multiplicity (k+3 choose 3). No normalization premise is built in.
  • virtualCoefficient: PDF p.6, Eq.(3): coefficients vanish unless Alice and Bob occupations agree.
  • entangledSector: PDF p.6, Eq.(3): finite normalized k-photon sector. Each tuple of total k occurs once in the finite box; the final sum still ranges over every k.
  • virtualSummand: PDF p.6, Eq.(3): weighted Hilbert-space summand.
  • virtualDensity: PDF p.6: rank-one coefficients of the constructed resource; square summability and normalization are conclusions below.
  • sphericalBobMarginal: PDF p.6: Bob's actual partial trace. Convergence is concluded below.
  • sphereCoherentDensity: PDF pp.5--6: the four coherent states of Eq.(2), using accepted full-Fock coherent product coefficients.
  • SphericalSteeringPOVM: PDF p.6: Borel-outcome POVM on Alice's completed four-mode space. Bounded effects are positive, normalized and weakly countably additive. No desired resource, steering or outcome-law property is assumed.
  • steeredBobKernel: PDF p.6: unnormalized Bob density after Alice's effect. The entry E[d,b] follows Tr_A[(E tensor I)|Psi><Psi|].
  • steeringEventProbability: PDF p.6: actual event probability by tracing the unnormalized kernel; diagonal summability is a conclusion, not a hidden assumption.
  • binaryDisplacementChannel: PDF p.11: equally weighted real displacement conjugations +a and -a.
  • fairNoiseCoin: PDF p.11: fixed independent fair noise coin in the explicit dilation.
  • controlledDisplacementKernel: PDF p.11: actual controlled-displacement coefficients.
  • carrierWeylWithCoin: PDF p.11, Eq.(5): input Weyl observable, with identity on the coin.
  • noisyCarrierWeyl: PDF p.11, Eq.(5): Heisenberg output Weyl observable. Independent noise has B_Q equal to plus or minus sqrt(2)a, B_P=0 in accepted hbar=1 coordinates, equivalently source B_X equal to plus or minus 2a, B_P=0. This states more than a fitted covariance.
  • binaryNoiseCovariance: PDF p.11: added full-anticommutator covariance, equal numerically to source shot-noise covariance: Var(B_X)=4a^2, Var(B_P)=0.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P33
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P39
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P19
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P14
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P14
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P39
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P41
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P26

/-!
Leverrier--Grangier, arXiv:1005.0328v3, PDF pp.4--6,11.
Full oscillator spaces, no photon cutoff. Vacuum covariance is I. The accepted
hbar=1 full-anticommutator covariance equals the source's hbar=2 covariance;
physical means differ by sqrt(2). No use of the inconsistent printed Eq.(4)
or the defective Claimed50.P47.HasBipartiteMoments predicate is made.
Compilation and independent moderation are pending the batch handoff.
-/

noncomputable section

open MeasureTheory Filter
open scoped BigOperators ENNReal Topology

attribute [local instance] Classical.propDecidable Classical.decEq

namespace QAlgorithms.Papers.Independent.Advance50.P37

open QAlgorithms.RealRegisters (Hilbert)
open QAlgorithms.Papers.Independent.Gap48.P26 (totalPhotons)
open QAlgorithms.Papers.Independent.Dependency50.P33
  (IsDensity IsBarycenter IsTraceClassChannel productCoeff)
open QAlgorithms.Papers.Independent.Claimed50.P19
  (FockIndex DensityKernel Cov standardFormCovariance vacuumKernel productWeyl weylArgument)
open QAlgorithms.Papers.Independent.Frontier30.P14
  (unitaryCoeff conjugateKernel boundedUnitaryConjugation partialRight)
open QAlgorithms.Papers.Independent.Support50.P14 (CompleteMoments GaussianAt)
open QAlgorithms.Papers.Independent.Renew46.P39 (squeezedVacuum)
open QAlgorithms.Papers.Independent.Renew46.P41
  (coherentProductCoefficient NormalizedCoherent)

/-- PDF pp.4--5, Eq.(2): Euclidean R^8, with its l2 norm. -/
abbrev ModulationSpace := EuclideanSpace ℝ (Fin 8)

/-- PDF p.5, footnote 4: eight independent centered unit-variance normals. -/
def standardModulationGaussian : Measure ModulationSpace :=
  Measure.map (WithLp.equiv 2 (Fin 8 → ℝ)).symm
    (Measure.pi (fun _ : Fin 8 => ProbabilityTheory.gaussianReal 0 1))

/-- PDF pp.4--5: independent Hausdorff surface measure, normalized on
S^7(2 alpha). Used as a probability only for alpha>0. -/
def sphericalModulation (alpha : ℝ) : Measure ModulationSpace :=
  let surface : Measure ModulationSpace := Measure.hausdorffMeasure 7
  (surface (Metric.sphere 0 (2 * alpha)))⁻¹ •
    surface.restrict (Metric.sphere 0 (2 * alpha))

/-- PDF p.5, footnote 4: radial normalization; Gaussian-null zero input is
sent to a specified point of the same sphere. -/
def normalizeModulation (alpha : ℝ) (x : ModulationSpace) : ModulationSpace :=
  if x = 0 then EuclideanSpace.single 0 (2 * alpha)
  else (2 * alpha / ‖x‖) • x

/-- PDF p.5, Eq.(2): successive real coordinates form complex amplitudes. -/
def modulationAmplitudes (x : ModulationSpace) : Fin 4 → ℂ :=
  fun j => (x ⟨2 * j.val, by omega⟩ : ℂ) +
    Complex.I * (x ⟨2 * j.val + 1, by omega⟩ : ℂ)

/-- PDF p.6, Eq.(3): actual diagonal Schmidt coefficient, including the
sector multiplicity (k+3 choose 3). No normalization premise is built in. -/
def sphericalSchmidtCoefficient (alpha : ℝ) (n : FockIndex 4) : ℝ :=
  Real.exp (-2 * alpha ^ 2) * (2 * alpha) ^ totalPhotons n /
    (Real.sqrt (Nat.factorial (totalPhotons n) : ℝ) *
      Real.sqrt (Nat.choose (totalPhotons n + 3) 3 : ℝ))

/-- PDF p.6, Eq.(3): coefficients vanish unless Alice and Bob occupations agree. -/
def virtualCoefficient (alpha : ℝ) (n : (Fin 4 ⊕ Fin 4) → ℕ) : ℂ :=
  if n ∘ Sum.inl = n ∘ Sum.inr then
    (sphericalSchmidtCoefficient alpha (n ∘ Sum.inl) : ℂ) else 0

/-- PDF p.6, Eq.(3): finite normalized k-photon sector. Each tuple of total
k occurs once in the finite box; the final sum still ranges over every k. -/
def entangledSector (k : ℕ) : Hilbert ((Fin 4 ⊕ Fin 4) → ℕ) :=
  (Real.sqrt (Nat.choose (k + 3) 3 : ℝ) : ℂ)⁻¹ •
    ∑ n : Fin 4 → Fin (k + 1),
      if (∑ j, (n j).val) = k then
        lp.single 2 (Sum.elim (fun j => (n j).val) (fun j => (n j).val)) 1
      else 0

/-- PDF p.6, Eq.(3): weighted Hilbert-space summand. -/
def virtualSummand (alpha : ℝ) (k : ℕ) : Hilbert ((Fin 4 ⊕ Fin 4) → ℕ) :=
  (Real.exp (-2 * alpha ^ 2) * (2 * alpha) ^ k /
    Real.sqrt (Nat.factorial k : ℝ) : ℂ) • entangledSector k

/-- PDF p.6: rank-one coefficients of the constructed resource;
square summability and normalization are conclusions below. -/
def virtualDensity (alpha : ℝ) : Matrix ((Fin 4 ⊕ Fin 4) → ℕ) ((Fin 4 ⊕ Fin 4) → ℕ) ℂ :=
  fun i j => virtualCoefficient alpha i * star (virtualCoefficient alpha j)

/-- PDF p.6: Bob's actual partial trace. Convergence is concluded below. -/
def sphericalBobMarginal (alpha : ℝ) : DensityKernel 4 :=
  fun b d => ∑' a : FockIndex 4,
    virtualDensity alpha (Sum.elim a b) (Sum.elim a d)

/-- PDF pp.5--6: the four coherent states of Eq.(2), using accepted full-Fock
coherent product coefficients. -/
def sphereCoherentDensity (x : ModulationSpace) : DensityKernel 4 :=
  fun i j => coherentProductCoefficient (modulationAmplitudes x) i *
    star (coherentProductCoefficient (modulationAmplitudes x) j)

/-- PDF p.6: Borel-outcome POVM on Alice's completed four-mode space.
Bounded effects are positive, normalized and weakly countably additive.
No desired resource, steering or outcome-law property is assumed. -/
structure SphericalSteeringPOVM where
  effect : Set ModulationSpace →
    (Hilbert (FockIndex 4) →L[ℂ] Hilbert (FockIndex 4))
  empty : effect ∅ = 0
  total : effect Set.univ = 1
  positive : ∀ S, MeasurableSet S → ∀ v : Hilbert (FockIndex 4),
    (inner (𝕜 := ℂ) v (effect S v)).im = 0 ∧
    0 ≤ (inner (𝕜 := ℂ) v (effect S v)).re
  additive : ∀ S : ℕ → Set ModulationSpace,
    (∀ n, MeasurableSet (S n)) → Pairwise (fun i j => Disjoint (S i) (S j)) →
    ∀ u v : Hilbert (FockIndex 4),
      HasSum (fun n => inner (𝕜 := ℂ) u (effect (S n) v))
        (inner (𝕜 := ℂ) u (effect (⋃ n, S n) v))

/-- PDF p.6: unnormalized Bob density after Alice's effect.
The entry E[d,b] follows Tr_A[(E tensor I)|Psi><Psi|]. -/
def steeredBobKernel (alpha : ℝ) (M : SphericalSteeringPOVM)
    (S : Set ModulationSpace) : DensityKernel 4 :=
  fun b d => (sphericalSchmidtCoefficient alpha b : ℂ) *
    star (sphericalSchmidtCoefficient alpha d : ℂ) *
    (M.effect S (lp.single 2 b 1)) d

/-- PDF p.6: actual event probability by tracing the unnormalized kernel;
diagonal summability is a conclusion, not a hidden assumption. -/
def steeringEventProbability (alpha : ℝ) (M : SphericalSteeringPOVM)
    (S : Set ModulationSpace) : ℝ :=
  ∑' b, (steeredBobKernel alpha M S b b).re

/-- PDF p.11: equally weighted real displacement conjugations +a and -a. -/
def binaryDisplacementChannel (a : ℝ) (rho : DensityKernel 1) : DensityKernel 1 :=
  (1 / 2 : ℂ) •
    (conjugateKernel (productWeyl (fun _ : Fin 1 => (a : ℂ))) rho +
      conjugateKernel (productWeyl (fun _ : Fin 1 => (-a : ℂ))) rho)

/-- PDF p.11: fixed independent fair noise coin in the explicit dilation. -/
def fairNoiseCoin : Matrix Bool Bool ℂ :=
  fun b c => if b = c then (1 / 2 : ℂ) else 0

/-- PDF p.11: actual controlled-displacement coefficients. -/
def controlledDisplacementKernel (a : ℝ) :
    Matrix (FockIndex 1 × Bool) (FockIndex 1 × Bool) ℂ :=
  fun i j => if i.2 = j.2 then
    productWeyl (fun _ : Fin 1 => ((if i.2 then a else -a : ℝ) : ℂ)) i.1 j.1 else 0

/-- PDF p.11, Eq.(5): input Weyl observable, with identity on the coin. -/
def carrierWeylWithCoin (v : (Fin 1 × Fin 2) → ℝ) :
    Matrix (FockIndex 1 × Bool) (FockIndex 1 × Bool) ℂ :=
  fun i j => if i.2 = j.2 then productWeyl (weylArgument v) i.1 j.1 else 0

/-- PDF p.11, Eq.(5): Heisenberg output Weyl observable. Independent noise
has B_Q equal to plus or minus sqrt(2)a, B_P=0 in accepted hbar=1 coordinates, equivalently
source B_X equal to plus or minus 2a, B_P=0. This states more than a fitted covariance. -/
def noisyCarrierWeyl (a : ℝ) (v : (Fin 1 × Fin 2) → ℝ) :
    Matrix (FockIndex 1 × Bool) (FockIndex 1 × Bool) ℂ :=
  fun i j => if i.2 = j.2 then
    Complex.exp (Complex.I *
      ((Real.sqrt 2 * (if i.2 then a else -a) * v (0, 0) : ℝ) : ℂ)) *
        productWeyl (weylArgument v) i.1 j.1 else 0

/-- PDF p.11: added full-anticommutator covariance, equal numerically to
source shot-noise covariance: Var(B_X)=4a^2, Var(B_P)=0. -/
def binaryNoiseCovariance (a : ℝ) : Cov 1 :=
  Matrix.diagonal (fun i => if i.2 = 0 then 4 * a ^ 2 else 0)

/-! Definition sanity checks, not proofs of the source results. -/

example (alpha : ℝ) : normalizeModulation alpha 0 =
    EuclideanSpace.single 0 (2 * alpha) := by simp [normalizeModulation]

example : modulationAmplitudes 0 = 0 := by
  funext j
  simp [modulationAmplitudes]

example (alpha : ℝ) : sphericalSchmidtCoefficient alpha (fun _ => 0) =
    Real.exp (-2 * alpha ^ 2) := by
  simp [sphericalSchmidtCoefficient, totalPhotons]

example (alpha : ℝ) : virtualCoefficient alpha (fun _ => 0) =
    (Real.exp (-2 * alpha ^ 2) : ℂ) := by
  simp [virtualCoefficient, Function.comp_def, sphericalSchmidtCoefficient, totalPhotons]

example (alpha : ℝ) (M : SphericalSteeringPOVM) :
    steeredBobKernel alpha M ∅ = 0 := by
  funext b d
  simp [steeredBobKernel, M.empty]

example : fairNoiseCoin true false = 0 := by simp [fairNoiseCoin]

example (a : ℝ) : binaryNoiseCovariance a (0, 0) (0, 0) = 4 * a ^ 2 := by
  simp [binaryNoiseCovariance]

example (a : ℝ) : binaryNoiseCovariance a (0, 1) (0, 1) = 0 := by
  norm_num [binaryNoiseCovariance]

end QAlgorithms.Papers.Independent.Advance50.P37
Source
Long distance quantum key distribution with continuous variables, arXiv:1005.0328v3, https://arxiv.org/abs/1005.0328v3
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P37.ModulationSpace

The modulation space is R8\mathbb R^8R8, with coordinates indexed by {0,…,7}\{0,\ldots,7\}{0,…,7} and Euclidean norm ∥x∥=(∑i=07xi2)1/2\|x\|=(\sum_{i=0}^7 x_i^2)^{1/2}∥x∥=(∑i=07​xi2​)1/2.

QAlgorithms.Papers.Independent.Advance50.P37.SphericalSteeringPOVM

A SphericalSteeringPOVM consists of a function EEE assigning to every subset of R8\mathbb R^8R8, equipped with its Euclidean Borel measurable structure, a bounded complex-linear operator on H=ℓ2(N{0,1,2,3};C)H=\ell^2(\mathbb N^{\{0,1,2,3\}};\mathbb C)H=ℓ2(N{0,1,2,3};C). It satisfies E(∅)=0E(\varnothing)=0E(∅)=0 and E(R8)=id⁡HE(\mathbb R^8)=\operatorname{id}_HE(R8)=idH​. For every measurable set S⊆R8S\subseteq\mathbb R^8S⊆R8 and every v∈Hv\in Hv∈H, the number ⟨v,E(S)v⟩\langle v,E(S)v\rangle⟨v,E(S)v⟩ has zero imaginary part and nonnegative real part. For every sequence (Sn)n∈N(S_n)_{n\in\mathbb N}(Sn​)n∈N​ of pairwise disjoint measurable subsets and every u,v∈Hu,v\in Hu,v∈H, the scalar family ⟨u,E(Sn)v⟩\langle u,E(S_n)v\rangle⟨u,E(Sn​)v⟩ is summable, with

∑n∈N⟨u,E(Sn)v⟩=⟨u,E ⁣(⋃n∈NSn)v⟩.\sum_{n\in\mathbb N}\langle u,E(S_n)v\rangle =\left\langle u,E\!\left(\bigcup_{n\in\mathbb N}S_n\right)v\right\rangle.n∈N∑​⟨u,E(Sn​)v⟩=⟨u,E(n∈N⋃​Sn​)v⟩.

The assignment is defined on nonmeasurable subsets too, although the positivity and additivity requirements above concern measurable sets.

QAlgorithms.Papers.Independent.Advance50.P37.binaryDisplacementChannel

For every real aaa and every complex matrix ρ\rhoρ indexed by occupation strings {0}→N\{0\}\to\mathbb N{0}→N, identified with N\mathbb NN, this defines another such matrix by

Ba(ρ)mn=12∑ε∈{−1,1}∑r=0∞Dεa(m,r)(∑s=0∞ρrs Dεa(n,s)‾),\mathcal B_a(\rho)_{mn} =\frac12\sum_{\varepsilon\in\{-1,1\}} \sum_{r=0}^{\infty}D_{\varepsilon a}(m,r) \left(\sum_{s=0}^{\infty}\rho_{rs}\, \overline{D_{\varepsilon a}(n,s)}\right),Ba​(ρ)mn​=21​ε∈{−1,1}∑​r=0∑∞​Dεa​(m,r)(s=0∑∞​ρrs​Dεa​(n,s)​),

where, for z∈Cz\in\mathbb Cz∈C and m,n∈Nm,n\in\mathbb Nm,n∈N,

Dz(m,n)=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!.D_z(m,n)= 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​(m,n)=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​.

The two infinite sums are nested in the displayed order. No density, positivity, trace-class, or summability assumption is imposed on ρ\rhoρ; nonsummable complex families receive the total infinite-sum value zero. The case a=0a=0a=0 is included.

QAlgorithms.Papers.Independent.Advance50.P37.binaryNoiseCovariance

For every real aaa, this defines the real matrix indexed by {0}×{0,1}\{0\}\times\{0,1\}{0}×{0,1} by

Va(i,j)={4a2,i=j=(0,0),0,otherwise.V_a(i,j)= \begin{cases} 4a^2,&i=j=(0,0),\\ 0,&\text{otherwise}. \end{cases}Va​(i,j)={4a2,0,​i=j=(0,0),otherwise.​

In the order (0,0),(0,1)(0,0),(0,1)(0,0),(0,1), it is diag⁡(4a2,0)\operatorname{diag}(4a^2,0)diag(4a2,0). In particular, the definition includes a=0a=0a=0 and imposes no positive-definiteness condition.

QAlgorithms.Papers.Independent.Advance50.P37.carrierWeylWithCoin

For every real function v:{0}×{0,1}→Rv:\{0\}\times\{0,1\}\to\mathbb Rv:{0}×{0,1}→R, put

zv=−v(0,1)+i v(0,0)2.z_v=\frac{-v_{(0,1)}+\mathrm i\,v_{(0,0)}}{\sqrt2}.zv​=2​−v(0,1)​+iv(0,0)​​.

This defines a complex matrix indexed by one-mode occupation strings and Boolean values, identifying each occupation string with its value in N\mathbb NN, by

Wv((m,b),(n,c))={Dzv(m,n),b=c,0,b≠c,Dz(m,n)=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!.W_v((m,b),(n,c))= \begin{cases} D_{z_v}(m,n),&b=c,\\ 0,&b\ne c, \end{cases} \qquad D_z(m,n)=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)!}.Wv​((m,b),(n,c))={Dzv​​(m,n),0,​b=c,b=c,​Dz​(m,n)=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​.

Both Boolean diagonal blocks therefore use the same displayed matrix.

QAlgorithms.Papers.Independent.Advance50.P37.controlledDisplacementKernel

For every real aaa, this defines a complex matrix indexed by pairs (m,b)(m,b)(m,b), where m:{0}→Nm:\{0\}\to\mathbb Nm:{0}→N is a one-mode occupation string and bbb is Boolean. Identifying mmm with m0m_0m0​, its entries are

Ca((m,b),(n,c))={Da(m,n),b=c=true,D−a(m,n),b=c=false,0,b≠c,C_a((m,b),(n,c))= \begin{cases} D_a(m,n),&b=c=\mathrm{true},\\ D_{-a}(m,n),&b=c=\mathrm{false},\\ 0,&b\ne c, \end{cases}Ca​((m,b),(n,c))=⎩⎨⎧​Da​(m,n),D−a​(m,n),0,​b=c=true,b=c=false,b=c,​

where

Dz(m,n)=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!.D_z(m,n)=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​(m,n)=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​.

There is no restriction on aaa, including a=0a=0a=0; this is a matrix definition without an additional operator-realization assertion.

QAlgorithms.Papers.Independent.Advance50.P37.entangledSector

For every natural number kkk, consider the complex ℓ2\ell^2ℓ2 space whose coordinates are occupation assignments on two disjoint four-element sets. For a∈N4a\in\mathbb N^4a∈N4, let ∣a,a⟩|a,a\rangle∣a,a⟩ be the coordinate vector equal to 111 at the assignment with tuple aaa on both sets and 000 elsewhere. The entangled sector is the finite sum

Ek=1(k+33)∑a∈{0,…,k}4a0+a1+a2+a3=k∣a,a⟩.E_k= \frac{1}{\sqrt{\binom{k+3}{3}}} \sum_{\substack{a\in\{0,\ldots,k\}^4\\ a_0+a_1+a_2+a_3=k}} |a,a\rangle.Ek​=(3k+3​)​1​a∈{0,…,k}4a0​+a1​+a2​+a3​=k​∑​∣a,a⟩.

The definition includes k=0k=0k=0, when the sum contains exactly the all-zero occupation assignment and E0=∣0,0⟩E_0=|0,0\rangleE0​=∣0,0⟩.

QAlgorithms.Papers.Independent.Advance50.P37.fairNoiseCoin

This defines the complex matrix indexed by the two Boolean values by

Fbc={12,b=c,0,b≠c.F_{bc}= \begin{cases} \frac12,&b=c,\\ 0,&b\ne c. \end{cases}Fbc​={21​,0,​b=c,b=c.​

Thus both diagonal entries are 1/21/21/2 and both off-diagonal entries are zero.

QAlgorithms.Papers.Independent.Advance50.P37.modulationAmplitudes

For every x∈R8x\in\mathbb R^8x∈R8, its modulation amplitudes are the four complex numbers

Aj(x)=x2j+i x2j+1,j∈{0,1,2,3}.A_j(x)=x_{2j}+\mathrm i\,x_{2j+1}, \qquad j\in\{0,1,2,3\}.Aj​(x)=x2j​+ix2j+1​,j∈{0,1,2,3}.

This definition applies to every Euclidean vector xxx, without a restriction on its norm.

QAlgorithms.Papers.Independent.Advance50.P37.noisyCarrierWeyl

For every real aaa and every real function v:{0}×{0,1}→Rv:\{0\}\times\{0,1\}\to\mathbb Rv:{0}×{0,1}→R, let strue=as_{\mathrm{true}}=astrue​=a, sfalse=−as_{\mathrm{false}}=-asfalse​=−a, and zv=(−v(0,1)+iv(0,0))/2z_v=(-v_{(0,1)}+\mathrm i v_{(0,0)})/\sqrt2zv​=(−v(0,1)​+iv(0,0)​)/2​. This defines a complex matrix indexed by one-mode occupation strings and Boolean values, identifying occupation strings with natural numbers, by

W~a,v((m,b),(n,c))={ei2 sbv(0,0)Dzv(m,n),b=c,0,b≠c,\widetilde W_{a,v}((m,b),(n,c))= \begin{cases} e^{\mathrm i\sqrt2\,s_bv_{(0,0)}}D_{z_v}(m,n),&b=c,\\ 0,&b\ne c, \end{cases}Wa,v​((m,b),(n,c))={ei2​sb​v(0,0)​Dzv​​(m,n),0,​b=c,b=c,​

where

Dz(m,n)=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!.D_z(m,n)=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​(m,n)=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​.

The parameters aaa and vvv are unrestricted, including their zero values.

QAlgorithms.Papers.Independent.Advance50.P37.normalizeModulation

For every real α\alphaα and every x∈R8x\in\mathbb R^8x∈R8, define

Nα(x)={2α e0,x=0,2α∥x∥x,x≠0,N_\alpha(x)= \begin{cases} 2\alpha\,e_0,&x=0,\\[2pt] \dfrac{2\alpha}{\|x\|}x,&x\ne0, \end{cases}Nα​(x)=⎩⎨⎧​2αe0​,∥x∥2α​x,​x=0,x=0,​

where e0e_0e0​ has coordinate 111 at index 000 and 000 elsewhere. The parameter α\alphaα may be zero or negative: the result is always zero when α=0\alpha=0α=0, and the nonzero-input branch reverses the direction of xxx when α<0\alpha<0α<0.

QAlgorithms.Papers.Independent.Advance50.P37.sphereCoherentDensity

For every x∈R8x\in\mathbb R^8x∈R8, set Ar=x2r+ix2r+1A_r=x_{2r}+\mathrm i x_{2r+1}Ar​=x2r​+ix2r+1​ for r=0,1,2,3r=0,1,2,3r=0,1,2,3. The sphere coherent density is the complex matrix indexed by occupation tuples i,j∈N4i,j\in\mathbb N^4i,j∈N4 with entries

Cx(i,j)=e−∑r=03∣Ar∣2∏r=03Ar ir Ar‾ jrir!jr!.C_x(i,j)= e^{-\sum_{r=0}^3|A_r|^2} \prod_{r=0}^3 \frac{A_r^{\,i_r}\,\overline{A_r}^{\,j_r}} {\sqrt{i_r!}\sqrt{j_r!}}.Cx​(i,j)=e−∑r=03​∣Ar​∣2r=0∏3​ir​!​jr​!​Arir​​Ar​​jr​​.

Equivalently, it is the product of the four coherent coefficients at occupation iii with the complex conjugate of their product at occupation jjj. Its input is any x∈R8x\in\mathbb R^8x∈R8, with no sphere constraint; when x=0x=0x=0, its sole nonzero entry is 111 at the all-zero row and column.

QAlgorithms.Papers.Independent.Advance50.P37.sphericalBobMarginal

For every real α\alphaα, the spherical Bob marginal is a complex matrix indexed by b,d∈N4b,d\in\mathbb N^4b,d∈N4. Its (b,d)(b,d)(b,d) entry is the infinite sum over a∈N4a\in\mathbb N^4a∈N4 of the virtual matrix entry with row (a,b)(a,b)(a,b) and column (a,d)(a,d)(a,d), where (a,b)(a,b)(a,b) denotes occupation tuple aaa on the first four-element set and bbb on the second. Explicitly, writing T(b)=∑r=03brT(b)=\sum_{r=0}^3 b_rT(b)=∑r=03​br​, this gives

Bα(b,d)={e−4α2(2α)2T(b)T(b)!(T(b)+33),b=d,0,b≠d.B_\alpha(b,d)= \begin{cases} \displaystyle \frac{e^{-4\alpha^2}(2\alpha)^{2T(b)}} {T(b)!\binom{T(b)+3}{3}},&b=d,\\[7pt] 0,&b\ne d. \end{cases}Bα​(b,d)=⎩⎨⎧​T(b)!(3T(b)+3​)e−4α2(2α)2T(b)​,0,​b=d,b=d.​

The definition includes all real α\alphaα; at α=0\alpha=0α=0, only the all-zero diagonal entry is nonzero, equal to 111.

QAlgorithms.Papers.Independent.Advance50.P37.sphericalModulation

For every real α\alphaα, let H7\mathcal H^7H7 be seven-dimensional Hausdorff measure on Euclidean R8\mathbb R^8R8, and let Sα={x:∥x∥=2α}S_\alpha=\{x:\|x\|=2\alpha\}Sα​={x:∥x∥=2α}. The spherical modulation measure is defined by

μα=(H7(Sα))−1 (H7∣Sα).\mu_\alpha=\bigl(\mathcal H^7(S_\alpha)\bigr)^{-1}\, \bigl(\mathcal H^7|_{S_\alpha}\bigr).μα​=(H7(Sα​))−1(H7∣Sα​​).

The inverse and measure scaling use extended nonnegative real arithmetic, including 0−1=∞0^{-1}=\infty0−1=∞ and ∞−1=0\infty^{-1}=0∞−1=0. There is no positivity assumption on α\alphaα: for α<0\alpha<0α<0 the sphere is empty, and for α=0\alpha=0α=0 it is a singleton of zero H7\mathcal H^7H7 measure; in both cases this definition gives the zero measure.

QAlgorithms.Papers.Independent.Advance50.P37.sphericalSchmidtCoefficient

For every real α\alphaα and every occupation tuple n=(n0,n1,n2,n3)∈N4n=(n_0,n_1,n_2,n_3)\in\mathbb N^4n=(n0​,n1​,n2​,n3​)∈N4, let T(n)=∑j=03njT(n)=\sum_{j=0}^3 n_jT(n)=∑j=03​nj​. The spherical Schmidt coefficient is the real number

sα(n)=e−2α2(2α)T(n)T(n)!(T(n)+33).s_\alpha(n)= \frac{e^{-2\alpha^2}(2\alpha)^{T(n)}} {\sqrt{T(n)!}\sqrt{\binom{T(n)+3}{3}}}.sα​(n)=T(n)!​(3T(n)+3​)​e−2α2(2α)T(n)​.

Both denominator factors are positive, including when T(n)=0T(n)=0T(n)=0. No nonnegativity assumption is imposed on α\alphaα; at α=0\alpha=0α=0, the coefficient is 111 for the all-zero tuple and 000 otherwise, using the convention 00=10^0=100=1.

QAlgorithms.Papers.Independent.Advance50.P37.standardModulationGaussian

The standard modulation Gaussian is the measure on Euclidean R8\mathbb R^8R8 obtained by taking the product of eight real Gaussian probability measures, each with mean 000 and variance 111, and transporting it through the coordinate identification from real eight-tuples to Euclidean space. Thus its eight coordinates are independent standard real Gaussian variables.

QAlgorithms.Papers.Independent.Advance50.P37.steeredBobKernel

For every real α\alphaα, every SphericalSteeringPOVM MMM, and every subset S⊆R8S\subseteq\mathbb R^8S⊆R8, this defines a complex matrix Kα,M,SK_{\alpha,M,S}Kα,M,S​ indexed by occupation strings b,d:{0,1,2,3}→Nb,d:\{0,1,2,3\}\to\mathbb Nb,d:{0,1,2,3}→N. Write Nb=∑j=03bjN_b=\sum_{j=0}^3b_jNb​=∑j=03​bj​, let ebe_beb​ be the unit coordinate vector at bbb in ℓ2(N4;C)\ell^2(\mathbb N^4;\mathbb C)ℓ2(N4;C), and set

cα(b)=e−2α2(2α)NbNb!(Nb+33).c_\alpha(b)= \frac{e^{-2\alpha^2}(2\alpha)^{N_b}} {\sqrt{N_b!}\sqrt{\binom{N_b+3}{3}}}.cα​(b)=Nb​!​(3Nb​+3​)​e−2α2(2α)Nb​​.

Then

Kα,M,S(b,d)=cα(b)cα(d) (M.effect(S)eb)d.K_{\alpha,M,S}(b,d) =c_\alpha(b)c_\alpha(d)\,(M.\mathrm{effect}(S)e_b)_d.Kα,M,S​(b,d)=cα​(b)cα​(d)(M.effect(S)eb​)d​.

Here M.effectM.\mathrm{effect}M.effect assigns bounded complex-linear operators to all subsets, sends the empty set to zero and the whole space to the identity, has nonnegative real quadratic forms on measurable sets, and is countably additive in every scalar matrix element on pairwise disjoint measurable sets. Neither positivity of α\alphaα nor measurability of SSS is required by this definition, and the matrix-valued output type itself imposes no density or normalization condition.

QAlgorithms.Papers.Independent.Advance50.P37.steeringEventProbability

For every real α\alphaα, every SphericalSteeringPOVM MMM, and every subset S⊆R8S\subseteq\mathbb R^8S⊆R8, this defines the real number

Pα,M(S)=∑b:{0,1,2,3}→Ncα(b)2 Re⁡((M.effect(S)eb)b),cα(b)=e−2α2(2α)∑jbj(∑jbj)!(∑jbj+33),P_{\alpha,M}(S)= \sum_{b:\{0,1,2,3\}\to\mathbb N} c_\alpha(b)^2\, \operatorname{Re}\bigl((M.\mathrm{effect}(S)e_b)_b\bigr), \qquad c_\alpha(b)= \frac{e^{-2\alpha^2}(2\alpha)^{\sum_jb_j}} {\sqrt{(\sum_jb_j)!}\sqrt{\binom{\sum_jb_j+3}{3}}},Pα,M​(S)=b:{0,1,2,3}→N∑​cα​(b)2Re((M.effect(S)eb​)b​),cα​(b)=(∑j​bj​)!​(3∑j​bj​+3​)​e−2α2(2α)∑j​bj​​,

where ebe_beb​ is the unit coordinate vector in ℓ2(N4;C)\ell^2(\mathbb N^4;\mathbb C)ℓ2(N4;C). The operator assignment M.effectM.\mathrm{effect}M.effect sends the empty set to zero and the whole space to the identity, has nonnegative real quadratic forms for measurable sets, and is countably additive in scalar matrix elements on disjoint measurable sets. The definition allows arbitrary SSS and arbitrary real α\alphaα, supplies no summability hypothesis, and uses the total real infinite-sum operation, which returns zero when the displayed family is not summable.

QAlgorithms.Papers.Independent.Advance50.P37.virtualCoefficient

For every real α\alphaα and every assignment nnn of natural numbers to two disjoint copies of {0,1,2,3}\{0,1,2,3\}{0,1,2,3}, write its restrictions as nL,nR∈N4n^L,n^R\in\mathbb N^4nL,nR∈N4. Its complex virtual coefficient is

vα(n)={e−2α2(2α)∑j=03njL(∑j=03njL)!(∑j=03njL+33),nL=nR,0,nL≠nR,v_\alpha(n)= \begin{cases} \displaystyle \frac{e^{-2\alpha^2}(2\alpha)^{\sum_{j=0}^3 n^L_j}} {\sqrt{\bigl(\sum_{j=0}^3 n^L_j\bigr)!} \sqrt{\binom{\sum_{j=0}^3 n^L_j+3}{3}}}, &n^L=n^R,\\[8pt] 0,&n^L\ne n^R, \end{cases}vα​(n)=⎩⎨⎧​(∑j=03​njL​)!​(3∑j=03​njL​+3​)​e−2α2(2α)∑j=03​njL​​,0,​nL=nR,nL=nR,​

with the real expression embedded in C\mathbb CC. Equality here requires agreement in every coordinate. At α=0\alpha=0α=0, only the assignment that is zero on both copies has nonzero coefficient, equal to 111.

QAlgorithms.Papers.Independent.Advance50.P37.virtualDensity

For every real α\alphaα, define a complex matrix indexed by occupation assignments on two disjoint four-element sets. For row assignment i=(iL,iR)i=(i^L,i^R)i=(iL,iR) and column assignment j=(jL,jR)j=(j^L,j^R)j=(jL,jR), put Ti=∑r=03irLT_i=\sum_{r=0}^3 i^L_rTi​=∑r=03​irL​ and Tj=∑r=03jrLT_j=\sum_{r=0}^3 j^L_rTj​=∑r=03​jrL​. Its entry is

ρα(i,j)={e−4α2(2α)Ti+TjTi!(Ti+33) Tj!(Tj+33),iL=iR and jL=jR,0,otherwise,\rho_\alpha(i,j)= \begin{cases} \displaystyle \frac{e^{-4\alpha^2}(2\alpha)^{T_i+T_j}} {\sqrt{T_i!}\sqrt{\binom{T_i+3}{3}}\, \sqrt{T_j!}\sqrt{\binom{T_j+3}{3}}}, &i^L=i^R\ \text{and}\ j^L=j^R,\\[8pt] 0,&\text{otherwise}, \end{cases}ρα​(i,j)=⎩⎨⎧​Ti​!​(3Ti​+3​)​Tj​!​(3Tj​+3​)​e−4α2(2α)Ti​+Tj​​,0,​iL=iR and jL=jR,otherwise,​

with real values viewed as complex numbers. This is the entrywise product of the virtual coefficient at iii with the complex conjugate of that at jjj; it does not require i=ji=ji=j. At α=0\alpha=0α=0, its sole nonzero entry is 111 at the all-zero row and column.

QAlgorithms.Papers.Independent.Advance50.P37.virtualSummand

For every real α\alphaα and natural number kkk, the virtual summand is the following vector in the complex ℓ2\ell^2ℓ2 space indexed by occupation assignments on two disjoint four-element sets:

Vα,k=e−2α2(2α)kk!(k+33)∑a∈{0,…,k}4a0+a1+a2+a3=k∣a,a⟩,V_{\alpha,k}= \frac{e^{-2\alpha^2}(2\alpha)^k} {\sqrt{k!}\sqrt{\binom{k+3}{3}}} \sum_{\substack{a\in\{0,\ldots,k\}^4\\ a_0+a_1+a_2+a_3=k}} |a,a\rangle,Vα,k​=k!​(3k+3​)​e−2α2(2α)k​a∈{0,…,k}4a0​+a1​+a2​+a3​=k​∑​∣a,a⟩,

where ∣a,a⟩|a,a\rangle∣a,a⟩ is the coordinate vector at the assignment having tuple aaa on both sets. This includes k=0k=0k=0 and all real α\alphaα; when α=0\alpha=0α=0, the summand is the all-zero occupation vector for k=0k=0k=0 and the zero vector for k>0k>0k>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