module public import ConditionalGoldbach.Proofs.ArithmeticComponentOperators public import ConditionalGoldbach.Proofs.VariableStripOperators public import ConditionalGoldbach.Proofs.SpectralModelOperator public section set_option autoImplicit false noncomputable section open MeasureTheory Filter Set Complex open scoped Topology ComplexConjugate BigOperators namespace ConditionalGoldbach lemma component_kernel_power_bounds_at (a : ℝ) (N : ℕ) [NeZero N] (ha0 : 0 < a) (hN4 : 4 ≤ N) (hGRH : GRH N) (ha : a < beta) : ∀ F ∈ ([characterKernel N, (fun s z => diagonalSeries N (s + z)), continuedModel N] : List (ℂ → ℂ → ℂ)), ∃ C : ℝ, 0 ≤ C ∧ ∀ s z : ℂ, s.re ∈ Icc (a) beta → z.re ∈ Icc (a) beta → ‖F s (conj z)‖ ≤ C * (1 + |s.im|) ^ (1 / 4 : ℝ) * (1 + |z.im|) ^ (1 / 4 : ℝ) := by obtain ⟨L, Z, hL, hZ, hlog, hζ⟩ := arithmeticKernel_growth_inputs_at a N ha0 hN4 hGRH ha intro F hF simp only [List.mem_cons, List.not_mem_nil, or_false] at hF rcases hF with rfl | rfl | rfl · have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (show 1 ≤ N by have := hN4; omega) apply characterKernel_power_bound N (L * (64 * (2 * N) ^ (1 / 4 : ℝ))) (by positivity) intro χ hχ s hs calc _ ≤ L * Real.log (N * (|s.im| + 2)) ^ 2 := hlog χ hχ s hs _ ≤ L * ((64 * (2 * N) ^ (1 / 4 : ℝ)) * (1 + |s.im|) ^ (1 / 4 : ℝ)) := mul_le_mul_of_nonneg_left (logarithm_square_le_quarter_power hN1 s.im) hL _ = _ := by ring · obtain ⟨D, hD, hd⟩ := diagonalSeries_uniform_bound N (show 0 < 2 * a by have := ha0; positivity) refine ⟨D, hD, ?_⟩ intro s z hs hz apply (hd _ (by simp; linarith [hs.1, hz.1])).trans calc D = D * 1 * 1 := by ring _ ≤ _ := by gcongr <;> exact Real.one_le_rpow (by linarith [abs_nonneg s.im, abs_nonneg z.im]) (by norm_num) · exact continuedModel_power_bound (ha0) ha N hN4 Z hZ hζ lemma component_kernel_operator_spec_at (a : ℝ) (N : ℕ) [NeZero N] (ha0 : 0 < a) (hN4 : 4 ≤ N) (hGRH : GRH N) (ha : a < beta) : ∀ F ∈ ([characterKernel N, (fun s z => diagonalSeries N (s + z)), continuedModel N] : List (ℂ → ℂ → ℂ)), RepresentsKernel ha N (weightedAnalyticKernel F) (kernelOperator ha N (weightedAnalyticKernel F)) ∧ IsHilbertSchmidt (kernelOperator ha N (weightedAnalyticKernel F)) ∧ (∀ (h : HardySpace (a) beta) (s : ℂ), s ∈ strip (a) beta → Integrable (fun t : ℝ => weightedAnalyticKernel F s (line (a) t) * (boundaryTraces ha h).1 t) ∧ Integrable (fun t : ℝ => weightedAnalyticKernel F s (line beta t) * (boundaryTraces ha h).2 t)) := by intro F hF obtain ⟨C, hC, hbound⟩ := component_kernel_power_bounds_at a N ha0 hN4 hGRH ha F hF have hd := component_kernel_differentiableOn N (by have := hN4; omega) hGRH have hh := component_kernel_hermitian N have hdiff : DifferentiableOn ℂ (Function.uncurry F) analyticDomain := by simp only [List.mem_cons,List.not_mem_nil,or_false] at hF rcases hF with rfl|rfl|rfl · exact hd.1 · exact hd.2.1 · exact hd.2.2 have hherm : HermitianKernel (weightedAnalyticKernel F) := by apply weightedAnalyticKernel_hermitian simp only [List.mem_cons,List.not_mem_nil,or_false] at hF rcases hF with rfl|rfl|rfl · exact hh.1 · exact hh.2.1 · exact hh.2.2 obtain ⟨hbound,hcol⟩ := weightedAnalyticKernel_inputs_at ha0 ha F hdiff C hC hbound have hspec := kernelOperator_spec_of_hardyColumns ha N _ hherm hbound hcol exact ⟨hspec.1,hspec.2.2.2.1,kernelAction_integrable_of_hardyColumns ha _ hherm hcol⟩ lemma residualOperator_components_at (a : ℝ) (N : ℕ) [NeZero N] (ha0 : 0 < a) (hN4 : 4 ≤ N) (hGRH : GRH N) (ha : a < beta) : residualOperator ha N = arithmeticOperator ha N-diagonalOperator ha N-modelOperator ha N := by have hP := component_kernel_operator_spec_at a N ha0 hN4 hGRH ha (characterKernel N) (by simp) have hD := component_kernel_operator_spec_at a N ha0 hN4 hGRH ha (fun s z => diagonalSeries N (s+z)) (by simp) have hK := component_kernel_operator_spec_at a N ha0 hN4 hGRH ha (continuedModel N) (by simp) apply kernelOperator_eq_of_represents ha N have hPD := RepresentsKernel.sub_integrable ha N _ _ _ _ hP.1 hD.1 hP.2.2 hD.2.2 have hi : ∀ (h : HardySpace (a) beta) (s : ℂ), s ∈ strip (a) beta → Integrable (fun t : ℝ => (weightedAnalyticKernel (characterKernel N) s (line (a) t) - weightedAnalyticKernel (fun u v => diagonalSeries N (u + v)) s (line (a) t)) * (boundaryTraces ha h).1 t) ∧ Integrable (fun t : ℝ => (weightedAnalyticKernel (characterKernel N) s (line beta t) - weightedAnalyticKernel (fun u v => diagonalSeries N (u + v)) s (line beta t)) * (boundaryTraces ha h).2 t) := by intro h s hs constructor · convert ((hP.2.2 h s hs).1.sub (hD.2.2 h s hs).1) using 1 funext t exact sub_mul _ _ _ · convert ((hP.2.2 h s hs).2.sub (hD.2.2 h s hs).2) using 1 funext t exact sub_mul _ _ _ have hPDK := RepresentsKernel.sub_integrable ha N _ _ _ _ hPD hK.1 hi hK.2.2 convert hPDK using 1 · funext s z simp only [weightedAnalyticKernel, weightedKernel, residual, sub_div] · rfl /-- Removing the model changes the residual operator norm by at most the three-halves power of `log N` on the standard strip. -/ theorem residualOperator_norm_sub_arithmetic_diagonal_bound : ∃ C : ℝ, 0 < C ∧ ∀ (N : ℕ) [NeZero N], Real.exp 10 < (N : ℝ) → GRH N → ∀ ha : alpha N < beta, |‖residualOperator ha N‖ - ‖arithmeticOperator ha N - diagonalOperator ha N‖| ≤ C * (Real.log N)^(3 / 2 : ℝ) := by obtain ⟨C, hC, hb⟩ := modelOperator_log_three_halves_bound refine ⟨C, hC, ?_⟩ intro N _ hlarge hGRH ha have ha0 := large_alpha_pos hlarge have he := residualOperator_components_at _ N ha0 (large_parameters hlarge).1 hGRH ha have hdiff : residualOperator ha N - (arithmeticOperator ha N - diagonalOperator ha N) = -modelOperator ha N := by rw [he]; abel calc _ ≤ ‖residualOperator ha N - (arithmeticOperator ha N - diagonalOperator ha N)‖ := abs_norm_sub_norm_le _ _ _ = ‖modelOperator ha N‖ := by rw [hdiff, norm_neg] _ ≤ hsNorm (modelOperator ha N) := (modelOperator_hs_square ha0 ha N).1.norm_le_hsNorm _ ≤ _ := hb N hlarge ha end ConditionalGoldbach