Incremental completion extensions and Herlihy–Wing Theorem 2 (Nonblocking) #
Incremental invariants for appending pending invocations, linearizing pending operations in a
completion extension, flushing already-linearized responses into the observed history, and
Herlihy–Wing Theorem 2 (exists_linearizable_append_resp_of_total, the nonblocking completion
property of linearizability for pending total operations; [HW90], §3.2, Theorem 2,
pp. 471–472; [SHP21], §5.3, Theorem 5.2, p. 9).
Main results #
Cslib.Distributed.ConcurrentObjects.History.append_pending_inv_extension,Cslib.Distributed.ConcurrentObjects.History.linearize_pending_in_extension,Cslib.Distributed.ConcurrentObjects.History.flush_resp_from_extension: reusable forward simulation step lemmas maintaining(H ++ R, S)across invocation, linearization point, and response emission.Cslib.Distributed.ConcurrentObjects.exists_linearizable_append_resp_of_total: Herlihy–Wing Theorem 2 (Nonblocking) — any pending invocation of a total operation in a linearizable history admits a matching response whose append remains linearizable.
References #
Appending a new invocation Event.inv p x op for an idle process p (whose subhistory in H
consists solely of completed calls cs_p and has no pending response in R) preserves
well-formedness of (H ++ [Event.inv p x op]) ++ R, leaves complete unchanged, and preserves
real-time precedence into S.
Linearizing an uncompleted pending invocation Event.inv p x op of process p by appending
Event.resp p x res to the response extension R and [Event.inv p x op, Event.resp p x res] to
the sequential witness S preserves well-formedness, sequentiality, equivalence of complete, and
real-time precedence <_H.
Moving an already-linearized pending response Event.resp p x res of process p from the
extension R into H₁ := H ++ [Event.resp p x res] (leaving R' := R.filter (·.proc ≠ p))
preserves every process subhistory of H₁ ++ R' and maintains real-time precedence into S.
Herlihy–Wing Theorem 2 (Nonblocking Property of Linearizability)
([HW90], §3.2, Theorem 2, pp. 471–472; amended L2 proof of [SHP21],
§5.3, Theorem 5.2, p. 9): if process p has a pending invocation of a total operation op : Op x
in a linearizable history H, then there exists a response res : Resp x such that
H ++ [Event.resp p x res] is also linearizable.