Documentation

CslibFrontier.Computability.Distributed.AsyncByzantine.Impossibility

The 3t + 1 impossibility bound for asynchronous Byzantine reliable broadcast #

No deterministic asynchronous protocol on n processes with 3 ≤ n ≤ 3t solves reliable broadcast over a nonempty value domain V (even a singleton such as Unit) against t static Byzantine faults. For the weaker notion of consistent broadcast (validity + consistency, without totality or noSpurious), the same bound holds over any nontrivial value domain V ([BT85]; [Bra87]). Unlike the synchronous bound of CslibFrontier.Computability.Distributed.Byzantine.NodeBound, these bounds need no fixed round count and no finiteness assumptions on the state or message types.

Notice the threshold at n = 2 differs from Byzantine agreement: with n = 2 processes, if the broadcaster dealer is faulty then only a single correct process remains, so consistency and totality hold vacuously (solvesReliableBroadcast_direct_of_card_le_two).

Two replay proofs #

Partition the process set P into three pairwise disjoint subsets A, B, C of cardinality at most t each, with dealer ∈ A, b₀ ∈ B, and c₀ ∈ C.

Main results #

References #

theorem Cslib.Distributed.AsyncByzantine.Protocol.replay_subset_mTr {P : Type u_1} {S : Type u_2} {M : Type u_3} {V : Type u_4} {dealer : P} [DecidableEq P] [DecidableEq M] (π : Protocol P S M V dealer) {A H F_src : Finset P} (hAH : Disjoint A H) {s₀ s₁ : State P S M V} {xl : List (Action P M)} (hmtr : (π.lts F_src).MTr s₀ xl s₁) (hhon : ∀ a ∈ xl, a.IsHonest) (hsrc_init : ∀ e ∈ s₀.msgs, e.src ∈ A ∨ e.src ∈ H) (hFsrc : ∀ p ∉ F_src, p ∈ A ∨ p ∈ H) {u₀ : State P S M V} (hproc₀ : ∀ p ∈ H, u₀.proc p = s₀.proc p) (hmsg₀ : ∀ (e : Envelope P M), e.src ∈ H → e.dest ∈ H → Multiset.count e s₀.msgs ≤ Multiset.count e u₀.msgs) :
∃ (yl : List (Action P M)) (u₁ : State P S M V), (π.lts A).MTr u₀ yl u₁ ∧ (∀ p ∈ H, u₁.proc p = s₁.proc p) ∧ (∀ p ∉ H, u₁.proc p = u₀.proc p) ∧ ∀ (e : Envelope P M), e.src ∉ H → Multiset.count e u₁.msgs = Multiset.count e u₀.msgs

Group replay lemma. Given pairwise-relevant subsets A, H : Finset P with Disjoint A H, and a Byzantine-free finite execution (π.lts F_src).MTr s₀ xl s₁ whose active envelopes all originate in A ∪ H, the H-destined steps of xl can be replayed under π.lts A from any state u₀ that matches s₀ on H's local states and has at least s₀'s H → H message counts. All non-H local states and all non-H-sourced message counts remain untouched.

theorem Cslib.Distributed.AsyncByzantine.Protocol.not_consistentBroadcast_of_partition {P : Type u_1} {S : Type u_2} {M : Type u_3} {V : Type u_4} {dealer : P} [Fintype P] [DecidableEq P] [DecidableEq M] (π : Protocol P S M V dealer) {t : ℕ} (A B C : Finset P) (hAB : Disjoint A B) (hAC : Disjoint A C) (hBC : Disjoint B C) (hcover : ∀ (p : P), p ∈ A ∨ p ∈ B ∨ p ∈ C) (hA : A.card ≤ t) (hB : B.card ≤ t) (hC : C.card ≤ t) (hdA : dealer ∈ A) {b₀ c₀ : P} (hb₀ : b₀ ∈ B) (hc₀ : c₀ ∈ C) {v₀ v₁ : V} (hne : v₀ ≠ v₁) (hval : ∀ (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) (hcon : ∀ (F : Finset P), F.card ≤ t → ∀ (input : Option V) (s : State P S M V), π.Reachable F input s → ∀ i ∉ F, ∀ j ∉ F, ∀ (w₁ w₂ : V), s.ProcDecided i w₁ → s.ProcDecided j w₂ → w₁ = w₂) :

Split-brain impossibility for consistent broadcast ([BT85]; [Bra87]). If the processes can be partitioned into three pairwise disjoint groups A, B, C each of size at most t, with dealer ∈ A, b₀ ∈ B, c₀ ∈ C, then no protocol satisfies both validity and consistency over a value domain containing two distinct values v₀ ≠ v₁. Totality and noSpurious are not needed.

theorem Cslib.Distributed.AsyncByzantine.Protocol.not_reliableBroadcast_of_partition {P : Type u_1} {S : Type u_2} {M : Type u_3} {V : Type u_4} {dealer : P} [Fintype P] [DecidableEq P] [DecidableEq M] (π : Protocol P S M V dealer) {t : ℕ} (A B C : Finset P) (hAB : Disjoint A B) (hAC : Disjoint A C) (hBC : Disjoint B C) (hcover : ∀ (p : P), p ∈ A ∨ p ∈ B ∨ p ∈ C) (hA : A.card ≤ t) (hB : B.card ≤ t) (hC : C.card ≤ t) (hdA : dealer ∈ A) {b₀ c₀ : P} (hb₀ : b₀ ∈ B) (hc₀ : c₀ ∈ C) (v₀ : V) (hval : ∀ (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) (htot : ∀ (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) (hnoSp : ∀ (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) :

Single-value impossibility for full reliable broadcast (even for a singleton domain such as V = Unit). Under any 3-partition A, B, C of sizes at most t with dealer ∈ A, b₀ ∈ B, and c₀ ∈ C, no protocol satisfies validity, totality, and noSpurious simultaneously (consistency is not needed, nor are two distinct values).

theorem Cslib.Distributed.AsyncByzantine.Protocol.not_solvesReliableBroadcast {P : Type u_1} {S : Type u_2} {M : Type u_3} {V : Type u_4} {dealer : P} [Fintype P] [DecidableEq P] [DecidableEq M] (π : Protocol P S M V dealer) [Nonempty V] {t : ℕ} (h3 : 3 ≤ Fintype.card P) (hle : Fintype.card P ≤ 3 * t) :

No asynchronous Byzantine reliable broadcast for 3 ≤ n ≤ 3t ([BT85]; [Bra87]). For any nonempty value domain V (even a singleton such as Unit), no deterministic asynchronous protocol on n processes with 3 ≤ n ≤ 3t solves reliable broadcast against t Byzantine faults.

theorem Cslib.Distributed.AsyncByzantine.Protocol.not_solvesReliableBroadcast_three {S : Type u_5} {M : Type u_6} {V : Type u_7} [DecidableEq M] [Nonempty V] (dealer : Fin 3) (π : Protocol (Fin 3) S M V dealer) :

Three-process impossibility: on Fin 3, no asynchronous deterministic protocol over a nonempty value domain V solves reliable broadcast against a single Byzantine fault.