Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Error free Quantum Reading by Quasi Bell State of Entangled Coherent States

Definition
QAlgorithms_Papers_Independent_Advance50_P36

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

prove2quantum

The objects the formalized statements of Error free Quantum Reading by Quasi Bell State of Entangled Coherent States (arXiv:1108.4163) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • antipodalOverlap: PDF pp.2-3, Eqs.(5),(13): the real antipodal coherent overlap, not a free Gram parameter. Its identification with an actual inner product is a theorem.
  • quasiBellNormalization: PDF p.2, Eq.(5): h1=h3 and h2=h4. Labels 0,1,2,3 denote Psi1,...,Psi4. At alpha=0 the odd normalization is totalized to zero by real division; all assertions concerning odd states explicitly exclude this input.
  • quasiBellState: PDF p.2, Eq.(5): the four finite superpositions on full two-mode Fock space, in printed order. Coherent factors have their canonical number-basis phase convention. Normalization is a conclusion, never an input assumption.
  • QuasiBellCoherentRealized: PDF p.2, Eq.(5): realization of exactly the four product coherent factors used in the construction. This conclusion rules out the accepted coherentWord selection's zero fallback and asserts their canonical coefficients and norms.
  • modeBPhaseShift: PDF pp.2-3, Eqs.(8),(14): I_A tensor exp(-i theta N_B), constructed coefficientwise on the full Hilbert space. The missing i in printed Eq.(8) is corrected as required by Eqs.(12),(15). The modulus-one multiplier preserves square summability; no number-operator domain or choice fallback is needed.
  • HasFinitePhotonEnergy: PDF p.3, §V: finite mean photon number in every mode, in photon-number units. Summability of the actual occupation weights excludes divergent-tsum defaults. This predicate does not assert normalization or energy matching.
  • coherentReadingError: PDF p.3, Eq.(18), coherent row: its numerical value for priors p,1-p. Only p in [0,1] is used in the performance theorem.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P21

/-!
Statements from arXiv:1108.4163v2. The oscillator basis is the complete set of
occupation tuples, with mode 0 = A and mode 1 = B. The independently accepted
coherent-word and binary-POVM interfaces are reused. Eq.(8) is corrected by
inserting i; Eq.(17) is restricted to one phase period. The undefined universal
classical-transmitter claim is deferred in HARD.md. Compilation is pending.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P36

open QAlgorithms.Papers.Independent.Frontier30.P21
  (WordFock coherentWord CoherentWordRealized binaryErrorValues)

open scoped Matrix

attribute [local instance] Classical.propDecidable

/-- PDF pp.2-3, Eqs.(5),(13): the real antipodal coherent overlap, not a free
Gram parameter. Its identification with an actual inner product is a theorem. -/
def antipodalOverlap (alpha : ℂ) : ℝ :=
  Real.exp (-2 * Complex.normSq alpha)

/-- PDF p.2, Eq.(5): h1=h3 and h2=h4. Labels 0,1,2,3 denote Psi1,...,Psi4.
At alpha=0 the odd normalization is totalized to zero by real division;
all assertions concerning odd states explicitly exclude this input. -/
def quasiBellNormalization (alpha : ℂ) (i : Fin 4) : ℝ :=
  if i = 0 ∨ i = 2 then
    1 / Real.sqrt (2 * (1 + antipodalOverlap alpha ^ 2))
  else
    1 / Real.sqrt (2 * (1 - antipodalOverlap alpha ^ 2))

/-- PDF p.2, Eq.(5): the four finite superpositions on full two-mode Fock
space, in printed order. Coherent factors have their canonical number-basis
phase convention. Normalization is a conclusion, never an input assumption. -/
def quasiBellState (alpha : ℂ) (i : Fin 4) : WordFock 2 :=
  (quasiBellNormalization alpha i : ℂ) •
    (![coherentWord ![alpha, alpha] + coherentWord ![-alpha, -alpha],
       coherentWord ![alpha, alpha] - coherentWord ![-alpha, -alpha],
       coherentWord ![alpha, -alpha] + coherentWord ![-alpha, alpha],
       coherentWord ![alpha, -alpha] - coherentWord ![-alpha, alpha]] i)

