Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Optimal displacement receiver with efficiency and dark counts

Open
QAlgorithms.Papers.Independent.Intake100.P08.typeII_optimalDisplacement

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

prove2quantum

Let the two normalized coherent signals be ∣±α⟩|\pm\alpha\rangle∣±α⟩ in the completed one-mode Fock space, with known real α≥0\alpha\ge0α≥0 and equal priors. Fix detector efficiency 0≤η≤10\le\eta\le10≤η≤1 and dark-count parameter ν≥0\nu\ge0ν≥0. A fixed complex displacement D(δ)D(\delta)D(δ) is followed by the on/off POVM whose no-click weights in the number basis are e−ν(1−η)ne^{-\nu}(1-\eta)^ne−ν(1−η)n. Decode off as minus and on as plus. Its average Bayesian error is

PD(δ)=12−e−ν−η(α2+∣δ∣2)sinh⁡(2ηαRe⁡δ).P_D(\delta)=\frac12-e^{-\nu-\eta(\alpha^2+|\delta|^2)}\sinh(2\eta\alpha\operatorname{Re}\delta).PD​(δ)=21​−e−ν−η(α2+∣δ∣2)sinh(2ηαReδ).

The photon-number laws are normalized, the photon-number and detector series are summable, and 0≤PD(δ)≤10\le P_D(\delta)\le10≤PD​(δ)≤1. If α=0\alpha=0α=0 or η=0\eta=0η=0, then PD(δ)=1/2P_D(\delta)=1/2PD​(δ)=1/2 for every displacement. If α>0\alpha>0α>0 and η>0\eta>0η>0, the global minimizer over all complex displacements is unique, is real, and satisfies

γopt>α,α=γopttanh⁡(2ηαγopt),PD(γopt)<PD(α).\gamma_{\rm opt}>\alpha,\qquad \alpha=\gamma_{\rm opt}\tanh(2\eta\alpha\gamma_{\rm opt}),\qquad P_D(\gamma_{\rm opt})<P_D(\alpha).γopt​>α,α=γopt​tanh(2ηαγopt​),PD​(γopt​)<PD​(α).

Thus replacing the Kennedy displacement by the actual optimal displacement strictly improves its error in the nondegenerate regime. The optimizer is obtained from the operational error; the root equation is concluded rather than assumed to imply optimality.

Formalization Note The accepted coherent vectors and Weyl displacements act on the full countable Fock space. Their realization guards are conclusions, so their off-domain fallback values are never used as physical states or devices.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P08
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P08

open MeasureTheory

open scoped BigOperators

open QAlgorithms.Papers.Independent.Dependency50.P39
  (Fock fockKet coherentKet coherentCoefficient CoherentRealized
   displacement DisplacementRealized)

/-- PDF pp.4--5, Eqs.(18),(19),(23),(24): exact displacement-receiver error
and its global optimum, with efficiency and dark counts retained. Complex
competitors are allowed. The root equation is a conclusion about the actual
unique global minimizer; no stationary point is assumed optimal. At alpha=0
or eta=0 the error is exactly 1/2. Realization and summability guard all uses
of the accepted coherent/displacement total functions and infinite series. -/
theorem typeII_optimalDisplacement
    (alpha eta nu : ℝ) (halpha : 0 ≤ alpha)
    (heta : 0 ≤ eta) (hetaMax : eta ≤ 1) (hnu : 0 ≤ nu) :
    CoherentRealized ∧ DisplacementRealized ∧
    (∀ delta : ℂ,
      (∀ plus : Bool,
        let psi := displacement delta (coherentKet (signalAmplitude alpha plus))
        ‖psi‖ = 1 ∧ Summable (photonLaw psi) ∧
          (∑' n, photonLaw psi n) = 1 ∧
          Summable (fun n : ℕ => (1 - eta) ^ n * photonLaw psi n)) ∧
      displacementError alpha eta nu delta =
        1 / 2 - Real.exp (-nu - eta * (alpha ^ 2 + Complex.normSq delta)) *
          Real.sinh (2 * eta * alpha * delta.re) ∧
      0 ≤ displacementError alpha eta nu delta ∧
        displacementError alpha eta nu delta ≤ 1) ∧
    ((alpha = 0 ∨ eta = 0) → ∀ delta : ℂ,
      displacementError alpha eta nu delta = 1 / 2) ∧
    (0 < alpha → 0 < eta → ∃ gamma : ℝ,
      alpha < gamma ∧
      alpha = gamma * Real.tanh (2 * eta * alpha * gamma) ∧
      (∀ delta : ℂ, displacementError alpha eta nu (gamma : ℂ) ≤
        displacementError alpha eta nu delta) ∧
      (∀ delta : ℂ, displacementError alpha eta nu delta =
        displacementError alpha eta nu (gamma : ℂ) → delta = (gamma : ℂ)) ∧
      displacementError alpha eta nu (gamma : ℂ) <
        displacementError alpha eta nu (alpha : ℂ)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P08

end
Source
Discrimination of the binary coherent signal: Gaussian-operation limit and simple non-Gaussian near-optimal receivers, arXiv:0706.1038v3, PDF p. 5, Section III, Eqs. (18), (19), (23), (24)
Read-back

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

For all real numbers α,η,ν\alpha,\eta,\nuα,η,ν satisfying α≥0\alpha\ge0α≥0, 0≤η≤10\le\eta\le10≤η≤1, and ν≥0\nu\ge0ν≥0, let H=ℓ2(N;C)\mathcal H=\ell^2(\mathbb N;\mathbb C)H=ℓ2(N;C), with standard basis ene_nen​. For β∈C\beta\in\mathbb Cβ∈C, let c(β)c(\beta)c(β) be a chosen vector with coordinates e−∣β∣2/2βn/n!e^{-|\beta|^2/2}\beta^n/\sqrt{n!}e−∣β∣2/2βn/n!​, if such a vector in H\mathcal HH exists, and zero otherwise. For z∈Cz\in\mathbb Cz∈C, let D(z)D(z)D(z) be a chosen continuous complex-linear operator with entries

(D(z)en)m=dmn(z),dmn(z)=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!,(D(z)e_n)_m=d_{mn}(z),\qquad d_{mn}(z)=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)!},(D(z)en​)m​=dmn​(z),dmn​(z)=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 zero otherwise. Call a continuous complex-linear operator XXX trace class here when there are sequences ur,vr∈Hu_r,v_r\in\mathcal Hur​,vr​∈H such that ∑r∥ur∥∥vr∥\sum_r\|u_r\|\|v_r\|∑r​∥ur​∥∥vr​∥ is summable and the operators x↦⟨vr,x⟩urx\mapsto\langle v_r,x\rangle u_rx↦⟨vr​,x⟩ur​ sum to XXX in operator norm, with the inner product linear in its second argument. The theorem asserts that every c(β)c(\beta)c(β) has the displayed coordinates and norm one, and that, for every zzz, D(z)D(z)D(z) has the displayed matrix, satisfies D(z)∗D(z)=D(z)D(z)∗=ID(z)^*D(z)=D(z)D(z)^*=ID(z)∗D(z)=D(z)D(z)∗=I, and, for every trace-class XXX, the operator D(z)XD(z)XD(z)X is trace class and its diagonal family ((D(z)Xen)n)n∈N\bigl((D(z)Xe_n)_n\bigr)_{n\in\mathbb N}((D(z)Xen​)n​)n∈N​ is summable. Define

