Massachusetts Institute of Technology
Formal Mathematics via Language-Model Probabilistic Programming
Abstract
dc:description.abstractFormal mathematics—encompassing tasks such as auto-formalization and theorem proving— offers automated verification signals that make it an attractive domain for language model research. However, existing inference-time strategies for these tasks tend to be inefficient. We apply language model probabilistic programming (LMPP) to formal mathematics, leveraging a framework that allows practitioners to define target distributions over language model outputs through composable potential functions, with inference handled automatically via Sequential Monte Carlo (SMC). We develop multiple potentials that we apply to formal mathematics tasks. We develop two ad-hoc potentials for auto-formalization—incremental type checking and cycle consistency—and two general-purpose ones that we apply specifically to the domain of formal theorem-proving—Long Horizon Temperature Scaling and SMC-based Speculative Decoding. Our empirical results show that these LMPP-based strategies can improve both accuracy and efficiency on formal mathematics benchmarks.
Degree
thesis:*- Name thesis:degree_name
- Master
- Grantor dc:publisher
- Massachusetts Institute of Technology
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Barba da Costa, Mauricio
- Advisors dc:contributor.advisor
-
- Freer, Cameron
- Mansinghka, Vikash
Rights
dc:rights- Statement dc:rights
-
- In Copyright - Educational Use Permitted
- Copyright retained by author(s)
- Licence dc:rights.uri
Identifiers
dc:identifier.*- Repository record dc:identifier.uri
- https://dspace.mit.edu/handle/1721.1/171490