Word-RAM Register Layout and Lowered Cluster Code for the Quotient Filter #
This module defines the register layout (rQF, qfReg, kwiseMap), multiply-shift remainder
seed sampling and evaluation (remInitCode, remEvalCode), and the lowered Word-RAM cluster
subroutine (clusterCode) assembled from realizes_clusterOp for the two-stage quotient filter.
Main definitions #
rQF,qfReg,kwiseMap: register count and register-bank embeddings separatingReducedKWise(0..239),SubroutineCodecontrol (240..247), and realized cluster scratch registers (248..).remInitCode,remInitData,remInitComp: randomized Word-RAM snippet andProbCompmodel sampling the multiply-shift remainder seed.remEvalCode: deterministic Word-RAM snippet evaluatingremHashin45instructions.clusterCode,clusterFactor: deterministic Word-RAM snippet stagingmkClusterInputinto registers10..24and runningrealizes_clusterOp.code, with its instruction exchange factor.
Main results #
remInitCode_execRand,map_extractRemSeed_eval_remInitComp:ExecRandcoupling and uniformRemSeedlaw forremInitCode.remEvalCode_exec:45-instruction execution and register-frame specification forremEvalCode.clusterCode_execWithin:19 + clusterFactor * (11 * ℓ + 14)-instruction execution specification couplingclusterCodetoclusterOpProgunderFilterInv.
Register count for the Word-RAM quotient filter: 0..239 shared with ReducedKWise,
240..247 dedicated to SubroutineCode control and operation tags, and
248 .. 248 + realizes_clusterOp.scratchSize dedicated to the realized Memory.Prog scratch
registers.
Sample the remainder seed γ : RemSeed w₀ uniformly and store it at remSeedAddr base w w₀ n
using 5 instructions (1 rand call).
Closed-form machine state after remInitCode w w₀ n samples γ.
Exact ProbComp semantics of remInitCode w w₀ n.
Word-RAM snippet computing (remHash U w₀ k γ u).val into register qfReg 3 from
qfReg 0 = base and qfReg 1 = u.val, using ReducedKWise.reduceKeyCode w₀ w₀ in 45
deterministic instructions.
Exchange factor of the realized cluster Memory.Prog program.