Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Banaszczyk’s cube bound in the ambient dimension

Open
Komlos.banaszczyk_cube_bound

by Wenqian · Sep 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

banaszczykdiscrepancygaussian-measurevector-balancing

There is a universal constant C>0C>0C>0 such that, for every n,m≥0n,m\ge0n,m≥0 and every family v1,…,vn∈Rmv_1,\ldots,v_n\in\mathbb R^mv1​,…,vn​∈Rm of vectors with Euclidean norm at most one, there are signs εi∈{−1,1}\varepsilon_i\in\{-1,1\}εi​∈{−1,1} for which

∣∑i=1nεivij∣≤Clog⁡(m+2)(1≤j≤m).\left|\sum_{i=1}^n\varepsilon_i v_{ij}\right|\le C\sqrt{\log(m+2)}\qquad(1\le j\le m).​i=1∑n​εi​vij​​≤Clog(m+2)​(1≤j≤m).

The logarithm depends on the ambient dimension mmm. The constant is independent of both mmm and nnn. Using m+2m+2m+2 makes the assertion uniform at dimensions zero and one; empty families and zero-dimensional spaces are included. This is the cube consequence of Banaszczyk’s vector-balancing theorem, and is the analytic input to the separate elementary reduction to a bound depending on the number of vectors.

Preamble
import Mathlib
import Definitions.Def_Komlos_model
Formal statement
namespace Komlos

theorem banaszczyk_cube_bound :
    ∃ C : ℝ, 0 < C ∧ ∀ (n m : ℕ) (v : Fin n → EuclideanSpace ℝ (Fin m)),
      (∀ i, ‖v i‖ ≤ 1) →
      ∃ ε : Fin n → ℝ, IsSignVector ε ∧
        ∀ j, |∑ i, ε i * v i j| ≤ C * Real.sqrt (Real.log (m + 2)) := by sorry

end Komlos
Source
Banaszczyk, Balancing vectors and Gaussian measures of n-dimensional convex bodies, Random Structures & Algorithms 12 (1998), Theorem 1 applied to a scaled cube. Exact cube consequence stated on p. 3, immediately after Theorem 1.1, in Dadush–Garg–Lovett–Nikolov, Towards a Constructive Version of Banaszczyk's Vector Balancing Theorem, Theory of Computing 15(15), 2019, https://theoryofcomputing.org/articles/v015a015/v015a015.pdf . The replacement log(m) by log(m+2) absorbs the low-dimensional cases into the unspecified universal constant.

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