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.PoleLogDerivative |
| 4 | |
| 5 | /-! The exact leading quadratic singularity of the finite character kernel. -/ |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology |
| 11 | open Set Complex Filter |
| 12 | namespace ConditionalGoldbach |
| 13 | |
| 14 | lemma tendsto_real_add_nhdsNE (ρ : ℂ) : |
| 15 | Tendsto (fun x : ℝ => ρ+(x:ℂ)) (𝓝[>] 0) (𝓝[≠] ρ) := by |
| 16 | apply tendsto_nhdsWithin_iff.mpr |
| 17 | constructor |
| 18 | · have hc : Continuous (fun x : ℝ => ρ+(x:ℂ)) := by fun_prop |
| 19 | simpa using (hc.tendsto (0:ℝ)).mono_left nhdsWithin_le_nhds |
| 20 | · filter_upwards [self_mem_nhdsWithin] with x hx |
| 21 | change ρ+(x:ℂ) ≠ ρ |
| 22 | have hx0 : (x:ℂ) ≠ 0 := by exact_mod_cast (show x ≠ 0 from ne_of_gt hx) |
| 23 | simpa using hx0 |
| 24 | |
| 25 | lemma logDerivative_real_residue {N : ℕ} [NeZero N] (χ : Character N) (hχ : χ ≠ 1) (γ : ℝ) : |
| 26 | Tendsto (fun x : ℝ => (x:ℂ)*logDerivative χ (line x γ)) (𝓝[>] 0) |
| 27 | (𝓝 (analyticOrderNatAt χ.LFunction (line (1/2) γ):ℂ)) := by |
| 28 | let ρ : ℂ := line (1/2) γ |
| 29 | have ha := (χ.differentiable_LFunction hχ).analyticAt ρ |
| 30 | have hn := LFunction_analyticOrder_ne_top χ hχ ρ |
| 31 | have horder : meromorphicOrderAt χ.LFunction ρ = (analyticOrderNatAt χ.LFunction ρ:ℤ) := by |
| 32 | rw [ha.meromorphicOrderAt_eq,← Nat.cast_analyticOrderNatAt hn] |
| 33 | simp |
| 34 | have hh := (logDeriv_residue_tendsto ha.meromorphicAt _ horder).comp (tendsto_real_add_nhdsNE ρ) |
| 35 | have he : ∀x : ℝ, ρ+(x:ℂ) = 1/2+line x γ := by |
| 36 | intro x |
| 37 | dsimp [ρ,line] |
| 38 | push_cast |
| 39 | ring |
| 40 | convert hh using 1 |
| 41 | · funext x |
| 42 | change (x:ℂ)*logDeriv χ.LFunction (1/2+line x γ) = |
| 43 | (ρ+(x:ℂ)-ρ)*logDeriv χ.LFunction (ρ+(x:ℂ)) |
| 44 | rw [add_sub_cancel_left,he] |
| 45 | |
| 46 | lemma characterKernel_double_pole {N : ℕ} [NeZero N] (γ : ℝ) : |
| 47 | Tendsto (fun x : ℝ => (x:ℂ)^2*characterKernel N (line x γ) (conj (line x γ))) |
| 48 | (𝓝[>] 0) (𝓝 (poleCoefficient N γ:ℂ)) := by |
| 49 | have hterm : ∀χ ∈ oddCharacters N, |
| 50 | Tendsto (fun x : ℝ => (x:ℂ)^2*(logDerivative χ (line x γ)*conj (logDerivative χ (line x γ)))) |
| 51 | (𝓝[>] 0) (𝓝 ((analyticOrderNatAt χ.LFunction (line (1/2) γ):ℂ)^2)) := by |
| 52 | intro χ hχ |
| 53 | have hh := logDerivative_real_residue χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) γ |
| 54 | have hc := hh.mul (Complex.continuous_conj.tendsto _ |>.comp hh) |
| 55 | convert hc using 1 |
| 56 | · funext x |
| 57 | change (x:ℂ)^2*(logDerivative χ (line x γ)*conj (logDerivative χ (line x γ))) = |
| 58 | ((x:ℂ)*logDerivative χ (line x γ))*conj ((x:ℂ)*logDerivative χ (line x γ)) |
| 59 | rw [map_mul,Complex.conj_ofReal] |
| 60 | ring |
| 61 | · simp |
| 62 | ring |
| 63 | have hsum := (tendsto_finsetSum (oddCharacters N) hterm).const_mul ((2:ℂ)/(N.totient:ℂ)) |
| 64 | convert hsum using 1 |
| 65 | · funext x |
| 66 | unfold characterKernel |
| 67 | simp only [Complex.conj_conj] |
| 68 | rw [← Finset.mul_sum] |
| 69 | ring |
| 70 | · unfold poleCoefficient |
| 71 | push_cast |
| 72 | rfl |
| 73 | |
| 74 | end ConditionalGoldbach |
