Buckets:
| import OAI.NumberTheory.TwoPointCorrelations.HalaszLogConvolution | |
| namespace OAI | |
| /-! The exact finite hyperbola decomposition underlying Halász's | |
| logarithmic mean-value identity. All endpoints are positive integers. -/ | |
| namespace TwoPointCorrelations | |
| open Finset | |
| open scoped Classical | |
| def halaszHyperbola (N : ℕ) : Finset (ℕ × ℕ) := | |
| ((Icc 1 N).product (Icc 1 N)).filter (fun p => p.1 * p.2 ≤ N) | |
| theorem halasz_sum_divisorsAntidiagonal (F : ℕ → ℕ → ℂ) (N : ℕ) : | |
| (∑ n ∈ Icc 1 N, ∑ p ∈ n.divisorsAntidiagonal, F p.1 p.2) = | |
| ∑ p ∈ halaszHyperbola N, F p.1 p.2 := by | |
| rw [sum_sigma' (Icc 1 N) (fun n => n.divisorsAntidiagonal) (fun _ p => F p.1 p.2)] | |
| apply sum_bij (fun x _ => x.2) | |
| · intro x hx | |
| obtain ⟨hn, hp⟩ := mem_sigma.mp hx | |
| obtain ⟨hmul, hn0⟩ := Nat.mem_divisorsAntidiagonal.mp hp | |
| have hpos : 0 < x.2.1 * x.2.2 := by rw [hmul]; exact (mem_Icc.mp hn).1 | |
| have h₁ : 1 ≤ x.2.1 := Nat.pos_of_mul_pos_right hpos | |
| have h₂ : 1 ≤ x.2.2 := Nat.pos_of_mul_pos_left hpos | |
| apply mem_filter.mpr | |
| refine ⟨mem_product.mpr ⟨mem_Icc.mpr ⟨h₁, ?_⟩, mem_Icc.mpr ⟨h₂, ?_⟩⟩, ?_⟩ | |
| · calc | |
| _ ≤ x.2.1 * x.2.2 := Nat.le_mul_of_pos_right _ h₂ | |
| _ = x.1 := hmul | |
| _ ≤ N := (mem_Icc.mp hn).2 | |
| · calc | |
| _ ≤ x.2.1 * x.2.2 := Nat.le_mul_of_pos_left _ h₁ | |
| _ = x.1 := hmul | |
| _ ≤ N := (mem_Icc.mp hn).2 | |
| · exact hmul ▸ (mem_Icc.mp hn).2 | |
| · intro x hx y hy hxy | |
| obtain ⟨_, hpx⟩ := mem_sigma.mp hx | |
| obtain ⟨_, hpy⟩ := mem_sigma.mp hy | |
| have hxprod := (Nat.mem_divisorsAntidiagonal.mp hpx).1 | |
| have hyprod := (Nat.mem_divisorsAntidiagonal.mp hpy).1 | |
| have hn : x.1 = y.1 := by rw [← hxprod, ← hyprod, hxy] | |
| cases x | |
| cases y | |
| simp_all | |
| · intro p hp | |
| obtain ⟨hp, hprod⟩ := mem_filter.mp hp | |
| obtain ⟨h₁, h₂⟩ := mem_product.mp hp | |
| have hpos : 0 < p.1 * p.2 := Nat.mul_pos (mem_Icc.mp h₁).1 (mem_Icc.mp h₂).1 | |
| refine ⟨⟨p.1 * p.2, p⟩, mem_sigma.mpr ⟨mem_Icc.mpr ⟨hpos, hprod⟩, | |
| Nat.mem_divisorsAntidiagonal.mpr ⟨rfl, Nat.ne_of_gt hpos⟩⟩, rfl⟩ | |
| · intro x _ | |
| rfl | |
| theorem halasz_logarithmic_sum (f : ℕ → ℂ) | |
| (hf : ∀ m n : ℕ, 0 < m → 0 < n → f (m * n) = f m * f n) (N : ℕ) : | |
| (∑ n ∈ Icc 1 N, f n * (Real.log (n : ℝ) : ℂ)) = | |
| ∑ p ∈ halaszHyperbola N, | |
| (ArithmeticFunction.vonMangoldt p.1 : ℂ) * f p.1 * f p.2 := by | |
| calc | |
| _ = ∑ n ∈ Icc 1 N, ∑ p ∈ n.divisorsAntidiagonal, | |
| (ArithmeticFunction.vonMangoldt p.1 : ℂ) * f p.1 * f p.2 := by | |
| apply sum_congr rfl | |
| intro n _ | |
| rw [Nat.sum_divisorsAntidiagonal (fun a b => | |
| (ArithmeticFunction.vonMangoldt a : ℂ) * f a * f b)] | |
| exact halasz_logarithmic_convolution f hf n | |
| _ = _ := halasz_sum_divisorsAntidiagonal | |
| (fun a b => (ArithmeticFunction.vonMangoldt a : ℂ) * f a * f b) N | |
| end TwoPointCorrelations | |
| end OAI | |
Xet Storage Details
- Size:
- 2.99 kB
- Xet hash:
- b4d95bc46b4ac9494224a85c560e334e21f51d7e19c3e2d99a2f2396c5ca9c30
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.