Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Generalized entropy, fine-grained GSL and quantum trapped surfaces

Definition
WallGSL_GeneralizedEntropy

by Lucas · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

black-hole-thermodynamicsgeneral-relativitygeneralized-second-law

This definition file encodes the thermodynamic notions of Wall (2013): the generalized entropy, the fine-grained generalized second law, the semiclassical comparison principle of Theorem 1, and quantum trapped surfaces. It builds on WallGSL_Spacetime.

The fine-grained generalized entropy Sgen=A/4ℏG+Q+SoutS_{\rm gen}=A/4\hbar G+Q+S_{\rm out}Sgen​=A/4ℏG+Q+Sout​ has no rigorous definition, so it is an arbitrary function Sgen:P(M)→RS_{\rm gen}:\mathcal P(M)\to\mathbb RSgen​:P(M)→R, read as the generalized entropy of (the part of a slice lying in) a region.

  1. Forward deformation. Σ′\Sigma'Σ′ is obtained from a Cauchy surface Σ\SigmaΣ by pushing it forwards inside UUU if Σ′\Sigma'Σ′ is a Cauchy surface, Σ′∖U=Σ∖U\Sigma'\setminus U=\Sigma\setminus UΣ′∖U=Σ∖U, and Σ′⊆J+(Σ)\Sigma'\subseteq J^+(\Sigma)Σ′⊆J+(Σ).
  2. Decreasing generalized entropy at g0g_0g0​ (Theorem 3's sense) of an exterior region XXX: there is a Cauchy surface Σ∋g0\Sigma\ni g_0Σ∋g0​ such that for every neighbourhood UUU of g0g_0g0​ there is a forward deformation Σ′\Sigma'Σ′ of Σ\SigmaΣ inside UUU with Sgen(Σ′∩X)<Sgen(Σ∩X)S_{\rm gen}(\Sigma'\cap X)<S_{\rm gen}(\Sigma\cap X)Sgen​(Σ′∩X)<Sgen​(Σ∩X).
  3. Observer: a future-infinite timelike worldline, or a future-infinite null ray (§2.2).
  4. Fine-grained GSL (eq. (10)): for every observer WWW and Cauchy surfaces Σ,Σ′\Sigma,\Sigma'Σ,Σ′ with Σ′⊆J+(Σ)\Sigma'\subseteq J^+(\Sigma)Σ′⊆J+(Σ),
Sgen(Σ∩I−(W))≤Sgen(Σ′∩I−(W)).S_{\rm gen}(\Sigma\cap I^-(W))\le S_{\rm gen}(\Sigma'\cap I^-(W)).Sgen​(Σ∩I−(W))≤Sgen​(Σ′∩I−(W)).
  1. Theorem 1 comparison at g0g_0g0​ for a null surface NNN with exterior XXX: whenever an observer's horizon H=∂I−(W)H=\partial I^-(W)H=∂I−(W) satisfies N∩I−(W)=∅N\cap I^-(W)=\emptysetN∩I−(W)=∅ and a future-directed null geodesic segment starting at g0g_0g0​ lies on N∩HN\cap HN∩H, decreasing generalized entropy of XXX at g0g_0g0​ implies decreasing generalized entropy of I−(W)I^-(W)I−(W) at g0g_0g0​.
  2. Outgoing null surface of T=∂ΣExtT=\partial_\Sigma\mathrm{Ext}T=∂Σ​Ext: N=(∂I+(Σ∖Ext)∖(Σ∖Ext))∪TN=\big(\partial I^+(\Sigma\setminus\mathrm{Ext})\setminus(\Sigma\setminus\mathrm{Ext})\big)\cup TN=(∂I+(Σ∖Ext)∖(Σ∖Ext))∪T, with exterior (I+(Σ∖Ext)‾)c\big(\overline{I^+(\Sigma\setminus\mathrm{Ext})}\big)^{c}(I+(Σ∖Ext)​)c.
  3. Quantum trapped surface (§3.2): Σ\SigmaΣ is a connected Cauchy surface, Ext⊆Σ\mathrm{Ext}\subseteq\SigmaExt⊆Σ is relatively open with noncompact closure, T=(Ext‾∩Σ)∖ExtT=(\overline{\mathrm{Ext}}\cap\Sigma)\setminus\mathrm{Ext}T=(Ext∩Σ)∖Ext is nonempty and compact, and the generalized entropy of the exterior of NNN is decreasing at every g0∈Tg_0\in Tg0​∈T.

Formalization Note Item 5 is the formal stand-in for "the semiclassical approximation is valid near g0g_0g0​": in the paper the comparison is derived (Theorem 1) from the semiclassical expansion, which has no rigorous formulation. "Decreasing" is strict, unlike the ≤\le≤ in eq. (33), because with ≤\le≤ a constant SgenS_{\rm gen}Sgen​ would count as decreasing everywhere while satisfying the GSL.

Definition code
import Definitions.Def_WallGSL_Spacetime

/-!
# Generalized entropy, the generalized second law, and quantum trapped surfaces

Definition layer (part 2) for the formalization of
A. C. Wall, *The generalized second law implies a quantum singularity theorem*,
Class. Quantum Grav. 30 (2013) 165003, §2.2 and §3.

The fine-grained generalized entropy `S_gen = A/(4ħG) + Q + S_out` of the paper has no
rigorous mathematical definition, so it is modelled abstractly as an arbitrary function
`Sgen : Set M → ℝ` assigning a generalized entropy to (the part of a time slice lying in)
a region of spacetime.  All physical input about it enters through explicit hypotheses:
the fine-grained GSL (eq. (10)) and, near the relevant points, the comparison principle
of Theorem 1 (which is the paper's consequence of the semiclassical approximation).
-/

open scoped Manifold Topology ContDiff
open Set Filter

namespace WallGSL

variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
  {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold 𝓘(ℝ, E) ∞ M]

namespace LorentzianMetric

variable (st : LorentzianMetric E M)

/-- `S'` is obtained from the Cauchy surface `S` by pushing it forwards in time inside
`U`: `S'` is again a Cauchy surface, it agrees with `S` outside `U`, and it lies in the
causal future of `S` ("nowhere to the past of `S`"). -/
def IsForwardDeformation (S S' U : Set M) : Prop :=
  st.IsCauchySurface S' ∧ S' \ U = S \ U ∧ S' ⊆ st.causalFuture S

/-- The generalized entropy of the exterior region `X` (of some null surface) is
decreasing at the point `g₀`, in the sense of Theorem 3 of the paper: there is a Cauchy
surface `S` through `g₀` such that, for every neighbourhood `U` of `g₀`, `S` can be pushed
forwards in time inside `U` to a Cauchy surface `S'` with
`Sgen (S' ∩ X) < Sgen (S ∩ X)`. -/
def EntropyDecreasingAt (Sgen : Set M → ℝ) (X : Set M) (g₀ : M) : Prop :=
  ∃ S : Set M, st.IsCauchySurface S ∧ g₀ ∈ S ∧
    ∀ U ∈ 𝓝 g₀, ∃ S' : Set M, st.IsForwardDeformation S S' U ∧ Sgen (S' ∩ X) < Sgen (S ∩ X)

/-- An "observer" in the sense of §2.2 of the paper, starting at parameter `a`: either a
future-infinite timelike worldline, or a future-directed null ray whose affine parameter
is infinite to the future. -/
def IsFutureObserver (W : ℝ → M) (a : ℝ) : Prop :=
  st.IsFutureInfiniteTimelike W a ∨ st.IsFutureInfiniteNullRay W a

/-- The fine-grained generalized second law, eq. (10) of the paper: for every observer
`W` with future causal horizon `∂I⁻(W)` and every pair of Cauchy surfaces `S, S'` with
`S'` nowhere to the past of `S`, the generalized entropy of the exterior `I⁻(W)` does not
decrease: `Sgen (S ∩ I⁻(W)) ≤ Sgen (S' ∩ I⁻(W))`. -/
def FineGrainedGSL (Sgen : Set M → ℝ) : Prop :=
  ∀ (W : ℝ → M) (a : ℝ), st.IsFutureObserver W a →
    ∀ S S' : Set M, st.IsCauchySurface S → st.IsCauchySurface S' →
      S' ⊆ st.causalFuture S →
      Sgen (S ∩ st.chronPast (W '' Ici a)) ≤ Sgen (S' ∩ st.chronPast (W '' Ici a))

/-- The comparison principle of Theorem 1 at the point `g₀`, for the null surface `N` with
exterior `X` (the inner surface) against causal horizons (the outer surface): whenever an
observer `W` has a causal horizon `H = ∂I⁻(W)` such that `N` lies within or on `H`
(`N ∩ I⁻(W) = ∅`) and some future-directed null geodesic segment starting at `g₀` lies on
both `N` and `H`, then decreasing generalized entropy of `X` at `g₀` forces decreasing
generalized entropy of the exterior `I⁻(W)` of `H` at `g₀`.

In the paper this is the content of Theorem 1, derived from the semiclassical
approximation near `g₀`; here it is the formal stand-in for "the semiclassical
approximation is valid near `g₀`". -/
def TheoremOneComparisonAt (Sgen : Set M → ℝ) (N X : Set M) (g₀ : M) : Prop :=
  ∀ (W : ℝ → M) (a : ℝ), st.IsFutureObserver W a →
    N ∩ st.chronPast (W '' Ici a) = ∅ →
    (∃ (γ : ℝ → M) (s b : ℝ), s < b ∧ γ s = g₀ ∧ ContinuousWithinAt γ (Ici s) s ∧
      st.IsGeodesicOn γ (Ioo s b) ∧ (∀ t ∈ Ioo s b, st.IsFutureNull (γ t) (velocity γ t)) ∧
      γ '' Ico s b ⊆ N ∩ frontier (st.chronPast (W '' Ici a))) →
    st.EntropyDecreasingAt Sgen X g₀ →
    st.EntropyDecreasingAt Sgen (st.chronPast (W '' Ici a)) g₀

/-- The null surface `N` shot out from `T` outwards and to the future, where `T` is the
boundary in the Cauchy surface `S` of the exterior region `Ext ⊆ S`: it consists of `T`
together with the part of the boundary of the chronological future of the inner closed
region `S \ Ext` that lies off `S \ Ext`. -/
def outgoingNullSurface (S T Ext : Set M) : Set M :=
  (frontier (st.chronFuture (S \ Ext)) \ (S \ Ext)) ∪ T

/-- The exterior side of the outgoing null surface: the complement of the closure of the
chronological future of the inner region `S \ Ext`. -/
def outgoingExterior (S Ext : Set M) : Set M :=
  (closure (st.chronFuture (S \ Ext)))ᶜ

/-- A quantum trapped surface (§3.2 of the paper).  `S` is a connected Cauchy surface,
`Ext ⊆ S` is a relatively open subset of `S` whose closure is noncompact (the exterior of
`T` on `S` is noncompact), and `T` is its relative boundary in `S`, assumed nonempty and
compact.  Finally, for every point `g₀ ∈ T` the fine-grained generalized entropy of the
exterior of the outgoing null surface shot out from `T` is decreasing at `g₀`, in the
sense of Theorem 3. -/
structure IsQuantumTrappedSurface (Sgen : Set M → ℝ) (S T Ext : Set M) : Prop where
  cauchy : st.IsCauchySurface S
  connected : IsConnected S
  ext_subset : Ext ⊆ S
  ext_relOpen : ∃ V : Set M, IsOpen V ∧ Ext = V ∩ S
  ext_noncompact : ¬ IsCompact (closure Ext)
  boundary_eq : T = (closure Ext ∩ S) \ Ext
  nonempty : T.Nonempty
  compact : IsCompact T
  decreasing : ∀ g₀ ∈ T, st.EntropyDecreasingAt Sgen (st.outgoingExterior S Ext) g₀

end LorentzianMetric

end WallGSL
Source
A. C. Wall, The generalized second law implies a quantum singularity theorem, Class. Quantum Grav. 30 (2013) 165003, https://doi.org/10.1088/0264-9381/30/16/165003, §2.2 eq. (10) (GSL, p. 6), Theorem 1 (p. 9), Theorem 3 eq. (33) (p. 14), quantum trapped surface definition (p. 15)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - same agent as the drafter; non-blind

Provenance note — this read-back is NOT blind. It was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements, with full knowledge of the source paper and of the intended meaning. It is therefore not independent testimony and must not be mistaken for a blind audit; reviewers should treat it as the drafter's own literal reading of the code and compare it against the source themselves.

Throughout, (g,τ)(g,\tau)(g,τ) is a LorentzianMetric on MMM (from WallGSL_Spacetime), SgenS_{\rm gen}Sgen​ is an arbitrary function from subsets of MMM to R\mathbb RR (no property of it is assumed in this file), and all sets are arbitrary subsets of MMM.

  • Forward deformation of SSS to S′S'S′ within UUU: S′S'S′ is a Cauchy surface, S′∖U=S∖US'\setminus U=S\setminus US′∖U=S∖U, and S′⊆J+(S)S'\subseteq J^+(S)S′⊆J+(S). (SSS itself is not required to be Cauchy here.)
  • Entropy decreasing at g0g_0g0​ for the region XXX: there exists a Cauchy surface SSS with g0∈Sg_0\in Sg0​∈S such that for every neighbourhood UUU of g0g_0g0​ there exists S′S'S′, a forward deformation of SSS within UUU, with
Sgen(S′∩X)<Sgen(S∩X).S_{\rm gen}(S'\cap X)<S_{\rm gen}(S\cap X).Sgen​(S′∩X)<Sgen​(S∩X).
  • Observer from aaa: WWW is a future-infinite timelike worldline from aaa, or a future-infinite null ray from aaa (definitions in WallGSL_Spacetime).
  • Fine-grained GSL: for every observer WWW from aaa, writing R=I−(W([a,∞)))R=I^-(W([a,\infty)))R=I−(W([a,∞))), and every pair of Cauchy surfaces S,S′S,S'S,S′ with S′⊆J+(S)S'\subseteq J^+(S)S′⊆J+(S): Sgen(S∩R)≤Sgen(S′∩R)S_{\rm gen}(S\cap R)\le S_{\rm gen}(S'\cap R)Sgen​(S∩R)≤Sgen​(S′∩R).
  • Theorem-1 comparison at g0g_0g0​ for (N,X)(N,X)(N,X): for every observer WWW from aaa, with R=I−(W([a,∞)))R=I^-(W([a,\infty)))R=I−(W([a,∞))): if N∩R=∅N\cap R=\emptysetN∩R=∅, and there exist γ\gammaγ and s<bs<bs<b with γ(s)=g0\gamma(s)=g_0γ(s)=g0​, γ\gammaγ right-continuous at sss, γ\gammaγ a geodesic on (s,b)(s,b)(s,b) with future-null velocity at every t∈(s,b)t\in(s,b)t∈(s,b), and γ([s,b))⊆N∩∂R\gamma([s,b))\subseteq N\cap\partial Rγ([s,b))⊆N∩∂R (topological frontier), and if the entropy is decreasing at g0g_0g0​ for XXX, then the entropy is decreasing at g0g_0g0​ for RRR.
  • Outgoing null surface of (S,T,Ext)(S,T,\mathrm{Ext})(S,T,Ext): (∂I+(S∖Ext)∖(S∖Ext))∪T\big(\partial I^+(S\setminus\mathrm{Ext})\setminus(S\setminus\mathrm{Ext})\big)\cup T(∂I+(S∖Ext)∖(S∖Ext))∪T, where ∂\partial∂ is the topological frontier in MMM. Outgoing exterior of (S,Ext)(S,\mathrm{Ext})(S,Ext): the complement of the closure of I+(S∖Ext)I^+(S\setminus\mathrm{Ext})I+(S∖Ext).
  • Quantum trapped surface (Sgen,S,T,Ext)(S_{\rm gen},S,T,\mathrm{Ext})(Sgen​,S,T,Ext) — all of: SSS is a Cauchy surface; SSS is connected (in particular nonempty); Ext⊆S\mathrm{Ext}\subseteq SExt⊆S; Ext=V∩S\mathrm{Ext}=V\cap SExt=V∩S for some open V⊆MV\subseteq MV⊆M; the closure of Ext\mathrm{Ext}Ext in MMM is not compact; T=(Ext‾∩S)∖ExtT=(\overline{\mathrm{Ext}}\cap S)\setminus\mathrm{Ext}T=(Ext∩S)∖Ext; TTT is nonempty; TTT is compact; and for every g0∈Tg_0\in Tg0​∈T the entropy is decreasing at g0g_0g0​ for the outgoing exterior of (S,Ext)(S,\mathrm{Ext})(S,Ext).

No codimension-2 or smoothness condition is imposed on TTT, and no condition relates the null surface NNN to the exterior region XXX in the comparison predicate other than those listed.

Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

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