Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.ResizableSuccinct.Dispatch.BucketOps.CoordsDelta

Overflow-Free Word-Delta Evaluators, Feistel Coordinates, and Dispatch Helpers #

Implements compGrowDeltaGenProg, compShrinkDeltaGenProg, compFeistelCoordsProg, the shared precondition CompQueryWithHashPre, and internal import all helpers (gmAt_prependIfIndexedProg, compDispatch_spec) shared across the bucket-level operations.

Main definitions #

@[reducible, inline]

Found flag (1 on hit, 0 on miss) of a bucket-search result ((found, j), phys).

Section 1: Overflow-Free Word-Delta Evaluators and Feistel Coordinate Extraction #

Bound Fits w (wOffQ q v w m + 3) whenever 4 + compactedItemWords U V w N m < 2 ^ w (satisfied automatically inside any addressable active epoch since epochHdrWords = 225 ≥ 4).

Evaluate compactedItemWords U V w N (n + 1) - compactedItemWords U V w N n (∈ {0, 1, 2}) overflow-free in Memory.Prog (¬ReadsWidth).

Evaluate compactedItemWords U V w N n - compactedItemWords U V w N (n - 1) (∈ {0, 1, 2}) overflow-free in Memory.Prog (¬ReadsWidth).

Shared Feistel (b, q, m) coordinate extractor from (u, h_q) (¬ReadsWidth).

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.fits_compFeistelCoords {U V w N u h_q metaBase : ℕ} {s : Memory.State} (hw : 0 < w) (hnU : N ≤ U) (hU : U < 2 ^ w) (hV : V ≤ 2 ^ w) (hfit_off : WordRAM.Fits w (metaBase + offCompItems U w N)) (hu : WordRAM.Fits w u) (hhq : h_q < 2 ^ SuccinctBucket.totalMicroBits N) :

Precondition for compQueryWithHashGenProg, compInsertSearchWithHashGenProg, and compDeletePrepWithHashGenProg.