Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 12, exact energy drift of attenuator/amplifier

Open
QAlgorithms.Papers.Independent.Advance50.P46.bosonic_energy_drift

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

prove2quantum

Let ρ0\rho_0ρ0​ be any normalized Fock-space state, N∣n⟩=n∣n⟩N|n\rangle=n|n\rangleN∣n⟩=n∣n⟩, and M=N+IM=N+IM=N+I. Use the attenuator and amplifier parameterization of PDF p.27, with amplitude factors e−t/2e^{-t/2}e−t/2 and et/2e^{t/2}et/2. For every t≥0t\ge0t≥0,

Tr⁡(NΛtatt(ρ0))=e−tTr⁡(Nρ0),Tr⁡(MΛtamp(ρ0))=etTr⁡(Mρ0).\operatorname{Tr}(N\Lambda_t^{\rm att}(\rho_0))=e^{-t}\operatorname{Tr}(N\rho_0),\qquad\operatorname{Tr}(M\Lambda_t^{\rm amp}(\rho_0))=e^t\operatorname{Tr}(M\rho_0).Tr(NΛtatt​(ρ0​))=e−tTr(Nρ0​),Tr(MΛtamp​(ρ0​))=etTr(Mρ0​).

These equalities hold in the extended nonnegative reals, including infinite initial energies. For a finite initial expectation the corresponding time derivative is respectively minus or plus the current expectation, with a right derivative at zero. No finite second moment is required. These identities supply the energy drift needed in entropy applications.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P46
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped ENNReal NNReal Topology BigOperators Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Advance50.P46

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Bridge50.P23 (energyMagnitude numberEnergy)

open QAlgorithms.Papers.Independent.Dependency50.P33
  (State IsDensity IsTraceClass traceSize rankOne tensorApply productCoeff IsBarycenter)

attribute [local instance] Classical.propDecidable Classical.decEq

export QAlgorithms.Papers.Independent.Claimed50.P39 (g)

/-- Example 12, PDF pp.42--43: exact extended energy laws and finite-energy
right derivatives. No second moment is required. -/
theorem bosonic_energy_drift (rho : State ℕ) (t : ℝ) (ht : 0 ≤ t) :
    numberEnergy (attenuatorTimeKernel t rho.coefficients) =
      ENNReal.ofReal (Real.exp (-t)) * numberEnergy rho.coefficients ∧
    realSpectrumMeanEnergy amplifierEnergy (amplifierTimeKernel t rho.coefficients) =
      ENNReal.ofReal (Real.exp t) * realSpectrumMeanEnergy amplifierEnergy rho.coefficients ∧
    (numberEnergy rho.coefficients < ⊤ →
      HasDerivWithinAt (fun r : ℝ =>
        (numberEnergy (attenuatorTimeKernel r rho.coefficients)).toReal)
        (-(numberEnergy (attenuatorTimeKernel t rho.coefficients)).toReal) (Set.Ici 0) t) ∧
    (realSpectrumMeanEnergy amplifierEnergy rho.coefficients < ⊤ →
      HasDerivWithinAt (fun r : ℝ =>
        (realSpectrumMeanEnergy amplifierEnergy (amplifierTimeKernel r rho.coefficients)).toReal)
        ((realSpectrumMeanEnergy amplifierEnergy (amplifierTimeKernel t rho.coefficients)).toReal) (Set.Ici 0) t) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P46

end
Source
Convergence rates for quantum evolution & entropic continuity bounds in infinite dimensions, arXiv:1810.00863v3, PDF p. 43, Example 12, exact energy drift of attenuator/amplifier
Read-back

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

For every state matrix ρ\rhoρ indexed by N\mathbb NN and every real t≥0t\ge0t≥0, define N(X)=∑j≥0[jRe⁡Xjj]+N(X)=\sum_{j\ge0}[j\operatorname{Re}X_{jj}]_+N(X)=∑j≥0​[jReXjj​]+​ and A(X)=∑j≥0[(j+1)Re⁡Xjj]+A(X)=\sum_{j\ge0}[(j+1)\operatorname{Re}X_{jj}]_+A(X)=∑j≥0​[(j+1)ReXjj​]+​. A state matrix here has a representation Xij=∑rur(i)vr(j)‾X_{ij}=\sum_r u_r(i)\overline{v_r(j)}Xij​=∑r​ur​(i)vr​(j)​ with ur,vr∈ℓ2(N;C)u_r,v_r\in\ell^2(\mathbb N;\mathbb C)ur​,vr​∈ℓ2(N;C) and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, has real nonnegative quadratic forms on every finite coordinate set, and has summable real diagonal with sum 111. Write Lr(X)L_r(X)Lr​(X) for the matrix whose entries are

