Internal linearization chunk construction and prefix validity #
Constructs step-indexed linearization chunks (linScansAt, linUpdatesAt, linChunk, linPrefix)
from TraceInv and proves duplicate-freeness, sequential validity, and real-time chunk ordering;
never re-exported through AtomicSnapshot.
Main definitions #
Cslib.Distributed.SetAgreement.SnapshotTrace.linScanPoint,Cslib.Distributed.SetAgreement.SnapshotTrace.linScansAt,Cslib.Distributed.SetAgreement.SnapshotTrace.linUpdatesAt,Cslib.Distributed.SetAgreement.SnapshotTrace.linChunk,Cslib.Distributed.SetAgreement.SnapshotTrace.linPrefix: step-indexed linearization chunks.
Main results #
Cslib.Distributed.SetAgreement.SnapshotTrace.nodup_linPrefix,Cslib.Distributed.SetAgreement.SnapshotTrace.linPrefix_valid,Cslib.Distributed.SetAgreement.SnapshotTrace.linChunk_lt_of_realTime: duplicate-freeness, sequential replay soundness, and real-time precedence across chunks.
Witness serialization step in (invStep, resp] selected for a completed scan returning snap
(returns 0 when no such witness exists).
Specification satisfied by linScanPoint when a witnessing snapshot step exists.
Final-history indices of completed scans serialized at step t.
Final-history indices of completed updates that wrote at step t.
Completed operations linearized at trace step t (scans before the atomic write at t).
Linearization prefix covering trace steps 0, …, k - 1.
Membership characterization for linScansAt.
Membership characterization for linUpdatesAt.
Every linearized index appears in at most one step chunk linChunk τ t.
linPrefix τ k is duplicate-free for every k.
By induction on k ≤ τ.events.length + 1, linPrefix τ k is valid against seqSnapshotValid
and replays to memSnapshot (τ.stateAt k).reg for k ≤ τ.events.length.
Real-time precedence between linearization chunks: if i completes by step r and j is
invoked at or after step r, then i's chunk index is strictly smaller than j's.