Documentation

CslibFrontier.Computability.Communication.Announce

Announcing a value from a finite type #

A player can announce any value of their own input in a finite nonempty type Z with ⌈log₂ |Z|⌉ bits: they send a fixed binary encoding of the value and both players decode it. This is the short-output protocol used, for example, when a single input fixes a rectangle and the other player names a valid answer, as in the heavy-atom case of [CKMS26], proof of Lemma 5.2 (printed p. 10; PDF p. 11).

Main results #

theorem Cslib.Communication.Protocol.exists_run_eq_left {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Fintype Z] [Nonempty Z] (f : X → Z) :
∃ (q : Protocol X Y Z), q.depth ≤ Nat.clog 2 (Fintype.card Z) ∧ ∀ (x : X) (y : Y), q.run x y = f x

Alice announces f x in ⌈log₂ |Z|⌉ bits.

theorem Cslib.Communication.Protocol.exists_run_eq_right {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Fintype Z] [Nonempty Z] (f : Y → Z) :
∃ (q : Protocol X Y Z), q.depth ≤ Nat.clog 2 (Fintype.card Z) ∧ ∀ (x : X) (y : Y), q.run x y = f y

Bob announces f y in ⌈log₂ |Z|⌉ bits.