{"schemaVersion":1,"collection":"openai-math","source":{"repository":"https://github.com/openai/math","revision":"1581d4cbdd69a0faf34b2089614fe2a814316a6a","license":"Apache-2.0","licenseUrl":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/LICENSE","historyUrl":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/history.md","contentsUrl":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/CONTENTS.md","announcementUrl":"https://openai.com/index/sharing-ai-progress-in-mathematics/"},"environment":{"lean":"leanprover/lean4:v4.34.1","mathlib":"d13f23b723b8a846827a245b89c10fc7d3f11612","instructionsUrl":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/lean/ComparatorChallenges/README.md"},"indexedAt":"2026-10-13T03:50:29.412055+00:00","family":{"number":"121","title":"Almost-linear approximation of edit distance","subject":"Theoretical computer science","claim":"For every fixed rational $`\\varepsilon\\in(0,1)`$, gives a randomized $`(1+\\varepsilon)`$ approximation to unit-cost edit distance in worst-case expected time $`N^{1+o(1)}`$, with success probability at least 2/3. The strings have total length <i>N</i> and polynomially bounded integer symbols. This is an asymptotic guarantee at fixed accuracy.","manuscripts":[{"id":"An-Almost-Linear-Approximation-Scheme-for-Edit-Distance-September-24-2026","title":"An Almost-Linear Approximation Scheme for Edit Distance","authors":["OpenAI"],"date":"2026-09-24","abstract":"We give a uniform randomized approximation scheme for unit-cost edit distance. For every fixed rational $`\\varepsilon\\in(0,1)`$, it estimates the distance between arbitrary explicitly stored strings of total length <i>N</i> within a factor $`1+\\varepsilon`$ with probability at least 2/3, in worst-case expected time $`N^{1+o(1)}`$ on a logarithmic-word RAM. The algorithm supports polynomially bounded integer alphabets and returns zero deterministically on equal strings.","pdfUrl":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/preprints/An-Almost-Linear-Approximation-Scheme-for-Edit-Distance-September-24-2026/paper.pdf","downloadUrl":"https://raw.githubusercontent.com/openai/math/1581d4cbdd69a0faf34b2089614fe2a814316a6a/preprints/An-Almost-Linear-Approximation-Scheme-for-Edit-Distance-September-24-2026/paper.pdf","readmeUrl":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/preprints/An-Almost-Linear-Approximation-Scheme-for-Edit-Distance-September-24-2026/README.md","readmeSha256":"e1374280e73075b3309a1792fa0da45f808e379d4348e586fc30004a0418e445","citation":"@misc{OAI:An-Almost-Linear-Approximation-Scheme-for-Edit-Distance-September-24-2026,\n  author = {{OpenAI}},\n  title = {{An Almost-Linear Approximation Scheme for Edit Distance}},\n  howpublished = {OpenAI Math Release preprint\n                  \\href{https://github.com/openai/math/blob/main/preprints/An-Almost-Linear-Approximation-Scheme-for-Edit-Distance-September-24-2026/paper.pdf}{OAI:An-Almost-Linear-Approximation-Scheme-for-Edit-Distance-September-24-2026}},\n  year = {2026}\n}","versionNote":"","versionLinks":[],"listedInFormalizationIndex":false,"citedByScopeDocument":true,"proofweaveReplay":"not_run","statementReview":"not_started","receipt":null}],"scope":{"url":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/lean/docs/121.md","sha256":"af8f60425f3bdd6c86070e615061686b0f781047e425ed691a46b3b0aa98e593","text":"The formalization gives a randomized $(1+\\varepsilon)$-approximation for unit-cost edit distance between explicitly stored integer strings, for every fixed rational $0<\\varepsilon<1$. Its estimate is at least the true distance and at most $(1+\\varepsilon)$ times it with probability at least $2/3$; equal strings return zero on every execution.\n\nFor total length at most $N$ and integer symbols bounded by a fixed polynomial in $N$, expected work is at most $(N+2)^{1+\\eta}$ for every fixed $\\eta>0$ and all sufficiently large $N$. Space is polynomially bounded on every execution.","paperLinks":[{"label":"An Almost-Linear Approximation Scheme for Edit Distance","url":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/preprints/An-Almost-Linear-Approximation-Scheme-for-Edit-Distance-September-24-2026/paper.pdf"}],"comparatorLinks":[{"label":"EditApproximation.lean","url":"https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/lean/ComparatorChallenges/EditApproximation.lean"}]},"readingGuide":null}}