The Wigner quasiprobability distribution
DefinitionwignerThe Wigner quasiprobability distribution (Wigner function) of a wavefunction. For a wavefunction and a phase-space point , with the reduced Planck constant, the Wigner function is
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 over momentum recovers the position probability density, integrating over position recovers the momentum density, and operator expectation values become phase-space averages against via Weyl quantization.
Formalization Note The integral is the Bochner integral with respect to Lebesgue measure on . 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 . 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.
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
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.
-
For a function and real numbers , the value of wignerIntegrand at is the complex number , with the imaginary unit.
-
wignerIntegral is the Bochner integral over all , with respect to Lebesgue measure, of the map wignerIntegrand. 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.
-
wigner is the real part of wignerIntegral, divided by the real number ; this is ordinary real division, which evaluates to 0 when .
No measurability, integrability, normalization, or positivity assumptions are attached to any of the three functions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.