Truly subquadratic 3SUM
Lax350013.ThreeSUM · concepts/Lax350013/ThreeSUM.lean · lax-350013
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Given polynomially bounded integers, a deterministic word-RAM program decides whether three distinct positions contain numbers summing to zero in steps (Theorem 22, using Corollary 26).
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
Lean source view on GitHub
| 1 | /- |
| 2 | Copyright (c) 2026 Anthropic, PBC. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | SPDX-License-Identifier: Apache-2.0 |
| 5 | -/ |
| 6 | /- |
| 7 | Modified for the independent Lax packaging by Édouard Bonnet, 2026. |
| 8 | Derived from 3sum-apsp/EndStatement.lean / PaperStatements.lean at upstream commit e1a4e6508154ea59f030480661590a9fe3018011. |
| 9 | Changes: Lax module/namespace layout, separated concepts and proofs, archive |
| 10 | annotations, and compatibility with the archive Lean/mathlib environment. |
| 11 | See NOTICE and README.md in the submission root for provenance and scope. |
| 12 | -/ |
| 13 | |
| 14 | import Lax350013.PolynomialTime |
| 15 | |
| 16 | /-! |
| 17 | --- |
| 18 | title: Truly subquadratic 3SUM |
| 19 | type: theorem |
| 20 | --- |
| 21 | Given polynomially bounded integers, a deterministic word-RAM program decides whether three distinct positions contain numbers summing to zero in steps (Theorem 22, using Corollary 26). |
| 22 | -/ |
| 23 | |
| 24 | namespace Lax350013.ThreeSUM |
| 25 | |
| 26 | open Lax350013.PolynomialTime |
| 27 | |
| 28 | /-- Section 1: «Given n numbers, decide whether three of them sum to 0». Three different positions. -/ |
| 29 | def ThreeSum : Problem where |
| 30 | Instance n := Fin n → Int |
| 31 | input x := List.ofFn x |
| 32 | yes x := ∃ i j k, i ≠ j ∧ j ≠ k ∧ i ≠ k ∧ x i + x j + x k = 0 |
| 33 | |
| 34 | /-- Theorem 22: «solve 3SUM on n integers of absolute value at most n^ν», in time «O(n^1.9992)». -/ |
| 35 | def Theorem_22_3SUM : Prop := |
| 36 | ThreeSum.SolvedInTime 1.9992 |
| 37 | |
| 38 | /-- Truly subquadratic 3SUM: Theorem 22 3SUM. -/ |
| 39 | axiom algorithm : Theorem_22_3SUM |
| 40 | |
| 41 | end Lax350013.ThreeSUM |
| 42 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments