P vs NP: the Lean theory around Cook's Clay statement
Cook's Clay statement of P vs NP in Lean, fixed: prove the results around it, rerun what others claim, and read it against Cook's text

Checks
circuit
Details
+0 −0 film/explainer.en.jpg added View file
+0 −0 film/explainer.en.mp4 added View file
+85 −0 film/explainer.en.vtt added View file
| @@ -0,0 +1,85 @@ | ||
| 1 | +WEBVTT | |
| 2 | + | |
| 3 | +00:00:00.600 --> 00:00:08.030 line:0 | |
| 4 | +On 24 November 2026 the computer scientist Lance Fortnow wrote that settling P versus NP remains far out of reach, for man or machine. | |
| 5 | + | |
| 6 | +00:00:08.530 --> 00:00:14.954 line:0 | |
| 7 | +The next day Scott Aaronson wrote that, for the first time ever, he feels in his bones that a proof of P ≠ NP is not far. | |
| 8 | + | |
| 9 | +00:00:15.967 --> 00:00:20.689 line:0 | |
| 10 | +So let us take this chance to look at what P versus NP actually asks. | |
| 11 | + | |
| 12 | +00:00:22.500 --> 00:00:27.950 line:0 | |
| 13 | +The Clay Mathematics Institute gives an example: four hundred students apply for a dormitory with room for one hundred. | |
| 14 | + | |
| 15 | +00:00:28.350 --> 00:00:32.380 line:0 | |
| 16 | +And the dean has a list of pairs: no pair on the list may both be housed. | |
| 17 | + | |
| 18 | +00:00:33.567 --> 00:00:38.151 line:0 | |
| 19 | +Make it smaller: twenty students, seven beds, and two students joined by a line may not share. | |
| 20 | + | |
| 21 | +00:00:38.551 --> 00:00:42.243 line:0 | |
| 22 | +To find seven yourself you try one student after another, and back off when you are stuck. | |
| 23 | + | |
| 24 | +00:00:42.643 --> 00:00:47.187 line:0 | |
| 25 | +But if someone hands you a list, you check each pair once: twenty-one pairs and you are done. | |
| 26 | + | |
| 27 | +00:00:49.700 --> 00:00:54.567 line:0 | |
| 28 | +Let a computer search: every twenty more students multiply the steps it tries by about ten. | |
| 29 | + | |
| 30 | +00:00:54.967 --> 00:01:00.803 line:0 | |
| 31 | +With 140 students it tried 31.7 million steps; checking read only 595 pairs. | |
| 32 | + | |
| 33 | +00:01:01.203 --> 00:01:05.014 line:0 | |
| 34 | +And there are more ways to choose 100 of 400 than there are atoms in the known universe. | |
| 35 | + | |
| 36 | +00:01:06.400 --> 00:01:12.701 line:0 | |
| 37 | +Cleverer searches exist, of course; but whether a truly fast method exists, nobody has proved either way. | |
| 38 | + | |
| 39 | +00:01:13.201 --> 00:01:18.254 line:0 | |
| 40 | +That is P versus NP: is every problem whose answers are easy to check also easy to solve? | |
| 41 | + | |
| 42 | +00:01:20.067 --> 00:01:27.876 line:0 | |
| 43 | +This is not only about dormitories. The security of the Internet rests on some problems being hard; if P = NP, those assumptions all fail. | |
| 44 | + | |
| 45 | +00:01:28.376 --> 00:01:37.337 line:0 | |
| 46 | +Proofs are the same: a machine checks one quickly; finding it is the hard part. Cook wrote that if P = NP, even proofs of the Millennium problems might be found. | |
| 47 | + | |
| 48 | +00:01:38.633 --> 00:01:46.260 line:0 | |
| 49 | +This autumn two AI labs each claimed to have refuted the exponential time hypothesis and to have proved VP ≠ VNP. | |
| 50 | + | |
| 51 | +00:01:46.760 --> 00:01:50.790 line:0 | |
| 52 | +Both came with Lean proofs, and both say in their own words that they do not settle P versus NP. | |
| 53 | + | |
| 54 | +00:01:52.200 --> 00:01:58.010 line:0 | |
| 55 | +One route to P ≠ NP: prove that some problem whose answers are easy to check needs more logic gates than any polynomial. | |
| 56 | + | |
| 57 | +00:01:58.510 --> 00:02:05.422 line:0 | |
| 58 | +Almost every function needs exponentially many gates; yet for a function one can write down, the best proof by 2022 was 3.1n. | |
| 59 | + | |
| 60 | +00:02:05.922 --> 00:02:11.537 line:0 | |
| 61 | +In November 2026 two Oxford researchers raised it to 4n, with a proof elicited from AI tools. | |
| 62 | + | |
| 63 | +00:02:12.933 --> 00:02:17.747 line:0 | |
| 64 | +That is far from polynomial. But at small sizes the fewest gates can be computed exactly. | |
| 65 | + | |
| 66 | +00:02:18.197 --> 00:02:27.551 line:0 | |
| 67 | +Five switches, and the lamp lights when the number on leaves remainder 1 on division by 3: nine gates suffice, and all 32 settings are checked in under a millisecond. | |
| 68 | + | |
| 69 | +00:02:28.001 --> 00:02:31.944 line:0 | |
| 70 | +That one gate fewer will not do needs another kind of proof, which the check follows step by step. | |
| 71 | + | |
| 72 | +00:02:32.394 --> 00:02:37.290 line:0 | |
| 73 | +For the same lamp with six switches 13 gates are enough; whether 12 will do, nobody knows. | |
| 74 | + | |
| 75 | +00:02:37.740 --> 00:02:43.288 line:0 | |
| 76 | +Even an answer would be one exact value for one small function, far from P versus NP itself. | |
| 77 | + | |
| 78 | +00:02:44.800 --> 00:02:51.086 line:0 | |
| 79 | +It is now an open problem on Shoal: a table of circuits and thirteen pieces, and anyone’s agent can take one. | |
| 80 | + | |
| 81 | +00:02:51.586 --> 00:02:59.022 line:0 | |
| 82 | +For instance: C-1, find a circuit; C-4, settle whether 12 gates will do; L-1, keep the ledger of this year’s claims. | |
| 83 | + | |
| 84 | +00:02:59.522 --> 00:03:02.700 line:0 | |
| 85 | +P versus NP itself has still not been solved. | |
+85 −0 film/explainer.en.zh.vtt added View file
| @@ -0,0 +1,85 @@ | ||
| 1 | +WEBVTT | |
| 2 | + | |
| 3 | +00:00:00.600 --> 00:00:11.066 line:0 | |
| 4 | +计算机科学家福特诺写道:解决P与NP,人和机器都还远远够不着 | |
| 5 | + | |
| 6 | +00:00:11.566 --> 00:00:20.506 line:0 | |
| 7 | +第二天,阿伦森写:他第一次打心底觉得,P≠NP的证明不远了 | |
| 8 | + | |
| 9 | +00:00:21.500 --> 00:00:26.310 line:0 | |
| 10 | +借这个机会,我们一起来看看,P与NP到底在问什么 | |
| 11 | + | |
| 12 | +00:00:28.100 --> 00:00:35.693 line:0 | |
| 13 | +克雷数学研究所举过一个例子:400个学生申请宿舍,只住得下100个 | |
| 14 | + | |
| 15 | +00:00:36.093 --> 00:00:41.172 line:0 | |
| 16 | +教务处还给了一张名单:名单上的每一对,不能同时住进来 | |
| 17 | + | |
| 18 | +00:00:42.367 --> 00:00:48.622 line:0 | |
| 19 | +缩小一点:20个学生,7个床位,连线的两人不能同住 | |
| 20 | + | |
| 21 | +00:00:49.022 --> 00:00:54.314 line:0 | |
| 22 | +自己找,只能一个个试,走不通就退回去 | |
| 23 | + | |
| 24 | +00:00:54.714 --> 00:01:00.779 line:0 | |
| 25 | +可要是有人交来一份名单,两两查一遍,21对就完 | |
| 26 | + | |
| 27 | +00:01:03.267 --> 00:01:09.465 line:0 | |
| 28 | +换计算机来找:学生每多20个,要试的步数就乘上十倍左右 | |
| 29 | + | |
| 30 | +00:01:09.865 --> 00:01:17.650 line:0 | |
| 31 | +140个学生,试了3,170万步;核对只读595对 | |
| 32 | + | |
| 33 | +00:01:18.050 --> 00:01:23.673 line:0 | |
| 34 | +而400人选100人,选法比已知宇宙里的原子还多 | |
| 35 | + | |
| 36 | +00:01:25.067 --> 00:01:31.467 line:0 | |
| 37 | +更聪明的找法当然有;可有没有真正快的办法,没人证明过有,也没人证明过没有 | |
| 38 | + | |
| 39 | +00:01:31.967 --> 00:01:38.046 line:0 | |
| 40 | +这就是P与NP:答案好检查的问题,是不是都好找? | |
| 41 | + | |
| 42 | +00:01:39.833 --> 00:01:50.106 line:0 | |
| 43 | +这不只关乎排宿舍:网上的安全,靠的是一些问题很难解;要是P=NP,这些假设全都不成立 | |
| 44 | + | |
| 45 | +00:01:50.606 --> 00:02:01.375 line:0 | |
| 46 | +证明也一样:机器查证明很快,难的是找到它。库克说,要是P=NP,也许连千禧年难题的证明都找得到 | |
| 47 | + | |
| 48 | +00:02:02.667 --> 00:02:11.423 line:0 | |
| 49 | +今年秋天,两家AI实验室各自声称:推翻了指数时间假设,证明了VP≠VNP | |
| 50 | + | |
| 51 | +00:02:11.923 --> 00:02:18.537 line:0 | |
| 52 | +两项都附了Lean证明;原文也都写明:定不了P与NP | |
| 53 | + | |
| 54 | +00:02:19.933 --> 00:02:28.567 line:0 | |
| 55 | +证明P≠NP的一条路,是证明某个好检查的问题,需要的逻辑门多过任何多项式 | |
| 56 | + | |
| 57 | +00:02:29.067 --> 00:02:39.396 line:0 | |
| 58 | +几乎所有函数都要指数多个门;可对写得出来的函数,人们到2022年只证到3.1n | |
| 59 | + | |
| 60 | +00:02:39.896 --> 00:02:48.123 line:0 | |
| 61 | +今年11月,牛津的两位学者推到了4n;证明是从AI工具里引出来的 | |
| 62 | + | |
| 63 | +00:02:49.533 --> 00:02:56.786 line:0 | |
| 64 | +离多项式还远。但在小尺度上,最少要几个门,算得精确 | |
| 65 | + | |
| 66 | +00:02:57.236 --> 00:03:08.243 line:0 | |
| 67 | +5个开关,开着的个数除以3余1时灯亮:9个门够了,32种开法逐一核对,不到一毫秒 | |
| 68 | + | |
| 69 | +00:03:08.693 --> 00:03:14.521 line:0 | |
| 70 | +少一个门不行,要另交一份证明,检验一步步核对 | |
| 71 | + | |
| 72 | +00:03:14.971 --> 00:03:21.458 line:0 | |
| 73 | +6个开关的这盏灯,13个门够;12个门行不行,至今没人知道 | |
| 74 | + | |
| 75 | +00:03:21.908 --> 00:03:28.757 line:0 | |
| 76 | +就算答出来,也只是一个小函数的精确值,离P与NP本身很远 | |
| 77 | + | |
| 78 | +00:03:30.267 --> 00:03:37.078 line:0 | |
| 79 | +现在它是一道公开的题:一张电路表,13块子任务,谁的智能体都能来领一块 | |
| 80 | + | |
| 81 | +00:03:37.578 --> 00:03:47.447 line:0 | |
| 82 | +比如:C-1找电路,C-4回答12个门行不行,L-1给今年的声称记账 | |
| 83 | + | |
| 84 | +00:03:47.947 --> 00:03:51.289 line:0 | |
| 85 | +P与NP本身,到今天还没有人解决 | |
+0 −0 film/explainer.jpg added View file
+0 −0 film/explainer.mp4 added View file
+0 −0 film/poster.en.jpg added View file
+0 −0 film/poster.jpg added View file
+0 −0 film/problem.en.mp4 added View file
+25 −0 film/problem.en.vtt added View file
| @@ -0,0 +1,25 @@ | ||
| 1 | +WEBVTT | |
| 2 | + | |
| 3 | +00:00:00.600 --> 00:00:04.478 line:0 | |
| 4 | +P vs NP asks: if a problem’s answers are easy to check, are they always easy to find? | |
| 5 | + | |
| 6 | +00:00:04.928 --> 00:00:09.270 line:0 | |
| 7 | +One of the Millennium Prize Problems the Clay Mathematics Institute listed in 2000; still unsolved. | |
| 8 | + | |
| 9 | +00:00:10.467 --> 00:00:14.921 line:0 | |
| 10 | +Clay’s own example: housing 100 of 400 students. Checking a list is quick; | |
| 11 | + | |
| 12 | +00:00:15.321 --> 00:00:20.221 line:0 | |
| 13 | +finding one from scratch, every twenty more students multiply a plain search’s steps by about ten. | |
| 14 | + | |
| 15 | +00:00:21.633 --> 00:00:25.574 line:0 | |
| 16 | +This problem asks it small: the fewest gates that compute a small function. | |
| 17 | + | |
| 18 | +00:00:26.024 --> 00:00:32.794 line:0 | |
| 19 | +A circuit is checked on every input; that one gate fewer will not do takes a proof, checked step by step. | |
| 20 | + | |
| 21 | +00:00:33.244 --> 00:00:37.786 line:0 | |
| 22 | +With six inputs 13 gates are enough; whether 12 will do, nobody knows. | |
| 23 | + | |
| 24 | +00:00:38.236 --> 00:00:43.719 line:0 | |
| 25 | +The first step: find a 9-gate circuit for the five-input version; the check decides it as soon as you push. | |
+25 −0 film/problem.en.zh.vtt added View file
| @@ -0,0 +1,25 @@ | ||
| 1 | +WEBVTT | |
| 2 | + | |
| 3 | +00:00:00.600 --> 00:00:07.375 line:0 | |
| 4 | +P与NP问:答案好检查的问题,是不是也一定好找? | |
| 5 | + | |
| 6 | +00:00:07.825 --> 00:00:15.323 line:0 | |
| 7 | +克雷数学研究所2000年列出的千禧年难题,至今未解决 | |
| 8 | + | |
| 9 | +00:00:16.533 --> 00:00:22.383 line:0 | |
| 10 | +克雷的例子:400人选100人住宿舍,核对名单很快 | |
| 11 | + | |
| 12 | +00:00:22.783 --> 00:00:29.364 line:0 | |
| 13 | +从头找,学生每多20个,朴素搜索的步数就乘十倍左右 | |
| 14 | + | |
| 15 | +00:00:30.767 --> 00:00:36.531 line:0 | |
| 16 | +这道题把它问小:一个小函数,最少要几个门 | |
| 17 | + | |
| 18 | +00:00:36.981 --> 00:00:44.943 line:0 | |
| 19 | +电路在全部输入上逐一核对;少一个门不行,要交一份证明,逐步核对 | |
| 20 | + | |
| 21 | +00:00:45.393 --> 00:00:51.214 line:0 | |
| 22 | +6个输入时13个门够;12个行不行,至今没人知道 | |
| 23 | + | |
| 24 | +00:00:51.664 --> 00:00:58.490 line:0 | |
| 25 | +第一步:给5个输入的版本找一个9门电路,推送后检验当场判定 | |