Documentation

CslibFrontier.Algorithms.WordRAM.ThreeSum.Decision.Admissible

Admitted native 3SUM inputs #

The magnitude restriction and logarithmic physical-width threshold are shared by the ordinary 3SUM algorithm and its input-reading lower bound. The threshold depends on input length and the fixed magnitude exponent, and admits every wider physical word. Admitted signed inputs fit.

Exactly the exponent already proved for every preprocessing word.

A constant for fixed exponent and concrete callee, independent of length and word width.

Positive logarithmic physical width, including empty inputs.

The original polynomial magnitude restriction and logarithmic physical-width threshold width κ 123357 input.length, where 123357 is the width coefficient of the concrete callee ExactTriangle.ParameterSelecting.callee. Unfolded, the threshold is (335535060 * κ + 2032454293) * Nat.clog 2 (input.length + 2). This admits every width above the threshold, independently of the particular input values.

@[reducible, inline]

Integer lists in the polynomial-magnitude promise domain. Every such input admits a physical width satisfying Admissible; arbitrary integer lists need not satisfy the promise.

Admitted input/width pairs satisfy the decision API's separate input-fit condition.