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
feat: expose the full residual truncation bound for every positive height
Browse filesChecks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+31 −16 ConditionalGoldbach/Proofs/ResidualWindow.lean View file
| @@ -214,33 +214,48 @@ private lemma residual_eq_compression (N : ℕ) [NeZero N] (hlarge : Real.exp 10 | ||
| 214 | 214 | have hcol := (weightedKernel_inputs_of_growth_at _ N ha hN hGRH hab L Z hL hZ hlog hζ).2 |
| 215 | 215 | exact kernelOperator_eq_boundaryCompression hab N _ (weightedKernel_hermitian N) _ hcol |
| 216 | 216 | |
| 217 | -/-- A single constant bounds the squared truncation error by `C / log(N)^2` at | |
| 218 | -height `log(N)^36`, on all sufficiently large positive even moduli satisfying local GRH. -/ | |
| 219 | -theorem windowResidual_error_log : | |
| 217 | +/-- A uniform squared operator-norm error for every positive spectral height. | |
| 218 | +The omitted region includes points where only one height exceeds the cutoff. -/ | |
| 219 | +theorem windowResidual_error_height : | |
| 220 | 220 | ∃ C : ℝ, 0 ≤ C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → |
| 221 | - ∀ hlarge : Real.exp 10 < (N : ℝ), ∀ hGRH : GRH N, | |
| 221 | + ∀ hlarge : Real.exp 10 < (N : ℝ), ∀ hGRH : GRH N, ∀ H : ℝ, 0 < H → | |
| 222 | 222 | ‖residualOperator (large_parameters hlarge).2.2 N - |
| 223 | - windowResidualOperator N hlarge hGRH (Real.log N ^ 36)‖ ^ 2 ≤ C / Real.log N ^ 2 := by | |
| 223 | + windowResidualOperator N hlarge hGRH H‖ ^ 2 ≤ | |
| 224 | + C * Real.log N ^ 16 * H ^ (-(1 / 2 : ℝ)) := by | |
| 224 | 225 | obtain ⟨A, hA, hbound⟩ := weightedKernel_standard_height_bound |
| 225 | 226 | have hd : 0 ≤ ∫ t, decay t := integral_nonneg (fun _ => by unfold decay; positivity) |
| 226 | 227 | refine ⟨32*A*(∫ t, decay t), by positivity, ?_⟩ |
| 227 | - intro N _ he hlarge hGRH | |
| 228 | + intro N _ he hlarge hGRH H hH | |
| 228 | 229 | obtain ⟨_, hL, hab⟩ := large_parameters hlarge |
| 229 | - let L := Real.log (N : ℝ) | |
| 230 | - have hH : 0 < L^36 := pow_pos hL _ | |
| 231 | 230 | rw [residual_eq_compression N hlarge hGRH] |
| 232 | - apply (window_error_le_tail_energy hab _ (residual_blocks N hlarge hGRH) (L^36)).trans | |
| 233 | - apply (window_tail_integral_bound hab hH (mul_nonneg hA.le (pow_nonneg hL.le 16)) | |
| 234 | - (weightedKernel N) (residual_blocks N hlarge hGRH) (hbound N inferInstance he hlarge hGRH)).trans | |
| 231 | + apply (window_error_le_tail_energy hab _ (residual_blocks N hlarge hGRH) H).trans | |
| 232 | + calc | |
| 233 | + _ ≤ 32 * (A * Real.log N ^ 16) * (∫ t, decay t) * H ^ (-(1 / 2 : ℝ)) := | |
| 234 | + window_tail_integral_bound hab hH (mul_nonneg hA.le (pow_nonneg hL.le 16)) | |
| 235 | + (weightedKernel N) (residual_blocks N hlarge hGRH) (hbound N inferInstance he hlarge hGRH) | |
| 236 | + _ = _ := by ring | |
| 237 | + | |
| 238 | +/-- At height `log(N)^36` the squared error is at most `C / log(N)^2`. -/ | |
| 239 | +theorem windowResidual_error_log : | |
| 240 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ N : ℕ, ∀ (_ : NeZero N), Even N → | |
| 241 | + ∀ hlarge : Real.exp 10 < (N : ℝ), ∀ hGRH : GRH N, | |
| 242 | + ‖residualOperator (large_parameters hlarge).2.2 N - | |
| 243 | + windowResidualOperator N hlarge hGRH (Real.log N ^ 36)‖ ^ 2 ≤ C / Real.log N ^ 2 := by | |
| 244 | + obtain ⟨C, hC, herr⟩ := windowResidual_error_height | |
| 245 | + refine ⟨C, hC, ?_⟩ | |
| 246 | + intro N _ he hlarge hGRH | |
| 247 | + let L := Real.log (N : ℝ) | |
| 248 | + have hL : 0 < L := (large_parameters hlarge).2.1 | |
| 235 | 249 | have hp : (L^36) ^ (-(1/2 : ℝ)) = (L^18)⁻¹ := by |
| 236 | 250 | rw [← Real.rpow_natCast_mul hL.le, |
| 237 | 251 | show ((36 : ℕ) : ℝ) * -(1/2 : ℝ) = -((18 : ℕ) : ℝ) by norm_num, |
| 238 | 252 | Real.rpow_neg hL.le, Real.rpow_natCast] |
| 239 | - rw [hp] | |
| 240 | - change 32 * (A * L^16) * _ * (L^18)⁻¹ ≤ _ / L^2 | |
| 241 | - field_simp [hL.ne'] | |
| 242 | - ring_nf | |
| 243 | - exact le_rfl | |
| 253 | + calc | |
| 254 | + _ ≤ C * L ^ 16 * (L ^ 36) ^ (-(1 / 2 : ℝ)) := | |
| 255 | + herr N inferInstance he hlarge hGRH (L ^ 36) (pow_pos hL _) | |
| 256 | + _ = C / L ^ 2 := by | |
| 257 | + rw [hp, ← div_eq_mul_inv] | |
| 258 | + exact (div_eq_div_iff (pow_ne_zero 18 hL.ne') (pow_ne_zero 2 hL.ne')).2 (by ring) | |
| 244 | 259 | |
| 245 | 260 | end ResidualAverage |
| 246 | 261 | end ConditionalGoldbach |
+1 −1 ConditionalGoldbach/Proofs/ResidualWindowAverage.lean View file
| @@ -54,7 +54,7 @@ private lemma ratio_difference (hF : FamilyGRH) : | ||
| 54 | 54 | refine ⟨Real.sqrt C, ?_⟩ |
| 55 | 55 | intro N he hl |
| 56 | 56 | obtain ⟨hN, hL, hab⟩ := large_parameters hl |
| 57 | - haveI : NeZero N := ⟨by omega⟩ | |
| 57 | + have : NeZero N := ⟨by omega⟩ | |
| 58 | 58 | let T := residualOperator hab N |
| 59 | 59 | let W := windowResidualOperator N hl (hF N he hl) (Real.log N ^ 36) |
| 60 | 60 | have hb : ‖T - W‖ ≤ Real.sqrt C / Real.log N := by |
+2 −2 routes/s3-average-n-shumo/README.md View file
| @@ -27,10 +27,10 @@ $$ | ||
| 27 | 27 | |
| 28 | 28 | 窗外为 $|t|>H$ **或** $|u|>H$。控制该并集的两项分别将 $d(t)$ 或 $d(u)$ 换成其尾部。对 $H>0$,$\int_{|t|>H}d(t)\,dt\le4H^{-1/2}$。四块求和后,用算子范数不超过希尔伯特–施密特范数(HS 范数),得到 |
| 29 | 29 | $$ |
| 30 | -\|B_N-Q_HB_NQ_H\|^2\ll L^{16}H^{-1/2},\qquad | |
| 30 | +\|T_N-T_{N,H}\|^2\le\|B_N-Q_HB_NQ_H\|^2\ll L^{16}H^{-1/2},\qquad | |
| 31 | 31 | \|T_N-T_{N,L^{36}}\|^2\le C/L^2 . |
| 32 | 32 | $$ |
| 33 | -第二式是 Lean 定理 `windowResidual_error_log`。记 $q_N=\|T_{N,L^{36}}\|/\mathfrak S_N$,则 $|r_N-q_N|\ll1/L$。`residual_iff_window_clippedMean` 给出完整算子结论与窗口截断平均的等价,`residual_of_window_blockMeanSquare` 接受窗口未截断的二倍区间均方。另一个充分条件 `residual_of_windowEnergy_blockMean` 接受下式的极限为零,其中 $N=2k,\ H_N=(\log N)^{36}$。核中的算术算子 $P_N$、对角算子 $D_N$ 和模型算子 $K_N$ 先作差,再取模平方。 | |
| 33 | +`windowResidual_error_height` 对任意 $H>0$ 给出完整算子的第一个上界,`windowResidual_error_log` 给出 $H=L^{36}$ 的推论。一般地,只要 $H_N/L^{32}\to\infty$,窗外范数就趋于零。记 $q_N=\|T_{N,L^{36}}\|/\mathfrak S_N$,则 $|r_N-q_N|\ll1/L$。`residual_iff_window_clippedMean` 给出完整算子结论与窗口截断平均的等价,`residual_of_window_blockMeanSquare` 接受窗口未截断的二倍区间均方。另一个充分条件 `residual_of_windowEnergy_blockMean` 接受下式的极限为零,其中 $N=2k,\ H_N=(\log N)^{36}$。核中的算术算子 $P_N$、对角算子 $D_N$ 和模型算子 $K_N$ 先作差,再取模平方。 | |
| 34 | 34 | $$ |
| 35 | 35 | \frac1X\sum_{X<k\le2X}\frac1{\mathfrak S_N^2} |
| 36 | 36 | \sum_{x,y\in\{a,b\}}\int_{[-H_N,H_N]^2}|\kappa_{xy}(t,u)|^2\,dt\,du . |
