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
| 1 | module |
| 2 | |
| 3 | public import ConditionalGoldbach.Proofs.QuantitativeBounds |
| 4 | |
| 5 | /-! The full parameterized spectral and arithmetic conclusions, with their shared constant. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open Set Filter |
| 11 | namespace ConditionalGoldbach |
| 12 | |
| 13 | lemma evenEventually_variable_large (c : ℝ) : |
| 14 | EvenEventually (fun N => 4≤N ∧ Real.exp (10*c)<(N:ℝ)) := by |
| 15 | obtain ⟨k,hk⟩ := exists_nat_gt (max 4 (Real.exp (10*c))) |
| 16 | refine ⟨k,?_⟩ |
| 17 | intro N hN hEven |
| 18 | have hNk : (k:ℝ) ≤ N := by exact_mod_cast hN |
| 19 | constructor |
| 20 | · exact_mod_cast (show (4:ℝ) ≤ N from ((le_max_left _ _).trans hk.le).trans hNk) |
| 21 | · exact ((le_max_right _ _).trans_lt hk).trans_le hNk |
| 22 | |
| 23 | theorem proposition_A_2 (φ : ℝ → ℝ) (hφ : IsWeight φ) (c : ℝ) (hc : 0 < c) : |
| 24 | (∀ N : ℕ, ∀ (_ : NeZero N), Even N → 4 ≤ N → Real.exp (10 * c) < (N : ℝ) → GRH N → |
| 25 | ∀ ha : alpha N c < beta, |
| 26 | (SpectralR N (alpha N c) ha ↔ ‖residualOperator ha N‖ ≤ spectralScale N) ∧ |
| 27 | (∀ η : ℝ, 0 < η → η < 1 / 2 → (SpectralZeroFree N (alpha N c) ha η ↔ |
| 28 | ‖residualOperator ha N‖ ≤ spectralScale N / (2 * Real.sqrt (η * (1 - η))))) ∧ |
| 29 | (∀ h : ℕ → ℝ, 0 < h N → 0 < zeroFreeWidth N h → zeroFreeWidth N h ≤ 1 / 4 → |
| 30 | (SpectralZeroFree N (alpha N c) ha (zeroFreeWidth N h) ↔ |
| 31 | ‖residualOperator ha N‖ ≤ singularSeries N / (2 * h N * Real.sqrt (1 - zeroFreeWidth N h))))) ∧ |
| 32 | (∃ C c₀ : ℝ, 0 < C ∧ 0 < c₀ ∧ |
| 33 | EvenEventually (fun N => ∀ (_ : NeZero N) (ha : alpha N c < beta), GRH N → |
| 34 | ‖residualOperator ha N‖ ≤ C * Real.log N ^ 2 ∧ |
| 35 | SpectralZeroFree N (alpha N c) ha (c₀ * singularSeries N / (N * Real.log N))) ∧ |
| 36 | (∀ h : ℕ → ℝ, HypothesisSAt c h → |
| 37 | EvenEventually (fun N => GRH N → |
| 38 | |goldbach N φ - weightMass φ * singularSeries N| ≤ C * singularSeries N / h N)) ∧ |
| 39 | (HypothesisRAt c → |
| 40 | EvenEventually (fun N => GRH N → |
| 41 | |goldbach N φ - weightMass φ * singularSeries N| ≤ C * spectralScale N))) := by |
| 42 | constructor |
| 43 | · intro N hNZ hN hN4 hlarge hGRH ha |
| 44 | have hd := variable_spectral_dictionary (alpha N c) (alpha_pos_at N hN4 c hc) N hN4 hGRH ha |
| 45 | refine ⟨hd.1,hd.2,?_⟩ |
| 46 | intro h hh hη hηsmall |
| 47 | have he := spectralScale_div_sqrt_width_eq N h |
| 48 | (by exact_mod_cast (show 0<N by omega)) (singularSeries_pos N) |
| 49 | (Real.log_pos (by exact_mod_cast (show 1<N by omega))) hh (by linarith) |
| 50 | rw [← he] |
| 51 | exact hd.2 _ hη (by linarith) |
| 52 | · obtain ⟨A,c₀,hA,hc₀,huniform⟩ := variable_uniform_spectral_bound c hc |
| 53 | obtain ⟨B,hB,hpoint⟩ := proposition_A_2_pointwise φ hφ c hc |
| 54 | have hA0 : 0<A := by linarith |
| 55 | have hAB : A≤A+B := le_add_of_nonneg_right hB.le |
| 56 | have hBA : B≤A+B := le_add_of_nonneg_left hA0.le |
| 57 | refine ⟨A+B,c₀,by positivity,hc₀,?_,?_,?_⟩ |
| 58 | · apply huniform.mono |
| 59 | intro N hN hNZ ha hGRH |
| 60 | have hh := hN hNZ ha hGRH |
| 61 | exact ⟨hh.2.1.trans (hh.2.2.1.trans (mul_le_mul_of_nonneg_right hAB (sq_nonneg _))),hh.2.2.2⟩ |
| 62 | · intro h hS |
| 63 | obtain ⟨k,hk⟩ := hS.2.and (hS.1.2.2.and (evenEventually_variable_large c)) |
| 64 | refine ⟨k,?_⟩ |
| 65 | intro N hNk hN hGRH |
| 66 | obtain ⟨hwidth,hηsmall,hN4,hlarge⟩ := hk N hNk hN |
| 67 | let : NeZero N := ⟨by omega⟩ |
| 68 | have hNp : 0<(N:ℝ) := by exact_mod_cast (show 0<N by omega) |
| 69 | have hlog : 0<Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) |
| 70 | have hh : 0<h N := hS.1.1 N hN hN4 |
| 71 | have hSp := singularSeries_pos N |
| 72 | have hη : 0<zeroFreeWidth N h := by unfold zeroFreeWidth; positivity |
| 73 | have ha10 := (variable_parameters N hN4 c hc hlarge).2.1 |
| 74 | have ha : alpha N c<beta := by unfold beta; linarith |
| 75 | have hb := (hpoint N inferInstance hN hN4 hlarge hGRH ha).1 h hh hη hηsmall |
| 76 | (hwidth hGRH inferInstance ha) |
| 77 | apply hb.trans |
| 78 | exact div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_right hBA (singularSeries_pos N).le) hh.le |
| 79 | · intro hR |
| 80 | obtain ⟨k,hk⟩ := hR.and (evenEventually_variable_large c) |
| 81 | refine ⟨k,?_⟩ |
| 82 | intro N hNk hN hGRH |
| 83 | obtain ⟨hR',hN4,hlarge⟩ := hk N hNk hN |
| 84 | let : NeZero N := ⟨by omega⟩ |
| 85 | have hNp : 0<(N:ℝ) := by exact_mod_cast (show 0<N by omega) |
| 86 | have hlog : 0<Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) |
| 87 | have ha10 := (variable_parameters N hN4 c hc hlarge).2.1 |
| 88 | have ha : alpha N c<beta := by unfold beta; linarith |
| 89 | have hb := (hpoint N inferInstance hN hN4 hlarge hGRH ha).2 (hR' hGRH inferInstance ha) |
| 90 | exact hb.trans (mul_le_mul_of_nonneg_right hBA (spectralScale_pos N hNp (singularSeries_pos N) hlog).le) |
| 91 | |
| 92 | end ConditionalGoldbach |
