cfahlgren1/math / lean /OAI /NumberTheory /DirichletL /ContinuationContour.lean
cfahlgren1's picture
download
raw
5.86 kB
import OAI.NumberTheory.DirichletL.ContinuationInversion
import Mathlib.Analysis.SpecialFunctions.Gaussian.GaussianIntegral
import Mathlib.MeasureTheory.Integral.IntegralEqImproper
namespace OAI
noncomputable section
open MeasureTheory Set Filter Asymptotics Complex
open scoped Topology
namespace SevenEighths.Continuation
theorem vertical_integral_eq_of_horizontal_vanish (F : ℂ → ℂ) {a b : ℝ}
(hab : a ≤ b) (hhol : DifferentiableOn ℂ F {s : ℂ | a ≤ s.re ∧ s.re ≤ b})
(ha : Integrable (fun y : ℝ => F ((a : ℂ) + y * I)))
(hb : Integrable (fun y : ℝ => F ((b : ℂ) + y * I)))
(hbot : Tendsto (fun T : ℝ => ∫ x : ℝ in a..b, F ((x : ℂ) + (-T) * I))
atTop (𝓝 0))
(htop : Tendsto (fun T : ℝ => ∫ x : ℝ in a..b, F ((x : ℂ) + T * I))
atTop (𝓝 0)) :
(∫ y : ℝ, F ((a : ℂ) + y * I)) = ∫ y : ℝ, F ((b : ℂ) + y * I) := by
have hrect (T : ℝ) :
(∫ x : ℝ in a..b, F ((x : ℂ) + (-T) * I)) -
(∫ x : ℝ in a..b, F ((x : ℂ) + T * I)) +
I * (∫ y : ℝ in -T..T, F ((b : ℂ) + y * I)) -
I * (∫ y : ℝ in -T..T, F ((a : ℂ) + y * I)) = 0 := by
have h := integral_boundary_rect_eq_zero_of_differentiableOn F
((a : ℂ) + (-T) * I) ((b : ℂ) + T * I) (hhol.mono ?_)
· simpa [smul_eq_mul] using h
· intro z hz
have hzre := hz.1
simpa [uIcc_of_le hab] using hzre
have hlim := ((hbot.sub htop).add
((intervalIntegral_tendsto_integral hb tendsto_neg_atTop_atBot tendsto_id).const_mul I)).sub
((intervalIntegral_tendsto_integral ha tendsto_neg_atTop_atBot tendsto_id).const_mul I)
have hzero : (0 : ℂ) - 0 + I * (∫ y : ℝ, F ((b : ℂ) + y * I)) -
I * (∫ y : ℝ, F ((a : ℂ) + y * I)) = 0 :=
tendsto_nhds_unique hlim (by simpa only [id_eq, hrect] using
(tendsto_const_nhds : Tendsto (fun _ : ℝ => (0 : ℂ)) atTop (𝓝 0)))
have heq : I * (∫ y : ℝ, F ((b : ℂ) + y * I)) =
I * (∫ y : ℝ, F ((a : ℂ) + y * I)) := by simpa using sub_eq_zero.mp hzero
exact (mul_left_cancel₀ I_ne_zero heq).symm
theorem horizontal_integral_tendsto_zero (F : ℂ → ℂ) (a b C : ℝ)
(hbound : ∀ x ∈ Set.uIcc a b, ∀ y : ℝ,
‖F ((x : ℂ) + y * I)‖ ≤ C * Real.exp (-(y ^ 2))) :
Tendsto (fun T : ℝ => ∫ x : ℝ in a..b, F ((x : ℂ) + T * I)) atTop (𝓝 0) := by
have hnorm (T : ℝ) : ‖∫ x : ℝ in a..b, F ((x : ℂ) + T * I)‖ ≤
C * Real.exp (-(T ^ 2)) * |b - a| :=
intervalIntegral.norm_integral_le_of_norm_le_const
(fun x hx => hbound x (uIoc_subset_uIcc hx) T)
have hexp : Tendsto (fun T : ℝ => Real.exp (-(T ^ 2))) atTop (𝓝 0) :=
Real.tendsto_exp_atBot.comp (tendsto_neg_atTop_atBot.comp (tendsto_pow_atTop (by decide)))
apply tendsto_zero_iff_norm_tendsto_zero.mpr
exact squeeze_zero (fun _ => norm_nonneg _) hnorm
(by simpa using (hexp.const_mul C).mul_const |b-a|)
theorem integrable_of_gaussian_bound (f : ℝ → ℂ) (C : ℝ)
(hmeas : AEStronglyMeasurable f) (hbound : ∀ y, ‖f y‖ ≤ C * Real.exp (-(y ^ 2))) :
Integrable f := by
have hg : Integrable (fun y : ℝ => C * Real.exp (-(y ^ 2))) := by
simpa using (integrable_exp_neg_mul_sq (b := 1) (by norm_num)).const_mul C
exact hg.mono' hmeas (ae_of_all _ hbound)
theorem vertical_integral_eq_of_gaussian_bound (F : ℂ → ℂ) {a b C : ℝ}
(hab : a ≤ b) (hhol : DifferentiableOn ℂ F {s : ℂ | a ≤ s.re ∧ s.re ≤ b})
(hbound : ∀ x ∈ Icc a b, ∀ y : ℝ,
‖F ((x : ℂ) + y * I)‖ ≤ C * Real.exp (-(y ^ 2))) :
(∫ y : ℝ, F ((a : ℂ) + y * I)) = ∫ y : ℝ, F ((b : ℂ) + y * I) := by
have hc (x : ℝ) (hx : x ∈ Icc a b) : Continuous (fun y : ℝ => F ((x : ℂ) + y * I)) :=
hhol.continuousOn.comp_continuous (by fun_prop) (by intro y; simpa using hx)
apply vertical_integral_eq_of_horizontal_vanish F hab hhol
(integrable_of_gaussian_bound _ C (hc a ⟨le_rfl, hab⟩).aestronglyMeasurable
(hbound a ⟨le_rfl, hab⟩))
(integrable_of_gaussian_bound _ C (hc b ⟨hab, le_rfl⟩).aestronglyMeasurable
(hbound b ⟨hab, le_rfl⟩))
· have h := horizontal_integral_tendsto_zero (fun s => F ((s.re : ℂ) - s.im * I)) a b C ?_
· simpa [sub_eq_add_neg, neg_mul] using h
· intro x hx y
simpa [sub_eq_add_neg, neg_mul] using hbound x (by simpa [uIcc_of_le hab] using hx) (-y)
· exact horizontal_integral_tendsto_zero F a b C
(by simpa [uIcc_of_le hab] using hbound)
def gaussianContourIntegrand (G : ℂ → ℂ) (c Z : ℝ) (s : ℂ) : ℂ :=
(Z : ℂ) ^ (s + (c : ℂ)) * Complex.exp ((s - 5 / 6) ^ 2) * G s
theorem norm_gaussianContourIntegrand (G : ℂ → ℂ) (c x y : ℝ) {Z : ℝ}
(hZ : 0 < Z) :
‖gaussianContourIntegrand G c Z ((x : ℂ) + y * I)‖ =
Z ^ (x + c) * Real.exp ((x - 5 / 6) ^ 2) *
‖G ((x : ℂ) + y * I)‖ * Real.exp (-(y ^ 2)) := by
unfold gaussianContourIntegrand
rw [norm_mul, norm_mul, Complex.norm_cpow_eq_rpow_re_of_pos hZ, Complex.norm_exp]
have hre : ((((x : ℂ) + y * I) - 5 / 6) ^ 2).re = (x - 5 / 6) ^ 2 - y ^ 2 := by
simp [pow_two]
rw [hre, Real.exp_sub]
simp only [add_re, ofReal_re, mul_re, ofReal_im, I_re, mul_zero, zero_mul, sub_self,
add_zero, Real.exp_neg]
ring
theorem gaussianContourIntegrand_differentiableOn {G : ℂ → ℂ} {U : Set ℂ}
(hG : DifferentiableOn ℂ G U) (c : ℝ) {Z : ℝ} (hZ : 0 < Z) :
DifferentiableOn ℂ (gaussianContourIntegrand G c Z) U := by
apply DifferentiableOn.mul _ hG
apply DifferentiableOn.mul
· exact ((differentiable_id.add_const (c : ℂ)).const_cpow
(Or.inl (Complex.ofReal_ne_zero.mpr hZ.ne'))).differentiableOn
· exact (((differentiable_id.sub_const (5 / 6 : ℂ)).pow 2).cexp).differentiableOn
end SevenEighths.Continuation
end
end OAI

Xet Storage Details

Size:
5.86 kB
·
Xet hash:
9a33a64dac2c703cc9615272aeaf29d55dffb9a8eefdf8b6bfd390d2d77ec980

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.