Buckets:
| import OAI.NumberTheory.TwoPoint.Bounds.ReciprocalPrimeBands | |
| namespace OAI | |
| /-! Concrete modulus-five supplies and their reciprocal masses. We use | |
| half-open bands `(exp A, exp B]`; this harmless endpoint convention makes | |
| adjacent supplies exactly disjoint and matches finite Abel summation. -/ | |
| namespace TwoPointCorrelations | |
| open Finset Filter | |
| open scoped Classical | |
| noncomputable def deletedModFiveLogWeight (E : Finset ℕ) (one : Bool) (p : ℕ) : ℝ := | |
| if ModFivePrime one p ∧ p ∉ E then Real.log p else 0 | |
| lemma partialSum_deletedModFive (E : Finset ℕ) (one : Bool) (x : ℝ) : | |
| partialCoefficientSum (deletedModFiveLogWeight E one) x = | |
| deletedModFiveTheta E one x := by | |
| unfold partialCoefficientSum deletedModFiveTheta deletedModFivePrimes | |
| modFivePrimesUpTo deletedModFiveLogWeight | |
| rw [sdiff_eq_filter, sum_filter, sum_filter] | |
| apply sum_congr rfl | |
| intro p hp | |
| by_cases h : ModFivePrime one p <;> by_cases he : p ∈ E <;> simp [h, he] | |
| noncomputable def modFivePrimeBand (E : Finset ℕ) (one : Bool) (a b : ℝ) : Finset ℕ := | |
| (Ioc ⌊a⌋₊ ⌊b⌋₊).filter (fun p => ModFivePrime one p ∧ p ∉ E) | |
| lemma modFivePrimeBand_mem {E : Finset ℕ} {one : Bool} {a b : ℝ} | |
| (ha : 0 ≤ a) (hb : 0 ≤ b) {p : ℕ} : | |
| p ∈ modFivePrimeBand E one a b ↔ | |
| a < (p : ℝ) ∧ (p : ℝ) ≤ b ∧ ModFivePrime one p ∧ p ∉ E := by | |
| simp only [modFivePrimeBand, mem_filter, mem_Ioc] | |
| rw [Nat.floor_lt ha, Nat.le_floor_iff hb] | |
| tauto | |
| lemma modFivePrimeBand_sum (E : Finset ℕ) (one : Bool) (a b : ℝ) : | |
| (∑ p ∈ modFivePrimeBand E one a b, 1 / (p : ℝ)) = | |
| ∑ p ∈ Ioc ⌊a⌋₊ ⌊b⌋₊, reciprocalLog p * deletedModFiveLogWeight E one p := by | |
| rw [modFivePrimeBand, sum_filter] | |
| apply sum_congr rfl | |
| intro p hp | |
| by_cases hs : ModFivePrime one p ∧ p ∉ E | |
| · have hl : Real.log (p : ℝ) ≠ 0 := | |
| (Real.log_pos (by exact_mod_cast hs.1.1.one_lt)).ne' | |
| rw [ite_eq_left hs] | |
| unfold deletedModFiveLogWeight | |
| rw [ite_eq_left hs] | |
| unfold reciprocalLog | |
| field_simp | |
| · simp [deletedModFiveLogWeight, hs] | |
| /-- Both selected prime classes have their correct logarithmic-band mass, | |
| uniformly over the upper endpoint and with any fixed finite exclusions. -/ | |
| theorem ModFiveThetaInput.band_error (hP : ModFiveThetaInput) (E : Finset ℕ) : | |
| ∃ K : ℝ, 0 ≤ K ∧ ∀ (one : Bool) (A B : ℝ), 1 ≤ A → A ≤ B → | |
| |(∑ p ∈ modFivePrimeBand E one (Real.exp A) (Real.exp B), 1 / (p : ℝ)) - | |
| modFiveDensity one * (Real.log B - Real.log A)| ≤ 4 * K / A := by | |
| obtain ⟨K, hK, h⟩ := hP.deleted_log_error E | |
| refine ⟨K, hK, fun one A B hA hAB => ?_⟩ | |
| rw [modFivePrimeBand_sum] | |
| have hh := reciprocal_band_error (deletedModFiveLogWeight E one) (modFiveDensity one) | |
| K (Real.exp A) (Real.exp B) hK (Real.exp_le_exp.mpr hA) | |
| (Real.exp_le_exp.mpr hAB) (fun x hx => by | |
| rw [partialSum_deletedModFive] | |
| apply h one x | |
| have h2 : (2 : ℝ) ≤ Real.exp 1 := by linarith [Real.add_one_le_exp (1 : ℝ)] | |
| exact h2.trans ((Real.exp_le_exp.mpr hA).trans hx.1)) | |
| simpa only [Real.log_exp] using hh | |
| /-- The concrete centered-prime supplies have reciprocal mass in `[W,2W]` | |
| once their lower logarithmic endpoint exceeds one fixed threshold. -/ | |
| theorem ModFiveThetaInput.centered_band_mass (hP : ModFiveThetaInput) | |
| (E : Finset ℕ) (W : ℝ) (hW : 0 < W) : | |
| ∃ A₀ : ℝ, 1 ≤ A₀ ∧ ∀ A : ℝ, A₀ ≤ A → | |
| W ≤ (∑ p ∈ modFivePrimeBand E true (Real.exp A) | |
| (Real.exp (A * Real.exp (6 * W))), 1 / (p : ℝ)) ∧ | |
| (∑ p ∈ modFivePrimeBand E true (Real.exp A) | |
| (Real.exp (A * Real.exp (6 * W))), 1 / (p : ℝ)) ≤ 2 * W := by | |
| obtain ⟨K, hK, h⟩ := hP.band_error E | |
| refine ⟨max 1 (8 * K / W), le_max_left _ _, fun A hA => ?_⟩ | |
| have hA1 : 1 ≤ A := (le_max_left _ _).trans hA | |
| have hA0 : 0 < A := zero_lt_one.trans_le hA1 | |
| have hB : A ≤ A * Real.exp (6 * W) := by | |
| have hh := mul_le_mul_of_nonneg_left (Real.one_le_exp (by positivity : 0 ≤ 6 * W)) hA0.le | |
| simpa only [mul_one] using hh | |
| have hmass := h true A (A * Real.exp (6 * W)) hA1 hB | |
| have he : Real.log (A * Real.exp (6 * W)) - Real.log A = 6 * W := by | |
| rw [Real.log_mul hA0.ne' (Real.exp_pos _).ne', Real.log_exp] | |
| ring | |
| rw [he] at hmass | |
| have hsmall : 4 * K / A ≤ W / 2 := by | |
| have hh := (div_le_iff₀ hW).mp ((le_max_right 1 (8 * K / W)).trans hA) | |
| apply (div_le_iff₀ hA0).mpr | |
| nlinarith [hh] | |
| have hh := abs_le.mp hmass | |
| norm_num [modFiveDensity] at hh | |
| simp only [one_div] | |
| constructor <;> linarith | |
| end TwoPointCorrelations | |
| end OAI | |
Xet Storage Details
- Size:
- 4.65 kB
- Xet hash:
- 8b649ca021e0f51774dc2b47c28ae9ef2d926ee64165b68dd5941ee42b55515d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.