Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhp

Fixed-Capacity Succinct Dynamic Dictionary with High-Probability O_c(1) Operations #

This module packages the fixed-capacity succinct dynamic dictionary (insert, delete, query) with high-probability O_c(1) worst-case operation time over Cslib.WordRAM.Basis.exact and Cslib.WordRAM.Basis.standard as a reusable Cslib.DataStructure.WordRAM.Randomized.HighProbStateTransitionImpl certificate (Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.impl and implStandard) for Cslib.DataStructure.Dictionary.Dynamic.spec U V n_max, adapting the partition hash table architecture of Bender, Farach-Colton, J. Kuszmaul, and W. Kuszmaul, SOSA 2024, Sections 2.2 and 3–5, pp. 363–373; author copy pp. 3–7.

Mathematical guarantees, model, and adaptations vs. SOSA 2024 #

For any failure-probability exponent 0 < c, capacity n_max ≤ U, word width 0 < w, and addressable universe/value/footprint bounds Fits w U, Fits w V, and Fits w (base + whpSpace c U V w n_max):

  1. Succinct 1 · OPT + O_c(n_max log log n_max) space (whpSpace_le_succinctWords): the allocated Word-RAM block occupies whpSpace c U V w n_max machine words, bounded across all w and n_max ≤ U by Dynamic.succinctWords (whpSpaceFactor c) whpSpaceConst U V w n_max (⌈(OPT(U, V, n_max) + whpSpaceFactor c · n_max · logLogFactor n_max) / w⌉ + 160 words).
  2. Self-contained O(n_max) randomized initialization (initTime_impl_le): when whpThreshold c ≤ n_max, initSetupCode samples two independent uniform Thorup bit-packed double-tabulation seeds (BitPackedDoubleTabulation.resampleCode, [Tho13]) directly into [base + offHashBkt, base + offQuotWhp c w n_max) and initializes the fast front-yard/backyard/SWAR B+-tree metadata in O(n_max) deterministic worst-case instructions (≤ initTimeLinearFactor * n_max + initTimeLinearConst); below whpThreshold c, initialization requires 0 random draws and 3 allocSpan instructions.
  3. Worst-case O_c(1) operations with probability ≥ 1 - (max n_max 1)⁻¹ ^ c (reachable_step_whp, seq_whp, poly_seq_whp): on any oblivious operation sequence ops : List (Dynamic.Op U) satisfying ValidHistory (Dictionary.empty U) ops (chosen independently of the internal hash seeds):
    • Zero-error correctness: every execution path (including rare ¬IsFastStepHit fallback branches handled via fastToCsrGenProg and fallbackAndHealGenProg) produces the exact specification transcript ((Dynamic.spec U V n_max).run (Dictionary.empty U) ops).2, preserves Rep, and leaves caller memory outside [base, base + whpSpace c U V w n_max) untouched (Modifies).
    • Per-operation high-probability bound (reachable_step_whp): after any valid oblivious prefix ops (of arbitrary length), the next valid operation o halts in clocked evalRand within worstCaseTimeWhp c + 1 instructions (O_c(1), independent of U, V, w, n_max, base, and ops.length) with probability at least 1 - (max n_max 1 : ℝ≥0∞)⁻¹ ^ c.
    • Whole-sequence and polynomial-horizon bounds (seq_whp, poly_seq_whp): across ops, every operation runs within worstCaseTimeWhp c body instructions with probability at least 1 - ops.length * (max n_max 1 : ℝ≥0∞)⁻¹ ^ c; instantiating at exponent c + c₀ covers any polynomial sequence ops.length ≤ max n_max 1 ^ c₀ with failure probability at most (max n_max 1 : ℝ≥0∞)⁻¹ ^ c.
  4. Adaptations relative to SOSA 2024 Sections 3–5:
    • Fixed capacity: n_max is fixed without table resizing (SOSA 2024 Section 6 adds resizing).
    • Key-value payloads and general universes: supports arbitrary key universe n_max ≤ U < 2^w and value payloads < V < 2^w via one-round Feistel quotienting, whereas SOSA 2024 Sections 3–5 state a key-only membership dictionary on w = Θ(log n)-bit keys.
    • Explicit seeded tabulation vs. random-oracle hashing: SOSA 2024 Section 2.1 assumes zero-space oracle access to fully random hash functions; here both bucket and fingerprint hash families are explicitly sampled and stored inside whpSpace c U V w n_max via salted bit-packed double tabulation [Tho13], and below the c-only threshold whpThreshold c (bMinWhp c = Θ(c^6)) operations use a deterministic bit-packed array in O_c(1) time.
    • High-probability vs. deterministic query time: SOSA 2024 (Theorem 1.1, Lemma 4.3 on PDF p. 5, and Section 5 on PDF pp. 6–7) achieves deterministic worst-case O(1) queries alongside w.h.p. O(1) updates by resampling colliding bucket fingerprints from its random hash oracle until injective. Because SuccinctWhp samples a static seed pair once during initSetupCode (0 runtime rand calls) and routes rare bad seeds to deterministic CsrState (O(n_max) scan), query here runs in O_c(1) worst-case time with high probability ≥ 1 - (max n_max 1 : ℝ≥0∞)⁻¹ ^ c (reachable_step_whp) rather than deterministic worst-case O(1) on bad seeds.
    • Width independence (not_readsWidth_subroutineCode): none of initFresh, initClear, or code inspects the ambient word width w (¬ReadsWidth).

