Documentation

CslibFrontier.Computability.Distributed.SetAgreement.AtomicSnapshot.Linearizability

Snapshot correctness and Herlihy–Wing linearizability (Lemmas 3.2–3.3, Theorem 1) #

Proves the unbounded sequence-numbered single-writer snapshot interval and linearizability results ([AAD+93], Lemmas 3.2–3.3 and Theorem 1, pp. 9–10).

Main results #

theorem Cslib.Distributed.SetAgreement.unbounded_exists_interval_snapshot_of_trace {P : Type u_1} {Data : Type u_2} [Fintype P] [DecidableEq P] {ord : ScanOrder P} {dInit : Data} (τ : SnapshotTrace ord dInit) {id : ℕ} (hId : id < (τ.stateAt τ.events.length).history.length) {resp : ℕ} {snap : P → Data} (hdone : (τ.stateAt τ.events.length).history[id].status = SnapshotOpStatus.doneScan resp snap) :
have entry := (τ.stateAt τ.events.length).history[id]; entry.kind = SnapshotOpKind.scan ∧ entry.invStep < resp ∧ resp < τ.events.length ∧ ∃ (v : ℕ), entry.invStep + 1 ≤ v ∧ v ≤ resp ∧ memSnapshot (τ.stateAt v).reg = snap

Unbounded sequence-numbered single-writer step for #7504 (after Afek et al., Lemmas 3.2–3.3, pp. 9–10): for every execution trace τ and every completed scan record (id, resp, snap) in the final history (τ.stateAt τ.events.length).history, there exists a state index v strictly inside the scan's execution interval (invStep < v ≤ resp) at which the instantaneous shared-memory state memSnapshot (τ.stateAt v).reg equals snap.

theorem Cslib.Distributed.SetAgreement.unbounded_snapshotLinearizable_of_reachable {P : Type u_1} {Data : Type u_2} [Fintype P] [DecidableEq P] {ord : ScanOrder P} {dInit : Data} {s : SnapshotState P Data} (hreach : SnapshotReachable ord dInit s) :

Unbounded sequence-numbered single-writer snapshot step for #7504 (after Afek et al., Theorem 1, p. 10): every reachable configuration s of snapshotLTS ord dInit has a linearizable operation history SnapshotLinearizable dInit s.history against the canonical single-writer snapshot specification (Section 4 bounded-register and Section 5 multi-writer snapshots remain open in #7504).