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.HadamardDiskFactor |
| 4 | |
| 5 | /-! Quantitative finite-zero approximation to the logarithmic-derivative difference. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open Set Complex Metric Filter MeromorphicOn |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma logarithmicDerivative_disk_approximation (f : ℂ → ℂ) (hf : Differentiable ℂ f) |
| 15 | (hf0 : f 0 ≠ 0) (R M : ℝ) (hR : 0 < R) (hM : ‖f 0‖ < M) |
| 16 | (hbound : ∀ z ∈ sphere (0 : ℂ) (8*R), ‖f z‖ ≤ M) |
| 17 | (u v : ℂ) (hu : u ∈ ball (0 : ℂ) R) (hv : v ∈ ball (0 : ℂ) R) |
| 18 | (hfu : f u ≠ 0) (hfv : f v ≠ 0) : |
| 19 | let D := divisor f (closedBall (0 : ℂ) (4*R)) |
| 20 | let hfin := D.finiteSupport (isCompact_closedBall ..) |
| 21 | ‖(logDeriv f u-logDeriv f v) - |
| 22 | ∑ ρ ∈ hfin.toFinset, (D ρ : ℂ)*(1/(u-ρ)-1/(v-ρ))‖ ≤ |
| 23 | (4*Real.log (M/‖f 0‖)/R^2)*‖u-v‖ := by |
| 24 | intro D hfin |
| 25 | let P : ℂ → ℂ := ∏ᶠ ρ, (·-ρ)^D ρ |
| 26 | have ha : AnalyticOnNhd ℂ f (closedBall (0 : ℂ) (4*R)) := fun z _ => hf.analyticAt z |
| 27 | have hD : ∀ z, 0 ≤ D z := ha.divisor_nonneg |
| 28 | have hP : Differentiable ℂ P := fun z => (Function.FactorizedRational.analyticAt (hD z)).differentiableAt |
| 29 | obtain ⟨g,hg,he,hgn⟩ := entire_disk_factorization f hf hf0 (4*R) |
| 30 | have he' (z : ℂ) : f z = P z*g z := he z |
| 31 | have hP0 : P 0 ≠ 0 := fun h => hf0 (by rw [he',h,zero_mul]) |
| 32 | have hg0 : g 0 ≠ 0 := fun h => hf0 (by rw [he',h,mul_zero]) |
| 33 | have hPg0 : ‖f 0‖ = ‖P 0‖*‖g 0‖ := by rw [he',norm_mul] |
| 34 | have hPboundary (z : ℂ) (hz : z ∈ sphere (0 : ℂ) (8*R)) : ‖P 0‖ ≤ ‖P z‖ := by |
| 35 | apply factorizedRational_norm_lower D hfin hD (4*R) |
| 36 | · intro ρ hρ |
| 37 | exact mem_closedBall_zero_iff.mp (D.supportWithinDomain hρ) |
| 38 | · have hz' := mem_sphere_zero_iff_norm.mp hz |
| 39 | linarith |
| 40 | have hgBoundary (z : ℂ) (hz : z ∈ sphere (0 : ℂ) (8*R)) : ‖g z‖ ≤ M/‖P 0‖ := by |
| 41 | apply (le_div_iff₀ (norm_pos_iff.mpr hP0)).mpr |
| 42 | calc |
| 43 | _ = ‖P 0‖*‖g z‖ := mul_comm _ _ |
| 44 | _ ≤ ‖P z‖*‖g z‖ := mul_le_mul_of_nonneg_right (hPboundary z hz) (norm_nonneg _) |
| 45 | _ = ‖f z‖ := by rw [he',norm_mul] |
| 46 | _ ≤ M := hbound z hz |
| 47 | have hgb (z : ℂ) (hz : z ∈ ball (0 : ℂ) (4*R)) : ‖g z‖ ≤ M/‖P 0‖ := by |
| 48 | apply Complex.norm_le_of_forall_mem_frontier_norm_le isBounded_ball |
| 49 | (show DiffContOnCl ℂ g (ball (0 : ℂ) (8*R)) from ⟨hg.differentiableOn,hg.continuous.continuousOn⟩) |
| 50 | · rw [frontier_ball (0 : ℂ) (by linarith : (8*R) ≠ 0)] |
| 51 | exact hgBoundary |
| 52 | · rw [closure_ball (0 : ℂ) (by linarith : (8*R) ≠ 0)] |
| 53 | exact mem_closedBall_zero_iff.mpr (by have hh := mem_ball_zero_iff.mp hz; linarith) |
| 54 | obtain ⟨q,hq0,hqd,hqe⟩ := zero_free_disk_log g (4*R) (by linarith) |
| 55 | (fun z _ => hg.analyticAt z) (fun z hz => hgn z (ball_subset_closedBall hz)) |
| 56 | have hqDiff : DifferentiableOn ℂ q (ball (0 : ℂ) (4*R)) := |
| 57 | fun z hz => (hqd z hz).differentiableAt.differentiableWithinAt |
| 58 | have hq : AnalyticOnNhd ℂ q (ball (0 : ℂ) (4*R)) := hqDiff.analyticOnNhd isOpen_ball |
| 59 | have hL : 0 < Real.log (M/‖f 0‖) := Real.log_pos ((one_lt_div (norm_pos_iff.mpr hf0)).mpr hM) |
| 60 | have hqBound (z : ℂ) (hz : z ∈ ball (0 : ℂ) (4*R)) : (q z).re ≤ Real.log (M/‖f 0‖) := by |
| 61 | have hh := logarithm_re_le_of_bounds g q (M/‖P 0‖) ‖g 0‖ (norm_pos_iff.mpr hg0) le_rfl z |
| 62 | (hgn z (ball_subset_closedBall hz)) (hgb z hz) (hqe z hz) |
| 63 | simpa only [div_div, ← hPg0] using hh |
| 64 | have hvar := logarithm_derivative_variation q R (Real.log (M/‖f 0‖)) hR hL hq hq0 hqBound u v hu hv |
| 65 | have hu4 : u ∈ ball (0 : ℂ) (4*R) := ball_subset_ball (by linarith) hu |
| 66 | have hv4 : v ∈ ball (0 : ℂ) (4*R) := ball_subset_ball (by linarith) hv |
| 67 | rw [(hqd u hu4).deriv,(hqd v hv4).deriv] at hvar |
| 68 | have huP : P u ≠ 0 := fun h => hfu (by rw [he',h,zero_mul]) |
| 69 | have hvP : P v ≠ 0 := fun h => hfv (by rw [he',h,zero_mul]) |
| 70 | have hfEq : f = P*g := funext he' |
| 71 | have hdu := logDeriv_mul u huP (hgn u (ball_subset_closedBall hu4)) (hP u) (hg u) |
| 72 | have hdv := logDeriv_mul v hvP (hgn v (ball_subset_closedBall hv4)) (hP v) (hg v) |
| 73 | rw [← hfEq,factorizedRational_logDeriv D hfin hD u huP] at hdu |
| 74 | rw [← hfEq,factorizedRational_logDeriv D hfin hD v hvP] at hdv |
| 75 | have heq : (logDeriv f u-logDeriv f v) - |
| 76 | ∑ ρ ∈ hfin.toFinset, (D ρ : ℂ)*(1/(u-ρ)-1/(v-ρ)) = deriv g u/g u-deriv g v/g v := by |
| 77 | simp_rw [mul_sub,mul_one_div,Finset.sum_sub_distrib] |
| 78 | rw [hdu,hdv] |
| 79 | change (_+deriv g u/g u)-(_+deriv g v/g v)-(_-_) = _ |
| 80 | ring |
| 81 | rw [heq] |
| 82 | exact hvar |
| 83 | |
| 84 | end ConditionalGoldbach |
