Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Tubes, prisms, slabs, Kakeya sets and box-counting dimension in R3\mathbb{R}^3R3

Definition
WangZahlKakeya_geometry

by LG · Sep 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

geometric-measure-theoryharmonic-analysiskakeya

This file fixes the geometric vocabulary of the mission inside R3\mathbb{R}^3R3, realized as the three-dimensional Euclidean space E3E_3E3​ with its usual metric and Lebesgue measure.

For p,w∈E3p, w \in E_3p,w∈E3​ and δ∈R\delta \in \mathbb{R}δ∈R, the tube T(p,w,δ)T(p, w, \delta)T(p,w,δ) is the closed δ\deltaδ-neighbourhood of the line segment joining ppp to p+wp + wp+w:

T(p,w,δ)  =  ⋃0≤t≤1B‾(p+t w, δ).T(p,w,\delta) \;=\; \bigcup_{0 \le t \le 1} \overline{B}\big(p + t\,w,\ \delta\big).T(p,w,δ)=0≤t≤1⋃​B(p+tw, δ).

When ∥w∥=1\|w\| = 1∥w∥=1 this is a δ\deltaδ-tube in the sense of Wang–Zahl: the δ\deltaδ-neighbourhood of a unit line segment. Its 222-fold dilate is the tube with the same centre, twice the radius and twice the length, namely T(p−12w, 2w, 2δ)T\big(p - \tfrac12 w,\ 2w,\ 2\delta\big)T(p−21​w, 2w, 2δ). The symbol ∣T∣|T|∣T∣ of the paper is realized as the volume of the reference tube T(0,e1,δ)T(0, e_1, \delta)T(0,e1​,δ); every δ\deltaδ-tube is an isometric copy of it, so this is the common volume of a δ\deltaδ-tube.

A rectangular prism with centre ppp, orthonormal frame u0,u1,u2u_0, u_1, u_2u0​,u1​,u2​ and side lengths d0,d1,d2d_0, d_1, d_2d0​,d1​,d2​ is

{x∈E3:∣⟨x−p,ui⟩∣≤di/2 for i=0,1,2},\Big\{x \in E_3 : |\langle x - p, u_i\rangle| \le d_i/2 \text{ for } i = 0,1,2\Big\},{x∈E3​:∣⟨x−p,ui​⟩∣≤di​/2 for i=0,1,2},

and a set is a prism of dimensions ddd when it can be written this way for some centre and some orthonormal frame. A slab is the intersection of the closed unit ball with the closed ttt-neighbourhood of an affine plane {x:⟨x,u⟩=c}\{x : \langle x, u\rangle = c\}{x:⟨x,u⟩=c}, where uuu is a unit normal and t≥0t \ge 0t≥0.

A Kakeya set is a compact K⊆E3K \subseteq E_3K⊆E3​ such that for every unit vector vvv there is a point xxx with {x+tv:0≤t≤1}⊆K\{x + t v : 0 \le t \le 1\} \subseteq K{x+tv:0≤t≤1}⊆K, i.e. KKK contains a unit line segment in every direction.

Finally, for a set AAA and a radius r>0r > 0r>0 the covering number N(A,r)N(A, r)N(A,r) is the least mmm for which AAA can be covered by mmm open balls of radius rrr, and the upper and lower Minkowski (box-counting) dimensions of AAA are

dim⁡‾MA=lim sup⁡r→0+log⁡N(A,r)log⁡(1/r),dim⁡‾MA=lim inf⁡r→0+log⁡N(A,r)log⁡(1/r).\overline{\dim}_{\mathrm M} A = \limsup_{r \to 0^+} \frac{\log N(A,r)}{\log(1/r)}, \qquad \underline{\dim}_{\mathrm M} A = \liminf_{r \to 0^+} \frac{\log N(A,r)}{\log(1/r)} .dimM​A=r→0+limsup​log(1/r)logN(A,r)​,dim​M​A=r→0+liminf​log(1/r)logN(A,r)​.

These notions are the substrate for every statement in the mission: the goal theorem is phrased with Kakeya sets and the two Minkowski dimensions, while the volume estimates are phrased with tubes, prisms and slabs.

