Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.ResizableSuccinct.Dispatch.ExecCtx

Shared Register Context, Retained Witnesses, and Active-Epoch Prologues #

Provides the shared parameter-free register space Fin rEpoch, retained RealizesBounded .exact subroutine witnesses, ABI register conventions, InEpochValid / 1 · OPT inEpochPeakWords specifications, CompactedSplitRep frame lemmas, and verified active-epoch context-loading and quotient-hash evaluation subroutines (loadActiveCtxCode, evalKeyHashCode) consumed by Dispatch.lean (in-epoch operations) and epoch migration.

Main definitions #

Main results #

References #

Section 1: Retained RealizesBounded Witnesses, Register Layout, and Exchange Factor #

Combined parameter-free scratch register bank size across the eleven RealizesBounded subroutines used in in-epoch operation dispatch.

Parameter-free register budget 88 + scratchEpoch for in-epoch resizable succinct dispatch (0..24 fixed working/ABI registers, 32..50 HashParams, 52..87 CompParams, 88.. scratch).

Canonical embedding Fin 88 → Fin rEpoch for fixed control, ABI, and parameter registers.

@[reducible, inline]

Persistent base-address register 0.

@[reducible, inline]

Hardware frontier tracking register 1.

@[reducible, inline]

Operation tag input register 2 (0 = query, 1 = insert, 2 = delete).

@[reducible, inline]

Input key register 3 (u.val).

@[reducible, inline]

Input value register 4 (v for insert, 0 otherwise).

@[reducible, inline]

Output presence tag register 5 (0 = none, 1 = some).

@[reducible, inline]

Output value register 6 (v if found, 0 otherwise).

@[reducible, inline]

Word count delta register 7 for growZeroCode / shrinkCode.

@[reducible, inline]

Result pointer register 8 for growZeroCode.

@[reducible, inline]

Current address / temporary offset register 9.

@[reducible, inline]

Loop index / offset scratch register 10.

@[reducible, inline]

Constant-0 scratch register 11.

@[reducible, inline]

Constant-1 scratch register 12.

@[reducible, inline]

Active element count n register 13.

@[reducible, inline]

Compacted item-stream base address base + offCompItems register 14.

@[reducible, inline]

Quotient-hash base address base + epochHdrWords register 15.

@[reducible, inline]

Limb-scratch base address base + offScratch register 16.

@[reducible, inline]

Extracted quotient input register 17 for evalHashGenProg.

@[reducible, inline]

Evaluated hash output register 18 from evalHashGenProg.

@[reducible, inline]

Saved primary hash value h_q register 19 across two-phase deletion.

@[reducible, inline]

Bucket search found flag register 20.

@[reducible, inline]

Deletion logical slot index j_del register 21.

@[reducible, inline]

Resolved physical slot index phys register 22.

@[reducible, inline]

Feistel bucket index b register 23.

@[reducible, inline]

Micro-bucket index m register 24.

Register bank 32..50 holding the 19 words of RuntimeReducedKWise.HashParams.

Register bank 52..87 holding the 36 words of CompParams.

Combined parameter-free exchange factor ≥ 1 dominating all eleven RealizesBounded subroutines.

Section 2: Generic Register-Wiring Combinators and Emitted Subroutines #

@[reducible, inline]

Single-register source map Fin 1 → Fin r selecting reg.

@[reducible, inline]
abbrev Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.pairSrc {r k₁ k₂ : ℕ} (s₁ : Fin k₁ → Fin r) (s₂ : Fin k₂ → Fin r) :
Fin (k₁ + k₂) → Fin r

Concatenation of two register source maps Fin k₁ → Fin r and Fin k₂ → Fin r.

