Synchronous Boolean consensus on general communication graphs #
Deterministic synchronous message passing over an undirected communication graph
G : SimpleGraph P in the presence of static Byzantine faults, for the Boolean consensus problem
of Pease, Shostak and Lamport and
Fischer, Lynch and Merritt (§3, p. 61: every process holds a Boolean
input, all correct processes agree, and unanimous correct inputs force that decision; this differs
from the single-sender broadcast problem Agreement B of Dolev, §1, pp. 15–16).
In GraphProtocol G State Msg, processes communicate only along edges of G: in round r + 1,
process i sends send r i s j hij to each adjacent process j (hij : G.Adj i j) and updates
its local state via update r i s m, where m j hji is the message received along edge
hji : G.Adj j i. A process needs no self-loop on G because update already receives its own
current state s. When the processes in F : Finset P are faulty, a faulty neighbour j ∈ F
injects adv r j i hji along each incident edge hji : G.Adj j i. Because adv is indexed only
by actual edges of G, SolvesByzantineAgreement has no vacuity on sparse or edgeless graphs even
when Msg is empty. As in Cslib.Distributed.Byzantine.Protocol, termination is at a fixed
uniform round R: protocols whose decision round varies with the execution are not modelled
directly (for finite P and Msg, König's lemma yields a uniform round bound).
Three simulation and covering tools connect GraphProtocol to the complete-graph theory of
CslibFrontier.Computability.Distributed.Byzantine.Basic and
CslibFrontier.Computability.Distributed.Byzantine.NodeBound:
- Supergraph simulation (
GraphProtocol.toSupergraph): whenG ≤ H, any protocol onGruns onHwithOption Msgpayloads by sendingnonealong edges ofHabsent fromGand replacing spuriousnonepayloads from faultyG-neighbours by a locally computed default. This preservesSolvesByzantineAgreementin both directions. - Complete-graph equivalence (
GraphProtocol.toProtocol,GraphProtocol.ofProtocol): onG = ⊤, graph protocols andCslib.Distributed.Byzantine.Protocolhave equivalent round complexityRand fault tolerancet. ComposingtoSupergraph le_topwithtoProtocoltransfers the2 ≤ n ≤ 3timpossibility bound (GraphProtocol.not_solvesByzantineAgreement) to every graphG : SimpleGraph P. - Graph covering networks (
GraphProtocol.coverState,GraphProtocol.state_eq_coverState): a Byzantine execution agrees on all correct processes with a covering network whenever the embedding preserves mutualG-edges between correct processes and faulty neighbours replay the covering network's messages.
Main definitions #
Cslib.Distributed.ByzantineGraph.GraphProtocol: synchronous deterministic protocols onG : SimpleGraph P.Cslib.Distributed.ByzantineGraph.GraphProtocol.state,GraphProtocol.decision: executions with Byzantine faults along edges ofG.Cslib.Distributed.ByzantineGraph.GraphProtocol.adaptiveState: executions against a rushing adversary.Cslib.Distributed.ByzantineGraph.GraphProtocol.SolvesByzantineAgreement: agreement and validity against at mosttByzantine faults afterRrounds.Cslib.Distributed.ByzantineGraph.GraphProtocol.ownInput: decide the own input without communication.Cslib.Distributed.ByzantineGraph.GraphProtocol.toSupergraph: simulate aG-protocol on a supergraphH(G ≤ H).Cslib.Distributed.ByzantineGraph.GraphProtocol.toProtocol,Cslib.Distributed.ByzantineGraph.GraphProtocol.ofProtocol: translations betweenGraphProtocol ⊤andCslib.Distributed.Byzantine.Protocol.Cslib.Distributed.ByzantineGraph.GraphProtocol.coverState: executions on covering networks.
Main results #
Cslib.Distributed.ByzantineGraph.GraphProtocol.adaptiveState_eq_state,Cslib.Distributed.ByzantineGraph.GraphProtocol.SolvesByzantineAgreement.adaptive: rushing adversaries are no stronger than fixed edge-message tables.Cslib.Distributed.ByzantineGraph.GraphProtocol.solvesByzantineAgreement_ownInput: at most one process solves Byzantine agreement on any graph against any number of faults.Cslib.Distributed.ByzantineGraph.GraphProtocol.solvesByzantineAgreement_toSupergraph_iff: supergraph simulation preserves Byzantine agreement in both directions.Cslib.Distributed.ByzantineGraph.GraphProtocol.solvesByzantineAgreement_toProtocol_iff,Cslib.Distributed.ByzantineGraph.GraphProtocol.solvesByzantineAgreement_ofProtocol_iff,Cslib.Distributed.ByzantineGraph.exists_solvesByzantineAgreement_top_iff: equivalence with complete-graphCslib.Distributed.Byzantine.ProtocolonG = ⊤.Cslib.Distributed.ByzantineGraph.GraphProtocol.not_solvesByzantineAgreement: no protocol on any graphGovernprocesses solves Byzantine agreement againsttfaults when2 ≤ n ≤ 3t.Cslib.Distributed.ByzantineGraph.GraphProtocol.state_eq_coverState: the graph covering lemma.
References #
A deterministic synchronous message-passing protocol on the communication graph
G : SimpleGraph P.
Process i with input bit b starts in state init i b. In round r + 1 it sends
send r i s j hij to each neighbour j (hij : G.Adj i j) and moves to update r i s m, where
s is its current state and m j hji is the message received along edge hji : G.Adj j i. Its
decision in state s is output i s.
- init : P → Bool → State
The initial state of a process with a given input bit.
send r i s j hij: the message processiin statessends to neighbourjin roundr + 1.update r i s m: the state ofiafter roundr + 1, wherem j hjicame from neighbourj.- output : P → State → Bool
The decision of a process in a given state.
The state of process i after r rounds on inputs x when the processes in F are faulty
and a faulty neighbour j ∈ F sends adv r j i hji along edge hji : G.Adj j i in round
r + 1.
The decision of process i after R rounds.
π solves synchronous Boolean Byzantine agreement on G against at most t faults in R
rounds: whenever at most t processes are faulty, whatever messages they send along incident edges
of G, the correct processes agree after R rounds and decide v when all correct processes have
input v (Fischer, Lynch and Merritt, §3, p. 61).
- agreement (F : Finset P) : F.card ≤ t → ∀ (adv : ℕ → (j i : P) → G.Adj j i → M) (x : P → Bool), ∀ i ∉ F, ∀ j ∉ F, π.decision F adv x R i = π.decision F adv x R j
Agreement: all correct processes decide the same value.
- validity (F : Finset P) : F.card ≤ t → ∀ (adv : ℕ → (j i : P) → G.Adj j i → M) (x : P → Bool) (v : Bool), (∀ i ∉ F, x i = v) → ∀ i ∉ F, π.decision F adv x R i = v
Validity: if all correct processes have input
v, they decidev.
Tolerating t faults implies tolerating at most t' ≤ t faults.
The state of process i after r rounds against a rushing adversary: in round r + 1 a
faulty neighbour j chooses strat r σ j i hji as a function of the global state σ after r
rounds.
A rushing adversary is no stronger than a fixed edge-message table: the execution against
strat coincides with the execution against the table of messages strat sends along that run.
Agreement and validity hold against rushing adversaries as well.
The protocol on G in which every process decides its own input without communicating.
On at most one process, deciding the own input solves Byzantine agreement on any graph G
against any number of faults and for any decision round R.
Supergraph simulation and complete-graph equivalence #
Simulate a protocol on G over any supergraph H (G ≤ H) using Option M messages:
processes send some along edges of G and none along edges in H \ G, and replace a spurious
none received from a faulty G-neighbour j (hji : G.Adj j i) by the locally well-typed
fallback π.send r i s j hji.symm.
Supergraph simulation preserves SolvesByzantineAgreement in both directions.
View a GraphProtocol on the complete simple graph ⊤ as a complete-network
Cslib.Distributed.Byzantine.Protocol with Option M payloads (none on self-loops).
A protocol on the complete simple graph ⊤ solves Byzantine agreement iff its
Byzantine.Protocol translation does.
Restrict a complete-network Cslib.Distributed.Byzantine.Protocol to GraphProtocol ⊤,
computing self-messages locally from the process's own current state.
Restricting a Byzantine.Protocol to GraphProtocol ⊤ preserves SolvesByzantineAgreement in
both directions, keeping the state and message types unchanged.
No synchronous Boolean consensus with n ≤ 3t processes on any graph
([PSL80]; [FLM85], Theorem 1, §3.1, pp. 61–62): on any
communication graph G over n processes with 2 ≤ n ≤ 3t, no protocol solves synchronous
fixed-round Boolean Byzantine agreement against t faults in any round count R. Obtained
immediately by simulating π on ⊤ (toSupergraph le_top) and applying the complete-graph node
bound Cslib.Distributed.Byzantine.Protocol.not_solvesByzantineAgreement.
Covering networks on a communication graph #
The state of node a of a covering network over G after r rounds. Node a runs the code
of process label a on input input a, and receives the message along each incident G-edge
hji : G.Adj j (label a) from node nbr a j, which sends it as j would.
The graph covering lemma (after Fischer, Lynch and Merritt, §2,
pp. 60–61). Suppose the correct processes embed into a covering network by e, preserving their
labels, inputs, and mutual G-edges (G.Adj j i → nbr (e i) j = e j), and that along every
G-edge from a faulty process j ∈ F to a correct process i ∉ F, j sends what nbr (e i) j
sends in the covering network. Then every correct process i has the same state as e i after
every round.
On the complete simple graph ⊤, GraphProtocol ⊤ and Cslib.Distributed.Byzantine.Protocol
admit solutions for the exact same fault thresholds t and round bounds R.