Skip to content

About

ProofGuard: a checker for first-order logic proofs in TSTP format. Placed 5th at ProoVer 2026 (FLoC 2026, Lisbon).

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

🛡️ ProofGuard

An independent checker for machine-generated proofs. Give it a first-order logic problem and a proof in the TSTP format, and it tells you whether the proof holds.

  • 🏆 Built for ProoVer 2026, the first international competition for proof checkers (IJCAR, FLoC 2026, Lisbon). Placed 5th of 10.
  • 🚀 ProofGuard 1.1 scores 137 of 138 on the same competition proofs.
  • 📄 Paper in progress with Alicia Marinache (McMaster University).
  • 🐍 About 1,800 lines of Python. No dependencies beyond the E prover.
  • 📦 Releases: 1.0 as submitted, and 1.1.

🧭 Why it matters

  • Theorem provers, and now AI systems, output proofs. Those proofs need to be checked by something independent of whatever produced them.
  • Provers are "complex pieces of software, and thus may have bugs that make them unsound" (Sutcliffe, 2006). LLMs write convincing proofs that cite the wrong facts.
  • ProofGuard checks each step on its own against the steps it cites, and answers Unknown when it cannot decide.

🏁 Results

ProoVer 2026, 27 July 2026. 91 proofs, 47 of them invalid, 30 seconds each. Ten systems competed, including entries from TU Wien, the University of Greifswald, and Stephan Schulz, the author of the E prover.

System Score
GAPT 2.20 (TU Wien) 111
VaLeaDate 0.1 (TU Wien) 98
Nörgler 1.1 (Greifswald) 93
ProofCheck 1.0 75
ProofGuard 1.0 49
mrs-proover 0.2.0 47
PyCheck 0.1 (Stephan Schulz) 41
CheckProof 0.1 -103
GDV 2.0 (Geoff Sutcliffe, demo division) -4
GDV-LP 2.0 (demo division) -6

ProofGuard 1.0 highlights:

  • ✅ 70 of 91 proofs classified correctly, including 40 of the 47 broken ones
  • ⚡ 1.92 seconds per proof on average
  • 🧪 Before the competition: 0 false rejections on 58 real proofs from five different provers, and 45 of 45 mutated proofs correctly refused
  • 📦 Shipped as a single self-contained bundle that runs offline

🔗 Official results · Proceedings · System descriptions · Problem set · My system description (PDF)

🔬 Post-competition analysis

  • 🔁 I re-ran the exact submitted package on the published problem set and reproduced 89 of the 91 official verdicts.
  • 🧩 Every disagreement with the official answer key traces to a specific decision in how ProofGuard checked the competition's certificate rules.
  • 🌐 Two of the proofs that broke these rules fooled 5 and 6 of the 10 systems, including Geoff Sutcliffe's own GDV.
  • 📄 This analysis is the core contribution of the paper.

🚀 ProofGuard 1.1

Built from the analysis above. A new strict profile checks every proof against the competition's certificate rules, and the 1.0 checker stays available as a tolerant profile for the output of real provers.

  • ✅ 137 of 138 points on the 91 competition proofs: all 47 broken proofs rejected and 43 of the 44 valid ones accepted
  • 🧪 819 rule-breaking variants of the valid competition proofs, and none accepted
  • 🔀 Accepts a proof's steps in any order, as the competition rules allow
  • 🔁 Every result is reproducible with tests/proover2026.py, which compares each version against the official answers

📝 Paper

ProofGuard: A Conservative Checker for TSTP Refutation Proofs, with Alicia Marinache (McMaster University). Drafted in Overleaf. Status as of October 2026:

  • ✅ Full first draft complete: introduction, literature survey, system model, verification strategy, decision policy, implementation, evaluation, and future work
  • 📚 62 references, most from 2025 and 2026
  • 🔁 Evaluation presents the post-competition analysis above as a reproducible result
  • ✍️ Next: review and revision with Alicia Marinache, then submission
  • 🎯 Venues under consideration: arXiv preprint, Journal of Open Source Software, and the next editions of the CADE system description track, AITP, and the NeurIPS MATH-AI workshop

