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 | |
| 5 | /-! Symmetry and scaling of the full wide-weight main integral. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators Topology |
| 11 | open MeasureTheory Set |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma wideModelMass_half : wideModelMass = |
| 15 | 2 * ∫ u in (16/experimentN : ℝ)..(1/2 : ℝ), wideWeight u*wideWeight (1-u) := by |
| 16 | let F := fun u : ℝ => wideWeight u*wideWeight (1-u) |
| 17 | have hc : Continuous F := wideWeight_contDiff.continuous.mul |
| 18 | (wideWeight_contDiff.continuous.comp (continuous_const.sub continuous_id)) |
| 19 | have href : (∫ u in (1/2 : ℝ)..1, F u) = ∫ u in (0 : ℝ)..(1/2 : ℝ), F u := by |
| 20 | have hh := intervalIntegral.integral_comp_sub_left F (a := (0 : ℝ)) (b := (1/2 : ℝ)) 1 |
| 21 | simpa only [F,sub_sub_cancel,mul_comm,sub_zero,show (1 : ℝ)-1/2=1/2 by norm_num] using hh.symm |
| 22 | have hzero : (∫ u in (0 : ℝ)..(16/experimentN : ℝ), F u) = 0 := by |
| 23 | apply intervalIntegral.integral_zero_ae |
| 24 | filter_upwards [] with u |
| 25 | intro hu |
| 26 | rw [uIoc_of_le (by norm_num [experimentN])] at hu |
| 27 | have hw : wideWeight u = 0 := by |
| 28 | by_contra hh |
| 29 | have h := (wideWeight_support hh).1 |
| 30 | linarith [hu.2] |
| 31 | simp [F,hw] |
| 32 | have hsplit := intervalIntegral.integral_add_adjacent_intervals |
| 33 | (hc.intervalIntegrable (μ := volume) 0 (1/2)) (hc.intervalIntegrable (μ := volume) (1/2) 1) |
| 34 | have hsmall := intervalIntegral.integral_add_adjacent_intervals |
| 35 | (hc.intervalIntegrable (μ := volume) 0 (16/experimentN)) (hc.intervalIntegrable (μ := volume) (16/experimentN) (1/2)) |
| 36 | change (∫ u in (0 : ℝ)..1, F u) = _ |
| 37 | rw [href] at hsplit |
| 38 | rw [hzero,zero_add] at hsmall |
| 39 | rw [← hsplit,← hsmall] |
| 40 | ring |
| 41 | |
| 42 | lemma wideModelMass_scaled : (experimentN : ℝ)*wideModelMass/2 = |
| 43 | ∫ x in (16 : ℝ)..((experimentN : ℝ)/2), |
| 44 | wideCutoff x^2/(Real.log x*Real.log ((experimentN : ℝ)-x)) := by |
| 45 | rw [wideModelMass_half] |
| 46 | let G := fun x : ℝ => wideCutoff x^2/(Real.log x*Real.log ((experimentN : ℝ)-x)) |
| 47 | have he : (∫ u in (16/experimentN : ℝ)..(1/2 : ℝ), wideWeight u*wideWeight (1-u)) = |
| 48 | ∫ u in (16/experimentN : ℝ)..(1/2 : ℝ), G ((experimentN : ℝ)*u) := by |
| 49 | apply intervalIntegral.integral_congr_ae |
| 50 | filter_upwards [] with u |
| 51 | intro hu |
| 52 | rw [uIoc_of_le (by norm_num [experimentN])] at hu |
| 53 | have hu' : u ∈ Ioo (16/experimentN : ℝ) (1-16/experimentN : ℝ) := by |
| 54 | constructor |
| 55 | · exact hu.1 |
| 56 | · norm_num [experimentN] at hu ⊢ |
| 57 | linarith [hu.2] |
| 58 | rw [wideWeight_product u hu'] |
| 59 | dsimp [G] |
| 60 | congr 3 |
| 61 | ring |
| 62 | rw [he,intervalIntegral.integral_comp_mul_left G (by norm_num [experimentN] : (experimentN : ℝ) ≠ 0)] |
| 63 | norm_num [experimentN,smul_eq_mul] |
| 64 | dsimp [G] |
| 65 | ring |
| 66 | |
| 67 | theorem lemma_B_3_main_integral : |
| 68 | wideMainIntegral = (experimentN : ℝ) * singularSeries experimentN * wideModelMass / 2 ∧ |
| 69 | (unorderedPrimePairs : ℝ) = wideMainIntegral - (experimentN : ℝ) / 2 * wideResidual - |
| 70 | primePowerCorrection / 2 + edgeCorrection := by |
| 71 | have hm : wideMainIntegral = (experimentN : ℝ) * singularSeries experimentN * wideModelMass / 2 := by |
| 72 | unfold wideMainIntegral |
| 73 | rw [← wideModelMass_scaled] |
| 74 | ring |
| 75 | refine ⟨hm, ?_⟩ |
| 76 | rw [unorderedPrimePairs_eq_corrected_wideCorrelation,hm] |
| 77 | unfold wideResidual |
| 78 | ring |
| 79 | |
| 80 | end ConditionalGoldbach |
