{
  "id": "8107",
  "ident": "NS.08107",
  "slug": "wikipedia-komlosconjecture",
  "title": "Komlós conjecture",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "**The Komlós conjecture**\n\nThere exists a universal constant $K > 0$ such that for all $n, m \\in \\mathbb{N}$ and\nall vectors $v\\_1, \\dots, v\\_n \\in \\mathbb{R}^m$ with $\\|v\\_i\\|\\_2 \\le 1$ (encoded here as\n$\\sum\\_j v\\_{ij}^2 \\le 1$), there exist signs $\\varepsilon\\_i \\in \\{-1, +1\\}$ such that\n$\\left\\|\\sum\\_i \\varepsilon\\_i v\\_i\\right\\|\\_\\infty \\le K$, i.e.\n$\\left|\\sum\\_i \\varepsilon\\_i v\\_{ij}\\right| \\le K$ for every coordinate $j$.\n\nProved by Guo, Fang and Lu with $K = 3\\sqrt{2\\pi}$ and by Karingula and Lovett with $K = 36$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "KomlosConjecture.komlos_conjecture",
  "statement_lean": "theorem komlos_conjecture :\n    ∃ K : ℝ, 0 < K ∧ ∀ (n m : ℕ) (v : Fin n → Fin m → ℝ),\n      (∀ i, ∑ j, (v i j) ^ 2 ≤ 1) →\n      ∃ ε : Fin n → ℝ, (∀ i, ε i = 1 ∨ ε i = -1) ∧\n        ∀ j, |∑ i, ε i * v i j| ≤ K",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Komlós conjecture\n\nThe Komlós conjecture in discrepancy theory: there is a universal constant $K$ such\nthat for all $n, m$ and all vectors $v\\_1, \\dots, v\\_n \\in \\mathbb{R}^m$ with\n$\\|v\\_i\\|\\_2 \\le 1$, there exist signs $\\varepsilon\\_i \\in \\{-1, +1\\}$ such that\n$$\\left\\|\\sum\\_{i=1}^n \\varepsilon\\_i v\\_i\\right\\|\\_\\infty \\le K.$$\n\nFor a long time the best known bound was due to Banaszczyk, who proved that one can always\nachieve $O(\\sqrt{\\log n})$. The Beck–Fiala theorem on the discrepancy of sparse set systems\nis a special case (up to scaling), and the conjecture implies the Beck–Fiala\nconjecture that set systems of degree $t$ have discrepancy $O(\\sqrt{t})$.\n\nThe conjecture was proved in September 2026 by Guo, Fang and Lu with $K = 3\\sqrt{2\\pi}$.\nKaringula and Lovett gave an elementary proof with $K = 36$. A formalisation of their proof is\nrecorded in the `formal_proof` attributes below.\n\n*References:*\n- [Wikipedia](https://en.wikipedia.org/wiki/Discrepancy_theory#Major_open_problems)\n- [W. Banaszczyk, *Balancing vectors and Gaussian measures of n-dimensional convex bodies*,\n  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)\n- [J. Spencer, *Six standard deviations suffice*,\n  Trans. Amer. Math. Soc. **289** (1985), 679–706](https://doi.org/10.1090/S0002-9947-1985-0784009-0)\n- [S. Guo, E. X. Fang and J. Lu, *Vector balancing via directional total variation*,\n  arXiv:2609.11189](https://arxiv.org/abs/2609.11189)\n- [S. R. Karingula and S. Lovett, *An elementary proof of the Komlós conjecture*,\n  arXiv:2609.20979](https://arxiv.org/abs/2609.20979)\n-/\n\n@[expose] public section\n\nnamespace KomlosConjecture\n\nset_option linter.style.formal_proof_palomar false in\n/--\n**The Komlós conjecture**\n\nThere exists a universal constant $K > 0$ such that for all $n, m \\in \\mathbb{N}$ and\nall vectors $v\\_1, \\dots, v\\_n \\in \\mathbb{R}^m$ with $\\|v\\_i\\|\\_2 \\le 1$ (encoded here as\n$\\sum\\_j v\\_{ij}^2 \\le 1$), there exist signs $\\varepsilon\\_i \\in \\{-1, +1\\}$ such that\n$\\left\\|\\sum\\_i \\varepsilon\\_i v\\_i\\right\\|\\_\\infty \\le K$, i.e.\n$\\left|\\sum\\_i \\varepsilon\\_i v\\_{ij}\\right| \\le K$ for every coordinate $j$.\n\nProved by Guo, Fang and Lu with $K = 3\\sqrt{2\\pi}$ and by Karingula and Lovett with $K = 36$.\n-/\n@[category research solved, AMS 5, formal_proof using formal_conjectures at\n\"https://github.com/mo271/formal-conjectures/blob/416b6597cb193b6745748fdfef0d64342c71dae9/FormalConjectures/Wikipedia/KomlosConjecture.lean#L64\"]\ntheorem komlos_conjecture :\n    ∃ K : ℝ, 0 < K ∧ ∀ (n m : ℕ) (v : Fin n → Fin m → ℝ),\n      (∀ i, ∑ j, (v i j) ^ 2 ≤ 1) →\n      ∃ ε : Fin n → ℝ, (∀ i, ε i = 1 ∨ ε i = -1) ∧\n        ∀ j, |∑ i, ε i * v i j| ≤ K := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\n**Banaszczyk's theorem**\n\nThere exists a constant $C > 0$ such that for all $n, m \\in \\mathbb{N}$ and all vectors\n$v\\_1, \\dots, v\\_n \\in \\mathbb{R}^m$ with $\\|v\\_i\\|\\_2 \\le 1$, there exist signs\n$\\varepsilon\\_i \\in \\{-1, +1\\}$ such that\n$\\left\\|\\sum\\_i \\varepsilon\\_i v\\_i\\right\\|\\_\\infty \\le C \\sqrt{\\log(n + 2)}$.\nThis was the best known bound towards the Komlós conjecture before its solution. (The shift\n$n + 2$ inside the logarithm is a harmless normalization keeping it positive for\n$n \\in \\{0, 1\\}$.) It follows from the Komlós conjecture with $C = 36 / \\sqrt{\\log 2}$.\n\n[W. Banaszczyk, *Balancing vectors and Gaussian measures of n-dimensional convex bodies*,\nRandom Structures & Algorithms **12** (1998), 351–360.]\n-/\n@[category research solved, AMS 5, formal_proof using formal_conjectures at\n\"https://github.com/mo271/formal-conjectures/blob/416b6597cb193b6745748fdfef0d64342c71dae9/FormalConjectures/Wikipedia/KomlosConjecture.lean#L86\"]\ntheorem komlos_conjecture.variants.banaszczyk :\n    ∃ C : ℝ, 0 < C ∧ ∀ (n m : ℕ) (v : Fin n → Fin m → ℝ),\n      (∀ i, ∑ j, (v i j) ^ 2 ≤ 1) →\n      ∃ ε : Fin n → ℝ, (∀ i, ε i = 1 ∨ ε i = -1) ∧\n        ∀ j, |∑ i, ε i * v i j| ≤ C * Real.sqrt (Real.log (n + 2)) := by\n  sorry\n\n/--\nSanity check: with no vectors at all ($n = 0$), the empty signed sum is $0$ in every\ncoordinate, so any constant bound holds.\n-/\n@[category test, AMS 5]\ntheorem komlos_conjecture.variants.zero_vectors (m : ℕ) (v : Fin 0 → Fin m → ℝ) :\n    ∃ ε : Fin 0 → ℝ, (∀ i, ε i = 1 ∨ ε i = -1) ∧\n      ∀ j, |∑ i, ε i * v i j| ≤ 1 :=\n  ⟨Fin.elim0, fun i => i.elim0, by simp⟩\n\nend KomlosConjecture\n",
  "statement_hash": "5e065934ba39e80451b1ad916c49e1b14dbe465549e4f08a3ef07c4a0c6de3af",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}