From afebc538cb866038e233c0ced929681c8701e622 Mon Sep 17 00:00:00 2001 From: Vasily Ilin Date: Sat, 28 Nov 2026 15:02:58 +0000 Subject: [PATCH] Optimize the CarlesonLT compilation path --- .../CarlesonLT/Auto/AnisotropicCarleson.lean | 165 +++-- .../CarlesonLT/Auto/ClassicalCarleson.lean | 275 +------ LeanPool/CarlesonLT/Auto/FourierKernels.lean | 310 ++++++++ LeanPool/CarlesonLT/Auto/ModelOperator.lean | 700 +++++++++--------- LeanPool/CarlesonLT/Imports.lean | 1 + 5 files changed, 736 insertions(+), 715 deletions(-) create mode 100644 LeanPool/CarlesonLT/Auto/FourierKernels.lean diff --git a/LeanPool/CarlesonLT/Auto/AnisotropicCarleson.lean b/LeanPool/CarlesonLT/Auto/AnisotropicCarleson.lean index 8bfaf9b510..94b6b05c97 100644 --- a/LeanPool/CarlesonLT/Auto/AnisotropicCarleson.lean +++ b/LeanPool/CarlesonLT/Auto/AnisotropicCarleson.lean @@ -5,7 +5,8 @@ Authors: Joris Roos -/ module -/- Proofs generated by Claude under Joris Roos’s supervision; adapted for Lean Pool. -/ +/- Proofs generated by Claude under Joris Roos’s supervision; adapted for Lean Pool. +Lean Pool changes: reuse component measurability and explicit product bounds. -/ public import LeanPool.CarlesonLT.Auto.ModelOperator public import LeanPool.CarlesonLT.Defs @@ -134,13 +135,16 @@ theorem hasSum_parseval_box (b : Fin n → ℝ) {G H : (Fin n → ℝ) → ℂ} funext ℓ rw [hcoef G hG2 ℓ, hcoef H hH2 ℓ] +private theorem continuous_two_pi_toLp : + Continuous fun v : Fin n → ℝ => (2 * π) • (WithLp.toLp 2 v : Rn n) := + (PiLp.continuous_toLp 2 (fun _ : Fin n => ℝ)).const_smul (2 * π : ℝ) + /-- The affine change of variables `v ↦ c₀ + δ_{2^{-k}}(2π v)` from `Fin n → ℝ` to `ℝⁿ`. -/ def psiMap (α : Fin n → ℕ) (k : ℤ) (c0 : Rn n) (v : Fin n → ℝ) : Rn n := c0 + dil α ((2 : ℝ) ^ k)⁻¹ ((2 * π) • WithLp.toLp 2 v) theorem continuous_psiMap (α : Fin n → ℕ) (k : ℤ) (c0 : Rn n) : Continuous (psiMap α k c0) := by - unfold psiMap - fun_prop + exact continuous_const.add ((continuous_dil α _).comp continuous_two_pi_toLp) /-- Change of variables along `psiMap`: `∫ F(ξ) dξ = (2π)^n 2^{-k|α|} ∫ F(c₀ + δ_{2^{-k}}(2π v)) dv`. -/ @@ -347,23 +351,23 @@ theorem gCheck_tile (α : Fin n → ℕ) (k : ℤ) (ℓ u : Fin n → ℤ) (G : theorem psiCheck_tile (α : Fin n → ℕ) (k : ℤ) (ℓ u : Fin n → ℤ) (m : Rn n → ℂ) (N z : Rn n) : psiCheck α ⟨k, ℓ, u⟩ m N z = psiCheck α ⟨k, 0, u⟩ m N z := rfl +private theorem continuous_phiHat_rescaled : + Continuous fun v : Fin n → ℝ => phiHat ((2 * π) • WithLp.toLp 2 v : Rn n) := + continuous_phiHat.comp continuous_two_pi_toLp + theorem continuous_gCheck (α : Fin n → ℕ) (P : Tile n) {G : Rn n → ℂ} (hG : Continuous G) : Continuous (gCheck α P G) := by unfold gCheck have h1 := continuous_psiMap α P.k (P.cω0 α) - have h2 : Continuous fun v : Fin n → ℝ => phiHat ((2 * π) • WithLp.toLp 2 v : Rn n) := by - fun_prop + have h2 := continuous_phiHat_rescaled (n := n) exact (Complex.continuous_conj.comp ((hG.comp h1).mul h2)).mul continuous_halfPhase theorem measurable_psiCheck (α : Fin n → ℕ) (P : Tile n) {m : Rn n → ℂ} (hm : Measurable m) (N z : Rn n) : Measurable (psiCheck α P m N z) := by unfold psiCheck have h1 := continuous_psiMap α P.k (P.cω0 α) - have h2 : Continuous fun v : Fin n → ℝ => phiHat ((2 * π) • WithLp.toLp 2 v : Rn n) := by - fun_prop - have h3 : Continuous fun v : Fin n → ℝ => - Complex.exp (Complex.I * (⟪z, psiMap α P.k (P.cω0 α) v⟫_ℝ : ℂ)) := by - fun_prop + have h2 := continuous_phiHat_rescaled (n := n) + have h3 := continuous_cexp_inner (continuous_const (y := z)) h1 exact (((hm.comp (h1.measurable.sub_const N)).mul h2.measurable).mul h3.measurable).mul continuous_halfPhase.measurable @@ -642,8 +646,8 @@ theorem integrable_dilOp_transl_modul (α : Fin n → ℕ) {t : ℝ} (ht : 0 < t have h1 : Integrable (fun w : Rn n => modul η f (w - y)) := by have : Integrable (modul η f) := by refine hf.norm.mono' ?_ (Filter.Eventually.of_forall fun w => ?_) - · exact (by fun_prop : Continuous fun w : Rn n => - Complex.exp (Complex.I * (⟪w, η⟫_ℝ : ℂ))).aestronglyMeasurable.mul hf.aestronglyMeasurable + · have hphase := continuous_cexp_inner continuous_id (continuous_const (y := η)) + exact hphase.aestronglyMeasurable.mul hf.aestronglyMeasurable · simp only [modul, norm_mul, norm_cexp_I_mul, one_mul, le_refl] exact this.comp_sub_right y have h2 : Integrable ((fun w : Rn n => modul η f (w - y)) ∘ dil α t⁻¹) := by @@ -662,11 +666,12 @@ theorem fhat_conj_facts (α : Fin n → ℕ) {t : ℝ} (ht : 0 < t) (y η : Rn n ((t ^ ((absA α : ℝ) / 2) : ℝ) : ℂ) * Complex.exp (-(Complex.I * (⟪y, dil α t ξ⟫_ℝ : ℂ))) * fhat f (dil α t ξ - η) := funext hform - have hc := continuous_fhat_schwartz f - refine ⟨?_, ?_, ?_⟩ - · rw [hF] - have := continuous_dil α t - fun_prop + have hd := continuous_dil α t + have hc : Continuous (fhat (dilOp α 2 t (transl y (modul η (f : Rn n → ℂ))))) := by + rw [hF] + exact (continuous_const.mul (continuous_cexp_neg_inner (continuous_const (y := y)) hd)).mul + ((continuous_fhat_schwartz f).comp (hd.sub continuous_const)) + refine ⟨hc, ?_, ?_⟩ · intro ξ rw [hform, norm_mul, norm_mul, norm_cexp_neg_I_mul, mul_one, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (by positivity)] @@ -679,11 +684,7 @@ theorem fhat_conj_facts (α : Fin n → ℕ) {t : ℝ} (ht : 0 < t) (y η : Rn n exact h0 have h2 := h1.const_mul (((t ^ ((absA α : ℝ) / 2) : ℝ) : ℂ)) refine h2.norm.mono' ?_ (Filter.Eventually.of_forall fun ξ => ?_) - · rw [hF] - have := continuous_dil α t - exact (by fun_prop : Continuous fun ξ => ((t ^ ((absA α : ℝ) / 2) : ℝ) : ℂ) * - Complex.exp (-(Complex.I * (⟪y, dil α t ξ⟫_ℝ : ℂ))) * - fhat (f : Rn n → ℂ) (dil α t ξ - η)).aestronglyMeasurable + · exact hc.aestronglyMeasurable · rw [hform, norm_mul, norm_mul, norm_cexp_neg_I_mul, mul_one, norm_mul] /-- Reindexing tiles as ((scale, frequency position), spatial position). -/ @@ -777,9 +778,7 @@ theorem integral_fixedScale_rescale (α : Fin n → ℕ) {ν : ℕ} {m : Rn n _ = _ := by rw [hpow] theorem continuous_PhiP (α : Fin n → ℕ) (P : Tile n) : Continuous (PhiP α P) := by - unfold PhiP - have := continuous_dil α ((2 : ℝ) ^ P.k) - fun_prop + exact continuous_phiHat.comp ((continuous_dil α _).comp (continuous_id.sub continuous_const)) /-- The averaged integrand of (3.5) as a Fourier multiplier (paper, Lemma 3.3, texline~225–240): for Schwartz `f`, @@ -836,8 +835,7 @@ theorem avgIntegrand_eq (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin (Filter.Eventually.of_forall fun ζ => ?_) · exact (((continuous_fhat_schwartz f).aestronglyMeasurable.mul hm.measurable.aestronglyMeasurable).mul - (by fun_prop : Continuous fun ζ : Rn n => - Complex.exp (Complex.I * (⟪x, ζ⟫_ℝ : ℂ))).aestronglyMeasurable) + (continuous_cexp_inner (continuous_const (y := x)) continuous_id).aestronglyMeasurable) · rw [norm_mul, norm_mul, norm_cexp_I_mul, mul_one, mul_comm] exact mul_le_mul_of_nonneg_right (hmb ζ) (norm_nonneg _) have hFmeas : ∀ ku, AEStronglyMeasurable (F ku) := by @@ -1423,11 +1421,11 @@ theorem volume_chiBox_lt_top : volume (chiBox n) < ⊤ := by · intro h refine ⟨WithLp.ofLp w, fun i _ => ?_, by simp⟩ have := abs_le.mp (h i) - constructor <;> linarith [this.1, this.2] + constructor <;> linarith only [this.1, this.2] · rintro ⟨v, hv, rfl⟩ i have := hv i (Set.mem_univ i) rw [abs_le] - constructor <;> simp <;> linarith [this.1, this.2] + constructor <;> simp <;> linarith only [this.1, this.2] rw [this] exact ((isCompact_univ_pi fun _ => isCompact_Icc).image (PiLp.continuous_toLp 2 _)).measure_lt_top @@ -1482,7 +1480,8 @@ theorem innerTheta_bounds (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fi constructor · -- `(2^v)^{α_j} ≥ 1/(5|ζ_j|)` have h1 : 1 / (5 * |ζ j|) ≤ (2 ^ v) ^ α j := by - rw [div_le_iff₀ (by positivity)]; nlinarith + rw [div_le_iff₀ (by positivity)] + linarith only [hlo'] have h2 : (1 / (5 * |ζ j|)) ^ ((α j : ℝ)⁻¹) ≤ 2 ^ v := by calc (1 / (5 * |ζ j|)) ^ ((α j : ℝ)⁻¹) ≤ ((2 ^ v) ^ α j) ^ ((α j : ℝ)⁻¹) := Real.rpow_le_rpow (by positivity) h1 (by positivity) @@ -1656,7 +1655,7 @@ theorem Ifun_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n → Fi norm_num at hlo have hαj : (0 : ℝ) < α j := by have := hα j; positivity have hT : 1 ≤ (2 : ℝ) ^ v * R := by - have h1 : 1 ≤ (2 ^ v) ^ α j * (5 * |ζ j|) := by nlinarith + have h1 : 1 ≤ (2 ^ v) ^ α j * (5 * |ζ j|) := by linarith have h2 : 1 ≤ 2 ^ v * (5 * |ζ j|) ^ ((α j : ℝ)⁻¹) := by have := Real.rpow_le_rpow (by norm_num) h1 (by positivity : (0 : ℝ) ≤ (α j : ℝ)⁻¹) rwa [Real.one_rpow, Real.mul_rpow (by positivity) (by positivity), ← Real.rpow_natCast, @@ -1761,13 +1760,13 @@ theorem ballA_eq_image (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {R : ℝ} have := (h0.mp hx) i rw [Finset.mem_Icc, Int.ceil_le, Int.le_floor] at this push_cast at this - constructor <;> linarith [this.1, this.2] + constructor <;> linarith only [this.1, this.2] · rintro ⟨v, hv, rfl⟩ refine h0.mpr fun i => ?_ have := hv i (Set.mem_univ i) rw [Finset.mem_Icc, Int.ceil_le, Int.le_floor] push_cast - constructor <;> linarith [this.1, this.2] + constructor <;> linarith only [this.1, this.2] /-- `|𝓑_R| = 2ⁿ R^{|α|}`. -/ theorem volume_ballA (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {R : ℝ} (hR : 0 ≤ R) : @@ -1800,8 +1799,7 @@ theorem integrable_Fint {α : Fin n → ℕ} {ν : ℕ} {m : Rn n → ℂ} (hm : (Filter.Eventually.of_forall fun ζ => ?_) · exact (((continuous_fhat_schwartz f).aestronglyMeasurable.mul hm.measurable.aestronglyMeasurable).mul - (by fun_prop : Continuous fun ζ : Rn n => - Complex.exp (Complex.I * (⟪x, ζ⟫_ℝ : ℂ))).aestronglyMeasurable) + (continuous_cexp_inner (continuous_const (y := x)) continuous_id).aestronglyMeasurable) · rw [Fint, norm_mul, norm_mul, norm_cexp_I_mul, mul_one, mul_comm] exact mul_le_mul_of_nonneg_right (hmb ζ) (norm_nonneg _) @@ -1937,8 +1935,8 @@ theorem avgR_eq (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n → Fi have h4 : (XiE α r q.2 η q.1).toReal ≤ 4 := by have := ENNReal.toReal_mono (by norm_num) (XiE_le_four α hα hr q.2 η q.1) simpa using this - nlinarith [norm_nonneg (Fint m (f : Rn n → ℂ) x q.2), - ENNReal.toReal_nonneg (a := XiE α r q.2 η q.1)] + rw [mul_comm (4 : ℝ)] + exact mul_le_mul_of_nonneg_left h4 (norm_nonneg _) rw [integral_integral_swap hK] refine integral_congr_ae (Filter.Eventually.of_forall fun ζ => ?_) simp only @@ -1975,8 +1973,8 @@ theorem avgR_eq (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n → Fi have h4 : (∫⁻ s in Set.Ioc (0 : ℝ) 1, XiE α r q.2 q.1 s).toReal ≤ 4 := by have := ENNReal.toReal_mono (by norm_num) (lintegral_XiE_le α hα hr q.2 q.1) simpa using this - nlinarith [norm_nonneg (Fint m (f : Rn n → ℂ) x q.2), - ENNReal.toReal_nonneg (a := ∫⁻ s in Set.Ioc (0 : ℝ) 1, XiE α r q.2 q.1 s)] + rw [mul_comm (4 : ℝ)] + exact mul_le_mul_of_nonneg_left h4 (norm_nonneg _) rw [integral_integral_swap hK] refine integral_congr_ae (Filter.Eventually.of_forall fun ζ => ?_) simp only @@ -2084,11 +2082,11 @@ theorem hasCompactSupport_chiR : HasCompactSupport (chiR : Rn n → ℝ) := by · intro h refine ⟨WithLp.ofLp w, fun i _ => ?_, by simp⟩ have := abs_le.mp (h i) - constructor <;> linarith [this.1, this.2] + constructor <;> linarith only [this.1, this.2] · rintro ⟨v, hv, rfl⟩ i have := hv i (Set.mem_univ i) rw [abs_le] - constructor <;> simp <;> linarith [this.1, this.2] + constructor <;> simp <;> linarith only [this.1, this.2] rw [this] exact (isCompact_univ_pi fun _ => isCompact_Icc).image (PiLp.continuous_toLp 2 _) refine HasCompactSupport.intro hK fun w hw => ?_ @@ -2228,14 +2226,14 @@ theorem gQ_support (r : Fin n → Fin 2) {y : Rn n} (hy : gQ r y ≠ 0) : have hri0 : (0 : ℝ) ≤ ((r i : ℕ) : ℝ) := Nat.cast_nonneg _ norm_num [b0] at h2 rw [abs_le] - constructor <;> linarith [h1.1, h1.2, h2.1, h2.2] + constructor <;> linarith only [h1.1, h1.2, h2.1, h2.2, hri0, hri] · intro j hj have h1 := (hQ j).1 rw [hj] at h1 simp only [Fin.val_one, Nat.cast_one, PiLp.sub_apply] at h1 have h2 := abs_le.mp (hwb j) norm_num [b0] at h2 - linarith [h2.2] + linarith only [h1, h2.2] theorem contDiff_two_rpow : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (fun v : ℝ => (2 : ℝ) ^ v) := by have : (fun v : ℝ => (2 : ℝ) ^ v) = fun v => Real.exp (Real.log 2 * v) := by @@ -2301,7 +2299,7 @@ theorem local_scale_range (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fi linarith have h2 : 1 / (5 * (|ξ₀ j| + ε)) ≤ (2 ^ v) ^ α j := by rw [div_le_iff₀ (by positivity)] - nlinarith + linarith only [h1, mul_le_mul_of_nonneg_left hξj hpos.le] have h3 : (1 / (5 * (|ξ₀ j| + ε))) ^ ((α j : ℝ)⁻¹) ≤ 2 ^ v := by calc (1 / (5 * (|ξ₀ j| + ε))) ^ ((α j : ℝ)⁻¹) ≤ ((2 ^ v) ^ α j) ^ ((α j : ℝ)⁻¹) := Real.rpow_le_rpow (by positivity) h2 (by positivity) @@ -2322,7 +2320,8 @@ theorem local_scale_range (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fi linarith have h1 : (2 ^ v) ^ α i ≤ 4 / |ξ₀ i| := by rw [le_div_iff₀ hzi] - nlinarith [(by positivity : (0 : ℝ) ≤ (2 ^ v) ^ α i)] + have hpow : 0 ≤ ((2 : ℝ) ^ v) ^ α i := by positivity + linarith only [hy, mul_le_mul_of_nonneg_left hξi hpow] have h2 : 2 ^ v ≤ (4 / |ξ₀ i|) ^ ((α i : ℝ)⁻¹) := by calc (2 : ℝ) ^ v = ((2 ^ v) ^ α i) ^ ((α i : ℝ)⁻¹) := by rw [← Real.rpow_natCast, ← Real.rpow_mul h2v.le, mul_inv_cancel₀ hαi.ne', Real.rpow_one] @@ -2391,9 +2390,9 @@ theorem mem_coneCube_iff (r : Fin n → Fin 2) (ξ : Rn n) : rcases Fin.exists_fin_two.mp ⟨r i, rfl⟩ with h | h <;> simp [h] rcases h01 with h | h · simp only [h, zero_ne_one, ↓reduceIte, false_implies, true_and, forall_const] - constructor <;> rintro ⟨h1, h2⟩ <;> constructor <;> linarith + constructor <;> rintro ⟨h1, h2⟩ <;> constructor <;> linarith only [h1, h2] · simp only [h, ↓reduceIte, one_ne_zero, false_implies, and_true, forall_const] - constructor <;> rintro ⟨h1, h2⟩ <;> constructor <;> linarith + constructor <;> rintro ⟨h1, h2⟩ <;> constructor <;> linarith only [h1, h2] theorem isCompact_coneCube (r : Fin n → Fin 2) : IsCompact (coneCube r : Set (Rn n)) := by have : coneCube r = (WithLp.toLp 2 : (Fin n → ℝ) → Rn n) '' @@ -2414,7 +2413,7 @@ theorem ne_zero_of_mem_coneCube {r : Fin n → Fin 2} (hr : r ≠ 0) {ξ : Rn n} have := ((mem_coneCube_iff r ξ).mp hξ j).1 hj rw [h0] at this simp at this - linarith [this.2] + linarith only [this.2] /-- `g_r > 0` on the cube `B_r`. -/ theorem gQ_pos_of_mem_coneCube (r : Fin n → Fin 2) {ξ : Rn n} (hξ : ξ ∈ coneCube r) : @@ -2430,10 +2429,10 @@ theorem gQ_pos_of_mem_coneCube (r : Fin n → Fin 2) {ξ : Rn n} (hξ : ξ ∈ c rcases h01 with h | h · obtain ⟨h1, h2⟩ := (hmem i).2 h simp only [h, Fin.val_zero, Nat.cast_zero] - refine ⟨⟨?_, ?_⟩, ?_, ?_⟩ <;> norm_num [b1] <;> linarith + refine ⟨⟨?_, ?_⟩, ?_, ?_⟩ <;> norm_num [b1] <;> linarith only [h1, h2] · obtain ⟨h1, h2⟩ := (hmem i).1 h simp only [h, Fin.val_one, Nat.cast_one] - refine ⟨⟨?_, ?_⟩, ?_, ?_⟩ <;> norm_num [b1] <;> linarith + refine ⟨⟨?_, ?_⟩, ?_, ?_⟩ <;> norm_num [b1] <;> linarith only [h1, h2] set S : Set (Rn n) := {w | ∀ i, L i < w i ∧ w i < U i} have hSopen : IsOpen S := by have : S = ⋂ i, {w : Rn n | L i < w i ∧ w i < U i} := by ext w; simp [S] @@ -2455,7 +2454,7 @@ theorem gQ_pos_of_mem_coneCube (r : Fin n → Fin 2) {ξ : Rn n} (hξ : ξ ∈ c simp only [PiLp.sub_apply] have := hw i simp only [L, U, max_lt_iff, lt_min_iff] at this - constructor <;> linarith [this.1.2, this.2.2] + constructor <;> linarith only [this.1.2, this.2.2] have hχ : chiR w = 1 := by have h1 : phiHat (w - quarterVec n) = 1 := by apply phiHat_eq_one @@ -2464,7 +2463,7 @@ theorem gQ_pos_of_mem_coneCube (r : Fin n → Fin 2) {ξ : Rn n} (hξ : ξ ∈ c simp only [L, U, max_lt_iff, lt_min_iff] at this simp only [PiLp.sub_apply, quarterVec] rw [abs_le] - constructor <;> linarith [this.1.1, this.2.1] + constructor <;> linarith only [this.1.1, this.2.1] have : phiR (w - quarterVec n) = 1 := by rw [phiR, h1, Complex.one_re] simp [chiR, this] @@ -2635,7 +2634,7 @@ theorem lemma_3_3_cones (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) : by_cases hr : r = 0 · exact ⟨1, one_pos, fun h => absurd hr h⟩ · obtain ⟨ε, hε, h⟩ := exists_thetaR_lower α hα hr - exact ⟨ε / 2, by positivity, fun _ ξ hξ => by linarith [h ξ hξ]⟩ + exact ⟨ε / 2, by positivity, fun _ ξ hξ => by linarith only [h ξ hξ]⟩ choose e he hle using hlow have hne : (Finset.univ : Finset (Fin n → Fin 2)).Nonempty := ⟨0, Finset.mem_univ _⟩ set e0 := Finset.univ.inf' hne e @@ -3088,11 +3087,11 @@ theorem measurable_XiR (α : Fin n → ℕ) (r : Fin n → Fin 2) : Measurable fun q : Rn n × Rn n × ℝ => XiR α r q.1 q.2.1 q.2.2 := by unfold XiR refine Measurable.tsum fun ku => ?_ - have h1 : Measurable fun q : Rn n × Rn n × ℝ => dil α ((2 : ℝ) ^ (-q.2.2)) q.2.1 := - (measurable_dil_scale α).comp (measurable_snd.snd.prodMk measurable_snd.fst) - have h2 : Measurable fun q : Rn n × Rn n × ℝ => dil α ((2 : ℝ) ^ (-q.2.2)) (q.1 + q.2.1) := - (measurable_dil_scale α).comp (measurable_snd.snd.prodMk (measurable_fst.add - measurable_snd.fst)) + have hscale : Measurable fun q : Rn n × Rn n × ℝ => q.2.2 := measurable_snd.snd + have hpoint : Measurable fun q : Rn n × Rn n × ℝ => q.2.1 := measurable_snd.fst + have hdil := measurable_dil_scale α + have h1 := hdil.comp (hscale.prodMk hpoint) + have h2 := hdil.comp (hscale.prodMk (measurable_fst.add hpoint)) exact ((measurable_const.indicator (measurable_semi_indicator α _ r)).comp h1).mul (((continuous_PhiP α _).measurable.comp h2).pow_const 2) @@ -3112,8 +3111,7 @@ theorem measurable_avgIntegrand (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) { Complex.exp (Complex.I * (⟪q.1.1, q.2⟫_ℝ : ℂ)) * XiR α r q.2 q.1.2.1 q.1.2.2.2 := by refine ((((continuous_fhat_schwartz f).measurable.comp measurable_snd).mul (hm.measurable.comp measurable_snd)).mul ?_).mul ?_ - · exact (by fun_prop : Continuous fun q : (Rn n × Rn n × Rn n × ℝ) × Rn n => - Complex.exp (Complex.I * (⟪q.1.1, q.2⟫_ℝ : ℂ))).measurable + · exact (continuous_cexp_inner continuous_fst.fst continuous_snd).measurable · have hg : Measurable fun q : (Rn n × Rn n × Rn n × ℝ) × Rn n => (q.2, q.1.2.1, q.1.2.2.2) := measurable_snd.prodMk (measurable_fst.snd.fst.prodMk measurable_fst.snd.snd.snd) simpa only [Function.comp_def] using (measurable_XiR α r).comp hg @@ -3271,8 +3269,7 @@ theorem measurable_avgR (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin refine ((((continuous_fhat_schwartz f).measurable.comp measurable_snd).mul (hm.measurable.comp measurable_snd)).mul ?_).mul (Complex.measurable_ofReal.comp ((measurable_KR α r R).comp measurable_snd)) - exact (by fun_prop : Continuous fun q : Rn n × Rn n => - Complex.exp (Complex.I * (⟪q.1, q.2⟫_ℝ : ℂ))).measurable + exact (continuous_cexp_inner continuous_fst continuous_snd).measurable exact hK.stronglyMeasurable.integral_prod_right'.measurable theorem tendsto_ball_ratio (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {c : ℝ} (hc : 0 ≤ c) : @@ -3469,7 +3466,8 @@ theorem continuous_carlesonIntegrand (hn : 0 < n) {M : Rn n → ℂ} {B : ℝ} ( intro N₀ refine continuousAt_of_dominated (bound := fun ξ => ‖fhat (f : Rn n → ℂ) ξ‖ * B) ?_ ?_ ?_ ?_ · refine Filter.Eventually.of_forall fun N => ?_ - exact (((continuous_fhat_schwartz f).mul (by fun_prop)).measurable.mul + exact (((continuous_fhat_schwartz f).mul + (continuous_cexp_inner (continuous_const (y := x)) continuous_id)).measurable.mul (hMm.comp (measurable_id.sub_const N))).aestronglyMeasurable · refine Filter.Eventually.of_forall fun N => Filter.Eventually.of_forall fun ξ => ?_ rw [norm_mul, norm_mul, mul_comm Complex.I, Complex.norm_exp_ofReal_mul_I, mul_one] @@ -3493,15 +3491,16 @@ theorem continuous_fourierMult {M : Rn n → ℂ} {B : ℝ} (hMb : ∀ ξ, ‖M Continuous fun x => ∫ ζ, M ζ * fhat g ζ * Complex.exp (Complex.I * (⟪x, ζ⟫_ℝ : ℂ)) := by refine continuous_of_dominated (bound := fun ζ => B * ‖fhat (g : Rn n → ℂ) ζ‖) ?_ ?_ ?_ ?_ · intro x + have hphase := continuous_cexp_inner (continuous_const (y := x)) continuous_id exact ((hMm.mul (continuous_fhat_schwartz g).measurable).mul - (by fun_prop : Continuous fun ζ : Rn n => - Complex.exp (Complex.I * (⟪x, ζ⟫_ℝ : ℂ))).measurable).aestronglyMeasurable + hphase.measurable).aestronglyMeasurable · intro x refine Filter.Eventually.of_forall fun ζ => ?_ rw [norm_mul, norm_mul, mul_comm Complex.I, Complex.norm_exp_ofReal_mul_I, mul_one] exact mul_le_mul_of_nonneg_right (hMb _) (norm_nonneg _) · exact (integrable_fhat_schwartz g).norm.const_mul B - · exact Filter.Eventually.of_forall fun ζ => continuous_const.mul (by fun_prop) + · exact Filter.Eventually.of_forall fun ζ => + continuous_const.mul (continuous_cexp_inner continuous_id (continuous_const (y := ζ))) theorem iSup_eq_iSup_dense {g : Rn n → ℝ≥0∞} (hg : Continuous g) {D : Set (Rn n)} (hD : Dense D) : ⨆ N, g N = ⨆ N ∈ D, g N := by @@ -3519,11 +3518,12 @@ theorem le_sq_of_mul_le_sqrt {t a K : ℝ} (ht : 0 < t) (ha : 0 ≤ a) (hK : 0 · rw [← h0]; positivity · have hs : 0 < Real.sqrt a := Real.sqrt_pos.mpr hpos have h1 : t * Real.sqrt a ≤ K := by - have := Real.mul_self_sqrt ha - nlinarith - have h2 : Real.sqrt a ≤ K / t := by rw [le_div_iff₀ ht]; linarith + refine le_of_mul_le_mul_right ?_ hs + rwa [mul_assoc, Real.mul_self_sqrt ha] + have h2 : Real.sqrt a ≤ K / t := by rw [le_div_iff₀ ht, mul_comm]; exact h1 calc a = Real.sqrt a ^ 2 := (Real.sq_sqrt ha).symm - _ ≤ (K / t) ^ 2 := by gcongr + _ ≤ (K / t) ^ 2 := + (sq_le_sq₀ hs.le (div_nonneg hK ht.le)).mpr h2 /-- **Weak `(2,2)` bound for `𝒞_{θ_r m}`** (texline~277–281): for `ν ≥ 3|α| + 2`, `|{𝒞_{θ_r m} f > t}| ≤ (C ‖m‖ ‖f‖₂ / t)²`. -/ @@ -3819,9 +3819,9 @@ theorem normM_mul_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n) congr 2 exact_mod_cast Nat.sum_range_choose k _ ≤ _ := by - have : (2 : ℝ) ^ k ≤ 2 ^ ν := pow_le_pow_right₀ (by norm_num) hk - have : 0 ≤ Bq * ((n : ℝ) ^ ν * Nm) := by positivity - nlinarith) + have hpow : (2 : ℝ) ^ k ≤ 2 ^ ν := pow_le_pow_right₀ (by norm_num) hk + have hconstant : 0 ≤ Bq * ((n : ℝ) ^ ν * Nm) := by positivity + simpa only [mul_assoc] using mul_le_mul_of_nonneg_right hpow hconstant) exact ENNReal.toReal_le_of_le_ofReal (by positivity) h /-! ### The homogeneous partition subordinate to the reflected cones (texline~275–276) -/ @@ -3941,7 +3941,8 @@ theorem carleson_le_sum (hn : 0 < n) {ι : Type*} (s : Finset ι) (P : ι → Rn intro i hi obtain ⟨B, hB⟩ := hP i hi refine ((integrable_fhat_schwartz f).norm.mul_const B).mono' - ((((continuous_fhat_schwartz f).mul (by fun_prop)).measurable.mul + ((((continuous_fhat_schwartz f).mul + (continuous_cexp_inner (continuous_const (y := x)) continuous_id)).measurable.mul ((hPm i hi).comp (measurable_id.sub_const N))).aestronglyMeasurable) (Filter.Eventually.of_forall fun ξ => ?_) rw [norm_mul, norm_mul, mul_comm Complex.I, Complex.norm_exp_ofReal_mul_I, mul_one] @@ -4098,8 +4099,10 @@ theorem thm_1_1 (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n) (ν have hle : Cθ p.2 * ((n : ℝ) ^ ν₀ * Cq p) ≤ K := Finset.single_le_sum (f := fun p => Cθ p.2 * ((n : ℝ) ^ ν₀ * Cq p)) (fun p _ => by have := hCθ0 p.2; have := hCq0 p; positivity) hp - have : 0 ≤ Nm * Ff * J := by positivity - nlinarith + have hnonneg : 0 ≤ Nm * Ff * J := by positivity + calc _ = (Cθ p.2 * ((n : ℝ) ^ ν₀ * Cq p)) * (Nm * Ff * J) := by ring + _ ≤ K * (Nm * Ff * J) := mul_le_mul_of_nonneg_right hle hnonneg + _ = _ := by ring calc ∑ p ∈ coneIdx n, (Cθ p.2 * ((n : ℝ) ^ ν₀ * Cq p) * Nm * Ff / (t / J)) ^ 2 ≤ ∑ _p ∈ coneIdx n, (K * Nm * Ff * J / t) ^ 2 := Finset.sum_le_sum hterm _ = J * (K * Nm * Ff * J / t) ^ 2 := by rw [Finset.sum_const, nsmul_eq_mul] @@ -4265,7 +4268,7 @@ theorem anisotropic_carleson (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn obtain ⟨C₀, hC₀, h⟩ := thm_1_1 α hα hn ν₀ hν₀ set c : ℝ := (2 * π)⁻¹ have hc : 0 < c := by positivity - have hc1 : c ≤ 1 := inv_le_one_of_one_le₀ (by nlinarith [Real.pi_gt_three]) + have hc1 : c ≤ 1 := inv_le_one_of_one_le₀ (by linarith [Real.pi_gt_three]) set K : ℝ := (n : ℝ) ^ ν₀ * c ^ (-((ν₀ * absA α : ℕ) : ℝ)) have hK : 0 ≤ K := by positivity refine ⟨C₀ * K + 1, by positivity, fun m hm f => ?_⟩ @@ -4278,7 +4281,8 @@ theorem anisotropic_carleson (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn set Ff := (eLpNorm (f : ℝ^n → ℂ) 2 volume).toReal have hRHS : ENNReal.ofReal (C₀ * K + 1) * normM α ν₀ m * eLpNorm (f : ℝ^n → ℂ) 2 volume = ENNReal.ofReal ((C₀ * K + 1) * Nm * Ff) := by - have hfin : eLpNorm (f : ℝ^n → ℂ) 2 volume ≠ ⊤ := (f.memLp 2).eLpNorm_ne_top + have hfin : eLpNorm (f : ℝ^n → ℂ) 2 volume ≠ ⊤ := + (f.memLp 2 (μ := volume)).eLpNorm_ne_top rw [← ENNReal.ofReal_toReal (normM_lt_top α hα hmA).ne, ← ENNReal.ofReal_toReal hfin, ← ENNReal.ofReal_mul (by positivity), ← ENNReal.ofReal_mul (by positivity)] rw [hRHS] @@ -4303,8 +4307,9 @@ theorem anisotropic_carleson (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn refine hbound.trans (ENNReal.ofReal_le_ofReal ?_) have h1 : (normM α ν₀ fun ζ => m (c • ζ)).toReal ≤ K * Nm := hnorm calc C₀ * (normM α ν₀ fun ζ => m (c • ζ)).toReal * Ff ≤ C₀ * (K * Nm) * Ff := by gcongr - _ ≤ (C₀ * K + 1) * Nm * Ff := by nlinarith [mul_nonneg hNm (ENNReal.toReal_nonneg (a := - eLpNorm (f : ℝ^n → ℂ) 2 volume))] + _ ≤ (C₀ * K + 1) * Nm * Ff := by + have hFf : 0 ≤ Ff := ENNReal.toReal_nonneg + linarith only [mul_nonneg hNm hFf] end diff --git a/LeanPool/CarlesonLT/Auto/ClassicalCarleson.lean b/LeanPool/CarlesonLT/Auto/ClassicalCarleson.lean index 8daa546f50..b538bd544c 100644 --- a/LeanPool/CarlesonLT/Auto/ClassicalCarleson.lean +++ b/LeanPool/CarlesonLT/Auto/ClassicalCarleson.lean @@ -5,11 +5,11 @@ Authors: Joris Roos -/ module -/- Proofs generated by Claude under Joris Roos’s supervision; adapted for Lean Pool. -/ +/- Proofs generated by Claude under Joris Roos’s supervision; adapted for Lean Pool. +Lean Pool changes: derive measurability of the Dirichlet kernel weight directly. -/ +public import LeanPool.CarlesonLT.Auto.FourierKernels public import LeanPool.CarlesonLT.Auto.AnisotropicCarleson -public import Mathlib.Analysis.Fourier.RiemannLebesgueLemma -public import Mathlib.Analysis.Normed.Lp.SmoothApprox /-! # The classical Carleson theorems @@ -117,11 +117,6 @@ theorem carleson_mHalf_weak : /-! ### Step 2: the Dirichlet kernel of the real line -/ -/-- The kernel `D_R(z) = sin(2πRz)/(πz)` (with `D_R(0) = 2R`) of the partial Fourier integrals -`∫_{-R}^{R} f̂(ξ) e^{2πixξ} dξ = ∫ f(y) D_R(x − y) dy`. -/ -def dirichletKernel (R z : ℝ) : ℂ := - if z = 0 then ((2 * R : ℝ) : ℂ) else ((Real.sin (2 * π * R * z) / (π * z) : ℝ) : ℂ) - theorem dirichletKernel_eq_integral (R z : ℝ) : dirichletKernel R z = ∫ ξ in -R..R, Complex.exp (↑(2 * π * (ξ * z)) * Complex.I) := by unfold dirichletKernel @@ -144,9 +139,6 @@ theorem dirichletKernel_eq_integral (R z : ℝ) : rw [Complex.I_sq] ring_nf -/-- The partial Fourier integral `S_R f(x) = ∫ f(y) D_R(x − y) dy`. -/ -def partialFourierIntegral (f : ℝ → ℂ) (R x : ℝ) : ℂ := ∫ y, f y * dirichletKernel R (x - y) - /-- For integrable `f`, `S_R f(x) = ∫_{-R}^{R} 𝓕f(ξ) e^{2πixξ} dξ` (Fubini). -/ theorem integral_fourier_eq_partialFourierIntegral {f : ℝ → ℂ} (hf : Integrable f) {R : ℝ} (hR : 0 ≤ R) (x : ℝ) : @@ -205,20 +197,6 @@ theorem fhat_schwartzToR1 (g : 𝓢(ℝ, ℂ)) (ζ : ℝ) : congr 1; funext y rw [coe_schwartzToR1, Function.comp_apply, LinearIsometryEquiv.symm_apply_apply, inner_toR1] -/-- The frequency cut-off integral `J(N) = ∫_{ξ > N} 𝓕g(ξ) e^{2πixξ} dξ`. -/ -def cutoffIntegral (g : ℝ → ℂ) (x N : ℝ) : ℂ := - ∫ ξ, (Set.Ioi N).indicator (fun ξ => 𝐞 (ξ * x) • 𝓕 g ξ) ξ - -theorem integrable_fourier_schwartz (g : 𝓢(ℝ, ℂ)) : Integrable (𝓕 (g : ℝ → ℂ)) := by - rw [← SchwartzMap.fourier_coe]; exact (𝓕 g).integrable - -theorem integrable_char_fourier (g : 𝓢(ℝ, ℂ)) (x : ℝ) : - Integrable fun ξ => 𝐞 (ξ * x) • 𝓕 (g : ℝ → ℂ) ξ := by - refine (integrable_fourier_schwartz g).norm.mono' ?_ (Filter.Eventually.of_forall fun ξ => ?_) - · exact ((Real.continuous_fourierChar.comp (continuous_id.mul continuous_const)).smul - (SchwartzMap.fourier_coe g ▸ (𝓕 g).continuous)).aestronglyMeasurable - · rw [Circle.norm_smul] - /-- The Carleson integrand of `mHalf` at the frequency `2πN` is `2π J(N)`. -/ theorem carlesonIntegrand_mHalf (g : 𝓢(ℝ, ℂ)) (x N : ℝ) : ∫ w, fhat (schwartzToR1 g) w * Complex.exp (Complex.I * (⟪toR1 x, w⟫_ℝ : ℂ)) * @@ -324,92 +302,6 @@ theorem partialFourier_weak_schwartz : /-! ### Step 4: the partial Fourier integrals of `L²` functions -/ -theorem norm_dirichletKernel_le {R : ℝ} (hR : 0 ≤ R) (z : ℝ) : - ‖dirichletKernel R z‖ ≤ (4 * R + 2) * (1 + |z|)⁻¹ := by - have hz1 : 0 < 1 + |z| := by positivity - rw [← div_eq_mul_inv, le_div_iff₀ hz1] - unfold dirichletKernel - split_ifs with hz - · subst hz; simp [abs_of_nonneg hR]; linarith - · rw [Complex.norm_real, Real.norm_eq_abs, abs_div, abs_mul, abs_of_pos Real.pi_pos] - have hzp : 0 < |z| := abs_pos.mpr hz - rw [div_mul_eq_mul_div, div_le_iff₀ (by positivity)] - rcases le_or_gt |z| 1 with h1 | h1 - · have hs : |Real.sin (2 * π * R * z)| ≤ 2 * π * R * |z| := by - have := Real.abs_sin_le_abs (x := 2 * π * R * z) - rwa [abs_mul, abs_of_nonneg (by positivity : (0 : ℝ) ≤ 2 * π * R)] at this - calc |Real.sin (2 * π * R * z)| * (1 + |z|) ≤ (2 * π * R * |z|) * 2 := - mul_le_mul hs (by linarith) (by positivity) (by positivity) - _ ≤ (4 * R + 2) * (π * |z|) := by nlinarith [Real.pi_pos, abs_nonneg z] - · have hs := Real.abs_sin_le_one (2 * π * R * z) - calc |Real.sin (2 * π * R * z)| * (1 + |z|) ≤ 1 * (1 + |z|) := - mul_le_mul_of_nonneg_right hs (by positivity) - _ ≤ 2 * (π * |z|) := by nlinarith [Real.pi_gt_three] - _ ≤ (4 * R + 2) * (π * |z|) := by - have : 0 ≤ π * |z| := by positivity - nlinarith - -theorem measurable_dirichletKernel (R : ℝ) : Measurable (dirichletKernel R) := by - unfold dirichletKernel - refine Measurable.ite (measurableSet_singleton 0) measurable_const ?_ - exact Complex.measurable_ofReal.comp (by fun_prop) - -theorem memLp_dirichletKernel {R : ℝ} (hR : 0 ≤ R) (x : ℝ) : - MemLp (fun y => dirichletKernel R (x - y)) 2 volume := by - have hw : MemLp (fun y : ℝ => (1 + |x - y|)⁻¹) 2 volume := by - have hm : AEStronglyMeasurable (fun y : ℝ => (1 + |x - y|)⁻¹) volume := - (by fun_prop : Measurable fun y : ℝ => (1 + |x - y|)⁻¹).aestronglyMeasurable - rw [memLp_two_iff_integrable_sq hm] - have h := (integrable_one_add_norm (E := ℝ) (μ := volume) (r := 2) (by - norm_num)).comp_sub_left x - refine h.congr (Filter.Eventually.of_forall fun y => ?_) - simp only [Real.norm_eq_abs] - rw [Real.rpow_neg (by positivity), inv_pow, Real.rpow_two] - refine (hw.const_mul (4 * R + 2)).of_le - ((measurable_dirichletKernel R).comp (measurable_const.sub measurable_id)).aestronglyMeasurable - (Filter.Eventually.of_forall fun y => ?_) - rw [Real.norm_eq_abs, abs_mul, abs_of_nonneg (by positivity : (0 : ℝ) ≤ 4 * R + 2), - abs_of_pos (by positivity : (0 : ℝ) < (1 + |x - y|)⁻¹)] - exact norm_dirichletKernel_le hR _ - -theorem integrable_mul_dirichletKernel {f : ℝ → ℂ} (hf : MemLp f 2 volume) {R : ℝ} (hR : 0 ≤ R) - (x : ℝ) : Integrable fun y => f y * dirichletKernel R (x - y) := - hf.integrable_mul (memLp_dirichletKernel hR x) - -theorem partialFourierIntegral_sub {f g : ℝ → ℂ} (hf : MemLp f 2 volume) (hg : MemLp g 2 volume) - {R : ℝ} (hR : 0 ≤ R) (x : ℝ) : - partialFourierIntegral (f - g) R x = partialFourierIntegral f R x - partialFourierIntegral g - R x := by - unfold partialFourierIntegral - rw [← integral_sub (integrable_mul_dirichletKernel hf hR x) (integrable_mul_dirichletKernel hg - hR x)] - congr 1; funext y; simp only [Pi.sub_apply]; ring - -/-- Cauchy–Schwarz for the pairing. -/ -theorem enorm_integral_mul_le {u v : ℝ → ℂ} (hu : MemLp u 2 volume) (hv : MemLp v 2 volume) : - ‖∫ y, u y * v y‖ₑ ≤ eLpNorm u 2 volume * eLpNorm v 2 volume := by - refine (eNorm_integral_le_lintegral_eNorm _).trans ?_ - simp_rw [eNorm_mul] - have h := ENNReal.lintegral_mul_le_Lp_mul_Lq volume Real.HolderConjugate.two_two - hu.aestronglyMeasurable.eNorm hv.aestronglyMeasurable.eNorm - rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal (by norm_num) (by norm_num) hu.aestronglyMeasurable, - eLpNorm_eq_lintegral_rpow_eNorm_toReal (by norm_num) (by norm_num) hv.aestronglyMeasurable] - simpa using h - -/-- `S_R f(x)` depends continuously on `f ∈ L²`. -/ -theorem enorm_partialFourierIntegral_sub_le {f g : ℝ → ℂ} (hf : MemLp f 2 volume) - (hg : MemLp g 2 volume) {R : ℝ} (hR : 0 ≤ R) (x : ℝ) : - ‖partialFourierIntegral f R x - partialFourierIntegral g R x‖ₑ ≤ - eLpNorm (f - g) 2 volume * eLpNorm (fun y => dirichletKernel R (x - y)) 2 volume := by - rw [← partialFourierIntegral_sub hf hg hR] - exact enorm_integral_mul_le (hf.sub hg) (memLp_dirichletKernel hR x) - -/-- Smooth compactly supported approximation of `L²` functions, as Schwartz functions. -/ -theorem exists_schwartz_eLpNorm_sub_le {f : ℝ → ℂ} (hf : MemLp f 2 volume) {ε : ℝ} (hε : 0 < ε) : - ∃ g : 𝓢(ℝ, ℂ), eLpNorm (f - (g : ℝ → ℂ)) 2 volume ≤ ENNReal.ofReal ε := by - obtain ⟨g, hg1, hg2, hg3⟩ := hf.exist_eLpNorm_sub_le (by norm_num) (by norm_num) hε - exact ⟨hg1.toSchwartzMap hg2, hg3⟩ - theorem toReal_eLpNorm_le_add {f g : ℝ → ℂ} (hf : MemLp f 2 volume) (hg : MemLp g 2 volume) : (eLpNorm g 2 volume).toReal ≤ (eLpNorm f 2 volume).toReal + (eLpNorm (f - g) 2 volume).toReal := by @@ -441,7 +333,7 @@ theorem partialFourier_weak : refine (hS (g j) t ht).trans (ENNReal.ofReal_le_ofReal ?_) refine pow_le_pow_left₀ (by positivity) (div_le_div_of_nonneg_right ?_ ht.le) 2 refine mul_le_mul_of_nonneg_left ?_ hC - refine (toReal_eLpNorm_le_add hf ((g j).memLp 2)).trans (add_le_add le_rfl ?_) + refine (toReal_eLpNorm_le_add hf ((g j).memLp 2 volume)).trans (add_le_add le_rfl ?_) exact ENNReal.toReal_le_of_le_ofReal (by positivity) (hg j) have hbnd : Tendsto bnd atTop (𝓝 (ENNReal.ofReal ((C * (eLpNorm f 2 volume).toReal / t) ^ 2))) := by @@ -461,7 +353,7 @@ theorem partialFourier_weak : rw [tendsto_iff_norm_sub_tendsto_zero] refine squeeze_zero (fun j => norm_nonneg _) (fun j => ?_) ((tendsto_one_div_add_atTop_nhds_zero_nat.mul_const K.toReal).trans (by simp)) - have h1 := enorm_partialFourierIntegral_sub_le ((g j).memLp 2) hf hR x + have h1 := enorm_partialFourierIntegral_sub_le ((g j).memLp 2 volume) hf hR x rw [← eLpNorm_neg, neg_sub] at h1 have h2 : ‖partialFourierIntegral (g j) R x - partialFourierIntegral f R x‖ₑ ≤ ENNReal.ofReal (1 / ((j : ℝ) + 1)) * K := h1.trans (mul_le_mul' (hg j) le_rfl) @@ -508,7 +400,7 @@ theorem volume_bad_eq_zero {f : ℝ → ℂ} (hf : MemLp f 2 volume) {ε : ℝ} intro δ hδ obtain ⟨g, hg⟩ := exists_schwartz_eLpNorm_sub_le hf hδ set h := f - (g : ℝ → ℂ) - have hh : MemLp h 2 volume := hf.sub (g.memLp 2) + have hh : MemLp h 2 volume := hf.sub (g.memLp 2 volume) have hsub : Bad ⊆ {x | ∃ R, 0 ≤ R ∧ ENNReal.ofReal (ε / 3) < ‖partialFourierIntegral h R x‖ₑ} ∪ {x | ENNReal.ofReal (ε / 3) ≤ ‖h x‖ₑ} := by intro x hx @@ -522,7 +414,7 @@ theorem volume_bad_eq_zero {f : ℝ → ℂ} (hf : MemLp f 2 volume) {ε : ℝ} Filter.eventually_ge_atTop 0] with R hR hR0 have e : partialFourierIntegral f R x - f x = partialFourierIntegral h R x + (partialFourierIntegral g R x - g x) - h x := by - rw [partialFourierIntegral_sub hf (g.memLp 2) hR0] + rw [partialFourierIntegral_sub hf (g.memLp 2 volume) hR0] simp only [h, Pi.sub_apply]; ring have n1 : ‖partialFourierIntegral h R x‖ ≤ ε / 3 := by have := h1 R hR0 @@ -599,18 +491,6 @@ theorem carleson_fourierIntegral {f : ℝ → ℂ} (hf1 : Integrable f) (hf : Me /-! ### Step 6: the Dirichlet kernel of the circle -/ -/-- The Fourier coefficients `f̂(k) = ∫_0^1 f(y) e^{-2πiky} dy` of a `1`-periodic function. -/ -def fourierCoeff1 (f : ℝ → ℂ) (k : ℤ) : ℂ := - ∫ y in (0 : ℝ)..1, Complex.exp (-(2 * π * Complex.I * k * y)) * f y - -/-- The symmetric partial sums `S_N f(x) = ∑_{|k| ≤ N} f̂(k) e^{2πikx}` of the Fourier series. -/ -def fourierPartialSum1 (f : ℝ → ℂ) (N : ℕ) (x : ℝ) : ℂ := - ∑ k ∈ Finset.Icc (-(N : ℤ)) N, fourierCoeff1 f k * Complex.exp (2 * π * Complex.I * k * x) - -/-- The Dirichlet kernel `D_N(z) = ∑_{|k| ≤ N} e^{2πikz}`. -/ -def dirichletPer (N : ℕ) (z : ℝ) : ℂ := - ∑ k ∈ Finset.Icc (-(N : ℤ)) N, Complex.exp (2 * π * Complex.I * k * z) - theorem Icc_succ_eq (N : ℕ) : Finset.Icc (-((N + 1 : ℕ) : ℤ)) ((N + 1 : ℕ) : ℤ) = insert (-((N + 1 : ℕ) : ℤ)) (insert ((N + 1 : ℕ) : ℤ) (Finset.Icc (-(N : ℤ)) N)) := by ext k; simp only [Finset.mem_Icc, Finset.mem_insert]; push_cast; omega @@ -656,49 +536,6 @@ theorem dirichletPer_mul_sin (N : ℕ) (z : ℝ) : rw [Complex.ofReal_sin, Complex.ofReal_sin, Complex.sin, Complex.sin, hw1, hw2, hw3, hw4] linear_combination (-(Complex.I / 2)) * zpow_sum_mul w hw N -/-- The correction `φ(z) = 1/sin(πz) − 1/(πz)` (with `φ(0) = 0`). -/ -def corrPhi (z : ℝ) : ℝ := if z = 0 then 0 else 1 / Real.sin (π * z) - 1 / (π * z) - -theorem corr_bound_pos {u : ℝ} (hu : 0 < u) (hu' : u ≤ π / 2) : - 0 ≤ 1 / Real.sin u - 1 / u ∧ 1 / Real.sin u - 1 / u ≤ 1 := by - have hs : 0 < Real.sin u := Real.sin_pos_of_pos_of_lt_pi hu (by linarith [Real.pi_pos]) - have hsu : Real.sin u ≤ u := Real.sin_le hu.le - have hj : 2 / π * u ≤ Real.sin u := Real.mul_le_sin hu.le hu' - have hc : u - u ^ 3 / 6 < Real.sin u := Real.sin_gt_sub_cube hu - have hπ := Real.pi_gt_three - have hπ' := Real.pi_lt_four - rw [div_sub_div _ _ hs.ne' hu.ne'] - constructor - · apply div_nonneg <;> nlinarith - · rw [div_le_one (by positivity)] - have h1 : u * (2 / π * u) ≤ u * Real.sin u := mul_le_mul_of_nonneg_left hj hu.le - have h2 : u ^ 3 / 6 ≤ u * (2 / π * u) := by - rw [show u * (2 / π * u) = u ^ 2 * (2 / π) by ring] - have : u ≤ 12 / π := by - rw [le_div_iff₀ (by positivity)]; nlinarith - have h3 : u / 6 ≤ 2 / π := by - rw [div_le_div_iff₀ (by norm_num) (by positivity)] - rw [le_div_iff₀ (by positivity)] at this; linarith - nlinarith [sq_nonneg u] - nlinarith - -theorem abs_corrPhi_le {z : ℝ} (hz : |z| ≤ 1 / 2) : |corrPhi z| ≤ 1 := by - unfold corrPhi - split_ifs with h0 - · simp - · rcases lt_or_gt_of_ne h0 with hneg | hpos - · have h := corr_bound_pos (u := π * -z) (by nlinarith [Real.pi_pos]) - (by rw [abs_of_neg hneg] at hz; nlinarith [Real.pi_pos]) - have e : 1 / Real.sin (π * z) - 1 / (π * z) = -(1 / Real.sin (π * -z) - 1 / (π * -z)) := by - rw [mul_neg, Real.sin_neg]; ring - rw [e, abs_neg, abs_of_nonneg h.1]; exact h.2 - · have h := corr_bound_pos (u := π * z) (by positivity) - (by rw [abs_of_pos hpos] at hz; nlinarith [Real.pi_pos]) - rw [abs_of_nonneg h.1]; exact h.2 - -/-- `ψ = φ` on `[−1/2, 1/2)` and `−1/(πz)` outside. -/ -def corrPsi (z : ℝ) : ℝ := if z ∈ Set.Ico (-1 / 2 : ℝ) (1 / 2) then corrPhi z else -(1 / (π * z)) - theorem abs_corrPsi_le (z : ℝ) : |corrPsi z| ≤ 1 := by unfold corrPsi split_ifs with h @@ -711,18 +548,6 @@ theorem abs_corrPsi_le (z : ℝ) : |corrPsi z| ≤ 1 := by rw [abs_neg, abs_div, abs_one, abs_mul, abs_of_pos Real.pi_pos, div_le_one (by positivity)] nlinarith [Real.pi_gt_three] -theorem measurable_corrPsi : Measurable corrPsi := by - unfold corrPsi corrPhi - refine Measurable.ite measurableSet_Ico ?_ (by fun_prop) - exact Measurable.ite (measurableSet_singleton 0) measurable_const (by fun_prop) - -theorem dirichletPer_zero (N : ℕ) : dirichletPer N 0 = 2 * N + 1 := by - unfold dirichletPer - simp only [Complex.ofReal_zero, mul_zero, Complex.exp_zero, Finset.sum_const, Int.card_Icc, - nsmul_eq_mul, mul_one] - rw [show ((N : ℤ) + 1 - -(N : ℤ)) = ((2 * N + 1 : ℕ) : ℤ) by push_cast; ring, Int.toNat_natCast] - push_cast; ring - /-- The kernel comparison: `1_{[−1/2,1/2)} D_N = D_{N+1/2} + ψ · sin((2N+1)π ·)`. -/ theorem indicator_dirichletPer_eq (N : ℕ) (z : ℝ) : (Set.Ico (-1 / 2 : ℝ) (1 / 2)).indicator (dirichletPer N) z = @@ -773,9 +598,6 @@ theorem indicator_dirichletPer_eq (N : ℕ) (z : ℝ) : /-! ### Step 7: localization -/ -/-- The window `F_a = 1_{(a−1, a+2]} f`. -/ -def window (f : ℝ → ℂ) (a : ℤ) : ℝ → ℂ := (Set.Ioc ((a : ℝ) - 1) (a + 2)).indicator f - theorem memLp_Ioc_shift {f : ℝ → ℂ} (hper : Function.Periodic f 1) (hf : MemLp f 2 (volume.restrict (Set.Ioc 0 1))) (k : ℤ) : MemLp ((Set.Ioc (k : ℝ) (k + 1)).indicator f) 2 volume := by @@ -819,40 +641,6 @@ theorem integrable_window {f : ℝ → ℂ} (hper : Function.Periodic f 1) ⟨by simp⟩ exact (integrable_indicator_iff measurableSet_Ioc).mpr (h.integrable (by norm_num)) -theorem dirichletPer_sub_one (N : ℕ) (z : ℝ) : dirichletPer N (z - 1) = dirichletPer N z := by - unfold dirichletPer - refine Finset.sum_congr rfl fun k _ => ?_ - have : Complex.exp (2 * π * Complex.I * k * ↑(z - 1)) = - Complex.exp (2 * π * Complex.I * k * z) * Complex.exp (-(k * (2 * π * Complex.I))) := by - rw [← Complex.exp_add]; congr 1; push_cast; ring - rw [this, Complex.exp_neg, Complex.exp_int_mul_two_pi_mul_I, inv_one, mul_one] - -theorem intervalIntegrable_mul_dirichletPer {f : ℝ → ℂ} - (hf : MemLp f 2 (volume.restrict (Set.Ioc 0 1))) (N : ℕ) (x : ℝ) : - IntervalIntegrable (fun y => f y * dirichletPer N (x - y)) volume 0 1 := by - have : IsFiniteMeasure (volume.restrict (Set.Ioc (0 : ℝ) 1)) := ⟨by simp⟩ - have hi : IntervalIntegrable f volume 0 1 := - (intervalIntegrable_iff_integrableOn_Ioc_of_le zero_le_one).mpr (hf.integrable (by norm_num)) - refine hi.mul_continuousOn ?_ - unfold dirichletPer - exact (continuous_finsetSum _ fun k _ => by fun_prop).continuousOn - -/-- `S_N f(x) = ∫_0^1 f(y) D_N(x − y) dy`. -/ -theorem fourierPartialSum1_eq {f : ℝ → ℂ} (hf : MemLp f 2 (volume.restrict (Set.Ioc 0 1))) - (N : ℕ) (x : ℝ) : fourierPartialSum1 f N x = ∫ y in (0 : ℝ)..1, f y * dirichletPer N (x - y) - := by - unfold fourierPartialSum1 fourierCoeff1 dirichletPer - simp_rw [Finset.mul_sum] - have : IsFiniteMeasure (volume.restrict (Set.Ioc (0 : ℝ) 1)) := ⟨by simp⟩ - have hi : IntervalIntegrable f volume 0 1 := - (intervalIntegrable_iff_integrableOn_Ioc_of_le zero_le_one).mpr (hf.integrable (by norm_num)) - rw [intervalIntegral.integral_finsetSum (fun k _ => hi.mul_continuousOn (by fun_prop))] - refine Finset.sum_congr rfl fun k _ => ?_ - rw [← intervalIntegral.integral_mul_const] - congr 1; funext y - rw [mul_comm (Complex.exp _) (f y), mul_assoc, ← Complex.exp_add] - congr 2; push_cast; ring - /-- Localization: on the window around `x ∈ (a, a+1)`, `S_N f(x) = S_{N+1/2} F_a(x) + ∫ F_a(y) ψ(x−y) sin((2N+1)π(x−y)) dy`. -/ theorem fourierPartialSum1_eq_local {f : ℝ → ℂ} (hper : Function.Periodic f 1) @@ -894,55 +682,6 @@ theorem fourierPartialSum1_eq_local {f : ℝ → ℂ} (hper : Function.Periodic hint2] rfl -/-- Riemann–Lebesgue: `∫ H(y) sin((2N+1)π(x−y)) dy → 0`. -/ -theorem tendsto_integral_mul_sin {H : ℝ → ℂ} (hH : Integrable H) (x : ℝ) : - Tendsto (fun N : ℕ => ∫ y, H y * (Real.sin ((2 * N + 1) * π * (x - y)) : ℂ)) atTop (𝓝 0) := by - set A : ℝ → ℂ := fun w => ∫ y, 𝐞 (-(y * w)) • H y - have hRL : Tendsto A (Filter.cocompact ℝ) (𝓝 0) := Real.tendsto_integral_exp_smul_cocompact H - have hw : Tendsto (fun N : ℕ => (N : ℝ) + 1 / 2) atTop atTop := - tendsto_natCast_atTop_atTop.atTop_add tendsto_const_nhds - have h1 : Tendsto (fun N : ℕ => A ((N : ℝ) + 1 / 2)) atTop (𝓝 0) := - hRL.comp (hw.mono_right atTop_le_cocompact) - have h2 : Tendsto (fun N : ℕ => A (-((N : ℝ) + 1 / 2))) atTop (𝓝 0) := - hRL.comp ((tendsto_neg_atTop_atBot.comp hw).mono_right atBot_le_cocompact) - have hchar : ∀ w, Integrable fun y => 𝐞 (-(y * w)) • H y := fun w => - hH.norm.mono' ((by fun_prop : Continuous fun y : ℝ => 𝐞 (-(y * w))).aestronglyMeasurable.smul - hH.aestronglyMeasurable) (Filter.Eventually.of_forall fun y => by rw [Circle.norm_smul]) - have key : ∀ N : ℕ, ∫ y, H y * (Real.sin ((2 * N + 1) * π * (x - y)) : ℂ) = - Complex.I / 2 * (Complex.exp (-(↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I)) * - A (-((N : ℝ) + 1 / 2)) - - Complex.exp (↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I) * A ((N : ℝ) + 1 / 2)) := by - intro N - simp only [A] - rw [← integral_const_mul, ← integral_const_mul, ← integral_sub - ((hchar _).const_mul _) ((hchar _).const_mul _), ← integral_const_mul] - congr 1; funext y - rw [Complex.ofReal_sin, Complex.sin, Circle.smul_def, Circle.smul_def, smul_eq_mul, smul_eq_mul, - Real.fourierChar_apply, Real.fourierChar_apply] - have e1 : Complex.exp (-↑((2 * N + 1) * π * (x - y)) * Complex.I) = - Complex.exp (-(↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I)) * - Complex.exp (↑(2 * π * -(y * -((N : ℝ) + 1 / 2))) * Complex.I) := by - rw [← Complex.exp_add]; congr 1; push_cast; ring - have e2 : Complex.exp (↑((2 * N + 1) * π * (x - y)) * Complex.I) = - Complex.exp (↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I) * - Complex.exp (↑(2 * π * -(y * ((N : ℝ) + 1 / 2))) * Complex.I) := by - rw [← Complex.exp_add]; congr 1; push_cast; ring - rw [e1, e2] - ring - simp_rw [key] - refine squeeze_zero_norm (fun N => ?_) ((h2.norm.add h1.norm).trans (by simp)) - have ha : ‖Complex.exp (-(↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I))‖ = 1 := by - rw [show -(↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I) = - ↑(-(2 * π * ((N : ℝ) + 1 / 2) * x)) * Complex.I by push_cast; ring, - Complex.norm_exp_ofReal_mul_I] - have hb : ‖Complex.exp (↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I)‖ = 1 := - Complex.norm_exp_ofReal_mul_I _ - have hI : ‖Complex.I / 2‖ ≤ 1 := by simp; norm_num - rw [norm_mul] - refine (mul_le_of_le_one_left (norm_nonneg _) hI).trans ?_ - refine (norm_sub_le _ _).trans (le_of_eq ?_) - rw [norm_mul, norm_mul, ha, hb, one_mul, one_mul] - /-- **Carleson's theorem** (1966): for a `1`-periodic `f : ℝ → ℂ` that is square integrable on a period (`MemLp f 2` on `(0,1]`), the symmetric partial sums `∑_{|k|≤N} f̂(k) e^{2πikx}` of its Fourier diff --git a/LeanPool/CarlesonLT/Auto/FourierKernels.lean b/LeanPool/CarlesonLT/Auto/FourierKernels.lean new file mode 100644 index 0000000000..ac87e76c0a --- /dev/null +++ b/LeanPool/CarlesonLT/Auto/FourierKernels.lean @@ -0,0 +1,310 @@ +/- +Copyright (c) 2026 Joris Roos. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Joris Roos +-/ +module + +/- Proofs generated by Claude under Joris Roos’s supervision; adapted for Lean Pool. +Lean Pool changes: extracted supporting lemmas from ClassicalCarleson.lean. -/ + +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier +public import Mathlib.Analysis.Fourier.RiemannLebesgueLemma +public import Mathlib.Analysis.Fourier.AddCircleMulti +public import Mathlib.Analysis.Normed.Lp.SmoothApprox +public import Mathlib.Analysis.Real.Pi.Bounds +import Mathlib.Analysis.SpecialFunctions.Integrals.Basic +import Mathlib.Analysis.SpecialFunctions.JapaneseBracket +meta import Mathlib.Tactic.FunProp +meta import Mathlib.Tactic.Linarith +meta import Mathlib.Tactic.NormNum +meta import Mathlib.Tactic.Positivity +meta import Mathlib.Tactic.Push +meta import Mathlib.Tactic.Ring +meta import Mathlib.Tactic.SplitIfs + +/-! # Real and periodic Fourier kernels -/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Real Complex Filter +open scoped InnerProductSpace NNReal ENNReal SchwartzMap ComplexConjugate FourierTransform Topology + +namespace CarlesonLT.Auto + +/-! ## Step 2: the Dirichlet kernel of the real line -/ + +/-- The kernel `D_R(z) = sin(2πRz)/(πz)` (with `D_R(0) = 2R`) of the partial Fourier integrals +`∫_{-R}^{R} f̂(ξ) e^{2πixξ} dξ = ∫ f(y) D_R(x − y) dy`. -/ +def dirichletKernel (R z : ℝ) : ℂ := + if z = 0 then ((2 * R : ℝ) : ℂ) else ((Real.sin (2 * π * R * z) / (π * z) : ℝ) : ℂ) + +/-- The partial Fourier integral `S_R f(x) = ∫ f(y) D_R(x − y) dy`. -/ +def partialFourierIntegral (f : ℝ → ℂ) (R x : ℝ) : ℂ := ∫ y, f y * dirichletKernel R (x - y) + +/-! ## Step 3: the partial Fourier integrals of Schwartz functions -/ + +/-- The frequency cut-off integral `J(N) = ∫_{ξ > N} 𝓕g(ξ) e^{2πixξ} dξ`. -/ +def cutoffIntegral (g : ℝ → ℂ) (x N : ℝ) : ℂ := + ∫ ξ, (Set.Ioi N).indicator (fun ξ => 𝐞 (ξ * x) • 𝓕 g ξ) ξ + +theorem integrable_fourier_schwartz (g : 𝓢(ℝ, ℂ)) : Integrable (𝓕 (g : ℝ → ℂ)) := by + rw [← SchwartzMap.fourier_coe]; exact (𝓕 g).integrable + +theorem integrable_char_fourier (g : 𝓢(ℝ, ℂ)) (x : ℝ) : + Integrable fun ξ => 𝐞 (ξ * x) • 𝓕 (g : ℝ → ℂ) ξ := by + refine (integrable_fourier_schwartz g).norm.mono' ?_ (Filter.Eventually.of_forall fun ξ => ?_) + · exact ((Real.continuous_fourierChar.comp (continuous_id.mul continuous_const)).smul + (SchwartzMap.fourier_coe g ▸ (𝓕 g).continuous)).aestronglyMeasurable + · rw [Circle.norm_smul] + +/-! ## Step 4: the partial Fourier integrals of `L²` functions -/ + +theorem norm_dirichletKernel_le {R : ℝ} (hR : 0 ≤ R) (z : ℝ) : + ‖dirichletKernel R z‖ ≤ (4 * R + 2) * (1 + |z|)⁻¹ := by + have hz1 : 0 < 1 + |z| := by positivity + rw [← div_eq_mul_inv, le_div_iff₀ hz1] + unfold dirichletKernel + split_ifs with hz + · subst hz; simp [abs_of_nonneg hR]; linarith + · rw [Complex.norm_real, Real.norm_eq_abs, abs_div, abs_mul, abs_of_pos Real.pi_pos] + have hzp : 0 < |z| := abs_pos.mpr hz + rw [div_mul_eq_mul_div, div_le_iff₀ (by positivity)] + rcases le_or_gt |z| 1 with h1 | h1 + · have hs : |Real.sin (2 * π * R * z)| ≤ 2 * π * R * |z| := by + have := Real.abs_sin_le_abs (x := 2 * π * R * z) + rwa [abs_mul, abs_of_nonneg (by positivity : (0 : ℝ) ≤ 2 * π * R)] at this + calc |Real.sin (2 * π * R * z)| * (1 + |z|) ≤ (2 * π * R * |z|) * 2 := + mul_le_mul hs (by linarith) (by positivity) (by positivity) + _ ≤ (4 * R + 2) * (π * |z|) := by nlinarith [Real.pi_pos, abs_nonneg z] + · have hs := Real.abs_sin_le_one (2 * π * R * z) + calc |Real.sin (2 * π * R * z)| * (1 + |z|) ≤ 1 * (1 + |z|) := + mul_le_mul_of_nonneg_right hs (by positivity) + _ ≤ 2 * (π * |z|) := by nlinarith [Real.pi_gt_three] + _ ≤ (4 * R + 2) * (π * |z|) := by + have : 0 ≤ π * |z| := by positivity + nlinarith + +theorem measurable_dirichletKernel (R : ℝ) : Measurable (dirichletKernel R) := by + unfold dirichletKernel + refine Measurable.ite (measurableSet_singleton 0) measurable_const ?_ + exact Complex.measurable_ofReal.comp (by fun_prop) + +theorem memLp_dirichletKernel {R : ℝ} (hR : 0 ≤ R) (x : ℝ) : + MemLp (fun y => dirichletKernel R (x - y)) 2 volume := by + have hw : MemLp (fun y : ℝ => (1 + |x - y|)⁻¹) 2 volume := by + have hweight : Continuous fun y : ℝ => 1 + |x - y| := + continuous_const.add (continuous_const.sub continuous_id).abs + have hm : AEStronglyMeasurable (fun y : ℝ => (1 + |x - y|)⁻¹) volume := + hweight.measurable.inv.aestronglyMeasurable + rw [memLp_two_iff_integrable_sq hm] + have h := (integrable_one_add_norm (E := ℝ) (μ := volume) (r := 2) (by + norm_num)).comp_sub_left x + refine h.congr (Filter.Eventually.of_forall fun y => ?_) + simp only [Real.norm_eq_abs] + rw [Real.rpow_neg (by positivity), inv_pow, Real.rpow_two] + refine (hw.const_mul (4 * R + 2)).of_le + ((measurable_dirichletKernel R).comp (measurable_const.sub measurable_id)).aestronglyMeasurable + (Filter.Eventually.of_forall fun y => ?_) + rw [Real.norm_eq_abs, abs_mul, abs_of_nonneg (by positivity : (0 : ℝ) ≤ 4 * R + 2), + abs_of_pos (by positivity : (0 : ℝ) < (1 + |x - y|)⁻¹)] + exact norm_dirichletKernel_le hR _ + +theorem integrable_mul_dirichletKernel {f : ℝ → ℂ} (hf : MemLp f 2 volume) {R : ℝ} (hR : 0 ≤ R) + (x : ℝ) : Integrable fun y => f y * dirichletKernel R (x - y) := + hf.integrable_mul (memLp_dirichletKernel hR x) + +theorem partialFourierIntegral_sub {f g : ℝ → ℂ} (hf : MemLp f 2 volume) (hg : MemLp g 2 volume) + {R : ℝ} (hR : 0 ≤ R) (x : ℝ) : + partialFourierIntegral (f - g) R x = partialFourierIntegral f R x - partialFourierIntegral g + R x := by + unfold partialFourierIntegral + rw [← integral_sub (integrable_mul_dirichletKernel hf hR x) (integrable_mul_dirichletKernel hg + hR x)] + congr 1; funext y; simp only [Pi.sub_apply]; ring + +/-- Cauchy–Schwarz for the pairing. -/ +theorem enorm_integral_mul_le {u v : ℝ → ℂ} (hu : MemLp u 2 volume) (hv : MemLp v 2 volume) : + ‖∫ y, u y * v y‖ₑ ≤ eLpNorm u 2 volume * eLpNorm v 2 volume := by + refine (eNorm_integral_le_lintegral_eNorm _).trans ?_ + simp_rw [eNorm_mul] + have h := ENNReal.lintegral_mul_le_Lp_mul_Lq volume Real.HolderConjugate.two_two + hu.aestronglyMeasurable.eNorm hv.aestronglyMeasurable.eNorm + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal (by norm_num) (by norm_num) hu.aestronglyMeasurable, + eLpNorm_eq_lintegral_rpow_eNorm_toReal (by norm_num) (by norm_num) hv.aestronglyMeasurable] + simpa using h + +/-- `S_R f(x)` depends continuously on `f ∈ L²`. -/ +theorem enorm_partialFourierIntegral_sub_le {f g : ℝ → ℂ} (hf : MemLp f 2 volume) + (hg : MemLp g 2 volume) {R : ℝ} (hR : 0 ≤ R) (x : ℝ) : + ‖partialFourierIntegral f R x - partialFourierIntegral g R x‖ₑ ≤ + eLpNorm (f - g) 2 volume * eLpNorm (fun y => dirichletKernel R (x - y)) 2 volume := by + rw [← partialFourierIntegral_sub hf hg hR] + exact enorm_integral_mul_le (hf.sub hg) (memLp_dirichletKernel hR x) + +/-- Smooth compactly supported approximation of `L²` functions, as Schwartz functions. -/ +theorem exists_schwartz_eLpNorm_sub_le {f : ℝ → ℂ} (hf : MemLp f 2 volume) {ε : ℝ} (hε : 0 < ε) : + ∃ g : 𝓢(ℝ, ℂ), eLpNorm (f - (g : ℝ → ℂ)) 2 volume ≤ ENNReal.ofReal ε := by + obtain ⟨g, hg1, hg2, hg3⟩ := hf.exist_eLpNorm_sub_le (by norm_num) (by norm_num) hε + exact ⟨hg1.toSchwartzMap hg2, hg3⟩ + +/-! ## Step 6: the Dirichlet kernel of the circle -/ + +/-- The Fourier coefficients `f̂(k) = ∫_0^1 f(y) e^{-2πiky} dy` of a `1`-periodic function. -/ +def fourierCoeff1 (f : ℝ → ℂ) (k : ℤ) : ℂ := + ∫ y in (0 : ℝ)..1, Complex.exp (-(2 * π * Complex.I * k * y)) * f y + +/-- The symmetric partial sums `S_N f(x) = ∑_{|k| ≤ N} f̂(k) e^{2πikx}` of the Fourier series. -/ +def fourierPartialSum1 (f : ℝ → ℂ) (N : ℕ) (x : ℝ) : ℂ := + ∑ k ∈ Finset.Icc (-(N : ℤ)) N, fourierCoeff1 f k * Complex.exp (2 * π * Complex.I * k * x) + +/-- The Dirichlet kernel `D_N(z) = ∑_{|k| ≤ N} e^{2πikz}`. -/ +def dirichletPer (N : ℕ) (z : ℝ) : ℂ := + ∑ k ∈ Finset.Icc (-(N : ℤ)) N, Complex.exp (2 * π * Complex.I * k * z) + +/-- The correction `φ(z) = 1/sin(πz) − 1/(πz)` (with `φ(0) = 0`). -/ +def corrPhi (z : ℝ) : ℝ := if z = 0 then 0 else 1 / Real.sin (π * z) - 1 / (π * z) + +theorem corr_bound_pos {u : ℝ} (hu : 0 < u) (hu' : u ≤ π / 2) : + 0 ≤ 1 / Real.sin u - 1 / u ∧ 1 / Real.sin u - 1 / u ≤ 1 := by + have hs : 0 < Real.sin u := Real.sin_pos_of_pos_of_lt_pi hu (by linarith [Real.pi_pos]) + have hsu : Real.sin u ≤ u := Real.sin_le hu.le + have hj : 2 / π * u ≤ Real.sin u := Real.mul_le_sin hu.le hu' + have hc : u - u ^ 3 / 6 < Real.sin u := Real.sin_gt_sub_cube hu + have hπ := Real.pi_gt_three + have hπ' := Real.pi_lt_four + rw [div_sub_div _ _ hs.ne' hu.ne'] + constructor + · apply div_nonneg <;> nlinarith + · rw [div_le_one (by positivity)] + have h1 : u * (2 / π * u) ≤ u * Real.sin u := mul_le_mul_of_nonneg_left hj hu.le + have h2 : u ^ 3 / 6 ≤ u * (2 / π * u) := by + rw [show u * (2 / π * u) = u ^ 2 * (2 / π) by ring] + have : u ≤ 12 / π := by + rw [le_div_iff₀ (by positivity)]; nlinarith + have h3 : u / 6 ≤ 2 / π := by + rw [div_le_div_iff₀ (by norm_num) (by positivity)] + rw [le_div_iff₀ (by positivity)] at this; linarith + nlinarith [sq_nonneg u] + nlinarith + +theorem abs_corrPhi_le {z : ℝ} (hz : |z| ≤ 1 / 2) : |corrPhi z| ≤ 1 := by + unfold corrPhi + split_ifs with h0 + · simp + · rcases lt_or_gt_of_ne h0 with hneg | hpos + · have h := corr_bound_pos (u := π * -z) (by nlinarith [Real.pi_pos]) + (by rw [abs_of_neg hneg] at hz; nlinarith [Real.pi_pos]) + have e : 1 / Real.sin (π * z) - 1 / (π * z) = -(1 / Real.sin (π * -z) - 1 / (π * -z)) := by + rw [mul_neg, Real.sin_neg]; ring + rw [e, abs_neg, abs_of_nonneg h.1]; exact h.2 + · have h := corr_bound_pos (u := π * z) (by positivity) + (by rw [abs_of_pos hpos] at hz; nlinarith [Real.pi_pos]) + rw [abs_of_nonneg h.1]; exact h.2 + +/-- `ψ = φ` on `[−1/2, 1/2)` and `−1/(πz)` outside. -/ +def corrPsi (z : ℝ) : ℝ := if z ∈ Set.Ico (-1 / 2 : ℝ) (1 / 2) then corrPhi z else -(1 / (π * z)) + +theorem measurable_corrPsi : Measurable corrPsi := by + unfold corrPsi corrPhi + refine Measurable.ite measurableSet_Ico ?_ (by fun_prop) + exact Measurable.ite (measurableSet_singleton 0) measurable_const (by fun_prop) + +theorem dirichletPer_zero (N : ℕ) : dirichletPer N 0 = 2 * N + 1 := by + unfold dirichletPer + simp only [Complex.ofReal_zero, mul_zero, Complex.exp_zero, Finset.sum_const, Int.card_Icc, + nsmul_eq_mul, mul_one] + rw [show ((N : ℤ) + 1 - -(N : ℤ)) = ((2 * N + 1 : ℕ) : ℤ) by push_cast; ring, Int.toNat_natCast] + push_cast; ring + +/-! ## Step 7: localization -/ + +/-- The window `F_a = 1_{(a−1, a+2]} f`. -/ +def window (f : ℝ → ℂ) (a : ℤ) : ℝ → ℂ := (Set.Ioc ((a : ℝ) - 1) (a + 2)).indicator f + +theorem dirichletPer_sub_one (N : ℕ) (z : ℝ) : dirichletPer N (z - 1) = dirichletPer N z := by + unfold dirichletPer + refine Finset.sum_congr rfl fun k _ => ?_ + have : Complex.exp (2 * π * Complex.I * k * ↑(z - 1)) = + Complex.exp (2 * π * Complex.I * k * z) * Complex.exp (-(k * (2 * π * Complex.I))) := by + rw [← Complex.exp_add]; congr 1; push_cast; ring + rw [this, Complex.exp_neg, Complex.exp_int_mul_two_pi_mul_I, inv_one, mul_one] + +theorem intervalIntegrable_mul_dirichletPer {f : ℝ → ℂ} + (hf : MemLp f 2 (volume.restrict (Set.Ioc 0 1))) (N : ℕ) (x : ℝ) : + IntervalIntegrable (fun y => f y * dirichletPer N (x - y)) volume 0 1 := by + have : IsFiniteMeasure (volume.restrict (Set.Ioc (0 : ℝ) 1)) := ⟨by simp⟩ + have hi : IntervalIntegrable f volume 0 1 := + (intervalIntegrable_iff_integrableOn_Ioc_of_le zero_le_one).mpr (hf.integrable (by norm_num)) + refine hi.mul_continuousOn ?_ + unfold dirichletPer + exact (continuous_finsetSum _ fun k _ => by fun_prop).continuousOn + +/-- `S_N f(x) = ∫_0^1 f(y) D_N(x − y) dy`. -/ +theorem fourierPartialSum1_eq {f : ℝ → ℂ} (hf : MemLp f 2 (volume.restrict (Set.Ioc 0 1))) + (N : ℕ) (x : ℝ) : fourierPartialSum1 f N x = ∫ y in (0 : ℝ)..1, f y * dirichletPer N (x - y) + := by + unfold fourierPartialSum1 fourierCoeff1 dirichletPer + simp_rw [Finset.mul_sum] + have : IsFiniteMeasure (volume.restrict (Set.Ioc (0 : ℝ) 1)) := ⟨by simp⟩ + have hi : IntervalIntegrable f volume 0 1 := + (intervalIntegrable_iff_integrableOn_Ioc_of_le zero_le_one).mpr (hf.integrable (by norm_num)) + rw [intervalIntegral.integral_finsetSum (fun k _ => hi.mul_continuousOn (by fun_prop))] + refine Finset.sum_congr rfl fun k _ => ?_ + rw [← intervalIntegral.integral_mul_const] + congr 1; funext y + rw [mul_comm (Complex.exp _) (f y), mul_assoc, ← Complex.exp_add] + congr 2; push_cast; ring + +/-- Riemann–Lebesgue: `∫ H(y) sin((2N+1)π(x−y)) dy → 0`. -/ +theorem tendsto_integral_mul_sin {H : ℝ → ℂ} (hH : Integrable H) (x : ℝ) : + Tendsto (fun N : ℕ => ∫ y, H y * (Real.sin ((2 * N + 1) * π * (x - y)) : ℂ)) atTop (𝓝 0) := by + set A : ℝ → ℂ := fun w => ∫ y, 𝐞 (-(y * w)) • H y + have hRL : Tendsto A (Filter.cocompact ℝ) (𝓝 0) := Real.tendsto_integral_exp_smul_cocompact H + have hw : Tendsto (fun N : ℕ => (N : ℝ) + 1 / 2) atTop atTop := + tendsto_natCast_atTop_atTop.atTop_add tendsto_const_nhds + have h1 : Tendsto (fun N : ℕ => A ((N : ℝ) + 1 / 2)) atTop (𝓝 0) := + hRL.comp (hw.mono_right atTop_le_cocompact) + have h2 : Tendsto (fun N : ℕ => A (-((N : ℝ) + 1 / 2))) atTop (𝓝 0) := + hRL.comp ((tendsto_neg_atTop_atBot.comp hw).mono_right atBot_le_cocompact) + have hchar : ∀ w, Integrable fun y => 𝐞 (-(y * w)) • H y := fun w => + hH.norm.mono' ((by fun_prop : Continuous fun y : ℝ => 𝐞 (-(y * w))).aestronglyMeasurable.smul + hH.aestronglyMeasurable) (Filter.Eventually.of_forall fun y => by rw [Circle.norm_smul]) + have key : ∀ N : ℕ, ∫ y, H y * (Real.sin ((2 * N + 1) * π * (x - y)) : ℂ) = + Complex.I / 2 * (Complex.exp (-(↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I)) * + A (-((N : ℝ) + 1 / 2)) - + Complex.exp (↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I) * A ((N : ℝ) + 1 / 2)) := by + intro N + simp only [A] + rw [← integral_const_mul, ← integral_const_mul, ← integral_sub + ((hchar _).const_mul _) ((hchar _).const_mul _), ← integral_const_mul] + congr 1; funext y + rw [Complex.ofReal_sin, Complex.sin, Circle.smul_def, Circle.smul_def, smul_eq_mul, smul_eq_mul, + Real.fourierChar_apply, Real.fourierChar_apply] + have e1 : Complex.exp (-↑((2 * N + 1) * π * (x - y)) * Complex.I) = + Complex.exp (-(↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I)) * + Complex.exp (↑(2 * π * -(y * -((N : ℝ) + 1 / 2))) * Complex.I) := by + rw [← Complex.exp_add]; congr 1; push_cast; ring + have e2 : Complex.exp (↑((2 * N + 1) * π * (x - y)) * Complex.I) = + Complex.exp (↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I) * + Complex.exp (↑(2 * π * -(y * ((N : ℝ) + 1 / 2))) * Complex.I) := by + rw [← Complex.exp_add]; congr 1; push_cast; ring + rw [e1, e2] + ring + simp_rw [key] + refine squeeze_zero_norm (fun N => ?_) ((h2.norm.add h1.norm).trans (by simp)) + have ha : ‖Complex.exp (-(↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I))‖ = 1 := by + rw [show -(↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I) = + ↑(-(2 * π * ((N : ℝ) + 1 / 2) * x)) * Complex.I by push_cast; ring, + Complex.norm_exp_ofReal_mul_I] + have hb : ‖Complex.exp (↑(2 * π * ((N : ℝ) + 1 / 2) * x) * Complex.I)‖ = 1 := + Complex.norm_exp_ofReal_mul_I _ + have hI : ‖Complex.I / 2‖ ≤ 1 := by simp; norm_num + rw [norm_mul] + refine (mul_le_of_le_one_left (norm_nonneg _) hI).trans ?_ + refine (norm_sub_le _ _).trans (le_of_eq ?_) + rw [norm_mul, norm_mul, ha, hb, one_mul, one_mul] + +end CarlesonLT.Auto diff --git a/LeanPool/CarlesonLT/Auto/ModelOperator.lean b/LeanPool/CarlesonLT/Auto/ModelOperator.lean index b8c442645b..a2875bf8c1 100644 --- a/LeanPool/CarlesonLT/Auto/ModelOperator.lean +++ b/LeanPool/CarlesonLT/Auto/ModelOperator.lean @@ -5,19 +5,16 @@ Authors: Joris Roos -/ module -/- Proofs generated by Claude under Joris Roos’s supervision; adapted for Lean Pool. -/ +/- Proofs generated by Claude under Joris Roos’s supervision; adapted for Lean Pool. +Lean Pool changes: use direct continuity and interval estimates in the model bounds. -/ -public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier public import Mathlib.Algebra.Order.Ring.Finset public import Mathlib.Algebra.Order.Field.GeomSum public import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension public import Mathlib.Analysis.Calculus.ContDiff.Bounds public import Mathlib.Data.Int.Log -public import Mathlib.Data.List.GetD public import Mathlib.Analysis.Fourier.AddCircleMulti public import Mathlib.Analysis.Fourier.PoissonSummation -public import Mathlib.Analysis.InnerProductSpace.PiL2 -public import Mathlib.MeasureTheory.Integral.Prod public meta import Mathlib.Tactic.Abel public meta import Mathlib.Tactic.ByContra public meta import Mathlib.Tactic.Choose @@ -137,6 +134,16 @@ theorem rhoNN_le_iff (α : Fin n → ℕ) (x : Rn n) (c : ℝ≥0) : rhoNN α x ≤ c ↔ ∀ i, ‖x i‖₊ ^ ((α i : ℝ)⁻¹) ≤ c := by simp [rhoNN, Finset.sup_le_iff] +private theorem rho_le_of_coordinate_bounds (α : Fin n → ℕ) {x : Rn n} {r : ℝ} + (hr : 0 ≤ r) (h : ∀ i, |x i| ^ ((α i : ℝ)⁻¹) ≤ r) : rho α x ≤ r := by + have hNN : rhoNN α x ≤ r.toNNReal := by + rw [rhoNN_le_iff] + intro i + rw [← NNReal.coe_le_coe, Real.coe_toNNReal _ hr] + simpa only [NNReal.coe_rpow, coe_nnNorm, Real.norm_eq_abs] using h i + have hR := NNReal.coe_le_coe.mpr hNN + rwa [Real.coe_toNNReal _ hr] at hR + @[simp] theorem rhoNN_zero (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) : rhoNN α (0 : Rn n) = 0 := by apply le_antisymm _ bot_le @@ -691,7 +698,7 @@ theorem mem_semi_zero_of_fhat_wavePhi_ne_zero (α : Fin n → ℕ) (P : Tile n) rw [abs_lt] at hlt simp only [Pi.zero_apply, Fin.val_zero, Nat.cast_zero, zero_div, add_zero, zero_add] norm_num [b0] at hlt - constructor <;> nlinarith + constructor <;> linarith /-- The `L²` pairing `⟨f, g⟩ = ∫ f gbar`. -/ def pairing (f g : Rn n → ℂ) : ℂ := ∫ x, f x * (starRingEnd ℂ) (g x) @@ -1129,13 +1136,8 @@ theorem norm_iteratedFDeriv_gloc_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α (contDiff_phiHat.of_le (by exact_mod_cast (le_top : (ν : ℕ∞) ≤ ⊤))).contDiffOn have hL := norm_iteratedFDerivWithin_mul_le hf hg hU.uniqueDiffOn hζU (n := l) (by exact_mod_cast hl) - rw [iteratedFDerivWithin_of_isOpen l hU hζU] at hL - have hL' : ‖iteratedFDeriv ℝ l (gloc m a) ζ‖ ≤ ∑ i ∈ Finset.range (l + 1), - (l.choose i : ℝ) * ‖iteratedFDeriv ℝ i (fun η => m (η + a)) ζ‖ * - ‖iteratedFDeriv ℝ (l - i) phiHat ζ‖ := by - refine hL.trans (le_of_eq (Finset.sum_congr rfl fun i _ => ?_)) - rw [iteratedFDerivWithin_of_isOpen i hU hζU, iteratedFDerivWithin_of_isOpen (l - i) hU hζU] - refine hL'.trans ?_ + simp only [iteratedFDerivWithin_of_isOpen _ hU hζU] at hL + refine hL.trans ?_ rw [gBound, Finset.sum_mul] refine Finset.sum_le_sum fun i hi => ?_ have hi' : i ≤ ν := (Nat.lt_succ_iff.mp (Finset.mem_range.mp hi)).trans hl @@ -1417,16 +1419,9 @@ theorem abs_rpow_inv_le_one_add (a : ℕ) (ha : 1 ≤ a) (x : ℝ) : /-- `ρ(z) ≤ 1 + ‖z‖`. -/ theorem rho_le_one_add_norm (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (z : Rn n) : rho α z ≤ 1 + ‖z‖ := by - have h : rhoNN α z ≤ Real.toNNReal (1 + ‖z‖) := by - rw [rhoNN_le_iff] - intro i - rw [← NNReal.coe_le_coe, Real.coe_toNNReal _ (by positivity)] - have h1 := abs_rpow_inv_le_one_add (α i) (hα i) (z i) - have h2 : |z i| ≤ ‖z‖ := by simpa [Real.norm_eq_abs] using PiLp.norm_apply_le z i - simp only [NNReal.coe_rpow, coe_nnNorm, Real.norm_eq_abs] - linarith - have := NNReal.coe_le_coe.mpr h - rwa [Real.coe_toNNReal _ (by positivity)] at this + refine rho_le_of_coordinate_bounds α (by positivity) fun i => ?_ + have hcoord : |z i| ≤ ‖z‖ := by simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le z i + exact (abs_rpow_inv_le_one_add (α i) (hα i) (z i)).trans (add_le_add_right hcoord 1) theorem abs_coord_rpow_le_rho (α : Fin n → ℕ) (z : Rn n) (i : Fin n) : |z i| ^ ((α i : ℝ)⁻¹) ≤ rho α z := by @@ -1496,9 +1491,10 @@ theorem integrable_wgt (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {s : ℝ} push_cast at this exact this rw [Real.one_rpow] at hsub - linarith [abs_coord_rpow_le_rho α z i] + exact hsub.trans (add_le_add_right (abs_coord_rpow_le_rho α z i) 1) + have hexponent : -(α i * q) ≤ 0 := neg_nonpos.mpr (mul_nonneg (le_trans zero_le_one hαi) hq0) calc (1 + rho α z) ^ (-(α i * q)) ≤ ((1 + |z i|) ^ ((α i : ℝ)⁻¹)) ^ (-(α i * q)) := - Real.rpow_le_rpow_of_nonpos (by positivity) h1 (by nlinarith) + Real.rpow_le_rpow_of_nonpos (by positivity) h1 hexponent _ = (1 + ‖WithLp.ofLp z i‖) ^ (-q) := by rw [← Real.rpow_mul (by positivity)] congr 1 @@ -1543,7 +1539,7 @@ theorem one_add_mul_rho_sub_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {l have hu := rho_nonneg α u have hv := rho_nonneg α v have h2 : l * rho α v ≤ l' * rho α v := mul_le_mul_of_nonneg_right hll' hv - nlinarith [mul_le_mul_of_nonneg_left h1 hl, mul_nonneg (mul_nonneg hl hu) (mul_nonneg + linarith [mul_le_mul_of_nonneg_left h1 hl, mul_nonneg (mul_nonneg hl hu) (mul_nonneg (hl.trans hll') hv)] /-- Schwartz functions decay faster than any power of the anisotropic norm. -/ @@ -1559,7 +1555,7 @@ theorem schwartz_rho_decay (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (f : have h2 : (1 + rho α z) ^ M ≤ 2 ^ M * (1 + ‖z‖) ^ M := by rw [← mul_pow] gcongr - linarith [rho_le_one_add_norm α hα z, norm_nonneg z] + linarith only [rho_le_one_add_norm α hα z, norm_nonneg z] rw [Real.rpow_neg (by linarith), Real.rpow_natCast, ← div_eq_mul_inv, le_div_iff₀ (by positivity)] calc ‖f z‖ * (1 + rho α z) ^ M ≤ ‖f z‖ * (2 ^ M * (1 + ‖z‖) ^ M) := by gcongr @@ -1821,17 +1817,13 @@ theorem mem_unitCube_iff (α : Fin n → ℕ) (ℓ : Fin n → ℤ) (w : Rn n) : theorem rho_sub_latticePt_le_one (α : Fin n → ℕ) (ℓ : Fin n → ℤ) {w : Rn n} (hw : w ∈ (⟨0, ℓ⟩ : DCube n).toSet α) : rho α (w - latticePt ℓ) ≤ 1 := by - have h : rhoNN α (w - latticePt ℓ) ≤ 1 := by - rw [rhoNN_le_iff] - intro i - have hi := hw i - simp only [side_zero, one_mul] at hi - apply NNReal.rpow_le_one _ (by positivity) - rw [← NNReal.coe_le_coe] - simp only [coe_nnNorm, PiLp.sub_apply, latticePt_apply, Real.norm_eq_abs, NNReal.coe_one] - rw [abs_le] - constructor <;> linarith [hi.1, hi.2] - simpa [rho] using (NNReal.coe_le_coe.mpr h) + refine rho_le_of_coordinate_bounds α zero_le_one fun i => ?_ + have hi := hw i + simp only [side_zero, one_mul] at hi + rw [PiLp.sub_apply, latticePt_apply] + refine Real.rpow_le_one (abs_nonneg _) ?_ (inv_nonneg.mpr (Nat.cast_nonneg _)) + rw [abs_le] + constructor <;> linarith only [hi.1, hi.2] theorem pairwise_disjoint_unitCube (α : Fin n → ℕ) : Pairwise (Function.onFun Disjoint fun ℓ : Fin n → ℤ => (⟨0, ℓ⟩ : DCube n).toSet α) := by @@ -1949,28 +1941,33 @@ theorem integrable_fhat_of_fourier {f : Rn n → ℂ} (hF : Integrable (FourierT rw [this] exact hF.comp_smul (by positivity) +/-- Continuity of the Fourier phase under continuous substitutions in both variables. -/ +theorem continuous_cexp_inner {X : Type*} [TopologicalSpace X] + {f g : X → Rn n} (hf : Continuous f) (hg : Continuous g) : + Continuous fun x => Complex.exp (Complex.I * (⟪f x, g x⟫_ℝ : ℂ)) := + (continuous_const.mul (Complex.continuous_ofReal.comp (hf.inner hg))).cexp + +/-- Continuity of the negative Fourier phase under continuous substitutions. -/ +theorem continuous_cexp_neg_inner {X : Type*} [TopologicalSpace X] + {f g : X → Rn n} (hf : Continuous f) (hg : Continuous g) : + Continuous fun x => Complex.exp (-(Complex.I * (⟪f x, g x⟫_ℝ : ℂ))) := + (continuous_const.mul (Complex.continuous_ofReal.comp (hf.inner hg))).neg.cexp + theorem norm_cexp_I_mul (r : ℝ) : ‖Complex.exp (Complex.I * (r : ℂ))‖ = 1 := by rw [mul_comm, Complex.norm_exp_ofReal_mul_I] theorem norm_cexp_neg_I_mul (r : ℝ) : ‖Complex.exp (-(Complex.I * (r : ℂ)))‖ = 1 := by rw [← mul_neg, ← Complex.ofReal_neg, norm_cexp_I_mul] -/-- Fourier inversion in the paper's normalization: -`f(x) = (2π)^{-n} ∫ f̂(ξ) e^{i x ξ} dξ` for continuous integrable `f` with integrable `f̂`. -/ -theorem fhat_inversion {f : Rn n → ℂ} (hc : Continuous f) (hf : Integrable f) - (hF : Integrable (fhat f)) (x : Rn n) : - f x = (((2 * π) ^ n)⁻¹ : ℂ) * ∫ ξ, fhat f ξ * Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) := by - have hinv := hc.fourierInv_fourier_eq hf (integrable_fourier_of_fhat hF) - have hx := congrFun hinv x - rw [Real.fourierInv_eq] at hx - rw [← hx] - set G : Rn n → ℂ := fun ξ => fhat f ξ * Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) - have hG : ∀ w : Rn n, Real.fourierChar ⟪w, x⟫_ℝ • FourierTransform.fourier f w = - G ((2 * π) • w) := by - intro w - rw [fourier_eq_fhat, Circle.smul_def, Real.fourierChar_apply] +private theorem fourierInv_rescale (g : Rn n → ℂ) (x : Rn n) : + FourierTransformInv.fourierInv (fun v => g ((2 * π) • v)) x = + (((2 * π) ^ n)⁻¹ : ℂ) * ∫ ξ, g ξ * Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) := by + rw [Real.fourierInv_eq] + let G : Rn n → ℂ := fun ξ => g ξ * Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) + have hG (v : Rn n) : Real.fourierChar ⟪v, x⟫_ℝ • g ((2 * π) • v) = G ((2 * π) • v) := by + rw [Circle.smul_def, Real.fourierChar_apply] simp only [G, inner_smul_right, smul_eq_mul] - rw [mul_comm (Complex.exp _) (fhat f _), real_inner_comm x w] + rw [mul_comm (Complex.exp _), real_inner_comm v x] congr 1 push_cast ring_nf @@ -1980,6 +1977,17 @@ theorem fhat_inversion {f : Rn n → ℂ} (hc : Continuous f) (hf : Integrable f push_cast ring +/-- Fourier inversion in the paper's normalization: +`f(x) = (2π)^{-n} ∫ f̂(ξ) e^{i x ξ} dξ` for continuous integrable `f` with integrable `f̂`. -/ +theorem fhat_inversion {f : Rn n → ℂ} (hc : Continuous f) (hf : Integrable f) + (hF : Integrable (fhat f)) (x : Rn n) : + f x = (((2 * π) ^ n)⁻¹ : ℂ) * ∫ ξ, fhat f ξ * Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) := by + have hinv := hc.fourierInv_fourier_eq hf (integrable_fourier_of_fhat hF) + rw [← congrFun hinv x] + rw [show FourierTransform.fourier f = fun v => fhat f ((2 * π) • v) from + funext (fourier_eq_fhat f)] + exact fourierInv_rescale (fhat f) x + /-- Parseval's identity in the paper's normalization: `⟨g, h⟩ = (2π)^{-n} ∫ ĝ(ξ) conj(hhat(ξ)) dξ` for integrable `g` and continuous integrable `h` with integrable `hhat`. -/ @@ -2010,8 +2018,7 @@ theorem pairing_eq_fhat {g h : Rn n → ℂ} (hg : Integrable g) (hc : Continuou refine hprod.mono ?_ (Filter.Eventually.of_forall fun z => ?_) · exact hg.aestronglyMeasurable.comp_fst.mul ((RCLike.continuous_conj.comp_aestronglyMeasurable hH.aestronglyMeasurable).comp_snd.mul - (by fun_prop : Continuous fun a : Rn n × Rn n => - Complex.exp (-(Complex.I * (⟪a.1, a.2⟫_ℝ : ℂ)))).aestronglyMeasurable) + (continuous_cexp_neg_inner continuous_fst continuous_snd).aestronglyMeasurable) · simp only [Function.uncurry, K, norm_mul, norm_cexp_neg_I_mul, mul_one] rfl calc ∫ x, g x * ((((2 * π) ^ n)⁻¹ : ℂ) * ∫ ξ, (starRingEnd ℂ) (fhat h ξ) * @@ -2063,6 +2070,17 @@ theorem continuous_phiHat : Continuous (phiHat : Rn n → ℂ) := contDiff_phiHa theorem integrable_phiHat : Integrable (phiHat : Rn n → ℂ) := continuous_phiHat.integrable_of_hasCompactSupport hasCompactSupport_phiHat +theorem continuous_fhat_wavePhi (α : Fin n → ℕ) (P : Tile n) : + Continuous (fhat (wavePhi α P)) := by + have h : fhat (wavePhi α P) = fun ξ => ((((2 : ℝ) ^ P.k) ^ ((absA α : ℝ) / 2) : ℝ) : ℂ) * + Complex.exp (-(Complex.I * (⟪P.cI α, ξ - P.cω0 α⟫_ℝ : ℂ))) * + phiHat (dil α ((2 : ℝ) ^ P.k) (ξ - P.cω0 α)) := funext (fhat_wavePhi α P) + rw [h] + have hsub : Continuous fun ξ : Rn n => ξ - P.cω0 α := continuous_id.sub continuous_const + have hphase := continuous_cexp_neg_inner (continuous_const (y := P.cI α)) hsub + have hbump := continuous_phiHat.comp ((continuous_dil α ((2 : ℝ) ^ P.k)).comp hsub) + exact (continuous_const.mul hphase).mul hbump + theorem integrable_fhat_wavePhi (α : Fin n → ℕ) (P : Tile n) : Integrable (fhat (wavePhi α P)) := by set t : ℝ := (2 : ℝ) ^ P.k have ht : 0 < t := by positivity @@ -2072,13 +2090,8 @@ theorem integrable_fhat_wavePhi (α : Fin n → ℕ) (P : Tile n) : Integrable ( exact integrable_phiHat.smul_measure ENNReal.ofReal_ne_top exact h0.comp_sub_right (P.cω0 α) have h2 := h1.const_mul (((t ^ ((absA α : ℝ) / 2) : ℝ) : ℂ)) - have hcont : Continuous (fhat (wavePhi α P)) := by - have : fhat (wavePhi α P) = fun ξ => (((t ^ ((absA α : ℝ) / 2) : ℝ) : ℂ)) * - Complex.exp (-(Complex.I * (⟪P.cI α, ξ - P.cω0 α⟫_ℝ : ℂ))) * - phiHat (dil α t (ξ - P.cω0 α)) := funext (fhat_wavePhi α P) - rw [this] - fun_prop - refine h2.norm.mono' hcont.aestronglyMeasurable (Filter.Eventually.of_forall fun ξ => ?_) + refine h2.norm.mono' (continuous_fhat_wavePhi α P).aestronglyMeasurable + (Filter.Eventually.of_forall fun ξ => ?_) rw [fhat_wavePhi, norm_mul, norm_mul, norm_cexp_neg_I_mul, mul_one, norm_mul] /-- The box `S_P = {ξ : |ξᵢ - c(ω_{P(0)})ᵢ| < 2^{-k_P αᵢ} b₀/2}` containing the support of @@ -2164,7 +2177,7 @@ theorem exists_far_of_mem_semi (α : Fin n → ℕ) {P : Tile n} {r : Fin n → simp only [Tile.cω0, PiLp.toLp_apply] rw [le_abs] left - nlinarith + linarith theorem side_rpow_inv (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (k : ℤ) (i : Fin n) : side α k i ^ ((α i : ℝ)⁻¹) = (2 : ℝ) ^ k := by @@ -2192,7 +2205,7 @@ theorem rho_sub_bounds_of_mem_suppBox (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ rw [abs_sub_comm, le_abs] left norm_num [b0] at hξj - nlinarith + linarith have hαj : (1 : ℝ) ≤ α j := by exact_mod_cast hα j have hq0 : 0 ≤ (α j : ℝ)⁻¹ := by positivity have hq1 : (α j : ℝ)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hαj @@ -2205,28 +2218,24 @@ theorem rho_sub_bounds_of_mem_suppBox (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ rw [← Real.mul_rpow (by norm_num) hs.le]; ring_nf _ ≤ |(ξ - N) j| ^ ((α j : ℝ)⁻¹) := Real.rpow_le_rpow (by positivity) h1 hq0 _ ≤ rho α (ξ - N) := abs_coord_rpow_le_rho α _ j - · have h : rhoNN α (ξ - N) ≤ Real.toNNReal (((2 : ℝ) ^ P.k)⁻¹) := by - rw [rhoNN_le_iff] - intro i - rw [← NNReal.coe_le_coe, Real.coe_toNNReal _ (by positivity)] - simp only [NNReal.coe_rpow, coe_nnNorm, Real.norm_eq_abs] - have hs := side_pos α (-P.k) i - have hNi := hN i - have hξi := hξ i - simp only [Tile.cω0, PiLp.toLp_apply] at hξi - rw [abs_lt] at hξi - have hri : ((r i : ℕ) : ℝ) ≤ 1 := by exact_mod_cast Nat.lt_succ_iff.mp (r i).2 - have hri0 : (0 : ℝ) ≤ ((r i : ℕ) : ℝ) := Nat.cast_nonneg _ - have h1 : |(ξ - N) i| ≤ side α (-P.k) i := by - simp only [PiLp.sub_apply] - rw [abs_le] - norm_num [b0] at hξi - constructor <;> nlinarith [hNi.1, hNi.2] - calc |(ξ - N) i| ^ ((α i : ℝ)⁻¹) ≤ side α (-P.k) i ^ ((α i : ℝ)⁻¹) := - Real.rpow_le_rpow (abs_nonneg _) h1 (by positivity) - _ = ((2 : ℝ) ^ P.k)⁻¹ := by rw [side_rpow_inv α hα, hkinv] - have := NNReal.coe_le_coe.mpr h - rwa [Real.coe_toNNReal _ (by positivity)] at this + · refine rho_le_of_coordinate_bounds α (by positivity) fun i => ?_ + have hs := side_pos α (-P.k) i + have hNi := hN i + have hξi := hξ i + simp only [Tile.cω0, PiLp.toLp_apply] at hξi + rw [abs_lt] at hξi + have hri : ((r i : ℕ) : ℝ) ≤ 1 := by exact_mod_cast Nat.lt_succ_iff.mp (r i).2 + have hri0 : (0 : ℝ) ≤ ((r i : ℕ) : ℝ) := Nat.cast_nonneg _ + have h1 : |(ξ - N) i| ≤ side α (-P.k) i := by + simp only [PiLp.sub_apply] + rw [abs_le] + norm_num [b0] at hξi + have hleft := mul_nonneg hs.le hri0 + have hright := mul_le_mul_of_nonneg_left hri hs.le + constructor <;> linarith only [hNi.1, hNi.2, hξi.1, hξi.2, hs, hleft, hright] + calc |(ξ - N) i| ^ ((α i : ℝ)⁻¹) ≤ side α (-P.k) i ^ ((α i : ℝ)⁻¹) := + Real.rpow_le_rpow (abs_nonneg _) h1 (by positivity) + _ = ((2 : ℝ) ^ P.k)⁻¹ := by rw [side_rpow_inv α hα, hkinv] /-- At most four dyadic scales `2^{-k}` lie in `[t, 5t]`. -/ theorem scales_subset_Icc {t : ℝ} (ht : 0 < t) {k : ℤ} (h1 : ((2 : ℝ) ^ k)⁻¹ / 5 ≤ t) @@ -2275,7 +2284,7 @@ theorem u_eq_freqPos_of_mem_suppBox (α : Fin n → ℕ) {P : Tile n} {ξ : Rn n simp only [freqPos] symm rw [Int.floor_eq_iff, le_div_iff₀ hs, div_lt_iff₀ hs] - constructor <;> nlinarith + constructor <;> linarith /-- The half-integer shift `(1/2, …, 1/2)`. -/ def halfVec (n : ℕ) : Rn n := WithLp.toLp 2 (fun _ => (1 / 2 : ℝ)) @@ -2540,8 +2549,7 @@ theorem continuous_wavePsi_joint (α : Fin n → ℕ) {ν : ℕ} {m : Rn n → · refine Filter.Eventually.of_forall fun p => ?_ exact ((hm.measurable.comp (measurable_id.sub_const _)).aestronglyMeasurable.mul (integrable_fhat_wavePhi α P).aestronglyMeasurable).mul - (by fun_prop : Continuous fun ξ : Rn n => - Complex.exp (Complex.I * (⟪p.2, ξ⟫_ℝ : ℂ))).aestronglyMeasurable + (continuous_cexp_inner (continuous_const (y := p.2)) continuous_id).aestronglyMeasurable · refine Filter.Eventually.of_forall fun p => Filter.Eventually.of_forall fun ξ => ?_ rw [norm_mul, norm_mul, norm_cexp_I_mul, mul_one] exact mul_le_mul_of_nonneg_right (hmb _) (norm_nonneg _) @@ -2554,9 +2562,13 @@ theorem continuous_wavePsi_joint (α : Fin n → ℕ) {ν : ℕ} {m : Rn n → have hne : ξ - p₀.1 ≠ 0 := sub_ne_zero.mpr hξ have h1 : ContinuousAt m (ξ - p₀.1) := hm.contDiffOn.continuousOn.continuousAt (isOpen_compl_singleton.mem_nhds hne) - have h2 : ContinuousAt (fun p : Rn n × Rn n => ξ - p.1) p₀ := by fun_prop + have h2 : ContinuousAt (fun p : Rn n × Rn n => ξ - p.1) p₀ := + continuousAt_const.sub continuous_fst.continuousAt exact ContinuousAt.comp (g := m) h1 h2 - exact (hm'.mul continuousAt_const).mul (by fun_prop) + have hexp : Continuous fun p : Rn n × Rn n => + Complex.exp (Complex.I * (⟪p.2, ξ⟫_ℝ : ℂ)) := + continuous_cexp_inner continuous_snd continuous_const + exact (hm'.mul continuousAt_const).mul hexp.continuousAt instance : Countable (Tile n) := (tileEquiv (n := n)).injective.countable @@ -2578,8 +2590,10 @@ theorem Tile.semiHO_subset_ω (α : Fin n → ℕ) (P : Tile n) (r : Fin n → F have hr1 : (r i : ℝ) ≤ 1 := by exact_mod_cast Nat.le_of_lt_succ (r i).isLt simp only [Tile.ω] constructor - · nlinarith [(hξ i).1] - · nlinarith [(hξ i).2] + · have hhalf : 0 ≤ (r i : ℝ) / 2 := div_nonneg hr0 (by norm_num) + exact (mul_le_mul_of_nonneg_left (le_add_of_nonneg_right hhalf) hs.le).trans (hξ i).1 + · have hhalf : ((r i : ℝ) + 1) / 2 ≤ 1 := by linarith only [hr1] + exact (hξ i).2.trans_le (mul_le_mul_of_nonneg_left (add_le_add le_rfl hhalf) hs.le) theorem measurableSet_semiHO (α : Fin n → ℕ) (P : Tile n) (r : Fin n → Fin 2) : MeasurableSet (P.semiHO α r) := by @@ -2776,6 +2790,12 @@ theorem measurable_Tlin (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin exact measurable_tsum_tile (fun P => measurable_TlinTerm α r hm hN g P) fun x => (hsb m hm g (SchwartzMap.integrable g) (integrable_fhat_schwartz g) (N x) x).1 +private theorem conj_div_norm_mul (z : ℂ) (hz : z ≠ 0) : + (star z / (‖z‖ : ℂ)) * z = (‖z‖ : ℂ) := by + have hnorm : (‖z‖ : ℂ) ≠ 0 := by exact_mod_cast (norm_ne_zero_iff.mpr hz) + have hconj : star z * z = (‖z‖ : ℂ) ^ 2 := Complex.conj_mul' z + rw [div_mul_eq_mul_div₀, hconj, pow_two, mul_div_cancel_right₀ _ hnorm] + /-- The duality step (paper, §4, texline~291–299): the key estimate gives `∫_E |T g| ≤ K (|E|/λ + λ ‖g‖₂²)` for every `λ > 0`. -/ theorem integral_norm_Tlin_le_aux (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n → Fin 2} @@ -2803,17 +2823,16 @@ theorem integral_norm_Tlin_le_aux (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) simp only [σ] split_ifs with h · simp [h] - · have hne : (‖T x‖ : ℂ) ≠ 0 := by exact_mod_cast norm_ne_zero_iff.mpr h - rw [mul_div_assoc', RCLike.mul_conj] - field_simp - norm_cast + · rw [mul_comm] + exact conj_div_norm_mul (T x) h have hsum := integral_Tlin_mul_eq α hα hr hm g hN hE hEfin hσ hσb -- the key estimate applied to `λ g` have hkey : ∀ S : Finset (Tile n), ∑ P ∈ S, ‖pairing (g : Rn n → ℂ) (wavePhi α P)‖ * ‖dualTerm α m r N E σ P‖ ≤ K * ((volume E).toReal / lam + lam * (eLpNorm (g : Rn n → ℂ) 2).toReal ^ 2) := by intro S - have hgL2 : MemLp ((lam : ℂ) • (g : Rn n → ℂ)) 2 := ((g.memLp 2).const_smul _) + have hgL2 : MemLp ((lam : ℂ) • (g : Rn n → ℂ)) 2 volume := + (g.memLp 2 volume).const_smul (lam : ℂ) have h := hK _ hgL2 N hN E hE hEfin σ hσ hσb S have hnorm : (eLpNorm ((lam : ℂ) • (g : Rn n → ℂ)) 2).toReal = lam * (eLpNorm (g : Rn n → ℂ) 2).toReal := by @@ -2952,7 +2971,7 @@ theorem DCube.center_mem (α : Fin n → ℕ) (Q : DCube n) : Q.center α ∈ Q. intro i have hs := side_pos α Q.k i simp only [DCube.center, PiLp.toLp_apply] - constructor <;> nlinarith + constructor <;> linarith theorem DCube.eq_of_mem_of_k_eq (α : Fin n → ℕ) {Q Q' : DCube n} (hk : Q.k = Q'.k) {x : Rn n} (hx : x ∈ Q.toSet α) (hx' : x ∈ Q'.toSet α) : Q = Q' := by @@ -3245,10 +3264,13 @@ theorem exists_mem_enl (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (P : Tile have hsj : (2 : ℝ) ^ j ≤ side α (j : ℤ) i := by unfold side rw [← zpow_natCast] - exact zpow_le_zpow_right₀ (by norm_num) (by have := hα i; nlinarith) + have ha : (1 : ℤ) ≤ α i := by exact_mod_cast hα i + exact zpow_le_zpow_right₀ (by norm_num) + (by simpa only [mul_one] using mul_le_mul_of_nonneg_left ha (Int.natCast_nonneg j)) rw [side_add, lt_div_iff₀ (by norm_num)] rw [div_lt_iff₀ hs] at hj - nlinarith + rw [mul_comm _ (2 : ℝ), mul_comm (side α P.k i)] + exact hj.trans_le (mul_le_mul_of_nonneg_right hsj hs.le) choose J hJ using this refine ⟨Finset.univ.sup J, fun i => (hJ i).trans_le ?_⟩ gcongr @@ -3361,7 +3383,7 @@ theorem abs_sub_cI_le_of_mem_I (α : Fin n → ℕ) (P : Tile n) {y : Rn n} (hy simp only [Tile.I] at h rw [abs_le] simp only [Tile.cI, PiLp.toLp_apply] - constructor <;> nlinarith [h.1, h.2.le] + constructor <;> linarith [h.1, h.2.le] theorem Tile.cI_mem_enl (α : Fin n → ℕ) (P : Tile n) (j : ℕ) : P.cI α ∈ P.enl α j := by intro i @@ -3429,7 +3451,8 @@ theorem sum_vol_le_of_scale (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {ν : have := hα i calc (4 : ℝ) = 2 ^ (2 : ℤ) := by norm_num _ ≤ 2 ^ ((2 : ℤ) * (α i : ℤ)) := zpow_le_zpow_right₀ (by norm_num) (by omega) - nlinarith [side_pos α ((g P).k + j) i] + rw [mul_comm (4 : ℝ)] + exact mul_le_mul_of_nonneg_left h4 (side_pos α ((g P).k + j) i).le have t1 := abs_sub_le (y i) (z.1 i) ((g P).cI α i) have t2 := abs_sub_le (y i) (P.cI α i) (z.1 i) rw [abs_sub_comm (P.cI α i)] at t2 @@ -3696,15 +3719,15 @@ theorem finite_tops_above_k (α : Fin n → ℕ) (P : Tile n) (k : ℤ) : simp only [Tile.I, hk, DCube.center, PiLp.toLp_apply] at hc simp only [a, b, Tile.cI, PiLp.toLp_apply, Set.mem_ofPred_eq] constructor - · rw [sub_le_iff_le_add, div_le_iff₀ hs]; nlinarith [hc.2] - · rw [le_div_iff₀ hs]; nlinarith [hc.1] + · rw [sub_le_iff_le_add, div_le_iff₀ hs]; linarith [hc.2] + · rw [le_div_iff₀ hs]; linarith [hc.1] · have hc := hω i have hs := side_pos α (-k) i simp only [Tile.ω, Tile.cω, PiLp.toLp_apply, hk] at hc simp only [a', b', Set.mem_ofPred_eq] constructor - · rw [sub_le_iff_le_add, div_le_iff₀ hs]; nlinarith [hc.1] - · rw [le_div_iff₀ hs]; nlinarith [hc.2] + · rw [sub_le_iff_le_add, div_le_iff₀ hs]; linarith [hc.1] + · rw [le_div_iff₀ hs]; linarith [hc.2] /-- For a fixed tile `P` and `V`, only finitely many tiles `P' ≥ P` have `|I_{P'}| ≤ V`. -/ theorem finite_tops_above (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n) (P : Tile n) @@ -3770,7 +3793,7 @@ theorem Tile.semiHO0_subset (α : Fin n → ℕ) (P : Tile n) : P.semiHO0 α ⊆ have hs := side_pos α (-P.k) i refine ⟨(hξ i).1, (hξ i).2.trans ?_⟩ simp only [Tile.ω] - nlinarith + linarith /-- The separation property (6.1) (paper, texline~482): if `r_{i₀} = 1`, then `ξ_{i₀} < η_{i₀}` for `ξ` in the (half-open) lower semi-tile and `η ∈ ω_{P(r)}`. -/ @@ -3814,7 +3837,7 @@ theorem energyCand_finite (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 refine ⟨Set.mem_biUnion (hTs hP) ⟨htree P hP, ?_⟩, by simpa using hTs⟩ simp only [V] rw [le_div_iff₀ (by positivity)] - nlinarith + linarith theorem energy_le_of_energyCand_eq_empty (α : Fin n → ℕ) (r : Fin n → Fin 2) (f : Rn n → ℂ) {lam : ℝ} (hlam : 0 < lam) {s : Finset (Tile n)} (h : energyCand α r f lam s = ∅) : @@ -3889,6 +3912,14 @@ theorem side_neg_eq_mul (α : Fin n → ℕ) {k k' : ℤ} (h : k' < k) (i : Fin rw [Int.toNat_of_nonneg this] ring +private theorem scaled_integer_bounds {s : ℝ} (hs : 0 ≤ s) {a m b : ℤ} {x : ℝ} + (hx : s * (m : ℝ) ≤ x ∧ x < s * ((m : ℝ) + 1)) + (h : s * (a : ℝ) ≤ x ∧ x < s * (b : ℝ)) : a ≤ m ∧ m + 1 ≤ b := by + have ha := lt_of_mul_lt_mul_left (h.1.trans_lt hx.2) hs + have hb := lt_of_mul_lt_mul_left (hx.1.trans_lt h.2) hs + exact ⟨Int.lt_add_one_iff.mp (by exact_mod_cast ha), + Int.add_one_le_iff.mpr (by exact_mod_cast hb)⟩ + /-- Grid property for general half-open semi-tiles: a strictly finer frequency cube meeting `ω_{P'(r)}` is contained in it. -/ theorem ω_subset_semiHO (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {P P' : Tile n} (hk : P'.k < P.k) @@ -3914,22 +3945,12 @@ theorem ω_subset_semiHO (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {P P' : simp only [B]; rw [hrv]; push_cast; rw [pow_succ]; ring have h2' : s * (A : ℝ) ≤ ξ i ∧ ξ i < s * (B : ℝ) := by rw [← eA, ← eB]; exact h2 - have hAu : A ≤ P.u i := by - have : (A : ℝ) < P.u i + 1 := by - have : s * (A : ℝ) < s * (P.u i + 1) := by linarith [h2'.1, h1.2] - exact lt_of_mul_lt_mul_left this hs0.le - exact Int.lt_add_one_iff.mp (by exact_mod_cast this) - have huB : P.u i + 1 ≤ B := by - have : (P.u i : ℝ) < B := by - have : s * (P.u i : ℝ) < s * B := by linarith [h1.1, h2'.2] - exact lt_of_mul_lt_mul_left this hs0.le - exact Int.add_one_le_iff.mpr (by exact_mod_cast this) + obtain ⟨hAu, huB⟩ := scaled_integer_bounds hs0.le h1 h2' have hAu' : (A : ℝ) ≤ P.u i := by exact_mod_cast hAu have huB' : (P.u i : ℝ) + 1 ≤ B := by exact_mod_cast huB rw [eA, eB] - constructor - · nlinarith [h3.1] - · nlinarith [h3.2] + exact ⟨(mul_le_mul_of_nonneg_left hAu' hs0.le).trans h3.1, + h3.2.trans_le (mul_le_mul_of_nonneg_left huB' hs0.le)⟩ /-- Grid property: a strictly finer frequency cube meeting the half-open lower semi-tile of `P'` is contained in it. -/ @@ -3946,7 +3967,7 @@ theorem suppBox_subset_semiHO0 (α : Fin n → ℕ) (P : Tile n) : suppBox α P have hs := side_pos α (-P.k) i rw [abs_lt] at h simp only [Tile.cω0, PiLp.toLp_apply, b0] at h - constructor <;> nlinarith [h.1, h.2] + constructor <;> linarith only [h.1, h.2, hs] theorem mem_suppBox_of_fhat_wavePhi_ne_zero (α : Fin n → ℕ) (P : Tile n) {ξ : Rn n} (h : fhat (wavePhi α P) ξ ≠ 0) : ξ ∈ suppBox α P := fun i => @@ -4181,7 +4202,7 @@ theorem diag_sum_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) : refine Finset.sum_le_sum fun P _ => Finset.sum_le_sum fun P' _ => ?_ split_ifs · exact mul_le_mul_of_nonneg_right - (by nlinarith only [sq_nonneg (a P - a P')]) (norm_nonneg _) + (by linarith only [sq_nonneg (a P - a P')]) (norm_nonneg _) · exact le_rfl have hswap : ∑ P ∈ U, ∑ P' ∈ U, (if P.ω = P'.ω then (a P ^ 2 / 2 + a P' ^ 2 / 2) * t P P' else 0) = @@ -4210,27 +4231,18 @@ theorem diag_sum_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) : Finset.sum_le_sum fun P _ => mul_le_mul_of_nonneg_left (hinner P) (sq_nonneg _) _ = C0 * W * ∑ P ∈ U, a P ^ 2 := by rw [Finset.mul_sum]; congr 1; ext P; ring +private theorem rho_le_zpow_of_coordinate_bounds (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) + {x : Rn n} {k : ℤ} (h : ∀ i, |x i| ≤ side α k i) : rho α x ≤ (2 : ℝ) ^ k := by + refine rho_le_of_coordinate_bounds α (by positivity) fun i => ?_ + rw [← side_rpow_inv α hα k i] + exact Real.rpow_le_rpow (abs_nonneg _) (h i) (inv_nonneg.mpr (Nat.cast_nonneg _)) + /-- Points of `I_P` are within anisotropic distance `2^{k_P}` of `c(I_P)`. -/ theorem rho_sub_cI_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (P : Tile n) {y : Rn n} (hy : y ∈ P.I.toSet α) : rho α (y - P.cI α) ≤ (2 : ℝ) ^ P.k := by - have ht : (0 : ℝ) < (2 : ℝ) ^ P.k := by positivity - have h : rhoNN α (y - P.cI α) ≤ Real.toNNReal ((2 : ℝ) ^ P.k) := by - rw [rhoNN_le_iff] - intro i - rw [← NNReal.coe_le_coe, Real.coe_toNNReal _ ht.le] - simp only [NNReal.coe_rpow, coe_nnNorm, Real.norm_eq_abs, PiLp.sub_apply] - have h1 := abs_sub_cI_le_of_mem_I α P hy i - have hs := side_pos α P.k i - have hai : (α i : ℝ) ≠ 0 := by have := hα i; positivity - have h2 : |y i - P.cI α i| ≤ ((2 : ℝ) ^ P.k) ^ (α i : ℝ) := by - rw [Real.rpow_natCast, side] at * - rw [← zpow_natCast, ← zpow_mul] - linarith - calc |y i - P.cI α i| ^ ((α i : ℝ)⁻¹) ≤ (((2 : ℝ) ^ P.k) ^ (α i : ℝ)) ^ ((α i : ℝ)⁻¹) := - Real.rpow_le_rpow (abs_nonneg _) h2 (by positivity) - _ = (2 : ℝ) ^ P.k := by rw [← Real.rpow_mul ht.le, mul_inv_cancel₀ hai, Real.rpow_one] - have := NNReal.coe_le_coe.mpr h - rwa [Real.coe_toNNReal _ ht.le] at this + refine rho_le_zpow_of_coordinate_bounds α hα fun i => ?_ + rw [PiLp.sub_apply] + exact (abs_sub_cI_le_of_mem_I α P hy i).trans (half_le_self (side_pos α P.k i).le) /-- The weight `(1 + t⁻¹ρ(·))^{-ν}` varies by at most `2^ν` under shifts of size `t`. -/ theorem wgt_shift_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {t : ℝ} (ht : 0 < t) {y c : Rn n} @@ -4557,8 +4569,9 @@ theorem boundary_sum_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < have hsk : ((2 : ℝ) ^ k) ^ α i ≤ side α K i * (2 : ℝ) ^ (k - K) := by rw [side, ← zpow_natCast, ← zpow_mul, ← zpow_add₀ (by norm_num)] refine zpow_le_zpow_right₀ (by norm_num) ?_ - have := hα i - nlinarith + have ha : (1 : ℤ) ≤ α i := by exact_mod_cast hα i + have hmul := mul_le_mul_of_nonpos_left ha (sub_nonpos.mpr hk) + linarith only [hmul] rw [hvol] calc p i * ((2 : ℝ) ^ k) ^ α i ≤ p i * (side α K i * (2 : ℝ) ^ (k - K)) := by gcongr; exact hp i @@ -4884,7 +4897,7 @@ theorem Tile.cω_mem_semi (α : Fin n → ℕ) (P : Tile n) (r : Fin n → Fin 2 simp only [Tile.cω, PiLp.toLp_apply] have hr : ((r i : ℕ) : ℝ) = 0 ∨ ((r i : ℕ) : ℝ) = 1 := by rcases Fin.exists_fin_two.mp ⟨r i, rfl⟩ with h | h <;> simp [h] - rcases hr with h | h <;> rw [h] <;> constructor <;> nlinarith + rcases hr with h | h <;> rw [h] <;> constructor <;> linarith theorem Is2Tree.singleton (α : Fin n → ℕ) (r : Fin n → Fin 2) (P : Tile n) : Is2Tree α r P {P} := by @@ -5099,10 +5112,10 @@ theorem energy_lemma (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n) have : lam ^ 4 * V ^ 2 ≤ Nf ^ 2 * (C' * (4 * lam ^ 2) * V) := by have e : (2 * lam) ^ 2 = 4 * lam ^ 2 := by ring simp only [ε, e] at hsq - nlinarith only [hsq] + linarith only [hsq] have hl : 0 < lam ^ 2 * V := by positivity apply (mul_le_mul_iff_right₀ hl).mp - nlinarith only [this] + linarith only [this] · rw [← hV0]; positivity calc ∑ t ∈ (Finset.range m).image (fun i => (top i, T i)), t.1.vol α ≤ ∑ i ∈ Finset.range m, (top i).vol α := @@ -5144,13 +5157,8 @@ theorem setOf_rho_le_one_eq (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) : have h2 : rho α y ^ α i ≤ 1 := pow_le_one₀ (rho_nonneg α y) h exact abs_le.mp (h1.trans h2) · intro h - have hle : rhoNN α y ≤ 1 := by - rw [rhoNN_le_iff] - intro i - rw [← NNReal.coe_le_coe] - simp only [NNReal.coe_rpow, coe_nnNorm, Real.norm_eq_abs, NNReal.coe_one] - exact Real.rpow_le_one (abs_nonneg _) (abs_le.mpr (h i)) (by positivity) - exact_mod_cast hle + exact rho_le_of_coordinate_bounds α zero_le_one fun i => + Real.rpow_le_one (abs_nonneg _) (abs_le.mpr (h i)) (inv_nonneg.mpr (Nat.cast_nonneg _)) theorem volume_rho_le_one (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) : volume {y : Rn n | rho α y ≤ 1} = 2 ^ n := by @@ -5193,7 +5201,8 @@ theorem DCube.toSet_subset_enl3 (α : Fin n → ℕ) (J : DCube n) : J.toSet α have h := hx i have hs := side_pos α J.k i have hA : (1 : ℝ) ≤ 2 ^ α i := one_le_pow₀ (by norm_num) - constructor <;> nlinarith only [h.1, h.2, hs, hA] + have hscale := mul_le_mul_of_nonneg_left hA hs.le + constructor <;> linarith only [h.1, h.2, hscale] /-- Index form of dyadic containment: if `Q ⊆ Q'` with `k ≤ k'`, then `B ℓ' ≤ ℓ ≤ B ℓ' + B − 1` coordinatewise, where `B = 2^{(k'−k)αᵢ}`. -/ @@ -5207,10 +5216,10 @@ theorem DCube.index_bounds_of_subset (α : Fin n → ℕ) {Q Q' : DCube n} (d : have hs := side_pos α Q.k i generalize (2 ^ (d * α i) : ℕ) = Bn at hc ⊢ have h1 : ((Bn : ℝ) * Q'.ℓ i : ℝ) < Q.ℓ i + 1 := by - have : side α Q.k i * (Bn * Q'.ℓ i) < side α Q.k i * (Q.ℓ i + 1) := by nlinarith [hc.1] + have : side α Q.k i * (Bn * Q'.ℓ i) < side α Q.k i * (Q.ℓ i + 1) := by linarith [hc.1] exact lt_of_mul_lt_mul_left this hs.le have h2 : (Q.ℓ i : ℝ) < Bn * (Q'.ℓ i + 1) := by - have : side α Q.k i * Q.ℓ i < side α Q.k i * (Bn * (Q'.ℓ i + 1)) := by nlinarith [hc.2] + have : side α Q.k i * Q.ℓ i < side α Q.k i * (Bn * (Q'.ℓ i + 1)) := by linarith [hc.2] exact lt_of_mul_lt_mul_left this hs.le constructor · have : ((((Bn : ℤ)) * Q'.ℓ i : ℤ) : ℝ) < ((Q.ℓ i + 1 : ℤ) : ℝ) := by @@ -5243,12 +5252,12 @@ theorem DCube.enl3_subset_of_subset (α : Fin n → ℕ) {Q Q' : DCube n} (hk : constructor · have : s * B * (Q'.ℓ i + 1 - A) ≤ s * (Q.ℓ i + 1 - A) := by have : B * (Q'.ℓ i + 1 - A) ≤ Q.ℓ i + 1 - A := by - nlinarith only [hb1', hBA] + linarith only [hb1', hBA] simpa only [mul_assoc] using mul_le_mul_of_nonneg_left this hs.le linarith only [hyi.1, this] · have : s * (Q.ℓ i + A) ≤ s * B * (Q'.ℓ i + A) := by have : (Q.ℓ i : ℝ) + A ≤ B * (Q'.ℓ i + A) := by - nlinarith only [hb2', hBA] + linarith only [hb2', hBA] simpa only [mul_assoc] using mul_le_mul_of_nonneg_left this hs.le linarith only [hyi.2, this] @@ -5272,25 +5281,16 @@ theorem DCube.subset_enl3_of_inter (α : Fin n → ℕ) {Q J : DCube n} (hk : Q. set L2 : ℤ := ((2 ^ (d * α i) : ℕ) : ℤ) * (J.ℓ i + (2 ^ α i : ℕ)) have e1 : B * (J.ℓ i + 1 - 2 ^ α i) = (L1 : ℝ) := by simp only [L1, B]; push_cast; ring have e2 : B * (J.ℓ i + 2 ^ α i) = (L2 : ℝ) := by simp only [L2, B]; push_cast; ring - have hx2a : s * (L1 : ℝ) ≤ x i := by rw [← e1]; nlinarith [hx2.1] - have hx2b : x i < s * (L2 : ℝ) := by rw [← e2]; nlinarith [hx2.2] - have hQ1 : L1 ≤ Q.ℓ i := by - have : (L1 : ℝ) < Q.ℓ i + 1 := by - have : s * (L1 : ℝ) < s * (Q.ℓ i + 1) := by linarith [hx1.2] - exact lt_of_mul_lt_mul_left this hs.le - exact Int.lt_add_one_iff.mp (by exact_mod_cast this) - have hQ2 : Q.ℓ i + 1 ≤ L2 := by - have : (Q.ℓ i : ℝ) < L2 := by - have : s * (Q.ℓ i : ℝ) < s * L2 := by linarith [hx1.1] - exact lt_of_mul_lt_mul_left this hs.le - exact Int.add_one_le_iff.mpr (by exact_mod_cast this) + have hx2a : s * (L1 : ℝ) ≤ x i := by rw [← e1, ← mul_assoc]; exact hx2.1 + have hx2b : x i < s * (L2 : ℝ) := by rw [← e2, ← mul_assoc]; exact hx2.2 + obtain ⟨hQ1, hQ2⟩ := scaled_integer_bounds hs.le hx1 ⟨hx2a, hx2b⟩ have hQ1' : (L1 : ℝ) ≤ Q.ℓ i := by exact_mod_cast hQ1 have hQ2' : (Q.ℓ i : ℝ) + 1 ≤ L2 := by exact_mod_cast hQ2 constructor - · rw [show s * B * (J.ℓ i + 1 - 2 ^ α i) = s * (L1 : ℝ) by rw [← e1]; ring] - nlinarith [hy1.1] - · rw [show s * B * (J.ℓ i + 2 ^ α i) = s * (L2 : ℝ) by rw [← e2]; ring] - nlinarith [hy1.2] + · rw [mul_assoc, e1] + exact (mul_le_mul_of_nonneg_left hQ1' hs.le).trans hy1.1 + · rw [mul_assoc, e2] + exact hy1.2.trans_le (mul_le_mul_of_nonneg_left hQ2' hs.le) /-- A dyadic cube contained in `J_tilde` has scale at most `k_J + 1`. -/ theorem DCube.k_le_of_subset_enl3 (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n) @@ -5304,19 +5304,20 @@ theorem DCube.k_le_of_subset_enl3 (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) intro v hv1 hv2 j by_cases hj : j = i · subst hj; simp [hv1, hv2] - · have hs := side_pos α Q.k j - simp only [Function.update_of_ne hj, corner] - constructor <;> nlinarith + · simp only [Function.update_of_ne hj, corner] + exact ⟨le_rfl, mul_lt_mul_of_pos_left (lt_add_one _) (side_pos α Q.k j)⟩ have hsQ := side_pos α Q.k i have hsJ := side_pos α J.k i + have hwidth : side α Q.k i * Q.ℓ i < side α Q.k i * (Q.ℓ i + 1) := + mul_lt_mul_of_pos_left (lt_add_one _) hsQ have hlo : side α J.k i * (J.ℓ i + 1 - 2 ^ α i) ≤ side α Q.k i * Q.ℓ i := by - have := (h (hcorner _ le_rfl (by nlinarith)) i).1 + have := (h (hcorner _ le_rfl hwidth) i).1 simpa using this have hhi : side α Q.k i * (Q.ℓ i + 1) ≤ side α J.k i * (J.ℓ i + 2 ^ α i) := by by_contra hcon push Not at hcon set v := max (side α Q.k i * Q.ℓ i) (side α J.k i * (J.ℓ i + 2 ^ α i)) - have hv := (h (hcorner v (le_max_left _ _) (max_lt (by nlinarith) hcon)) i).2 + have hv := (h (hcorner v (le_max_left _ _) (max_lt hwidth hcon)) i).2 simp only [Function.update_self] at hv exact absurd (le_max_right _ _) (not_le.mpr hv) have hA : (2 : ℝ) ≤ 2 ^ α i := by @@ -5329,7 +5330,11 @@ theorem DCube.k_le_of_subset_enl3 (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) simp only [side]; rw [← zpow_natCast, ← zpow_natCast, ← zpow_mul]; norm_cast; ring_nf rw [e] at this exact this - nlinarith + have hpow : 2 * ((2 : ℝ) ^ α i) ≤ (2 ^ α i) ^ 2 := by + rw [pow_two] + exact mul_le_mul_of_nonneg_right hA (by positivity) + have hscale := mul_le_mul_of_nonneg_left hpow hsJ.le + linarith only [hlo, hhi, hside, hscale, hsJ] /-- `J` is admissible for the tree `T` if `J_tilde` contains no `I_P`, `P ∈ T`. -/ def treeOK (α : Fin n → ℕ) (T : Finset (Tile n)) (J : DCube n) : Prop := @@ -5402,25 +5407,20 @@ theorem not_treeOK_ofPoint_large (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) have hA : (2 : ℝ) ≤ 2 ^ α i := by calc (2 : ℝ) = 2 ^ 1 := by norm_num _ ≤ 2 ^ α i := pow_le_pow_right₀ (by norm_num) (hα i) - simp only [DCube.ofPoint] + have hyabs : |y i| ≤ |side α P₀.k i * P₀.ℓ i| + |side α P₀.k i * (P₀.ℓ i + 1)| := by + rw [abs_le] + exact ⟨(neg_le_neg (le_add_of_nonneg_right (abs_nonneg _))).trans + ((neg_abs_le _).trans hyi.1), + (hyi.2.le.trans (le_abs_self _)).trans (le_add_of_nonneg_left (abs_nonneg _))⟩ + have hdiff : |y i - x i| < s := by + calc |y i - x i| ≤ |y i| + |x i| := abs_sub _ _ + _ < s := by linarith only [hbound, hyabs] + obtain ⟨hlower, hupper⟩ := abs_lt.mp hdiff + have hscale := mul_le_mul_of_nonneg_left hA hs.le + change s * (↑⌊x i / s⌋ + 1 - 2 ^ α i) ≤ y i ∧ y i < s * (↑⌊x i / s⌋ + 2 ^ α i) constructor - · have : x i - s ≤ y i := by - have := abs_lt.mp (show |y i - x i| < s by - have : |y i| ≤ |side α P₀.k i * P₀.ℓ i| + |side α P₀.k i * (P₀.ℓ i + 1)| := by - rw [abs_le]; constructor <;> cases abs_cases (side α P₀.k i * P₀.ℓ i) <;> - cases abs_cases (side α P₀.k i * (P₀.ℓ i + 1)) <;> linarith [hyi.1, hyi.2] - calc |y i - x i| ≤ |y i| + |x i| := abs_sub _ _ - _ < s := by linarith) - linarith - nlinarith only [hs, hfl, hA, this] - · have : y i < x i + s := by - have : |y i| ≤ |side α P₀.k i * P₀.ℓ i| + |side α P₀.k i * (P₀.ℓ i + 1)| := by - rw [abs_le]; constructor <;> cases abs_cases (side α P₀.k i * P₀.ℓ i) <;> - cases abs_cases (side α P₀.k i * (P₀.ℓ i + 1)) <;> linarith [hyi.1, hyi.2] - have := neg_abs_le (x i) - have := le_abs_self (y i) - linarith - nlinarith only [hs, hfl', hA, this] + · linarith only [hfl, hscale, hlower] + · linarith only [hfl', hscale, hupper] theorem exists_mem_jSet (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n) (T : Finset (Tile n)) (hT : T.Nonempty) (x : Rn n) : ∃ J ∈ jSet α T, x ∈ J.toSet α := by @@ -5518,27 +5518,17 @@ theorem tree_scale_sum_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {b : hs.sum_le_tsum _ fun ℓ _ => hnn ℓ _ ≤ W := hle +private theorem abs_sub_le_of_mem_halfOpen {a b x y : ℝ} + (hx : a ≤ x ∧ x < b) (hy : a ≤ y ∧ y < b) : |x - y| ≤ b - a := + abs_sub_le_iff.mpr ⟨sub_le_sub hx.2.le hy.1, sub_le_sub hy.2.le hx.1⟩ + /-- Two points of a dyadic cube of scale `k` are at anisotropic distance `≤ 2^k`. -/ theorem rho_sub_le_of_mem_DCube (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (J : DCube n) {x y : Rn n} (hx : x ∈ J.toSet α) (hy : y ∈ J.toSet α) : rho α (x - y) ≤ (2 : ℝ) ^ J.k := by - have hle : rhoNN α (x - y) ≤ Real.toNNReal ((2 : ℝ) ^ J.k) := by - rw [rhoNN_le_iff] - intro i - rw [← NNReal.coe_le_coe, Real.coe_toNNReal _ (by positivity)] - simp only [NNReal.coe_rpow, coe_nnNorm, Real.norm_eq_abs, PiLp.sub_apply] - have h1 := hx i - have h2 := hy i - have hs : |x i - y i| ≤ ((2 : ℝ) ^ J.k) ^ (α i : ℝ) := by - rw [Real.rpow_natCast, ← zpow_natCast, ← zpow_mul] - change |x i - y i| ≤ side α J.k i - rw [abs_le]; constructor <;> nlinarith [h1.1, h1.2, h2.1, h2.2] - have hai : (α i : ℝ) ≠ 0 := by have := hα i; positivity - calc |x i - y i| ^ ((α i : ℝ)⁻¹) ≤ (((2 : ℝ) ^ J.k) ^ (α i : ℝ)) ^ ((α i : ℝ)⁻¹) := - Real.rpow_le_rpow (abs_nonneg _) hs (by positivity) - _ = (2 : ℝ) ^ J.k := by - rw [← Real.rpow_mul (by positivity), mul_inv_cancel₀ hai, Real.rpow_one] - have := NNReal.coe_le_coe.mpr hle - rwa [Real.coe_toNNReal _ (by positivity)] at this + refine rho_le_zpow_of_coordinate_bounds α hα fun i => ?_ + rw [PiLp.sub_apply] + calc |x i - y i| ≤ _ := abs_sub_le_of_mem_halfOpen (hx i) (hy i) + _ = side α J.k i := by ring /-- Slow variation of `(1 + 2^{-k_P} ρ(· − c(I_P)))` on an admissible cube `J` with `k_P ≤ k_J + 1` (the disjointness `I_P ∩ J_tilde = ∅` is used when `k_P ≤ k_J`). -/ @@ -5566,10 +5556,13 @@ theorem one_add_rho_le_two_mul_of_mem_J (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ have hA : (2 : ℝ) ≤ 2 ^ α i := by calc (2 : ℝ) = 2 ^ 1 := by norm_num _ ≤ 2 ^ α i := pow_le_pow_right₀ (by norm_num) (hα i) + have hscale := mul_le_mul_of_nonneg_left hA hs.le have habs : side α J.k i ≤ |y i - P.cI α i| := by rcases hi with hi | hi - · rw [abs_of_pos (by nlinarith [hyi.1])]; nlinarith [hyi.1] - · rw [abs_of_neg (by nlinarith [hyi.2])]; nlinarith [hyi.2] + · exact (show side α J.k i ≤ y i - P.cI α i by + linarith only [hi, hyi.1, hs, hscale]).trans (le_abs_self _) + · exact (show side α J.k i ≤ -(y i - P.cI α i) by + linarith only [hi, hyi.2, hs, hscale]).trans (neg_le_abs _) have h1 := abs_coord_rpow_le_rho α (y - P.cI α) i simp only [PiLp.sub_apply] at h1 have hai : (α i : ℝ) ≠ 0 := by have := hα i; positivity @@ -5586,8 +5579,9 @@ theorem one_add_rho_le_two_mul_of_mem_J (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ have hr := rho_nonneg α (y - P.cI α) have : ((2 : ℝ) ^ P.k)⁻¹ * rho α (x - P.cI α) ≤ 2 * (((2 : ℝ) ^ P.k)⁻¹ * rho α (y - P.cI α)) := by - have hinv : 0 ≤ ((2 : ℝ) ^ P.k)⁻¹ := by positivity - nlinarith + rw [← mul_left_comm] + exact mul_le_mul_of_nonneg_left ‹rho α (x - P.cI α) ≤ 2 * rho α (y - P.cI α)› + (by positivity) linarith · -- `k_P = k_J + 1`: `ρ(x - y) ≤ 2^{k_P}/2` have hJP : (2 : ℝ) ^ J.k = (2 : ℝ) ^ P.k / 2 := by @@ -5597,7 +5591,8 @@ theorem one_add_rho_le_two_mul_of_mem_J (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ have hinv : 0 < ((2 : ℝ) ^ P.k)⁻¹ := by positivity have h1 : ((2 : ℝ) ^ P.k)⁻¹ * rho α (x - y) ≤ 1 / 2 := by rw [inv_mul_le_iff₀ htP]; linarith - nlinarith + have hscaled := mul_le_mul_of_nonneg_left htri hinv.le + linarith only [hscaled, h1] have := rho_nonneg α (y - P.cI α) have : 0 ≤ ((2 : ℝ) ^ P.k)⁻¹ * rho α (y - P.cI α) := by positivity linarith @@ -5758,9 +5753,9 @@ theorem sum_zpow_scales_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : rw [one_div, inv_pow, ← zpow_natCast, Int.toNat_of_nonneg (by omega), ← zpow_neg, ← zpow_add₀ (by norm_num)] refine zpow_le_zpow_right₀ (by norm_num) ?_ - have : (0 : ℤ) ≤ K₀ - k := by omega have hA' : (1 : ℤ) ≤ absA α := by exact_mod_cast hA - nlinarith + have hsub := mul_le_mul_of_nonneg_left hA' (sub_nonneg.mpr h1) + linarith only [hsub] calc ∑ k ∈ ks, (2 : ℝ) ^ (k * (absA α : ℤ)) ≤ ∑ k ∈ ks, (2 : ℝ) ^ (K₀ * (absA α : ℤ)) * (1 / 2 : ℝ) ^ ((K₀ - k).toNat) := Finset.sum_le_sum hterm @@ -5971,35 +5966,32 @@ theorem K1_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n) {r : F theorem rho_sub_le_of_mem_enl3 (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (Q : DCube n) {x y : Rn n} (hx : x ∈ Q.enl3 α) (hy : y ∈ Q.enl3 α) : rho α (x - y) ≤ 2 * (2 : ℝ) ^ (Q.k + 1) := by have ht : (0 : ℝ) < 2 * (2 : ℝ) ^ (Q.k + 1) := by positivity - have hle : rhoNN α (x - y) ≤ Real.toNNReal (2 * (2 : ℝ) ^ (Q.k + 1)) := by - rw [rhoNN_le_iff] - intro i - rw [← NNReal.coe_le_coe, Real.coe_toNNReal _ ht.le] - simp only [NNReal.coe_rpow, coe_nnNorm, Real.norm_eq_abs, PiLp.sub_apply] - have h1 := hx i - have h2 := hy i - have hs := side_pos α Q.k i - have hA : (1 : ℝ) ≤ 2 ^ α i := one_le_pow₀ (by norm_num) - have hai : (1 : ℝ) ≤ α i := by exact_mod_cast hα i - have hd : |x i - y i| ≤ 2 * ((2 : ℝ) ^ (Q.k + 1)) ^ (α i : ℝ) := by - have e : ((2 : ℝ) ^ (Q.k + 1)) ^ (α i : ℝ) = side α Q.k i * 2 ^ α i := by - rw [Real.rpow_natCast, side, ← zpow_natCast ((2 : ℝ) ^ (Q.k + 1)), ← zpow_mul, - ← zpow_natCast (2 : ℝ) (α i), ← zpow_add₀ (by norm_num)] - congr 1; ring - rw [e, abs_le] - constructor <;> nlinarith [h1.1, h1.2, h2.1, h2.2] - calc |x i - y i| ^ ((α i : ℝ)⁻¹) ≤ (2 * ((2 : ℝ) ^ (Q.k + 1)) ^ (α i : ℝ)) ^ ((α i : ℝ)⁻¹) := - Real.rpow_le_rpow (abs_nonneg _) hd (by positivity) - _ = 2 ^ ((α i : ℝ)⁻¹) * (2 : ℝ) ^ (Q.k + 1) := by - rw [Real.mul_rpow (by norm_num) (by positivity), ← Real.rpow_mul (by positivity), - mul_inv_cancel₀ (by positivity), Real.rpow_one] - _ ≤ 2 * (2 : ℝ) ^ (Q.k + 1) := by - gcongr - calc (2 : ℝ) ^ ((α i : ℝ)⁻¹) ≤ 2 ^ (1 : ℝ) := - Real.rpow_le_rpow_of_exponent_le (by norm_num) (inv_le_one_of_one_le₀ hai) - _ = 2 := Real.rpow_one 2 - have := NNReal.coe_le_coe.mpr hle - rwa [Real.coe_toNNReal _ ht.le] at this + refine rho_le_of_coordinate_bounds α ht.le fun i => ?_ + rw [PiLp.sub_apply] + have h1 := hx i + have h2 := hy i + have hs := side_pos α Q.k i + have hA : (1 : ℝ) ≤ 2 ^ α i := one_le_pow₀ (by norm_num) + have hai : (1 : ℝ) ≤ α i := by exact_mod_cast hα i + have hd : |x i - y i| ≤ 2 * ((2 : ℝ) ^ (Q.k + 1)) ^ (α i : ℝ) := by + have e : ((2 : ℝ) ^ (Q.k + 1)) ^ (α i : ℝ) = side α Q.k i * 2 ^ α i := by + rw [Real.rpow_natCast, side, ← zpow_natCast ((2 : ℝ) ^ (Q.k + 1)), ← zpow_mul, + ← zpow_natCast (2 : ℝ) (α i), ← zpow_add₀ (by norm_num)] + congr 1; ring + rw [e] + calc |x i - y i| ≤ _ := abs_sub_le_of_mem_halfOpen h1 h2 + _ = 2 * (side α Q.k i * 2 ^ α i) - side α Q.k i := by ring + _ ≤ _ := sub_le_self _ hs.le + calc |x i - y i| ^ ((α i : ℝ)⁻¹) ≤ (2 * ((2 : ℝ) ^ (Q.k + 1)) ^ (α i : ℝ)) ^ ((α i : ℝ)⁻¹) := + Real.rpow_le_rpow (abs_nonneg _) hd (by positivity) + _ = 2 ^ ((α i : ℝ)⁻¹) * (2 : ℝ) ^ (Q.k + 1) := by + rw [Real.mul_rpow (by norm_num) (by positivity), ← Real.rpow_mul (by positivity), + mul_inv_cancel₀ (by positivity), Real.rpow_one] + _ ≤ 2 * (2 : ℝ) ^ (Q.k + 1) := by + gcongr + calc (2 : ℝ) ^ ((α i : ℝ)⁻¹) ≤ 2 ^ (1 : ℝ) := + Real.rpow_le_rpow_of_exponent_le (by norm_num) (inv_le_one_of_one_le₀ hai) + _ = 2 := Real.rpow_one 2 /-- The auxiliary tile of Lemma 7.1: spatial cube the scale-`k` ancestor of `I_{P₀}`, frequency cube the scale-`(−k)` cube containing `ξ`. -/ @@ -6140,7 +6132,7 @@ theorem Tile.volume_bigBox (α : Fin n → ℕ) (top : Tile n) : ext x; simp [Tile.bigBox] rw [hset, (PiLp.volume_preserving_ofLp _).measure_preimage (MeasurableSet.univ_pi fun i => measurableSet_Ico).nullMeasurableSet, Real.volume_pi_Ico, - ← ENNReal.ofReal_prod_of_nonneg (fun i _ => by have := side_pos α top.k i; nlinarith)] + ← ENNReal.ofReal_prod_of_nonneg (fun i _ => by have := side_pos α top.k i; linarith)] congr 1 have : ∀ i, side α top.k i * (top.ℓ i + 1) + 2 * side α top.k i - (side α top.k i * top.ℓ i - 2 * side α top.k i) = 5 * side α top.k i := fun i => by ring @@ -6560,11 +6552,11 @@ theorem psiDiff_estimate (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (ν : have haj : a j ≤ -(1 / 4) := by simp only [a, ht_def, dil_zpow_apply, PiLp.sub_apply] have : side α P.k j * (side α (-P.k) j / 4) = 1 / 4 := by rw [mul_div_assoc', hs] - nlinarith + linarith only [this, mul_le_mul_of_nonneg_left hN hsP.le] have haj' : a' j ≤ -(1 / 4) := by simp only [a', ht_def, dil_zpow_apply, PiLp.sub_apply] have : side α P.k j * (side α (-P.k) j / 4) = 1 / 4 := by rw [mul_div_assoc', hs] - nlinarith + linarith only [this, mul_le_mul_of_nonneg_left hN' hsP.le] have ha : ∃ j, 1 / 4 ≤ |a j| := ⟨j, by rw [abs_of_neg (by linarith)]; linarith⟩ have ha' : ∃ j, 1 / 4 ≤ |a' j| := ⟨j, by rw [abs_of_neg (by linarith)]; linarith⟩ set y : Rn n := dil α t⁻¹ (x - P.cI α) @@ -6597,12 +6589,10 @@ theorem psiDiff_estimate (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (ν : rw [wavePsi_eq_rescaled, wavePsi_eq_rescaled, ← ht_def, hresc N a rfl ha, hresc N' a' rfl ha', ← mul_sub, ← integral_sub] · congr 2; ext ζ; rw [glocDiff_eq]; simp only [Pi.sub_apply]; ring - · have hce : Continuous fun ζ : Rn n => Complex.exp (Complex.I * (⟪y, ζ⟫_ℝ : ℂ)) := by - fun_prop + · have hce := continuous_cexp_inner (continuous_const (y := y)) continuous_id exact (hce.mul (contDiff_gloc α hα hm ha).continuous).integrable_of_hasCompactSupport (hasCompactSupport_gloc m a).mul_left - · have hce : Continuous fun ζ : Rn n => Complex.exp (Complex.I * (⟪y, ζ⟫_ℝ : ℂ)) := by - fun_prop + · have hce := continuous_cexp_inner (continuous_const (y := y)) continuous_id exact (hce.mul (contDiff_gloc α hα hm ha').continuous).integrable_of_hasCompactSupport (hasCompactSupport_gloc m a').mul_left -- the oscillatory integral @@ -6676,7 +6666,7 @@ theorem far_of_mem_semiHO (α : Fin n → ℕ) {r : Fin n → Fin 2} {i₀ : Fin simp only [Fin.isValue, Fin.val_one, Nat.cast_one] at h have hs := side_pos α (-P.k) i₀ simp only [Tile.cω0, PiLp.toLp_apply] - nlinarith + linarith /-- **Term 2 in the `2`-tree case**, pointwise: for tiles `A ⊆ S` whose semi-tiles contain `N`, `|∑_{P ∈ A} c_P (ψ^N_P(x) − ψ^{ξ₀}_P(x))| ≤ C ‖m‖_{𝓜^{ν+1}} ε`, `ξ₀ = c(ω_T)`. -/ @@ -6724,9 +6714,10 @@ theorem twoTree_term2_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin have h1 := hN₀ i have h2 := hξ₀ i have hs := side_pos α (-K) i - have hr0 : (0 : ℝ) ≤ (r i : ℝ) := Nat.cast_nonneg _ have hbound : |N₀ i - top.cω α i| ≤ side α (-K) i := by - rw [abs_le]; constructor <;> nlinarith [h1.1, h1.2, h2.1, h2.2] + calc |N₀ i - top.cω α i| ≤ _ := abs_sub_le_of_mem_halfOpen h1 h2 + _ = side α (-K) i / 2 := by ring + _ ≤ _ := half_le_self hs.le rw [dil_apply, PiLp.sub_apply, abs_mul, abs_of_pos (by positivity)] calc ((2 : ℝ) ^ P.k) ^ α i * |N₀ i - top.cω α i| ≤ ((2 : ℝ) ^ P.k) ^ α i * side α (-K) i := by gcongr @@ -6735,13 +6726,13 @@ theorem twoTree_term2_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin congr 1; ring _ ≤ (2 : ℝ) ^ (P.k - K) := by refine zpow_le_zpow_right₀ (by norm_num) ?_ - have := hα i - nlinarith + have hi : (1 : ℤ) ≤ (α i : ℤ) := by exact_mod_cast hα i + simpa only [mul_one] using mul_le_mul_of_nonpos_left hi (sub_nonpos.mpr hPK) _ = n * (2 : ℝ) ^ (P.k - K) := by simp have hpow : ((2 : ℝ) ^ P.k) ^ ((absA α : ℝ) / 2) * ((2 : ℝ) ^ P.k) ^ (-(absA α : ℝ) / 2) = 1 := by - rw [← Real.rpow_add (by positivity), show (absA α : ℝ) / 2 + -(absA α : ℝ) / 2 = 0 by ring, - Real.rpow_zero] + rw [neg_div, Real.rpow_neg (by positivity), + mul_inv_cancel₀ (Real.rpow_pos_of_pos (by positivity) _).ne'] have hW : 0 ≤ (1 + ((2 : ℝ) ^ P.k)⁻¹ * rho α (x - P.cI α)) ^ (-(ν : ℝ)) := by have := rho_nonneg α (x - P.cI α); positivity rw [norm_mul] @@ -6755,8 +6746,9 @@ theorem twoTree_term2_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin (1 + ((2 : ℝ) ^ P.k)⁻¹ * rho α (x - P.cI α)) ^ (-(ν : ℝ)) := by ring _ ≤ ε * Cd * M * (n * (2 : ℝ) ^ (P.k - K)) * 1 * (1 + ((2 : ℝ) ^ P.k)⁻¹ * rho α (x - P.cI α)) ^ (-(ν : ℝ)) := by - rw [hpow]; gcongr - _ = _ := by ring + rw [hpow, mul_one, mul_one] + exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hsmall (by positivity)) hW + _ = _ := by rw [mul_one] -- sum over scales set ks := A.image Tile.k have hks : ∀ k ∈ ks, k ≤ K := by @@ -6786,10 +6778,11 @@ theorem twoTree_term2_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin · exact Finset.mem_filter.mpr ⟨hAS (Finset.mem_filter.mp hP).1, (Finset.mem_filter.mp hP).2⟩ · have := rho_nonneg α (x - P.cI α); positivity - _ ≤ _ := by gcongr; exact hlat top S hS k x + _ ≤ _ := mul_le_mul_of_nonneg_left (hlat top S hS k x) (by positivity) _ = ε * Cd * M * n * Cl * ∑ k ∈ ks, (2 : ℝ) ^ (k - K) := by rw [Finset.mul_sum]; congr 1; ext k; ring - _ ≤ ε * Cd * M * n * Cl * 2 := by gcongr; exact sum_two_zpow_sub_le ks K hks + _ ≤ ε * Cd * M * n * Cl * 2 := + mul_le_mul_of_nonneg_left (sum_two_zpow_sub_le ks K hks) (by positivity) _ = _ := by ring /-! ### Frequency cutoffs for the `2`-tree case -/ @@ -6854,11 +6847,10 @@ theorem hBump_decay (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (L : ℝ) (hL _ = _ := by ring theorem continuous_hBump (α : Fin n → ℕ) (L : ℝ) (hL : L ≠ 0) (k : ℤ) (c : Rn n) : - Continuous (hBump α L hL k c) := by - have hφ : Continuous (phiLS L hL : Rn n → ℂ) := (phiLS L hL).continuous - unfold hBump modul transl dilOp - have : Continuous fun z : Rn n => dil α ((2 : ℝ) ^ k)⁻¹ (z - 0) := by fun_prop - fun_prop + Continuous (hBump α L hL k c) := + continuous_const.mul ((continuous_cexp_inner continuous_id (continuous_const (y := c))).mul + (continuous_const.mul ((phiLS L hL).continuous.comp + ((continuous_dil α _).comp (continuous_id.sub continuous_const))))) theorem integrable_hBump (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (L : ℝ) (hL : L ≠ 0) (k : ℤ) (c : Rn n) : Integrable (hBump α L hL k c) := by @@ -6915,7 +6907,8 @@ theorem abs_sub_semiCenter_le (α : Fin n → ℕ) (P : Tile n) (r : Fin n → F have h := hξ i have hs := side_pos α (-P.k) i simp only [Tile.semiCenter, PiLp.toLp_apply] - rw [abs_le]; constructor <;> nlinarith [h.1, h.2] + rw [abs_le] + constructor <;> linarith only [h.1, h.2] theorem suppBox_coord_lt (α : Fin n → ℕ) (P : Tile n) {ξ : Rn n} (hξ : ξ ∈ suppBox α P) (i : Fin n) : ξ i < side α (-P.k) i * (P.u i + 3 / 10) := by @@ -6923,7 +6916,7 @@ theorem suppBox_coord_lt (α : Fin n → ℕ) (P : Tile n) {ξ : Rn n} (hξ : ξ have hs := side_pos α (-P.k) i rw [abs_lt] at h simp only [Tile.cω0, PiLp.toLp_apply, b0] at h - nlinarith [h.2] + linarith only [h.2] theorem suppBox_subset_ω (α : Fin n → ℕ) (P : Tile n) : suppBox α P ⊆ P.ω.toSet α := (suppBox_subset_semiHO0 α P).trans (Tile.semiHO0_subset α P) @@ -6966,7 +6959,8 @@ theorem chi_on_suppBox (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n have hmi := hmem rw [hωqk] at hmi have hs := side_pos α (-kp) i - rw [hcp, abs_le, hb1]; constructor <;> nlinarith [hmi.1, hmi.2] + rw [hcp, abs_le, hb1] + constructor <;> linarith only [hmi.1, hmi.2, hs] have hplus0 : P.k < kp → fhat (hBump α 12 (by norm_num) kp cp) ξ = 0 := by intro hk refine fhat_hBump_eq_zero α (by norm_num) kp cp ξ ⟨i₀, ?_⟩ @@ -6983,8 +6977,9 @@ theorem chi_on_suppBox (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n have hsP := side_pos α (-P.k) i₀ have hsp := side_pos α (-kp) i₀ have hside : side α (-kp) i₀ ≤ side α (-P.k) i₀ := side_mono α (by omega) i₀ - rw [hcp, hb0, abs_sub_comm, abs_of_pos (by nlinarith)] - nlinarith + rw [hcp, hb0, abs_sub_comm] + refine le_trans ?_ (le_abs_self _) + linarith only [hlow, hξi, hsP, hsp, hside] -- the `−` cutoff have hminus1 : Pm.k < P.k → fhat (hBump α 6 (by norm_num) Pm.k cm) ξ = 1 := by intro hk @@ -6993,7 +6988,8 @@ theorem chi_on_suppBox (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n ω_subset_semiHO α hα hk r (hS P hP).2 (hS2 Pm hPm) have h1 := abs_sub_semiCenter_le α Pm r (hsub (suppBox_subset_ω α P hξ)) i have hs := side_pos α (-Pm.k) i - rw [hb1]; nlinarith + rw [hb1] + linarith only [h1, hs] have hminus0 : P.k ≤ Pm.k → fhat (hBump α 6 (by norm_num) Pm.k cm) ξ = 0 := by intro hk refine fhat_hBump_eq_zero α (by norm_num) Pm.k cm ξ ⟨i₀, ?_⟩ @@ -7007,7 +7003,7 @@ theorem chi_on_suppBox (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n Pm.semiHO α r := by intro i have hs := side_pos α (-Pm.k) i - constructor <;> nlinarith + exact ⟨le_rfl, by linarith only [hs]⟩ have hlow := (hsub (Pm.semiHO_subset_ω α r hcorner) i₀).1 simp only [hr, Fin.isValue, Fin.val_one, Nat.cast_one] at hlow have hξi := suppBox_coord_lt α P hξ i₀ @@ -7015,16 +7011,18 @@ theorem chi_on_suppBox (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {r : Fin n have hside : side α (-Pm.k) i₀ ≤ side α (-P.k) i₀ := side_mono α (by omega) i₀ simp only [cm, Tile.semiCenter, PiLp.toLp_apply, hr, Fin.isValue, Fin.val_one, Nat.cast_one] - rw [abs_sub_comm, abs_of_pos (by nlinarith)] - nlinarith + rw [abs_sub_comm] + refine le_trans ?_ (le_abs_self _) + linarith only [hlow, hξi, hsm, hsP, hside] · have hω : P.ω = Pm.ω := DCube.eq_of_mem_of_k_eq α (by simp [Tile.ω, heq]) (hS P hP).2 (hS Pm hPm).2 have hξm : ξ ∈ suppBox α Pm := suppBox_eq_of_ω_eq hω ▸ hξ have hξi := suppBox_coord_lt α Pm hξm i₀ simp only [cm, Tile.semiCenter, PiLp.toLp_apply, hr, Fin.isValue, Fin.val_one, Nat.cast_one] - rw [abs_sub_comm, abs_of_pos (by nlinarith)] - nlinarith + rw [abs_sub_comm] + refine le_trans ?_ (le_abs_self _) + linarith only [hξi, hsm] by_cases h1 : kp ≤ P.k · by_cases h2 : P.k ≤ Pm.k · rw [ite_eq_left ⟨h1, h2⟩, hplus1 h1, hminus0 h2, sub_zero] @@ -7042,23 +7040,8 @@ theorem fhat_eq_of_inversion {g ψ : Rn n → ℂ} (hgc : Continuous g) (hgi : I ∫ ξ, g ξ * Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ))) (hψi : Integrable ψ) (ξ : Rn n) : fhat ψ ξ = g ξ := by set g' : Rn n → ℂ := fun v => g ((2 * π) • v) - have hinv : FourierTransformInv.fourierInv g' = ψ := by - ext x - rw [Real.fourierInv_eq, hψ x] - set G : Rn n → ℂ := fun ξ => g ξ * Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) - have hG : ∀ v : Rn n, Real.fourierChar ⟪v, x⟫_ℝ • g' v = G ((2 * π) • v) := by - intro v - rw [Circle.smul_def, Real.fourierChar_apply] - simp only [G, g', inner_smul_right, smul_eq_mul] - rw [mul_comm, real_inner_comm x v] - congr 1 - push_cast - ring_nf - simp_rw [hG] - rw [Measure.integral_comp_smul, finrank_euclideanSpace_fin, abs_inv, abs_pow, - abs_of_pos (by positivity : (0 : ℝ) < 2 * π), Complex.real_smul] - push_cast - ring + have hinv : FourierTransformInv.fourierInv g' = ψ := + funext fun x => (fourierInv_rescale g x).trans (hψ x).symm have hg'c : Continuous g' := hgc.comp (continuous_const_smul _) have hg'i : Integrable g' := hgi.comp_smul (by positivity) have hFi : Integrable (FourierTransform.fourier g') := by @@ -7072,16 +7055,6 @@ theorem fhat_eq_of_inversion {g ψ : Rn n → ℂ} (hgc : Continuous g) (hgi : I rw [fhat_eq_fourier, h] simp only [g', smul_smul, mul_inv_cancel₀ (by positivity : (2 * π) ≠ 0), one_smul] -theorem continuous_fhat_wavePhi (α : Fin n → ℕ) (P : Tile n) : - Continuous (fhat (wavePhi α P)) := by - have h : fhat (wavePhi α P) = fun ξ => ((((2 : ℝ) ^ P.k) ^ ((absA α : ℝ) / 2) : ℝ) : ℂ) * - Complex.exp (-(Complex.I * (⟪P.cI α, ξ - P.cω0 α⟫_ℝ : ℂ))) * - phiHat (dil α ((2 : ℝ) ^ P.k) (ξ - P.cω0 α)) := funext (fhat_wavePhi α P) - rw [h] - have hφ : Continuous (phiHat : Rn n → ℂ) := contDiff_phiHat.continuous - have hd : Continuous fun ξ : Rn n => dil α ((2 : ℝ) ^ P.k) (ξ - P.cω0 α) := by fun_prop - exact (continuous_const.mul (by fun_prop)).mul (hφ.comp hd) - /-- `φ̂_P` vanishes near any `N` separated from `c(ω_{P(0)})` by `2^{-k_P α_j}/4` in some coordinate. -/ theorem fhat_wavePhi_eventually_zero (α : Fin n → ℕ) (P : Tile n) {N : Rn n} {j : Fin n} @@ -7147,11 +7120,11 @@ theorem fhat_wavePsi (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) {m : Rn n /-! ### Term 1 of the `2`-tree case as a convolution -/ theorem continuous_fhat {h : Rn n → ℂ} (hh : Integrable h) : Continuous (fhat h) := by - refine continuous_of_dominated (bound := fun x => ‖h x‖) (fun ξ => ?_) (fun ξ => ?_) hh.norm ?_ - · exact ((by fun_prop : Continuous fun x : Rn n => Complex.exp (-(Complex.I * (⟪x, ξ⟫_ℝ : ℂ))) - ).aestronglyMeasurable.mul hh.aestronglyMeasurable) - · exact Filter.Eventually.of_forall fun x => by rw [norm_mul, norm_cexp_neg_I_mul, one_mul] - · exact Filter.Eventually.of_forall fun x => by fun_prop + have hnormalization : fhat h = fun ξ => FourierTransform.fourier h ((2 * π)⁻¹ • ξ) := + funext (fhat_eq_fourier h) + rw [hnormalization] + exact (VectorFourier.fourierIntegral_continuous Real.continuous_fourierChar + (innerSL ℝ).continuous₂ hh).comp (continuous_const_smul _) theorem norm_wavePsi_le (α : Fin n → ℕ) {m : Rn n → ℂ} {Cm : ℝ} (hmb : ∀ ξ, ‖m ξ‖ ≤ Cm) (N : Rn n) (P : Tile n) (y : Rn n) : @@ -7161,16 +7134,14 @@ theorem norm_wavePsi_le (α : Fin n → ℕ) {m : Rn n → ℂ} {Cm : ℝ} rw [norm_inv, norm_pow, Complex.norm_mul, Complex.norm_ofNat, Complex.norm_real, Real.norm_eq_abs, abs_of_pos Real.pi_pos] rw [h1] - gcongr - refine (norm_integral_le_integral_norm _).trans ?_ + refine mul_le_mul_of_nonneg_left ((norm_integral_le_integral_norm _).trans ?_) (by positivity) rw [← integral_const_mul] refine integral_mono_of_nonneg (Filter.Eventually.of_forall fun ξ => norm_nonneg _) ((integrable_fhat_wavePhi α P).norm.const_mul Cm) (Filter.Eventually.of_forall fun ξ => ?_) change ‖m (ξ - N) * fhat (wavePhi α P) ξ * Complex.exp (Complex.I * (⟪y, ξ⟫_ℝ : ℂ))‖ ≤ Cm * ‖fhat (wavePhi α P) ξ‖ - rw [norm_mul, norm_mul, mul_comm Complex.I, Complex.norm_exp_ofReal_mul_I, mul_one] - gcongr - exact hmb _ + rw [norm_mul, norm_mul, norm_cexp_I_mul, mul_one] + exact mul_le_mul_of_nonneg_right (hmb _) (norm_nonneg _) /-- Convolution of a `ψ` wave packet with an integrable function (Fubini): `∫ ψ^N_P(x − z) h(z) dz = (2π)^{-n} ∫ m(ξ − N) φ̂_P(ξ) hhat(ξ) e^{i x ξ} dξ`. -/ @@ -7181,9 +7152,6 @@ theorem integral_wavePsi_sub_mul (α : Fin n → ℕ) {ν : ℕ} {m : Rn n → Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) := by obtain ⟨Cm, hCm, hmb⟩ := hm.bounded' set g : Rn n → ℂ := fun ξ => m (ξ - N) * fhat (wavePhi α P) ξ - have hgm : AEStronglyMeasurable g volume := - (hm.measurable.comp (measurable_id.sub_const N)).aestronglyMeasurable.mul - (continuous_fhat_wavePhi α P).aestronglyMeasurable have hgi : Integrable g := (integrable_fhat_wavePhi α P).bdd_mul (c := Cm) (hm.measurable.comp (measurable_id.sub_const N)).aestronglyMeasurable (Filter.Eventually.of_forall fun ξ => hmb _) @@ -7193,9 +7161,10 @@ theorem integral_wavePsi_sub_mul (α : Fin n → ℕ) {ν : ℕ} {m : Rn n → have hprod : Integrable (fun p : Rn n × Rn n => h p.1 * g p.2) (volume.prod volume) := hh.mul_prod hgi refine hprod.mono ?_ (Filter.Eventually.of_forall fun p => ?_) - · have hexp : Continuous fun p : Rn n × Rn n => - Complex.exp (Complex.I * (⟪x - p.1, p.2⟫_ℝ : ℂ)) := by fun_prop - exact ((hgm.comp_snd.mul hexp.aestronglyMeasurable).mul hh.aestronglyMeasurable.comp_fst) + · have hexp := continuous_cexp_inner ((continuous_const (y := x)).sub continuous_fst) + continuous_snd + exact (hgi.aestronglyMeasurable.comp_snd.mul hexp.aestronglyMeasurable).mul + hh.aestronglyMeasurable.comp_fst · simp only [Function.uncurry, F, norm_mul, mul_comm Complex.I, Complex.norm_exp_ofReal_mul_I, mul_one] rw [mul_comm] @@ -7231,7 +7200,7 @@ theorem sum_wavePsi_eq_conv (α : Fin n → ℕ) {ν : ℕ} {m : Rn n → ℂ} ( ∫ z, (∑ P ∈ S, c P * wavePsi α m N P (x - z)) * h z := by obtain ⟨Cm, hCm, hmb⟩ := hm.bounded' have hmeasm : Measurable fun ξ => m (ξ - N) := hm.measurable.comp (measurable_id.sub_const N) - have hexpc : Continuous fun ξ : Rn n => Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) := by fun_prop + have hexpc := continuous_cexp_inner (continuous_const (y := x)) continuous_id -- integrability of the Fourier-side integrands have hint1 : ∀ P, Integrable fun ξ => m (ξ - N) * fhat (wavePhi α P) ξ * Complex.exp (Complex.I * (⟪x, ξ⟫_ℝ : ℂ)) := by @@ -7359,10 +7328,11 @@ theorem fhat_finset_sum {ι : Type*} (s : Finset ι) (c : ι → ℂ) (f : ι · refine Finset.sum_congr rfl fun i _ => ?_ rw [← integral_const_mul]; congr 1; ext x; ring · intro i hi - exact (((hf i hi).const_mul (c i)).bdd_mul (c := 1) - ((by fun_prop : Continuous fun x : Rn n => Complex.exp (-(Complex.I * (⟪x, ξ⟫_ℝ : ℂ))) - ).aestronglyMeasurable) (Filter.Eventually.of_forall fun x => by - rw [norm_cexp_neg_I_mul])).congr (Filter.Eventually.of_forall fun x => by ring) + have hphase : Continuous fun x : Rn n => Complex.exp (-(Complex.I * (⟪x, ξ⟫_ℝ : ℂ))) := + continuous_cexp_neg_inner continuous_id continuous_const + exact (((hf i hi).const_mul (c i)).bdd_mul (c := 1) hphase.aestronglyMeasurable + (Filter.Eventually.of_forall fun x => by + rw [norm_cexp_neg_I_mul])).congr (Filter.Eventually.of_forall fun x => by ring) theorem norm_fhat_wavePhi_le' (α : Fin n → ℕ) (P : Tile n) (ξ : Rn n) : ‖fhat (wavePhi α P) ξ‖ ≤ ((2 : ℝ) ^ P.k) ^ ((absA α : ℝ) / 2) := by @@ -7828,8 +7798,10 @@ theorem K2_twoTree_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n have h1 : (normM α (absA α + 1) m).toReal ^ 2 ≤ Nm ^ 2 := pow_le_pow_left₀ ENNReal.toReal_nonneg hNm' 2 calc CH * (normM α (absA α + 1) m).toReal ^ 2 * ∑ P ∈ S, ‖c P‖ ^ 2 - ≤ CH * Nm ^ 2 * ∑ P ∈ S, ‖c P‖ ^ 2 := by gcongr - _ ≤ _ := by gcongr + ≤ CH * Nm ^ 2 * ∑ P ∈ S, ‖c P‖ ^ 2 := + mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left h1 hCH) + (Finset.sum_nonneg fun P _ => sq_nonneg ‖c P‖) + _ ≤ _ := mul_le_mul_of_nonneg_left hsq (mul_nonneg hCH (sq_nonneg Nm)) have hM0L2 : ∫⁻ y, M0 y ^ 2 ≤ ENNReal.ofReal (8 * 3 ^ D * (CH * Nm ^ 2 * (ε ^ 2 * top.vol α))) := by calc ∫⁻ y, M0 y ^ 2 ≤ ENNReal.ofReal (8 * 3 ^ G.D) * ∫⁻ y, Hn y ^ 2 := @@ -7910,9 +7882,8 @@ theorem K2_twoTree_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n setLIntegral_le_lintegral _ _ _ = (a + ENNReal.ofReal K1 * bJ) * volume GJ := lintegral_indicator_const hGm _ _ ≤ (a + ENNReal.ofReal K1 * bJ) * - ENNReal.ofReal (C2 * μ * (2 : ℝ) ^ ((J : DCube n).k * (absA α : ℤ))) := by - gcongr - exact hGJ E hE N hN top T hT μ hμ hmass J J.2 + ENNReal.ofReal (C2 * μ * (2 : ℝ) ^ ((J : DCube n).k * (absA α : ℤ))) := + mul_le_mul' le_rfl (hGJ E hE N hN top T hT μ hμ hmass J J.2) _ = ENNReal.ofReal (C2 * μ) * ((a + ENNReal.ofReal K1 * bJ) * volume ((J : DCube n).toSet α)) := by rw [DCube.volume_toSet, ENNReal.ofReal_mul (by positivity)] @@ -7925,7 +7896,7 @@ theorem K2_twoTree_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n have hS'e : S.filter (fun P => (J : DCube n).k + 2 ≤ P.k) = ∅ := Finset.eq_empty_of_forall_notMem fun P hP => hrel ⟨P, hST (Finset.mem_filter.mp hP).1, (Finset.mem_filter.mp hP).2⟩ - simp [hS'e] + simp only [hS'e, Finset.sum_empty, eNorm_zero, lintegral_zero, zero_le] -- summation over `J` have hU := tsum_indicator_setLIntegral_jSet α hα hn T hTne R set U := ⋃ (J : jSet α T) (_ : (J : DCube n) ∈ R), (J : DCube n).toSet α @@ -7957,10 +7928,9 @@ theorem K2_twoTree_le (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n _ ≤ ENNReal.ofReal (C2 * μ) * a * ENNReal.ofReal (5 ^ n * top.vol α) + ENNReal.ofReal (C2 * μ) * ENNReal.ofReal K1 * ENNReal.ofReal (2 ^ D) * ENNReal.ofReal (Real.sqrt (5 ^ n * top.vol α) * - Real.sqrt (8 * 3 ^ D * (CH * Nm ^ 2 * (ε ^ 2 * top.vol α)))) := by - gcongr - · exact tsum_volume_relevant_le α hα hn hT - · rw [hU]; exact hIU + Real.sqrt (8 * 3 ^ D * (CH * Nm ^ 2 * (ε ^ 2 * top.vol α)))) := + add_le_add (mul_le_mul' le_rfl (tsum_volume_relevant_le α hα hn hT)) + (mul_le_mul' le_rfl (by rw [hU]; exact hIU)) _ = _ := by rw [e1, e2] simp only [a] @@ -8076,7 +8046,8 @@ theorem tree_estimate (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n have hsd : star (d P) * d P = ((‖d P‖ : ℂ)) ^ 2 := Complex.conj_mul' (d P) simp only [c, ite_eq_right h0] calc (‖a P‖ : ℂ) * (star (d P) / (‖d P‖ : ℂ)) * d P - = (‖a P‖ : ℂ) * (star (d P) * d P) / (‖d P‖ : ℂ) := by ring + = (‖a P‖ : ℂ) * (star (d P) * d P) / (‖d P‖ : ℂ) := by + rw [mul_assoc, div_mul_eq_mul_div₀, mul_div_assoc'] _ = (‖a P‖ : ℂ) * (‖d P‖ : ℂ) ^ 2 / (‖d P‖ : ℂ) := by rw [hsd] _ = _ := by push_cast; field_simp have hcn : ∀ P, ‖c P‖ ≤ ‖a P‖ := by @@ -8123,9 +8094,8 @@ theorem tree_estimate (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n (((measurable_wavePsi_comp hm hN P).mul hσ).aestronglyMeasurable) (Filter.Eventually.of_forall fun x => ?_) rw [norm_mul] - calc ‖wavePsi α m (N x) P x‖ * ‖σ x‖ ≤ ‖wavePsi α m (N x) P x‖ * 1 := by - gcongr; exact hσ1 x - _ ≤ _ := by rw [mul_one]; exact norm_wavePsi_le α hmb _ P x + exact (mul_le_mul_of_nonneg_left (hσ1 x) (norm_nonneg _)).trans + (by rw [mul_one]; exact norm_wavePsi_le α hmb _ P x) have hsum : ∑ P ∈ T, c P * d P = ∫ x, σ x * Fs T x := by have h1 : ∀ P, c P * d P = ∫ x, c P * (E ∩ N ⁻¹' (P.semiHO α r)).indicator (fun x => wavePsi α m (N x) P x * σ x) x := by @@ -8155,11 +8125,10 @@ theorem tree_estimate (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn : 0 < n rw [← Finset.sum_filter_add_sum_filter_not T (fun P => top.cω α ∈ P.semiHO α r)] exact add_comm _ _ rw [hsplit] - calc ‖σ x‖ₑ * ‖Fs S1 x + Fs S2 x‖ₑ ≤ 1 * ‖Fs S1 x + Fs S2 x‖ₑ := by - gcongr - rw [← ofReal_norm] - exact ENNReal.ofReal_le_one.mpr (hσ1 x) - _ ≤ _ := by rw [one_mul]; exact eNorm_add_le _ _ + have hσx : ‖σ x‖ₑ ≤ 1 := by + rw [← ofReal_norm] + exact ENNReal.ofReal_le_one.mpr (hσ1 x) + exact (mul_le_mul' hσx le_rfl).trans (by rw [one_mul]; exact eNorm_add_le _ _) _ = _ := lintegral_add_left (hFm S1).eNorm _ have hK1b := hK1 m hm E hE N hN top T hT c ε μ hε hμ hc hmass1 have hA1 := lintegral_treeSum_le α hα hn (r := r) hm hE hN T hTne S1 hS1T c @@ -8448,10 +8417,9 @@ theorem keyEstimate_of_classM (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn rw [c2] at hR''x have : 0 ≤ Ce * Nm * Mw * F * ((2 : ℝ) ^ j)⁻¹ := by positivity simp only [B] at c3 ⊢ - nlinarith only [hRx, hR'x, hR''x, c3, this] + linarith only [hRx, hR'x, hR''x, c3, this] -- the remaining tiles contribute at most `2^{-j} Z` set Z := ∑ P ∈ S, ((2 : ℝ) ^ P.k) ^ ((absA α : ℝ) / 2) * ‖dualTerm α m r N E σ P‖ - have hZ : 0 ≤ Z := Finset.sum_nonneg fun P _ => by positivity have hfin : ∀ j : ℕ, ∑ P ∈ S, x P ≤ 2 * A + 2 * B + ((2 : ℝ) ^ j)⁻¹ * Z := by intro j obtain ⟨R, hRS, _, hRE, hRx⟩ := hph2 j @@ -8465,22 +8433,20 @@ theorem keyEstimate_of_classM (α : Fin n → ℕ) (hα : ∀ i, 1 ≤ α i) (hn (norm_pairing_le_of_energy_le α (by positivity) hRE hP) (norm_nonneg _) _ ≤ _ := Finset.sum_le_sum_of_subset_of_nonneg hRS fun P _ _ => by positivity have : 0 ≤ 2 * B * ((2 : ℝ) ^ j)⁻¹ := by positivity - nlinarith only [hRx, hRZ, this] + linarith only [hRx, hRZ, this] have hlim : ∑ P ∈ S, x P ≤ 2 * A + 2 * B := by - refine le_of_forall_pos_le_add fun δ hδ => ?_ - obtain ⟨j, hj⟩ := exists_pow_lt_of_lt_one (show 0 < δ / (Z + 1) by positivity) - (by norm_num : (1 / 2 : ℝ) < 1) - have h1 : ((2 : ℝ) ^ j)⁻¹ * Z ≤ δ := by - rw [← one_div, ← one_div_pow] - calc (1 / 2 : ℝ) ^ j * Z ≤ δ / (Z + 1) * Z := by gcongr - _ ≤ δ := by - rw [div_mul_eq_mul_div, div_le_iff₀ (by positivity)]; nlinarith - exact (hfin j).trans (add_le_add_right h1 (2 * A + 2 * B)) + have hpow : Filter.Tendsto (fun j : ℕ => ((2 : ℝ) ^ j)⁻¹) Filter.atTop (nhds 0) := by + simp_rw [← inv_pow] + exact tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num) (by norm_num) + have hlimit : Filter.Tendsto (fun j : ℕ => 2 * A + 2 * B + ((2 : ℝ) ^ j)⁻¹ * Z) + Filter.atTop (nhds (2 * A + 2 * B)) := by + simpa only [zero_mul, add_zero] using (hpow.mul_const Z).const_add (2 * A + 2 * B) + exact ge_of_tendsto' hlimit hfin calc ∑ P ∈ S, x P ≤ 2 * A + 2 * B := hlim _ = Nm * (8 * Cm * V + 4 * Ce * Mw * F) := by simp only [A, B]; ring _ ≤ Nm * ((8 * Cm + 4 * Ce * Mw) * (V + F)) := by gcongr - nlinarith only [mul_nonneg hCm hF, mul_nonneg (mul_nonneg hCe hMw.le) hV] + linarith only [mul_nonneg hCm hF, mul_nonneg (mul_nonneg hCe hMw.le) hV] _ = _ := by ring /-- **Theorem 3.2** (paper, (3.4), texline~199–204), in the form used for Theorem 1.1: for diff --git a/LeanPool/CarlesonLT/Imports.lean b/LeanPool/CarlesonLT/Imports.lean index efec6dab3f..69b2003b9a 100644 --- a/LeanPool/CarlesonLT/Imports.lean +++ b/LeanPool/CarlesonLT/Imports.lean @@ -9,6 +9,7 @@ module -- shake: keep-all --deprecated_module: ignore public import LeanPool.CarlesonLT public import LeanPool.CarlesonLT.Auto.AnisotropicCarleson public import LeanPool.CarlesonLT.Auto.ClassicalCarleson +public import LeanPool.CarlesonLT.Auto.FourierKernels public import LeanPool.CarlesonLT.Auto.HardyLittlewoodMaximal public import LeanPool.CarlesonLT.Auto.ModelOperator public import LeanPool.CarlesonLT.Auto.ParametricIntegralContDiff