Fast-Mode Slot-Array Accessors (quotArr, valArr, backPtr) and Coordinate Hashing #
This module implements the parameter-free Memory.Prog subroutines and Realizes .exact
certificates for slot-indexed packed arrays and coordinate-hash evaluation on FastMemRep:
- Quotient and value array accessors (
readQuotGenProg,writeQuotGenProg,readValGenProg,writeValGenProg). - Backyard pointer array accessors (
readBackPtrGenProg,writeBackPtrGenProg). - Composite coordinate address and hash helpers (
physSlotGenProg,rKeyAtGenProg,fpAtGenProg).
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.readQuotGenProg,writeQuotGenProg,readValGenProg,writeValGenProg,readBackPtrGenProg,writeBackPtrGenProg,physSlotGenProg,PhysSlotPre,rKeyAtGenProg,CoordHashPre,fpAtGenProg.
Main results #
Section 1: quotArr and valArr Accessors #
Read fs.quotArr p (p < n_max, d = ((cp, base), p)).
Write fs.quotArr p := q_val (p < n_max, d = (((cp, base), p), q_val)).
Read fs.valArr p (p < n_max, d = ((cp, base), p)).
Write fs.valArr p := v_val (p < n_max, d = (((cp, base), p), v_val)).
Section 2: backPtr Accessors #
Read fs.backPtr b k (b < M, k < capBackWhp n_max, d = (((cp, base), b), k)).
Write fs.backPtr b k := pSlot (d = ((((cp, base), b), k), pSlot)).
Section 3: Composite Coordinate Helpers (physSlot, rKeyAt, fpAt) #
Compute fs.physSlot n_max b loc (d = (((cp, base), b), loc)).
Precondition for physSlotGenProg: (b, loc) in bounds and backyard pointer < poolSize.
Precondition for rKeyAtGenProg and fpAtGenProg on coordinate (b, loc).