cfahlgren1/math / lean /OAI /NumberTheory /Ostmann /Construction /BoundedWordStatistic.lean
cfahlgren1's picture
download
raw
4.91 kB
import OAI.NumberTheory.Ostmann.Construction.PositiveWordStatistic
namespace OAI
/-! # The initial positive statistic with its actual finite physical bounds -/
namespace Ostmann
open scoped BigOperators SchwartzMap
/-- The inverse giant transform need not have norm at most one. Only a finite
bound is needed to sum its Schwartz-weighted physical statistic. -/
theorem wordStatisticTerm_summable_of_bounded {m : β„•}
(ψ : 𝓒(ℝ, β„‚)) (X : ℝ) (hX : 0 < X)
(G : β„€ β†’ β„‚) (R : Fin m β†’ β„€ β†’ β„‚) (CG : ℝ) (CR : Fin m β†’ ℝ)
(hψ : βˆ€ x, 0 ≀ (ψ x).re)
(hG : βˆ€ a, β€–G aβ€– ≀ CG) (hR : βˆ€ i a, β€–R i aβ€– ≀ CR i) :
Summable (wordStatisticTerm ψ X G R) := by
have hsum : Summable (fun a : β„€ => β€–Οˆ ((a : ℝ) / X)β€–) := by
simpa only [positiveDilate_apply, div_eq_mul_inv, mul_comm] using
schwartz_int_norm_summable (positiveDilate ψ X⁻¹ (inv_pos.mpr hX))
apply Summable.of_norm_bounded (hsum.mul_right (CG ^ 2 * ∏ i, CR i ^ 2))
intro a
rw [Real.norm_eq_abs, abs_of_nonneg (wordStatisticTerm_nonneg ψ X G R hψ a)]
have hg : β€–G aβ€– ^ 2 ≀ CG ^ 2 :=
pow_le_pow_leftβ‚€ (norm_nonneg _) (hG a) 2
have hr : (∏ i, β€–R i aβ€– ^ 2) ≀ ∏ i, CR i ^ 2 :=
Finset.prod_le_prodβ‚€ (fun _ _ => sq_nonneg _) (fun i _ =>
pow_le_pow_leftβ‚€ (norm_nonneg _) (hR i a) 2)
calc
wordStatisticTerm ψ X G R a ≀
β€–Οˆ ((a : ℝ) / X)β€– * (CG ^ 2 * ∏ i, CR i ^ 2) := by
unfold wordStatisticTerm
rw [← mul_assoc]
exact mul_le_mul (mul_le_mul (Complex.re_le_norm _) hg
(sq_nonneg _) (norm_nonneg _)) hr (by positivity) (by positivity)
_ = _ := rfl
/-- Cauchy--Schwarz converts a positive empirical mean into the squared norm
needed for the original statistic, without pointwise positivity of the giant. -/
theorem endpoint_mean_sq_le {ΞΉ : Type*} (E : Finset ΞΉ) (G : ΞΉ β†’ β„‚)
(Ξ΄ : ℝ) (hΞ΄ : 0 ≀ Ξ΄)
(hmean : (E.card : ℝ) * Ξ΄ ≀ βˆ‘ a ∈ E, (G a).re) :
(E.card : ℝ) * Ξ΄ ^ 2 ≀ βˆ‘ a ∈ E, β€–G aβ€– ^ 2 := by
by_cases hE : E.card = 0
Β· have he : E = βˆ… := Finset.card_eq_zero.mp hE
simp only [he, Finset.card_empty, Nat.cast_zero, zero_mul, Finset.sum_empty, le_refl]
have hc : (0 : ℝ) < E.card := by exact_mod_cast Nat.pos_of_ne_zero hE
have hcs := Finset.sum_mul_sq_le_sq_mul_sq E (fun _ => (1 : ℝ)) (fun a => (G a).re)
simp only [one_mul, one_pow, Finset.sum_const, nsmul_eq_mul, mul_one] at hcs
have hre : (βˆ‘ a ∈ E, (G a).re ^ 2) ≀ βˆ‘ a ∈ E, β€–G aβ€– ^ 2 := by
apply Finset.sum_le_sum
intro a _
simpa only [Complex.normSq_eq_norm_sq, pow_two] using Complex.re_sq_le_normSq (G a)
have hlow : ((E.card : ℝ) * Ξ΄) ^ 2 ≀ (βˆ‘ a ∈ E, (G a).re) ^ 2 :=
pow_le_pow_leftβ‚€ (mul_nonneg hc.le hΞ΄) hmean 2
have hupper := hcs.trans (mul_le_mul_of_nonneg_left hre hc.le)
nlinarith
/-- The selected endpoint mean feeds the whole statistic. No pointwise bound
of one and no pointwise lower bound on the giant function is imposed. -/
theorem wordStatistic_lower_of_endpoint_mean {m : β„•}
(ψ : 𝓒(ℝ, β„‚)) (X : ℝ) (hX : 0 < X)
(G : β„€ β†’ β„‚) (R : Fin m β†’ β„€ β†’ β„‚) (E : Finset β„€)
(CG : ℝ) (CR : Fin m β†’ ℝ)
(hψ : βˆ€ x, 0 ≀ (ψ x).re)
(hG : βˆ€ a, β€–G aβ€– ≀ CG) (hR : βˆ€ i a, β€–R i aβ€– ≀ CR i)
(c Ξ΄ Ξ³ : ℝ) (hc : 0 ≀ c) (hΞ΄ : 0 ≀ Ξ΄) (hΞ³ : 0 ≀ Ξ³)
(hcE : βˆ€ a ∈ E, c ≀ (ψ ((a : ℝ) / X)).re)
(hmean : (E.card : ℝ) * Ξ΄ ≀ βˆ‘ a ∈ E, (G a).re)
(hΞ³E : βˆ€ a ∈ E, βˆ€ i, Ξ³ ≀ β€–R i aβ€–) :
(E.card : ℝ) * (c * Ξ΄ ^ 2 * Ξ³ ^ (2 * m)) ≀
βˆ‘' a : β„€, wordStatisticTerm ψ X G R a := by
have hm := endpoint_mean_sq_le E G Ξ΄ hΞ΄ hmean
have hfinite : c * Ξ³ ^ (2 * m) * (βˆ‘ a ∈ E, β€–G aβ€– ^ 2) ≀
βˆ‘ a ∈ E, wordStatisticTerm ψ X G R a := by
rw [Finset.mul_sum]
apply Finset.sum_le_sum
intro a ha
have hr : Ξ³ ^ (2 * m) ≀ ∏ i, β€–R i aβ€– ^ 2 := by
rw [pow_mul]
calc
(γ ^ 2) ^ m = ∏ _i : Fin m, γ ^ 2 := by simp
_ ≀ _ := Finset.prod_le_prodβ‚€ (fun _ _ => sq_nonneg _)
(fun i _ => pow_le_pow_leftβ‚€ hΞ³ (hΞ³E a ha i) 2)
unfold wordStatisticTerm
calc
c * Ξ³ ^ (2 * m) * β€–G aβ€– ^ 2 = c * β€–G aβ€– ^ 2 * Ξ³ ^ (2 * m) := by ring
_ ≀ _ := mul_le_mul (mul_le_mul_of_nonneg_right (hcE a ha) (sq_nonneg _)) hr
(by positivity) (mul_nonneg (hψ _) (sq_nonneg _))
calc
_ = c * Ξ³ ^ (2 * m) * ((E.card : ℝ) * Ξ΄ ^ 2) := by ring
_ ≀ c * Ξ³ ^ (2 * m) * (βˆ‘ a ∈ E, β€–G aβ€– ^ 2) :=
mul_le_mul_of_nonneg_left hm (by positivity)
_ ≀ βˆ‘ a ∈ E, wordStatisticTerm ψ X G R a := hfinite
_ ≀ _ := (wordStatisticTerm_summable_of_bounded ψ X hX G R CG CR hψ hG hR).sum_le_tsum E
(fun a _ => wordStatisticTerm_nonneg ψ X G R hψ a)
end Ostmann
end OAI

Xet Storage Details

Size:
4.91 kB
Β·
Xet hash:
5b4fd1b5ce31fed7e6e86077a699050de60f3c4b6b8232e3583205babdd17156

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.