Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The Wigner quasiprobability distribution

Definition
wigner

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

analysismeasure-theoryquantum-mechanics

The Wigner quasiprobability distribution (Wigner function) of a wavefunction. For a wavefunction ψ:R→C\psi : \mathbb{R} \to \mathbb{C}ψ:R→C and a phase-space point (x,p)∈R2(x, p) \in \mathbb{R}^2(x,p)∈R2, with ℏ>0\hbar > 0ℏ>0 the reduced Planck constant, the Wigner function is

W(x,p)=1πℏ∫−∞∞ψ(x+y)‾ ψ(x−y) e2ipy/ℏ dy,W(x,p) = \frac{1}{\pi\hbar}\int_{-\infty}^{\infty}\overline{\psi(x+y)}\,\psi(x-y)\,e^{2ipy/\hbar}\,dy,W(x,p)=πℏ1​∫−∞∞​ψ(x+y)​ψ(x−y)e2ipy/ℏdy,

the transform introduced by E. Wigner in 1932 to study quantum corrections to classical statistical mechanics. It is the phase-space realization of the quantum state: integrating WWW over momentum recovers the position probability density, integrating over position recovers the momentum density, and operator expectation values become phase-space averages against WWW via Weyl quantization.

Formalization Note The integral is the Bochner integral with respect to Lebesgue measure on R\mathbb{R}R. The code factors the formula into the integrand (Wigner.wignerIntegrand), the integral (Wigner.wignerIntegral), and the Wigner function itself (Wigner.wigner), defined as the real part of the integral divided by πℏ\pi\hbarπℏ. That the discarded imaginary part vanishes is Property 1 of the source and the mission's first milestone; the definition is total, with value 0 wherever the integral does not exist.

Definition code
import Mathlib

open MeasureTheory
open ComplexConjugate

namespace Wigner

/-- The integrand of the Wigner function of the wavefunction psi at the phase-space
point (x, p), with hbar the reduced Planck constant:
conj (psi (x + y)) * psi (x - y) * exp (2 * p * y * i / hbar). -/
noncomputable def wignerIntegrand (ψ : ℝ → ℂ) (ℏ x p y : ℝ) : ℂ :=
  conj (ψ (x + y)) * ψ (x - y) *
    Complex.exp (Complex.ofReal (2 * p * y / ℏ) * Complex.I)

/-- The defining integral of the Wigner function of psi at (x, p):
the Bochner integral over y of wignerIntegrand psi hbar x p y. -/
noncomputable def wignerIntegral (ψ : ℝ → ℂ) (ℏ x p : ℝ) : ℂ :=
  ∫ y, wignerIntegrand ψ ℏ x p y

/-- The Wigner quasiprobability distribution (Wigner function) of psi at (x, p):
the real part of wignerIntegral, divided by pi * hbar. -/
noncomputable def wigner (ψ : ℝ → ℂ) (ℏ x p : ℝ) : ℝ :=
  (wignerIntegral ψ ℏ x p).re / (Real.pi * ℏ)

end Wigner
Source
Wikipedia, "Wigner quasiprobability distribution" (oldid 1376057304), section "Definition and meaning", first displayed formula. https://en.wikipedia.org/wiki/Wigner_quasiprobability_distribution
Read-back

What the Lean code literally says, in plain math · glm-5-latest-short

The code declares three definitions in the namespace Wigner and proves nothing.

  1. For a function ψ:R→C\psi : \mathbb{R} \to \mathbb{C}ψ:R→C and real numbers ℏ,x,p,y\hbar, x, p, yℏ,x,p,y, the value of wignerIntegrand at (ψ,ℏ,x,p,y)(\psi, \hbar, x, p, y)(ψ,ℏ,x,p,y) is the complex number ψ(x+y)‾⋅ψ(x−y)⋅e(2py/ℏ)⋅i\overline{\psi(x+y)} \cdot \psi(x-y) \cdot e^{(2py/\hbar) \cdot i}ψ(x+y)​⋅ψ(x−y)⋅e(2py/ℏ)⋅i, with iii the imaginary unit.

  2. wignerIntegral (ψ,ℏ,x,p)(\psi, \hbar, x, p)(ψ,ℏ,x,p) is the Bochner integral over all y∈Ry \in \mathbb{R}y∈R, with respect to Lebesgue measure, of the map y↦y \mapstoy↦ wignerIntegrand(ψ,ℏ,x,p,y)(\psi, \hbar, x, p, y)(ψ,ℏ,x,p,y). This is a total function: by the junk-value convention of the Bochner integral, the value is 0 whenever the integrand is not essentially strongly measurable and integrable.

  3. wigner (ψ,ℏ,x,p)(\psi, \hbar, x, p)(ψ,ℏ,x,p) is the real part of wignerIntegral(ψ,ℏ,x,p)(\psi, \hbar, x, p)(ψ,ℏ,x,p), divided by the real number π⋅ℏ\pi \cdot \hbarπ⋅ℏ; this is ordinary real division, which evaluates to 0 when ℏ=0\hbar = 0ℏ=0.

No measurability, integrability, normalization, or positivity assumptions are attached to any of the three functions.

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

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 18, 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