Documentation

CslibFrontier.Computability.Distributed.ByzantineGraph.Connectivity

Vertex-separator impossibility and synchronous Boolean consensus on graphs #

For deterministic synchronous protocols on an undirected communication graph G : SimpleGraph P with a uniform fixed decision round R, this module proves the 2t vertex-separator lower bound of Fischer, Lynch and Merritt (Theorem 1, §3.2, pp. 62–63) for Boolean consensus (GraphProtocol.not_solvesByzantineAgreement_of_isVertexSeparator), and establishes the synchronous Boolean consensus adaptation of the |P| > 3t and (2t + 1)-vertex-connectivity characterization (exists_solvesByzantineAgreement_of_le_iff, exists_solvesByzantineAgreement_iff):

Distinction from Dolev's broadcast problem. Dolev (§1 Agreement B, pp. 15–16, and §5 Corollary 10, p. 29) characterizes designated-sender Byzantine broadcast, in which a single transmitter sends a value to all receivers and validity requires agreeing on that transmitter's value whenever it is reliable (together with Crusader Agreement, Agreement A, §4 Theorem 7, p. 26). By contrast, GraphProtocol.SolvesByzantineAgreement gives every process a Boolean input and requires validity only when all correct processes share the same input (the Boolean consensus formulation of Fischer, Lynch and Merritt, §3, p. 61). Dolev's designated-sender broadcast and Crusader agreement models are not formalized here.

Impossibility on graphs of connectivity at most 2t #

Suppose a vertex set C with |C| ≤ 2t separates u from v in G (G.IsVertexSeparator u v C). Split C into two subsets C₁, C₂ of size at most t each, let A be the vertices reachable from u avoiding C, and let B = (A ∪ C)ᶜ (which contains v and has no G-edges to A). Take the two-sheeted covering network P × Bool, where (p, b) runs process p on input b and only edges between B and C₂ cross between sheets:

  1. With C₂ faulty and all honest inputs false (sheet false), validity forces (u, false) to decide false.
  2. With C₂ faulty and all honest inputs true (sheet true), validity forces (v, true) to decide true.
  3. With C₁ faulty, placing A ∪ C₂ in sheet false and B in sheet true respects every G-edge between correct processes: no edge joins A to B, while edges between B and C₂ are the cross-wired edges of the cover. Both u and v are correct, contradicting agreement.

Combining this separator bound with the complete-graph node bound (2 ≤ |P| ≤ 3t, transferred via GraphProtocol.not_solvesByzantineAgreement) excludes every graph on |P| ≥ 2 processes that is not (2t + 1)-vertex-connected (GraphProtocol.not_solvesByzantineAgreement_of_not_isVertexConnected), including disconnected graphs at t = 0 and complete graphs of order 2 ≤ |P| ≤ 2t + 1.

Sufficiency via internally vertex-disjoint path purification #

Given a routing table routes : DisjointPaths G (2 * t + 1) of 2t + 1 simple paths with pairwise disjoint internal vertices between every pair of distinct processes, purifiedOM t routes simulates t + 1 virtual rounds of Cslib.Distributed.Byzantine.om in epochs of epochLen P = max 1 (|P| - 1) physical rounds. Within each epoch, processes forward their simulated OM(t) trees along simple walks of length at most epochLen P; at the end of the epoch, each recipient purifies incoming trees from every sender u by pointwise strict majority across its 2t + 1 internally disjoint paths from u. Whenever both endpoints are correct, at most |F| ≤ t paths meet F internally, so at least t + 1 paths deliver u's true tree entry. The resulting frozen tree is faithful in the sense of Byzantine.omResolve_eq_of_notMem and Byzantine.omResolve_eq_omResolve, solving Byzantine agreement whenever 3t < |P|. As in Byzantine.om, processes transmit full simulated trees each round (Msg is unbounded, as the model allows). Menger's global vertex-connectivity theorem (isVertexConnected_iff_forall_exists_injective_internallyDisjoint) supplies DisjointPaths G (2 * t + 1) from G.IsVertexConnected (2 * t + 1), completing the exact equivalence exists_solvesByzantineAgreement_iff.

Main definitions #

