mlsanityData to 26 Nov 2026

Beyond Correctness: Attribution of Natural-Language Documentation for Formal Libraries

arXiv 2610.33094 ↗Submitted 22 Oct 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Formal languages are widely used in software engineering to specify and verify program properties. Because their mathematical notation and logic are hard to read, developers often rely on natural-language documentation to understand the functions in formal libraries. Yet a documentation statement can be provably true and still hold after the function's behavior changes. We call a statement's dependence on the function's specific behavior attribution, and we give a method to check it. We design and implement DocAuth, a documentation-generation method that uses attribution to decide what to publish and attaches to each published sentence the formal property recovered from it, together with checkable evidence. On 150 functions from the Community Books library of the ACL2 theorem prover, three large language models produce proved but non-attributable properties for about a third of the functions. DocAuth matches or exceeds the attribution rate of a mutation-based filter while delivering 37% more attributable sentences. Compared with a pipeline that checks truth alone, it raises the share of published sentences that a second model confirms as attributable from 82.9% to 94.7%. These results show that provable truth does not guarantee that documentation reflects what a function actually does. Attribution complements truth as a criterion for generating and evaluating documentation for formal libraries.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 12 of its 34 references that are in the map. Submitted 22 Oct 2026.

Builds on

12 of 34 references.

References · 12

  1. 2021Measuring Attribution in Natural Language Generation Modelscited by 281
  2. 2023Clover: Closed-Loop Verifiable Code Generationcited by 79
  3. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 73
  4. 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 72
  5. 2020Deep Just-In-Time Inconsistency Detection Between Comments and Source Codecited by 24
  6. 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Codecited by 8
  7. 2026CASCADE: Detecting Inconsistencies between Code and Documentation with Automatic Test Generationcited by 4
  8. 2014Hipster: Integrating Theory Exploration in a Proof Assistantcited by 3
  9. 2025MutDafny: A Mutation-Based Approach to Assess Dafny Specificationscited by 2
  10. 2014Industrial-Strength Documentation for ACL2cited by 1
  11. 2026Using Mutation-Analysis to Examine an LLM's Ability to Summarize Codecited by 1
  12. 2026Natural Language-Focused Software Engineering via Code-Documentation Equivalencecited by 1

Built on by

Not cited yet.