Documentation

CslibFrontier.Computability.Distributed.Byzantine.RoundBound

The t + 1 round lower bound for interactive consistency and Byzantine agreement #

Fischer and Lynch (§§1–3, pp. 183–184; §6, Theorem 5, p. 185) prove that no deterministic synchronous protocol on n ≥ t + 2 processes solves interactive consistency—where each correct process outputs a common vector recording every correct process's private input—against t Byzantine faults in R ≤ t rounds (InteractiveProtocol.not_solvesInteractiveConsistency_of_rounds_le).

Adapting the same backward crash-peeling argument (Protocol.not_agreement_and_zero_unanimity) to single-bit consensus (Cslib.Distributed.Byzantine.Protocol) and combining it with the n ≤ 3t node bound (CslibFrontier.Computability.Distributed.Byzantine.NodeBound) rules out Boolean Byzantine agreement for all n ≥ 2 and R ≤ t (Protocol.not_solvesByzantineAgreement_of_rounds_le). Conversely, InteractiveProtocol.toByzantineAgreement runs an R-round Boolean interactive consistency protocol and takes the strict majority of its output vector to produce an R-round Boolean consensus protocol whenever 2 * t < Fintype.card P (InteractiveProtocol.solvesByzantineAgreement_toByzantineAgreement). Together with the (t + 1)-round oral messages protocol (CslibFrontier.Computability.Distributed.Byzantine.RecursiveOralMessages), this determines the exact two-parameter solvability region for Boolean Byzantine agreement: a protocol on P solves Byzantine agreement against t faults in R rounds if and only if Fintype.card P ≤ 1 or 3 * t < Fintype.card P ∧ t + 1 ≤ R (exists_solvesByzantineAgreement_iff_full).

Proof outline #

The shared backward-peeling core (Protocol.not_agreement_and_zero_unanimity) shows that on at least R + 2 processes, no R-round protocol can simultaneously achieve R-fault agreement and distinguish all-false from all-true in the fault-free (F = ∅) run:

Even crash-like (silent-omission) schedules suffice. Fix a default message m₀ : M. A partial schedule (C, alive) up to round k designates at most k faulty processes C and specifies which messages faulty processes drop (replacing them by m₀) in rounds < k; its canonical extension extAlive k C alive silences C in all rounds ≥ k while keeping processes outside C honest. Backward induction on the remaining rounds d = R - k proves simultaneously:

  1. Silencing (P_silence): silencing one additional process p from round k onward does not change the round-R decision of the remaining correct processes. First silence p from round k + 1 onward (d remaining rounds), then silence p's round-(k + 1) messages one recipient q* at a time; each single-recipient change alters the state after round k + 1 only at q*, which is masked in the remaining d rounds by the induction hypothesis with fault set insert p C of size at most k + 1.
  2. Single-process masking (P_agree): two C-honest prefixes of length k whose states at round k agree outside insert p C reach the same round-R decision, obtained by silencing p from round k onward in both runs. Since (insert p C).card ≤ R + 1 < Fintype.card P, at least one process outside insert p C remains correct in both runs.

At k = 0 (C = ∅, d = R), flipping the input vector from all-false to all-true one process at a time preserves the round-R decision of fault-free runs, contradicting fault-free unanimity.

Main definitions #

Main results #

References #

The t + 1 round lower bound for Boolean Byzantine agreement (Boolean consensus adaptation of Fischer and Lynch, §6, Theorem 5, p. 185): no deterministic synchronous protocol on n ≥ 2 processes solves Boolean Byzantine agreement against t faults in R ≤ t rounds. For the source's interactive consistency formulation, see InteractiveProtocol.not_solvesInteractiveConsistency_of_rounds_le.

Interactive consistency and Fischer–Lynch Theorem 5 #

structure Cslib.Distributed.Byzantine.InteractiveProtocol (P : Type u_1) (V : Type u_2) (State : Type u_3) (Msg : Type u_4) :
Type (max (max (max u_1 u_2) u_3) u_4)

A deterministic synchronous protocol for interactive consistency on the complete graph of processes P over value domain V (Fischer and Lynch, §§1–3, pp. 183–184).

