P vs NP: the fewest gates
Easy to check, easy to find? Exact small circuits, proofs that none smaller exists, and the 2026 claims around P vs NP, rerun and read

Bring the check, the baseline search and what is known
Browse files+5 −0 .gitignore added View file
| @@ -0,0 +1,5 @@ | ||
| 1 | +__pycache__/ | |
| 2 | +.venv/ | |
| 3 | +*.cnf | |
| 4 | +*.log | |
| 5 | +.DS_Store | |
+84 −0 AGENTS.md added View file
| @@ -0,0 +1,84 @@ | ||
| 1 | +# Rules for this project | |
| 2 | + | |
| 3 | +Read `README.md` first, then `KNOWN.md`. **P vs NP is open, and this project does not claim to move it.** The board is | |
| 4 | +exact circuit sizes of small functions; the other pieces rebuild and read the year's claims around P vs NP (ETH, VP ≠ | |
| 5 | +VNP, the 4n lower bound). Never describe a check pass, a small exact value or a Lean rebuild as progress on P vs NP. | |
| 6 | + | |
| 7 | +## First session | |
| 8 | + | |
| 9 | +```bash | |
| 10 | +python3 checks/verify.py examples/first-circuits # the check works; last line mod3_3_0 in 3 gates (exact); sum3 in 5 gates (exact) | |
| 11 | +git fetch origin issues && git show origin/issues:BOARD.md # once the project is on the site: who works on what | |
| 12 | +``` | |
| 13 | + | |
| 14 | +Pick one issue. First tasks, one session each: **C-1** (find and check a circuit), **C-2** (an exact value with an LRAT | |
| 15 | +proof), **V-5** (two textbook lemmas in Lean), **L-1** (the ledger). The open questions are **C-4** (is MOD3_6^1 13?) | |
| 16 | +and **R-2** (a lower bound above 2.5n). | |
| 17 | + | |
| 18 | +## Claim an issue | |
| 19 | + | |
| 20 | +Create your route and say what you take: | |
| 21 | + | |
| 22 | +```bash | |
| 23 | +git switch -c my-route origin/main | |
| 24 | +mkdir -p routes/my-route | |
| 25 | +cat > routes/my-route/README.md <<'EOF' | |
| 26 | +--- | |
| 27 | +issue: 3 | |
| 28 | +status: working | |
| 29 | +--- | |
| 30 | +# my-route | |
| 31 | + | |
| 32 | +What I try and how. | |
| 33 | + | |
| 34 | +## Next | |
| 35 | + | |
| 36 | +The first concrete step. | |
| 37 | +EOF | |
| 38 | +``` | |
| 39 | + | |
| 40 | +A push keeps the claim alive. If you stop, leave `## Next` so whoever continues knows where you stopped. | |
| 41 | + | |
| 42 | +## What to submit | |
| 43 | + | |
| 44 | +The shapes are in **`docs/submission.md`**. In short, directly in `routes/<your-name>/`: | |
| 45 | + | |
| 46 | +- **A circuit:** `<id>.ckt`, for example `mod3_5_1.ckt` or `sum10.ckt`, with the script that found it. The `circuit` | |
| 47 | + check evaluates it on every input. | |
| 48 | +- **A lower bound:** `<id>.gt<s>.lrat` (or `.lrat.gz`), an LRAT proof that no circuit of at most s gates computes the | |
| 49 | + function. The check builds the formula itself with the approved encoder (`checks/circuits.py`); hand in the proof | |
| 50 | + only. Proofs over 60 MB: say so in your notes, give the hash, and a maintainer checks it on a larger runner. | |
| 51 | +- **A rebuild:** commands, versions, hardware and the logs' hashes in your notes; a second agent reruns them. | |
| 52 | +- **Research:** a pull request with the argument. Say which statement you prove and what remains. | |
| 53 | + | |
| 54 | +Every pull request links its issue and ends with `## Next`. The checks read their own code from the approved version | |
| 55 | +and your files from `$SS_INPUT/$SS_ROUTE_DIR`, so editing a checker on your route changes nothing. | |
| 56 | + | |
| 57 | +## Tools | |
| 58 | + | |
| 59 | +`python3 scripts/circuit.py find <id> <s> out.ckt` searches with PySAT (`pip install python-sat`); | |
| 60 | +`python3 scripts/circuit.py cnf <id> <s> f.cnf` writes the formula for `cadical --lrat=true --binary=false f.cnf | |
| 61 | +<id>.gt<s>.lrat`. For more than about 12 gates, local improvement (github.com/alexanderskulikov/circuit_improvement) | |
| 62 | +works where a direct search does not. Ask the user once before installing a Lean toolchain (several GB) for a V piece, | |
| 63 | +and record the answer in your route's notes. | |
| 64 | + | |
| 65 | +## Do not | |
| 66 | + | |
| 67 | +- write that ETH being false gives P = NP, that VP ≠ VNP gives P ≠ NP, or that a Lean build shows a statement is the | |
| 68 | + one a paper means; | |
| 69 | +- change the approved checks, the encoder or `scienceslack.json` on a route; | |
| 70 | +- copy circuit_improvement's GPL-3.0 circuits without saying so: cite them, and found circuits count only with your | |
| 71 | + own search; | |
| 72 | +- hide a failed route: keep it and write `## Next`. | |
| 73 | + | |
| 74 | +## Where things are | |
| 75 | + | |
| 76 | +| Path | What | | |
| 77 | +|---|---| | |
| 78 | +| `checks/circuits.py` | the functions, the `.ckt` format, the encoder, the LRAT checker | | |
| 79 | +| `checks/verify.py`, `checks/verify.sbatch` | the `circuit` check | | |
| 80 | +| `scripts/circuit.py` | find a circuit, write a formula | | |
| 81 | +| `scripts/find-vs-check.mjs` | the README's figure | | |
| 82 | +| `examples/first-circuits/` | a route folder the check passes | | |
| 83 | +| `docs/` | submission shapes, FAQ, the join prompt | | |
| 84 | +| `KNOWN.md` | best known values, what failed, what to mind | | |
+35 −0 KNOWN.md added View file
| @@ -0,0 +1,35 @@ | ||
| 1 | +# Known | |
| 2 | + | |
| 3 | +What is established about this problem, one fact a line, each with where it comes from: job 12, result 40, issue 7, commit 1a2b3c4 or route `<branch>`. The site checks every pointer and shows the page in the project's status. Its maintainer keeps this file; propose a line in a pull request. | |
| 4 | + | |
| 5 | +## The judge rejects | |
| 6 | + | |
| 7 | +- A `.ckt` that is wrong on any input: the check names the first one. | |
| 8 | +- A lower-bound proof checked against the route's own formula: the check builds the formula itself with the approved encoder and reads only the proof. | |
| 9 | +- A proof with RAT steps (negative hints): this checker takes RUP steps only, which is what CaDiCaL writes for these formulas. | |
| 10 | + | |
| 11 | +## Tried, did not work | |
| 12 | + | |
| 13 | +- A direct SAT search for 13 gates or more: Kulikov, Pechenev and Slezkin (MFCS 2022) report it out of reach; local improvement from a larger circuit is how the board's upper bounds were found. | |
| 14 | +- LRAT proofs of size(MOD3_4^0) > 6 and size(MOD3_4^1) > 6 come to 139 MB and 182 MB (CaDiCaL 3.1.0, 10–13 s); SUM_4 > 8 to 2.5 GB. They are checked on a maintainer's runner, not on a push. | |
| 15 | + | |
| 16 | +## Mind | |
| 17 | + | |
| 18 | +- MOD3_5^1: the best known value is 9, exact (Knuth, TAOCP Vol. 4 Fascicle 6, 2015, exercise 480). A checked 9 is a reproduction. | |
| 19 | +- MOD3_6^0: the best known value is 12, exact (Knuth, as above). A checked 12 is a reproduction. | |
| 20 | +- MOD3_6^1: the best known value is 13 (circuit_improvement's `mod3_6_1_size13.ckt`; Kulikov, Pechenev and Slezkin 2022 for every n). Whether 12 gates suffice is open; Knuth conjectures 13. A checked 12 refutes the conjecture. | |
| 21 | +- MOD3_6^2: the best known value is 13, as for MOD3_6^1; 12 is open. | |
| 22 | +- MOD3_7^0: the best known value is 16 (Kulikov, Pechenev and Slezkin 2022), not proven optimal; conjectured exact. | |
| 23 | +- MOD3_7^2: the best known value is 15 (Kulikov, Pechenev and Slezkin 2022), not proven optimal; conjectured exact. | |
| 24 | +- MOD3_8^1: the best known value is 18 (circuit_improvement's `mod3_8_1_size18.ckt`), not proven optimal; conjectured exact. | |
| 25 | +- SUM_5: the best known value is 11, exact (Knuth, TAOCP Vol. 4 Fascicle 0, 2008; "the optimal circuit of size 11", Kulikov, Pechenev and Slezkin 2022). | |
| 26 | +- SUM_6: the best known value is 16 (Knuth; Kulikov, Pechenev and Slezkin 2022, Table 3), not proven optimal. | |
| 27 | +- SUM_7: the best known value is 19 (as for SUM_6), not proven optimal. | |
| 28 | +- SUM_8: the best known value is 25 (Kulikov, Pechenev and Slezkin 2022, Table 3), not proven optimal. | |
| 29 | +- SUM_9: the best known value is 27 (as for SUM_8), not proven optimal. | |
| 30 | +- SUM_{10}: the best known value is 31 (circuit_improvement's `sum10_size31.ckt`; the 2022 paper had 32), not proven optimal. | |
| 31 | +- SUM_{15}: the best known value is 53 (Kulikov, Pechenev and Slezkin 2022, Table 3); 52 would improve the bound size(SUM_n) ≤ size(SUM_k)/(k − ⌈log₂(k+1)⌉)·n + o(n) gives, still above Demenkov et al.'s 4.5n + o(n). | |
| 32 | +- The best lower bound for MOD3_n^r, and for any symmetric function, is 2.5n − O(1) (Stockmeyer 1977). The best for any explicit function is 4n − O(log n) (Mishra and Santhanam, ECCC TR26-260, 2026-11-03); before it, 3.1n − o(n) (Li and Yang, STOC 2022). | |
| 33 | +- Exact small values do not touch P vs NP's asymptotics. ETH being false would not give P = NP; VP ≠ VNP does not give P ≠ NP (both claims say so). | |
| 34 | +- The ETH claims (OpenAI 2026-10-26, Anthropic 2026-10-27) have no reviewers' conclusion yet; the review group says its "involvement should not be taken as certification of the claim". | |
| 35 | +- Anthropic's vp-vnp README: "no human mathematician has checked the proof" and "no machine checks that this file says what is claimed". | |
+29 −0 LICENSE added View file
| @@ -0,0 +1,29 @@ | ||
| 1 | +MIT License | |
| 2 | + | |
| 3 | +Copyright (c) 2026 Shoal contributors | |
| 4 | + | |
| 5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 6 | +of this software and associated documentation files (the "Software"), to deal | |
| 7 | +in the Software without restriction, including without limitation the rights | |
| 8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 9 | +copies of the Software, and to permit persons to whom the Software is | |
| 10 | +furnished to do so, subject to the following conditions: | |
| 11 | + | |
| 12 | +The above copyright notice and this permission notice shall be included in all | |
| 13 | +copies or substantial portions of the Software. | |
| 14 | + | |
| 15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| 21 | +SOFTWARE. | |
| 22 | + | |
| 23 | +--- | |
| 24 | + | |
| 25 | +This license covers the original content of this repository. The Li–Liu paper | |
| 26 | +and Lean development, the Alpöge/community Riemann hypothesis development, and | |
| 27 | +the published articles referenced in README.md are not redistributed here and | |
| 28 | +retain their own terms. The Li–Liu repository has no declared license; do not | |
| 29 | +republish its files without the authors' permission. | |
+197 −0 README.zh.md added View file
| @@ -0,0 +1,197 @@ | ||
| 1 | +# P 与 NP:最少要几个门 | |
| 2 | + | |
| 3 | +> **现状,2026-11-27。** P 与 NP 仍是开放问题,也没有人宣称定下了它。2026 年有两家实验室分别声称推翻了指数时间假设、 | |
| 4 | +> 证明了 VP ≠ VNP,原文都写明这不能定下 P 与 NP;显式函数的布尔电路下界从 3.1n 推到了 4n − O(log n)。 | |
| 5 | + | |
| 6 | +本活动在还能得到精确答案的尺度上工作:算一个小函数,最少要几个门。**找到比谁都少门的电路,或者证明更少的不存在**:电路在 | |
| 7 | +每个输入上逐一核对,毫秒级;证明交 SAT 求解器给出的 LRAT 证书,由检验逐步核对。电路表之外,八块子任务复跑、细读今年的声称并 | |
| 8 | +记账,每块由检验或审阅者判定;这里的任何结果都不触及 n 很大时的问题。 | |
| 9 | + | |
| 10 | +## 问题 | |
| 11 | + | |
| 12 | +如果一个问题的答案很容易检查,它是不是也一定很容易找到?这就是 P 与 NP,克雷数学研究所 2000 年列出的七道千禧年大奖难题之一。 | |
| 13 | +克雷的原话:“如果检查一个解是否正确很容易,那么解出这个问题是否也很容易?” | |
| 14 | + | |
| 15 | +他们举的是宿舍的例子:400 个学生里给 100 个人分房,有些人两两不能同住。核对别人交来的名单很容易,自己从头找却不然,而且 | |
| 16 | +“从 400 人中选出 100 人的方法数,比已知宇宙中的原子还多”。 | |
| 17 | + | |
| 18 | +> **P 与 NP**(Stephen Cook 为克雷写的官方陈述)。用“多项式时间可验证”定义 NP,然后问:**P = NP 吗?** | |
| 19 | + | |
| 20 | +两个方向的证明都算解答。 | |
| 21 | + | |
| 22 | +**为什么重要。** | |
| 23 | + | |
| 24 | +- **密码。**“一个用 n² 步解 3-SAT 的算法,可以在几分钟内分解 200 位的数”(Cook),互联网赖以为生的密码就不成立了。 | |
| 25 | +- **数学。** P = NP“会改变数学:只要一个定理有合理长度的证明,计算机就能找到它的形式证明”(Cook)。2026 年这层不对称看得很 | |
| 26 | + 清楚:Lean 几分钟就能检查一份证明,难的是找到它。 | |
| 27 | +- **电路。** 证明 P ≠ NP 的一条路,是证明某个“答案好检查”的问题需要超多项式规模的布尔电路;可对任何显式函数,人们至今证不出 | |
| 28 | + 超过约 4n 个门的下界。 | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | +看两条线怎样分开:140 个学生里住进四分之一、名单上的两人不能同住,朴素搜索试了约 3,170 万步(深色线),核对它找到的名单只读 | |
| 33 | +595 对(绿线)。 | |
| 34 | + | |
| 35 | +*深色线是每个规模 15 份随机名单的中位数,阴影是中间一半。纵轴是对数刻度,深色线是直线,说明每多几个学生,步数就乘上一个固定 | |
| 36 | +倍数;核对的工作量只按住进人数的平方增长。图上量的只是这一种朴素搜索:更聪明的算法能走远得多,有没有多项式时间的办法,没有人 | |
| 37 | +证明过有,也没有人证明过没有。图由 `scripts/find-vs-check.mjs` 画出。* | |
| 38 | + | |
| 39 | +| 时间 | 事件 | | |
| 40 | +|---|---| | |
| 41 | +| 1956 | 哥德尔写信问冯·诺依曼:找一个长度为 n 的证明,能否只用约 n 或 n² 步。 | | |
| 42 | +| 1965 | Cobham、Edmonds:以多项式时间作为有效算法的标准。 | | |
| 43 | +| 1971、1973 | Cook 与 Levin 各自证明可满足性问题是 NP 完全的。 | | |
| 44 | +| 1972 | Karp:21 个问题要么都容易,要么都难。 | | |
| 45 | +| 1975、1994、2008 | 三道障碍:相对化(Baker、Gill、Solovay)、自然证明(Razborov、Rudich)、代数化(Aaronson、Wigderson)。 | | |
| 46 | +| 1979 | Valiant 定义 VP 与 VNP,即代数版的类比。 | | |
| 47 | +| 2000 | 克雷把 P 与 NP 列为千禧年大奖难题。 | | |
| 48 | +| 2008、2015 | 高德纳:算出 4 输入、5 输入全部函数的精确电路规模,n ≤ 5 的 MOD3 精确门数和 MOD3_6^0 = 12;猜想 size(MOD3_n^r) = 3n − 5 − [(n + r) ≡ 0 mod 3],n = 6、r ≠ 0“仍然未知”。 | | |
| 49 | +| 2011 | Williams:由更快的可满足性算法,推出 NEXP 没有多项式规模的 ACC⁰ 电路。 | | |
| 50 | +| 2022 | Jiatu Li、Tianqi Yang:显式函数 3.1n − o(n),此前是 (3 + 1/86)n(Find、Golovnev、Hirsch、Kulikov,FOCS 2016)和 3n(Blum 1984);几乎所有函数都需要约 2ⁿ/n 个门(Shannon 1949)。 | | |
| 51 | +| 2022 | Kulikov、Pechenev、Slezkin:对所有 n 证明高德纳猜想的上界;MOD3 的下界和任何对称函数一样,最好的仍是 Stockmeyer 1977 年的 2.5n − O(1)。按他们的经验,SAT 方法对 6 个门以内几秒钟,7 到 12 个门有时要几天,13 个以上“够不着”。 | | |
| 52 | +| 2026-10-26 | OpenAI 和 Anthropic 各自声称推翻指数时间假设(ETH:3-SAT 需要 2^{δn} 时间;Impagliazzo、Paturi 1999),附 Lean。 | | |
| 53 | +| 2026-11-03 | Mishra 与 Santhanam:4n − O(log n),“主要结果的证明由 AI 工具引出”。 | | |
| 54 | +| 2026-11-23、24 | Anthropic、OpenAI 先后声称证明 VP ≠ VNP,附 Lean。 | | |
| 55 | +| — | P 与 NP:仍然开放。 | | |
| 56 | + | |
| 57 | +## 现在到了哪一步 | |
| 58 | + | |
| 59 | +截至 2026-11-27,每项声称一行。走到哪一步:声称 → 进了 Lean → 专家审读 → 期刊 → 克雷。 | |
| 60 | + | |
| 61 | +| 时间 | 谁 | 声称什么 | 走到哪一步 | 出处 | | |
| 62 | +|---|---|---|---|---| | |
| 63 | +| 2026-10-26 | OpenAI(378) | ETH 不成立;原文“并不意味着一般的 NP 问题有亚指数时间算法” | 声称,进了 Lean | [7] | | |
| 64 | +| 2026-10-27 | Anthropic(`eth/`) | ETH 不成立;原文“不直接涉及 P 与 NP 问题” | 声称,进了 Lean | [8] | | |
| 65 | +| 10-26 起 | ETH 评审组 | Impagliazzo、Paturi、Williams 牵头:“我们的参与不应被视为对该主张的认证” | 尚无结论 | [博客](https://ethdiscussion.blog/) | | |
| 66 | +| 2026-11-03 | Mishra、Santhanam | 对 P 中的一个函数证明 4n − O(log n);P ≠ NP 要的是 NP 中某个函数的超多项式下界 | 预印本(ECCC) | [6] | | |
| 67 | +| 2026-11-23 | Anthropic(`vp-vnp/`) | 任何域上 VP ≠ VNP;原文“不能定下”P ≠ NP,“不适用于布尔电路” | 声称,进了 Lean | [8] | | |
| 68 | +| 2026-11-24 | Kim Morrison | 用另外两个内核复跑 vp-vnp | 复跑通过 | [kim-em](https://github.com/kim-em/vp-vnp) | | |
| 69 | +| 2026-11-24 | Alfonso Acosta | 由 AI 写成的 vp-vnp 陈述核对:“没有人检查过 `Independent.lean`” | 只有 AI | [核对](https://github.com/2opremio/vp-vnp-statement-check) | | |
| 70 | +| 2026-11-24 | OpenAI(379) | VP 与 VNP 不同,Valiant 层级严格分离 | 声称,部分进了 Lean | [7] | | |
| 71 | +| 2026-11-24 | Lance Fortnow | “VP ≠ VNP 推不出布尔版本的分离” | 评论 | [10] | | |
| 72 | +| 11-27 读取 | 克雷 | P 与 NP 列在“Unsolved problems”下 | 开放 | [克雷](https://www.claymath.org/millennium-problems/) | | |
| 73 | + | |
| 74 | +各项声称的界: | |
| 75 | + | |
| 76 | +- **OpenAI:**计数 k-CNF 的解用时 (n + m)^{O_k(1)} 2^{n/(log n)^{1/2+o(1)}};Lean 只证到更弱的 | |
| 77 | + 2^{O_k(n (log log n)²/√log n)}。 | |
| 78 | +- **Anthropic,`eth/`**(Lean v4.33.1,2026-10-27 合入):#k-SAT 用时 2^{O(min{k² n log log n/√log n, km/√log m})}; | |
| 79 | + m = 5n 时“除非 n > 10^{10 000},否则并不比穷举的 2^n 快”。 | |
| 80 | +- **Anthropic,`vp-vnp/`:**积和式的算术电路需要多于 m^{c (log m)^{1/3}} 个门;文件夹 README 写着“还没有人类数学家 | |
| 81 | + 检查过这份证明”。 | |
| 82 | +- **Mishra 与 Santhanam**(牛津,ECCC TR26-260,2026-11-03 修订):对用全部二元门的电路证明 4n − O(log n),此前的纪录是 | |
| 83 | + Jiatu Li、Tianqi Yang 的 3.1n − o(n)。 | |
| 84 | + | |
| 85 | +## 电路表 | |
| 86 | + | |
| 87 | +- **比什么:**本站检验过的最少门数,共十四个函数:MOD3_n^r(1 的个数模 3 余 r 时输出 1)和 SUM_n(把 1 的个数写成 | |
| 88 | + 二进制)。 | |
| 89 | +- **怎么核:**电路在全部 2ⁿ 个输入上求值;再交一份“少一个门不可能”的证明,这一格的数就成了精确值。 | |
| 90 | +- **已知最好值:**在 `KNOWN.md`;MOD3_5^1 = 9、MOD3_6^0 = 12、SUM_5 = 11 是精确值(高德纳),其余都是上界。 | |
| 91 | +- **什么算新:**比已知最好值少一个门(等于已知值是复现)。在 MOD3_6^1 或 MOD3_6^2 上,那就推翻了高德纳的猜想(C-4);52 个门的 | |
| 92 | + SUM_{15} 能改进 size(SUM_n) ≤ size(SUM_k)/(k − ⌈log₂(k+1)⌉)·n + o(n) 给出的界(C-5)。 | |
| 93 | + | |
| 94 | +## 子任务 | |
| 95 | + | |
| 96 | +十三个 issue,每个都能单独认领,分四组:**C** 由 `circuit` 检验判定的计算,**V** 复跑今年的 Lean 证明、核对它们的陈述,**R** 研究, | |
| 97 | +**L** 账本。每个 issue 都写明怎样算完成;第一块(✓)一个会话就能做完。 | |
| 98 | + | |
| 99 | +| 编号 | 子任务 | 规模 | 判定 | 第一块 | | |
| 100 | +|---|---|---|---|---| | |
| 101 | +| C-1 | 为板上的函数找一个电路(MOD3_5^1 或 SUM_5) | S | 检验 | ✓ | | |
| 102 | +| C-2 | 用 LRAT 证 MOD3₄² 恰为 6 门 | S | 检验 | ✓ | | |
| 103 | +| C-3 | Knuth 四输入函数全表,附证书 | M | 检验 | | | |
| 104 | +| C-4 | MOD3₆¹、MOD3₆² 是否恰为 13 门 | L | 检验、审阅 | | | |
| 105 | +| C-5 | 更小的 SUM 电路 | M | 检验 | | | |
| 106 | +| V-1 | 复跑 Anthropic 的 eth/ 与 vp-vnp/ | M | 复跑 | | | |
| 107 | +| V-2 | 复跑 OpenAI 的 ETH 与 VP ≠ VNP | M | 复跑 | | | |
| 108 | +| V-3 | 两份 VP ≠ VNP 说的是同一定理吗 | M | 审阅 | | | |
| 109 | +| V-4 | 把电路编码写成 Lean 定理 | L | 构建、审阅 | | | |
| 110 | +| V-5 | 补上 formal-conjectures 的两条教科书事实 | S | 复跑 | ✓ | | |
| 111 | +| R-1 | ETH 论文与电路下界的交汇 | M | 审阅 | | | |
| 112 | +| R-2 | MOD3 的下界越过 2.5n | L | 审阅 | | | |
| 113 | +| L-1 | 2026 年宣称账本:每项声称走到了哪一步 | S | 审阅 | ✓ | | |
| 114 | + | |
| 115 | +## 从这里开始 | |
| 116 | + | |
| 117 | +1. 跑一遍示例检验: | |
| 118 | + | |
| 119 | + ```bash | |
| 120 | + python3 checks/verify.py examples/first-circuits | |
| 121 | + ``` | |
| 122 | + | |
| 123 | + 最后一行应为 `mod3_3_0 in 3 gates (exact); sum3 in 5 gates (exact)`:两个小函数,各有一个电路和一份“少一个门不行”的证明。 | |
| 124 | +2. 读 `AGENTS.md` 和 `KNOWN.md`;每种交付物的格式见 `docs/submission.md`。 | |
| 125 | +3. 把 [`docs/join-prompt.md`](docs/join-prompt.md) 里那句话交给你的 agent(只做一块的,在那个 issue 页面上复制专用的话),或者 | |
| 126 | + 自己领一个 issue:文件放在 `routes/<你的名字>/` 下,并在它的 `README.md` 前言里写 `issue: <n>`。 | |
| 127 | + | |
| 128 | +工具:`python3 scripts/circuit.py find mod3_5_1 9 out.ckt` 用 PySAT 搜索(`pip install python-sat`,约 7 秒); | |
| 129 | +`python3 scripts/circuit.py cnf mod3_4_2 5 f.cnf` 写出下界要驳倒的公式。常见问题(P 与 NP 定下了吗?小电路和它有关系吗?)见 | |
| 130 | +[`docs/faq.md`](docs/faq.md)。 | |
| 131 | + | |
| 132 | +## 起点 | |
| 133 | + | |
| 134 | +| 是什么 | 在哪 | 许可证 | 用于 | | |
| 135 | +|---|---|---|---| | |
| 136 | +| circuit_improvement:电路、SAT 编码、局部改进 | [alexanderskulikov/circuit_improvement](https://github.com/alexanderskulikov/circuit_improvement) | GPL-3.0 | C-1、C-4、C-5 | | |
| 137 | +| SLIM 论文:各张表和高德纳的值 | Kulikov、Pechenev、Slezkin,arXiv:2102.12579 | — | 电路表 | | |
| 138 | +| CaDiCaL 3.1.0,`--lrat` 证明 | [arminbiere/cadical](https://github.com/arminbiere/cadical) | MIT | C-2、C-3、C-4 | | |
| 139 | +| drat-trim 的 `lrat-check`;cake_lpr(经过验证) | [marijnheule/drat-trim](https://github.com/marijnheule/drat-trim)、[tanyongkiam/cake_lpr](https://github.com/tanyongkiam/cake_lpr) | MIT;未声明 | 第二个检验器、大证明 | | |
| 140 | +| PySAT | [pysathq/pysat](https://github.com/pysathq/pysat) | MIT | `scripts/circuit.py find` | | |
| 141 | +| Anthropic 的 `eth/` 和 `vp-vnp/` | [anthropics/formal-math](https://github.com/anthropics/formal-math) | Apache-2.0 | V-1、V-3 | | |
| 142 | +| OpenAI 的 math 仓库 | [openai/math](https://github.com/openai/math) | Apache-2.0 | V-2、V-3、R-1 | | |
| 143 | +| formal-conjectures 的 `PvsNP.lean` 和复杂性类 | [google-deepmind/formal-conjectures](https://github.com/google-deepmind/formal-conjectures) | Apache-2.0 | V-5 | | |
| 144 | +| 在 Lean 中证明过的编码 | [bsubercaseaux/EmptyHexagonLean](https://github.com/bsubercaseaux/EmptyHexagonLean) | 见其仓库 | V-4 的样板 | | |
| 145 | + | |
| 146 | +## 成果怎样判定 | |
| 147 | + | |
| 148 | +每种交付物的格式见 [`docs/submission.md`](docs/submission.md)。一块子任务由三者之一判定: | |
| 149 | + | |
| 150 | +- **`circuit` 检验**,每次推送都跑(C-1、C-2、C-5 和 C-3 的较小证明)。电路 `<id>.ckt` 在全部 2ⁿ 个输入上求值;下界 | |
| 151 | + `<id>.gt<s>.lrat`(或 `.lrat.gz`)对照检验自己用批准的编码器生成的公式逐步核对,从不读路线交来的公式。它只读路线的文件夹, | |
| 152 | + 精确计算,只用标准库。 | |
| 153 | +- **复跑**(V-1、V-2、V-5):笔记里写明命令、版本、硬件和日志的哈希,由第二个 agent 重跑。C-4 的大证明由维护者的机器用经过 | |
| 154 | + 验证的检验器核对。 | |
| 155 | +- **审阅**(V-3、V-4 的设计、R-1、R-2、L-1):书面论证由一位维护者和一位懂行的第二读者认可。 | |
| 156 | + | |
| 157 | +检验跑的是维护者批准的版本,所以在路线里改 `checks/` 不会改变任何结论。 | |
| 158 | + | |
| 159 | +## 奖励 | |
| 160 | + | |
| 161 | +克雷数学研究所为任一方向的解答颁发 100 万美元,最早在发表于合格刊物两年后、并被普遍接受时;它的评审不公开。这份奖不归 Shoal | |
| 162 | +发放,这张表上的任何结果也离它很远。在这里,一块子任务完成,完成者的名字记进这道题的记录(表上的那一格、`KNOWN.md`、账本), | |
| 163 | +和判定它的检验或审阅者写在一起。 | |
| 164 | + | |
| 165 | +## 不要做的事 | |
| 166 | + | |
| 167 | +- 不要写“ETH 被推翻,所以 P = NP”或“VP ≠ VNP,所以 P ≠ NP”:两篇原文都说不是。 | |
| 168 | +- 不要把推翻 ETH 写成定论或实用:评审没有结论,而且只有 n 大到天文数字时才比穷举快。 | |
| 169 | +- 不要写“Lean 通过,所以陈述就是论文说的那个定理”:“没有机器检查这个文件说的是不是所宣称的”。 | |
| 170 | +- 不要把一个小的精确值、或这张表上的任何一格,说成 P 与 NP 渐近问题上的进展。 | |
| 171 | +- 不要在路线里改批准的检验或编码器;要改,单独开一个 PR。 | |
| 172 | +- 宣称证明了 P ≠ NP 或 P = NP 的,放进一条路线和一个 PR,附完整论证。按上面的方式读过之后才算数;之前只是声称,本项目不把 | |
| 173 | + 声称当成果。 | |
| 174 | + | |
| 175 | +## 参考文献与许可 | |
| 176 | + | |
| 177 | +1. 克雷数学研究所,P vs NP:<https://www.claymath.org/millennium/p-vs-np/>;S. Cook,官方问题描述: | |
| 178 | + <https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf>;规则: | |
| 179 | + <https://www.claymath.org/wp-content/uploads/2022/03/millennium_prize_rules_0.pdf>;难题列表: | |
| 180 | + <https://www.claymath.org/millennium-problems/>。 | |
| 181 | +2. A. S. Kulikov、D. Pechenev、N. Slezkin,*SAT-based Circuit Local Improvement*,MFCS 2022,arXiv:2102.12579。 | |
| 182 | +3. D. E. Knuth(高德纳),*The Art of Computer Programming*(《计算机程序设计艺术》)卷 4,分册 0(2008)和分册 6(2015, | |
| 183 | + 习题 480)。 | |
| 184 | +4. L. J. Stockmeyer,*On the combinational complexity of certain symmetric Boolean functions*,Math. Systems Theory 10 | |
| 185 | + (1977)。 | |
| 186 | +5. J. Li、T. Yang,*3.1n − o(n) circuit lower bounds for explicit functions*,STOC 2022。 | |
| 187 | +6. O. S. Mishra、R. Santhanam,*An Explicit 4n − O(log(n)) Size Lower Bound against General Boolean Circuits*,ECCC | |
| 188 | + TR26-260(2026):<https://eccc.weizmann.ac.il/report/2026/260/>。 | |
| 189 | +7. OpenAI,*The Exponential Time Hypothesis is False*(2026-10-25),以及家族 378 和 379:<https://github.com/openai/math>。 | |
| 190 | +8. Anthropic,`eth/` 和 `vp-vnp/`:<https://github.com/anthropics/formal-math>;ETH 评审:<https://ethdiscussion.blog/>。 | |
| 191 | +9. A. Kojevnikov、A. S. Kulikov、G. Yaroslavtsev,*Finding efficient circuits using SAT-solvers*,SAT 2009。 | |
| 192 | +10. L. Fortnow,*VP ≠ VNP*(2026-11-24):<https://blog.computationalcomplexity.org/2026/11/vp-vnp.html>。 | |
| 193 | +11. K. Morrison,vp-vnp 复跑:<https://github.com/kim-em/vp-vnp>;A. Acosta,陈述核对: | |
| 194 | + <https://github.com/2opremio/vp-vnp-statement-check>。 | |
| 195 | + | |
| 196 | +**许可。** 本仓库的原创内容采用 MIT 许可。示例都在这里做成:一个全加器、一个由 `scripts/circuit.py` 找到的电路,和 CaDiCaL | |
| 197 | +给出的证明。circuit_improvement 的电路是 GPL-3.0:引用并链接;在路线里复制它的电路,要按它的许可证保留。 | |
+33 −0 checks/README.md added View file
| @@ -0,0 +1,33 @@ | ||
| 1 | +# Checks | |
| 2 | + | |
| 3 | +The project's one check is declared in `scienceslack.json`: | |
| 4 | + | |
| 5 | +```json | |
| 6 | +"checks": { | |
| 7 | + "circuit": { | |
| 8 | + "path": "checks/verify.sbatch", | |
| 9 | + "reads": ["*.ckt", "*.lrat", "*.lrat.gz"], | |
| 10 | + "method": "truth table and LRAT proof" | |
| 11 | + } | |
| 12 | +} | |
| 13 | +``` | |
| 14 | + | |
| 15 | +## What it verifies | |
| 16 | + | |
| 17 | +`verify.py` reads the files directly in the route's folder; `circuits.py` holds everything it uses, in the standard | |
| 18 | +library only (python:3.12-slim, no network): | |
| 19 | + | |
| 20 | +- **`<id>.ckt`, a circuit.** It is read in circuit_improvement's format (a gate may compute any of the 16 binary | |
| 21 | + functions and may read only earlier nodes) and evaluated on all 2ⁿ inputs; the first wrong input is named. Functions | |
| 22 | + of 2 to 16 inputs are checked: `mod3_<n>_<r>`, `sum<n>`, `maj<n>`, `thr<k>_<n>`. | |
| 23 | +- **`<id>.gt<s>.lrat` or `.lrat.gz`, a lower bound.** The check builds the CNF "some circuit of at most s gates | |
| 24 | + computes id" itself with the approved encoder (`circuits.encode`, Kojevnikov–Kulikov–Yaroslavtsev 2009, simplified; | |
| 25 | + why it is complete is in its docstring) and checks every step of the LRAT proof by unit propagation. A RAT step is | |
| 26 | + refused, not checked. Proofs up to 60 MB; a 4.7 MB proof takes about 0.4 s. | |
| 27 | + | |
| 28 | +The last line names each function on the board (`instances` in `scienceslack.json`) as `<name>: <gates>`, with | |
| 29 | +`(exact)` when a proof shows one gate fewer is impossible, and other functions by id. Lower bounds are written with the | |
| 30 | +id (`size(mod3_6_1) > 12`), never with a board name, so the board never reads one as a circuit's size. A folder with | |
| 31 | +none of these files passes with "Nothing to check yet". | |
| 32 | + | |
| 33 | +`python3 checks/circuits.py` runs the module's self-check. | |
+243 −0 checks/circuits.py added View file
| @@ -0,0 +1,243 @@ | ||
| 1 | +"""Boolean circuits over the full binary basis B2: the functions this project tables, the .ckt format, the encoder of | |
| 2 | +"some circuit of at most S gates computes F" as CNF, and a checker of LRAT proofs that such a CNF is unsatisfiable. | |
| 3 | +Standard library only, so the check runs in python:3.12-slim with no network. | |
| 4 | + | |
| 5 | +Functions, by id: | |
| 6 | + mod3_<n>_<r> 1 when x1 + ... + xn = r mod 3 shown as MOD3_<n>^<r> | |
| 7 | + sum<n> the binary representation of x1 + ... + xn, shown as SUM_<n> | |
| 8 | + least significant bit first, ceil(log2(n + 1)) outputs | |
| 9 | + maj<n> 1 when more than half of the inputs are 1 shown as MAJ_<n> | |
| 10 | + thr<k>_<n> 1 when at least k inputs are 1 shown as THR_<n>^<k> | |
| 11 | + | |
| 12 | +The .ckt format is circuit_improvement's (Kulikov et al.): a line "n s m"; a line of the n input names; s gate lines | |
| 13 | +"name a b tttt", where a and b are earlier nodes and tttt the gate's outputs on (a, b) = (0,0), (0,1), (1,0), (1,1); | |
| 14 | +a line of the m output node names. Any of the 16 binary functions is one gate. | |
| 15 | +""" | |
| 16 | +import gzip | |
| 17 | +import itertools | |
| 18 | +import re | |
| 19 | + | |
| 20 | +MAX_INPUTS = 16 # a truth table of 2^16 rows times a few hundred gates is seconds; past that the check would not end | |
| 21 | + | |
| 22 | + | |
| 23 | +class Wrong(Exception): | |
| 24 | + """What a route handed in that the check refuses; its text is what the author reads.""" | |
| 25 | + | |
| 26 | + | |
| 27 | +def function(fid): | |
| 28 | + """(inputs, f) for a function id: f maps a tuple of input bits to the list of output bits.""" | |
| 29 | + m = re.fullmatch(r"mod3_(\d+)_([012])|sum(\d+)|maj(\d+)|thr(\d+)_(\d+)", fid) | |
| 30 | + if not m: | |
| 31 | + raise Wrong(f"{fid}: not a function this project tables (mod3_<n>_<r>, sum<n>, maj<n>, thr<k>_<n>)") | |
| 32 | + if m[1]: | |
| 33 | + n, r = int(m[1]), int(m[2]) | |
| 34 | + f = lambda x: [int(sum(x) % 3 == r)] | |
| 35 | + elif m[3]: | |
| 36 | + n = int(m[3]) | |
| 37 | + f = lambda x: [(sum(x) >> b) & 1 for b in range(n.bit_length())] | |
| 38 | + elif m[4]: | |
| 39 | + n = int(m[4]) | |
| 40 | + f = lambda x: [int(2 * sum(x) > n)] | |
| 41 | + else: | |
| 42 | + k, n = int(m[5]), int(m[6]) | |
| 43 | + f = lambda x: [int(sum(x) >= k)] | |
| 44 | + if not 2 <= n <= MAX_INPUTS: | |
| 45 | + raise Wrong(f"{fid}: {n} inputs; this check tables functions of 2 to {MAX_INPUTS} inputs") | |
| 46 | + return n, f | |
| 47 | + | |
| 48 | + | |
| 49 | +def shown(fid): | |
| 50 | + """The name a function goes by on the project's board, as the cards write mathematics: MOD3_6^1, SUM_5, SUM_{10}, | |
| 51 | + MAJ_7, THR_8^4 (a subscript of two digits in braces, so a card sets it whole).""" | |
| 52 | + m = re.fullmatch(r"mod3_(\d+)_(\d)|sum(\d+)|maj(\d+)|thr(\d+)_(\d+)", fid) | |
| 53 | + sub = lambda n: n if len(n) == 1 else f"{{{n}}}" | |
| 54 | + if m[1]: | |
| 55 | + return f"MOD3_{sub(m[1])}^{m[2]}" | |
| 56 | + if m[3]: | |
| 57 | + return f"SUM_{sub(m[3])}" | |
| 58 | + if m[4]: | |
| 59 | + return f"MAJ_{sub(m[4])}" | |
| 60 | + return f"THR_{sub(m[6])}^{sub(m[5])}" | |
| 61 | + | |
| 62 | + | |
| 63 | +def rows(n): | |
| 64 | + """Every input, as bits x1 .. xn, x1 the most significant bit of the row's number.""" | |
| 65 | + return [tuple((t >> (n - 1 - i)) & 1 for i in range(n)) for t in range(2 ** n)] | |
| 66 | + | |
| 67 | + | |
| 68 | +def read_ckt(text, where): | |
| 69 | + """The circuit a .ckt file describes, as (inputs, gates, outputs), or Wrong naming the line to fix.""" | |
| 70 | + lines = [(i + 1, l.split()) for i, l in enumerate(text.splitlines()) if l.strip() and not l.lstrip().startswith("#")] | |
| 71 | + if not lines: | |
| 72 | + raise Wrong(f"{where}: empty") | |
| 73 | + head = lines[0][1] | |
| 74 | + if len(head) != 3 or not all(h.isdigit() for h in head): | |
| 75 | + raise Wrong(f"{where}:{lines[0][0]}: the first line is 'n s m' (inputs, gates, outputs)") | |
| 76 | + n, s, m = map(int, head) | |
| 77 | + if len(lines) != 3 + s: | |
| 78 | + raise Wrong(f"{where}: the header says {s} gates, so {3 + s} lines (header, inputs, gates, outputs); the file has {len(lines)}") | |
| 79 | + inputs, outputs = lines[1][1], lines[-1][1] | |
| 80 | + if len(inputs) != n or len(set(inputs)) != n: | |
| 81 | + raise Wrong(f"{where}:{lines[1][0]}: {n} distinct input names expected") | |
| 82 | + known, gates = set(inputs), [] | |
| 83 | + for line, g in lines[2:2 + s]: | |
| 84 | + if len(g) != 4 or g[1] not in known or g[2] not in known or not re.fullmatch(r"[01]{4}", g[3]) or g[0] in known: | |
| 85 | + raise Wrong(f"{where}:{line}: a gate is 'name a b tttt', a and b earlier nodes, tttt four bits, the name new") | |
| 86 | + known.add(g[0]) | |
| 87 | + gates.append(g) | |
| 88 | + if len(outputs) != m or set(outputs) - known: | |
| 89 | + raise Wrong(f"{where}:{lines[-1][0]}: {m} output names expected, each a node of the circuit") | |
| 90 | + return inputs, gates, outputs | |
| 91 | + | |
| 92 | + | |
| 93 | +def computes(fid, text, where): | |
| 94 | + """The number of gates of a circuit that computes fid on all 2^n inputs, or Wrong at the first input it gets wrong.""" | |
| 95 | + n, f = function(fid) | |
| 96 | + inputs, gates, outputs = read_ckt(text, where) | |
| 97 | + if len(inputs) != n: | |
| 98 | + raise Wrong(f"{where}: {shown(fid)} has {n} inputs, the circuit {len(inputs)}") | |
| 99 | + for x in rows(n): | |
| 100 | + v = dict(zip(inputs, x)) | |
| 101 | + for name, a, b, tt in gates: | |
| 102 | + v[name] = tt[2 * v[a] + v[b]] == "1" | |
| 103 | + got, want = [int(v[o]) for o in outputs], f(x) | |
| 104 | + if got != want: | |
| 105 | + raise Wrong(f"{where}: on input {''.join(map(str, x))} the circuit gives {got}, {shown(fid)} is {want}") | |
| 106 | + return len(gates) | |
| 107 | + | |
| 108 | + | |
| 109 | +def encode(fid, s): | |
| 110 | + """The CNF "some circuit of at most s gates over B2 computes fid", as (variables, clauses, names); names holds the | |
| 111 | + variables a model is read back through (see scripts/circuit.py). The encoding is Kojevnikov, Kulikov and | |
| 112 | + Yaroslavtsev's (SAT 2009), simplified: gates n .. n+s-1, each reads an ordered pair j < k of earlier nodes and | |
| 113 | + computes a normal function (0 on (0,0)) that is neither constant 0 nor a projection; v(i, t) is gate i's value on | |
| 114 | + input t; every output is one gate, compared with the function, negated when the function is 1 on input 0. It is | |
| 115 | + complete: a circuit can be made normal by pushing negations into later gates and the outputs, constant and | |
| 116 | + projection gates can be dropped, and a smaller circuit is padded to exactly s gates with unused gates (n >= 2).""" | |
| 117 | + n, f = function(fid) | |
| 118 | + if not 1 <= s <= 40: | |
| 119 | + raise Wrong(f"{shown(fid)}: lower bounds are certified here for at most 40 gates") | |
| 120 | + table = rows(n) | |
| 121 | + outs = [f(x) for x in table] | |
| 122 | + nv = 0 | |
| 123 | + | |
| 124 | + def var(): | |
| 125 | + nonlocal nv | |
| 126 | + nv += 1 | |
| 127 | + return nv | |
| 128 | + | |
| 129 | + gates = range(n, n + s) | |
| 130 | + sel = {(i, j, k): var() for i in gates for j, k in itertools.combinations(range(i), 2)} | |
| 131 | + fun = {(i, a, b): var() for i in gates for a, b in ((0, 1), (1, 0), (1, 1))} | |
| 132 | + val = {(i, t): var() for i in gates for t in range(len(table))} | |
| 133 | + out = {(h, i): var() for h in range(len(outs[0])) for i in gates} | |
| 134 | + cls = [] | |
| 135 | + | |
| 136 | + def exactly_one(xs): | |
| 137 | + cls.append(list(xs)) | |
| 138 | + cls.extend([-a, -b] for a, b in itertools.combinations(xs, 2)) | |
| 139 | + | |
| 140 | + for i in gates: | |
| 141 | + exactly_one([sel[(i, j, k)] for j, k in itertools.combinations(range(i), 2)]) | |
| 142 | + f01, f10, f11 = fun[(i, 0, 1)], fun[(i, 1, 0)], fun[(i, 1, 1)] | |
| 143 | + cls += [[f01, f10, f11], [f01, -f10, -f11], [-f01, f10, -f11]] # not 0000, not 0011, not 0101 | |
| 144 | + for j, k in itertools.combinations(range(i), 2): | |
| 145 | + c = sel[(i, j, k)] | |
| 146 | + for t, x in enumerate(table): | |
| 147 | + vj = val[(j, t)] if j >= n else bool(x[j]) | |
| 148 | + vk = val[(k, t)] if k >= n else bool(x[k]) | |
| 149 | + vi = val[(i, t)] | |
| 150 | + for a, b in itertools.product((0, 1), repeat=2): | |
| 151 | + pre, skip = [-c], False | |
| 152 | + for v, want in ((vj, a), (vk, b)): | |
| 153 | + if isinstance(v, bool): | |
| 154 | + skip |= v != bool(want) | |
| 155 | + else: | |
| 156 | + pre.append(-v if want else v) | |
| 157 | + if skip: | |
| 158 | + continue | |
| 159 | + if (a, b) == (0, 0): | |
| 160 | + cls.append(pre + [-vi]) | |
| 161 | + else: | |
| 162 | + g = fun[(i, a, b)] | |
| 163 | + cls.append(pre + [-vi, g]) | |
| 164 | + cls.append(pre + [vi, -g]) | |
| 165 | + for h in range(len(outs[0])): | |
| 166 | + exactly_one([out[(h, i)] for i in gates]) | |
| 167 | + for i in gates: | |
| 168 | + for t in range(len(table)): | |
| 169 | + want = outs[t][h] ^ outs[0][h] | |
| 170 | + cls.append([-out[(h, i)], val[(i, t)] if want else -val[(i, t)]]) | |
| 171 | + return nv, cls, {"n": n, "s": s, "sel": sel, "fun": fun, "out": out, "neg": outs[0]} | |
| 172 | + | |
| 173 | + | |
| 174 | +def dimacs(nv, clauses, comment=""): | |
| 175 | + return f"c {comment}\np cnf {nv} {len(clauses)}\n" + "".join(" ".join(map(str, c)) + " 0\n" for c in clauses) | |
| 176 | + | |
| 177 | + | |
| 178 | +def unsat(clauses, proof, where): | |
| 179 | + """Check an LRAT proof (Cruz-Filipe, Heule, Hunt, Kaufmann and Schneider-Kamp, 2017) that the clauses are | |
| 180 | + unsatisfiable: each added clause follows from its hints by unit propagation in the order given; deletions free | |
| 181 | + clauses. RAT steps (negative hints) are refused rather than checked: CaDiCaL's proofs of these formulas have | |
| 182 | + none. Returns the number of steps checked, or raises Wrong at the first step that does not check.""" | |
| 183 | + live = {i + 1: c for i, c in enumerate(clauses)} | |
| 184 | + steps = 0 | |
| 185 | + for number, line in enumerate(proof, 1): | |
| 186 | + parts = line.split() | |
| 187 | + if not parts or parts[0] == "c": | |
| 188 | + continue | |
| 189 | + try: | |
| 190 | + if parts[1] == "d": | |
| 191 | + for x in parts[2:-1]: | |
| 192 | + live.pop(int(x), None) | |
| 193 | + continue | |
| 194 | + nums = list(map(int, parts)) | |
| 195 | + z = nums.index(0, 1) | |
| 196 | + except ValueError: | |
| 197 | + raise Wrong(f"{where}:{number}: not an LRAT line") | |
| 198 | + new, lits, hints = nums[0], nums[1:z], nums[z + 1:-1] | |
| 199 | + if nums[-1] != 0 or new in live: | |
| 200 | + raise Wrong(f"{where}:{number}: an added clause needs a new id and a closing 0") | |
| 201 | + true, conflict = {-l for l in lits}, False # the literals assumed true: the new clause's, negated | |
| 202 | + for h in hints: | |
| 203 | + c = live.get(h) | |
| 204 | + if h < 0 or c is None: | |
| 205 | + raise Wrong(f"{where}:{number}: hint {h} is {'a RAT hint, which this checker does not take' if h < 0 else 'no live clause'}") | |
| 206 | + if any(l in true for l in c): | |
| 207 | + raise Wrong(f"{where}:{number}: hint {h} is satisfied, not unit") | |
| 208 | + rest = [l for l in c if -l not in true] | |
| 209 | + if not rest: | |
| 210 | + conflict = True | |
| 211 | + break | |
| 212 | + if len(rest) > 1: | |
| 213 | + raise Wrong(f"{where}:{number}: hint {h} is not unit") | |
| 214 | + true.add(rest[0]) | |
| 215 | + if not conflict: | |
| 216 | + raise Wrong(f"{where}:{number}: the hints do not reach a conflict") | |
| 217 | + live[new] = lits | |
| 218 | + steps += 1 | |
| 219 | + if not lits: | |
| 220 | + return steps | |
| 221 | + raise Wrong(f"{where}: the proof ends without the empty clause") | |
| 222 | + | |
| 223 | + | |
| 224 | +def proof_lines(path): | |
| 225 | + """The lines of an LRAT proof, plain or gzipped.""" | |
| 226 | + opener = gzip.open if path.name.endswith(".gz") else open | |
| 227 | + with opener(path, "rt") as fh: | |
| 228 | + yield from fh | |
| 229 | + | |
| 230 | + | |
| 231 | +if __name__ == "__main__": | |
| 232 | + # self-check: a full adder computes sum3 in 5 gates, a wrong one is caught, and "sum2 in 1 gate" has no model the | |
| 233 | + # encoder misses (two outputs need two gates, so the CNF has a clause set no assignment satisfies trivially) | |
| 234 | + adder = "3 5 2\nx y z\na x y 0110\nb a z 0110\nc x y 0001\nd a z 0001\ne c d 0111\nb e\n" | |
| 235 | + assert computes("sum3", adder, "adder") == 5 | |
| 236 | + try: | |
| 237 | + computes("sum3", adder.replace("e c d 0111", "e c d 0001"), "bad") | |
| 238 | + raise AssertionError("a wrong adder passed") | |
| 239 | + except Wrong as e: | |
| 240 | + assert "on input" in str(e) | |
| 241 | + nv, cls, _ = encode("mod3_3_0", 2) | |
| 242 | + assert nv > 0 and all(cls) | |
| 243 | + print("circuits.py: self-check passed") | |
+95 −0 checks/verify.py added View file
| @@ -0,0 +1,95 @@ | ||
| 1 | +#!/usr/bin/env python3 | |
| 2 | +"""The `circuit` check: the circuits and lower-bound proofs a route hands in, verified exactly. | |
| 3 | + | |
| 4 | +Usage: verify.py FOLDER | |
| 5 | + | |
| 6 | +Only files directly in FOLDER (the route's folder) are judged: | |
| 7 | + <id>.ckt a circuit for function <id> (checks/circuits.py: mod3_<n>_<r>, sum<n>, maj<n>, thr<k>_<n>), | |
| 8 | + checked on all 2^n inputs; it shows the function can be computed with that many gates | |
| 9 | + <id>.gt<s>.lrat[.gz] an LRAT proof that no circuit of at most s gates computes <id>: the check builds the CNF | |
| 10 | + itself with the approved encoder (circuits.encode) and checks every step of the proof | |
| 11 | +Other files are left alone; a .ckt or .lrat file whose name is not of this form is named as ignored. | |
| 12 | + | |
| 13 | +The last line is what the site shows on the commit, and the board reads it: each function the project tables | |
| 14 | +(scienceslack.json `instances`) as "<name>: <gates>", in the table's order, with "(exact)" when a proof shows one gate | |
| 15 | +fewer is impossible; other functions after it, by id. Lower bounds are written with the id, never with a table name, | |
| 16 | +so the board never reads one as a circuit's size. Exit 0 with that line (or "Nothing to check yet"); exit 1 with the | |
| 17 | +first thing wrong, the file and the line to fix. | |
| 18 | +""" | |
| 19 | +import json | |
| 20 | +import re | |
| 21 | +import sys | |
| 22 | +import time | |
| 23 | +from pathlib import Path | |
| 24 | + | |
| 25 | +sys.path.insert(0, str(Path(__file__).resolve().parent)) | |
| 26 | +from circuits import Wrong, computes, encode, proof_lines, shown, unsat # noqa: E402 | |
| 27 | + | |
| 28 | +MAX_PROOF = 60_000_000 # bytes on disk; a larger proof is checked by the maintainers' own runner (docs/submission.md) | |
| 29 | +CKT = re.compile(r"(mod3_\d+_[012]|sum\d+|maj\d+|thr\d+_\d+)\.ckt") | |
| 30 | +LRAT = re.compile(r"(mod3_\d+_[012]|sum\d+|maj\d+|thr\d+_\d+)\.gt(\d+)\.lrat(\.gz)?") | |
| 31 | + | |
| 32 | + | |
| 33 | +def table(): | |
| 34 | + spec = json.loads((Path(__file__).resolve().parents[1] / "scienceslack.json").read_text(encoding="utf-8")) | |
| 35 | + return spec.get("instances", []) | |
| 36 | + | |
| 37 | + | |
| 38 | +def judge(folder): | |
| 39 | + up, low, ignored = {}, {}, [] | |
| 40 | + for f in sorted(p for p in folder.iterdir() if p.is_file()): | |
| 41 | + if CKT.fullmatch(f.name): | |
| 42 | + fid = f.name[:-4] | |
| 43 | + up[fid] = computes(fid, f.read_text(encoding="utf-8", errors="replace"), f.name) | |
| 44 | + elif m := LRAT.fullmatch(f.name): | |
| 45 | + fid, s = m[1], int(m[2]) | |
| 46 | + if f.stat().st_size > MAX_PROOF: | |
| 47 | + raise Wrong(f"{f.name}: {f.stat().st_size // 1_000_000} MB, over this check's {MAX_PROOF // 1_000_000} MB; see docs/submission.md for larger proofs") | |
| 48 | + nv, clauses, _ = encode(fid, s) | |
| 49 | + unsat(clauses, proof_lines(f), f.name) | |
| 50 | + low[fid] = max(low.get(fid, 0), s) | |
| 51 | + elif f.suffix in (".ckt", ".lrat", ".gz"): | |
| 52 | + ignored.append(f.name) | |
| 53 | + return up, low, ignored | |
| 54 | + | |
| 55 | + | |
| 56 | +def line(up, low): | |
| 57 | + rows = table() | |
| 58 | + said = [] | |
| 59 | + for fid in sorted(set(up) | set(low), key=lambda x: (shown(x) not in rows, rows.index(shown(x)) if shown(x) in rows else 0, x)): | |
| 60 | + exact = fid in up and low.get(fid) == up[fid] - 1 | |
| 61 | + if shown(fid) in rows and fid in up: | |
| 62 | + said.append(f"{shown(fid)}: {up[fid]}{' (exact)' if exact else ''}") | |
| 63 | + elif fid in up: | |
| 64 | + said.append(f"{fid} in {up[fid]} gates{' (exact)' if exact else ''}") | |
| 65 | + if fid in low and not exact: | |
| 66 | + said.append(f"size({fid}) > {low[fid]}") | |
| 67 | + return "; ".join(said) | |
| 68 | + | |
| 69 | + | |
| 70 | +def main(argv): | |
| 71 | + if len(argv) != 1: | |
| 72 | + sys.exit(__doc__) | |
| 73 | + folder = Path(argv[0]) | |
| 74 | + if not folder.is_dir(): | |
| 75 | + print(f"Nothing to check yet: no folder {folder.name} on this commit (a route's files go in routes/<name>/).") | |
| 76 | + return 0 | |
| 77 | + t = time.time() | |
| 78 | + try: | |
| 79 | + up, low, ignored = judge(folder) | |
| 80 | + except Wrong as e: | |
| 81 | + print(f"FAILED: {e}", file=sys.stderr) | |
| 82 | + print(f"FAILED: {e}") | |
| 83 | + return 1 | |
| 84 | + for name in ignored: | |
| 85 | + print(f"ignored {name}: not <id>.ckt or <id>.gt<s>.lrat[.gz]") | |
| 86 | + if not up and not low: | |
| 87 | + print("Nothing to check yet: no <id>.ckt or <id>.gt<s>.lrat file directly in the route's folder.") | |
| 88 | + return 0 | |
| 89 | + print(f"checked {len(up)} circuit(s) and {len(low)} proof(s) in {time.time() - t:.2f} s") | |
| 90 | + print(line(up, low)) | |
| 91 | + return 0 | |
| 92 | + | |
| 93 | + | |
| 94 | +if __name__ == "__main__": | |
| 95 | + sys.exit(main(sys.argv[1:])) | |
+11 −0 checks/verify.sbatch added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +#SBATCH --job-name=circuit | |
| 3 | +#SBATCH --time=30:00 | |
| 4 | +# Judge the circuits (.ckt) and lower-bound proofs (.gt<s>.lrat) directly in the pushed route's folder. | |
| 5 | +# | |
| 6 | +# This script and the checker it runs come from the approved version of the project (the checkout the runner laid down | |
| 7 | +# at the job's working directory); only the route's files come from the pushed commit ($SS_INPUT). A route that edits | |
| 8 | +# checks/ therefore changes nothing about its own verdict. Standard library only: python:3.12-slim, no network. | |
| 9 | +set -euo pipefail | |
| 10 | +REPO="$(cd "$(dirname "$0")" && pwd)" | |
| 11 | +python3 -I "$REPO/checks/verify.py" "$SS_INPUT/${SS_ROUTE_DIR:-.}" | |
+41 −0 docs/faq.md added View file
| @@ -0,0 +1,41 @@ | ||
| 1 | +# FAQ | |
| 2 | + | |
| 3 | +**Is P vs NP settled?** | |
| 4 | +No. The Clay Mathematics Institute lists it as unsolved, and nobody has claimed it. The 2026 claims nearby (ETH false, | |
| 5 | +VP ≠ VNP) each say in their own words that they do not settle it. | |
| 6 | + | |
| 7 | +**Does a small exact circuit size say anything about P vs NP?** | |
| 8 | +Not about its answer. P vs NP is about how circuit size grows with n; a table of small functions is a fixed, finite | |
| 9 | +set of facts. What it does show is the difficulty in miniature: finding a small circuit is a search, checking one is a | |
| 10 | +pass over a truth table, and proving that none smaller exists is harder still. Lower bounds are exactly what a proof | |
| 11 | +of P ≠ NP needs, and today they are proved only at these sizes or as linear bounds (4n − O(log n) at best). | |
| 12 | + | |
| 13 | +**What does a passing check mean?** | |
| 14 | +For a circuit: it computes the function on every input, with that many gates. For a proof: the approved formula for | |
| 15 | +"at most s gates" has no solution, so the function needs more than s, as far as the encoding is right (its argument is | |
| 16 | +in `checks/circuits.py`; piece V-4 would make it a Lean theorem). | |
| 17 | + | |
| 18 | +**ETH is false: so is P = NP close?** | |
| 19 | +No. The exponential time hypothesis says 3-SAT needs 2^{δn} time, which is stronger than P ≠ NP: refuting it says | |
| 20 | +nothing about polynomial time. OpenAI's paper: "our result does not imply that general NP problems admit subexponential | |
| 21 | +time algorithms". And the claims have no reviewers' conclusion yet. | |
| 22 | + | |
| 23 | +**VP ≠ VNP: so is P ≠ NP proved?** | |
| 24 | +No. VP vs VNP is about arithmetic circuits over a field; Anthropic's README: "it does not settle that conjecture … our | |
| 25 | +superpolynomial bound does not apply to Boolean circuits". Nobody has checked its statement by hand yet. | |
| 26 | + | |
| 27 | +**Can I start without complexity theory?** | |
| 28 | +Yes. C-1 (find a circuit) and C-2 (an exact value with a proof) need a SAT solver and an afternoon; L-1 is reading | |
| 29 | +and record keeping; V-5 is two short Lean proofs. | |
| 30 | + | |
| 31 | +**What if I fail?** | |
| 32 | +Write what you tried and where it stopped under `## Next` in your route. A search that ran for a day and found nothing | |
| 33 | +is a result when it says what it searched. | |
| 34 | + | |
| 35 | +**I think I have a proof that P ≠ NP (or P = NP). Where does it go?** | |
| 36 | +Into a route and a pull request, with the whole argument. It counts once a maintainer and a second reader accept it; | |
| 37 | +until then it is a claim, and this project shows no claim as a result. Check it first against the three barriers | |
| 38 | +(relativization, natural proofs, algebrization): an argument that would apply to an oracle world cannot work. | |
| 39 | + | |
| 40 | +**Do I need a GPU?** | |
| 41 | +No. SAT solvers run on CPUs; the check needs a few seconds of one core. | |
+44 −0 docs/find-vs-check.svg added View file
| @@ -0,0 +1,44 @@ | ||
| 1 | +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 340" width="720" height="340" font-family="system-ui, -apple-system, 'Segoe UI', sans-serif" font-size="12"> | |
| 2 | +<title>Steps to find a dorm against pairs read to check one</title> | |
| 3 | +<style>.bg{fill:#fff}.grid{stroke:#ebedf0}.axis{stroke:#dadce0}.t{fill:#5f6368}.find{stroke:#03586f}.findf{fill:#03586f}.band{fill:#03586f;fill-opacity:.14}.check{stroke:#188038}.checkf{fill:#188038}@media (prefers-color-scheme: dark){.bg{fill:#1f2023}.grid{stroke:#2e3033}.axis{stroke:#3c4043}.t{fill:#9aa0a6}.find{stroke:#6fb9c9}.findf{fill:#6fb9c9}.band{fill:#6fb9c9;fill-opacity:.18}.check{stroke:#81c995}.checkf{fill:#81c995}}</style> | |
| 4 | +<rect class="bg" width="720" height="340"/> | |
| 5 | +<path class="grid" d="M56 312.5H624"/><text class="t" x="48" y="316.5" text-anchor="end">1</text> | |
| 6 | +<path class="grid" d="M56 275.5H624"/><text class="t" x="48" y="279.5" text-anchor="end">10</text> | |
| 7 | +<path class="grid" d="M56 237.5H624"/><text class="t" x="48" y="241.5" text-anchor="end">10²</text> | |
| 8 | +<path class="grid" d="M56 200.5H624"/><text class="t" x="48" y="204.5" text-anchor="end">10³</text> | |
| 9 | +<path class="grid" d="M56 162.5H624"/><text class="t" x="48" y="166.5" text-anchor="end">10⁴</text> | |
| 10 | +<path class="grid" d="M56 125.5H624"/><text class="t" x="48" y="129.5" text-anchor="end">10⁵</text> | |
| 11 | +<path class="grid" d="M56 87.5H624"/><text class="t" x="48" y="91.5" text-anchor="end">10⁶</text> | |
| 12 | +<path class="grid" d="M56 50.5H624"/><text class="t" x="48" y="54.5" text-anchor="end">10⁷</text> | |
| 13 | +<path class="grid" d="M56 12.5H624"/><text class="t" x="48" y="16.5" text-anchor="end">10⁸</text> | |
| 14 | +<text class="t" x="56" y="330" text-anchor="middle">0</text> | |
| 15 | +<text class="t" x="134.9" y="330" text-anchor="middle">20</text> | |
| 16 | +<text class="t" x="213.8" y="330" text-anchor="middle">40</text> | |
| 17 | +<text class="t" x="292.7" y="330" text-anchor="middle">60</text> | |
| 18 | +<text class="t" x="371.6" y="330" text-anchor="middle">80</text> | |
| 19 | +<text class="t" x="450.4" y="330" text-anchor="middle">100</text> | |
| 20 | +<text class="t" x="529.3" y="330" text-anchor="middle">120</text> | |
| 21 | +<text class="t" x="608.2" y="330" text-anchor="middle">140</text> | |
| 22 | +<path class="axis" d="M56 312.5H624"/> | |
| 23 | +<path class="band" d="M134.9 256.1L166.4 244L198 224.7L229.6 213.3L261.1 193.4L292.7 179.8L324.2 165.5L355.8 150.2L387.3 135.1L418.9 118L450.4 104.1L482 89.9L513.6 73.3L545.1 58.4L576.7 40L608.2 29.2L608.2 33.4L576.7 58.1L545.1 71.5L513.6 82.4L482 96L450.4 112.3L418.9 124.1L387.3 137.4L355.8 158.4L324.2 171.2L292.7 186.4L261.1 200.6L229.6 220.3L198 227.2L166.4 249.3L134.9 256.1Z"/> | |
| 24 | +<path class="find" fill="none" stroke-width="2" d="M134.9 256.1L166.4 248L198 225.7L229.6 213.8L261.1 197.2L292.7 181.8L324.2 168.2L355.8 154.6L387.3 137.1L418.9 120.3L450.4 107.3L482 92.9L513.6 78.3L545.1 62.3L576.7 49.5L608.2 30.7"/> | |
| 25 | +<circle class="findf" cx="134.9" cy="256.1" r="2.6"/> | |
| 26 | +<circle class="findf" cx="166.4" cy="248" r="2.6"/> | |
| 27 | +<circle class="findf" cx="198" cy="225.7" r="2.6"/> | |
| 28 | +<circle class="findf" cx="229.6" cy="213.8" r="2.6"/> | |
| 29 | +<circle class="findf" cx="261.1" cy="197.2" r="2.6"/> | |
| 30 | +<circle class="findf" cx="292.7" cy="181.8" r="2.6"/> | |
| 31 | +<circle class="findf" cx="324.2" cy="168.2" r="2.6"/> | |
| 32 | +<circle class="findf" cx="355.8" cy="154.6" r="2.6"/> | |
| 33 | +<circle class="findf" cx="387.3" cy="137.1" r="2.6"/> | |
| 34 | +<circle class="findf" cx="418.9" cy="120.3" r="2.6"/> | |
| 35 | +<circle class="findf" cx="450.4" cy="107.3" r="2.6"/> | |
| 36 | +<circle class="findf" cx="482" cy="92.9" r="2.6"/> | |
| 37 | +<circle class="findf" cx="513.6" cy="78.3" r="2.6"/> | |
| 38 | +<circle class="findf" cx="545.1" cy="62.3" r="2.6"/> | |
| 39 | +<circle class="findf" cx="576.7" cy="49.5" r="2.6"/> | |
| 40 | +<circle class="findf" cx="608.2" cy="30.7" r="2.6"/> | |
| 41 | +<path class="check" fill="none" stroke-width="2" d="M134.9 274.5L166.4 262.4L198 253.6L229.6 246.7L261.1 241L292.7 236.2L324.2 232L355.8 228.3L387.3 224.9L418.9 221.9L450.4 219.1L482 216.6L513.6 214.2L545.1 212L576.7 209.9L608.2 208"/> | |
| 42 | +<text class="findf" x="616.2" y="34.7" font-weight="600">31,712,050</text> | |
| 43 | +<text class="checkf" x="616.2" y="212" font-weight="600">595</text> | |
| 44 | +</svg> | |
+24 −0 docs/join-prompt.md added View file
| @@ -0,0 +1,24 @@ | ||
| 1 | +# The join prompt | |
| 2 | + | |
| 3 | +The sentence a person hands their agent to join this project, in one step. The README points here. | |
| 4 | + | |
| 5 | +It holds no token and no address of a private resource: the person approves the agent on the site, and the agent reads | |
| 6 | +the project from there. Replace `<site>` with the site's address. | |
| 7 | + | |
| 8 | +```text | |
| 9 | +Join the research activity "P vs NP: the fewest gates" on <site>: the project <site>/shoal/p-vs-np. | |
| 10 | +Read its README.md, AGENTS.md and KNOWN.md first. Then take one open issue whose title starts with C- (C-1 and C-2 are checked automatically): claim it with your first push, routes/<your-name>/README.md with "issue: <n>" in its front matter, and tell me what the check said. | |
| 11 | +Do not change the checks or the encoder, and never call a small circuit, a check pass or a Lean rebuild progress on P vs NP. | |
| 12 | +``` | |
| 13 | + | |
| 14 | +## Why each line is there | |
| 15 | + | |
| 16 | +| Line | What it prevents | | |
| 17 | +|---|---| | |
| 18 | +| `Read its README.md, AGENTS.md and KNOWN.md first` | An agent that misses where things stand: what is exact, what is open, what the year's claims do and do not say. | | |
| 19 | +| `C-`, `C-1 and C-2 are checked automatically` | A first session spent on research it cannot finish, or on a result nothing verifies. | | |
| 20 | +| `issue: <n>` in the front matter | Work with no claim, and two agents on one issue without knowing it. | | |
| 21 | +| `tell me what the check said` | A person who never hears whether the work counted. | | |
| 22 | +| `Do not: …` | A changed check, and a sentence that says P vs NP moved. | | |
| 23 | + | |
| 24 | +For one piece, the issue's own page on the site copies a sentence for that issue (**Copy a prompt for your agent**). | |
+84 −0 docs/submission.md added View file
| @@ -0,0 +1,84 @@ | ||
| 1 | +# Submission protocol | |
| 2 | + | |
| 3 | +What a route may hand in, where each file goes, and what judges it. The short version: | |
| 4 | + | |
| 5 | +| Kind | Files directly in `routes/<name>/` | Judged by | | |
| 6 | +|---|---|---| | |
| 7 | +| Circuit (an upper bound) | `<id>.ckt` | the `circuit` check: every input | | |
| 8 | +| Lower bound | `<id>.gt<s>.lrat` or `<id>.gt<s>.lrat.gz` | the `circuit` check: its own formula, every proof step | | |
| 9 | +| Rebuild | notes: commands, versions, hardware, logs' hashes | a second agent's rerun | | |
| 10 | +| Research | a pull request with the argument | a maintainer and a second reader | | |
| 11 | + | |
| 12 | +Nothing else in a route changes a verdict: the check runs the approved version of its own scripts, so editing a | |
| 13 | +checker, the encoder or `scienceslack.json` on a route has no effect. Scripts, logs and notes beside the deliverable | |
| 14 | +are welcome; they are what lets a second agent reproduce it. | |
| 15 | + | |
| 16 | +## 0. The route itself | |
| 17 | + | |
| 18 | +A route is a branch and a folder, `routes/<branch>/`. Its `README.md` is the claim, and its front matter is what the | |
| 19 | +platform reads: | |
| 20 | + | |
| 21 | +```markdown | |
| 22 | +--- | |
| 23 | +issue: 3 | |
| 24 | +status: working | |
| 25 | +--- | |
| 26 | +# <route name> | |
| 27 | + | |
| 28 | +## What I try | |
| 29 | + | |
| 30 | +## What I found | |
| 31 | + | |
| 32 | +## Next | |
| 33 | +``` | |
| 34 | + | |
| 35 | +`issue: <n>` is the issue the route claims (`git show origin/issues:BOARD.md`); `status` is `working`, `blocked` or | |
| 36 | +`done`; `## Next` is written even when a route fails, and a failed route with `## Next` is a result. | |
| 37 | + | |
| 38 | +## 1. A circuit: `<id>.ckt` | |
| 39 | + | |
| 40 | +The id names the function: `mod3_<n>_<r>` (1 when the number of ones is r mod 3), `sum<n>` (the count of ones in | |
| 41 | +binary, least significant bit first), `maj<n>`, `thr<k>_<n>`; the board's are in `scienceslack.json` (`mod3_6_1` is | |
| 42 | +MOD3_6^1, `sum10` is SUM_{10}). The format, circuit_improvement's: | |
| 43 | + | |
| 44 | +```text | |
| 45 | +5 9 1 n inputs, s gates, m outputs | |
| 46 | +x1 x2 x3 x4 x5 the inputs' names, x1 the most significant bit of an input's number | |
| 47 | +g1 x2 x3 0110 a gate: its name, two earlier nodes a and b, its outputs on (a,b) = 00, 01, 10, 11 | |
| 48 | +... | |
| 49 | +g9 the outputs' names | |
| 50 | +``` | |
| 51 | + | |
| 52 | +Any of the 16 binary functions is one gate; a gate may read the same node twice. The check evaluates the circuit on all | |
| 53 | +2ⁿ inputs and counts its gates: a circuit with an unused gate counts that gate. Commit the script that found it: a | |
| 54 | +circuit copied from elsewhere passes the check, but the piece asks for your own search. | |
| 55 | + | |
| 56 | +## 2. A lower bound: `<id>.gt<s>.lrat` | |
| 57 | + | |
| 58 | +A proof that no circuit of at most s gates computes the function. Write the formula with the approved encoder and | |
| 59 | +refute it with a solver that writes LRAT: | |
| 60 | + | |
| 61 | +```bash | |
| 62 | +python3 scripts/circuit.py cnf mod3_4_2 5 f.cnf | |
| 63 | +cadical --lrat=true --binary=false f.cnf mod3_4_2.gt5.lrat | |
| 64 | +gzip -9 mod3_4_2.gt5.lrat # optional: the check reads .lrat.gz too | |
| 65 | +``` | |
| 66 | + | |
| 67 | +Hand in the proof only. The check builds the formula itself, never reading yours, so a proof of another formula fails. | |
| 68 | +It checks RUP steps (each added clause follows from its hints by unit propagation); a RAT step is refused. A circuit of | |
| 69 | +s + 1 gates beside the proof makes the value exact, and the check says `(exact)`. | |
| 70 | + | |
| 71 | +Proofs over 60 MB (MOD3_4^0 > 6 is 139 MB, SUM_4 > 8 is 2.5 GB with CaDiCaL 3.1.0) do not go in the route: put the | |
| 72 | +command, the solver's version, the proof's sha256 and its size in your notes and ask in the issue; a maintainer checks | |
| 73 | +it on a larger runner with `lrat-check` (drat-trim) or `cake_lpr` (a verified checker). | |
| 74 | + | |
| 75 | +## 3. A rebuild | |
| 76 | + | |
| 77 | +For V-1, V-2 and V-5: the repository and commit, the toolchain (Lean and Mathlib versions), the commands, the hardware, | |
| 78 | +the time, `#print axioms` (only `propext`, `Classical.choice`, `Quot.sound`), the comparator's verdict and the hashes of | |
| 79 | +the logs. A second agent reruns it; say how a difference in versions or kernels was handled. | |
| 80 | + | |
| 81 | +## 4. Research | |
| 82 | + | |
| 83 | +A pull request with a paper-style argument: which statement it proves, under which definitions, and what remains. It | |
| 84 | +counts once a maintainer and a second reader who knows the area accept it. | |
+13 −0 examples/first-circuits/README.md added View file
| @@ -0,0 +1,13 @@ | ||
| 1 | +--- | |
| 2 | +issue: 0 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | +# first-circuits | |
| 6 | + | |
| 7 | +An example route folder the `circuit` check passes: a full adder for `sum3` (5 gates) and a circuit for `mod3_3_0` | |
| 8 | +(3 gates, found by `scripts/circuit.py find mod3_3_0 3`), each with CaDiCaL's LRAT proof that one gate fewer cannot do | |
| 9 | +(`sum3.gt4.lrat`, `mod3_3_0.gt2.lrat`). Neither function is on the board; the board's functions are the pieces' work. | |
| 10 | + | |
| 11 | +## Next | |
| 12 | + | |
| 13 | +Take C-1 or C-2 from the board. | |
+6 −0 examples/first-circuits/mod3_3_0.ckt added View file
| @@ -0,0 +1,6 @@ | ||
| 1 | +3 3 1 | |
| 2 | +x1 x2 x3 | |
| 3 | +g1 x1 x2 0110 | |
| 4 | +g2 x1 x3 0110 | |
| 5 | +g3 g1 g2 1000 | |
| 6 | +g3 | |
+34 −0 examples/first-circuits/mod3_3_0.gt2.lrat added View file
| @@ -0,0 +1,34 @@ | ||
| 1 | +213 -1 0 9 198 195 206 207 208 209 212 70 100 142 86 132 50 170 174 192 10 194 13 179 0 | |
| 2 | +214 -2 0 25 199 195 206 207 208 209 212 70 86 103 174 132 50 142 145 164 23 166 27 151 0 | |
| 3 | +215 3 0 214 213 1 0 | |
| 4 | +216 -16 0 215 36 0 | |
| 5 | +217 -20 0 215 43 0 | |
| 6 | +218 -32 0 217 201 0 | |
| 7 | +219 33 0 218 195 0 | |
| 8 | +220 -24 0 219 205 0 | |
| 9 | +221 25 0 219 206 0 | |
| 10 | +222 26 0 219 207 0 | |
| 11 | +223 27 0 219 208 0 | |
| 12 | +224 28 0 219 209 0 | |
| 13 | +225 29 0 219 210 0 | |
| 14 | +226 30 0 219 211 0 | |
| 15 | +227 -31 0 219 212 0 | |
| 16 | +228 -4 0 221 70 0 | |
| 17 | +229 -5 0 222 86 0 | |
| 18 | +230 -7 0 224 132 0 | |
| 19 | +231 -8 0 224 217 153 0 | |
| 20 | +232 -9 0 224 217 181 0 | |
| 21 | +233 6 0 232 231 230 229 228 50 0 | |
| 22 | +234 17 0 233 221 100 0 | |
| 23 | +235 18 0 233 222 103 0 | |
| 24 | +236 19 0 233 223 106 0 | |
| 25 | +237 14 0 233 217 224 109 0 | |
| 26 | +238 23 0 233 227 237 122 0 | |
| 27 | +239 10 0 234 215 37 0 | |
| 28 | +240 13 0 234 221 233 101 0 | |
| 29 | +241 11 0 235 215 39 0 | |
| 30 | +242 12 0 236 215 41 0 | |
| 31 | +243 -15 0 238 227 233 124 0 | |
| 32 | +244 21 0 239 215 45 0 | |
| 33 | +245 22 0 241 215 47 0 | |
| 34 | +246 0 244 243 225 233 115 0 | |
+8 −0 examples/first-circuits/sum3.ckt added View file
| @@ -0,0 +1,8 @@ | ||
| 1 | +3 5 2 | |
| 2 | +x1 x2 x3 | |
| 3 | +a x1 x2 0110 | |
| 4 | +s a x3 0110 | |
| 5 | +b x1 x2 0001 | |
| 6 | +c a x3 0001 | |
| 7 | +t b c 0111 | |
| 8 | +s t | |
+587 −0 examples/first-circuits/sum3.gt4.lrat added View file
| @@ -0,0 +1,587 @@ | ||
| 1 | +1159 -34 -44 -46 -64 72 0 1034 1038 0 | |
| 2 | +1160 -22 -45 -46 75 0 660 662 0 | |
| 3 | +1161 -26 -45 -46 73 0 752 754 0 | |
| 4 | +1162 -29 -45 -46 72 0 833 835 0 | |
| 5 | +1163 -32 -56 -44 -46 72 0 922 926 0 | |
| 6 | +1164 -33 -44 -46 -64 72 0 978 982 0 | |
| 7 | +1165 -23 -45 -46 75 0 688 690 0 | |
| 8 | +1166 -27 -45 -46 73 0 780 782 0 | |
| 9 | +1167 -30 -45 -46 72 0 861 863 0 | |
| 10 | +1168 -57 -32 -44 -46 73 0 933 929 0 | |
| 11 | +1169 -45 -46 -81 -86 0 1157 1110 906 1156 1109 818 1108 335 1154 1107 712 1106 261 1105 245 1155 1153 1152 617 735 626 640 1159 1160 1161 1162 1164 1165 1166 1167 510 1163 303 373 924 275 345 461 1168 931 433 405 195 0 | |
| 12 | +1170 54 -32 44 -78 0 962 963 0 | |
| 13 | +1171 -15 49 -54 -81 0 1111 1107 1106 348 353 355 368 0 | |
| 14 | +1172 -16 57 -62 -81 0 1111 1107 1106 376 381 396 383 0 | |
| 15 | +1173 -12 -42 -43 68 0 289 291 0 | |
| 16 | +1174 -17 -42 -43 66 0 409 411 0 | |
| 17 | +1175 -50 -19 -43 -32 45 66 -74 0 937 481 0 | |
| 18 | +1176 -42 -43 15 16 18 13 -32 45 -81 -74 0 1108 335 1106 261 1105 245 1109 1107 242 1173 1174 195 1175 477 934 0 | |
| 19 | +1177 -19 42 57 -65 0 468 471 0 | |
| 20 | +1178 -49 19 41 15 16 18 13 -81 0 1108 335 1106 261 1105 245 279 406 195 0 | |
| 21 | +1179 -43 15 16 57 -32 45 -81 -74 0 1106 433 306 1108 335 261 1105 245 1176 243 1177 1178 278 405 195 0 | |
| 22 | +1180 15 57 -62 -54 -32 45 -81 -74 0 1172 1106 433 306 1108 335 261 1105 245 1111 1179 298 424 508 195 0 | |
| 23 | +1181 -15 -54 -81 0 1108 1105 345 356 1171 9 43 25 1 0 | |
| 24 | +1181 d 1171 0 | |
| 25 | +1182 -51 -48 -32 -46 -81 -86 0 1105 1152 926 373 303 9 1106 1153 1154 1169 1158 618 1170 965 1181 1180 933 405 278 1108 335 261 245 1111 1107 1155 43 947 1 440 23 27 195 508 1175 0 | |
| 26 | +1183 -2 51 -48 -54 0 23 29 34 7 0 | |
| 27 | +1184 -48 -32 -46 -81 -86 0 1153 1154 1169 1158 618 1170 965 1181 1180 933 9 1182 1183 1 40 48 37 7 0 | |
| 28 | +1184 d 1182 0 | |
| 29 | +1185 52 -32 44 -76 0 948 949 0 | |
| 30 | +1186 -3 -52 48 0 38 44 0 | |
| 31 | +1187 -1 51 -52 0 15 16 0 | |
| 32 | +1188 50 -32 44 -74 0 934 935 0 | |
| 33 | +1189 -2 -50 48 0 24 26 0 | |
| 34 | +1190 -32 -46 -81 -86 0 1169 618 1158 1156 1154 1153 1170 965 1181 1180 933 1184 1185 1186 1188 1189 1 11 12 0 | |
| 35 | +1190 d 1184 0 | |
| 36 | +1191 -30 44 -77 0 878 879 0 | |
| 37 | +1192 -22 44 -74 0 656 657 0 | |
| 38 | +1193 -23 44 -74 0 684 685 0 | |
| 39 | +1194 -26 44 -76 0 762 763 0 | |
| 40 | +1195 -27 44 -76 0 790 791 0 | |
| 41 | +1196 -29 44 -77 0 850 851 0 | |
| 42 | +1197 -33 45 66 -74 0 990 993 0 | |
| 43 | +1198 -46 -81 -86 0 1157 1110 906 1156 1109 818 1154 1107 712 1169 618 627 643 741 1190 1191 1192 1193 1194 1195 1196 1197 510 1046 1049 0 | |
| 44 | +1198 d 1190 0 | |
| 45 | +1199 -34 45 66 -74 0 1046 1049 0 | |
| 46 | +1200 -22 45 46 -76 0 663 665 0 | |
| 47 | +1201 -23 45 46 -76 0 691 693 0 | |
| 48 | +1202 -26 45 46 -74 0 755 757 0 | |
| 49 | +1203 -29 45 46 -74 0 839 841 0 | |
| 50 | +1204 -27 45 46 -74 0 783 785 0 | |
| 51 | +1205 45 32 -81 -86 0 1157 1198 629 1156 641 1154 736 1110 906 1109 818 1107 712 1197 1199 1200 1201 1202 1203 1204 510 867 869 0 | |
| 52 | +1206 35 2 -52 -50 0 12 44 1 0 | |
| 53 | +1207 -43 48 -53 -50 16 18 13 -61 -81 0 1105 345 275 1108 335 1106 261 245 1110 1107 502 411 195 0 | |
| 54 | +1208 -1 -53 -50 16 18 13 62 -61 58 -81 0 1108 335 1106 261 1105 245 1111 1107 9 18 275 345 21 1207 424 195 506 479 0 | |
| 55 | +1209 -3 -53 -50 18 13 59 -81 0 1108 384 335 1106 261 1105 245 1107 43 46 356 412 482 40 1178 195 283 0 | |
| 56 | +1210 -2 -52 16 57 -81 0 1106 433 306 1108 335 261 1105 245 25 30 278 405 468 35 195 1181 0 | |
| 57 | +1211 -3 -35 -50 18 13 59 -81 0 41 1209 7 47 0 | |
| 58 | +1212 -40 9 6 8 4 60 58 0 131 92 50 0 | |
| 59 | +1213 -5 58 -56 0 84 88 0 | |
| 60 | +1214 -7 60 -56 0 126 134 0 | |
| 61 | +1215 -6 -50 58 -56 0 100 101 108 0 | |
| 62 | +1216 -8 18 13 59 60 -56 -81 0 1108 384 335 1106 261 1105 245 1109 142 143 158 155 356 412 482 195 284 289 0 | |
| 63 | +1217 -50 8 7 18 13 59 62 -61 58 -56 -81 0 1213 1108 384 70 1215 50 188 180 1208 1209 172 1 1189 0 | |
| 64 | +1218 -9 50 -61 58 -56 0 178 188 189 170 68 172 0 | |
| 65 | +1219 -30 -45 -81 -86 0 1198 1108 335 1106 261 1105 245 1107 1158 1157 1156 1155 1154 1153 1152 861 869 876 878 883 1191 70 866 873 306 433 384 1213 1214 1216 1217 1218 50 100 101 105 278 405 468 195 348 353 0 | |
| 66 | +1220 57 50 -38 -6 16 13 18 -81 0 1108 335 1106 261 1105 245 1107 105 278 405 468 195 348 353 0 | |
| 67 | +1221 58 59 13 18 -48 7 8 9 -56 33 34 32 -81 -86 0 1108 384 1205 1155 688 9 70 1219 1157 1198 629 1156 641 1154 736 1110 906 1109 818 1107 712 1213 50 101 1215 656 1220 103 25 1 43 37 39 110 45 47 68 848 767 115 510 790 0 | |
| 68 | +1222 -49 22 27 23 -48 33 34 32 -81 -86 0 9 1205 1219 1157 1198 629 1156 641 1154 736 1110 906 1109 818 1107 712 25 1 37 39 45 47 848 767 510 0 | |
| 69 | +1223 50 -58 16 23 13 18 -48 7 8 9 4 33 34 32 -81 -86 0 1198 1154 785 1108 335 1106 261 1105 245 1107 656 106 50 86 1222 278 405 468 195 348 353 0 | |
| 70 | +1224 59 13 18 -48 7 8 9 -56 33 34 32 -81 -86 0 70 1205 1219 1157 1198 629 1156 641 1154 736 1110 906 1109 818 1107 712 1108 1155 1152 688 384 1221 785 1223 757 841 510 652 657 0 | |
| 71 | +1224 d 1221 0 | |
| 72 | +1225 -22 -50 -86 -48 0 1154 1152 652 657 0 | |
| 73 | +1226 -5 56 -58 0 85 87 0 | |
| 74 | +1227 -6 56 -50 -58 -48 0 102 107 0 | |
| 75 | +1228 57 14 19 15 12 16 13 10 -65 -38 -6 0 261 433 105 195 405 0 | |
| 76 | +1229 -6 -58 56 -44 82 -23 0 1097 106 107 1091 1227 1081 1105 1106 1108 245 1144 303 373 275 345 461 335 1228 1137 683 103 1153 1129 1120 0 | |
| 77 | +1230 48 86 84 80 82 0 1089 1081 1105 1144 1120 1130 1131 1132 1189 1187 1186 1 0 | |
| 78 | +1231 86 84 82 80 0 1230 9 1128 1120 1144 1105 1081 1090 1092 25 43 1 0 | |
| 79 | +1231 d 1230 0 | |
| 80 | +1232 -57 80 -44 82 -23 0 1137 683 1153 1231 0 | |
| 81 | +1233 -4 -58 57 0 73 72 0 | |
| 82 | +1234 -7 56 82 -23 0 1097 127 132 133 1140 1231 1155 1156 688 691 0 | |
| 83 | +1235 45 -76 -44 -23 0 618 1201 0 | |
| 84 | +1236 -59 38 -8 0 153 154 0 | |
| 85 | +1237 -60 38 -8 0 156 157 0 | |
| 86 | +1238 38 -8 80 -44 82 -23 0 1236 1237 1140 1231 1155 1156 688 1235 0 | |
| 87 | +1239 -8 -58 56 -44 82 -23 0 1097 1232 1238 144 1089 1081 1105 1106 1107 1108 245 303 373 275 345 461 261 433 335 195 405 401 148 409 151 0 | |
| 88 | +1240 49 -9 -58 57 56 82 0 1097 1090 1081 1105 1106 1107 1108 245 303 373 261 433 278 405 468 335 195 345 348 173 353 179 0 | |
| 89 | +1241 -48 2 -9 56 82 -23 0 1097 558 9 173 1 43 37 1092 181 45 1081 186 1140 1231 1155 1205 688 0 | |
| 90 | +1242 -58 56 -44 82 -23 0 1234 1097 1232 558 1226 1229 1233 1239 50 1240 25 176 1241 1089 1081 1105 1106 1108 1110 245 303 373 275 345 461 261 433 335 195 1178 412 421 182 188 1141 1231 1155 1205 688 0 | |
| 91 | +1242 d 1239 1229 0 | |
| 92 | +1243 -44 72 -23 0 1113 680 1097 1242 1138 684 1231 1154 0 | |
| 93 | +1244 -9 -84 82 0 1141 1138 1137 1136 1240 188 176 189 0 | |
| 94 | +1245 38 9 4 5 7 -60 -58 0 1237 50 106 107 0 | |
| 95 | +1246 -49 -38 9 4 5 7 -60 59 57 56 0 25 105 50 156 144 155 1186 1187 1 0 | |
| 96 | +1247 80 72 -23 0 1243 1193 1154 1113 1231 1136 1137 1138 1139 1140 1142 1234 1226 1233 1244 1245 1246 1090 1081 1105 1106 1108 1172 245 303 261 433 278 405 468 335 195 345 102 144 50 0 | |
| 97 | +1248 -15 -52 -68 64 -48 0 347 360 0 | |
| 98 | +1249 41 15 -53 18 16 19 12 13 -69 -68 -66 0 248 262 336 420 195 0 | |
| 99 | +1250 -6 61 60 58 -57 -56 86 0 1136 100 1215 103 9 1128 25 1120 1 1144 1145 1146 1148 1149 37 39 309 281 475 387 447 45 47 1248 1249 247 260 330 407 195 0 | |
| 100 | +1251 -41 15 19 18 16 13 67 65 64 -51 -48 0 247 260 330 414 277 195 0 | |
| 101 | +1252 52 18 13 -69 -68 67 -66 65 64 -51 -48 60 0 9 43 1 28 33 23 27 387 489 359 1251 282 1249 0 | |
| 102 | +1253 -8 61 60 -59 58 -56 86 0 1136 142 153 1128 1120 1144 1145 1146 1147 1148 1149 309 447 1252 1236 158 0 | |
| 103 | +1254 41 15 -50 19 18 16 13 17 -68 -66 0 248 262 282 336 195 0 | |
| 104 | +1255 15 -50 19 18 16 13 17 -68 -66 65 64 -49 0 1254 247 260 280 330 195 0 | |
| 105 | +1256 -50 19 -49 18 16 13 17 -68 -66 65 64 0 1255 351 354 0 | |
| 106 | +1256 d 1255 0 | |
| 107 | +1257 72 -23 0 1243 1193 1154 1247 1097 1098 1099 1100 1101 1102 70 1136 86 132 1250 1253 50 174 181 25 1129 175 43 1120 190 1 1144 1145 1146 1148 1149 419 10 309 387 447 496 13 1256 0 | |
| 108 | +1257 d 1243 0 | |
| 109 | +1258 57 -23 0 1257 678 1136 1152 1098 681 1231 1114 0 | |
| 110 | +1259 45 -78 -23 0 1257 678 679 618 699 701 0 | |
| 111 | +1260 -8 -60 65 64 17 -50 19 16 -66 18 13 -68 -56 0 142 156 1248 1254 247 260 330 277 195 0 | |
| 112 | +1261 -52 48 49 -50 0 1189 1186 1206 1 11 0 | |
| 113 | +1262 -1 49 -50 0 11 12 0 | |
| 114 | +1263 35 67 65 64 17 -50 19 16 -66 18 13 -68 0 1256 1262 26 1206 1 359 43 1254 247 260 330 195 288 285 0 | |
| 115 | +1264 -3 -35 49 -50 0 41 40 7 0 | |
| 116 | +1265 15 -48 65 64 17 -50 19 16 -66 18 13 -68 0 1254 247 260 330 277 195 0 | |
| 117 | +1266 -48 65 -68 64 17 -50 19 16 -66 18 13 0 1265 347 359 360 0 | |
| 118 | +1266 d 1265 0 | |
| 119 | +1267 65 64 17 -50 19 16 -66 18 13 -68 -23 0 1257 678 1136 1152 1256 1262 1266 1189 1261 1 1132 38 1120 1263 1147 0 | |
| 120 | +1268 -83 -50 0 1128 1129 1132 1261 0 | |
| 121 | +1269 -50 19 16 -66 18 13 -68 -23 0 1257 678 1136 1152 1268 1120 1144 1145 1149 1267 419 410 420 243 404 402 0 | |
| 122 | +1269 d 1267 0 | |
| 123 | +1270 -17 48 64 50 -66 0 408 402 0 | |
| 124 | +1271 -42 17 48 67 65 12 19 16 18 13 -68 0 251 265 332 195 349 359 360 25 1186 358 1 1187 0 | |
| 125 | +1272 48 -69 67 65 64 50 19 16 -66 18 13 -68 0 281 1270 1271 252 268 338 352 195 0 | |
| 126 | +1273 42 17 19 16 18 13 -85 50 0 1146 281 1149 1148 252 268 338 352 195 0 | |
| 127 | +1274 -15 -85 -48 0 1148 1144 347 359 360 0 | |
| 128 | +1275 17 19 16 18 13 15 -85 50 0 1146 281 1147 1145 1273 251 265 332 195 0 | |
| 129 | +1276 -3 52 -48 0 37 45 0 | |
| 130 | +1277 -2 -48 50 0 23 27 0 | |
| 131 | +1278 -17 -85 -52 -48 0 1148 1144 404 417 0 | |
| 132 | +1279 -23 60 76 -75 59 0 687 692 0 | |
| 133 | +1280 -9 61 -57 -53 -49 0 190 175 0 | |
| 134 | +1281 43 28 24 20 77 76 -75 -73 6 59 -19 -85 -52 51 -48 0 1147 1053 997 941 871 787 843 759 738 1145 892 636 1149 1148 1144 494 492 465 70 1214 1279 510 653 659 668 472 501 86 1280 50 158 143 0 | |
| 135 | +1282 -19 -85 -48 50 0 1150 1147 1146 1144 1126 1124 9 1277 1 42 48 1276 43 503 504 475 484 1099 106 1231 1113 1114 1116 1117 1118 620 706 804 1281 243 467 465 0 | |
| 136 | +1283 -43 -41 -16 65 0 379 243 377 0 | |
| 137 | +1284 -8 56 -60 -48 0 1237 144 0 | |
| 138 | +1285 -38 6 8 9 5 58 56 0 74 127 50 0 | |
| 139 | +1286 6 8 9 -57 58 56 -60 0 86 1285 71 133 50 0 | |
| 140 | +1287 -16 -85 -52 51 -48 0 1149 1148 1147 1146 1145 1144 1126 1124 387 388 1101 386 375 1231 1113 1114 1116 1118 620 706 804 678 776 1032 636 892 738 759 843 871 941 997 510 653 659 668 1283 382 392 380 377 1280 1284 1286 115 120 0 | |
| 141 | +1288 -43 -41 -18 64 0 243 432 430 0 | |
| 142 | +1289 -6 -56 -49 57 -48 0 101 105 0 | |
| 143 | +1290 -18 -85 -48 50 0 1149 1148 1147 1146 1145 1144 1126 1124 9 1277 1 1276 43 447 1102 448 1231 435 442 1113 1114 1116 681 864 1039 620 706 804 636 892 738 759 843 787 941 997 510 653 1288 438 445 436 430 70 1214 1218 1213 1289 50 158 143 0 | |
| 144 | +1291 -59 5 4 6 51 0 132 181 153 50 0 | |
| 145 | +1292 -85 -48 50 0 9 1277 1 1276 43 1144 1145 1146 1147 1150 1274 1278 1282 1287 1290 1275 309 310 106 308 305 1233 1226 1291 313 324 243 326 0 | |
| 146 | +1292 d 1290 1282 0 | |
| 147 | +1293 -7 -60 56 0 127 133 0 | |
| 148 | +1294 -60 5 4 6 56 -52 -48 0 1284 1293 50 186 173 0 | |
| 149 | +1295 -81 42 56 51 -48 0 1105 1106 1108 245 303 373 429 464 261 331 412 356 284 195 0 | |
| 150 | +1296 -84 56 -48 50 0 9 1277 1 1276 1138 1140 1226 106 1294 1137 73 72 0 | |
| 151 | +1297 -34 46 -70 -64 -78 72 56 0 1034 1075 1079 0 | |
| 152 | +1298 27 32 30 34 29 33 -81 22 -86 -48 0 1205 1157 1198 629 1156 641 1154 736 1110 906 1109 818 1107 712 1152 1257 1153 1222 510 752 0 | |
| 153 | +1299 -60 -4 34 33 -81 22 -86 -52 -48 0 1156 1198 848 1155 876 953 77 76 1298 789 791 0 | |
| 154 | +1300 60 15 17 33 -42 -81 22 -86 56 -52 -48 0 1152 1158 1105 1111 1198 1297 1108 335 1106 261 373 303 245 1109 1257 1156 493 790 444 195 278 1222 951 924 0 | |
| 155 | +1301 56 -48 50 0 1292 9 1277 1 43 1092 1276 1130 1097 1296 1120 1152 1153 1154 1156 1158 1113 656 1081 1105 1107 1108 1111 1198 1295 990 412 356 848 1297 1300 876 953 1299 1205 1298 780 86 1294 102 103 104 0 | |
| 156 | +1301 d 1296 0 | |
| 157 | +1302 -27 -76 72 -56 0 778 790 791 0 | |
| 158 | +1303 -34 -81 -48 50 0 1292 1130 1301 1136 1120 1198 1111 1108 1107 1106 1158 1155 1154 1153 70 9 1277 1 43 1046 1079 106 1075 1041 1055 86 1291 0 | |
| 159 | +1304 32 34 29 33 -81 27 22 -86 -48 0 1205 1298 1219 0 | |
| 160 | +1304 d 1298 0 | |
| 161 | +1305 -8 60 -56 -52 -48 0 158 143 0 | |
| 162 | +1306 -9 60 -56 -52 -48 0 187 172 0 | |
| 163 | +1307 -81 -48 50 0 1301 1292 1130 1136 1120 1152 1156 1302 1154 656 1158 70 9 1277 1 42 48 1276 1107 1198 990 848 1303 1304 953 934 962 1214 106 1305 1306 50 92 95 0 | |
| 164 | +1307 d 1303 0 | |
| 165 | +1308 -67 -44 24 33 34 26 29 20 21 25 30 32 27 22 23 75 0 817 901 510 0 | |
| 166 | +1309 -42 18 10 68 65 67 66 -48 50 0 9 1277 1 43 1092 1292 1130 1301 1136 1120 1152 1113 1307 1081 1101 1099 1276 265 332 353 381 317 409 285 493 195 0 | |
| 167 | +1310 -12 65 -64 -49 -48 0 276 280 0 | |
| 168 | +1311 -15 68 -64 -52 -48 0 346 361 0 | |
| 169 | +1312 -31 67 -44 -45 66 46 -48 50 0 9 1277 1 43 1092 1292 1130 1301 1136 1120 1152 1113 1307 1081 1100 70 1098 86 1291 1102 42 48 1103 121 118 103 1157 1156 1153 1276 889 894 904 906 245 447 1309 390 499 268 338 320 1310 1311 195 420 407 0 | |
| 170 | +1313 -17 -68 64 -52 -48 0 404 417 0 | |
| 171 | +1314 -10 -68 67 0 251 252 0 | |
| 172 | +1315 -14 -68 64 0 330 336 0 | |
| 173 | +1316 -18 -68 66 -80 0 1101 1099 443 437 0 | |
| 174 | +1317 -13 -65 64 -57 -56 0 307 305 0 | |
| 175 | +1318 -12 -65 64 -49 -48 0 277 279 0 | |
| 176 | +1319 -44 -45 66 33 34 46 -48 50 0 1292 1130 1301 1136 1120 1154 712 9 1277 1 43 1092 1152 1113 1307 1081 1100 70 1098 86 1291 1102 42 48 1103 121 118 1157 767 1276 1156 848 629 641 736 103 878 1099 934 1101 1302 656 1257 1155 1153 1308 1312 510 806 808 818 823 261 1248 387 1313 1314 1315 1316 1317 1318 195 492 500 0 | |
| 177 | +1320 -28 44 -76 0 818 819 0 | |
| 178 | +1321 44 24 33 34 26 29 20 21 25 30 32 27 22 23 -77 -76 0 1320 510 906 907 0 | |
| 179 | +1322 66 33 34 46 -48 50 0 9 1277 1 43 1092 1292 1130 1301 1136 1120 1152 1113 1307 1081 1100 70 1098 86 1291 1102 42 48 1103 121 118 1157 767 1276 1156 848 629 641 1154 736 878 1099 934 1302 656 1257 712 1321 1319 811 895 510 0 | |
| 180 | +1322 d 1319 0 | |
| 181 | +1323 -11 64 -66 0 260 262 0 | |
| 182 | +1324 -10 65 -66 0 247 248 0 | |
| 183 | +1325 -16 -67 64 -59 -56 0 385 375 0 | |
| 184 | +1326 33 34 46 -48 50 0 9 1277 1 43 1092 1292 1130 1301 1136 1120 1152 1113 1307 1081 1100 70 1098 86 1291 1102 42 48 1103 121 118 1157 767 1276 1156 848 629 641 1154 736 878 1099 934 1101 1302 656 1257 1155 1153 1322 281 309 813 897 475 510 713 721 708 711 719 716 335 412 356 1323 1324 1325 195 444 436 0 | |
| 185 | +1326 d 1322 0 | |
| 186 | +1327 -18 68 -66 -80 0 1101 1099 444 436 0 | |
| 187 | +1328 42 17 18 15 10 -65 19 12 -66 58 0 261 309 331 380 195 0 | |
| 188 | +1329 17 18 15 10 -65 19 12 69 -66 -80 0 261 1099 309 1102 1328 339 391 195 0 | |
| 189 | +1330 -33 46 -48 50 0 9 1277 1 43 1092 1292 1130 1301 1136 1120 1152 1113 1307 1081 1100 70 1098 86 1291 1102 42 48 1103 121 118 103 1099 1157 1156 1154 1153 1276 990 1009 1016 281 475 1007 980 987 245 1311 1327 1329 421 406 0 | |
| 190 | +1331 46 -48 50 0 9 1277 1 43 1092 1292 1130 1301 1136 1120 1152 1113 1307 1081 1103 1102 1101 1100 1099 1098 1158 1157 1156 1155 1154 1153 1330 1326 1046 1060 1067 1079 281 309 475 387 447 1077 1036 1043 1057 245 261 335 412 356 195 0 | |
| 191 | +1331 d 1330 1326 1312 0 | |
| 192 | +1332 -45 34 -64 33 26 29 -46 30 32 27 22 75 73 72 0 891 1257 617 735 626 640 708 806 510 0 | |
| 193 | +1333 -64 33 -66 26 29 -46 30 32 22 -77 -76 75 -74 73 72 -56 0 1302 1257 1038 1332 618 627 643 741 1321 713 0 | |
| 194 | +1334 45 34 24 33 26 29 -46 30 32 27 22 23 -77 -76 0 618 627 643 741 1321 0 | |
| 195 | +1335 -67 33 26 29 -46 30 32 -59 27 22 23 -77 -76 75 73 0 718 1059 1334 617 735 626 640 1308 0 | |
| 196 | +1336 -68 67 11 64 19 13 12 18 60 -52 -48 0 387 1315 1248 1314 195 1313 0 | |
| 197 | +1337 -45 34 28 67 64 33 26 29 30 32 27 22 75 73 72 0 1257 735 626 640 889 716 510 0 | |
| 198 | +1338 33 19 13 12 -66 18 26 -46 30 32 60 -59 22 -77 -76 75 -74 73 72 -56 -52 -48 0 835 1302 1257 1333 1323 1335 1336 818 1060 1337 719 1334 0 | |
| 199 | +1339 -33 -46 -78 72 54 -48 0 982 1018 1019 980 618 0 | |
| 200 | +1340 -66 18 -48 50 0 9 1277 1 42 48 1292 1130 1301 1136 1120 1152 1158 1331 1339 43 1092 1113 1307 1081 1098 1100 70 86 1291 103 1153 754 1157 1102 878 1154 1099 934 1101 656 1156 1155 1276 281 309 475 1338 0 | |
| 201 | +1341 -28 -45 -46 73 0 808 810 0 | |
| 202 | +1342 66 67 33 26 29 -46 30 32 58 27 22 -77 -76 75 -74 73 72 0 1257 712 1046 1334 1341 1332 1337 0 | |
| 203 | +1343 -45 34 64 67 33 26 29 -46 30 32 27 22 75 73 72 0 1337 1341 0 | |
| 204 | +1344 -48 50 0 1130 9 1277 1 43 42 1092 48 1292 1301 70 1136 1120 1152 1153 1154 1155 1156 1157 1158 1113 1257 656 1302 1307 1081 1098 1099 1100 1102 86 934 878 1291 103 1331 835 754 1339 1335 1342 1333 1340 447 1067 1343 1334 723 0 | |
| 205 | +1344 d 1340 1331 0 | |
| 206 | +1345 -80 50 0 1344 1097 1098 1099 1100 70 142 100 86 132 50 170 178 0 | |
| 207 | +1346 -84 14 -65 -64 82 48 0 261 345 275 245 1136 1137 1138 1139 1140 1244 303 373 461 433 1226 1233 1293 1245 195 1246 405 0 | |
| 208 | +1347 -17 -81 50 0 1107 1105 1344 409 401 0 | |
| 209 | +1348 -8 56 82 33 50 0 1344 1089 1345 1081 1105 1106 1108 335 1346 1231 1198 1154 461 275 303 245 261 373 345 1347 195 1107 429 437 785 1156 1109 444 876 1110 440 441 449 1152 1158 1111 1297 1157 629 641 736 906 818 712 656 1257 156 149 848 953 160 510 767 0 | |
| 210 | +1349 -9 -58 56 50 0 1344 177 171 0 | |
| 211 | +1350 32 27 30 34 22 -86 -81 73 33 48 0 1157 1198 629 1156 641 1154 736 1110 906 1109 818 1107 712 1152 1257 1155 1205 833 510 752 762 763 25 1186 761 1 1187 0 | |
| 212 | +1351 56 17 22 -86 -81 73 33 48 0 1198 1158 1156 1155 1154 1152 1108 335 1106 261 1105 345 275 245 1111 1109 1107 303 373 461 1297 195 433 440 429 444 437 876 785 1350 953 1185 929 943 25 43 1 14 17 0 | |
| 213 | +1352 -32 -60 -56 46 -76 72 48 0 953 1185 922 0 | |
| 214 | +1353 -60 30 -56 22 -86 -81 73 33 48 0 1152 1156 1302 100 142 70 1198 1158 1155 1111 1108 1106 1352 1350 1079 1075 1041 1055 86 132 1291 50 43 170 174 192 25 194 1 186 14 17 0 | |
| 215 | +1354 -32 -56 -74 72 50 0 1344 1188 922 0 | |
| 216 | +1355 73 33 50 0 1345 1344 1089 1114 1081 1105 1106 1108 1109 335 1346 1231 1152 1154 1156 656 1347 1351 1302 1354 1205 1219 1353 1350 1060 0 | |
| 217 | +1356 -34 -56 -73 50 0 1153 1130 1136 1120 1147 1145 1345 1231 1116 1344 100 142 70 1039 1053 86 132 1291 50 43 174 25 1 10 13 0 | |
| 218 | +1357 -1 -49 50 0 10 13 0 | |
| 219 | +1358 -18 -61 -57 -85 0 1149 1145 435 448 0 | |
| 220 | +1359 -3 27 30 32 -56 33 50 0 1355 1356 1153 1130 1136 1120 1144 1344 1146 1270 1145 892 1345 1231 1113 804 706 1116 738 748 650 620 1148 1119 1118 1117 1115 636 43 38 44 843 359 510 1258 1259 679 692 696 686 309 475 1358 1275 388 375 0 | |
| 221 | +1360 -45 -57 27 30 32 -56 33 50 0 1355 1356 1153 1130 1136 1120 1145 892 1345 1231 1113 1144 804 706 1116 738 1344 748 650 620 1149 1148 1147 1146 1118 1117 1115 636 840 510 679 692 696 686 1358 309 475 1272 388 375 0 | |
| 222 | +1361 45 27 30 32 34 31 28 24 25 -78 -72 21 33 48 0 748 650 620 832 1259 510 0 | |
| 223 | +1362 27 30 32 -56 33 50 0 1355 1356 1153 1130 1136 1120 1145 892 1345 1231 1113 1144 804 706 1116 738 1344 748 650 620 1119 1115 636 1361 840 1360 510 1258 0 | |
| 224 | +1362 d 1360 1359 0 | |
| 225 | +1363 -41 18 16 -69 -68 67 -66 65 64 -56 50 0 1344 305 463 1272 0 | |
| 226 | +1364 18 -58 16 -69 -68 67 -66 65 64 -56 50 0 1344 1363 310 476 1272 0 | |
| 227 | +1365 -45 16 -59 -27 -69 -68 67 -66 65 64 77 74 -56 50 0 784 794 1364 442 448 0 | |
| 228 | +1366 -27 -56 -73 50 0 1153 1130 1136 1120 1149 1148 1147 1146 1145 1144 1345 1231 1118 1117 1116 1115 1113 777 787 792 387 1365 779 618 781 0 | |
| 229 | +1367 -30 74 -72 -56 -73 0 862 864 865 870 618 868 0 | |
| 230 | +1368 -9 58 -56 50 0 1344 170 178 0 | |
| 231 | +1369 -16 -60 -68 64 -56 0 388 375 0 | |
| 232 | +1370 -56 33 50 0 1355 1153 1345 1344 1130 70 1136 142 100 1231 1120 1113 1115 1144 1145 1146 1147 1148 1149 1366 1367 1362 921 936 1213 309 475 1368 50 1214 1369 1272 432 445 0 | |
| 233 | +1370 d 1362 0 | |
| 234 | +1371 -7 33 50 0 1370 1355 1153 636 1345 1344 1130 132 1293 1140 1231 1120 1113 1115 1116 1119 1144 1145 620 650 748 678 920 776 738 871 706 804 1032 892 510 1361 840 0 | |
| 235 | +1372 30 31 64 33 50 0 1344 1089 1345 1105 1081 1116 738 1370 1113 1032 804 706 776 920 678 748 650 620 1119 1115 1355 636 1361 510 840 0 | |
| 236 | +1373 -13 -66 -58 -57 65 0 308 310 0 | |
| 237 | +1374 -19 67 -66 -58 -59 -57 65 50 0 476 484 470 43 25 1357 1 0 | |
| 238 | +1375 65 64 33 50 0 1344 1089 1345 1105 1081 1118 1116 1115 1113 1370 1355 1153 1130 892 1372 860 864 865 871 880 868 1137 1120 1146 1147 1148 1149 447 1373 1374 1272 382 379 0 | |
| 239 | +1376 -84 33 50 0 1371 1370 1137 1138 1139 1140 106 1226 1233 1349 50 1245 149 1246 146 0 | |
| 240 | +1377 33 50 0 1130 1355 1153 1376 1120 1144 1145 1375 0 | |
| 241 | +1377 d 1376 1375 1372 1371 1370 0 | |
| 242 | +1378 -85 50 0 1377 1345 1344 1124 1126 1144 1231 976 1113 0 | |
| 243 | +1379 -84 50 0 1136 1137 1138 1139 1140 106 1226 1233 1349 1293 50 1245 149 1246 146 0 | |
| 244 | +1380 50 0 1130 1344 1089 1345 1377 1378 1379 1120 1152 1154 1113 990 1081 1107 0 | |
| 245 | +1381 -79 0 1380 1091 0 | |
| 246 | +1382 -83 0 1380 1268 0 | |
| 247 | +1383 -15 34 -58 -86 0 1381 1380 1154 1152 1113 1099 1081 1198 939 841 785 1109 1105 1156 345 1311 1225 1304 1004 0 | |
| 248 | +1384 -33 59 57 -81 -86 0 1380 1108 384 1106 306 433 1198 1111 1110 1109 1105 1158 1157 1156 1152 1004 1011 1023 1210 1209 1019 1 978 9 0 | |
| 249 | +1385 -22 -45 -86 0 1380 1155 1154 1153 657 660 1225 655 43 1189 1262 1 0 | |
| 250 | +1386 59 57 -58 -86 0 1380 1381 1152 1113 1099 1081 1154 1198 939 1205 1385 841 757 869 785 1157 629 1156 641 736 1110 906 1109 818 1107 712 1111 1108 1257 1158 1155 1384 510 1055 1079 1075 0 | |
| 251 | +1387 -34 57 -81 -86 0 1198 1111 1106 1158 1153 1079 1041 1075 0 | |
| 252 | +1388 -33 -81 -86 0 1198 1111 1108 1106 1105 1158 1155 1153 1152 1023 1019 985 999 978 25 43 9 1 0 | |
| 253 | +1388 d 1384 0 | |
| 254 | +1389 49 7 4 -57 62 -58 0 1380 86 103 174 50 151 145 166 164 0 | |
| 255 | +1390 -58 -86 0 1381 1380 1152 1257 1113 1158 1157 1156 1155 1154 1153 1099 1081 1105 1107 1108 1109 1110 1111 1198 712 818 906 736 641 629 785 869 757 841 939 1205 1385 1388 510 1060 1297 1079 1387 1353 70 1075 86 9 1055 132 1389 25 1 43 41 1276 1291 49 115 124 0 | |
| 256 | +1390 d 1386 1383 0 | |
| 257 | +1391 -56 -59 -57 -54 -49 2 -81 -86 0 1380 132 86 1198 1158 673 1154 841 757 1157 629 1156 641 736 1110 906 1109 818 1390 1107 1046 712 1388 1152 1257 70 1302 1215 1291 43 1 9 20 142 19 50 1280 960 1205 510 1219 0 | |
| 258 | +1392 -51 56 -54 2 -81 -86 0 1198 1158 673 1388 1110 1108 1153 43 1 9 20 1351 19 413 421 0 | |
| 259 | +1393 -6 -57 -49 58 0 1380 108 104 0 | |
| 260 | +1394 -59 -57 -54 -49 2 -81 -86 0 1390 1393 86 132 1391 1392 153 181 50 1285 71 0 | |
| 261 | +1394 d 1391 0 | |
| 262 | +1395 -4 -57 58 0 71 74 0 | |
| 263 | +1396 13 51 59 15 -49 -81 0 1380 1108 482 412 384 440 335 1106 261 1105 245 1107 195 1178 283 0 | |
| 264 | +1397 -13 59 22 2 -81 -86 0 1380 1154 1198 841 757 1157 629 1156 641 736 1110 906 1109 818 1390 1107 1046 712 1388 1108 1105 1152 1257 1153 303 312 1302 317 876 510 1353 953 9 1276 1 0 | |
| 265 | +1398 -32 -51 59 -86 0 1380 1390 1155 1154 937 945 0 | |
| 266 | +1399 59 -54 -49 2 -81 -86 0 1380 1181 1198 1158 673 1154 841 757 1157 629 1156 641 736 1110 906 1109 818 1390 1107 1046 712 1388 1152 1257 1397 1396 1392 1302 1398 1205 510 1219 0 | |
| 267 | +1400 -51 -54 -49 2 -81 -86 0 1380 1399 1394 132 1390 43 1392 1 70 1215 1213 9 142 50 182 176 0 | |
| 268 | +1401 -56 51 -59 58 0 1380 70 1215 1213 1291 0 | |
| 269 | +1402 -54 -49 2 -81 -86 0 1380 1108 335 1106 261 1105 245 1388 1198 1107 1390 1158 1153 673 1181 1399 1394 433 306 1400 412 1401 373 1351 1295 479 195 1178 283 0 | |
| 270 | +1402 d 1400 1399 1394 0 | |
| 271 | +1403 -3 54 0 1380 41 49 0 | |
| 272 | +1404 51 -59 -1 -81 -86 0 9 1388 1108 1390 1156 1155 1153 412 1401 1187 1351 660 663 0 | |
| 273 | +1405 45 -81 -86 0 1380 1390 1154 1205 937 0 | |
| 274 | +1406 -32 -52 -59 53 -49 -81 -86 0 132 1405 1198 1390 1157 1156 1153 953 931 955 86 1393 1395 188 50 1236 158 0 | |
| 275 | +1407 -59 53 -1 -49 -81 -86 0 1380 1405 1219 1154 1198 841 757 1157 629 1156 641 736 1110 906 1109 818 1390 1107 1046 712 1388 1152 1257 1155 1404 14 17 665 1406 510 790 791 789 0 | |
| 276 | +1408 -38 6 5 56 -51 59 58 0 183 155 1285 0 | |
| 277 | +1409 -49 2 -81 -86 0 1380 1405 1385 1219 1154 1198 841 757 1157 629 1156 641 736 1110 906 1109 818 1390 1107 1046 712 1388 1105 1152 1257 1153 1402 1403 1 9 21 18 345 1407 1397 1396 1398 510 790 1302 780 1293 86 1393 1395 1408 1237 175 50 0 | |
| 278 | +1409 d 1402 0 | |
| 279 | +1410 2 -81 -86 0 1380 1405 1385 1219 1154 1198 841 757 1157 629 1156 641 736 1110 906 1109 818 1390 1107 1046 712 1388 1106 1152 1257 1153 1409 1262 405 1 1264 1206 37 1351 1302 1353 510 948 0 | |
| 280 | +1410 d 1409 1397 1392 0 | |
| 281 | +1411 60 5 6 -56 -32 -48 -76 0 70 1214 948 1305 1306 50 0 | |
| 282 | +1412 -32 -81 -86 0 1380 1106 1410 25 405 278 1189 1405 1108 335 261 1105 245 1198 1390 1158 1156 1153 1152 924 70 1215 1213 1411 953 156 31 949 34 929 962 433 306 468 1172 195 356 1398 132 50 180 172 0 | |
| 283 | +1412 d 1406 0 | |
| 284 | +1413 -81 -86 0 1380 1390 1152 1257 1157 1156 1154 1153 1107 1109 1110 1198 1388 712 1046 818 906 736 641 629 757 841 1405 1219 1385 1410 25 1189 1412 510 790 1302 780 1293 1284 86 1395 103 174 50 0 | |
| 285 | +1413 d 1412 1410 1407 1405 1404 0 | |
| 286 | +1414 24 31 46 -45 29 34 33 -2 32 -86 0 1381 1380 1155 640 626 1153 735 1156 1189 1152 1113 1413 1081 1101 1097 70 1390 1213 1100 132 1215 1098 25 174 50 1305 762 1225 1157 1102 878 1302 1257 1154 1321 510 1308 806 808 813 818 1317 261 278 405 1316 1315 1314 387 359 489 195 0 | |
| 287 | +1415 -12 64 -66 -48 0 1380 277 282 0 | |
| 288 | +1416 -19 69 -66 -53 -86 0 1381 1380 1152 1113 1413 1081 1102 1390 478 500 0 | |
| 289 | +1417 -15 64 -67 -48 -51 0 347 357 0 | |
| 290 | +1418 -24 46 -45 -2 -86 0 1381 1380 1390 1152 1113 1413 1081 1097 1100 1401 28 33 1189 1157 1156 1155 1154 1153 712 713 721 725 716 309 708 711 1327 335 1325 1323 1324 1415 1416 1417 195 410 404 0 | |
| 291 | +1419 -17 66 -64 -48 0 1380 411 403 0 | |
| 292 | +1420 -11 -69 67 0 265 268 0 | |
| 293 | +1421 -14 -69 65 0 332 338 0 | |
| 294 | +1422 -16 -64 67 -80 0 1100 1097 374 386 0 | |
| 295 | +1423 -13 65 -64 -80 0 1098 1097 304 308 0 | |
| 296 | +1424 -12 66 -64 -48 0 1380 276 283 0 | |
| 297 | +1425 -19 66 -69 -53 -86 0 1381 1380 1152 1113 1413 1081 1102 1390 479 499 0 | |
| 298 | +1426 46 -45 29 34 33 -2 32 -86 0 1381 1380 1155 640 626 1153 735 1156 1189 1152 1113 1413 1081 1101 1097 70 1390 1213 1100 132 1215 1098 25 174 50 1305 762 1401 28 33 1225 1157 1102 878 1302 1257 1154 1418 1321 1414 1308 889 894 906 897 245 447 1419 1420 1421 1422 1423 1424 1425 195 355 364 0 | |
| 299 | +1426 d 1414 0 | |
| 300 | +1427 -45 29 34 33 -2 32 -86 0 1381 1380 1156 1189 1152 1113 1413 1081 1101 1097 70 1390 1213 1100 132 1215 1098 25 174 50 1305 762 1225 1157 1102 878 1302 1257 1155 1153 1426 1332 1335 1343 0 | |
| 301 | +1427 d 1426 0 | |
| 302 | +1428 -46 29 34 33 -2 32 -86 0 1381 1380 1427 1156 1189 1152 1113 1413 1081 1101 1097 70 1390 1213 1100 132 1215 1098 25 174 50 1305 762 1225 1157 1102 878 1302 1257 1155 1154 1153 1335 1334 618 1342 713 0 | |
| 303 | +1429 -24 46 45 -77 0 725 723 0 | |
| 304 | +1430 -28 46 45 -74 0 811 813 0 | |
| 305 | +1431 29 34 33 -2 32 -86 0 1381 1380 1156 1189 1152 1113 1413 1081 1101 1097 70 1390 1213 1100 132 1215 1098 25 174 50 1305 762 1225 1157 1102 878 1302 1257 1158 1154 1427 627 643 741 1428 1429 1430 510 909 911 0 | |
| 306 | +1431 d 1428 1427 0 | |
| 307 | +1432 -29 -48 -86 0 1380 1154 1152 835 841 0 | |
| 308 | +1433 -45 19 15 -34 49 -86 0 1381 1152 1113 1413 1081 1102 1157 1067 447 1101 1156 1060 387 1390 1154 1046 309 1100 1098 1097 1155 1153 1036 1043 1057 245 261 278 405 335 195 0 | |
| 309 | +1434 -34 -2 -86 0 1381 1380 1189 1152 1113 1413 1081 1101 1097 70 1390 1213 1100 132 1215 1098 25 174 50 1305 1103 1158 1156 1060 1061 359 489 1433 1077 618 1079 0 | |
| 310 | +1435 -2 32 -86 0 1381 1380 1390 1152 1113 1413 1081 1097 1100 1401 132 1213 1215 70 1103 1102 1101 1098 1158 1157 1156 1155 1154 1153 25 1189 28 174 33 50 162 1305 165 1432 1434 1431 1004 1018 1339 1019 387 359 489 1016 995 985 1014 1316 980 1001 245 1419 1424 1423 335 195 259 263 0 | |
| 311 | +1435 d 1431 0 | |
| 312 | +1436 -10 66 -65 0 246 249 0 | |
| 313 | +1437 -12 66 -65 -49 0 1380 279 283 0 | |
| 314 | +1438 -45 64 19 17 18 -33 -49 -86 0 1381 1380 1390 1152 1113 1413 1081 1097 1100 1401 1098 1155 1154 1153 987 1001 261 989 1317 335 1325 995 1436 1437 195 350 355 0 | |
| 315 | +1439 -33 -1 -86 0 1381 1380 1152 1113 1413 1081 1097 70 1390 1213 1100 132 1215 9 142 50 1103 180 193 1098 1262 1102 1280 1158 1157 1154 1011 1018 1019 447 419 496 978 1438 1197 618 995 0 | |
| 316 | +1440 -34 46 45 -86 0 1381 1152 1113 1413 1081 1103 1158 1077 1079 0 | |
| 317 | +1441 46 45 32 -86 0 1380 1381 1158 1152 1113 1413 1081 1097 70 1390 1213 1100 132 1215 1401 43 1435 1 9 142 50 1103 180 193 671 769 1157 741 643 1156 627 1439 1098 1262 1102 1280 850 878 1302 1257 1154 1429 1430 1440 510 909 911 0 | |
| 318 | +1442 45 32 -86 0 1380 1381 1390 1152 1113 1413 1081 1097 1100 1401 43 1435 1 1439 1157 1098 1262 1102 70 1213 132 1215 9 142 50 1280 850 1103 180 193 878 1156 1302 1257 1158 1155 1154 1153 627 643 741 769 671 1441 1335 618 1342 713 1047 1321 0 | |
| 319 | +1442 d 1441 0 | |
| 320 | +1443 -46 32 -86 0 1380 1381 1442 1385 1390 1152 1113 1413 1081 1097 1100 1401 43 1435 1 1439 1157 1098 1262 1102 70 1213 132 1215 9 142 50 1280 850 878 1156 1302 1257 1155 1154 1153 1341 754 1335 1342 1057 1333 1337 0 | |
| 321 | +1444 -15 65 -66 -49 0 1380 351 354 0 | |
| 322 | +1445 -12 65 -66 -49 0 1380 280 282 0 | |
| 323 | +1446 -17 68 -66 -52 0 1380 410 418 0 | |
| 324 | +1447 -66 34 32 -86 0 1381 1380 1154 1443 757 1442 1385 1155 640 626 1153 735 1390 1152 1113 1413 1081 1097 1100 1401 43 1435 1 1439 1157 1098 1262 1102 70 1213 132 1215 9 142 50 1280 850 14 17 878 1156 1302 1101 1257 813 897 309 510 713 721 716 708 711 1327 335 1325 1323 1324 1444 1445 1446 195 478 493 0 | |
| 325 | +1448 -19 34 32 -86 0 1381 1380 1154 1447 712 1443 757 1442 1385 1155 640 626 1153 735 1390 1152 1113 1413 1081 1097 1100 1401 43 1435 1 1439 1157 1098 1262 1102 70 1213 132 1215 9 142 50 1280 850 14 17 878 1156 1302 1101 1257 479 496 492 906 818 510 0 | |
| 326 | +1449 28 15 34 32 -86 0 1380 1381 1448 1152 1257 1390 1113 1413 1081 1097 1100 1401 43 1435 1 1439 1156 1302 1157 1102 878 1442 1385 1153 735 1155 640 1154 1443 757 1098 1262 70 1213 132 1215 9 142 50 1280 850 626 1447 712 1321 1308 510 1337 894 906 245 1422 1423 275 1421 447 419 1420 195 0 | |
| 327 | +1450 15 34 32 -86 0 1381 1380 1448 1156 1157 1152 1257 1113 1413 1081 1097 1302 1155 1442 626 1153 735 640 1098 1390 1100 1401 43 1435 1 1262 1102 70 1213 132 1215 9 142 50 1280 850 1439 878 1154 1443 757 1385 1447 712 1321 14 17 1101 1449 806 808 818 261 1317 1436 1437 387 1315 1316 195 411 417 0 | |
| 328 | +1450 d 1449 0 | |
| 329 | +1451 34 32 -86 0 1381 1380 1154 1443 757 1442 1385 1155 640 626 1153 735 1390 1152 1113 1413 1081 1097 1100 1401 43 1435 1 1439 1157 1098 1262 1102 70 1213 132 1215 9 142 50 1280 850 878 1156 1302 1257 1447 712 1321 1308 1450 345 355 1337 350 808 0 | |
| 330 | +1451 d 1450 1448 1447 0 | |
| 331 | +1452 32 -86 0 1381 1380 1390 1152 1113 1413 1081 1097 1100 1401 43 132 1213 1215 70 1102 1101 1098 1157 1156 1155 1154 1153 1435 1 9 1262 142 50 1280 1442 1451 1046 1060 1067 1036 1043 1057 309 387 447 419 496 245 275 345 261 335 195 0 | |
| 332 | +1452 d 1451 1443 1442 1435 0 | |
| 333 | +1453 -86 0 1381 1380 1152 1156 1157 1113 1390 1413 1081 1097 1098 1100 1101 1102 70 1215 1213 132 1452 948 1411 955 1261 142 1280 50 0 | |
| 334 | +1454 35 -1 0 1380 12 0 | |
| 335 | +1454 d 12 13 0 | |
| 336 | +1455 35 -2 0 1380 26 0 | |
| 337 | +1455 d 26 27 0 | |
| 338 | +1456 37 -3 0 1380 41 0 | |
| 339 | +1456 d 41 42 106 0 | |
| 340 | +1457 -6 38 -58 0 1380 107 0 | |
| 341 | +1457 d 107 0 | |
| 342 | +1458 -6 -38 58 0 1380 108 0 | |
| 343 | +1458 d 108 149 150 0 | |
| 344 | +1459 40 -8 -58 0 1380 151 0 | |
| 345 | +1459 d 151 0 | |
| 346 | +1460 -40 -8 58 0 1380 152 0 | |
| 347 | +1460 d 152 177 178 0 | |
| 348 | +1461 40 -9 -58 0 1380 179 0 | |
| 349 | +1461 d 179 0 | |
| 350 | +1462 -40 -9 58 0 1380 180 0 | |
| 351 | +1462 d 180 281 0 | |
| 352 | +1463 41 -12 -66 0 1380 282 0 | |
| 353 | +1463 d 282 0 | |
| 354 | +1464 -12 -41 66 0 1380 283 0 | |
| 355 | +1464 d 283 352 353 0 | |
| 356 | +1465 43 -15 -66 0 1380 354 0 | |
| 357 | +1465 d 354 0 | |
| 358 | +1466 -43 -15 66 0 1380 355 0 | |
| 359 | +1466 d 355 408 409 0 | |
| 360 | +1467 43 -17 -66 0 1380 410 0 | |
| 361 | +1467 d 410 0 | |
| 362 | +1468 -43 -17 66 0 1380 411 0 | |
| 363 | +1468 d 411 475 476 477 0 | |
| 364 | +1469 -19 42 58 -66 0 1380 478 0 | |
| 365 | +1469 d 478 0 | |
| 366 | +1470 -19 -42 58 66 0 1380 479 0 | |
| 367 | +1470 d 479 0 | |
| 368 | +1471 43 -19 -58 -66 0 1380 480 0 | |
| 369 | +1471 d 480 0 | |
| 370 | +1472 -43 -19 -58 66 0 1380 481 0 | |
| 371 | +1472 d 481 656 0 | |
| 372 | +1473 -22 44 -74 0 1380 657 0 | |
| 373 | +1473 d 657 0 | |
| 374 | +1474 -22 -44 74 0 1380 658 0 | |
| 375 | +1474 d 658 755 756 0 | |
| 376 | +1475 -26 46 -74 0 1380 757 0 | |
| 377 | +1475 d 757 0 | |
| 378 | +1476 -26 74 -46 0 1380 758 0 | |
| 379 | +1476 d 758 839 840 0 | |
| 380 | +1477 -29 46 -74 0 1380 841 0 | |
| 381 | +1477 d 841 0 | |
| 382 | +1478 -29 -46 74 0 1380 842 0 | |
| 383 | +1478 d 842 934 935 936 0 | |
| 384 | +1479 -32 45 -74 58 0 1380 937 0 | |
| 385 | +1479 d 937 0 | |
| 386 | +1480 58 -45 74 -32 0 1380 938 0 | |
| 387 | +1480 d 938 0 | |
| 388 | +1481 -32 46 -74 -58 0 1380 939 0 | |
| 389 | +1481 d 939 0 | |
| 390 | +1482 -32 -46 -58 74 0 1380 940 0 | |
| 391 | +1482 d 940 990 991 992 0 | |
| 392 | +1483 45 66 -74 -33 0 1380 993 0 | |
| 393 | +1483 d 993 0 | |
| 394 | +1484 -33 -45 66 74 0 1380 994 0 | |
| 395 | +1484 d 994 0 | |
| 396 | +1485 -66 46 -74 -33 0 1380 995 0 | |
| 397 | +1485 d 995 0 | |
| 398 | +1486 -33 -66 74 -46 0 1380 996 0 | |
| 399 | +1486 d 996 0 | |
| 400 | +1487 81 82 80 0 1381 1081 0 | |
| 401 | +1487 d 1081 0 | |
| 402 | +1488 84 85 0 1382 1453 1120 0 | |
| 403 | +1488 d 1120 1169 0 | |
| 404 | +1489 -43 -19 -32 45 66 -74 0 1380 1175 0 | |
| 405 | +1489 d 1175 1188 0 | |
| 406 | +1490 -2 48 0 1380 1189 0 | |
| 407 | +1490 d 1189 1198 1205 0 | |
| 408 | +1491 35 2 -52 0 1380 1206 0 | |
| 409 | +1491 d 1206 0 | |
| 410 | +1492 -43 18 -61 48 16 13 -53 -81 0 1380 1207 0 | |
| 411 | +1492 d 1207 0 | |
| 412 | +1493 -61 62 -1 16 18 -53 13 58 -81 0 1380 1208 0 | |
| 413 | +1493 d 1208 0 | |
| 414 | +1494 -53 -3 -81 13 18 59 0 1380 1209 0 | |
| 415 | +1494 d 1209 0 | |
| 416 | +1495 -35 -3 -81 13 18 59 0 1380 1211 0 | |
| 417 | +1495 d 1211 0 | |
| 418 | +1496 -6 -56 58 0 1380 1215 0 | |
| 419 | +1496 d 1215 0 | |
| 420 | +1497 -61 62 13 7 -56 8 59 58 18 -81 0 1380 1217 0 | |
| 421 | +1497 d 1217 1218 1219 1220 1222 1223 1224 1225 0 | |
| 422 | +1498 -6 -48 56 -58 0 1380 1227 0 | |
| 423 | +1498 d 1227 0 | |
| 424 | +1499 82 84 80 0 1453 1231 0 | |
| 425 | +1499 d 1231 0 | |
| 426 | +1500 -6 61 60 58 -57 -56 0 1453 1250 0 | |
| 427 | +1500 d 1250 0 | |
| 428 | +1501 61 -8 60 -59 58 -56 0 1453 1253 0 | |
| 429 | +1501 d 1253 0 | |
| 430 | +1502 41 18 -66 -68 16 13 19 15 17 0 1380 1254 0 | |
| 431 | +1502 d 1254 0 | |
| 432 | +1503 -68 65 19 18 16 13 -49 17 -66 64 0 1380 1256 0 | |
| 433 | +1503 d 1256 0 | |
| 434 | +1504 64 65 19 18 17 -60 16 -8 -66 13 -68 -56 0 1380 1260 0 | |
| 435 | +1504 d 1260 0 | |
| 436 | +1505 48 49 -52 0 1380 1261 0 | |
| 437 | +1505 d 1261 0 | |
| 438 | +1506 -1 49 0 1380 1262 0 | |
| 439 | +1506 d 1262 0 | |
| 440 | +1507 35 17 65 64 67 19 16 -66 18 13 -68 0 1380 1263 0 | |
| 441 | +1507 d 1263 0 | |
| 442 | +1508 -35 -3 49 0 1380 1264 0 | |
| 443 | +1508 d 1264 0 | |
| 444 | +1509 65 16 -68 18 17 19 64 -48 -66 13 0 1380 1266 0 | |
| 445 | +1509 d 1266 0 | |
| 446 | +1510 19 16 -66 18 13 -68 -23 0 1380 1269 0 | |
| 447 | +1510 d 1269 1270 1272 1273 1275 1277 1292 1299 1300 1301 1304 1307 1309 1347 1348 1349 1350 1351 1353 1354 1355 1356 1357 1363 1364 1365 1366 1368 1374 1385 1387 1388 1398 1416 1418 1425 1432 1433 1434 1438 1439 1440 1504 1507 1509 1082 1083 1084 1088 1089 1090 1091 1092 1093 1094 1095 1121 1122 1123 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1151 1152 1153 1154 1155 1156 1157 1158 1268 1344 1345 1377 1378 1379 1390 1413 1452 0 | |
| 448 | +1511 -65 15 82 0 261 1145 1488 1136 1137 1138 1139 1140 1142 1244 1097 1226 1233 433 306 1293 1245 1487 1246 1105 1108 1172 468 278 405 245 335 195 0 | |
| 449 | +1512 15 -32 -76 0 1117 1511 1106 1487 1097 1098 1099 1100 1101 1102 70 1136 1496 1213 132 948 1501 1488 1411 50 1144 1146 1148 1149 1505 1280 1323 309 1324 1445 387 1315 447 419 496 195 0 | |
| 450 | +1513 65 -32 -76 0 1512 1117 1106 1487 1097 1099 1101 1136 1496 1213 948 1488 1411 1146 1505 1444 0 | |
| 451 | +1514 -32 -76 0 1117 1512 1513 1145 1488 1136 1137 1138 1140 1244 1097 1226 1233 1293 1245 1487 1105 345 1498 144 50 0 | |
| 452 | +1514 d 1513 1512 1411 0 | |
| 453 | +1515 -84 -15 82 0 1136 1137 1138 1140 1244 1097 1226 1233 1293 1245 1487 1105 345 1498 144 50 0 | |
| 454 | +1516 -15 82 0 1515 1488 1145 1146 1148 1274 1444 359 1505 0 | |
| 455 | +1516 d 1515 0 | |
| 456 | +1517 15 82 0 1511 1106 1487 1097 1098 1099 1100 1101 1102 70 1136 1496 1213 132 1501 1488 50 1144 1146 1148 1149 174 1280 309 387 447 419 496 1503 0 | |
| 457 | +1517 d 1511 0 | |
| 458 | +1518 82 0 1516 1517 0 | |
| 459 | +1519 -80 0 1518 1086 0 | |
| 460 | +1520 -81 0 1518 1087 0 | |
| 461 | +1521 -71 0 1518 1112 0 | |
| 462 | +1522 72 0 1518 1113 0 | |
| 463 | +1523 73 0 1518 1114 0 | |
| 464 | +1524 -74 0 1518 1115 0 | |
| 465 | +1525 75 0 1518 1116 0 | |
| 466 | +1526 -76 0 1518 1117 0 | |
| 467 | +1527 -77 0 1518 1118 0 | |
| 468 | +1528 78 0 1518 1119 0 | |
| 469 | +1529 -20 0 1522 620 0 | |
| 470 | +1530 -21 0 1523 636 0 | |
| 471 | +1531 -25 0 1525 738 0 | |
| 472 | +1532 -18 -59 -85 0 1149 1147 447 442 448 0 | |
| 473 | +1533 -17 -49 -85 0 1149 1145 419 407 420 0 | |
| 474 | +1534 -53 43 -19 -9 -57 -49 -69 0 1280 501 0 | |
| 475 | +1535 43 -19 -69 -9 -57 -49 0 1534 188 496 0 | |
| 476 | +1535 d 1534 0 | |
| 477 | +1536 -9 -57 58 -56 60 -49 -85 15 0 1146 309 1148 387 1533 1145 1445 25 1144 1315 1324 1323 1149 1147 1462 175 172 170 185 1186 1 1187 183 1532 195 488 1535 0 | |
| 478 | +1537 -57 58 -56 60 -49 -85 15 0 1213 1496 1214 70 1536 50 1460 147 0 | |
| 479 | +1537 d 1536 0 | |
| 480 | +1538 -8 -56 60 2 0 142 1305 9 1276 1 0 | |
| 481 | +1539 -61 38 -9 0 188 189 0 | |
| 482 | +1540 58 -56 60 -49 -85 15 0 25 1538 1214 70 1148 387 1533 1146 1145 1445 1144 1315 1324 1323 1149 309 1496 1213 1537 50 176 1539 447 195 1469 472 0 | |
| 483 | +1540 d 1537 0 | |
| 484 | +1541 -9 -58 -56 60 2 0 1461 187 185 170 9 1276 1 0 | |
| 485 | +1542 -40 -52 9 8 7 4 60 0 92 116 50 0 | |
| 486 | +1543 -6 -48 -58 -56 60 -49 -85 0 70 1214 25 1538 1541 9 1 1276 1542 39 47 1146 1145 1445 1144 1323 1149 1148 1147 1289 119 1373 447 1336 1471 474 0 | |
| 487 | +1544 -22 -48 0 1524 1522 651 1474 0 | |
| 488 | +1544 d 651 0 | |
| 489 | +1545 59 22 34 23 51 30 -85 0 1522 1523 1525 1529 1530 1531 759 1147 997 843 1145 892 1144 804 706 787 941 510 0 | |
| 490 | +1546 -19 62 57 -54 -49 -85 0 1150 1145 472 506 0 | |
| 491 | +1547 -13 -58 -56 -85 0 1146 1144 305 310 0 | |
| 492 | +1548 -48 -58 -56 60 -49 -85 0 1522 1524 1523 1547 25 1541 1538 1214 1367 70 1146 1145 1445 1144 1323 1148 1147 9 1 43 1403 1276 1542 1543 50 86 95 1258 1039 1544 1545 1546 1532 1336 0 | |
| 493 | +1548 d 1543 0 | |
| 494 | +1549 -18 -58 -56 -85 0 1146 1144 432 438 0 | |
| 495 | +1550 -56 60 -49 -85 15 0 1148 387 1533 1146 1145 1445 25 1144 1315 1324 1323 70 1214 1538 1540 1541 1547 1548 100 50 86 1549 195 489 472 492 0 | |
| 496 | +1550 d 1540 0 | |
| 497 | +1551 -19 56 60 -49 -85 0 25 1149 1148 1147 1146 1145 1144 489 492 1491 465 472 38 86 474 1 1471 1535 1187 1393 1395 486 132 50 1460 147 0 | |
| 498 | +1552 58 60 -49 -85 15 0 1550 1551 1148 387 1533 1146 1145 1445 1144 1315 1324 1323 309 195 430 436 0 | |
| 499 | +1553 42 60 -49 -85 15 0 1550 1551 1148 387 1533 1146 1145 1445 1144 1315 1324 1323 316 443 195 0 | |
| 500 | +1554 -8 57 -58 -49 0 1459 148 0 | |
| 501 | +1555 9 -52 -51 8 4 -59 5 60 0 132 1542 50 111 0 | |
| 502 | +1556 48 8 30 4 -59 -58 56 60 -85 0 1523 1528 1522 1529 1530 1531 1525 1526 1226 1144 1032 776 678 1145 892 804 706 920 650 748 976 1361 510 843 847 1555 1461 187 0 | |
| 503 | +1557 60 -49 -85 15 0 1523 1533 1146 1145 1445 25 1144 1148 1315 1324 1323 1147 387 1550 1551 1552 1226 1553 430 195 313 1373 1233 864 1554 1556 9 1498 1 1291 43 0 | |
| 504 | +1557 d 1553 1552 1550 0 | |
| 505 | +1558 -13 -60 -85 0 1148 1147 1146 309 310 318 315 243 313 0 | |
| 506 | +1559 -43 -42 -49 -85 15 0 1557 1558 1533 1146 1145 1445 1144 1148 1315 1324 1323 242 1283 1288 195 472 474 0 | |
| 507 | +1560 43 -58 -49 -85 15 0 1557 1558 1533 1146 1145 1445 1144 1148 1315 1324 1323 382 1471 438 195 0 | |
| 508 | +1561 -18 41 -69 0 447 448 0 | |
| 509 | +1562 -22 0 1522 650 1544 0 | |
| 510 | +1563 -29 -54 0 1524 1528 1478 855 0 | |
| 511 | +1564 59 -53 -58 57 -19 -49 -85 0 1523 1525 1522 1529 1530 1531 1562 1524 1528 864 1145 1039 1258 25 892 1144 804 706 787 1545 43 1 9 18 748 976 21 1546 1563 510 1482 967 0 | |
| 512 | +1565 -59 4 -58 -52 -19 -43 2 -85 0 1147 1144 488 1187 1 1186 467 1226 1498 1291 0 | |
| 513 | +1566 -43 42 -49 -85 15 0 1557 1558 1533 1146 1145 1445 25 1144 1148 1315 1324 1323 1149 243 388 1561 195 490 474 1469 1233 1565 1564 496 497 0 | |
| 514 | +1567 42 -49 -85 15 0 1557 1558 1533 1146 1145 1445 1144 1148 1315 1324 1323 1566 445 1560 1469 380 195 0 | |
| 515 | +1567 d 1566 0 | |
| 516 | +1568 -16 58 -42 -60 -49 -85 0 1522 1525 1562 1148 1147 1145 1144 388 375 386 377 678 1032 871 1545 86 1393 1408 1237 175 1286 0 | |
| 517 | +1569 -49 -85 15 0 1144 1148 1315 1145 1146 1324 1323 1149 25 1445 1533 1557 1558 1567 1559 445 1560 1568 195 494 472 1535 156 490 1393 1286 463 9 1276 1 0 | |
| 518 | +1569 d 1567 1560 1559 1557 0 | |
| 519 | +1570 -7 -62 58 0 131 137 0 | |
| 520 | +1571 -56 -41 8 52 58 -19 1 -70 64 0 70 463 1496 1213 1276 1 31 34 503 1570 50 1462 172 0 | |
| 521 | +1572 -60 58 -19 43 -42 49 -70 -68 65 64 0 1523 1529 1530 1531 1562 1522 836 983 1506 892 804 706 494 156 490 470 1258 1039 864 927 1571 776 465 510 748 0 | |
| 522 | +1573 58 -19 64 43 -42 49 -70 -68 65 0 1572 489 1505 465 1305 1306 70 1214 1496 1213 50 0 | |
| 523 | +1573 d 1572 0 | |
| 524 | +1574 -19 43 -42 49 -70 -68 -66 65 64 0 1471 1573 0 | |
| 525 | +1575 -56 60 8 58 49 0 70 1214 1496 1213 50 1462 172 1505 170 185 0 | |
| 526 | +1576 -12 -42 1 67 -66 64 0 285 1415 43 1490 1 0 | |
| 527 | +1577 -16 51 -85 0 1522 1525 1562 1148 1147 1144 387 388 375 386 678 1032 871 1545 0 | |
| 528 | +1578 -18 8 58 43 -42 49 -68 64 0 430 445 1575 0 | |
| 529 | +1579 8 58 43 -42 13 -85 15 0 1144 1145 1146 1148 1150 1569 1574 1467 1147 1506 1576 1315 1324 1323 1578 195 387 388 375 377 103 174 1286 0 | |
| 530 | +1580 -16 -8 -85 0 1148 1147 387 388 386 1577 1237 155 0 | |
| 531 | +1581 58 43 -42 13 -85 15 0 1144 1145 1146 1148 1150 1569 1574 1467 1147 1506 1576 1315 1324 1323 1149 1579 1460 1580 195 447 1358 161 146 159 0 | |
| 532 | +1581 d 1579 0 | |
| 533 | +1582 43 -42 13 -85 15 0 1144 1146 1147 1569 1506 1576 1148 1315 1145 1324 1323 1150 1467 1574 1581 382 438 195 0 | |
| 534 | +1582 d 1581 0 | |
| 535 | +1583 -17 -43 -42 64 0 402 404 0 | |
| 536 | +1584 -48 -19 -43 -42 64 0 465 467 0 | |
| 537 | +1585 -42 13 -85 15 0 1523 1529 1530 1531 1562 1522 1569 836 1145 983 1506 1144 1148 1315 1146 1324 892 804 706 1323 1147 1576 1582 242 1283 1288 1583 195 470 1258 1039 864 927 1584 748 463 510 776 0 | |
| 538 | +1585 d 1582 0 | |
| 539 | +1586 52 41 -19 -68 0 489 490 0 | |
| 540 | +1587 61 -19 -69 42 0 499 496 0 | |
| 541 | +1587 d 499 0 | |
| 542 | +1588 -32 -54 -62 -58 0 1524 1528 1482 967 0 | |
| 543 | +1589 -19 42 33 49 31 -70 -69 -68 67 -66 64 0 1522 1525 1529 1530 1531 1562 1523 1527 836 804 706 1469 1471 243 1586 1505 492 467 1498 678 776 1032 1226 1294 1233 77 76 488 759 1587 79 82 504 1588 510 865 880 0 | |
| 544 | +1590 16 41 13 -85 15 0 1523 1149 1561 1146 1463 1144 1147 1148 1150 1145 892 1569 983 1585 1589 1502 1249 419 0 | |
| 545 | +1591 41 13 -85 15 0 1148 1590 387 388 0 | |
| 546 | +1591 d 1590 0 | |
| 547 | +1592 -16 43 42 -66 0 380 382 0 | |
| 548 | +1593 -12 43 42 -70 0 298 296 0 | |
| 549 | +1594 13 -85 15 0 1523 1145 1569 983 1144 1148 1315 1146 1324 892 1323 1150 1149 1147 1585 1589 1591 243 1467 1592 1593 195 436 438 0 | |
| 550 | +1594 d 1591 1585 0 | |
| 551 | +1595 -40 61 -53 6 7 -48 5 4 56 0 173 162 50 0 | |
| 552 | +1596 -85 15 0 1529 1530 1531 1562 1522 1523 1527 1144 1145 1146 1147 1148 1149 706 804 892 1569 983 836 1594 309 1373 1558 1547 1258 1039 864 927 1233 316 776 1226 510 313 748 751 132 315 1498 766 322 1595 1461 1459 50 0 | |
| 553 | +1596 d 1594 0 | |
| 554 | +1597 -48 -84 0 1138 1137 1233 1136 1226 1140 1293 1498 1284 50 1461 173 0 | |
| 555 | +1598 -29 -84 0 1523 1527 1138 1137 1233 1136 1226 1140 1293 1141 1139 836 837 852 188 1245 1246 0 | |
| 556 | +1599 9 -84 0 1597 1490 1138 1137 1233 1136 1226 1140 1293 1141 1139 1245 1246 1506 1505 1 156 43 40 50 46 117 110 0 | |
| 557 | +1600 -84 0 1136 1138 1141 1597 1599 171 1461 188 189 68 0 | |
| 558 | +1601 85 0 1600 1488 0 | |
| 559 | +1602 -63 0 1601 1143 0 | |
| 560 | +1603 -64 0 1601 1144 0 | |
| 561 | +1604 -65 0 1601 1145 0 | |
| 562 | +1605 66 0 1601 1146 0 | |
| 563 | +1606 -67 0 1601 1147 0 | |
| 564 | +1607 68 0 1601 1148 0 | |
| 565 | +1608 69 0 1601 1149 0 | |
| 566 | +1609 70 0 1601 1150 0 | |
| 567 | +1610 15 0 1601 1596 0 | |
| 568 | +1611 -11 0 1603 1605 1323 0 | |
| 569 | +1612 -24 0 1603 1522 706 0 | |
| 570 | +1613 -28 0 1603 1522 804 0 | |
| 571 | +1614 -31 0 1604 1523 892 0 | |
| 572 | +1615 -10 0 1605 1604 1324 0 | |
| 573 | +1616 43 0 1605 1610 1465 0 | |
| 574 | +1617 -49 0 1605 1610 1604 1444 0 | |
| 575 | +1618 52 0 1607 1610 359 0 | |
| 576 | +1619 -14 0 1607 1603 1315 0 | |
| 577 | +1620 41 0 1607 1618 1610 360 0 | |
| 578 | +1621 -12 0 1610 215 0 | |
| 579 | +1622 -13 0 1610 221 0 | |
| 580 | +1623 -16 0 1610 231 0 | |
| 581 | +1624 -17 0 1610 232 0 | |
| 582 | +1625 -18 0 1610 233 0 | |
| 583 | +1626 -19 0 1610 234 0 | |
| 584 | +1627 -48 0 1610 1601 1274 0 | |
| 585 | +1628 42 0 1616 1620 243 0 | |
| 586 | +1629 -1 0 1617 1506 0 | |
| 587 | +1630 0 1628 1617 1610 1604 349 0 | |
+0 −0 poster.webp added View file
+70 −0 scripts/circuit.py added View file
| @@ -0,0 +1,70 @@ | ||
| 1 | +#!/usr/bin/env python3 | |
| 2 | +"""Find a small circuit with a SAT solver, or write the CNF whose refutation is a lower bound. | |
| 3 | + | |
| 4 | + python3 scripts/circuit.py cnf FUNCTION S OUT.cnf the approved encoding of "size(FUNCTION) <= S" (checks/circuits.py) | |
| 5 | + python3 scripts/circuit.py find FUNCTION S OUT.ckt solve it with PySAT (pip install python-sat) and write the circuit | |
| 6 | + | |
| 7 | +FUNCTION is an id: mod3_<n>_<r>, sum<n>, maj<n>, thr<k>_<n>. A lower bound "size(F) > S" is a proof that the CNF has | |
| 8 | +no model, which a solver writes as LRAT, for example CaDiCaL: cadical --lrat=true --binary=false F.cnf F.gtS.lrat | |
| 9 | +(gzip it if it is large: the check reads F.gtS.lrat.gz). The check regenerates the CNF itself, so hand in the proof | |
| 10 | +only. Finding is the hard direction here too: SLIM (Kulikov, Pechenev and Slezkin, 2022) report seconds for 6 gates and | |
| 11 | +days for 7 to 12; their local improvement (github.com/alexanderskulikov/circuit_improvement) goes further. | |
| 12 | +""" | |
| 13 | +import sys | |
| 14 | +import time | |
| 15 | +from pathlib import Path | |
| 16 | + | |
| 17 | +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "checks")) | |
| 18 | +from circuits import computes, dimacs, encode, function # noqa: E402 | |
| 19 | + | |
| 20 | + | |
| 21 | +def circuit(names, model, fid): | |
| 22 | + """The circuit a model describes, as .ckt text: gate i reads the pair its selector picks and computes the normal | |
| 23 | + function its three bits give; an output that must be negated has its gate's table flipped and every reader of | |
| 24 | + that gate rewired, so the circuit keeps its size.""" | |
| 25 | + true = {v for v in model if v > 0} | |
| 26 | + n, s = names["n"], names["s"] | |
| 27 | + node = [f"x{i + 1}" for i in range(n)] + [f"g{i + 1}" for i in range(s)] | |
| 28 | + gates = {} | |
| 29 | + for (i, j, k), v in names["sel"].items(): | |
| 30 | + if v in true: | |
| 31 | + bits = ["0"] + ["1" if names["fun"][(i, a, b)] in true else "0" for a, b in ((0, 1), (1, 0), (1, 1))] | |
| 32 | + gates[i] = [node[j], node[k], bits] | |
| 33 | + outs = sorted((h, i) for (h, i), v in names["out"].items() if v in true) | |
| 34 | + flip = {i for h, i in outs if names["neg"][h]} | |
| 35 | + if any(not names["neg"][h] and i in flip for h, i in outs): | |
| 36 | + raise SystemExit("an output and its negation share a gate; try again with S + 1") | |
| 37 | + for i in sorted(flip): | |
| 38 | + gates[i][2] = ["1" if b == "0" else "0" for b in gates[i][2]] | |
| 39 | + for g in gates.values(): # a reader sees the flipped node: index its table by the negated input | |
| 40 | + a, b = g[0] == node[i], g[1] == node[i] | |
| 41 | + if a or b: | |
| 42 | + tt = g[2] | |
| 43 | + g[2] = [tt[2 * (x ^ a) + (y ^ b)] for x in (0, 1) for y in (0, 1)] | |
| 44 | + lines = [f"{n} {s} {len(outs)}", " ".join(node[:n])] | |
| 45 | + lines += [f"{node[i]} {a} {b} {''.join(tt)}" for i, (a, b, tt) in sorted(gates.items())] | |
| 46 | + lines.append(" ".join(node[i] for h, i in outs)) | |
| 47 | + text = "\n".join(lines) + "\n" | |
| 48 | + assert computes(fid, text, "the circuit read back") == s | |
| 49 | + return text | |
| 50 | + | |
| 51 | + | |
| 52 | +def main(cmd, fid, s, out): | |
| 53 | + function(fid) | |
| 54 | + nv, clauses, names = encode(fid, int(s)) | |
| 55 | + if cmd == "cnf": | |
| 56 | + Path(out).write_text(dimacs(nv, clauses, f"{fid}: some circuit of at most {s} gates over B2")) | |
| 57 | + return print(f"{out}: {nv} variables, {len(clauses)} clauses") | |
| 58 | + from pysat.solvers import Solver | |
| 59 | + t = time.time() | |
| 60 | + with Solver(name="cadical195", bootstrap_with=clauses) as solver: | |
| 61 | + if not solver.solve(): | |
| 62 | + return print(f"no circuit of at most {s} gates computes {fid} ({time.time() - t:.1f} s): a lower bound, if a proof says so") | |
| 63 | + Path(out).write_text(circuit(names, solver.get_model(), fid)) | |
| 64 | + print(f"{out}: {fid} in {s} gates, found in {time.time() - t:.1f} s") | |
| 65 | + | |
| 66 | + | |
| 67 | +if __name__ == "__main__": | |
| 68 | + if len(sys.argv) != 5 or sys.argv[1] not in ("cnf", "find"): | |
| 69 | + sys.exit(__doc__) | |
| 70 | + main(*sys.argv[1:]) | |
+89 −0 scripts/find-vs-check.mjs added View file
| @@ -0,0 +1,89 @@ | ||
| 1 | +// docs/find-vs-check.svg: finding against checking, on Clay's own example (house a quarter of n students, no two on the | |
| 2 | +// list of pairs who may not share). For n = 20 to 140, fifteen random lists each (a planted dorm, each other pair listed | |
| 3 | +// with probability 20/n): the steps a plain search takes to find a dorm, median and middle half, and the pairs a checker | |
| 4 | +// reads to check one, k(k-1)/2. Log scale, so steady multiplication is a straight line. Its only words are numbers, so | |
| 5 | +// the README captions it. The search is the one the site's playground runs (the column’s first playground, pnp-dorm, replaced by pnp-circuit on 11-28), copied. | |
| 6 | +// node scripts/find-vs-check.mjs > docs/find-vs-check.svg (about 2.5 minutes) | |
| 7 | +// Clay's dorm problem (an independent set): n students, a list of pairs who may not share, house k with no such pair. | |
| 8 | +const Dorm = (function () { | |
| 9 | + function rng(seed) { var s = seed >>> 0; return function () { s = (s + 0x6d2b79f5) >>> 0; var t = s; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296 } } | |
| 10 | + // a hidden dorm of k students with no pair inside; every other pair is on the list with probability p | |
| 11 | + function planted(n, k, p, seed) { | |
| 12 | + var r = rng(seed), perm = [], i, j | |
| 13 | + for (i = 0; i < n; i++) perm.push(i) | |
| 14 | + for (i = n - 1; i > 0; i--) { j = Math.floor(r() * (i + 1)); var t = perm[i]; perm[i] = perm[j]; perm[j] = t } | |
| 15 | + var hid = new Uint8Array(n), edges = []; perm.slice(0, k).forEach(function (v) { hid[v] = 1 }) | |
| 16 | + for (var u = 0; u < n; u++) for (var v = u + 1; v < n; v++) if (!(hid[u] && hid[v]) && r() < p) edges.push([u, v]) | |
| 17 | + return { n: n, k: k, edges: edges } | |
| 18 | + } | |
| 19 | + // checking a proposed dorm: each pair of the chosen looked up in the list once | |
| 20 | + function check(inst, chosen) { | |
| 21 | + var bad = new Set(inst.edges.map(function (e) { return e[0] * inst.n + e[1] })), out = [], reads = 0 | |
| 22 | + for (var i = 0; i < chosen.length; i++) for (var j = i + 1; j < chosen.length; j++) { reads++; var u = Math.min(chosen[i], chosen[j]), v = Math.max(chosen[i], chosen[j]); if (bad.has(u * inst.n + v)) out.push([u, v]) } | |
| 23 | + return { ok: chosen.length >= inst.k && out.length === 0, conflicts: out, reads: reads } | |
| 24 | + } | |
| 25 | + // the plain search, as a generator a page can run a slice at a time: take the candidate with the most conflicts | |
| 26 | + // (then drop its conflicts) or leave it; give up a branch when the chosen and the candidates cannot reach k | |
| 27 | + function search(inst) { | |
| 28 | + var n = inst.n, k = inst.k, W = Math.ceil(n / 32), nb = [], i | |
| 29 | + for (i = 0; i < n; i++) nb.push(new Uint32Array(W)) | |
| 30 | + inst.edges.forEach(function (e) { nb[e[0]][e[1] >> 5] |= 1 << (e[1] & 31); nb[e[1]][e[0] >> 5] |= 1 << (e[0] & 31) }) | |
| 31 | + function pop(x) { x -= (x >>> 1) & 0x55555555; x = (x & 0x33333333) + ((x >>> 2) & 0x33333333); return (((x + (x >>> 4)) & 0x0f0f0f0f) * 0x01010101) >>> 24 } | |
| 32 | + function count(c) { var s = 0; for (var w = 0; w < W; w++) s += pop(c[w]); return s } | |
| 33 | + var res = { steps: 0, found: null }, chosen = [] | |
| 34 | + function* go(c, size) { | |
| 35 | + res.steps++ | |
| 36 | + if ((res.steps & 4095) === 0) yield res.steps | |
| 37 | + if (chosen.length >= k) { res.found = chosen.slice(); return } | |
| 38 | + if (chosen.length + size < k) return | |
| 39 | + var best = -1, bd = -1, w, q | |
| 40 | + for (w = 0; w < W; w++) { var x = c[w]; while (x) { var b = x & -x, v = (w << 5) + 31 - Math.clz32(b); x ^= b | |
| 41 | + var d = 0; for (q = 0; q < W; q++) d += pop(c[q] & nb[v][q]); if (d > bd) { bd = d; best = v } } } | |
| 42 | + if (bd === 0) { // no conflicts left among the candidates: take them all | |
| 43 | + var all = []; for (w = 0; w < W; w++) { var y = c[w]; while (y) { var bb = y & -y; y ^= bb; all.push((w << 5) + 31 - Math.clz32(bb)) } } | |
| 44 | + if (chosen.length + all.length >= k) res.found = chosen.concat(all).slice(0, k); return } | |
| 45 | + var take = new Uint32Array(W), leave = Uint32Array.from(c) | |
| 46 | + for (w = 0; w < W; w++) take[w] = c[w] & ~nb[best][w] | |
| 47 | + take[best >> 5] &= ~(1 << (best & 31)); leave[best >> 5] &= ~(1 << (best & 31)) | |
| 48 | + chosen.push(best); yield* go(take, count(take)); chosen.pop(); if (res.found) return | |
| 49 | + yield* go(leave, size - 1) | |
| 50 | + } | |
| 51 | + var all0 = new Uint32Array(W); for (i = 0; i < n; i++) all0[i >> 5] |= 1 << (i & 31) | |
| 52 | + var gen = go(all0, n) | |
| 53 | + return { res: res, step: function (until) { while (until()) { if (gen.next().done) return true } return false } } | |
| 54 | + } | |
| 55 | + function solve(inst) { var s = search(inst); s.step(function () { return true }); return s.res } | |
| 56 | + // the race's instances: k = n/4 as in Clay's example, conflicts with probability 20/n | |
| 57 | + function race(n, seed) { return planted(n, n / 4, Math.min(0.9, 20 / n), 1000 * n + seed) } | |
| 58 | + return { rng: rng, planted: planted, check: check, search: search, solve: solve, race: race } | |
| 59 | +})() | |
| 60 | + | |
| 61 | +const NS = [20, 28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 108, 116, 124, 132, 140], RUNS = 15 | |
| 62 | +const rows = NS.map(n => { | |
| 63 | + const st = [] | |
| 64 | + for (let s = 1; s <= RUNS; s++) { const inst = Dorm.race(n, 100 + s), r = Dorm.solve(inst); if (!r.found || !Dorm.check(inst, r.found).ok) throw Error(`n=${n}`); st.push(r.steps) } | |
| 65 | + st.sort((a, b) => a - b) | |
| 66 | + const q = f => st[Math.round(f * (RUNS - 1))], k = n / 4 | |
| 67 | + console.error(`n ${n}: median ${q(0.5)} steps (middle half ${q(0.25)}..${q(0.75)}); check ${k * (k - 1) / 2} pairs`) | |
| 68 | + return { n, lo: q(0.25), mid: q(0.5), hi: q(0.75), check: k * (k - 1) / 2 } | |
| 69 | +}) | |
| 70 | +const W = 720, H = 340, L = 56, R = W - 96, T = 12, B = H - 28, NMAX = 144, EMAX = Math.ceil(Math.log10(rows.at(-1).hi)) | |
| 71 | +const X = n => L + n / NMAX * (R - L), Y = v => B - Math.log10(v) / EMAX * (B - T), num = v => (Math.round(v * 10) / 10).toString() | |
| 72 | +const sup = n => String(n).replace(/[0-9]/g, d => '⁰¹²³⁴⁵⁶⁷⁸⁹'[d]) | |
| 73 | +const out = [`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${W} ${H}" width="${W}" height="${H}" font-family="system-ui, -apple-system, 'Segoe UI', sans-serif" font-size="12">`, | |
| 74 | + '<title>Steps to find a dorm against pairs read to check one</title>', | |
| 75 | + '<style>.bg{fill:#fff}.grid{stroke:#ebedf0}.axis{stroke:#dadce0}.t{fill:#5f6368}.find{stroke:#03586f}.findf{fill:#03586f}.band{fill:#03586f;fill-opacity:.14}.check{stroke:#188038}.checkf{fill:#188038}' + | |
| 76 | + '@media (prefers-color-scheme: dark){.bg{fill:#1f2023}.grid{stroke:#2e3033}.axis{stroke:#3c4043}.t{fill:#9aa0a6}.find{stroke:#6fb9c9}.findf{fill:#6fb9c9}.band{fill:#6fb9c9;fill-opacity:.18}.check{stroke:#81c995}.checkf{fill:#81c995}}</style>', | |
| 77 | + `<rect class="bg" width="${W}" height="${H}"/>`] | |
| 78 | +for (let e = 0; e <= EMAX; e++) { const y = Math.round(Y(10 ** e)) + 0.5; out.push(`<path class="grid" d="M${L} ${y}H${R}"/><text class="t" x="${L - 8}" y="${y + 4}" text-anchor="end">${e === 0 ? '1' : e === 1 ? '10' : '10' + sup(e)}</text>`) } | |
| 79 | +for (const n of [0, 20, 40, 60, 80, 100, 120, 140]) out.push(`<text class="t" x="${num(X(n))}" y="${B + 18}" text-anchor="middle">${n}</text>`) | |
| 80 | +out.push(`<path class="axis" d="M${L} ${B + 0.5}H${R}"/>`) | |
| 81 | +out.push(`<path class="band" d="M${rows.map(r => `${num(X(r.n))} ${num(Y(r.hi))}`).join('L')}L${rows.slice().reverse().map(r => `${num(X(r.n))} ${num(Y(r.lo))}`).join('L')}Z"/>`) | |
| 82 | +out.push(`<path class="find" fill="none" stroke-width="2" d="M${rows.map(r => `${num(X(r.n))} ${num(Y(r.mid))}`).join('L')}"/>`) | |
| 83 | +out.push(...rows.map(r => `<circle class="findf" cx="${num(X(r.n))}" cy="${num(Y(r.mid))}" r="2.6"/>`)) | |
| 84 | +out.push(`<path class="check" fill="none" stroke-width="2" d="M${rows.map(r => `${num(X(r.n))} ${num(Y(r.check))}`).join('L')}"/>`) | |
| 85 | +const last = rows.at(-1) | |
| 86 | +out.push(`<text class="findf" x="${num(X(last.n) + 8)}" y="${num(Y(last.mid) + 4)}" font-weight="600">${last.mid.toLocaleString('en-US')}</text>`) | |
| 87 | +out.push(`<text class="checkf" x="${num(X(last.n) + 8)}" y="${num(Y(last.check) + 4)}" font-weight="600">${last.check}</text>`) | |
| 88 | +out.push('</svg>') | |
| 89 | +console.log(out.join('\n')) | |