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.HardyFiniteGram |
| 4 | public import ConditionalGoldbach.Proofs.WeightedComponentKernel |
| 5 | |
| 6 | /-! The arithmetic component is a finite positive Gram operator, with its exact boundary trace. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open MeasureTheory Filter Set Complex InnerProductSpace |
| 12 | open scoped Topology ComplexConjugate BigOperators |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma arithmeticOperator_positive_trace_formula (N : ℕ) [NeZero N] |
| 16 | (hlarge : Real.exp 10 < (N : ℝ)) (hGRH : GRH N) (ha : alpha N < beta) : |
| 17 | IsPositiveTraceClass (arithmeticOperator ha N) ∧ |
| 18 | positiveTrace (arithmeticOperator ha N) = |
| 19 | (2 / N.totient : ℝ) * ∑ χ ∈ oddCharacters N, |
| 20 | ((∫ t : ℝ, ‖characterHardyFunction χ (line (alpha N) t)‖ ^ 2) + |
| 21 | ∫ t : ℝ, ‖characterHardyFunction χ (line beta t)‖ ^ 2) := by |
| 22 | classical |
| 23 | let ι := {χ : Character N // χ ∈ oddCharacters N} |
| 24 | have hgex (χ : ι) := characterHardyFunction_representation N hlarge hGRH ha χ.val χ.property |
| 25 | choose g hg hgl hgr using hgex |
| 26 | let c : ℝ := 2 / N.totient |
| 27 | have hc : 0 ≤ c := by dsimp [c]; positivity |
| 28 | let v : ι → HardySpace (alpha N) beta := fun χ => (Real.sqrt c : ℂ) • g χ |
| 29 | let f : ι → ℂ → ℂ := fun χ s => (Real.sqrt c : ℂ) * characterHardyFunction χ.val s |
| 30 | have hvf (χ : ι) (s : ℂ) (hs : s ∈ strip (alpha N) beta) : fourierLaplace (v χ) s = f χ s := by |
| 31 | dsimp only [v] |
| 32 | rw [fourierLaplace_smul _ _ hs, hg χ s hs] |
| 33 | have hvl (χ : ι) : (boundaryTraces ha (v χ)).1 =ᵐ[volume] fun t => f χ (line (alpha N) t) := by |
| 34 | dsimp only [v] |
| 35 | rw [boundaryTraces_smul] |
| 36 | filter_upwards [Lp.coeFn_smul (Real.sqrt c : ℂ) (boundaryTraces ha (g χ)).1, hgl χ] with t ht hg |
| 37 | change ((Real.sqrt c : ℂ) • (boundaryTraces ha (g χ)).1) t = _ |
| 38 | rw [ht, Pi.smul_apply, smul_eq_mul, hg] |
| 39 | have hvr (χ : ι) : (boundaryTraces ha (v χ)).2 =ᵐ[volume] fun t => f χ (line beta t) := by |
| 40 | dsimp only [v] |
| 41 | rw [boundaryTraces_smul] |
| 42 | filter_upwards [Lp.coeFn_smul (Real.sqrt c : ℂ) (boundaryTraces ha (g χ)).2, hgr χ] with t ht hg |
| 43 | change ((Real.sqrt c : ℂ) • (boundaryTraces ha (g χ)).2) t = _ |
| 44 | rw [ht, Pi.smul_apply, smul_eq_mul, hg] |
| 45 | have hc_cast : (c : ℂ) = (2 : ℂ) / N.totient := by dsimp [c]; push_cast; rfl |
| 46 | have hc_sq : (Real.sqrt c : ℂ) ^ 2 = (c : ℂ) := by rw [← Complex.ofReal_pow, Real.sq_sqrt hc] |
| 47 | have hgram (s z : ℂ) : weightedAnalyticKernel (characterKernel N) s z = ∑ χ : ι, f χ s * conj (f χ z) := by |
| 48 | dsimp only [f, weightedAnalyticKernel, characterHardyFunction] |
| 49 | rw [Finset.sum_coe_sort (oddCharacters N) (fun χ : Character N => |
| 50 | (Real.sqrt c : ℂ) * (logDerivative χ s / (1 + s)) * |
| 51 | conj ((Real.sqrt c : ℂ) * (logDerivative χ z / (1 + z))))] |
| 52 | simp only [characterKernel, Complex.conj_conj] |
| 53 | rw [Finset.mul_sum, Finset.sum_div] |
| 54 | apply Finset.sum_congr rfl |
| 55 | intro χ hχ |
| 56 | rw [map_mul, Complex.conj_ofReal, map_div₀, map_add, map_one] |
| 57 | calc |
| 58 | (2 / (N.totient : ℂ) * (logDerivative χ s * conj (logDerivative χ z))) / |
| 59 | ((1 + s) * (1 + conj z)) = |
| 60 | (Real.sqrt c : ℂ) ^ 2 * (logDerivative χ s / (1 + s)) * |
| 61 | (conj (logDerivative χ z) / (1 + conj z)) := by |
| 62 | rw [hc_sq, hc_cast] |
| 63 | simp only [div_eq_mul_inv, mul_inv_rev] |
| 64 | ring |
| 65 | _ = _ := by ring |
| 66 | have hrep := hardyFiniteGram_represents ha N v f (weightedAnalyticKernel (characterKernel N)) hvf hvl hvr hgram |
| 67 | have he : arithmeticOperator ha N = ∑ χ : ι, rankOne ℂ (v χ) (v χ) := |
| 68 | kernelOperator_eq_of_represents ha N hrep |
| 69 | have ht := rankOne_tsum_positiveTraceClass v (hasSum_fintype (fun χ : ι => ‖v χ‖ ^ 2)).summable |
| 70 | (Classical.choice (hardySpace_exists_nat_hilbertBasis (alpha N) beta)) |
| 71 | rw [tsum_fintype, tsum_fintype] at ht |
| 72 | refine ⟨he ▸ ht.1, ?_⟩ |
| 73 | rw [he, ht.2] |
| 74 | have hnorm (χ : ι) : ‖v χ‖ ^ 2 = c * |
| 75 | ((∫ t : ℝ, ‖characterHardyFunction χ.val (line (alpha N) t)‖ ^ 2) + |
| 76 | ∫ t : ℝ, ‖characterHardyFunction χ.val (line beta t)‖ ^ 2) := by |
| 77 | dsimp only [v] |
| 78 | rw [norm_smul, mul_pow, Complex.norm_real, Real.norm_eq_abs, |
| 79 | abs_of_nonneg (Real.sqrt_nonneg _), Real.sq_sqrt hc, boundaryTraces_norm_sq ha (g χ), |
| 80 | l2_norm_sq_integral, l2_norm_sq_integral] |
| 81 | congr 1 |
| 82 | apply congrArg₂ (· + ·) |
| 83 | · exact integral_congr_ae ((hgl χ).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) |
| 84 | · exact integral_congr_ae ((hgr χ).fun_comp (fun z : ℂ => ‖z‖ ^ 2)) |
| 85 | simp_rw [hnorm] |
| 86 | rw [← Finset.mul_sum, Finset.sum_coe_sort (oddCharacters N) (fun χ : Character N => |
| 87 | (∫ t : ℝ, ‖characterHardyFunction χ (line (alpha N) t)‖ ^ 2) + |
| 88 | ∫ t : ℝ, ‖characterHardyFunction χ (line beta t)‖ ^ 2)] |
| 89 | |
| 90 | end ConditionalGoldbach |