Usage and development

The sections below are the technical documentation for running, building, and testing the checker.

Launch command

./proover-check [--time-limit SECONDS] [--profile strict|tolerant] [--quiet] PROOF

Prints exactly one line to stdout:

% SZS status VerifiedGood | VerifiedBad [: reason] | Unknown [: reason] | Timeout

The problem file is located from the proof itself, via its file('...') directives and its % Proof : <path> header, tried relative to the working directory and to the proof's own directory. A two-argument form (./proover-check PROBLEM PROOF) naming the problem explicitly is also accepted. Step-by-step details go to stderr (suppress with --quiet). The wall-clock budget defaults to 30 seconds (--time-limit or PROOVER_TIME_LIMIT override it), and the verifier emits Timeout itself before the budget runs out.

Requires Python 3.8+ and the E prover (eprover on PATH, or point ATP_EPROVER_BIN at a binary).

Profiles

ProofGuard 1.1 has two profiles. The strict profile is the default and checks a proof against the ProoVer 2026 certificate specification. The tolerant profile is the ProofGuard 1.0 checker, which also accepts the dialects of real ATP systems and only establishes that a proof is logically sound. ProofGuard 1.0 itself, as submitted to the competition, is the v1.0 release.

How the strict profile verifies

Every annotation of a step is read as a claim to be checked. Each kind of step has a fixed list of obligations taken from the competition rules, and a step is accepted only when all of them pass. There are no fallbacks. E still confirms ordinary inferences and the negated conjecture, as the rules allow. Checks beyond what the rules ask for, such as de-Skolemization, are only used to reject steps.

  • Imported steps must have role axiom or conjecture, name a formula of the problem being checked, have the same role as that formula, and be alpha-equivalent to it.
  • negated_conjecture steps must claim status cth, have the imported conjecture as their only parent, be equivalent to its negation, and claim no other status.
  • skolemize steps must claim status esa, have one parent that is not the conjecture, declare their symbol with new_symbols(skolem,[sK]), and name the eliminated variable with skolemize(Var,Term). The step is then rebuilt and compared. The existential may sit under negations or other existentials, the term may list the universals in any order, and the symbol may not occur in the problem, in anything the step depends on, or in another Skolemization.
  • All other steps must claim status thm and nothing else, may not use the conjecture, and are checked by calling E on the step and its premises.
  • Structure: names are unique, every premise is a step of the proof, the derivation has no cycles (steps may appear in any order), no formula has free variables, and the proof derives $false.

How the tolerant profile verifies

  • Input steps (file(...) sources) must match a problem formula up to variable renaming, with the same conjecture-ness. Fabricated or tampered axioms are rejected.
  • negated_conjecture steps (status cth) must be logically equivalent to the negation of the problem's conjecture, and only such steps may consume the conjecture.
  • skolemize steps (status esa) are checked syntactically: the Skolem symbol must be fresh across everything seen so far, and the binding term must apply it to exactly the universals in scope of the named existential. Both annotation dialects (skolemize(V, t) and skolemized(V) ... bind(V, t)) are supported. Annotation-free skolemization chains (as E emits) are checked by de-skolemizing the step: each fresh symbol's term becomes an existential re-inserted inside its innermost argument binder, which makes the step a correct skolemization of the result by construction. The remaining thm-content is then checked with the ATP.
  • All other steps with status thm are checked by calling E on that step and its premises only, as the competition rules require, and the conjecture is never re-proved independently. E showing the step countersatisfiable yields a definite VerifiedBad.
  • Structural soundness: premises must be defined before use (no circular or forward references), step names must be unique, no formula may have free variables, and the proof must actually derive $false.
  • Nested E-style inference chains (inference(..., [inference(...)])) are flattened, so unmodified eprover --proof-object output verifies too.

Anything the verifier cannot decide is reported as Unknown.

Docker

docker build -t atp-proover .
docker run --rm -v "$PWD:/data" atp-proover /data/problem.p /data/proof.s

The image bundles a freshly built E prover, so it runs without network access.

Competition delivery bundle

