Documentation

Atlas.ProbabilisticMethodsInCombinatorics.code.Chapter9.RapidExpansion

The Hamming weight of $x \in \{0, 1\}^n$, i.e. the number of coordinates equal to true; defined as the Hamming distance from the all-false vector.

Instances For

    The open Hamming ball of radius $r$ centred at the origin in $\{0, 1\}^n$: $\{x : \operatorname{wt}(x) < r\}$.

    Instances For

      The bit-flip involution on the Hamming cube: $(\operatorname{flip}(x))_i = \neg x_i$ for every coordinate $i$.

      Instances For

        The bit-flip map is an involution: $\operatorname{flip}(\operatorname{flip}(x)) = x$.

        Flipping all bits complements the weight: $\operatorname{wt}(\operatorname{flip}(x)) = n - \operatorname{wt}(x)$.

        The bit-flip map is injective (in fact, a bijection, since it is its own inverse).

        The Hamming ball of radius $\lfloor n/2 \rfloor$ contains at most half of the cube: $|B(n, n/2)| \le 2^{n-1}$. The proof uses bit-flipping to inject the ball into its complement.

        The open Hamming ball of radius $n/2$ around the origin coincides with the closed Hamming ball of radius $n/2 - 1$, hence is a "Hamming ball" in the Harper sense.

        The $0$-expansion of a set is the set itself: $S_0 = S$.

        The $t$-expansion of the empty set is empty.

        Specialization of Harper's vertex-isoperimetric inequality: any $A \subseteq \{0, 1\}^n$ with $|A| \ge 2^{n-1}$ has $t$-expansion at least as large as that of the Hamming ball of radius $\lfloor n/2 \rfloor$.

        The Hamming weight equals the number of true coordinates: $\operatorname{wt}(x) = |\{i : x_i = \text{true}\}|$.

        The Hamming distance from any point to itself is zero.

        Triangle-style inequality for the Hamming weight: $\operatorname{wt}(x) \le \operatorname{wt}(y) + d(x, y)$.

        theorem RapidExpansion.flip_dist_and_wt {n : } (x : HarperIsoperimetric.HammingCube n) (T : Finset (Fin n)) (hT : T {i : Fin n | x i = true}) :
        have y := fun (i : Fin n) => if i T then false else x i; HarperIsoperimetric.hammingDist x y = T.card hammingWt y = hammingWt x - T.card

        Flipping a subset $T$ of the $1$-coordinates of $x$ to $0$ produces a vector $y$ at Hamming distance $|T|$ from $x$ and of weight $\operatorname{wt}(x) - |T|$.

        The $t$-expansion of the Hamming ball $B(n, n/2)$ is the Hamming ball $B(n, n/2 + t)$ of larger radius.

        theorem RapidExpansion.chernoff_upper_tail_card (n t : ) (hn : 0 < n) (ht : 0 < t) :
        {x : HarperIsoperimetric.HammingCube n | n / 2 + t hammingWt x}.card < Real.exp (-2 * t ^ 2 / n) * 2 ^ n

        Chernoff upper-tail bound for the cardinality of the heavy slice of the cube: the number of points $x \in \{0, 1\}^n$ with $\operatorname{wt}(x) \ge n/2 + t$ is strictly less than $e^{-2t^{2}/n} \cdot 2^{n}$.

        theorem RapidExpansion.chernoff_hamming_ball (n t : ) (hn : 0 < n) (ht : 0 < t) :
        (1 - Real.exp (-2 * t ^ 2 / n)) * 2 ^ n < (openHammingBall n (n / 2 + t)).card

        Chernoff-type lower bound on the size of the Hamming ball: $|B(n, n/2 + t)| > (1 - e^{-2t^{2}/n}) \cdot 2^{n}$.

        theorem RapidExpansion.rapid_expansion_half_to_one_minus_eps (n : ) (hn : 1 < n) (t : ) (ht : 0 < t) (A : Finset (HarperIsoperimetric.HammingCube n)) (hA : 2 ^ (n - 1) A.card) :
        (1 - Real.exp (-2 * t ^ 2 / n)) * 2 ^ n < (HarperIsoperimetric.hammingExpansion A t).card

        Rapid expansion from half to $1 - \varepsilon$ (Theorem 9.4.5). For any $A \subseteq \{0, 1\}^n$ with $|A| \ge 2^{n-1}$ and any $t \ge 1$, the $t$-expansion satisfies $|A_t| > (1 - e^{-2t^{2}/n}) \cdot 2^{n}$.

        Triangle inequality for the Hamming distance: $d(x, z) \le d(x, y) + d(y, z)$.

        The $t$-expansion of the complement of $A_t$ is disjoint from $A$: any point reachable within distance $t$ from outside $A_t$ cannot lie in $A$ itself.

        The iterated expansion is contained in a single larger expansion: $(A_s)_t \subseteq A_{s + t}$.

        The Hamming cube $\{0, 1\}^n$ has exactly $2^n$ elements.

        theorem RapidExpansion.expansion_card_half (n : ) (hn : 1 < n) (t : ) (ht : 0 < t) (A : Finset (HarperIsoperimetric.HammingCube n)) (hA : Real.exp (-2 * t ^ 2 / n) * 2 ^ n A.card) :

        Bootstrap lemma: if $|A| \ge e^{-2t^{2}/n} \cdot 2^{n}$, then the $t$-expansion of $A$ already has size at least $2^{n-1}$.

        theorem RapidExpansion.rapid_expansion_eps_to_one_minus_eps (n : ) (hn : 1 < n) (t : ) (ht : 0 < t) (A : Finset (HarperIsoperimetric.HammingCube n)) (hA : Real.exp (-2 * t ^ 2 / n) * 2 ^ n A.card) :
        (1 - Real.exp (-2 * t ^ 2 / n)) * 2 ^ n (HarperIsoperimetric.hammingExpansion A (2 * t)).card

        Rapid expansion from $\varepsilon$ to $1 - \varepsilon$ (Theorem 9.4.6). If $|A| \ge e^{-2t^{2}/n} \cdot 2^{n}$, then $|A_{2t}| \ge (1 - e^{-2t^{2}/n}) \cdot 2^{n}$.

        theorem RapidExpansion.rapid_expansion_hamming (n : ) (hn : 1 < n) (ε : ) ( : 0 < ε) (hε1 : ε < 1) (A : Finset (HarperIsoperimetric.HammingCube n)) (hA : A.card ε * 2 ^ n) :
        have C := (2 * Real.log (1 / ε)); (HarperIsoperimetric.hammingExpansion A (2 * (Real.log (1 / ε) * n / 2)⌉₊)).card (1 - ε) * 2 ^ n

        Rapid expansion in the Hamming cube (continuous form). If $|A| \ge \varepsilon \cdot 2^{n}$ for some $\varepsilon \in (0, 1)$, then for $t = \lceil \sqrt{\log(1/\varepsilon) \cdot n / 2} \rceil$, $|A_{2t}| \ge (1 - \varepsilon) \cdot 2^{n}$.