Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Volume of a closed cube in ℝ^d

Proved
DbarRegularity.volume_closedCube

by Mazecto · Oct 11, 2026 · Mathlib 0df444a (Lean v4.33.1)

harmonic-analysislebesgue-measuremeasure-theory

For a∈Rda\in\mathbb{R}^da∈Rd and s∈Rs\in\mathbb{R}s∈R let Q(a,s)={x∈Rd: ai≤xi≤ai+s for all i}Q(a,s)=\{x\in\mathbb{R}^d:\ a_i\le x_i\le a_i+s\ \text{for all } i\}Q(a,s)={x∈Rd: ai​≤xi​≤ai​+s for all i} be the closed cube with corner aaa and side length sss. Then its Lebesgue measure is

∣Q(a,s)∣=(s+)d,|Q(a,s)| = (s^+)^d,∣Q(a,s)∣=(s+)d,

where s+=max⁡(s,0)s^+=\max(s,0)s+=max(s,0). In particular ∣Q(a,s)∣=sd|Q(a,s)|=s^d∣Q(a,s)∣=sd for s≥0s\ge 0s≥0.

This is the basic volume formula for coordinate cubes in Rd\mathbb{R}^dRd.

Formalization Note. closedCube a s comes from Definitions.Def_DbarRegularity_Setting; Rd\mathbb{R}^dRd is EuclideanSpace ℝ (Fin d) with volume its Lebesgue measure, valued in ℝ≥0∞. The value (s+)d(s^+)^d(s+)d is written ENNReal.ofReal s ^ d. No restriction on ddd or sss: for d=0d=0d=0 both sides equal 111.

Preamble
import Definitions.Def_DbarRegularity_Setting
Formal statement
namespace DbarRegularity

open MeasureTheory
open scoped ENNReal

/-- The Lebesgue measure of the closed cube `∏ᵢ [aᵢ, aᵢ + s]` in `ℝ^d` is `s^d` (and `0` when
`s < 0` and `d ≥ 1`). -/
theorem volume_closedCube {d : ℕ} (a : EuclideanSpace ℝ (Fin d)) (s : ℝ) :
    volume (closedCube a s) = ENNReal.ofReal s ^ d := by sorry

end DbarRegularity
Source
E. M. Stein, Singular Integrals and Differentiability Properties of Functions, Princeton Mathematical Series 30, Princeton University Press (1970), Chapter I, § 3.2, p. 16

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me