arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.09745cs.SEcs.AI
收藏

用人工智能增强形式软件规范

Enhancing Formal Software Specification with Artificial Intelligence

IBM Research(IBM研究院)

Antonio Abu Nassar, Eitan Farchi

AI总结:

本文提出利用人工智能技术,通过轻量级数学符号和自然语言构建中间规范语言,以降低形式软件规范的开发成本并提高实现正确性。

摘要:

形式软件规范被认为能够实现早期错误检测和显式不变式,但因其较高的符号开销和使用传统形式语言所需的专业知识,其在工业中的应用有限。本文通过一个案例研究表明,近年来人工智能的进步使在保留许多形式规范优点的同时大幅降低这些成本成为可能。文章展示了系统分析师控制与可以高度受益于形式规范严谨性的内容之间需要明确区分的必要性。我们使用自然语言附加轻量级数学符号,并用LaTeX编写作为中间规范语言,在生成代码前由人工智能审查和优化。将其应用于一个非平凡的组织知识增长模拟,这种方法使能够实现早期验证、显式不变式和设计正确性,同时显著减少开发工作量,并在首次尝试中生成正确的实现。

英文摘要:

Formal software specification is known to enable early error detection and explicit invariants, yet it has seen limited industrial adoption due to its high notation overhead and the expertise required to use traditional formal languages. This paper presents a case study showing that recent advances in artificial intelligence make it possible to retain many of the benefits of formal specification while substantially reducing these costs. The necessity of a clear distinction between what is controlled by the system analyst and can highly benefits from the rigor of formal specification and what need not be controlled is demonstrated. We use natural language augmented with lightweight mathematical notation and written in \LaTeX\ as an intermediate specification language, which is reviewed and refined by AI prior to code generation. Applied to a nontrivial simulation of organizational knowledge growth, this approach enables early validation, explicit invariants, and correctness by design, while significantly reducing development effort and producing a correct implementation on the first attempt.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