Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Inseparability criterion for continuous variable systems

Definition
QAlgorithms_Papers_Independent_Intake100_P75

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

prove2quantum

The objects the formalized statements of Inseparability criterion for continuous variable systems (arXiv:quant-ph/9908056) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • pairedKernel: PDF pp.1--2, (1): basis relabeling between the two full oscillator spaces. The two natural occupations are retained without a cutoff.
  • eprImage: PDF p.1, (2): coefficients of |a| X1+X2/a and |a| P1-P2/a. The combinations are formed before imposing their maximal operator domains. Both signs of the real gain are retained; the theorems exclude a=0.
  • centeredEprForm: PDF pp.1--2: extended centered quadratic form of the canonical EPR observable. The nonnegative series is infinity off the maximal domain, rather than a zero-valued nonsummable complex series.
  • varianceOfForm: PDF pp.1--2, (3)--(4): mixed-state variance as the least centered second moment. A positive observable form has the same expectation in every normalized pure-state ensemble of a density. Taking the infimum over all such ensembles therefore implements its trace expectation, including infinity. The ensembles are unrestricted probability measures with the actual operator barycenter; no product decomposition, finite energy, or Gaussianity is assumed. The extended empty infimum is infinity. Every normalized density has a spectral ensemble.
  • eprTotalVariance: PDF pp.1--2, (3): total extended variance of the two canonical EPR operators.
  • tensorUnitaryKernel: PDF p.2: kernel of the genuine tensor product of arbitrary local unitaries. A one-mode occupation is written as Fin 1 -> N, compatibly with the frozen Gaussian-unitary interface.
  • tensorImageCoefficients: PDF p.2: actual local-unitary image coefficients on the full two-mode space.
  • tensorImage: PDF p.2: completed tensor-unitary image. Physical unitaries always give square-summable coefficients; realization is expressly included in the local unitary theorem, so the off-domain fallback is not treated as an observable.
  • transportedEprForm: PDF p.2: form of U A U-adjoint, including transport of its unbounded domain. It is evaluated at U-adjoint psi, while the tested density remains fixed.
  • localCanonicalMatrix: PDF p.3, (9): active block-diagonal phase-space matrix of two local LLUBOs.
  • coherentProductKernel: PDF pp.4--5, (19): coherent product projector at the physical mean x. D((x_q+i x_p)/sqrt(2)) applied to the vacuum has these coefficients.
  • transmissivity: PDF p.5: intensity transmissivity for damping rate eta and finite time t.
  • thermalBeam: PDF p.5, independent thermal noise: real beam splitter for a system and its environment. For 0<=tau<=1 this is a unitary matrix with system amplitude sqrt(tau); the reflected bath amplitude is sqrt(1-tau).
  • thermalBeamKernel: PDF p.5, thermal transmission: second quantization of the physical splitter, using the accepted finite occupation polynomial on every number ket.
  • oscillatorThermalAttenuator: PDF p.5: actual local thermal attenuator, computed by appending an independent Gibbs density, conjugating by the number-preserving beam splitter and tracing out the environment. It is a map of every input kernel, not a prescribed output covariance. Only tau in [0,1] and finite nbar>=0 are used in source statements. This full oscillator map is distinct from the frozen Information100.P08.thermalChannel, whose input and output are qubits (Fin 2), not oscillator occupations (Nat).
  • independentChannels: PDF p.5: independent application of two local channels to the bipartite kernel; off-diagonal input blocks are retained.
  • thermalOutput: PDF p.5: transmission of the printed exp[-r(a1†a2†-a1a2)] vacuum. The accepted positive-r vector has the opposite sign, so the input is -r. No desired covariance or separability property is used to define this output.
  • thermalLifetime: PDF p.5, (20): finite entanglement-death threshold, used only for eta,nbar>0. Zero temperature has its own theorem and is never evaluated through this division.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P45
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P39
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier18_P14
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P26

/-!
Duan--Giedke--Cirac--Zoller, quant-ph/9908056v2, PDF pp.1--5.
Full completed oscillator spaces, hbar=1, vacuum variance 1/2 and full
anticommutator covariance I. Accepted paper modules supply frozen definitions.
The unrestricted standard-II lemma and prescribed-gain theorem are deferred:
the printed ratios have no specified boundary meaning. No boundary restriction
is silently added. Compilation and independent moderation are pending.
-/

noncomputable section

open MeasureTheory Filter
open scoped BigOperators ENNReal Topology Matrix

attribute [local instance] Classical.propDecidable Classical.decEq

namespace QAlgorithms.Papers.Independent.Intake100.P75

open QAlgorithms.RealRegisters (Hilbert)
open QAlgorithms.Papers.Independent.Dependency50.P33
  (State IsDensity IsSeparable IsBarycenter rankOne productCoeff)
open QAlgorithms.Papers.Independent.Claimed50.P19
  (Cov FockIndex DensityKernel GaussianWithCovariance standardFormCovariance
   modeCovarianceBlock productWeyl CharacteristicSummable multimodeWeylTrace
   covarianceCharacteristicValue)
open QAlgorithms.Papers.Independent.Next46.P45
  (TwoMode PureVector Decomposes ladderCoefficients squeezedVector
   squeezedCoefficients GaussianShiftLaw shiftArgument)
open QAlgorithms.Papers.Independent.Renew46.P39 (AffineMultimodeGaussianUnitary)
open QAlgorithms.Papers.Independent.Frontier30.P14
  (unitaryCoeff conjugateKernel partialRight)
open QAlgorithms.Papers.Independent.Frontier18.P14 (occupationOutput)
open QAlgorithms.Papers.Independent.Gap48.P26 (thermalKernel)

local instance : MeasurableSpace TwoMode := borel TwoMode

/-- PDF pp.1--2, (1): basis relabeling between the two full oscillator spaces.
The two natural occupations are retained without a cutoff. -/
def pairedKernel (rho : DensityKernel 2) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
  fun i j => rho ![i.1, i.2] ![j.1, j.2]

/-- PDF p.1, (2): coefficients of |a| X1+X2/a and |a| P1-P2/a.
The combinations are formed before imposing their maximal operator domains.
Both signs of the real gain are retained; the theorems exclude a=0. -/
def eprImage (momentum : Bool) (a : ℝ) (psi : TwoMode)
    (i : FockIndex 2) : ℂ :=
  if momentum then
    (Complex.I / (Real.sqrt 2 : ℂ)) *
      (((|a| : ℝ) : ℂ) * (ladderCoefficients true 0 psi i - ladderCoefficients false 0 psi i) -
       (a : ℂ)⁻¹ * (ladderCoefficients true 1 psi i - ladderCoefficients false 1 psi i))
  else (1 / (Real.sqrt 2 : ℂ)) *
    (((|a| : ℝ) : ℂ) * (ladderCoefficients true 0 psi i + ladderCoefficients false 0 psi i) +
     (a : ℂ)⁻¹ * (ladderCoefficients true 1 psi i + ladderCoefficients false 1 psi i))

