Download data/lean/OAI/NumberTheory/TwoPoint/ShortIntervals/MRTCharacterHarmonic.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.62 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/TwoPoint/ShortIntervals/MRTCharacterHarmonic.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/TwoPoint/ShortIntervals/MRTCharacterHarmonic.lean
-
curl -L -o MRTCharacterHarmonic.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/TwoPoint/ShortIntervals/MRTCharacterHarmonic.lean
4.62 kB
| import OAI.NumberTheory.TwoPoint.ShortIntervals.MRTCharacterContinuation | |
| import Mathlib.NumberTheory.AbelSummation | |
| namespace OAI | |
| /-! Ordered harmonic sums for a nonprincipal character converge to the | |
| existing analytic L-function at one. No absolute convergence at one is used. -/ | |
| namespace TwoPointCorrelations | |
| open Finset Filter MeasureTheory Asymptotics | |
| open scoped Classical Topology | |
| variable {q : β} [NeZero q] | |
| lemma mrt_character_zero (Ο : DirichletCharacter β q) (hΟ : Ο β 1) : | |
| Ο (0 : ZMod q) = 0 := by | |
| have hq : q β 1 := by | |
| intro hq | |
| subst q | |
| apply hΟ | |
| ext n | |
| have hn : n = (1 : ZMod 1) := Subsingleton.elim _ _ | |
| simp [hn] | |
| let : Nontrivial (ZMod q) := ZMod.nontrivial_iff.mpr hq | |
| exact MulChar.map_zero Ο | |
| lemma mrt_character_Icc_zero_eq (Ο : DirichletCharacter β q) (hΟ : Ο β 1) | |
| (N : β) : | |
| (β n β Icc 0 N, Ο (n : ZMod q)) = β n β Icc 1 N, Ο (n : ZMod q) := by | |
| rw [β insert_Icc_add_one_left_eq_Icc N.zero_le, sum_insert (by simp), | |
| Nat.cast_zero, mrt_character_zero Ο hΟ, zero_add, zero_add] | |
| theorem mrt_character_harmonic_tendsto (Ο : DirichletCharacter β q) (hΟ : Ο β 1) : | |
| Tendsto (fun N : β => β n β Icc 1 N, Ο (n : ZMod q) / (n : β)) | |
| atTop (π (DirichletCharacter.LFunction Ο 1)) := by | |
| let c : β β β := fun n => Ο (n : ZMod q) | |
| let f : β β β := fun t => (t : β) ^ (-1 : β) | |
| have hc : c 0 = 0 := by simpa only [c, Nat.cast_zero] using mrt_character_zero Ο hΟ | |
| have hsum (N : β) : (β n β Icc 0 N, c n) = β n β Icc 1 N, Ο (n : ZMod q) := | |
| mrt_character_Icc_zero_eq Ο hΟ N | |
| have hdiff (t : β) (ht : t β Set.Ici (1 : β)) : DifferentiableAt β f t := | |
| differentiableAt_id.ofReal_cpow_const (zero_lt_one.trans_le ht).ne' (by norm_num) | |
| have hint : LocallyIntegrableOn (deriv f) (Set.Ici (1 : β)) := | |
| (Iff.mpr integrableOn_Ici_iff_integrableOn_Ioi | |
| (integrableOn_Ioi_deriv_ofReal_cpow zero_lt_one (by norm_num : (-1 : β).re < 0))).locallyIntegrableOn | |
| have hlim : Tendsto (fun N : β => f N * β n β Icc 0 N, c n) atTop (π 0) := by | |
| apply squeeze_zero_norm (a := fun N : β => (q : β) * (N : β)β»ΒΉ) | |
| Β· intro N | |
| dsimp only [f] | |
| rw [norm_mul, hsum, Complex.cpow_neg_one, norm_inv, Complex.norm_real, | |
| Real.norm_eq_abs, abs_of_nonneg (Nat.cast_nonneg N)] | |
| calc | |
| _ β€ (N : β)β»ΒΉ * q := mul_le_mul_of_nonneg_left | |
| (mrt_character_Icc_norm Ο hΟ N) (inv_nonneg.mpr (Nat.cast_nonneg N)) | |
| _ = _ := mul_comm _ _ | |
| Β· simpa using Tendsto.const_mul (q : β) | |
| (tendsto_inv_atTop_zero.comp tendsto_natCast_atTop_atTop) | |
| have hO : (fun N : β => β n β Icc 0 N, c n) =O[atTop] | |
| (fun N : β => (N : β) ^ (0 : β)) := by | |
| simpa only [hsum] using mrt_character_sum_bigO Ο hΟ | |
| have hderiv : (fun t : β => deriv f t * β n β Icc 0 βtββ, c n) =O[atTop] | |
| (fun t : β => t ^ (-2 : β)) := by | |
| refine IsBigO.mul_atTop_rpow_of_isBigO_rpow (-2) 0 (-2) ?_ ?_ (by norm_num) | |
| Β· have hh := isBigO_deriv_ofReal_cpow_const_atTop (-1 : β) | |
| norm_num only [Complex.neg_re, Complex.one_re] at hh | |
| simpa only [f] using! hh | |
| Β· simpa only [Real.rpow_zero, Function.comp_apply] using! | |
| hO.comp_tendsto tendsto_nat_floor_atTop | |
| have ht := tendsto_sum_mul_atTop_nhds_one_sub_integralβ c hc hdiff hint hlim hderiv | |
| (integrableAtFilter_rpow_atTop_iff.mpr (by norm_num : (-2 : β) < -1)) | |
| have he : (0 : β) - β« t in Set.Ioi (1 : β), deriv f t * β n β Icc 0 βtββ, c n = | |
| DirichletCharacter.LFunction Ο 1 := by | |
| rw [zero_sub, β integral_neg, | |
| β mrtCharacterAbelIntegral_eq_LFunction_of_pos Ο hΟ (by norm_num : 0 < (1 : β).re)] | |
| simp only [mrtCharacterAbelIntegral, one_mul] | |
| apply setIntegral_congr_fun measurableSet_Ioi | |
| intro t ht | |
| change -(deriv f t * β n β Icc 0 βtββ, c n) = mrtCharacterAbelKernel Ο 1 t | |
| rw [show deriv f t = (-1 : β) * (t : β) ^ (-2 : β) by | |
| have hh := Complex.deriv_ofReal_cpow_const | |
| (zero_lt_one.trans ht).ne' (by norm_num : (-1 : β) β 0) | |
| norm_num only at hh | |
| exact hh, hsum] | |
| simp only [mrtCharacterAbelKernel, mrtCharacterSummatory] | |
| norm_num | |
| ring | |
| rw [he] at ht | |
| convert ht using 1 | |
| funext N | |
| have hz : (f 0) * c 0 = 0 := by rw [hc, mul_zero] | |
| rw [β insert_Icc_add_one_left_eq_Icc N.zero_le, sum_insert (by simp), Nat.cast_zero, hz, zero_add, | |
| zero_add] | |
| apply sum_congr rfl | |
| intro n _ | |
| simp [f, c, Complex.cpow_neg_one, div_eq_mul_inv, mul_comm] | |
| end TwoPointCorrelations | |
| end OAI | |