Documentation

CslibFrontier.Computability.Distributed.SetAgreement.AtomicSnapshot.CleanCollect

Clean double-collect snapshot theorem (Lemma 3.1) #

Proves SnapshotTrace.memSnapshot_eq_of_clean_double_collect ([AAD+93], Lemma 3.1, p. 9), shared by TracePreservation and re-exported through AtomicSnapshot.

Main results #

theorem Cslib.Distributed.SetAgreement.SnapshotTrace.memSnapshot_eq_of_clean_double_collect {P : Type u_1} {Data : Type u_2} [Fintype P] [DecidableEq P] {ord : ScanOrder P} {dInit : Data} (τ : SnapshotTrace ord dInit) {tA tB : P → ℕ} {u w : ℕ} (htA : ∀ (j : P), tA j ≤ u) (huw : u ≤ w) (htB : ∀ (j : P), w ≤ tB j) (hbound : ∀ (j : P), tB j ≤ τ.events.length) (hseq : ∀ (j : P), ((τ.stateAt (tA j)).reg j).seq = ((τ.stateAt (tB j)).reg j).seq) {v : ℕ} (huv : u ≤ v) (hvw : v ≤ w) :
memSnapshot (τ.stateAt v).reg = fun (j : P) => ((τ.stateAt (tB j)).reg j).data

Unbounded sequence-numbered single-writer step for #7504 (after Afek et al., Lemma 3.1, p. 9): suppose for each process j : P, a j = (τ.stateAt (tA j)).reg j and b j = (τ.stateAt (tB j)).reg j with tA j ≤ u ≤ w ≤ tB j ≤ τ.events.length. If ∀ j, (a j).seq = (b j).seq, then for every state index v with u ≤ v ≤ w, memSnapshot (τ.stateAt v).reg = fun j => (b j).data.