Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Newtonian potential, field gradient, Laplacian, and Penrose's incompatibility measure

Definition
penrose

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

mathematical-physicspotential-theory

This bundle introduces the Newtonian-gravity layer used by the mission.

Given a real number GGG (the gravitational constant) and a smooth, rapidly decreasing mass density ρ\rhoρ on three-dimensional Euclidean space R3\mathbb{R}^3R3, the Newtonian gravitational potential of ρ\rhoρ is

Φρ(x)=G∫R3ρ(y)∥x−y∥ dy.\Phi_\rho(x) = G \int_{\mathbb{R}^3} \frac{\rho(y)}{\|x-y\|}\,dy.Φρ​(x)=G∫R3​∥x−y∥ρ(y)​dy.

Its gradient is defined by the explicit integral formula

∇Φρ(x)=−G∫R3ρ(y)∥x−y∥3 (x−y) dy,\nabla\Phi_\rho(x) = -G \int_{\mathbb{R}^3} \frac{\rho(y)}{\|x-y\|^3}\,(x-y)\,dy,∇Φρ​(x)=−G∫R3​∥x−y∥3ρ(y)​(x−y)dy,

so that the physical gravitational field f=−∇Φf = -\nabla\Phif=−∇Φ pulls test masses towards the matter. For a function fff on R3\mathbb{R}^3R3, the Laplacian is defined as the trace of the second Fréchet derivative,

∇2f(x)=∑i=13D2f(x)(ei,ei),\nabla^2 f(x) = \sum_{i=1}^{3} D^2 f(x)(e_i, e_i),∇2f(x)=i=1∑3​D2f(x)(ei​,ei​),

the sum of the second directional derivatives along the standard orthonormal basis e1,e2,e3e_1, e_2, e_3e1​,e2​,e3​. Finally, for two mass densities ρ,ρ′\rho, \rho'ρ,ρ′, Penrose's measure of incompatibility is the squared L2L^2L2 norm of the difference of the two field gradients,

Δ(ρ,ρ′)=∫R3∥∇Φρ(x)−∇Φρ′(x)∥2 dx.\Delta(\rho,\rho') = \int_{\mathbb{R}^3} \|\nabla\Phi_\rho(x) - \nabla\Phi_{\rho'}(x)\|^2\,dx.Δ(ρ,ρ′)=∫R3​∥∇Φρ​(x)−∇Φρ′​(x)∥2dx.

These are the objects of Section 6 of Penrose (1996): in the Newtonian limit, the two superposed space-time geometries are described by the two potentials Φρ\Phi_\rhoΦρ​ and Φρ′\Phi_{\rho'}Φρ′​, and Δ\DeltaΔ measures the mismatch of their free-fall frames that Penrose argues makes the superposed state non-stationary.

Formalization Note The densities are elements of Mathlib's Schwartz space over Euclidean three-space, so smoothness and decay are carried by the type; all integrals are Bochner integrals with respect to the standard volume on R3\mathbb{R}^3R3.

Definition code
import Mathlib

open MeasureTheory
open scoped BigOperators

namespace Penrose

/-- The Newtonian gravitational potential of a Schwartz mass density on
three-dimensional Euclidean space, with gravitational constant G:
the potential at x is G times the integral of the density at y divided by
the distance between x and y. -/
noncomputable def newtonianPotential (G : ℝ) (ρ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℝ) :
    EuclideanSpace ℝ (Fin 3) → ℝ :=
  fun x => G * ∫ y, ⇑ρ y / ‖x - y‖ ∂volume

/-- The gradient of the Newtonian gravitational potential: minus G times the
integral of the density at y divided by the third power of the distance,
in the direction of x - y. -/
noncomputable def potentialGradient (G : ℝ) (ρ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℝ) :
    EuclideanSpace ℝ (Fin 3) → EuclideanSpace ℝ (Fin 3) :=
  fun x => -G • ∫ y, (⇑ρ y / ‖x - y‖ ^ 3) • (x - y) ∂volume

/-- The Laplacian of a real function on three-dimensional Euclidean space:
the sum, over the standard basis vectors, of the second directional
derivatives (the trace of the second Frechet derivative). -/
noncomputable def laplacian (f : EuclideanSpace ℝ (Fin 3) → ℝ)
    (x : EuclideanSpace ℝ (Fin 3)) : ℝ :=
  ∑ i, iteratedFDeriv ℝ 2 f x (fun _ => EuclideanSpace.single i 1)

/-- Penrose's measure of incompatibility of two mass densities: the squared
L2 norm of the difference of the gradients of their Newtonian potentials. -/
noncomputable def deltaMeasure (G : ℝ)
    (ρ ρ' : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℝ) : ℝ :=
  ∫ x, ‖potentialGradient G ρ x - potentialGradient G ρ' x‖ ^ 2 ∂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. 594-595 (potential, field, and the measure of incompatibility); 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 four definitions, all inside the namespace Penrose.

First: given a real number GGG and an element ρ\rhoρ of the Schwartz space of functions from three-dimensional Euclidean space (real coordinates indexed by a three-element index type) to the reals, the declaration newtonianPotential G ρ is defined as the function assigning to a point xxx the real number GGG times the Bochner integral, with respect to the standard volume measure, of the function y↦ρ(y)/∥x−y∥y \mapsto \rho(y)/\|x-y\|y↦ρ(y)/∥x−y∥, where ∥x−y∥\|x-y\|∥x−y∥ is the Euclidean norm of the difference. By the convention of the Bochner integral, if the integrand were not integrable the integral would be 000.

Second: potentialGradient G ρ is defined as the function assigning to xxx the vector equal to −G-G−G scalar-multiplied with the Bochner integral of the vector-valued function y↦(ρ(y)/∥x−y∥3)y \mapsto (\rho(y)/\|x-y\|^3)y↦(ρ(y)/∥x−y∥3) acting by scalar multiplication on the vector x−yx-yx−y.

Third: laplacian f x, for a real-valued function fff on Euclidean three-space and a point xxx, is defined as the finite sum over the three standard index values of the second Fréchet derivative of fff at xxx (a continuous bilinear map) applied to the pair in which both slots are the corresponding standard basis vector, that is, the vector whose iii-th coordinate is 111 and whose other coordinates are 000. This is a sum of three real numbers.

Fourth: deltaMeasure G ρ ρ', for two Schwartz functions ρ,ρ′\rho, \rho'ρ,ρ′, is defined as the Bochner integral over xxx of the squared Euclidean norm of the difference potentialGradient G ρ x − potentialGradient G ρ' x.

No hypotheses accompany any of these definitions. The parameter GGG is an arbitrary real number, and the densities are arbitrary elements of the Schwartz type, including the zero function.

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