Magmide提出务实的形式化验证路线
作者认为,LLM正在加剧软件工程中的不良实践,但文章没有提供独立测量数据来支持这一判断。文章将Magmide定位为一个项目,目标是创建供实践者立即采用的形式化可验证编程语言。修订后的路线图拟编译至WebAssembly,采用不包含借用检查器难点的Rust风格类型系统,先引入由SMT驱动的Liquid Types和Flow Effects,之后再将Lean集成为证明层,并使用Iris等分离逻辑方案引导语言开发并验证其实现。该内容是路线提案,并非已经发布的语言版本。
这份路线图提出了一条自下而上的方法,通过逐步增加证明能力,让形式化验证更易被实际工程师采用。作者同时主张,证明助手和LLM自动化不能取代人类对形式化正确性的理解以及工程师对这类工具的采用。
Because of LLMs, the discipline of software engineering is in crisis. Quality is nose-diving, and I see no reason why it won't keep getting worse. Software engineering was struggling before LLMs(opens new window). The default was to be sloppy and poorly considered, and now everyone is frantically accelerating those same terrible practices to LLM speed.
Something has to change. I've been preoccupied with this for a while(opens new window), but much more qualified people finally fully agree with me(opens new window). The only way forward is to fully embrace formal verification(opens new window), all the way down to the foundations of our civilizational software stack. We have to post-hoc verify the things we can, and rewrite the rest.
But that's easier said than done. Existing formal verification tools suffer from massive usability(opens new window) and understandability(opens new window) problems, and have failed to make any kind of noticeable impact on the broader culture of software engineering.
It might be tempting to say that LLMs will actually save us in this regard, by allowing humans to create formally verified code without needing to understand its fundamentals in any way. This is pure cope. Merely having excellent proof assistants and LLMs will never be good enough. Even in a world where something like Lean is extremely scalable and LLMs can write all proofs, it doesn't matter if they aren't adopted by actual industry engineers as they build the real apps we actually use. For provably correct code to defend us from the LLM future:
#Magmide#Lean#WebAssembly#Rust#Deno#Iris#Liquid Types#Flow Effects