Author: Joshua Wharton, QFEX
Email: [email protected]
A conditional refinement to O(2^(0.487676 n)) of the claimed O(2^(0.4877 n)) construction in a-kapila/maths-proofs.
Latest verified milestone: all 43 filters, all 430 finite certificate records and their complete filter/region coverage now have compiled Lean proofs. The full project build, dependency audits, proof-gap scan and independent Python checks passed in run 39487903482. See the milestone and evidence.
Overall status: this is not an end-to-end verified Subset Sum solver or a verified world record. The original continuous moment inequalities and remaining algorithmic guarantees still require proofs. The written paper remains conditional.
Paper (PDF) | LaTeX source | Lean source | Current formalisation scope | Finite-data theorem
The paper contains the conditional theorem, exact parameters, alias constraints, certificate-transfer argument, error analysis and pinned references. The internal work exponent is 0.48767595; the displayed exponent 0.487676 absorbs the stated subexponential and polynomial factors.
The Lean development includes real-logarithm/entropy inequalities, transfer identities, exact numerical budgets, sublinear-exponent absorption, finite-subset decision identities, finite isolation and transformation proofs, supporting layer-counting arguments and the complete finite-data theorem. The integral-transfer results retain explicit original-moment hypotheses.
With elan installed, the committed sources can be checked directly:
lake update
lake exe cache get
lake build
lake env lean Audit.lean
lake env lean FiniteDataAudit.leanLean is pinned to 4.24.0 and mathlib to f897ebcf72cd16f89ab4577d0c826cd14afaafc7. The generated finite-data sources are committed; they do not need to be regenerated for a normal build.
The verification record identifies the checked source revision and hashes every generated Lean file. Build output and finite-data dependencies are included. LEAN_VERIFICATION.md records the earlier core milestone.
python3 verify.py
# Or:
make verifyThe checker uses standard-library exact rational intervals. parameters.json contains exact inputs; source_facts.json contains transcribed baseline data and explicitly assumed moment margins. verification.txt retains the original checker output.
The optional command below checks finite-data transcriptions against a local baseline manuscript. It does not prove the original integrals or the complete algorithm:
python3 verify.py --baseline /path/to/PROOF_0.4877.texTo regenerate the Lean tables, use the exact pinned manuscript:
python3 tools/generate_filter_data.py /path/to/PROOF_0.4877.tex SubsetSum/FilterData.lean
lake build
lake env lean FiniteDataAudit.leanThe generator authenticates the original Git blob and emits exact rational constants. Lean, not Python, establishes the finite inequalities.
make pdfThis requires pdfLaTeX and the packages named in paper.tex. The compiled paper.pdf is included. Intermediate LaTeX files remain ignored. The paper is unchanged by the finite-data milestone; FORMALIZATION.md explains the companion proof's current scope.
The baseline is subset-sum/PROOF_0.4877.tex, commit 44c34961b56784c220a6e913cc068d57dc37c5a3. The foundational preprint is OpenAI, Subset Sum in Time O(2^(0.49n)), pinned at fd4aeeb2ee4fc729c18d98444fed42fd0529eeeb. The intended specification is the Big O Speedrun benchmark.
Prepared with ChatGPT, 20 October 2026. The numerical tables are transcribed from the pinned baseline and attributed in their generated source headers. The full baseline manuscript is linked rather than redistributed. No licence is added by this repository. The written derivation, Python checker and Lean development have distinct verification scopes.