Documentation

Complexity.Algorithms.WordRAM.ThreeSum.Decision.Input

Complete initialized native ordinary 3SUM host #

One finite program per fixed input-magnitude exponent and concrete certified finite Exact Triangle block starts at actual State.init. It computes preprocessing, reads all actual packed pointers and calls the caller-safe Convolution host. Its final raw Boolean is equivalent to the existing integer 3SUM predicate with distinct positions and repeated values permitted.

The result is conditional on the supplied actual finite code and its explicit callee contract. The slow exhaustive certified block provides a live instance; this theorem does not construct a fast backend or claim the final subquadratic endpoint.

Main results #

The composition and resource bookkeeping are original and reuse the existing 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.