{"id":{"repo_id":"mit","oai_identifier":"oai:dspace.mit.edu:1721.1/171490"},"canonical_url":"https://search.ndltd.org/etd/mit/oai:dspace.mit.edu:1721.1/171490","repository":{"repo_id":"mit","name":"MIT","base_url":"https://dspace.mit.edu/oai/request"},"display":{"title":"Formal Mathematics via Language-Model Probabilistic Programming","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.","abstract_html":"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.","abstract_has_math":false,"creators":["Barba da Costa, Mauricio"],"institution":"Massachusetts Institute of Technology","degree_name":"Master","degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Freer, Cameron","Mansinghka, Vikash"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-02","date_published":"2026-02","updated_at":"2026-11-27T06:23:52Z","subjects":[],"languages":[],"rights":["In Copyright - Educational Use Permitted","Copyright retained by author(s)"],"rights_urls":["https://rightsstatements.org/page/InC-EDU/1.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://dspace.mit.edu/handle/1721.1/171490","outbound_label":"Repository record","outbound_source":"dc:identifier.uri","record_url":"https://dspace.mit.edu/handle/1721.1/171490","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Amit%3Aoai%3Adspace.mit.edu%3A1721.1%2F171490","prefix":"oai_dc"},"source_record":{"url":"https://dspace.mit.edu/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adspace.mit.edu%3A1721.1%2F171490","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Freer, Cameron","Mansinghka, Vikash"]},{"key":"dc:creator","label":"Author","values":["Barba da Costa, Mauricio"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-08-04T20:12:06Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-08-04T20:12:06Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-02"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["2026-03-06T21:41:26.507Z"]},{"key":"dc:publisher","label":"Institution","values":["Massachusetts Institute of Technology"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master","Master of Engineering in Electrical Engineering and Computer Science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:rights","label":"Dc Rights","values":["In Copyright - Educational Use Permitted","Copyright retained by author(s)"]},{"key":"dc:rights.uri","label":"Rights URI","values":["https://rightsstatements.org/page/InC-EDU/1.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dspace.mit.edu/handle/1721.1/171490"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"cerif:openaire","label":"Cerif Openaire","values":["<Publication xmlns=\"https://www.openaire.eu/cerif-profile/1.1/\" id=\"3f896241-4498-496a-91a8-6257f737bb1b\"> <Type xmlns=\"https://www.openaire.eu/cerif-profile/vocab/COAR_Publication_Types\">http://purl.org/coar/resource_type/c_1843</Type> <Title>Formal Mathematics via Language-Model Probabilistic Programming</Title> <PublishedIn> <Publication> </Publication> </PublishedIn> <PublicationDate>2026-02</PublicationDate> <Authors> <Author> <DisplayName>Barba da Costa, Mauricio</DisplayName> <Affiliation> <OrgUnit> </OrgUnit> </Affiliation> </Author> </Authors> <Editors> </Editors> <Publishers> <Publisher> <DisplayName>Massachusetts Institute of Technology</DisplayName> <OrgUnit /> </Publisher> </Publishers> <License>https://rightsstatements.org/page/InC-EDU/1.0/</License> <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.</Abstract> <Access xmlns=\"http://purl.org/coar/access_right\" > </Access> </Publication>"]},{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["M.Eng."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Formal Mathematics via Language-Model Probabilistic Programming"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"others:access_status","label":"Others Access Status","values":["unknown"]}]}],"canonical_facts":{"cerif:openaire":["<Publication xmlns=\"https://www.openaire.eu/cerif-profile/1.1/\" id=\"3f896241-4498-496a-91a8-6257f737bb1b\"> <Type xmlns=\"https://www.openaire.eu/cerif-profile/vocab/COAR_Publication_Types\">http://purl.org/coar/resource_type/c_1843</Type> <Title>Formal Mathematics via Language-Model Probabilistic Programming</Title> <PublishedIn> <Publication> </Publication> </PublishedIn> <PublicationDate>2026-02</PublicationDate> <Authors> <Author> <DisplayName>Barba da Costa, Mauricio</DisplayName> <Affiliation> <OrgUnit> </OrgUnit> </Affiliation> </Author> </Authors> <Editors> </Editors> <Publishers> <Publisher> <DisplayName>Massachusetts Institute of Technology</DisplayName> <OrgUnit /> </Publisher> </Publishers> <License>https://rightsstatements.org/page/InC-EDU/1.0/</License> <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.</Abstract> <Access xmlns=\"http://purl.org/coar/access_right\" > </Access> </Publication>"],"dc:contributor.advisor":["Freer, Cameron","Mansinghka, Vikash"],"dc:creator":["Barba da Costa, Mauricio"],"dc:date.accessioned":["2026-08-04T20:12:06Z"],"dc:date.available":["2026-08-04T20:12:06Z"],"dc:date.issued":["2026-02"],"dc:date.submitted":["2026-03-06T21:41:26.507Z"],"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."],"dc:description.degree":["M.Eng."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://dspace.mit.edu/handle/1721.1/171490"],"dc:publisher":["Massachusetts Institute of Technology"],"dc:rights":["In Copyright - Educational Use Permitted","Copyright retained by author(s)"],"dc:rights.uri":["https://rightsstatements.org/page/InC-EDU/1.0/"],"dc:title":["Formal Mathematics via Language-Model Probabilistic Programming"],"dc:type":["Thesis"],"dspace:entity.type":["Publication"],"others:access_status":["unknown"],"thesis:degree_name":["Master","Master of Engineering in Electrical Engineering and Computer Science"]},"updated_at":"2026-11-27T06:23:52Z"}