Documentation

CslibFrontier.Algorithms.WordRAM.ThreeSum.Decision.Input

Initialized ordinary 3SUM through the native Chan–He visitor #

One finite program per fixed magnitude exponent and certified finite Exact Triangle block starts from signed-encoded State.init. It computes the frontend and consumes every actual packed node during traversal through the caller-safe Convolution host. Calls retain the exact finite preorder, including multiplicity, and continue after a positive result. The final raw Boolean decides a zero-sum triple of distinct positions, allowing repeated input values.

The initialized endpoint retains its existing magnitude and physical-width hypotheses, charged cost and same-state prehalt/halt witness. The lower-level exec_large helper additionally needs a fully bounded register file; the actual initialized prefix derives this premise here. The ordinary decision path publishes no packed-pointer table. Each call preserves its lower live prefix at the complete current-node endpoint, then one native copy releases the dead packed/residue/histogram tail. Persistent heavy-buffer capacities and count cells remain allocated, with a monotone committed frontier and the old table gap reserved. The unchanged polynomial support envelope does not assert a tighter total-space or callee high-water bound.

The generic result consumes actual finite callee code with its explicit protocol. The certified exhaustive block inhabits that protocol; the concrete fast endpoint is supplied in One9992.

Main results #

The native composition and resource bookkeeping are original and reuse the finite reductions.

The complete charged budget always includes the seven small-branch instructions.

The fixed ordinary host is independent of physical word width.

theorem Cslib.Algorithms.WordRAM.ThreeSum.Decision.exec_input {κ w r : ℕ} (input : List ℤ) (c : Host.Callee r) (hw : width κ c.widthCoefficient input.length ≤ w) (hvalues : ∀ z ∈ input, |z| ≤ ↑((input.length + 2) ^ κ)) :

Actual execution from initialized signed input, uniformly over all admitted wider words.

theorem Cslib.Algorithms.WordRAM.ThreeSum.Decision.runs_input {κ w r : ℕ} (input : List ℤ) (c : Host.Callee r) (hw : width κ c.widthCoefficient input.length ≤ w) (hvalues : ∀ z ∈ input, |z| ≤ ↑((input.length + 2) ^ κ)) :

Complete actual flat execution and actual pre-halt output-state witness. The output is raw 0 or 1; the input and every generated matrix cell use signed encoding.