AI & ML
How Powerful are LLMs in Generating Formal Program Specifications?
arXiv cs.SE0 views
arXiv:2608.13077v2 Announce Type: replace Abstract: 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.
Source:https://arxiv.org/abs/2608.13077PreviousAiFlow: Construction-to-Retirement Conformance for Versioned LLM ServicesNextFixed or Deleted? External Feedback Lets Cheaper AI Coding Agents Repair Rule Violations
Related posts

42 state AGs are trying to stop Character.AI from selling users’ chats
0The Verge

Tencent Hunyuan Hy3 vs Hy4: Why 770B Parameters, 1M Context, and a 95% Cache Discount Change the Agent Math
0dev.to

The Hidden Cost of Write-Time LLM Summarization at 500 Sessions (LongMemEval-M & LoCoMo Audit)
0dev.to
Tesla Full Self Driving Explained by Andrej Karpathy (2021) [video]
0Hacker News New
The Bill C-22 Surveillance Map: Canada Wants Providers to Keep Location Data
0Hacker News New
PDF Reader – PDF Maker and Editor – All-in-One PDF Tool for Android
0Hacker News New