Main results #

References #

Connectivity impossibility via two-sheeted cross-wired coverings #

theorem Cslib.Distributed.ByzantineGraph.GraphProtocol.not_solvesByzantineAgreement_of_isVertexSeparator {P : Type u_1} {S : Type u_2} {M : Type u_3} [DecidableEq P] {G : SimpleGraph P} (π : GraphProtocol G S M) {t R : ℕ} {u v : P} {C : Finset P} (hsep : G.IsVertexSeparator u v C) (hcard : C.card ≤ 2 * t) :

Vertex-separator impossibility bound for synchronous Boolean consensus (Fischer, Lynch and Merritt, Theorem 1, §3, p. 61; connectivity proof in §3.2, pp. 62–63): in the deterministic synchronous fixed-decision-round model on an undirected graph G, if C separates u from v in G and |C| ≤ 2t, then no protocol on G solves Boolean Byzantine agreement against at most t static faults in any fixed round count R.

theorem Cslib.Distributed.ByzantineGraph.GraphProtocol.not_solvesByzantineAgreement_of_vertexCut {P : Type u_1} {S : Type u_2} {M : Type u_3} [DecidableEq P] {G : SimpleGraph P} (π : GraphProtocol G S M) [Fintype P] {t R : ℕ} {A B C : Finset P} (hA : A.Nonempty) (hB : B.Nonempty) (hAB : Disjoint A B) (hAC : Disjoint A C) (hBC : Disjoint B C) (huniv : A ∪ B ∪ C = Finset.univ) (hab : ∀ a ∈ A, ∀ b ∈ B, ¬G.Adj a b) (hcard : C.card ≤ 2 * t) :

Explicit (A, B, C) vertex-partition specialization of not_solvesByzantineAgreement_of_isVertexSeparator (matching the disconnection of G into nonempty A and B by a set C of at most 2t vertices in Fischer, Lynch and Merritt, §3.2, p. 63): if P partitions into nonempty sets A and B and a separator C (possibly C = ∅, including at t = 0 when G is disconnected) with |C| ≤ 2t and no edge of G connecting A and B, then no protocol on G solves synchronous fixed-round Boolean Byzantine agreement against t faults.

Global (2t + 1)-vertex-connectivity necessity for synchronous fixed-round Boolean consensus on |P| ≥ 2 processes, combining the separator lower bound not_solvesByzantineAgreement_of_isVertexSeparator (Fischer, Lynch and Merritt, Theorem 1, §3.2, pp. 62–63) when G admits a separator of size at most 2t with the node bound not_solvesByzantineAgreement (§3.1, pp. 61–62) when 2 ≤ |P| ≤ 2t + 1.

Purified OM(t) along 2t + 1 internally vertex-disjoint paths #

A routing system of k simple paths in G with pairwise disjoint internal vertices between every ordered pair of distinct vertices. Because SimpleGraph.InternallyDisjoint constrains only vertices strictly outside {u, v}, non-adjacent pairs have k distinct paths (SimpleGraph.injective_of_internallyDisjoint_of_not_adj), whereas adjacent pairs u — v may repeat the direct edge [u, v] (which has no internal vertices to corrupt, and why k < Fintype.card P appears explicitly alongside Nonempty (DisjointPaths G k) in isVertexConnected_iff_card_gt_and_nonempty_disjointPaths).

  • path (u v : P) : u ≠ v → Fin k → G.Walk u v

    path u v huv m: the m-th path from u to v.

  • isPath (u v : P) (huv : u ≠ v) (m : Fin k) : (self.path u v huv m).IsPath

    Every routed walk is a simple path.

  • internallyDisjoint (u v : P) (huv : u ≠ v) : SimpleGraph.InternallyDisjoint (self.path u v huv)

    For each distinct pair u ≠ v, the k paths share no internal vertices.

Number of physical synchronous rounds in one multi-hop forwarding epoch on P: max 1 (Fintype.card P - 1), which is positive and bounds the length of every simple path in G.

Local state of a process in purifiedOM: its simulated complete-graph OM(t) relay tree omTree, paired with the current epoch's multi-hop walk-forwarding buffer buf.

