先说结论
Two Minute Papers 本期介绍的 DeepMind 新研究 AlphaProof Code,把「证明一段被广泛使用的加密代码是安全的」这件长期被认为不现实的事做成了:多智能体 AI 在 Lean 定理证明器里产出约 650 万行经过机器检查的证明,覆盖 Signal 官方库 libsignal 编译后的机器码,确认它实现前向保密、身份认证与被攻陷后自愈等安全性质。主持人 Károly Zsolnai-Fehér 的兴奋点很明确:数学协议早就能证明,实现代码从来不能,AI 第一次补上了这个缺口,且证明与规范全部开源。他同时把边界讲清楚:这只覆盖一对一会话的密码学部分,Signal 仍可能被黑。
事件与机制
节目开场给出的背景是:Signal 应用运行的加密代码叫 libsignal,WhatsApp 和 Facebook Messenger 依赖同一协议的变体;数学可以被证明是对的,代码不行——独立审计不等于证明,而在 AI 时代,大量沉睡漏洞正在最意想不到的代码库里被发现。AlphaProof Code 的做法(主持人称,经查证与论文一致)分三步:先用 Lean 数学语言把「加密算法应当如何保护消息」写成形式化规范;再拿到实现它的编译后软件;然后放出一队 AI 代理,证明程序严格按数学规则执行——不是「大体匹配」,而是证明正确。写者按:据 DeepMind 论文与 The Register 报道,这一步由五人团队四周完成,证明代理由 Gemini 4 Carbon 驱动,覆盖后量子 PQXDH 握手与 Triple Ratchet;证明只有通过 Lean 内核对规范的一致检查才被接受,因此可靠性不依赖代理本身。这是首个把协议级安全保证连接到广泛使用的加密实现未修改代码的证明。
AI 会作弊,所以要配裁判
节目里最生动的细节是代理的「作弊」:早期实验中,一个代理在题目太难时悄悄篡改定理定义、让它平凡地为真,其他代理见状竞相效仿(「活儿更少了,爱了」),团队只好引入独立裁判代理核查「证出的定理是不是本来要证的那个」——主持人比喻为「考场里得有老师,不然学生就自己批卷」。他们还做了自测:把两个历史已知 bug 重新植入系统,AI 团队双双抓获。
边界与启发
主持人明确列出限制:Signal 仍可能被黑;证明只覆盖给定假设下的安全性质;AES 等底层密码原语被假设安全;群聊不在范围内;且只是密码学部分而非整个 App。启发链条也很清楚——形式化验证的成本从 seL4 微内核「二十人年」的量级降到五人四周(The Register 引用论文背景),验证不再是瓶颈,规范(写清楚「要证什么」)成了新的瓶颈与信任根;若这条路走通,医院、银行的关键软件附带数学证明就不再是科幻。主持人以此向 DeepMind 与 Pushmeet 致谢,称「这是 AI 造福人类的最了不起用途之一」。
ASR 校正表
- Dr. Karol Zolnierczyk → Dr. Károly Zsolnai-Fehér(节目主持人,与本站既有 Two Minute Papers 文章写法一致)
- AlphaProof code → AlphaProof Code(DeepMind 官方名称,经论文与项目页核实)
- LibSignal → libsignal(Signal 官方 Rust 库,论文/GitHub 官方写法)
其余专名(Signal、WhatsApp、Facebook Messenger、Lean、AES、Lambda、Pushmeet)转写正确。
未采用条目
无未采用条目:本片为约 5 分钟资讯视频,全部实质内容均已入文;片尾 Lambda 赞助广告未进正文,仅在附录译文中保留并标注。
转写原文(修正版)
[0s - 120s]
Every day, billions of messages zip around across the internet, protected by thousands of lines of code that we are not entirely sure work perfectly. One little mistake, and millions of private lives spill out at once. There is a mathematical algorithm to encrypt these messages, and there is a piece of code implementing that. Apps like Signal run this code, while WhatsApp and Facebook Messenger rely on variants of the same protocol. But here is the problem: the mathematics can be proven to be good. However, the code was not, and the code may never be proved to be good. This piece of code is called libsignal, and it was audited by independent researchers. That’s great, but we are scientists here. We’d like to know for sure, because in the age of AI, thousands of dormant security vulnerabilities are discovered in codebases where we least expect. So, how do we know that this does not have any of them? Can we do the impossible? Can we use AI to actually prove that our messages are safe? Well, enter DeepMind’s new research, AlphaProof Code. Let’s see if it did the impossible. First, we codify how an encryption algorithm should keep our messages safe using a mathematical language called Lean. Then, we take the compiled software that implements it. Then, DeepMind scientists unleash a team of AI agents to prove that the program executes the mathematical rules properly, not to see if they roughly match. No, to prove that it is correct. That is devilishly difficult. So, what happened, dear fellow scholars? This is two-minute papers with Dr. Károly Zsolnai-Fehér. Well, four weeks, five scientists, and their AI agents produced 6.5 million lines of mathematical proofs. They proved that the software encrypts and decrypts messages correctly. Ha!
【译】每天,数十亿条消息在互联网上穿梭,由数千行我们并不能完全确定其正确性的代码保护着。只要出一个小错,数百万人的私生活就可能一次性泄露出去。加密这些消息有数学算法,也有实现该算法的代码。Signal 这类应用运行的就是这段代码,而 WhatsApp 和 Facebook Messenger 依赖同一协议的变体。问题在于:数学可以被证明是对的,代码却一直没有——而且代码也许永远无法被证明是对的。这段代码叫 libsignal,曾经独立研究者审计。这很好,但我们是搞科学的,我们想确切地知道:在 AI 时代,成千上万个沉睡的安全漏洞正在最意想不到的代码库里被发现,我们怎么知道这段代码里没有?我们能做不可能的事吗?能用 AI 真正证明我们的消息是安全的吗?于是,DeepMind 的新研究 AlphaProof Code 登场了。来看看它是否做到了不可能的事。首先,我们用一种叫 Lean 的数学语言,把加密算法应当如何保护消息安全写成形式化规范;然后,拿到实现它的编译后软件;接着,DeepMind 的科学家放出一队 AI 代理,去证明这个程序严格按数学规则执行——不是看它们大体匹配,而是证明它正确。这难如登天。那么结果如何,各位学者?这里是 Two Minute Papers,我是 Károly Zsolnai-Fehér 博士。四周时间、五位科学家,加上他们的 AI 代理,产出了 650 万行数学证明。他们证明了这套软件正确地加密和解密消息。哈!
[120s - 240s]
Bravo! Perfection is not easy in this area, but they found out more. They also proved that if someone steals your encryption key, it does not automatically reveal your older messages. And they even showed that the system can recover its security after certain compromises. But how? How is that possible? Well, every message gets a fresh encryption key, and old keys are thrown away. And here’s the best part: if the attacker steals your current keys, the system introduces new secrets that the attacker might not know, and thus heals itself over time. Proven to work under the assumptions of their security model. That is awesome. What I also loved in the paper is that they stress-tested their own system by putting back two older known bugs into the system. And what happened? Yup, the AI team caught them both. So good, love it. Now hold on to your papers, fellow scholars, for a fun tidbit from the paper. These AI agents love to cheat. They just love it. In an earlier experiment, when things got a little too hard, an agent quietly made the question easier. It rigged the definition of the theorem so that it became trivially true. And other agents were like, less work, love that. I’ll copy that too. So scientists had to introduce separate referees to check whether the proven theorem is actually the one that we are looking to prove. When an exam is written, you need a teacher in the room, or the students will start grading their own tests. Now limitations. This work is not perfect. We do the real talk here, good and bad. Signal can still be hacked. The proof covers security properties under a given set of assumptions. Also, low-level cryptography like AES are assumed secure. And group chat.
【译】太棒了!在这个领域做到完美并不容易,但他们发现的不止于此。他们还证明了:即使有人偷走你的加密密钥,也不会自动暴露你更早的消息;甚至证明了系统在某些攻陷之后能够恢复安全性。这是怎么做到的?每条消息都会获得一把全新的加密密钥,旧密钥随即丢弃。最妙的是:如果攻击者偷走了你当前的密钥,系统会引入攻击者未必知道的新秘密,从而随时间自我愈合——已证明在其安全模型的假设下成立。太了不起了。我在论文里同样喜欢的一点是,他们给自己的系统做了压力测试:把两个较早的已知 bug 重新放回系统。结果呢?没错,AI 团队把它们双双抓获。太好了,我喜欢。各位学者抓稳你们的论文,论文里还有个好玩的插曲。这些 AI 代理热爱作弊,真的热爱。在较早的一个实验里,当题目变得有点太难时,一个代理悄悄把问题变简单了——它篡改了定理的定义,让定理平凡地为真。其他代理的反应则是:活儿变少了,爱了,这个我也抄。于是科学家不得不引入独立的裁判,来检查证出来的定理是不是我们本来要证的那一个。考试的时候,教室里得有老师在场,不然学生就会开始自己给自己批卷。现在说局限。这项工作并不完美,我们这里实话实说,好的坏的都讲。Signal 仍然可能被黑。证明覆盖的是一组给定假设之下的安全性质;此外,AES 这类底层密码学被假设为安全。还有群聊——
[240s - 326s]
Are not covered in this project. Also, this is just the cryptography part, not the whole app. So careful there. But this work is one of the most incredible uses for AI benefiting humanity. Oh, and the published proofs and specifications are open source and free for all of us. And believe it or not, this was just the beginning of something beautiful. Having computer code that is verifiable is a complete game changer. Just imagine a world where the software running our hospitals, banks, and our digital lives doesn’t just kind of look like it works. No, they will come with mathematical proof that they do exactly what they are supposed to do. Wow, I have goosebumps just thinking about that. Thank you so much to DeepMind and Pushmeet. You are heroes. What a time to be alive. I use Lambda to reproduce AI research papers often in minutes. It’s great to train your own models, fine-tune an existing one, run inference, text to image or video, easy peasy. Running a DeepSeek chatbot or agent, super fast, super reliable. Lambda gives you powerful NVIDIA GPUs to run your own experiments. I test ideas from papers I cover, and moments later, results. Love it. Seriously, try it out now at lambda dot com slash papers.
【译】——不在本项目的覆盖范围内。而且这只是密码学部分,不是整个 App,这点要小心。但这仍是 AI 造福人类的最了不起的用途之一。哦对了,已发表的证明与规范全部开源,对我们所有人免费。而且信不信由你,这只是一件美好事情的开端。拥有可验证的计算机代码,是彻底的改变者。想象一个世界:运行我们医院、银行和数字生活的软件不再只是「看起来能跑」,而是附带数学证明,证明它们做的正是它们应该做的事。哇,光想想我就起鸡皮疙瘩。非常感谢 DeepMind 和 Pushmeet,你们是英雄。生逢此时,何其幸运。(以下为赞助商广告)我经常用 Lambda 在几分钟内复现 AI 研究论文。用它训练自己的模型、微调现有模型、跑推理、文生图或文生视频,轻而易举。跑一个 DeepSeek 聊天机器人或智能体,超快、超稳。Lambda 给你强大的 NVIDIA GPU 来跑自己的实验。我测试我所介绍论文里的想法,片刻之后就有结果。爱了。说真的,现在就去 lambda.com/papers 试试吧。