Documentation

CslibFrontier.Computability.Distributed.LocalGraph.Basic

General-Graph Synchronous LOCAL Model and Covering-Map Impossibility #

Deterministic synchronous message-passing protocols on general locally finite simple graphs G : SimpleGraph V in both the broadcast/multiset LOCAL variant (BroadcastProtocol) and the port-numbered LOCAL (PN + local inputs) variant (PortNumbering, PortProtocol), together with covering-map fiber invariance and anonymous symmetry-breaking impossibility steps towards #7505 (after Angluin and Hirvonen and Suomela, Chapters 3, 4, and 7).

Model scope and relationship to [Angluin1980b]: In Hirvonen and Suomela (§3.2–3.3, pp. 39–45; §7.1–7.2, Theorem 7.1, pp. 115–119), port-numbered networks allow self-loops and parallel edges. Here protocols execute directly over Mathlib's loopless SimpleGraph V ([G.LocallyFinite]), while asynchronous processor-network schedules from [Angluin1980b] remain open under #7505. Every BroadcastProtocol embeds into PortProtocol with identical round-by-round states (BroadcastProtocol.toPortProtocol_state), and every PortCovering induces a neighborhood-bijective GraphCovering (PortCovering.toGraphCovering).

Main definitions #

Main results #

References #

Broadcast LOCAL protocols on SimpleGraph #

structure Cslib.Distributed.LocalGraph.BroadcastProtocol (I : Type u_1) (S : Type u_2) (M : Type u_3) (O : Type u_4) :
Type (max (max (max u_1 u_2) u_3) u_4)

A deterministic synchronous broadcast LOCAL protocol on simple graphs.

Each node initializes its local state from its input via init. In round r, every node in state s broadcasts send r s to all of its neighbors and updates its state via recv r s msgs, where msgs is the multiset of messages received from its neighbors. After the final round each node outputs output s.

  • init : I → S

    Initial local state from a node's input.

  • send : ℕ → S → M

    Message broadcast to all neighbors in round r.

  • recv : ℕ → S → Multiset M → S

    State transition after round r from own state and multiset of neighbor messages.

  • output : S → O

    Output computed from a local state.

def Cslib.Distributed.LocalGraph.BroadcastProtocol.fullInfo {I : Type u_1} {S : Type u_2} {O : Type u_3} (init : I → S) (step : ℕ → S → Multiset S → S) (output : S → O) :

A full-information (state-exchange) broadcast LOCAL protocol in which nodes broadcast their entire local state S in every round.

def Cslib.Distributed.LocalGraph.BroadcastProtocol.state {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) (G : SimpleGraph V) [G.LocallyFinite] (x : V → I) :
ℕ → V → S

Local state of node u after r synchronous rounds of P on graph G with inputs x.

def Cslib.Distributed.LocalGraph.BroadcastProtocol.run {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) (G : SimpleGraph V) [G.LocallyFinite] (x : V → I) (r : ℕ) (u : V) :
O

Output of node u after r synchronous rounds of P on graph G with inputs x.

@[simp]
theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.state_zero {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) (G : SimpleGraph V) [G.LocallyFinite] (x : V → I) (u : V) :
P.state G x 0 u = P.init (x u)
theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.state_succ {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) (G : SimpleGraph V) [G.LocallyFinite] (x : V → I) (r : ℕ) (u : V) :
P.state G x (r + 1) u = P.recv r (P.state G x r u) (Multiset.map (fun (w : V) => P.send r (P.state G x r w)) (G.neighborFinset u).val)
def Cslib.Distributed.LocalGraph.BroadcastProtocol.mapOutput {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) {O' : Type u_6} (g : O → O') :

Post-process the output of a BroadcastProtocol by g.

