pith. sign in
def

inverse_metric

definition
show as:
module
IndisputableMonolith.Relativity.Geometry.Metric
domain
Relativity
line
67 · github
papers citing
none yet

plain-language theorem explainer

This definition supplies the contravariant metric tensor as a bilinear form by inverting the 4x4 matrix of a given covariant MetricTensor at each spacetime point. Researchers computing Christoffel symbols, Ricci scalars, or squared gradients in the Recognition framework would cite it to raise indices on tensors. The body is a direct wrapper that extracts the matrix via metric_to_matrix and applies built-in inversion to the supplied index pair.

Claim. Given a symmetric bilinear metric tensor $g$ on spacetime points, the inverse metric $g^{ab}$ is the contravariant bilinear form whose components at each $x$ are obtained by matrix inversion of the $4times4$ representation of $g$.

background

In the Relativity.Geometry.Metric module, MetricTensor is a structure carrying a BilinearForm $g$ together with an explicit symmetry condition that swaps the two lower indices. The sibling definition metric_to_matrix converts this form into an explicit Matrix (Fin 4) (Fin 4) ℝ at each point $x$. ContravariantBilinear is the imported type for objects with two upper indices. The module provides a local, non-sealed interface for 4D spacetime geometry that downstream curvature and Hamiltonian constructions rely on.

proof idea

The definition is a one-line wrapper. It constructs the contravariant bilinear form by feeding the point $x$ and the two upper indices into the matrix inverse of (metric_to_matrix g x), selecting the appropriate entries via (up 0) and (up 1). No lemmas or tactics are invoked beyond the matrix inverse primitive.

why it matters

This definition supplies the contravariant metric required by christoffel, ricci_scalar, gradient_squared, StressEnergyTensor, and the Hamiltonian density. It therefore sits at the base of the local geometry layer that feeds the Recognition Science forcing chain once relativistic structures are introduced. Without an explicit inverse, index-raising steps in the eight-tick octave and phi-ladder constructions remain blocked.

Switch to Lean above to see the machine-checked source, dependencies, and usage graph.