Dag-like protocols #
A dag-like protocol for a search problem R : X → Y → O → Prop is a directed acyclic graph
through which Alice, holding x : X, and Bob, holding y : Y, walk from a source to a leaf
labelled by an answer. At each inner node the players run a deterministic tree protocol
(Cslib.Communication.Protocol) that decides whether the node is consistent with their inputs
and, if it is, names the next node. A protocol solves R on A × B when, for inputs from
A × B, the source is consistent and consistent nodes lead only to consistent nodes, where a leaf
is consistent when its answer is related to the inputs (DagProtocol.Solves). The walk from the
source then ends at a related answer (DagProtocol.Solves.exists_run_eq). Its communication
complexity is the largest depth of the tree protocols at the inner nodes (DagProtocol.depth).
This is Krajíček's notion of a protocol for the Karchmer–Wigderson game
Krajíček, Definition 2.2, for the relation DiffersAt (or ExceedsAt for
monotone protocols), which he describes as a variant of Razborov's formulation with PLS problems
[Raz95b]. Tree
protocols for this game correspond to formulas (Cslib.Communication.KWProtocol); dag-like
protocols, whose nodes can be reached along many paths, correspond to circuits: one with k inner
nodes and communication complexity t gives a separating circuit with k · 2 ^ O(t) gates
(CslibFrontier.Computability.Circuit.DagProtocol). The representation differs from Definition 2.2
in inessential ways:
- The inner nodes are numbered
0, …, k - 1so that every step goes to an earlier inner node or to a leaf, which rules out cycles. Leaves are identified with their answers, so leaves with the same label are merged andkcounts only inner nodes. The source is any node. - Krajíček's consistency condition
F(u, v)and strategyS(u, v, x)are not separate data: the tree protocol at nodejanswersnoneexactly whenj ∉ F, and otherwise its answer is the next node. The strategy matters only at consistent nodes, and closure ofFunder the paths of the strategy reduces to closure under one step. - Definition 2.2 bounds the bits needed to "decide whether
x ∈ F(u, v)and computeS(u, v, x)"; here one tree protocol does both, so if the two tasks are counted separately, the depth here is at most their sum.
Main definitions #
Cslib.Communication.DagProtocol: dag-like protocols.Cslib.Communication.DagProtocol.Consistent: consistency of a node with the inputs.Cslib.Communication.DagProtocol.Solves: a dag-like protocol solves a relation.Cslib.Communication.DagProtocol.depth: the communication complexity of a dag-like protocol.Cslib.Communication.DagProtocol.run: the answer at the end of the walk from the source.
Main results #
Cslib.Communication.DagProtocol.Solves.exists_run_eq: a dag-like protocol solvingRonA × Banswers every pair of inputs fromA × Bwith a related answer.
References #
A dag-like protocol with k inner nodes between Alice, holding x : X, and Bob, holding
y : Y, with answers in O Krajíček, Definition 2.2. The inner nodes are
0, …, k - 1 and the leaves are labelled by answers. At inner node j the players run the tree
protocol step j: it answers none if j is not consistent with the inputs, and otherwise names
the next node, an earlier inner node i < j or a leaf labelled by an answer.
The tree protocol at inner node
j, which answersnoneifjis inconsistent with the inputs and otherwise names the next node: an earlier inner node or an answer.The source: an inner node or an answer.
Node s is consistent with Alice's input x and Bob's input y for the relation R:
an inner node when its tree protocol does not answer none, and a leaf when its answer is
related to x and y. This is Krajíček's consistency condition F(x, y).
A dag-like protocol solves the relation R on A × B when, for every pair of inputs from
A × B, the source is consistent, and every node named by the tree protocol at an inner node is
consistent Krajíček, Definition 2.2 (4). The tree protocol names a node only when
its own node is consistent, so consistency is closed under the steps of the walk, and the walk
from the source ends at a related answer (DagProtocol.Solves.exists_run_eq).
The communication complexity of a dag-like protocol: the largest depth of the tree protocols at its inner nodes.
The walk from node s on Alice's input x and Bob's input y: the answer at the leaf it
reaches, or none if it meets an inner node whose tree protocol answers none.
The answer at the end of the walk from the source, or none if the walk meets an
inconsistent inner node.
From a consistent node, the walk of a protocol solving R ends at a related answer.
A dag-like protocol solving R on A × B solves the search problem: on every pair of
inputs from A × B, the walk from the source ends at an answer related to them.
A protocol solving a relation on A × B solves it on smaller sets.