Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 23: squared Gaussian Cramer transform

Open
QAlgorithms.Papers.Independent.Intakenext100.P54.squared_gaussian_cramer_transform

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

prove2quantum

Let Y∼N(0,σ2)Y\sim N(0,\sigma^2)Y∼N(0,σ2) with σ2>0\sigma^2>0σ2>0, and put X=Y2X=Y^2X=Y2. Define the extended log moment generating function by Λ(y)=ln⁡EeyX\Lambda(y)=\ln\mathbb E e^{yX}Λ(y)=lnEeyX, assigning +∞+\infty+∞ to divergent exponential moments, and define Λ∗(x)=sup⁡y∈R(yx−Λ(y))\Lambda^*(x)=\sup_{y\in\mathbb R}(yx-\Lambda(y))Λ∗(x)=supy∈R​(yx−Λ(y)). Then

Λ∗(x)={12[x/σ2−1−ln⁡(x/σ2)],x>0,+∞,x≤0.\Lambda^*(x)=\begin{cases}\frac12\bigl[x/\sigma^2-1-\ln(x/\sigma^2)\bigr],&x>0,\\+\infty,&x\le0.\end{cases}Λ∗(x)={21​[x/σ2−1−ln(x/σ2)],+∞,​x>0,x≤0.​

The supremum and logarithm take extended values; the positive moment integral is a nonnegative extended integral. This is the rate function used for Gaussian concentration, with zero value at the mean.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P54
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexConjugate ComplexOrder NNReal ENNReal

open MeasureTheory ProbabilityTheory

namespace QAlgorithms.Papers.Independent.Intakenext100.P54

open QAlgorithms.Papers.Independent.Information100.P03 (PureEnsemble)

open QAlgorithms.Papers.Independent.Information100.P53 (fidelity)

open QAlgorithms.Papers.Independent.Dependency50.P07 (wordProb)

open QAlgorithms.Papers.Independent.Claimed50.P08 (classicalEntropy)

open QAlgorithms.Papers.Independent.Claimed50.P38 (tensorSuperop)

/-- Lemma 23, PDF p.14: full Cramer transform including x ≤ 0, where it is infinity.
The variance is strictly positive; the logarithm in this formula is natural. -/
theorem squared_gaussian_cramer_transform (s2 : ℝ≥0) (hs : 0 < s2) (x : ℝ) :
    squaredGaussianRate s2 x =
      if 0 < x then (((x / s2 - 1 - Real.log (x / s2)) / 2 : ℝ) : EReal) else ⊤ := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P54

end
Source
Remote preparation of quantum states, arXiv:quant-ph/0307100v3, PDF p. 14, Lemma 23: squared Gaussian Cramer transform
Read-back

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

For every positive nonnegative-real variance parameter v=s2v=s2v=s2 and every real number xxx, the extended real supremum over all y∈Ry\in\mathbb Ry∈R of yx−L(∫R−eyt2 dγ0,v(t))yx-\mathcal L(\int_{\mathbb R}^{-}e^{yt^2}\,d\gamma_{0,v}(t))yx−L(∫R−​eyt2dγ0,v​(t)), where γ0,v\gamma_{0,v}γ0,v​ is the mean-zero real Gaussian measure of variance vvv and L\mathcal LL is the natural logarithm extended by L(0)=−∞\mathcal L(0)=-\inftyL(0)=−∞ and L(+∞)=+∞\mathcal L(+\infty)=+\inftyL(+∞)=+∞, equals

{x/v−1−ln⁡(x/v)2,x>0,+∞,x≤0.\begin{cases} \displaystyle\frac{x/v-1-\ln(x/v)}2,&x>0,\\[4pt] +\infty,&x\le0. \end{cases}⎩⎨⎧​2x/v−1−ln(x/v)​,+∞,​x>0,x≤0.​
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