Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Changes of variables on the line and the Gaussian/Lorentzian wave functions

Definition
UnphysicalHilbert_Position

by Lucas · Oct 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

change-of-variablesl2quantum-mechanics
  1. Orientation-preserving diffeomorphism. A bijection f:R→Rf:\mathbb R\to\mathbb Rf:R→R is an orientation-preserving diffeomorphism if fff and f−1f^{-1}f−1 are C∞C^\inftyC∞ and fff is strictly increasing.
  2. Transformed wave function. For such fff and ψ:R→C\psi:\mathbb R\to\mathbb Cψ:R→C,
(Ufψ)(y)=ψ(f−1(y))∣df−1dy(y)∣.(U_f\psi)(y)=\psi\bigl(f^{-1}(y)\bigr)\sqrt{\left|\tfrac{d f^{-1}}{dy}(y)\right|}.(Uf​ψ)(y)=ψ(f−1(y))​dydf−1​(y)​​.
  1. Error function. erf⁡(x)=2π∫0xe−t2 dt\operatorname{erf}(x)=\dfrac{2}{\sqrt\pi}\displaystyle\int_0^x e^{-t^2}\,dterf(x)=π​2​∫0x​e−t2dt.
  2. Gaussian wave function (eq. (27)): ψ(x)=e−x2/π\psi(x)=\sqrt{e^{-x^2}/\sqrt\pi}ψ(x)=e−x2/π​​.
  3. Lorentzian wave function (eq. (28)): ϕ(y)=1/π(y2+1)\phi(y)=1/\sqrt{\pi(y^2+1)}ϕ(y)=1/π(y2+1)​, whose density ∣ϕ∣2|\phi|^2∣ϕ∣2 is the standard Cauchy density.
  4. The coordinate change of eq. (29): y(x)=tan⁡(π2erf⁡(x))y(x)=\tan\bigl(\tfrac\pi2\operatorname{erf}(x)\bigr)y(x)=tan(2π​erf(x)).

These are the objects used in Section VI of the paper to exhibit a change of coordinates that turns finite expectation values into infinite ones.

Formalization Note In item 2 the paper writes the Jacobian factor as ∣df−1/dx∣|df^{-1}/dx|∣df−1/dx∣; the factor that makes the map preserve the L2L^2L2 norm (paper's eq. (25)) is the derivative of f−1f^{-1}f−1 evaluated at yyy, which is what is used. Wave functions in items 4–6 are real-valued functions on R\mathbb RR.

Definition code
import Mathlib

/-!
# Unphysicality of Hilbert spaces — wave functions and changes of variables on `ℝ`

Definitions used by Proposition 24 and equations (27)–(29) of
G. Carcassi, C. A. Aidala, F. Calderón, *The unphysicality of Hilbert spaces*,
arXiv:2308.06669v3, Section VI.
-/

namespace UnphysicalHilbert

open scoped ContDiff Real

/-- `f : ℝ ≃ ℝ` is an orientation-preserving (smooth) diffeomorphism of the real line. -/
def IsOrientationPreservingDiffeo (f : ℝ ≃ ℝ) : Prop :=
  ContDiff ℝ ∞ f ∧ ContDiff ℝ ∞ f.symm ∧ StrictMono f

/-- The wave function transformed by the change of variables `y = f(x)`
(paper, Prop. 24): `(Uψ)(y) = ψ(f⁻¹(y)) · √|d f⁻¹/dy (y)|`. -/
noncomputable def changeOfVariables (f : ℝ ≃ ℝ) (ψ : ℝ → ℂ) (y : ℝ) : ℂ :=
  ψ (f.symm y) * (Real.sqrt |deriv f.symm y| : ℂ)

/-- The error function `erf x = (2/√π) ∫₀ˣ e^{-t²} dt`. -/
noncomputable def erf (x : ℝ) : ℝ :=
  2 / Real.sqrt π * ∫ t in (0 : ℝ)..x, Real.exp (-t ^ 2)

/-- The Gaussian wave function `ψ(x) = √(e^{-x²}/√π)` (paper, eq. (27)). -/
noncomputable def gaussianWave (x : ℝ) : ℝ :=
  Real.sqrt (Real.exp (-x ^ 2) / Real.sqrt π)

/-- The wave function `ϕ(y) = 1/√(π(y²+1))` (paper, eq. (28)), whose probability density
is the standard Cauchy (Lorentzian) density. -/
noncomputable def lorentzianWave (y : ℝ) : ℝ :=
  1 / Real.sqrt (π * (y ^ 2 + 1))

/-- The change of variables `y(x) = tan((π/2) erf x)` (paper, eq. (29)). -/
noncomputable def erfTanCoordinate (x : ℝ) : ℝ :=
  Real.tan (π / 2 * erf x)

end UnphysicalHilbert
Source
G. Carcassi, C. A. Aidala, F. Calderón, *The unphysicality of Hilbert spaces*, arXiv:2308.06669v3 [quant-ph], 22 Dec 2024, https://arxiv.org/abs/2308.06669, Section VI, pp. 11–12 (Proposition 24, eqs. (26)–(29))
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 13, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me