Documentation

CslibFrontier.Computability.Distributed.ConcurrentObjects.Linearizability.Register

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 #

Main results #

References #

Operations on an atomic read/write register over value type V.

  • read {V : Type u_1} : RegOp V

    Read the current register value.

  • write {V : Type u_1} (val : V) : RegOp V

    Write val to the register.

@[instance_reducible]

Responses returned by an atomic read/write register over value type V.

Sequential transition function of an atomic read/write register.

def Cslib.Distributed.ConcurrentObjects.registerSeqSpec {P : Type u_1} {Obj : Type u_2} {V : Type u_3} (x : Obj) (init : V) :
SeqSpec P (fun (x : Obj) => RegOp V) (fun (x : Obj) => RegResp V) x

Sequential specification of an atomic read/write register x : Obj initialized to init.

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.