Asynchronous authenticated Byzantine message passing and reliable broadcast #
This module models deterministic asynchronous point-to-point message passing with static Byzantine
faults and authenticated sender channels, following [Bra87] and [BT85]. It is the
asynchronous Byzantine counterpart to Cslib.FLP (asynchronous crash faults) and
Cslib.Distributed.Byzantine (synchronous Byzantine agreement).
A message on the network is an Envelope P M carrying its sender src, recipient dest, and
payload body. Given a distinguished broadcaster dealer : P, a Protocol P S M V dealer assigns:
- initial states
initfor non-dealer processes (independent of the dealer's input) andinitDealerfordealer(depending oninput : Option V), - initial outgoing messages
initMsgsfor non-dealer processes andinitDealerMsgsfordealer, - deterministic transitions
next,send, andoutupon receiving a payload fromsrc.
For a static set F : Finset P of faulty processes, s.msgs : Multiset (Envelope P M) holds all
in-flight messages sent by correct processes (e.src ∉ F). The labelled transition system
π.lts F allows three kinds of actions (Action P M):
Action.deliver e: deliver an in-flight authentic envelopee ∈ s.msgsto a correct processe.dest ∉ F, erasing one copy ofefroms.msgs.Action.byzRecv src dest body: let a faulty processsrc ∈ Fdeliver an arbitrary messagebodyto a correct processdest ∉ F. Since transitions may fire in any order given the full global state, this covers adaptive/rushing adversaries, equivocation, replays, and silence/crashes.Action.stutter: a dummy stuttering step leaving the global state unchanged (followingCslib.FLP), so finite or quiescent runs always extend to infinite executions.
Every process's delivery field out : Option V is write-once: once a correct process decides
some v, later transitions leave out unchanged (procDecided_stable). Because point-to-point
channels are authenticated, no Byzantine action can forge a message whose src ∉ F
(Reachable.msgs_src_notMem).
An infinite execution is fair (Fair F ss xs) if every authentic in-flight message addressed to
a correct process is eventually delivered. Protocol.exists_fair_omegaExecution shows every
global state extends to a fair Byzantine-free infinite execution by draining the pending authentic
multiset round-by-round via Cslib.LTS.OmegaExecution.flatten_mTr.
Protocol.SolvesReliableBroadcast t specifies single-sender Byzantine reliable broadcast
(consistency/agreement, honest-sender integrity/no-spurious-delivery, validity, and totality)
against at most t faulty processes. directProtocol witnesses both the fault-free case (t = 0)
and every process set of size at most 2.
Main definitions #
Cslib.Distributed.AsyncByzantine.Envelope: authenticated point-to-point message envelope.Cslib.Distributed.AsyncByzantine.ProcState: local state paired with a write-onceOption Vdelivery register.Cslib.Distributed.AsyncByzantine.State: global configuration (authentic in-flight multiset and process states).Cslib.Distributed.AsyncByzantine.Action: LTS transition label (deliver,byzRecv,stutter).Cslib.Distributed.AsyncByzantine.broadcastAll: multiset broadcasting one payload to every process inP.Cslib.Distributed.AsyncByzantine.Protocol: deterministic asynchronous protocol with distinguished broadcasterdealer.Cslib.Distributed.AsyncByzantine.Protocol.lts: LTS parameterized by the static faulty setF.Cslib.Distributed.AsyncByzantine.Protocol.Fair: eventual delivery of every authentic message to every correct process.Cslib.Distributed.AsyncByzantine.Protocol.AdmissibleRun: fair infinite execution starting fromstart F input.Cslib.Distributed.AsyncByzantine.Protocol.traceSent,Cslib.Distributed.AsyncByzantine.Protocol.sentInTrace: authentic messages emitted by correct processes along a finite execution trace.Cslib.Distributed.AsyncByzantine.Protocol.SolvesReliableBroadcast: Byzantine reliable broadcast specification against at mosttfaults.Cslib.Distributed.AsyncByzantine.directProtocol: direct single-hop broadcast protocol.
Main results #
Cslib.Distributed.AsyncByzantine.Protocol.procDecided_stable: write-once delivery is monotone under reachability.Cslib.Distributed.AsyncByzantine.Protocol.Reachable.msgs_src_notMem: every in-flight message in a reachable state originates from a correct process.Cslib.Distributed.AsyncByzantine.Protocol.mTr_notDelivered_mem,Cslib.Distributed.AsyncByzantine.Protocol.omega_notDelivered_mem: undelivered in-flight messages remain in the network multiset.Cslib.Distributed.AsyncByzantine.Protocol.card_msgs_add_traceSent: exact message-conservation identity linkingtraceSent, remainingmsgs, and completed deliveries.Cslib.Distributed.AsyncByzantine.Protocol.exists_fair_omegaExecution: any state extends to a fair Byzantine-free infinite execution.Cslib.Distributed.AsyncByzantine.Protocol.Reachable.exists_admissibleRun: every reachable state extends via an honest fair suffix to an admissible infinite execution.Cslib.Distributed.AsyncByzantine.Protocol.consistency_iff_admissible: equivalence between reachable-state and admissible-run consistency.Cslib.Distributed.AsyncByzantine.solvesReliableBroadcast_direct_of_zero:directProtocolsolves reliable broadcast against0faults for everyP.Cslib.Distributed.AsyncByzantine.solvesReliableBroadcast_direct_of_card_le_two:directProtocolsolves reliable broadcast against anytfaults whenFintype.card P ≤ 2.
References #
An authenticated message envelope in transit from src to dest carrying payload body.
- src : P
Sender process identity, authenticated by the point-to-point channel.
- dest : P
Destination process identity.
- body : M
Message payload.
Transition label for the asynchronous Byzantine LTS.
- deliver {P : Type u_1} {M : Type u_2} (e : Envelope P M) : Action P M
Deliver an authentic in-flight envelope
eto its correct recipiente.dest. - byzRecv {P : Type u_1} {M : Type u_2} (src dest : P) (body : M) : Action P M
- stutter {P : Type u_1} {M : Type u_2} : Action P M
Stuttering step leaving the global state unchanged.
A deterministic asynchronous authenticated message-passing protocol with a distinguished
broadcaster dealer : P.
Non-dealer initial states and messages cannot depend on the broadcaster's input Option V. When
a correct process p in local state st receives body from src, it moves to internal state
next p st src body, sends outgoing messages send p st src body, and optionally delivers
out p st src body if it has not already delivered a value.
- init : P → S
Initial internal state of a non-dealer process
p ≠ dealer. - initDealer : Option V → S
Initial internal state of
dealergiveninput : Option V. Initial messages emitted by a non-dealer process
p ≠ dealer.Initial messages emitted by
dealergiveninput : Option V.- next : P → ProcState S V → P → M → S
Initial internal state of process p given dealer input input.
Initial outgoing (dest, body) multiset emitted by process p given dealer input input.
The initial global state for a static faulty set F and dealer input input : Option V.
Only correct processes (p ∉ F) contribute authentic messages to the initial network multiset;
faulty processes inject messages arbitrarily via Action.byzRecv.
Local state update shared by authentic and Byzantine message deliveries; once out becomes
some v, it never changes.
Core global transition shared by authentic delivery (recvHonest) and Byzantine injection
(recvByz), differing only in whether an envelope is erased from s.msgs.
State resulting from delivering authentic in-flight envelope e to e.dest.
State resulting from delivering an adversary-injected message (src, body) to dest.
Labelled transition system of π for a fixed static set F of Byzantine processes.
π.Reachable F input s means s is reachable from π.start F input under π.lts F.
Basic transition lemmas #
Once a process delivers v, its delivery register remains some v in every later state.
Every envelope present in the initial multiset of π.start F input originates from a correct
process.
In any reachable global state, every envelope in s.msgs originates from a correct process.
An in-flight message e stays in msgs across any transition other than .deliver e.
An in-flight message e stays in msgs across any finite trace not containing .deliver e.
An in-flight message e stays in msgs across an infinite execution as long as .deliver e
never occurs.
An admissible infinite execution of π for static faulty set F and dealer input input.
Every state appearing in an admissible infinite execution is reachable from
π.start F input.
Fair Byzantine-free scheduler #
Every global state s₀ extends to a fair, Byzantine-free infinite execution of π.lts F.
All actions in the extension are either authentic deliveries .deliver e or .stutter.
Every initial state admits a fair, Byzantine-free infinite execution.
Every reachable state occurs in some admissible infinite execution whose suffix from k
onward is Byzantine-free.
Authentic message-complexity accounting #
Total authentic envelopes emitted by correct processes along a finite trace xl starting at
state s (excluding messages already present in s.msgs).
Total authentic envelopes emitted by correct processes from the initial state through a finite
trace xl (initial messages in (π.start F input).msgs plus π.traceSent).
Exact message-conservation identity: along any valid finite execution trace xl from s₀
to s₁, the initial in-flight envelopes plus newly emitted authentic envelopes equal the final
in-flight envelopes plus the authentic deliveries performed along xl.
Reliable broadcast specification #
π.SolvesReliableBroadcast t means π implements single-sender asynchronous Byzantine
reliable broadcast from dealer tolerating up to t static Byzantine faults ([Bra87];
[BT85]):
- consistency (agreement): no two correct processes ever deliver different values, even if the dealer is faulty;
- noSpurious (honest-sender integrity): if the dealer is correct with input
input : Option V, any valuevdelivered by a correct process must satisfyinput = some v(in particular, ifinput = nonethe dealer never broadcasts and no correct process ever delivers); - validity: if the dealer is correct with input
some v, every correct process eventually deliversvin every fair execution; - totality: in every fair execution (even if the dealer is faulty), if some correct process
delivers
v, then every correct process eventually deliversv.
No-duplication (at most one delivery per process) holds structurally from write-once ProcState.out
(procDecided_stable).
- consistency (F : Finset P) : F.card ≤ t → ∀ (input : Option V) (s : State P S M V), π.Reachable F input s → ∀ i ∉ F, ∀ j ∉ F, ∀ (v₁ v₂ : V), s.ProcDecided i v₁ → s.ProcDecided j v₂ → v₁ = v₂
Consistency (agreement): no two correct processes deliver different values in any reachable state.
- noSpurious (F : Finset P) : F.card ≤ t → dealer ∉ F → ∀ (input : Option V) (s : State P S M V), π.Reachable F input s → ∀ i ∉ F, ∀ (v : V), s.ProcDecided i v → input = some v
Integrity (no spurious delivery): if
dealeris correct with inputinput, any valuevdelivered by a correct process matchesinput = some v. - validity (F : Finset P) : F.card ≤ t → dealer ∉ F → ∀ (v : V) (ss : ωSequence (State P S M V)) (xs : ωSequence (Action P M)), π.AdmissibleRun F (some v) ss xs → ∀ i ∉ F, ∃ (k : ℕ), (ss k).ProcDecided i v
Validity (liveness for an honest dealer): if
dealeris correct with inputsome v, every correct process eventually deliversvin every admissible execution. - totality (F : Finset P) : F.card ≤ t → ∀ (input : Option V) (ss : ωSequence (State P S M V)) (xs : ωSequence (Action P M)), π.AdmissibleRun F input ss xs → ∀ i ∉ F, ∀ (k : ℕ) (v : V), (ss k).ProcDecided i v → ∀ j ∉ F, ∃ (k' : ℕ), (ss k').ProcDecided j v
Totality (liveness for a possibly faulty dealer): if any correct process delivers
vin an admissible execution, then every correct process eventually deliversv.
Tolerating t faults implies tolerating at most t' ≤ t faults.
Consistency across admissible infinite executions is equivalent to consistency across all reachable finite states, because every reachable state extends to a fair infinite execution.
Consistent broadcast fails across any run whose processes have already split.
Trivial direct broadcast (t = 0 or n ≤ 2) #
The direct single-hop broadcast protocol: dealer sends its value v to every process
(including itself), and each process delivers the first message it receives directly from
dealer. This solves reliable broadcast when t = 0 (on any process set) and against any
number of Byzantine faults when Fintype.card P ≤ 2.
Without faults (t = 0), directProtocol solves reliable broadcast on every finite P.
On at most two processes (Fintype.card P ≤ 2), directProtocol solves reliable broadcast
against any fault bound t: if dealer is faulty, at most one correct process remains, so both
consistency and totality are trivial.