Full text not available for this paper
SCOPE: Certified Theorem Proving with a Language Model as the Policy Planner
Summary (Overview)
-
Key contribution: The paper introduces SCOPE (State-Conditioned Operator Planning and Execution), an architecture that separates theorem proving into three roles: a 135M-parameter language model as policy planner, a symbolic execution engine for numeric computation, and a template compiler for proof text generation.
-
Core finding: Direct generation of multi-step numeric proofs fails due to an error-product structure—if each of load-bearing integers is correct with probability , the pass rate is bounded by . The paper verifies this power-law relationship empirically across 2,617 reference proofs.
-
Main result: SCOPE certifies 191/218 (87.6%) problems on the test suite, compared to 18/218 (8.3%) for DeepSeek-Prover-V1.5-RL (7B) operating at 37.5× the wall-clock time, and 0/218 for DeepSeek-Prover-V2-7B.
-
Key architectural insight: A factorial experiment shows that shifting the decision-frame state from a lagged to a current engine state raises the pass rate from 117/218 to 191/218, while up-weighting the chain-end loss lowers it—demonstrating that information visibility at decision time matters more than loss allocation.
-
Efficiency: The system produces zero natural-language thinking text, averaging only 6.12 decision actions per problem, 0.53 seconds per problem, and peaking at 833 MiB of inference memory.
Introduction and Theoretical Foundation
Background and Motivation
In proof assistants like Lean, generated proofs must pass machine compilation, eliminating the need for human scoring. However, direct generation of multi-step numeric propositions fails systematically: proofs are structurally conventional but break at concrete numeric values, ending with unresolved goals (sorry in Lean). This suggests the bottleneck lies in generating numeric content one item at a time rather than in selecting proof steps.
Theoretical Basis
The paper formalizes the error-product law: for a proof containing load-bearing integers, where integer is written correctly with independent probability :
When all integers share accuracy , this yields the power-law bound:
Proposition 1 (product law and power-law bound): If a proof contains content integers, integer is written correctly with independent probability , and certification requires all integers to be correct, then the pass rate is given by the product formula, and if no integer exceeds accuracy , the bound holds.
Corollary (load correction): Let be the set of load-bearing integers determined mechanically by controlled-corruption experiments; changing integers outside does not change certification outcomes. Thus:
Division-of-Labor Hypothesis
The authors test whether restricting the model's role to policy planning (choosing operators and arguments) while delegating numeric computation to symbolic tools and proof text to template compilation supports long-chain, multi-step, exact reasoning—mirroring human mathematical practice where tool selection is the core competence.
Methodology
Architecture Overview
SCOPE processes propositions through four stages:
-
Discrete representation: Problems are encoded as integer-vector states; solving is modeled as operator chains within a vocabulary of 194 operators (extended to 220 for the public library).
-
Symbolic execution engine: Deterministic map performing exact integer/rational arithmetic with mechanically checkable certificates per step. For the sum-of-squares family, the residual update is:
where and are residuals before/after the step, is the coefficient of the removed square term, and is the linear form.
- Chain-planning model: SmolLM2-135M backbone with two heads—operator selection and argument prediction (352 candidate values). The decision at step :
with probability distributions:
Training objective (cross-entropy):
with chain-end weighting configuration:
- Proof compiler: Template-based expansion of operator chains into Lean tactic sequences; all numbers come from engine computation.
State Shift
The final configuration augments the decision framing with the current engine state:
where is the residual after executing step .
Experimental Configurations
| ID | Proof-text production | Chain-end loss weight | Decision-frame state | Purpose |
|---|---|---|---|---|
| Exp. 1 | Model-generated | 1.0 | Original (lagged) | Direct-generation baseline |
| Exp. 2 | Model-generated + value slotting | 1.0 | Original | Isolates numeric-generation mode |
| Exp. 3 | Compiler-generated | 1.0 | Original | Isolates text-production mode |
| Exp. 4A | Compiler-generated | 1.0 | Original | Factorial baseline |
| Exp. 4B | Compiler-generated | 5.0 | Original | Factorial: loss weighting |
| Exp. 4C | Compiler-generated | 5.0 | Shifted | Factorial: weighting + state |
| Exp. 4D | Compiler-generated | 1.0 | Shifted | Factorial: state (final) |
Empirical Validation / Results
Direct Generation Failure (Law 1)
- Token accuracy on held-out rows: 0.9637, yet certified passes: 0/218
- Per-integer accuracy ~0.79, ~14.9 content integers per proof → predicted pass rate ~0.031
- Controlled-corruption experiment on 2,617 proofs: measured pass rate 0.558 vs. theoretical 0.530 (relative excess ~5%)
- Deviations located at non-load-bearing positions: 0/432 coefficient/exponent corruptions survive; all 1,164 nested-induction and lemma-tower corruptions rejected
Compiler-Generated Proof Text
- Pass rate rises from 1/218 (slotting baseline) to 117/218
- Compiler reproduces reference proofs byte-for-byte on all 2,399 corpus rows; certifies 218/218 with reference chains
- Key equality:
Factorial Analysis (Law 2)
Proposition 2 (final-step conditional decomposition): With the set whose first steps are all correct and the set whose whole chain is correct:
where is prefix accuracy and is conditional final-step accuracy.
Factorial results (n = 218):
| Configuration | State shift | Chain-end weight | Certified passes | Δ vs. baseline |
|---|---|---|---|---|
| Baseline (Exp. 3) | No | 1.0 | 117 | N/A |
| Weighted | No | 5.0 | 110 | −7 |
| Weighted + shift | Yes | 5.0 | 172 | +55 |
| Shift (final) | Yes | 1.0 | 191 | +74 |
Cross-Model Comparison
| Metric | SCOPE (135M) | V1.5-RL (7B) | V2-7B (int4) | Ratio (V1.5/V2) |
|---|---|---|---|---|
| Certified passes | 191/218 (87.6%) | 18/218 (8.3%) | 0/218 | N/A |
| Output volume/problem | 6.12 (decision actions) | 168.0 tokens | 5,254.6 tokens | 27.5×/858× |
| Wall-clock/problem | 0.53 s | 19.88 s | 285.9 s | 37.5×/539× |
| Peak inference memory | 833 MiB | 8,567 MiB | 11,649 MiB | 10.3×/14.0× |
Cost Expressions
Per-problem cost of SCOPE:
Direct generation cost:
Domain Extension (Lean-Workbook)
- Full library: 132,378 rows (after excluding 7,448 library-corrupt rows)
- 48,106 rows admissible under operator system; 84,267 out-of-domain
- 3,536 rows enter review; 2,132 certify (60.29%, Wilson 95% CI: 58.67–61.89)
- Model-only chains on extension families: 45.10% (281/623 renderable rows) vs. family-tree chains at 44.07%
Theoretical and Practical Implications
Design Principle
The two empirical laws merge into one design principle: restrict the model's free-generation range and make the tool state needed for the verdict available at decision time. Within this domain, restricting free generation and keeping decision-time information visible is a more direct route than enlarging the model.
Evaluation Significance
- Token-level accuracy and chain-of-thought surface correctness can badly overestimate ability on long-derivation tasks
- In settings where proof validity is a Boolean conjunction, per-integer accuracy and element count are the quantities directly tied to pass rate
- The controlled-corruption experiment provides a mechanical way to measure load-bearing status of each integer position
Tool-Augmented Methods
The results emphasize timing and content of tool-state feedback beyond tool availability. The tool is available in every configuration; only the computation timing of the state differs, and that single difference moves the pass rate by 74 problems.
Auditability
The architecture's separation of responsibilities enables full inspection: model output is restricted to symbolic decisions, computation lives in a deterministic engine, and text comes from template compilation—each independently checkable. Error localization at decision-step granularity is possible (all 101 errors localize to the final step).
Conclusion
The paper establishes two empirical laws:
-
Law 1 (error-product structure): Direct generation pass rate is bounded by a power law in per-integer accuracy; token-level accuracy diverges from pass rate (0.9637 token accuracy with 0/218 passing).
-
Law 2 (information visibility): Inside a restricted decision space, information visibility is the first-order determinant of correctness; loss allocation is not. Correcting state timing alone lifts pass rate from 53.7% to 87.6%.
The SCOPE architecture achieves 87.6% certified pass rate on the 218-problem suite with a 135M backbone, at one to three orders of magnitude lower resource cost than 7B direct-generation models. All multi-step thinking occurs in the discrete decision sequence with no natural-language thinking text.
Future directions: Systematic validation on larger backbones, transfer to more problem families, and addressing corpus-mixing sensitivity for routing domain inclusion.
Related papers
- BenchChecker: Assessing the Credibility of Bug-Fixing Benchmarks for LLMs
BenchChecker detects benchmark contamination in bug-fixing LLMs with AUC around 0.9 using only text outputs, showing reported resolution rates are overestimated by over 20 percent on medium-difficulty tasks.
- What the Specification Did Not Say: Specification-Oracle Gaps in Test-Graded Coding-Agent Benchmarks
Test-graded coding benchmarks contain hidden specification-oracle gaps where tests demand unstated names, paths, or literals, causing correct implementations to fail and skewing scores.
- Compaction Laundering: Provenance Destruction in Context-Compacting Coding Agents
Compaction laundering lets attackers forge user instructions that survive context summarization in flattening coding harnesses, enabling code execution with 87-100% success.