Lr(X)mn=∑ℓ≥0(m+ℓℓ)(n+ℓℓ) (1−e−r)ℓe−r(m+n)/2Xm+ℓ,n+ℓ.L_r(X)_{mn}=\sum_{\ell\ge0} \sqrt{\binom{m+\ell}{\ell}\binom{n+\ell}{\ell}}\, (1-e^{-r})^\ell e^{-r(m+n)/2}X_{m+\ell,n+\ell}.Lr​(X)mn​=ℓ≥0∑​(ℓm+ℓ​)(ℓn+ℓ​)​(1−e−r)ℓe−r(m+n)/2Xm+ℓ,n+ℓ​.

Write Gr(X)G_r(X)Gr​(X) for the coefficient matrix of the following chosen bounded operator on ℓ2(N;C)\ell^2(\mathbb N;\mathbb C)ℓ2(N;C): first choose a bounded operator X^\widehat XX with matrix XXX, using 000 if none exists, and then choose a trace-norm sum YYY of Kr,ℓX^Kr,ℓ∗K_{r,\ell}\widehat X K_{r,\ell}^*Kr,ℓ​XKr,ℓ∗​, using 000 if no such sum exists. Here Kr,ℓK_{r,\ell}Kr,ℓ​ is a chosen bounded operator, or 000 if none exists, with entries

(Kr,ℓ)mn={e−r(n+1)/2(n+ℓℓ)(1−e−r)ℓ,m=n+ℓ,0,otherwise.(K_{r,\ell})_{mn}= \begin{cases} e^{-r(n+1)/2}\sqrt{\binom{n+\ell}{\ell}} \bigl(\sqrt{1-e^{-r}}\bigr)^\ell,&m=n+\ell,\\ 0,&\text{otherwise}. \end{cases}(Kr,ℓ​)mn​={e−r(n+1)/2(ℓn+ℓ​)​(1−e−r​)ℓ,0,​m=n+ℓ,otherwise.​

In this definition a trace-norm sum means that YYY, every finite partial sum, and every difference between a finite partial sum and YYY admit countable nuclear expansions, and the nuclear norms of those differences tend to zero over all finite index sets; an operator nuclear expansion is an operator-norm sum of rank-one operators ∣uj⟩⟨vj∣|u_j\rangle\langle v_j|∣uj​⟩⟨vj​∣ with ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞, and its nuclear norm is the infimum of these sums. The assertions are

N(Lt(ρ))=e−tN(ρ),A(Gt(ρ))=etA(ρ),N(L_t(\rho))=e^{-t}N(\rho), \qquad A(G_t(\rho))=e^tA(\rho),N(Lt​(ρ))=e−tN(ρ),A(Gt​(ρ))=etA(ρ),

as equalities in [0,∞][0,\infty][0,∞], together with the conditional derivative statements

N(ρ)<∞ ⟹ ddrN(Lr(ρ))real∣r=t, r≥0=−N(Lt(ρ))real,N(\rho)<\infty\ \Longrightarrow\ \left.\frac{d}{dr}N(L_r(\rho))^{\mathrm{real}}\right|_{r=t,\ r\ge0} =-N(L_t(\rho))^{\mathrm{real}},N(ρ)<∞ ⟹ drd​N(Lr​(ρ))real​r=t, r≥0​=−N(Lt​(ρ))real, A(ρ)<∞ ⟹ ddrA(Gr(ρ))real∣r=t, r≥0=A(Gt(ρ))real.A(\rho)<\infty\ \Longrightarrow\ \left.\frac{d}{dr}A(G_r(\rho))^{\mathrm{real}}\right|_{r=t,\ r\ge0} =A(G_t(\rho))^{\mathrm{real}}.A(ρ)<∞ ⟹ drd​A(Gr​(ρ))real​r=t, r≥0​=A(Gt​(ρ))real.

These are derivatives within [0,∞)[0,\infty)[0,∞), so at t=0t=0t=0 they are right derivatives. Infinite initial energies are included in the first two equalities; each derivative implication requires its respective initial energy to be finite. Here [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0) in [0,∞][0,\infty][0,∞], and the real conversion sends ∞\infty∞ to 000.

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