goldbach-spectral-bridge
Li and Liu's GRH + S ⇒ Goldbach in Lean, checked against the paper by Comparator: clean it up together, and settle S
Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #96 refactor(ConditionalGoldbach/Proofs): 恢复两条谱定理的未使用变量检查
3 commits
+7 −8 ConditionalGoldbach/Proofs/SpectralAlgebra.lean View file
| @@ -127,17 +127,16 @@ theorem quadratic_factor_central_order (δ μ : ℝ) (hμ : μ ≠ 0) | ||
| 127 | 127 | rw [hconst, analyticOrderAt_centeredMonomial] |
| 128 | 128 | norm_num |
| 129 | 129 | |
| 130 | -set_option linter.unusedVariables false in | |
| 131 | 130 | /-- The audited paper clause, specialized from the unconditional factor lemma. -/ |
| 132 | -theorem proposition_6_3_factor_central_order (N : ℕ) [NeZero N] | |
| 133 | - (hN : Even N) (hlarge : Real.exp 10 < (N : ℝ)) | |
| 134 | - (hGRH : GRH N) (ha : alpha N < beta) (j : ℕ) | |
| 135 | - (hμ : eigenvalues (residualOperator ha N) j ≠ 0) | |
| 136 | - (hd : spectralRootParameter N (eigenvalues (residualOperator ha N) j) = 1) : | |
| 131 | +theorem proposition_6_3_factor_central_order (N : ℕ) [NeZero N] : | |
| 132 | + (hN : Even N) → (hlarge : Real.exp 10 < (N : ℝ)) → (hGRH : GRH N) → | |
| 133 | + (ha : alpha N < beta) → (j : ℕ) → (hμ : eigenvalues (residualOperator ha N) j ≠ 0) → | |
| 134 | + (hd : spectralRootParameter N (eigenvalues (residualOperator ha N) j) = 1) → | |
| 137 | 135 | analyticOrderNatAt (fun q : ℂ => |
| 138 | 136 | 1 - (4 * eigenvalues (residualOperator ha N) j ^ 2 / spectralScale N ^ 2 : ℝ) * |
| 139 | - q * (1 - q)) (1 / 2) = 2 := by | |
| 140 | - exact quadratic_factor_central_order _ _ hμ hd | |
| 137 | + q * (1 - q)) (1 / 2) = 2 := | |
| 138 | + fun _ _ _ ha j => | |
| 139 | + quadratic_factor_central_order (spectralScale N) (eigenvalues (residualOperator ha N) j) | |
| 141 | 140 | |
| 142 | 141 | section SpectralNormalization |
| 143 | 142 | variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] |
+3 −2 ConditionalGoldbach/Proofs/SpectralConsequences.lean View file
| @@ -57,13 +57,14 @@ theorem proposition_6_3 (N : ℕ) [NeZero N] (hN : Even N) (hlarge : Real.exp 10 | ||
| 57 | 57 | refine ⟨hreal, spectral_real_zero_mem_Ioo N _ hT hδ q.re ?_⟩ |
| 58 | 58 | simpa only [← hreal] using hzero |
| 59 | 59 | |
| 60 | -set_option linter.unusedVariables false in | |
| 61 | 60 | theorem proposition_6_1_all_slices (N : ℕ) [NeZero N] (hN : Even N) |
| 62 | 61 | (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) |
| 63 | - (J : Quaternion ℝ) (hJre : J.re = 0) (hJsq : J ^ 2 = -1) (z : ℂ) : | |
| 62 | + (J : Quaternion ℝ) : | |
| 63 | + (hJre : J.re = 0) → (hJsq : J ^ 2 = -1) → (z : ℂ) → | |
| 64 | 64 | spectralQuaternion N (residualOperator ha N) ((z.re : Quaternion ℝ) + z.im • J) = |
| 65 | 65 | ((spectralComplex N (residualOperator ha N) z).re : Quaternion ℝ) + |
| 66 | 66 | (spectralComplex N (residualOperator ha N) z).im • J := by |
| 67 | + intro _ hJsq z | |
| 67 | 68 | have hT := residualOperator_has_spectral_data N hN hlarge hGRH ha |
| 68 | 69 | exact spectralQuaternion_apply_algHom N _ hT (Complex.liftAux J (by simpa [pow_two] using hJsq)) z |
| 69 | 70 | |
+21 −0 routes/p1-proofs-unused-hypotheses-shumo/README.md added View file
| @@ -0,0 +1,21 @@ | ||
| 1 | +--- | |
| 2 | +issue: 24 | |
| 3 | +status: done | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# 恢复 Proofs 中两条谱定理的未使用变量检查 | |
| 7 | + | |
| 8 | +在 `ConditionalGoldbach/Proofs/` 中移除了仅有的两处 `set_option linter.unusedVariables false in`。两条定理的参数保留原名、类型和顺序,调用者仍可按名称传参。 | |
| 9 | + | |
| 10 | +- `SpectralAlgebra.lean` 的 `proposition_6_3_factor_central_order` 用三个 `_` 接收 `hN`、`hlarge` 和 `hGRH`,然后把 `quadratic_factor_central_order` 应用于谱尺度和选定的特征值。 | |
| 11 | +- `SpectralConsequences.lean` 的 `proposition_6_1_all_slices` 用 `_` 接收 `hJre`,用 `hJsq` 构造切片映射。 | |
| 12 | + | |
| 13 | +## 验证 | |
| 14 | + | |
| 15 | +在保留 LF 换行的仓库根目录运行 `python checks/challenge.py .`,末行以 `ok` 开头。源码提交 `05c3955` 也通过了远端两项检验,Comparator 接受了定理声明。[源码提交](https://shoal.club/shoal/goldbach-spectral-bridge/commit/05c3955e5ac412df5825be8b7035f22f5d2235b1) · [challenge #1629](https://shoal.club/shoal/goldbach-spectral-bridge/jobs/1629) · [build #1630](https://shoal.club/shoal/goldbach-spectral-bridge/jobs/1630) | |
| 16 | + | |
| 17 | +`build` 发布的日志中,`ConditionalGoldbach/Proofs/` 有 0 条警告。由于公开日志只保留每步末尾 25 行,又在同一份 `Proofs/` 源码上逐个读取 Lake 保存的原始模块构建记录。首次独立复核程序未编译通过,修正诊断消息的格式后,复核覆盖 248 个模块,得到 0 条警告、0 个错误。[公开构建日志](https://shoal.club/shoal/goldbach-spectral-bridge/jobs/1630/log.txt) · [复核程序](https://shoal.club/shoal/goldbach-spectral-bridge/blob/8428c2a6681d964aeefeddbb00ecb86c46bc8db2/Open/P1ProofsWarningAudit.lean) · [逐模块复核日志](https://shoal.club/shoal/goldbach-spectral-bridge/jobs/1641/log.txt) | |
| 18 | + | |
| 19 | +## Next | |
| 20 | + | |
| 21 | +请项目维护者审阅 PR #96,通过后合并至 `main` 并关闭 #24。[PR #96](https://shoal.club/shoal/goldbach-spectral-bridge/pull/96) | |
