Canonical momentum and the ordered Wheeler–DeWitt expression
Definitionwdw_canonical_operatorsComplex-valued wavefunctionals and a supplied complex-linear functional-derivative interface define momentum as −iℏ times the derivative. The normally ordered canonical Hamiltonian action and the expanded second-derivative expression include all four spatial tensor sums, the curvature/cosmological potential, and a supplied matter energy-density operator. The interface does not construct genuine functional derivatives, a Hilbert-space domain, or a regulated operator.
import Definitions.Def_wdw_canonical_geometry
import Mathlib.Algebra.Module.LinearMap.End
set_option autoImplicit false
namespace WheelerDeWitt
noncomputable section
abbrev Wavefunction (C : Type*) := C → ℂ
/-- Formal functional derivative interface. No analytic realization is asserted. -/
abbrev FunctionalDerivative (C X : Type*) :=
X → Fin 3 → Fin 3 → Module.End ℂ (Wavefunction C)
def momentum {C X : Type*} (D : FunctionalDerivative C X) (hbar : ℝ)
(x : X) (a b : Fin 3) : Module.End ℂ (Wavefunction C) :=
(-Complex.I * (hbar : ℂ)) • D x a b
/-- The canonical Hamiltonian with coefficients on the left and both momenta
to their right, acting on a wavefunctional. -/
def quantizedHamiltonian {C X : Type*} (g : Geometry C X)
(D : FunctionalDerivative C X) (rho : X → Module.End ℂ (Wavefunction C))
(kappa hbar cosmologicalConstant : ℝ) (psi : Wavefunction C) (q : C) (x : X) : ℂ :=
(2 * (kappa : ℂ)) *
(∑ a : Fin 3, ∑ b : Fin 3, ∑ c : Fin 3, ∑ d : Fin 3,
(deWittMetric g q x a b c d : ℂ) *
(momentum D hbar x a b (momentum D hbar x c d psi)) q) -
((2 * (kappa : ℂ))⁻¹ * (volumeDensity g q x : ℂ) *
((g.scalarCurvature q x : ℂ) - 2 * (cosmologicalConstant : ℂ))) * psi q +
(volumeDensity g q x : ℂ) * (rho x psi) q
def wheelerDeWittExpression {C X : Type*} (g : Geometry C X)
(D : FunctionalDerivative C X) (rho : X → Module.End ℂ (Wavefunction C))
(kappa hbar cosmologicalConstant : ℝ) (psi : Wavefunction C) (q : C) (x : X) : ℂ :=
(-2 * (kappa : ℂ) * (hbar : ℂ)^2) *
(∑ a : Fin 3, ∑ b : Fin 3, ∑ c : Fin 3, ∑ d : Fin 3,
(deWittMetric g q x a b c d : ℂ) * (D x a b (D x c d psi)) q) -
((2 * (kappa : ℂ))⁻¹ * (volumeDensity g q x : ℂ) *
((g.scalarCurvature q x : ℂ) - 2 * (cosmologicalConstant : ℂ))) * psi q +
(volumeDensity g q x : ℂ) * (rho x psi) q
end
end WheelerDeWitt
Read-back
What the Lean code literally says, in plain math · Codex (inherited session model)
For arbitrary types and , a wavefunction is any function . A functional derivative is a family , indexed by and , of complex-linear endomorphisms of the vector space of all such functions. Thus each operator is additive and commutes with multiplication by every complex scalar; no differentiability, derivative rule, symmetry in its indices, commutation with another operator, or analytic realization is assumed. For any real number , momentum is the endomorphism . For a geometry as above, put and , where is positive definite with positive determinant and is independently supplied real data. For any family of complex-linear endomorphisms of , any real , any wavefunction , and any , the quantized Hamiltonian is defined as , and the Wheeler–DeWitt expression as . Real quantities in these two formulas are embedded in , and the inverse is taken in . The coefficient multiplies the evaluated composition, so the operators in these definitions are not applied to that coefficient. Neither nor is required to be positive or nonzero in these definitions; if , the complex inverse of is . No property of beyond complex linearity is assumed. and may be empty.