Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The stress–energy tensor is traceless

Proved
PolyakovAction.stressEnergyTensor_traceless

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

mathematical-physicsstring-theory

Let hab(σ)h_{ab}(\sigma)hab​(σ) be symmetric with det⁡hab(σ)≠0\det h_{ab}(\sigma)\neq0dethab​(σ)=0. Then the stress–energy tensor Tab=T(Gab−12habhcdGcd)T_{ab}=T\big(G_{ab}-\tfrac12h_{ab}h^{cd}G_{cd}\big)Tab​=T(Gab​−21​hab​hcdGcd​) is traceless at σ\sigmaσ:

Taa=habTab=0.T^a{}_a=h^{ab}T_{ab}=0.Taa​=habTab​=0.

In the source this is the consequence of Weyl symmetry: since the action does not depend on the conformal factor ϕ\phiϕ, δS/δϕ=0\delta S/\delta\phi=0δS/δϕ=0 forces Taa=0T^a{}_a=0Taa​=0.

Formalization Note. The trace is computed directly from the explicit formula for TabT_{ab}Tab​ (which the source derives from δS/δhab\delta S/\delta h^{ab}δS/δhab); it is a pointwise statement.

Preamble
import Mathlib
import Definitions.Def_PolyakovAction_Defs

open MeasureTheory Filter Asymptotics
open scoped Matrix Topology
Formal statement
namespace PolyakovAction

theorem stressEnergyTensor_traceless {D : ℕ} (T : ℝ)
    (g : Spacetime D → Matrix (Fin D) (Fin D) ℝ)
    (h : Worldsheet → Matrix (Fin 2) (Fin 2) ℝ) (X : Worldsheet → Spacetime D)
    (σ : Worldsheet) (hsymm : (h σ)ᵀ = h σ) (hdet : (h σ).det ≠ 0) :
    ∑ a, ∑ b, (h σ)⁻¹ a b * stressEnergyTensor T g h X σ a b = 0 := by sorry

end PolyakovAction
Source
Wikipedia, "Polyakov action", revision oldid=1292212311 (https://en.wikipedia.org/w/index.php?title=Polyakov_action&oldid=1292212311)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements of this proposal, at the account owner's explicit instruction. Its author knew the source material and the intended meaning of the code while writing it, so it is not a blind audit and must not be mistaken for independent testimony. Reviewers should compare it against the Lean code themselves.

Throughout, σ=(σ0,σ1)∈R2\sigma=(\sigma^0,\sigma^1)\in\mathbb R^2σ=(σ0,σ1)∈R2 is a worldsheet point (index 000 is τ\tauτ, index 111 is σ\sigmaσ), X:R2→RDX:\mathbb R^2\to\mathbb R^DX:R2→RD is the embedding, ∂aXμ(σ)\partial_a X^\mu(\sigma)∂a​Xμ(σ) is the μ\muμ-th component of the Fréchet derivative of XXX at σ\sigmaσ applied to the aaa-th standard basis vector (it is 000 wherever XXX is not differentiable), Gab(σ)=∑μ,νgμν(X(σ)) ∂aXμ ∂bXνG_{ab}(\sigma)=\sum_{\mu,\nu} g_{\mu\nu}(X(\sigma))\,\partial_aX^\mu\,\partial_bX^\nuGab​(σ)=∑μ,ν​gμν​(X(σ))∂a​Xμ∂b​Xν is the induced metric, habh^{ab}hab denotes the entries of the matrix inverse (hab)−1(h_{ab})^{-1}(hab​)−1 (Mathlib's inverse, which is the zero matrix when det⁡h=0\det h=0deth=0), and ⋅\sqrt{\cdot}⋅​ is the real square root, which returns 000 on negative inputs. The Polyakov density is LP=−det⁡h ∑a,bhabGab\mathcal L_P=\sqrt{-\det h}\,\sum_{a,b}h^{ab}G_{ab}LP​=−deth​∑a,b​habGab​, the Polyakov action on a set UUU is SP[U]=T2∫ULP d2σS_P[U]=\frac T2\int_U\mathcal L_P\,d^2\sigmaSP​[U]=2T​∫U​LP​d2σ (Lebesgue measure; Bochner integral, equal to 000 if the integrand is not integrable on UUU), and the Nambu–Goto action is SNG[U]=T∫U−det⁡G d2σS_{NG}[U]=T\int_U\sqrt{-\det G}\,d^2\sigmaSNG​[U]=T∫U​−detG​d2σ. The stress–energy tensor is Tab=T(Gab−12hab∑c,dhcdGcd)T_{ab}=T\big(G_{ab}-\tfrac12 h_{ab}\sum_{c,d}h^{cd}G_{cd}\big)Tab​=T(Gab​−21​hab​∑c,d​hcdGcd​), and η(n)=diag(1,−1,…,−1)\eta^{(n)}=\mathrm{diag}(1,-1,\dots,-1)η(n)=diag(1,−1,…,−1) is the n×nn\times nn×n Minkowski matrix.

Statement. For every DDD, real TTT, target metric ggg, worldsheet metric hhh, map XXX and point σ∈R2\sigma\in\mathbb R^2σ∈R2 such that h(σ)T=h(σ)h(\sigma)^{\mathsf T}=h(\sigma)h(σ)T=h(σ) and det⁡h(σ)≠0\det h(\sigma)\neq0deth(σ)=0:

∑a,b∈{0,1}(h(σ)−1)ab Tab(σ)=0.\sum_{a,b\in\{0,1\}}\big(h(\sigma)^{-1}\big)_{ab}\,T_{ab}(\sigma)=0.a,b∈{0,1}∑​(h(σ)−1)ab​Tab​(σ)=0.

No condition on XXX or ggg is imposed.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me