./build-delivery.sh          # writes delivery/proover-delivery-<date>.tar.gz

Builds a self-contained bundle for the competition's CentOS 7.4 servers (glibc 2.17): E compiled in a manylinux2014 container, a portable CPython runtime, and the verifier. Verified to run on a stock centos:7 image with no network. This tarball plus the launch command in its README.txt is what gets emailed to the organizers.

Tests

python3 tests/run_tests.py            # official example corpus + adversarial cases
python3 tests/tptp_bench.py           # TPTP round-trip bench against the baseline
python3 tests/tptp_bench.py --update  # re-record tests/tptp_baseline.txt

The TPTP bench has E prove each problem in tests/tptp/ (E's example set, spanning 18 TPTP domains, FOF and CNF, several with include() axiom files), then verifies E's own proof. Correct proofs must never come back VerifiedBad. The baseline records which come back VerifiedGood and which come back a conservative Unknown, so soundness and coverage regressions both fail the bench. Extra problem directories can be added with --dir DIR.

python3 tests/fetch_tstp.py           # (re)harvest the TSTP sample corpus
python3 tests/tstp_check.py           # verify TSTP solutions vs baseline
python3 tests/fuzz_mutations.py       # mutation fuzzer (soundness)

tests/tstp/ caches a sample of real solutions from the TSTP library across five ATP systems (E, Vampire, SNARK, Prover9, Drodi) and ten problem domains, in proof dialects we did not develop against. All are presumed-correct proofs, so any VerifiedBad fails the suite as a soundness bug. The mutation fuzzer corrupts known-correct proofs (tampered leaves, orphaned negations, circular premises) and asserts the verifier never answers VerifiedGood.

python3 tests/proover2026.py --fetch                                # download the competition proofs
python3 tests/proover2026.py --baseline tests/proover2026_v1.0.txt  # compare with ProofGuard 1.0
python3 tests/conformance.py                                        # proofs that break the specification

tests/proover2026.py runs the checker over the 100 published ProoVer 2026 proofs and compares its verdicts with the correct answers from the official results, and with a recorded run of an earlier version. It flags any proof that was right before and is wrong now. tests/proover2026_v1.0.txt and tests/proover2026_v1.1.txt record the two versions. tests/conformance.py checks hand-written proofs, and one-place mutations of every valid competition proof, that break the certificate specification. None may be accepted. It also checks that every accepted proof is still accepted with its steps in reverse order.

python3 tests/noergler_bench.py --fetch --subset tests/noergler_subset.txt --args "--profile tolerant"

tests/noergler_bench.py runs the checker over the public TSTP FOF proof benchmark built for the Nörgler checker (doi:10.5281/zenodo.19792604): correct Otter and PyRes proofs from the TSTP library and falsified versions of them. tests/noergler_subset.txt lists the 122 PyRes proofs that ProofGuard 1.0 can read. For each falsified version the harness reports whether it was rejected at the changed step, at a step that uses it, or elsewhere. The recorded runs are tests/noergler_v1.0.txt and tests/noergler_v1.1-*.txt.

tests/examples/ holds the official ProoVer 2026 examples (correct proofs COR*, evil proofs EVL*, and the 8 MB TMO000 stress proof, which hides a real flaw at step sk219 that this verifier finds in ~12 s).

Problems//Proofs/ keep an early hand-written example whose proof is in fact unsound (its conjecture ![X]: p(X) does not follow from p(a)). The verifier correctly reports VerifiedBad where a purely structural check would accept it.

Repository layout

  • proover.py: the engine: TSTP/FOF parser, formula algebra, step checkers, deadline-aware E invocation.
  • proover-check: competition entry point (one SZS line, timeout guard).
  • tests/run_tests.py: test suite.
  • tests/proover2026.py, tests/conformance.py: evaluation on the competition proofs and conformance to the specification.
  • Dockerfile: self-contained image with E bundled.

Please note that AI was used in part to help with the coding and documenting of this project.

About

ProofGuard: a checker for first-order logic proofs in TSTP format. Placed 5th at ProoVer 2026 (FLoC 2026, Lisbon).

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages