Unit-interval fixed-horizon approximate Byzantine agreement #
Unit-interval ([0, 1]), fixed-horizon (R-round) deterministic synchronous (3t < n) and
single-hop asynchronous (5t < n) approximate Byzantine agreement protocols
(SolvesUnitSyncApproxAgreement, SolvesUnitAsyncApproxAgreement), together with arbitrary-range
(hi - lo) / 2 ^ R multi-round contraction and 2 ≤ n ≤ 3t unit-interval impossibility bounds.
These declarations formalize bounded-input, fixed-horizon milestone steps toward #7116 and #3261
after the nonterminating approximation phases (Algorithm $S_0$ in Section 3, Lemma 6, p. 506;
Algorithm $A_0$ in Section 4, Lemma 8, p. 509; and the fixed-round problem variant in Section 7,
p. 516) of Dolev, Lynch, Pinter, Stark and Weihl — not the
unbounded-input, dynamically halting Theorems 1 and 2 of that paper. Theorems 1 and 2 of
[DLP+86] accept arbitrary real inputs without a pre-agreed horizon R,
computing process-dependent halting horizons H = ⌈log_c(δ(V) / ε)⌉ from round-1 / round-0
reduce^{2t} views and echoing (v, halted) tags (Algorithms $S$ and $A$, Figures 1–2), and use
f_{t, t} / f_{2t, t} representative means rather than the two-endpoint midpoint midTrim.
Contrast with exact consensus and FLP #
- Unit-interval synchronous threshold (
exists_solvesUnitSyncApproxAgreement_iff): for any0 < ε < 1over an Archimedean linearly ordered fieldK, a deterministic synchronous protocol onPsolvesSolvesUnitSyncApproxAgreement t R εfor some fixed horizonRif and only ifFintype.card P ≤ 1 ∨ 3 * t < Fintype.card P. Relaxing exact agreement (ε = 0) toε < 1on[0, 1]inputs leaves the3t + 1synchronous fault threshold unchanged (not_solvesUnitSyncApproxAgreement, adapting Fischer, Lynch and Merritt), whilesyncApproxProtocolcontracts any honest input interval[lo, hi]by2 ^ RoverRrounds without relay trees (syncApproxProtocol_abs_decision_sub_le). - Unit-interval asynchronous solvability despite FLP (
exists_solvesUnitAsyncApproxAgreement): whereas exact deterministic asynchronous binary consensus ({0, 1}inputs,ε = 0) is impossible onn ≥ 2processes even against a single crash fault (Cslib.FLP), for every0 < εand5 * t < Fintype.card Pthere is a fixed horizonRfor which the deterministic single-hop round-tagged protocolasyncApproxProtocolterminates under fair message delivery (asyncApproxProtocol_terminates), preserves every honest input interval[lo, hi](asyncApproxProtocol_mem_Icc), contracts the honest output spread to(hi - lo) / 2 ^ R(asyncApproxProtocol_abs_sub_le), and therefore satisfiesSolvesUnitAsyncApproxAgreement t ε. - Asynchronous
2 ≤ n ≤ 3timpossibility (not_solvesUnitAsyncApproxAgreement): no deterministic asynchronous protocol achievesSolvesUnitAsyncApproxAgreement t εwithε < 1when2 ≤ Fintype.card P ≤ 3 * t, proved viaAsyncByzantine.Protocol.replay_subset_mTr. Note that Theorem 2 of Dolev, Lynch, Pinter, Stark and Weihl likewise requires5t < n(n ≥ 5t + 1); closing the asynchronous resilience gap3t < n ≤ 5tvia multi-hop witness techniques beyond [DLP+86] (see Section 7, p. 515) is tracked separately under#3261.
Main definitions #
Cslib.Distributed.ApproxAgreement.SyncProtocol: deterministic synchronous protocol over a value domainV.Cslib.Distributed.ApproxAgreement.SyncProtocol.SolvesUnitSyncApproxAgreement: unit-interval (x k ∈ [0, 1]), fixed-horizon (R-round) synchronousε-approximate Byzantine agreement.Cslib.Distributed.ApproxAgreement.syncApproxProtocol: fixed-horizon synchronous iterativemultisetMidTrimprotocol (3 * t < Fintype.card P), after Algorithm $S_0$ of [DLP+86].Cslib.Distributed.ApproxAgreement.AsyncProtocol: deterministic multi-input asynchronous Byzantine protocol reusingCslib.Distributed.AsyncByzantine's authenticated LTS configurations.Cslib.Distributed.ApproxAgreement.AsyncProtocol.SolvesUnitAsyncApproxAgreement: unit-interval (x k ∈ [0, 1]) asynchronousε-approximate Byzantine agreement under fair delivery.Cslib.Distributed.ApproxAgreement.RoundMsg,Cslib.Distributed.ApproxAgreement.AsyncApproxState,Cslib.Distributed.ApproxAgreement.asyncApproxProtocol: fixed-horizon (R-round) single-hop round-tagged asynchronous approximate agreement protocol (5 * t < Fintype.card P), after Algorithm $A_0$ of [DLP+86].
Main results #
Cslib.Distributed.ApproxAgreement.syncApproxProtocol_decision_mem_Icc,Cslib.Distributed.ApproxAgreement.syncApproxProtocol_abs_decision_sub_le: arbitrary-interval convex-hull validity and(hi - lo) / 2 ^ Rcontraction ofsyncApproxProtocolfor3 * t < Fintype.card P.Cslib.Distributed.ApproxAgreement.SyncProtocol.not_solvesUnitSyncApproxAgreement: unit-interval synchronous impossibility for2 ≤ Fintype.card P ≤ 3 * tandε < 1.Cslib.Distributed.ApproxAgreement.exists_solvesUnitSyncApproxAgreement_iff: sharp thresholdFintype.card P ≤ 1 ∨ 3 * t < Fintype.card PforSolvesUnitSyncApproxAgreement(0 < ε < 1).Cslib.Distributed.ApproxAgreement.asyncApproxProtocol_terminates,Cslib.Distributed.ApproxAgreement.asyncApproxProtocol_mem_Icc,Cslib.Distributed.ApproxAgreement.asyncApproxProtocol_abs_sub_le: fair-delivery termination, arbitrary-interval convex-hull validity, and(hi - lo) / 2 ^ Rcontraction ofasyncApproxProtocolfor5 * t < Fintype.card P.Cslib.Distributed.ApproxAgreement.exists_solvesUnitAsyncApproxAgreement: solvability ofSolvesUnitAsyncApproxAgreement t εfor0 < εandFintype.card P ≤ 1 ∨ 5 * t < Fintype.card P.Cslib.Distributed.ApproxAgreement.AsyncProtocol.not_solvesUnitAsyncApproxAgreement: unit-interval asynchronous impossibility for2 ≤ Fintype.card P ≤ 3 * tandε < 1.
References #
Shared multi-round contraction engine and 3-partition helper #
Part 1: Synchronous approximate Byzantine agreement (3 * t < |P|) #
A deterministic synchronous message-passing protocol on the complete graph of processes P
with inputs and outputs in V (extending Cslib.Distributed.Byzantine.Protocol from Bool to an
arbitrary value domain V).
- init : P → V → State
Initial state of process
ion inputv : V. - send : ℕ → P → State → P → Msg
send r i s j: message sent by processiin statestojin roundr + 1. - update : ℕ → P → State → (P → Msg) → State
update r i s m: state ofiafter roundr + 1upon receivingm jfrom eachj. - output : P → State → V
Output value read off from state
sof processi.
State of process i after r synchronous rounds on input vector x when processes in F are
faulty and faulty j sends adv r j i to i in round r + 1.
Output decision of process i after R rounds.
State after r rounds against a rushing adversary strat that inspects the global state
after round r before choosing faulty round-(r + 1) messages.
A rushing adversary in a deterministic synchronous run is equivalent to the fixed message table of messages it sends along that run.
Run of π on a covering network (label, input, nbr).
Covering lemma for value-domain synchronous protocols (Fischer, Lynch and Merritt).
Zero-communication protocol in which each process outputs its own input.
Unit-interval, fixed-horizon synchronous ε-approximate Byzantine agreement (a
[0, 1]-bounded, fixed-round milestone step toward #7116, after Section 3 and Section 7, p. 516
of Dolev, Lynch, Pinter, Stark and Weihl, rather than that
paper's unbounded-input, dynamically halting Theorem 1): whenever F.card ≤ t and all correct
inputs lie in [0, 1], after the fixed round horizon R:
- validity (convex hull): for every closed interval
[lo, hi]containing all correct inputs, every correct process's decision lies in[lo, hi]; - agreement (
ε-closeness): any two correct processes' decisions differ by at mostε.
- validity (F : Finset P) : F.card ≤ t → ∀ (adv : ℕ → P → P → M) (x : P → K) (lo hi : K), (∀ k ∉ F, x k ∈ Set.Icc 0 1) → (∀ k ∉ F, x k ∈ Set.Icc lo hi) → ∀ i ∉ F, πK.decision F adv x R i ∈ Set.Icc lo hi
Convex-hull validity: decisions remain within every
[lo, hi]containing correct inputs. - agreement (F : Finset P) : F.card ≤ t → ∀ (adv : ℕ → P → P → M) (x : P → K), (∀ k ∉ F, x k ∈ Set.Icc 0 1) → ∀ i ∉ F, ∀ j ∉ F, |πK.decision F adv x R i - πK.decision F adv x R j| ≤ ε
Approximate agreement: correct decisions lie within
εof each other.
Unit-interval fixed-horizon synchronous approximate agreement guarantees also hold against rushing adversaries.
Covering impossibility for unit-interval synchronous ε-approximate Byzantine agreement
(ε < 1): if P splits into three groups of size at most t with witnesses a in group 0 and
c in group 2, no protocol achieves SolvesUnitSyncApproxAgreement t R ε for ε < 1 (in
particular for ε < 1 / 2), adapting Fischer, Lynch and Merritt.
No unit-interval synchronous ε-approximate Byzantine agreement for 2 ≤ |P| ≤ 3 * t and
ε < 1: adapts the 3t + 1 covering lower bound proved in
Fischer, Lynch and Merritt (and cited in Section 7, p. 515 of
Dolev, Lynch, Pinter, Stark and Weihl) to
SolvesUnitSyncApproxAgreement (including |P| = 2 via an empty middle group).
Fixed-horizon synchronous iterative trimmed-midpoint protocol (step after the nonterminating
Algorithm $S_0$ in Section 3, p. 506 of
Dolev, Lynch, Pinter, Stark and Weihl, using multisetMidTrim t
in place of f_{t, t} and evaluated at a caller-chosen horizon R rather than Algorithm $S$'s
input-dependent halting tag): in each round every process broadcasts its current estimate, collects
the |P| values received, and moves to multisetMidTrim t.
Synchronous convex-hull validity: for 3 * t < Fintype.card P, if all correct inputs lie
in [lo, hi], then after every round R every correct process's output in syncApproxProtocol
lies in [lo, hi].
Synchronous multi-round contraction: for 3 * t < Fintype.card P, if all correct inputs
lie in [lo, hi], then after R rounds any two correct processes' outputs in
syncApproxProtocol differ by at most (hi - lo) / 2 ^ R.
Unit-interval, fixed-horizon step toward #7116 (after Section 3 of
Dolev, Lynch, Pinter, Stark and Weihl): when
3 * t < Fintype.card P and (1 : K) / 2 ^ R ≤ ε, syncApproxProtocol achieves
SolvesUnitSyncApproxAgreement t R ε.
Sharp threshold for unit-interval, fixed-horizon synchronous approximate Byzantine agreement
(milestone step toward #7116, after Section 3 and Section 7, p. 515 of
Dolev, Lynch, Pinter, Stark and Weihl, rather than that paper's
unbounded-input, dynamically halting Theorem 1): over any Archimedean linearly ordered field K and
accuracy 0 < ε < 1, a deterministic synchronous protocol on P solving
SolvesUnitSyncApproxAgreement t R ε for some fixed horizon R exists if and only if
Fintype.card P ≤ 1 ∨ 3 * t < Fintype.card P. The degenerate |P| ≤ 1 branch is witnessed by
SyncProtocol.ownInput; 3 * t < |P| sufficiency is witnessed by syncApproxProtocol; and
necessity for 2 ≤ |P| ≤ 3 * t follows from SyncProtocol.not_solvesUnitSyncApproxAgreement
adapting Fischer, Lynch and Merritt.
Part 2: Asynchronous approximate Byzantine agreement (5 * t < |P|) #
A deterministic multi-party asynchronous authenticated message-passing protocol on P with
inputs and write-once outputs in V, local states S, and message payloads M. Global states
(AsyncByzantine.State), authenticated envelopes (AsyncByzantine.Envelope), transition actions
(AsyncByzantine.Action), and fairness (AsyncByzantine.Protocol.Fair) are reused directly from
Cslib.Distributed.AsyncByzantine.
- init : P → V → S
Initial internal state of process
pwith inputv : V. Initial outgoing
(dest, body)messages emitted by processpwith inputv : V.- next : P → AsyncByzantine.ProcState S V → P → M → S
State transition when
destreceivesbodyfromsrc. Outgoing messages
(q, m)emitted whendestreceivesbodyfromsrc.- out : P → AsyncByzantine.ProcState S V → P → M → Option V
Write-once output value (
some v) delivered whendestreceivesbodyfromsrc.
Embed π with fixed input vector x : P → V and any witness process d : P as an
AsyncByzantine.Protocol, sharing the exact same LTS transitions and initial configuration.
Initial global configuration for static faulty set F and input vector x : P → V.
Local write-once state update upon message delivery.
Core global transition shared by authentic delivery and Byzantine injection.
State resulting from delivering authentic in-flight envelope e to e.dest.
State resulting from delivering adversary-injected (src, body) to dest.
Labelled transition system of π for static Byzantine set F.
Admissible infinite execution of π for static faulty set F and inputs x : P → V.
Trivial single-process asynchronous protocol: each process sends a unit self-message at start
and outputs its own input upon receiving any message. Uses ULift on local state so State lives
in Type (max u v) for independent process and value universes.
Unit-interval asynchronous ε-approximate Byzantine agreement (a [0, 1]-bounded milestone
step toward #7116 and #3261, after Section 4 of
Dolev, Lynch, Pinter, Stark and Weihl, rather than that paper's
unbounded-input Theorem 2): whenever F.card ≤ t and all correct inputs lie in [0, 1],
- termination: in every fair execution, every correct process eventually outputs a value;
- validity: for every
[lo, hi]containing all correct inputs, every value output by a correct process in any reachable state lies in[lo, hi]; - agreement: in any reachable state, any two values output by correct processes differ by at
most
ε.
- termination (F : Finset P) : F.card ≤ t → ∀ (x : P → K), (∀ k ∉ F, x k ∈ Set.Icc 0 1) → ∀ (ss : ωSequence (AsyncByzantine.State P S M K)) (xs : ωSequence (AsyncByzantine.Action P M)), πK.AdmissibleRun F x ss xs → ∀ i ∉ F, ∃ (n : ℕ) (v : K), (ss n).ProcDecided i v
Fair-delivery termination: every correct process eventually decides.
- validity (F : Finset P) : F.card ≤ t → ∀ (x : P → K) (lo hi : K), (∀ k ∉ F, x k ∈ Set.Icc 0 1) → (∀ k ∉ F, x k ∈ Set.Icc lo hi) → ∀ (s : AsyncByzantine.State P S M K), πK.Reachable F x s → ∀ i ∉ F, ∀ (v : K), s.ProcDecided i v → v ∈ Set.Icc lo hi
Convex-hull validity across all reachable states.
- agreement (F : Finset P) : F.card ≤ t → ∀ (x : P → K), (∀ k ∉ F, x k ∈ Set.Icc 0 1) → ∀ (s : AsyncByzantine.State P S M K), πK.Reachable F x s → ∀ i ∉ F, ∀ j ∉ F, ∀ (v₁ v₂ : K), s.ProcDecided i v₁ → s.ProcDecided j v₂ → |v₁ - v₂| ≤ ε
Approximate
ε-agreement across all reachable states.
Unit-interval agreement along any admissible run at arbitrary decision steps n₁, n₂.
Asynchronous 2 ≤ |P| ≤ 3 * t split-brain impossibility #
Split-brain impossibility for unit-interval asynchronous ε-approximate Byzantine agreement
(ε < 1): if P is partitioned into pairwise disjoint groups A, B, C each of size at most t
with a₀ ∈ A and c₀ ∈ C (B may be empty), no protocol solves
SolvesUnitAsyncApproxAgreement t ε for ε < 1.
No unit-interval asynchronous ε-approximate Byzantine agreement for 2 ≤ |P| ≤ 3 * t and
ε < 1: asynchronous split-brain analogue of the 3t + 1 bound of
Fischer, Lynch and Merritt (cited in Section 7, p. 515 of
Dolev, Lynch, Pinter, Stark and Weihl). Covers both n = 2
(empty middle group) and 3 ≤ n ≤ 3 * t, and in particular every ε < 1 / 2.
Fixed-horizon single-hop round-tagged asynchronous protocol (5 * t < |P|) #
Round-tagged payload exchanged by asyncApproxProtocol.
Local state of a process running asyncApproxProtocol. Retaining only the first message per
(round, src) deduplicates Byzantine replays and equivocations, while buffering messages for all
current and future rounds st.round ≤ r < R handles out-of-order asynchronous arrival and ignores
stale messages from already-completed rounds.
Distinct senders recorded so far by st for round r.
Multiset of values recorded so far by st for round r.
Record val as the round-r value heard from src in st.
Output record of a local step of asyncApproxProtocol.
- nextState : AsyncApproxState P K
Updated local internal state.
Outgoing
(dest, msg)multiset emitted in this step.- delivered : Option K
Value delivered (
some v) upon completing roundR.
Initial local state of process p with input v in asyncApproxProtocol.
Bounded cascade advancing st through consecutive rounds while st.round < R and at least
Fintype.card P - t distinct senders are buffered for st.round. Accumulates outgoing broadcasts
for every intermediate round < R entered during the cascade.
Local transition handler for asyncApproxProtocol. When R = 0, the first received message
delivers st.est immediately; when R > 0, a fresh (msg.round, src) with
st.round ≤ msg.round < R is buffered and triggers asyncApproxAdvance (stale messages with
msg.round < st.round or after st.round = R are ignored).
Fixed-horizon single-hop asynchronous approximate agreement protocol (step after the
nonterminating Algorithm $A_0$ in Section 4, p. 509 of
Dolev, Lynch, Pinter, Stark and Weihl, using multisetMidTrim t
in place of f_{2t, t} and halting after a caller-chosen round horizon R rather than Algorithm
$A$'s round-0 reduce^{2t} spread estimation and (v, halted) tags): at start every process
broadcasts ⟨0, x p⟩; in each round r < R, upon collecting |P| - t distinct round-r senders,
a process updates its estimate via multisetMidTrim t, broadcasts ⟨r + 1, est'⟩ if r + 1 < R,
and delivers est' once round = R.
Private invariant & liveness proofs for asyncApproxProtocol #
Monotonicity and round-by-round liveness helpers along AdmissibleRun #
Public correctness theorems for asyncApproxProtocol #
Asynchronous fair-delivery termination: when F.card ≤ t and t < Fintype.card P (so in
particular whenever 5 * t < Fintype.card P), in every admissible (fair) execution of
asyncApproxProtocol P K t R every correct process i ∉ F eventually outputs a value.
Asynchronous convex-hull validity: when 5 * t < Fintype.card P, in every reachable state
s of asyncApproxProtocol P K t R, if all correct inputs lie in [lo, hi], then any value v
decided by a correct process i ∉ F lies in [lo, hi].
Asynchronous multi-round contraction: when 5 * t < Fintype.card P, in every reachable
state s of asyncApproxProtocol P K t R, if all correct inputs lie in [lo, hi], then any two
values v₁, v₂ decided by correct processes i, j ∉ F satisfy |v₁ - v₂| ≤ (hi - lo) / 2 ^ R.
Unit-interval, fixed-horizon step toward #7116 and #3261 (after Algorithm $A_0$ in Section 4
of Dolev, Lynch, Pinter, Stark and Weihl): when
5 * t < Fintype.card P and (1 : K) / 2 ^ R ≤ ε, asyncApproxProtocol P K t R achieves
SolvesUnitAsyncApproxAgreement t ε.
Unit-interval fixed-horizon asynchronous approximate Byzantine agreement (milestone step
toward #7116 and #3261 after Algorithm $A_0$ in Section 4, p. 509 of
Dolev, Lynch, Pinter, Stark and Weihl, rather than that paper's
unbounded-input, dynamically halting Algorithm $A$ / Theorem 2): over any Archimedean linearly
ordered field K, for every 0 < ε and Fintype.card P ≤ 1 ∨ 5 * t < Fintype.card P, there
exists a deterministic asynchronous protocol solving SolvesUnitAsyncApproxAgreement t ε
(AsyncProtocol.ownInput for |P| ≤ 1, and fixed-horizon asyncApproxProtocol P K t R with
(1 : K) / 2 ^ R ≤ ε for 5 * t < |P|), contrasting with exact consensus impossibility
(Cslib.FLP) even on [0, 1] inputs.