Main definitions #

Main results #

References #

Section 1: Parameter-Free Register Bank rWhp and Emitted Native Code #

Parameter-free total register count 132 + scratchWhp (0..11 for BitPackedDoubleTabulation.resampleCode, 16..26 for persistent control and ABI registers, 32..131 for WhpCoreParams / WhpParams, and 132.. for Realizes scratch).

Bump-pointer frontier register 17 (sReg 17).

Nominal output register 24 for SubroutineCode.output.

Output Option ℕ presence-tag register 25 (0 = none, 1 = some).

Output Option ℕ value-payload register 26.

Unified initSetup code across both < whpThreshold c (.op (.const zeroReg 0), since zeroed memory already represents emptySmallState) and ≥ whpThreshold c (initLargeCode).

Complete per-operation Word-RAM body: loads the 100 static WhpParams words into whpParamReg and executes the compiled stepCode (whpStepPureGenProg).

Canonical SubroutineCode for the fixed-capacity high-probability succinct dynamic dictionary on rWhp registers.

Section 2: Register Disjointness, Width Independence (¬ReadsWidth), and Cost Budgets #

Width independence (¬ReadsWidth) of all emitted programs in subroutineCode c U V w n_max: none of initFresh, initClear, or code inspects the ambient word width w.

c-only deterministic worst-case instruction budget for a single dictionary operation (100 parameter-load instructions plus the Realizes instruction budget for whpFastBranchCost c).

Deterministic worst-case instruction budget for initSetupCode c U V w n_max.

Worst-case random word draws (unifFin) made by initSetupCode c U V w n_max.

Section 3: Representation Invariants and ABI Conventions #

def Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.GhostRep (c U V w n_max base : ℕ) (ops : List (Dynamic.Op U)) (θ : SuccinctWhp.SeedWhp c U n_max) (s_abs : State U) (x : WordRAM.Data rWhp) :

Trajectory-coupled representation invariant at base for oblivious operation history ops, seed θ : SeedWhp c U n_max, abstract dictionary state s_abs, and machine state x.

def Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.Rep (c U V w n_max base : ℕ) (θ : SuccinctWhp.SeedWhp c U n_max) (s_abs : State U) (x : WordRAM.Data rWhp) :

Existential state-level representation invariant exposed by (impl ...).rep.

