Documentation

CslibFrontier.Computability.Communication.NOF.ExactlyN

Exactly-N: a number-on-forehead lower bound from the corners theorem #

In the three-player Exactly-N problem, player i has a number x i ∈ {0, …, N} on their forehead and the players must decide whether x 0 + x 1 + x 2 = N (NOF.exactlyN). Each player sees the two numbers on the other foreheads, which determine theirs if the answer is yes. Even so, Chandra, Furst and Lipton [CFL83] showed that the deterministic number-on-forehead communication complexity of Exactly-N tends to infinity with N. We prove this via the corners theorem, following the presentation in [RY20], Chapter 4 ("Numbers on Foreheads").

The argument: put the point (a, b) with a + b ≤ N on the yes-input (a, b, N - a - b) (NOF.ExactlyN.cornerPoint). If three yes-inputs (x₁, y₁), (x₁, y₂), (x₂, y₁) with x₁ + y₂ = x₂ + y₁ reach the same leaf, then each of them looks, to one player, like the input (x₁, y₁, N - x₂ - y₁). By the star lemma (NOF.Protocol.leaf_eq_of_view_eq) that input reaches the same leaf, so it is a yes-input too, and x₁ = x₂. In other words the yes-inputs at every leaf form a corner-free set (NOF.ExactlyN.isCornerFree_leaf). A protocol with c bits has at most 2 ^ c leaves, so some leaf holds a 2 ^ (-c) fraction of the points of a grid. Mathlib's corners theorem (corners_theorem_nat) rules this out once the grid is large.

The quantitative content is exactly that of the corners theorem. Mathlib's bound cornersTheoremBound comes from the triangle removal lemma, via Szemerédi regularity, and is of tower type in 2 ^ c, so the resulting lower bound grows extremely slowly in N. Stronger quantitative bounds for corner-free sets would give stronger lower bounds through the same argument; Mathlib does not have them.

Main definitions #

Main results #

Scope #

Three players and deterministic protocols only. The converse (Exactly-N protocols from corner-free colorings) and the general k-player version are not formalized.

References #

def Cslib.Communication.NOF.exactlyN (N : ℕ) (x : Fin 3 → Fin (N + 1)) :

The three-player Exactly-N function: whether the numbers on the three foreheads sum to N.

@[simp]
theorem Cslib.Communication.NOF.exactlyN_eq_true_iff {N : ℕ} {x : Fin 3 → Fin (N + 1)} :
exactlyN N x = true ↔ ↑(x 0) + ↑(x 1) + ↑(x 2) = N

The yes-input (a, b, N - a - b) of Exactly-N, read modulo N + 1 (it is meant for a + b ≤ N).

theorem Cslib.Communication.NOF.ExactlyN.val_cornerPoint {N a b : ℕ} (h : a + b ≤ N) :
↑(cornerPoint N a b 0) = a ∧ ↑(cornerPoint N a b 1) = b ∧ ↑(cornerPoint N a b 2) = N - a - b
theorem Cslib.Communication.NOF.ExactlyN.isCornerFree_leaf {N : ℕ} (p : Protocol (fun (x : Fin 3) => Fin (N + 1)) Bool) (hp : p.run = exactlyN N) (l : Fin p.leafCount) :
IsCornerFree {ab : ℕ × ℕ | ab.1 + ab.2 ≤ N ∧ p.leaf (cornerPoint N ab.1 ab.2) = l}

The yes-inputs at a leaf are corner-free. For a protocol computing Exactly-N, the points (a, b) with a + b ≤ N whose yes-input (a, b, N - a - b) reaches a given leaf form a corner-free set.

theorem Cslib.Communication.NOF.ExactlyN.lt_depth {N c : ℕ} (hN : cornersTheoremBound ((2 ^ c)⁻¹ / 9) ≤ N / 2 + 1) (p : Protocol (fun (x : Fin 3) => Fin (N + 1)) Bool) (hp : p.run = exactlyN N) :
c < p.depth

Exactly-N needs many bits (protocol form). If cornersTheoremBound (2 ^ (-c) / 9) is at most N / 2 + 1, then every protocol computing Exactly-N has depth more than c.

Exactly-N needs many bits [CFL83]. If cornersTheoremBound (2 ^ (-c) / 9) is at most N / 2 + 1, then the number-on-forehead communication complexity of Exactly-N is more than c.

The communication complexity of Exactly-N tends to infinity [CFL83].

The trivial upper bound: player 1 writes the number on player 0's forehead in unary (N bits), after which player 0 announces the answer.