Matrix discrepancy #
Adapted for Lean Pool by changing module paths and selecting explicit imports.
A colouring is a function with values in {-1, 1}. For a matrix A and a colouring χ,
Komlos.colouringDiscrepancy A χ is the supremum norm of A *ᵥ χ.
Komlos.discrepancy A is the minimum over all colourings.
Komlos.discrepancy_le_iff expresses a discrepancy bound as the existence of a colouring
satisfying that bound. The minimum is attained because there are finitely many colourings.
A colouring of n is a ±1-valued function on n.
Equations
- Komlos.IsColouring χ = ∀ (j : n), χ j = 1 ∨ χ j = -1
Instances For
The discrepancy of the colouring χ with respect to A: the supremum norm of the signed
sum A *ᵥ χ of the columns of A.
Equations
- Komlos.colouringDiscrepancy A χ = ‖A.mulVec χ‖
Instances For
The discrepancy of the matrix A: the least discrepancy of a colouring of its columns.
Equations
- Komlos.discrepancy A = ⨅ (b : n → Bool), Komlos.colouringDiscrepancy A (Komlos.ofBool b)
Instances For
A matrix whose entries are at most c in absolute value has colouring discrepancy at most
c times its number of columns.