Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Polyakov action: worldsheet, induced metric, Polyakov and Nambu–Goto actions, stress–energy tensor

Definition
PolyakovAction_Defs

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

mathematical-physicsstring-theory

Shared definitions for the Polyakov-action mission (namespace PolyakovAction). Worldsheet points are σ=(σ0,σ1)=(τ,σ)∈R2\sigma=(\sigma^0,\sigma^1)=(\tau,\sigma)\in\mathbb R^2σ=(σ0,σ1)=(τ,σ)∈R2 and target points X∈RDX\in\mathbb R^DX∈RD.

  1. Partial derivatives. ∂aXμ(σ)\partial_a X^\mu(\sigma)∂a​Xμ(σ) and ∂a∂bXμ(σ)\partial_a\partial_b X^\mu(\sigma)∂a​∂b​Xμ(σ), computed from the Fréchet derivative of X:R2→RDX:\mathbb R^2\to\mathbb R^DX:R2→RD.
  2. Induced metric. Gab(σ)=gμν(X(σ)) ∂aXμ(σ) ∂bXν(σ)G_{ab}(\sigma)=g_{\mu\nu}(X(\sigma))\,\partial_aX^\mu(\sigma)\,\partial_bX^\nu(\sigma)Gab​(σ)=gμν​(X(σ))∂a​Xμ(σ)∂b​Xν(σ) for a target metric g:RD→RD×Dg:\mathbb R^D\to\mathbb R^{D\times D}g:RD→RD×D.
  3. Polyakov action. For a worldsheet metric hab(σ)h_{ab}(\sigma)hab​(σ) with inverse habh^{ab}hab and determinant h=det⁡(hab)h=\det(h_{ab})h=det(hab​), and string tension TTT,
S=T2∫Ud2σ −h habgμν(X) ∂aXμ ∂bXν.S=\frac T2\int_U d^2\sigma\,\sqrt{-h}\,h^{ab}g_{\mu\nu}(X)\,\partial_aX^\mu\,\partial_bX^\nu .S=2T​∫U​d2σ−h​habgμν​(X)∂a​Xμ∂b​Xν.
  1. Nambu–Goto action. SNG=T∫Ud2σ −GS_{NG}=T\int_U d^2\sigma\,\sqrt{-G}SNG​=T∫U​d2σ−G​, G=det⁡(Gab)G=\det(G_{ab})G=det(Gab​).
  2. 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​).
  3. Minkowski metric. η=diag(+1,−1,…,−1)\eta=\mathrm{diag}(+1,-1,\dots,-1)η=diag(+1,−1,…,−1) (timelike +++, spacelike −-−, as in the source).

These are the objects in terms of which every statement of the mission is phrased.

Formalization Note. Indices are Fin 2 / Fin D; habh^{ab}hab is Mathlib's matrix inverse (zero for a singular matrix); ⋅\sqrt{\cdot}⋅​ is Real.sqrt (zero on negative inputs); integrals are Bochner integrals for Lebesgue measure on R2\mathbb R^2R2 restricted to UUU.

Definition code
import Mathlib

namespace PolyakovAction

open MeasureTheory

/-- Worldsheet coordinates `σ = (σ 0, σ 1) = (τ, σ)`: index `0` is the timelike
coordinate `τ`, index `1` the spacelike coordinate `σ`. -/
abbrev Worldsheet := Fin 2 → ℝ

/-- The `D`-dimensional target manifold (coordinates `X^μ`). -/
abbrev Spacetime (D : ℕ) := Fin D → ℝ

/-- `∂_a X^μ (σ)`: partial derivative of the `μ`-th component of the embedding
`X` with respect to the worldsheet coordinate `σ^a`. -/
noncomputable def partialDeriv {D : ℕ} (X : Worldsheet → Spacetime D) (a : Fin 2)
    (μ : Fin D) (σ : Worldsheet) : ℝ :=
  fderiv ℝ X σ (Pi.single a 1) μ