Standalone register encoding for Dynamic.Op U matching encodeOpWhp:

  • .query u: tagReg = 0, argUReg = u.val, argVReg = 0
  • .insert u v: tagReg = 1, argUReg = u.val, argVReg = v
  • .delete u: tagReg = 2, argUReg = u.val, argVReg = 0

Argument-matching predicate tying (tagReg, (argUReg, argVReg)) to encodeOpWhp o.

Output decoder reading Option ℕ from (resTagReg, resValReg) for .query and () for .insert/.delete.

@[simp]

Output registers resTagReg and resValReg are disjoint from subroutineCode.input.

Section 4: Execution of loadVecUpTo, allocSpan, initSetupCode, and opCode #

Section 5: Per-Operation Deterministic Execution (exec_opCode) #

Section 6: HighProbStateTransitionImpl Packaging and Headline Theorems #

noncomputable def Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.impl {c U V w n_max base : ℕ} (hc : 0 < c) (hw : 0 < w) (hnU : n_max ≤ U) (hU : WordRAM.Fits w U) (hV : WordRAM.Fits w V) (hfit : WordRAM.Fits w (base + SuccinctWhp.whpSpace c U V w n_max)) :

Reusable HighProbStateTransitionImpl certificate over Basis.exact for the fixed-capacity succinct dynamic dictionary (Dynamic.spec U V n_max).

noncomputable def Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.implStandard {c U V w n_max base : ℕ} (hc : 0 < c) (hw : 0 < w) (hnU : n_max ≤ U) (hU : WordRAM.Fits w U) (hV : WordRAM.Fits w V) (hfit : WordRAM.Fits w (base + SuccinctWhp.whpSpace c U V w n_max)) :

Reusable HighProbStateTransitionImpl certificate over Basis.standard for the fixed-capacity succinct dynamic dictionary (Dynamic.spec U V n_max).

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.initTime_impl_le {c U V w n_max base : ℕ} (hc : 0 < c) (hw : 0 < w) (hnU : n_max ≤ U) (hU : WordRAM.Fits w U) (hV : WordRAM.Fits w V) (hfit : WordRAM.Fits w (base + SuccinctWhp.whpSpace c U V w n_max)) :
(impl hc hw hnU hU hV hfit).initTime = 3 + initSetupSteps c w n_max ∧ 3 + initSetupSteps c w n_max ≤ initTimeLinearFactor * n_max + initTimeLinearConst

Explicit O(n_max) deterministic upper bound on fresh initialization instructions: (impl ...).initTime ≤ initTimeLinearFactor * n_max + initTimeLinearConst.

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.seq_whp {c U V w n_max base : ℕ} (hc : 0 < c) (hw : 0 < w) (hnU : n_max ≤ U) (hU : WordRAM.Fits w U) (hV : WordRAM.Fits w V) (hfit : WordRAM.Fits w (base + SuccinctWhp.whpSpace c U V w n_max)) {x : WordRAM.Data rWhp} (ops : List (Dynamic.Op U)) (hx : WordRAM.Data.Bounded w x) (hfr : x.regs frontierReg = base) (hz : ∀ a ∈ { base := base, length := SuccinctWhp.whpSpace c U V w n_max }.footprint, x.mem a = 0) (hv : (Dynamic.spec U V n_max).ValidHistory (empty U) ops) :
let C := impl hc hw hnU hU hV hfit; ∃ (ν₀ : PMF (SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp)) (τ_final : PMF (WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp c U n_max) (Dynamic.spec U V n_max) rWhp)), WordRAM.RandHaltsWithin w ((subroutineCode c U V w n_max).initFresh.program outReg) { pc := 0, data := x } (C.initTime + 1) ∧ WordRAM.evalRand w ((subroutineCode c U V w n_max).initFresh.program outReg) (C.initTime + 1) { pc := 0, data := x } = PMF.map (fun (p : SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp) => WordRAM.RandCfg.halted (p.2.regs outReg) p.2) ν₀ ∧ (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ p.2.regs frontierReg = base + SuccinctWhp.whpSpace c U V w n_max ∧ Rep c U V w n_max base p.1 (empty U) p.2 ∧ WordRAM.Modifies { base := base, length := SuccinctWhp.whpSpace c U V w n_max }.footprint x.mem p.2.mem) ∧ C.ExecWhpSteps outReg ops (PMF.map (fun (p : SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp) => WordRAM.Randomized.WhpSeqOutcome.ofCoupled { seed := p.1, state := empty U, data := p.2 }) ν₀) τ_final ∧ (∀ tr ∈ τ_final.support, tr.current.state = ((Dynamic.spec U V n_max).run (empty U) ops).1 ∧ tr.transcript = ((Dynamic.spec U V n_max).run (empty U) ops).2 ∧ Rep c U V w n_max base tr.current.seed ((Dynamic.spec U V n_max).run (empty U) ops).1 tr.current.data ∧ WordRAM.Modifies { base := base, length := SuccinctWhp.whpSpace c U V w n_max }.footprint x.mem tr.current.data.mem) ∧ τ_final.toOuterMeasure {tr : WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp c U n_max) (Dynamic.spec U V n_max) rWhp | worstCaseTimeWhp c < tr.maxSteps} ≤ ↑ops.length * (max (↑n_max) 1)⁻¹ ^ c ∧ 1 - ↑ops.length * (max (↑n_max) 1)⁻¹ ^ c ≤ τ_final.toOuterMeasure {tr : WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp c U n_max) (Dynamic.spec U V n_max) rWhp | tr.maxSteps ≤ worstCaseTimeWhp c ∧ tr.transcript = ((Dynamic.spec U V n_max).run (empty U) ops).2}