Process i starts with private value inp i : V in state init i (inp i), exchanges point-to-point messages via send and update in synchronous rounds, and outputs a vector output i s : P → V estimating each process's private input.

  • init : P → V → State

    Initial state of process i with private input value v : V.

  • send : ℕ → P → State → P → Msg

    send r i s j: message sent by i in state s to j in round r + 1.

  • update : ℕ → P → State → (P → Msg) → State

    update r i s m: state of i after round r + 1, where m j came from j.

  • output : P → State → P → V

    Output vector output i s : P → V computed by process i, one coordinate per process.

def Cslib.Distributed.Byzantine.InteractiveProtocol.state {P : Type u_1} {V : Type u_2} {S : Type u_3} {M : Type u_4} [DecidableEq P] (π : InteractiveProtocol P V S M) (F : Finset P) (adv : ℕ → P → P → M) (inp : P → V) :
ℕ → P → S

Local state of process i after r rounds on private inputs inp : P → V, inherited directly from Protocol.state on π's underlying synchronous message-passing transitions.

def Cslib.Distributed.Byzantine.InteractiveProtocol.decision {P : Type u_1} {V : Type u_2} {S : Type u_3} {M : Type u_4} [DecidableEq P] (π : InteractiveProtocol P V S M) (F : Finset P) (adv : ℕ → P → P → M) (inp : P → V) (R : ℕ) (i : P) :
P → V

Output vector computed by process i after R rounds.

structure Cslib.Distributed.Byzantine.InteractiveProtocol.SolvesInteractiveConsistency {P : Type u_1} {V : Type u_2} {S : Type u_3} {M : Type u_4} [DecidableEq P] (π : InteractiveProtocol P V S M) (t R : ℕ) :

π assures interactive consistency against at most t Byzantine faults in R rounds (Fischer and Lynch, §3, p. 184): whenever at most t processes are faulty, all nonfaulty processes output the same vector (agreement), and every nonfaulty process's vector records every nonfaulty process r's private input inp r at coordinate r (validity).

  • agreement (F : Finset P) : F.card ≤ t → ∀ (adv : ℕ → P → P → M) (inp : P → V), ∀ i ∉ F, ∀ j ∉ F, π.decision F adv inp R i = π.decision F adv inp R j

    Agreement: all correct processes output the same vector across all coordinates r : P.

  • validity (F : Finset P) : F.card ≤ t → ∀ (adv : ℕ → P → P → M) (inp : P → V), ∀ i ∉ F, ∀ r ∉ F, π.decision F adv inp R i r = inp r

    Validity: for correct i and correct r, coordinate r of i's output equals inp r.

Tolerating t faults implies tolerating t' ≤ t faults.

Fischer–Lynch t + 1 round lower bound for interactive consistency (Fischer and Lynch, §6, Theorem 5, p. 185): over any nontrivial value domain V ({0, 1} ⊆ V), no deterministic synchronous protocol on n ≥ t + 2 processes assures interactive consistency against t faults in R ≤ t rounds.

The bound t + 2 ≤ Fintype.card P ensures at least two nonfaulty processes remain outside a t-fault set (Fischer and Lynch invoke the n ≥ 3t + 1 bound of Pease, Shostak and Lamport for t ≥ 1, §5 Theorem 3, which implies n ≥ t + 2, and treat t = 0 implicitly assuming n ≥ 2). On Fin 2 with t = 1 (n = 2 < t + 2), interactive consistency is solvable in R = 1 round; for 3 ≤ n ≤ 3t and t ≥ 1, §5 Theorem 3 instead rules out tolerating t faults in any number of rounds (at n = 3, such as n = 3, t = 2, even one fault is impossible, whereas at n = 4, t = 2 §5 Theorem 4 permits one fault while §5 Theorem 3 rules out t = 2 faults).

Same-round adapter from Boolean interactive consistency to Boolean Byzantine agreement: runs the interactive consistency protocol π unchanged and outputs true iff a strict majority of coordinates in π's output vector are true, producing a Boolean consensus Protocol.

When 2 * t < Fintype.card P, strict majority over an R-round interactive consistency protocol's output vector solves Boolean Byzantine agreement in the same R rounds.

Complete two-parameter characterization of synchronous Byzantine agreement. For a finite process type P, fault bound t, and fixed decision round R, some deterministic synchronous protocol solves Byzantine agreement on P against t faults in R rounds if and only if Fintype.card P ≤ 1 or both 3 * t < Fintype.card P and t + 1 ≤ R: