Summing the native ExactTriangle preparation costs #
The initialized preparation program computes the catalogue and writes every instance's record
and two matrices within 690n²Dg charged instructions, including halt, in the source's admissible
parameter regime. The bound uses the existing finite instance count. Prime selection and solving
the prepared instances belong to the outer ExactTriangle host.
Main results #
PreparationBounds.matrix_writing_total_le: both native matrix writers over all actual instances, including an explicit per-instance overhead.PreparationBounds.residue_class_parameter_time_le: signed residues, class scans and parameter arithmetic fit the preparation scale in the source's admitted regime.PreparationBounds.catalogue_time_le: descriptor enumeration, including empty-class costs.PreparationBounds.timeBound_le: the complete budget summed over the existing actual finite instance indices.PreparationBounds.runs_input: actual initialized execution with the complete output contract and the690n²Dgbound.
Sum the two 20nD+6 matrix-writer bounds over the existing actual instance set. An explicit
additional c instructions per instance accounts for caller overhead separately.
The exact signed-residue/class prefix bound and the parameter-kernel bound are charged
separately. Their sum is at most a fixed multiple of n² D g when p ≤ D; the prime-window
caller supplies that inequality. This includes all per-class scan overhead.
The actual concatenation loop scans all p class counts, but writes only their actual
chunks. Its conservative charged bound still lies on the n² D g preparation scale.
Substitute the existing actual chunk and piece counts into the native budget. The
690n²Dg bound includes all catalogue work, selection, record stores, both matrix calls,
argument delivery, loop control and halt. runs_input applies this bound to actual execution.
The native count in the initialized theorem is the existing finite chunk count. Thus its actual charged execution budget, not an assumed matrix-write contract, has the preparation bound in the source's admissible regime.
The entire real initialized preparation, including halt, costs at most 690n²Dg under
the existing finite splitting hypotheses. All output assertions refer to its same pre-halt
state. The supplied prime has not been chosen by this component.