Trustworthy Formal Natural Language Specifications
Not on the map. Why?
Abstract (arXiv)
Interactive proof assistants are computer programs carefully constructed to check a human-designed proof of a mathematical claim with high confidence in the implementation. However, this only validates truth of a formal claim, which may have been mistranslated from a claim made in natural language. This is especially problematic when using proof assistants to formally verify the correctness of software with respect to a natural language specification. The translation from informal to formal remains a challenging, time-consuming process that is difficult to audit for correctness. This paper shows that it is possible to build support for specifications written in expressive subsets of natural language, within existing proof assistants, consistent with the principles used to establish trust and auditability in proof assistants themselves. We implement a means to provide specifications in a modularly extensible formal subset of English, and have them automatically translated into formal claims, entirely within the Lean proof assistant. Our approach is extensible (placing no permanent restrictions on grammatical structure), modular (allowing information about new words to be distributed alongside libraries), and produces proof certificates explaining how each word was interpreted and how the sentence's structure was used to compute the meaning. We apply our prototype to the translation of various English descriptions of formal specifications from a popular textbook into Lean formalizations; all can be translated correctly with a modest lexicon with only minor modifications related to lexicon size.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 14 of its 142 references that are in the map. First posted on arXiv 5 Oct 2023.
Builds on
14 of 142 references.
References · 14
- 2017Attention Is All You Needcited by 59,932
- 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 317
- 2022Autoformalization with Large Language Modelscited by 252
- 2023Language models are not naysayers: An analysis of language models on negation benchmarkscited by 73
- 2017The Parallel Meaning Bank: Towards a Multilingual Corpus of Translations Annotated with Compositional Meaning Representationscited by 41
- 2021Sorting through the noise: Testing robustness of information processing in pre-trained language modelscited by 27
- 2015A Survey and Classification of Controlled Natural Languagescited by 18
- 2023Limits for Learning with Language Modelscited by 17
- 2021A CCG-Based Version of the DisCoCat Frameworkcited by 16
- 2022Little Tricky Logic: Misconceptions in the Understanding of LTLcited by 6
- 2020Tabled Typeclass Resolutioncited by 3
- 2017Formalising Type-Logical Grammars in Agdacited by 2
2 more
- 2022Towards Property-Based Tests in Natural Languagecited by 1
- 2022Natural Language Specifications in Proof Assistantscited by 1
Built on by
Not cited yet.