/-- PDF pp.1--2: extended centered quadratic form of the canonical EPR observable.
The nonnegative series is infinity off the maximal domain, rather than a
zero-valued nonsummable complex series. -/
def centeredEprForm (momentum : Bool) (a center : ℝ) (psi : TwoMode) : ℝ≥0∞ :=
  ∑' i, ENNReal.ofReal (Complex.normSq (eprImage momentum a psi i - (center : ℂ) * psi i))

/-- PDF pp.1--2, (3)--(4): mixed-state variance as the least centered second
moment. A positive observable form has the same expectation in every normalized
pure-state ensemble of a density. Taking the infimum over all such ensembles
therefore implements its trace expectation, including infinity. The ensembles
are unrestricted probability measures with the actual operator barycenter;
no product decomposition, finite energy, or Gaussianity is assumed. The extended
empty infimum is infinity. Every normalized density has a spectral ensemble. -/
def varianceOfForm (form : ℝ → TwoMode → ℝ≥0∞) (rho : DensityKernel 2) : ℝ≥0∞ :=
  ⨅ center : ℝ,
    ⨅ mu : {mu : Measure PureVector // Decomposes mu rho},
      ∫⁻ psi, form center psi.val ∂mu.val

/-- PDF pp.1--2, (3): total extended variance of the two canonical EPR operators. -/
def eprTotalVariance (rho : DensityKernel 2) (a : ℝ) : ℝ≥0∞ :=
  varianceOfForm (centeredEprForm false a) rho +
    varianceOfForm (centeredEprForm true a) rho

/-- PDF p.2: kernel of the genuine tensor product of arbitrary local unitaries.
A one-mode occupation is written as Fin 1 -> N, compatibly with the frozen
Gaussian-unitary interface. -/
def tensorUnitaryKernel
    (U V : Hilbert (FockIndex 1) ≃ₗᵢ[ℂ] Hilbert (FockIndex 1)) : DensityKernel 2 :=
  fun i j => unitaryCoeff U (fun _ => i 0) (fun _ => j 0) *
    unitaryCoeff V (fun _ => i 1) (fun _ => j 1)

/-- PDF p.2: actual local-unitary image coefficients on the full two-mode space. -/
def tensorImageCoefficients
    (U V : Hilbert (FockIndex 1) ≃ₗᵢ[ℂ] Hilbert (FockIndex 1)) (psi : TwoMode)
    (i : FockIndex 2) : ℂ :=
  ∑' j, tensorUnitaryKernel U V i j * psi j

/-- PDF p.2: completed tensor-unitary image. Physical unitaries always give
square-summable coefficients; realization is expressly included in the local
unitary theorem, so the off-domain fallback is not treated as an observable. -/
def tensorImage
    (U V : Hilbert (FockIndex 1) ≃ₗᵢ[ℂ] Hilbert (FockIndex 1)) (psi : TwoMode) : TwoMode :=
  if h : Memℓp (tensorImageCoefficients U V psi) 2 then
    ⟨tensorImageCoefficients U V psi, h⟩ else 0

/-- PDF p.2: form of U A U-adjoint, including transport of its unbounded domain.
It is evaluated at U-adjoint psi, while the tested density remains fixed. -/
def transportedEprForm
    (U V : Hilbert (FockIndex 1) ≃ₗᵢ[ℂ] Hilbert (FockIndex 1))
    (momentum : Bool) (a center : ℝ) (psi : TwoMode) : ℝ≥0∞ :=
  centeredEprForm momentum a center (tensorImage U.symm V.symm psi)

/-- PDF p.3, (9): active block-diagonal phase-space matrix of two local LLUBOs. -/
def localCanonicalMatrix (U V : AffineMultimodeGaussianUnitary 1) : Cov 2 :=
  fun i j => if i.1 = j.1 then
    (if i.1 = 0 then U.symplecticMatrix (0, i.2) (0, j.2)
     else V.symplecticMatrix (0, i.2) (0, j.2)) else 0

/-- PDF pp.4--5, (19): coherent product projector at the physical mean x.
D((x_q+i x_p)/sqrt(2)) applied to the vacuum has these coefficients. -/
def coherentProductKernel (x : (Fin 2 × Fin 2) → ℝ) : DensityKernel 2 :=
  fun i j => productWeyl (shiftArgument x) i (fun _ => 0) *
    star (productWeyl (shiftArgument x) j (fun _ => 0))

/-- PDF p.5: intensity transmissivity for damping rate eta and finite time t. -/
def transmissivity (eta t : ℝ) : ℝ := Real.exp (-2 * eta * t)

/-- PDF p.5, independent thermal noise: real beam splitter for a system and
its environment. For 0<=tau<=1 this is a unitary matrix with system amplitude
sqrt(tau); the reflected bath amplitude is sqrt(1-tau). -/
def thermalBeam (tau : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
  !![(Real.sqrt tau : ℂ), (Real.sqrt (1 - tau) : ℂ);
     -(Real.sqrt (1 - tau) : ℂ), (Real.sqrt tau : ℂ)]

/-- PDF p.5, thermal transmission: second quantization of the physical splitter,
using the accepted finite occupation polynomial on every number ket. -/
def thermalBeamKernel (tau : ℝ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
  fun i j => occupationOutput (thermalBeam tau) j.1 j.2 i

/-- PDF p.5: actual local thermal attenuator, computed by appending an independent
Gibbs density, conjugating by the number-preserving beam splitter and tracing
out the environment. It is a map of every input kernel, not a prescribed output
covariance. Only tau in [0,1] and finite nbar>=0 are used in source statements.
This full oscillator map is distinct from the frozen Information100.P08.thermalChannel,
whose input and output are qubits (Fin 2), not oscillator occupations (Nat). -/
def oscillatorThermalAttenuator (tau nbar : ℝ) (X : Matrix ℕ ℕ ℂ) : Matrix ℕ ℕ ℂ :=
  partialRight (conjugateKernel (thermalBeamKernel tau)
    (productCoeff X (thermalKernel nbar)))

/-- PDF p.5: independent application of two local channels to the bipartite
kernel; off-diagonal input blocks are retained. -/
def independentChannels
    (Phi Psi : Matrix ℕ ℕ ℂ → Matrix ℕ ℕ ℂ)
    (rho : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
  fun i j => Phi (fun a b => Psi (fun c d => rho (a, c) (b, d)) i.2 j.2) i.1 j.1

/-- PDF p.5: transmission of the printed exp[-r(a1†a2†-a1a2)] vacuum.
The accepted positive-r vector has the opposite sign, so the input is -r.
No desired covariance or separability property is used to define this output. -/
def thermalOutput (r eta nbar t : ℝ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
  let Phi := oscillatorThermalAttenuator (transmissivity eta t) nbar
  independentChannels Phi Phi (pairedKernel (rankOne (squeezedVector (-r))))

/-- PDF p.5, (20): finite entanglement-death threshold, used only for eta,nbar>0.
Zero temperature has its own theorem and is never evaluated through this division. -/
def thermalLifetime (r eta nbar : ℝ) : ℝ :=
  Real.log (1 + (1 - Real.exp (-2 * r)) / (2 * nbar)) / (2 * eta)

/-! Sanity checks for new definitions; no source theorem is proved here. -/

example (rho : DensityKernel 2) : pairedKernel rho (0, 1) (2, 3) = rho ![0, 1] ![2, 3] := rfl

example (momentum : Bool) (a center : ℝ) : centeredEprForm momentum a center 0 = 0 := by
  simp [centeredEprForm, eprImage, ladderCoefficients]

example (rho : DensityKernel 2) :
    varianceOfForm (fun _ _ => (⊤ : ℝ≥0∞)) rho = ⊤ := by
  simp only [varianceOfForm]
  have cost (mu : {mu : Measure PureVector // Decomposes mu rho}) :
      (∫⁻ _ : PureVector, (⊤ : ℝ≥0∞) ∂mu.val) = ⊤ := by
    letI : IsProbabilityMeasure mu.val := mu.property.1
    simp
  simp only [cost, iInf_top]

example (rho : DensityKernel 2) (a : ℝ) :
    eprTotalVariance rho a = varianceOfForm (centeredEprForm false a) rho +
      varianceOfForm (centeredEprForm true a) rho := rfl

example (U V : Hilbert (FockIndex 1) ≃ₗᵢ[ℂ] Hilbert (FockIndex 1)) :
    tensorImageCoefficients U V 0 = 0 := by
  funext i
  simp [tensorImageCoefficients]

example (U V : Hilbert (FockIndex 1) ≃ₗᵢ[ℂ] Hilbert (FockIndex 1))
    (momentum : Bool) (a center : ℝ) (psi : TwoMode) :
    transportedEprForm U V momentum a center psi =
      centeredEprForm momentum a center (tensorImage U.symm V.symm psi) := rfl

example (U V : AffineMultimodeGaussianUnitary 1) :
    localCanonicalMatrix U V (0, 0) (1, 0) = 0 := by
  simp [localCanonicalMatrix]

example (x : (Fin 2 × Fin 2) → ℝ) (i : FockIndex 2) :
    coherentProductKernel x i i =
      productWeyl (shiftArgument x) i (fun _ => 0) *
        star (productWeyl (shiftArgument x) i (fun _ => 0)) := rfl

example (eta : ℝ) : transmissivity eta 0 = 1 := by simp [transmissivity]

example : thermalBeam 1 = 1 := by
  ext i j
  fin_cases i <;> fin_cases j <;> norm_num [thermalBeam]

example (tau : ℝ) : thermalBeamKernel tau (0, 0) (0, 0) = 1 := by
  simp [thermalBeamKernel, QAlgorithms.Papers.Independent.Dependency50.P34.fockOutput,
    QAlgorithms.Papers.Independent.Dependency50.P34.fockKet]

example (tau nbar : ℝ) : oscillatorThermalAttenuator tau nbar 0 = 0 := by
  funext i j
  simp [oscillatorThermalAttenuator, partialRight, conjugateKernel, productCoeff]

example (r eta : ℝ) : thermalLifetime 0 eta r = 0 := by simp [thermalLifetime]

example (rho : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ) :
    independentChannels id id rho = rho := rfl

end QAlgorithms.Papers.Independent.Intake100.P75
Source
Inseparability criterion for continuous variable systems, arXiv:quant-ph/9908056v2, https://arxiv.org/abs/quant-ph/9908056v2
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P75.centeredEprForm

For any Boolean bbb, real numbers a,ca,ca,c, and square-summable complex sequence ψ\psiψ on N2\mathbb N^2N2, define Cj(ψ)i=0C_j(\psi)_i=0Cj​(ψ)i​=0 when ij=0i_j=0ij​=0, Cj(ψ)i=ij ψi[j←ij−1]C_j(\psi)_i=\sqrt{i_j}\,\psi_{i[j\leftarrow i_j-1]}Cj​(ψ)i​=ij​​ψi[j←ij​−1]​ otherwise, and Aj(ψ)i=ij+1 ψi[j←ij+1]A_j(\psi)_i=\sqrt{i_j+1}\,\psi_{i[j\leftarrow i_j+1]}Aj​(ψ)i​=ij​+1​ψi[j←ij​+1]​. Put

Eb,a(ψ)i={i2[∣a∣(C0−A0)(ψ)i−a−1(C1−A1)(ψ)i],b=true,12[∣a∣(C0+A0)(ψ)i+a−1(C1+A1)(ψ)i],b=false.E_{b,a}(\psi)_i= \begin{cases} \displaystyle\frac{\mathrm i}{\sqrt2} \left[|a|(C_0-A_0)(\psi)_i-a^{-1}(C_1-A_1)(\psi)_i\right], &b=\mathrm{true},\\[5pt] \displaystyle\frac1{\sqrt2} \left[|a|(C_0+A_0)(\psi)_i+a^{-1}(C_1+A_1)(\psi)_i\right], &b=\mathrm{false}. \end{cases}Eb,a​(ψ)i​=⎩⎨⎧​2​i​[∣a∣(C0​−A0​)(ψ)i​−a−1(C1​−A1​)(ψ)i​],2​1​[∣a∣(C0​+A0​)(ψ)i​+a−1(C1​+A1​)(ψ)i​],​b=true,b=false.​

The declaration defines

centeredEprForm⁡(b,a,c,ψ)=∑i∈N2∣Eb,a(ψ)i−cψi∣2∈[0,∞].\operatorname{centeredEprForm}(b,a,c,\psi) =\sum_{i\in\mathbb N^2}\left|E_{b,a}(\psi)_i-c\psi_i\right|^2 \in[0,\infty].centeredEprForm(b,a,c,ψ)=i∈N2∑​∣Eb,a​(ψ)i​−cψi​∣2∈[0,∞].

Each squared modulus is inserted into the extended nonnegative reals; the sum may be infinite, and neither normalization nor additional summability is assumed. Here 0−1=00^{-1}=00−1=0; consequently, at a=0a=0a=0 the value is c2∥ψ∥2c^2\|\psi\|^2c2∥ψ∥2.

QAlgorithms.Papers.Independent.Intake100.P75.coherentProductKernel

For any real function x:{0,1}×{0,1}→Rx:\{0,1\}\times\{0,1\}\to\mathbb Rx:{0,1}×{0,1}→R, put zk=(xk,0+ixk,1)/2z_k=(x_{k,0}+\mathrm i x_{k,1})/\sqrt2zk​=(xk,0​+ixk,1​)/2​ for k=0,1k=0,1k=0,1. For two-coordinate natural-number indices i=(i0,i1)i=(i_0,i_1)i=(i0​,i1​) and j=(j0,j1)j=(j_0,j_1)j=(j0​,j1​), the declaration defines the complex matrix

coherentProductKernel⁡(x)ij=(∏k=01D(zk)ik,0)(∏k=01D(zk)jk,0)‾,D(z)m,0=e−∣z∣2/2zmm!.\operatorname{coherentProductKernel}(x)_{ij} = \left(\prod_{k=0}^1D(z_k)_{i_k,0}\right) \overline{\left(\prod_{k=0}^1D(z_k)_{j_k,0}\right)}, \qquad D(z)_{m,0}=e^{-|z|^2/2}\frac{z^m}{\sqrt{m!}}.coherentProductKernel(x)ij​=(k=0∏1​D(zk​)ik​,0​)(k=0∏1​D(zk​)jk​,0​)​,D(z)m,0​=e−∣z∣2/2m!​zm​.

Equivalently, its entries are

e−(∣z0∣2+∣z1∣2)∏k=01zkikzk‾ jkik!jk!.e^{-(|z_0|^2+|z_1|^2)} \prod_{k=0}^1 \frac{z_k^{i_k}\overline{z_k}^{\,j_k}} {\sqrt{i_k!}\sqrt{j_k!}}.e−(∣z0​∣2+∣z1​∣2)k=0∏1​ik​!​jk​!​zkik​​zk​​jk​​.

All real xxx and all natural-number occupations, including zero, are allowed; powers with exponent zero equal one, including 000^000.

QAlgorithms.Papers.Independent.Intake100.P75.eprImage

For a Boolean bbb, arbitrary real aaa, square-summable complex sequence ψ\psiψ indexed by i=(i0,i1)∈N2i=(i_0,i_1)\in\mathbb N^2i=(i0​,i1​)∈N2, and any such index iii, define

Cj(ψ)i={0,ij=0,ij ψi[j←ij−1],ij>0,Aj(ψ)i=ij+1 ψi[j←ij+1](j=0,1),C_j(\psi)_i= \begin{cases} 0,&i_j=0,\\ \sqrt{i_j}\,\psi_{i[j\leftarrow i_j-1]},&i_j>0, \end{cases} \qquad A_j(\psi)_i=\sqrt{i_j+1}\,\psi_{i[j\leftarrow i_j+1]} \quad(j=0,1),Cj​(ψ)i​={0,ij​​ψi[j←ij​−1]​,​ij​=0,ij​>0,​Aj​(ψ)i​=ij​+1​ψi[j←ij​+1]​(j=0,1),

where the updated index agrees with iii in the other coordinate. The declaration defines the complex number

eprImage⁡(b,a,ψ)i={i2[∣a∣(C0(ψ)i−A0(ψ)i)−a−1(C1(ψ)i−A1(ψ)i)],b=true,12[∣a∣(C0(ψ)i+A0(ψ)i)+a−1(C1(ψ)i+A1(ψ)i)],b=false.\operatorname{eprImage}(b,a,\psi)_i= \begin{cases} \displaystyle\frac{\mathrm i}{\sqrt2} \left[|a|\bigl(C_0(\psi)_i-A_0(\psi)_i\bigr) -a^{-1}\bigl(C_1(\psi)_i-A_1(\psi)_i\bigr)\right], &b=\mathrm{true},\\[6pt] \displaystyle\frac1{\sqrt2} \left[|a|\bigl(C_0(\psi)_i+A_0(\psi)_i\bigr) +a^{-1}\bigl(C_1(\psi)_i+A_1(\psi)_i\bigr)\right], &b=\mathrm{false}. \end{cases}eprImage(b,a,ψ)i​=⎩⎨⎧​2​i​[∣a∣(C0​(ψ)i​−A0​(ψ)i​)−a−1(C1​(ψ)i​−A1​(ψ)i​)],2​1​[∣a∣(C0​(ψ)i​+A0​(ψ)i​)+a−1(C1​(ψ)i​+A1​(ψ)i​)],​b=true,b=false.​

No unit-norm assumption is imposed on ψ\psiψ, and the resulting sequence is not required to be square-summable. The reciprocal is total: at a=0a=0a=0, it equals zero, so both branches give zero.

QAlgorithms.Papers.Independent.Intake100.P75.eprTotalVariance

For any complex matrix ρ\rhoρ indexed by N2\mathbb N^2N2 and any real aaa, let D(ρ)\mathcal D(\rho)D(ρ) be the probability measures on the Borel unit sphere of ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C) for which every ψiψj‾\psi_i\overline{\psi_j}ψi​ψj​​ is integrable and has integral ρij\rho_{ij}ρij​. For ψ∈ℓ2(N2;C)\psi\in\ell^2(\mathbb N^2;\mathbb C)ψ∈ℓ2(N2;C), set Cj(ψ)i=0C_j(\psi)_i=0Cj​(ψ)i​=0 if ij=0i_j=0ij​=0, Cj(ψ)i=ijψi[j←ij−1]C_j(\psi)_i=\sqrt{i_j}\psi_{i[j\leftarrow i_j-1]}Cj​(ψ)i​=ij​​ψi[j←ij​−1]​ otherwise, and Aj(ψ)i=ij+1ψi[j←ij+1]A_j(\psi)_i=\sqrt{i_j+1}\psi_{i[j\leftarrow i_j+1]}Aj​(ψ)i​=ij​+1​ψi[j←ij​+1]​, and define

Qa(ψ)i=∣a∣(C0+A0)(ψ)i+a−1(C1+A1)(ψ)i2,Pa(ψ)i=i2[∣a∣(C0−A0)(ψ)i−a−1(C1−A1)(ψ)i].Q_a(\psi)_i=\frac{|a|(C_0+A_0)(\psi)_i+a^{-1}(C_1+A_1)(\psi)_i}{\sqrt2}, \qquad P_a(\psi)_i=\frac{\mathrm i}{\sqrt2} \left[|a|(C_0-A_0)(\psi)_i-a^{-1}(C_1-A_1)(\psi)_i\right].Qa​(ψ)i​=2​∣a∣(C0​+A0​)(ψ)i​+a−1(C1​+A1​)(ψ)i​​,Pa​(ψ)i​=2​i​[∣a∣(C0​−A0​)(ψ)i​−a−1(C1​−A1​)(ψ)i​].

The declaration defines

eprTotalVariance⁡(ρ,a)=inf⁡c∈Rinf⁡μ∈D(ρ)∫−∑i∣Qa(ψ)i−cψi∣2 dμ+inf⁡d∈Rinf⁡ν∈D(ρ)∫−∑i∣Pa(ψ)i−dψi∣2 dν.\operatorname{eprTotalVariance}(\rho,a)= \inf_{c\in\mathbb R}\inf_{\mu\in\mathcal D(\rho)} \int^-\sum_i|Q_a(\psi)_i-c\psi_i|^2\,d\mu + \inf_{d\in\mathbb R}\inf_{\nu\in\mathcal D(\rho)} \int^-\sum_i|P_a(\psi)_i-d\psi_i|^2\,d\nu.eprTotalVariance(ρ,a)=c∈Rinf​μ∈D(ρ)inf​∫−i∑​∣Qa​(ψ)i​−cψi​∣2dμ+d∈Rinf​ν∈D(ρ)inf​∫−i∑​∣Pa​(ψ)i​−dψi​∣2dν.

The two infima choose their centers and measures independently. All sums, integrals, and the addition take values in [0,∞][0,\infty][0,∞]; an empty decomposition class gives +∞+\infty+∞. No density assumption on ρ\rhoρ or nonzero assumption on aaa is imposed, and a−1=0a^{-1}=0a−1=0 at a=0a=0a=0.

QAlgorithms.Papers.Independent.Intake100.P75.independentChannels

For any two functions Φ,Ψ\Phi,\PsiΦ,Ψ from complex N×N\mathbb N\times\mathbb NN×N matrices to complex N×N\mathbb N\times\mathbb NN×N matrices, and any complex matrix ρ\rhoρ indexed by N2\mathbb N^2N2, this defines a matrix IΦ,Ψ(ρ)\mathcal I_{\Phi,\Psi}(\rho)IΦ,Ψ​(ρ) indexed by N2\mathbb N^2N2 through

IΦ,Ψ(ρ)(i1,i2),(j1,j2)=Φ ⁣((a,b)⟼Ψ ⁣((c,d)⟼ρ(a,c),(b,d))i2j2)i1j1.\mathcal I_{\Phi,\Psi}(\rho)_{(i_1,i_2),(j_1,j_2)} = \Phi\!\left( (a,b)\longmapsto \Psi\!\left((c,d)\longmapsto\rho_{(a,c),(b,d)}\right)_{i_2j_2} \right)_{i_1j_1}.IΦ,Ψ​(ρ)(i1​,i2​),(j1​,j2​)​=Φ((a,b)⟼Ψ((c,d)⟼ρ(a,c),(b,d)​)i2​j2​​)i1​j1​​.

Thus Ψ\PsiΨ is first applied to each matrix obtained by fixing the first coordinates a,ba,ba,b, and Φ\PhiΦ is then applied to the matrix of the selected resulting entries. No linearity, continuity, positivity, normalization, or channel hypothesis is imposed on either function, and no hypothesis is imposed on ρ\rhoρ.

QAlgorithms.Papers.Independent.Intake100.P75.localCanonicalMatrix

For any two one-mode affine Gaussian unitary data U,VU,VU,V, each datum R∈{U,V}R\in\{U,V\}R∈{U,V} consists of a real 2×22\times22×2 matrix SRS_RSR​, a real displacement vector dRd_RdR​, and a surjective complex-linear isometry UR\mathcal U_RUR​ on one-mode square-summable complex sequences, with SRJSRT=JS_RJS_R^{\mathsf T}=JSR​JSRT​=J for J=(01−10)J=\left(\begin{smallmatrix}0&1\\-1&0\end{smallmatrix}\right)J=(0−1​10​), and the following coefficientwise action: for every v∈R2v\in\mathbb R^2v∈R2,

CUR−1(W(v))=ei(dR⋅v)W(SRTv),CT(X)mn=∑r(Ter)m(∑sXrs(Tes)n‾).\mathcal C_{\mathcal U_R^{-1}}(W(v)) =e^{\mathrm i(d_R\cdot v)}W(S_R^{\mathsf T}v), \qquad \mathcal C_T(X)_{mn}=\sum_r(Te_r)_m \left(\sum_sX_{rs}\overline{(Te_s)_n}\right).CUR−1​​(W(v))=ei(dR​⋅v)W(SRT​v),CT​(X)mn​=r∑​(Ter​)m​(s∑​Xrs​(Tes​)n​​).

Here ere_rer​ is the unit coordinate vector, W(v)mn=D((−v1+iv0)/2)mnW(v)_{mn}=D((-v_1+\mathrm i v_0)/\sqrt2)_{mn}W(v)mn​=D((−v1​+iv0​)/2​)mn​, and

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

For these inputs, the declaration defines the real matrix indexed by (r,k),(s,l)∈{0,1}×{0,1}(r,k),(s,l)\in\{0,1\}\times\{0,1\}(r,k),(s,l)∈{0,1}×{0,1} as

localCanonicalMatrix⁡(U,V)(r,k),(s,l)={(SU)kl,r=s=0,(SV)kl,r=s=1,0,r≠s.\operatorname{localCanonicalMatrix}(U,V)_{(r,k),(s,l)} = \begin{cases} (S_U)_{kl},&r=s=0,\\ (S_V)_{kl},&r=s=1,\\ 0,&r\ne s. \end{cases}localCanonicalMatrix(U,V)(r,k),(s,l)​=⎩⎨⎧​(SU​)kl​,(SV​)kl​,0,​r=s=0,r=s=1,r=s.​

Thus its value uses only the two symplectic matrices, although the inputs also contain the displacement and unitary data with the stated constraints.

QAlgorithms.Papers.Independent.Intake100.P75.oscillatorThermalAttenuator

For arbitrary real τ,nˉ\tau,\bar nτ,nˉ and any complex matrix XXX indexed by N\mathbb NN, this defines a complex matrix Aτ,nˉ(X)\mathcal A_{\tau,\bar n}(X)Aτ,nˉ​(X) indexed by N\mathbb NN. Put

tnˉ(a,b)={(nˉ/(nˉ+1))anˉ+1,a=b,0,a≠b,t_{\bar n}(a,b)= \begin{cases} \displaystyle\frac{(\bar n/(\bar n+1))^a}{\bar n+1},&a=b,\\ 0,&a\ne b, \end{cases}tnˉ​(a,b)=⎩⎨⎧​nˉ+1(nˉ/(nˉ+1))a​,0,​a=b,a=b,​

and, with s=τs=\sqrt{\tau}s=τ​ and h=1−τh=\sqrt{1-\tau}h=1−τ​, define

Kτ((p,q),(m,n))=∑k=0m∑ℓ=0n(mk)(nℓ)(k+ℓ)! (m−k+n−ℓ)!m! n! sk(−h)m−khℓsn−ℓ1{(p,q)=(k+ℓ,m−k+n−ℓ)}.K_\tau((p,q),(m,n)) = \sum_{k=0}^{m}\sum_{\ell=0}^{n} \binom{m}{k}\binom{n}{\ell} \sqrt{\frac{(k+\ell)!\,(m-k+n-\ell)!}{m!\,n!}}\, s^k(-h)^{m-k}h^\ell s^{n-\ell} \mathbf1_{\{(p,q)=(k+\ell,m-k+n-\ell)\}}.Kτ​((p,q),(m,n))=k=0∑m​ℓ=0∑n​(km​)(ℓn​)m!n!(k+ℓ)!(m−k+n−ℓ)!​​sk(−h)m−khℓsn−ℓ1{(p,q)=(k+ℓ,m−k+n−ℓ)}​.

The resulting entries are the following nested sums, in the displayed order:

Aτ,nˉ(X)ij=∑e∈N∑a∈N2Kτ((i,e),a)(∑b∈N2Xa1b1 tnˉ(a2,b2) Kτ((j,e),b)‾).\mathcal A_{\tau,\bar n}(X)_{ij} = \sum_{e\in\mathbb N} \sum_{a\in\mathbb N^2} K_\tau((i,e),a) \left( \sum_{b\in\mathbb N^2} X_{a_1b_1}\,t_{\bar n}(a_2,b_2)\, \overline{K_\tau((j,e),b)} \right).Aτ,nˉ​(X)ij​=e∈N∑​a∈N2∑​Kτ​((i,e),a)(b∈N2∑​Xa1​b1​​tnˉ​(a2​,b2​)Kτ​((j,e),b)​).

There are no density, positivity, parameter-range, or summability hypotheses. Each infinite complex sum uses the total convention that a nonsummable family has sum 000. Real square roots of negative numbers are 000, division by 000 is 000, and zeroth powers are 111; in particular, t−1t_{-1}t−1​ is the zero matrix.

QAlgorithms.Papers.Independent.Intake100.P75.pairedKernel

For any complex matrix ρ\rhoρ indexed by pairs of natural numbers represented as functions {0,1}→N\{0,1\}\to\mathbb N{0,1}→N, this defines a complex matrix indexed by N×N\mathbb N\times\mathbb NN×N by relabelling its entries:

pairedKernel⁡(ρ)(m,n),(p,q)=ρ[m,n],[p,q].\operatorname{pairedKernel}(\rho)_{(m,n),(p,q)} =\rho_{[m,n],[p,q]}.pairedKernel(ρ)(m,n),(p,q)​=ρ[m,n],[p,q]​.

There is no positivity, normalization, or summability assumption on ρ\rhoρ.

QAlgorithms.Papers.Independent.Intake100.P75.tensorImage

For any two surjective complex-linear isometries U,VU,VU,V on the square-summable complex sequences indexed by one-coordinate natural-number occupations, and any ψ∈ℓ2(N2;C)\psi\in\ell^2(\mathbb N^2;\mathbb C)ψ∈ℓ2(N2;C), let eme_mem​ denote the sequence supported at occupation mmm, with value one there, and define

hi=∑j∈N2(Uej0)i0 (Vej1)i1 ψj.h_i=\sum_{j\in\mathbb N^2} (Ue_{j_0})_{i_0}\,(Ve_{j_1})_{i_1}\,\psi_j.hi​=j∈N2∑​(Uej0​​)i0​​(Vej1​​)i1​​ψj​.

The declaration returns the element of ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C) with coordinates hih_ihi​ if this coordinate sequence is square-summable; otherwise it returns the zero vector. No normalization assumption on ψ\psiψ is imposed. The coordinate sums use the total complex infinite-sum operation, which gives zero for a nonsummable series; the definition itself does not assert that either summability test succeeds.

QAlgorithms.Papers.Independent.Intake100.P75.tensorImageCoefficients

For any two surjective complex-linear isometries U,VU,VU,V on the square-summable complex sequences indexed by one-coordinate natural-number occupations, any ψ∈ℓ2(N2;C)\psi\in\ell^2(\mathbb N^2;\mathbb C)ψ∈ℓ2(N2;C), and any i=(i0,i1)∈N2i=(i_0,i_1)\in\mathbb N^2i=(i0​,i1​)∈N2, let eme_mem​ be the sequence supported at occupation mmm, with value one there. The declaration defines

tensorImageCoefficients⁡(U,V,ψ)i=∑j∈N2(Uej0)i0 (Vej1)i1 ψj.\operatorname{tensorImageCoefficients}(U,V,\psi)_i =\sum_{j\in\mathbb N^2} (Ue_{j_0})_{i_0}\,(Ve_{j_1})_{i_1}\,\psi_j.tensorImageCoefficients(U,V,ψ)i​=j∈N2∑​(Uej0​​)i0​​(Vej1​​)i1​​ψj​.

No unit-norm assumption on ψ\psiψ, or explicit summability hypothesis for this complex series, is required. The sum is the total infinite-sum operation, whose value is zero if the series is not summable.

QAlgorithms.Papers.Independent.Intake100.P75.tensorUnitaryKernel

For any two surjective complex-linear isometries U,VU,VU,V of ℓ2({{0}→N};C)\ell^2(\{\{0\}\to\mathbb N\};\mathbb C)ℓ2({{0}→N};C), identify a one-coordinate occupation function with its natural-number value and write eme_mem​ for the sequence equal to one at occupation mmm and zero elsewhere. The declaration defines a complex matrix on two-coordinate occupation indices i=(i0,i1)i=(i_0,i_1)i=(i0​,i1​) and j=(j0,j1)j=(j_0,j_1)j=(j0​,j1​) by

tensorUnitaryKernel⁡(U,V)ij=(Uej0)i0 (Vej1)i1.\operatorname{tensorUnitaryKernel}(U,V)_{ij} =(Ue_{j_0})_{i_0}\,(Ve_{j_1})_{i_1}.tensorUnitaryKernel(U,V)ij​=(Uej0​​)i0​​(Vej1​​)i1​​.

Its output type is a complex matrix; the definition imposes no density condition on that matrix.

QAlgorithms.Papers.Independent.Intake100.P75.thermalBeam

For every real number τ\tauτ, this defines the complex 2×22\times22×2 matrix

Bτ=(τ1−τ−1−ττ),B_\tau= \begin{pmatrix} \sqrt{\tau}&\sqrt{1-\tau}\\ -\sqrt{1-\tau}&\sqrt{\tau} \end{pmatrix},Bτ​=(τ​−1−τ​​1−τ​τ​​),

with rows and columns indexed by 0,10,10,1. Both square roots are real square roots, embedded into C\mathbb CC. The definition includes τ∉[0,1]\tau\notin[0,1]τ∈/[0,1]: the real square root of a negative number is 000, so τ=0\sqrt{\tau}=0τ​=0 when τ<0\tau<0τ<0, and 1−τ=0\sqrt{1-\tau}=01−τ​=0 when τ>1\tau>1τ>1.

QAlgorithms.Papers.Independent.Intake100.P75.thermalBeamKernel

For every real τ\tauτ, this defines a complex matrix KτK_\tauKτ​ indexed by pairs of natural numbers. Writing s=τs=\sqrt{\tau}s=τ​ and h=1−τh=\sqrt{1-\tau}h=1−τ​, its entry at output index (p,q)(p,q)(p,q) and input index (m,n)(m,n)(m,n) is

(Kτ)(p,q),(m,n)=∑k=0m∑ℓ=0n(mk)(nℓ)(k+ℓ)! (m−k+n−ℓ)!m! n! sk(−h)m−khℓsn−ℓ 1{(p,q)=(k+ℓ,m−k+n−ℓ)}.(K_\tau)_{(p,q),(m,n)} = \sum_{k=0}^{m}\sum_{\ell=0}^{n} \binom{m}{k}\binom{n}{\ell} \sqrt{\frac{(k+\ell)!\,(m-k+n-\ell)!}{m!\,n!}}\, s^k(-h)^{m-k}h^\ell s^{n-\ell} \,\mathbf1_{\{(p,q)=(k+\ell,m-k+n-\ell)\}}.(Kτ​)(p,q),(m,n)​=k=0∑m​ℓ=0∑n​(km​)(ℓn​)m!n!(k+ℓ)!(m−k+n−ℓ)!​​sk(−h)m−khℓsn−ℓ1{(p,q)=(k+ℓ,m−k+n−ℓ)}​.

Here the indicator is 111 when its stated equality holds and 000 otherwise. All indices may be 000, all sums are finite, and zeroth powers—including 000^000—equal 111. The parameter τ\tauτ is unrestricted; negative arguments of the real square roots give 000.

QAlgorithms.Papers.Independent.Intake100.P75.thermalLifetime

For every real triple r,η,nˉr,\eta,\bar nr,η,nˉ, this defines the real number

L(r,η,nˉ)=log⁡ ⁣(1+1−e−2r2nˉ)2η.L(r,\eta,\bar n) = \frac{\log\!\left(1+\dfrac{1-e^{-2r}}{2\bar n}\right)}{2\eta}.L(r,η,nˉ)=2ηlog(1+2nˉ1−e−2r​)​.

No positivity or nonzero hypotheses are imposed. Division by 000 has value 000, so the result is 000 whenever η=0\eta=0η=0 or nˉ=0\bar n=0nˉ=0. The real logarithm is also total: log⁡0=0\log 0=0log0=0, and for a negative argument xxx, its value is log⁡∣x∣\log|x|log∣x∣.

QAlgorithms.Papers.Independent.Intake100.P75.thermalOutput

For arbitrary real r,η,nˉ,tr,\eta,\bar n,tr,η,nˉ,t, this defines a complex matrix Θr,η,nˉ,t\Theta_{r,\eta,\bar n,t}Θr,η,nˉ,t​ indexed by N2\mathbb N^2N2. Let τ=e−2ηt\tau=e^{-2\eta t}τ=e−2ηt, and let v∈ℓ2(N2;C)v\in\ell^2(\mathbb N^2;\mathbb C)v∈ℓ2(N2;C) have coefficients

vmn={tanh⁡(−r)m/cosh⁡(−r),m=n,0,m≠n,v_{mn}= \begin{cases} \tanh(-r)^m/\cosh(-r),&m=n,\\ 0,&m\ne n, \end{cases}vmn​={tanh(−r)m/cosh(−r),0,​m=n,m=n,​

provided this coefficient family belongs to ℓ2\ell^2ℓ2; the defining fallback is v=0v=0v=0 otherwise. Set R(a,c),(b,d)=vacvbd‾R_{(a,c),(b,d)}=v_{ac}\overline{v_{bd}}R(a,c),(b,d)​=vac​vbd​​. To specify the function applied to each subsystem, put

tnˉ(a,b)=1{a=b}(nˉ/(nˉ+1))anˉ+1,t_{\bar n}(a,b)= \mathbf1_{\{a=b\}}\frac{(\bar n/(\bar n+1))^a}{\bar n+1},tnˉ​(a,b)=1{a=b}​nˉ+1(nˉ/(nˉ+1))a​,

and

Kτ((p,q),(m,n))=∑k=0m∑ℓ=0n(mk)(nℓ)(k+ℓ)! (m−k+n−ℓ)!m! n! (τ)k(−1−τ)m−k(1−τ)ℓ(τ)n−ℓ1{(p,q)=(k+ℓ,m−k+n−ℓ)}.K_\tau((p,q),(m,n)) = \sum_{k=0}^{m}\sum_{\ell=0}^{n} \binom{m}{k}\binom{n}{\ell} \sqrt{\frac{(k+\ell)!\,(m-k+n-\ell)!}{m!\,n!}}\, (\sqrt{\tau})^k(-\sqrt{1-\tau})^{m-k} (\sqrt{1-\tau})^\ell(\sqrt{\tau})^{n-\ell} \mathbf1_{\{(p,q)=(k+\ell,m-k+n-\ell)\}}.Kτ​((p,q),(m,n))=k=0∑m​ℓ=0∑n​(km​)(ℓn​)m!n!(k+ℓ)!(m−k+n−ℓ)!​​(τ​)k(−1−τ​)m−k(1−τ​)ℓ(τ​)n−ℓ1{(p,q)=(k+ℓ,m−k+n−ℓ)}​.

For a matrix XXX on N\mathbb NN, define

A(X)ij=∑e∈N∑a∈N2Kτ((i,e),a)(∑b∈N2Xa1b1tnˉ(a2,b2)Kτ((j,e),b)‾).\mathcal A(X)_{ij} = \sum_{e\in\mathbb N}\sum_{a\in\mathbb N^2} K_\tau((i,e),a) \left(\sum_{b\in\mathbb N^2} X_{a_1b_1}t_{\bar n}(a_2,b_2)\overline{K_\tau((j,e),b)}\right).A(X)ij​=e∈N∑​a∈N2∑​Kτ​((i,e),a)(b∈N2∑​Xa1​b1​​tnˉ​(a2​,b2​)Kτ​((j,e),b)​).

Then

Θr,η,nˉ,t ; (i1,i2),(j1,j2)=A ⁣((a,b)⟼A ⁣((c,d)⟼R(a,c),(b,d))i2j2)i1j1.\Theta_{r,\eta,\bar n,t\,;\,(i_1,i_2),(j_1,j_2)} = \mathcal A\!\left( (a,b)\longmapsto \mathcal A\!\left((c,d)\longmapsto R_{(a,c),(b,d)}\right)_{i_2j_2} \right)_{i_1j_1}.Θr,η,nˉ,t;(i1​,i2​),(j1​,j2​)​=A((a,b)⟼A((c,d)⟼R(a,c),(b,d)​)i2​j2​​)i1​j1​​.

All four parameters are unrestricted, including zero and negative values. Infinite complex sums use the value 000 for nonsummable families, division by 000 is 000, and real square roots of negative arguments are 000.

QAlgorithms.Papers.Independent.Intake100.P75.transmissivity

For arbitrary real numbers η\etaη and ttt, this defines

transmissivity⁡(η,t)=e−2ηt.\operatorname{transmissivity}(\eta,t)=e^{-2\eta t}.transmissivity(η,t)=e−2ηt.

Neither parameter is restricted in sign. The value is positive, equals one when ηt=0\eta t=0ηt=0, is below one when ηt>0\eta t>0ηt>0, and is above one when ηt<0\eta t<0ηt<0.

QAlgorithms.Papers.Independent.Intake100.P75.transportedEprForm

For any surjective complex-linear isometries U,VU,VU,V on the square-summable complex sequences indexed by one-coordinate natural-number occupations, Boolean bbb, real numbers a,ca,ca,c, and ψ∈ℓ2(N2;C)\psi\in\ell^2(\mathbb N^2;\mathbb C)ψ∈ℓ2(N2;C), first form

hi=∑j∈N2(U−1ej0)i0 (V−1ej1)i1 ψj,h_i=\sum_{j\in\mathbb N^2} (U^{-1}e_{j_0})_{i_0}\,(V^{-1}e_{j_1})_{i_1}\,\psi_j,hi​=j∈N2∑​(U−1ej0​​)i0​​(V−1ej1​​)i1​​ψj​,

where eme_mem​ is the unit coordinate vector at occupation mmm; let χ\chiχ have coordinates hih_ihi​ if these are square-summable, and let χ=0\chi=0χ=0 otherwise. Define Cj(χ)i=0C_j(\chi)_i=0Cj​(χ)i​=0 when ij=0i_j=0ij​=0, Cj(χ)i=ijχi[j←ij−1]C_j(\chi)_i=\sqrt{i_j}\chi_{i[j\leftarrow i_j-1]}Cj​(χ)i​=ij​​χi[j←ij​−1]​ otherwise, and Aj(χ)i=ij+1χi[j←ij+1]A_j(\chi)_i=\sqrt{i_j+1}\chi_{i[j\leftarrow i_j+1]}Aj​(χ)i​=ij​+1​χi[j←ij​+1]​. The declaration defines

transportedEprForm⁡(U,V,b,a,c,ψ)=∑i∈N2∣Ei−cχi∣2∈[0,∞],Ei={i2[∣a∣(C0−A0)(χ)i−a−1(C1−A1)(χ)i],b=true,12[∣a∣(C0+A0)(χ)i+a−1(C1+A1)(χ)i],b=false.\operatorname{transportedEprForm}(U,V,b,a,c,\psi) =\sum_{i\in\mathbb N^2}|E_i-c\chi_i|^2\in[0,\infty], \quad E_i= \begin{cases} \displaystyle\frac{\mathrm i}{\sqrt2} \left[|a|(C_0-A_0)(\chi)_i-a^{-1}(C_1-A_1)(\chi)_i\right], &b=\mathrm{true},\\[5pt] \displaystyle\frac1{\sqrt2} \left[|a|(C_0+A_0)(\chi)_i+a^{-1}(C_1+A_1)(\chi)_i\right], &b=\mathrm{false}. \end{cases}transportedEprForm(U,V,b,a,c,ψ)=i∈N2∑​∣Ei​−cχi​∣2∈[0,∞],Ei​=⎩⎨⎧​2​i​[∣a∣(C0​−A0​)(χ)i​−a−1(C1​−A1​)(χ)i​],2​1​[∣a∣(C0​+A0​)(χ)i​+a−1(C1​+A1​)(χ)i​],​b=true,b=false.​

The sum may be infinite, ψ\psiψ need not have unit norm, and 0−1=00^{-1}=00−1=0. Each nonsummable complex coordinate series is assigned zero by the total infinite-sum operation; if the square-summability test fails, the returned form is zero because χ=0\chi=0χ=0.

QAlgorithms.Papers.Independent.Intake100.P75.varianceOfForm

For any function F:R×ℓ2(N2;C)→[0,∞]F:\mathbb R\times\ell^2(\mathbb N^2;\mathbb C)\to[0,\infty]F:R×ℓ2(N2;C)→[0,∞] and any complex matrix ρ\rhoρ indexed by N2\mathbb N^2N2, let D(ρ)\mathcal D(\rho)D(ρ) consist of the probability measures μ\muμ on the unit sphere of ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C), with its inherited Borel measurable structure, such that, for every pair of indices i,ji,ji,j, the function ψ↦ψiψj‾\psi\mapsto\psi_i\overline{\psi_j}ψ↦ψi​ψj​​ is integrable and

ρij=∫ψiψj‾ dμ(ψ).\rho_{ij}=\int\psi_i\overline{\psi_j}\,d\mu(\psi).ρij​=∫ψi​ψj​​dμ(ψ).

The declaration defines

varianceOfForm⁡(F,ρ)=inf⁡c∈R inf⁡μ∈D(ρ)∫−F(c,ψ) dμ(ψ),\operatorname{varianceOfForm}(F,\rho) =\inf_{c\in\mathbb R}\ \inf_{\mu\in\mathcal D(\rho)} \int^- F(c,\psi)\,d\mu(\psi),varianceOfForm(F,ρ)=c∈Rinf​ μ∈D(ρ)inf​∫−F(c,ψ)dμ(ψ),

where ∫−\int^-∫− is the extended nonnegative Lebesgue integral. No measurability assumption on FFF, or density assumption on ρ\rhoρ, is imposed. If D(ρ)\mathcal D(\rho)D(ρ) is empty, the value is +∞+\infty+∞.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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