Buckets:
| import OAI.NumberTheory.TwoPoint.Halasz.HalaszGeneralMean | |
| import OAI.NumberTheory.TwoPoint.Halasz.HalaszExceptionalMean | |
| namespace OAI | |
| /-! The localized exceptional-window mean for ordinary multiplicative functions. -/ | |
| namespace TwoPointCorrelations | |
| open Finset Filter | |
| theorem halasz_general_exceptional_mean : ∃ C X₀ : ℝ, 0 < C ∧ | |
| ∀ (N : ℕ), X₀ ≤ N → | |
| ∀ (f : ℕ → ℂ), f 1 = 1 → Multiplicative f → OneBounded f → | |
| ∀ (M₀ τ : ℝ), 0 ≤ M₀ → | |
| (∀ t ∈ Set.Ioc (-(Real.log (N : ℝ) ^ 8)) (Real.log (N : ℝ) ^ 8), | |
| t ∉ Set.Ioc (τ-1/2) (τ+1/2) → M₀ ≤ squaredDistance f (mrtArchimedeanTwist t) N) → | |
| ‖∑ n ∈ Icc 1 N, f n‖ ≤ C * N * | |
| ((min M₀ (Real.log (1+|τ|)) + 1) * Real.exp (-min M₀ (Real.log (1+|τ|))) + | |
| Real.log (Real.log N) / Real.log N) := by | |
| obtain ⟨C₀, Y₀, hC₀, hmean⟩ := halasz_exceptional_mean_value | |
| obtain ⟨K, hK, hcut⟩ := halasz_distance_cutoff_loss | |
| let D := C₀ * Real.exp K + 3 * C₀ + 1 | |
| let C := mrtCorrectionBound * D | |
| have hCorr : 0 < mrtCorrectionBound := Real.exp_pos _ | |
| have hD : 0 < D := by dsimp [D]; positivity | |
| have hC : 0 < C := mul_pos hCorr hD | |
| obtain ⟨X₀, hX₀⟩ := eventually_atTop.mp (halasz_eventually_correction_scale Y₀) | |
| refine ⟨C, X₀, hC, ?_⟩ | |
| intro N hXN f hf1 hf hb M₀ τ hM₀ hd | |
| obtain ⟨hW, hWY, hWN, htail, hlog, hll⟩ := hX₀ N hXN | |
| let W := ⌈Real.log (N : ℝ) ^ 4⌉₊ | |
| let M := min M₀ (Real.log (1+|τ|)) | |
| have hM : 0 ≤ M := le_min hM₀ (Real.log_nonneg (by linarith [abs_nonneg τ])) | |
| have hMM₀ : M ≤ M₀ := min_le_left _ _ | |
| let M' := max 0 (M - K) | |
| let E := (M + 1) * Real.exp (-M) | |
| let R := Real.log (Real.log (N : ℝ)) / Real.log N | |
| let A := C₀ * (Real.exp K * E + 3 * R) | |
| have hE : 0 ≤ E := by dsimp [E]; positivity | |
| have hR : 0 ≤ R := by dsimp [R]; positivity | |
| have hA : 0 ≤ A := by dsimp [A]; positivity | |
| have hNlog : 0 < Real.log (N : ℝ) := by linarith | |
| have hprefix (d : ℕ) (hdN : d ∈ Icc 1 N) (hdW : d ≤ W) : | |
| ‖∑ n ∈ Icc 1 (N / d), mrtCompletePart f n‖ ≤ A * ((N / d : ℕ) : ℝ) := by | |
| have hd0 : 0 < d := (mem_Icc.mp hdN).1 | |
| have hWNnat : W ^ 2 ≤ N := by exact_mod_cast hWN | |
| obtain ⟨hWq, hqN, hNq⟩ := halasz_correction_quotient hW hd0 hdW hWNnat | |
| have hq2 : 2 ≤ N / d := hW.trans hWq | |
| have hqY : Y₀ ≤ ((N / d : ℕ) : ℝ) := | |
| hWY.trans (by exact_mod_cast hWq) | |
| have hlnq : 0 < Real.log ((N / d : ℕ) : ℝ) := | |
| Real.log_pos (by exact_mod_cast (show 1 < N / d by omega)) | |
| have hlogqN : Real.log ((N / d : ℕ) : ℝ) ≤ Real.log (N : ℝ) := | |
| Real.log_le_log (by exact_mod_cast (show 0 < N / d by omega)) (by exact_mod_cast hqN) | |
| have hheight : Real.log ((N / d : ℕ) : ℝ) ^ 8 ≤ Real.log (N : ℝ) ^ 8 := | |
| pow_le_pow_left₀ hlnq.le hlogqN 8 | |
| have hdist (t : ℝ) (ht : t ∈ Set.Ioc | |
| (-(Real.log ((N / d : ℕ) : ℝ) ^ 8)) (Real.log ((N / d : ℕ) : ℝ) ^ 8)) | |
| (hout : t ∉ Set.Ioc (τ-1/2) (τ+1/2)) : | |
| M' ≤ squaredDistance (mrtCompletePart f) (mrtArchimedeanTwist t) (N / d) := by | |
| rw [halasz_complete_distance] | |
| apply max_le | |
| · exact halasz_distance_nonneg f hb _ t | |
| · have hl := hcut f hb (N / d) N hq2 hqN hNq t | |
| have hu := hd t ⟨by linarith [ht.1], ht.2.trans hheight⟩ hout | |
| linarith | |
| have hm := hmean (N / d) hqY (mrtCompletePart f) (fromPrimePowers_one _) | |
| (fun a b ha hb => mrtCompletePart_mul f ha hb) (mrtCompletePart_oneBounded f hb) | |
| M' τ (le_max_left _ _) hdist | |
| have hMlog : M' ≤ Real.log (1+|τ|) := by | |
| have hm : M ≤ Real.log (1+|τ|) := min_le_right _ _ | |
| exact max_le (Real.log_nonneg (by linarith [abs_nonneg τ])) (by linarith) | |
| rw [min_eq_left hMlog] at hm | |
| have hdec := halasz_decay_shift hM hK | |
| have herr := halasz_log_error_cutoff hq2 hqN hNq (by linarith) | |
| calc | |
| _ ≤ C₀ * ((N / d : ℕ) : ℝ) * | |
| ((M' + 1) * Real.exp (-M') + | |
| Real.log (Real.log ((N / d : ℕ) : ℝ)) / Real.log ((N / d : ℕ) : ℝ)) := hm | |
| _ ≤ C₀ * ((N / d : ℕ) : ℝ) * (Real.exp K * E + 3 * R) := by gcongr | |
| _ = _ := by ring | |
| have hc := halasz_correction_mean_bound f hf hb hf1 N W (by omega) A hA hprefix | |
| have hRtail : (W : ℝ) ^ (-(1 / 4 : ℝ)) ≤ R := by | |
| apply htail.trans | |
| exact div_le_div_of_nonneg_right hll hNlog.le | |
| have hsmall : A + (W : ℝ) ^ (-(1 / 4 : ℝ)) ≤ D * (E + R) := by | |
| dsimp [A, D] | |
| have hCE : 0 ≤ C₀ * Real.exp K * R := by positivity | |
| have h3E : 0 ≤ 3 * C₀ * E := by positivity | |
| nlinarith | |
| calc | |
| _ ≤ mrtCorrectionBound * N * (A + (W : ℝ) ^ (-(1 / 4 : ℝ))) := hc | |
| _ ≤ mrtCorrectionBound * N * (D * (E + R)) := | |
| mul_le_mul_of_nonneg_left hsmall (by positivity) | |
| _ = _ := by dsimp [C, E, R]; ring | |
| end TwoPointCorrelations | |
| end OAI | |
Xet Storage Details
- Size:
- 4.91 kB
- Xet hash:
- 1942c391706d2b853a16a39bbe9c2d38ea1cb513da031590f3df1b7dfbec5830
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.