Complete expansion-232 program and runtime bridge
ProvedThreeSum1960614.costs_solve_3sumFor every positive rational strictly above all twelve costs of the fixed expansion-232 quartic parameter choice, deterministic integer 3SUM satisfies the campaign's exact shared word-RAM specification in time. The theorem must construct a finite program for each fixed integer-size exponent, preserve distinct input positions and repetitions, reject sizes below three, and establish correctness for every sufficiently large word width together with instruction, addressing and memory costs. No solver oracle or assumed program-correctness contract is a hypothesis. This is the remaining algorithmic extension sought by this mission: the source package explicitly leaves it unproved.
import Definitions.Def_ThreeSum1960614_Analysis import Definitions.Def_TrulySubcubicAPSP_SourceSpecification set_option autoImplicit false set_option relaxedAutoImplicit false open ThreeSum1960614
theorem ThreeSum1960614.costs_solve_3sum (r : ℚ)
(hr : 0 < r) (hcost : ∀ z ∈ costs, z < (r : ℝ)) :
EndStatement.ThreeSum.SolvedInTime r := by sorryRead-back
What the Lean code literally says, in plain math · GPT-6
declaration: ThreeSum1960614.costs_solve_3sum readback_model: GPT-6
For every rational number , assume and assume that each of the following twelve real numbers is strictly less than the real number represented by . Here , , , and is the binary entropy in base two; all arguments of appearing below lie strictly between zero and one:
Then, for every natural number (including zero), there exist a finite program , a natural number (with no separately imposed positivity condition), and a function with the following two properties simultaneously. First, writing the positive rational in lowest terms with positive integer numerator and positive integer denominator , there exists a natural number such that, for every natural number , . Second, for every natural number , every function , and every natural word width , if for every input position and , then there exist a Boolean verdict and a final memory assigning a -bit word to every integer address such that running from program position zero on the initial memory specified below halts within steps with precisely verdict and memory , and
The sum and absolute-value bound in this equivalence and its hypothesis are operations on the original, unbounded integers. The witnesses may depend on and the fixed but must work simultaneously for all permitted ; is also chosen before . In the width bound, the natural-number binary logarithm is defined to be zero at , is zero at , and is for positive . Initial memory contains the integer reduced modulo at address zero, reduced modulo at address for , and the zero word at every other integer address, including all negative addresses. The program is a finite list whose positions are numbered by natural numbers; each instruction is exactly one of the following: write the word for into a specified integer-addressed cell; write into a specified cell the sum, difference, or product of the words in two specified cells, with these word operations performed modulo ; load into a specified cell the word at the address obtained by reading another specified cell as a signed integer; store the word in a specified source cell at the address obtained by reading another specified cell as a signed integer; branch to a specified natural program position if a specified cell read as a signed integer is negative, otherwise advance to the next position; accept with Boolean verdict true; or reject with Boolean verdict false. Each cell named directly by an instruction may have any integer address, and an indirect signed address may also be negative. For , signed word interpretation uses the interval ; for , the sole word and its signed interpretation are zero, so even writing yields zero. Every write updates only its destination cell and advances to the next program position; branches change only the program position; accept and reject return the current memory. Executing at any position beyond the list's end executes reject. Every executed instruction, including accept, reject, and rejection beyond the end, consumes one step; with no steps remaining there is no returned verdict or memory, even if the next instruction would halt. The default output predicate is true: the output function reads, for each natural , the signed word in final-memory cell , but no condition is imposed on those words or on any other final-memory contents. The strict cost hypotheses include , and equality with any listed cost does not meet the hypotheses. Correctness is required also at , where there are no three distinct positions and the program must reject; at the input bound is vacuous, and when the convention applies even at . The power bound imposes no inequality at or , although the halting and correctness requirement still applies there. Width zero is included if the chosen makes its lower bound zero; there is no separate hypothesis requiring positive or requiring exact signed representation of the input words.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.