Teleparallel gravity in coordinates: tetrad, Weitzenböck and Christoffel connections, torsion, contortion, superpotential, Lagrangians
DefinitionTeleparallelGravity_DefsCoordinate definitions for teleparallel gravity on (Aldrovandi-Pereira-Vu 2004, Section 2).
- Spacetime is ; is the Fréchet derivative of at applied to the -th coordinate basis vector.
- .
- A tetrad field is a family of functions ; it is admissible (
IsTetrad) if every component is and the matrix is invertible at every . is the inverse matrix and . - Metric (Eq. (4)): , inverse .
- Weitzenböck connection (Eq. (5)): ; torsion (Eq. (6)): ; .
- Christoffel connection: .
- Contortion (Eq. (9)): with .
- Curvature of any connection: ; Ricci and scalar of the Christoffel connection.
- , .
- Superpotential (Eq. (11)): .
- Teleparallel Lagrangian (Eq. (10)): ; Einstein-Hilbert Lagrangian: .
- Gauge picture: (Eq. (3)) and (Eq. (7)).
import Mathlib
/-!
# Teleparallel gravity: basic objects (coordinate formulation)
Definitions used by the draft Prove2Me mission built from
R. Aldrovandi, J. G. Pereira, K. H. Vu, *Selected Topics in Teleparallel Gravity*,
Braz. J. Phys. 34 (2004) 1374, Section 2 (Eqs. (1)–(11), (15)).
Everything is written in a single global coordinate chart `ℝ⁴`.
Index conventions: `h a μ x` is the tetrad component `h^a_μ(x)`; three-index
connection-type objects `Γ ρ μ ν x` stand for `Γ^ρ_{μν}(x)`.
-/
open scoped ContDiff
namespace TeleparallelGravity
/-- Spacetime points in a global coordinate chart, `x = (x⁰, x¹, x², x³)`. -/
abbrev Spacetime : Type := Fin 4 → ℝ
/-- The Minkowski metric of the tangent spaces, `η_ab = diag(+1, −1, −1, −1)`. -/
def minkowski : Matrix (Fin 4) (Fin 4) ℝ := Matrix.diagonal ![1, -1, -1, -1]
/-- Coordinate partial derivative `∂_ν f (x)`. -/
noncomputable def pd (ν : Fin 4) (f : Spacetime → ℝ) (x : Spacetime) : ℝ :=
fderiv ℝ f x (Pi.single ν 1)
/-- A tetrad field, stored by components: `h a μ x = h^a_μ(x)`. -/
abbrev TetradField : Type := Fin 4 → Fin 4 → Spacetime → ℝ
/-- The matrix `(h^a_μ(x))_{a,μ}` (rows: tangent index `a`, columns: spacetime index `μ`). -/
def tetradMatrix (h : TetradField) (x : Spacetime) : Matrix (Fin 4) (Fin 4) ℝ :=
Matrix.of fun a μ => h a μ x
/-- An admissible tetrad: smooth components, invertible at every point. -/
structure IsTetrad (h : TetradField) : Prop where
smooth : ∀ a μ, ContDiff ℝ ∞ (h a μ)
nondegenerate : ∀ x, (tetradMatrix h x).det ≠ 0
/-- Inverse tetrad: `invTetrad h x μ a = h_a^μ(x)`. -/
noncomputable def invTetrad (h : TetradField) (x : Spacetime) : Matrix (Fin 4) (Fin 4) ℝ :=
(tetradMatrix h x)⁻¹
/-- `h = det(h^a_μ)`. -/
noncomputable def tetradDet (h : TetradField) (x : Spacetime) : ℝ :=
(tetradMatrix h x).det
/-- Eq. (4): the spacetime metric `g_{μν} = η_ab h^a_μ h^b_ν`. -/
def metric (h : TetradField) (x : Spacetime) (μ ν : Fin 4) : ℝ :=
∑ a, ∑ b, minkowski a b * h a μ x * h b ν x
/-- Inverse metric `g^{μν}`. -/
noncomputable def invMetric (h : TetradField) (x : Spacetime) : Matrix (Fin 4) (Fin 4) ℝ :=
(Matrix.of (metric h x))⁻¹
/-- Eq. (5): the Weitzenböck connection `Γ^ρ_{μν} = h_a^ρ ∂_ν h^a_μ`. -/
noncomputable def weitzenbock (h : TetradField) (ρ μ ν : Fin 4) (x : Spacetime) : ℝ :=
∑ a, invTetrad h x ρ a * pd ν (h a μ) x
/-- Eq. (6): the Weitzenböck torsion `T^ρ_{μν} = Γ^ρ_{νμ} − Γ^ρ_{μν}`. -/
noncomputable def torsion (h : TetradField) (ρ μ ν : Fin 4) (x : Spacetime) : ℝ :=
weitzenbock h ρ ν μ x - weitzenbock h ρ μ ν x
/-- Torsion with its upper index lowered: `T_{ρμν} = g_{ρα} T^α_{μν}`. -/
noncomputable def torsionLower (h : TetradField) (ρ μ ν : Fin 4) (x : Spacetime) : ℝ :=
∑ α, metric h x ρ α * torsion h α μ ν x
/-- The Christoffel (Levi-Civita) connection of `g`:
`Γ°^ρ_{μν} = ½ g^{ρσ} (∂_μ g_{σν} + ∂_ν g_{σμ} − ∂_σ g_{μν})`. -/
noncomputable def christoffel (h : TetradField) (ρ μ ν : Fin 4) (x : Spacetime) : ℝ :=
(1 / 2 : ℝ) * ∑ σ, invMetric h x ρ σ *
(pd μ (fun y => metric h y σ ν) x + pd ν (fun y => metric h y σ μ) x
- pd σ (fun y => metric h y μ ν) x)
/-- Eq. (9): the contortion `K^ρ_{μν} = ½ (T_μ{}^ρ{}_ν + T_ν{}^ρ{}_μ − T^ρ{}_{μν})`,
where `T_μ{}^ρ{}_ν = g_{μα} g^{ρβ} T^α{}_{βν}`. -/
noncomputable def contortion (h : TetradField) (ρ μ ν : Fin 4) (x : Spacetime) : ℝ :=
(1 / 2 : ℝ) *
((∑ α, ∑ β, metric h x μ α * invMetric h x ρ β * torsion h α β ν x)
+ (∑ α, ∑ β, metric h x ν α * invMetric h x ρ β * torsion h α β μ x)
- torsion h ρ μ ν x)
/-- Curvature of a linear connection `Γ^ρ_{μν}` (derivative index last):
`R^ρ_{θμν} = ∂_μ Γ^ρ_{θν} − ∂_ν Γ^ρ_{θμ} + Γ^ρ_{σμ} Γ^σ_{θν} − Γ^ρ_{σν} Γ^σ_{θμ}`. -/
noncomputable def curvature (Γ : Fin 4 → Fin 4 → Fin 4 → Spacetime → ℝ)
(ρ θ μ ν : Fin 4) (x : Spacetime) : ℝ :=
pd μ (Γ ρ θ ν) x - pd ν (Γ ρ θ μ) x
+ ∑ σ, (Γ ρ σ μ x * Γ σ θ ν x - Γ ρ σ ν x * Γ σ θ μ x)
/-- Ricci tensor of the Christoffel connection, `R°_{θν} = R°^ρ_{θρν}`. -/
noncomputable def ricci (h : TetradField) (θ ν : Fin 4) (x : Spacetime) : ℝ :=
∑ ρ, curvature (christoffel h) ρ θ ρ ν x
/-- Scalar curvature of the Christoffel connection, `R° = g^{θν} R°_{θν}`. -/
noncomputable def scalarCurvature (h : TetradField) (x : Spacetime) : ℝ :=
∑ θ, ∑ ν, invMetric h x θ ν * ricci h θ ν x
/-- The torsion vector with raised index, `T^{σμ}{}_σ = g^{μβ} T^σ{}_{βσ}`. -/
noncomputable def torsionVectorUp (h : TetradField) (μ : Fin 4) (x : Spacetime) : ℝ :=
∑ β, invMetric h x μ β * ∑ σ, torsion h σ β σ x
/-- Contortion with both lower indices raised, `K^{μνρ} = g^{νβ} g^{ργ} K^μ{}_{βγ}`. -/
noncomputable def contortionUp (h : TetradField) (μ ν ρ : Fin 4) (x : Spacetime) : ℝ :=
∑ β, ∑ γ, invMetric h x ν β * invMetric h x ρ γ * contortion h μ β γ x
/-- Eq. (11): the superpotential
`S^{ρμν} = ½ [K^{μνρ} − g^{ρν} T^{σμ}{}_σ + g^{ρμ} T^{σν}{}_σ]`. -/
noncomputable def superpotential (h : TetradField) (ρ μ ν : Fin 4) (x : Spacetime) : ℝ :=
(1 / 2 : ℝ) * (contortionUp h μ ν ρ x - invMetric h x ρ ν * torsionVectorUp h μ x
+ invMetric h x ρ μ * torsionVectorUp h ν x)
/-- Eq. (10): the teleparallel gravitational Lagrangian density
`L_G = (c⁴ h / 16πG) S^{ρμν} T_{ρμν}`. -/
noncomputable def teleparallelLagrangian (c G : ℝ) (h : TetradField) (x : Spacetime) : ℝ :=
c ^ 4 * tetradDet h x / (16 * Real.pi * G) *
∑ ρ, ∑ μ, ∑ ν, superpotential h ρ μ ν x * torsionLower h ρ μ ν x
/-- The Einstein–Hilbert Lagrangian density for signature `(+,−,−,−)`,
`L_EH = −(c⁴ / 16πG) √(−g) R°`, with `g = det(g_{μν})`. -/
noncomputable def einsteinHilbertLagrangian (c G : ℝ) (h : TetradField) (x : Spacetime) : ℝ :=
-(c ^ 4 / (16 * Real.pi * G)) * Real.sqrt (-(Matrix.of (metric h x)).det) *
scalarCurvature h x
/-- Eq. (3): the tetrad built from tangent-space coordinates `x^a` and the translational
gauge potential `B^a_μ`: `h^a_μ = ∂_μ x^a + B^a_μ`. -/
noncomputable def tetradOfPotential (xa : Fin 4 → Spacetime → ℝ) (B : TetradField) :
TetradField :=
fun a μ y => pd μ (xa a) y + B a μ y
/-- Eq. (7): the translational field strength `F^a_{μν} = ∂_μ B^a_ν − ∂_ν B^a_μ`. -/
noncomputable def fieldStrength (B : TetradField) (a μ ν : Fin 4) (x : Spacetime) : ℝ :=
pd μ (B a ν) x - pd ν (B a μ) x
end TeleparallelGravity
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) - NON-BLIND, same agent that drafted the statements
NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent that drafted the Lean statement it describes (Aristotle, by Harmonic), at the explicit instruction of the account owner. The author knew the intended meaning and the source paper while writing it, so it must not be mistaken for the blind, independent auditor read-back the platform recommends. Reviewers should compare the Lean code against the source themselves.
The file introduces, in namespace TeleparallelGravity, the following objects. Points are (functions with the product norm). For , is defined as the Fréchet derivative of at evaluated on the standard basis vector ; if is not differentiable at this is by convention.
A tetrad field is any family of functions , (first index , second ), with no conditions. is the proposition: every is , and for every the matrix with entries has non-zero determinant. denotes the entry of (matrix inverse, which is the zero matrix if is singular), and .
With :
For an arbitrary family of functions , the curvature is
Ricci: ; scalar: . Further, , and
For real numbers (no conditions),
where division by gives (so both vanish if ) and of a negative number is . Finally, given functions and a family , the tetrad , and . All objects are evaluated pointwise at .