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.WidePrimePowerCount |
| 4 | public import ConditionalGoldbach.Proofs.MomentError |
| 5 | |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators |
| 11 | open Set |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | theorem lemma_B_3 (Ihat : Character experimentN → ℂ) (ε : ℝ) (hε : 0 ≤ ε) |
| 15 | (herr : (5760 : ℝ)⁻¹ * ∑ χ : Character experimentN, ‖countingIntegral χ - Ihat χ‖ ^ 2 ≤ ε ^ 2) : |
| 16 | |wideCorrelation - approxSignedMoment Ihat| ≤ |
| 17 | 2 * Real.sqrt (approxDiagonalMoment Ihat) * ε + ε ^ 2 ∧ |
| 18 | |(unorderedPrimePairs : ℝ) - approxPrimeCount Ihat| ≤ countError Ihat ε ∧ |
| 19 | (unorderedPrimePairs : ℝ) ∈ |
| 20 | Icc (approxPrimeCount Ihat - countError Ihat ε) (approxPrimeCount Ihat + countError Ihat ε) ∩ |
| 21 | Set.range (fun k : ℤ => (k : ℝ)) := by |
| 22 | have h := wideSignedMoment_error Ihat ε hε herr |
| 23 | have hcount := unorderedPrimePairs_eq_corrected_wideCorrelation |
| 24 | have he : (unorderedPrimePairs:ℝ)-approxPrimeCount Ihat= |
| 25 | ((experimentN:ℝ)/2)*(wideCorrelation-approxSignedMoment Ihat) := by |
| 26 | rw [hcount] |
| 27 | unfold approxPrimeCount |
| 28 | ring |
| 29 | have hbound : |(unorderedPrimePairs:ℝ)-approxPrimeCount Ihat|≤countError Ihat ε := by |
| 30 | rw [he,abs_mul,abs_of_nonneg (by norm_num [experimentN] : 0≤(experimentN:ℝ)/2)] |
| 31 | exact mul_le_mul_of_nonneg_left h (by norm_num [experimentN]) |
| 32 | refine ⟨h,hbound,⟨?_,⟨(unorderedPrimePairs:ℤ),by exact Int.cast_natCast unorderedPrimePairs⟩⟩⟩ |
| 33 | obtain ⟨hl,hu⟩ := abs_le.mp hbound |
| 34 | constructor <;> linarith |
| 35 | |
| 36 | end ConditionalGoldbach |
