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.
Sign in to open a pull request.
2 commits
+1 −1 ConditionalGoldbach/Proofs/SpectralPerronFubini.lean View file
| @@ -188,7 +188,7 @@ lemma perron_resolvent_difference_integral {X c : ℝ} (hX : 1 < X) (hc : 0 < c) | ||
| 188 | 188 | have h₂ := smoothedPerronKernel_integral hX hc |
| 189 | 189 | simp_rw [mul_sub, ← div_eq_mul_inv] |
| 190 | 190 | refine ⟨h₁.1.sub (h₂.1.div_const a), ?_⟩ |
| 191 | - rw [integral_sub h₁.1 (h₂.1.div_const a), integral_div_const_complex, h₁.2, h₂.2] | |
| 191 | + rw [integral_sub h₁.1 (h₂.1.div_const a), integral_div a, h₁.2, h₂.2] | |
| 192 | 192 | simp |
| 193 | 193 | |
| 194 | 194 | def perronResolventNormConstant (X c σ : ℝ) : ℝ := |
+1 −5 ConditionalGoldbach/Proofs/SpectralPerronIntegral.lean View file
| @@ -196,10 +196,6 @@ lemma perron_weight_integrand_eq {X : ℝ} (hX : 1 < X) (n : ℕ) (hn : 0 < n) ( | ||
| 196 | 196 | rw [Complex.cpow_neg] |
| 197 | 197 | ring |
| 198 | 198 | |
| 199 | -lemma integral_div_const_complex (f : ℝ → ℂ) (z : ℂ) : | |
| 200 | - (∫ t : ℝ, f t / z) = (∫ t : ℝ, f t) / z := by | |
| 201 | - simp only [div_eq_mul_inv, integral_mul_const] | |
| 202 | - | |
| 203 | 199 | /-- The actual cutoff weight is the integral of the smoothed Perron kernel. -/ |
| 204 | 200 | lemma perron_weight_integral {X c : ℝ} (hX : 1 < X) (hc : 0 < c) (n : ℕ) (hn : 0 < n) : |
| 205 | 201 | Integrable (fun t : ℝ => (n : ℂ)^(-line c (2 * Real.pi * t)) * |
| @@ -211,7 +207,7 @@ lemma perron_weight_integral {X c : ℝ} (hX : 1 < X) (hc : 0 < c) (n : ℕ) (hn | ||
| 211 | 207 | have hi₂ := perron_positivePart_integrable hc (div_pos (Real.sqrt_pos.mpr (show 0 < X by linarith)) hnR) |
| 212 | 208 | simp_rw [perron_weight_integrand_eq hX n hn] |
| 213 | 209 | refine ⟨(hi₁.sub hi₂).div_const _, ?_⟩ |
| 214 | - rw [integral_div_const_complex, integral_sub hi₁ hi₂, | |
| 210 | + rw [integral_div, integral_sub hi₁ hi₂, | |
| 215 | 211 | perron_positivePart_integral hc (div_pos (show 0 < X by linarith) hnR), |
| 216 | 212 | perron_positivePart_integral hc (div_pos (Real.sqrt_pos.mpr (show 0 < X by linarith)) hnR), |
| 217 | 213 | smoothedPerronWeight_positiveParts hX n hn] |
+2 −2 ConditionalGoldbach/Proofs/SpectralPerronPoleIntegral.lean View file
| @@ -216,7 +216,7 @@ lemma perron_single_pole_integral {c Y : ℝ} (hc : 0 < c) (hY : 1 < Y) | ||
| 216 | 216 | ring |
| 217 | 217 | simp_rw [he] |
| 218 | 218 | refine ⟨hi₁.sub hi₂, ?_⟩ |
| 219 | - rw [integral_sub hi₁ hi₂, integral_div_const_complex, integral_div_const_complex, | |
| 219 | + rw [integral_sub hi₁ hi₂, integral_div a, integral_div (a ^ 2), | |
| 220 | 220 | perron_positivePart_integral hc (show 0 < Y by linarith), |
| 221 | 221 | max_eq_left (Real.log_pos hY).le, perronCauchyDifference_integral hc hY ha] |
| 222 | 222 | |
| @@ -244,7 +244,7 @@ lemma smoothedPerron_single_pole_integral {X c : ℝ} (hX : 1 < X) (hc : 0 < c) | ||
| 244 | 244 | ring |
| 245 | 245 | simp_rw [he] |
| 246 | 246 | refine ⟨(h₁.1.sub h₂.1).div_const _, ?_⟩ |
| 247 | - rw [integral_div_const_complex, integral_sub h₁.1 h₂.1, h₁.2, h₂.2] | |
| 247 | + rw [integral_div, integral_sub h₁.1 h₂.1, h₁.2, h₂.2] | |
| 248 | 248 | have hlog : (Real.log X : ℂ) = 2 * (Real.log (Real.sqrt X) : ℂ) := by |
| 249 | 249 | rw [Real.log_sqrt (by linarith : 0 ≤ X)] |
| 250 | 250 | push_cast |
+22 −0 routes/m1-mathlib-lemma-shumo/README.md added View file
| @@ -0,0 +1,22 @@ | ||
| 1 | +--- | |
| 2 | +issue: 27 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# 用 Mathlib 的积分引理替换重复证明 | |
| 6 | + | |
| 7 | +已删除 `ConditionalGoldbach.integral_div_const_complex`。锁定版 Mathlib 的 `MeasureTheory.integral_div` 依次取隐式参数 `{α}`、`{m : MeasurableSpace α}`、`{μ : Measure α}`、`{L}` 和实例 `[RCLike L]`,再取显式参数 `(r : L)`、`(f : α → L)`。取 `α = ℝ`、`L = ℂ`、`μ = volume`,就得到原引理的等式 `(∫ t : ℝ, f t / r) = (∫ t : ℝ, f t) / r`。两者都允许除数为零,都无需可积性假设。[锁定版 Mathlib 声明](https://github.com/leanprover-community/mathlib4/blob/56a005855ea17e0b0958f73ec801ae140b0a1679/Mathlib/MeasureTheory/Integral/Bochner/Basic.lean#L297-L299) | |
| 8 | + | |
| 9 | +四处证明中的五次重写直接使用 `integral_div`。三个文件都打开了 `MeasureTheory` 命名空间。`SpectralPerronIntegral` 经 `SpectralPoissonConvolution` 和 Mathlib 的傅里叶卷积模块间接导入 `Mathlib.MeasureTheory.Integral.Bochner.Basic`。`SpectralPerronPoleIntegral` 公开导入前者,`SpectralPerronFubini` 又公开导入后者。 | |
| 10 | + | |
| 11 | +| 证明 | 移出积分的常数除数 | 调用位置 | | |
| 12 | +| --- | --- | --- | | |
| 13 | +| `perron_weight_integral` | `(Real.log (Real.sqrt X) : ℂ)` | [SpectralPerronIntegral.lean 第 210 行](../../ConditionalGoldbach/Proofs/SpectralPerronIntegral.lean#L210) | | |
| 14 | +| `perron_single_pole_integral` | 先 `a`,再 `a ^ 2` | [SpectralPerronPoleIntegral.lean 第 219 行](../../ConditionalGoldbach/Proofs/SpectralPerronPoleIntegral.lean#L219) | | |
| 15 | +| `smoothedPerron_single_pole_integral` | `(Real.log (Real.sqrt X) : ℂ)` | [SpectralPerronPoleIntegral.lean 第 247 行](../../ConditionalGoldbach/Proofs/SpectralPerronPoleIntegral.lean#L247) | | |
| 16 | +| `perron_resolvent_difference_integral` | `a` | [SpectralPerronFubini.lean 第 191 行](../../ConditionalGoldbach/Proofs/SpectralPerronFubini.lean#L191) | | |
| 17 | + | |
| 18 | +在 LF 工作树的仓库根目录运行 `python checks/challenge.py .` 可复现本地检查。Shoal 的 `build` 会运行 `lake build` 和 `lake comparator --config comparator.json`。 | |
| 19 | + | |
| 20 | +## Next | |
| 21 | + | |
| 22 | +等本次 Lean 提交的 `challenge` 和 `build` 都通过后,向 `main` 提交 PR,请维护者审阅。 | |