/-- `∂_a ∂_b X^μ (σ)`: second partial derivative of the `μ`-th component of `X`. -/
noncomputable def secondPartialDeriv {D : ℕ} (X : Worldsheet → Spacetime D) (a b : Fin 2)
    (μ : Fin D) (σ : Worldsheet) : ℝ :=
  fderiv ℝ (fun σ' => fderiv ℝ X σ' (Pi.single b 1)) σ (Pi.single a 1) μ

/-- Induced (pull-back) metric `G_ab = g_μν(X) ∂_a X^μ ∂_b X^ν`. -/
noncomputable def inducedMetric {D : ℕ} (g : Spacetime D → Matrix (Fin D) (Fin D) ℝ)
    (X : Worldsheet → Spacetime D) (σ : Worldsheet) : Matrix (Fin 2) (Fin 2) ℝ :=
  Matrix.of fun a b => ∑ μ, ∑ ν, g (X σ) μ ν * partialDeriv X a μ σ * partialDeriv X b ν σ

/-- Polyakov Lagrangian density `√(-h) h^{ab} g_μν(X) ∂_a X^μ ∂_b X^ν`, where
`h = det (h_ab)` and `h^{ab}` is the inverse of the worldsheet metric `h_ab`. -/
noncomputable def polyakovLagrangian {D : ℕ} (g : Spacetime D → Matrix (Fin D) (Fin D) ℝ)
    (h : Worldsheet → Matrix (Fin 2) (Fin 2) ℝ) (X : Worldsheet → Spacetime D)
    (σ : Worldsheet) : ℝ :=
  Real.sqrt (-(h σ).det) * ∑ a, ∑ b, (h σ)⁻¹ a b * inducedMetric g X σ a b

/-- Polyakov action over a worldsheet region `U`:
`S = (T/2) ∫_U d²σ √(-h) h^{ab} g_μν(X) ∂_a X^μ ∂_b X^ν`. -/
noncomputable def polyakovAction {D : ℕ} (T : ℝ) (g : Spacetime D → Matrix (Fin D) (Fin D) ℝ)
    (h : Worldsheet → Matrix (Fin 2) (Fin 2) ℝ) (X : Worldsheet → Spacetime D)
    (U : Set Worldsheet) : ℝ :=
  T / 2 * ∫ σ in U, polyakovLagrangian g h X σ

/-- Nambu–Goto action over a worldsheet region `U`: `S = T ∫_U d²σ √(-G)`, `G = det G_ab`. -/
noncomputable def nambuGotoAction {D : ℕ} (T : ℝ) (g : Spacetime D → Matrix (Fin D) (Fin D) ℝ)
    (X : Worldsheet → Spacetime D) (U : Set Worldsheet) : ℝ :=
  T * ∫ σ in U, Real.sqrt (-(inducedMetric g X σ).det)

/-- Stress–energy tensor (lower indices) `T_ab = T (G_ab - ½ h_ab h^{cd} G_cd)`. -/
noncomputable def stressEnergyTensor {D : ℕ} (T : ℝ)
    (g : Spacetime D → Matrix (Fin D) (Fin D) ℝ) (h : Worldsheet → Matrix (Fin 2) (Fin 2) ℝ)
    (X : Worldsheet → Spacetime D) (σ : Worldsheet) : Matrix (Fin 2) (Fin 2) ℝ :=
  Matrix.of fun a b => T * (inducedMetric g X σ a b
    - 1 / 2 * h σ a b * ∑ c, ∑ d, (h σ)⁻¹ c d * inducedMetric g X σ c d)

/-- Minkowski metric `diag(+1, -1, …, -1)` on `ℝⁿ` (timelike `+`, spacelike `-`). -/
def minkowskiMetric (n : ℕ) : Matrix (Fin n) (Fin n) ℝ :=
  Matrix.diagonal fun i => if i.val = 0 then 1 else -1

