NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Finding Longer Proofs

Zsolt Zombori, Adrián Csiszárik, Henryk Michalewski, Cezary Kaliszyk, Josef Urban

TL;DR

FLoP (Finding Longer Proofs) is a reinforcement learning-based guidance system that enables automated theorem provers to tackle problems requiring thousands of inference steps. By combining Proximal Policy Optimization (PPO) with curriculum learning, FLoP learns to internalize proof patterns from just a few examples, allowing it to generalize to much longer, related problems where traditional search-heavy methods fail.

What Problem Does This Paper Address?

Automated Theorem Proving (ATP) is essentially a search problem: at every step, a machine must choose from a set of valid inferences. Because the search space grows exponentially with the length of the proof, most current ATP systems are hit by a "combinatorial explosion" and can only find relatively short proofs.

The authors argue that human mathematicians don't just search blindly; they use analogy. Once a human understands the "core idea" of a proof, they can apply it to similar problems regardless of their length. The challenge is teaching a machine to move away from exhaustive search and toward this kind of analogical reasoning, specifically for problems requiring very long inference chains.

Methods

FLoP treats theorem proving as a Reinforcement Learning (RL) task. The prover’s internal state is the RL "state," inference steps are "actions," and a successful proof attempt is a "trajectory."

Key components include:

  • Proximal Policy Optimization (PPO): An actor-critic RL algorithm used to train the guidance model. The "actor" (policy) suggests the next inference step, while the "critic" (value function) estimates how close the current state is to a finished proof.
  • Connection Tableau Calculus: FLoP guides the fCoP theorem prover, which uses this specific logical framework.
  • Curriculum Learning: This is the "secret sauce" for long proofs. Since rewards are sparse (you only get a "1" if the proof is finished), learning a 1,000-step proof from scratch is nearly impossible. FLoP starts by practicing on the final few steps of a known proof and gradually moves the starting point backward as it gains confidence.
  • Neural Architecture: As shown in Figure 2, the system uses dense layers with ReLU activations to process state and action features, which are represented as sparse fixed-length vectors.
Fig. 1: Theorem proving as a reinforcement learning environment.
Fig. 2: Value and Policy network architectures in PPO.

Datasets

The researchers evaluated FLoP on several structured datasets:

  1. Robinson Arithmetic (RA): A theory defining addition and multiplication. They tested three levels of complexity (RA-1, RA-2, RA-3) using both unary (simple but long) and binary (complex but shorter) encodings.
  2. Logical Calculi (LCL): Two datasets from the TPTP library (LCL-Eq and LCL-Imp) involving propositional calculus, augmented with lemmata (intermediate steps) to provide a hierarchical structure.

Key Insights and Ideas

  • Analogy over Search: The most striking finding is that FLoP can learn a proof pattern from a single training example (e.g., $1 \cdot 1 = 1$) and successfully apply it to problems that are hundreds of times longer.
  • Eager Evaluation vs. MCTS: Traditional learning-based provers often use Monte Carlo Tree Search (MCTS). However, the authors found that for long, structured proofs, "eager evaluation"—simply picking the highest-probability action without searching—is actually superior. MCTS can get lost in the weeds of a massive search tree, while a well-trained policy can "sail" through a long proof chain.
  • The "Shortcut" Trap: The authors identified a fascinating failure mode: if a system learns a "shortcut" to solve an easy problem, that shortcut often fails to generalize to harder ones. Training on slightly harder problems with longer proofs actually provides a better training signal for generalization.

Key Results

  • Generalization to Massive Proofs: FLoP successfully found proofs with an average length of 2,082 steps for the RA-2 dataset.
  • Outperforming State-of-the-Art: In the binary encoding of Robinson Arithmetic, FLoP achieved a 100% success rate, outperforming top-tier provers like Vampire (67%) and E (81%).
  • Robustness without Search: In head-to-head tests against plCoP (an MCTS-based prover), FLoP maintained near-perfect performance when search was disabled, while plCoP's performance collapsed from 65% to just 5% on certain tasks. This confirms that FLoP truly internalizes the proof pattern rather than just acting as a search heuristic.

Limitations and Future Work

  • Feature Engineering: The current feature representation struggles with argument order (e.g., it might see $A=B$ and $B=A$ as identical), which is critical for some logical steps like commutativity.
  • Single Pattern Focus: This study focused on extracting a single proof pattern. Real-world mathematics requires a "portfolio" of many different patterns.
  • Transformers: The authors suggest that Transformer models could be a promising next step, potentially allowing the system to produce large "chunks" of a proof in a single inference step rather than one line at a time.

Summary updated

BibTeX
@inproceedings{zombori2021towards,
  author = {Zsolt Zombori and Adrián Csiszárik and Henryk Michalewski and Cezary Kaliszyk and Josef Urban},
  title = {{Towards Finding Longer Proofs}},
  booktitle = {TABLEAUX},
  year = {2021},
  url = {https://openreview.net/forum?id=CkCauhjLhy},
}
Figure