-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
cLpNorm_cconv_le_cLpNorm_cdconv
sorry-free
- Loading branch information
1 parent
f91383e
commit 21937bb
Showing
11 changed files
with
281 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import LeanAPAP.Prereqs.AddChar.MeasurableSpace | ||
import LeanAPAP.Prereqs.AddChar.PontryaginDuality | ||
import LeanAPAP.Prereqs.Convolution.Compact | ||
import LeanAPAP.Prereqs.Function.Indicator.Defs | ||
import LeanAPAP.Prereqs.Inner.Compact.Basic | ||
import LeanAPAP.Prereqs.Inner.Discrete.Basic | ||
import LeanAPAP.Prereqs.FourierTransform.Compact | ||
|
||
open AddChar Finset Function MeasureTheory | ||
open Fintype (card) | ||
open scoped BigOperators ComplexConjugate ComplexOrder | ||
|
||
variable {G : Type*} [AddCommGroup G] [Fintype G] [DecidableEq G] [MeasurableSpace G] | ||
[DiscreteMeasurableSpace G] {ψ : AddChar G ℂ} {n : ℕ} | ||
|
||
set_option pp.piBinderTypes false | ||
|
||
lemma cLpNorm_cconv_le_cLpNorm_cdconv (hn₀ : n ≠ 0) (hn : Even n) (f : G → ℂ) : | ||
‖f ∗ₙ f‖ₙ_[n] ≤ ‖f ○ₙ f‖ₙ_[n] := by | ||
refine le_of_pow_le_pow_left hn₀ (by positivity) ?_ | ||
obtain ⟨k, rfl⟩ := hn.two_dvd | ||
simp only [ne_eq, mul_eq_zero, OfNat.ofNat_ne_zero, false_or] at hn₀ | ||
refine Complex.le_of_eq_sum_of_eq_sum_norm (fun ψ : (Fin k → AddChar G ℂ) × (Fin k → AddChar G ℂ) | ||
↦ conj (∏ i, cft f (ψ.1 i) ^ 2) * (∏ i, cft f (ψ.2 i) ^ 2) * 𝔼 x, (∑ i, ψ.2 i - ∑ i, ψ.1 i) x) | ||
univ (by dsimp; norm_cast; positivity) ?_ ?_ | ||
· simp only [NNReal.val_eq_coe] | ||
push_cast | ||
rw [← cft_inversion' (f ∗ₙ f), cLpNorm_two_mul_sum_pow hn₀] | ||
simp_rw [cft_cconv_apply, ← sq, Fintype.sum_prod_type, mul_expect] | ||
simp [mul_mul_mul_comm, mul_comm, map_neg_eq_conj, prod_mul_distrib] | ||
· simp only [NNReal.val_eq_coe] | ||
push_cast | ||
rw [← cft_inversion' (f ○ₙ f), cLpNorm_two_mul_sum_pow hn₀] | ||
simp_rw [cft_cdconv_apply, Complex.mul_conj', Fintype.sum_prod_type, mul_expect] | ||
congr 1 with ψ | ||
congr 1 with φ | ||
simp only [Pi.smul_apply, smul_eq_mul, map_mul, map_pow, Complex.conj_ofReal, prod_mul_distrib, | ||
mul_mul_mul_comm, ← mul_expect, map_prod, sub_apply, AddChar.coe_sum, Finset.prod_apply, | ||
norm_mul, norm_prod, norm_pow, RCLike.norm_conj, Complex.ofReal_mul, Complex.ofReal_prod, | ||
Complex.ofReal_pow] | ||
congr 1 | ||
calc | ||
𝔼 x, (∏ i, conj (ψ i x)) * ∏ i, φ i x = 𝔼 x, (∑ i, φ i - ∑ i, ψ i) x := by | ||
simp [map_neg_eq_conj, mul_comm] | ||
_ = ‖𝔼 x, (∑ i, φ i - ∑ i, ψ i) x‖ := by simp [expect_eq_ite, -sub_apply, apply_ite] | ||
_ = ‖𝔼 x, (∏ i, φ i x) * ∏ i, (ψ i) (-x)‖ := by | ||
simp [map_neg_eq_conj, mul_comm] | ||
|
||
lemma dLpNorm_conv_le_dLpNorm_dconv (hn₀ : n ≠ 0) (hn : Even n) (f : G → ℂ) : | ||
‖f ∗ f‖_[n] ≤ ‖f ○ f‖_[n] := sorry | ||
|
||
-- TODO: Can we unify with `cLpNorm_cconv_le_cLpNorm_cdconv`? | ||
lemma cLpNorm_cconv_le_cLpNorm_cdconv' (hn₀ : n ≠ 0) (hn : Even n) (f : G → ℝ) : | ||
‖f ∗ₙ f‖ₙ_[n] ≤ ‖f ○ₙ f‖ₙ_[n] := by | ||
simpa only [← Complex.coe_comp_cconv, ← Complex.coe_comp_cdconv, Complex.cLpNorm_coe_comp] using | ||
cLpNorm_cconv_le_cLpNorm_cdconv hn₀ hn ((↑) ∘ f) | ||
|
||
-- TODO: Can we unify with `dLpNorm_conv_le_dLpNorm_dconv`? | ||
lemma dLpNorm_conv_le_dLpNorm_dconv' (hn₀ : n ≠ 0) (hn : Even n) (f : G → ℝ) : | ||
‖f ∗ f‖_[n] ≤ ‖f ○ f‖_[n] := by | ||
simpa only [← Complex.coe_comp_conv, ← Complex.coe_comp_dconv, Complex.dLpNorm_coe_comp] using | ||
dLpNorm_conv_le_dLpNorm_dconv hn₀ hn ((↑) ∘ f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.