Runtime Root-Header Copy, Logarithmic Scales, Bucket Scales, and GlobalMeta Bases #
Implements the 8-word root-header writer (writeRootHdrSubProg) together with the read-only
evaluators for (logN, qBitsVal, llf) (computeLogScalesProg), compacted bucket/slab/tail scales
(computeCompScalesProg), and GlobalMeta region base offsets (computeGmBasesProg).
Root Header Copy (writeRootHdrSubProg) #
Copy the 5 static root-header words [U - 1, V - 1, w, keyBits U, valBits V] from
[srcHdrBase, +5) and write the 8-word root header at [dstMetaBase, +8), returning
(w, (keyBits U, valBits V)).
Precondition for writeRootHdrSubProg.
writeRootHdrSubProg compiles via RealizesBounded .exact.
Functional specification and ≤ 13 memory-cost bound for writeRootHdrSubProg.
Logarithmic Scales (computeLogScalesProg) #
Branching formula for globalMetaLen N from gmSlabMetaBase N + maxFullSlabs N * 4.
Pure arithmetic bounds for computeLogScalesProg and computeCompScalesProg.
Precondition for computeLogScalesProg.
Functional specification and ≤ 3 * N + 6 cost bound for computeLogScalesProg.
computeLogScalesProg compiles via RealizesBounded .exact.
Bucket/Slab Scales and GlobalMeta Bases (computeCompScalesProg, computeGmBasesProg) #
Precondition for computeCompScalesProg.
Pure arithmetic invariants for computeCompScalesProg and writeCompSubDProg.
Functional specification and ≤ N cost bound for computeCompScalesProg.
computeCompScalesProg compiles via RealizesBounded .exact.
Precondition for computeGmBasesProg.
Functional specification and zero-cost certificate for computeGmBasesProg.
computeGmBasesProg compiles via RealizesBounded .exact.