/-- PDF p.2, Eq.(5): realization of exactly the four product coherent factors
used in the construction. This conclusion rules out the accepted coherentWord
selection's zero fallback and asserts their canonical coefficients and norms. -/
def QuasiBellCoherentRealized (alpha : ℂ) : Prop :=
  CoherentWordRealized ![alpha, alpha] ∧
  CoherentWordRealized ![-alpha, -alpha] ∧
  CoherentWordRealized ![alpha, -alpha] ∧
  CoherentWordRealized ![-alpha, alpha]

/-- PDF pp.2-3, Eqs.(8),(14): I_A tensor exp(-i theta N_B), constructed
coefficientwise on the full Hilbert space. The missing i in printed Eq.(8)
is corrected as required by Eqs.(12),(15). The modulus-one multiplier preserves
square summability; no number-operator domain or choice fallback is needed. -/
def modeBPhaseShift (theta : ℝ) (u : WordFock 2) : WordFock 2 :=
  ⟨fun k => Complex.exp (Complex.ofReal (-theta * (k 1 : ℝ)) * Complex.I) * u k, by
    apply (lp.memℓp u).mono'
    intro k
    simp only [norm_mul, Complex.norm_exp_ofReal_mul_I, one_mul, le_refl]⟩

/-- PDF p.3, §V: finite mean photon number in every mode, in photon-number
units. Summability of the actual occupation weights excludes divergent-tsum
defaults. This predicate does not assert normalization or energy matching. -/
def HasFinitePhotonEnergy {L : ℕ} (u : WordFock L) : Prop :=
  ∀ j : Fin L, Summable (fun k : Fin L → ℕ => (k j : ℝ) * Complex.normSq (u k))

/-- PDF p.3, Eq.(18), coherent row: its numerical value for priors p,1-p.
Only p in [0,1] is used in the performance theorem. -/
def coherentReadingError (alpha : ℂ) (p : ℝ) : ℝ :=
  (1 - Real.sqrt (1 - 4 * p * (1 - p) * Real.exp (-4 * Complex.normSq alpha))) / 2

/-- Sanity check: vacuum has antipodal overlap one. -/
example : antipodalOverlap 0 = 1 := by
  simp [antipodalOverlap]

/-- Sanity check: Psi4 uses the same odd normalization as Psi2. -/
example (alpha : ℂ) :
    quasiBellNormalization alpha 3 = quasiBellNormalization alpha 1 := by
  have h3 : ¬ ((3 : Fin 4) = 0 ∨ (3 : Fin 4) = 2) := by decide
  have h1 : ¬ ((1 : Fin 4) = 0 ∨ (1 : Fin 4) = 2) := by decide
  simp only [quasiBellNormalization, if_neg h3, if_neg h1]

/-- Sanity check: the excluded zero-amplitude odd normalization is zero. -/
example : quasiBellNormalization 0 1 = 0 := by
  have h1 : ¬ ((1 : Fin 4) = 0 ∨ (1 : Fin 4) = 2) := by decide
  simp only [quasiBellNormalization, if_neg h1]
  norm_num [antipodalOverlap]

/-- Sanity check: the fourth vector has the minus sign in the printed order. -/
example (alpha : ℂ) : quasiBellState alpha 3 =
    (quasiBellNormalization alpha 3 : ℂ) •
      (coherentWord ![alpha, -alpha] - coherentWord ![-alpha, alpha]) := by
  simp [quasiBellState]

/-- Sanity check: zero phase is identity on every Hilbert vector. -/
example (u : WordFock 2) : modeBPhaseShift 0 u = u := by
  apply lp.ext
  funext k
  simp [modeBPhaseShift]

/-- Sanity check: the physical phase action preserves every vector norm. -/
example (theta : ℝ) (u : WordFock 2) : ‖modeBPhaseShift theta u‖ = ‖u‖ := by
  apply le_antisymm
  · apply lp.norm_mono (by norm_num : (2 : ENNReal) ≠ 0)
    intro k
    change ‖Complex.exp (Complex.ofReal (-theta * (k 1 : ℝ)) * Complex.I) * u k‖ ≤ ‖u k‖
    rw [norm_mul, Complex.norm_exp_ofReal_mul_I, one_mul]
  · apply lp.norm_mono (by norm_num : (2 : ENNReal) ≠ 0)
    intro k
    change ‖u k‖ ≤ ‖Complex.exp (Complex.ofReal (-theta * (k 1 : ℝ)) * Complex.I) * u k‖
    rw [norm_mul, Complex.norm_exp_ofReal_mul_I, one_mul]

