fact
stringlengths
6
3.84k
type
stringclasses
11 values
library
stringclasses
32 values
imports
listlengths
1
14
filename
stringlengths
20
95
symbolic_name
stringlengths
1
90
docstring
stringlengths
7
20k
Lp_add_le (f g : ι → ℝ≥0) {p : ℝ} (hp : 1 ≤ p) : (∑ i ∈ s, (f i + g i) ^ p) ^ (1 / p) ≤ (∑ i ∈ s, f i ^ p) ^ (1 / p) + (∑ i ∈ s, g i ^ p) ^ (1 / p) := by rcases eq_or_lt_of_le hp with (rfl | hp) · simp [Finset.sum_add_distrib] have hpq := Real.HolderConjugate.conjExponent hp have := isGreatest_Lp s (f...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le
**Minkowski inequality**: the `L_p` seminorm of the sum of two vectors is less than or equal to the sum of the `L_p`-seminorms of the summands. A version for `NNReal`-valued functions.
Lp_add_le_tsum {f g : ι → ℝ≥0} {p : ℝ} (hp : 1 ≤ p) (hf : Summable fun i => f i ^ p) (hg : Summable fun i => g i ^ p) : (Summable fun i => (f i + g i) ^ p) ∧ (∑' i, (f i + g i) ^ p) ^ (1 / p) ≤ (∑' i, f i ^ p) ^ (1 / p) + (∑' i, g i ^ p) ^ (1 / p) := by have pos : 0 < p := lt_of_lt_of_le zero_lt...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le_tsum
**Minkowski inequality**: the `L_p` seminorm of the infinite sum of two vectors is less than or equal to the infinite sum of the `L_p`-seminorms of the summands, if these infinite sums both exist. A version for `NNReal`-valued functions. For an alternative version, convenient if the infinite sums are already expressed ...
summable_Lp_add {f g : ι → ℝ≥0} {p : ℝ} (hp : 1 ≤ p) (hf : Summable fun i => f i ^ p) (hg : Summable fun i => g i ^ p) : Summable fun i => (f i + g i) ^ p := (Lp_add_le_tsum hp hf hg).1
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
summable_Lp_add
null
Lp_add_le_tsum' {f g : ι → ℝ≥0} {p : ℝ} (hp : 1 ≤ p) (hf : Summable fun i => f i ^ p) (hg : Summable fun i => g i ^ p) : (∑' i, (f i + g i) ^ p) ^ (1 / p) ≤ (∑' i, f i ^ p) ^ (1 / p) + (∑' i, g i ^ p) ^ (1 / p) := (Lp_add_le_tsum hp hf hg).2
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le_tsum'
null
Lp_add_le_hasSum {f g : ι → ℝ≥0} {A B : ℝ≥0} {p : ℝ} (hp : 1 ≤ p) (hf : HasSum (fun i => f i ^ p) (A ^ p)) (hg : HasSum (fun i => g i ^ p) (B ^ p)) : ∃ C, C ≤ A + B ∧ HasSum (fun i => (f i + g i) ^ p) (C ^ p) := by have hp' : p ≠ 0 := (lt_of_lt_of_le zero_lt_one hp).ne' obtain ⟨H₁, H₂⟩ := Lp_add_le_tsum hp ...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le_hasSum
**Minkowski inequality**: the `L_p` seminorm of the infinite sum of two vectors is less than or equal to the infinite sum of the `L_p`-seminorms of the summands, if these infinite sums both exist. A version for `NNReal`-valued functions. For an alternative version, convenient if the infinite sums are not already expres...
inner_le_Lp_mul_Lq (hpq : HolderConjugate p q) : ∑ i ∈ s, f i * g i ≤ (∑ i ∈ s, |f i| ^ p) ^ (1 / p) * (∑ i ∈ s, |g i| ^ q) ^ (1 / q) := by have := NNReal.coe_le_coe.2 (NNReal.inner_le_Lp_mul_Lq s (fun i => ⟨_, abs_nonneg (f i)⟩) (fun i => ⟨_, abs_nonneg (g i)⟩) hpq) push_cast at this refine...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
inner_le_Lp_mul_Lq
**Hölder inequality**: the scalar product of two functions is bounded by the product of their `L^p` and `L^q` norms when `p` and `q` are conjugate exponents. Version for sums over finite sets, with real-valued functions.
rpow_sum_le_const_mul_sum_rpow (hp : 1 ≤ p) : (∑ i ∈ s, |f i|) ^ p ≤ (#s : ℝ) ^ (p - 1) * ∑ i ∈ s, |f i| ^ p := by have := NNReal.coe_le_coe.2 (NNReal.rpow_sum_le_const_mul_sum_rpow s (fun i => ⟨_, abs_nonneg (f i)⟩) hp) push_cast at this exact this
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
rpow_sum_le_const_mul_sum_rpow
For `1 ≤ p`, the `p`-th power of the sum of `f i` is bounded above by a constant times the sum of the `p`-th powers of `f i`. Version for sums over finite sets, with `ℝ`-valued functions.
Lp_add_le (hp : 1 ≤ p) : (∑ i ∈ s, |f i + g i| ^ p) ^ (1 / p) ≤ (∑ i ∈ s, |f i| ^ p) ^ (1 / p) + (∑ i ∈ s, |g i| ^ p) ^ (1 / p) := by have := NNReal.coe_le_coe.2 (NNReal.Lp_add_le s (fun i => ⟨_, abs_nonneg (f i)⟩) (fun i => ⟨_, abs_nonneg (g i)⟩) hp) push_cast at this refine le_trans (rpow_le...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le
**Minkowski inequality**: the `L_p` seminorm of the sum of two vectors is less than or equal to the sum of the `L_p`-seminorms of the summands. A version for `Real`-valued functions.
inner_le_Lp_mul_Lq_of_nonneg (hpq : HolderConjugate p q) (hf : ∀ i ∈ s, 0 ≤ f i) (hg : ∀ i ∈ s, 0 ≤ g i) : ∑ i ∈ s, f i * g i ≤ (∑ i ∈ s, f i ^ p) ^ (1 / p) * (∑ i ∈ s, g i ^ q) ^ (1 / q) := by convert inner_le_Lp_mul_Lq s f g hpq using 3 <;> apply sum_congr rfl <;> intro i hi <;> simp only [abs_of_nonneg...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
inner_le_Lp_mul_Lq_of_nonneg
**Hölder inequality**: the scalar product of two functions is bounded by the product of their `L^p` and `L^q` norms when `p` and `q` are conjugate exponents. Version for sums over finite sets, with real-valued nonnegative functions.
inner_le_weight_mul_Lp_of_nonneg (s : Finset ι) {p : ℝ} (hp : 1 ≤ p) (w f : ι → ℝ) (hw : ∀ i, 0 ≤ w i) (hf : ∀ i, 0 ≤ f i) : ∑ i ∈ s, w i * f i ≤ (∑ i ∈ s, w i) ^ (1 - p⁻¹) * (∑ i ∈ s, w i * f i ^ p) ^ p⁻¹ := by lift w to ι → ℝ≥0 using hw lift f to ι → ℝ≥0 using hf beta_reduce at * norm_cast at * exac...
lemma
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
inner_le_weight_mul_Lp_of_nonneg
**Weighted Hölder inequality**.
compact_inner_le_weight_mul_Lp_of_nonneg (s : Finset ι) {p : ℝ} (hp : 1 ≤ p) {w f : ι → ℝ} (hw : ∀ i, 0 ≤ w i) (hf : ∀ i, 0 ≤ f i) : 𝔼 i ∈ s, w i * f i ≤ (𝔼 i ∈ s, w i) ^ (1 - p⁻¹) * (𝔼 i ∈ s, w i * f i ^ p) ^ p⁻¹ := by simp_rw [expect_eq_sum_div_card] rw [div_rpow, div_rpow, div_mul_div_comm, ← rpow_add...
lemma
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
compact_inner_le_weight_mul_Lp_of_nonneg
**Weighted Hölder inequality** in terms of `Finset.expect`.
inner_le_Lp_mul_Lq_tsum_of_nonneg (hpq : p.HolderConjugate q) (hf : ∀ i, 0 ≤ f i) (hg : ∀ i, 0 ≤ g i) (hf_sum : Summable fun i => f i ^ p) (hg_sum : Summable fun i => g i ^ q) : (Summable fun i => f i * g i) ∧ ∑' i, f i * g i ≤ (∑' i, f i ^ p) ^ (1 / p) * (∑' i, g i ^ q) ^ (1 / q) := by lift f to ι → ℝ≥...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
inner_le_Lp_mul_Lq_tsum_of_nonneg
**Hölder inequality**: the scalar product of two functions is bounded by the product of their `L^p` and `L^q` norms when `p` and `q` are conjugate exponents. A version for `ℝ`-valued functions. For an alternative version, convenient if the infinite sums are already expressed as `p`-th powers, see `inner_le_Lp_mul_Lq_ha...
summable_mul_of_Lp_Lq_of_nonneg (hpq : p.HolderConjugate q) (hf : ∀ i, 0 ≤ f i) (hg : ∀ i, 0 ≤ g i) (hf_sum : Summable fun i => f i ^ p) (hg_sum : Summable fun i => g i ^ q) : Summable fun i => f i * g i := (inner_le_Lp_mul_Lq_tsum_of_nonneg hpq hf hg hf_sum hg_sum).1
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
summable_mul_of_Lp_Lq_of_nonneg
null
inner_le_Lp_mul_Lq_tsum_of_nonneg' (hpq : p.HolderConjugate q) (hf : ∀ i, 0 ≤ f i) (hg : ∀ i, 0 ≤ g i) (hf_sum : Summable fun i => f i ^ p) (hg_sum : Summable fun i => g i ^ q) : ∑' i, f i * g i ≤ (∑' i, f i ^ p) ^ (1 / p) * (∑' i, g i ^ q) ^ (1 / q) := (inner_le_Lp_mul_Lq_tsum_of_nonneg hpq hf hg hf_sum hg_s...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
inner_le_Lp_mul_Lq_tsum_of_nonneg'
null
inner_le_Lp_mul_Lq_hasSum_of_nonneg (hpq : p.HolderConjugate q) {A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) (hf : ∀ i, 0 ≤ f i) (hg : ∀ i, 0 ≤ g i) (hf_sum : HasSum (fun i => f i ^ p) (A ^ p)) (hg_sum : HasSum (fun i => g i ^ q) (B ^ q)) : ∃ C : ℝ, 0 ≤ C ∧ C ≤ A * B ∧ HasSum (fun i => f i * g i) C := by lift f to...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
inner_le_Lp_mul_Lq_hasSum_of_nonneg
**Hölder inequality**: the scalar product of two functions is bounded by the product of their `L^p` and `L^q` norms when `p` and `q` are conjugate exponents. A version for `NNReal`-valued functions. For an alternative version, convenient if the infinite sums are not already expressed as `p`-th powers, see `inner_le_Lp_...
rpow_sum_le_const_mul_sum_rpow_of_nonneg (hp : 1 ≤ p) (hf : ∀ i ∈ s, 0 ≤ f i) : (∑ i ∈ s, f i) ^ p ≤ (#s : ℝ) ^ (p - 1) * ∑ i ∈ s, f i ^ p := by convert rpow_sum_le_const_mul_sum_rpow s f hp using 2 <;> apply sum_congr rfl <;> intro i hi <;> simp only [abs_of_nonneg, hf i hi]
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
rpow_sum_le_const_mul_sum_rpow_of_nonneg
For `1 ≤ p`, the `p`-th power of the sum of `f i` is bounded above by a constant times the sum of the `p`-th powers of `f i`. Version for sums over finite sets, with nonnegative `ℝ`-valued functions.
Lp_add_le_of_nonneg (hp : 1 ≤ p) (hf : ∀ i ∈ s, 0 ≤ f i) (hg : ∀ i ∈ s, 0 ≤ g i) : (∑ i ∈ s, (f i + g i) ^ p) ^ (1 / p) ≤ (∑ i ∈ s, f i ^ p) ^ (1 / p) + (∑ i ∈ s, g i ^ p) ^ (1 / p) := by convert Lp_add_le s f g hp using 2 <;> [skip;congr 1;congr 1] <;> apply sum_congr rfl <;> intro i hi <;> simp ...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le_of_nonneg
**Minkowski inequality**: the `L_p` seminorm of the sum of two vectors is less than or equal to the sum of the `L_p`-seminorms of the summands. A version for `ℝ`-valued nonnegative functions.
Lp_add_le_tsum_of_nonneg (hp : 1 ≤ p) (hf : ∀ i, 0 ≤ f i) (hg : ∀ i, 0 ≤ g i) (hf_sum : Summable fun i => f i ^ p) (hg_sum : Summable fun i => g i ^ p) : (Summable fun i => (f i + g i) ^ p) ∧ (∑' i, (f i + g i) ^ p) ^ (1 / p) ≤ (∑' i, f i ^ p) ^ (1 / p) + (∑' i, g i ^ p) ^ (1 / p) := by lift f t...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le_tsum_of_nonneg
**Minkowski inequality**: the `L_p` seminorm of the infinite sum of two vectors is less than or equal to the infinite sum of the `L_p`-seminorms of the summands, if these infinite sums both exist. A version for `ℝ`-valued functions. For an alternative version, convenient if the infinite sums are already expressed as `p...
summable_Lp_add_of_nonneg (hp : 1 ≤ p) (hf : ∀ i, 0 ≤ f i) (hg : ∀ i, 0 ≤ g i) (hf_sum : Summable fun i => f i ^ p) (hg_sum : Summable fun i => g i ^ p) : Summable fun i => (f i + g i) ^ p := (Lp_add_le_tsum_of_nonneg hp hf hg hf_sum hg_sum).1
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
summable_Lp_add_of_nonneg
null
Lp_add_le_tsum_of_nonneg' (hp : 1 ≤ p) (hf : ∀ i, 0 ≤ f i) (hg : ∀ i, 0 ≤ g i) (hf_sum : Summable fun i => f i ^ p) (hg_sum : Summable fun i => g i ^ p) : (∑' i, (f i + g i) ^ p) ^ (1 / p) ≤ (∑' i, f i ^ p) ^ (1 / p) + (∑' i, g i ^ p) ^ (1 / p) := (Lp_add_le_tsum_of_nonneg hp hf hg hf_sum hg_sum).2
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le_tsum_of_nonneg'
null
Lp_add_le_hasSum_of_nonneg (hp : 1 ≤ p) (hf : ∀ i, 0 ≤ f i) (hg : ∀ i, 0 ≤ g i) {A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) (hfA : HasSum (fun i => f i ^ p) (A ^ p)) (hgB : HasSum (fun i => g i ^ p) (B ^ p)) : ∃ C, 0 ≤ C ∧ C ≤ A + B ∧ HasSum (fun i => (f i + g i) ^ p) (C ^ p) := by lift f to ι → ℝ≥0 using hf li...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le_hasSum_of_nonneg
**Minkowski inequality**: the `L_p` seminorm of the infinite sum of two vectors is less than or equal to the infinite sum of the `L_p`-seminorms of the summands, if these infinite sums both exist. A version for `ℝ`-valued functions. For an alternative version, convenient if the infinite sums are not already expressed a...
inner_le_Lp_mul_Lq (hpq : p.HolderConjugate q) : ∑ i ∈ s, f i * g i ≤ (∑ i ∈ s, f i ^ p) ^ (1 / p) * (∑ i ∈ s, g i ^ q) ^ (1 / q) := by by_cases H : (∑ i ∈ s, f i ^ p) ^ (1 / p) = 0 ∨ (∑ i ∈ s, g i ^ q) ^ (1 / q) = 0 · replace H : (∀ i ∈ s, f i = 0) ∨ ∀ i ∈ s, g i = 0 := by simpa [ENNReal.rpow_eq_zero_iff...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
inner_le_Lp_mul_Lq
**Hölder inequality**: the scalar product of two functions is bounded by the product of their `L^p` and `L^q` norms when `p` and `q` are conjugate exponents. Version for sums over finite sets, with `ℝ≥0∞`-valued functions.
inner_le_weight_mul_Lp_of_nonneg (s : Finset ι) {p : ℝ} (hp : 1 ≤ p) (w f : ι → ℝ≥0∞) : ∑ i ∈ s, w i * f i ≤ (∑ i ∈ s, w i) ^ (1 - p⁻¹) * (∑ i ∈ s, w i * f i ^ p) ^ p⁻¹ := by obtain rfl | hp := hp.eq_or_lt · simp have hp₀ : 0 < p := by positivity have hp₁ : p⁻¹ < 1 := inv_lt_one_of_one_lt₀ hp by_cases H :...
lemma
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
inner_le_weight_mul_Lp_of_nonneg
**Weighted Hölder inequality**.
rpow_sum_le_const_mul_sum_rpow (hp : 1 ≤ p) : (∑ i ∈ s, f i) ^ p ≤ (card s : ℝ≥0∞) ^ (p - 1) * ∑ i ∈ s, f i ^ p := by rcases eq_or_lt_of_le hp with hp | hp · simp [← hp] let q : ℝ := p / (p - 1) have hpq : p.HolderConjugate q := .conjExponent hp have hp₁ : 1 / p * p = 1 := one_div_mul_cancel hpq.ne_zero ...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
rpow_sum_le_const_mul_sum_rpow
For `1 ≤ p`, the `p`-th power of the sum of `f i` is bounded above by a constant times the sum of the `p`-th powers of `f i`. Version for sums over finite sets, with `ℝ≥0∞`-valued functions.
Lp_add_le (hp : 1 ≤ p) : (∑ i ∈ s, (f i + g i) ^ p) ^ (1 / p) ≤ (∑ i ∈ s, f i ^ p) ^ (1 / p) + (∑ i ∈ s, g i ^ p) ^ (1 / p) := by by_cases H' : (∑ i ∈ s, f i ^ p) ^ (1 / p) = ⊤ ∨ (∑ i ∈ s, g i ^ p) ^ (1 / p) = ⊤ · rcases H' with H' | H' <;> simp [H', -one_div] have pos : 0 < p := lt_of_lt_of_le zero_lt_...
theorem
Analysis
[ "Mathlib.Algebra.BigOperators.Expect", "Mathlib.Algebra.BigOperators.Field", "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal", "Mathlib.Data.Real.ConjExponents" ]
Mathlib/Analysis/MeanInequalities.lean
Lp_add_le
**Minkowski inequality**: the `L_p` seminorm of the sum of two vectors is less than or equal to the sum of the `L_p`-seminorms of the summands. A version for `ℝ≥0∞`-valued nonnegative functions.
pow_arith_mean_le_arith_mean_pow (w z : ι → ℝ) (hw : ∀ i ∈ s, 0 ≤ w i) (hw' : ∑ i ∈ s, w i = 1) (hz : ∀ i ∈ s, 0 ≤ z i) (n : ℕ) : (∑ i ∈ s, w i * z i) ^ n ≤ ∑ i ∈ s, w i * z i ^ n := (convexOn_pow n).map_sum_le hw hw' hz
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
pow_arith_mean_le_arith_mean_pow
null
pow_arith_mean_le_arith_mean_pow_of_even (w z : ι → ℝ) (hw : ∀ i ∈ s, 0 ≤ w i) (hw' : ∑ i ∈ s, w i = 1) {n : ℕ} (hn : Even n) : (∑ i ∈ s, w i * z i) ^ n ≤ ∑ i ∈ s, w i * z i ^ n := hn.convexOn_pow.map_sum_le hw hw' fun _ _ => Set.mem_univ _
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
pow_arith_mean_le_arith_mean_pow_of_even
null
zpow_arith_mean_le_arith_mean_zpow (w z : ι → ℝ) (hw : ∀ i ∈ s, 0 ≤ w i) (hw' : ∑ i ∈ s, w i = 1) (hz : ∀ i ∈ s, 0 < z i) (m : ℤ) : (∑ i ∈ s, w i * z i) ^ m ≤ ∑ i ∈ s, w i * z i ^ m := (convexOn_zpow m).map_sum_le hw hw' hz
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
zpow_arith_mean_le_arith_mean_zpow
null
rpow_arith_mean_le_arith_mean_rpow (w z : ι → ℝ) (hw : ∀ i ∈ s, 0 ≤ w i) (hw' : ∑ i ∈ s, w i = 1) (hz : ∀ i ∈ s, 0 ≤ z i) {p : ℝ} (hp : 1 ≤ p) : (∑ i ∈ s, w i * z i) ^ p ≤ ∑ i ∈ s, w i * z i ^ p := (convexOn_rpow hp).map_sum_le hw hw' hz
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_arith_mean_le_arith_mean_rpow
null
arith_mean_le_rpow_mean (w z : ι → ℝ) (hw : ∀ i ∈ s, 0 ≤ w i) (hw' : ∑ i ∈ s, w i = 1) (hz : ∀ i ∈ s, 0 ≤ z i) {p : ℝ} (hp : 1 ≤ p) : ∑ i ∈ s, w i * z i ≤ (∑ i ∈ s, w i * z i ^ p) ^ (1 / p) := by have : 0 < p := by positivity rw [← rpow_le_rpow_iff _ _ this, ← rpow_mul, one_div_mul_cancel (ne_of_gt this), r...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
arith_mean_le_rpow_mean
null
pow_arith_mean_le_arith_mean_pow (w z : ι → ℝ≥0) (hw' : ∑ i ∈ s, w i = 1) (n : ℕ) : (∑ i ∈ s, w i * z i) ^ n ≤ ∑ i ∈ s, w i * z i ^ n := mod_cast Real.pow_arith_mean_le_arith_mean_pow s _ _ (fun i _ => (w i).coe_nonneg) (mod_cast hw') (fun i _ => (z i).coe_nonneg) n
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
pow_arith_mean_le_arith_mean_pow
Weighted generalized mean inequality, version sums over finite sets, with `ℝ≥0`-valued functions and natural exponent.
rpow_arith_mean_le_arith_mean_rpow (w z : ι → ℝ≥0) (hw' : ∑ i ∈ s, w i = 1) {p : ℝ} (hp : 1 ≤ p) : (∑ i ∈ s, w i * z i) ^ p ≤ ∑ i ∈ s, w i * z i ^ p := mod_cast Real.rpow_arith_mean_le_arith_mean_rpow s _ _ (fun i _ => (w i).coe_nonneg) (mod_cast hw') (fun i _ => (z i).coe_nonneg) hp
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_arith_mean_le_arith_mean_rpow
Weighted generalized mean inequality, version for sums over finite sets, with `ℝ≥0`-valued functions and real exponents.
rpow_arith_mean_le_arith_mean2_rpow (w₁ w₂ z₁ z₂ : ℝ≥0) (hw' : w₁ + w₂ = 1) {p : ℝ} (hp : 1 ≤ p) : (w₁ * z₁ + w₂ * z₂) ^ p ≤ w₁ * z₁ ^ p + w₂ * z₂ ^ p := by have h := rpow_arith_mean_le_arith_mean_rpow univ ![w₁, w₂] ![z₁, z₂] ?_ hp · simpa [Fin.sum_univ_succ] using h · simp [hw', Fin.sum_univ_succ]
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_arith_mean_le_arith_mean2_rpow
Weighted generalized mean inequality, version for two elements of `ℝ≥0` and real exponents.
rpow_add_le_mul_rpow_add_rpow (z₁ z₂ : ℝ≥0) {p : ℝ} (hp : 1 ≤ p) : (z₁ + z₂) ^ p ≤ (2 : ℝ≥0) ^ (p - 1) * (z₁ ^ p + z₂ ^ p) := by rcases eq_or_lt_of_le hp with (rfl | h'p) · simp only [rpow_one, sub_self, rpow_zero, one_mul]; rfl convert rpow_arith_mean_le_arith_mean2_rpow (1 / 2) (1 / 2) (2 * z₁) (2 * z₂) (ad...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_le_mul_rpow_add_rpow
Unweighted mean inequality, version for two elements of `ℝ≥0` and real exponents.
arith_mean_le_rpow_mean (w z : ι → ℝ≥0) (hw' : ∑ i ∈ s, w i = 1) {p : ℝ} (hp : 1 ≤ p) : ∑ i ∈ s, w i * z i ≤ (∑ i ∈ s, w i * z i ^ p) ^ (1 / p) := mod_cast Real.arith_mean_le_rpow_mean s _ _ (fun i _ => (w i).coe_nonneg) (mod_cast hw') (fun i _ => (z i).coe_nonneg) hp
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
arith_mean_le_rpow_mean
Weighted generalized mean inequality, version for sums over finite sets, with `ℝ≥0`-valued functions and real exponents.
private add_rpow_le_one_of_add_le_one {p : ℝ} (a b : ℝ≥0) (hab : a + b ≤ 1) (hp1 : 1 ≤ p) : a ^ p + b ^ p ≤ 1 := by have h_le_one : ∀ x : ℝ≥0, x ≤ 1 → x ^ p ≤ x := fun x hx => rpow_le_self_of_le_one hx hp1 have ha : a ≤ 1 := (self_le_add_right a b).trans hab have hb : b ≤ 1 := (self_le_add_left b a).trans hab...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
add_rpow_le_one_of_add_le_one
null
add_rpow_le_rpow_add {p : ℝ} (a b : ℝ≥0) (hp1 : 1 ≤ p) : a ^ p + b ^ p ≤ (a + b) ^ p := by have hp_pos : 0 < p := by positivity by_cases h_zero : a + b = 0 · simp [add_eq_zero.mp h_zero, hp_pos.ne'] have h_nonzero : ¬(a = 0 ∧ b = 0) := by rwa [add_eq_zero] at h_zero have h_add : a / (a + b) + b / (a + b) = 1 ...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
add_rpow_le_rpow_add
null
rpow_add_rpow_le_add {p : ℝ} (a b : ℝ≥0) (hp1 : 1 ≤ p) : (a ^ p + b ^ p) ^ (1 / p) ≤ a + b := by rw [one_div] rw [← @NNReal.le_rpow_inv_iff _ _ p⁻¹ (by simp [lt_of_lt_of_le zero_lt_one hp1])] rw [inv_inv] exact add_rpow_le_rpow_add _ _ hp1
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_rpow_le_add
null
rpow_add_rpow_le {p q : ℝ} (a b : ℝ≥0) (hp_pos : 0 < p) (hpq : p ≤ q) : (a ^ q + b ^ q) ^ (1 / q) ≤ (a ^ p + b ^ p) ^ (1 / p) := by have h_rpow : ∀ a : ℝ≥0, a ^ q = (a ^ p) ^ (q / p) := fun a => by rw [← NNReal.rpow_mul, div_eq_inv_mul, ← mul_assoc, mul_inv_cancel₀ hp_pos.ne.symm, one_mul] have h_rpow...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_rpow_le
null
rpow_add_le_add_rpow {p : ℝ} (a b : ℝ≥0) (hp : 0 ≤ p) (hp1 : p ≤ 1) : (a + b) ^ p ≤ a ^ p + b ^ p := by rcases hp.eq_or_lt with (rfl | hp_pos) · simp have h := rpow_add_rpow_le a b hp_pos hp1 rw [one_div_one, one_div] at h repeat' rw [NNReal.rpow_one] at h exact (NNReal.le_rpow_inv_iff hp_pos).mp h
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_le_add_rpow
null
add_rpow_le_rpow_add {p : ℝ} {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp1 : 1 ≤ p) : a ^ p + b ^ p ≤ (a + b) ^ p := by lift a to NNReal using ha lift b to NNReal using hb exact_mod_cast NNReal.add_rpow_le_rpow_add a b hp1
lemma
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
add_rpow_le_rpow_add
null
rpow_add_rpow_le_add {p : ℝ} {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp1 : 1 ≤ p) : (a ^ p + b ^ p) ^ (1 / p) ≤ a + b := by lift a to NNReal using ha lift b to NNReal using hb exact_mod_cast NNReal.rpow_add_rpow_le_add a b hp1
lemma
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_rpow_le_add
null
rpow_add_rpow_le {p q : ℝ} {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp_pos : 0 < p) (hpq : p ≤ q) : (a ^ q + b ^ q) ^ (1 / q) ≤ (a ^ p + b ^ p) ^ (1 / p) := by lift a to NNReal using ha lift b to NNReal using hb exact_mod_cast NNReal.rpow_add_rpow_le a b hp_pos hpq
lemma
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_rpow_le
null
rpow_add_le_add_rpow {p : ℝ} {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp : 0 ≤ p) (hp1 : p ≤ 1) : (a + b) ^ p ≤ a ^ p + b ^ p := by lift a to NNReal using ha lift b to NNReal using hb exact_mod_cast NNReal.rpow_add_le_add_rpow a b hp hp1
lemma
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_le_add_rpow
null
rpow_arith_mean_le_arith_mean_rpow (w z : ι → ℝ≥0∞) (hw' : ∑ i ∈ s, w i = 1) {p : ℝ} (hp : 1 ≤ p) : (∑ i ∈ s, w i * z i) ^ p ≤ ∑ i ∈ s, w i * z i ^ p := by have hp_pos : 0 < p := by positivity have hp_nonneg : 0 ≤ p := by positivity have hp_not_neg : ¬p < 0 := by simp [hp_nonneg] have h_top_iff_rpow_top : ∀...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_arith_mean_le_arith_mean_rpow
Weighted generalized mean inequality, version for sums over finite sets, with `ℝ≥0∞`-valued functions and real exponents.
rpow_arith_mean_le_arith_mean2_rpow (w₁ w₂ z₁ z₂ : ℝ≥0∞) (hw' : w₁ + w₂ = 1) {p : ℝ} (hp : 1 ≤ p) : (w₁ * z₁ + w₂ * z₂) ^ p ≤ w₁ * z₁ ^ p + w₂ * z₂ ^ p := by have h := rpow_arith_mean_le_arith_mean_rpow univ ![w₁, w₂] ![z₁, z₂] ?_ hp · simpa [Fin.sum_univ_succ] using h · simp [hw', Fin.sum_univ_succ]
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_arith_mean_le_arith_mean2_rpow
Weighted generalized mean inequality, version for two elements of `ℝ≥0∞` and real exponents.
rpow_add_le_mul_rpow_add_rpow (z₁ z₂ : ℝ≥0∞) {p : ℝ} (hp : 1 ≤ p) : (z₁ + z₂) ^ p ≤ (2 : ℝ≥0∞) ^ (p - 1) * (z₁ ^ p + z₂ ^ p) := by convert rpow_arith_mean_le_arith_mean2_rpow (1 / 2) (1 / 2) (2 * z₁) (2 * z₂) (ENNReal.add_halves 1) hp using 1 · simp [← mul_assoc, ENNReal.inv_mul_cancel two_ne_zero ofNat_n...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_le_mul_rpow_add_rpow
Unweighted mean inequality, version for two elements of `ℝ≥0∞` and real exponents.
add_rpow_le_rpow_add {p : ℝ} (a b : ℝ≥0∞) (hp1 : 1 ≤ p) : a ^ p + b ^ p ≤ (a + b) ^ p := by have hp_pos : 0 < p := by positivity by_cases h_top : a + b = ⊤ · rw [← @ENNReal.rpow_eq_top_iff_of_pos (a + b) p hp_pos] at h_top rw [h_top] exact le_top obtain ⟨ha_top, hb_top⟩ := add_ne_top.mp h_top lift a t...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
add_rpow_le_rpow_add
null
rpow_add_rpow_le_add {p : ℝ} (a b : ℝ≥0∞) (hp1 : 1 ≤ p) : (a ^ p + b ^ p) ^ (1 / p) ≤ a + b := by rw [one_div, ← @ENNReal.le_rpow_inv_iff _ _ p⁻¹ (by simp [lt_of_lt_of_le zero_lt_one hp1])] rw [inv_inv] exact add_rpow_le_rpow_add _ _ hp1
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_rpow_le_add
null
rpow_add_rpow_le {p q : ℝ} (a b : ℝ≥0∞) (hp_pos : 0 < p) (hpq : p ≤ q) : (a ^ q + b ^ q) ^ (1 / q) ≤ (a ^ p + b ^ p) ^ (1 / p) := by have h_rpow : ∀ a : ℝ≥0∞, a ^ q = (a ^ p) ^ (q / p) := fun a => by rw [← ENNReal.rpow_mul, mul_div_cancel₀ _ hp_pos.ne'] have h_rpow_add_rpow_le_add : ((a ^ p) ^ (q / p) +...
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_rpow_le
null
rpow_add_le_add_rpow {p : ℝ} (a b : ℝ≥0∞) (hp : 0 ≤ p) (hp1 : p ≤ 1) : (a + b) ^ p ≤ a ^ p + b ^ p := by rcases hp.eq_or_lt with (rfl | hp_pos) · simp have h := rpow_add_rpow_le a b hp_pos hp1 rw [one_div_one, one_div] at h repeat' rw [ENNReal.rpow_one] at h exact (ENNReal.le_rpow_inv_iff hp_pos).mp h
theorem
Analysis
[ "Mathlib.Analysis.Convex.Jensen", "Mathlib.Analysis.Convex.Mul", "Mathlib.Analysis.Convex.SpecificFunctions.Basic", "Mathlib.Analysis.SpecialFunctions.Pow.NNReal" ]
Mathlib/Analysis/MeanInequalitiesPow.lean
rpow_add_le_add_rpow
null
private rexp_neg_deriv_aux : ∀ x ∈ univ, HasDerivWithinAt (rexp ∘ Neg.neg) (-rexp (-x)) univ x := fun x _ ↦ mul_neg_one (rexp (-x)) ▸ ((Real.hasDerivAt_exp (-x)).comp x (hasDerivAt_neg x)).hasDerivWithinAt
theorem
Analysis
[ "Mathlib.Analysis.Fourier.Inversion", "Mathlib.Analysis.MellinTransform" ]
Mathlib/Analysis/MellinInversion.lean
rexp_neg_deriv_aux
null
private rexp_neg_image_aux : rexp ∘ Neg.neg '' univ = Ioi 0 := by rw [Set.image_comp, Set.image_univ_of_surjective neg_surjective, Set.image_univ, Real.range_exp]
theorem
Analysis
[ "Mathlib.Analysis.Fourier.Inversion", "Mathlib.Analysis.MellinTransform" ]
Mathlib/Analysis/MellinInversion.lean
rexp_neg_image_aux
null
private rexp_neg_injOn_aux : univ.InjOn (rexp ∘ Neg.neg) := Real.exp_injective.injOn.comp neg_injective.injOn (univ.mapsTo_univ _)
theorem
Analysis
[ "Mathlib.Analysis.Fourier.Inversion", "Mathlib.Analysis.MellinTransform" ]
Mathlib/Analysis/MellinInversion.lean
rexp_neg_injOn_aux
null
private rexp_cexp_aux (x : ℝ) (s : ℂ) (f : E) : rexp (-x) • cexp (-↑x) ^ (s - 1) • f = cexp (-s * ↑x) • f := by change (rexp (-x) : ℂ) • _ = _ • f rw [← smul_assoc, smul_eq_mul] push_cast conv in cexp _ * _ => lhs; rw [← cpow_one (cexp _)] rw [← cpow_add _ _ (Complex.exp_ne_zero _), cpow_def_of_ne_zero (C...
theorem
Analysis
[ "Mathlib.Analysis.Fourier.Inversion", "Mathlib.Analysis.MellinTransform" ]
Mathlib/Analysis/MellinInversion.lean
rexp_cexp_aux
null
mellin_eq_fourierIntegral (f : ℝ → E) {s : ℂ} : mellin f s = 𝓕 (fun (u : ℝ) ↦ (Real.exp (-s.re * u) • f (Real.exp (-u)))) (s.im / (2 * π)) := calc mellin f s = ∫ (u : ℝ), Complex.exp (-s * u) • f (Real.exp (-u)) := by rw [mellin, ← rexp_neg_image_aux, integral_image_eq_integral_abs_deriv_smul ...
theorem
Analysis
[ "Mathlib.Analysis.Fourier.Inversion", "Mathlib.Analysis.MellinTransform" ]
Mathlib/Analysis/MellinInversion.lean
mellin_eq_fourierIntegral
null
mellinInv_eq_fourierIntegralInv (σ : ℝ) (f : ℂ → E) {x : ℝ} (hx : 0 < x) : mellinInv σ f x = (x : ℂ) ^ (-σ : ℂ) • 𝓕⁻ (fun (y : ℝ) ↦ f (σ + 2 * π * y * I)) (-Real.log x) := calc mellinInv σ f x = (x : ℂ) ^ (-σ : ℂ) • (∫ (y : ℝ), Complex.exp (2 * π * (y * (-Real.log x)) * I) • f (σ + 2 * π * y * I)) ...
theorem
Analysis
[ "Mathlib.Analysis.Fourier.Inversion", "Mathlib.Analysis.MellinTransform" ]
Mathlib/Analysis/MellinInversion.lean
mellinInv_eq_fourierIntegralInv
null
mellin_inversion (σ : ℝ) (f : ℝ → E) {x : ℝ} (hx : 0 < x) (hf : MellinConvergent f σ) (hFf : VerticalIntegrable (mellin f) σ) (hfx : ContinuousAt f x) : mellinInv σ (mellin f) x = f x := by let g := fun (u : ℝ) => Real.exp (-σ * u) • f (Real.exp (-u)) replace hf : Integrable g := by rw [MellinConvergent...
theorem
Analysis
[ "Mathlib.Analysis.Fourier.Inversion", "Mathlib.Analysis.MellinTransform" ]
Mathlib/Analysis/MellinInversion.lean
mellin_inversion
The inverse Mellin transform of the Mellin transform applied to `x > 0` is x.
MellinConvergent (f : ℝ → E) (s : ℂ) : Prop := IntegrableOn (fun t : ℝ => (t : ℂ) ^ (s - 1) • f t) (Ioi 0)
def
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
MellinConvergent
Predicate on `f` and `s` asserting that the Mellin integral is well-defined.
MellinConvergent.const_smul {f : ℝ → E} {s : ℂ} (hf : MellinConvergent f s) {𝕜 : Type*} [NormedAddCommGroup 𝕜] [SMulZeroClass 𝕜 E] [IsBoundedSMul 𝕜 E] [SMulCommClass ℂ 𝕜 E] (c : 𝕜) : MellinConvergent (fun t => c • f t) s := by simpa only [MellinConvergent, smul_comm] using hf.smul c
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
MellinConvergent.const_smul
null
MellinConvergent.cpow_smul {f : ℝ → E} {s a : ℂ} : MellinConvergent (fun t => (t : ℂ) ^ a • f t) s ↔ MellinConvergent f (s + a) := by refine integrableOn_congr_fun (fun t ht => ?_) measurableSet_Ioi simp_rw [← sub_add_eq_add_sub, cpow_add _ _ (ofReal_ne_zero.2 <| ne_of_gt ht), mul_smul] nonrec theorem MellinCon...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
MellinConvergent.cpow_smul
null
MellinConvergent.comp_mul_left {f : ℝ → E} {s : ℂ} {a : ℝ} (ha : 0 < a) : MellinConvergent (fun t => f (a * t)) s ↔ MellinConvergent f s := by have := integrableOn_Ioi_comp_mul_left_iff (fun t : ℝ => (t : ℂ) ^ (s - 1) • f t) 0 ha rw [mul_zero] at this have h1 : EqOn (fun t : ℝ => (↑(a * t) : ℂ) ^ (s - 1) • f ...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
MellinConvergent.comp_mul_left
null
MellinConvergent.comp_rpow {f : ℝ → E} {s : ℂ} {a : ℝ} (ha : a ≠ 0) : MellinConvergent (fun t => f (t ^ a)) s ↔ MellinConvergent f (s / a) := by refine Iff.trans ?_ (integrableOn_Ioi_comp_rpow_iff' _ ha) rw [MellinConvergent] refine integrableOn_congr_fun (fun t ht => ?_) measurableSet_Ioi dsimp only [Pi.sm...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
MellinConvergent.comp_rpow
null
Complex.VerticalIntegrable (f : ℂ → E) (σ : ℝ) (μ : Measure ℝ := by volume_tac) : Prop := Integrable (fun (y : ℝ) ↦ f (σ + y * I)) μ
def
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
Complex.VerticalIntegrable
A function `f` is `VerticalIntegrable` at `σ` if `y ↦ f(σ + yi)` is integrable.
mellin (f : ℝ → E) (s : ℂ) : E := ∫ t : ℝ in Ioi 0, (t : ℂ) ^ (s - 1) • f t
def
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin
The Mellin transform of a function `f` (for a complex exponent `s`), defined as the integral of `t ^ (s - 1) • f` over `Ioi 0`.
mellinInv (σ : ℝ) (f : ℂ → E) (x : ℝ) : E := (1 / (2 * π)) • ∫ y : ℝ, (x : ℂ) ^ (-(σ + y * I)) • f (σ + y * I)
def
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellinInv
The Mellin inverse transform of a function `f`, defined as `1 / (2π)` times the integral of `y ↦ x ^ -(σ + yi) • f (σ + yi)`.
mellin_cpow_smul (f : ℝ → E) (s a : ℂ) : mellin (fun t => (t : ℂ) ^ a • f t) s = mellin f (s + a) := by refine setIntegral_congr_fun measurableSet_Ioi fun t ht => ?_ simp_rw [← sub_add_eq_add_sub, cpow_add _ _ (ofReal_ne_zero.2 <| ne_of_gt ht), mul_smul]
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_cpow_smul
null
mellin_const_smul (f : ℝ → E) (s : ℂ) {𝕜 : Type*} [NormedField 𝕜] [NormedSpace 𝕜 E] [SMulCommClass ℂ 𝕜 E] (c : 𝕜) : mellin (fun t => c • f t) s = c • mellin f s := by simp only [mellin, smul_comm, integral_smul]
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_const_smul
Compatibility with scalar multiplication by a normed field. For scalar multiplication by more general rings assuming *a priori* that the Mellin transform is defined, see `hasMellin_const_smul`.
mellin_div_const (f : ℝ → ℂ) (s a : ℂ) : mellin (fun t => f t / a) s = mellin f s / a := by simp_rw [mellin, smul_eq_mul, ← mul_div_assoc, integral_div]
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_div_const
null
mellin_comp_rpow (f : ℝ → E) (s : ℂ) (a : ℝ) : mellin (fun t => f (t ^ a)) s = |a|⁻¹ • mellin f (s / a) := by /- This is true for `a = 0` as all sides are undefined but turn out to vanish thanks to our convention. The interesting case is `a ≠ 0` -/ rcases eq_or_ne a 0 with rfl | ha · by_cases hE : CompleteS...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_comp_rpow
null
mellin_comp_mul_left (f : ℝ → E) (s : ℂ) {a : ℝ} (ha : 0 < a) : mellin (fun t => f (a * t)) s = (a : ℂ) ^ (-s) • mellin f s := by simp_rw [mellin] have : EqOn (fun t : ℝ => (t : ℂ) ^ (s - 1) • f (a * t)) (fun t : ℝ => (a : ℂ) ^ (1 - s) • (fun u : ℝ => (u : ℂ) ^ (s - 1) • f u) (a * t)) (Ioi 0) := f...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_comp_mul_left
null
mellin_comp_mul_right (f : ℝ → E) (s : ℂ) {a : ℝ} (ha : 0 < a) : mellin (fun t => f (t * a)) s = (a : ℂ) ^ (-s) • mellin f s := by simpa only [mul_comm] using mellin_comp_mul_left f s ha
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_comp_mul_right
null
mellin_comp_inv (f : ℝ → E) (s : ℂ) : mellin (fun t => f t⁻¹) s = mellin f (-s) := by simp_rw [← rpow_neg_one, mellin_comp_rpow _ _ _, abs_neg, abs_one, inv_one, one_smul, ofReal_neg, ofReal_one, div_neg, div_one]
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_comp_inv
null
HasMellin (f : ℝ → E) (s : ℂ) (m : E) : Prop := MellinConvergent f s ∧ mellin f s = m
def
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
HasMellin
Predicate standing for "the Mellin transform of `f` is defined at `s` and equal to `m`". This shortens some arguments.
hasMellin_add {f g : ℝ → E} {s : ℂ} (hf : MellinConvergent f s) (hg : MellinConvergent g s) : HasMellin (fun t => f t + g t) s (mellin f s + mellin g s) := ⟨by simpa only [MellinConvergent, smul_add] using hf.add hg, by simpa only [mellin, smul_add] using integral_add hf hg⟩
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
hasMellin_add
null
hasMellin_sub {f g : ℝ → E} {s : ℂ} (hf : MellinConvergent f s) (hg : MellinConvergent g s) : HasMellin (fun t => f t - g t) s (mellin f s - mellin g s) := ⟨by simpa only [MellinConvergent, smul_sub] using hf.sub hg, by simpa only [mellin, smul_sub] using integral_sub hf hg⟩
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
hasMellin_sub
null
hasMellin_const_smul {f : ℝ → E} {s : ℂ} (hf : MellinConvergent f s) {R : Type*} [NormedRing R] [Module R E] [IsBoundedSMul R E] [SMulCommClass ℂ R E] (c : R) : HasMellin (fun t => c • f t) s (c • mellin f s) := ⟨hf.const_smul c, by simp [mellin, smul_comm, hf.integral_smul]⟩
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
hasMellin_const_smul
null
mellin_convergent_iff_norm [NormedSpace ℂ E] {f : ℝ → E} {T : Set ℝ} (hT : T ⊆ Ioi 0) (hT' : MeasurableSet T) (hfc : AEStronglyMeasurable f <| volume.restrict <| Ioi 0) {s : ℂ} : IntegrableOn (fun t : ℝ => (t : ℂ) ^ (s - 1) • f t) T ↔ IntegrableOn (fun t : ℝ => t ^ (s.re - 1) * ‖f t‖) T := by have : AES...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_convergent_iff_norm
Auxiliary lemma to reduce convergence statements from vector-valued functions to real scalar-valued functions.
mellin_convergent_top_of_isBigO {f : ℝ → ℝ} (hfc : AEStronglyMeasurable f <| volume.restrict (Ioi 0)) {a s : ℝ} (hf : f =O[atTop] (· ^ (-a))) (hs : s < a) : ∃ c : ℝ, 0 < c ∧ IntegrableOn (fun t : ℝ => t ^ (s - 1) * f t) (Ioi c) := by obtain ⟨d, hd'⟩ := hf.isBigOWith simp_rw [IsBigOWith, eventually_atTop...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_convergent_top_of_isBigO
If `f` is a locally integrable real-valued function which is `O(x ^ (-a))` at `∞`, then for any `s < a`, its Mellin transform converges on some neighbourhood of `+∞`.
mellin_convergent_zero_of_isBigO {b : ℝ} {f : ℝ → ℝ} (hfc : AEStronglyMeasurable f <| volume.restrict (Ioi 0)) (hf : f =O[𝓝[>] 0] (· ^ (-b))) {s : ℝ} (hs : b < s) : ∃ c : ℝ, 0 < c ∧ IntegrableOn (fun t : ℝ => t ^ (s - 1) * f t) (Ioc 0 c) := by obtain ⟨d, _, hd'⟩ := hf.exists_pos simp_rw [IsBigOWith, ev...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_convergent_zero_of_isBigO
If `f` is a locally integrable real-valued function which is `O(x ^ (-b))` at `0`, then for any `b < s`, its Mellin transform converges on some right neighbourhood of `0`.
mellin_convergent_of_isBigO_scalar {a b : ℝ} {f : ℝ → ℝ} {s : ℝ} (hfc : LocallyIntegrableOn f <| Ioi 0) (hf_top : f =O[atTop] (· ^ (-a))) (hs_top : s < a) (hf_bot : f =O[𝓝[>] 0] (· ^ (-b))) (hs_bot : b < s) : IntegrableOn (fun t : ℝ => t ^ (s - 1) * f t) (Ioi 0) := by obtain ⟨c1, hc1, hc1'⟩ := mellin_con...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_convergent_of_isBigO_scalar
If `f` is a locally integrable real-valued function on `Ioi 0` which is `O(x ^ (-a))` at `∞` and `O(x ^ (-b))` at `0`, then its Mellin transform integral converges for `b < s < a`.
mellinConvergent_of_isBigO_rpow [NormedSpace ℂ E] {a b : ℝ} {f : ℝ → E} {s : ℂ} (hfc : LocallyIntegrableOn f <| Ioi 0) (hf_top : f =O[atTop] (· ^ (-a))) (hs_top : s.re < a) (hf_bot : f =O[𝓝[>] 0] (· ^ (-b))) (hs_bot : b < s.re) : MellinConvergent f s := by rw [MellinConvergent, mellin_convergent_iff_...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellinConvergent_of_isBigO_rpow
null
isBigO_rpow_top_log_smul [NormedSpace ℝ E] {a b : ℝ} {f : ℝ → E} (hab : b < a) (hf : f =O[atTop] (· ^ (-a))) : (fun t : ℝ => log t • f t) =O[atTop] (· ^ (-b)) := by refine ((isLittleO_log_rpow_atTop (sub_pos.mpr hab)).isBigO.smul hf).congr' (Eventually.of_forall fun t => by rfl) ((eventually_g...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
isBigO_rpow_top_log_smul
If `f` is `O(x ^ (-a))` as `x → +∞`, then `log • f` is `O(x ^ (-b))` for every `b < a`.
isBigO_rpow_zero_log_smul [NormedSpace ℝ E] {a b : ℝ} {f : ℝ → E} (hab : a < b) (hf : f =O[𝓝[>] 0] (· ^ (-a))) : (fun t : ℝ => log t • f t) =O[𝓝[>] 0] (· ^ (-b)) := by have : log =o[𝓝[>] 0] fun t : ℝ => t ^ (a - b) := by refine ((isLittleO_log_rpow_atTop (sub_pos.mpr hab)).neg_left.comp_tendsto ...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
isBigO_rpow_zero_log_smul
If `f` is `O(x ^ (-a))` as `x → 0`, then `log • f` is `O(x ^ (-b))` for every `a < b`.
mellin_hasDerivAt_of_isBigO_rpow [NormedSpace ℂ E] {a b : ℝ} {f : ℝ → E} {s : ℂ} (hfc : LocallyIntegrableOn f (Ioi 0)) (hf_top : f =O[atTop] (· ^ (-a))) (hs_top : s.re < a) (hf_bot : f =O[𝓝[>] 0] (· ^ (-b))) (hs_bot : b < s.re) : MellinConvergent (fun t => log t • f t) s ∧ HasDerivAt (mellin f) (mell...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_hasDerivAt_of_isBigO_rpow
Suppose `f` is locally integrable on `(0, ∞)`, is `O(x ^ (-a))` as `x → ∞`, and is `O(x ^ (-b))` as `x → 0`. Then its Mellin transform is differentiable on the domain `b < re s < a`, with derivative equal to the Mellin transform of `log • f`.
mellin_differentiableAt_of_isBigO_rpow [NormedSpace ℂ E] {a b : ℝ} {f : ℝ → E} {s : ℂ} (hfc : LocallyIntegrableOn f <| Ioi 0) (hf_top : f =O[atTop] (· ^ (-a))) (hs_top : s.re < a) (hf_bot : f =O[𝓝[>] 0] (· ^ (-b))) (hs_bot : b < s.re) : DifferentiableAt ℂ (mellin f) s := (mellin_hasDerivAt_of_isBigO_...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_differentiableAt_of_isBigO_rpow
Suppose `f` is locally integrable on `(0, ∞)`, is `O(x ^ (-a))` as `x → ∞`, and is `O(x ^ (-b))` as `x → 0`. Then its Mellin transform is differentiable on the domain `b < re s < a`.
mellinConvergent_of_isBigO_rpow_exp [NormedSpace ℂ E] {a b : ℝ} (ha : 0 < a) {f : ℝ → E} {s : ℂ} (hfc : LocallyIntegrableOn f <| Ioi 0) (hf_top : f =O[atTop] fun t => exp (-a * t)) (hf_bot : f =O[𝓝[>] 0] (· ^ (-b))) (hs_bot : b < s.re) : MellinConvergent f s := mellinConvergent_of_isBigO_rpow hfc (hf_top.tra...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellinConvergent_of_isBigO_rpow_exp
If `f` is locally integrable, decays exponentially at infinity, and is `O(x ^ (-b))` at 0, then its Mellin transform converges for `b < s.re`.
mellin_differentiableAt_of_isBigO_rpow_exp [NormedSpace ℂ E] {a b : ℝ} (ha : 0 < a) {f : ℝ → E} {s : ℂ} (hfc : LocallyIntegrableOn f <| Ioi 0) (hf_top : f =O[atTop] fun t => exp (-a * t)) (hf_bot : f =O[𝓝[>] 0] (· ^ (-b))) (hs_bot : b < s.re) : DifferentiableAt ℂ (mellin f) s := mellin_differentiableAt_o...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
mellin_differentiableAt_of_isBigO_rpow_exp
If `f` is locally integrable, decays exponentially at infinity, and is `O(x ^ (-b))` at 0, then its Mellin transform is holomorphic on `b < s.re`.
hasMellin_one_Ioc {s : ℂ} (hs : 0 < re s) : HasMellin (indicator (Ioc 0 1) (fun _ => 1 : ℝ → ℂ)) s (1 / s) := by have aux1 : -1 < (s - 1).re := by simpa only [sub_re, one_re, sub_eq_add_neg] using lt_add_of_pos_left _ hs have aux2 : s ≠ 0 := by contrapose! hs; rw [hs, zero_re] have aux3 : MeasurableSet (I...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
hasMellin_one_Ioc
The Mellin transform of the indicator function of `Ioc 0 1`.
hasMellin_cpow_Ioc (a : ℂ) {s : ℂ} (hs : 0 < re s + re a) : HasMellin (indicator (Ioc 0 1) (fun t => ↑t ^ a : ℝ → ℂ)) s (1 / (s + a)) := by have := hasMellin_one_Ioc (by rwa [add_re] : 0 < (s + a).re) simp_rw [HasMellin, ← MellinConvergent.cpow_smul, ← mellin_cpow_smul, ← indicator_smul, smul_eq_mul, mul_on...
theorem
Analysis
[ "Mathlib.Analysis.SpecialFunctions.ImproperIntegrals", "Mathlib.Analysis.Calculus.ParametricIntegral", "Mathlib.MeasureTheory.Measure.Haar.NormedSpace" ]
Mathlib/Analysis/MellinTransform.lean
hasMellin_cpow_Ioc
The Mellin transform of a power function restricted to `Ioc 0 1`.
noncomputable oscillation [TopologicalSpace E] (f : E → F) (x : E) : ENNReal := ⨅ S ∈ (𝓝 x).map f, diam S
def
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
oscillation
The oscillation of `f : E → F` at `x`.
noncomputable oscillationWithin [TopologicalSpace E] (f : E → F) (D : Set E) (x : E) : ENNReal := ⨅ S ∈ (𝓝[D] x).map f, diam S
def
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
oscillationWithin
The oscillation of `f : E → F` within `D` at `x`.
oscillationWithin_nhds_eq_oscillation [TopologicalSpace E] (f : E → F) (D : Set E) (x : E) (hD : D ∈ 𝓝 x) : oscillationWithin f D x = oscillation f x := by rw [oscillation, oscillationWithin, nhdsWithin_eq_nhds.2 hD] @[deprecated (since := "2025-05-22")] alias oscillationWithin_nhd_eq_oscillation := oscillationW...
theorem
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
oscillationWithin_nhds_eq_oscillation
The oscillation of `f` at `x` within a neighborhood `D` of `x` is equal to `oscillation f x`
oscillationWithin_univ_eq_oscillation [TopologicalSpace E] (f : E → F) (x : E) : oscillationWithin f univ x = oscillation f x := oscillationWithin_nhds_eq_oscillation f univ x Filter.univ_mem
theorem
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
oscillationWithin_univ_eq_oscillation
The oscillation of `f` at `x` within `univ` is equal to `oscillation f x`
oscillationWithin_eq_zero [TopologicalSpace E] {f : E → F} {D : Set E} {x : E} (hf : ContinuousWithinAt f D x) : oscillationWithin f D x = 0 := by refine le_antisymm (_root_.le_of_forall_pos_le_add fun ε hε ↦ ?_) (zero_le _) rw [zero_add] have : ball (f x) (ε / 2) ∈ (𝓝[D] x).map f := hf <| ball_mem_nhds _ (b...
theorem
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
oscillationWithin_eq_zero
null
oscillation_eq_zero [TopologicalSpace E] {f : E → F} {x : E} (hf : ContinuousAt f x) : oscillation f x = 0 := by rw [← continuousWithinAt_univ f x] at hf exact oscillationWithin_univ_eq_oscillation f x ▸ hf.oscillationWithin_eq_zero
theorem
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
oscillation_eq_zero
null
eq_zero_iff_continuousWithinAt [TopologicalSpace E] (f : E → F) {D : Set E} {x : E} (xD : x ∈ D) : oscillationWithin f D x = 0 ↔ ContinuousWithinAt f D x := by refine ⟨fun hf ↦ EMetric.tendsto_nhds.mpr (fun ε ε0 ↦ ?_), fun hf ↦ hf.oscillationWithin_eq_zero⟩ simp_rw [← hf, oscillationWithin, iInf_lt_iff] at ε0 ...
theorem
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
eq_zero_iff_continuousWithinAt
The oscillation within `D` of `f` at `x ∈ D` is 0 if and only if `ContinuousWithinAt f D x`.
eq_zero_iff_continuousAt [TopologicalSpace E] (f : E → F) (x : E) : oscillation f x = 0 ↔ ContinuousAt f x := by rw [← oscillationWithin_univ_eq_oscillation, ← continuousWithinAt_univ f x] exact OscillationWithin.eq_zero_iff_continuousWithinAt f (mem_univ x)
theorem
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
eq_zero_iff_continuousAt
The oscillation of `f` at `x` is 0 if and only if `f` is continuous at `x`.
uniform_oscillationWithin (comp : IsCompact K) (hK : ∀ x ∈ K, oscillationWithin f D x < ε) : ∃ δ > 0, ∀ x ∈ K, diam (f '' (ball x (ENNReal.ofReal δ) ∩ D)) ≤ ε := by let S := fun r ↦ { x : E | ∃ (a : ℝ), (a > r ∧ diam (f '' (ball x (ENNReal.ofReal a) ∩ D)) ≤ ε) } have S_open : ∀ r > 0, IsOpen (S r) := by ref...
theorem
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
uniform_oscillationWithin
If `oscillationWithin f D x < ε` at every `x` in a compact set `K`, then there exists `δ > 0` such that the oscillation of `f` on `ball x δ ∩ D` is less than `ε` for every `x` in `K`.
uniform_oscillation {K : Set E} (comp : IsCompact K) {f : E → F} {ε : ENNReal} (hK : ∀ x ∈ K, oscillation f x < ε) : ∃ δ > 0, ∀ x ∈ K, diam (f '' (ball x (ENNReal.ofReal δ))) ≤ ε := by simp only [← oscillationWithin_univ_eq_oscillation] at hK convert ← comp.uniform_oscillationWithin hK exact inter_univ _
theorem
Analysis
[ "Mathlib.Data.ENNReal.Real", "Mathlib.Order.WellFoundedSet", "Mathlib.Topology.EMetricSpace.Diam" ]
Mathlib/Analysis/Oscillation.lean
uniform_oscillation
If `oscillation f x < ε` at every `x` in a compact set `K`, then there exists `δ > 0` such that the oscillation of `f` on `ball x δ` is less than `ε` for every `x` in `K`.