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.VariableQuadratic |
| 4 | |
| 5 | /-! The spectral consequences of the genuine pole lower bound, with the original constants. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma pole_spectral_obstruction (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) |
| 15 | (z c₀ : ℝ) (hz : 0 < z) (hc₀ : 0 < c₀) |
| 16 | (hlower : ∀ c : ℝ, 0 < c → c < c₀ → ∀ ha : alpha N c < beta, |
| 17 | z/c ≤ ‖residualOperator ha N‖) : |
| 18 | ∃ c₁ : ℝ, 0 < c₁ ∧ c₁ ≤ Real.log N / 24 ∧ |
| 19 | ∀ c : ℝ, 0 < c → c < c₁ → ∀ ha : alpha N c < beta, |
| 20 | z/c ≤ ‖residualOperator ha N‖ ∧ ¬SpectralR N (alpha N c) ha ∧ |
| 21 | ∀ η : ℝ, 0 < η → η ≤ 1/4 → SpectralZeroFree N (alpha N c) ha η → |
| 22 | η ≤ spectralScale N^2*c^2/(3*z^2) := by |
| 23 | have hlog : 0 < Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) |
| 24 | have hscale : 0 < spectralScale N := spectralScale_pos N |
| 25 | (by exact_mod_cast (show 0<N by omega)) (singularSeries_pos N) hlog |
| 26 | let c₁ := min c₀ (min (Real.log N/24) (z/(spectralScale N+1))) |
| 27 | have hc₁ : 0 < c₁ := lt_min hc₀ (lt_min (by positivity) (by positivity)) |
| 28 | refine ⟨c₁,hc₁,(min_le_right _ _).trans (min_le_left _ _),?_⟩ |
| 29 | intro c hc hcc ha |
| 30 | have hcc₀ : c < c₀ := hcc.trans_le (min_le_left _ _) |
| 31 | have hcz : c < z/(spectralScale N+1) := |
| 32 | hcc.trans_le ((min_le_right _ _).trans (min_le_right _ _)) |
| 33 | have hbound := hlower c hc hcc₀ ha |
| 34 | have hdict := variable_spectral_dictionary (alpha N c) (alpha_pos_at N hN4 c hc) N hN4 hGRH ha |
| 35 | have hlarge : spectralScale N < z/c := by |
| 36 | apply (lt_div_iff₀ hc).mpr |
| 37 | have hh := (lt_div_iff₀ (by positivity : 0 < spectralScale N+1)).mp hcz |
| 38 | nlinarith only [hh, hc] |
| 39 | refine ⟨hbound,fun hR => (not_lt_of_ge (hbound.trans (hdict.1.mp hR))) hlarge,?_⟩ |
| 40 | intro η hη hη4 hzero |
| 41 | have hη1 : 0 < 1-η := by linarith |
| 42 | have hprod : 0 < η*(1-η) := mul_pos hη hη1 |
| 43 | have hden : 0 < 2*Real.sqrt (η*(1-η)) := by positivity |
| 44 | have hupper := (hdict.2 η hη (by linarith)).mp hzero |
| 45 | have hmain : z*(2*Real.sqrt (η*(1-η))) ≤ spectralScale N*c := |
| 46 | (div_le_div_iff₀ hc hden).mp (hbound.trans hupper) |
| 47 | have hsq := mul_self_le_mul_self (by positivity : 0 ≤ z*(2*Real.sqrt (η*(1-η)))) hmain |
| 48 | have hsqrt := Real.sq_sqrt hprod.le |
| 49 | have hsquared : 4*z^2*(η*(1-η)) ≤ spectralScale N^2*c^2 := by |
| 50 | calc |
| 51 | _ = (z*(2*Real.sqrt (η*(1-η))))*(z*(2*Real.sqrt (η*(1-η)))) := by |
| 52 | calc |
| 53 | _ = z ^ 2 * (2 * Real.sqrt (η * (1 - η))) ^ 2 := by |
| 54 | rw [mul_pow, hsqrt] |
| 55 | ring |
| 56 | _ = _ := by ring |
| 57 | _ ≤ (spectralScale N*c)*(spectralScale N*c) := hsq |
| 58 | _ = _ := by ring |
| 59 | have hηsmall : 3*z^2*η ≤ 4*z^2*(η*(1-η)) := by |
| 60 | nlinarith only [mul_nonneg (by positivity : 0 ≤ z^2*η) |
| 61 | (show 0 ≤ 1-4*η by linarith only [hη4])] |
| 62 | apply (le_div_iff₀ (by positivity : 0 < 3*z^2)).mpr |
| 63 | simpa only [mul_comm η] using hηsmall.trans hsquared |
| 64 | |
| 65 | end ConditionalGoldbach |
