Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Causality, Cauchy hypersurfaces, spacelike slices and trapped surfaces

Definition
natario_gr_causality

by LG · Sep 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

differential-geometrygeneral-relativity

Inextendible causal curves, Cauchy hypersurfaces and global hyperbolicity; the chronological and causal futures of a set; spacelike hypersurfaces with their unit normal, second fundamental form, expansion, conjugate points and maximizing curves; compact two-surfaces inside a hypersurface with their two null normals, the associated null expansions, and the notion of a trapped surface.

Definition code
import Definitions.Def_natario_gr_curves
import Definitions.Def_natario_gr_congruence

open scoped ContDiff

/-!
# Causality, Cauchy hypersurfaces, spacelike slices and trapped surfaces

Continuation of the coordinate framework for J. Natário, *Mathematical Relativity*
(arXiv:2003.02855), Chapters 3 and 4.
-/

namespace MathematicalRelativity

namespace Spacetime

variable (m : Spacetime)

/-- An inextendible future-pointing causal curve: one defined for every value of its
parameter which approaches no endpoint, in either direction.  (Every causal curve can be
reparameterized so that its parameter ranges over all of `ℝ`, so the content of the
definition is the absence of endpoints.) -/
def IsInextendibleCausalCurve (c : ℝ → Pt) : Prop :=
  m.IsCausalCurveOn c Set.univ ∧
    ¬ (∃ p : Pt, Filter.Tendsto c Filter.atTop (nhds p)) ∧
    ¬ (∃ p : Pt, Filter.Tendsto c Filter.atBot (nhds p))

/-- `S` is a Cauchy hypersurface: every inextendible causal curve meets it exactly once. -/
def IsCauchySurface (S : Set Pt) : Prop :=
  ∀ c : ℝ → Pt, m.IsInextendibleCausalCurve c → ∃! t : ℝ, c t ∈ S

/-- Global hyperbolicity: the spacetime admits a Cauchy hypersurface. -/
def GloballyHyperbolic : Prop := ∃ S : Set Pt, m.IsCauchySurface S

/-- The chronological future `I⁺(A)`: points reached from `A` by a future-pointing
timelike curve. -/
def chronFuture (A : Set Pt) : Set Pt :=
  {q : Pt | ∃ (c : ℝ → Pt) (t₁ : ℝ), 0 < t₁ ∧ m.IsTimelikeCurveOn c (Set.Icc 0 t₁) ∧
      c 0 ∈ A ∧ c t₁ = q}

/-- The causal future `J⁺(A)`: points reached from `A` by a future-pointing causal curve,
together with `A` itself. -/
def causalFuture (A : Set Pt) : Set Pt :=
  {q : Pt | q ∈ A ∨ ∃ (c : ℝ → Pt) (t₁ : ℝ), 0 < t₁ ∧ m.IsCausalCurveOn c (Set.Icc 0 t₁) ∧
      c 0 ∈ A ∧ c t₁ = q}

end Spacetime

/-- A smooth spacelike hypersurface, presented as the zero level set of a function `f`
with nowhere vanishing differential, together with its future-pointing unit normal field
`N` (Natário, §4.3). -/
structure Slice (m : Spacetime) where
  f : Pt → ℝ
  f_smooth : ContDiff ℝ ∞ f
  N : Pt → Pt
  N_smooth : ∀ a, ContDiff ℝ ∞ (fun x => N x a)
  N_unit : ∀ x, m.ip x (N x) (N x) = -1
  N_future : ∀ x, Spacetime.IsFuture (N x)
  N_normal : ∀ x, ∃ lam : ℝ, lam ≠ 0 ∧ ∀ a, pd f a x = lam * m.lower x (N x) a

namespace Slice

variable {m : Spacetime}

/-- The hypersurface as a subset of spacetime. -/
def carrier (S : Slice m) : Set Pt := {x : Pt | S.f x = 0}

