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.Definitions.Asymptotics |
| 4 | public import ConditionalGoldbach.Proofs.CharacterZeroSummability |
| 5 | public import ConditionalGoldbach.Proofs.CharacterZeroCompactSets |
| 6 | |
| 7 | /-! Normal absolute convergence of the paper's paired zero resolvent. -/ |
| 8 | public section |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | open scoped BigOperators ComplexConjugate Topology |
| 13 | open Set Complex Metric Filter |
| 14 | namespace ConditionalGoldbach |
| 15 | |
| 16 | lemma paired_resolvent_far_bound (R : ℝ) (hR : 1 ≤ R) (u v ρ : ℂ) |
| 17 | (hu : ‖u‖ ≤ R) (hv : ‖v‖ ≤ R) (hρ : 2*R+1 ≤ |ρ.im|) : |
| 18 | ‖1/(u-ρ)-1/(v-ρ)‖ ≤ 16*R/(1+ρ.im^2) := by |
| 19 | let y : ℝ := |ρ.im| |
| 20 | have hy : 1 ≤ y := by dsimp [y]; linarith |
| 21 | have hρnorm : y ≤ ‖ρ‖ := Complex.abs_im_le_norm ρ |
| 22 | have hu0 : y/2 ≤ ‖u-ρ‖ := by |
| 23 | have hh := norm_add_le (ρ-u) u |
| 24 | rw [sub_add_cancel,norm_sub_rev] at hh |
| 25 | dsimp [y] at * |
| 26 | linarith |
| 27 | have hv0 : y/2 ≤ ‖v-ρ‖ := by |
| 28 | have hh := norm_add_le (ρ-v) v |
| 29 | rw [sub_add_cancel,norm_sub_rev] at hh |
| 30 | dsimp [y] at * |
| 31 | linarith |
| 32 | have hup : 0 < ‖u-ρ‖ := by linarith |
| 33 | have hvp : 0 < ‖v-ρ‖ := by linarith |
| 34 | have hprod : y^2/4 ≤ ‖u-ρ‖*‖v-ρ‖ := by |
| 35 | have hh := mul_le_mul hu0 hv0 (by positivity : 0 ≤ y/2) (norm_nonneg _) |
| 36 | nlinarith |
| 37 | have hnum : ‖v-u‖ ≤ 2*R := (norm_sub_le v u).trans (by linarith) |
| 38 | have he : 1/(u-ρ)-1/(v-ρ) = (v-u)/((u-ρ)*(v-ρ)) := by |
| 39 | field_simp [norm_pos_iff.mp hup,norm_pos_iff.mp hvp] |
| 40 | ring |
| 41 | rw [he,norm_div,norm_mul] |
| 42 | apply (div_le_div_iff₀ (mul_pos hup hvp) (by positivity)).mpr |
| 43 | have hy2 : y^2 = ρ.im^2 := sq_abs _ |
| 44 | calc |
| 45 | _ ≤ (2*R)*(1+ρ.im^2) := mul_le_mul_of_nonneg_right hnum (by positivity) |
| 46 | _ ≤ (4*R)*y^2 := by nlinarith [sq_nonneg (y-1),mul_nonneg (by linarith : 0≤R) (by nlinarith : 0≤y^2-1)] |
| 47 | _ ≤ _ := by nlinarith [mul_nonneg (by linarith : 0≤R) (sub_nonneg.mpr hprod)] |
| 48 | |
| 49 | lemma primitive_zero_difference_normallySummable {d : ℕ} [NeZero d] (χ : Character d) |
| 50 | (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) : |
| 51 | NormallySummableOn (fun p : ZeroIndex χ => fun u : ℂ × ℂ => |
| 52 | 1/(u.1-p.val.1)-1/(u.2-p.val.1)) |
| 53 | {u | completedL χ u.1 ≠ 0 ∧ completedL χ u.2 ≠ 0} := by |
| 54 | intro K hK hKU |
| 55 | let F : ZeroIndex χ → (ℂ × ℂ) → ℝ := fun p u => ‖1/(u.1-p.val.1)-1/(u.2-p.val.1)‖ |
| 56 | have hc (p : ZeroIndex χ) : ContinuousOn (F p) K := by |
| 57 | apply ContinuousOn.norm |
| 58 | apply ContinuousOn.sub |
| 59 | · exact continuousOn_const.div (continuous_fst.continuousOn.sub continuousOn_const) |
| 60 | (fun u hu => sub_ne_zero.mpr (zeroIndex_ne_of_completedL_ne χ (hKU hu).1 p)) |
| 61 | · exact continuousOn_const.div (continuous_snd.continuousOn.sub continuousOn_const) |
| 62 | (fun u hu => sub_ne_zero.mpr (zeroIndex_ne_of_completedL_ne χ (hKU hu).2 p)) |
| 63 | have he (p : ZeroIndex χ) : {r : ℝ | ∃ u ∈ K, r = F p u} = F p '' K := by |
| 64 | ext r |
| 65 | simp only [Set.mem_ofPred_eq,mem_image] |
| 66 | constructor <;> rintro ⟨u,hu,he⟩ <;> exact ⟨u,hu,he.symm⟩ |
| 67 | have hb (p : ZeroIndex χ) : BddAbove {r : ℝ | ∃ u ∈ K, r = F p u} := by |
| 68 | rw [he] |
| 69 | exact hK.bddAbove_image (hc p) |
| 70 | refine ⟨hb,?_⟩ |
| 71 | by_cases hKe : K = ∅ |
| 72 | · simp [hKe] |
| 73 | have hKn : K.Nonempty := Set.nonempty_iff_ne_empty.mpr hKe |
| 74 | obtain ⟨B,hB⟩ := hK.isBounded.exists_norm_le |
| 75 | let R : ℝ := max B 1 |
| 76 | have hR : 1 ≤ R := le_max_right _ _ |
| 77 | have hnorm (u : ℂ × ℂ) (hu : u ∈ K) : ‖u.1‖ ≤ R ∧ ‖u.2‖ ≤ R := |
| 78 | ⟨(norm_fst_le u).trans ((hB u hu).trans (le_max_left _ _)), |
| 79 | (norm_snd_le u).trans ((hB u hu).trans (le_max_left _ _))⟩ |
| 80 | have hs := (primitive_zero_square_summable χ hχ hprim).mul_left (16*R) |
| 81 | apply hs.of_norm_bounded_eventually |
| 82 | filter_upwards [(zeroIndex_bounded_height_finite χ hχ (2*R+1)).compl_mem_cofinite] with p hp |
| 83 | have hfar : 2*R+1 < |p.val.1.im| := lt_of_not_ge hp |
| 84 | have hnonempty : {r : ℝ | ∃ u ∈ K, r = F p u}.Nonempty := by |
| 85 | obtain ⟨u,hu⟩ := hKn |
| 86 | exact ⟨F p u,u,hu,rfl⟩ |
| 87 | have hnonneg : 0 ≤ sSup {r : ℝ | ∃ u ∈ K, r = F p u} := by |
| 88 | obtain ⟨u,hu⟩ := hKn |
| 89 | exact (norm_nonneg _).trans (le_csSup (hb p) ⟨u,hu,rfl⟩) |
| 90 | rw [Real.norm_eq_abs,abs_of_nonneg hnonneg] |
| 91 | apply csSup_le hnonempty |
| 92 | rintro r ⟨u,hu,rfl⟩ |
| 93 | simpa only [mul_one_div] using paired_resolvent_far_bound R hR u.1 u.2 p.val.1 |
| 94 | (hnorm u hu).1 (hnorm u hu).2 hfar.le |
| 95 | |
| 96 | lemma primitive_zero_difference_summable_norm {d : ℕ} [NeZero d] (χ : Character d) |
| 97 | (hχ : χ ≠ 1) (hprim : χ.IsPrimitive) (u v : ℂ) |
| 98 | (hu : completedL χ u ≠ 0) (hv : completedL χ v ≠ 0) : |
| 99 | Summable (fun p : ZeroIndex χ => ‖1/(u-p.val.1)-1/(v-p.val.1)‖) := by |
| 100 | have hh := (primitive_zero_difference_normallySummable χ hχ hprim) |
| 101 | {(u,v)} (isCompact_singleton) (by intro z hz; rcases mem_singleton_iff.mp hz with rfl; exact ⟨hu,hv⟩) |
| 102 | simpa using hh.2 |
| 103 | |
| 104 | end ConditionalGoldbach |
