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
Use pow_le_pow_left₀ for the square comparison
Browse filesChecks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+1 −3 Open/SMonotone.lean View file
| @@ -45,9 +45,7 @@ theorem hypothesisS_mono : | ||
| 45 | 45 | have hNpos : (0 : ℝ) < (N : ℝ) := by exact_mod_cast (show 0 < N by omega) |
| 46 | 46 | have hN1 : (1 : ℝ) < (N : ℝ) := by exact_mod_cast (show 1 < N by omega) |
| 47 | 47 | have hlog : (0 : ℝ) ≤ Real.log (N : ℝ) ^ 3 := pow_nonneg (Real.log_pos hN1).le 3 |
| 48 | - -- h' N ≤ h N and 0 < h' N give (h N - h' N) * (h N + h' N) ≥ 0, that is, h' N ^ 2 ≤ h N ^ 2 | |
| 49 | - have hsq : h' N ^ 2 ≤ h N ^ 2 := | |
| 50 | - nlinarith [mul_nonneg (by linarith : (0 : ℝ) ≤ h N - h' N) (by linarith : (0 : ℝ) ≤ h N + h' N)] | |
| 48 | + have hsq : h' N ^ 2 ≤ h N ^ 2 := pow_le_pow_left₀ hpos'.le hleN 2 | |
| 51 | 49 | have hmul : h' N ^ 2 * Real.log (N : ℝ) ^ 3 ≤ h N ^ 2 * Real.log (N : ℝ) ^ 3 := |
| 52 | 50 | mul_le_mul_of_nonneg_right hsq hlog |
| 53 | 51 | have hden : (0 : ℝ) < (N : ℝ) * singularSeries N := mul_pos hNpos (singularSeries_pos N) |
+9 −0 routes/little-fish/s1-monotone-in-h/README.md View file
| @@ -90,6 +90,15 @@ file): | ||
| 90 | 90 | most of `Proofs/` adds), and `nlinarith [mul_nonneg …]` is already the idiom here, e.g. |
| 91 | 91 | `ConditionalGoldbach/Proofs/SpectralPerronFubini.lean:30`. |
| 92 | 92 | |
| 93 | +- **The third `build` run (job 810) still did not know `nlinarith`**, although | |
| 94 | + `Mathlib.Tactic.Linarith` was imported — and `ConditionalGoldbach/Analysis/SpectralData.lean` | |
| 95 | + imports the same module, so this is not an import of mine that is wrong but that module no | |
| 96 | + longer exporting the tactic. The step is now `pow_le_pow_left₀ hpos'.le hleN 2`, which is the | |
| 97 | + form this project already uses for exactly this (`pow_le_pow_left₀ hlo0 hl 2` in | |
| 98 | + `ConditionalGoldbach/Proofs/BalanceBounds.lean:67`, and five more places), so no tactic | |
| 99 | + beyond `linarith` and `omega` is used. `singularSeries_pos` resolved once | |
| 100 | + `ConditionalGoldbach.Proofs.Elementary` was imported, which is where it is defined. | |
| 101 | + | |
| 93 | 102 | One local snag worth writing down: `checks/challenge.py` fails a *tree* that merely contains |
| 94 | 103 | `.lake/` (`.lake/ is added: Lake keeps what it builds and fetches there`). It is in |
| 95 | 104 | `.gitignore`, so a push never carries it, but running the check in the repository root — the |
