跳到正文
arXiv:cs.AI· Srijith Nair, Aditya Vempaty, Jia Liu, Ashish Jagmohan·· 3 小时前

超越类型检查:面向形式化规格生成的整体评估

Beyond Type-checking: Towards Holistic Evaluation of Formal Specification Generation

AI 导读

研究提出面向形式化规格生成(SpecGen)的整体评估框架,整合 VERINA 的 189 个与 CLEVER 的 161 个共 350 个 Lean 任务,覆盖形式有效性、参考相似度与等价性、行为充分性三类指标。

正文

View PDF HTML (experimental)

Abstract:When generating verifiable code, natural language requirements are mapped to machine checked code using LLMs and agentic workflows. A crucial component of this pipeline is specification generation (SpecGen), which produces a formal contract against which an agent can prove implementation correctness. Proof generation can obtain deterministic feedback from a theorem prover, but SpecGen lacks a definitive check that a generated specification captures the user's intent. A checked proof can therefore establish correctness against a specification that misrepresents the intended behaviour. We take a step towards holistic SpecGen evaluation with a unified dataset assembled from $350$ existing Lean tasks, including $189$ from VERINA and $161$ from CLEVER, and a framework covering formal validity, reference similarity and equivalence, and behavioural adequacy. We distinguish acceptance of required inputs from acceptance of valid outputs and rejection of invalid outputs, while making each metric's evidence scope explicit. Across four SpecGen configurations, restricting the generalized tree edit distance (GTED) comparison, a reference similarity measure, to $32$ jointly measurable VERINA tasks changes the VERINA configuration's position from second to fourth in mean similarity, showing the importance of measurement coverage. In an authored control, a specification achieves $100\%$ positive test recall and negative test rejection while accepting $0\%$ of required inputs. This demonstrates that perfect postcondition scores can miss an unusable input contract, motivating separate feedback on input coverage and output constraints.
Comments: Accepted at NeurIPS 2026 Workshop on AI for Verifiable Coding (20 pages, 7 figures)
Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.10604 [cs.SE]
  (or arXiv:2610.10604v1 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.2610.10604

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Srijith Nair [view email]
[v1] Wed, 7 Oct 2026 02:11:30 UTC (306 KB)

来源:arXiv:cs.AI · arxiv.org