Spatial metric coefficients and the DeWitt metric
Definitionwdw_canonical_geometryCoordinate coefficient interface on arbitrary configuration and spatial types: a positive definite real three-metric with positive determinant, its positive square-root volume density, and the DeWitt coefficient of equation (5). Scalar curvature is supplied data, not derived from a connection. No smooth manifold or chart-compatibility property is encoded.
import Mathlib.LinearAlgebra.Matrix.PosDef
import Mathlib.LinearAlgebra.Matrix.Determinant.Basic
import Mathlib.Analysis.SpecialFunctions.Sqrt
import Mathlib.Data.Complex.Basic
set_option autoImplicit false
namespace WheelerDeWitt
noncomputable section
/-- Coordinate coefficient data for the formal canonical constraint.
`scalarCurvature` is supplied geometric data, not a construction of Ricci curvature. -/
structure Geometry (C X : Type*) where
metric : C → X → Matrix (Fin 3) (Fin 3) ℝ
metric_posDef : ∀ q x, (metric q x).PosDef
determinant_pos : ∀ q x, 0 < (metric q x).det
scalarCurvature : C → X → ℝ
def volumeDensity {C X : Type*} (g : Geometry C X) (q : C) (x : X) : ℝ :=
Real.sqrt (g.metric q x).det
def deWittMetric {C X : Type*} (g : Geometry C X) (q : C) (x : X)
(a b c d : Fin 3) : ℝ :=
(g.metric q x a c * g.metric q x b d +
g.metric q x a d * g.metric q x b c -
g.metric q x a b * g.metric q x c d) / (2 * volumeDensity g q x)
end
end WheelerDeWitt
Read-back
What the Lean code literally says, in plain math · Codex (inherited session model)
For arbitrary types and , Geometry is a record consisting of a function assigning a real matrix to each and , a proof that each matrix is positive definite (in particular symmetric), a separate proof that for every such pair, and an arbitrary real-valued function named scalar curvature. No manifold, topology, coordinate chart, regularity, or relation between and is part of this record. For any such record, its volume density is defined by , and for any four indices its DeWitt coefficient is defined by . These formulas use the entries of itself. The types and may be empty, in which case requirements quantified over their pairs are vacuous; at every existing pair the determinant hypothesis ensures that and hence the denominator in are positive.