Union-bound colouring of a residual set of columns
ProvedKomlos.spencer_random_finishLet be an matrix with entries in and let be any set of columns. Then some colouring of (extended by elsewhere) satisfies
This is the elementary bound that a single random colouring already achieves, and it is what one uses to dispose of a residual set of columns once it has become small: when has been driven down to the right-hand side is and the residual set costs nothing on the scale of Spencer's bound. Applied with the whole ground set it gives only the classical , which is the bound Spencer's theorem improves.
Formalization Note The logarithm is taken at rather than so that the counting bound is strict and a surviving colouring exists; the difference is immaterial for the intended use. Colourings are encoded as real-valued vectors that are on and off it.
import Mathlib open Finset
namespace Komlos
theorem spencer_random_finish
(n : ℕ) (hn : 0 < n) (A : Fin n → Fin n → ℝ) (h01 : ∀ i j, A i j = 0 ∨ A i j = 1)
(T : Finset (Fin n)) :
∃ χ : Fin n → ℝ,
(∀ j, j ∈ T → (χ j = 1 ∨ χ j = -1)) ∧
(∀ j, j ∉ T → χ j = 0) ∧
(∀ i, |∑ j ∈ T, A i j * χ j|
≤ Real.sqrt (2 * (T.card : ℝ) * Real.log (4 * n))) := by sorry
end Komlos