Runtime Bundle, Capacity Bounds, and Monadic Step Combinators for SuccinctWhp Self-Healing #
This internal support module provides the 16-word HealRt runtime parameter bundle, bucket/pool
conservation bounds under GoodSeedOnState, clampSubProg, stateless loop-safety induction
iterationSafe_of_stateless_step, and bundled StepSpec monadic bind/read/write combinators shared
across the parallel csrToFastGenProg phase modules.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.HealRt,mkHealRt,mkHealRtGenProg: compact 16-word runtime parameter bundle forcsrToFastGenProgarray phases.Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.clampSubProg: saturating subtraction subroutine overBasis.exact.Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.StepSpec: bundledclientState,clientResult, andValidProgspecification for single-pass monadicdo-block proofs.
Main results #
Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.csrToFast_bounds_of_good,hl_bounds: backyard overflow and segment index bounds underGoodSeedOnStateandWhpLargeEnv.Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.realizes_mkHealRtGen,mkHealRtGenProg_spec,realizes_clampSub,clampSubProg_spec: realization and exactness specifications formkHealRtGenProgandclampSubProg.Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.iterationSafe_of_stateless_step: genericiterationSafeinduction for counter-incrementing loops with state-independent preconditions.
Pure Capacity Bounds #
Recurrence, summation, and monotonicity properties of buildBackPrefix.
Under GoodSeedOnState, every bucket's backyard overflow fits within capBackWhp n_max, total
bucket load fits within totalLocalCoordsWhp n_max, and total backyard occupancy fits within
poolSizeWhp n_max.
Compact 16-word runtime bundle for csrToFastGenProg array phases:
((((base, w), (nMax, M)), ((cf, cb), (totalLoc, poolSize))),
((gBits, tcEntries), ((offBm, offFb), ((offBp, offPs), (offPo, offLs))))).
Base word address in HealRt.
Machine word width w in HealRt.
Capacity n_max in HealRt.
Bucket count numBucketsWhp n_max in HealRt.
Front-yard capacity capFrontWhp n_max in HealRt.
Backyard pointer capacity capBackWhp n_max in HealRt.
Per-bucket coordinate limit totalLocalCoordsWhp n_max in HealRt.
Backyard pool size poolSizeWhp n_max in HealRt.
Global pointer bit-width globalPtrBits n_max in HealRt.
Trie child-entry count trieChildEntriesWhp c n_max in HealRt.
Offset offBktMeta in HealRt.
Offset offFbStart in HealRt.
Offset offBackPtr in HealRt.
Offset offPoolFreeStack in HealRt.
Offset offPoolOwner in HealRt.
Offset offLocState in HealRt.
Construct HealRt for (c, U, V, w, n_max, base).
Shared precondition for per-bucket outer loops over HealRt × ℕ.
Assemble HealRt from (WhpCoreParams, base) in zero memory steps.
Realizes .exact certificate for mkHealRtGenProg.
Exact specification of mkHealRtGenProg in the large regime.
Parameter and bit-width bounds implied by WhpLargeEnv.
Saturating subtraction p.1 - p.2 as a zero-memory Memory.Prog subroutine.
Realizes .exact certificate for clampSubProg.
clampSubProg leaves caller memory and frontier unchanged.
Exact specification of clampSubProg when tb ≤ ps.
Generic iterationSafe induction for counter-incrementing loops Cfg × ℕ → Memory.Prog ℕ
whose step precondition holds for every i < N independently of memory state.
Bundled clientState, clientResult, and ValidProg specification for Memory.spec 0,
allowing monadic do-blocks to be discharged in a single pass instead of three separate passes.