/-- Sanity check: the zero vector has summable photon weights, but its norm
is zero, so the energy predicate alone never certifies a physical state. -/
example : HasFinitePhotonEnergy (0 : WordFock 2) := by
  intro j
  simp

/-- Sanity check: deterministic priors give zero coherent decision error. -/
example (alpha : ℂ) : coherentReadingError alpha 0 = 0 ∧
    coherentReadingError alpha 1 = 0 := by
  simp [coherentReadingError]

end QAlgorithms.Papers.Independent.Advance50.P36
Source
Error free Quantum Reading by Quasi Bell State of Entangled Coherent States, arXiv:1108.4163v2, https://arxiv.org/abs/1108.4163v2
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P36.HasFinitePhotonEnergy

For every natural number LLL and every vector u∈ℓ2(NL;C)u\in\ell^2(\mathbb N^L;\mathbb C)u∈ℓ2(NL;C), this defines the proposition that, for each coordinate j∈{0,…,L−1}j\in\{0,\ldots,L-1\}j∈{0,…,L−1}, the family of nonnegative real numbers indexed by occupation tuples k∈NLk\in\mathbb N^Lk∈NL,

kj∣u(k)∣2,k_j|u(k)|^2,kj​∣u(k)∣2,

is summable. Equivalently, each sum ∑k∈NLkj∣u(k)∣2\sum_{k\in\mathbb N^L}k_j|u(k)|^2∑k∈NL​kj​∣u(k)∣2 is finite. No unit-norm condition is imposed on uuu. When L=0L=0L=0, there are no coordinates jjj, so the proposition holds vacuously.

QAlgorithms.Papers.Independent.Advance50.P36.QuasiBellCoherentRealized

For every α∈C\alpha\in\mathbb Cα∈C, this defines the proposition that each of the four vectors associated with (z,w)=(α,α),(−α,−α),(α,−α),(−α,α)(z,w)=(\alpha,\alpha),(-\alpha,-\alpha),(\alpha,-\alpha),(-\alpha,\alpha)(z,w)=(α,α),(−α,−α),(α,−α),(−α,α) has norm one and has, at every (m,n)∈N2(m,n)\in\mathbb N^2(m,n)∈N2, coefficient

e−(∣z∣2+∣w∣2)/2zmwnm!n!.e^{-(|z|^2+|w|^2)/2}\frac{z^m w^n}{\sqrt{m!}\sqrt{n!}}.e−(∣z∣2+∣w∣2)/2m!​n!​zmwn​.

For each pair (z,w)(z,w)(z,w), the associated vector is defined to be a chosen element of ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C) with exactly these coefficients if one exists, and zero otherwise. The proposition requires both the coefficient identities and unit norm for all four listed pairs, including when α=0\alpha=0α=0 and the four pairs coincide.

QAlgorithms.Papers.Independent.Advance50.P36.antipodalOverlap

For every complex number α\alphaα, this defines the real number r(α)=e−2∣α∣2r(\alpha)=e^{-2|\alpha|^2}r(α)=e−2∣α∣2, where ∣α∣2|\alpha|^2∣α∣2 is the squared complex modulus. In particular, the definition includes α=0\alpha=0α=0, for which r(0)=1r(0)=1r(0)=1.

QAlgorithms.Papers.Independent.Advance50.P36.coherentReadingError

For every α∈C\alpha\in\mathbb Cα∈C and every real ppp, this defines

E(α,p)=1−1−4p(1−p)e−4∣α∣22,E(\alpha,p)= \frac{1-\sqrt{1-4p(1-p)e^{-4|\alpha|^2}}}{2},E(α,p)=21−1−4p(1−p)e−4∣α∣2​​,

using the nonnegative real square root. The definition places no restriction on ppp or α\alphaα; in particular, it includes α=0\alpha=0α=0 and values of ppp outside [0,1][0,1][0,1]. At p=0p=0p=0 or p=1p=1p=1, its value is zero.

QAlgorithms.Papers.Independent.Advance50.P36.modeBPhaseShift

