Tubes, prisms, slabs, Kakeya sets and box-counting dimension in
DefinitionWangZahlKakeya_geometryThis file fixes the geometric vocabulary of the mission inside , realized as the three-dimensional Euclidean space with its usual metric and Lebesgue measure.
For and , the tube is the closed -neighbourhood of the line segment joining to :
When this is a -tube in the sense of Wang–Zahl: the -neighbourhood of a unit line segment. Its -fold dilate is the tube with the same centre, twice the radius and twice the length, namely . The symbol of the paper is realized as the volume of the reference tube ; every -tube is an isometric copy of it, so this is the common volume of a -tube.
A rectangular prism with centre , orthonormal frame and side lengths is
and a set is a prism of dimensions 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 -neighbourhood of an affine plane , where is a unit normal and .
A Kakeya set is a compact such that for every unit vector there is a point with , i.e. contains a unit line segment in every direction.
Finally, for a set and a radius the covering number is the least for which can be covered by open balls of radius , and the upper and lower Minkowski (box-counting) dimensions of are
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 when no finite cover exists; this only affects unbounded sets, and Kakeya sets are compact. The inner product is written out in coordinates as so that prisms and slabs are defined without reference to any particular inner-product API.
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 WangZahlKakeyaRead-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 , three-dimensional Euclidean space over the reals, equipped with its Euclidean metric and Lebesgue measure, and introduces the following notions.
Coordinate pairing. For , , the sum over the three coordinates.
Tubes. For and a real number (no positivity is required by the definition itself),
the union of closed balls of radius centred along the segment from to . For this set is empty; for it is the segment itself; the length of the segment is , which the definition does not constrain.
Dilated tubes. : the tube of radius around the segment from to .
Reference tube volume. is the Lebesgue measure of , where is the first standard basis vector, converted to a real number (an infinite measure would become under this conversion, which does not occur here since the set is bounded). It is a function of alone, defined by this one reference tube; no claim is made in the file relating it to any other tube.
Prisms. For a centre , a triple of vectors and a triple of reals ,
A set is a prism of dimensions when there exist and with if and otherwise (an orthonormal frame), such that equals . Negative entries of make the corresponding constraint unsatisfiable, so such a "prism" is empty; the entries of are not required to be ordered.
Slabs. A set is a slab when there exist with , and reals and , with
the intersection of the closed unit ball centred at the origin with the closed -neighbourhood of the plane . The degenerate case (a planar disc) is included, as is the case , where is empty.
Kakeya sets. A set is a Kakeya set when is compact and, for every with , there exists such that . The witness may depend on ; no measurability, connectedness, or nonemptiness beyond what compactness and the segment condition force is assumed. (The condition does force .)
Covering numbers. For a set and a real , is the least natural number such that there exist centres with , using open balls. If no finite family of such balls covers — for instance if is unbounded, or if and — then the set of admissible is empty and the infimum over the natural numbers is ; so in those cases as well as in the case .
Box-counting dimensions. With , the upper Minkowski dimension of is the of along the filter of positive reals tending to , and the lower Minkowski dimension is the corresponding . Both are real numbers. Note that by convention, so radii at which no finite cover exists contribute the value to , and would make the denominator ; the filter used is the punctured right-hand neighbourhood of , so only small positive radii matter.