Headline whole-sequence with-high-probability theorem (seq_whp): Starting from zeroed memory on [base, base + whpSpace c U V w n_max), fresh initialization halts within (impl ...).initTime + 1 instructions, and across any valid oblivious operation sequence ops : List (Dynamic.Op U) (ValidHistory (Dictionary.empty U) ops):

  1. every supported branch produces the exact specification state and transcript ((Dynamic.spec U V n_max).run (Dictionary.empty U) ops), maintains Rep, and leaves caller memory outside [base, base + whpSpace c U V w n_max) untouched (Modifies);
  2. with probability at least 1 - ops.length * (max n_max 1 : ℝ≥0∞)⁻¹ ^ c, every single operation in ops executes within worstCaseTimeWhp c (O_c(1)) deterministic worst-case instructions.
theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.poly_seq_whp {c c₀ U V w n_max base : ℕ} (hc : 0 < c) (hw : 0 < w) (hnU : n_max ≤ U) (hU : WordRAM.Fits w U) (hV : WordRAM.Fits w V) (hfit : WordRAM.Fits w (base + SuccinctWhp.whpSpace (c + c₀) U V w n_max)) {x : WordRAM.Data rWhp} (ops : List (Dynamic.Op U)) (hlen : ops.length ≤ max n_max 1 ^ c₀) (hx : WordRAM.Data.Bounded w x) (hfr : x.regs frontierReg = base) (hz : ∀ a ∈ { base := base, length := SuccinctWhp.whpSpace (c + c₀) U V w n_max }.footprint, x.mem a = 0) (hv : (Dynamic.spec U V n_max).ValidHistory (empty U) ops) :
let C := impl ⋯ hw hnU hU hV hfit; ∃ (ν₀ : PMF (SuccinctWhp.SeedWhp (c + c₀) U n_max × WordRAM.Data rWhp)) (τ_final : PMF (WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp (c + c₀) U n_max) (Dynamic.spec U V n_max) rWhp)), WordRAM.RandHaltsWithin w ((subroutineCode (c + c₀) U V w n_max).initFresh.program outReg) { pc := 0, data := x } (C.initTime + 1) ∧ WordRAM.evalRand w ((subroutineCode (c + c₀) U V w n_max).initFresh.program outReg) (C.initTime + 1) { pc := 0, data := x } = PMF.map (fun (p : SuccinctWhp.SeedWhp (c + c₀) U n_max × WordRAM.Data rWhp) => WordRAM.RandCfg.halted (p.2.regs outReg) p.2) ν₀ ∧ (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ p.2.regs frontierReg = base + SuccinctWhp.whpSpace (c + c₀) U V w n_max ∧ Rep (c + c₀) U V w n_max base p.1 (empty U) p.2 ∧ WordRAM.Modifies { base := base, length := SuccinctWhp.whpSpace (c + c₀) U V w n_max }.footprint x.mem p.2.mem) ∧ C.ExecWhpSteps outReg ops (PMF.map (fun (p : SuccinctWhp.SeedWhp (c + c₀) U n_max × WordRAM.Data rWhp) => WordRAM.Randomized.WhpSeqOutcome.ofCoupled { seed := p.1, state := empty U, data := p.2 }) ν₀) τ_final ∧ (∀ tr ∈ τ_final.support, tr.current.state = ((Dynamic.spec U V n_max).run (empty U) ops).1 ∧ tr.transcript = ((Dynamic.spec U V n_max).run (empty U) ops).2 ∧ Rep (c + c₀) U V w n_max base tr.current.seed ((Dynamic.spec U V n_max).run (empty U) ops).1 tr.current.data ∧ WordRAM.Modifies { base := base, length := SuccinctWhp.whpSpace (c + c₀) U V w n_max }.footprint x.mem tr.current.data.mem) ∧ τ_final.toOuterMeasure {tr : WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp (c + c₀) U n_max) (Dynamic.spec U V n_max) rWhp | worstCaseTimeWhp (c + c₀) < tr.maxSteps} ≤ (max (↑n_max) 1)⁻¹ ^ c ∧ 1 - (max (↑n_max) 1)⁻¹ ^ c ≤ τ_final.toOuterMeasure {tr : WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp (c + c₀) U n_max) (Dynamic.spec U V n_max) rWhp | tr.maxSteps ≤ worstCaseTimeWhp (c + c₀) ∧ tr.transcript = ((Dynamic.spec U V n_max).run (empty U) ops).2}

