Buckets:
| import OAI.NumberTheory.TwoPoint.ShortIntervals.MRTWeightedPrefix | |
| import OAI.NumberTheory.TwoPoint.ShortIntervals.MRTCoarseFactorization | |
| namespace OAI | |
| /-! The cofactor polynomial has an actual fixed multiplicative window. | |
| Finite partial summation turns its ordinary reciprocal-count prefix bound | |
| into a pointwise bound for that polynomial. -/ | |
| namespace TwoPointCorrelations | |
| open Finset | |
| open scoped Classical ComplexConjugate | |
| lemma mrt_cofactor_window_set (N : ℕ) {a : ℝ} (ha : 1 ≤ a) : | |
| ((Icc 1 (4 * N)).filter (fun m : ℕ => (N : ℝ) < a * (m : ℝ) ∧ a * (m : ℝ) ≤ 2 * N)) = | |
| Ioc ⌊(N : ℝ) / a⌋₊ ⌊(2 * N : ℝ) / a⌋₊ := by | |
| have ha0 : 0 < a := by linarith | |
| have hN0 : (0 : ℝ) ≤ N := Nat.cast_nonneg N | |
| have hfloor : ⌊(2 * N : ℝ) / a⌋₊ ≤ 4 * N := by | |
| apply Nat.floor_le_of_le | |
| have hdiv : (2 * N : ℝ) / a ≤ 2 * N := div_le_self (by positivity) ha | |
| push_cast | |
| linarith | |
| ext m | |
| constructor | |
| · intro hm | |
| obtain ⟨hm, hlo, hhi⟩ := mem_filter.mp hm | |
| apply mem_Ioc.mpr | |
| constructor | |
| · apply (Nat.floor_lt (div_nonneg hN0 ha0.le)).mpr | |
| apply (div_lt_iff₀ ha0).mpr | |
| simpa only [mul_comm] using hlo | |
| · apply Nat.le_floor | |
| apply (le_div_iff₀ ha0).mpr | |
| simpa only [mul_comm] using hhi | |
| · intro hm | |
| obtain ⟨hlo, hhi⟩ := mem_Ioc.mp hm | |
| have hloR := (Nat.floor_lt (div_nonneg hN0 ha0.le)).mp hlo | |
| have hhiR : (m : ℝ) ≤ (2 * N : ℝ) / a := | |
| (Nat.le_floor_iff (by positivity)).mp hhi | |
| apply mem_filter.mpr | |
| refine ⟨mem_Icc.mpr ⟨by omega, hhi.trans hfloor⟩, ?_⟩ | |
| constructor | |
| · simpa only [mul_comm] using (div_lt_iff₀ ha0).mp hloR | |
| · simpa only [mul_comm] using (le_div_iff₀ ha0).mp hhiR | |
| lemma mrt_cofactor_window_ratio (N : ℕ) {a : ℝ} (ha : 0 < a) | |
| (hx : 2 ≤ (N : ℝ) / a) : | |
| 0 < ⌊(N : ℝ) / a⌋₊ ∧ | |
| ⌊(N : ℝ) / a⌋₊ ≤ ⌊(2 * N : ℝ) / a⌋₊ ∧ | |
| ⌊(2 * N : ℝ) / a⌋₊ ≤ 3 * ⌊(N : ℝ) / a⌋₊ := by | |
| have hN0 : (0 : ℝ) ≤ N := Nat.cast_nonneg N | |
| have hm2 : 2 ≤ ⌊(N : ℝ) / a⌋₊ := Nat.le_floor (by exact hx) | |
| have hlow := Nat.lt_floor_add_one ((N : ℝ) / a) | |
| have hhigh := Nat.floor_le (show 0 ≤ (2 * N : ℝ) / a by positivity) | |
| have hdouble : (N : ℝ) / a ≤ (2 * N : ℝ) / a := by | |
| calc | |
| _ ≤ 2 * ((N : ℝ) / a) := by linarith | |
| _ = _ := by ring | |
| refine ⟨by omega, Nat.floor_le_floor hdouble, ?_⟩ | |
| have hid : (2 * N : ℝ) / a = 2 * ((N : ℝ) / a) := by ring | |
| conv at hhigh => rhs; rw [hid] | |
| have hm2R : (2 : ℝ) ≤ ⌊(N : ℝ) / a⌋₊ := by exact_mod_cast hm2 | |
| have hu : (⌊(2 * N : ℝ) / a⌋₊ : ℝ) ≤ 3 * (⌊(N : ℝ) / a⌋₊ : ℝ) := by linarith | |
| exact_mod_cast hu | |
| lemma mrt_dirichlet_atom_twist (F : ℕ → ℂ) (n : ℕ) (t : ℝ) : | |
| mrtDirichletAtom F n t = (F n * conj (mrtArchimedeanTwist t n)) / (n : ℂ) := by | |
| have he : conj (mrtArchimedeanTwist t n) = | |
| Complex.exp (((-Real.log (n : ℝ)) * t : ℝ) * Complex.I) := by | |
| rw [mrtArchimedeanTwist, ← Complex.exp_conj] | |
| congr 1 | |
| simp only [map_mul, Complex.conj_ofReal, Complex.conj_I, Complex.ofReal_neg, | |
| Complex.ofReal_mul] | |
| ring | |
| rw [mrtDirichletAtom, he] | |
| ring | |
| lemma mrt_cofactor_window_identity (P : Finset ℕ) (F : ℕ → ℂ) | |
| (N : ℕ) {a : ℝ} (ha : 1 ≤ a) (t : ℝ) : | |
| mrtCofactorPolynomial P F N a t = | |
| ∑ n ∈ Ioc ⌊(N : ℝ) / a⌋₊ ⌊(2 * N : ℝ) / a⌋₊, | |
| ((F n * conj (mrtArchimedeanTwist t n)) / | |
| ((finitePrimeDivisorCount P n : ℂ) + 1)) / (n : ℂ) := by | |
| unfold mrtCofactorPolynomial | |
| rw [← sum_filter, mrt_cofactor_window_set N ha] | |
| apply sum_congr rfl | |
| intro n _ | |
| rw [mrt_dirichlet_atom_twist] | |
| push_cast | |
| ring | |
| /-- Only the prefixes in the actual cofactor scale enter this bound. -/ | |
| theorem mrt_cofactor_bound_of_prefix (P : Finset ℕ) (F : ℕ → ℂ) | |
| (N : ℕ) {a : ℝ} (ha : 1 ≤ a) (hx : 2 ≤ (N : ℝ) / a) | |
| (t : ℝ) {A : ℝ} (hA : 0 ≤ A) | |
| (hprefix : ∀ k ∈ Icc ⌊(N : ℝ) / a⌋₊ ⌊(2 * N : ℝ) / a⌋₊, | |
| ‖∑ n ∈ Icc 1 k, (F n * conj (mrtArchimedeanTwist t n)) / | |
| ((finitePrimeDivisorCount P n : ℂ) + 1)‖ ≤ A * k) : | |
| ‖mrtCofactorPolynomial P F N a t‖ ≤ 5 * A := by | |
| rw [mrt_cofactor_window_identity P F N ha] | |
| obtain ⟨hm, hmn, hn3⟩ := mrt_cofactor_window_ratio N (by linarith : 0 < a) hx | |
| exact mrt_weighted_prefix_bound _ hm hmn hn3 hA hprefix | |
| end TwoPointCorrelations | |
| end OAI | |
Xet Storage Details
- Size:
- 4.51 kB
- Xet hash:
- b0075a6d33b9e052134b7bfe038a8b337d44f1e8b403bc11babe8eb26b3a2e6b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.