Back to search

Massachusetts Institute of Technology

Formal Mathematics via Language-Model Probabilistic Programming

Abstract

dc:description.abstract

Formal 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)

Identifiers

dc:identifier.*
Repository record dc:identifier.uri
https://dspace.mit.edu/handle/1721.1/171490

Chain of custody

source
Harvested from
MIT
Base URL
dspace.mit.edu/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Barba da Costa, Mauricio. Formal Mathematics via Language-Model Probabilistic Programming. Massachusetts Institute of Technology, 2026. https://dspace.mit.edu/handle/1721.1/171490