Monty: Faithful Autoformalization of Natural Language Assertions
Jul 16, 2026
Researchers introduce Monty, a framework that leverages large language models (LLMs) to automatically formalize natural-language assertions into executable formal contracts. Monty improves precision by up to 20 points over naive LLM translation by filtering candidate formalizations using conformance and validity scores. The system was evaluated on 541 assertion-generation tasks from 22 Java collection-like classes.
Why it matters: Automating the creation of formal contracts could reduce the manual effort required for software testing and verification, potentially enhancing developer productivity and software reliability.
Full story at: arXiv Software Engineering ↗