@[simp]
theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.mapOutput_state {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) (G : SimpleGraph V) [G.LocallyFinite] {O' : Type u_6} (g : O → O') (x : V → I) (r : ℕ) :
(P.mapOutput g).state G x r = P.state G x r
@[simp]
theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.mapOutput_run {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) (G : SimpleGraph V) [G.LocallyFinite] {O' : Type u_6} (g : O → O') (x : V → I) (r : ℕ) (u : V) :
(P.mapOutput g).run G x r u = g (P.run G x r u)
def Cslib.Distributed.LocalGraph.BroadcastProtocol.comapInput {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) {I' : Type u_6} (f : I' → I) :

Pre-process the input of a BroadcastProtocol by f.

@[simp]
theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.comapInput_state {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) (G : SimpleGraph V) [G.LocallyFinite] {I' : Type u_6} (f : I' → I) (x : V → I') (r : ℕ) :
(P.comapInput f).state G x r = P.state G (f ∘ x) r
@[simp]
theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.comapInput_run {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) (G : SimpleGraph V) [G.LocallyFinite] {I' : Type u_6} (f : I' → I) (x : V → I') (r : ℕ) (u : V) :
(P.comapInput f).run G x r u = P.run G (f ∘ x) r u
def Cslib.Distributed.LocalGraph.BroadcastProtocol.seq {I : Type u_2} {S₁ : Type u_3} {M₁ : Type u_4} {O₁ : Type u_5} {S₂ : Type u_6} {M₂ : Type u_7} {O₂ : Type u_8} (A : BroadcastProtocol I S₁ M₁ O₁) (t : ℕ) (B : BroadcastProtocol O₁ S₂ M₂ O₂) :
BroadcastProtocol I (S₁ × S₂) (M₁ ⊕ M₂) O₂

Sequential composition of broadcast protocols: run A for t rounds, then run B on the round-t outputs of A.

theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.seq_run {V : Type u_1} {I : Type u_2} {S₁ : Type u_3} {M₁ : Type u_4} {O₁ : Type u_5} {S₂ : Type u_6} {M₂ : Type u_7} {O₂ : Type u_8} (A : BroadcastProtocol I S₁ M₁ O₁) (t : ℕ) (B : BroadcastProtocol O₁ S₂ M₂ O₂) (G : SimpleGraph V) [G.LocallyFinite] (x : V → I) (r : ℕ) (u : V) :
(A.seq t B).run G x (t + r) u = B.run G (A.run G x t) r u

Running A.seq t B for t + r rounds equals running B for r rounds on A.run G x t.

Port-numbered LOCAL networks and protocols #

A port numbering of a locally finite simple graph G: at each vertex u, a bijection between its neighborhood G.neighborSet u and its local port indices Fin (G.degree u).

structure Cslib.Distributed.LocalGraph.PortProtocol (I : Type u_1) (S : Type u_2) (M : Type u_3) (O : Type u_4) :
Type (max (max (max u_1 u_2) u_3) u_4)

A deterministic synchronous port-numbered LOCAL protocol (PN algorithm with local inputs, Hirvonen and Suomela, §3.3 and §4.1).

Each node of degree d initializes its state via init d (x u). In round r, a node of degree d in state s sends send r d s p out each port p : Fin d, receives incoming : Fin d → M along its incident ports, and updates to recv r d s incoming.

  • init : ℕ → I → S

    Initial state of a degree-d node with local input x.

  • send : ℕ → (d : ℕ) → S → Fin d → M

    Message sent in round r out port p by a degree-d node in state s.

  • recv : ℕ → (d : ℕ) → S → (Fin d → M) → S

    Next state after round r of a degree-d node from own state and port-indexed messages.

  • output : S → O

    Output computed from a local state.

def Cslib.Distributed.LocalGraph.PortProtocol.state {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : PortProtocol I S M O) {G : SimpleGraph V} [G.LocallyFinite] (N : PortNumbering G) (x : V → I) :
ℕ → V → S

Local state of node u after r synchronous rounds on the port-numbered network N.

def Cslib.Distributed.LocalGraph.PortProtocol.run {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : PortProtocol I S M O) {G : SimpleGraph V} [G.LocallyFinite] (N : PortNumbering G) (x : V → I) (r : ℕ) (u : V) :
O

Output of node u after r synchronous rounds on the port-numbered network N.

@[simp]
theorem Cslib.Distributed.LocalGraph.PortProtocol.state_zero {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : PortProtocol I S M O) {G : SimpleGraph V} [G.LocallyFinite] (N : PortNumbering G) (x : V → I) (u : V) :
P.state N x 0 u = P.init (G.degree u) (x u)
theorem Cslib.Distributed.LocalGraph.PortProtocol.state_succ {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : PortProtocol I S M O) {G : SimpleGraph V} [G.LocallyFinite] (N : PortNumbering G) (x : V → I) (r : ℕ) (u : V) :
P.state N x (r + 1) u = P.recv r (G.degree u) (P.state N x r u) fun (i : Fin (G.degree u)) => have w := (N.port u).symm i; P.send r (G.degree ↑w) (P.state N x r ↑w) ((N.port ↑w) ⟨u, ⋯⟩)
def Cslib.Distributed.LocalGraph.BroadcastProtocol.toPortProtocol {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) :
PortProtocol I S M O

View a BroadcastProtocol as a PortProtocol that sends the same message on every outgoing port and aggregates incoming port messages as a Multiset.

theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.toPortProtocol_state {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) {G : SimpleGraph V} [G.LocallyFinite] (N : PortNumbering G) (x : V → I) (r : ℕ) (u : V) :
P.toPortProtocol.state N x r u = P.state G x r u

Simulating a BroadcastProtocol on any port numbering of G goes through the exact same states in every round.

@[simp]
theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.toPortProtocol_run {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} {O : Type u_5} (P : BroadcastProtocol I S M O) {G : SimpleGraph V} [G.LocallyFinite] (N : PortNumbering G) (x : V → I) (r : ℕ) (u : V) :
P.toPortProtocol.run N x r u = P.run G x r u

Covering maps and Angluin fiber state invariance #

structure Cslib.Distributed.LocalGraph.GraphCovering {V₁ : Type u_1} {V₂ : Type u_2} (G₁ : SimpleGraph V₁) (G₂ : SimpleGraph V₂) (φ : V₁ → V₂) :

A surjective graph covering map φ : V₁ → V₂ from G₁ to G₂: φ is surjective, preserves adjacency, and maps G₁.neighborSet u bijectively onto G₂.neighborSet (φ u) for every vertex u : V₁.

  • surjective : Function.Surjective φ

    Every vertex of G₂ lies in the image of φ.

  • adj {u v : V₁} : G₁.Adj u v → G₂.Adj (φ u) (φ v)

    φ preserves adjacency forward.

  • injOn_neighborSet (u : V₁) : Set.InjOn φ (G₁.neighborSet u)

    φ is injective on each neighborhood G₁.neighborSet u.

  • surjOn_neighborSet (u : V₁) : Set.SurjOn φ (G₁.neighborSet u) (G₂.neighborSet (φ u))

    φ maps G₁.neighborSet u onto G₂.neighborSet (φ u).

theorem Cslib.Distributed.LocalGraph.GraphCovering.map_neighborFinset_val {V₁ : Type u_1} {V₂ : Type u_2} {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} {φ : V₁ → V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] (hφ : GraphCovering G₁ G₂ φ) (u : V₁) :

Pushing neighbor multisets forward along a GraphCovering yields the neighbor multiset in the base graph.

theorem Cslib.Distributed.LocalGraph.GraphCovering.degree_eq {V₁ : Type u_1} {V₂ : Type u_2} {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} {φ : V₁ → V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] (hφ : GraphCovering G₁ G₂ φ) (u : V₁) :
G₁.degree u = G₂.degree (φ u)

A GraphCovering preserves vertex degrees.

structure Cslib.Distributed.LocalGraph.PortCovering {V₁ : Type u_1} {V₂ : Type u_2} {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] (N₁ : PortNumbering G₁) (N₂ : PortNumbering G₂) (φ : V₁ → V₂) :

A port-preserving covering map φ : V₁ → V₂ from (G₁, N₁) to (G₂, N₂) (after Angluin and Hirvonen and Suomela, §7.1, p. 115).

  • surjective : Function.Surjective φ

    Every vertex of G₂ lies in the image of φ.

  • adj {u v : V₁} : G₁.Adj u v → G₂.Adj (φ u) (φ v)

    φ preserves adjacency forward.

  • degree_eq (u : V₁) : G₁.degree u = G₂.degree (φ u)

    φ preserves vertex degrees.

  • port_val_eq (u : V₁) (w : ↑(G₁.neighborSet u)) : ↑((N₂.port (φ u)) ⟨φ ↑w, ⋯⟩) = ↑((N₁.port u) w)

    φ preserves local port indices on all incident edges.

theorem Cslib.Distributed.LocalGraph.PortCovering.toGraphCovering {V₁ : Type u_1} {V₂ : Type u_2} {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {N₁ : PortNumbering G₁} {N₂ : PortNumbering G₂} {φ : V₁ → V₂} (hφ : PortCovering N₁ N₂ φ) :
GraphCovering G₁ G₂ φ

Every PortCovering is a neighborhood-bijective GraphCovering.

theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.state_eq_of_graphCovering {V₁ : Type u_1} {V₂ : Type u_2} {I : Type u_3} {S : Type u_4} {M : Type u_5} {O : Type u_6} (P : BroadcastProtocol I S M O) {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {φ : V₁ → V₂} (hφ : GraphCovering G₁ G₂ φ) {x₁ : V₁ → I} {x₂ : V₂ → I} (hx : ∀ (u : V₁), x₁ u = x₂ (φ u)) (r : ℕ) (u : V₁) :
P.state G₁ x₁ r u = P.state G₂ x₂ r (φ u)

Step towards #7505 (not the cited endpoint, after Angluin): on synchronous simple-graph networks, if φ : V₁ → V₂ is a GraphCovering preserving local inputs, then every node u : V₁ has the exact same local state as φ u in every round r : ℕ.

theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.run_eq_of_graphCovering {V₁ : Type u_1} {V₂ : Type u_2} {I : Type u_3} {S : Type u_4} {M : Type u_5} {O : Type u_6} (P : BroadcastProtocol I S M O) {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {φ : V₁ → V₂} (hφ : GraphCovering G₁ G₂ φ) {x₁ : V₁ → I} {x₂ : V₂ → I} (hx : ∀ (u : V₁), x₁ u = x₂ (φ u)) (r : ℕ) (u : V₁) :
P.run G₁ x₁ r u = P.run G₂ x₂ r (φ u)

Output invariance of BroadcastProtocol.run along a GraphCovering.

theorem Cslib.Distributed.LocalGraph.PortProtocol.state_eq_of_portCovering {V₁ : Type u_1} {V₂ : Type u_2} {I : Type u_3} {S : Type u_4} {M : Type u_5} {O : Type u_6} (P : PortProtocol I S M O) {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {N₁ : PortNumbering G₁} {N₂ : PortNumbering G₂} {φ : V₁ → V₂} (hφ : PortCovering N₁ N₂ φ) {x₁ : V₁ → I} {x₂ : V₂ → I} (hx : ∀ (u : V₁), x₁ u = x₂ (φ u)) (r : ℕ) (u : V₁) :
P.state N₁ x₁ r u = P.state N₂ x₂ r (φ u)

Step towards #7505 (not the cited endpoint, after Theorem 7.1 of Hirvonen and Suomela, pp. 118–119, and Angluin): on synchronous simple-graph port-numbered networks, if φ is a PortCovering preserving local inputs, then every deterministic PortProtocol produces identical states along fibers in every round r : ℕ.

theorem Cslib.Distributed.LocalGraph.PortProtocol.run_eq_of_portCovering {V₁ : Type u_1} {V₂ : Type u_2} {I : Type u_3} {S : Type u_4} {M : Type u_5} {O : Type u_6} (P : PortProtocol I S M O) {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {N₁ : PortNumbering G₁} {N₂ : PortNumbering G₂} {φ : V₁ → V₂} (hφ : PortCovering N₁ N₂ φ) {x₁ : V₁ → I} {x₂ : V₂ → I} (hx : ∀ (u : V₁), x₁ u = x₂ (φ u)) (r : ℕ) (u : V₁) :
P.run N₁ x₁ r u = P.run N₂ x₂ r (φ u)

Output invariance of PortProtocol.run along a PortCovering.

Symmetry-breaking impossibility corollaries #

A Boolean node labeling f : V → Bool elects a unique leader when exactly one vertex outputs true.

On a finite vertex set, ElectsUniqueLeader f holds iff the filter of true vertices has cardinality 1.

theorem Cslib.Distributed.LocalGraph.not_electsUniqueLeader_of_factorsThrough {V₁ : Type u_1} {V₂ : Type u_2} {φ : V₁ → V₂} {f : V₁ → Bool} {g : V₂ → Bool} (hfg : ∀ (u : V₁), f u = g (φ u)) (hfiber : ∀ (y : V₂), ∃ (u₁ : V₁) (u₂ : V₁), u₁ ≠ u₂ ∧ φ u₁ = y ∧ φ u₂ = y) :

If f : V₁ → Bool factors through φ : V₁ → V₂ and every image φ u has a second distinct preimage, then f cannot elect a unique leader.

theorem Cslib.Distributed.LocalGraph.PortProtocol.not_electsUniqueLeader_of_portCovering {V₁ : Type u_1} {V₂ : Type u_2} {I : Type u_3} {S : Type u_4} {M : Type u_5} (P : PortProtocol I S M Bool) {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {N₁ : PortNumbering G₁} {N₂ : PortNumbering G₂} {φ : V₁ → V₂} (hφ : PortCovering N₁ N₂ φ) (hfiber : ∀ (y : V₂), ∃ (u₁ : V₁) (u₂ : V₁), u₁ ≠ u₂ ∧ φ u₁ = y ∧ φ u₂ = y) (x₀ : I) (r : ℕ) :
¬ElectsUniqueLeader (P.run N₁ (fun (x : V₁) => x₀) r)

Step towards #7505 (not the cited endpoint, after Angluin): if (G₁, N₁) covers (G₂, N₂) via φ with at least two vertices in every fiber, no deterministic PortProtocol with uniform initial input x₀ elects a unique leader in any round r.

theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.not_electsUniqueLeader_of_graphCovering {V₁ : Type u_1} {V₂ : Type u_2} {I : Type u_3} {S : Type u_4} {M : Type u_5} (P : BroadcastProtocol I S M Bool) {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {φ : V₁ → V₂} (hφ : GraphCovering G₁ G₂ φ) (hfiber : ∀ (y : V₂), ∃ (u₁ : V₁) (u₂ : V₁), u₁ ≠ u₂ ∧ φ u₁ = y ∧ φ u₂ = y) (x₀ : I) (r : ℕ) :
¬ElectsUniqueLeader (P.run G₁ (fun (x : V₁) => x₀) r)

Step towards #7505 (not the cited endpoint, after Angluin): if G₁ covers G₂ via φ with at least two vertices in every fiber, no deterministic BroadcastProtocol with uniform initial input x₀ elects a unique leader in any round r.

theorem Cslib.Distributed.LocalGraph.GraphCovering.colorable_of_isProperColoring {V₁ : Type u_1} {V₂ : Type u_2} {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} {φ : V₁ → V₂} (hφ : GraphCovering G₁ G₂ φ) {q : ℕ} {c₁ : V₁ → Fin q} {c₂ : V₂ → Fin q} (hc : ∀ (u : V₁), c₁ u = c₂ (φ u)) (hprop : G₁.IsProperColoring c₁) :
G₂.Colorable q

If a coloring c₁ : V₁ → Fin q of G₁ factors as c₂ ∘ φ along a GraphCovering φ onto G₂, and c₁ is proper on G₁, then G₂ is q-colorable.

theorem Cslib.Distributed.LocalGraph.PortProtocol.not_isProperColoring_of_portCovering {V₁ : Type u_1} {V₂ : Type u_2} {I : Type u_3} {S : Type u_4} {M : Type u_5} {q : ℕ} (P : PortProtocol I S M (Fin q)) {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {N₁ : PortNumbering G₁} {N₂ : PortNumbering G₂} {φ : V₁ → V₂} (hφ : PortCovering N₁ N₂ φ) (hnot : ¬G₂.Colorable q) (x₀ : I) (r : ℕ) :
¬G₁.IsProperColoring (P.run N₁ (fun (x : V₁) => x₀) r)

Step towards #7505 (not the cited endpoint, after Angluin): if (G₁, N₁) covers (G₂, N₂) and ¬ G₂.Colorable q, then no deterministic PortProtocol with uniform initial input x₀ outputs a proper Fin q-coloring of G₁ in any round r, even if G₁ itself is q-colorable.

theorem Cslib.Distributed.LocalGraph.BroadcastProtocol.not_isProperColoring_of_graphCovering {V₁ : Type u_1} {V₂ : Type u_2} {I : Type u_3} {S : Type u_4} {M : Type u_5} {q : ℕ} (P : BroadcastProtocol I S M (Fin q)) {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} [G₁.LocallyFinite] [G₂.LocallyFinite] {φ : V₁ → V₂} (hφ : GraphCovering G₁ G₂ φ) (hnot : ¬G₂.Colorable q) (x₀ : I) (r : ℕ) :
¬G₁.IsProperColoring (P.run G₁ (fun (x : V₁) => x₀) r)

Step towards #7505 (not the cited endpoint, after Angluin): if G₁ covers G₂ and ¬ G₂.Colorable q, then no deterministic BroadcastProtocol with uniform initial input x₀ outputs a proper Fin q-coloring of G₁ in any round r.

Bipartite double cover G × K₂ #

The bipartite (Kronecker) double cover of G : SimpleGraph V on Bool × V: (b₁, u) and (b₂, v) are adjacent iff b₁ ≠ b₂ and G.Adj u v.

Every bipartite double cover bipartiteDoubleCover G is 2-colorable, regardless of the chromatic number of G.

theorem Cslib.Distributed.LocalGraph.PortProtocol.not_electsUniqueLeader_bipartiteDoubleCover {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} [Fintype V] {G : SimpleGraph V} [DecidableRel G.Adj] (N : PortNumbering G) (P : PortProtocol I S M Bool) (x₀ : I) (r : ℕ) :
¬ElectsUniqueLeader (P.run N.bipartiteDoubleCover (fun (x : Bool × V) => x₀) r)

Step towards #7505 (not the cited endpoint, after Angluin): no deterministic anonymous PortProtocol elects a unique leader on bipartiteDoubleCover G under N.bipartiteDoubleCover in any round r.

theorem Cslib.Distributed.LocalGraph.PortProtocol.not_isProperColoring_bipartiteDoubleCover {V : Type u_1} {I : Type u_2} {S : Type u_3} {M : Type u_4} [Fintype V] {G : SimpleGraph V} [DecidableRel G.Adj] (N : PortNumbering G) {q : ℕ} (hq : ¬G.Colorable q) (P : PortProtocol I S M (Fin q)) (x₀ : I) (r : ℕ) :

Step towards #7505 (not the cited endpoint, after Angluin): whenever ¬ G.Colorable q, no deterministic anonymous PortProtocol computes a proper Fin q-coloring of bipartiteDoubleCover G under N.bipartiteDoubleCover in any round r (even for q = 2, where bipartiteDoubleCover G is always 2-colorable).

Explicit C₆ → C₃ cycle double cover #

The 2-fold covering projection i ↦ i mod 3 from C₆ (Fin 6) onto C₃ (Fin 3).

Oriented port numbering on SimpleGraph.cycleGraph (m + 3): port 0 points to successor u + 1 and port 1 points to predecessor u - 1.

Step towards #7505 (not the cited endpoint, after Angluin): no deterministic anonymous BroadcastProtocol elects a unique leader on SimpleGraph.cycleGraph 6 in any round r.

Step towards #7505 (not the cited endpoint, after Angluin): although C₆ is 2-colorable (cycleGraph_six_colorable_two), no deterministic anonymous BroadcastProtocol outputs a proper 2-coloring of SimpleGraph.cycleGraph 6 in any round r.

Step towards #7505 (not the cited endpoint, after Angluin and Hirvonen and Suomela, §7.1–7.3): no deterministic PortProtocol with uniform initial input x₀ elects a unique leader on SimpleGraph.cycleGraph 6 under cycleGraphPortNumbering 3 in any round r.

Step towards #7505 (not the cited endpoint, after Angluin and Hirvonen and Suomela, §7.2–7.3): although C₆ is 2-colorable (cycleGraph_six_colorable_two), no deterministic PortProtocol with uniform initial input x₀ outputs a proper 2-coloring of SimpleGraph.cycleGraph 6 under cycleGraphPortNumbering 3 in any round r, because (C₆, cycleGraphPortNumbering 3) double-covers (C₃, cycleGraphPortNumbering 0) (χ(C₃) = 3).

Symmetric K₃,₃ (completeBipartiteGraph (Fin 3) (Fin 3)) client #

Every vertex of K₃,₃ (completeBipartiteGraph (Fin 3) (Fin 3)) has degree 3.

Symmetric port numbering on K₃,₃ (completeBipartiteGraph (Fin 3) (Fin 3)): left vertex inl i connects via port k to inr (i + k), and right vertex inr j connects via port k to inl (j - k).

theorem Cslib.Distributed.LocalGraph.PortProtocol.state_k33PortNumbering_eq {I : Type u_1} {S : Type u_2} {M : Type u_3} {O : Type u_4} (P : PortProtocol I S M O) (x₀ : I) (r : ℕ) (u v : Fin 3 ⊕ Fin 3) :
P.state k33PortNumbering (fun (x : Fin 3 ⊕ Fin 3) => x₀) r u = P.state k33PortNumbering (fun (x : Fin 3 ⊕ Fin 3) => x₀) r v

Step towards #7505 (not the cited endpoint, after Angluin and Hirvonen and Suomela, §7.1–7.2): under k33PortNumbering and uniform initial input x₀, all six vertices of K₃,₃ share the exact same local state in every round r : ℕ.

theorem Cslib.Distributed.LocalGraph.PortProtocol.not_electsUniqueLeader_k33PortNumbering {I : Type u_1} {S : Type u_2} {M : Type u_3} (P : PortProtocol I S M Bool) (x₀ : I) (r : ℕ) :
¬ElectsUniqueLeader (P.run k33PortNumbering (fun (x : Fin 3 ⊕ Fin 3) => x₀) r)

Step towards #7505 (not the cited endpoint, after Angluin and Hirvonen and Suomela, §7.1–7.2): no deterministic anonymous PortProtocol elects a unique leader on K₃,₃ under k33PortNumbering in any round r.

theorem Cslib.Distributed.LocalGraph.PortProtocol.not_isProperColoring_k33PortNumbering {I : Type u_1} {S : Type u_2} {M : Type u_3} {q : ℕ} (P : PortProtocol I S M (Fin q)) (x₀ : I) (r : ℕ) :

Step towards #7505 (not the cited endpoint, after Angluin and Hirvonen and Suomela, §7.1–7.2): although K₃,₃ is bipartite (2-colorable), no deterministic anonymous PortProtocol computes a proper Fin q-coloring of K₃,₃ under k33PortNumbering for any q : ℕ in any round r.