跳到正文
Microsoft Research· @MSFTResearch · X·· 2 小时前AI 评分61
AI 导读

Microsoft Research 推出了 Proof-Driven Development Kit,旨在通过将自然语言开发者意图转化为 Verus 规范,利用形式化验证中的数学证明来测试智能体生成的代码并提高其可靠性。该套件将传统用于安全关键系统的形式化方法引入 AI 编码,能够标明证明无法触及的范围,帮助开发者应对代码规模过大而难以逐行审查的信任问题。

正文 · 原文

How do you solve the trust problem with AI-generated code?

AI agents can generate code at a scale too great for humans to review line-by-line. That makes it difficult to ensure the code will do what the developer intended, and it leaves the final output vulnerable to bugs and security risks.

Proof-Driven Development Kit turns plain-language developer intent into a specification in Verus, applying formal methods traditionally used for safety-critical systems. PDD Kit uses mathematical proofs to test agent-generated code against the spec where possible, and clearly indicates where the proofs can’t reach. The result is more reliable agentic code.

Researchers @MatthaiP39719 and @alexlavaee break down Proof-Driven Development in the MSR blog: https://msft.it/6019af2V7

来源:Microsoft Research · x.com