end PolyakovAction
Source
Wikipedia, "Polyakov action", revision oldid=1292212311 (https://en.wikipedia.org/w/index.php?title=Polyakov_action&oldid=1292212311), lead section and sections "Relation with Nambu–Goto action", "Equations of motion"
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.

The file declares, inside the namespace PolyakovAction:

  • Worldsheet=R2\mathrm{Worldsheet}=\mathbb R^{2}Worldsheet=R2 (functions {0,1}→R\{0,1\}\to\mathbb R{0,1}→R) and Spacetime(D)=RD\mathrm{Spacetime}(D)=\mathbb R^{D}Spacetime(D)=RD.
  • ∂aXμ(σ)\partial_aX^\mu(\sigma)∂a​Xμ(σ): for X:R2→RDX:\mathbb R^2\to\mathbb R^DX:R2→RD, the μ\muμ-th coordinate of DX(σ)eaDX(\sigma)e_aDX(σ)ea​, where DX(σ)DX(\sigma)DX(σ) is the Fréchet derivative (defined to be the zero map if XXX is not differentiable at σ\sigmaσ) and eae_aea​ the aaa-th standard basis vector.
  • ∂a∂bXμ(σ)\partial_a\partial_bX^\mu(\sigma)∂a​∂b​Xμ(σ): the μ\muμ-th coordinate of the derivative at σ\sigmaσ, in direction eae_aea​, of the map σ′↦DX(σ′)eb\sigma'\mapsto DX(\sigma')e_bσ′↦DX(σ′)eb​ (again with zero junk at non-differentiable points).
  • Gab(σ)=∑μ,ν=1Dg(X(σ))μν ∂aXμ(σ) ∂bXν(σ)G_{ab}(\sigma)=\sum_{\mu,\nu=1}^{D} g(X(\sigma))_{\mu\nu}\,\partial_aX^\mu(\sigma)\,\partial_bX^\nu(\sigma)Gab​(σ)=∑μ,ν=1D​g(X(σ))μν​∂a​Xμ(σ)∂b​Xν(σ) for an arbitrary matrix-valued ggg (no symmetry or signature is imposed).
  • LP(σ)=−det⁡h(σ)  ∑a,b∈{0,1}(h(σ)−1)ab Gab(σ)\mathcal L_P(\sigma)=\sqrt{-\det h(\sigma)}\;\sum_{a,b\in\{0,1\}}\big(h(\sigma)^{-1}\big)_{ab}\,G_{ab}(\sigma)LP​(σ)=−deth(σ)​∑a,b∈{0,1}​(h(σ)−1)ab​Gab​(σ) for an arbitrary 2×22\times22×2-matrix-valued hhh; here x=0\sqrt{x}=0x​=0 for x<0x<0x<0 and h−1=0h^{-1}=0h−1=0 when det⁡h=0\det h=0deth=0.
  • SP(T,g,h,X,U)=T2∫ULP(σ) dσS_P(T,g,h,X,U)=\dfrac T2\displaystyle\int_U \mathcal L_P(\sigma)\,d\sigmaSP​(T,g,h,X,U)=2T​∫U​LP​(σ)dσ (Lebesgue measure on R2\mathbb R^2R2; value 000 if the integrand is not integrable on UUU).
  • SNG(T,g,X,U)=T∫U−det⁡G(σ) dσS_{NG}(T,g,X,U)=T\displaystyle\int_U\sqrt{-\det G(\sigma)}\,d\sigmaSNG​(T,g,X,U)=T∫U​−detG(σ)​dσ, same conventions.
  • Tab(σ)=T(Gab(σ)−12 h(σ)ab∑c,d(h(σ)−1)cdGcd(σ))T_{ab}(\sigma)=T\Big(G_{ab}(\sigma)-\tfrac12\,h(\sigma)_{ab}\sum_{c,d}(h(\sigma)^{-1})_{cd}G_{cd}(\sigma)\Big)Tab​(σ)=T(Gab​(σ)−21​h(σ)ab​∑c,d​(h(σ)−1)cd​Gcd​(σ)).
  • η(n)\eta^{(n)}η(n): the n×nn\times nn×n diagonal matrix with entry +1+1+1 at index 000 and −1-1−1 at every other index.
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