Laplacian on
Definitiontegmark_laplacianFor a function and a point , the Laplacian is
where is the standard basis and is the second Fréchet derivative.
It appears in the Poisson equation for the electrostatic or gravitational potential, in the wave and Klein–Gordon equations, and in Ásgeirsson's ultrahyperbolic equation.
Formalization Note is EuclideanSpace ℝ (Fin n). When is not twice differentiable at , Lean's derivative conventions give a junk value (typically ), so statements using the Laplacian must assume enough regularity themselves.
import Mathlib
namespace TegmarkDimensionality
/-- The Laplacian `∇² f (x) = ∑ᵢ ∂²f/∂xᵢ² (x)` of a real function on `ℝⁿ`, written as the sum
of the pure second derivatives along the standard coordinate directions. -/
noncomputable def laplacian {n : ℕ} (f : EuclideanSpace ℝ (Fin n) → ℝ)
(x : EuclideanSpace ℝ (Fin n)) : ℝ :=
∑ i, iteratedFDeriv ℝ 2 f x ![EuclideanSpace.single i 1, EuclideanSpace.single i 1]
end TegmarkDimensionality
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 statement below, with full knowledge of the source paper and of the intended meaning. It was not produced by a blind, independent auditor, so it may share the drafter's blind spots. Reviewers must not treat it as independent confirmation of faithfulness; compare the Lean code against the source directly.
For a natural number , a function (Euclidean -space) and a point , the quantity is defined as
where is the -th standard unit vector and is the second iterated Fréchet derivative of at , viewed as a bilinear form. The derivative of a non-differentiable function is by convention, so is a junk value, typically , when is not twice differentiable near . For the sum is empty and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.