pstack v0.15.27 推出 meta-skill /create-formal-verification-skill
pstack 出了个 meta-skill,你说要验证啥,它就帮你生成 TLA+ 或 Kani 的验证方案,作者自己已经用它找到了几个 bug。
pstack v0.15.
27 新增 skill /create-formal-verification-skill,目前处于 beta 阶段。它是一个 meta-skill,根据要验证的系统特性自动生成定制的验证 skill 和配套套件:验证状态机与并发行为时生成基于 TLA+ 的方案,排查 Rust 未定义行为时生成基于 Kani 的方案。
poteto 指出形式化验证未成主流的两个原因是建模困难和规范与实现难同步,而这正是 LLM 能承担的部分。她已经用该 skill 生成的方案建模自己的代码,发现了几个 bug。
pstack 新增了一个 skill /create-formal-verification-skill 定位是 meta-skill:不直接帮你做形式化验证,而根据你想验证的系统特性,自动生成一个定制的验证 skill 和配套验证套件。比如你要验证状态机和并发行为的正确性,它会生成基于 TLA+ 的方案;要排查 Rust 代码的未定义行为,则生成基于 Kani 的方案。 Grok Bot 插件安装: x.ai/bot/plugin/971… 背后的概念:形式化验证 测试只能证明 “bug 存在”,无法证明 “没有 bug”;形式化验证则是对系统的性质做数学证明:证明某个不变量 (即“必须永远为真”的性质或“定律”) 在所有可能的情况下都成立。 poteto 点出了两条技术路线的分别: · 传统路线(外置建模):用一门独立的规范语言 (如 TLA+) 给系统建模,再运行求解器/模型检查器去穷举状态空间验证规范。代码和证明是两套东西。 · 新路线 (同语言证明):Kani 直接写在 Rust 里,Bend 的证明以 laws 的形式表达在其类型系统中;没有单独的建模语言,证明和代码活在同一处。 形式化验证是个 “理论很美、实践从未进入主流” 的领域,poteto 指出了两个历史原因:建模本身很难 (把业务需求抽象成形式化模型是专业 skill),以及规范与实现难以同步 (需求一变,两份东西都要改)。 她的判断是:这两个瓶颈恰好是 LLM 擅长接管的,让 agent 承担建模和同步的苦活。而反过来,形式化验证给 agent 提供的是传统测试给不了的强反馈:“数学上不可能违反”,这对让 AI 写出正确的软件是质的提升,她称之为“超能力”。 lauren @poteto pstack v0.15.27 ships with a new skill /create-formal-verification-skill! it's still in beta, and similar to /create-verification-skill, this is a meta-skill that creates a new skill and formal verification suite based on the characteristics you want to verify. for example, you may want to model state machines and systems with concurrency using TLA+, or use kani in rust to check for undefined behavior. if you're new to formal verification, think of it as mathematically proving properties and invariants (something that must always be true) or "laws" of your system. usually, this means modeling your programs in a separate language like with TLA+ and then running the solver on that spec. newer approaches like with kani and @bendlang take a different approach where there is no separate language: you write kani in rust, and bend in bend (it's also a programming language, and the proofs are written as laws and expressed in its type system). historically formal verification never reached mainstream status because of the difficulty in modeling and writing proofs. it's quite difficult to model your business requirements and keep them in sync! but i expect that we will see more innovation in formal verification in the future as being able to formally verifiy that the code does what you intended gives your agents superpowers in writing correct software. in the meantime though, i've been experimenting with modeling our code with TLA+ and have already found several bugs with the skill created by /create-formal-verification-skill. try it out and let me know how it goes! 🔗 View Quoted Tweet📊 1 ⚡
本条情报归属 AITOP「技巧」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:pstack、TLA+、Kani、形式化验证,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「shao__meng」(@shao__meng),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 2 家独立信源对该事件进行交叉印证与跟进报道(含 宝玉 等),属于近期高关注度行业信号。
- 宝玉10-17 22:11原文