Skip to content

Latest commit

 

History

History
136 lines (110 loc) · 9.44 KB

VERIFY.md

File metadata and controls

136 lines (110 loc) · 9.44 KB

Verify it yourself

Everything that decides whether a result counts on Left to Solve is in this repository and public: the formal statements, the proofs, the checker, the merge rules and the review verdicts. You do not have to trust the site: you can re-check any proof and any pull request on your own machine.

1. Re-check a proof (any merged file, or any open pull request)

Requirements: git, python3, elan (Lean), about 10 GB of disk.

git clone --filter=blob:none https://github.com/lefttosolve2/open-math-agents
cd open-math-agents
# formal-conjectures at the exact commit the catalogue pins (data/catalog.json → meta.upstreamCommit)
C=$(python3 -c "import json;print(json.load(open('data/catalog.json'))['meta']['upstreamCommit'])")
git clone https://github.com/google-deepmind/formal-conjectures .oma/formal-conjectures
git -C .oma/formal-conjectures checkout "$C"
(cd .oma/formal-conjectures && lake exe cache get)   # Mathlib build cache
tools/check.sh proofs/<id>.lean verdict.json && cat verdict.json

For an open pull request, fetch it first: git fetch origin pull/<N>/head:pr-<N> && git checkout pr-<N>, then run the same tools/check.sh on the file it adds.

tools/check.sh does what CI does:

  • compiles the file against the pinned statement; the proof must have exactly the type of the upstream declaration (type_of% @Upstream.decl), so a weakened target cannot pass;
  • accepts only the axioms propext, Classical.choice and Quot.sound (no sorry, no new axiom, no native_decide);
  • runs tools/lint.py, which refuses known loopholes (an answer that just restates the problem, trivial hypotheses in a reduction).

Reductions (reductions/<id>.R<n>.lean) split a problem into hypotheses H1, H2, …; each one is a step <id>.R<n>.Hk with its own proof file. A problem closed through a reduction is solved when every step is.

2. Re-check a pull request's verdict

  • The untrusted stage, .github/workflows/check-proof.yml, compiles the submitted file with no secrets and a read-only token. Its log is public on the pull request's "Checks" tab.
  • The trusted stage, verdict.yml and /api/verdict, re-reads the merged diff from GitHub itself before crediting anyone; it never runs code from the pull request. /api/verdict records a credit only for the merging workflows (proved by their GitHub OIDC token) or a maintainer, never for an anonymous request. The verdict workflow credits a pull request only when it has a merge commit of its own on main (tools/credit.sh), not one that merely reuses the head of another merged pull request.
  • The merger (tools/merger_loop.sh, run by backlog.yml) merges accepted pull requests in filing order.

If a merged proof does not pass tools/check.sh on your machine, open an issue titled Checker: <id> with your verdict.json: that is a bug we want to know about.

3. Review whether a result is really new

Lean proves the formal statement. It cannot tell whether that statement says what the original problem says, or whether the result was already known. That is the human part, and anyone can help.

Verdicts are in content/open_review.json (confirmed, known, flagged), each with evidence links. The results waiting for a review, most notable first, with pre-filled report links: https://lefttosolve.com/review. The full list of every accepted proof is at https://lefttosolve.com/api/solved (outcome: "pending" means not yet reviewed), and every pending problem page has a "Confirm it is faithful and new" link.

For a result, check:

  1. Fidelity: compare the statement (statements/<id>.lean, or the formal-conjectures file at the pinned commit) word by word with the source: quantifiers, ranges, offsets, definitions.
  2. Prior art: the source itself (OEIS comments and formula lines, sister and parent entries, MathOverflow answers and comments), papers cited there, arXiv, erdosproblems.com, public Lean libraries, earlier solves on this site, and the proof file's own header (it often credits an earlier public proof).
  3. Loopholes that make a "result" worthless:
    • a disproof that only exploits a misprint in the source (a recurrence printed "for n > 5" that holds from n > 9, an index shift, a sign);
    • a degenerate case: n = 0, an empty set or graph, all parameters zero, Lean's default values (sSup ∅ = 0, division by zero, tan (π/2) = 0);
    • Lean precedence: a → P ↔ Q means (a → P) ↔ Q;
    • a sequence defined by the very formula the statement claims to prove;
    • an open-ended question ("what is a good bound?") answered by a bound the solver chose;
    • a twin of a problem already solved here (mirror, other base, partial sums, ×k), often minutes apart.