Register-bank encoding predicate decoupled from syntactic WordEncoding.width equality.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.regs_cp_eq {r : ℕ} {x : WordRAM.Resizable.RData r} {s : Fin 36 → Fin r} {cp : CompParams} (h : ∀ (i : Fin 36), x.regs (s i) = cp i) :
RegsEncode x s cp
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.regs_pairSrc {r : ℕ} {α β : Type} [WordRAM.Realization.WordEncoding α] [WordRAM.Realization.WordEncoding β] {k₁ k₂ : ℕ} {x : WordRAM.Resizable.RData r} {s₁ : Fin k₁ → Fin r} {s₂ : Fin k₂ → Fin r} {a : α} {b : β} (h₁ : RegsEncode x s₁ a) (h₂ : RegsEncode x s₂ b) :
RegsEncode x (pairSrc s₁ s₂) (a, b)
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.pairSrc_forall {r : ℕ} {P : Fin r → Prop} {k₁ k₂ : ℕ} {s₁ : Fin k₁ → Fin r} {s₂ : Fin k₂ → Fin r} (h₁ : ∀ (i : Fin k₁), P (s₁ i)) (h₂ : ∀ (j : Fin k₂), P (s₂ j)) (i : Fin (k₁ + k₂)) :
P (pairSrc s₁ s₂ i)
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.pairSrc_lt {r bound k₁ k₂ : ℕ} {s₁ : Fin k₁ → Fin r} {s₂ : Fin k₂ → Fin r} (h₁ : ∀ (i : Fin k₁), ↑(s₁ i) < bound) (h₂ : ∀ (j : Fin k₂), ↑(s₂ j) < bound) (i : Fin (k₁ + k₂)) :
↑(pairSrc s₁ s₂ i) < bound
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.pairSrc_ne_reg {r k₁ k₂ : ℕ} {reg : Fin r} {s₁ : Fin k₁ → Fin r} {s₂ : Fin k₂ → Fin r} (h₁ : ∀ (i : Fin k₁), s₁ i ≠ reg) (h₂ : ∀ (j : Fin k₂), s₂ j ≠ reg) (i : Fin (k₁ + k₂)) :
pairSrc s₁ s₂ i ≠ reg
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.pairSrc_ne_outs {r k₁ k₂ l : ℕ} {s₁ : Fin k₁ → Fin r} {s₂ : Fin k₂ → Fin r} {outs : Fin l → Fin r} (h₁ : ∀ (i : Fin k₁) (a : Fin l), s₁ i ≠ outs a) (h₂ : ∀ (j : Fin k₂) (a : Fin l), s₂ j ≠ outs a) (i : Fin (k₁ + k₂)) (a : Fin l) :
pairSrc s₁ s₂ i ≠ outs a
def Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.mkTmp {r baseOff l s : ℕ} (outs : Fin l → Fin r) (hb : baseOff + (l + s + 1) ≤ r) (j : Fin (l + s + 1)) :
Fin r

Scratch-and-output register map placing l outputs in outs and the remaining s + 1 temporaries consecutively starting at baseOff + l inside Fin r.

@[simp]
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.mkTmp_castAdd {r baseOff l s : ℕ} (outs : Fin l → Fin r) (hb : baseOff + (l + s + 1) ≤ r) (i : Fin l) :
mkTmp outs hb (Fin.castAdd (s + 1) i) = outs i
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.mkTmp_injective {r baseOff l s : ℕ} {outs : Fin l → Fin r} (hb : baseOff + (l + s + 1) ≤ r) (hinj : Function.Injective outs) (hlt : ∀ (i : Fin l), ↑(outs i) < baseOff) :
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.src_ne_mkTmp {r baseOff k l s : ℕ} {src : Fin k → Fin r} {outs : Fin l → Fin r} (hb : baseOff + (l + s + 1) ≤ r) (hsrc_lt : ∀ (i : Fin k), ↑(src i) < baseOff) (hdisj : ∀ (i : Fin k) (a : Fin l), src i ≠ outs a) (i : Fin k) (j : Fin (l + s + 1)) :
src i ≠ mkTmp outs hb j
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.mkTmp_ne_reg {r baseOff l s : ℕ} {outs : Fin l → Fin r} (hb : baseOff + (l + s + 1) ≤ r) {reg : Fin r} (hreg_lt : ↑reg < baseOff) (hne : ∀ (a : Fin l), outs a ≠ reg) (j : Fin (l + s + 1)) :
mkTmp outs hb j ≠ reg
@[reducible, inline]

Input register wiring (hp, hashBase, scratchBase, q) for wEvalHash.

Output and scratch register wiring for wEvalHash (writing rHashOut).

@[reducible, inline]

Input register wiring ((cp, (base, itemBase)), (u, h_q)) for wQuery and wInsSearch.

Output and scratch register wiring for wQuery (writing rOutTag, rOutVal).

@[reducible, inline]

Input register wiring (((cp, (base, itemBase)), phys), v) for wWriteVal.

Output and scratch register wiring for wWriteVal.

@[reducible, inline]

Input register wiring (cp, n) for wGrowDelta.

Output and scratch register wiring for wGrowDelta (writing rK).

@[reducible, inline]
noncomputable abbrev Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.srcInsAppend :
Fin (36 + (1 + 1) + (1 + 1) + (1 + 1)) → Fin rEpoch