/-- The second fundamental form `K_{μν} = ∇_ν N_μ` of the hypersurface. -/
noncomputable def K (S : Slice m) (u v : Fin 4) (x : Pt) : ℝ := m.covCov S.N v u x

/-- The expansion `θ = ∇_a N^a` of the congruence of future-pointing timelike geodesics
orthogonal to the hypersurface: the trace of its second fundamental form. -/
noncomputable def expansion (S : Slice m) (x : Pt) : ℝ := m.divergence S.N x

/-- The geodesic `c` leaves the hypersurface orthogonally at parameter `t₀`. -/
def OrthogonalAt (S : Slice m) (c : ℝ → Pt) (t₀ : ℝ) : Prop :=
  c t₀ ∈ S.carrier ∧ vel c t₀ = S.N (c t₀)

/-- `c t₁` is conjugate to the hypersurface `S` along the geodesic `c`, which leaves `S`
orthogonally at `t₀` (Natário, Def. 4.3.4). -/
def ConjugateToSlice (S : Slice m) (c : ℝ → Pt) (t₀ t₁ : ℝ) : Prop :=
  ∃ Y : ℝ → Pt, m.IsJacobiFieldOn c Y (Set.Icc t₀ t₁) ∧
    (∃ t ∈ Set.Icc t₀ t₁, Y t ≠ 0) ∧
    m.ip (c t₀) (S.N (c t₀)) (Y t₀) = 0 ∧
    (∀ a, m.covDAlong c Y t₀ a = ∑ b, m.covVec S.N a b (c t₀) * Y t₀ b) ∧
    Y t₁ = 0

