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.Operators |
| 4 | public import ConditionalGoldbach.Definitions.Spectral |
| 5 | public import ConditionalGoldbach.Proofs.ResidualAnalytic |
| 6 | public import ConditionalGoldbach.Proofs.Elementary |
| 7 | |
| 8 | /-! The complete strip geometry and the holomorphic/antiholomorphic kernel interface. -/ |
| 9 | public section |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 14 | open MeasureTheory Filter Set Complex |
| 15 | namespace ConditionalGoldbach |
| 16 | attribute [local instance] Classical.propDecidable conductorNeZero |
| 17 | |
| 18 | lemma analyticDomain_isOpen : IsOpen analyticDomain := by |
| 19 | unfold analyticDomain |
| 20 | exact (isOpen_lt continuous_const (Complex.continuous_re.comp continuous_fst)).inter |
| 21 | ((isOpen_lt (Complex.continuous_re.comp continuous_fst) continuous_const).inter |
| 22 | ((isOpen_lt continuous_const (Complex.continuous_re.comp continuous_snd)).inter |
| 23 | (isOpen_lt (Complex.continuous_re.comp continuous_snd) continuous_const))) |
| 24 | |
| 25 | lemma weightedKernel_hermitian (N : ℕ) [NeZero N] : HermitianKernel (weightedKernel N) := by |
| 26 | intro s z |
| 27 | unfold weightedKernel |
| 28 | rw [map_div₀, map_mul, map_add, map_add, map_one, residual_conj, Complex.conj_conj, |
| 29 | residual_symmetric] |
| 30 | congr 1 |
| 31 | ring |
| 32 | |
| 33 | lemma weightedKernel_conj_differentiableOn (N : ℕ) [NeZero N] (hN : 0 < N) (hGRH : GRH N) : |
| 34 | DifferentiableOn ℂ (fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) analyticDomain := by |
| 35 | have hr := residual_differentiableOn N hN hGRH |
| 36 | intro p hp |
| 37 | have hs : (1 : ℂ)+p.1 ≠ 0 := by |
| 38 | intro he |
| 39 | have he' := congrArg Complex.re he |
| 40 | simp only [add_re, one_re, zero_re] at he' |
| 41 | linarith [hp.1] |
| 42 | have hz : (1 : ℂ)+p.2 ≠ 0 := by |
| 43 | intro he |
| 44 | have he' := congrArg Complex.re he |
| 45 | simp only [add_re, one_re, zero_re] at he' |
| 46 | linarith [hp.2.2.1] |
| 47 | simp only [weightedKernel, Complex.conj_conj] |
| 48 | have hd : DifferentiableWithinAt ℂ (fun q : ℂ × ℂ => (1+q.1)*(1+q.2)) analyticDomain p := by fun_prop |
| 49 | simpa only [div_eq_mul_inv, Pi.mul_apply, Pi.inv_apply] using! (hr p hp).mul (hd.inv (mul_ne_zero hs hz)) |
| 50 | |
| 51 | lemma hasDerivAt_real_affine_comp {f : ℂ → ℂ} {s : ℂ} |
| 52 | (hf : DifferentiableAt ℂ f s) (v : ℂ) : |
| 53 | HasDerivAt (fun x : ℝ => f (s+x*v)) (deriv f s*v) 0 := by |
| 54 | have hf' : HasDerivAt f (deriv f s) (s+(0 : ℂ)*v) := by simpa using hf.hasDerivAt |
| 55 | have h := hf'.comp 0 (((hasDerivAt_id (0 : ℂ)).mul_const v).const_add s) |
| 56 | simpa using h.comp_ofReal |
| 57 | |
| 58 | lemma wirtingerBar_eq_zero_of_differentiableAt {f : ℂ → ℂ} {s : ℂ} |
| 59 | (hf : DifferentiableAt ℂ f s) : wirtingerBar f s = 0 := by |
| 60 | have hx := (hasDerivAt_real_affine_comp hf 1).deriv |
| 61 | simp only [mul_one] at hx |
| 62 | have hy := (hasDerivAt_real_affine_comp hf I).deriv |
| 63 | rw [wirtingerBar, hx, hy] |
| 64 | have hI := Complex.I_sq |
| 65 | linear_combination (deriv f s/2)*hI |
| 66 | |
| 67 | lemma wirtinger_comp_conj_eq_zero {f : ℂ → ℂ} {s : ℂ} |
| 68 | (hf : DifferentiableAt ℂ f (conj s)) : wirtinger (fun z => f (conj z)) s = 0 := by |
| 69 | have hx := (hasDerivAt_real_affine_comp hf 1).deriv |
| 70 | simp only [mul_one] at hx |
| 71 | have hy := (hasDerivAt_real_affine_comp hf (-I)).deriv |
| 72 | simp only [wirtinger, map_add, map_mul, Complex.conj_ofReal, Complex.conj_I, hx, hy] |
| 73 | have hI := Complex.I_sq |
| 74 | linear_combination (deriv f (conj s)/2)*hI |
| 75 | |
| 76 | lemma residual_wirtinger (N : ℕ) [NeZero N] (hN : 0 < N) (hGRH : GRH N) |
| 77 | (s z : ℂ) (hp : (s,conj z) ∈ analyticDomain) : |
| 78 | wirtingerBar (fun w => residual N w (conj z)) s = 0 ∧ |
| 79 | wirtinger (fun w => residual N s (conj w)) z = 0 := by |
| 80 | have hr : DifferentiableAt ℂ (fun p : ℂ × ℂ => residual N p.1 p.2) (s,conj z) := |
| 81 | (residual_differentiableOn N hN hGRH).differentiableAt (analyticDomain_isOpen.mem_nhds hp) |
| 82 | constructor |
| 83 | · exact wirtingerBar_eq_zero_of_differentiableAt |
| 84 | (DifferentiableAt.comp (g := fun p : ℂ × ℂ => residual N p.1 p.2) |
| 85 | (f := fun w : ℂ => (w,conj z)) s hr (by fun_prop)) |
| 86 | · exact wirtinger_comp_conj_eq_zero |
| 87 | (DifferentiableAt.comp (g := fun p : ℂ × ℂ => residual N p.1 p.2) |
| 88 | (f := fun w : ℂ => (s,w)) (conj z) hr (by fun_prop)) |
| 89 | |
| 90 | lemma large_alpha_pos {N : ℕ} (hlarge : Real.exp 10 < (N : ℝ)) : 0 < alpha N := |
| 91 | one_div_pos.mpr (large_parameters hlarge).2.1 |
| 92 | |
| 93 | lemma large_closed_strip_subset {N : ℕ} (hlarge : Real.exp 10 < (N : ℝ)) : |
| 94 | {p : ℂ × ℂ | alpha N ≤ p.1.re ∧ p.1.re ≤ beta ∧ |
| 95 | alpha N ≤ p.2.re ∧ p.2.re ≤ beta} ⊆ analyticDomain := by |
| 96 | intro p hp |
| 97 | have ha := large_alpha_pos hlarge |
| 98 | exact ⟨lt_of_lt_of_le ha hp.1, lt_of_le_of_lt hp.2.1 (by norm_num [beta]), |
| 99 | lt_of_lt_of_le ha hp.2.2.1, lt_of_le_of_lt hp.2.2.2 (by norm_num [beta])⟩ |
| 100 | |
| 101 | theorem proposition_5_1 (N : ℕ) [NeZero N] (_hN : Even N) |
| 102 | (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) : |
| 103 | HermitianKernel (weightedKernel N) ∧ |
| 104 | HermitianKernel (fun s z => residual N s (conj z)) ∧ |
| 105 | DifferentiableOn ℂ (fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) analyticDomain ∧ |
| 106 | (∃ U : Set (ℂ × ℂ), IsOpen U ∧ |
| 107 | {p | alpha N ≤ p.1.re ∧ p.1.re ≤ beta ∧ |
| 108 | alpha N ≤ p.2.re ∧ p.2.re ≤ beta} ⊆ U ∧ |
| 109 | DifferentiableOn ℂ (fun p : ℂ × ℂ => residual N p.1 p.2) U ∧ |
| 110 | DifferentiableOn ℂ (fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) U) ∧ |
| 111 | (∀ s z : ℂ, (s, conj z) ∈ analyticDomain → |
| 112 | wirtingerBar (fun w => residual N w (conj z)) s = 0 ∧ |
| 113 | wirtinger (fun w => residual N s (conj w)) z = 0) ∧ |
| 114 | 1 / 90 < sigmaStar - alpha N ∧ beta - sigmaStar = 1 / 72 := by |
| 115 | have hpos : 0 < N := by have := (large_parameters hlarge).1; omega |
| 116 | have hd := weightedKernel_conj_differentiableOn N hpos hGRH |
| 117 | refine ⟨weightedKernel_hermitian N, residual_hermitian N, hd, |
| 118 | ⟨analyticDomain, analyticDomain_isOpen, large_closed_strip_subset hlarge, |
| 119 | residual_differentiableOn N hpos hGRH, hd⟩, |
| 120 | residual_wirtinger N hpos hGRH, ?_, by norm_num [beta, sigmaStar]⟩ |
| 121 | have hlog : (10 : ℝ) < Real.log N := by |
| 122 | simpa using Real.log_lt_log (Real.exp_pos 10) hlarge |
| 123 | have ha : alpha N < 1/10 := one_div_lt_one_div_of_lt (by norm_num) hlog |
| 124 | dsimp [sigmaStar] |
| 125 | linarith |
| 126 | |
| 127 | lemma weightedKernel_column_differentiableAt (N : ℕ) [NeZero N] (hN : 0 < N) (hGRH : GRH N) |
| 128 | (s z : ℂ) (hsz : (s,conj z) ∈ analyticDomain) : |
| 129 | DifferentiableAt ℂ (fun w => weightedKernel N w z) s := by |
| 130 | have hj : DifferentiableAt ℂ (fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) (s,conj z) := |
| 131 | (weightedKernel_conj_differentiableOn N hN hGRH).differentiableAt |
| 132 | (analyticDomain_isOpen.mem_nhds hsz) |
| 133 | simpa only [Function.comp_def, Complex.conj_conj] using |
| 134 | (DifferentiableAt.comp (g := fun p : ℂ × ℂ => weightedKernel N p.1 (conj p.2)) |
| 135 | (f := fun w : ℂ => (w,conj z)) s hj (by fun_prop)) |
| 136 | |
| 137 | lemma weightedKernel_closed_column_regular (N : ℕ) [NeZero N] |
| 138 | (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (z : ℂ) |
| 139 | (hz : alpha N ≤ z.re ∧ z.re ≤ beta) : |
| 140 | DifferentiableOn ℂ (fun s => weightedKernel N s z) (strip (alpha N) beta) ∧ |
| 141 | ContinuousOn (fun s => weightedKernel N s z) {s | alpha N ≤ s.re ∧ s.re ≤ beta} := by |
| 142 | have hpos : 0 < N := by have := (large_parameters hlarge).1; omega |
| 143 | have hd (s : ℂ) (hs : alpha N ≤ s.re ∧ s.re ≤ beta) : |
| 144 | DifferentiableAt ℂ (fun w => weightedKernel N w z) s := |
| 145 | weightedKernel_column_differentiableAt N hpos hGRH s z |
| 146 | (large_closed_strip_subset hlarge ⟨hs.1, hs.2, hz.1, hz.2⟩) |
| 147 | refine ⟨fun s hs => (hd s ⟨hs.1.le, hs.2.le⟩).differentiableWithinAt, |
| 148 | fun s hs => (hd s hs).continuousAt.continuousWithinAt⟩ |
| 149 | |
| 150 | theorem proposition_5_1_fueter_equation (N : ℕ) [NeZero N] (_hN : Even N) |
| 151 | (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (s z : ℂ) |
| 152 | (hsz : (s, conj z) ∈ analyticDomain) : |
| 153 | fueterOperator (fun u v => residual N u (conj v)) s z = 0 := by |
| 154 | have hpos : 0 < N := by have := (large_parameters hlarge).1; omega |
| 155 | have h := residual_wirtinger N hpos hGRH s z hsz |
| 156 | simp [fueterOperator, h.1, h.2, complexQuaternion] |
| 157 | rfl |
| 158 | |
| 159 | end ConditionalGoldbach |