Polynomial-horizon whole-sequence corollary (poly_seq_whp): Instantiating the dictionary at exponent c + c₀ (0 < c) guarantees that starting from ⟨0, x⟩, fresh initialization produces ν₀ in (impl ...).initTime + 1 steps, every supported trajectory yields the exact specification state and transcript while preserving caller memory (Modifies), and across any valid oblivious sequence ops of polynomial length ops.length ≤ max n_max 1 ^ c₀, every operation in ops executes within worstCaseTimeWhp (c + c₀) (O_{c, c₀}(1)) worst-case instructions with probability at least 1 - (max n_max 1 : ℝ≥0∞)⁻¹ ^ c.

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.reachable_step_whp {c U V w n_max base : ℕ} (hc : 0 < c) (hw : 0 < w) (hnU : n_max ≤ U) (hU : WordRAM.Fits w U) (hV : WordRAM.Fits w V) (hfit : WordRAM.Fits w (base + SuccinctWhp.whpSpace c U V w n_max)) {x : WordRAM.Data rWhp} (ops : List (Dynamic.Op U)) (o : Dynamic.Op U) (hx : WordRAM.Data.Bounded w x) (hfr : x.regs frontierReg = base) (hz : ∀ a ∈ { base := base, length := SuccinctWhp.whpSpace c U V w n_max }.footprint, x.mem a = 0) (hv : (Dynamic.spec U V n_max).ValidHistory (empty U) ops) (hvo : (Dynamic.spec U V n_max).valid ((Dynamic.spec U V n_max).run (empty U) ops).1 o) :
let C := impl hc hw hnU hU hV hfit; ∃ (ν₀ : PMF (SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp)) (τ_pref : PMF (WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp c U n_max) (Dynamic.spec U V n_max) rWhp)), WordRAM.RandHaltsWithin w ((subroutineCode c U V w n_max).initFresh.program outReg) { pc := 0, data := x } (C.initTime + 1) ∧ WordRAM.evalRand w ((subroutineCode c U V w n_max).initFresh.program outReg) (C.initTime + 1) { pc := 0, data := x } = PMF.map (fun (p : SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp) => WordRAM.RandCfg.halted (p.2.regs outReg) p.2) ν₀ ∧ (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ p.2.regs frontierReg = base + SuccinctWhp.whpSpace c U V w n_max ∧ Rep c U V w n_max base p.1 (empty U) p.2 ∧ WordRAM.Modifies { base := base, length := SuccinctWhp.whpSpace c U V w n_max }.footprint x.mem p.2.mem) ∧ C.ExecWhpSteps outReg ops (PMF.map (fun (p : SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp) => WordRAM.Randomized.WhpSeqOutcome.ofCoupled { seed := p.1, state := empty U, data := p.2 }) ν₀) τ_pref ∧ (∀ tr ∈ τ_pref.support, tr.current.state = ((Dynamic.spec U V n_max).run (empty U) ops).1 ∧ tr.transcript = ((Dynamic.spec U V n_max).run (empty U) ops).2 ∧ Rep c U V w n_max base tr.current.seed ((Dynamic.spec U V n_max).run (empty U) ops).1 tr.current.data ∧ WordRAM.Modifies { base := base, length := SuccinctWhp.whpSpace c U V w n_max }.footprint x.mem tr.current.data.mem) ∧ 1 - (max (↑n_max) 1)⁻¹ ^ c ≤ ((PMF.map (fun (tr : WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp c U n_max) (Dynamic.spec U V n_max) rWhp) => (tr.current.seed, tr.current.data)) τ_pref).bind fun (p : SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp) => WordRAM.evalRand w ((subroutineCode c U V w n_max).code.program outReg) (worstCaseTimeWhp c + 1) { pc := 0, data := C.prepare o p.2 }).toOuterMeasure {cfg : WordRAM.RandCfg rWhp | ∃ (p : SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp) (q : SuccinctWhp.SeedWhp c U n_max × WordRAM.Data rWhp), p ∈ (PMF.map (fun (tr : WordRAM.Randomized.WhpSeqOutcome (SuccinctWhp.SeedWhp c U n_max) (Dynamic.spec U V n_max) rWhp) => (tr.current.seed, tr.current.data)) τ_pref).support ∧ cfg = WordRAM.RandCfg.halted (q.2.regs outReg) q.2 ∧ decode o q.2.regs = some ((Dynamic.spec U V n_max).stepFn ((Dynamic.spec U V n_max).run (empty U) ops).1 o).2 ∧ Rep c U V w n_max base q.1 ((Dynamic.spec U V n_max).stepFn ((Dynamic.spec U V n_max).run (empty U) ops).1 o).1 q.2 ∧ WordRAM.Data.Bounded w q.2 ∧ WordRAM.Modifies { base := base, length := SuccinctWhp.whpSpace c U V w n_max }.footprint p.2.mem q.2.mem ∧ WordRAM.Modifies { base := base, length := SuccinctWhp.whpSpace c U V w n_max }.footprint x.mem q.2.mem}

Headline per-operation with-high-probability theorem after an arbitrary-length prefix (reachable_step_whp): Starting from ⟨0, x⟩ via fresh initialization (ν₀) and executing any valid oblivious prefix ops (regardless of ops.length) to τ_pref, preparing the next admissible operation o and running (subroutineCode c U V w n_max).code.program outReg halts in clocked evalRand within worstCaseTimeWhp c + 1 instructions (O_c(1)) with probability at least 1 - (max n_max 1 : ℝ≥0∞)⁻¹ ^ c, decoding the exact specification result, preserving Rep, and leaving caller memory outside [base, base + whpSpace c U V w n_max) untouched relative to both the prefix state and the caller's initial memory x.mem (Modifies).