Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Beck–Fiala theorem and conjecture · beck_fiala_conjecture

Source:Wikipedia lists of open problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

The Beck–Fiala conjecture

There exists a universal constant C>0C > 0 such that every set system S1,…,Sm⊆[n]S_1, \dots, S_m \subseteq [n] of degree at most tt admits a colouring χ ⁣:[n]→{−1,+1}\chi \colon [n] \to \{-1, +1\} with ∣∑j∈Siχ(j)∣≤Ct\left|\sum_{j \in S_i} \chi(j)\right| \le C \sqrt{t} for every ii.

Subjects:Combinatorics (math.CO)
MSC classes:05
Cite as:NS.07651 [math.CO] · NS.07651v1 for this version
Declaration:BeckFiala.beck_fiala_conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
Statement hash:64644d13318524df6e69f03b886e91c0f170773f81f571164d6ecec7883da217
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/BeckFialaConjecture.lean

Formal statement

theorem beck_fiala_conjecture :
    ∃ C : ℝ, 0 < C ∧ ∀ (n m t : ℕ) (S : Fin m → Finset (Fin n)),
      (∀ j, (Finset.univ.filter fun i => j ∈ S i).card ≤ t) →
      ∃ χ : Fin n → ℝ, (∀ j, χ j = 1 ∨ χ j = -1) ∧
        ∀ i, |∑ j ∈ S i, χ j| ≤ C * Real.sqrt t
Show the full Challenge.lean (107 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Beck–Fiala theorem and conjecture

Discrepancy of bounded-degree set systems. Given sets $S_1, \dots, S_m \subseteq [n]$
such that every element of $[n]$ belongs to at most $t$ of the sets (the system has
*degree* at most $t$), one seeks a colouring $\chi \colon [n] \to \{-1, +1\}$ making
every set as balanced as possible, i.e. minimizing the *discrepancy*
$\max_i \left|\sum_{j \in S_i} \chi(j)\right|$.

The Beck–Fiala theorem (1981) states that every set system of degree at most $t \ge 1$
has discrepancy at most $2t - 1$. The Beck–Fiala conjecture asserts that the truth is
much stronger: the discrepancy of a degree-$t$ system is $O(\sqrt{t})$, with a constant
independent of $n$, $m$ and $t$.

Despite considerable attention the bound $2t - 1$ has been improved only slightly:
Bukh (2016) proved a bound of the form $2t - \log^* t$ (where $\log^*$ is the iterated
logarithm), and Banaszczyk's vector balancing theorem yields $O(\sqrt{t \log n})$.
The Komlós conjecture (see `KomlosConjecture.lean`) would imply the Beck–Fiala
conjecture, since scaling the incidence vectors of a degree-$t$ system by $1/\sqrt{t}$
produces vectors of Euclidean norm at most $1$.

*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Beck%E2%80%93Fiala_theorem)
- [J. Beck and T. Fiala, *"Integer-making" theorems*,
  Discrete Applied Mathematics **3** (1981), 1–8](https://doi.org/10.1016/0166-218X(81)90022-6)
- [B. Bukh, *An improvement of the Beck–Fiala theorem*,
  Combinatorics, Probability and Computing **25** (2016), 380–398](https://doi.org/10.1017/S0963548315000140)
- [W. Banaszczyk, *Balancing vectors and Gaussian measures of n-dimensional convex bodies*,
  Random Structures & Algorithms **12** (1998), 351–360](https://doi.org/10.1002/(SICI)1098-2418(199807)12:4%3C351::AID-RSA3%3E3.0.CO;2-S)
-/

@[expose] public section

namespace BeckFiala

set_option linter.style.formal_proof_palomar false in
/--
**The Beck–Fiala theorem**

If $S_1, \dots, S_m \subseteq [n]$ is a set system of degree at most $t$, i.e. every
$j \in [n]$ lies in at most $t$ of the sets, and $t \ge 1$, then there is a colouring
$\chi \colon [n] \to \{-1, +1\}$ with $\left|\sum_{j \in S_i} \chi(j)\right| \le 2t - 1$
for every $i$.

The hypothesis $t \ge 1$ is necessary: a system of degree $0$ consists of empty sets
only, whose discrepancy is $0 > 2 \cdot 0 - 1$.

[J. Beck and T. Fiala, *"Integer-making" theorems*,
Discrete Applied Mathematics **3** (1981), 1–8.]
-/
@[category research solved, AMS 5,
  formal_proof using lean4 at
    "https://github.com/Lemmy00/beck-fiala-lean/blob/19334973121b07e428c51e15b914e9ca4921fbb9/BeckFialaProof/BeckFiala.lean#L35"]
theorem beck_fiala_theorem (n m t : ℕ) (ht : 1 ≤ t) (S : Fin m → Finset (Fin n))
    (hdeg : ∀ j, (Finset.univ.filter fun i => j ∈ S i).card ≤ t) :
    ∃ χ : Fin n → ℝ, (∀ j, χ j = 1 ∨ χ j = -1) ∧
      ∀ i, |∑ j ∈ S i, χ j| ≤ 2 * (t : ℝ) - 1 := by
  sorry

/--
**The Beck–Fiala conjecture**

There exists a universal constant $C > 0$ such that every set system
$S_1, \dots, S_m \subseteq [n]$ of degree at most $t$ admits a colouring
$\chi \colon [n] \to \{-1, +1\}$ with
$\left|\sum_{j \in S_i} \chi(j)\right| \le C \sqrt{t}$ for every $i$.
-/
@[category research open, AMS 5]
theorem beck_fiala_conjecture :
    ∃ C : ℝ, 0 < C ∧ ∀ (n m t : ℕ) (S : Fin m → Finset (Fin n)),
      (∀ j, (Finset.univ.filter fun i => j ∈ S i).card ≤ t) →
      ∃ χ : Fin n → ℝ, (∀ j, χ j = 1 ∨ χ j = -1) ∧
        ∀ i, |∑ j ∈ S i, χ j| ≤ C * Real.sqrt t := by
  sorry

/--
Sanity check: a system with no sets at all ($m = 0$) admits any colouring vacuously;
in particular the all-ones colouring satisfies every discrepancy bound.
-/
@[category test, AMS 5]
theorem beck_fiala_conjecture.variants.no_sets (n t : ℕ) (S : Fin 0 → Finset (Fin n))
    (_hdeg : ∀ j, (Finset.univ.filter fun i => j ∈ S i).card ≤ t) :
    ∃ χ : Fin n → ℝ, (∀ j, χ j = 1 ∨ χ j = -1) ∧
      ∀ i, |∑ j ∈ S i, χ j| ≤ Real.sqrt t :=
  ⟨fun _ => 1, fun _ => Or.inl rfl, fun i => i.elim0⟩

end BeckFiala

To prove it: keep every definition of Challenge.lean unchanged and prove BeckFiala.beck_fiala_conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_beck_fiala_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk wikipedia-beckfialaconjecture--beck-fiala-conjecture      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-beckfialaconjecture--beck-fiala-conjecture
nosorry submit wikipedia-beckfialaconjecture--beck-fiala-conjecture nosorry/wikipedia-beckfialaconjecture--beck-fiala-conjecture/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.