Synchronous OM(t) simulated on G along 2t + 1 pairwise internally vertex-disjoint paths ([Dol82]; [LSP82]).

Each virtual round v of Cslib.Distributed.Byzantine.om runs across an epoch of L = epochLen P physical rounds:

  • During steps 0, …, L - 1 of epoch v, processes forward tree snapshots along simple walks of G, writing j :: w at step w.length from neighbour j.
  • At the final physical step (step + 1 = L) of epoch v, each process i reconstructs the tree of every other process u ≠ i by pointwise strictMajorityOn across the 2t + 1 paths routes.path i u, and updates the depth-(v + 1) entries u :: τ (τ.length = v) of omTree.
  • The decision is the strict majority over all commanders c of Byzantine.omResolve i s.omTree t [c].
theorem Cslib.Distributed.ByzantineGraph.solvesByzantineAgreement_purifiedOM {P : Type u_1} [Fintype P] [DecidableEq P] {G : SimpleGraph P} [DecidableRel G.Adj] (t : ℕ) (routes : DisjointPaths G (2 * t + 1)) (hn : 3 * t < Fintype.card P) {R : ℕ} (hR : (t + 1) * epochLen P ≤ R) :

Synchronous Boolean consensus via disjoint-path oral messages (consensus adaptation combining path purification after Dolev, §2 Theorem 1, p. 19, with recursive oral messages Byzantine.om of Lamport, Shostak and Pease, §3 Theorem 1, p. 390; not Dolev's designated-sender broadcast theorem, §5 Corollary 10, p. 29): given a routing table routes : DisjointPaths G (2 * t + 1), purifiedOM t routes solves synchronous Boolean Byzantine agreement on G against t faults among |P| > 3t processes in any R ≥ (t + 1) * epochLen P rounds.

Menger bridge and synchronous Boolean consensus characterization #

Bridge between SimpleGraph.IsVertexConnected k and DisjointPaths G k via Menger's global vertex-connectivity theorem (isVertexConnected_iff_forall_exists_injective_internallyDisjoint; [Die25], Theorem 3.3.6 (i); [Men27]): a finite simple graph G is k-vertex-connected if and only if k < |P| and DisjointPaths G k is nonempty.

Synchronous Boolean consensus characterization at fixed round bound (Boolean consensus adaptation on SimpleGraph P, rather than Dolev's designated-sender broadcast characterization in Dolev, §1 pp. 15–16 and §5 Corollary 10, p. 29). For any R ≥ (t + 1) * epochLen P, some protocol on G solves synchronous Boolean Byzantine agreement against t faults in R rounds if and only if |P| ≤ 1 or both 3t < |P| and G is (2t + 1)-vertex-connected: GraphProtocol.ownInput handles |P| ≤ 1; purifiedOM handles 3t < |P| on (2t + 1)-connected graphs (adapting path purification after Dolev, §2 Theorem 1, p. 19, with Byzantine.om of [LSP82] and Menger's theorem [Die25]); and the node and separator bounds exclude 2 ≤ |P| ≤ 3t and graphs of connectivity at most 2t ([FLM85], Theorem 1, §3.1–3.2, pp. 61–63; [PSL80]). Whether fewer than (t + 1) * epochLen P rounds suffice on a specific graph is not addressed here.

Synchronous Boolean consensus characterization on finite simple graphs (Boolean consensus adaptation on SimpleGraph P, rather than Dolev's designated-sender broadcast characterization in Dolev, §1 pp. 15–16 and §5 Corollary 10, p. 29). Some protocol on G solves synchronous Boolean Byzantine agreement against t faults in some fixed round count R if and only if |P| ≤ 1 or both 3t < |P| and G is (2t + 1)-vertex-connected: GraphProtocol.ownInput handles |P| ≤ 1; purifiedOM handles 3t < |P| on (2t + 1)-connected graphs (after Dolev, §2 Theorem 1, p. 19; [LSP82]; [Die25]); and the node and separator bounds exclude 2 ≤ |P| ≤ 3t and graphs of connectivity at most 2t ([FLM85], Theorem 1, §3.1–3.2, pp. 61–63; [PSL80]).