Native parameters for Chan–He preprocessing #
Original native programs and proofs. The parameter meanings are the existing finite mathematical
Chan–He definitions, with magnitude bound 2U after the distinct-position frontend.
All loops and arithmetic are instructions; the program is fixed for each exponent κ.
Main definitions #
Parameters.program: read the input header and compute the exact parameters.Parameters.Output: identify the unsigned output registers.
Main results #
Parameters.runs_input: native execution from signed-encoded input with derived fits.Parameters.two_pow_width_le: words at the canonical width have polynomial magnitude.
References #
A bound covering arithmetic, unsuccessful loop tests, and all output words.
Unsigned input length.
Original magnitude bound U.
Label bits for magnitude bound 2U.
Recursion height.
Recursion fuel.
Number of desired primes.
Upper bound on candidate primes.
Common packed convolution length, 8m².
Magnitude of the padding for the doubled frontend bound, 4U+1.
Constant one.
Constant two.
Constant three.
Constant four.
Constant five.
Constant eight.
Input length plus two.
Consumed logarithm argument.
Floor logarithm of input length.
Integer square root of input length.
Number of desired primes plus one.
Arithmetic scratch.
Successor square-root counter.
Square of that counter.
Square-root test bound.
Exact mathematical outputs; every output is an ordinary unsigned word.
One header load, constants, and the polynomial base.
Unroll only the compile-time fixed exponent κ, never the input length or word width.
Unlike WordRAM.Power.program, which loops over a runtime exponent register using counter and
constant-one scratch registers, power κ emits κ + 1 straight-line instructions over magnitude
and base alone and requires no Fits w (κ + 1) budget premise at empty input (n = 0).
Register selection for a floor/ceiling logarithm with output dst.
Register selection for successive squares.
The instruction sequence after the power computation.
Fixed 24-register native code for each fixed polynomial magnitude exponent.
An explicit charged bound, including all header reads, copies and setup. Halt adds one.
Read the native unsigned header and compute all parameters, preserving every memory cell.
This local theorem is discharged from a logarithmic width in runs_input.
A polynomial scale for bounding every parameter intermediate.
Positive logarithmic word-width threshold for the complete parameter computation.
The width requirement is satisfiable even at empty input and exponent zero.
Every local fit premise follows from the positive logarithmic width.
Native run from actual signed input initialization. No parameters or arithmetic routines
are supplied as advice. The returned state identifies all outputs and keeps all input memory.
The flat program has 24 registers and depends only on κ; halting adds one instruction.
The code is the same at every word width.
Canonical-width executions use only polynomially bounded integers, including memory addresses, loop counters, and final unsuccessful tests.