Polynomial-time verification of width-two ReLU networks on an interval
Verification of explicitly listed width-two ReLU networks over a continuous scalar interval is decidable in deterministic polynomial time in the binary input length. The network has a rational affine input lift, two neurons per hidden layer, and a rational affine scalar readout. The question is whether any input in [0,1] satisfies a specified rational affine comparison on the output, including a zero test. This settles the interval problem recorded as Q3281 from Bournez, Cohen, Cohen and Wurm’s width-two question. NP-hardness under standard polynomial-time reductions would imply P = NP. Original question. The algorithm stores the exact reachable set in the hidden plane. Each layer cuts intervals at preactivation zeros and maps each piece affinely. Pieces that retain two active coordinates stay on the affine image of one source line. Other nondegenerate pieces lie on the two coordinate axes. Merge overlapping or touching intervals on each common supporting line while preserving gaps. At depth t the reachable set has at most 1 + 2t² pieces on at most 1 + 2t supporting lines for the nondegenerate segments. Rational parametrizations come from the initial line or an axis, followed by a product of affine maps. This controls the bit length of cut points and propagated endpoints. Earlier exact reachability work already uses activation splits and the collapse onto axes, and ExactLine computes affine regions in the input coordinate. The contribution is the polynomial bound for exact unions in the hidden image. The scope excludes an implicitly represented discrete input set, a binary repetition count, and predicates that depend jointly on the original input and output. Earlier exact reachability · ExactLine. An independent oracle enumerated input activation regions and recovered the same full planar images at every layer in 320 seeded rational networks. Degenerate cases and 300 consecutive tent folds also passed. Lean checks the one-line-or-axes statement and the recurrence bounds. The paper proves the complete algorithm and its polynomial bit complexity. DannyExperiments supplied the candidate packet, and OpenAI Codex (GPT-6.2 Astra) reviewers audited the recurrence, rational bit bound and degenerate cases through exact replay. GPT-6.2 Sol compared the primary literature, and Codex prepared the repository and deposit. The result has internal mathematical review. External peer review and historical priority remain unestablished. Release v1.0.0 · Source commit e5633f38fd09fb764bbc767bda374f9134f77b38.
Authors
- DannyExperiments
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24640239
- Primary Topic
- Formal Methods in Verification
- Type
- preprint