Input register wiring (((cp, (base, itemBase)), (b, m)), (u, v)) for wInsAppend.

@[reducible, inline]

Input register wiring ((cp, (base, itemBase)), (u, h_q)) for wDelPrep.

@[reducible, inline]
noncomputable abbrev Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.srcDelFin :
Fin (36 + (1 + 1) + (1 + 1) + (1 + 1 + 1) + 1) → Fin rEpoch

Input register wiring ((srcDelPrep, ((found, j_del), phys)), h_q_last) for wDelFin.

Output and scratch register wiring for wDelFin.

@[reducible, inline]

Input register wiring (cp, n) for wShrinkDelta.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.tmpDelPrep_ne_reg {reg : Fin rEpoch} (h88 : ↑reg < 88) (hf : reg ≠ rFound) (hj : reg ≠ rJDel) (hp : reg ≠ rPhys) (hq : reg ≠ rQuot) (j : Fin ((Nat.succ 0).succ.succ.succ + wDelPrep.scratchSize + 1)) :

Section 3: Offset Memory Primitives and Active-Epoch Prologues #

Load mem (regs rAddr + off) into rDst using rTmp as scratch (3 instructions).

Store regs rSrc into mem (regs rAddr + off) using rTmp as scratch (3 instructions).

Load k + 1 consecutive words starting at regs rAddr + startOff into dst 0 .. dst k using rTmp as address scratch (3 * (k + 1) instructions).

Active-epoch prologue (0 < n): loads HashParams and CompParams from [base + 8, +55), evaluates compactedItemWords U V w N n via wItemWords, and populates rScratchBase, rHashBase, rItemBase, and rFr = x.frontier.

Section 4: Register Disjointness and Prologue Width-Independence (¬ReadsWidth) #

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.not_readsWidth_loadBlockUpTo {r m : ℕ} (rAddr rTmp : Fin r) (dst : Fin m → Fin r) (startOff k : ℕ) (hk : k < m) :
¬(loadBlockUpTo rAddr rTmp dst startOff k hk).ReadsWidth

Section 5: ABI Encoding, InEpochValid, 1 · OPT Peak Space, Potential, and Charges #

Standalone register encoding for Dynamic.Op U on Fin rEpoch.

Partial argument-matching predicate for callers of inEpochOpCode.

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

Extract the target key u : Fin U of a dynamic dictionary operation.

Necessary and sufficient condition for o : Dynamic.Op U to execute within the current epoch of capacity N without triggering an epoch capacity migration: o is a valid dictionary operation and the post-step cardinality remains valid for epoch N.

