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
fix: supply the square-integrability witnesses for both boundary rows
Browse filesChecks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+6 −4 ConditionalGoldbach/Proofs/ResidualWindow.lean View file
| @@ -30,7 +30,7 @@ lemma windowKernel_mem {a b : ℝ} {K : ℂ → ℂ → ℂ} | ||
| 30 | 30 | have hm : MeasurableSet S := (isClosed_le continuous_fst.abs continuous_const).measurableSet.inter |
| 31 | 31 | (isClosed_le continuous_snd.abs continuous_const).measurableSet |
| 32 | 32 | have h := (hK x hx y hy).indicator hm.nullMeasurableSet |
| 33 | - apply h.congr | |
| 33 | + refine MemLp.ae_eq ?_ h | |
| 34 | 34 | filter_upwards [] with p |
| 35 | 35 | have hx' : (line x p.1).im = p.1 := by simp [line] |
| 36 | 36 | have hy' : (line y p.2).im = p.2 := by simp [line] |
| @@ -71,7 +71,8 @@ private lemma boundaryKernelOperator_sub {a b : ℝ} {K J : ℂ → ℂ → ℂ} | ||
| 71 | 71 | l2KernelOperator ((hK x hx b (by simp)).sub (hJ x hx b (by simp))) f.snd = |
| 72 | 72 | (l2KernelOperator (hK x hx a (by simp)) f.fst + l2KernelOperator (hK x hx b (by simp)) f.snd) - |
| 73 | 73 | (l2KernelOperator (hJ x hx a (by simp)) f.fst + l2KernelOperator (hJ x hx b (by simp)) f.snd) := by |
| 74 | - rw [l2KernelOperator_sub_apply, l2KernelOperator_sub_apply] | |
| 74 | + rw [l2KernelOperator_sub_apply (hK x hx a (by simp)) (hJ x hx a (by simp)) f.fst, | |
| 75 | + l2KernelOperator_sub_apply (hK x hx b (by simp)) (hJ x hx b (by simp)) f.snd] | |
| 75 | 76 | abel |
| 76 | 77 | apply WithLp.ofLp_injective 2 |
| 77 | 78 | exact Prod.ext (row a (by simp)) (row b (by simp)) |
| @@ -182,7 +183,7 @@ private lemma window_tail_integral_bound {a b H A : ℝ} (hab : a < b) (hH : 0 < | ||
| 182 | 183 | have hx' : (line x t).im = t := by simp [line] |
| 183 | 184 | have hy' : (line y u).im = u := by simp [line] |
| 184 | 185 | by_cases hv : |t| ≤ H <;> by_cases hu : |u| ≤ H <;> |
| 185 | - simp [F, W, windowKernel, tailDecay, hx', hy', ← not_le, hv, hu] <;> | |
| 186 | + simp [F, windowKernel, tailDecay, hx', hy', ← not_le, hv, hu] <;> | |
| 186 | 187 | nlinarith only [hb, hpos] |
| 187 | 188 | _ ≤ _ := hFi |
| 188 | 189 | unfold BoundaryKernelSquareIntegral |
| @@ -238,7 +239,8 @@ theorem windowResidual_error_log : | ||
| 238 | 239 | rw [hp] |
| 239 | 240 | change 32 * (A * L^16) * _ * (L^18)⁻¹ ≤ _ / L^2 |
| 240 | 241 | field_simp [hL.ne'] |
| 241 | - <;> ring_nf <;> exact le_rfl | |
| 242 | + ring_nf | |
| 243 | + exact le_rfl | |
| 242 | 244 | |
| 243 | 245 | end ResidualAverage |
| 244 | 246 | end ConditionalGoldbach |
+10 −1 Open/S3CompileDiagnostics.lean View file
| @@ -10,5 +10,14 @@ run_cmd do | ||
| 10 | 10 | let result ← IO.Process.output { cmd := "lake", args := #["env", "lean", path] } |
| 11 | 11 | if result.exitCode != 0 then |
| 12 | 12 | failures := failures.push ((result.stdout ++ result.stderr).replace "\n" " | ") |
| 13 | + else | |
| 14 | + let warnings := (result.stdout ++ result.stderr).splitOn "\n" |>.filter (·.contains "warning:") | |
| 15 | + unless warnings.isEmpty do logInfo m!"{String.intercalate " | " warnings}" | |
| 13 | 16 | unless failures.isEmpty do throwError "{String.intercalate "\n" failures.toList}" |
| 14 | - logInfo "S-3 modules compiled independently" | |
| 17 | + let names := ["residual_clippedMean_iff", "windowResidual_error_log", | |
| 18 | + "residual_iff_window_clippedBlockMean", "residual_of_windowEnergy_blockMean"] | |
| 19 | + let source := "import ConditionalGoldbach.Proofs.ResidualWindowAverage\n" ++ | |
| 20 | + String.intercalate "\n" (names.map fun n => "#print axioms ConditionalGoldbach.ResidualAverage." ++ n) | |
| 21 | + let audit ← IO.Process.output { cmd := "lake", args := #["env", "lean", "--stdin"] } (some source) | |
| 22 | + if audit.exitCode != 0 then throwError "{audit.stdout}{audit.stderr}" | |
| 23 | + logInfo m!"S-3 modules compiled independently. {audit.stdout.replace "\n" " | "}" | |
