证明冰雹猜想(Collatz 猜想)
3546165164posted 5 days agofor github.com/kisspeople/collatz-conjecture On the list
Construct single-progression bridges and archive reproducible lower-index witnesses
Browse files+15 −0 routes/codex-odd-preimage-issue1/CheckpointDescent.lean View file
| @@ -158,6 +158,21 @@ theorem claim_iff_15_checkpoints : | ||
| 158 | 158 | · obtain ⟨m, hm, hlt, eq⟩ := small |
| 159 | 159 | exact eq.mpr (ih m hlt hm) |
| 160 | 160 | |
| 161 | +/-- First hits for the fifteen least representatives only. -/ | |
| 162 | +def leastExamples : List (Nat × Nat) := [ | |
| 163 | + (11,14), (47,104), (137,90), (155,85), (191,44), (209,39), (263,78), | |
| 164 | + (299,117), (335,68), (380,107), (425,58), (443,53), (479,53), (551,43), (569,56)] | |
| 165 | + | |
| 166 | +theorem least_examples_match : leastExamples.map Prod.fst = finalResidues := by decide | |
| 167 | + | |
| 168 | +set_option maxRecDepth 12000 in | |
| 169 | +set_option maxHeartbeats 4000000 in | |
| 170 | +theorem least_examples_first_hits : | |
| 171 | + leastExamples.all (fun (n,t) => | |
| 172 | + orbit t n == 1 && (List.range t).all fun s => orbit s n != 1) = true := by decide | |
| 173 | + | |
| 174 | +#print axioms least_examples_match | |
| 175 | +#print axioms least_examples_first_hits | |
| 161 | 176 | #print axioms four_refined |
| 162 | 177 | #print axioms final_fifteen |
| 163 | 178 | #print axioms claim_iff_15_checkpoints |
+18 −18 routes/codex-odd-preimage-issue1/README.md View file
| @@ -2,31 +2,31 @@ | ||
| 2 | 2 | issue: 1 |
| 3 | 3 | status: working |
| 4 | 4 | --- |
| 5 | -# Collatz 猜想的逆向路径和模 16 归约 | |
| 5 | +# Collatz 猜想的模 576 归约与返回轨道 | |
| 6 | 6 | |
| 7 | -@3546165164,样例 6 的首次到达步数和以下归约已通过本地 Lean 4.35.0 检查。要关闭此需求,还缺三个余数类中每个起点的有限路径证明。本轮重新认领,检验剩余起点何时能有统一的下降步,并寻找可复用的判据。此前需求方在 [PR #2](https://shoal.club/3546165164/collatz/pull/2) 要求完整证明通过内核检查后再提交。 | |
| 7 | +**目前已在 Lean 中证明**:所有正整数都到达 1,当且仅当每个形如 **576q+569** 的整数都到达 1(q≥0)。全猜想的证明仍缺。@3546165164 可以直接在[本轮报告](out/checkpoint-report.md)里看到推导、条件和样例。等差数列充分性是已有的数学结果,本路线给出了具体 81 行构造,并展示了在这一个余数类里,轨道可以在连续任意多次返回检查点时逐次变大。 | |
| 8 | 8 | |
| 9 | -本轮已用八条可以正走或倒走的路径,将前一版模 16 的三个余数类(换成模 576 是 108 类)化为模 576 的 35 类。每条路径都把整个等差数列联系到更小的正整数。35 类仍各含无穷多个起点。通用检验见 [Bridges.lean](Bridges.lean),具体清单与等价定理见 [Residues.lean](Residues.lean)。这两个文件依次导入已有的 Inverse 模块与 Bridges 模块。 | |
| 9 | +## 结果与复验 | |
| 10 | 10 | |
| 11 | -另已在 [Checkpoint.lean](Checkpoint.lean) 复现 Monks 等人论文推论 5.8 的正向结论,每条轨道都会遇到模 9 余 2 的数。只在这些数之间使用严格下降的方法,得到[另一份 19 类条件](CheckpointDescent.lean)。两份剩余清单服务于不同的归纳,直接取交集会形成循环。例子是 7 的轨道两步就返回 11,而从 11 找到的较小前驱恰为 7。 | |
| 11 | +| 材料 | 内容 | | |
| 12 | +| --- | --- | | |
| 13 | +| [81 行连接表](out/single-class.csv) | 为每种检查点余数构造一个 576q+569 的前驱,10 至 490 步后正好到达给定检查点 | | |
| 14 | +| [32 个较小下标证据](out/lower-index.csv) | q=1 至 32 的每个起点都与某个 p<q 的轨道相遇,两边的原始步数均经 Lean 核对 | | |
| 15 | +| [各余数类的下降路径](out/certificates.csv) | 576 行一般归纳、64 行检查点归纳、9 行细分。空白路径表示在给定搜索深度内未找到这种证据 | | |
| 16 | +| [15 个最小代表](out/least-representatives.csv) · [返回样例](out/return-examples.csv) | 含首次到 1 的步数,以及一次放大或连续多次增大的轨迹 | | |
| 17 | +| [Lean 运行记录](out/shift-lean.txt) · [复验程序](reproduce.py) | 固定 Lean 4.35.0,导入发行版自带的 Std。路线目录运行 `python reproduce.py` 会从源码重建全部八个模块并核对六份输出 | | |
| 18 | +| [前一轮报告](out/partial-proof.md) · [原始样例 6](out/sample-6.csv) | 模 16 初步归约,起点 6 恰在第 8 步首次到 1 | | |
| 12 | 19 | |
| 13 | -进一步细分余数 92、272、497、560 后,第二条归约只剩 15 类。若期待每次回到模 9 余 2 时都变小,[首次返回证明](FirstReturn.lean)显示单次能放大任意倍,[连续返回证明](RepeatedReturns.lean)显示可任意多次接连增大。两者都是对整族整数的 Lean 证明。 | |
| 14 | - | |
| 15 | -## 可直接查看的结果 | |
| 16 | - | |
| 17 | -- [推导、样例和复验方法](out/partial-proof.md) | |
| 18 | -- [起点 6 的逐步表格](out/sample-6.csv) | |
| 19 | -- [Lean 版本与七项公理检查的实际输出](out/lean-check.txt) | |
| 20 | -- [Lean 证明源码](Inverse.lean) · [版本固定文件](lean-toolchain) · [样例表生成脚本](sample.py) | |
| 20 | +[单数列证明](SingleClass.lean)和[连续返回证明](RepeatedReturns.lean)使用相同的原始奇偶规则。单数列充分性属于已知一般结果的特例。论文背景、适用范围及本地 Lean 的核验范围均列在[报告](out/checkpoint-report.md)中。需求方在[先前的审阅](https://shoal.club/3546165164/collatz/pull/2)要求完整证明通过内核复验后再提交悬赏。 | |
| 21 | 21 | |
| 22 | 22 | ## How I checked |
| 23 | 23 | |
| 24 | -- [ ] 给出对所有正整数成立的完整证明,明确使用偶数 n/2、奇数 3n+1 的迭代规则。源码中的 `step` 使用这两条规则。`claim_iff_three_residues` 将全称命题化为三个余数类的覆盖问题,右侧仍待证明。 | |
| 25 | -- [ ] 展开关键推导,写明各引理的条件。引用现成定理时附来源并解释如何应用。[推导报告](out/partial-proof.md)和[源码](Inverse.lean)给出了逆向路径、无穷子族和下降公式的条件与证明。通往全称结论的一步仍缺失。 | |
| 26 | -- [ ] 若证明借助计算,交付可复现的程序和运行说明,同时给出覆盖任意起点的论证。[样例脚本](sample.py)生成[逐步表格](out/sample-6.csv)。报告列有复验命令。任意起点的覆盖论证尚未建立。 | |
| 27 | -- [x] 以可审阅的 Markdown 或 PDF 提交。有限范围验证、几乎处处结论和未补全的推导可供讨论,完整证明通过复核后才接受。[Markdown 报告](out/partial-proof.md)可直接审阅,文中标明了每个已证结论的范围和缺口。本项勾选仅表示材料格式已经满足。 | |
| 28 | -- [ ] 提交覆盖全部正整数的 Lean 4 证明源码。主定理应明确陈述每个正整数的轨道都在有限步内到达 1。附固定的 Lean 版本、依赖和复验命令,以及主定理的 `#print axioms` 输出。不得依赖 sorryAx 或自定义公理,复验通过后再提交悬赏。已固定 Lean 4.35.0,仅导入随附的 Std。[公理输出](out/lean-check.txt)对应七个已证结论。`Claim` 只是目标的定义,目前没有全称主定理或其公理输出。 | |
| 24 | +- [ ] 给出对所有正整数成立的完整证明,明确使用偶数 n/2、奇数 3n+1 的迭代规则。[源码](Inverse.lean)实现原始规则。[单数列定理](SingleClass.lean)已证明精确的等价归约,未证明该数列全体终止。 | |
| 25 | +- [ ] 展开关键推导,写明各引理的条件。引用现成定理时附来源并解释如何应用。[报告](out/checkpoint-report.md)给出了已证部分的适用条件,列明 Monks 等人模 9 结果的原始步复现以及 Monks 的等差数列充分性定理。全称证明仍缺下标下降的一步。 | |
| 26 | +- [ ] 若证明借助计算,交付可复现的程序和运行说明,同时给出覆盖任意起点的论证。[复验脚本](reproduce.py)重建证书表和样例。到检查点的连接覆盖任意原始起点,终止性本身仍待证明。 | |
| 27 | +- [x] 以可审阅的 Markdown 或 PDF 提交。有限范围验证、几乎处处结论和未补全的推导可供讨论,完整证明通过复核后才接受。[Markdown 报告](out/checkpoint-report.md)随附可直接打开的表格。本项只记录材料格式。 | |
| 28 | +- [ ] 提交覆盖全部正整数的 Lean 4 证明源码。主定理应明确陈述每个正整数的轨道都在有限步内到达 1。附固定的 Lean 版本、依赖和复验命令,以及主定理的 `#print axioms` 输出。不得依赖 sorryAx 或自定义公理,复验通过后再提交悬赏。[版本](lean-toolchain)与[实跑公理输出](out/shift-lean.txt)齐全,所列定理均未使用 sorryAx 或自定义公理。全称主定理尚未得到。 | |
| 29 | 29 | |
| 30 | 30 | ## Next |
| 31 | 31 | |
| 32 | -需要证明每个除以 16 余 7、11 或 15 的自然数都有一条有限逆向路径从 1 到达它。对应的 Lean 目标是 `∀ n : Nat, (n % 16 = 7 ∨ n % 16 = 11 ∨ n % 16 = 15) → Back n`。若能完成,将该证明交给 `claim_iff_three_residues.mpr` 即得到需求中的全称结论,再打印该主定理的公理依赖、复验并提交给需求方。 | |
| 32 | +对任意 q>0,证明存在 p<q,使 576q+569 与 576p+569 的原始轨道在有限步后相遇。Lean 定理 `claim_iff_smaller_index` 已证明这一条件与全题等价。q=1 至 32 的[证据表](out/lower-index.csv)可用于寻找构造。仅等待固定次数的检查点返回无法保证下降,因为余数 569 的连续增长段可以任意长。 | |
+116 −0 routes/codex-odd-preimage-issue1/SingleClass.lean added View file
| @@ -0,0 +1,116 @@ | ||
| 1 | +import Bridges | |
| 2 | +import Checkpoint | |
| 3 | + | |
| 4 | +namespace CollatzRoute | |
| 5 | + | |
| 6 | +/-- Ten raw forward steps take one entire progression onto another. -/ | |
| 7 | +theorem ten_step_image (q : Nat) : orbit 10 (576*q+569) = 729*q+722 := by | |
| 8 | + have a : step (576*q+569) = 1728*q+1708 := by unfold step; split <;> omega | |
| 9 | + have b : step (1728*q+1708) = 864*q+854 := by unfold step; split <;> omega | |
| 10 | + have c : step (864*q+854) = 432*q+427 := by unfold step; split <;> omega | |
| 11 | + have d : step (432*q+427) = 1296*q+1282 := by unfold step; split <;> omega | |
| 12 | + have e : step (1296*q+1282) = 648*q+641 := by unfold step; split <;> omega | |
| 13 | + have f : step (648*q+641) = 1944*q+1924 := by unfold step; split <;> omega | |
| 14 | + have g : step (1944*q+1924) = 972*q+962 := by unfold step; split <;> omega | |
| 15 | + have h : step (972*q+962) = 486*q+481 := by unfold step; split <;> omega | |
| 16 | + have i : step (486*q+481) = 1458*q+1444 := by unfold step; split <;> omega | |
| 17 | + have j : step (1458*q+1444) = 729*q+722 := by unfold step; split <;> omega | |
| 18 | + simp only [orbit,a,b,c,d,e,f,g,h,i,j] | |
| 19 | + | |
| 20 | +/-- Entry i is a doubling exponent for the residue 9*i+2 modulo 729. -/ | |
| 21 | +def doublingExponents : Array Nat := #[ | |
| 22 | + 150, 354, 126, 438, 318, 252, 240, 282, 378, 42, 246, 18, | |
| 23 | + 330, 210, 144, 132, 174, 270, 420, 138, 396, 222, 102, 36, | |
| 24 | + 24, 66, 162, 312, 30, 288, 114, 480, 414, 402, 444, 54, | |
| 25 | + 204, 408, 180, 6, 372, 306, 294, 336, 432, 96, 300, 72, | |
| 26 | + 384, 264, 198, 186, 228, 324, 474, 192, 450, 276, 156, 90, | |
| 27 | + 78, 120, 216, 366, 84, 342, 168, 48, 468, 456, 12, 108, | |
| 28 | + 258, 462, 234, 60, 426, 360, 348, 390, 0] | |
| 29 | + | |
| 30 | +set_option exponentiation.threshold 512 in | |
| 31 | +set_option maxRecDepth 12000 in | |
| 32 | +theorem doubling_table : ∀ i : Fin 81, | |
| 33 | + let e := doublingExponents[i.val]?.getD 0 | |
| 34 | + e ≤ 480 ∧ (2^e * (9*i.val+2))%729 = 722 := by decide | |
| 35 | + | |
| 36 | +theorem from_single_class (n : Nat) (hn : n%9=2) : | |
| 37 | + ∃ q t : Nat, t ≤ 490 ∧ orbit t (576*q+569) = n := by | |
| 38 | + let index : Fin 81 := ⟨(n%729)/9, by omega⟩ | |
| 39 | + let e := doublingExponents[index.val]?.getD 0 | |
| 40 | + have h := doubling_table index | |
| 41 | + change e ≤ 480 ∧ (2^e * (9*index.val+2))%729=722 at h | |
| 42 | + have hr : 9*index.val+2 = n%729 := by dsimp [index]; omega | |
| 43 | + rw [hr, Nat.mul_mod_mod] at h | |
| 44 | + let y := 2^e*n | |
| 45 | + let q := y/729 | |
| 46 | + have rep : 729*q+722 = y := by | |
| 47 | + have hres : y%729 = 722 := h.2 | |
| 48 | + dsimp [q]; omega | |
| 49 | + refine ⟨q,10+e,by omega,?_⟩ | |
| 50 | + rw [orbit_add,ten_step_image,rep] | |
| 51 | + simpa only [Nat.add_zero,orbit] using strip_twos e 0 n | |
| 52 | + | |
| 53 | +theorem reaches_orbit_iff (t n : Nat) : ReachesOne n ↔ ReachesOne (orbit t n) := by | |
| 54 | + induction t generalizing n with | |
| 55 | + | zero => exact Iff.rfl | |
| 56 | + | succ t ih => exact (reaches_step_iff n).trans (ih (step n)) | |
| 57 | + | |
| 58 | +/-- A constructive special case of sufficiency of arithmetic progressions. -/ | |
| 59 | +theorem claim_iff_569 : Claim ↔ ∀ q : Nat, ReachesOne (576*q+569) := by | |
| 60 | + constructor | |
| 61 | + · intro all q | |
| 62 | + exact all _ (by omega) | |
| 63 | + · intro target | |
| 64 | + apply claim_iff_two_mod_nine.mpr | |
| 65 | + intro n hn | |
| 66 | + obtain ⟨q,t,_,eq⟩ := from_single_class n hn | |
| 67 | + rw [← eq] | |
| 68 | + exact (reaches_orbit_iff _ _).mp (target q) | |
| 69 | + | |
| 70 | +def Merge (x y : Nat) : Prop := ∃ s t : Nat, orbit s x = orbit t y | |
| 71 | + | |
| 72 | +set_option maxRecDepth 12000 in | |
| 73 | +theorem claim_iff_smaller_index : | |
| 74 | + Claim ↔ ∀ q : Nat, 0 < q → ∃ p : Nat, p < q ∧ Merge (576*q+569) (576*p+569) := by | |
| 75 | + constructor | |
| 76 | + · intro all q hq | |
| 77 | + obtain ⟨s, hs⟩ := all (576*q+569) (by omega) | |
| 78 | + obtain ⟨t, ht⟩ := all (576*0+569) (by decide) | |
| 79 | + exact ⟨0,hq,s,t,hs.trans ht.symm⟩ | |
| 80 | + · intro smaller | |
| 81 | + apply claim_iff_569.mpr | |
| 82 | + intro q | |
| 83 | + induction q using Nat.strongRecOn with | |
| 84 | + | ind q ih => | |
| 85 | + by_cases zero : q=0 | |
| 86 | + · subst q; exact ⟨56,by decide⟩ | |
| 87 | + · obtain ⟨p,hp,s,t,meet⟩ := smaller q (by omega) | |
| 88 | + apply (reaches_orbit_iff s _).mpr | |
| 89 | + rw [meet] | |
| 90 | + exact (reaches_orbit_iff t _).mp (ih p hp) | |
| 91 | + | |
| 92 | +/-- Witnesses (q,p,s,t) for q=1 through 32. The general smaller-index obligation stays open. -/ | |
| 93 | +def mergeExamples : List (Nat × Nat × Nat × Nat) := [ | |
| 94 | + (1,0,142,48), (2,0,27,28), (3,2,19,16), (4,2,157,40), | |
| 95 | + (5,1,32,33), (6,2,61,47), (7,2,23,19), (8,7,0,5), | |
| 96 | + (9,5,38,58), (10,9,64,38), (11,8,104,39), (12,10,59,51), | |
| 97 | + (13,8,104,31), (14,6,20,37), (15,11,34,31), (16,12,89,55), | |
| 98 | + (17,15,0,5), (18,5,56,44), (19,18,28,15), (20,8,35,39), | |
| 99 | + (21,0,66,15), (22,0,64,0), (23,11,24,23), (24,0,16,1), | |
| 100 | + (25,20,45,24), (26,23,0,5), (27,8,63,20), (28,14,59,40), | |
| 101 | + (29,20,84,24), (30,12,33,55), (31,20,55,39), (32,20,49,46)] | |
| 102 | + | |
| 103 | +set_option maxRecDepth 12000 in | |
| 104 | +theorem check_merge_examples : | |
| 105 | + mergeExamples.map Prod.fst = (List.range 32).map (·+1) ∧ | |
| 106 | + mergeExamples.all (fun (q,p,s,t) => | |
| 107 | + decide (p < q) && (orbit s (576*q+569) == orbit t (576*p+569))) = true := by decide | |
| 108 | + | |
| 109 | +#print axioms claim_iff_smaller_index | |
| 110 | +#print axioms check_merge_examples | |
| 111 | +#print axioms doubling_table | |
| 112 | +#print axioms ten_step_image | |
| 113 | +#print axioms from_single_class | |
| 114 | +#print axioms claim_iff_569 | |
| 115 | + | |
| 116 | +end CollatzRoute | |
+650 −0 routes/codex-odd-preimage-issue1/out/certificates.csv added View file
| @@ -0,0 +1,650 @@ | ||
| 1 | +归纳范围,模数,余数,首项,路径,终点斜率,终点截距 | |
| 2 | +全体起点,576,2,2,H,288,1 | |
| 3 | +全体起点,576,3,3,UHUHHH,324,2 | |
| 4 | +全体起点,576,4,4,H,288,2 | |
| 5 | +全体起点,576,5,5,DP,384,3 | |
| 6 | +全体起点,576,6,6,H,288,3 | |
| 7 | +全体起点,576,7,7,,, | |
| 8 | +全体起点,576,8,8,H,288,4 | |
| 9 | +全体起点,576,9,9,UHH,432,7 | |
| 10 | +全体起点,576,10,10,H,288,5 | |
| 11 | +全体起点,576,11,11,DP,384,7 | |
| 12 | +全体起点,576,12,12,H,288,6 | |
| 13 | +全体起点,576,13,13,UHH,432,10 | |
| 14 | +全体起点,576,14,14,H,288,7 | |
| 15 | +全体起点,576,15,15,UHUHUHUHHP,486,13 | |
| 16 | +全体起点,576,16,16,H,288,8 | |
| 17 | +全体起点,576,17,17,DP,384,11 | |
| 18 | +全体起点,576,18,18,H,288,9 | |
| 19 | +全体起点,576,19,19,UHUHHH,324,11 | |
| 20 | +全体起点,576,20,20,H,288,10 | |
| 21 | +全体起点,576,21,21,UHH,432,16 | |
| 22 | +全体起点,576,22,22,H,288,11 | |
| 23 | +全体起点,576,23,23,DP,384,15 | |
| 24 | +全体起点,576,24,24,H,288,12 | |
| 25 | +全体起点,576,25,25,UHH,432,19 | |
| 26 | +全体起点,576,26,26,H,288,13 | |
| 27 | +全体起点,576,27,27,,, | |
| 28 | +全体起点,576,28,28,H,288,14 | |
| 29 | +全体起点,576,29,29,DP,384,19 | |
| 30 | +全体起点,576,30,30,H,288,15 | |
| 31 | +全体起点,576,31,31,DDPDP,512,27 | |
| 32 | +全体起点,576,32,32,H,288,16 | |
| 33 | +全体起点,576,33,33,UHH,432,25 | |
| 34 | +全体起点,576,34,34,H,288,17 | |
| 35 | +全体起点,576,35,35,DP,384,23 | |
| 36 | +全体起点,576,36,36,H,288,18 | |
| 37 | +全体起点,576,37,37,UHH,432,28 | |
| 38 | +全体起点,576,38,38,H,288,19 | |
| 39 | +全体起点,576,39,39,,, | |
| 40 | +全体起点,576,40,40,H,288,20 | |
| 41 | +全体起点,576,41,41,DP,384,27 | |
| 42 | +全体起点,576,42,42,H,288,21 | |
| 43 | +全体起点,576,43,43,UHUHHUHH,486,37 | |
| 44 | +全体起点,576,44,44,H,288,22 | |
| 45 | +全体起点,576,45,45,UHH,432,34 | |
| 46 | +全体起点,576,46,46,H,288,23 | |
| 47 | +全体起点,576,47,47,DP,384,31 | |
| 48 | +全体起点,576,48,48,H,288,24 | |
| 49 | +全体起点,576,49,49,UHH,432,37 | |
| 50 | +全体起点,576,50,50,H,288,25 | |
| 51 | +全体起点,576,51,51,UHUHHH,324,29 | |
| 52 | +全体起点,576,52,52,H,288,26 | |
| 53 | +全体起点,576,53,53,DP,384,35 | |
| 54 | +全体起点,576,54,54,H,288,27 | |
| 55 | +全体起点,576,55,55,UHUHUHHH,486,47 | |
| 56 | +全体起点,576,56,56,H,288,28 | |
| 57 | +全体起点,576,57,57,UHH,432,43 | |
| 58 | +全体起点,576,58,58,H,288,29 | |
| 59 | +全体起点,576,59,59,DP,384,39 | |
| 60 | +全体起点,576,60,60,H,288,30 | |
| 61 | +全体起点,576,61,61,UHH,432,46 | |
| 62 | +全体起点,576,62,62,H,288,31 | |
| 63 | +全体起点,576,63,63,,, | |
| 64 | +全体起点,576,64,64,H,288,32 | |
| 65 | +全体起点,576,65,65,DP,384,43 | |
| 66 | +全体起点,576,66,66,H,288,33 | |
| 67 | +全体起点,576,67,67,DDPDP,512,59 | |
| 68 | +全体起点,576,68,68,H,288,34 | |
| 69 | +全体起点,576,69,69,UHH,432,52 | |
| 70 | +全体起点,576,70,70,H,288,35 | |
| 71 | +全体起点,576,71,71,DP,384,47 | |
| 72 | +全体起点,576,72,72,H,288,36 | |
| 73 | +全体起点,576,73,73,UHH,432,55 | |
| 74 | +全体起点,576,74,74,H,288,37 | |
| 75 | +全体起点,576,75,75,UHUHHUHH,486,64 | |
| 76 | +全体起点,576,76,76,H,288,38 | |
| 77 | +全体起点,576,77,77,DP,384,51 | |
| 78 | +全体起点,576,78,78,H,288,39 | |
| 79 | +全体起点,576,79,79,UHUHUHUHHP,486,67 | |
| 80 | +全体起点,576,80,80,H,288,40 | |
| 81 | +全体起点,576,81,81,UHH,432,61 | |
| 82 | +全体起点,576,82,82,H,288,41 | |
| 83 | +全体起点,576,83,83,DP,384,55 | |
| 84 | +全体起点,576,84,84,H,288,42 | |
| 85 | +全体起点,576,85,85,UHH,432,64 | |
| 86 | +全体起点,576,86,86,H,288,43 | |
| 87 | +全体起点,576,87,87,UHUHUHHH,486,74 | |
| 88 | +全体起点,576,88,88,H,288,44 | |
| 89 | +全体起点,576,89,89,DP,384,59 | |
| 90 | +全体起点,576,90,90,H,288,45 | |
| 91 | +全体起点,576,91,91,,, | |
| 92 | +全体起点,576,92,92,H,288,46 | |
| 93 | +全体起点,576,93,93,UHH,432,70 | |
| 94 | +全体起点,576,94,94,H,288,47 | |
| 95 | +全体起点,576,95,95,DP,384,63 | |
| 96 | +全体起点,576,96,96,H,288,48 | |
| 97 | +全体起点,576,97,97,UHH,432,73 | |
| 98 | +全体起点,576,98,98,H,288,49 | |
| 99 | +全体起点,576,99,99,UHUHHH,324,56 | |
| 100 | +全体起点,576,100,100,H,288,50 | |
| 101 | +全体起点,576,101,101,DP,384,67 | |
| 102 | +全体起点,576,102,102,H,288,51 | |
| 103 | +全体起点,576,103,103,DDPDP,512,91 | |
| 104 | +全体起点,576,104,104,H,288,52 | |
| 105 | +全体起点,576,105,105,UHH,432,79 | |
| 106 | +全体起点,576,106,106,H,288,53 | |
| 107 | +全体起点,576,107,107,DP,384,71 | |
| 108 | +全体起点,576,108,108,H,288,54 | |
| 109 | +全体起点,576,109,109,UHH,432,82 | |
| 110 | +全体起点,576,110,110,H,288,55 | |
| 111 | +全体起点,576,111,111,,, | |
| 112 | +全体起点,576,112,112,H,288,56 | |
| 113 | +全体起点,576,113,113,DP,384,75 | |
| 114 | +全体起点,576,114,114,H,288,57 | |
| 115 | +全体起点,576,115,115,UHUHHH,324,65 | |
| 116 | +全体起点,576,116,116,H,288,58 | |
| 117 | +全体起点,576,117,117,UHH,432,88 | |
| 118 | +全体起点,576,118,118,H,288,59 | |
| 119 | +全体起点,576,119,119,DP,384,79 | |
| 120 | +全体起点,576,120,120,H,288,60 | |
| 121 | +全体起点,576,121,121,UHH,432,91 | |
| 122 | +全体起点,576,122,122,H,288,61 | |
| 123 | +全体起点,576,123,123,,, | |
| 124 | +全体起点,576,124,124,H,288,62 | |
| 125 | +全体起点,576,125,125,DP,384,83 | |
| 126 | +全体起点,576,126,126,H,288,63 | |
| 127 | +全体起点,576,127,127,,, | |
| 128 | +全体起点,576,128,128,H,288,64 | |
| 129 | +全体起点,576,129,129,UHH,432,97 | |
| 130 | +全体起点,576,130,130,H,288,65 | |
| 131 | +全体起点,576,131,131,DP,384,87 | |
| 132 | +全体起点,576,132,132,H,288,66 | |
| 133 | +全体起点,576,133,133,UHH,432,100 | |
| 134 | +全体起点,576,134,134,H,288,67 | |
| 135 | +全体起点,576,135,135,,, | |
| 136 | +全体起点,576,136,136,H,288,68 | |
| 137 | +全体起点,576,137,137,DP,384,91 | |
| 138 | +全体起点,576,138,138,H,288,69 | |
| 139 | +全体起点,576,139,139,DDPDP,512,123 | |
| 140 | +全体起点,576,140,140,H,288,70 | |
| 141 | +全体起点,576,141,141,UHH,432,106 | |
| 142 | +全体起点,576,142,142,H,288,71 | |
| 143 | +全体起点,576,143,143,DP,384,95 | |
| 144 | +全体起点,576,144,144,H,288,72 | |
| 145 | +全体起点,576,145,145,UHH,432,109 | |
| 146 | +全体起点,576,146,146,H,288,73 | |
| 147 | +全体起点,576,147,147,UHUHHH,324,83 | |
| 148 | +全体起点,576,148,148,H,288,74 | |
| 149 | +全体起点,576,149,149,DP,384,99 | |
| 150 | +全体起点,576,150,150,H,288,75 | |
| 151 | +全体起点,576,151,151,UHUHUHHH,486,128 | |
| 152 | +全体起点,576,152,152,H,288,76 | |
| 153 | +全体起点,576,153,153,UHH,432,115 | |
| 154 | +全体起点,576,154,154,H,288,77 | |
| 155 | +全体起点,576,155,155,DP,384,103 | |
| 156 | +全体起点,576,156,156,H,288,78 | |
| 157 | +全体起点,576,157,157,UHH,432,118 | |
| 158 | +全体起点,576,158,158,H,288,79 | |
| 159 | +全体起点,576,159,159,,, | |
| 160 | +全体起点,576,160,160,H,288,80 | |
| 161 | +全体起点,576,161,161,DP,384,107 | |
| 162 | +全体起点,576,162,162,H,288,81 | |
| 163 | +全体起点,576,163,163,UHUHHH,324,92 | |
| 164 | +全体起点,576,164,164,H,288,82 | |
| 165 | +全体起点,576,165,165,UHH,432,124 | |
| 166 | +全体起点,576,166,166,H,288,83 | |
| 167 | +全体起点,576,167,167,DP,384,111 | |
| 168 | +全体起点,576,168,168,H,288,84 | |
| 169 | +全体起点,576,169,169,UHH,432,127 | |
| 170 | +全体起点,576,170,170,H,288,85 | |
| 171 | +全体起点,576,171,171,UHUHHUHH,486,145 | |
| 172 | +全体起点,576,172,172,H,288,86 | |
| 173 | +全体起点,576,173,173,DP,384,115 | |
| 174 | +全体起点,576,174,174,H,288,87 | |
| 175 | +全体起点,576,175,175,DDPDP,512,155 | |
| 176 | +全体起点,576,176,176,H,288,88 | |
| 177 | +全体起点,576,177,177,UHH,432,133 | |
| 178 | +全体起点,576,178,178,H,288,89 | |
| 179 | +全体起点,576,179,179,DP,384,119 | |
| 180 | +全体起点,576,180,180,H,288,90 | |
| 181 | +全体起点,576,181,181,UHH,432,136 | |
| 182 | +全体起点,576,182,182,H,288,91 | |
| 183 | +全体起点,576,183,183,UHUHUHHH,486,155 | |
| 184 | +全体起点,576,184,184,H,288,92 | |
| 185 | +全体起点,576,185,185,DP,384,123 | |
| 186 | +全体起点,576,186,186,H,288,93 | |
| 187 | +全体起点,576,187,187,,, | |
| 188 | +全体起点,576,188,188,H,288,94 | |
| 189 | +全体起点,576,189,189,UHH,432,142 | |
| 190 | +全体起点,576,190,190,H,288,95 | |
| 191 | +全体起点,576,191,191,DP,384,127 | |
| 192 | +全体起点,576,192,192,H,288,96 | |
| 193 | +全体起点,576,193,193,UHH,432,145 | |
| 194 | +全体起点,576,194,194,H,288,97 | |
| 195 | +全体起点,576,195,195,UHUHHH,324,110 | |
| 196 | +全体起点,576,196,196,H,288,98 | |
| 197 | +全体起点,576,197,197,DP,384,131 | |
| 198 | +全体起点,576,198,198,H,288,99 | |
| 199 | +全体起点,576,199,199,,, | |
| 200 | +全体起点,576,200,200,H,288,100 | |
| 201 | +全体起点,576,201,201,UHH,432,151 | |
| 202 | +全体起点,576,202,202,H,288,101 | |
| 203 | +全体起点,576,203,203,DP,384,135 | |
| 204 | +全体起点,576,204,204,H,288,102 | |
| 205 | +全体起点,576,205,205,UHH,432,154 | |
| 206 | +全体起点,576,206,206,H,288,103 | |
| 207 | +全体起点,576,207,207,UHUHUHUHHP,486,175 | |
| 208 | +全体起点,576,208,208,H,288,104 | |
| 209 | +全体起点,576,209,209,DP,384,139 | |
| 210 | +全体起点,576,210,210,H,288,105 | |
| 211 | +全体起点,576,211,211,DDPDP,512,187 | |
| 212 | +全体起点,576,212,212,H,288,106 | |
| 213 | +全体起点,576,213,213,UHH,432,160 | |
| 214 | +全体起点,576,214,214,H,288,107 | |
| 215 | +全体起点,576,215,215,DP,384,143 | |
| 216 | +全体起点,576,216,216,H,288,108 | |
| 217 | +全体起点,576,217,217,UHH,432,163 | |
| 218 | +全体起点,576,218,218,H,288,109 | |
| 219 | +全体起点,576,219,219,,, | |
| 220 | +全体起点,576,220,220,H,288,110 | |
| 221 | +全体起点,576,221,221,DP,384,147 | |
| 222 | +全体起点,576,222,222,H,288,111 | |
| 223 | +全体起点,576,223,223,,, | |
| 224 | +全体起点,576,224,224,H,288,112 | |
| 225 | +全体起点,576,225,225,UHH,432,169 | |
| 226 | +全体起点,576,226,226,H,288,113 | |
| 227 | +全体起点,576,227,227,DP,384,151 | |
| 228 | +全体起点,576,228,228,H,288,114 | |
| 229 | +全体起点,576,229,229,UHH,432,172 | |
| 230 | +全体起点,576,230,230,H,288,115 | |
| 231 | +全体起点,576,231,231,,, | |
| 232 | +全体起点,576,232,232,H,288,116 | |
| 233 | +全体起点,576,233,233,DP,384,155 | |
| 234 | +全体起点,576,234,234,H,288,117 | |
| 235 | +全体起点,576,235,235,UHUHHUHH,486,199 | |
| 236 | +全体起点,576,236,236,H,288,118 | |
| 237 | +全体起点,576,237,237,UHH,432,178 | |
| 238 | +全体起点,576,238,238,H,288,119 | |
| 239 | +全体起点,576,239,239,DP,384,159 | |
| 240 | +全体起点,576,240,240,H,288,120 | |
| 241 | +全体起点,576,241,241,UHH,432,181 | |
| 242 | +全体起点,576,242,242,H,288,121 | |
| 243 | +全体起点,576,243,243,UHUHHH,324,137 | |
| 244 | +全体起点,576,244,244,H,288,122 | |
| 245 | +全体起点,576,245,245,DP,384,163 | |
| 246 | +全体起点,576,246,246,H,288,123 | |
| 247 | +全体起点,576,247,247,DDPDP,512,219 | |
| 248 | +全体起点,576,248,248,H,288,124 | |
| 249 | +全体起点,576,249,249,UHH,432,187 | |
| 250 | +全体起点,576,250,250,H,288,125 | |
| 251 | +全体起点,576,251,251,DP,384,167 | |
| 252 | +全体起点,576,252,252,H,288,126 | |
| 253 | +全体起点,576,253,253,UHH,432,190 | |
| 254 | +全体起点,576,254,254,H,288,127 | |
| 255 | +全体起点,576,255,255,,, | |
| 256 | +全体起点,576,256,256,H,288,128 | |
| 257 | +全体起点,576,257,257,DP,384,171 | |
| 258 | +全体起点,576,258,258,H,288,129 | |
| 259 | +全体起点,576,259,259,UHUHHH,324,146 | |
| 260 | +全体起点,576,260,260,H,288,130 | |
| 261 | +全体起点,576,261,261,UHH,432,196 | |
| 262 | +全体起点,576,262,262,H,288,131 | |
| 263 | +全体起点,576,263,263,DP,384,175 | |
| 264 | +全体起点,576,264,264,H,288,132 | |
| 265 | +全体起点,576,265,265,UHH,432,199 | |
| 266 | +全体起点,576,266,266,H,288,133 | |
| 267 | +全体起点,576,267,267,UHUHHUHH,486,226 | |
| 268 | +全体起点,576,268,268,H,288,134 | |
| 269 | +全体起点,576,269,269,DP,384,179 | |
| 270 | +全体起点,576,270,270,H,288,135 | |
| 271 | +全体起点,576,271,271,UHUHUHUHHP,486,229 | |
| 272 | +全体起点,576,272,272,H,288,136 | |
| 273 | +全体起点,576,273,273,UHH,432,205 | |
| 274 | +全体起点,576,274,274,H,288,137 | |
| 275 | +全体起点,576,275,275,DP,384,183 | |
| 276 | +全体起点,576,276,276,H,288,138 | |
| 277 | +全体起点,576,277,277,UHH,432,208 | |
| 278 | +全体起点,576,278,278,H,288,139 | |
| 279 | +全体起点,576,279,279,UHUHUHHH,486,236 | |
| 280 | +全体起点,576,280,280,H,288,140 | |
| 281 | +全体起点,576,281,281,DP,384,187 | |
| 282 | +全体起点,576,282,282,H,288,141 | |
| 283 | +全体起点,576,283,283,DDPDP,512,251 | |
| 284 | +全体起点,576,284,284,H,288,142 | |
| 285 | +全体起点,576,285,285,UHH,432,214 | |
| 286 | +全体起点,576,286,286,H,288,143 | |
| 287 | +全体起点,576,287,287,DP,384,191 | |
| 288 | +全体起点,576,288,288,H,288,144 | |
| 289 | +全体起点,576,289,289,UHH,432,217 | |
| 290 | +全体起点,576,290,290,H,288,145 | |
| 291 | +全体起点,576,291,291,UHUHHH,324,164 | |
| 292 | +全体起点,576,292,292,H,288,146 | |
| 293 | +全体起点,576,293,293,DP,384,195 | |
| 294 | +全体起点,576,294,294,H,288,147 | |
| 295 | +全体起点,576,295,295,,, | |
| 296 | +全体起点,576,296,296,H,288,148 | |
| 297 | +全体起点,576,297,297,UHH,432,223 | |
| 298 | +全体起点,576,298,298,H,288,149 | |
| 299 | +全体起点,576,299,299,DP,384,199 | |
| 300 | +全体起点,576,300,300,H,288,150 | |
| 301 | +全体起点,576,301,301,UHH,432,226 | |
| 302 | +全体起点,576,302,302,H,288,151 | |
| 303 | +全体起点,576,303,303,,, | |
| 304 | +全体起点,576,304,304,H,288,152 | |
| 305 | +全体起点,576,305,305,DP,384,203 | |
| 306 | +全体起点,576,306,306,H,288,153 | |
| 307 | +全体起点,576,307,307,UHUHHH,324,173 | |
| 308 | +全体起点,576,308,308,H,288,154 | |
| 309 | +全体起点,576,309,309,UHH,432,232 | |
| 310 | +全体起点,576,310,310,H,288,155 | |
| 311 | +全体起点,576,311,311,DP,384,207 | |
| 312 | +全体起点,576,312,312,H,288,156 | |
| 313 | +全体起点,576,313,313,UHH,432,235 | |
| 314 | +全体起点,576,314,314,H,288,157 | |
| 315 | +全体起点,576,315,315,,, | |
| 316 | +全体起点,576,316,316,H,288,158 | |
| 317 | +全体起点,576,317,317,DP,384,211 | |
| 318 | +全体起点,576,318,318,H,288,159 | |
| 319 | +全体起点,576,319,319,DDPDP,512,283 | |
| 320 | +全体起点,576,320,320,H,288,160 | |
| 321 | +全体起点,576,321,321,UHH,432,241 | |
| 322 | +全体起点,576,322,322,H,288,161 | |
| 323 | +全体起点,576,323,323,DP,384,215 | |
| 324 | +全体起点,576,324,324,H,288,162 | |
| 325 | +全体起点,576,325,325,UHH,432,244 | |
| 326 | +全体起点,576,326,326,H,288,163 | |
| 327 | +全体起点,576,327,327,,, | |
| 328 | +全体起点,576,328,328,H,288,164 | |
| 329 | +全体起点,576,329,329,DP,384,219 | |
| 330 | +全体起点,576,330,330,H,288,165 | |
| 331 | +全体起点,576,331,331,UHUHHUHH,486,280 | |
| 332 | +全体起点,576,332,332,H,288,166 | |
| 333 | +全体起点,576,333,333,UHH,432,250 | |
| 334 | +全体起点,576,334,334,H,288,167 | |
| 335 | +全体起点,576,335,335,DP,384,223 | |
| 336 | +全体起点,576,336,336,H,288,168 | |
| 337 | +全体起点,576,337,337,UHH,432,253 | |
| 338 | +全体起点,576,338,338,H,288,169 | |
| 339 | +全体起点,576,339,339,UHUHHH,324,191 | |
| 340 | +全体起点,576,340,340,H,288,170 | |
| 341 | +全体起点,576,341,341,DP,384,227 | |
| 342 | +全体起点,576,342,342,H,288,171 | |
| 343 | +全体起点,576,343,343,UHUHUHHH,486,290 | |
| 344 | +全体起点,576,344,344,H,288,172 | |
| 345 | +全体起点,576,345,345,UHH,432,259 | |
| 346 | +全体起点,576,346,346,H,288,173 | |
| 347 | +全体起点,576,347,347,DP,384,231 | |
| 348 | +全体起点,576,348,348,H,288,174 | |
| 349 | +全体起点,576,349,349,UHH,432,262 | |
| 350 | +全体起点,576,350,350,H,288,175 | |
| 351 | +全体起点,576,351,351,,, | |
| 352 | +全体起点,576,352,352,H,288,176 | |
| 353 | +全体起点,576,353,353,DP,384,235 | |
| 354 | +全体起点,576,354,354,H,288,177 | |
| 355 | +全体起点,576,355,355,DDPDP,512,315 | |
| 356 | +全体起点,576,356,356,H,288,178 | |
| 357 | +全体起点,576,357,357,UHH,432,268 | |
| 358 | +全体起点,576,358,358,H,288,179 | |
| 359 | +全体起点,576,359,359,DP,384,239 | |
| 360 | +全体起点,576,360,360,H,288,180 | |
| 361 | +全体起点,576,361,361,UHH,432,271 | |
| 362 | +全体起点,576,362,362,H,288,181 | |
| 363 | +全体起点,576,363,363,UHUHHUHH,486,307 | |
| 364 | +全体起点,576,364,364,H,288,182 | |
| 365 | +全体起点,576,365,365,DP,384,243 | |
| 366 | +全体起点,576,366,366,H,288,183 | |
| 367 | +全体起点,576,367,367,,, | |
| 368 | +全体起点,576,368,368,H,288,184 | |
| 369 | +全体起点,576,369,369,UHH,432,277 | |
| 370 | +全体起点,576,370,370,H,288,185 | |
| 371 | +全体起点,576,371,371,DP,384,247 | |
| 372 | +全体起点,576,372,372,H,288,186 | |
| 373 | +全体起点,576,373,373,UHH,432,280 | |
| 374 | +全体起点,576,374,374,H,288,187 | |
| 375 | +全体起点,576,375,375,UHUHUHHH,486,317 | |
| 376 | +全体起点,576,376,376,H,288,188 | |
| 377 | +全体起点,576,377,377,DP,384,251 | |
| 378 | +全体起点,576,378,378,H,288,189 | |
| 379 | +全体起点,576,379,379,,, | |
| 380 | +全体起点,576,380,380,H,288,190 | |
| 381 | +全体起点,576,381,381,UHH,432,286 | |
| 382 | +全体起点,576,382,382,H,288,191 | |
| 383 | +全体起点,576,383,383,DP,384,255 | |
| 384 | +全体起点,576,384,384,H,288,192 | |
| 385 | +全体起点,576,385,385,UHH,432,289 | |
| 386 | +全体起点,576,386,386,H,288,193 | |
| 387 | +全体起点,576,387,387,UHUHHH,324,218 | |
| 388 | +全体起点,576,388,388,H,288,194 | |
| 389 | +全体起点,576,389,389,DP,384,259 | |
| 390 | +全体起点,576,390,390,H,288,195 | |
| 391 | +全体起点,576,391,391,DDPDP,512,347 | |
| 392 | +全体起点,576,392,392,H,288,196 | |
| 393 | +全体起点,576,393,393,UHH,432,295 | |
| 394 | +全体起点,576,394,394,H,288,197 | |
| 395 | +全体起点,576,395,395,DP,384,263 | |
| 396 | +全体起点,576,396,396,H,288,198 | |
| 397 | +全体起点,576,397,397,UHH,432,298 | |
| 398 | +全体起点,576,398,398,H,288,199 | |
| 399 | +全体起点,576,399,399,UHUHUHUHHP,486,337 | |
| 400 | +全体起点,576,400,400,H,288,200 | |
| 401 | +全体起点,576,401,401,DP,384,267 | |
| 402 | +全体起点,576,402,402,H,288,201 | |
| 403 | +全体起点,576,403,403,UHUHHH,324,227 | |
| 404 | +全体起点,576,404,404,H,288,202 | |
| 405 | +全体起点,576,405,405,UHH,432,304 | |
| 406 | +全体起点,576,406,406,H,288,203 | |
| 407 | +全体起点,576,407,407,DP,384,271 | |
| 408 | +全体起点,576,408,408,H,288,204 | |
| 409 | +全体起点,576,409,409,UHH,432,307 | |
| 410 | +全体起点,576,410,410,H,288,205 | |
| 411 | +全体起点,576,411,411,,, | |
| 412 | +全体起点,576,412,412,H,288,206 | |
| 413 | +全体起点,576,413,413,DP,384,275 | |
| 414 | +全体起点,576,414,414,H,288,207 | |
| 415 | +全体起点,576,415,415,,, | |
| 416 | +全体起点,576,416,416,H,288,208 | |
| 417 | +全体起点,576,417,417,UHH,432,313 | |
| 418 | +全体起点,576,418,418,H,288,209 | |
| 419 | +全体起点,576,419,419,DP,384,279 | |
| 420 | +全体起点,576,420,420,H,288,210 | |
| 421 | +全体起点,576,421,421,UHH,432,316 | |
| 422 | +全体起点,576,422,422,H,288,211 | |
| 423 | +全体起点,576,423,423,,, | |
| 424 | +全体起点,576,424,424,H,288,212 | |
| 425 | +全体起点,576,425,425,DP,384,283 | |
| 426 | +全体起点,576,426,426,H,288,213 | |
| 427 | +全体起点,576,427,427,DDPDP,512,379 | |
| 428 | +全体起点,576,428,428,H,288,214 | |
| 429 | +全体起点,576,429,429,UHH,432,322 | |
| 430 | +全体起点,576,430,430,H,288,215 | |
| 431 | +全体起点,576,431,431,DP,384,287 | |
| 432 | +全体起点,576,432,432,H,288,216 | |
| 433 | +全体起点,576,433,433,UHH,432,325 | |
| 434 | +全体起点,576,434,434,H,288,217 | |
| 435 | +全体起点,576,435,435,UHUHHH,324,245 | |
| 436 | +全体起点,576,436,436,H,288,218 | |
| 437 | +全体起点,576,437,437,DP,384,291 | |
| 438 | +全体起点,576,438,438,H,288,219 | |
| 439 | +全体起点,576,439,439,UHUHUHHH,486,371 | |
| 440 | +全体起点,576,440,440,H,288,220 | |
| 441 | +全体起点,576,441,441,UHH,432,331 | |
| 442 | +全体起点,576,442,442,H,288,221 | |
| 443 | +全体起点,576,443,443,DP,384,295 | |
| 444 | +全体起点,576,444,444,H,288,222 | |
| 445 | +全体起点,576,445,445,UHH,432,334 | |
| 446 | +全体起点,576,446,446,H,288,223 | |
| 447 | +全体起点,576,447,447,,, | |
| 448 | +全体起点,576,448,448,H,288,224 | |
| 449 | +全体起点,576,449,449,DP,384,299 | |
| 450 | +全体起点,576,450,450,H,288,225 | |
| 451 | +全体起点,576,451,451,UHUHHH,324,254 | |
| 452 | +全体起点,576,452,452,H,288,226 | |
| 453 | +全体起点,576,453,453,UHH,432,340 | |
| 454 | +全体起点,576,454,454,H,288,227 | |
| 455 | +全体起点,576,455,455,DP,384,303 | |
| 456 | +全体起点,576,456,456,H,288,228 | |
| 457 | +全体起点,576,457,457,UHH,432,343 | |
| 458 | +全体起点,576,458,458,H,288,229 | |
| 459 | +全体起点,576,459,459,UHUHHUHH,486,388 | |
| 460 | +全体起点,576,460,460,H,288,230 | |
| 461 | +全体起点,576,461,461,DP,384,307 | |
| 462 | +全体起点,576,462,462,H,288,231 | |
| 463 | +全体起点,576,463,463,DDPDP,512,411 | |
| 464 | +全体起点,576,464,464,H,288,232 | |
| 465 | +全体起点,576,465,465,UHH,432,349 | |
| 466 | +全体起点,576,466,466,H,288,233 | |
| 467 | +全体起点,576,467,467,DP,384,311 | |
| 468 | +全体起点,576,468,468,H,288,234 | |
| 469 | +全体起点,576,469,469,UHH,432,352 | |
| 470 | +全体起点,576,470,470,H,288,235 | |
| 471 | +全体起点,576,471,471,UHUHUHHH,486,398 | |
| 472 | +全体起点,576,472,472,H,288,236 | |
| 473 | +全体起点,576,473,473,DP,384,315 | |
| 474 | +全体起点,576,474,474,H,288,237 | |
| 475 | +全体起点,576,475,475,,, | |
| 476 | +全体起点,576,476,476,H,288,238 | |
| 477 | +全体起点,576,477,477,UHH,432,358 | |
| 478 | +全体起点,576,478,478,H,288,239 | |
| 479 | +全体起点,576,479,479,DP,384,319 | |
| 480 | +全体起点,576,480,480,H,288,240 | |
| 481 | +全体起点,576,481,481,UHH,432,361 | |
| 482 | +全体起点,576,482,482,H,288,241 | |
| 483 | +全体起点,576,483,483,UHUHHH,324,272 | |
| 484 | +全体起点,576,484,484,H,288,242 | |
| 485 | +全体起点,576,485,485,DP,384,323 | |
| 486 | +全体起点,576,486,486,H,288,243 | |
| 487 | +全体起点,576,487,487,,, | |
| 488 | +全体起点,576,488,488,H,288,244 | |
| 489 | +全体起点,576,489,489,UHH,432,367 | |
| 490 | +全体起点,576,490,490,H,288,245 | |
| 491 | +全体起点,576,491,491,DP,384,327 | |
| 492 | +全体起点,576,492,492,H,288,246 | |
| 493 | +全体起点,576,493,493,UHH,432,370 | |
| 494 | +全体起点,576,494,494,H,288,247 | |
| 495 | +全体起点,576,495,495,,, | |
| 496 | +全体起点,576,496,496,H,288,248 | |
| 497 | +全体起点,576,497,497,DP,384,331 | |
| 498 | +全体起点,576,498,498,H,288,249 | |
| 499 | +全体起点,576,499,499,DDPDP,512,443 | |
| 500 | +全体起点,576,500,500,H,288,250 | |
| 501 | +全体起点,576,501,501,UHH,432,376 | |
| 502 | +全体起点,576,502,502,H,288,251 | |
| 503 | +全体起点,576,503,503,DP,384,335 | |
| 504 | +全体起点,576,504,504,H,288,252 | |
| 505 | +全体起点,576,505,505,UHH,432,379 | |
| 506 | +全体起点,576,506,506,H,288,253 | |
| 507 | +全体起点,576,507,507,,, | |
| 508 | +全体起点,576,508,508,H,288,254 | |
| 509 | +全体起点,576,509,509,DP,384,339 | |
| 510 | +全体起点,576,510,510,H,288,255 | |
| 511 | +全体起点,576,511,511,,, | |
| 512 | +全体起点,576,512,512,H,288,256 | |
| 513 | +全体起点,576,513,513,UHH,432,385 | |
| 514 | +全体起点,576,514,514,H,288,257 | |
| 515 | +全体起点,576,515,515,DP,384,343 | |
| 516 | +全体起点,576,516,516,H,288,258 | |
| 517 | +全体起点,576,517,517,UHH,432,388 | |
| 518 | +全体起点,576,518,518,H,288,259 | |
| 519 | +全体起点,576,519,519,,, | |
| 520 | +全体起点,576,520,520,H,288,260 | |
| 521 | +全体起点,576,521,521,DP,384,347 | |
| 522 | +全体起点,576,522,522,H,288,261 | |
| 523 | +全体起点,576,523,523,UHUHHUHH,486,442 | |
| 524 | +全体起点,576,524,524,H,288,262 | |
| 525 | +全体起点,576,525,525,UHH,432,394 | |
| 526 | +全体起点,576,526,526,H,288,263 | |
| 527 | +全体起点,576,527,527,DP,384,351 | |
| 528 | +全体起点,576,528,528,H,288,264 | |
| 529 | +全体起点,576,529,529,UHH,432,397 | |
| 530 | +全体起点,576,530,530,H,288,265 | |
| 531 | +全体起点,576,531,531,UHUHHH,324,299 | |
| 532 | +全体起点,576,532,532,H,288,266 | |
| 533 | +全体起点,576,533,533,DP,384,355 | |
| 534 | +全体起点,576,534,534,H,288,267 | |
| 535 | +全体起点,576,535,535,DDPDP,512,475 | |
| 536 | +全体起点,576,536,536,H,288,268 | |
| 537 | +全体起点,576,537,537,UHH,432,403 | |
| 538 | +全体起点,576,538,538,H,288,269 | |
| 539 | +全体起点,576,539,539,DP,384,359 | |
| 540 | +全体起点,576,540,540,H,288,270 | |
| 541 | +全体起点,576,541,541,UHH,432,406 | |
| 542 | +全体起点,576,542,542,H,288,271 | |
| 543 | +全体起点,576,543,543,,, | |
| 544 | +全体起点,576,544,544,H,288,272 | |
| 545 | +全体起点,576,545,545,DP,384,363 | |
| 546 | +全体起点,576,546,546,H,288,273 | |
| 547 | +全体起点,576,547,547,UHUHHH,324,308 | |
| 548 | +全体起点,576,548,548,H,288,274 | |
| 549 | +全体起点,576,549,549,UHH,432,412 | |
| 550 | +全体起点,576,550,550,H,288,275 | |
| 551 | +全体起点,576,551,551,DP,384,367 | |
| 552 | +全体起点,576,552,552,H,288,276 | |
| 553 | +全体起点,576,553,553,UHH,432,415 | |
| 554 | +全体起点,576,554,554,H,288,277 | |
| 555 | +全体起点,576,555,555,UHUHHUHH,486,469 | |
| 556 | +全体起点,576,556,556,H,288,278 | |
| 557 | +全体起点,576,557,557,DP,384,371 | |
| 558 | +全体起点,576,558,558,H,288,279 | |
| 559 | +全体起点,576,559,559,,, | |
| 560 | +全体起点,576,560,560,H,288,280 | |
| 561 | +全体起点,576,561,561,UHH,432,421 | |
| 562 | +全体起点,576,562,562,H,288,281 | |
| 563 | +全体起点,576,563,563,DP,384,375 | |
| 564 | +全体起点,576,564,564,H,288,282 | |
| 565 | +全体起点,576,565,565,UHH,432,424 | |
| 566 | +全体起点,576,566,566,H,288,283 | |
| 567 | +全体起点,576,567,567,UHUHUHHH,486,479 | |
| 568 | +全体起点,576,568,568,H,288,284 | |
| 569 | +全体起点,576,569,569,DP,384,379 | |
| 570 | +全体起点,576,570,570,H,288,285 | |
| 571 | +全体起点,576,571,571,DDPDP,512,507 | |
| 572 | +全体起点,576,572,572,H,288,286 | |
| 573 | +全体起点,576,573,573,UHH,432,430 | |
| 574 | +全体起点,576,574,574,H,288,287 | |
| 575 | +全体起点,576,575,575,DP,384,383 | |
| 576 | +全体起点,576,0,576,H,288,288 | |
| 577 | +全体起点,576,1,577,UHH,432,433 | |
| 578 | +检查点,576,11,11,,, | |
| 579 | +检查点,576,20,20,HHUHHH,54,2 | |
| 580 | +检查点,576,29,29,UHHH,216,11 | |
| 581 | +检查点,576,38,38,HUH,432,29 | |
| 582 | +检查点,576,47,47,,, | |
| 583 | +检查点,576,56,56,HHHUH,108,11 | |
| 584 | +检查点,576,65,65,UHHUHHUH,486,56 | |
| 585 | +检查点,576,74,74,HUH,432,56 | |
| 586 | +检查点,576,83,83,UHUHHH,324,47 | |
| 587 | +检查点,576,92,92,,, | |
| 588 | +检查点,576,101,101,UHHH,216,38 | |
| 589 | +检查点,576,110,110,HUH,432,83 | |
| 590 | +检查点,576,119,119,UHUHUHHH,486,101 | |
| 591 | +检查点,576,128,128,HHHHHH,9,2 | |
| 592 | +检查点,576,137,137,,, | |
| 593 | +检查点,576,146,146,HUH,432,110 | |
| 594 | +检查点,576,155,155,,, | |
| 595 | +检查点,576,164,164,HHUHHUH,162,47 | |
| 596 | +检查点,576,173,173,UHHH,216,65 | |
| 597 | +检查点,576,182,182,HUH,432,137 | |
| 598 | +检查点,576,191,191,,, | |
| 599 | +检查点,576,200,200,HHHUH,108,38 | |
| 600 | +检查点,576,209,209,,, | |
| 601 | +检查点,576,218,218,HUH,432,164 | |
| 602 | +检查点,576,227,227,UHUHHH,324,128 | |
| 603 | +检查点,576,236,236,HHUHUHHUH,243,101 | |
| 604 | +检查点,576,245,245,UHHH,216,92 | |
| 605 | +检查点,576,254,254,HUH,432,191 | |
| 606 | +检查点,576,263,263,,, | |
| 607 | +检查点,576,272,272,,, | |
| 608 | +检查点,576,281,281,UHHUHUHHH,243,119 | |
| 609 | +检查点,576,290,290,HUH,432,218 | |
| 610 | +检查点,576,299,299,,, | |
| 611 | +检查点,576,308,308,HHUHHH,54,29 | |
| 612 | +检查点,576,317,317,UHHH,216,119 | |
| 613 | +检查点,576,326,326,HUH,432,245 | |
| 614 | +检查点,576,335,335,,, | |
| 615 | +检查点,576,344,344,HHHUH,108,65 | |
| 616 | +检查点,576,353,353,UHHUHHUH,486,299 | |
| 617 | +检查点,576,362,362,HUH,432,272 | |
| 618 | +检查点,576,371,371,UHUHHH,324,209 | |
| 619 | +检查点,576,380,380,,, | |
| 620 | +检查点,576,389,389,UHHH,216,146 | |
| 621 | +检查点,576,398,398,HUH,432,299 | |
| 622 | +检查点,576,407,407,UHUHUHHH,486,344 | |
| 623 | +检查点,576,416,416,HHHHHUH,27,20 | |
| 624 | +检查点,576,425,425,,, | |
| 625 | +检查点,576,434,434,HUH,432,326 | |
| 626 | +检查点,576,443,443,,, | |
| 627 | +检查点,576,452,452,HHUHHUH,162,128 | |
| 628 | +检查点,576,461,461,UHHH,216,173 | |
| 629 | +检查点,576,470,470,HUH,432,353 | |
| 630 | +检查点,576,479,479,,, | |
| 631 | +检查点,576,488,488,HHHUH,108,92 | |
| 632 | +检查点,576,497,497,,, | |
| 633 | +检查点,576,506,506,HUH,432,380 | |
| 634 | +检查点,576,515,515,UHUHHH,324,290 | |
| 635 | +检查点,576,524,524,HHUHUHHH,81,74 | |
| 636 | +检查点,576,533,533,UHHH,216,200 | |
| 637 | +检查点,576,542,542,HUH,432,407 | |
| 638 | +检查点,576,551,551,,, | |
| 639 | +检查点,576,560,560,,, | |
| 640 | +检查点,576,569,569,,, | |
| 641 | +检查点,576,2,578,HUH,432,434 | |
| 642 | +检查点细分,1152,92,92,HHUHUHUHHH,243,20 | |
| 643 | +检查点细分,1152,668,668,HHUHUHUHHUH,729,425 | |
| 644 | +检查点细分,1152,272,272,HHHHUHHUH,81,20 | |
| 645 | +检查点细分,1152,848,848,HHHHUHHH,27,20 | |
| 646 | +检查点细分,1152,497,497,UHHUHHHHPDD,216,92 | |
| 647 | +检查点细分,1152,1073,1073,UHHUHHHHUH,243,227 | |
| 648 | +检查点细分,1728,560,560,HHHPDD,288,92 | |
| 649 | +检查点细分,1728,1136,1136,HHHP,72,47 | |
| 650 | +检查点细分,1728,1712,1712,HHHPDDDD,1152,1136 | |
+47 −0 routes/codex-odd-preimage-issue1/out/checkpoint-report.md added View file
| @@ -0,0 +1,47 @@ | ||
| 1 | +# 为什么只研究 576q+569 就足够,以及还缺哪一步 | |
| 2 | + | |
| 3 | +**已证结论**:所有正整数都到达 1,等价于每个非负整数 q 对应的起点 576q+569 都到达 1。后一条仍然待证。把问题集中到一个等差数列的思想已有文献。本路线给出了这个数列的一条具体连接方法,Lean 可以直接检查每步,以及 81 行倍增数据。[Lean 源码](../SingleClass.lean) · [倍增表](single-class.csv) · [Monks,定理 1.1](https://monks.scranton.edu/content/pubs/SufficiencyRev4.pdf) | |
| 4 | + | |
| 5 | +## 任意起点怎样接到这条数列上 | |
| 6 | + | |
| 7 | +一次原始操作按奇偶执行 n/2 或 3n+1。以下把除以 9 余 2 的数称作“检查点”。 | |
| 8 | + | |
| 9 | +1. 每个正整数的轨道都能到达一个检查点 n。这复现了 Monks 等人 2013 年论文的推论 5.8。论文把奇数步和随后的第一次减半合为一步,源码将每个这样的步骤还原为两步原始操作。证明先处理 3 的倍数,正偶数可以逐次减半,遇到奇数时合并步进入余 5。其他余数中,4 接着到 2,7 到 2 或 8,5 到 7 或 8,1 到 2 或 5。惟一需要解释的停留是余 8 的连续奇数步。此时把 n+1 写为奇数 a 乘以偶数 z,下一次合并步把它变成 (3a)·(z/2),正整数因子 z 每次减半,故必有一步离开奇数段。[源码](../Checkpoint.lean) · [原论文 §5.3](https://arxiv.org/abs/1204.3904) | |
| 10 | +2. 对任意 q ≥ 0,从 576q+569 按原始规则走 **10 步**恰好到 729q+722。两者都能直接代入源码检验。比如 569 先经过 1708、854、427、1282、641、1924、962、481、1444,到达 722。 | |
| 11 | +3. 一个检查点 n 除以 729 只可能有 81 种余数。对每一种余数,表中给出 e ≤ 480,使得 2ᵉn 除以 729 余 722。令 q 为 2ᵉn 除以 729 的商,第 2 步就把 576q+569 送到 2ᵉn,再减半 e 次恰好到 n。例如检查点 353 取 e=6,起点 17,849 用 16 步到 353。[81 行数据](single-class.csv) | |
| 12 | +4. 这样,原始起点和构造出的数列项均能到达同一个 n。到达 1 的性质在一条边两端等价,因为 1 之后会经 4、2 回到 1。若每个数列项都到达 1,则 n 和原始起点也都到达 1。反向只需把全称结论应用到该数列。**490 步的上界仅针对从构造出的数列项到指定检查点的这段路**,原始起点首次遇到检查点的时间和最终到 1 的时间均未给出统一上界。 | |
| 13 | + | |
| 14 | +## 还缺的证明可以怎样陈述 | |
| 15 | + | |
| 16 | +q=0 对应的 569 在第 56 步首次到达 1。对 q>0,若总能找到更小的下标 p<q,使两条轨道在某个值相遇,则沿下标做强归纳就能证明全题。反过来,若全题成立,可统一选 p=0,让两条轨道相遇于 1。这个等价性已用 Lean 检查,定理名为 `claim_iff_smaller_index`。构造具体的 p 可以依赖 q。 | |
| 17 | + | |
| 18 | +程序为 q=1 至 32 各找了一对相遇步数,Lean 检查了每个 p 确实更小且两个轨道值相等。例如 q=3 的起点 2297 走 19 步、p=2 的起点 1721 走 16 步都到 1228。这 32 个相遇值均大于 1。**仍缺任意 q 的构造或存在证明**。[32 个实例](lower-index.csv) | |
| 19 | + | |
| 20 | +## 正向与反向走能排除哪些情形 | |
| 21 | + | |
| 22 | +把一整类起点写成 aq+b,其中 q 可以是任意非负整数。一条检查过的路径把它变成 cq+d。若 c≤a 且 0<d<b,终点对每个 q 都是严格更小的正整数。路径允许正走,也允许沿合法的同一条边倒走,后者能比较两端是否到达 1。表格中的 H 表示偶数减半,U 表示奇数乘三加一,D 是逆向倍增,P 从 x 返回到奇数 (x−1)/3。Lean 验证路径在整个数列上合法,Python 的搜索只负责提供候选。[通用检验](../Bridges.lean) · [逐类表格](certificates.csv) | |
| 23 | + | |
| 24 | +| 归纳对象 | 运算 | 得出的条件 | | |
| 25 | +| --- | --- | --- | | |
| 26 | +| 所有正整数 | 把原来的模 16 三类换到模 576,原有 108 类待处理。八条路径可覆盖 576 类中的 541 类 | 剩 35 个余数 | | |
| 27 | +| 所有检查点 | 模 576 下共 64 类。13 条路径对 45 类给出更小的检查点 | 剩 19 个余数 | | |
| 28 | +| 同一批检查点 | 将余数 92、272、497 各细分成两类,把 560 细分成三类,逐类给出证据 | 剩 15 个余数 | | |
| 29 | + | |
| 30 | +15 个余数分别为 **11、47、137、155、191、209、263、299、335、380、425、443、479、551、569**。每一类都含无穷多个整数。15 个最小代表各自到 1 的步数也已用 Lean 核对。最长的代表样例是 299,用 117 步。这三行的归纳对象和“严格更小”的要求见源码。前两行的剩余集合不能直接取交集,例如从 11 可沿逆向边找到较小的 7,再从 7 找到的第一个检查点又是 11。一般地,对每个 k ≥ 0,6k+1 的第一个检查点正是两步后的 9k+2。单数列归约另有上面的构造,其连接起点可能很大。[35 类证明](../Residues.lean) · [15 类证明](../CheckpointDescent.lean) · [代表清单](least-representatives.csv) | |
| 31 | + | |
| 32 | +## 两种看似有望的下降策略为何会失败 | |
| 33 | + | |
| 34 | +**一次返回可以放大任意倍。** 取 k≥1,起点为 21·4ᵏ−1。其首次正步返回检查点恰在第 4k+2 个原始步,值为 (21·9ᵏ−1)/4。前 4k 步按四步为一段,把 4s−1 送到 9s−1,段内各步均避开模 9 余 2。最后两次减半才回到检查点。对于任意给定倍率 B,都有 k 使返回值超过起点的 B 倍。k≥3 时这些起点除以 576 全部余 191。反方向有时仍然很短:k=6 时,86,015 用 26 步才回到检查点 2,790,065,而更小的检查点 76,457 正向走 5 步就到 86,015。源码证明两种现象可以在同一子族上同时出现,倍率任大。[任意倍率的证明](../FirstReturn.lean) | |
| 35 | + | |
| 36 | +**多等固定次数也不足。** 对任意 L≥1,取 n=9·8^(L+2)−7。它除以 576 余 569。前 5L 步内恰好每 5 步回一次检查点,这 L 次返回逐次严格增大。理由是每段把 8s−7 送到 9s−7,一共五个原始步,中间余数依次是 7、8、4、4。与此同时,第 3 步已经降到 6s−5,小于该段起点。因此仅观察检查点会错过普通轨道中的下降。这一结果只否定固定返回次数内保证下降的策略,并未给出永不到 1 的起点。[任意次数的证明](../RepeatedReturns.lean) · [样例结果](return-examples.csv) | |
| 37 | + | |
| 38 | +## 如何复验 | |
| 39 | + | |
| 40 | +在路线目录使用已固定的 Lean 4.35.0 和 Python 3,模块依赖只有 Lean 自带的 Std。运行以下命令可从源码重建八个模块,并与仓库中保存的表格和公理输出逐项比对。首个命令重建需求的起点 6 样例。 | |
| 41 | + | |
| 42 | +```sh | |
| 43 | +python sample.py | |
| 44 | +python reproduce.py | |
| 45 | +``` | |
| 46 | + | |
| 47 | +如需指定可执行文件,可运行 `python reproduce.py --lean /path/to/lean`。所有 `.olean` 均在新建的临时目录内产生。六份本轮生成文件均保存在本目录。公理记录来自具体已证定理,依赖最多为 Lean 标准公理 propext、Classical.choice、Quot.sound。没有 sorryAx 或自定义公理。项目没有配置站内自动检验,本次运行属于本地复验。[完整 Lean 输出](shift-lean.txt) · [复验程序](../reproduce.py) · [起点 6 的原始步表](sample-6.csv) | |
+16 −0 routes/codex-odd-preimage-issue1/out/least-representatives.csv added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +模576余数及最小正代表,首次到1步数,峰值,下个检查点步数,下个检查点值,首次遇到更小检查点的步数,更小检查点值 | |
| 2 | +11,14,52,7,20,13,2 | |
| 3 | +47,104,9232,11,182,97,20 | |
| 4 | +137,90,9232,5,155,73,92 | |
| 5 | +155,85,9232,7,263,68,92 | |
| 6 | +191,44,4372,15,1640,26,29 | |
| 7 | +209,39,628,5,236,14,101 | |
| 8 | +263,78,9232,9,668,61,92 | |
| 9 | +299,117,9232,7,506,24,182 | |
| 10 | +335,68,9232,10,425,51,92 | |
| 11 | +380,107,9232,14,182,14,182 | |
| 12 | +425,58,9232,5,479,41,92 | |
| 13 | +443,53,2248,7,749,11,281 | |
| 14 | +479,53,9232,12,911,36,92 | |
| 15 | +551,43,4192,9,1397,13,524 | |
| 16 | +569,56,2752,5,641,13,542 | |
+33 −0 routes/codex-odd-preimage-issue1/out/lower-index.csv added View file
| @@ -0,0 +1,33 @@ | ||
| 1 | +起点下标q,较小下标p,起点,较小下标的起点,原轨道步数,另一轨道步数,相遇值 | |
| 2 | +1,0,1145,569,142,48,40 | |
| 3 | +2,0,1721,569,27,28,130 | |
| 4 | +3,2,2297,1721,19,16,1228 | |
| 5 | +4,2,2873,1721,157,40,22 | |
| 6 | +5,1,3449,1145,32,33,292 | |
| 7 | +6,2,4025,1721,61,47,40 | |
| 8 | +7,2,4601,1721,23,19,922 | |
| 9 | +8,7,5177,4601,0,5,5177 | |
| 10 | +9,5,5753,3449,38,58,274 | |
| 11 | +10,9,6329,5753,64,38,274 | |
| 12 | +11,8,6905,5177,104,39,22 | |
| 13 | +12,10,7481,6329,59,51,286 | |
| 14 | +13,8,8057,5177,104,31,148 | |
| 15 | +14,6,8633,4025,20,37,2308 | |
| 16 | +15,11,9209,6905,34,31,7006 | |
| 17 | +16,12,9785,7481,89,55,760 | |
| 18 | +17,15,10361,9209,0,5,10361 | |
| 19 | +18,5,10937,3449,56,44,94 | |
| 20 | +19,18,11513,10937,28,15,2596 | |
| 21 | +20,8,12089,5177,35,39,22 | |
| 22 | +21,0,12665,569,66,15,814 | |
| 23 | +22,0,13241,569,64,0,569 | |
| 24 | +23,11,13817,6905,24,23,8302 | |
| 25 | +24,0,14393,569,16,1,1708 | |
| 26 | +25,20,14969,12089,45,24,202 | |
| 27 | +26,23,15545,13817,0,5,15545 | |
| 28 | +27,8,16121,5177,63,20,1384 | |
| 29 | +28,14,16697,8633,59,40,106 | |
| 30 | +29,20,17273,12089,84,24,202 | |
| 31 | +30,12,17849,7481,33,55,760 | |
| 32 | +31,20,18425,12089,55,39,52 | |
| 33 | +32,20,19001,12089,49,46,16 | |
+15 −0 routes/codex-odd-preimage-issue1/out/return-examples.csv added View file
| @@ -0,0 +1,15 @@ | ||
| 1 | +族,参数,起点,核对的原始步数,终点,五步前驱(如有) | |
| 2 | +首次返回,1,83,6,47, | |
| 3 | +首次返回,2,335,10,425, | |
| 4 | +首次返回,3,1343,14,3827, | |
| 5 | +首次返回,5,21503,22,310007, | |
| 6 | +首次返回,6,86015,26,2790065,76457 | |
| 7 | +首次返回,9,5505023,38,2033957567, | |
| 8 | +首次返回,15,22548578303,62,1080928443496907,20043180713 | |
| 9 | +首次返回,24,5910974510923775,98,418773826153580676782645,5254199565265577 | |
| 10 | +首次返回,60,27913787911483233330979948265887236095,242,9434304074550763854669194104925426458590247044573718308605,24812255921318429627537731791899765417 | |
| 11 | +连续返回,1,4601,5,5177, | |
| 12 | +连续返回,2,36857,10,46649, | |
| 13 | +连续返回,5,18874361,25,34012217, | |
| 14 | +连续返回,12,39582418599929,60,162679413013049, | |
| 15 | +连续返回,25,21760664753063325144711161,125,413509240910507091131663417, | |
+55 −0 routes/codex-odd-preimage-issue1/out/shift-lean.txt added View file
| @@ -0,0 +1,55 @@ | ||
| 1 | +Lean 4.35.0 eb6cafb7290e8bd5f2937522d8d804f58f02bafc | |
| 2 | +Imports: bundled Std and route-local modules. | |
| 3 | + | |
| 4 | +Inverse.lean | |
| 5 | +'CollatzRoute.back_iff_reaches' depends on axioms: [propext, Quot.sound] | |
| 6 | +'CollatzRoute.inverse_block' depends on axioms: [propext, Quot.sound] | |
| 7 | +'CollatzRoute.family_hits' depends on axioms: [propext, Quot.sound] | |
| 8 | +'CollatzRoute.sample_six' does not depend on any axioms | |
| 9 | +'CollatzRoute.sample_six_first' does not depend on any axioms | |
| 10 | +'CollatzRoute.six_step_drop' depends on axioms: [propext, Quot.sound] | |
| 11 | +'CollatzRoute.claim_iff_three_residues' depends on axioms: [propext, Quot.sound] | |
| 12 | + | |
| 13 | +Bridges.lean | |
| 14 | +'CollatzRoute.reaches_step_iff' does not depend on any axioms | |
| 15 | +'CollatzRoute.walk_sound' depends on axioms: [propext, Quot.sound] | |
| 16 | +'CollatzRoute.certificate_descends' depends on axioms: [propext, Quot.sound] | |
| 17 | +'CollatzRoute.claim_iff_remaining' depends on axioms: [propext, Quot.sound] | |
| 18 | + | |
| 19 | +Residues.lean | |
| 20 | +'CollatzRoute.remaining576' does not depend on any axioms | |
| 21 | +'CollatzRoute.claim_iff_mod576' depends on axioms: [propext, Quot.sound] | |
| 22 | +'CollatzRoute.residues576_count' does not depend on any axioms | |
| 23 | + | |
| 24 | +Checkpoint.lean | |
| 25 | +'CollatzRoute.predecessor_first_checkpoint' depends on axioms: [propext, Quot.sound] | |
| 26 | +'CollatzRoute.every_orbit_hits_two_mod_nine' depends on axioms: [propext, Classical.choice, Quot.sound] | |
| 27 | +'CollatzRoute.claim_iff_two_mod_nine' depends on axioms: [propext, Classical.choice, Quot.sound] | |
| 28 | + | |
| 29 | +CheckpointDescent.lean | |
| 30 | +'CollatzRoute.least_examples_match' does not depend on any axioms | |
| 31 | +'CollatzRoute.least_examples_first_hits' does not depend on any axioms | |
| 32 | +'CollatzRoute.four_refined' depends on axioms: [propext, Quot.sound] | |
| 33 | +'CollatzRoute.final_fifteen' does not depend on any axioms | |
| 34 | +'CollatzRoute.claim_iff_15_checkpoints' depends on axioms: [propext, Classical.choice, Quot.sound] | |
| 35 | +'CollatzRoute.smaller_checkpoint' depends on axioms: [propext, Quot.sound] | |
| 36 | +'CollatzRoute.checkpoint_table' does not depend on any axioms | |
| 37 | +'CollatzRoute.claim_iff_19_checkpoints' depends on axioms: [propext, Classical.choice, Quot.sound] | |
| 38 | +'CollatzRoute.checkpoint_residue_count' does not depend on any axioms | |
| 39 | + | |
| 40 | +FirstReturn.lean | |
| 41 | +'CollatzRoute.large_return_with_smaller_checkpoint' depends on axioms: [propext, Quot.sound] | |
| 42 | +'CollatzRoute.first_checkpoint_return' depends on axioms: [propext, Quot.sound] | |
| 43 | +'CollatzRoute.excursion_start_mod576' depends on axioms: [propext, Quot.sound] | |
| 44 | +'CollatzRoute.unbounded_first_return' depends on axioms: [propext, Quot.sound] | |
| 45 | + | |
| 46 | +RepeatedReturns.lean | |
| 47 | +'CollatzRoute.arbitrarily_many_rising_returns' depends on axioms: [propext, Classical.choice, Quot.sound] | |
| 48 | + | |
| 49 | +SingleClass.lean | |
| 50 | +'CollatzRoute.claim_iff_smaller_index' depends on axioms: [propext, Classical.choice, Quot.sound] | |
| 51 | +'CollatzRoute.check_merge_examples' does not depend on any axioms | |
| 52 | +'CollatzRoute.doubling_table' does not depend on any axioms | |
| 53 | +'CollatzRoute.ten_step_image' depends on axioms: [propext, Quot.sound] | |
| 54 | +'CollatzRoute.from_single_class' depends on axioms: [propext, Quot.sound] | |
| 55 | +'CollatzRoute.claim_iff_569' depends on axioms: [propext, Classical.choice, Quot.sound] | |
+82 −0 routes/codex-odd-preimage-issue1/out/single-class.csv added View file
| @@ -0,0 +1,82 @@ | ||
| 1 | +模729下的检查点余数,倍增指数,路线原始步数,样例起点,到达的检查点 | |
| 2 | +2,150,160,2255403761313121787351365482586856511814710713,2 | |
| 3 | +11,354,364,318937881611261302552892426724477867915216148617179241700990131936472830571119665161736901015215502880880057,11 | |
| 4 | +20,126,136,1344325400181485287756541658989701576121,20 | |
| 5 | +29,438,448,16264138120812191223711721009839607635999690941305728200743222049566774193895478222576805918749339044183729264337746265488042783356345,29 | |
| 6 | +38,318,328,16033087874566831235755224658655403526894374686331418322565448117974192509563326597703221590832569,38 | |
| 7 | +47,252,262,268752009587844996785572162736213909585367371816548469622444762882563807065529,47 | |
| 8 | +56,240,250,78177529384762091817611583242748394576860522054348374640837489202873447865,56 | |
| 9 | +65,282,292,399086547736248540001232668265967340821353701257130884365804425901918114886600856909241,65 | |
| 10 | +74,378,388,35996894549792487181588258856921326192295070444622753746026835949557819890009797348699453121746713054564079892379065,74 | |
| 11 | +83,42,52,288424976135609,83 | |
| 12 | +92,246,256,8219808803883557082537446466666116915509906318857200533665198864759265375673,92 | |
| 13 | +101,18,28,20919737,101 | |
| 14 | +110,330,340,190101791388548196883733526900099437186250775228249574721449692211432952029180327154241145262250603961,110 | |
| 15 | +119,210,220,154718058130349447124101793757491128962327362378584496781024769465,119 | |
| 16 | +128,144,154,2255403761313121787351365482586856511814710713,128 | |
| 17 | +137,132,142,589352255439563150152467863301085170972089,137 | |
| 18 | +146,174,184,2762275913165676213831094641530186923559702615293900217,146 | |
| 19 | +155,270,280,232340801153540128080645521263615301334547114238488908791690527399328830406487127481,155 | |
| 20 | +164,420,430,350862523021461139638009202314402567410166420032124936981449576559257634629724230076046143982313958956768640893264032237617100217,164 | |
| 21 | +173,138,148,47629986658590096339329373594668722722649529,173 | |
| 22 | +182,396,406,23208369274657647571228508113804847463111429841724379226428642118044339121336548020868911323307905447967129743162471298489,182 | |
| 23 | +191,222,232,1017155518701387101388918495134962856032532263645481351879662134834617,191 | |
| 24 | +200,102,112,801280379403522782180632149571001,200 | |
| 25 | +209,36,46,11348045936057,209 | |
| 26 | +218,24,34,2889823673,218 | |
| 27 | +227,66,76,13234286316190240290233,227 | |
| 28 | +236,162,172,1090099789147948527236960775967740184142380500202937,236 | |
| 29 | +245,312,322,1615175382100688179588828142010926753326119160424012125422917265174209360544002885048227504010681,245 | |
| 30 | +254,30,40,215490704825,254 | |
| 31 | +263,288,298,103344996484562083466165358034657881241615776916308108394541847642785933996481009592251833,263 | |
| 32 | +272,114,124,4463580430290087869504142227114243513,272 | |
| 33 | +281,480,490,693105258381269188755143760254324726451639370341812854037667639035835621616477344595599814290047402584423796657868848224095511044645932382078055865,281 | |
| 34 | +290,414,424,9694181752688998713321519499921564838886076772991256833519471913317903395828889741049293231218659308066206731997577110223795641,290 | |
| 35 | +299,402,412,2440194255164004087489168853108623961835716051929877587235925799840090513329099906194216961993516915671972498709654125098425,299 | |
| 36 | +308,444,454,11055127263360341841441567053308908473131927856379948768725875622105525962416126438739103388634033490998264526159505323631044805017941433,308 | |
| 37 | +317,54,64,4512050826671240633,317 | |
| 38 | +326,204,214,6622647971440903330154567327329583513881134471562309079649957305,326 | |
| 39 | +335,408,418,174975802109418888413939064249661865357049338305607275820529261366460002026006361166568600886759206260893278837240750642509241,335 | |
| 40 | +344,180,190,416536071946955667970584791972113666500619265604866487737,344 | |
| 41 | +353,6,16,17849,353 | |
| 42 | +362,372,382,2751451821584645346227818772425152044259040435167533119945463389725492145309025895318665969187565482633487525557689,362 | |
| 43 | +371,306,316,38216203237203782820628523002937106217091212277889572610452953149211203620014353976587525764537,371 | |
| 44 | +380,294,304,9556465074161786577555671130809428409871086291272293521502881120427961653210715411724580281,380 | |
| 45 | +389,336,346,43025219985539053723794817142771596256262720909840921929683741248143952488349758407563523204081736693177,389 | |
| 46 | +398,432,442,3487676170303476350774388449308277930564588897973965422357652142094599207527155351608603855421463868310950564227598606500129864103353,398 | |
| 47 | +407,96,106,25478212063846388464649787880889,407 | |
| 48 | +416,300,310,669556121406535278528532074175447952590546845839035638727612386711247502776531808215145330105,416 | |
| 49 | +425,72,82,1585782325111782096451001,425 | |
| 50 | +434,384,394,13511483013716704377781019973106037247529565900943805514184343180201594665742055826452378512292387862210430852577310137,434 | |
| 51 | +443,264,274,10375703116030068219730440112881207509193989073351873648661179802207930632063890873,443 | |
| 52 | +452,198,208,143473776988654539169376171010015900511612000630088367714809273,452 | |
| 53 | +461,186,196,35725233333497034964546900297515237257076368640715060622777,461 | |
| 54 | +470,228,238,160188680641558764449102975568898862353186232934325021280315377046205881,470 | |
| 55 | +479,324,334,12934482681124231009560846503572106592644051325899367370962273092226759094030877373136577923383244217,479 | |
| 56 | +488,474,484,18807571513014866776718758619000804409942171526179085452089735756755326031407970649613696028333136813901179535645017678678748297919662755919377849,488 | |
| 57 | +497,192,202,2464963604928142490568997407078882140288687925648296417113529,497 | |
| 58 | +506,450,460,1162367666547601656471570478747908090889299843185091756254606351124238158334038436987425727719235521339246098750485131170349853784743556537,506 | |
| 59 | +515,276,286,49406147135617307235729525037733937625720470227745770540478192148915343549663327237561,515 | |
| 60 | +524,156,166,37818610269698426130307696412016409990109069260217,524 | |
| 61 | +533,90,100,521340871853122122683443525049,533 | |
| 62 | +542,78,88,129429687749358817321629113,542 | |
| 63 | +551,120,130,578690074609373744963948792268223100345,551 | |
| 64 | +560,216,226,46597438683964068780905952002256151781595064434020742559932165862841,560 | |
| 65 | +569,366,376,67574934672033114727366578103846318766548429195887704819102584114028186752453199863446173017425965107840745944505,569 | |
| 66 | +578,84,94,8833695588974688875206096313,578 | |
| 67 | +587,342,352,4155196566623987584307258844266435290887603853832657468006063730617665827975125254126854600850752401257913,587 | |
| 68 | +596,168,178,176189687954488765351384033214040176203080346609071545,596 | |
| 69 | +605,48,58,134551988867118521,605 | |
| 70 | +614,468,478,369744137711037660121199980534915916614513746064099592327839963967974199003729955778138107114387359238451723709209812202508691563866320829101497,614 | |
| 71 | +623,456,466,91592734388509828551056241360941880237031943374458455544236490972382655828250554465538811493322843294147075986915697924948990850010464597433,623 | |
| 72 | +632,12,22,2045369,632 | |
| 73 | +641,108,118,164358631423250593080891266520004025,641 | |
| 74 | +650,258,268,237874119124560678005953233400563800824495375905710985878589407147120305828214201,650 | |
| 75 | +659,462,472,6200666397383291378762998452069156887443112750820481253665679363164062427307055192838787983214099901723831583987410073326883849261703619360185,659 | |
| 76 | +668,234,244,14571035052740255952612873216003328007071101766826092148459665956339135929,668 | |
| 77 | +677,60,70,616713369772906984889,677 | |
| 78 | +686,426,436,93928464699598962650409487917143477558389917713965934348985135422302726773069589007675182349997024719743722010840634581465494926777,686 | |
| 79 | +695,360,370,1289668815824445703413877740064070505897164935499284788260003733503119227618491155126732487014253233467413181881,695 | |
| 80 | +704,348,358,318937881611261302552892426724477867915216148617179241700990131936472830571119665161736901015215502880880057,704 | |
| 81 | +713,390,400,1420635928299356346006690100029434773454537214727805836919953797232624810569450441181278655006742495226696729642414323129,713 | |
| 82 | +722,0,10,569,722 | |
+258 −0 routes/codex-odd-preimage-issue1/reproduce.py added View file
| @@ -0,0 +1,258 @@ | ||
| 1 | +"""Reproduce the Collatz route from source. Uses Python's standard library and Lean 4.35.0.""" | |
| 2 | + | |
| 3 | +import argparse | |
| 4 | +import csv | |
| 5 | +import io | |
| 6 | +import os | |
| 7 | +from collections import deque | |
| 8 | +from pathlib import Path | |
| 9 | +import shutil | |
| 10 | +import subprocess | |
| 11 | +from tempfile import TemporaryDirectory | |
| 12 | + | |
| 13 | + | |
| 14 | +ROOT = Path(__file__).resolve().parent | |
| 15 | +OUT = ROOT / "out" | |
| 16 | +MODULES = ("Inverse", "Bridges", "Residues", "Checkpoint", "CheckpointDescent", | |
| 17 | + "FirstReturn", "RepeatedReturns", "SingleClass") | |
| 18 | +LEAN_COMMIT = "eb6cafb7290e8bd5f2937522d8d804f58f02bafc" | |
| 19 | +REFINEMENTS = ((92, 2), (272, 2), (497, 2), (560, 3)) | |
| 20 | + | |
| 21 | + | |
| 22 | +def require(condition, message): | |
| 23 | + if not condition: | |
| 24 | + raise ValueError(message) | |
| 25 | + | |
| 26 | + | |
| 27 | +def raw(n): | |
| 28 | + return n // 2 if n % 2 == 0 else 3 * n + 1 | |
| 29 | + | |
| 30 | + | |
| 31 | +def neighbours(a, b): | |
| 32 | + """Images of a*q+b valid simultaneously for every q >= 0.""" | |
| 33 | + if a % 2 == 0: | |
| 34 | + if b % 2: | |
| 35 | + yield "U", 3 * a, 3 * b + 1 | |
| 36 | + else: | |
| 37 | + yield "H", a // 2, b // 2 | |
| 38 | + yield "D", 2 * a, 2 * b | |
| 39 | + if a % 6 == 0 and b % 6 == 4: | |
| 40 | + yield "P", a // 3, (b - 1) // 3 | |
| 41 | + | |
| 42 | + | |
| 43 | +def search(modulus, base, limit, checkpoint): | |
| 44 | + queue = deque([(modulus, base, "")]) | |
| 45 | + seen = {(modulus, base)} | |
| 46 | + while queue: | |
| 47 | + a, b, path = queue.popleft() | |
| 48 | + if a <= modulus and 0 < b < base: | |
| 49 | + if not checkpoint or (a % 9 == 0 and b % 9 == 2): | |
| 50 | + return path, a, b | |
| 51 | + if len(path) == limit: | |
| 52 | + continue | |
| 53 | + for letter, c, d in neighbours(a, b): | |
| 54 | + if (c, d) not in seen: | |
| 55 | + queue.append((c, d, path + letter)) | |
| 56 | + seen.add((c, d)) | |
| 57 | + return None | |
| 58 | + | |
| 59 | + | |
| 60 | +def replay(n, path): | |
| 61 | + """Independent integer check: compare each edge to the one raw step function.""" | |
| 62 | + for letter in path: | |
| 63 | + if letter == "H" or letter == "U": | |
| 64 | + require(n % 2 == int(letter == "U"), "Wrong forward parity") | |
| 65 | + n = raw(n) | |
| 66 | + else: | |
| 67 | + if letter == "D": | |
| 68 | + parent = 2 * n | |
| 69 | + elif letter == "P": | |
| 70 | + parent, rem = divmod(n - 1, 3) | |
| 71 | + require(rem == 0 and parent % 2 == 1, "Invalid odd predecessor") | |
| 72 | + else: | |
| 73 | + raise ValueError(f"Unknown direction {letter!r}") | |
| 74 | + require(raw(parent) == n, "Reverse edge fails its forward check") | |
| 75 | + n = parent | |
| 76 | + return n | |
| 77 | + | |
| 78 | + | |
| 79 | +def csv_bytes(rows): | |
| 80 | + stream = io.StringIO(newline="") | |
| 81 | + csv.writer(stream, lineterminator="\n").writerows(rows) | |
| 82 | + return stream.getvalue().encode("utf-8-sig") | |
| 83 | + | |
| 84 | + | |
| 85 | +def certificate_rows(): | |
| 86 | + rows = [["归纳范围", "模数", "余数", "首项", "路径", "终点斜率", "终点截距"]] | |
| 87 | + | |
| 88 | + def record(label, modulus, bases, depth, checkpoint): | |
| 89 | + missing = [] | |
| 90 | + for base in bases: | |
| 91 | + residue = base % modulus | |
| 92 | + found = search(modulus, base, depth, checkpoint) | |
| 93 | + if found is None: | |
| 94 | + rows.append([label, modulus, residue, base, "", "", ""]) | |
| 95 | + missing.append(residue) | |
| 96 | + continue | |
| 97 | + path, slope, intercept = found | |
| 98 | + for q in (0, 1, 19, 2**127 + 1): | |
| 99 | + start = modulus * q + base | |
| 100 | + end = replay(start, path) | |
| 101 | + require(end == slope * q + intercept and 0 < end < start, "Endpoint mismatch") | |
| 102 | + require(not checkpoint or start % 9 == end % 9 == 2, "Lost checkpoint") | |
| 103 | + rows.append([label, modulus, residue, base, path, slope, intercept]) | |
| 104 | + return missing | |
| 105 | + | |
| 106 | + general = record("全体起点", 576, range(2, 578), 12, False) | |
| 107 | + remaining = record("检查点", 576, range(11, 579, 9), 12, True) | |
| 108 | + require(len(general) == 35 and len(remaining) == 19, "Unexpected table counts") | |
| 109 | + for residue, factor in REFINEMENTS: | |
| 110 | + modulus = 576 * factor | |
| 111 | + bases = (residue + 576 * j for j in range(factor)) | |
| 112 | + missing = record("检查点细分", modulus, bases, 22, True) | |
| 113 | + require(not missing, f"Uncovered subclass of {residue}") | |
| 114 | + remaining.remove(residue) | |
| 115 | + require(len(remaining) == 15, "Unexpected final class count") | |
| 116 | + return csv_bytes(rows), remaining | |
| 117 | + | |
| 118 | + | |
| 119 | +def least_examples(residues): | |
| 120 | + rows = [["模576余数及最小正代表", "首次到1步数", "峰值", "下个检查点步数", | |
| 121 | + "下个检查点值", "首次遇到更小检查点的步数", "更小检查点值"]] | |
| 122 | + for start in residues: | |
| 123 | + n = start | |
| 124 | + peak = start | |
| 125 | + first = lower = None | |
| 126 | + for t in range(1, 1001): | |
| 127 | + n = raw(n) | |
| 128 | + peak = max(peak, n) | |
| 129 | + if n % 9 == 2: | |
| 130 | + if first is None: | |
| 131 | + first = t, n | |
| 132 | + if n < start and lower is None: | |
| 133 | + lower = t, n | |
| 134 | + if n == 1: | |
| 135 | + break | |
| 136 | + require(n == 1 and first is not None and lower is not None, f"Incomplete sample {start}") | |
| 137 | + rows.append([start, t, peak, *first, *lower]) | |
| 138 | + return csv_bytes(rows) | |
| 139 | + | |
| 140 | + | |
| 141 | +def returns_table(): | |
| 142 | + rows = [["族", "参数", "起点", "核对的原始步数", "终点", "五步前驱(如有)"]] | |
| 143 | + for k in (1, 2, 3, 5, 6, 9, 15, 24, 60): | |
| 144 | + start = 21 * 4**k - 1 | |
| 145 | + end = (21 * 9**k - 1) // 4 | |
| 146 | + n = start | |
| 147 | + for t in range(1, 4 * k + 3): | |
| 148 | + n = raw(n) | |
| 149 | + require((n % 9 == 2) == (t == 4 * k + 2), f"Wrong first return, k={k}") | |
| 150 | + require(n == end, "Wrong return value") | |
| 151 | + small = "" | |
| 152 | + if k % 9 == 6: | |
| 153 | + q, residue = divmod(start, 81) | |
| 154 | + small = 72 * q + 65 | |
| 155 | + require(residue == 74 and small % 9 == 2 and small < start, "Invalid predecessor") | |
| 156 | + require(replay(small, "UHHUH") == start, "Five-step path fails") | |
| 157 | + rows.append(["首次返回", k, start, 4 * k + 2, n, small]) | |
| 158 | + for length in (1, 2, 5, 12, 25): | |
| 159 | + start = 9 * 8**(length + 2) - 7 | |
| 160 | + n = last_checkpoint = start | |
| 161 | + require(start % 576 == 569, "Wrong starting residue") | |
| 162 | + for t in range(1, 5 * length + 1): | |
| 163 | + n = raw(n) | |
| 164 | + require((n % 9 == 2) == (t % 5 == 0), "Unexpected checkpoint") | |
| 165 | + if t == 3: | |
| 166 | + require(n < start, "Missed the short ordinary descent") | |
| 167 | + if t % 5 == 0: | |
| 168 | + require(n > last_checkpoint, "Checkpoint failed to grow") | |
| 169 | + last_checkpoint = n | |
| 170 | + rows.append(["连续返回", length, start, 5 * length, n, ""]) | |
| 171 | + return csv_bytes(rows) | |
| 172 | + | |
| 173 | + | |
| 174 | +def single_class_table(): | |
| 175 | + rows = [["模729下的检查点余数", "倍增指数", "路线原始步数", "样例起点", "到达的检查点"]] | |
| 176 | + for checkpoint in range(2, 729, 9): | |
| 177 | + exponent = next(e for e in range(0, 481, 6) if | |
| 178 | + pow(2, e, 729) * checkpoint % 729 == 722) | |
| 179 | + for n in (checkpoint, checkpoint + 729 * 17): | |
| 180 | + q, r = divmod(2**exponent * n, 729) | |
| 181 | + require(r == 722, "Doubling missed target progression") | |
| 182 | + start = 576 * q + 569 | |
| 183 | + value = start | |
| 184 | + for _ in range(10 + exponent): | |
| 185 | + value = raw(value) | |
| 186 | + require(value == n, "Single-class bridge missed checkpoint") | |
| 187 | + if n == checkpoint: | |
| 188 | + rows.append([n, exponent, 10 + exponent, start, n]) | |
| 189 | + return csv_bytes(rows) | |
| 190 | + | |
| 191 | + | |
| 192 | +def lower_index_rows(): | |
| 193 | + rows = [["起点下标q", "较小下标p", "起点", "较小下标的起点", "原轨道步数", "另一轨道步数", "相遇值"]] | |
| 194 | + visited = [] | |
| 195 | + for q in range(33): | |
| 196 | + start = 576*q + 569 | |
| 197 | + positions = {} | |
| 198 | + value = start | |
| 199 | + for t in range(513): | |
| 200 | + positions[value] = t | |
| 201 | + if value == 1: | |
| 202 | + break | |
| 203 | + value = raw(value) | |
| 204 | + require(value == 1, f"Example exceeds search bound: {q}") | |
| 205 | + if q: | |
| 206 | + choices = ((s + earlier[v], s, earlier[v], p, v) | |
| 207 | + for p, earlier in enumerate(visited) | |
| 208 | + for v, s in positions.items() if v in earlier) | |
| 209 | + _, s, t, p, meet = min(choices) | |
| 210 | + rows.append([q, p, start, 576*p+569, s, t, meet]) | |
| 211 | + visited.append(positions) | |
| 212 | + return rows | |
| 213 | + | |
| 214 | +def run_lean(executable): | |
| 215 | + lean = shutil.which(executable) | |
| 216 | + if lean is None: | |
| 217 | + raise ValueError(f"Lean executable not found: {executable}") | |
| 218 | + def invoke(args, env=None): | |
| 219 | + proc = subprocess.run([lean, *args], cwd=ROOT, env=env, text=True, | |
| 220 | + encoding="utf-8", stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | |
| 221 | + if proc.returncode: | |
| 222 | + raise RuntimeError(proc.stdout) | |
| 223 | + return proc.stdout.strip() | |
| 224 | + version = invoke(["--version"]) | |
| 225 | + require("version 4.35.0," in version and LEAN_COMMIT in version, f"Unexpected toolchain: {version}") | |
| 226 | + log = [f"Lean 4.35.0 {LEAN_COMMIT}", "Imports: bundled Std and route-local modules."] | |
| 227 | + with TemporaryDirectory() as scratch: | |
| 228 | + env = dict(os.environ, LEAN_PATH=scratch) | |
| 229 | + for module in MODULES: | |
| 230 | + output = invoke(["-DwarningAsError=true", "-o", str(Path(scratch) / (module + ".olean")), | |
| 231 | + module + ".lean"], env) | |
| 232 | + require(output and "sorryAx" not in output, f"Missing or incomplete proof: {module}") | |
| 233 | + log.extend(("", module + ".lean", output)) | |
| 234 | + return ("\n".join(log) + "\n").encode("utf-8") | |
| 235 | + | |
| 236 | + | |
| 237 | +def main(): | |
| 238 | + parser = argparse.ArgumentParser(description=__doc__) | |
| 239 | + parser.add_argument("--write", action="store_true", help="replace the six generated outputs") | |
| 240 | + parser.add_argument("--lean", default="lean", help="Lean executable (default: lean on PATH)") | |
| 241 | + args = parser.parse_args() | |
| 242 | + table, residues = certificate_rows() | |
| 243 | + outputs = {"certificates.csv": table, "least-representatives.csv": least_examples(residues), | |
| 244 | + "return-examples.csv": returns_table(), "single-class.csv": single_class_table(), | |
| 245 | + "lower-index.csv": csv_bytes(lower_index_rows()), "shift-lean.txt": run_lean(args.lean)} | |
| 246 | + for name, expected in outputs.items(): | |
| 247 | + path = OUT / name | |
| 248 | + if args.write: | |
| 249 | + path.write_bytes(expected) | |
| 250 | + else: | |
| 251 | + # Git on Windows can check text files out with CRLF. | |
| 252 | + require(path.read_bytes().replace(b"\r\n", b"\n") == expected, f"Output differs: {name}") | |
| 253 | + print("OK: 8 Lean modules; 576 general, 64 checkpoint and 9 refinement rows; " | |
| 254 | + "15 least representatives, 14 family examples and 81 single-class bridges; 32 lower-index witnesses.") | |
| 255 | + | |
| 256 | + | |
| 257 | +if __name__ == "__main__": | |
| 258 | + main() | |