Atomic read/write registers and sequential-consistency separations #
Sequential atomic read/write register specification (RegOp, RegResp, registerStep,
registerSeqSpec) and explicit register counterparts of the H_7 and H_8 counterexamples of
[HW90] (§3.3, p. 472) separating linearizability from sequential consistency and showing
that sequential consistency is not local across multiple objects.
Main definitions #
Cslib.Distributed.ConcurrentObjects.RegOp,Cslib.Distributed.ConcurrentObjects.RegResp,Cslib.Distributed.ConcurrentObjects.registerSeqSpec: sequential atomic read/write register operations, responses, andSeqSpec.
Main results #
Cslib.Distributed.ConcurrentObjects.exists_sequentiallyConsistent_not_linearizable: explicit well-formed single-register history that is sequentially consistent but not linearizable (register counterpart ofH_7in [HW90], §3.3, p. 472).Cslib.Distributed.ConcurrentObjects.exists_obj_sequentiallyConsistent_not_global: non-locality of sequential consistency — explicit well-formed 2-process, 2-register history whose per-object subhistories are each sequentially consistent while the combined history is not sequentially consistent (register counterpart ofH_8in [HW90], §3.3, p. 472).
References #
Original explicit 2-process, 1-register history that is sequentially consistent (B's
read false can be ordered before A's write true) yet not linearizable (A's write true
completed in real time before B's read false was invoked), witnessing the single-object
separation of [HW90], §3.3, p. 472 (register counterpart of queue history H_7).
Original explicit 2-process, 2-register non-locality of sequential consistency witness
(register counterpart of two-queue history H_8 in [HW90], §3.3, p. 472): there exists a
well-formed 2-process (Bool), 2-register (Bool, both initialized to false) history H such
that History.objSubhistory H false and History.objSubhistory H true are each sequentially
consistent, yet H itself is not sequentially consistent.