PhysLib Schwarzschild–de Sitter metric data
DefinitionPhyslibSchwarzschildDeSitterCoordinatesgeneral-relativityphyslib-exact-spacetimes
The Schwarzschild–de Sitter model and its coordinate metric, with mass parameter and cosmological constant .
Definition code
import Definitions.Def_PhyslibCoordinateGeometry
import Definitions.Def_PhyslibStaticSphericalCoordinates
import Mathlib.Algebra.BigOperators.Fin
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Lie.Classical
import Mathlib.Analysis.Calculus.ContDiff.Deriv
import Mathlib.Analysis.Calculus.Deriv.Add
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.Calculus.Deriv.Inv
import Mathlib.Analysis.Calculus.Deriv.Mul
import Mathlib.Analysis.Calculus.Deriv.Pow
import Mathlib.Analysis.Calculus.Deriv.Prod
import Mathlib.Analysis.Calculus.FDeriv.Symmetric
import Mathlib.Analysis.ODE.ExistUnique
import Mathlib.Analysis.SpecialFunctions.Sqrt
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Inverse
import Mathlib.Data.Matrix.Basic
import Mathlib.Data.Real.Basic
import Mathlib.Data.Set.Basic
import Mathlib.LinearAlgebra.Matrix.Notation
import Mathlib.LinearAlgebra.Matrix.Symmetric
import Mathlib.Logic.Equiv.Fin.Basic
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.FinCases
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.NoncommRing
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Positivity
import Mathlib.Tactic.Ring
section
/-
Copyright (c) 2026 Alex Vergara Gil. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Vergara Gil
-/
/-!
# Schwarzschild–de Sitter curvature from the metric components
Derivation of the six independent Riemann curvature components and `Λ`-independent Weyl electric
eigenvalues directly from `SchwarzschildDeSitterSpacetime`.
## i. Overview
With radial metric function `f = 1 - 2M/r - Λr²/3` (`SchwarzschildDeSitterSpacetime.metricFn`)
and half-derivative `n = f'/2 = M/r² - Λr/3` (`SchwarzschildDeSitterSpacetime.metricFnHalfDeriv`),
the mixed radial Christoffel symbols are `Γ^t_{tr} = n / f` and `Γ^r_{rr} = -n / f`.
Differentiating these expressions yields all six independent Riemann components for general `Λ`:
- `R^t{}_{rtr} = (2M / r³ + Λ / 3) / f`,
- `R^t{}_{θtθ} = R^r{}_{θrθ} = Λ r² / 3 - M / r`,
- `R^t{}_{φtφ} = R^r{}_{φrφ} = (Λ r² / 3 - M / r) sin²θ`,
- `R^θ{}_{φθφ} = (2M / r + Λ r² / 3) sin²θ`.
Lowering into the orthonormal frame and subtracting the trace piece `-(Λ / 3) g` recovers
`electricPart (M / r³)` for every `Λ`: the cosmological constant shifts Ricci curvature while
leaving the Weyl tidal field unchanged.
## ii. Key results
- `SchwarzschildDeSitterSpacetime`, `SchwarzschildDeSitterSpacetime.metric`,
`SchwarzschildDeSitterSpacetime.metricInv`, `SchwarzschildDeSitterSpacetime.toCoordinateMetric`,
`SchwarzschildDeSitterSpacetime.metricFn`,
`SchwarzschildDeSitterSpacetime.metricFnHalfDeriv` : Schwarzschild–de Sitter spacetime structure,
coordinate metric, inverse, and metric function.
- `SchwarzschildDeSitterSpacetime.metricFn_zero_lambda` : reduction to
`SchwarzschildSpacetime.metricFn` at `Λ = 0`.
- `SchwarzschildDeSitterSpacetime.riemann_t_rtr`,
`SchwarzschildDeSitterSpacetime.riemann_t_thetatheta`,
`SchwarzschildDeSitterSpacetime.riemann_t_phitphi`,
`SchwarzschildDeSitterSpacetime.riemann_r_thetar`,
`SchwarzschildDeSitterSpacetime.riemann_r_phirphi`,
`SchwarzschildDeSitterSpacetime.riemann_theta_phitheta` : all six Riemann components for general
`Λ`.
- `SchwarzschildDeSitterSpacetime.weyl_rr`, `SchwarzschildDeSitterSpacetime.weyl_thetatheta`,
`SchwarzschildDeSitterSpacetime.weyl_phiphi` : `Λ`-independence of the Weyl electric eigenvalues.
## iii. Table of contents
- A. Metric function, half-derivative, and Christoffel symbols
- B. The six Riemann components for general `Λ`
- C. `Λ`-independence of the Weyl electric eigenvalues
## iv. References
* R. M. Wald, *General Relativity* (1984), Ch. 6 (Sec. 6.1) & Sec. 4.2.
[ref: wald_1984_general_relativity]
* C. W. Misner, K. S. Thorne, and J. A. Wheeler, *Gravitation* (1973), Ch. 23 & Ch. 27.
[ref: mtw_1973_gravitation]
* S. M. Carroll, *Lecture Notes on General Relativity* (1997), Ch. 7
(https://arxiv.org/pdf/gr-qc/9712019#page=168). [ref: Carroll1997]
-/
namespace GeneralRelativity
namespace SchwarzschildDeSitter
/-!
## A. Metric function, half-derivative, and Christoffel symbols
The Kottler metric is determined by the radial metric function `f(r) = 1 - 2M/r - Λr²/3`, whose
half-derivative `n(r) = M/r² - Λr/3` governs all non-vanishing radial Christoffel symbols.
-/
/-- Schwarzschild–de Sitter (Kottler) spacetime parameterized by mass `M` and cosmological
constant `Λ`. -/
structure SchwarzschildDeSitterSpacetime where
/-- Geometric mass parameter `M` (`G = c = 1`). -/
M : ℝ
/-- Cosmological constant `Λ`. -/
Λ : ℝ
namespace SchwarzschildDeSitterSpacetime
/-- The Schwarzschild–de Sitter radial metric function `f(r) = 1 - 2M / r - Λ r² / 3`. -/
noncomputable def metricFn (S : SchwarzschildDeSitterSpacetime) (r : ℝ) : ℝ :=
1 - 2 * S.M / r - S.Λ * r ^ 2 / 3
-- Factored out to avoid repeated factor-of-2 cancellation in Christoffel and Riemann expressions.
/-- Half the radial derivative of the metric function, `n = f'/2 = M / r² - Λ r / 3`. -/
noncomputable def metricFnHalfDeriv (S : SchwarzschildDeSitterSpacetime) (r : ℝ) : ℝ :=
S.M / r ^ 2 - S.Λ * r / 3
/-- View a Schwarzschild–de Sitter spacetime as a `StaticSpherical.StaticSphericalMetric` with profile
`S.metricFn`. -/
noncomputable def toStaticSpherical (S : SchwarzschildDeSitterSpacetime) :
StaticSpherical.StaticSphericalMetric :=
⟨S.metricFn⟩
/-- The Schwarzschild–de Sitter metric as a `CoordinateMetric 4` on its regular chart, where the
radial metric function and `sin θ` are nonzero. -/
noncomputable def toCoordinateMetric (S : SchwarzschildDeSitterSpacetime) : CoordinateMetric 4 :=
S.toStaticSpherical.toCoordinateMetric
/-- The Schwarzschild–de Sitter metric in `(t, r, θ, φ)` coordinates. -/
noncomputable def metric (S : SchwarzschildDeSitterSpacetime) (x : Fin 4 → ℝ) : Tensor2 4 :=
S.toStaticSpherical.metric x
/-- The inverse of the Schwarzschild–de Sitter metric in `(t, r, θ, φ)` coordinates. -/
noncomputable def metricInv (S : SchwarzschildDeSitterSpacetime) (x : Fin 4 → ℝ) : Tensor2 4 :=
S.toStaticSpherical.metricInv x
/-!
## B. The six Riemann components for general `Λ`
Each independent Riemann curvature component combines the Kottler mass potential `-M/r` with the
cosmological constant contribution `Λr²/3`.
-/
/-!
## C. `Λ`-independence of the Weyl electric eigenvalues
Subtracting the isotropic cosmological trace part `(Λ / 3) g` in the orthonormal frame isolates
the pure Weyl tidal tensor `electricPart (M / r³)`, demonstrating that `Λ` does not affect local
tidal stretching.
-/
end SchwarzschildDeSitterSpacetime
end SchwarzschildDeSitter
end GeneralRelativity
end
Source