Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§XI.B (124)–(127), Fig.6: phase-state gate injection

Open
QAlgorithms.Papers.Independent.Intakenext100.P12.polynomial_phase_injection

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

prove2quantum

Let ϕ\phiϕ be a real polynomial. Form the joint wavefunction ψ(q1)eiϕ(q2)\psi(q_1)e^{i\phi(q_2)}ψ(q1​)eiϕ(q2​), apply the inverse-SUM pullback F(q1,q2)↦F(q1,q2+q1)F(q_1,q_2)\mapsto F(q_1,q_2+q_1)F(q1​,q2​)↦F(q1​,q2​+q1​), and take the target-position fiber q2=aq_2=aq2​=a. For every L2L^2L2 data wavefunction and every outcome parameter a∈Ra\in\mathbb Ra∈R, the inverse-SUM phase-ancilla conditional multiplier eiϕ(q+a)e^{i\phi(q+a)}eiϕ(q+a) is corrected by

U(a,q)=ei[ϕ(q)−ϕ(q+a)],U(a,q)eiϕ(q+a)ψ(q)=eiϕ(q)ψ(q).U(a,q)=e^{i[\phi(q)-\phi(q+a)]},\qquad U(a,q)e^{i\phi(q+a)}\psi(q)=e^{i\phi(q)}\psi(q).U(a,q)=ei[ϕ(q)−ϕ(q+a)],U(a,q)eiϕ(q+a)ψ(q)=eiϕ(q)ψ(q).

If deg⁡ϕ≤3\deg\phi\le3degϕ≤3, the correction phase has degree at most two and its derivative is affine; the exact momentum conjugation identity on differentiable data waves is included. For ϕ(q)=γq3\phi(q)=\gamma q^3ϕ(q)=γq3 the correction phase is −γ(3aq2+3a2q+a3)-\gamma(3aq^2+3a^2q+a^3)−γ(3aq2+3a2q+a3). Also, for γ,γ′>0\gamma,\gamma'>0γ,γ′>0, Vγ=Sr−1Vγ′SrV_\gamma=S_r^{-1}V_{\gamma'}S_rVγ​=Sr−1​Vγ′​Sr​ with r=γ/γ′r=\gamma/\gamma'r=γ/γ′ and coordinate squeeze q↦r1/3qq\mapsto r^{1/3}qq↦r1/3q, retaining the wavefunction normalization.

The ideal resource is unnormalizable, and no outcome probability law is assigned to it.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P12
Formal statement
noncomputable section

open scoped BigOperators

open MeasureTheory Matrix ComplexConjugate

open QAlgorithms.Papers.Independent.Dependency50.P10 (Phase sigma)

namespace QAlgorithms.Papers.Independent.Intakenext100.P12

/-- Section XI.B (124)–(127), Fig.6, PDF p.16: conditional phase-state injection for every outcome.
The joint resource, inverse SUM pullback, and target-position fiber are constructed
explicitly. The ideal resource has no normalized outcome probability law. -/
theorem polynomial_phase_injection (phi : Polynomial ℝ) :
    (∀ (a : ℝ) (psi : ℝ → ℂ), MemLp psi 2 volume → ∀ q : ℝ,
      injectionPositionFiber (injectionInverseSum (injectionJointWave phi psi)) a q =
        cisPhase (phi.eval (q + a)) * psi q) ∧
    (∀ (a : ℝ) (psi : ℝ → ℂ), MemLp psi 2 volume → ∀ q : ℝ,
      phaseCorrection phi a q *
        injectionPositionFiber (injectionInverseSum (injectionJointWave phi psi)) a q =
        cisPhase (phi.eval q) * psi q) ∧
    (phi.natDegree ≤ 3 → ∀ a : ℝ, (phi - phi.comp (Polynomial.X + Polynomial.C a)).natDegree ≤ 2) ∧
    (phi.natDegree ≤ 3 → ∀ a : ℝ, ∃ A B : ℝ, ∀ q : ℝ,
      (phi - phi.comp (Polynomial.X + Polynomial.C a)).derivative.eval q = A * q + B) ∧
    (∀ a q : ℝ, ∀ psi : ℝ → ℂ, MemLp psi 2 volume → DifferentiableAt ℝ psi q →
      conj (phaseCorrection phi a q) *
        (-Complex.I * deriv (fun x => phaseCorrection phi a x * psi x) q) =
      -Complex.I * deriv psi q +
        (((phi - phi.comp (Polynomial.X + Polynomial.C a)).derivative.eval q : ℝ) : ℂ) * psi q) ∧
    (∀ gamma gammaPrime : ℝ, 0 < gamma → 0 < gammaPrime →
      ∀ psi : ℝ → ℂ, MemLp psi 2 volume →
      squeezeWave ((gamma / gammaPrime) ^ (-(1 : ℝ) / 3))
        (cubicWave gammaPrime (squeezeWave ((gamma / gammaPrime) ^ ((1 : ℝ) / 3)) psi)) =
          cubicWave gamma psi) ∧
    (∀ gamma a q : ℝ,
      phaseCorrection (Polynomial.C gamma * Polynomial.X ^ 3) a q =
        cisPhase (-gamma * (3 * a * q ^ 2 + 3 * a ^ 2 * q + a ^ 3))) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P12

end
Source
Encoding a qubit in an oscillator, arXiv:quant-ph/0008040v3, PDF p. 16, §XI.B (124)–(127), Fig.6: phase-state gate injection
Read-back

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

For every real polynomial ϕ\phiϕ, put Pa(X)=ϕ(X)−ϕ(X+a)P_a(X)=\phi(X)-\phi(X+a)Pa​(X)=ϕ(X)−ϕ(X+a) and Cϕ,a(q)=eiPa(q)C_{\phi,a}(q)=e^{iP_a(q)}Cϕ,a​(q)=eiPa​(q). The declaration asserts the conjunction of seven statements. First, for every real aaa, every Lebesgue square-integrable function ψ:R→C\psi:\mathbb R\to\mathbb Cψ:R→C, and every real qqq, starting with W(q1,q2)=ψ(q1)eiϕ(q2)W(q_1,q_2)=\psi(q_1)e^{i\phi(q_2)}W(q1​,q2​)=ψ(q1​)eiϕ(q2​), replacing it by W~(q1,q2)=W(q1,q2+q1)\widetilde W(q_1,q_2)=W(q_1,q_2+q_1)W(q1​,q2​)=W(q1​,q2​+q1​), and evaluating at (q,a)(q,a)(q,a) gives

W~(q,a)=eiϕ(q+a)ψ(q).\widetilde W(q,a)=e^{i\phi(q+a)}\psi(q).W(q,a)=eiϕ(q+a)ψ(q).

Second, for the same universally quantified a,ψ,qa,\psi,qa,ψ,q and the same square-integrability assumption,

Cϕ,a(q)W~(q,a)=eiϕ(q)ψ(q).C_{\phi,a}(q)\widetilde W(q,a)=e^{i\phi(q)}\psi(q).Cϕ,a​(q)W(q,a)=eiϕ(q)ψ(q).

Third, if the natural degree of ϕ\phiϕ is at most 333, then for every real aaa, the natural degree of PaP_aPa​ is at most 222. Fourth, under that same degree hypothesis, for every real aaa there exist real A,BA,BA,B, allowed to depend on aaa, such that Pa′(q)=Aq+BP_a'(q)=Aq+BPa′​(q)=Aq+B for every real qqq. Natural degree assigns degree 000 to the zero polynomial, so these degree statements include zero polynomials. Fifth, for every real a,qa,qa,q and every Lebesgue square-integrable ψ:R→C\psi:\mathbb R\to\mathbb Cψ:R→C that is differentiable over R\mathbb RR at qqq,

Cϕ,a(q)‾(−i ddx[Cϕ,a(x)ψ(x)]x=q)=−iψ′(q)+Pa′(q)ψ(q).\overline{C_{\phi,a}(q)} \left(-i\,\frac{d}{dx}\bigl[C_{\phi,a}(x)\psi(x)\bigr]_{x=q}\right) =-i\psi'(q)+P_a'(q)\psi(q).Cϕ,a​(q)​(−idxd​[Cϕ,a​(x)ψ(x)]x=q​)=−iψ′(q)+Pa′​(q)ψ(q).

Sixth, define Srψ(q)=(r)−1ψ(q/r)S_r\psi(q)=(\sqrt r)^{-1}\psi(q/r)Sr​ψ(q)=(r​)−1ψ(q/r) and Uγψ(q)=eiγq3ψ(q)U_\gamma\psi(q)=e^{i\gamma q^3}\psi(q)Uγ​ψ(q)=eiγq3ψ(q). For every pair of positive real numbers γ,γ′\gamma,\gamma'γ,γ′ and every Lebesgue square-integrable ψ:R→C\psi:\mathbb R\to\mathbb Cψ:R→C, there is equality of functions

S(γ/γ′)−1/3(Uγ′(S(γ/γ′)1/3ψ))=Uγψ,S_{(\gamma/\gamma')^{-1/3}} \left(U_{\gamma'}\left(S_{(\gamma/\gamma')^{1/3}}\psi\right)\right) =U_\gamma\psi,S(γ/γ′)−1/3​(Uγ′​(S(γ/γ′)1/3​ψ))=Uγ​ψ,

where the powers are real powers of the positive ratio. Seventh, for all real γ,a,q\gamma,a,qγ,a,q, with no positivity restriction on γ\gammaγ,

CγX3,a(q)=exp⁡ ⁣(−iγ(3aq2+3a2q+a3)).C_{\gamma X^3,a}(q) =\exp\!\left(-i\gamma(3aq^2+3a^2q+a^3)\right).CγX3,a​(q)=exp(−iγ(3aq2+3a2q+a3)).

The identities involving qqq are pointwise, including at individual points of square-integrable functions, and none of the square-integrability hypotheses requires unit norm.

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

    Confirmed by the moderator at approval.

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