For every real θ\thetaθ and every vector u∈ℓ2(N2;C)u\in\ell^2(\mathbb N^2;\mathbb C)u∈ℓ2(N2;C), this defines the vector PθuP_\theta uPθ​u by

(Pθu)(n0,n1)=e−iθn1u(n0,n1)(n0,n1∈N).(P_\theta u)(n_0,n_1)=e^{-\mathrm i\theta n_1}u(n_0,n_1) \qquad(n_0,n_1\in\mathbb N).(Pθ​u)(n0​,n1​)=e−iθn1​u(n0​,n1​)(n0​,n1​∈N).

The multiplier uses the occupation number of the second coordinate. There is no normalization assumption on uuu and no restriction on θ\thetaθ; in particular, θ=0\theta=0θ=0 is allowed.

QAlgorithms.Papers.Independent.Advance50.P36.quasiBellNormalization

For every α∈C\alpha\in\mathbb Cα∈C and index i∈{0,1,2,3}i\in\{0,1,2,3\}i∈{0,1,2,3}, this defines the real number

Ni(α)={12(1+e−4∣α∣2),i=0 or i=2,12(1−e−4∣α∣2),i=1 or i=3.N_i(\alpha)= \begin{cases} \dfrac{1}{\sqrt{2(1+e^{-4|\alpha|^2})}},&i=0\text{ or }i=2,\\[4pt] \dfrac{1}{\sqrt{2(1-e^{-4|\alpha|^2})}},&i=1\text{ or }i=3. \end{cases}Ni​(α)=⎩⎨⎧​2(1+e−4∣α∣2)​1​,2(1−e−4∣α∣2)​1​,​i=0 or i=2,i=1 or i=3.​

Here the square root is the nonnegative real square root, and division is total, with 1/0=01/0=01/0=0. Thus at α=0\alpha=0α=0, the values for indices 0,20,20,2 are 1/21/21/2, and those for indices 1,31,31,3 are 000.

QAlgorithms.Papers.Independent.Advance50.P36.quasiBellState

For every α∈C\alpha\in\mathbb Cα∈C and i∈{0,1,2,3}i\in\{0,1,2,3\}i∈{0,1,2,3}, this defines a vector qi(α)q_i(\alpha)qi​(α) in ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C) as follows. For z,w∈Cz,w\in\mathbb Cz,w∈C, let C(z,w)C(z,w)C(z,w) denote a chosen vector whose coefficient at (m,n)∈N2(m,n)\in\mathbb N^2(m,n)∈N2 is

e−(∣z∣2+∣w∣2)/2zmwnm!n!,e^{-(|z|^2+|w|^2)/2}\frac{z^m w^n}{\sqrt{m!}\sqrt{n!}},e−(∣z∣2+∣w∣2)/2m!​n!​zmwn​,

if such a square-summable vector exists, and the zero vector otherwise. Put A=C(α,α)A=C(\alpha,\alpha)A=C(α,α), B=C(−α,−α)B=C(-\alpha,-\alpha)B=C(−α,−α), C=C(α,−α)C=C(\alpha,-\alpha)C=C(α,−α), and D=C(−α,α)D=C(-\alpha,\alpha)D=C(−α,α). Then

q0=A+B2(1+e−4∣α∣2),q1=A−B2(1−e−4∣α∣2),q2=C+D2(1+e−4∣α∣2),q3=C−D2(1−e−4∣α∣2).q_0=\frac{A+B}{\sqrt{2(1+e^{-4|\alpha|^2})}},\qquad q_1=\frac{A-B}{\sqrt{2(1-e^{-4|\alpha|^2})}},\qquad q_2=\frac{C+D}{\sqrt{2(1+e^{-4|\alpha|^2})}},\qquad q_3=\frac{C-D}{\sqrt{2(1-e^{-4|\alpha|^2})}}.q0​=2(1+e−4∣α∣2)​A+B​,q1​=2(1−e−4∣α∣2)​A−B​,q2​=2(1+e−4∣α∣2)​C+D​,q3​=2(1−e−4∣α∣2)​C−D​.

Each quotient means multiplication of the vector by the indicated real scalar, embedded in C\mathbb CC. Division by zero yields zero, so q1(0)=q3(0)=0q_1(0)=q_3(0)=0q1​(0)=q3​(0)=0; the definition itself does not assert that these vectors have norm one.

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