/-- The timelike curve `c`, running from the hypersurface `S` at parameter `0` to its
endpoint at parameter `T`, maximizes proper time among all future-pointing timelike
curves from `S` to that same endpoint. -/
def MaximizesFromSlice (S : Slice m) (c : ℝ → Pt) (T : ℝ) : Prop :=
  ∀ (d : ℝ → Pt) (T' : ℝ), 0 < T' → m.IsTimelikeCurveOn d (Set.Icc 0 T') →
    d 0 ∈ S.carrier → d T' = c T → m.properTime d 0 T' ≤ m.properTime c 0 T

end Slice

/-- A compact two-dimensional surface inside the spacelike hypersurface `S`, presented as
the intersection of `S` with the zero level set of a function `h`, together with the unit
normal field `n` of the surface inside `S` (Natário, §4.6).  The defining data are only
required on an open neighbourhood `U` of the surface. -/
structure Surface (m : Spacetime) (S : Slice m) where
  U : Set Pt
  U_open : IsOpen U
  h : Pt → ℝ
  h_smooth : ContDiffOn ℝ ∞ h U
  n : Pt → Pt
  n_smooth : ∀ a, ContDiffOn ℝ ∞ (fun x => n x a) U
  n_unit : ∀ x ∈ U, m.ip x (n x) (n x) = 1
  n_orth : ∀ x ∈ U, m.ip x (n x) (S.N x) = 0
  n_normal : ∀ x ∈ U, ∃ lam : ℝ, lam ≠ 0 ∧ ∀ a, pd h a x = lam * m.lower x (n x) a
  subset : {x : Pt | S.f x = 0 ∧ h x = 0} ⊆ U
  compact : IsCompact {x : Pt | S.f x = 0 ∧ h x = 0}

namespace Spacetime

variable (m : Spacetime)

/-- The projector `P^{μν} = g^{μν} + (l^μ k^ν + k^μ l^ν)/2` onto the two-plane orthogonal
to a pair of future null normals `l`, `k` normalised by `⟪l, k⟫ = -2`. -/
noncomputable def nullProj (l k : Pt → Pt) (u v : Fin 4) (x : Pt) : ℝ :=
  m.ginv x u v + (1/2 : ℝ) * (l x u * k x v + k x u * l x v)

/-- The null expansion `θ = P^{μν} ∇_μ l_ν` of the null normal `l`, the complementary null
normal being `k` (Natário, §4.6). -/
noncomputable def nullExpansion (l k : Pt → Pt) (x : Pt) : ℝ :=
  ∑ u, ∑ v, m.nullProj l k u v x * m.covCov l u v x

end Spacetime

namespace Surface

variable {m : Spacetime} {S : Slice m}

/-- The surface as a subset of spacetime. -/
def carrier (Sig : Surface m S) : Set Pt := {x : Pt | S.f x = 0 ∧ Sig.h x = 0}

/-- The future null normal `l⁺ = N + n`. -/
def lplus (Sig : Surface m S) (x : Pt) : Pt := fun a => S.N x a + Sig.n x a

/-- The future null normal `l⁻ = N - n`. -/
def lminus (Sig : Surface m S) (x : Pt) : Pt := fun a => S.N x a - Sig.n x a

/-- The expansion `θ⁺` of the null geodesics with initial condition `N + n`. -/
noncomputable def thetaPlus (Sig : Surface m S) (x : Pt) : ℝ :=
  m.nullExpansion Sig.lplus Sig.lminus x

/-- The expansion `θ⁻` of the null geodesics with initial condition `N - n`. -/
noncomputable def thetaMinus (Sig : Surface m S) (x : Pt) : ℝ :=
  m.nullExpansion Sig.lminus Sig.lplus x

/-- A trapped surface: both null expansions are negative everywhere on the surface
(Natário, Def. 4.6.4). -/
def IsTrapped (Sig : Surface m S) : Prop :=
  ∀ x ∈ Sig.carrier, Sig.thetaPlus x < 0 ∧ Sig.thetaMinus x < 0

/-- The null geodesic `c` leaves the surface orthogonally at parameter `t₀`, with initial
velocity the null normal `l`. -/
def NormalNullGeodesicAt (Sig : Surface m S) (l : Pt → Pt) (c : ℝ → Pt) (t₀ : ℝ) : Prop :=
  c t₀ ∈ Sig.carrier ∧ vel c t₀ = l (c t₀)

/-- `c t₁` is conjugate to the surface along the null geodesic `c`, which leaves the
surface orthogonally at `t₀` in the direction of the null normal `l` (Natário, Def. 4.6.1,
in its Jacobi field formulation). -/
def ConjugateToSurface (Sig : Surface m S) (l : Pt → Pt) (c : ℝ → Pt) (t₀ t₁ : ℝ) : Prop :=
  ∃ Y : ℝ → Pt, m.IsJacobiFieldOn c Y (Set.Icc t₀ t₁) ∧
    (∃ t ∈ Set.Icc t₀ t₁, Y t ≠ 0) ∧
    m.ip (c t₀) (S.N (c t₀)) (Y t₀) = 0 ∧
    m.ip (c t₀) (Sig.n (c t₀)) (Y t₀) = 0 ∧
    (∀ a, m.covDAlong c Y t₀ a = ∑ b, m.covVec l a b (c t₀) * Y t₀ b) ∧
    Y t₁ = 0

end Surface

end MathematicalRelativity
Source
J. Natário, Mathematical Relativity, arXiv:2003.02855, Chapter 4 (Singularity theorems), §§4.3-4.6
Read-back

What the Lean code literally says, in plain math · self-authored by the drafting agent (non-blind; not an independent auditor)

Disclosure — non-blind read-back, not independent testimony. This read-back was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner. It is not the blind testimony of an independent auditor with fresh context, and it cannot serve the usual purpose of a read-back as an outside check on the drafter: any misreading in the formalization is likely to be repeated here. Please treat it as an authored restatement and obtain an independent audit before relying on it.

Causality. A curve c:R→R4c : \mathbb{R} \to \mathbb{R}^4c:R→R4 is an inextendible causal curve when it is a causal curve on all of R\mathbb{R}R (each component C1C^1C1, with c˙(t)\dot c(t)c˙(t) nonzero, of non-positive square and positive 000-component for every real ttt) and, in addition, c(t)c(t)c(t) has no limit as t→+∞t \to +\inftyt→+∞ and no limit as t→−∞t \to -\inftyt→−∞. A set S⊆R4S \subseteq \mathbb{R}^4S⊆R4 is a Cauchy hypersurface when for every inextendible causal curve ccc there is exactly one t∈Rt \in \mathbb{R}t∈R with c(t)∈Sc(t) \in Sc(t)∈S. The spacetime is globally hyperbolic when some set is a Cauchy hypersurface. The chronological future I+(A)I^+(A)I+(A) is the set of points qqq for which there are a curve ccc and a parameter t1>0t_1 > 0t1​>0 such that ccc is a timelike curve on [0,t1][0,t_1][0,t1​], c(0)∈Ac(0) \in Ac(0)∈A and c(t1)=qc(t_1) = qc(t1​)=q; the causal future J+(A)J^+(A)J+(A) is the union of AAA with the analogous set formed with causal curves.

Spacelike slices. A slice for a spacetime is a structure consisting of a C∞C^\inftyC∞ function f:R4→Rf : \mathbb{R}^4 \to \mathbb{R}f:R4→R together with a vector field NNN whose components are C∞C^\inftyC∞, such that at every point xxx of R4\mathbb{R}^4R4: ⟨N(x),N(x)⟩x=−1\langle N(x), N(x)\rangle_x = -1⟨N(x),N(x)⟩x​=−1; N(x)0>0N(x)^0 > 0N(x)0>0; and there is a nonzero real λ\lambdaλ (depending on xxx) with ∂af(x)=λ Na(x)\partial_a f(x) = \lambda\, N_a(x)∂a​f(x)=λNa​(x) for every aaa, where NaN_aNa​ is the metric lowering of NNN. In particular dfdfdf never vanishes and NNN is defined on all of R4\mathbb{R}^4R4, not only on the slice. The slice's carrier is {x:f(x)=0}\{x : f(x) = 0\}{x:f(x)=0}, its second fundamental form is Kuv(x)=∇vNu(x)K_{uv}(x) = \nabla_v N_u(x)Kuv​(x)=∇v​Nu​(x) and its expansion is θ(x)=∑a∇aNa(x)\theta(x) = \sum_a \nabla_a N^a(x)θ(x)=∑a​∇a​Na(x), both defined at every point of R4\mathbb{R}^4R4.

A geodesic ccc leaves the slice orthogonally at t0t_0t0​ when f(c(t0))=0f(c(t_0)) = 0f(c(t0​))=0 and c˙(t0)=N(c(t0))\dot c(t_0) = N(c(t_0))c˙(t0​)=N(c(t0​)). The point c(t1)c(t_1)c(t1​) is conjugate to the slice along ccc when there is a vector field YYY along ccc which is a Jacobi field on [t0,t1][t_0,t_1][t0​,t1​], is nonzero at some parameter of the closed interval [t0,t1][t_0,t_1][t0​,t1​], satisfies ⟨N(c(t0)),Y(t0)⟩c(t0)=0\langle N(c(t_0)), Y(t_0)\rangle_{c(t_0)} = 0⟨N(c(t0​)),Y(t0​)⟩c(t0​)​=0, satisfies (DtY)a(t0)=∑b∇bNa(c(t0)) Yb(t0)(D_tY)^a(t_0) = \sum_b \nabla_b N^a(c(t_0))\,Y^b(t_0)(Dt​Y)a(t0​)=∑b​∇b​Na(c(t0​))Yb(t0​) for every aaa, and vanishes at t1t_1t1​. Finally, ccc maximizes from the slice up to TTT when for every curve ddd and every T′>0T' > 0T′>0 such that ddd is a timelike curve on [0,T′][0,T'][0,T′] with f(d(0))=0f(d(0)) = 0f(d(0))=0 and d(T′)=c(T)d(T') = c(T)d(T′)=c(T), the proper time of ddd on [0,T′][0,T'][0,T′] is at most the proper time of ccc on [0,T][0,T][0,T]. Nothing in this predicate requires ccc itself to be timelike or to start on the slice.

Two-surfaces. A surface inside a slice is a structure consisting of an open set U⊆R4U \subseteq \mathbb{R}^4U⊆R4, a function hhh that is C∞C^\inftyC∞ on UUU, and a vector field nnn whose components are C∞C^\inftyC∞ on UUU, such that for every x∈Ux \in Ux∈U: ⟨n(x),n(x)⟩x=1\langle n(x), n(x)\rangle_x = 1⟨n(x),n(x)⟩x​=1, ⟨n(x),N(x)⟩x=0\langle n(x), N(x)\rangle_x = 0⟨n(x),N(x)⟩x​=0, and there is a nonzero real λ\lambdaλ with ∂ah(x)=λ na(x)\partial_a h(x) = \lambda\, n_a(x)∂a​h(x)=λna​(x) for all aaa; together with the requirements that Σ={x:f(x)=0 and h(x)=0}\Sigma = \{x : f(x) = 0 \text{ and } h(x) = 0\}Σ={x:f(x)=0 and h(x)=0} is contained in UUU and is compact. The carrier of the surface is that set Σ\SigmaΣ.

The two null normals are l±(x)=N(x)±n(x)l^{\pm}(x) = N(x) \pm n(x)l±(x)=N(x)±n(x). For a pair of fields l,kl, kl,k the bundle defines the projector Puv(x)=guv(x)+12(lu(x)kv(x)+ku(x)lv(x))P^{uv}(x) = g^{uv}(x) + \tfrac12\bigl(l^u(x)k^v(x) + k^u(x)l^v(x)\bigr)Puv(x)=guv(x)+21​(lu(x)kv(x)+ku(x)lv(x)) and the null expansion ∑u,vPuv(x) ∇ulv(x)\sum_{u,v}P^{uv}(x)\,\nabla_u l_v(x)∑u,v​Puv(x)∇u​lv​(x); then θ+(x)\theta^{+}(x)θ+(x) is this quantity for (l,k)=(l+,l−)(l,k) = (l^{+},l^{-})(l,k)=(l+,l−) and θ−(x)\theta^{-}(x)θ−(x) for (l,k)=(l−,l+)(l,k) = (l^{-},l^{+})(l,k)=(l−,l+). Both are defined at every xxx, but are only constrained by the structure's axioms on UUU. The surface is trapped when θ+(x)<0\theta^{+}(x) < 0θ+(x)<0 and θ−(x)<0\theta^{-}(x) < 0θ−(x)<0 for every xxx in its carrier.

A null geodesic ccc leaves the surface orthogonally at t0t_0t0​ in the direction lll when c(t0)c(t_0)c(t0​) lies in the carrier and c˙(t0)=l(c(t0))\dot c(t_0) = l(c(t_0))c˙(t0​)=l(c(t0​)); and c(t1)c(t_1)c(t1​) is conjugate to the surface along such a ccc when there is a Jacobi field YYY on [t0,t1][t_0,t_1][t0​,t1​], nonzero somewhere on [t0,t1][t_0,t_1][t0​,t1​], with ⟨N(c(t0)),Y(t0)⟩=0\langle N(c(t_0)), Y(t_0)\rangle = 0⟨N(c(t0​)),Y(t0​)⟩=0, ⟨n(c(t0)),Y(t0)⟩=0\langle n(c(t_0)), Y(t_0)\rangle = 0⟨n(c(t0​)),Y(t0​)⟩=0, (DtY)a(t0)=∑b∇bla(c(t0))Yb(t0)(D_tY)^a(t_0) = \sum_b \nabla_b l^a(c(t_0))Y^b(t_0)(Dt​Y)a(t0​)=∑b​∇b​la(c(t0​))Yb(t0​) for all aaa, and Y(t1)=0Y(t_1) = 0Y(t1​)=0.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me