The volume of the n-dimensional Euclidean ball
ProvedFamousTheorems.volume_euclidean_ball_6bThe volume of the -dimensional Euclidean ball. Let be a Euclidean space of dimension with its Lebesgue measure. For every centre and radius ,
This formula gives the familiar , and in dimensions . It also shows that the volume of the unit ball tends to as . It is used in the geometry of numbers, in the asymptotics of lattice point counts and sphere packings, and in computing surface areas of spheres.
Formalization note. Mathlib's InnerProductSpace.volume_ball. The measure MeasureTheory.volume on a finite-dimensional real inner product space is the one that gives an orthonormal parallelepiped volume . The value is written as ENNReal.ofReal r ^ n * ENNReal.ofReal (√π ^ n / Γ(n/2 + 1)), where ENNReal.ofReal r is for negative .
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem volume_euclidean_ball_6b {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
[MeasurableSpace E] [BorelSpace E] [Nontrivial E] (x : E) (r : ℝ) :
MeasureTheory.volume (Metric.ball x r) =
ENNReal.ofReal r ^ Module.finrank ℝ E *
ENNReal.ofReal (Real.sqrt Real.pi ^ Module.finrank ℝ E / Real.Gamma ((Module.finrank ℝ E : ℝ) / 2 + 1)) := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `InnerProductSpace.volume_ball`. Proof here reduces to that Mathlib result.