Documentation

CslibFrontier.Computability.Distributed.LocalGraph.LubyMIS

Luby's Randomized Maximal Independent Set Protocols in the LOCAL Model #

Randomized synchronous LOCAL maximal independent set (MIS) protocols on finite simple graphs G : SimpleGraph V (steps towards #7505 and #3270, after Luby, Alon, Babai and Itai, and Wattenhofer Chapter 7).

Both variants reuse Cslib.Algorithms.Lean.LubyMIS.State, liveGraph, liveEdges, init, and Invariant directly instead of duplicating the MIS state representation:

  1. Variant A — Two-round synchronous LOCAL random-priority Luby (priorityProtocol, localPriorityMIS): implements each phase of Cslib.Algorithms.Lean.LubyMIS as two synchronous broadcast LOCAL rounds (even rounds exchange (live, rank) to identify local minima; odd rounds broadcast joining to update chosen and deactivate joining nodes and their neighbors). We prove exact 2 * k-round state simulation (priorityProtocol_state_two_mul) and exact PMF law equality ProbComp.eval (localPriorityRun G k) = ProbComp.eval (LubyMIS.run G k) (eval_localPriorityRun) and ProbComp.eval (localPriorityMIS G k) = ProbComp.eval (LubyMIS.lubyMIS G k) (eval_localPriorityMIS), transporting unconditional independence, 2 |V|-round Las Vegas MIS termination, single-phase half-edge removal, and 2 ((c + 2) ⌈log₂ n⌉ + 1)-round 1 - n ^ (-c) high-probability termination to LOCAL.
  2. Variant B — Degree-weighted coin-flip Luby (liveDegreeProtocol, coinResolveProtocol, localCoinPhase, localCoinRun, localCoinLubyMIS): following Algorithm 7.6 ("Fast MIS") of Wattenhofer, §7.2, pp. 73–76 (presenting the Monte Carlo algorithm of Luby, with the good-edge orientation argument also in Alon, Babai and Itai, Lemma 4.4, p. 572), each live vertex v learns its live degree d_H(v) in 1 LOCAL round (liveDegreeProtocol), independently flips true with probability 1 / (2 d_H(v)) when d_H(v) ≥ 1 and 1 when d_H(v) = 0 (localMarkProb), and resolves conflicts and neighbor deletion in 2 LOCAL rounds (coinResolveProtocol), breaking degree ties by injective node identifiers. (By contrast, Procedure IN(H) of [AlonBabaiItai1986], §3, p. 570, marks vertices with probability 1 / d_H(v) and resolves marked edges via randomized d_H(u) / (d_H(u) + d_H(v)) erasure.) We prove exact end-to-end program equality localCoinPhase = coinPhase, localCoinRun = coinRun, and localCoinLubyMIS = coinLubyMIS, together with:

Pairwise-independent PRAM derandomization ([Luby1986]), Alon–Babai–Itai's 1 / d_H(v) + randomized edge-erasure variant ([AlonBabaiItai1986]), and expected stopping time (O(log n) expected phases via stopping times) remain open under #7505 and #3270.

Main definitions #

Main results #

References #

Variant A: Two-round-per-phase synchronous LOCAL random-priority Luby #

Per-node state for the two-round-per-phase LOCAL implementation of random-priority Luby.

  • ranks : ℕ → ℕ

    Per-phase priority values held locally by this node.

  • chosen : Bool

    Whether this node has joined the independent set.

  • live : Bool

    Whether this node remains live (neither chosen nor adjacent to a chosen node).

  • joining : Bool

    Whether this node won the priority comparison in the first round of the current phase.

One-hop broadcast message for priorityProtocol.

  • live : Bool

    Sender's live flag at the start of the round.

  • rank : ℕ

    Sender's priority for the current phase (r / 2).

  • joining : Bool

    Sender's joining flag computed in the even round of the current phase.

Deterministic two-round-per-phase BroadcastProtocol executing random-priority Luby from locally supplied per-phase priorities ranks : ℕ → ℕ.

  • In round 2 p, every node broadcasts (live, ranks p, false) and sets joining = true iff it is live and strictly precedes every live neighbor's priority in phase p.
  • In round 2 p + 1, every node broadcasts joining, adds itself to chosen if joining = true, and deactivates itself (live := false) if it or any neighbor joined.

Iterated centralized LubyMIS.step along an arbitrary sequence of rankings σs.

theorem Cslib.Distributed.LocalGraph.priorityProtocol_state_two_mul {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (σs : ℕ → Algorithms.Lean.LubyMIS.Ranking V) (p : ℕ) (u : V) :
((priorityProtocol.state G (fun (v : V) (q : ℕ) => ↑((σs q) v)) (2 * p) u).chosen = true ↔ u ∈ (foldPriorityStep G σs p).chosen) ∧ ((priorityProtocol.state G (fun (v : V) (q : ℕ) => ↑((σs q) v)) (2 * p) u).live = true ↔ u ∈ (foldPriorityStep G σs p).live)

After 2 * p synchronous LOCAL rounds of priorityProtocol on per-phase rankings σs, the distributed (chosen, live) flags match foldPriorityStep G σs p at every vertex.

Randomized 2 * k-round LOCAL execution of random-priority Luby, returning the global (chosen, live) LubyMIS.State V read off from priorityProtocol.state at round 2 * k.

Randomized 2 * k-round LOCAL execution of random-priority Luby, returning the set of vertices whose priorityProtocol output after 2 * k synchronous rounds is true.

Running priorityProtocol for 2 * k synchronous LOCAL rounds under fresh per-phase rankings has the exact same state PMF as LubyMIS.run G k.

Running priorityProtocol for 2 * k synchronous LOCAL rounds under fresh per-phase rankings has the exact same output PMF as LubyMIS.lubyMIS G k.

Step towards #7505 and #3270 (not the cited endpoint, after Luby and Lemma 7.14 of Wattenhofer, §7.3, p. 78): after 2 * k synchronous LOCAL rounds of localPriorityRun, the expected number of live edges is at most |E(G)| / 2 ^ k.

Step towards #7505 and #3270 (not the cited endpoint, after Luby and Wattenhofer, §7.3): after 2 * k synchronous LOCAL rounds, every support outcome of localPriorityMIS G k is an independent set of G.

Step towards #7505 and #3270 (not the cited endpoint, after Luby and Wattenhofer, §7.3): after 2 * k synchronous LOCAL rounds with Fintype.card V ≤ k, every support outcome of localPriorityMIS G k is a maximal independent set of G.

Step towards #7505 and #3270 (not the cited endpoint, after Luby and Corollary 7.18 of Wattenhofer, §7.3, p. 79): after 2 * ((c + 2) ⌈log₂ |V|⌉ + 1) synchronous LOCAL rounds, localPriorityMIS fails to output a maximal independent set with probability at most |V| ^ (-c).

Variant B: Degree-weighted coin-flip Luby (1 / (2 d(v)) marking) #

Priority comparison of Wattenhofer, §7.2, Algorithm 7.6: w outranks u when w has strictly larger live degree, or equal live degree and strictly larger identifier.

Instances For

    Degree-weighted marking probability of Algorithm 7.6 (Wattenhofer, §7.2): 0 for non-live vertices, 1 for isolated live vertices (d_H(v) = 0), and 1 / (2 d_H(v)) for live vertices with d_H(v) ≥ 1.

    Sample independent degree-weighted Bernoulli marks across all vertices via ProbComp.sampleEach and ProbComp.bernoulliRat.

    Live vertices that marked themselves and have no marked live neighbor of higher (d_H, uid) priority.

    Deterministic state update of one degree-weighted Luby phase for mark vector m.

    One randomized phase of degree-weighted Luby ([Wattenhofer2016], Algorithm 7.6).

    Iterate k randomized phases of degree-weighted Luby from LubyMIS.init.

    noncomputable def Cslib.Distributed.LocalGraph.coinLubyMIS {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (uid : V → ℕ) (k : ℕ) :

    Output independent set chosen after k phases of degree-weighted Luby.

    theorem Cslib.Distributed.LocalGraph.mem_coinJoiners {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] {s : Algorithms.Lean.LubyMIS.State V} {uid : V → ℕ} {m : V → Bool} {v : V} :
    v ∈ coinJoiners G s uid m ↔ v ∈ s.live ∧ m v = true ∧ ∀ w ∈ s.live, G.Adj v w → higherPriority G s uid v w → m w = false
    theorem Cslib.Distributed.LocalGraph.coinStep_chosen {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (s : Algorithms.Lean.LubyMIS.State V) (uid : V → ℕ) (m : V → Bool) :
    (coinStep G s uid m).chosen = s.chosen ∪ coinJoiners G s uid m
    theorem Cslib.Distributed.LocalGraph.mem_coinStep_live {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] {s : Algorithms.Lean.LubyMIS.State V} {uid : V → ℕ} {m : V → Bool} {v : V} :
    v ∈ (coinStep G s uid m).live ↔ v ∈ s.live ∧ v ∉ coinJoiners G s uid m ∧ ∀ u ∈ coinJoiners G s uid m, ¬G.Adj u v

    Three-round synchronous LOCAL realization of one degree-weighted phase #

    One-round BroadcastProtocol in which every node broadcasts its live bit and counts its live neighbors (d_H(u)).

    In 1 synchronous broadcast round, liveDegreeProtocol computes (LubyMIS.liveGraph G s.live).degree u at every vertex u.

    Per-node input to the 2-round conflict-resolution and deactivation BroadcastProtocol.

    • uid : ℕ

      Node identifier for tie-breaking.

    • chosen : Bool

      Whether the node was already chosen before this phase.

    • live : Bool

      Whether the node is live at the start of this phase.

    • liveDeg : ℕ

      Live degree d_H(u) learned from liveDegreeProtocol.

    • marked : Bool

      Local degree-weighted coin flip m u.

    Per-node state for coinResolveProtocol.

    • uid : ℕ

      Node identifier.

    • chosen : Bool

      Current chosen bit.

    • live : Bool

      Current live bit.

    • liveDeg : ℕ

      Live degree d_H(u) at the start of the phase.

    • marked : Bool

      Local mark bit m u.

    • joining : Bool

      Whether this node won Step 2 (u ∈ coinJoiners).

    One-hop broadcast message for coinResolveProtocol.

    Per-node output (chosen, live) after the 2-round conflict-resolution protocol.

    Two-round BroadcastProtocol executing Steps 2–3 of Algorithm 7.6: Round 0 exchanges (uid, live, liveDeg, marked) to determine joining; Round 1 exchanges joining to update (chosen, live).

    theorem Cslib.Distributed.LocalGraph.coinResolveProtocol_run {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (s : Algorithms.Lean.LubyMIS.State V) (uid : V → ℕ) (m : V → Bool) (u : V) :
    have inp := fun (v : V) => { uid := uid v, chosen := decide (v ∈ s.chosen), live := decide (v ∈ s.live), liveDeg := liveDegreeProtocol.run G (fun (w : V) => decide (w ∈ s.live)) 1 v, marked := m v }; ((coinResolveProtocol.run G inp 2 u).chosen = true ↔ u ∈ (coinStep G s uid m).chosen) ∧ ((coinResolveProtocol.run G inp 2 u).live = true ↔ u ∈ (coinStep G s uid m).live)

    Running coinResolveProtocol for 2 synchronous LOCAL rounds from the locally computed live degrees and coin flips m produces the exact (chosen, live) state coinStep G s uid m.

    Local marking probability computed by a node solely from its own live bit and its locally discovered liveDeg (0 if non-live, 1 if liveDeg = 0, and 1 / (2 * liveDeg) otherwise).

    One 3-round synchronous LOCAL phase of degree-weighted Luby:

    1. 1 broadcast round (liveDegreeProtocol) in which each node learns liveDeg;
    2. independent local Bernoulli coin flips with probability localMarkProb;
    3. 2 broadcast rounds (coinResolveProtocol) updating (chosen, live).

    Iterate k synchronous 3-round LOCAL phases (3 * k communication rounds in total) of degree-weighted Luby from LubyMIS.init.

    noncomputable def Cslib.Distributed.LocalGraph.localCoinLubyMIS {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (uid : V → ℕ) (k : ℕ) :

    Output independent set chosen after k synchronous 3-round LOCAL phases (3 * k communication rounds) of degree-weighted Luby.

    Each 3-round LOCAL phase localCoinPhase G uid s equals coinPhase G uid s as a ProbComp program.

    k synchronous 3-round LOCAL phases localCoinRun G uid k equal coinRun G uid k.

    theorem Cslib.Distributed.LocalGraph.eval_localCoinRun {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (uid : V → ℕ) (k : ℕ) :
    (localCoinRun G uid k).eval = (coinRun G uid k).eval

    Law equality between localCoinRun (3 * k synchronous LOCAL rounds) and coinRun.

    Law equality between localCoinLubyMIS (3 * k synchronous LOCAL rounds) and coinLubyMIS.

    Unconditional Invariant preservation and positive single-phase progress #

    For injective uid, coinStep preserves LubyMIS.Invariant G under every mark vector m : V → Bool.

    Every reachable state of coinRun satisfies LubyMIS.Invariant G.

    Step towards #7505 and #3270 (not the cited endpoint, after Luby and Algorithm 7.6 of Wattenhofer, §7.2, p. 73): after any number of phases k, every support outcome of coinLubyMIS G uid k is an independent set of G.

    Step towards #7505 and #3270 (not the cited endpoint, after Luby and Algorithm 7.6 of Wattenhofer, §7.2, p. 73): after k synchronous 3-round LOCAL phases (3 * k rounds), every support outcome of localCoinLubyMIS G uid k is an independent set of G.

    Product-coin independence helpers and single-phase progress #

    Step towards #7505 and #3270 (not the cited endpoint, after Luby and Algorithm 7.6 of Wattenhofer, §7.2, p. 73): whenever s.live is nonempty, a single phase of coinPhase G uid s strictly reduces s.live.card with probability at least 1 / (2 |V|) (since the highest-(d_H, uid) live vertex joins whenever it marks itself).

    Expected edge removal (≥ |E(H)| / 72, after [Wattenhofer2016] §7.2) #

    Step towards #7505 and #3270 (not the cited endpoint, after Lemma 7.7 of Wattenhofer, §7.2, pp. 73–74): every live vertex v ∈ s.live with live degree d_H(v) ≥ 1 joins coinJoiners with probability at least 1 / (4 d_H(v)).

    A vertex v is good in state s (Wattenhofer, §7.2, Lemma 7.8) if ∑_{w ∈ N_H(v)} 1 / (2 d_H(w)) ≥ 1 / 6.

    Step towards #7505 and #3270 (not the cited endpoint, after Lemma 7.8 of Wattenhofer, §7.2, pp. 74–75, presenting Luby): every good vertex v is removed from the live set (v ∉ (coinStep G s uid m).live) in one phase with probability at least 1 / 36.

    Step towards #7505 and #3270 (not the cited endpoint, after Theorem 7.11 of Wattenhofer, §7.2, pp. 75–76, presenting Luby): one phase of degree-weighted coin-flip Luby with injective identifier tie-breaking leaves at most 71 / 72 of the live edges in expectation (72 · E[liveEdges'] ≤ 71 · liveEdges).

    Multi-phase geometric contraction and O(log n)-phase w.h.p. MIS convergence #

    theorem Cslib.Distributed.LocalGraph.coinRun_succ {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (uid : V → ℕ) (k : ℕ) :
    coinRun G uid (k + 1) = coinRun G uid k >>= coinPhase G uid

    Step towards #7505 and #3270 (not the cited endpoint, after Theorem 7.11 of Wattenhofer, §7.2, pp. 75–76, presenting Luby): after k phases of coinRun, (72 ^ k) · E[liveEdges_k] ≤ (71 ^ k) · |E(G)|.

    Step towards #7505 and #3270 (not the cited endpoint, after Theorem 7.11 of Wattenhofer, §7.2, pp. 75–76, presenting Luby): after k + 1 phases of coinRun, some vertex remains live with probability at most (71 / 72) ^ k · |E(G)|.

    Step towards #7505 and #3270 (not the cited endpoint, after Theorem 7.11 of Wattenhofer, §7.2, pp. 75–76, presenting Luby): since 2 · 71 ^ 50 ≤ 72 ^ 50, every 50 phases at least halve the expected live edges; after 50 * (c + 2) * ⌈log₂ |V|⌉ + 1 phases, coinLubyMIS fails to output a maximal independent set with probability at most |V| ^ (-c).

    Step towards #7505 and #3270 (not the cited endpoint, after Theorem 7.11 of Wattenhofer, §7.2, pp. 75–76, presenting Luby): after 50 * (c + 2) * ⌈log₂ |V|⌉ + 1 synchronous 3-round LOCAL phases (3 * (50 * (c + 2) * ⌈log₂ |V|⌉ + 1) communication rounds), localCoinLubyMIS fails to output a maximal independent set with probability at most |V| ^ (-c).