Sufficient physical width from original pruned-query inputs #
Main definitions #
PrunedQuery.admissionWidth: three bits beyond the binary ceiling logarithm of the combined original magnitude and address budgets.
Main results #
PrunedQuery.runs_wide: at every admitted physical width, the same finite program starts from actual initialized input, returns every requested result and halts within the charged bound.
Input fit is a conclusion, including both scalar headers and the machine's length word. This component's threshold is logarithmic in its explicit budgets. Relating the encoding depth, query count and magnitudes to a whole 3SUM input is separate composition work under #1394.
A positive threshold for the physical target width, computed from original parameters. The code does not inspect this number or the machine width.
Instances For
The physical threshold is nonzero even for empty inputs and zero operands.
Mathlib's ceiling logarithm derives both actual address-word fit and the signed source envelope, retaining the two extra bits charged by the existing signed arithmetic kernels.
A complete initialized run at every sufficiently wide physical width, with guaranteed input fit, a shared pre-halt memory witness, charged halt, all output values and outside preservation.