Deterministic integer 3SUM in O(n^1.999017) word-RAM steps
ProvedThreeSumSharpTail.threeSum_1999017For each fixed , there exist a finite deterministic word-RAM program , a natural number , and a step bound . For every , input with , and every , the program halts within steps and accepts exactly when three pairwise distinct indices have sum zero. Equal values at distinct indices are allowed; no witness is required; inputs of size less than three are rejected.
The exact time requirement is , equivalent to . The target instantiates the campaign template without changing its definitions.
Source: Theorem 1.1 of Xu's sharp-tail manuscript. The manuscript states and a sufficiently large logarithmic word width; the campaign additionally makes uniformity over all larger widths explicit. The case follows from the bound for , with handled separately. The formal development must justify this interface adaptation. The improved bound is a proposed formalization target, not an already Lean-certified result.
import Definitions.Def_TrulySubcubicAPSP_SourceSpecification set_option autoImplicit false set_option relaxedAutoImplicit false
theorem ThreeSumSharpTail.threeSum_1999017 :
EndStatement.ThreeSum.SolvedInTime 1.999017 := by sorryRead-back
What the Lean code literally says, in plain math · gpt-6
For every natural number , there exist a finite instruction list , a natural number , a function , and a natural number such that for every natural , , and such that the following correctness condition holds. For every natural , every integer sequence with at every position, and every natural word width , taking the integer logarithm of to be , the program started at instruction position halts within steps and accepts if and only if three pairwise distinct positions satisfy as integers. Memory consists of -bit words at every integer address. It initially contains modulo at address , the input values in order modulo at addresses through , and zero at every other address, including all negative addresses. The allowed instructions are: write constant to a fixed integer-addressed cell; add, subtract, or multiply two fixed cells into a fixed cell modulo ; load into a fixed cell from an address supplied by the signed interpretation of another fixed cell; store the value of a fixed cell at an address supplied by the signed interpretation of another fixed cell; jump to a fixed natural instruction position when a fixed cell has negative signed value; accept; and reject. Each instruction consumes one step. Writes and non-taken conditional jumps advance by one instruction, and a position beyond the list executes rejection. The halting instruction is counted, and zero available steps produce no verdict. The final memory has no output constraint. The same witnesses work for all eligible sizes, inputs, and word widths for the fixed ; witnesses may vary with , and word width has no upper bound. Sizes are included in correctness and require rejection because three distinct positions do not exist, although the time inequality is imposed only for . At the magnitude condition is vacuous, and natural exponentiation uses . Neither nor is required to be positive, so a chosen would require correctness even at . The exponent is the exact rational , which is why the time condition uses the displayed integer powers.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.