Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Gravitational self-energy and interaction energy of mass distributions

Definition
penrose_energy

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

mathematical-physicspotential-theory

This bundle introduces the two gravitational energy functionals of the mission.

Given a real gravitational constant GGG, the gravitational self-energy of a smooth, rapidly decreasing mass distribution σ\sigmaσ on three-dimensional Euclidean space is

E(σ)=−G2∬R3×R3σ(x) σ(y)∥x−y∥ dx dy,E(\sigma) = -\frac{G}{2} \iint_{\mathbb{R}^3\times\mathbb{R}^3} \frac{\sigma(x)\,\sigma(y)}{\|x-y\|}\,dx\,dy,E(σ)=−2G​∬R3×R3​∥x−y∥σ(x)σ(y)​dxdy,

and the gravitational interaction energy between two mass distributions ρ,ρ′\rho, \rho'ρ,ρ′ is

I(ρ,ρ′)=−G∬R3×R3ρ(x) ρ′(y)∥x−y∥ dx dy.I(\rho,\rho') = -G \iint_{\mathbb{R}^3\times\mathbb{R}^3} \frac{\rho(x)\,\rho'(y)}{\|x-y\|}\,dx\,dy.I(ρ,ρ′)=−G∬R3×R3​∥x−y∥ρ(x)ρ′(y)​dxdy.

The signs are the standard physics convention: gravity is attractive, so the binding energy of a positive mass distribution is negative. The self-energy of the difference σ=ρ−ρ′\sigma = \rho - \rho'σ=ρ−ρ′ of the two superposed mass distributions is the quantity Penrose identifies, up to the explicit constant −8πG-8\pi G−8πG, with his measure of incompatibility Δ\DeltaΔ; the interaction energy appears in his remark that, when the two individual states have equal gravitational self-energies, either expression determines the scale of the energy uncertainty (Penrose 1996, Section 6, pp. 595–597).

Formalization Note The distributions are elements of Mathlib's Schwartz space over Euclidean three-space; the double integrals are nested Bochner integrals, the inner one over yyy, the outer one over xxx, both with respect to the standard volume.

Definition code
import Mathlib

open MeasureTheory

namespace Penrose

/-- The gravitational self-energy of a Schwartz mass distribution: minus G/2
times the double integral of the product of the density at x and the density
at y, divided by their distance. -/
noncomputable def gravSelfEnergy (G : ℝ) (σ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℝ) : ℝ :=
  -(G / 2) * ∫ x, ∫ y, ⇑σ x * ⇑σ y / ‖x - y‖ ∂volume ∂volume

/-- The gravitational interaction energy between two Schwartz mass
distributions: minus G times the double integral of the first density at x
times the second density at y, divided by their distance. -/
noncomputable def interactionEnergy (G : ℝ)
    (ρ ρ' : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℝ) : ℝ :=
  -G * ∫ x, ∫ y, ⇑ρ x * ⇑ρ' y / ‖x - y‖ ∂volume ∂volume

end Penrose
Source
Penrose 1996, On Gravity's Role in Quantum State Reduction, General Relativity and Gravitation 28(5):581-600, https://doi.org/10.1007/BF02105068, Section 6, pp. 595-597 (gravitational self-energy of the difference; gravitational interaction energy); survey: https://en.wikipedia.org/wiki/Penrose_interpretation
Read-back

What the Lean code literally says, in plain math · glm-5-latest-short

This file declares two definitions, both inside the namespace Penrose, each returning a real number and parameterized by an arbitrary real number GGG.

First: gravSelfEnergy G σ, for σ an element of the Schwartz space of real-valued functions on three-dimensional Euclidean space, is defined as −(G/2)-(G/2)−(G/2) times a nested Bochner integral: the outer integral over xxx of the inner integral over yyy (both with respect to the standard volume measure) of the function σ(x)⋅σ(y)/∥x−y∥\sigma(x)\cdot\sigma(y)/\|x-y\|σ(x)⋅σ(y)/∥x−y∥, where ∥x−y∥\|x-y\|∥x−y∥ is the Euclidean distance between xxx and yyy.

Second: interactionEnergy G ρ ρ', for two Schwartz functions ρ,ρ′\rho, \rho'ρ,ρ′, is defined as −G-G−G times the analogous nested integral of ρ(x)⋅ρ′(y)/∥x−y∥\rho(x)\cdot\rho'(y)/\|x-y\|ρ(x)⋅ρ′(y)/∥x−y∥, the inner integral over yyy, the outer over xxx.

No hypotheses accompany either definition. The parameter GGG is an arbitrary real number (including zero or negative values), and the distributions are arbitrary Schwartz functions, including ones that take negative values or the zero function. The integrals are total functions: for a non-integrable integrand the Bochner integral is 000 by convention.

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

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 18, 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