Exact peak epoch word footprint across an in-epoch operation o, equal to compactedEpochWords U V w N (max n n') where n' is the post-step live key count.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.inEpochPeakWords_le_succinctWords {U V w N n : ℕ} {s_abs : State U} {o : Dynamic.Op U} (hw : 0 < w) (hU : WordRAM.Fits w U) (hU_pos : 0 < U) (hV_pos : 0 < V) (hev : EpochValid U n N) (hval : InEpochValid V N s_abs o) :
inEpochPeakWords V w N n s_abs o ≤ Dynamic.succinctWords 1355 441 U V w (max n (dom ((Dynamic.spec U V U).stepFn s_abs o).1).card)

Stepwise 1 · OPT peak word-space bound (inEpochPeakWords_le_succinctWords): under EpochValid U n N and InEpochValid V N s_abs o, the peak hardware word footprint above base never exceeds Dynamic.succinctWords 1355 441 U V w (max n n') (1 · OPT).

Scaled slab/tail hysteresis potential (98 * inEpochFactor) * slotPotential for in-epoch operations on the Resizable Word RAM.

Parameter-free base instruction charge before adding (12 * inEpochFactor) * probeExcess (evalMemBound 3 = 45151, so two hash evaluations plus bucket/slot updates cost at most 90800 * inEpochFactor + 230 instructions).

Parameter-free $O(1)$ expected amortized instruction charge per in-epoch operation under a uniform QuotHashSeed U N (5 bounds expected probeExcess, 12 * 5 = 60).

Section 6: Low-Level Execution and Frame Helpers #

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.execWitness {r k l : ℕ} {δ α : Type} {p : δ → Memory.Prog α} {input : δ ↪ Fin k → ℕ} {output : α ↪ Fin l → ℕ} {safe : ℕ → δ → Memory.State → Prop} (W : WordRAM.Realization.RealizesBounded.Witness WordRAM.Basis.exact p input output safe fun (x : δ) (x_1 : Memory.State) => 0) {factor : ℕ} (hfac : W.factor ≤ factor) (rFr : Fin r) (src : Fin k → Fin r) (tmp : Fin (l + W.scratchSize + 1) → Fin r) (hi : Function.Injective tmp) (hd : ∀ (i : Fin k) (j : Fin (l + W.scratchSize + 1)), src i ≠ tmp j) (hf : ∀ (j : Fin (l + W.scratchSize + 1)), tmp j ≠ rFr) (hs : ∀ (i : Fin k), src i ≠ rFr) {w L_peak : ℕ} (d : δ) {x : WordRAM.Resizable.RData r} (hx : WordRAM.Resizable.RData.Bounded w x) (hL_peak : x.frontier ≤ L_peak) (hin : x.regs ∘ src = input d) (hsafe : safe w d (WordRAM.Realization.memoryState rFr x.toData)) (hv : (Memory.spec w).ValidHistory (WordRAM.Realization.memoryState rFr x.toData) ((Memory.spec w).clientHistory (WordRAM.Realization.memoryState rFr x.toData) (p d))) (hnoalloc : ((Memory.spec 0).clientState (WordRAM.Realization.memoryState rFr x.toData) (p d)).frontier ≤ x.frontier) :
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.loadAtOffCode_exec {r w L_peak base off : ℕ} {rAddr rDst rTmp : Fin r} {x : WordRAM.Resizable.RData r} (hx : WordRAM.Resizable.RData.Bounded w x) (hL : x.frontier ≤ L_peak) (haddr_ne_tmp : rAddr ≠ rTmp) (hbase : x.regs rAddr = base) (hoff_fit : WordRAM.Fits w off) (hlt : base + off < x.frontier) :
have y := (x.set rTmp (base + off)).set rDst (x.mem (base + off)); (WordRAM.Resizable.RDemonicExec w L_peak (loadAtOffCode rAddr rDst rTmp off) x 3 fun (x : WordRAM.Resizable.RData r) => x = y) ∧ WordRAM.Resizable.RData.Bounded w y
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.storeAtOffCode_exec {r w L_peak base off val : ℕ} {rAddr rSrc rTmp : Fin r} {x : WordRAM.Resizable.RData r} (hx : WordRAM.Resizable.RData.Bounded w x) (hL : x.frontier ≤ L_peak) (haddr_ne_tmp : rAddr ≠ rTmp) (hs_ne_tmp : rSrc ≠ rTmp) (hbase : x.regs rAddr = base) (hsrc : x.regs rSrc = val) (hoff_fit : WordRAM.Fits w off) (hlt : base + off < x.frontier) :
have y := (x.set rTmp (base + off)).write (base + off) val; (WordRAM.Resizable.RDemonicExec w L_peak (storeAtOffCode rAddr rSrc rTmp off) x 3 fun (x : WordRAM.Resizable.RData r) => x = y) ∧ WordRAM.Resizable.RData.Bounded w y
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.loadBlockUpTo_exec {r m w L_peak base : ℕ} (rAddr rTmp : Fin r) (haddr_ne_tmp : rAddr ≠ rTmp) (dst : Fin m → Fin r) (hinj : Function.Injective dst) (hne_base : ∀ (i : Fin m), dst i ≠ rAddr) (hne_cur : ∀ (i : Fin m), dst i ≠ rTmp) (startOff k : ℕ) (hk : k < m) {x : WordRAM.Resizable.RData r} (hx : WordRAM.Resizable.RData.Bounded w x) (hL : x.frontier ≤ L_peak) (hbase : x.regs rAddr = base) (hbound : base + startOff + (k + 1) ≤ x.frontier) :
∃ (y : WordRAM.Resizable.RData r), (WordRAM.Resizable.RDemonicExec w L_peak (loadBlockUpTo rAddr rTmp dst startOff k hk) x (3 * (k + 1)) fun (x : WordRAM.Resizable.RData r) => x = y) ∧ WordRAM.Resizable.RData.Bounded w y ∧ y.mem = x.mem ∧ y.frontier = x.frontier ∧ (∀ (i : Fin m), ↑i ≤ k → y.regs (dst i) = x.mem (base + startOff + ↑i)) ∧ ∀ (reg : Fin r), reg ≠ rTmp → (∀ (i : Fin m), dst i ≠ reg) → y.regs reg = x.regs reg

Section 7: CompactedSplitRep Frame Lemmas (Scratch, CompOpFrame, Shrink, Header n) #

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.rootHeaderValid_bounds {U V w N n n_init base r : ℕ} {x : WordRAM.Resizable.RData r} (hx : WordRAM.Resizable.RData.Bounded w x) (hhdr : RootHeaderValid U V w N n n_init base x.mem) :
0 < w ∧ U < 2 ^ w ∧ V ≤ 2 ^ w
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compactedSplitRep_of_scratch_mod {U V w N n n_init base : ℕ} {θ : Succinct.QuotHashSeed U N} {s_abs : State U} {s₀ s₁ : Memory.State} (hw : 0 < w) (hsplit : CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs s₀) (_hfr : s₁.frontier = s₀.frontier) (hout : ∀ (a : ℕ), a < base + offScratch ∨ base + epochHdrWords ≤ a → s₁.mem a = s₀.mem a) :
CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs s₁
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.hdr_params_hash_of_opFrame {U V w N n n_init m_cap base : ℕ} {θ : Succinct.QuotHashSeed U N} {s s' : Memory.State} (hhdr : RootHeaderValid U V w N n n_init base s.mem) (hpar : EpochParamsStored U V w N base s.mem) (hhash : HashFamily.WordRAM.ReducedKWise.Rep (base + epochHdrWords) w (Succinct.qBits U N) (Succinct.hashB N) (SuccinctBucket.totalMicroBits N) 3 θ s.mem) (hfr : CompOpFrame base (base + offCompItems U w N) U V w N m_cap s s') :
RootHeaderValid U V w N n n_init base s'.mem ∧ EpochParamsStored U V w N base s'.mem ∧ HashFamily.WordRAM.ReducedKWise.Rep (base + epochHdrWords) w (Succinct.qBits U N) (Succinct.hashB N) (SuccinctBucket.totalMicroBits N) 3 θ s'.mem ∧ ∀ addr < base, s'.mem addr = s.mem addr
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.update_hdr_n_preserves_split {U V w N n_old n_new n_init base : ℕ} {θ : Succinct.QuotHashSeed U N} {s_abs : State U} {s_fix : Memory.State} {mem : ℕ → ℕ} {fr : ℕ} (hw : 0 < w) (hhdr : RootHeaderValid U V w N n_old n_init base mem) (hpar : EpochParamsStored U V w N base mem) (hhash : HashFamily.WordRAM.ReducedKWise.Rep (base + epochHdrWords) w (Succinct.qBits U N) (Succinct.hashB N) (SuccinctBucket.totalMicroBits N) 3 θ mem) (hcard : (dom s_abs).card = n_new) (hvals : ValuesBounded V s_abs) (hinv : Succinct.DictStateInv U V (ghostW w) N 0 θ s_abs s_fix) (hcpl : FixedCoupled base (base + offCompItems U w N) U V w N s_fix { mem := mem, frontier := fr }) :
have mem' := Function.update mem (base + 6) n_new; CompactedSplitRep base (base + offCompItems U w N) U V w N n_new n_init θ s_abs { mem := mem', frontier := fr } ∧ compGmAt base U w N mem' = compGmAt base U w N mem

Section 8: Execution of loadActiveCtxCode and evalKeyHashCode #

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.loadActiveCtxCode_exec {U V w N n n_init base L_peak : ℕ} {θ : Succinct.QuotHashSeed U N} {s_abs : State U} {x : WordRAM.Resizable.RData rEpoch} (hx : WordRAM.Resizable.RData.Bounded w x) (hn : 0 < n) (hev : EpochValid U n N) (hfr : x.frontier = base + compactedEpochWords U V w N n) (hL : x.frontier ≤ L_peak) (hsplit : CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs { mem := x.mem, frontier := x.frontier }) (hbase : x.regs rBase = base) (hcnt : x.regs rCnt = n) :
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.runEvalHashAtQuot {U V w N n n_init base L_peak q : ℕ} {θ : Succinct.QuotHashSeed U N} {s_abs : State U} {x : WordRAM.Resizable.RData rEpoch} (hx : WordRAM.Resizable.RData.Bounded w x) (hn : 0 < n) (hev : EpochValid U n N) (hfr : x.frontier = base + compactedEpochWords U V w N n) (hL : x.frontier ≤ L_peak) (hsplit : CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs { mem := x.mem, frontier := x.frontier }) (hrFr : x.regs rFr = x.frontier) (hrHash : x.regs rHashBase = base + epochHdrWords) (hrScr : x.regs rScratchBase = base + offScratch) (hrQuot : x.regs rQuot = q) (hhp : ∀ (i : Fin 19), x.regs (hpReg i) = HashFamily.WordRAM.RuntimeReducedKWise.mkHashParams w (epochQBits U N) (epochHashB N) (SuccinctBucket.totalMicroBits N) 3 i) (hq_lt : q < 2 ^ FeistelQuotient.quotientBits U N) :
∃ (y : WordRAM.Resizable.RData rEpoch), (WordRAM.Resizable.RDemonicExec w L_peak (WordRAM.Resizable.RCode.ofCode (wEvalHash.code rFr srcEvalHash tmpEvalHash)) x (45206 * inEpochFactor) fun (x : WordRAM.Resizable.RData rEpoch) => x = y) ∧ WordRAM.Resizable.RData.Bounded w y ∧ y.frontier = x.frontier ∧ y.regs rFr = y.frontier ∧ y.regs rHashOut = Succinct.hValOfSeed U N θ q ∧ CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs { mem := y.mem, frontier := y.frontier } ∧ (∀ (a : ℕ), a < base + offScratch ∨ base + epochHdrWords ≤ a → y.mem a = x.mem a) ∧ ∀ (reg : Fin rEpoch), reg ≠ rFr → ↑reg < 88 → reg ≠ rHashOut → y.regs reg = x.regs reg
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.evalKeyHashCode_exec {U V w N n n_init base L_peak : ℕ} {θ : Succinct.QuotHashSeed U N} {s_abs : State U} (u : Fin U) {x : WordRAM.Resizable.RData rEpoch} (hx : WordRAM.Resizable.RData.Bounded w x) (hn : 0 < n) (hev : EpochValid U n N) (hfr : x.frontier = base + compactedEpochWords U V w N n) (hL : x.frontier ≤ L_peak) (hsplit : CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs { mem := x.mem, frontier := x.frontier }) (hrFr : x.regs rFr = x.frontier) (hrHash : x.regs rHashBase = base + epochHdrWords) (hrScr : x.regs rScratchBase = base + offScratch) (hrArgU : x.regs rArgU = ↑u) (hhp : ∀ (i : Fin 19), x.regs (hpReg i) = HashFamily.WordRAM.RuntimeReducedKWise.mkHashParams w (epochQBits U N) (epochHashB N) (SuccinctBucket.totalMicroBits N) 3 i) (hcp : ∀ (i : Fin 36), x.regs (cpReg i) = mkCompParams U V w N i) :
∃ (y : WordRAM.Resizable.RData rEpoch), (WordRAM.Resizable.RDemonicExec w L_peak evalKeyHashCode x (45207 * inEpochFactor) fun (x : WordRAM.Resizable.RData rEpoch) => x = y) ∧ WordRAM.Resizable.RData.Bounded w y ∧ y.frontier = x.frontier ∧ y.regs rFr = y.frontier ∧ y.regs rHashOut = Succinct.hValOfSeed U N θ (FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits N) ↑u) ∧ CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs { mem := y.mem, frontier := y.frontier } ∧ (∀ (a : ℕ), a < base + offScratch ∨ base + epochHdrWords ≤ a → y.mem a = x.mem a) ∧ ∀ (reg : Fin rEpoch), reg ≠ rFr → ↑reg < 88 → reg ≠ rQuot → reg ≠ rHashOut → y.regs reg = x.regs reg

Section 9: Epoch Environment, Global-Metadata Frame, and growZeroPost Boundedness #

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compEpochEnv_of_split {U V w N n n_init base : ℕ} {θ : Succinct.QuotHashSeed U N} {s_abs : State U} {x : WordRAM.Resizable.RData rEpoch} (hx : WordRAM.Resizable.RData.Bounded w x) (hn : 0 < n) (hev : EpochValid U n N) (hfr : x.frontier = base + compactedEpochWords U V w N n) (hsplit : CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs { mem := x.mem, frontier := x.frontier }) :
CompEpochEnv U V w N base (base + offCompItems U w N) n { mem := x.mem, frontier := x.frontier } ∧ WordRAM.Fits w (base + offCompItems U w N)
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compGmAt_eq_of_scratch_mod {U w N base : ℕ} (hw : 0 < w) {mem₁ mem₂ : ℕ → ℕ} (hout : ∀ (a : ℕ), a < base + offScratch ∨ base + epochHdrWords ≤ a → mem₁ a = mem₂ a) :
compGmAt base U w N mem₁ = compGmAt base U w N mem₂