Crown-execution clock-dimension lower-bound step for unicast executions #
This module proves a self-contained crown-execution dimension lower-bound step over finite unicast
message-passing executions Execution P toward #7203 (after [CB91], whose primary
journal text was not inspected, so this module does not claim its cited endpoint): characterizing
Execution.HappensBeforeLe across Execution P via coordinatewise order-embeddings into
Fin d → α (for any LinearOrder α) requires dimension Fintype.card P ≤ d.
Construction and proof outline #
For n ≥ 2 processes Fin n with cyclic derangement crownShift hn p = (p + 1) % n,
crownFin n hn constructs an explicit causally well-formed execution in four blocks of total
length 2 * n + 2 * (n * n):
- Phase 1 initial events (
crownPhase1 hn p): one internal eventa_pon each processp. - Phase 1 point-to-point sends: for each pair
(p, q)withq ≠ pandq ≠ crownShift hn p, processpsends a message toq(using an internal step onpfor excluded pairs so block offsets stay uniform). - Message deliveries: each process
qreceives thosen - 2messages sent to it in Block 2. - Phase 2 terminal events (
crownPhase2 hn q): one internal eventb_qon each processq.
Because no send step ever occurs at or after any recv step, causal paths cross at most one
message hop, giving the exact crown characterization (crownFin_happensBeforeLe_iff):
a_p ≼ b_q ↔ q ≠ crownShift hn p.
Any order-embedding f : E.Event → (Fin d → α) into a d-fold product of a LinearOrder α must
separate each incomparable pair (a_p, b_{crownShift p}) at some coordinate coord p : Fin d
where f (b_{crownShift p}) (coord p) < f (a_p) (coord p). If coord p₁ = coord p₂ = i for
p₁ ≠ p₂, then crownShift p₂ ≠ crownShift p₁ yields a_{p₁} ≼ b_{crownShift p₂} and
a_{p₂} ≼ b_{crownShift p₁}, producing the strict cycle
f (a_{p₁}) i ≤ f (b_{crownShift p₂}) i < f (a_{p₂}) i ≤ f (b_{crownShift p₁}) i < f (a_{p₁}) i.
Hence coord : Fin n → Fin d is injective, proving n ≤ d.
For arbitrary finite P, exists_unicast_execution_dim_lower_bound and
unicast_clock_dim_lower_bound handle Fintype.card P = 0 (Execution.empty, 0 ≤ d) and
Fintype.card P = 1 (two sequential internal events on the unique process forcing 1 ≤ d)
directly, and transport crownFin along Fin (Fintype.card P) ≃ P when 2 ≤ Fintype.card P.
Combining with Mattern vector clocks (Execution.vc, [Mat89]) yields
exists_unicast_orderEmbedding_clock_iff: every unicast execution on P admits a d-coordinate
ℕ-vector clock iff Fintype.card P ≤ d.
Main definitions #
Cslib.Distributed.VectorClock.crownShift: cyclic fixed-point-free permutation onFin nfor2 ≤ n.Cslib.Distributed.VectorClock.crownStep,Cslib.Distributed.VectorClock.crownFin: explicit 4-block crown execution onFin nfor2 ≤ n.Cslib.Distributed.VectorClock.crownPhase1,Cslib.Distributed.VectorClock.crownPhase2: Phase-1 eventsa_pand Phase-2 eventsb_qofcrownFin.
Main results #
Cslib.Distributed.VectorClock.crownFin_happensBeforeLe_iff: exact crown causalitya_p ≼ b_q ↔ q ≠ crownShift hn pincrownFin.Cslib.Distributed.VectorClock.crownFin_dim_lower_bound: any order-embedding ofcrownFin n hnintoFin d → αforcesn ≤ d.Cslib.Distributed.VectorClock.exists_unicast_execution_dim_lower_bound: crown-execution step constructing a singleExecution Pthat forcesFintype.card P ≤ dfor any product order-embedding intoFin d → α.Cslib.Distributed.VectorClock.unicast_clock_dim_lower_bound: crown-execution step provingFintype.card P ≤ dforFin d → αlogical clocks acrossExecution P.Cslib.Distributed.VectorClock.exists_unicast_orderEmbedding_clock_iff: sharpFintype.card P ≤ dcharacterization forFin d → ℕvector clocks acrossExecution P.
References #
crownShift hn has no fixed points when 2 ≤ n.
crownShift hn is injective on Fin n.
Step i (0 ≤ i < 2 * n + 2 * (n * n)) of the 4-block crown execution crownFin on Fin n:
[0, n): Phase-1 initial internal stepa_pon eachp,[n, n + n²): send fromp = (i - n) / ntoq = (i - n) % nifq ∉ {p, crownShift p}, else internal step onp,[n + n², n + 2n²): matching receive atqof stepi - n²ifq ∉ {p, crownShift p}, else internal step onq,[n + 2n², 2n + 2n²): Phase-2 terminal internal stepb_qon eachq.
Crown-poset causality step in crownFin (toward #7203, after [CB91], not the
uninspected paper endpoint): Phase-1 event a_p causally precedes or equals Phase-2 event b_q
iff q ≠ crownShift hn p.
Dimension lower bound and sharp characterization #
Crown-execution dimension step on Fin n (toward #7203, after [CB91], not the
uninspected paper endpoint): any coordinatewise order-embedding of crownFin n hn into
Fin d → α (for any LinearOrder α) satisfies n ≤ d.
Single-execution dimension lower-bound step over finite unicast traces Execution P (toward
#7203, after [CB91], whose primary text was not inspected; not the cited endpoint):
for every finite P, there exists E : Execution P such that any order-embedding of E.Event
into Fin d → α (for any LinearOrder α) forces Fintype.card P ≤ d (via Execution.empty at
|P| = 0, two sequential internal events at |P| = 1, and crownFin for 2 ≤ |P|).
Clock-dimension lower-bound step over finite unicast executions Execution P (toward #7203,
after [CB91], whose primary text was not inspected; not the cited endpoint): if every
E : Execution P admits an order-embedding into Fin d → α (for a LinearOrder α) characterizing
HappensBeforeLe, then Fintype.card P ≤ d.
Sharp Fin d → ℕ clock-dimension step over finite unicast executions Execution P (toward
#7203, combining unicast_clock_dim_lower_bound after [CB91] with Mattern's
Execution.vc [Mat89]; not claiming [CB91]'s uninspected endpoint): every
E : Execution P admits an order-embedding into Fin d → ℕ iff Fintype.card P ≤ d.