Bracha's asynchronous Byzantine reliable broadcast (n > 3t) #
This module formalizes the streamlined three-phase presentation of Bracha's asynchronous reliable
broadcast protocol (brachaProtocol, [Bra87]) and proves its correctness against up to t
static Byzantine faults whenever 3 * t < n, where n = Fintype.card P. Combined with
CslibFrontier.Computability.Distributed.AsyncByzantine.Impossibility and directProtocol,
exists_solvesReliableBroadcast_iff gives the sharp threshold: for any nonempty value domain V,
deterministic asynchronous Byzantine reliable broadcast tolerating t faults exists if and only
if n ≤ 2 or 3 * t < n.
Streamlined echo rule (difference from [Bra87] original rule) #
In this formalization, a correct process sends echo v only upon receiving its first
initial v message directly from dealer. In some presentations of Bracha's original protocol,
a process also emits echo v upon receiving echoThreshold n t echo v or t + 1 ready v
messages when it has not yet sent an echo. Omitting those echo-amplification branches yields the
same safety and liveness guarantees under n > 3t (because ready amplification and the
honest-echo quorum still force totality and consistency), keeps the exact O(n²) message bound
tighter, and avoids checking an extra transition rule; see the brachaStep specification below.
The protocol #
Every process maintains BrachaState P V: write-once fields recording the single ECHO and READY
values it has emitted (sentEcho, sentReady : Option V), and per-sender tables storing the
first ECHO and first READY received from each sender j : P (echoFrom,
readyFrom : P → Option V). Keeping only the first message per sender deduplicates Byzantine
replays and equivocations without requiring [Fintype V].
For threshold echoThreshold n t := (n + t) / 2 + 1 = ⌈(n + t + 1) / 2⌉:
- Initial phase: if
dealeris correct withinput = some v, it sendsinitial vto every process (including itself). Upon receiving its firstinitial vfromdealer, a process setssentEcho := some vand broadcastsecho vto all processes. - Echo phase: upon receiving the first
echo vfromsrc, recordechoFrom src := some v. If at leastechoThreshold n tdistinct senders carryecho vandsentReadyisnone, setsentReady := some vand broadcastready vto all processes. - Ready phase: upon receiving the first
ready vfromsrc, recordreadyFrom src := some v.
Safety, liveness, and communication bound #
Safety uses the echo-quorum witness invariant: whenever a correct process holds
sentReady = some v, there exists a quorum S with echoThreshold n t ≤ S.card every correct
member of which has sentEcho = some v. Two such quorums intersect in strictly more than t
processes (echo_quorum_inter_notMem), hence share a correct process; since each correct process
emits at most one echo, all correct sentReady values agree.
By exact telescoping over the counts of correct processes with sentEcho.isSome and
sentReady.isSome, brachaSentInTrace_le proves that along every finite execution trace—even
under arbitrary Byzantine message flooding—the total number of authentic envelopes emitted by
correct processes (Protocol.sentInTrace) is at most n + 2 * (n - F.card) * n.
Main definitions #
Cslib.Distributed.AsyncByzantine.echoThreshold: quorum size(n + t) / 2 + 1.Cslib.Distributed.AsyncByzantine.BrachaMsg: message tag (initial,echo,ready).Cslib.Distributed.AsyncByzantine.BrachaState: local process state.Cslib.Distributed.AsyncByzantine.BrachaStepResult: return record ofbrachaStep.Cslib.Distributed.AsyncByzantine.brachaStep: unified local transition handler.Cslib.Distributed.AsyncByzantine.brachaProtocol: streamlined three-phase asynchronous reliable broadcast protocol.
Main results #
Cslib.Distributed.AsyncByzantine.echo_quorum_inter_notMem: two echo quorums share a correct process.Cslib.Distributed.AsyncByzantine.solvesReliableBroadcast_bracha: correctness ofbrachaProtocolfor3 * t < Fintype.card P.Cslib.Distributed.AsyncByzantine.brachaSentInTrace_le: exactO(n²)authentic communication boundn + 2 * (n - F.card) * nviaProtocol.sentInTrace.Cslib.Distributed.AsyncByzantine.exists_solvesReliableBroadcast_iff: sharp thresholdFintype.card P ≤ 2 ∨ 3 * t < Fintype.card Pfor any nonemptyV.
References #
Threshold arithmetic and quorum intersection #
The Bracha echo-quorum threshold ⌈(n + t + 1) / 2⌉ = (n + t) / 2 + 1.
Any two echo quorums (of size at least echoThreshold |P| t) share a correct process
(∉ F) when F.card ≤ t.
Protocol definition #
Message payloads exchanged by Bracha's three-phase reliable broadcast protocol.
Local internal state of a process running brachaProtocol. Retaining only the first message
per sender deduplicates Byzantine replays and equivocations without assuming [Fintype V].
Senders from whom st has recorded echo v.
Senders from whom st has recorded ready v.
Output record of one local step of Bracha's protocol.
- nextState : BrachaState P V
Updated local internal state.
Outgoing
(dest, msg)multiset emitted in this step.- delivered : Option V
Value delivered (
some v), if the delivery threshold2t + 1was reached.
Shared local transition handler for the streamlined three-phase brachaProtocol. Unlike
variants that also emit echo v after collecting enough echo/ready messages, this handler
emits echo v only upon receiving the first initial v from dealer.
Initial local state of a process running Bracha's protocol.
Streamlined three-phase asynchronous Byzantine reliable broadcast protocol for sender dealer
and fault threshold t ([Bra87]). A correct process emits echo v only upon its first
initial v from dealer (without secondary echo amplification from echo/ready thresholds),
then emits ready v and delivers v via the standard echoThreshold n t, t + 1, and
2 * t + 1 thresholds.
Private specification lemmas for brachaStep #
Global inductive invariant #
Liveness helpers and uniform stabilization #
Correctness theorem (n > 3t) #
Bracha's reliable broadcast correctness theorem ([Bra87]). For any finite P with
3 * t < Fintype.card P, arbitrary value type V (no finiteness assumption on V), and any
broadcaster dealer : P, the streamlined three-phase protocol brachaProtocol P V dealer t
solves asynchronous Byzantine reliable broadcast against t static Byzantine faults.
Exact O(n²) communication complexity #
Exact message-complexity bound for the streamlined brachaProtocol: across any finite
execution trace xl (independent of trace length, fault threshold t, or Byzantine flooding),
correct processes emit at most n + 2 * (n - F.card) * n authentic envelopes in total
(initial + echo + ready).
Exact threshold characterization #
Exact solvability threshold for asynchronous Byzantine reliable broadcast.
For any finite process type P with distinguished broadcaster dealer : P and any nonempty
value domain V in the same universe (including a singleton such as Unit), a deterministic
asynchronous protocol solving reliable broadcast against t static Byzantine faults exists
if and only if Fintype.card P ≤ 2 or 3 * t < Fintype.card P.
3 * t < Fintype.card P: witnessed bybrachaProtocol(solvesReliableBroadcast_bracha, [Bra87]).3 ≤ Fintype.card P ≤ 3 * t: refuted byProtocol.not_solvesReliableBroadcast([BT85]; [Bra87]).Fintype.card P ≤ 2: degenerate case where a faultydealerleaves at most one correct process, witnessed bydirectProtocol(solvesReliableBroadcast_direct_of_card_le_two).