Formalization Note Mathlib supplies Hausdorff dimension but no box-counting dimension, so the covering number and both Minkowski dimensions are defined here. The covering number is an infimum over natural numbers, hence equals 000 when no finite cover exists; this only affects unbounded sets, and Kakeya sets are compact. The inner product is written out in coordinates as ∑ixiyi\sum_i x_i y_i∑i​xi​yi​ so that prisms and slabs are defined without reference to any particular inner-product API.

Definition code
import Mathlib

/-!
# Geometry for the Wang–Zahl Kakeya mission

Basic geometric objects used in Wang–Zahl, *Volume estimates for unions of convex sets,
and the Kakeya set conjecture in three dimensions* (arXiv:2502.17655v1):
`δ`-tubes, prisms, slabs, Kakeya sets, and the box-counting (Minkowski) dimensions.
-/

namespace WangZahlKakeya

open MeasureTheory Metric Set

/-- Euclidean three–dimensional space. -/
abbrev E3 : Type := EuclideanSpace ℝ (Fin 3)

/-- The standard inner product of two vectors of `E3`, written out in coordinates. -/
noncomputable def dot (x y : E3) : ℝ := ∑ i, x i * y i

/-- The `δ`-tube with base point `p` and direction vector `w`: the closed `δ`-neighbourhood
of the line segment from `p` to `p + w`. When `‖w‖ = 1` this is the `δ`-neighbourhood of a
unit line segment, i.e. a `δ`-tube in the sense of the paper. -/
def tube (p w : E3) (δ : ℝ) : Set E3 := ⋃ t ∈ Set.Icc (0 : ℝ) 1, closedBall (p + t • w) δ

/-- The `2`-fold dilate of the `δ`-tube `tube p w δ`: the tube with the same centre,
twice the radius and twice the length. -/
def tubeDilate2 (p w : E3) (δ : ℝ) : Set E3 := tube (p - (2⁻¹ : ℝ) • w) ((2 : ℝ) • w) (2 * δ)

/-- The common volume `|T|` of a `δ`-tube, computed on a reference tube.  Every `δ`-tube is
an isometric copy of this one, so this is the quantity denoted `|T|` in the paper. -/
noncomputable def tubeVol (δ : ℝ) : ℝ :=
  (volume (tube 0 (EuclideanSpace.single 0 (1 : ℝ)) δ)).toReal

/-- A rectangular prism with centre `p`, orthonormal frame `u` and side lengths `d`. -/
def prism (p : E3) (u : Fin 3 → E3) (d : Fin 3 → ℝ) : Set E3 :=
  {x : E3 | ∀ i, |dot (x - p) (u i)| ≤ d i / 2}

/-- `W` is a rectangular prism with side lengths `d 0`, `d 1`, `d 2`. -/
def IsPrismOfDims (W : Set E3) (d : Fin 3 → ℝ) : Prop :=
  ∃ p : E3, ∃ u : Fin 3 → E3,
    (∀ i j, dot (u i) (u j) = if i = j then 1 else 0) ∧ W = prism p u d

/-- A *slab*: the intersection of the unit ball with the closed `t`-neighbourhood of an
affine plane `{x : dot x n = c}`, where `n` is a unit normal vector. -/
def IsSlab (W : Set E3) : Prop :=
  ∃ (u : E3) (c t : ℝ), ‖u‖ = 1 ∧ 0 ≤ t ∧
    W = closedBall (0 : E3) 1 ∩ {x : E3 | |dot x u - c| ≤ t}

/-- A *Kakeya set* in `ℝ³`: a compact set containing a unit line segment in every direction. -/
def IsKakeyaSet (K : Set E3) : Prop :=
  IsCompact K ∧ ∀ v : E3, ‖v‖ = 1 → ∃ x : E3, (fun t : ℝ => x + t • v) '' Set.Icc (0 : ℝ) 1 ⊆ K

/-- The `r`-covering number of `A`: the least number of open balls of radius `r` needed to
cover `A` (`0` if no finite cover exists, by the convention `sInf ∅ = 0` on `ℕ`). -/
noncomputable def coveringNumber (A : Set E3) (r : ℝ) : ℕ :=
  sInf {m : ℕ | ∃ c : Fin m → E3, A ⊆ ⋃ i, ball (c i) r}

/-- The upper Minkowski (upper box-counting) dimension of `A`, i.e.
`limsup_{r → 0⁺} log N(A, r) / log (1/r)`, where `N(A, r)` is the `r`-covering number. -/
noncomputable def upperMinkowskiDim (A : Set E3) : ℝ :=
  Filter.limsup (fun r : ℝ => Real.log (coveringNumber A r) / Real.log (1 / r))
    (nhdsWithin (0 : ℝ) (Set.Ioi 0))

/-- The lower Minkowski (lower box-counting) dimension of `A`, i.e.
`liminf_{r → 0⁺} log N(A, r) / log (1/r)`, where `N(A, r)` is the `r`-covering number. -/
noncomputable def lowerMinkowskiDim (A : Set E3) : ℝ :=
  Filter.liminf (fun r : ℝ => Real.log (coveringNumber A r) / Real.log (1 / r))
    (nhdsWithin (0 : ℝ) (Set.Ioi 0))

end WangZahlKakeya
Source
Hong Wang and Joshua Zahl, *Volume estimates for unions of convex sets, and the Kakeya set conjecture in three dimensions*, arXiv:2502.17655v1 (2025), https://arxiv.org/abs/2502.17655, §1 (Theorem 1.1), §1.2, §3.1 (Definitions 3.1--3.6) and §1.6 (Conjecture 1.11)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; see disclosure

Disclosure: this read-back is non-blind. It was written by the same agent that drafted these Lean statements, not by an independent auditor working from the code alone. It is therefore not independent testimony and must not be read as such: a reviewer should audit the formal statement directly and treat this text only as the author's own rendering of it.

The file works in a fixed space E3E_3E3​, three-dimensional Euclidean space over the reals, equipped with its Euclidean metric and Lebesgue measure, and introduces the following notions.

Coordinate pairing. For x,y∈E3x, y \in E_3x,y∈E3​, dot⁡(x,y)=∑i=02xiyi\operatorname{dot}(x,y) = \sum_{i=0}^{2} x_i y_idot(x,y)=∑i=02​xi​yi​, the sum over the three coordinates.

Tubes. For p,w∈E3p, w \in E_3p,w∈E3​ and a real number δ\deltaδ (no positivity is required by the definition itself),

tube(p,w,δ)  =  ⋃t∈[0,1]{x:dist⁡(x,p+tw)≤δ},\mathrm{tube}(p,w,\delta) \;=\; \bigcup_{t \in [0,1]} \{x : \operatorname{dist}(x, p + t w) \le \delta\},tube(p,w,δ)=t∈[0,1]⋃​{x:dist(x,p+tw)≤δ},

the union of closed balls of radius δ\deltaδ centred along the segment from ppp to p+wp+wp+w. For δ<0\delta < 0δ<0 this set is empty; for δ=0\delta = 0δ=0 it is the segment itself; the length of the segment is ∥w∥\|w\|∥w∥, which the definition does not constrain.

Dilated tubes. tubeDilate2(p,w,δ)=tube(p−12w, 2w, 2δ)\mathrm{tubeDilate2}(p,w,\delta) = \mathrm{tube}\big(p - \tfrac{1}{2} w,\ 2w,\ 2\delta\big)tubeDilate2(p,w,δ)=tube(p−21​w, 2w, 2δ): the tube of radius 2δ2\delta2δ around the segment from p−12wp - \tfrac12 wp−21​w to p+32wp + \tfrac32 wp+23​w.

Reference tube volume. tubeVol(δ)\mathrm{tubeVol}(\delta)tubeVol(δ) is the Lebesgue measure of tube(0,e0,δ)\mathrm{tube}(0, e_0, \delta)tube(0,e0​,δ), where e0e_0e0​ is the first standard basis vector, converted to a real number (an infinite measure would become 000 under this conversion, which does not occur here since the set is bounded). It is a function of δ\deltaδ alone, defined by this one reference tube; no claim is made in the file relating it to any other tube.

