Documentation

CslibFrontier.Computability.Distributed.Byzantine.NodeBound

The 3t + 1 node bound for Byzantine agreement #

No deterministic synchronous protocol on n processes solves Byzantine agreement against t Byzantine faults when 2 ≤ n ≤ 3t, for any fixed decision round R Fischer, Lynch and Merritt, Theorem 1 and §3.1. The bound was first proved by Pease, Shostak and Lamport, §4 for interactive consistency. Protocols whose decision round depends on the run are not covered; for finite message types they decide within a uniform bound by König's lemma, so nothing is lost there (see CslibFrontier.Computability.Distributed.Byzantine.Basic).

The proof is the covering argument of Fischer, Lynch and Merritt. Split the processes into groups A, B, C of at most t processes each. Take two copies of the network, the first with all inputs 0 and the second with all inputs 1, and rewire them so that every edge between A and C crosses from one copy to the other; when the groups are single processes this is the hexagon A₀ B₀ C₀ A₁ B₁ C₁. Any two groups of one copy, adjacent in this network, see exactly what they would see in a run of the original network in which the third group is faulty and replays the messages of the network (Protocol.state_eq_coverState). With A faulty, validity forces C₀ to decide 0; with C faulty, A₁ decides 1; with B faulty, A₁ and C₀ are the correct processes of one run, and agreement fails.

Unlike the source, the middle group B may be empty, so the argument also covers n = 2, where it is the familiar two-process scenario. The bound is sharp: for n ≤ 1 agreement is trivial, and for n > 3t it is solved in t + 1 rounds (CslibFrontier.Computability.Distributed.Byzantine.RecursiveOralMessages).

Main results #

References #

theorem Cslib.Distributed.Byzantine.Protocol.not_solvesByzantineAgreement_of_partition {P : Type u_1} {S : Type u_2} {M : Type u_3} [DecidableEq P] [Fintype P] (π : Protocol P S M) {t R : ℕ} (g : P → Fin 3) (hcard : ∀ (k : Fin 3), {i : P | g i = k}.card ≤ t) {a c : P} (ha : g a = 0) (hc : g c = 2) :

The covering argument Fischer, Lynch and Merritt, §3.1. If the processes split, by g, into three groups of at most t processes, the first containing a and the last containing c, then no protocol solves Byzantine agreement against t faults, for any fixed decision round R. The middle group may be empty.

theorem Cslib.Distributed.Byzantine.Protocol.not_solvesByzantineAgreement {P : Type u_1} {S : Type u_2} {M : Type u_3} [DecidableEq P] [Fintype P] (π : Protocol P S M) {t R : ℕ} (h2 : 2 ≤ Fintype.card P) (h3 : Fintype.card P ≤ 3 * t) :

No Byzantine agreement with n ≤ 3t processes Fischer, Lynch and Merritt, Theorem 1: a protocol on n processes with 2 ≤ n ≤ 3t does not solve Byzantine agreement against t faults, for any fixed decision round R. Protocols whose decision round depends on the run are not covered; for finite message types this loses nothing (König's lemma). The processes 0, …, n - 1 are split by residue modulo 3, so that 0 and 1 lie in the first and last group.

The hexagon argument Fischer, Lynch and Merritt, §3.1: three processes do not solve Byzantine agreement against one fault, for any fixed decision round R.