Binary encodings for iterative Cook–Mertz #
The register bank is stored once as a flat finite table. A continuation frame contains binary round and register indices, a phase bit and one coefficient. No register bank, tree or path is stored in a frame. The final bound charges list and pair framing, including the current mode.
These are bounds on an actual injective representation. Native computation of the controller's components and implicit node queries remain separate obligations.
Main definitions #
Cslib.TreeEval.Ary.Iter.encCfg: compact state encoding, parameterized by a scalar encoding.Cslib.TreeEval.Ary.Iter.encField: binary residues in a nonzero modular field.
Main results #
Cslib.TreeEval.Ary.Iter.length_encCfg_le: one bank plus a linear number of small frames.Cslib.TreeEval.Ary.Iter.length_encCfg_runFrom_le: every clocked prefix has that bound.Cslib.TreeEval.Ary.Iter.length_encCfg_packed_runFrom_le_of_rounds_le: the selected packed parameters give linear bank size plus logarithmic control per level at every clock.
The exact linear allowance for one bounded continuation frame.
The compact representation bound holds at every clock of a root call.
Binary encoding in the modulus selected by the packed parameter construction.
The actual flat bank encoding has linear payload size for the selected parameters.
The concrete packed representation has linear bank cost and small per-level control cost.
For fixed fan-in, chunkWidth d b = (d*b).size, so the first term is linear in b and each
frame uses logarithmically many bits in b and the round count.
The selected packed representation satisfies the bound at every root-call clock.
At most one round per field element keeps each frame logarithmic in the value width.
The complete packed state has linear bank size plus logarithmic control per tree level. The explicit round-count premise holds for an enumeration without repeated field units.
At every clock, the packed state has linear bank size plus logarithmic control per tree level when the rounds fit the field.