Zulip Chat Archive
Stream: Is there code for X?
Topic: Raising absolute values to powers
Adam Topaz (Aug 02 2022 at 21:43):
Does anyone know of a simple way to prove the following?
import analysis.special_functions.pow
open_locale big_operators
example
(ι : Type*) [fintype ι] (a : ι → ℝ) (p : ℝ)
(h1 : 0 ≤ p) (h2 : p ≤ 1) :
| ∑ i, a i |^p ≤ ∑ i, | a i |^p := sorry
I'm fairly flexible with the spelling... for example, I'm happy to use nnnorm
or norm
instead of the absolute value, etc.
More generally, does mathlib know that raising an absolute value to a real power with gives another absolute value?
Yaël Dillies (Aug 02 2022 at 21:44):
docs#finset.le_sum_of_subadditive
Adam Topaz (Aug 02 2022 at 21:45):
That's a start...
Adam Topaz (Aug 02 2022 at 21:46):
the api seach comes up empty with pow subadditive
Yaël Dillies (Aug 02 2022 at 21:47):
Surely that would rather be pow_add_le
?
Adam Topaz (Aug 02 2022 at 21:48):
ha we have docs#nnreal.rpow_add_le_add_rpow
Adam Topaz (Aug 02 2022 at 21:51):
(contrary to the assumption there, it's also true for p = 0
;)
Eric Rodriguez (Aug 02 2022 at 22:37):
(got bored and fixed that #15823)
Johan Commelin (Aug 04 2022 at 05:57):
Adam Topaz said:
More generally, does mathlib know that raising an absolute value to a real power with gives another absolute value?
LTE knows that you can rescale has_p_norm
(or whatever it is called) like that.
Last updated: Dec 20 2023 at 11:08 UTC