Buckets:
| import OAI.NumberTheory.TwoPoint.Bounds.ComplexTupleProfiles | |
| import OAI.NumberTheory.TwoPoint.Bounds.PartialCenteringSum | |
| namespace OAI | |
| /-! Average the exact complex partial-centering errors with their padding-dependent cost. -/ | |
| namespace TwoPointCorrelations | |
| open Finset | |
| open scoped Classical | |
| lemma tupleComplexCenteredProfile_nonraw_prefix {J : ℕ} (P : Fin J → Finset ℕ) | |
| (hprime : ∀ j, ∀ p ∈ P j, p.Prime) | |
| (hdisjoint : ∀ j k, k ≠ j → Disjoint (P j) (P k)) | |
| (q : ℕ) (hcop : ∀ j, ∀ p ∈ P j, q.Coprime p) | |
| (eligible : ℕ → ℕ → Prop) (F G : ℕ → ℂ) (h X : ℕ) : | |
| (positivePrefix (tupleComplexCenteredProfile P q eligible F G h) X - | |
| positivePrefix (tupleComplexPartialProfile P ∅ q eligible F G h) X) / (X : ℂ) = | |
| ∑ I ∈ (univ : Finset (Fin J)).powerset.filter Finset.Nonempty, | |
| (-1 : ℂ) ^ I.card * | |
| (positivePrefix (tupleComplexPartialProfile P I q eligible F G h) X / (X : ℂ)) := by | |
| have hp : positivePrefix (fun n => tupleComplexCenteredProfile P q eligible F G h n - | |
| tupleComplexPartialProfile P ∅ q eligible F G h n) X = | |
| positivePrefix (tupleComplexCenteredProfile P q eligible F G h) X - | |
| positivePrefix (tupleComplexPartialProfile P ∅ q eligible F G h) X := by | |
| simp only [positivePrefix, sum_sub_distrib] | |
| rw [← hp] | |
| simp_rw [tupleComplexCenteredProfile_nonraw P hprime hdisjoint q hcop eligible F G h] | |
| rw [positivePrefix_sum_finite, sum_div] | |
| apply sum_congr rfl | |
| intro I _ | |
| rw [positivePrefix_const_mul] | |
| ring | |
| lemma complex_partial_centering_sum_bound {J : ℕ} (P : Fin J → Finset ℕ) | |
| (hprime : ∀ j, ∀ p ∈ P j, p.Prime) | |
| (hdisjoint : ∀ j k, k ≠ j → Disjoint (P j) (P k)) | |
| (hmass : ∀ j, 1 ≤ primeHarmonicMass (P j)) | |
| (Q : Finset ℕ) (weight : ℕ → ℝ) (hweight : ∀ q ∈ Q, 0 ≤ weight q) | |
| (hcop : ∀ q ∈ Q, ∀ j, ∀ p ∈ P j, q.Coprime p) | |
| (eligible : ℕ → ℕ → Prop) (F G : ℕ → ℂ) (h X : ℕ) | |
| (E : ℕ → ℝ) (hE : ∀ q ∈ Q, 0 ≤ E q) | |
| (hbound : ∀ q ∈ Q, ∀ I ∈ (univ : Finset (Fin J)).powerset.filter Finset.Nonempty, | |
| ‖positivePrefix (tupleComplexPartialProfile P I q eligible F G h) X / (X : ℂ)‖ ≤ | |
| E q * ((1 / (q : ℝ)) * ∏ j : {j // j ∉ I}, primeHarmonicMass (P j))) : | |
| ‖∑ q ∈ Q, (weight q : ℂ) * | |
| ((positivePrefix (tupleComplexCenteredProfile P q eligible F G h) X - | |
| positivePrefix (tupleComplexPartialProfile P ∅ q eligible F G h) X) / (X : ℂ))‖ ≤ | |
| (2 : ℝ) ^ J * (∑ q ∈ Q, weight q / (q : ℝ) * E q) * | |
| ∏ j, primeHarmonicMass (P j) := by | |
| let V := ∏ j, primeHarmonicMass (P j) | |
| have hV : 0 ≤ V := prod_nonneg fun j _ => zero_le_one.trans (hmass j) | |
| have hc : (((univ : Finset (Fin J)).powerset.filter Finset.Nonempty).card : ℝ) ≤ | |
| (2 : ℝ) ^ J := by | |
| have hn := card_le_card (filter_subset (s := (univ : Finset (Fin J)).powerset) | |
| (p := Finset.Nonempty)) | |
| simpa only [card_powerset, card_univ, Fintype.card_fin, Nat.cast_pow, Nat.cast_ofNat] using | |
| (show (((univ : Finset (Fin J)).powerset.filter Finset.Nonempty).card : ℝ) ≤ | |
| ((univ : Finset (Fin J)).powerset.card : ℝ) by exact_mod_cast hn) | |
| calc | |
| _ ≤ ∑ q ∈ Q, ‖(weight q : ℂ) * | |
| ((positivePrefix (tupleComplexCenteredProfile P q eligible F G h) X - | |
| positivePrefix (tupleComplexPartialProfile P ∅ q eligible F G h) X) / (X : ℂ))‖ := | |
| norm_sum_le _ _ | |
| _ ≤ ∑ q ∈ Q, weight q * ((2 : ℝ) ^ J * (E q * (1 / (q : ℝ)) * V)) := by | |
| apply sum_le_sum | |
| intro q hq | |
| have hEq := hE q hq | |
| rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (hweight q hq), | |
| tupleComplexCenteredProfile_nonraw_prefix P hprime hdisjoint q (hcop q hq)] | |
| apply mul_le_mul_of_nonneg_left _ (hweight q hq) | |
| calc | |
| _ ≤ ∑ I ∈ (univ : Finset (Fin J)).powerset.filter Finset.Nonempty, | |
| ‖(-1 : ℂ) ^ I.card * | |
| (positivePrefix (tupleComplexPartialProfile P I q eligible F G h) X / (X : ℂ))‖ := | |
| norm_sum_le _ _ | |
| _ ≤ ∑ _I ∈ (univ : Finset (Fin J)).powerset.filter Finset.Nonempty, | |
| E q * (1 / (q : ℝ)) * V := by | |
| apply sum_le_sum | |
| intro I hI | |
| simp only [norm_mul, norm_pow, norm_neg, norm_one, one_pow, one_mul] | |
| apply (hbound q hq I hI).trans | |
| have hv := complement_product_le (fun j => primeHarmonicMass (P j)) hmass I | |
| dsimp only [V] | |
| calc | |
| _ = (E q * (1 / (q : ℝ))) * ∏ j : {j // j ∉ I}, primeHarmonicMass (P j) := by ring | |
| _ ≤ _ := mul_le_mul_of_nonneg_left hv (by positivity) | |
| _ ≤ (2 : ℝ) ^ J * (E q * (1 / (q : ℝ)) * V) := by | |
| simp only [sum_const, nsmul_eq_mul] | |
| exact mul_le_mul_of_nonneg_right hc (by positivity) | |
| _ = _ := by | |
| rw [mul_sum, sum_mul] | |
| apply sum_congr rfl | |
| intro q _ | |
| dsimp only [V] | |
| ring | |
| end TwoPointCorrelations | |
| end OAI | |
Xet Storage Details
- Size:
- 5.05 kB
- Xet hash:
- cb2fe9ece6bc9bb300c42fefcadb517250d71f0ae12354e5d62a0efbe7628090
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.