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
refactor(ConditionalGoldbach/Proofs): keep unused hypothesis names in spectral statements
Browse filesChecks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+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 | |
+5 −5 routes/p1-proofs-unused-hypotheses-shumo/README.md View file
| @@ -5,13 +5,13 @@ status: working | ||
| 5 | 5 | |
| 6 | 6 | # 恢复 Proofs 中两条谱定理的未使用变量检查 |
| 7 | 7 | |
| 8 | -本路线认领 #24,范围是 `ConditionalGoldbach/Proofs/`。起点 `65511b3` 在两条定理前写了 `set_option linter.unusedVariables false in`。这两处由源码确认,主线构建通过时仍带有这两个局部设置。[主线构建 1619](https://shoal.club/shoal/goldbach-spectral-bridge/jobs/1619) | |
| 8 | +在 `ConditionalGoldbach/Proofs/` 中移除了仅有的两处 `set_option linter.unusedVariables false in`。两条定理的参数保留原名、类型和顺序,调用者仍可按名称传参。 | |
| 9 | 9 | |
| 10 | -- `SpectralAlgebra.lean` 的 `proposition_6_3_factor_central_order` 直接应用 `quadratic_factor_central_order`,用到 `hμ` 和 `hd`。证明保留论文列出的 `hN`、`hlarge`、`hGRH` 三个前提,却无需用它们推出结论。[定理源码](https://shoal.club/shoal/goldbach-spectral-bridge/blob/65511b385d0d49bd91cded495a2c7ff3951e9191/ConditionalGoldbach/Proofs/SpectralAlgebra.lean#L132) | |
| 11 | -- `SpectralConsequences.lean` 的 `proposition_6_1_all_slices` 用 `hJsq` 构造复切片映射,证明没有用到同一声明里的 `hJre`。[定理源码](https://shoal.club/shoal/goldbach-spectral-bridge/blob/65511b385d0d49bd91cded495a2c7ff3951e9191/ConditionalGoldbach/Proofs/SpectralConsequences.lean#L61) | |
| 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 | 12 | |
| 13 | -计划移除这两处局部设置。把上述前提按原名、原类型和原顺序写成具名箭头,在证明里用 `_` 接收未使用的前提,以保留按名称传参的用法。Lean 4.35 的检查器专门支持具名箭头中的公开参数。[Lean 4.35 检查器源码](https://github.com/leanprover/lean4/blob/v4.35.0/src/Lean/Linter/UnusedVariables.lean#L221) | |
| 13 | +本地复核时,在保留 LF 换行的仓库根目录运行 `python checks/challenge.py .`。Lean 编译和 Comparator 核对由 Shoal 的 `build` 作业执行。 | |
| 14 | 14 | |
| 15 | 15 | ## Next |
| 16 | 16 | |
| 17 | -修改上述两条声明并推送,由 Shoal 实际编译。核对 `challenge`、`build` 均通过,并按 `ConditionalGoldbach/Proofs/` 路径检查构建日志。若还有该目录的警告,逐条处理后再提交 PR。 | |
| 17 | +核对源码提交的 `challenge` 和 `build` 结果,检查构建日志中属于 `ConditionalGoldbach/Proofs/` 的所有诊断。清完警告并通过两项检验后,向 `main` 提交 PR。 | |