E(δ)=e−ν∑n=0∞(1−η)n∣(D(δ)c(α))n∣2+1−e−ν∑n=0∞(1−η)n∣(D(δ)c(−α))n∣22.E(\delta)= \frac{ e^{-\nu}\sum_{n=0}^{\infty}(1-\eta)^n|(D(\delta)c(\alpha))_n|^2 +1- e^{-\nu}\sum_{n=0}^{\infty}(1-\eta)^n|(D(\delta)c(-\alpha))_n|^2 }{2}.E(δ)=2e−ν∑n=0∞​(1−η)n∣(D(δ)c(α))n​∣2+1−e−ν∑n=0∞​(1−η)n∣(D(δ)c(−α))n​∣2​.

For every δ∈C\delta\in\mathbb Cδ∈C and each sign s∈{+1,−1}s\in\{+1,-1\}s∈{+1,−1}, the vector ψ=D(δ)c(sα)\psi=D(\delta)c(s\alpha)ψ=D(δ)c(sα) has norm one, its family (∣ψn∣2)n(|\psi_n|^2)_n(∣ψn​∣2)n​ is summable with sum one, and ((1−η)n∣ψn∣2)n\bigl((1-\eta)^n|\psi_n|^2\bigr)_n((1−η)n∣ψn​∣2)n​ is summable; moreover,

E(δ)=12−e−ν−η(α2+∣δ∣2)sinh⁡ ⁣(2ηα Re⁡δ),0≤E(δ)≤1.E(\delta)=\frac12- e^{-\nu-\eta(\alpha^2+|\delta|^2)} \sinh\!\bigl(2\eta\alpha\,\operatorname{Re}\delta\bigr), \qquad 0\le E(\delta)\le1.E(δ)=21​−e−ν−η(α2+∣δ∣2)sinh(2ηαReδ),0≤E(δ)≤1.

If α=0\alpha=0α=0 or η=0\eta=0η=0, then E(δ)=12E(\delta)=\tfrac12E(δ)=21​ for every complex δ\deltaδ. If instead α>0\alpha>0α>0 and η>0\eta>0η>0, there exists a real number γ\gammaγ such that

α<γ,α=γtanh⁡(2ηαγ),\alpha<\gamma,\qquad \alpha=\gamma\tanh(2\eta\alpha\gamma),α<γ,α=γtanh(2ηαγ),

and, viewing γ\gammaγ as a complex number,

∀δ∈C,E(γ)≤E(δ),∀δ∈C,E(δ)=E(γ) ⟹ δ=γ,E(γ)<E(α).\forall\delta\in\mathbb C,\quad E(\gamma)\le E(\delta), \qquad \forall\delta\in\mathbb C,\quad E(\delta)=E(\gamma)\ \Longrightarrow\ \delta=\gamma, \qquad E(\gamma)<E(\alpha).∀δ∈C,E(γ)≤E(δ),∀δ∈C,E(δ)=E(γ) ⟹ δ=γ,E(γ)<E(α).

Thus the asserted minimization ranges over every complex displacement, with the equality condition specifying its unique minimizer. All natural-number sums include zero, and at the allowed endpoint η=1\eta=1η=1 the zeroth weight remains 00=10^0=100=1.

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