Fast-Mode Transition Frame Invariant (FastStateStep) and Large-Regime Bounds #
This module defines the compositional transition invariant FastStateStep for fast-mode
Memory.Prog subroutines on FastMemRep, together with:
- Large-regime index and capacity bounds (
large_index_bounds,bufTrie_caps_of_bounds). FastStateStepreflexivity/transitivity,bTreeSliceMemRep_congr, andFastMemRepslice/buffer projections (FastMemRep.slice_rep,FastMemRep.buf_rep).CostBoundedStep, the final state, result, cost bound and validity of one run of aMemory.Prog, with itspure/bind/ifcomposition rules.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.FastStateStep: compositional invariant preservingSeedWhpMemRep,FastMemRep,frontier, and memory outsidelargeSpaceWhp.Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.CostBoundedStep: running a program from a given state ends in a given state with a given result, within a cost bound, and validly.
Main results #
Section 1: Segment and Index Bounds #
Auxiliary index bounds in the large regime (whpThreshold c ≤ n_max).
Section 2: FastStateStep and FastMemRep Projections #
Bundled transition invariant for fast-mode Memory.Prog substeps: preserves frontier,
SeedWhpMemRep, FastMemRep for fs', and all memory words outside
[base, base + largeSpaceWhp c U V w n_max).
BTreeSliceMemRep invariance when offBktMeta ([10..15]) and [offBtMeta, offTrieChild0)
are unchanged.
Section 3: Cost-Bounded Steps #
CostBoundedStep w F s p s' r C: running the memory program p from state s ends in state
s' with result r, issues at most C memory operations (memoryCost), and produces a valid
memory history at word size w whenever s is well formed with frontier at least F
(ValidProg).
Final memory state produced by
pfroms.Result returned by
pfroms.- memoryCost_le : WordRAM.Realization.memoryCost p s ≤ C
Upper bound on memory operations issued by
pfroms. - validProg : Succinct.ValidProg w F s p
Memory-history validity of
pfromsat word sizewand frontierF.
A run that leaves the state unchanged at exact cost C is a cost-bounded step.
Pure return takes zero memory operations and leaves the state unchanged.
Sequential composition sums cost bounds and threads the intermediate state and result.
Relax the memory-operation upper bound of a cost-bounded step.
Conditional execution with matching final state and cost bound across both branches.
Positive branch of a conditional cost-bounded step.
Negative branch of a conditional cost-bounded step.
Read a cost-bounded step off as a cost bound, validity and a property of the final state.