Learning Formal Mathematics From Intrinsic Motivation

Gabriel Poesia, David Broman, Nick Haber, Noah D. Goodman
2/3/2026

No official code found. Best implementation: gpoesia/minimo (36 stars, MIT, Rust, last commit 2025-07-10).

Abstract

How did humanity coax mathematics from the aether? We explore the Platonic view that mathematics can be discovered from its axioms - a game of conjecture and proof. We describe Minimo (Mathematics from Intrinsic Motivation): an agent that jointly learns to pose challenging problems for itself (conjecturing) and solve them (theorem proving). Given a mathematical domain axiomatized in dependent type theory, we first combine methods for constrained decoding and type-directed synthesis to sample valid conjectures from a language model. Our method guarantees well-formed conjectures by construction, even as we start with a randomly initialized model. We use the same model to represent a policy and value function for guiding proof search. Our agent targets generating hard but provable conjectures - a moving target, since its own theorem proving ability also improves as it trains. We propose novel methods for hindsight relabeling on proof search trees to significantly improve the agent's sample efficiency in both tasks. Experiments on 3 axiomatic domains (propositional logic, arithmetic and group theory) demonstrate that our agent can bootstrap from only the axioms, self-improving in generating true and challenging conjectures and in finding proofs.

View on arXivView PDF

Code Implementations(1)

gpoesia/minimoCommunity100%
RustMIT

Learning Formal Mathematics from Intrinsic Motivation

3617Rust, ShellSep 2, 20241 years agoMIT

Similar Papers

Cite this paper

@article{poesia2026learning,
  title  = {Learning Formal Mathematics From Intrinsic Motivation},
  author = {Gabriel Poesia and David Broman and Nick Haber and Noah D. Goodman},
  year   = {2026},
  eprint = {2407.00695},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2407.00695},
  url    = {https://arxiv.org/abs/2407.00695},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.00695.svg)](https://codeofpaper.com/paper/2407.00695)

Discussion