Convert a Bool to a $\pm 1$ sign: true ↦ 1, false ↦ -1.
Instances For
The moment generating function identity for the discrepancy under uniform $\pm 1$ colorings: $\sum_{f \in \{-1,1\}^n} e^{s \cdot \operatorname{disc}(f, S)} = 2^n \cosh(s)^{|S|}$.
theorem
Discrepancy.discrepancy_bound
(n : ℕ)
(hn : 0 < n)
(F : Finset (Finset (Fin n)))
(hF : 3 ≤ F.card)
:
Discrepancy bound (Theorem 5.1.1). For any collection $\mathcal{F}$ of subsets of $[n]$ with $|\mathcal{F}| \geq 3$, there exists a $\pm 1$ coloring $f$ such that $|\operatorname{disc}(f, S)| \leq 2\sqrt{n \log |\mathcal{F}|}$ for every $S \in \mathcal{F}$.