Metraipolis › archive › dc_d2f69c7f1643
How Powerful are LLMs in Generating Formal Program Specifications? — arXiv:2608.13077
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.13077
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T04:40:55.788Z
- SHA-256 of the archived text
197bb226a006dfbefb2acd56626c36c10ffc17df1b1fe53f365ec559bf3a5229- Stable URL of this page
https://metraipolis.com/documento/dc_d2f69c7f1643
How to cite
How Powerful are LLMs in Generating Formal Program Specifications? — arXiv:2608.13077 — arXiv (en), https://arxiv.org/abs/2608.13077 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d2f69c7f1643 (Metraipolis archive dc_d2f69c7f1643, sha256 197bb226a006dfbefb2acd56626c36c10ffc17df1b1fe53f365ec559bf3a5229)
BibTeX
@misc{dcd2f69c7f1643,
title = {How Powerful are LLMs in Generating Formal Program Specifications? — arXiv:2608.13077},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.13077},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d2f69c7f1643; sha256 197bb226a006dfbefb2acd56626c36c10ffc17df1b1fe53f365ec559bf3a5229},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.13077. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Formal verification provides strong guarantees of software correctness, but its adoption is limited by the high cost of writing precise formal specifications. While recent large language models (LLMs) have shown strong capabilities in theorem proving and verified code generation, their true ability to generate program specifications remains unclear. Existing evaluations require either verifying implementation conformance or proving semantic equivalence between specifications, both of which are formidably difficult and may conflate proof difficulty with specification quality. To address this problem, we introduce Coins, a Rocq based evaluation framework that assesses specification quality by instantiating specifications under evaluation on trusted test cases and generating concrete proof obligations. This design aligns with the asymmetric nature of formal reasoning, where successful proofs provide reliable evidence while proof failures are inherently ambiguous. Using Coins, we conduct a large scale study on HumanEval with a curated set of human written Rocq specifications. Our results show that specification generation remains a formidable challenge, and that verification complexity can obscure genuine differences in specification quality. Overall, we find that accurate specification evaluation, rather than model scaling alone, is central to understanding the power of LLMs for specification synthesis, and that test case based formal reasoning offers a more faithful and discriminative measure of progress. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-14 in cs.SE). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2608.13077 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-19T04:25:15.791Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).