Prisms. For a centre ppp, a triple of vectors u0,u1,u2u_0,u_1,u_2u0​,u1​,u2​ and a triple of reals d0,d1,d2d_0,d_1,d_2d0​,d1​,d2​,

prism(p,u,d)={x:∣dot⁡(x−p,ui)∣≤di/2  for all i}.\mathrm{prism}(p,u,d) = \Big\{ x : |\operatorname{dot}(x - p, u_i)| \le d_i/2 \ \text{ for all } i \Big\}.prism(p,u,d)={x:∣dot(x−p,ui​)∣≤di​/2  for all i}.

A set WWW is a prism of dimensions ddd when there exist ppp and uuu with dot⁡(ui,uj)=1\operatorname{dot}(u_i,u_j) = 1dot(ui​,uj​)=1 if i=ji = ji=j and =0= 0=0 otherwise (an orthonormal frame), such that WWW equals prism(p,u,d)\mathrm{prism}(p,u,d)prism(p,u,d). Negative entries of ddd make the corresponding constraint unsatisfiable, so such a "prism" is empty; the entries of ddd are not required to be ordered.

Slabs. A set WWW is a slab when there exist u∈E3u \in E_3u∈E3​ with ∥u∥=1\|u\| = 1∥u∥=1, and reals ccc and t≥0t \ge 0t≥0, with

W=B‾(0,1)∩{x:∣dot⁡(x,u)−c∣≤t},W = \overline{B}(0,1) \cap \{x : |\operatorname{dot}(x,u) - c| \le t\},W=B(0,1)∩{x:∣dot(x,u)−c∣≤t},

the intersection of the closed unit ball centred at the origin with the closed ttt-neighbourhood of the plane dot⁡(x,u)=c\operatorname{dot}(x,u) = cdot(x,u)=c. The degenerate case t=0t = 0t=0 (a planar disc) is included, as is the case ∣c∣>1+t|c| > 1 + t∣c∣>1+t, where WWW is empty.

Kakeya sets. A set KKK is a Kakeya set when KKK is compact and, for every vvv with ∥v∥=1\|v\| = 1∥v∥=1, there exists xxx such that {x+tv:t∈[0,1]}⊆K\{x + t v : t \in [0,1]\} \subseteq K{x+tv:t∈[0,1]}⊆K. The witness xxx may depend on vvv; no measurability, connectedness, or nonemptiness beyond what compactness and the segment condition force is assumed. (The condition does force K≠∅K \neq \emptysetK=∅.)

Covering numbers. For a set AAA and a real rrr, N(A,r)N(A,r)N(A,r) is the least natural number mmm such that there exist centres c0,…,cm−1c_0,\dots,c_{m-1}c0​,…,cm−1​ with A⊆⋃iB(ci,r)A \subseteq \bigcup_{i} B(c_i, r)A⊆⋃i​B(ci​,r), using open balls. If no finite family of such balls covers AAA — for instance if AAA is unbounded, or if r≤0r \le 0r≤0 and A≠∅A \ne \emptysetA=∅ — then the set of admissible mmm is empty and the infimum over the natural numbers is 000; so N(A,r)=0N(A,r) = 0N(A,r)=0 in those cases as well as in the case A=∅A = \emptysetA=∅.

Box-counting dimensions. With f(r)=log⁡N(A,r)log⁡(1/r)f(r) = \dfrac{\log N(A,r)}{\log(1/r)}f(r)=log(1/r)logN(A,r)​, the upper Minkowski dimension of AAA is the lim sup⁡\limsuplimsup of fff along the filter of positive reals tending to 000, and the lower Minkowski dimension is the corresponding lim inf⁡\liminfliminf. Both are real numbers. Note that log⁡0=0\log 0 = 0log0=0 by convention, so radii at which no finite cover exists contribute the value 000 to fff, and r=1r = 1r=1 would make the denominator 000; the filter used is the punctured right-hand neighbourhood of 000, so only small positive radii matter.

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