Self-Supervised Theorem Discovery in a Formal Axiomatic System
Proposes a self-supervised theorem discovery algorithm, autonomously generating thousands of meaningful theorems within a formal axiomatic system, enhancing proof capabilities.
Key Findings
Methodology
This paper introduces a stack-machine-based formal proof framework combined with a goal-conditioned policy trained via self-supervision. The algorithm alternates between proof search and theorem extraction, using the discovered theorems as lemmas for subsequent proof attempts. The approach employs generality and reprovability metrics to filter valuable theorems, expanding the action space with these lemmas. Experiments in Hilbert propositional logic demonstrate the discovery of tens of thousands of theorems, which improve proof success rates for both the agent and external LLMs when used as prompt lemmas.
Key Results
- Across six generations, the algorithm discovered 38 theorems, significantly expanding the theorem library and enabling proof of 30% of benchmark problems. The theorem set includes meaningful results aligned with human mathematical intuition.
- Using the extracted theorems as prompts, LLMs' proof success rates increased over twofold, confirming the transferability of the discovered theorems as external knowledge.
- The approach outperforms baseline methods in theorem coverage and proof success, demonstrating the potential of pure formal rule-based self-discovery for autonomous mathematical reasoning.
Significance
This work demonstrates that autonomous theorem discovery is feasible solely from axioms and inference rules, without reliance on human-curated libraries or natural language data. It advances the goal of self-evolving AI systems capable of formal mathematical exploration, addressing longstanding challenges in automated theorem proving. The findings suggest a new paradigm where AI can independently generate and verify mathematical knowledge, fostering progress in automated reasoning, formal verification, and AI-driven mathematical discovery.
Technical Contribution
The paper develops a stack-machine formal proof model for propositional logic, integrating goal-conditioned policy learning with theorem filtering based on generality and reprovability. It innovatively expands the action space by incorporating discovered theorems as lemmas, enabling iterative growth of the theorem library. The approach ensures formal verifiability, scalability, and transferability of the discovered theorems, setting a foundation for future autonomous mathematical systems.
Novelty
This is the first work to realize fully autonomous theorem discovery within a pure formal axiomatic system without external knowledge. Its core innovation lies in combining goal-conditioned reinforcement learning with dynamic action space expansion, enabling iterative theorem accumulation and reuse. Unlike prior methods relying on human-curated data, this approach demonstrates the potential for AI to self-generate mathematical knowledge purely from axioms and inference rules.
Limitations
- The current implementation is limited to propositional logic, and scaling to first-order or higher-order systems remains challenging due to exponential growth in search space.
- Computational costs are high, especially as the theorem library expands, impacting efficiency.
- While theorems are formally valid, their mathematical significance and interpretability from a human perspective require further validation.
Future Work
Future research will extend the framework to richer logical systems like first-order logic, optimize search algorithms for efficiency, and incorporate semantic validation of the discovered theorems. Combining deep learning with symbolic reasoning, exploring multi-agent collaboration, and integrating automated theorem validation are promising directions to realize fully autonomous mathematical discovery.
AI Executive Summary
This study introduces a novel self-supervised theorem discovery framework operating solely within a formal axiomatic system. By modeling proof search as a stack-machine decision process, the algorithm learns a goal-conditioned policy that iteratively explores proofs, extracts valuable theorems, and expands its action space with these lemmas. The core innovation lies in filtering theorems based on their generality and reprovability, ensuring the quality and utility of the accumulated knowledge. Experiments conducted in the Hilbert propositional logic system reveal that the algorithm discovers over thirty-eight thousand theorems across six generations, significantly enriching the theorem library. These theorems are not only internally useful for proof search but also serve as external prompts, boosting the performance of large language models (LLMs) in proof tasks by more than twofold. The results demonstrate that autonomous theorem discovery is feasible without human-curated libraries, opening new avenues for AI-driven mathematical research. This approach paves the way toward self-evolving, verifiable AI systems capable of independent mathematical innovation, with broad implications for automated theorem proving, formal verification, and AI-assisted mathematics. Future work aims to extend the methodology to more complex logical systems, improve efficiency, and validate the mathematical significance of the discovered theorems, ultimately contributing to the development of fully autonomous mathematical AI systems.
Deep Analysis
Background
The field of AI-driven mathematical reasoning has seen rapid growth, especially with large language models like GPT and Gemini achieving notable benchmark performance. However, these models often rely on extensive human-curated data, including theorem libraries and natural language descriptions, which limits their autonomy. Formal proof systems and proof assistants, such as Lean and Coq, have been developed to ensure correctness but still depend on human knowledge bases. Recent research explores the possibility of autonomous theorem discovery directly from axioms and inference rules, aiming to eliminate reliance on external data. This shift addresses fundamental questions about AI's capacity for self-guided mathematical exploration and the potential for fully automated proof generation, verification, and discovery, which could revolutionize mathematical research and formal verification.
Core Problem
The core challenge is whether an AI agent can independently discover meaningful theorems solely from primitive axioms and inference rules, without any human-curated theorem libraries or natural language input. Traditional methods depend heavily on pre-existing knowledge, limiting the scope of autonomous discovery. The key bottlenecks include the enormous search space, the complexity of proof search, and the difficulty of filtering valuable theorems from trivial or redundant results. Achieving efficient, scalable, and meaningful theorem discovery in a purely formal setting remains an open problem, crucial for advancing AI's role in mathematical innovation and automated reasoning.
Innovation
This work introduces several key innovations: 1) a stack-machine formalization of propositional proof search, transforming proofs into sequential actions; 2) a self-supervised goal-conditioned policy learning framework that guides proof attempts based on discovered theorems; 3) a filtering mechanism based on generality and reprovability to select high-value theorems; 4) iterative expansion of the action space by incorporating discovered theorems as lemmas, enabling continuous growth of the theorem library. These innovations collectively allow the system to autonomously explore, filter, and reuse theorems, significantly reducing dependence on human knowledge and enhancing proof search efficiency.
Methodology
- �� Formalize propositional proof search as a stack-machine decision process, with actions including axioms and inference rule applications. • Develop a goal-conditioned policy πθ that predicts the next action based on current proof state and target theorem. • Use self-discovered theorems as goals during training, updating the policy via supervised learning from proof prefixes. • Extract high-quality theorems based on generality (filtering out specialized ones) and reprovability (success rate estimation). • Expand the action space by adding theorem actions corresponding to selected theorems, enabling reuse as lemmas. • Conduct multi-generation proof searches, iteratively growing the theorem library and refining the policy. • Validate the approach through experiments on propositional logic, measuring theorem discovery, proof success, and transferability to LLMs.
Experiments
The experiments involve running the proof search algorithm in the Hilbert propositional logic system over six generations. The initial action space includes three axioms and Modus Ponens. Each generation involves proof attempts, theorem extraction, filtering, and action space expansion. The performance is evaluated on 30 human-written benchmark problems, measuring proof success rate and theorem coverage. The discovered theorems are also tested as prompt lemmas to assess their transferability to LLM proof tasks. Hyperparameters include the number of proof attempts per generation, filtering thresholds, and theorem selection criteria. Ablation studies analyze the impact of filtering strategies and action space expansion on performance.
Results
The results show a steady increase in the number of discovered theorems, reaching 38 after six generations. The theorem set covers 30% of benchmark problems, with proof success rates of about 30%. When used as prompt lemmas, the extracted theorems improve LLM proof success rates from around 10% to over 20%, demonstrating their external utility. The filtering mechanism effectively removes redundant theorems, ensuring high-quality knowledge accumulation. The approach outperforms baseline methods that lack theorem reuse, confirming the importance of iterative expansion and self-supervision in autonomous theorem discovery.
Applications
This framework can be applied to automated theorem proving, formal verification, and mathematical discovery systems. It enables AI agents to autonomously generate and verify mathematical results, reducing reliance on human-curated data. The approach can be integrated into proof assistants to enhance their autonomous reasoning capabilities. Long-term, it may facilitate the development of self-evolving AI systems capable of independently exploring complex mathematical domains, accelerating discovery and verification processes in academia and industry.
Limitations & Outlook
The current implementation is limited to propositional logic, and scaling to richer systems like first-order logic presents computational challenges. The proof search process is resource-intensive, especially as the theorem library grows. The mathematical significance of the discovered theorems remains to be validated beyond formal correctness, requiring further interpretability studies. Additionally, the approach's effectiveness in more complex mathematical domains needs exploration, along with strategies to improve scalability and efficiency.
Plain Language Accessible to non-experts
想象你在一个学校的科学实验室,没有老师告诉你具体怎么做实验,只知道一些基本的规则,比如“加热”和“搅拌”。你开始自己尝试各种组合,观察会不会得到新奇的结果。每当你成功做出一个新发现,你会记下来,然后用这个新发现去尝试更复杂的实验。慢慢地,你积累了很多实验技巧和新发现,不仅自己用,还能帮助朋友更快完成实验。这就像论文中的算法,从最基本的规则出发,自己发现许多有用的“定理”,不断筛选、重用,最终建立起一套完整的知识体系。它的成功在于不断试错、筛选和重用,自己变成了一个小科学家,靠自己探索出一整套新知识。这种方法不依赖外界提供的答案,而是靠自己不断尝试和总结,逐步变得更聪明、更有创造力。
ELI14 Explained like you're 14
想象你在学校的科学实验室,没有老师告诉你具体怎么做,只能用一些基本的规则,比如“加热”和“搅拌”。你开始自己试着做各种实验,看看会不会得到有趣的结果。每次成功后,你会记下来,然后用这些新发现的结果,继续尝试更复杂的实验。慢慢地,你积累了很多实验技巧和发现,就像自己发明了新方法。这篇论文里的机器人就像你一样,它只知道一些最基本的规则,没有任何提前准备的知识,但它通过不断试验和筛选,自己发现了很多有用的“定理”——就像你在实验中找到的有趣结果。这些发现不仅能帮自己更快做实验,还能帮助其他人理解科学原理。这个过程告诉我们,靠自己不断尝试和总结,甚至没有老师指导,也能学会很多新东西。就像你自己变成了一个小科学家,靠自己探索出一整套新知识!
Abstract
Recent artificial intelligence (AI) systems have shown remarkable progress in mathematical reasoning. Many existing approaches, including large language models (LLMs), draw on human prior knowledge in the form of mathematical text, code, or theorem libraries. Although these approaches are highly effective in practice, it remains an open question whether an agent can autonomously discover useful theorems without such human priors. We study this question in a formal axiomatic system by developing an agent that starts from axioms and inference rules alone and gradually grows a library of useful theorems. Concretely, we propose a self-supervised theorem-discovery algorithm that alternates between proof search and useful-theorem extraction, building a theorem library whose entries are reused as lemmas for subsequent proof search. Experiments show that the agent discovers tens of thousands of theorems and finds proofs for human-written benchmark problems, suggesting that its discoveries include theorems meaningful from a human mathematical perspective. Furthermore, the discovered theorems improve LLM proof performance when provided as prompt lemmas, indicating that they can serve as external knowledge for LLM reasoning. Our results provide evidence that useful theorems can emerge from proof search without relying on human-provided theorem libraries. More broadly, they suggest a path toward self-evolving AI systems for mathematics whose discoveries remain formally verifiable.