Buckets:
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators | |
| namespace Problem367 | |
| theorem norm_sum_sq_le_card_mul_of_re_inner_rows | |
| {ΞΉ π E : Type*} [RCLike π] [NormedAddCommGroup E] [InnerProductSpace π E] | |
| (s : Finset ΞΉ) (f : ΞΉ β E) {a : ΞΉ β ΞΉ β β} {K : β} | |
| (hinner : β i β s, β j β s, RCLike.re (inner π (f i) (f j)) β€ a i j) | |
| (hrow : β i β s, β j β s, a i j β€ K) : | |
| ββ i β s, f iβ ^ 2 β€ (s.card : β) * K := by | |
| rw [β inner_self_eq_norm_sq (π := π), sum_inner] | |
| simp_rw [inner_sum, map_sum] | |
| calc | |
| β i β s, β j β s, RCLike.re (inner π (f i) (f j)) | |
| β€ β i β s, β j β s, a i j := | |
| Finset.sum_le_sum fun i hi => Finset.sum_le_sum fun j hj => hinner i hi j hj | |
| _ β€ β _i β s, K := Finset.sum_le_sum hrow | |
| _ = (s.card : β) * K := by simp | |
| theorem norm_sum_sq_le_card_mul_of_inner_rows | |
| {ΞΉ E : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| (s : Finset ΞΉ) (f : ΞΉ β E) {a : ΞΉ β ΞΉ β β} {K : β} | |
| (hinner : β i β s, β j β s, inner β (f i) (f j) β€ a i j) | |
| (hrow : β i β s, β j β s, a i j β€ K) : | |
| ββ i β s, f iβ ^ 2 β€ (s.card : β) * K := | |
| norm_sum_sq_le_card_mul_of_re_inner_rows (π := β) s f hinner hrow | |
| theorem sum_int_translate_le_tsum | |
| (s : Finset β€) (i : β€) {c : β€ β β} | |
| (hc : β k, 0 β€ c k) (hsum : Summable c) : | |
| β j β s, c (j - i) β€ β' k, c k := by | |
| classical | |
| calc | |
| β j β s, c (j - i) = β k β s.image (fun j => j - i), c k := by | |
| symm | |
| apply Finset.sum_image | |
| intro a _ b _ hab | |
| exact sub_left_injective hab | |
| _ β€ β' k, c k := Summable.sum_le_tsum _ (fun k _ => hc k) hsum | |
| theorem norm_sum_sq_le_card_mul_tsum_kernel | |
| {E : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| (s : Finset β€) (f : β€ β E) {c : β€ β β} {S : β} | |
| (hc : β k, 0 β€ c k) (hsum : Summable c) (hS : 0 β€ S) | |
| (hinner : β i β s, β j β s, | |
| inner β (f i) (f j) β€ S * c (j - i)) : | |
| ββ i β s, f iβ ^ 2 β€ (s.card : β) * (S * β' k, c k) := by | |
| apply norm_sum_sq_le_card_mul_of_inner_rows s f hinner | |
| intro i _ | |
| rw [β Finset.mul_sum] | |
| exact mul_le_mul_of_nonneg_left (sum_int_translate_le_tsum s i hc hsum) hS | |
| def pathCorrelationKernel (q : β) (k : β€) : β := | |
| ((k.natAbs : β) + 1) * q ^ k.natAbs | |
| theorem pathCorrelationKernel_nonneg {q : β} (hq : 0 β€ q) (k : β€) : | |
| 0 β€ pathCorrelationKernel q k := by | |
| unfold pathCorrelationKernel | |
| positivity | |
| theorem summable_pathCorrelationKernel {q : β} (hq0 : 0 β€ q) (hq1 : q < 1) : | |
| Summable (pathCorrelationKernel q) := by | |
| have hn : βqβ < 1 := by simpa [Real.norm_eq_abs, abs_of_nonneg hq0] using hq1 | |
| have hlin : Summable (fun n : β => (n : β) * q ^ n) := by | |
| simpa using summable_pow_mul_geometric_of_norm_lt_one 1 hn | |
| have hgeom : Summable (fun n : β => q ^ n) := summable_geometric_of_lt_one hq0 hq1 | |
| have hnat : Summable (fun n : β => ((n : β) + 1) * q ^ n) := by | |
| simpa [add_mul] using hlin.add hgeom | |
| apply summable_int_iff_summable_nat_and_neg.mpr | |
| constructor <;> simpa [pathCorrelationKernel] using hnat | |
| theorem tsum_pathCorrelationKernel {q : β} (hq0 : 0 β€ q) (hq1 : q < 1) : | |
| (β' k, pathCorrelationKernel q k) = 2 / (1 - q) ^ 2 - 1 := by | |
| have hn : βqβ < 1 := by simpa [Real.norm_eq_abs, abs_of_nonneg hq0] using hq1 | |
| have hnat : HasSum (fun n : β => ((n : β) + 1) * q ^ n) | |
| (1 / (1 - q) ^ 2) := by | |
| simpa using hasSum_choose_mul_geometric_of_norm_lt_one 1 hn | |
| have hpos : HasSum (fun n : β => pathCorrelationKernel q (n : β€)) | |
| (1 / (1 - q) ^ 2) := by | |
| simpa [pathCorrelationKernel] using hnat | |
| have hneg : HasSum (fun n : β => pathCorrelationKernel q (-(n : β€))) | |
| (1 / (1 - q) ^ 2) := by | |
| simpa [pathCorrelationKernel] using hnat | |
| have h := (hpos.of_nat_of_neg hneg).tsum_eq | |
| simpa [pathCorrelationKernel, β two_mul, div_eq_mul_inv] using h | |
| theorem norm_sum_sq_le_pathCorrelationKernel | |
| {E : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| (s : Finset β€) (f : β€ β E) {q S : β} | |
| (hq0 : 0 β€ q) (hq1 : q < 1) (hS : 0 β€ S) | |
| (hinner : β i β s, β j β s, | |
| inner β (f i) (f j) β€ S * pathCorrelationKernel q (j - i)) : | |
| ββ i β s, f iβ ^ 2 β€ | |
| (s.card : β) * (S * β' k, pathCorrelationKernel q k) := | |
| norm_sum_sq_le_card_mul_tsum_kernel s f | |
| (pathCorrelationKernel_nonneg hq0) (summable_pathCorrelationKernel hq0 hq1) hS hinner | |
| theorem norm_sum_sq_le_geometric_inner_bound | |
| {π E : Type*} [RCLike π] [NormedAddCommGroup E] [InnerProductSpace π E] | |
| (s : Finset β€) (f : β€ β E) {q S : β} | |
| (hq0 : 0 β€ q) (hq1 : q < 1) (hS : 0 β€ S) | |
| (hinner : β i β s, β j β s, | |
| βinner π (f i) (f j)β β€ S * pathCorrelationKernel q (j - i)) : | |
| ββ i β s, f iβ ^ 2 β€ (s.card : β) * S * (2 / (1 - q) ^ 2 - 1) := by | |
| have h := norm_sum_sq_le_card_mul_of_re_inner_rows s f | |
| (fun i hi j hj => (RCLike.re_le_norm _).trans (hinner i hi j hj)) | |
| (K := S * β' k, pathCorrelationKernel q k) (fun i _ => by | |
| rw [β Finset.mul_sum] | |
| exact mul_le_mul_of_nonneg_left (sum_int_translate_le_tsum s i | |
| (pathCorrelationKernel_nonneg hq0) (summable_pathCorrelationKernel hq0 hq1)) hS) | |
| simpa [tsum_pathCorrelationKernel hq0 hq1, mul_assoc] using h | |
| open MeasureTheory | |
| theorem integral_sum_sq_eq_sum_pair_moments | |
| {ΞΉ Ξ© : Type*} [MeasurableSpace Ξ©] {ΞΌ : Measure Ξ©} | |
| (s : Finset ΞΉ) (f : ΞΉ β Ξ© β β) | |
| (hf : β i β s, MemLp (f i) 2 ΞΌ) : | |
| (β« Ο, (β i β s, f i Ο) ^ 2 βΞΌ) = | |
| β i β s, β j β s, β« Ο, f i Ο * f j Ο βΞΌ := by | |
| have hp : β i β s, β j β s, Integrable (fun Ο => f i Ο * f j Ο) ΞΌ := by | |
| intro i hi j hj | |
| exact (hf i hi).integrable_mul (hf j hj) | |
| calc | |
| (β« Ο, (β i β s, f i Ο) ^ 2 βΞΌ) = | |
| β« Ο, β i β s, β j β s, f i Ο * f j Ο βΞΌ := by | |
| congr 1 | |
| funext Ο | |
| rw [pow_two, Finset.sum_mul_sum] | |
| _ = β i β s, β j β s, β« Ο, f i Ο * f j Ο βΞΌ := by | |
| rw [integral_finsetSum s (fun i hi => integrable_finsetSum s (hp i hi))] | |
| apply Finset.sum_congr rfl | |
| intro i hi | |
| exact integral_finsetSum s (hp i hi) | |
| theorem integral_sum_sq_le_card_mul_of_pair_rows | |
| {ΞΉ Ξ© : Type*} [MeasurableSpace Ξ©] {ΞΌ : Measure Ξ©} | |
| (s : Finset ΞΉ) (f : ΞΉ β Ξ© β β) {a : ΞΉ β ΞΉ β β} {K : β} | |
| (hf : β i β s, MemLp (f i) 2 ΞΌ) | |
| (hpair : β i β s, β j β s, (β« Ο, f i Ο * f j Ο βΞΌ) β€ a i j) | |
| (hrow : β i β s, β j β s, a i j β€ K) : | |
| (β« Ο, (β i β s, f i Ο) ^ 2 βΞΌ) β€ (s.card : β) * K := by | |
| rw [integral_sum_sq_eq_sum_pair_moments s f hf] | |
| calc | |
| β i β s, β j β s, β« Ο, f i Ο * f j Ο βΞΌ | |
| β€ β i β s, β j β s, a i j := | |
| Finset.sum_le_sum fun i hi => Finset.sum_le_sum fun j hj => hpair i hi j hj | |
| _ β€ β _i β s, K := Finset.sum_le_sum hrow | |
| _ = (s.card : β) * K := by simp | |
| theorem integral_sum_sq_le_card_mul_tsum_kernel | |
| {Ξ© : Type*} [MeasurableSpace Ξ©] {ΞΌ : Measure Ξ©} | |
| (s : Finset β€) (f : β€ β Ξ© β β) {c : β€ β β} {S : β} | |
| (hc : β k, 0 β€ c k) (hsum : Summable c) (hS : 0 β€ S) | |
| (hf : β i β s, MemLp (f i) 2 ΞΌ) | |
| (hpair : β i β s, β j β s, | |
| (β« Ο, f i Ο * f j Ο βΞΌ) β€ S * c (j - i)) : | |
| (β« Ο, (β i β s, f i Ο) ^ 2 βΞΌ) β€ | |
| (s.card : β) * (S * β' k, c k) := by | |
| apply integral_sum_sq_le_card_mul_of_pair_rows s f hf hpair | |
| intro i _ | |
| rw [β Finset.mul_sum] | |
| exact mul_le_mul_of_nonneg_left (sum_int_translate_le_tsum s i hc hsum) hS | |
| theorem integral_sum_sq_le_geometric_pair_bound | |
| {Ξ© : Type*} [MeasurableSpace Ξ©] {ΞΌ : Measure Ξ©} | |
| (s : Finset β€) (f : β€ β Ξ© β β) {q S : β} | |
| (hq0 : 0 β€ q) (hq1 : q < 1) (hS : 0 β€ S) | |
| (hf : β i β s, MemLp (f i) 2 ΞΌ) | |
| (hpair : β i β s, β j β s, | |
| |β« Ο, f i Ο * f j Ο βΞΌ| β€ S * pathCorrelationKernel q (j - i)) : | |
| (β« Ο, (β i β s, f i Ο) ^ 2 βΞΌ) β€ | |
| (s.card : β) * S * (2 / (1 - q) ^ 2 - 1) := by | |
| have h := integral_sum_sq_le_card_mul_tsum_kernel s f | |
| (pathCorrelationKernel_nonneg hq0) (summable_pathCorrelationKernel hq0 hq1) | |
| hS hf (fun i hi j hj => (le_abs_self _).trans (hpair i hi j hj)) | |
| simpa [tsum_pathCorrelationKernel hq0 hq1, mul_assoc] using h | |
| end Problem367 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 8.6 kB
- Xet hash:
- ffd46792391c2d73258a60816f440b6e446071b3086cd07255a0cdcb3f8b3a74
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.