Documentation

CslibFrontier.Computability.Communication.Discrepancy.GreaterThan

Discrepancy Upper Bound for the Greater-Than Function #

This module constructs a hard joint distribution greaterThanDist on pairs of n-bit strings for the Greater-Than Boolean function greaterThanBits n (following the standard shared-prefix coupling / discrepancy lower bound for Greater-Than, e.g. Viola 2015) and proves an O(1 / √n) upper bound on its discrepancy, yielding a log₂(n) / 2 - 6 public-coin randomized communication complexity lower bound at error 1/3.

Main definitions #

Main results #

The Greater-Than Boolean function on n-bit strings #

The Greater-Than Boolean function GT_n on n-bit strings, interpreting bit strings as binary numerals via Cslib.BitString.equivFin (with Fin.last as the most significant bit) and reusing Cslib.Communication.greaterThan.

theorem Cslib.Communication.greaterThanBits_snoc {n : ℕ} (x y : BitString n) (a b : Bool) :
greaterThanBits (n + 1) (Fin.snoc x a) (Fin.snoc y b) = match a, b with | true, false => true | false, true => false | x_1, x_2 => greaterThanBits n x y

Splitting greaterThanBits (n + 1) on the most significant bit (Fin.last n).

The hard distribution μ_n for Greater-Than #

noncomputable def Cslib.Communication.greaterThanDistSucc (m : ℕ) :
PMF (BitString (m + 1) × BitString (m + 1))

Recursive construction of the hard distribution μ_{m+1} on BitString (m + 1) × BitString (m + 1).

noncomputable def Cslib.Communication.greaterThanDist (n : ℕ) (hn : 0 < n) :

The hard distribution μ_n for GT_n on BitString n × BitString n, defined for n ≥ 1.

Explicit three-step sampling definition of μ_{m+1}: sample k : Fin (m + 1) uniformly, sample a shared prefix z above k, opposite bits (w, !w) at k, and independent suffixes (x', y') below k (here Fin.last is the most significant bit, matching BitString.equivFin).

Point masses of greaterThanDistSucc 0: opposite 1-bit strings each have mass 1 / 2, and equal 1-bit strings have mass 0.

theorem Cslib.Communication.greaterThanDistSucc_succ_apply_snoc (m : ℕ) (x' y' : BitString (m + 1)) (a b : Bool) :
(greaterThanDistSucc (m + 1)) (Fin.snoc x' a, Fin.snoc y' b) = if a = b then ↑(m + 1) / ↑(2 * (m + 2)) * (greaterThanDistSucc m) (x', y') else (↑(2 * (m + 2) * 2 ^ (m + 1) * 2 ^ (m + 1)))⁻¹

Mass of greaterThanDistSucc (m + 1) at (Fin.snoc x' a, Fin.snoc y' b).

The explicit three-step sampling distribution agrees identically with the recursive definition greaterThanDistSucc.

Elementary algebraic inequalities for the Greater-Than induction #

Rectangle discrepancy induction for GT_n #

theorem Cslib.Communication.discrepancy_greaterThanSucc_rect_lt (m : ℕ) (S T : Finset (BitString (m + 1))) (hS : S.Nonempty) (hT : T.Nonempty) :
|∑ x ∈ S, ∑ y ∈ T, ((greaterThanDistSucc m) (x, y)).toReal * BitString.signVal (greaterThanBits (m + 1) x y)| < 20 * √(↑S.card / 2 ^ (m + 1) * (↑T.card / 2 ^ (m + 1))) / √↑(m + 1)

Nonempty strict rectangle discrepancy bound: for every m : ℕ and nonempty rectangle S × T in BitString (m + 1) × BitString (m + 1), the rectangle discrepancy of GT_{m+1} under μ_{m+1} is strictly less than 20 * √((|S|/2^(m+1)) * (|T|/2^(m+1))) / √(m + 1).

theorem Cslib.Communication.discrepancy_greaterThanSucc_rect_le (m : ℕ) (S T : Finset (BitString (m + 1))) :
|∑ x ∈ S, ∑ y ∈ T, ((greaterThanDistSucc m) (x, y)).toReal * BitString.signVal (greaterThanBits (m + 1) x y)| ≤ 20 * √(↑S.card / 2 ^ (m + 1) * (↑T.card / 2 ^ (m + 1))) / √↑(m + 1)

General non-strict rectangle discrepancy bound for possibly empty rectangles.

For every n ≥ 1, the discrepancy of GT_n with respect to greaterThanDist n hn is strictly less than 20 / √n.

Public-coin randomized communication complexity lower bound for the n-bit Greater-Than function: any 1/3-error public-coin protocol requires at least log₂(n) / 2 - 6 bits.