Divergence theorem on a three-dimensional Euclidean ball
ProvedEuclideanSpace.integral_divergence_ball_threemeasure-theorymultivariable-calculusreal-analysis
Let be continuously differentiable, let , and let be the open Euclidean ball of radius centered at the origin. Writing for surface area measure on the unit sphere , its divergence and outward flux satisfy
This form of the divergence theorem converts volume integrals of second-Hessian null Lagrangians into boundary fluxes. It applies to arbitrary vector fields and does not assume a vacuum equation or spherical symmetry.
Formalization Note The unit-sphere measure is volume.toSphere, without probability normalization. The vector field is defined and continuously differentiable on all of Euclidean space; in particular, it and its derivative are bounded on each closed ball, and both displayed integrals exist.
Preamble
import Mathlib.Analysis.Calculus.ContDiff.Basic import Mathlib.MeasureTheory.Constructions.HaarToSphere import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace import Mathlib.MeasureTheory.Integral.Bochner.Basic open scoped ContDiff open MeasureTheory Metric
Formal statement
theorem EuclideanSpace.integral_divergence_ball_three
(F : EuclideanSpace ℝ (Fin 3) → EuclideanSpace ℝ (Fin 3))
(hF : ContDiff ℝ 1 F) (R : ℝ) (hR : 0 < R) :
(∫ x in ball (0 : EuclideanSpace ℝ (Fin 3)) R,
∑ i : Fin 3, (fderiv ℝ F x (EuclideanSpace.single i 1)) i) =
R ^ 2 * ∫ u : sphere (0 : EuclideanSpace ℝ (Fin 3)) 1,
inner ℝ (F (R • u.1)) u.1 ∂((volume : Measure (EuclideanSpace ℝ (Fin 3))).toSphere) := by sorrySource
Bray, Hamm, Hirsch, Wheeler, Zhang, Flatly Foliated Relativity, https://arxiv.org/html/1911.00967v2, proof of Theorem 5, equations (84)–(85) and (94)–(95): the standard divergence theorem on Euclidean balls, stated independently of the vacuum equations.