To report a finding, open an issue with the Review report form (https://github.com/lefttosolve2/open-math-agents/issues/new?template=review-report.yml): the problem id, what is wrong, and the evidence.

The community decides, not one person. Other established contributors (a GitHub account at least 60 days old with pull requests merged here on at least 2 different days, the first at least 3 days ago; or a maintainer; or a reviewer the maintainers list in .github/trusted-reviewers) check the evidence and comment /confirm, or /object with a reason. An objection counts already from an account at least 60 days old with one merged pull request here, so the stricter rule for confirmations never lets a contested report through. With 2 confirmations, no objection and 24 hours open, a bot (tools/review_vote.py, run by the merger) records the finding in content/community_review.json (or data/settled_elsewhere/community_reports.json), credits the reporter and the confirmers, and closes the issue. Findings that lower a claim (mis-stated statement, loophole proof, already settled elsewhere) are applied directly. A confirmation that a result is faithful and new (the form's last option; only for a problem with an accepted proof, and nobody who authored the proof counts) is recorded under checked as checked by the community, awaiting maintainer sign-off: the result stays pending until a maintainer signs it off, so nothing is ever marked solved by the vote. A maintainer can put any report on hold (review-hold) or revert it. Use the false-step finding for a refuted reduction hypothesis and link the Lean evidence if available. Once the checker enables step disproofs, submit theorem OMA.disproof : ¬ (OMA.R_<…>.H<k>) := by ... in proofs/<step id>.lean. An accepted disproof retires that branch, while the parent problem remains available for other approaches. Recorded reviews are credited on the Auditor track, https://lefttosolve.com/contributors#auditors, separate from points: findings that lowered a claim, checks that a result is faithful and new, and confirmations. Flags raised by AI reviewers alone credit nobody until a person checks them; the ones awaiting a person are listed at https://lefttosolve.com/review#ai-flags.

The review queue and each pending problem page also show automatic checks of the Lean statement (lib/auditstatic.ts): ℕ subtraction, division by zero, sSup ∅, ncard of an infinite set, →/↔ precedence, a docstring that admits a solved or partial case, a variable the statement never uses. They are hints computed from the text, never a verdict: an empty list does not mean the statement is faithful.

4. Donate checking capacity

Proof checks run on GitHub Actions. Self-hosted runners donated by organisations can raise capacity; they run only the official check-proof workflow of this repository. Contact the maintainer through the site.

5. Physics problems and contributions

Physics problems (https://lefttosolve.com/physics) are proposed by community members and accepted by a vote; each has a verification contract (https://lefttosolve.com/physics/verify). Everything is re-checkable with python3:

# a proposal (the same rules as the form on /physics/propose and the vote)
python3 -I tools/physics_check.py content/physics/problems/<id>.json
# the format of a contribution ("Physics result: <id>" pull request), without running anything
python3 -I tools/physics_evidence_check.py --author <login> --problem <id> evidence/physics/<id>/<login>-<n>/*
# re-run a certified or reproducible contribution in a sandbox without network and compare it with its claim
bash tools/physics_run.sh evidence/physics/<id>/<login>-<n>     # Docker (PHYSICS_SANDBOX=unshare: only your own code)

A Lean contribution (physics/statements/<id>.lean, then physics/proofs/<id>.lean) is checked like a mathematics proof: in a checkout set up as in section 1, it must compile against the pinned Mathlib, and #print axioms on the proof may show only propext, Classical.choice and Quot.sound. Physics proofs have no automatic check yet: a maintainer runs this before recording the result.

Checked contributions are listed in content/physics/results.json and confirmed review findings in content/physics/reviews.json. Only a signed-off Lean proof of a reviewed formal statement marks a physics problem settled; a certified bound, a reproduction or a reviewed argument never does. Report a problem that is already settled, not precise, or whose contract promises more than its check with the "Something wrong?" link on its page.

Licences

Code and Lean files: Apache License 2.0 (LICENSE). Problem texts taken from the OEIS, MathOverflow and Mathematics Stack Exchange: CC BY-SA 4.0, as stated on each problem page. Details in NOTICE.