Download data/lean/OAI/NumberTheory/TwoPoint/PublishedInputs.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.09 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/TwoPoint/PublishedInputs.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/TwoPoint/PublishedInputs.lean
-
curl -L -o PublishedInputs.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/TwoPoint/PublishedInputs.lean
7.09 kB
| import OAI.NumberTheory.TwoPoint.Basic | |
| import OAI.NumberTheory.TwoPoint.PretentiousDistance | |
| import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic | |
| import Mathlib.NumberTheory.DirichletCharacter.Orthogonality | |
| namespace OAI | |
| /-! | |
| # Short-interval estimates for multiplicative functions | |
| The estimates specialize K. MatomΓ€ki, M. RadziwiΕΕ and T. Tao, | |
| *An averaged form of Chowla's conjecture*, Algebra & Number Theory 9 (2015), | |
| 2167β2196, corrected arXiv:1503.05121v3 (1 March 2022), Theorems 1.3 and 1.7; | |
| DOI 10.2140/ant.2015.9.2167. | |
| The frequency is fixed during the integral. A uniform lower bound on the | |
| squared pretentious distances replaces the infimum in Theorem 1.7. | |
| -/ | |
| namespace TwoPointCorrelations | |
| open scoped BigOperators | |
| open MeasureTheory | |
| /-- The usual additive character `e(Ξ±n) = exp(2ΟiΞ±n)`. -/ | |
| noncomputable def additiveCharacter (Ξ± : β) (n : β) : β := | |
| Complex.exp (((2 * Real.pi * Ξ± * (n : β) : β) : β) * Complex.I) | |
| /-- Sum over the integers `y < n β€ y+H` (for the nonnegative starting points | |
| used in the integral). -/ | |
| noncomputable def shortExponentialSum (b : β β β) (H : β) (Ξ± y : β) : β := | |
| β n β Finset.Icc (Nat.floor y + 1) (Nat.floor (y + (H : β))), | |
| b n * additiveCharacter Ξ± n | |
| /-- The mean over interval origins, with a single fixed frequency. -/ | |
| noncomputable def shortExponentialIntegral (b : β β β) (X H : β) (Ξ± : β) : β := | |
| β« y in (0 : β)..(X : β), βshortExponentialSum b H Ξ± yβ | |
| /-- The character-modulus cutoff in corrected MRT Theorem 1.7. -/ | |
| noncomputable def mrtModulusCutoff (X H : β) : β := | |
| min ((Real.log (X : β)) ^ (1 / (125 : β))) ((Real.log (H : β)) ^ (5 : β)) | |
| /-- The error shared by MRT Theorems 1.3 and 1.7. -/ | |
| noncomputable def mrtShortError (X H : β) : β := | |
| Real.log (Real.log (H : β)) / Real.log (H : β) + | |
| (Real.log (X : β)) ^ (-1 / (700 : β)) | |
| /-- The exact range of lower bounds required by corrected MRT Theorem 1.7. -/ | |
| def MRTDistanceLowerBound (b : β β β) (X H : β) (M : β) : Prop := | |
| β (q : β), 0 < q β (q : β) β€ mrtModulusCutoff X H β | |
| β (Ο : DirichletCharacter β q) (t : β), |t| β€ (X : β) β | |
| M β€ squaredDistance b (characterTwist Ο t) X | |
| /-- Natural-cutoff specialization of corrected MRT Theorem 1.7, with an | |
| explicit lower bound `M` in place of the infimum of squared distances. -/ | |
| def MRTShortExponentialInput : Prop := | |
| β C : β, 0 < C β§ β (X H : β), 10 β€ H β H β€ X β | |
| β (b : β β β), Multiplicative b β OneBounded b β | |
| β M : β, MRTDistanceLowerBound b X H M β β Ξ± : β, | |
| shortExponentialIntegral b X H Ξ± β€ | |
| C * (H : β) * (X : β) * (Real.exp (-M / 20) + mrtShortError X H) | |
| /-- Natural-cutoff Liouville specialization of MRT Theorem 1.3. Endpoint | |
| conventions differ only at a measure-zero set of interval origins. -/ | |
| def MRTLiouvilleShortInput : Prop := | |
| β C : β, 0 < C β§ β (X H : β), 10 β€ H β H β€ X β β Ξ± : β, | |
| shortExponentialIntegral liouville X H Ξ± β€ | |
| C * (H : β) * (X : β) * mrtShortError X H | |
| /-- At a fixed modulus cutoff, uniform nonpretentiousness gives one bound | |
| simultaneously for every character and every permitted finite-prime change. -/ | |
| theorem UniformlyNonpretentious.bounded_moduli {f : β β β} | |
| (hfnp : UniformlyNonpretentious f) (hf : OneBounded f) | |
| (P : Finset β) (Q : β) (K : β) : | |
| βαΆ N : β in Filter.atTop, β q : β, 0 < q β q β€ Q β | |
| β (Ο : DirichletCharacter β q) (b : β β β), OneBounded b β | |
| (β p, Nat.Prime p β p β P β b p = f p) β | |
| β t : β, |t| β€ (N : β) β K β€ squaredDistance b (characterTwist Ο t) N := by | |
| classical | |
| let ΞΉ := (Ξ£ q : Fin Q, DirichletCharacter β (q.val + 1)) | |
| have hfamily := hfnp.finite_family (ΞΉ := ΞΉ) hf P | |
| (fun i => i.1.val + 1) (fun _ => Nat.succ_pos _) (fun i => i.2) K | |
| filter_upwards [hfamily] with N hN | |
| intro q hq hqQ Ο b hb heq t ht | |
| cases q with | |
| | zero => omega | |
| | succ q => | |
| exact hN β¨β¨q, Nat.lt_of_succ_le hqQβ©, Οβ© b hb heq t ht | |
| /-- Fixing the short interval length leaves only finitely many moduli in the | |
| published theorem. Thus the entire MRT distance hypothesis holds uniformly. -/ | |
| theorem UniformlyNonpretentious.eventually_mrt_lower_bound {f : β β β} | |
| (hfnp : UniformlyNonpretentious f) (hf : OneBounded f) | |
| (P : Finset β) (H : β) (M : β) : | |
| βαΆ N : β in Filter.atTop, β b : β β β, OneBounded b β | |
| (β p, Nat.Prime p β p β P β b p = f p) β MRTDistanceLowerBound b N H M := by | |
| have hfinite := hfnp.bounded_moduli hf P (Nat.ceil ((Real.log (H : β)) ^ (5 : β))) M | |
| filter_upwards [hfinite] with N hN | |
| intro b hb heq q hq hqCutoff Ο t ht | |
| have hqQ : q β€ Nat.ceil ((Real.log (H : β)) ^ (5 : β)) := by | |
| exact_mod_cast hqCutoff.trans ((min_le_right _ _).trans (Nat.le_ceil _)) | |
| exact hN q hq hqQ Ο b hb heq t ht | |
| /-- The published short-sum estimate immediately gives a bound on the | |
| normalized mean, without moving a frequency supremum into the integral. -/ | |
| theorem MRTShortExponentialInput.normalized (hMRT : MRTShortExponentialInput) : | |
| β C : β, 0 < C β§ β (X H : β), 10 β€ H β H β€ X β | |
| β (b : β β β), Multiplicative b β OneBounded b β | |
| β M : β, MRTDistanceLowerBound b X H M β β Ξ± : β, | |
| shortExponentialIntegral b X H Ξ± / ((H : β) * (X : β)) β€ | |
| C * (Real.exp (-M / 20) + mrtShortError X H) := by | |
| obtain β¨C, hC, hboundβ© := hMRT | |
| refine β¨C, hC, ?_β© | |
| intro X H hH hX b hmult hbounded M hM Ξ± | |
| have hHp : (0 : β) < H := by exact_mod_cast (by omega : 0 < H) | |
| have hXp : (0 : β) < X := by exact_mod_cast (by omega : 0 < X) | |
| apply (div_le_iffβ (mul_pos hHp hXp)).mpr | |
| convert hbound X H hH hX b hmult hbounded M hM Ξ± using 1 | |
| ring | |
| /-- A genuine conditional consequence of published MRT Theorem 1.7: | |
| finite local modifications preserve the uniform short-sum estimate at every | |
| fixed short-interval length. The estimate is uniform over all modifications | |
| and frequencies, with the frequency still outside the integral. -/ | |
| theorem MRTShortExponentialInput.finite_prime_changes | |
| (hMRT : MRTShortExponentialInput) {f : β β β} | |
| (hfnp : UniformlyNonpretentious f) (hf : OneBounded f) (P : Finset β) : | |
| β C : β, 0 < C β§ β (H : β), 10 β€ H β β M : β, | |
| βαΆ N : β in Filter.atTop, β b : β β β, | |
| Multiplicative b β OneBounded b β | |
| (β p, Nat.Prime p β p β P β b p = f p) β β Ξ± : β, | |
| shortExponentialIntegral b N H Ξ± / ((H : β) * (N : β)) β€ | |
| C * (Real.exp (-M / 20) + mrtShortError N H) := by | |
| obtain β¨C, hC, hboundβ© := hMRT.normalized | |
| refine β¨C, hC, ?_β© | |
| intro H hH M | |
| filter_upwards [hfnp.eventually_mrt_lower_bound hf P H M, | |
| Filter.eventually_ge_atTop H] with N hN hHN | |
| intro b hmult hb heq Ξ± | |
| exact hbound N H hH hHN b hmult hb M (hN b hb heq) Ξ± | |
| end TwoPointCorrelations | |
| end OAI | |