diff --git a/LeanPool/IwaniecBeurlingAhlfors.lean b/LeanPool/IwaniecBeurlingAhlfors.lean new file mode 100644 index 0000000000..a23bf236c5 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors.lean @@ -0,0 +1,39 @@ +/- +Copyright (c) 2026 Lean Pool contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Lean Pool contributors +-/ + +module + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Astala +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.Norm +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.NormTorus +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Hessian +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Quasiconvex + +/-! +# Iwaniec's conjecture on the Beurling–Ahlfors norm + +Source: arxiv:2609.28311, url:https://github.com/vltanh/lean4-iwaniec/tree/f310788a42a6935fd9e24092f9df95e2682afb3b +Authors: The-Anh Vu-Le +Status: verified +Main declarations: `Agazzi.theorem1`, `Agazzi.corollary2_norm` +Tags: singular-integrals, quasiconvexity, fourier-multipliers, beltrami-equation +MSC: 42B20, 49J45, 30C62 +-/ + +/-! +## Upstream Lean sources + +The theorem proofs come from The-Anh Vu-Le's `lean4-iwaniec`, commit +`f310788a42a6935fd9e24092f9df95e2682afb3b`. The imported support modules retain their +upstream authorship and Apache 2.0 license. They come from the following pinned dependencies. + +* `lean4-calculus-of-variations`, `a3778e447c557dd8eb81b84f47db4aa9ed0070d0`. +* `lean4-harmonic-analysis`, `4c9fb088fe3ed7452430f825730e3d23fa4d0a6a`. +* `lean4-banach-probability`, `dc3966ce34fbc31b2936a0ca9b8a50356d690ae1`. + +Lean Pool relocated module paths, ported the proofs to its current toolchain and library +pins, and applies its warning, style, performance and trust checks to the imported sources. +-/ diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Astala.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Astala.lean new file mode 100644 index 0000000000..19703cb41a --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Astala.lean @@ -0,0 +1,247 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.Norm +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Beltrami + +/-! +# Quasiregular extension of Astala's higher-integrability result + +"Corollary 2 implies the sharp higher integrability of derivatives of quasiconformal maps in the +plane, originally obtained by complex-analytical methods in [Astala1994]." + +Corollary 1.2 of K. Astala, *Area distortion of quasiconformal mappings*, +Acta Math. 173 (1994), 37–60, gives the sharp exponent for quasiconformal homeomorphisms. +Here `astala` extends the derivative-integrability conclusion to quasiregular maps by applying +Bojarski's criterion to the sharp Beurling–Ahlfors norm from Corollary 2 of Agazzi et al. + +Let `Ω ⊆ ℂ` be open and `0 ≤ k < 1`. A map `f ∈ W^{1,2}_loc (Ω)` with `|∂_zbar f| ≤ k |∂f|` almost +everywhere in `Ω` is `K`-quasiregular, `K = (1 + k) / (1 − k)`; the `K`-quasiconformal maps are the +homeomorphic ones. With the weak partial derivatives `fx`, `fy` of `f`, `∂f = (fx − i fy) / 2` and +`∂_zbar f = (fx + i fy) / 2`, so the condition reads `|fx + i fy| ≤ k |fx − i fy|`. + +* `astala`: `Df ∈ L^p_loc (Ω)`, that is `fx, fy ∈ L^p_loc (Ω)`, for every `p ≥ 2` with + `k (p − 1) < 1`, that is `2 ≤ p < 1 + 1/k = 2K / (K − 1)` (every `p ≥ 2` if `k = 0`). This is the + quasiregular extension of Astala's Corollary 1.2. +* `astala_sharp`: the exponent is sharp. For `K > 1`, the radial stretch `f (z) = z |z|^{1/K − 1}` + is a homeomorphism of `ℂ` in `W^{1,2}_loc (ℂ)` with `|∂_zbar f| = k |∂f|` off `0`, + `k = (K − 1) / (K + 1)`, so it is `K`-quasiconformal, while `∂_x f ∉ L^{2K/(K−1)}` on every disc + around `0`; at `p = 2K / (K − 1)`, `k (p − 1) = 1`. + +## Proof + +`astala`: Corollary 2 (b) gives `‖𝒮‖_p = p* − 1 = p − 1` for `p ≥ 2` (`corollary2_norm`). +Since `k ‖𝒮‖_p = k (p − 1) < 1`, Bojarski's integrability criterion gives `Df ∈ L^p_loc (Ω)` +(`HarmonicAnalysis.memLpLoc_of_beltrami`: a cut-off `g = η f`, `∂g = 𝒮 ∂_zbar g`, and a Neumann +series for `∂_zbar g − μ 𝒮 ∂_zbar g = h` on `L^p`, compared with the `L²` solution). The weak +partial derivatives give the weak derivative `Df (z) v = v.re fx (z) + v.im fy (z)`. + +`astala_sharp`: the radial stretch with exponent `α = 1/K`, in the package +(`HarmonicAnalysis.Complex.RadialStretch`): `∂f = ((1 + α)/2) |z|^{α − 1}`, +`|∂_zbar f| = ((1 − α)/2) |z|^{α − 1}`, `|∂_x f| ≥ α |z|^{α − 1}`, and `∫_{|z| < r} |z|^{−2} = ∞`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped ENNReal ContDiff + +namespace Agazzi + +/-- The real-linear map `v ↦ v.re a + v.im b`, the derivative with the partial derivatives `a` +and `b`. -/ +private def partialsCLM (a b : ℂ) : ℂ →L[ℝ] ℂ := + Complex.reCLM.smulRight a + Complex.imCLM.smulRight b + +private theorem partialsCLM_apply (a b v : ℂ) : partialsCLM a b v = v.re • a + v.im • b := by + simp [partialsCLM] + +private theorem continuous_partialsCLM : + Continuous fun q : ℂ × ℂ => partialsCLM q.1 q.2 := + ((ContinuousLinearMap.smulRightL ℝ ℂ ℂ Complex.reCLM).continuous.comp continuous_fst).add + ((ContinuousLinearMap.smulRightL ℝ ℂ ℂ Complex.imCLM).continuous.comp continuous_snd) + +private theorem norm_partialsCLM_le (a b : ℂ) : ‖partialsCLM a b‖ ≤ ‖a‖ + ‖b‖ := by + refine ContinuousLinearMap.opNorm_le_bound _ (by positivity) fun v => ?_ + rw [partialsCLM_apply] + calc ‖v.re • a + v.im • b‖ ≤ |v.re| * ‖a‖ + |v.im| * ‖b‖ := by + refine (norm_add_le _ _).trans ?_ + rw [norm_smul, norm_smul, Real.norm_eq_abs, Real.norm_eq_abs] + _ ≤ ‖v‖ * ‖a‖ + ‖v‖ * ‖b‖ := by + gcongr + · exact Complex.abs_re_le_norm v + · exact Complex.abs_im_le_norm v + _ = (‖a‖ + ‖b‖) * ‖v‖ := by ring + +private theorem dzPart_partialsCLM (a b : ℂ) : + HarmonicAnalysis.dzPart (partialsCLM a b) = (2⁻¹ : ℂ) * (a - Complex.I * b) := by + simp [HarmonicAnalysis.dzPart, partialsCLM_apply] + +private theorem dzbarPart_partialsCLM (a b : ℂ) : + HarmonicAnalysis.dzbarPart (partialsCLM a b) = (2⁻¹ : ℂ) * (a + Complex.I * b) := by + simp [HarmonicAnalysis.dzbarPart, partialsCLM_apply] + +/-- The weak partial derivatives `fx`, `fy` give the weak derivative +`Df (z) v = v.re fx (z) + v.im fy (z)` (`∂_v φ = v.re ∂_x φ + v.im ∂_y φ`). -/ +private theorem hasWeakFDerivOn_partialsCLM {Ω : Set ℂ} (hΩ : IsOpen Ω) {f fx fy : ℂ → ℂ} + (hf : MemW12Loc Ω f fx fy) : + HarmonicAnalysis.HasWeakFDerivOn Ω f fun z => partialsCLM (fx z) (fy z) := by + obtain ⟨hf2, hfx2, hfy2, hx, hy⟩ := hf + have hloc : ∀ g : ℂ → ℂ, MemLpLoc g 2 Ω → LocallyIntegrableOn g Ω volume := fun g hg => + HarmonicAnalysis.MemLpLoc.locallyIntegrableOn hΩ (by norm_num) hg + intro v φ hφ hφc hφΩ + have hint : ∀ w : ℂ, Integrable fun z => fderiv ℝ φ z w • f z := fun w => + HarmonicAnalysis.sob_integrable_smul_of_tsupport_subset (hloc f hf2) + ((hφ.continuous_fderiv (by simp)).clm_apply continuous_const) (hφc.fderiv_apply (𝕜 := ℝ) w) + ((tsupport_fderiv_apply_subset ℝ w).trans hφΩ) + have hint' : ∀ g : ℂ → ℂ, MemLpLoc g 2 Ω → Integrable fun z => φ z • g z := fun g hg => + HarmonicAnalysis.sob_integrable_smul_of_tsupport_subset (hloc g hg) hφ.continuous hφc hφΩ + have hv : ∀ z, fderiv ℝ φ z v = + v.re * fderiv ℝ φ z 1 + v.im * fderiv ℝ φ z Complex.I := by + intro z + have : v = v.re • (1 : ℂ) + v.im • Complex.I := by + simp [Complex.real_smul, Complex.re_add_im] + conv_lhs => rw [this] + rw [map_add, map_smul, map_smul, smul_eq_mul, smul_eq_mul] + have hφx := hx φ hφ hφc hφΩ + have hφy := hy φ hφ hφc hφΩ + calc ∫ z, fderiv ℝ φ z v • f z + = ∫ z, (v.re • (fderiv ℝ φ z 1 • f z) + v.im • (fderiv ℝ φ z Complex.I • f z)) := by + refine integral_congr_ae (ae_of_all _ fun z => ?_) + simp only [hv, add_smul, mul_smul] + _ = v.re • (∫ z, fderiv ℝ φ z 1 • f z) + v.im • ∫ z, fderiv ℝ φ z Complex.I • f z := by + have h := integral_add ((hint 1).smul v.re) ((hint Complex.I).smul v.im) + simp only [Pi.smul_apply] at h + rw [h, integral_smul, integral_smul] + _ = -(v.re • (∫ z, φ z • fx z) + v.im • ∫ z, φ z • fy z) := by + rw [hφx, hφy, smul_neg, smul_neg, neg_add] + _ = -∫ z, φ z • partialsCLM (fx z) (fy z) v := by + have h := integral_add ((hint' fx hfx2).smul v.re) ((hint' fy hfy2).smul v.im) + simp only [Pi.smul_apply] at h + rw [← integral_smul, ← integral_smul, ← h] + congr 1 + refine integral_congr_ae (ae_of_all _ fun z => ?_) + simp only [partialsCLM_apply, smul_add, smul_comm (φ z)] + +/-- The partial derivatives are in `L^p_loc` with the derivative they define. -/ +private theorem memLpLoc_partialsCLM {Ω : Set ℂ} {fx fy : ℂ → ℂ} {p : ℝ≥0∞} + (hx : MemLpLoc fx p Ω) (hy : MemLpLoc fy p Ω) : + HarmonicAnalysis.MemLpLoc (fun z => partialsCLM (fx z) (fy z)) p Ω := by + intro K hKΩ hK + have hxK := hx K hKΩ hK + have hyK := hy K hKΩ hK + refine (hxK.norm.add hyK.norm).of_le + (continuous_partialsCLM.comp_aestronglyMeasurable + (hxK.aestronglyMeasurable.prodMk hyK.aestronglyMeasurable)) (ae_of_all _ fun z => ?_) + simp only [Pi.add_apply, Real.norm_eq_abs] + exact (norm_partialsCLM_le _ _).trans (le_abs_self _) + +/-- A derivative in `L^p_loc` has its partial derivatives in `L^p_loc`. -/ +private theorem memLpLoc_apply {Ω : Set ℂ} {Df : ℂ → ℂ →L[ℝ] ℂ} {p : ℝ≥0∞} + (h : HarmonicAnalysis.MemLpLoc Df p Ω) (v : ℂ) : MemLpLoc (fun z => Df z v) p Ω := + fun K hKΩ hK => (ContinuousLinearMap.apply ℝ ℂ v).comp_memLp' (h K hKΩ hK) + +/-- **Quasiregular extension of Astala's Corollary 1.2** (Acta Math. 173 (1994)): +let `Ω ⊆ ℂ` be open, `0 ≤ k < 1`, and `f ∈ W^{1,2}_loc (Ω)` with the weak partial derivatives +`fx`, `fy` and `|∂_zbar f| ≤ k |∂f|` almost everywhere in `Ω` (`∂_zbar f = (fx + i fy)/2`, +`∂f = (fx − i fy)/2`: `f` is `K`-quasiregular, `K = (1 + k)/(1 − k)`). Then `Df ∈ L^p_loc (Ω)` for +every `p ≥ 2` with `k (p − 1) < 1`, that is `2 ≤ p < 1 + 1/k = 2K/(K − 1)`. + +Proof: apply Bojarski's criterion with `‖𝒮‖_p = p − 1` from Corollary 2 (b). -/ +theorem astala {Ω : Set ℂ} (hΩ : IsOpen Ω) {k p : ℝ} (hk : 0 ≤ k) (hk1 : k < 1) (hp : 2 ≤ p) + (hpk : k * (p - 1) < 1) {f fx fy : ℂ → ℂ} (hf : MemW12Loc Ω f fx fy) + (hbel : ∀ᵐ z ∂(volume.restrict Ω), + ‖fx z + Complex.I * fy z‖ ≤ k * ‖fx z - Complex.I * fy z‖) : + MemLpLoc fx (ENNReal.ofReal p) Ω ∧ MemLpLoc fy (ENNReal.ofReal p) Ω := by + have hS : HarmonicAnalysis.beurlingPowNorm 1 p = ENNReal.ofReal (p - 1) := by + rw [← beurlingNorm_eq_beurlingPowNorm, corollary2_norm (by linarith), + pStar_sub_one_of_two_le hp] + have hbel' : ∀ᵐ z ∂(volume.restrict Ω), + ‖HarmonicAnalysis.dzbarPart (partialsCLM (fx z) (fy z))‖ ≤ + k * ‖HarmonicAnalysis.dzPart (partialsCLM (fx z) (fy z))‖ := by + filter_upwards [hbel] with z hz + rw [dzbarPart_partialsCLM, dzPart_partialsCLM, norm_mul, norm_mul, ← mul_assoc, + mul_comm k, mul_assoc] + exact mul_le_mul_of_nonneg_left hz (norm_nonneg _) + have h := HarmonicAnalysis.memLpLoc_of_beltrami hΩ hk hk1 hp + (by rw [hS]; exact ENNReal.ofReal_ne_top) + (by rw [hS, ENNReal.toReal_ofReal (by linarith)]; exact hpk) hf.1 + (memLpLoc_partialsCLM hf.2.1 hf.2.2.1) (hasWeakFDerivOn_partialsCLM hΩ hf) hbel' + refine ⟨?_, ?_⟩ + · simpa [partialsCLM_apply] using memLpLoc_apply h 1 + · simpa [partialsCLM_apply] using memLpLoc_apply h Complex.I + +/-- A continuous function is in `L^p_loc (ℂ)`. -/ +private theorem memLpLoc_of_continuous {g : ℂ → ℂ} (hg : Continuous g) (p : ℝ≥0∞) : + MemLpLoc g p Set.univ := by + intro K _ hK + have : IsFiniteMeasure (volume.restrict K) := isFiniteMeasure_restrict.2 hK.measure_lt_top.ne + obtain ⟨M, hM⟩ := hK.exists_bound_of_continuousOn hg.continuousOn + exact MemLp.of_bound hg.aestronglyMeasurable M + (ae_restrict_of_forall_mem hK.measurableSet hM) + +/-- `A 1 + i A i = 2 ∂_zbar A` and `A 1 − i A i = 2 ∂A`. -/ +private theorem norm_apply_add_I_mul (A : ℂ →L[ℝ] ℂ) : + ‖A 1 + Complex.I * A Complex.I‖ = 2 * ‖HarmonicAnalysis.dzbarPart A‖ := by + simp only [HarmonicAnalysis.dzbarPart, norm_mul, norm_inv, Complex.norm_ofNat] + field_simp + +private theorem norm_apply_sub_I_mul (A : ℂ →L[ℝ] ℂ) : + ‖A 1 - Complex.I * A Complex.I‖ = 2 * ‖HarmonicAnalysis.dzPart A‖ := by + simp only [HarmonicAnalysis.dzPart, norm_mul, norm_inv, Complex.norm_ofNat] + field_simp + +/-- **Sharpness of Astala's theorem** (TeX line 325): for `K > 1`, the radial stretch +`f (z) = z |z|^{1/K − 1}` is `K`-quasiconformal: a homeomorphism of `ℂ`, in `W^{1,2}_loc (ℂ)` +with the weak partial derivatives `fx = ∂_x f`, `fy = ∂_y f` (its pointwise ones), and +`|∂_zbar f| = k |∂f|` off `0` (`|fx + i fy| = k |fx − i fy|`), `k = (K − 1)/(K + 1)`. For +`p = 2K/(K − 1)`, `k (p − 1) = 1`, and `fx ∉ L^p` on every disc around `0`: the condition +`k (p − 1) < 1` of `astala` cannot be relaxed. + +Proof: the radial stretch with exponent `1/K` in the package `HarmonicAnalysis` +(`HarmonicAnalysis.Complex.RadialStretch`). -/ +theorem astala_sharp {K : ℝ} (hK : 1 < K) : + (∃ e : ℂ ≃ₜ ℂ, ⇑e = radialStretch K⁻¹) ∧ + MemW12Loc Set.univ (radialStretch K⁻¹) (fun z => fderiv ℝ (radialStretch K⁻¹) z 1) + (fun z => fderiv ℝ (radialStretch K⁻¹) z Complex.I) ∧ + (∀ z, z ≠ 0 → + ‖fderiv ℝ (radialStretch K⁻¹) z 1 + Complex.I * fderiv ℝ (radialStretch K⁻¹) z Complex.I‖ = + (K - 1) / (K + 1) * ‖fderiv ℝ (radialStretch K⁻¹) z 1 - + Complex.I * fderiv ℝ (radialStretch K⁻¹) z Complex.I‖) ∧ + (K - 1) / (K + 1) * (2 * K / (K - 1) - 1) = 1 ∧ + ∀ r, 0 < r → ¬ MemLp (fun z => fderiv ℝ (radialStretch K⁻¹) z 1) + (ENNReal.ofReal (2 * K / (K - 1))) (volume.restrict (Metric.ball 0 r)) := by + have hK0 : 0 < K := by linarith + have hα : 0 < K⁻¹ := inv_pos.2 hK0 + have hα1 : K⁻¹ < 1 := inv_lt_one_of_one_lt₀ hK + have hw := HarmonicAnalysis.hasWeakFDerivOn_radialStretch hα hα1.le + have hD := HarmonicAnalysis.memLpLoc_fderiv_radialStretch hα hα1.le + refine ⟨HarmonicAnalysis.exists_homeomorph_radialStretch hα, + ⟨memLpLoc_of_continuous (HarmonicAnalysis.continuous_radialStretch hα) 2, + memLpLoc_apply hD 1, memLpLoc_apply hD Complex.I, hw 1, hw Complex.I⟩, + fun z hz => ?_, ?_, fun r hr => ?_⟩ + · rw [norm_apply_add_I_mul, norm_apply_sub_I_mul, radialStretch_eq, + HarmonicAnalysis.norm_dzbarPart_fderiv_radialStretch hα hα1.le hz] + have : (1 - K⁻¹) / (1 + K⁻¹) = (K - 1) / (K + 1) := by + field_simp + rw [this] + ring + · have : K - 1 ≠ 0 := by linarith + have : K + 1 ≠ 0 := by linarith + field_simp + ring + · have h := HarmonicAnalysis.not_memLp_fderiv_radialStretch_apply_one hα hα1 hr + have : 2 / (1 - K⁻¹) = 2 * K / (K - 1) := by + have : K - 1 ≠ 0 := by linarith + field_simp + rwa [this] at h + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Bridges.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Bridges.lean new file mode 100644 index 0000000000..35092ae530 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Bridges.lean @@ -0,0 +1,205 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Defs +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.RadialStretch + +/-! +# Bridges: the definitions of `Agazzi.Defs` and the facts that the paper states about them + +* The jacobian, the unit square and periodicity are those of the package `CalculusOfVariations` + (`grad`, `unitCube 2`, the periodicity in `QuasiconvexAtPeriodic`); the Beurling–Ahlfors + transform, its norm and the Wirtinger derivatives are those of the package `HarmonicAnalysis` + (`beurlingPow 1`, `beurlingPowNorm 1`, `dz`, `dzbar`), and so are `L^p_loc`, weak derivatives and + the radial stretch (`MemLpLoc`, `HasWeakLineDerivOn`, `radialStretch`). +* The facts that the paper states in the introduction (TeX lines 264–268): with + `A z = a₊ z + a₋ (conj z)`, the operator norm is `|A| = |a₊| + |a₋|` (`opNorm_eq`) and + `det A = |a₊|² − |a₋|²` (`det_eq`). +* `p* − 1 = (p − 1)⁻¹` for `1 < p ≤ 2` and `p − 1` for `p ≥ 2` (the second equality of + `(eq:BA-sharp-norm)`). +* The torus `Q` has measure `1` (`volume_unitSquare`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped SchwartzMap FourierTransform ENNReal ComplexConjugate + +namespace Agazzi + +theorem jacobian_eq_grad (φ : (Fin 2 → ℝ) → Fin 2 → ℝ) (x : Fin 2 → ℝ) : + jacobian φ x = CalculusOfVariations.grad φ x := rfl + +theorem unitSquare_eq_unitCube : unitSquare = CalculusOfVariations.unitCube 2 := rfl + +/-- `|Q| = 1`. Proof: `(0, 1)²` is a product of two intervals of length `1`. -/ +theorem volume_unitSquare : volume unitSquare = 1 := by + simp [unitSquare, volume_pi_pi] + +/-- Proof: both are `𝓕⁻¹ (((conj ξ) / ξ) · 𝓕 f)`, the package's symbol to the first power. -/ +theorem beurling_eq_beurlingPow (f : ℂ → ℂ) : + beurling f = HarmonicAnalysis.beurlingPow 1 f := by + simp [beurling, HarmonicAnalysis.beurlingPow, HarmonicAnalysis.fourierMultiplier, + HarmonicAnalysis.beurlingSymbol] + +/-- Proof: the two suprema have the same terms, by `beurling_eq_beurlingPow`. -/ +theorem beurlingNorm_eq_beurlingPowNorm (p : ℝ) : + beurlingNorm p = HarmonicAnalysis.beurlingPowNorm 1 p := by + unfold beurlingNorm + simp_rw [beurling_eq_beurlingPow] + rfl + +theorem dz_eq (g : ℂ → ℂ) : dz g = HarmonicAnalysis.dz g := rfl + +theorem memLpLoc_iff {f : ℂ → ℂ} {p : ℝ≥0∞} {Ω : Set ℂ} : + MemLpLoc f p Ω ↔ HarmonicAnalysis.MemLpLoc f p Ω := Iff.rfl + +theorem hasWeakLineDerivOn_iff {Ω : Set ℂ} {f g : ℂ → ℂ} {v : ℂ} : + HasWeakLineDerivOn Ω f g v ↔ HarmonicAnalysis.HasWeakLineDerivOn Ω f g v := Iff.rfl + +theorem radialStretch_eq : radialStretch = HarmonicAnalysis.radialStretch := rfl + +theorem dzbar_eq (g : ℂ → ℂ) : dzbar g = HarmonicAnalysis.dzbar g := rfl + +/-- `𝒮 ∘ ∂_zbar = ∂_z` on Schwartz functions: the characterization `(eq:BA-definition)` of the +Beurling–Ahlfors transform (the package's `HarmonicAnalysis.beurlingPow_dzbar_iterate`). + +Proof: the package's `𝓑^k (∂_zbar^k F) = ∂^k F` for `k = 1`. -/ +theorem beurling_dzbar (F : 𝓢(ℂ, ℂ)) : beurling (dzbar F) = dz F := by + have h := HarmonicAnalysis.beurlingPow_dzbar_iterate 1 F + rw [Function.iterate_one, Function.iterate_one] at h + rw [beurling_eq_beurlingPow, dzbar_eq, dz_eq] + exact h + +/-- `det A = |a₊|² − |a₋|²` (TeX line 268). + +Proof: expand `|a₊|² = ((a₁₁ + a₂₂)² + (a₂₁ − a₁₂)²) / 4` and +`|a₋|² = ((a₁₁ − a₂₂)² + (a₂₁ + a₁₂)²) / 4`. -/ +theorem det_eq (A : Matrix (Fin 2) (Fin 2) ℝ) : + A.det = ‖conformalPart A‖ ^ 2 - ‖anticonformalPart A‖ ^ 2 := by + rw [Matrix.det_fin_two, Complex.sq_norm, Complex.sq_norm, Complex.normSq_apply, + Complex.normSq_apply] + simp only [conformalPart, anticonformalPart] + ring + +/-- The point `x₀ + i x₁ ∈ ℂ` of `x ∈ ℝ²`. -/ +private def rowalgC (x : EuclideanSpace ℝ (Fin 2)) : ℂ := ⟨x 0, x 1⟩ + +private lemma norm_rowalgC (x : EuclideanSpace ℝ (Fin 2)) : ‖rowalgC x‖ = ‖x‖ := by + rw [EuclideanSpace.norm_eq, Fin.sum_univ_two, Complex.norm_eq_sqrt_sq_add_sq] + simp [rowalgC, Real.norm_eq_abs, sq_abs] + +/-- `A z = a₊ z + a₋ (conj z)` under `ℝ² = ℂ`. -/ +private lemma rowalgC_apply (A : Matrix (Fin 2) (Fin 2) ℝ) (x : EuclideanSpace ℝ (Fin 2)) : + rowalgC (Matrix.toEuclideanCLM (n := Fin 2) (𝕜 := ℝ) A x) = + conformalPart A * rowalgC x + anticonformalPart A * conj (rowalgC x) := by + apply Complex.ext <;> + simp [rowalgC, conformalPart, anticonformalPart, Matrix.mulVec, dotProduct, Fin.sum_univ_two] <;> + ring + +/-- For `a, b ∈ ℂ` there is a unit `z` with `|a z + b (conj z)| = |a| + |b|`: if `a, b ≠ 0`, a +square root +`z` of `u = ā b / (|a| |b|)` (then `(conj z) (a z² + b) = (|a| / |b| + 1) (conj z) b`); otherwise +`z = 1`. -/ +private lemma rowalg_exists_unit (a b : ℂ) : + ∃ z : ℂ, ‖z‖ = 1 ∧ ‖a * z + b * conj z‖ = ‖a‖ + ‖b‖ := by + by_cases h : a = 0 ∨ b = 0 + · refine ⟨1, by simp, ?_⟩ + rcases h with rfl | rfl <;> simp + · obtain ⟨ha, hb⟩ := not_or.1 h + have ha' : 0 < ‖a‖ := norm_pos_iff.2 ha + have hb' : 0 < ‖b‖ := norm_pos_iff.2 hb + set u : ℂ := conj a * b / ((‖a‖ * ‖b‖ : ℝ) : ℂ) with hu + have hu1 : ‖u‖ = 1 := by + rw [hu, norm_div, norm_mul, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos (mul_pos ha' hb')] + field_simp + obtain ⟨z, hz⟩ : ∃ z : ℂ, z ^ 2 = u := ⟨_, Complex.cpow_nat_inv_pow u two_ne_zero⟩ + have hz1 : ‖z‖ = 1 := by + have h2 : ‖z‖ ^ 2 = 1 := by rw [← norm_pow, hz, hu1] + have h0 := norm_nonneg z + nlinarith + refine ⟨z, hz1, ?_⟩ + have hzc : conj z * z = 1 := by rw [Complex.conj_mul', hz1]; simp + have h1 : a * z ^ 2 + b = ((‖a‖ / ‖b‖ + 1 : ℝ) : ℂ) * b := by + have hab : (‖a‖ : ℂ) ≠ 0 := by exact_mod_cast ha'.ne' + have hbb : (‖b‖ : ℂ) ≠ 0 := by exact_mod_cast hb'.ne' + rw [hz, hu, mul_div_assoc', ← mul_assoc, Complex.mul_conj'] + push_cast + field_simp + have key : a * z + b * conj z = conj z * (((‖a‖ / ‖b‖ + 1 : ℝ) : ℂ) * b) := by + rw [← h1] + linear_combination (-(a * z)) * hzc + rw [key, norm_mul, Complex.norm_conj, hz1, one_mul, norm_mul, Complex.norm_real, + Real.norm_eq_abs, abs_of_pos (by positivity)] + field_simp + +/-- The operator norm of `A` on Euclidean `ℝ²` is `|a₊| + |a₋|` (TeX line 268). + +Proof: with `ℝ² = ℂ`, `A z = a₊ z + a₋ (conj z)`, so `|A z| ≤ (|a₊| + |a₋|) |z|` by the triangle +inequality, with equality at a unit `z` for which `a₊ z` and `a₋ (conj z)` point the same way +(`z² = ā₊ a₋ / |a₊ a₋|` if `a₊ a₋ ≠ 0`, `z = 1` otherwise). -/ +theorem opNorm_eq (A : Matrix (Fin 2) (Fin 2) ℝ) : + ‖Matrix.toEuclideanCLM (n := Fin 2) (𝕜 := ℝ) A‖ = + ‖conformalPart A‖ + ‖anticonformalPart A‖ := by + set T := Matrix.toEuclideanCLM (n := Fin 2) (𝕜 := ℝ) A + apply le_antisymm + · refine ContinuousLinearMap.opNorm_le_bound _ (by positivity) fun x => ?_ + rw [← norm_rowalgC, ← norm_rowalgC, rowalgC_apply] + calc _ ≤ ‖conformalPart A * rowalgC x‖ + ‖anticonformalPart A * conj (rowalgC x)‖ := + norm_add_le _ _ + _ = _ := by rw [norm_mul, norm_mul, Complex.norm_conj]; ring + · obtain ⟨z, hz1, hz⟩ := rowalg_exists_unit (conformalPart A) (anticonformalPart A) + set x : EuclideanSpace ℝ (Fin 2) := WithLp.toLp 2 ![z.re, z.im] + have hx : rowalgC x = z := by simp [x, rowalgC] + have hx1 : ‖x‖ = 1 := by rw [← norm_rowalgC, hx, hz1] + calc ‖conformalPart A‖ + ‖anticonformalPart A‖ = ‖T x‖ := by + rw [← norm_rowalgC, rowalgC_apply, hx, hz] + _ ≤ ‖T‖ * ‖x‖ := T.le_opNorm x + _ = ‖T‖ := by rw [hx1, mul_one] + +/-- `p* − 1 = (p − 1)⁻¹` for `1 < p ≤ 2` (`(eq:BA-sharp-norm)`). + +Proof: `p ≤ p / (p − 1)` as `p − 1 ≤ 1`, so `p* = p / (p − 1)`, and +`p / (p − 1) − 1 = 1 / (p − 1)`. -/ +theorem pStar_sub_one_of_le_two {p : ℝ} (hp : 1 < p) (hp2 : p ≤ 2) : + pStar p - 1 = (p - 1)⁻¹ := by + have h1 : 0 < p - 1 := by linarith + have hle : p ≤ p / (p - 1) := by + rw [le_div_iff₀ h1]; nlinarith + rw [pStar, max_eq_right hle] + field_simp + ring + +/-- `p* − 1 = p − 1` for `p ≥ 2` (`(eq:BA-sharp-norm)`). + +Proof: `p / (p − 1) ≤ p` as `p − 1 ≥ 1`, so `p* = p`. -/ +theorem pStar_sub_one_of_two_le {p : ℝ} (hp2 : 2 ≤ p) : pStar p - 1 = p - 1 := by + have h1 : 0 < p - 1 := by linarith + have hle : p / (p - 1) ≤ p := by + rw [div_le_iff₀ h1]; nlinarith + rw [pStar, max_eq_left hle] + +/-- For `1 < p < 2`, `B_p = (p − 1)⁻¹ (|a₊| − (p − 1) |a₋|) (|a₊| + |a₋|)^{p−1}`: a positive +multiple of the form of the Burkholder function used for `1 < p ≤ 2`. + +Proof: `p* − 1 = (p − 1)⁻¹` (`pStar_sub_one_of_le_two`). -/ +theorem burkholderB_of_lt_two {p : ℝ} (hp : 1 < p) (hp2 : p < 2) + (A : Matrix (Fin 2) (Fin 2) ℝ) : + burkholderB p A = (p - 1)⁻¹ * ((‖conformalPart A‖ + ‖anticonformalPart A‖) ^ (p - 1) * + (‖conformalPart A‖ - (p - 1) * ‖anticonformalPart A‖)) := by + have h1 : p - 1 ≠ 0 := by linarith + simp only [burkholderB, hp2, ↓reduceIte, pStar_sub_one_of_le_two hp hp2.le] + field_simp + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/Norm.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/Norm.lean new file mode 100644 index 0000000000..d9bc024246 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/Norm.lean @@ -0,0 +1,399 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Quasiconvex +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.BaernsteinMontgomerySmith.RemarkB +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.Lehto.LowerBound +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.L2 +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Domain + +/-! +# Corollary 2, second part: the norm of the Beurling–Ahlfors transform + +**Corollary 2** (`cor:Bp-BA`), second assertion `(eq:BA-sharp-norm)`: +`‖𝒮‖_{L^p (ℂ; ℂ) → L^p (ℂ; ℂ)} = p* − 1`, which is `(p − 1)⁻¹` for `1 < p ≤ 2` and `p − 1` for +`2 ≤ p < ∞` (`pStar_sub_one_of_le_two`, `pStar_sub_one_of_two_le`). + +The paper derives it from Theorem 1 "by the arguments in [Baernstein1997a] (see also +[Guerra2026b] for further details)" (TeX line 301), with the lower bound from [Lehto1965] (TeX +line 320). The upper bound `beurlingNorm_le` follows these arguments, which are planar: those of +Baernstein–Montgomery-Smith (arXiv:math/9709215v2, §1: "Conjecture 2 ⇒ Conjecture 3" and remark +(b)) and of Guerra (arXiv:2608.23388, proof of the corollary labelled `cor:beurling-lp` in its +TeX, with the cut-offs of the proof of `cor:beurling`). + +1. Quasiconvexity at `0` with compactly supported test maps. The first assertion of Corollary 2, + for Lipschitz periodic maps (`corollary2_lipschitz`), is the quasiconvexity of `B_p` in the + sense of the package `CalculusOfVariations` (`quasiconvex_burkholderB`, through + `CalculusOfVariations.quasiconvexAtOn_iff_periodic`, Dacorogna, Prop. 5.13), hence on every + bounded set (`CalculusOfVariations.quasiconvexAtOn_of_unitCube`, Dacorogna, Prop. 5.11). For + `u : ℂ → ℂ` smooth with compact support and `φ = (Re u, Im u) : ℝ² → ℝ²` + (`Agazzi.Corollary2Norm.toRealMap u`), at `A = 0` and on a ball that contains the support of + `φ`, it gives `∫_{ℝ²} B_p (D φ) ≥ B_p (0) |Ω| = 0` + (`Agazzi.Corollary2Norm.integral_burkholderB_jacobian_nonneg`). These are the test maps of + Guerra's theorem, compactly supported maps of the plane; Baernstein–Montgomery-Smith state their + conjectures for `f ∈ W_hom^{1,p} (ℂ)`, which contains them. +2. Baernstein–Montgomery-Smith's Conjecture 2. `a₊ (D φ) = ∂u` and `a₋ (D φ) = ∂_zbar u` + (`Agazzi.Corollary2Norm.conformalPart_jacobian_toRealMap`, + `Agazzi.Corollary2Norm.anticonformalPart_jacobian_toRealMap`; their §5: + `α (∇f) = (∂f, ∂_zbar f)`), and `α_p B_p (A) = Φ_p (a₊, a₋)` for `p < 2`, `Φ_p (a₋, a₊)` for `p + ≥ 2`, + with `α_p > 0`. Hence `∫_ℂ Φ_p (∂u, ∂_zbar u) ≥ 0` for `p < 2` and `∫_ℂ Φ_p (∂_zbar u, ∂u) ≥ 0` + for + `p ≥ 2` (`Agazzi.Corollary2Norm.integral_phi_dz_dzbar_nonneg`, + `Agazzi.Corollary2Norm.integral_phi_dzbar_dz_nonneg`). +3. Conjecture 3, by Burkholder's inequality `Φ_p (z, w) ≤ (p* − 1)^p |z|^p − |w|^p` + (`External.BaernsteinMontgomerySmith.phi_le`): for `p ≥ 2`, `∫ |∂u|^p ≤ (p* − 1)^p ∫ |∂_zbar + u|^p`; + for `p < 2`, `∫ |∂_zbar u|^p ≤ (p* − 1)^p ∫ |∂u|^p`, which, applied to `ū` (`∂ū = conj (∂_zbar + u)`, + `∂_zbarū = conj (∂u)`: the interchangeability of `∂f` and `∂_zbar f` of + Baernstein–Montgomery-Smith), is + again `∫ |∂u|^p ≤ (p* − 1)^p ∫ |∂_zbar u|^p`, for every `1 < p < ∞` + (`Agazzi.Corollary2Norm.integral_norm_dz_rpow_le`). +4. Remark (b) of Baernstein–Montgomery-Smith, with Guerra's details: the norm of `𝒮` on `L^p (ℂ)` + is at most the constant of `∫ |∂u|^p ≤ C^p ∫ |∂_zbar u|^p` on `C_c^∞` + (`External.BaernsteinMontgomerySmith.remark_b`). Its proof is general harmonic analysis, in the + package `HarmonicAnalysis` + (`HarmonicAnalysis.beurlingPowNorm_one_le_of_forall_hasCompactSupport`): density, a potential, + the cut-offs `η_R` of Guerra's proof, and the limit. The package follows Guerra's proof, with + Guerra's dense class `C_c^∞`, in the gradient case: the Cauchy transform + `f (z) = (1/π) ∫ g (w) / (z − w) dw` of `g`, with `∂_zbar f = g` and `∂f = 𝒮g`, in place of the + logarithmic potential of a real `h`, a departure that the norm on complex `L^p` forces. + +Steps 2 and 3 are Baernstein–Montgomery-Smith's passage from their Conjecture 2 to their +Conjecture 3; their passage from Conjecture 1 to Conjecture 2, through the Mellin identities, is +the first assertion of Corollary 2 (`corollary2_lipschitz`), which step 1 brings to the plane. +Step 4 is the argument of their remark (b), as Guerra details it. No step uses the torus beyond +Corollary 2 itself. + +A shorter proof of the upper bound, through the torus and transference, is kept beside this one +and not used by `corollary2_norm` (`Agazzi.beurlingNorm_le_of_torus`, in +`Agazzi.Corollary2.NormTorus`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Metric +open scoped ENNReal ComplexConjugate ContDiff + +namespace Agazzi + +namespace Corollary2Norm + +open External.BaernsteinMontgomerySmith (Phi alpha phi_le continuous_dz_of_contDiff + continuous_dzbar_of_contDiff hasCompactSupport_dz hasCompactSupport_dzbar) + +/-! ### The Burkholder integrand and the function `Φ_p` of Baernstein–Montgomery-Smith -/ + +/-- The `p*` of Baernstein–Montgomery-Smith is the paper's. -/ +theorem bms_pStar_eq (p : ℝ) : External.BaernsteinMontgomerySmith.pStar p = pStar p := rfl + +/-- `p ≤ p*`. -/ +theorem le_pStar (p : ℝ) : p ≤ pStar p := le_max_left _ _ + +/-- `α_p = p (1 − 1/p*)^{p−1} > 0` for `1 < p`. -/ +theorem alpha_pos {p : ℝ} (hp : 1 < p) : 0 < alpha p := by + exact External.BaernsteinMontgomerySmith.alpha_pos hp + +/-- `B_p (0) = 0`. -/ +theorem burkholderB_zero (p : ℝ) : burkholderB p 0 = 0 := by + have h1 : conformalPart 0 = 0 := by apply Complex.ext <;> simp [conformalPart] + have h2 : anticonformalPart 0 = 0 := by apply Complex.ext <;> simp [anticonformalPart] + simp [burkholderB, h1, h2] + +/-- `α_p B_p (A) = Φ_p (a₊, a₋)` for `p < 2`. -/ +theorem alpha_mul_burkholderB_of_lt_two {p : ℝ} (hp2 : p < 2) (A : Matrix (Fin 2) (Fin 2) ℝ) : + alpha p * burkholderB p A = Phi p (conformalPart A) (anticonformalPart A) := by + rw [burkholderB, ite_eq_left hp2, Phi, bms_pStar_eq, mul_assoc] + +/-- `α_p B_p (A) = Φ_p (a₋, a₊)` for `p ≥ 2`. -/ +theorem alpha_mul_burkholderB_of_two_le {p : ℝ} (hp2 : 2 ≤ p) (A : Matrix (Fin 2) (Fin 2) ℝ) : + alpha p * burkholderB p A = Phi p (anticonformalPart A) (conformalPart A) := by + rw [burkholderB, ite_eq_right (not_lt.2 hp2), Phi, bms_pStar_eq, mul_assoc, + add_comm ‖anticonformalPart A‖] + +/-! ### The Wirtinger derivatives and the jacobian -/ + +/-- `ℝ² → ℂ`, `x ↦ x₀ + i x₁`, as a continuous linear equivalence: the inverse of +`Complex.measurableEquivPi`. -/ +def planeEquiv : (Fin 2 → ℝ) ≃L[ℝ] ℂ := + Complex.basisOneI.equivFun.toContinuousLinearEquiv.symm + +/-- `planeEquiv` is the inverse of `Complex.measurableEquivPi`. -/ +theorem planeEquiv_apply (x : Fin 2 → ℝ) : planeEquiv x = Complex.measurableEquivPi.symm x := rfl + +/-- `planeEquiv e₀ = 1`. -/ +theorem planeEquiv_single_zero : planeEquiv (Pi.single 0 1) = 1 := by + rw [planeEquiv_apply, Complex.measurableEquivPi_symm_apply] + simp + +/-- `planeEquiv e₁ = i`. -/ +theorem planeEquiv_single_one : planeEquiv (Pi.single 1 1) = Complex.I := by + rw [planeEquiv_apply, Complex.measurableEquivPi_symm_apply] + simp + +/-- The map `φ_u = (Re u, Im u) : ℝ² → ℝ²` of `u : ℂ → ℂ`, with `ℂ ≅ ℝ²`, `x + iy ↦ (x, y)`. -/ +def toRealMap (u : ℂ → ℂ) (y : Fin 2 → ℝ) : Fin 2 → ℝ := + ![(u (planeEquiv y)).re, (u (planeEquiv y)).im] + +/-- `φ_u` is as smooth as `u`. -/ +theorem contDiff_toRealMap {n : WithTop ℕ∞} {u : ℂ → ℂ} (hu : ContDiff ℝ n u) : + ContDiff ℝ n (toRealMap u) := by + have h : ContDiff ℝ n fun y => u (planeEquiv y) := hu.comp planeEquiv.contDiff + refine contDiff_pi.2 fun i => ?_ + fin_cases i + · simp only [toRealMap, Fin.zero_eta, Matrix.cons_val_zero] + exact Complex.reCLM.contDiff.comp h + · simp only [toRealMap, Fin.mk_one, Matrix.cons_val_one, Matrix.cons_val_fin_one] + exact Complex.imCLM.contDiff.comp h + +/-- `φ_u` has compact support if `u` has. -/ +theorem hasCompactSupport_toRealMap {u : ℂ → ℂ} (hu : HasCompactSupport u) : + HasCompactSupport (toRealMap u) := by + have h : HasCompactSupport fun y => u (planeEquiv y) := + hu.comp_homeomorph planeEquiv.toHomeomorph + refine h.mono fun y hy => ?_ + simp only [Function.mem_support] at hy ⊢ + intro h0 + exact hy (by simp [toRealMap, h0]) + +private lemma fderiv_re_comp {u : ℂ → ℂ} {x : Fin 2 → ℝ} + (hu : DifferentiableAt ℝ u (planeEquiv x)) (v : Fin 2 → ℝ) : + fderiv ℝ (fun y => (u (planeEquiv y)).re) x v = + (fderiv ℝ u (planeEquiv x) (planeEquiv v)).re := by + have h := (Complex.reCLM.hasFDerivAt.comp x + (hu.hasFDerivAt.comp x planeEquiv.hasFDerivAt)).fderiv + have e : (fun y => (u (planeEquiv y)).re) = Complex.reCLM ∘ u ∘ planeEquiv := rfl + rw [e, h] + rfl + +private lemma fderiv_im_comp {u : ℂ → ℂ} {x : Fin 2 → ℝ} + (hu : DifferentiableAt ℝ u (planeEquiv x)) (v : Fin 2 → ℝ) : + fderiv ℝ (fun y => (u (planeEquiv y)).im) x v = + (fderiv ℝ u (planeEquiv x) (planeEquiv v)).im := by + have h := (Complex.imCLM.hasFDerivAt.comp x + (hu.hasFDerivAt.comp x planeEquiv.hasFDerivAt)).fderiv + have e : (fun y => (u (planeEquiv y)).im) = Complex.imCLM ∘ u ∘ planeEquiv := rfl + rw [e, h] + rfl + +private lemma jacobian_toRealMap {u : ℂ → ℂ} {x : Fin 2 → ℝ} + (hu : DifferentiableAt ℝ u (planeEquiv x)) (j : Fin 2) : + jacobian (toRealMap u) x 0 j = + (fderiv ℝ u (planeEquiv x) (planeEquiv (Pi.single j 1))).re ∧ + jacobian (toRealMap u) x 1 j = + (fderiv ℝ u (planeEquiv x) (planeEquiv (Pi.single j 1))).im := by + have h0 : (fun y => toRealMap u y 0) = fun y => (u (planeEquiv y)).re := by + funext y; simp [toRealMap] + have h1 : (fun y => toRealMap u y 1) = fun y => (u (planeEquiv y)).im := by + funext y; simp [toRealMap] + simp only [jacobian, Matrix.of_apply, h0, h1] + exact ⟨fderiv_re_comp hu _, fderiv_im_comp hu _⟩ + +/-- `a₊ (D φ_u) = ∂u`, at a point where `u` is differentiable (Baernstein–Montgomery-Smith, §5: +`α (∇f) = (∂f, ∂_zbar f)`). -/ +theorem conformalPart_jacobian_toRealMap {u : ℂ → ℂ} {x : Fin 2 → ℝ} + (hu : DifferentiableAt ℝ u (planeEquiv x)) : + conformalPart (jacobian (toRealMap u) x) = HarmonicAnalysis.dz u (planeEquiv x) := by + obtain ⟨a0, b0⟩ := jacobian_toRealMap hu 0 + obtain ⟨a1, b1⟩ := jacobian_toRealMap hu 1 + rw [planeEquiv_single_zero] at a0 b0 + rw [planeEquiv_single_one] at a1 b1 + apply Complex.ext <;> + simp [conformalPart, HarmonicAnalysis.dz, a0, b0, a1, b1, Complex.mul_re, + Complex.mul_im] <;> ring + +/-- `a₋ (D φ_u) = ∂_zbar u`, at a point where `u` is differentiable. -/ +theorem anticonformalPart_jacobian_toRealMap {u : ℂ → ℂ} {x : Fin 2 → ℝ} + (hu : DifferentiableAt ℝ u (planeEquiv x)) : + anticonformalPart (jacobian (toRealMap u) x) = HarmonicAnalysis.dzbar u (planeEquiv x) := by + obtain ⟨a0, b0⟩ := jacobian_toRealMap hu 0 + obtain ⟨a1, b1⟩ := jacobian_toRealMap hu 1 + rw [planeEquiv_single_zero] at a0 b0 + rw [planeEquiv_single_one] at a1 b1 + apply Complex.ext <;> + simp [anticonformalPart, HarmonicAnalysis.dzbar, a0, b0, a1, b1, Complex.mul_re, + Complex.mul_im] <;> ring + +/-- `x ↦ D φ (x)` is continuous for a `C¹` map `φ`. -/ +theorem continuous_jacobian {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} (hφ : ContDiff ℝ 1 φ) : + Continuous (jacobian φ) := by + refine continuous_matrix fun i j => ?_ + have hi : ContDiff ℝ 1 fun y => φ y i := contDiff_pi.1 hφ i + exact (hi.continuous_fderiv one_ne_zero).clm_apply continuous_const + +/-- `D φ (x) = 0` outside the topological support of `φ`. -/ +theorem jacobian_eq_zero_of_notMem_tsupport {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} {x : Fin 2 → ℝ} + (hx : x ∉ tsupport φ) : jacobian φ x = 0 := by + ext i j + have hi : x ∉ tsupport (fderiv ℝ fun y => φ y i) := fun h => + hx ((tsupport_fderiv_subset ℝ).trans + (tsupport_comp_subset (g := fun v : Fin 2 → ℝ => v i) rfl φ) h) + simp [jacobian, image_eq_zero_of_notMem_tsupport hi] + +/-! ### Step 1: quasiconvexity at `0` with compactly supported test maps -/ + +/-- Step 1: `∫_{ℝ²} B_p (D φ_u) ≥ 0` for `u : ℂ → ℂ` smooth with compact support and `1 < p`: +the quasiconvexity of `B_p` (`quasiconvex_burkholderB`, from Corollary 2 for Lipschitz periodic +maps) on a ball that contains the support of `φ_u` +(`CalculusOfVariations.quasiconvexAtOn_of_unitCube`), at `A = 0`, with `B_p (0) = 0`. -/ +theorem integral_burkholderB_jacobian_nonneg {p : ℝ} (hp : 1 < p) {u : ℂ → ℂ} + (hu : ContDiff ℝ ∞ u) (huc : HasCompactSupport u) : + 0 ≤ ∫ x, burkholderB p (jacobian (toRealMap u) x) := by + have hφ : ContDiff ℝ ∞ (toRealMap u) := contDiff_toRealMap hu + have hφc : HasCompactSupport (toRealMap u) := hasCompactSupport_toRealMap huc + obtain ⟨K, hK⟩ := ContDiff.lipschitzWith_of_hasCompactSupport hφc hφ (by simp) + obtain ⟨R, hR⟩ := hφc.isCompact.isBounded.subset_ball (0 : Fin 2 → ℝ) + have hB := continuous_burkholderB hp + have hF0 : ∀ x ∉ tsupport (toRealMap u), burkholderB p (jacobian (toRealMap u) x) = 0 := + fun x hx => by rw [jacobian_eq_zero_of_notMem_tsupport hx, burkholderB_zero] + have hFi : Integrable fun x => burkholderB p (jacobian (toRealMap u) x) := + (hB.comp (continuous_jacobian (hφ.of_le (by simp)))).integrable_of_hasCompactSupport + (HasCompactSupport.intro hφc hF0) + have hq : CalculusOfVariations.QuasiconvexAtOn (ball 0 R) (burkholderB p) 0 := + CalculusOfVariations.quasiconvexAtOn_of_unitCube hB.measurable + (CalculusOfVariations.isLocallyBounded_of_continuous hB) isBounded_ball measurableSet_ball + (quasiconvex_burkholderB hp 0) + have h := hq (toRealMap u) K hK + (fun x hx => image_eq_zero_of_notMem_tsupport fun h => hx (hR h)) + (by simp only [zero_add]; exact hFi.integrableOn) + simp only [burkholderB_zero, mul_zero, zero_add, ← jacobian_eq_grad] at h + rwa [setIntegral_eq_integral_of_forall_compl_eq_zero fun x hx => + hF0 x fun h' => hx (hR h')] at h + +/-! ### Step 2: Baernstein–Montgomery-Smith's Conjecture 2 -/ + +/-- `∫_{ℝ²} G (x₀ + i x₁) dx = ∫_ℂ G`. -/ +theorem integral_planeEquiv (G : ℂ → ℝ) : ∫ x, G (planeEquiv x) = ∫ z, G z := + (MeasurePreserving.symm _ Complex.volume_preserving_equiv_pi).integral_comp' G + +/-- Step 2 for `1 < p < 2`: `∫_ℂ Φ_p (∂u, ∂_zbar u) ≥ 0` for `u` smooth with compact support +(Baernstein–Montgomery-Smith's Conjecture 2). -/ +theorem integral_phi_dz_dzbar_nonneg {p : ℝ} (hp : 1 < p) (hp2 : p < 2) {u : ℂ → ℂ} + (hu : ContDiff ℝ ∞ u) (huc : HasCompactSupport u) : + 0 ≤ ∫ z, Phi p (HarmonicAnalysis.dz u z) (HarmonicAnalysis.dzbar u z) := by + have hd : ∀ z, DifferentiableAt ℝ u z := hu.differentiable (by simp) + rw [← integral_planeEquiv fun z => Phi p (HarmonicAnalysis.dz u z) (HarmonicAnalysis.dzbar u z)] + have e : ∀ x, Phi p (HarmonicAnalysis.dz u (planeEquiv x)) + (HarmonicAnalysis.dzbar u (planeEquiv x)) = + alpha p * burkholderB p (jacobian (toRealMap u) x) := fun x => by + rw [alpha_mul_burkholderB_of_lt_two hp2, conformalPart_jacobian_toRealMap (hd _), + anticonformalPart_jacobian_toRealMap (hd _)] + simp_rw [e] + rw [integral_const_mul] + exact mul_nonneg (alpha_pos hp).le (integral_burkholderB_jacobian_nonneg hp hu huc) + +/-- Step 2 for `2 ≤ p`: `∫_ℂ Φ_p (∂_zbar u, ∂u) ≥ 0` for `u` smooth with compact support. -/ +theorem integral_phi_dzbar_dz_nonneg {p : ℝ} (hp2 : 2 ≤ p) {u : ℂ → ℂ} + (hu : ContDiff ℝ ∞ u) (huc : HasCompactSupport u) : + 0 ≤ ∫ z, Phi p (HarmonicAnalysis.dzbar u z) (HarmonicAnalysis.dz u z) := by + have hp : 1 < p := by linarith + have hd : ∀ z, DifferentiableAt ℝ u z := hu.differentiable (by simp) + rw [← integral_planeEquiv fun z => Phi p (HarmonicAnalysis.dzbar u z) (HarmonicAnalysis.dz u z)] + have e : ∀ x, Phi p (HarmonicAnalysis.dzbar u (planeEquiv x)) + (HarmonicAnalysis.dz u (planeEquiv x)) = + alpha p * burkholderB p (jacobian (toRealMap u) x) := fun x => by + rw [alpha_mul_burkholderB_of_two_le hp2, conformalPart_jacobian_toRealMap (hd _), + anticonformalPart_jacobian_toRealMap (hd _)] + simp_rw [e] + rw [integral_const_mul] + exact mul_nonneg (alpha_pos hp).le (integral_burkholderB_jacobian_nonneg hp hu huc) + +/-! ### Step 3: Conjecture 3, `‖∂u‖_p ≤ (p* − 1) ‖∂_zbar u‖_p` -/ + +/-- From `0 ≤ ∫ Φ_p (f, g)` and Burkholder's inequality `Φ_p (z, w) ≤ (p* − 1)^p |z|^p − |w|^p`: +`∫ |g|^p ≤ (p* − 1)^p ∫ |f|^p`, for continuous `f`, `g` with compact support. -/ +theorem integral_rpow_le_of_integral_phi_nonneg {p : ℝ} (hp : 1 < p) {f g : ℂ → ℂ} + (hf : Continuous f) (hg : Continuous g) (hfc : HasCompactSupport f) + (hgc : HasCompactSupport g) (h : 0 ≤ ∫ z, Phi p (f z) (g z)) : + ∫ z, ‖g z‖ ^ p ≤ (pStar p - 1) ^ p * ∫ z, ‖f z‖ ^ p := by + have hp0 : 0 < p := by linarith + have hpow : ∀ k : ℂ → ℂ, Continuous k → HasCompactSupport k → + Integrable fun z => ‖k z‖ ^ p := fun k hk hkc => + (hk.norm.rpow_const fun _ => Or.inr hp0.le).integrable_of_hasCompactSupport + (hkc.comp_left (g := fun t : ℂ => ‖t‖ ^ p) (by simp [Real.zero_rpow hp0.ne'])) + have hF := hpow f hf hfc + have hG := hpow g hg hgc + have hPhi : Integrable fun z => Phi p (f z) (g z) := by + refine Continuous.integrable_of_hasCompactSupport ?_ + (HasCompactSupport.intro (hfc.isCompact.union hgc.isCompact) fun z hz => ?_) + · unfold Phi + exact (continuous_const.mul ((continuous_const.mul hf.norm).sub hg.norm)).mul + ((hf.norm.add hg.norm).rpow_const fun _ => Or.inr (by linarith)) + · rw [Set.mem_union, not_or] at hz + simp [Phi, image_eq_zero_of_notMem_tsupport hz.1, image_eq_zero_of_notMem_tsupport hz.2] + have hR : Integrable fun z => (pStar p - 1) ^ p * ‖f z‖ ^ p - ‖g z‖ ^ p := + (hF.const_mul _).sub hG + have hmono := integral_mono hPhi hR fun z => by + simpa only [bms_pStar_eq] using phi_le hp (f z) (g z) + rw [integral_sub (hF.const_mul _) hG, integral_const_mul] at hmono + linarith + +/-- Step 3: `∫ |∂u|^p ≤ (p* − 1)^p ∫ |∂_zbar u|^p` for `u` smooth with compact support and `1 < p`. +For `p < 2`, the inequality of step 2 for `p < 2` applied to `ū`, by the interchangeability of +`∂` and `∂_zbar` (Baernstein–Montgomery-Smith, §1: `∂ū = conj (∂_zbar u)`, `∂_zbarū = conj (∂u)`). +-/ +theorem integral_norm_dz_rpow_le {p : ℝ} (hp : 1 < p) {u : ℂ → ℂ} (hu : ContDiff ℝ ∞ u) + (huc : HasCompactSupport u) : + ∫ z, ‖HarmonicAnalysis.dz u z‖ ^ p ≤ + (pStar p - 1) ^ p * ∫ z, ‖HarmonicAnalysis.dzbar u z‖ ^ p := by + rcases lt_or_ge p 2 with hp2 | hp2 + · have hv : ContDiff ℝ ∞ fun z => conj (u z) := Complex.conjCLE.contDiff.comp hu + have hvc : HasCompactSupport fun z => conj (u z) := + huc.comp_left (g := starRingEnd ℂ) (map_zero _) + have hv1 : ContDiff ℝ 1 fun z => conj (u z) := hv.of_le (by simp) + have h := integral_rpow_le_of_integral_phi_nonneg hp (continuous_dz_of_contDiff hv1) + (continuous_dzbar_of_contDiff hv1) (hasCompactSupport_dz hvc) (hasCompactSupport_dzbar hvc) + (integral_phi_dz_dzbar_nonneg hp hp2 hv hvc) + simpa only [HarmonicAnalysis.dz_conj, HarmonicAnalysis.dzbar_conj, Complex.norm_conj] + using h + · have hu1 : ContDiff ℝ 1 u := hu.of_le (by simp) + exact integral_rpow_le_of_integral_phi_nonneg hp (continuous_dzbar_of_contDiff hu1) + (continuous_dz_of_contDiff hu1) (hasCompactSupport_dzbar huc) (hasCompactSupport_dz huc) + (integral_phi_dzbar_dz_nonneg hp2 hu huc) + +end Corollary2Norm + +/-- The upper bound in `(eq:BA-sharp-norm)`: `‖𝒮‖_p ≤ p* − 1` for `1 < p < ∞`. + +The argument of Baernstein–Montgomery-Smith (§1, Conjectures 2 and 3 and remark (b)), with +Guerra's details for the passage to `L^p (ℂ)`: Corollary 2 at `A = 0`, as quasiconvexity with +compactly supported test maps, and Burkholder's inequality give +`∫ |∂u|^p ≤ (p* − 1)^p ∫ |∂_zbar u|^p` for `u ∈ C_c^∞ (ℂ)` +(`Corollary2Norm.integral_norm_dz_rpow_le`; +for `p < 2` through `u ↦ ū`); remark (b) (`External.BaernsteinMontgomerySmith.remark_b`, proved +in the package `HarmonicAnalysis` by density, the Cauchy transform and Guerra's cut-offs) passes +from this inequality to the norm of `𝒮`; see the module docstring. -/ +theorem beurlingNorm_le {p : ℝ} (hp : 1 < p) : beurlingNorm p ≤ ENNReal.ofReal (pStar p - 1) := by + rw [beurlingNorm_eq_beurlingPowNorm] + exact External.BaernsteinMontgomerySmith.remark_b hp (by linarith [Corollary2Norm.le_pStar p]) + fun u hu huc => Corollary2Norm.integral_norm_dz_rpow_le hp hu huc + +/-- **Corollary 2** (`cor:Bp-BA`), second assertion `(eq:BA-sharp-norm)`: the norm of the +Beurling–Ahlfors transform on `L^p (ℂ; ℂ)` is `p* − 1`, for `1 < p < ∞`. -/ +theorem corollary2_norm {p : ℝ} (hp : 1 < p) : beurlingNorm p = ENNReal.ofReal (pStar p - 1) := by + refine le_antisymm (beurlingNorm_le hp) ?_ + rw [beurlingNorm_eq_beurlingPowNorm] + exact External.Lehto.lowerBound hp + +/-- The sharp norm of Tau Ceti's Beurling–Ahlfors operator on complex-valued `L^p`. -/ +theorem corollary2_norm_tauCeti {p : ℝ} (hp : 1 < p) [Fact (1 ≤ ENNReal.ofReal p)] : + ‖TauCeti.beurlingLp (F := ℂ) (ENNReal.ofReal p) + (by + rw [← ENNReal.ofReal_one] + exact (ENNReal.ofReal_lt_ofReal_iff (by linarith)).mpr hp) + ENNReal.ofReal_ne_top‖ₑ = ENNReal.ofReal (pStar p - 1) := by + rw [← corollary2_norm hp, beurlingNorm_eq_beurlingPowNorm] + apply HarmonicAnalysis.enorm_eq_multiplierNorm + intro f + exact (TauCeti.beurlingLp_toLp _ _ f).trans (HarmonicAnalysis.beurlingL2_toLp f) + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/NormTorus.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/NormTorus.lean new file mode 100644 index 0000000000..86b7b15fcd --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/NormTorus.lean @@ -0,0 +1,365 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.Norm +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Periodic +public import Mathlib.Analysis.Calculus.FDeriv.Star + +/-! +# Corollary 2, second part: a shorter proof of the upper bound, on the torus + +An alternative proof of the upper bound `‖𝒮‖_p ≤ p* − 1` of `(eq:BA-sharp-norm)` +(`Agazzi.beurlingNorm_le_of_torus`). It is not the paper's route and is not used by +`Agazzi.corollary2_norm`, which follows the planar arguments that the paper cites +(`Agazzi.beurlingNorm_le`, in `Agazzi.Corollary2.Norm`). It is shorter: it needs neither the +Cauchy transform nor cut-offs, since the paper's Corollary 2 is already periodic. + +1. For smooth `ℤ²`-periodic `u : ℝ² → ℂ` and `φ = (Re u, Im u)`, `a₊ (D φ) = ∂u` and + `a₋ (D φ) = ∂_zbar u` (`Agazzi.Corollary2NormTorus.conformalPart_jacobian_toRealPair`, + `Agazzi.Corollary2NormTorus.anticonformalPart_jacobian_toRealPair`). +2. The first assertion of Corollary 2 at `A = 0` (`corollary2`; `B_p (0) = 0`) gives + `∫_Q B_p (D φ) ≥ 0`; with `α_p B_p = Φ_p (a₊, a₋)` or `Φ_p (a₋, a₊)` and Burkholder's inequality + `Φ_p (z, w) ≤ (p* − 1)^p |z|^p − |w|^p` (`External.BaernsteinMontgomerySmith.phi_le`), and for + `p < 2` the interchange `u ↦ ū`: `‖∂u‖_{L^p (Q)} ≤ (p* − 1) ‖∂_zbar u‖_{L^p (Q)}` + (`Agazzi.Corollary2NormTorus.eLpNorm_dzPi_le`). +3. Every mean-zero trigonometric polynomial `h` is `∂_zbar u` for a smooth periodic `u` + (`UnitAddTorus.exists_dzbarPi_eq`), and then `𝓑 h = ∂u` + (`HarmonicAnalysis.periodicMultiplier_beurlingSymbol_dzbarPi`): the norm of the + Beurling–Ahlfors multiplier on `L^p_0 (𝕋²)` is at most `p* − 1` + (`Agazzi.Corollary2NormTorus.torusBeurlingPowNorm_one_le`). +4. Transference from `𝕋²` to `ℂ` (Hytönen–van Neerven–Veraar–Weis, Corollary 5.7.6, in the + package `HarmonicAnalysis`: `HarmonicAnalysis.beurlingPowNorm_le_torusBeurlingPowNorm`). + +This was the proof of the upper bound in the first round of the formalization; it is kept as a +shorter proof, checked in Lean. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Set UnitAddTorus HarmonicAnalysis +open scoped ENNReal ComplexConjugate ContDiff Real + +namespace Agazzi.Corollary2NormTorus + +open External.BaernsteinMontgomerySmith (Phi alpha phi_le) +open Corollary2Norm (bms_pStar_eq le_pStar alpha_pos burkholderB_zero + alpha_mul_burkholderB_of_lt_two alpha_mul_burkholderB_of_two_le) + + +/-! ### The Wirtinger derivatives and the jacobian -/ + +/-- The map `φ = (Re u, Im u) : ℝ² → ℝ²` of `u : ℝ² → ℂ` (with `ℂ ≅ ℝ²`, `x + iy ↦ (x, y)`). -/ +def toRealPair (u : (Fin 2 → ℝ) → ℂ) (y : Fin 2 → ℝ) : Fin 2 → ℝ := ![(u y).re, (u y).im] + +theorem contDiff_toRealPair {n : WithTop ℕ∞} {u : (Fin 2 → ℝ) → ℂ} (hu : ContDiff ℝ n u) : + ContDiff ℝ n (toRealPair u) := by + refine contDiff_pi.2 fun i => ?_ + fin_cases i + · simp only [toRealPair, Fin.zero_eta, Matrix.cons_val_zero] + exact Complex.reCLM.contDiff.comp hu + · simp only [toRealPair, Fin.mk_one, Matrix.cons_val_one, Matrix.cons_val_fin_one] + exact Complex.imCLM.contDiff.comp hu + +theorem isPeriodic_toRealPair {u : (Fin 2 → ℝ) → ℂ} (hu : UnitAddTorus.IsPeriodic u) : + Agazzi.IsPeriodic (toRealPair u) := fun x k => by + simp only [toRealPair, hu x k] + +private lemma fderiv_re {u : (Fin 2 → ℝ) → ℂ} {x : Fin 2 → ℝ} (hu : DifferentiableAt ℝ u x) + (v : Fin 2 → ℝ) : fderiv ℝ (fun y => (u y).re) x v = (fderiv ℝ u x v).re := by + have h := (Complex.reCLM.hasFDerivAt.comp x hu.hasFDerivAt).fderiv + have e : (fun y => (u y).re) = Complex.reCLM ∘ u := rfl + rw [e, h] + rfl + +private lemma fderiv_im {u : (Fin 2 → ℝ) → ℂ} {x : Fin 2 → ℝ} (hu : DifferentiableAt ℝ u x) + (v : Fin 2 → ℝ) : fderiv ℝ (fun y => (u y).im) x v = (fderiv ℝ u x v).im := by + have h := (Complex.imCLM.hasFDerivAt.comp x hu.hasFDerivAt).fderiv + have e : (fun y => (u y).im) = Complex.imCLM ∘ u := rfl + rw [e, h] + rfl + +private lemma jacobian_toRealPair {u : (Fin 2 → ℝ) → ℂ} {x : Fin 2 → ℝ} + (hu : DifferentiableAt ℝ u x) (j : Fin 2) : + jacobian (toRealPair u) x 0 j = (fderiv ℝ u x (Pi.single j 1)).re ∧ + jacobian (toRealPair u) x 1 j = (fderiv ℝ u x (Pi.single j 1)).im := by + have h0 : (fun y => toRealPair u y 0) = fun y => (u y).re := by + funext y; simp [toRealPair] + have h1 : (fun y => toRealPair u y 1) = fun y => (u y).im := by + funext y; simp [toRealPair] + simp only [jacobian, Matrix.of_apply, h0, h1] + exact ⟨fderiv_re hu _, fderiv_im hu _⟩ + +/-- `a₊ (D φ) = ∂u` for `φ = (Re u, Im u)`, at a point where `u` is differentiable. -/ +theorem conformalPart_jacobian_toRealPair {u : (Fin 2 → ℝ) → ℂ} {x : Fin 2 → ℝ} + (hu : DifferentiableAt ℝ u x) : + conformalPart (jacobian (toRealPair u) x) = dzPi u x := by + obtain ⟨a0, b0⟩ := jacobian_toRealPair hu 0 + obtain ⟨a1, b1⟩ := jacobian_toRealPair hu 1 + apply Complex.ext <;> + simp [conformalPart, dzPi, a0, b0, a1, b1, Complex.mul_re, Complex.mul_im] <;> ring + +/-- `a₋ (D φ) = ∂_zbar u` for `φ = (Re u, Im u)`, at a point where `u` is differentiable. -/ +theorem anticonformalPart_jacobian_toRealPair {u : (Fin 2 → ℝ) → ℂ} {x : Fin 2 → ℝ} + (hu : DifferentiableAt ℝ u x) : + anticonformalPart (jacobian (toRealPair u) x) = dzbarPi u x := by + obtain ⟨a0, b0⟩ := jacobian_toRealPair hu 0 + obtain ⟨a1, b1⟩ := jacobian_toRealPair hu 1 + apply Complex.ext <;> + simp [anticonformalPart, dzbarPi, a0, b0, a1, b1, Complex.mul_re, Complex.mul_im] <;> ring + +/-! ### The interchangeability of `∂` and `∂_zbar` -/ + +private lemma fderiv_conj (u : (Fin 2 → ℝ) → ℂ) (x v : Fin 2 → ℝ) : + fderiv ℝ (fun y => conj (u y)) x v = conj (fderiv ℝ u x v) := by + simp only [starRingEnd_apply, fderiv_star] + rfl + +/-- `∂ū = conj (∂_zbar u)`. -/ +theorem dzPi_conj (u : (Fin 2 → ℝ) → ℂ) (x : Fin 2 → ℝ) : + dzPi (fun y => conj (u y)) x = conj (dzbarPi u x) := by + simp only [dzPi, dzbarPi, fderiv_conj, map_mul, map_add, map_inv₀, map_ofNat, Complex.conj_I] + ring + +/-- `∂_zbarū = conj (∂u)`. -/ +theorem dzbarPi_conj (u : (Fin 2 → ℝ) → ℂ) (x : Fin 2 → ℝ) : + dzbarPi (fun y => conj (u y)) x = conj (dzPi u x) := by + simp only [dzPi, dzbarPi, fderiv_conj, map_mul, map_sub, map_inv₀, map_ofNat, Complex.conj_I] + ring + +theorem contDiff_conj {n : WithTop ℕ∞} {u : (Fin 2 → ℝ) → ℂ} (hu : ContDiff ℝ n u) : + ContDiff ℝ n fun y => conj (u y) := + Complex.conjCLE.contDiff.comp hu + +theorem isPeriodic_conj {u : (Fin 2 → ℝ) → ℂ} (hu : UnitAddTorus.IsPeriodic u) : + UnitAddTorus.IsPeriodic fun y => conj (u y) := fun x k => by + simp only [hu x k] + +/-! ### Integrals and `L^p` norms over the torus as over the unit square -/ + +/-- Integrals over `𝕋^ι` (with Mathlib's measure, of total mass one) are integrals over the open +unit cube `(0, 1)^ι`. -/ +theorem lintegral_torus_eq_cube {ι : Type*} [Fintype ι] (f : UnitAddTorus ι → ℝ≥0∞) : + ∫⁻ z, f z = ∫⁻ x in cube ι, f (ofPi x) := by + have hvol : (volume : Measure (UnitAddTorus ι)) = + @volume _ (@MeasureSpace.pi ι _ (fun _ => UnitAddCircle) + (fun _ => instMeasureSpaceUnitAddCircle)) := + volume_eq_pi_haarAddCircle + rw [hvol, UnitAddTorus.lintegral_preimage f 0] + have h1 : {x : ι → ℝ | ∀ i, x i ∈ Ioc ((0 : ι → ℝ) i) ((0 : ι → ℝ) i + 1)} = + univ.pi fun _ => Ioc (0 : ℝ) 1 := by + ext x; simp + rw [h1] + exact setLIntegral_congr + (Measure.univ_pi_Ioo_ae_eq_Icc.trans Measure.univ_pi_Ioc_ae_eq_Icc.symm).symm + +/-- `L^p` norms over `𝕋^ι` (with Mathlib's measure, of total mass one) are `L^p` norms over the open +unit cube `(0, 1)^ι`, for continuous functions and `0 < p < ∞`. -/ +theorem eLpNorm_torus_eq_cube {ι : Type*} [Fintype ι] {F : UnitAddTorus ι → ℂ} + (hF : Continuous F) {p : ℝ} (hp : 0 < p) : + eLpNorm F (ENNReal.ofReal p) volume = + eLpNorm (fun x => F (ofPi x)) (ENNReal.ofReal p) (volume.restrict (cube ι)) := by + have h0 : ENNReal.ofReal p ≠ 0 := (ENNReal.ofReal_pos.2 hp).ne' + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal h0 ENNReal.ofReal_ne_top hF.aestronglyMeasurable, + eLpNorm_eq_lintegral_rpow_eNorm_toReal h0 ENNReal.ofReal_ne_top + (f := fun x => F (ofPi x)) (hF.comp continuous_ofPi).aestronglyMeasurable, + lintegral_torus_eq_cube (fun z => ‖F z‖ₑ ^ (ENNReal.ofReal p).toReal)] + +/-! ### Trigonometric polynomials as functions on `ℝ^ι` -/ + +theorem trigPoly_ofPi_eq {ι : Type*} [Fintype ι] (c : (ι → ℤ) →₀ ℂ) : + (fun x => trigPoly c (ofPi x)) = fun x => ∑ n ∈ c.support, c n * mFourier n (ofPi x) := by + funext x + simp [trigPoly, Finsupp.sum] + +theorem contDiff_mFourier_ofPi {ι : Type*} [Fintype ι] (n : ι → ℤ) : + ContDiff ℝ ∞ fun x : ι → ℝ => mFourier n (ofPi x) := by + simp_rw [mFourier_ofPi] + refine Complex.contDiff_exp.comp (contDiff_const.mul (ContDiff.sum fun i _ => ?_)) + exact contDiff_const.mul (Complex.ofRealCLM.contDiff.comp (contDiff_apply ℝ (fun _ : ι => ℝ) i)) + +/-- A trigonometric polynomial, as a function on `ℝ^ι`, is smooth. -/ +theorem contDiff_trigPoly_ofPi {ι : Type*} [Fintype ι] (c : (ι → ℤ) →₀ ℂ) : + ContDiff ℝ ∞ fun x => trigPoly c (ofPi x) := by + rw [trigPoly_ofPi_eq] + exact ContDiff.sum fun n _ => contDiff_const.mul (contDiff_mFourier_ofPi n) + +/-- A trigonometric polynomial, as a function on `ℝ^ι`, is `ℤ^ι`-periodic. -/ +theorem isPeriodic_trigPoly_ofPi {ι : Type*} [Fintype ι] (c : (ι → ℤ) →₀ ℂ) : + UnitAddTorus.IsPeriodic fun x => trigPoly c (ofPi x) := fun x k => by + simp only [ofPi_add_int] + +/-- The mean of a trigonometric polynomial over the cube is its coefficient `c₀`. -/ +theorem cubeFourierCoeff_trigPoly_ofPi_zero {ι : Type*} [Fintype ι] (c : (ι → ℤ) →₀ ℂ) : + cubeFourierCoeff (fun x => trigPoly c (ofPi x)) 0 = c 0 := by + rw [trigPoly_ofPi_eq, cubeFourierCoeff_trig] + split_ifs with h + · rfl + · exact (Finsupp.notMem_support_iff.1 h).symm + + +/-! ### Step 2: `‖∂u‖_{L^p (Q)} ≤ (p* − 1) ‖∂_zbar u‖_{L^p (Q)}` -/ + +/-- From `0 ≤ ∫_Q Φ_p (f, g)` and Burkholder's inequality `Φ_p (z, w) ≤ (p* − 1)^p |z|^p − |w|^p`: +`∫_Q |g|^p ≤ (p* − 1)^p ∫_Q |f|^p`, for continuous `f`, `g`. -/ +theorem integral_rpow_le_of_integral_phi_nonneg {p : ℝ} (hp : 1 < p) + {f g : (Fin 2 → ℝ) → ℂ} (hf : Continuous f) (hg : Continuous g) + (h : 0 ≤ ∫ x in unitSquare, Phi p (f x) (g x)) : + ∫ x in unitSquare, ‖g x‖ ^ p ≤ (pStar p - 1) ^ p * ∫ x in unitSquare, ‖f x‖ ^ p := by + have hp0 : 0 ≤ p := by linarith + have hF : IntegrableOn (fun x => ‖f x‖ ^ p) unitSquare := + integrableOn_cube_of_continuous (hf.norm.rpow_const fun _ => Or.inr hp0) + have hG : IntegrableOn (fun x => ‖g x‖ ^ p) unitSquare := + integrableOn_cube_of_continuous (hg.norm.rpow_const fun _ => Or.inr hp0) + have hPhi : IntegrableOn (fun x => Phi p (f x) (g x)) unitSquare := by + refine integrableOn_cube_of_continuous ?_ + unfold Phi + exact (continuous_const.mul ((continuous_const.mul hf.norm).sub hg.norm)).mul + ((hf.norm.add hg.norm).rpow_const fun _ => Or.inr (by linarith)) + have hR : IntegrableOn (fun x => (pStar p - 1) ^ p * ‖f x‖ ^ p - ‖g x‖ ^ p) unitSquare := + (hF.const_mul _).sub hG + have hmono := setIntegral_mono hPhi hR fun x => by + simpa only [bms_pStar_eq] using phi_le hp (f x) (g x) + rw [integral_sub (hF.const_mul _) hG, integral_const_mul] at hmono + linarith + +/-- `0 ≤ ∫_Q α_p B_p (D φ)` for `φ = (Re u, Im u)`: Corollary 2 at `A = 0`. -/ +theorem integral_alpha_mul_burkholderB_nonneg {p : ℝ} (hp : 1 < p) {u : (Fin 2 → ℝ) → ℂ} + (hu : ContDiff ℝ ∞ u) (hper : UnitAddTorus.IsPeriodic u) : + 0 ≤ ∫ x in unitSquare, alpha p * burkholderB p (jacobian (toRealPair u) x) := by + have h := corollary2 hp 0 (contDiff_toRealPair hu) (isPeriodic_toRealPair hper) + simp only [zero_add, burkholderB_zero, sub_zero] at h + rw [integral_const_mul] + exact mul_nonneg (alpha_pos hp).le h + +/-- Step 2 for `1 < p < 2`: `∫_Q |∂_zbar u|^p ≤ (p* − 1)^p ∫_Q |∂u|^p` for smooth periodic `u`. -/ +theorem integral_norm_dzbarPi_rpow_le_of_lt_two {p : ℝ} (hp : 1 < p) (hp2 : p < 2) + {u : (Fin 2 → ℝ) → ℂ} (hu : ContDiff ℝ ∞ u) (hper : UnitAddTorus.IsPeriodic u) : + ∫ x in unitSquare, ‖dzbarPi u x‖ ^ p ≤ + (pStar p - 1) ^ p * ∫ x in unitSquare, ‖dzPi u x‖ ^ p := by + refine integral_rpow_le_of_integral_phi_nonneg hp (contDiff_dzPi hu).continuous + (contDiff_dzbarPi hu).continuous ?_ + have hd : ∀ x, DifferentiableAt ℝ u x := hu.differentiable (by simp) + have e : (fun x => Phi p (dzPi u x) (dzbarPi u x)) = + fun x => alpha p * burkholderB p (jacobian (toRealPair u) x) := by + funext x + rw [alpha_mul_burkholderB_of_lt_two hp2, conformalPart_jacobian_toRealPair (hd x), + anticonformalPart_jacobian_toRealPair (hd x)] + rw [e] + exact integral_alpha_mul_burkholderB_nonneg hp hu hper + +/-- Step 2 for `2 ≤ p`: `∫_Q |∂u|^p ≤ (p* − 1)^p ∫_Q |∂_zbar u|^p` for smooth periodic `u`. -/ +theorem integral_norm_dzPi_rpow_le_of_two_le {p : ℝ} (hp2 : 2 ≤ p) + {u : (Fin 2 → ℝ) → ℂ} (hu : ContDiff ℝ ∞ u) (hper : UnitAddTorus.IsPeriodic u) : + ∫ x in unitSquare, ‖dzPi u x‖ ^ p ≤ + (pStar p - 1) ^ p * ∫ x in unitSquare, ‖dzbarPi u x‖ ^ p := by + have hp : 1 < p := by linarith + refine integral_rpow_le_of_integral_phi_nonneg hp (contDiff_dzbarPi hu).continuous + (contDiff_dzPi hu).continuous ?_ + have hd : ∀ x, DifferentiableAt ℝ u x := hu.differentiable (by simp) + have e : (fun x => Phi p (dzbarPi u x) (dzPi u x)) = + fun x => alpha p * burkholderB p (jacobian (toRealPair u) x) := by + funext x + rw [alpha_mul_burkholderB_of_two_le hp2, conformalPart_jacobian_toRealPair (hd x), + anticonformalPart_jacobian_toRealPair (hd x)] + rw [e] + exact integral_alpha_mul_burkholderB_nonneg hp hu hper + +/-- Step 2: `∫_Q |∂u|^p ≤ (p* − 1)^p ∫_Q |∂_zbar u|^p` for smooth periodic `u` and `1 < p`. For `p +< 2`, +the inequality for `p < 2` applied to `ū`, by the interchangeability of `∂` and `∂_zbar` +(Baernstein–Montgomery-Smith, §1: `∂ū = conj (∂_zbar u)`, `∂_zbarū = conj (∂u)`). This is the +source's +argument; duality (`HarmonicAnalysis.beurlingPowNorm_conjExponent`, `‖𝒮‖_p = ‖𝒮‖_{p'}`) would +also reduce `p < 2` to `p' > 2`, at the level of the norm on `L^p (ℂ)`. -/ +theorem integral_norm_dzPi_rpow_le {p : ℝ} (hp : 1 < p) + {u : (Fin 2 → ℝ) → ℂ} (hu : ContDiff ℝ ∞ u) (hper : UnitAddTorus.IsPeriodic u) : + ∫ x in unitSquare, ‖dzPi u x‖ ^ p ≤ + (pStar p - 1) ^ p * ∫ x in unitSquare, ‖dzbarPi u x‖ ^ p := by + rcases lt_or_ge p 2 with hp2 | hp2 + · have h := integral_norm_dzbarPi_rpow_le_of_lt_two hp hp2 (contDiff_conj hu) + (isPeriodic_conj hper) + simpa only [dzPi_conj, dzbarPi_conj, Complex.norm_conj] using h + · exact integral_norm_dzPi_rpow_le_of_two_le hp2 hu hper + +/-- Step 2, in `L^p` norms: `‖∂u‖_{L^p (Q)} ≤ (p* − 1) ‖∂_zbar u‖_{L^p (Q)}` for smooth periodic +`u` and +`1 < p`. -/ +theorem eLpNorm_dzPi_le {p : ℝ} (hp : 1 < p) + {u : (Fin 2 → ℝ) → ℂ} (hu : ContDiff ℝ ∞ u) (hper : UnitAddTorus.IsPeriodic u) : + eLpNorm (dzPi u) (ENNReal.ofReal p) (volume.restrict (cube (Fin 2))) ≤ + ENNReal.ofReal (pStar p - 1) * + eLpNorm (dzbarPi u) (ENNReal.ofReal p) (volume.restrict (cube (Fin 2))) := by + have hp0 : 0 < p := by linarith + have h0 : ENNReal.ofReal p ≠ 0 := (ENNReal.ofReal_pos.2 hp0).ne' + have hc : 0 ≤ pStar p - 1 := by linarith [le_pStar p] + have hmem : ∀ g : (Fin 2 → ℝ) → ℂ, Continuous g → UnitAddTorus.IsPeriodic g → + MemLp g (ENNReal.ofReal p) (volume.restrict (cube (Fin 2))) := by + intro g hg hgp + obtain ⟨C, hC⟩ := hgp.exists_bound hg + exact MemLp.of_bound hg.aestronglyMeasurable C (ae_of_all _ hC) + rw [(hmem _ (contDiff_dzPi hu).continuous (isPeriodic_dzPi hper)).eLpNorm_eq_integral_rpow_norm + h0 ENNReal.ofReal_ne_top, + (hmem _ (contDiff_dzbarPi hu).continuous + (isPeriodic_dzbarPi hper)).eLpNorm_eq_integral_rpow_norm h0 ENNReal.ofReal_ne_top, + ENNReal.toReal_ofReal hp0.le, ← ENNReal.ofReal_mul hc] + apply ENNReal.ofReal_le_ofReal + have hI2 : 0 ≤ ∫ x in cube (Fin 2), ‖dzbarPi u x‖ ^ p := + integral_nonneg fun x => by positivity + calc (∫ x in cube (Fin 2), ‖dzPi u x‖ ^ p) ^ p⁻¹ + ≤ ((pStar p - 1) ^ p * ∫ x in cube (Fin 2), ‖dzbarPi u x‖ ^ p) ^ p⁻¹ := + Real.rpow_le_rpow (integral_nonneg fun x => by positivity) + (integral_norm_dzPi_rpow_le hp hu hper) (inv_nonneg.2 hp0.le) + _ = (pStar p - 1) * (∫ x in cube (Fin 2), ‖dzbarPi u x‖ ^ p) ^ p⁻¹ := by + rw [Real.mul_rpow (by positivity) hI2, Real.rpow_rpow_inv hc hp0.ne'] + +/-! ### Step 3: the bound on the torus -/ + +/-- `‖𝓑 h‖_{L^p (𝕋²)} ≤ (p* − 1) ‖h‖_{L^p (𝕋²)}` for every mean-zero trigonometric polynomial `h` +(coefficients `c`, `c₀ = 0`): `h = ∂_zbar u` for a smooth periodic `u`, and `𝓑 h = ∂u`. -/ +theorem eLpNorm_torusBeurlingPow_le {p : ℝ} (hp : 1 < p) (c : (Fin 2 → ℤ) →₀ ℂ) (hc : c 0 = 0) : + eLpNorm (HarmonicAnalysis.torusBeurlingPow 1 c) (ENNReal.ofReal p) volume ≤ + ENNReal.ofReal (pStar p - 1) * + eLpNorm (HarmonicAnalysis.trigPoly c) (ENNReal.ofReal p) volume := by + have hp0 : 0 < p := by linarith + obtain ⟨u, hu, hup, -, hdu⟩ := exists_dzbarPi_eq (contDiff_trigPoly_ofPi c) + (isPeriodic_trigPoly_ofPi c) (by rw [cubeFourierCoeff_trigPoly_ofPi_zero, hc]) + have key : (fun x => HarmonicAnalysis.torusBeurlingPow 1 c (ofPi x)) = dzPi u := by + rw [← HarmonicAnalysis.periodicMultiplier_beurlingSymbol_dzbarPi hu hup, hdu, + ← HarmonicAnalysis.periodicMultiplier_trigPoly 1 c] + simp only [pow_one] + have hcont : Continuous (HarmonicAnalysis.torusBeurlingPow 1 c) := + HarmonicAnalysis.continuous_torusMultiplier _ c + rw [eLpNorm_torus_eq_cube hcont hp0, + eLpNorm_torus_eq_cube (HarmonicAnalysis.continuous_trigPoly c) hp0, key, ← hdu] + exact eLpNorm_dzPi_le hp hu hup + +/-- Step 3: the norm of the Beurling–Ahlfors multiplier on `L^p_0 (𝕋²)` is at most `p* − 1`. -/ +theorem torusBeurlingPowNorm_one_le {p : ℝ} (hp : 1 < p) : + HarmonicAnalysis.torusBeurlingPowNorm 1 p ≤ ENNReal.ofReal (pStar p - 1) := + iSup₂_le fun c hc => ENNReal.div_le_of_le_mul (eLpNorm_torusBeurlingPow_le hp c hc) + +end Agazzi.Corollary2NormTorus + +namespace Agazzi + +/-- **A shorter proof of the upper bound in `(eq:BA-sharp-norm)`**, `‖𝒮‖_p ≤ p* − 1` for +`1 < p < ∞`, not used by `corollary2_norm`: Corollary 2 on the torus at `A = 0` and Burkholder's +inequality give the bound on `L^p_0 (𝕋²)` (`Corollary2NormTorus.torusBeurlingPowNorm_one_le`), +and transference (Hytönen–van Neerven–Veraar–Weis, Corollary 5.7.6, +`HarmonicAnalysis.beurlingPowNorm_le_torusBeurlingPowNorm`) gives `L^p (ℂ)`. It is shorter than +the paper's planar route (`beurlingNorm_le`): no Cauchy transform and no cut-offs. -/ +theorem beurlingNorm_le_of_torus {p : ℝ} (hp : 1 < p) : + beurlingNorm p ≤ ENNReal.ofReal (pStar p - 1) := by + rw [beurlingNorm_eq_beurlingPowNorm] + exact (HarmonicAnalysis.beurlingPowNorm_le_torusBeurlingPowNorm 1 hp).trans + (Corollary2NormTorus.torusBeurlingPowNorm_one_le hp) + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/Quasiconvexity.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/Quasiconvexity.lean new file mode 100644 index 0000000000..e9f48d87e9 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Corollary2/Quasiconvexity.lean @@ -0,0 +1,432 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Bridges +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Theorem1 +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.BaernsteinMontgomerySmith.Basic + +/-! +# Corollary 2, first part: the quasiconvexity of the Burkholder integrand + +**Corollary 2** (`cor:Bp-BA`), first assertion: for every `1 < p < ∞`, every `A ∈ ℝ^{2×2}` and every +`φ ∈ C^∞_per (Q; ℝ²)`, `∫_Q [B_p (A + Dφ) − B_p (A)] dx ≥ 0`. + +The paper derives it from Theorem 1 "by the arguments in [Baernstein1997a] (see also [Guerra2026b])" +(TeX line 301). Those arguments: `B_p` is a positive multiple of the Mellin transform +`∫_0^∞ t^{p−1} L (A / t) dt` for `1 < p < 2` (Baernstein–Montgomery-Smith (1.2a)), and of +`∫_0^∞ t^{p−1} (L − det) (A / t) dt` for `2 < p < ∞` ((1.2b)); `B_2 = −det`. Each `A ↦ L (A / t)` +is quasiconvex (Theorem 1 applied to `A / t` and `φ / t`), `det` is a null Lagrangian, and Fubini's +theorem gives the inequality for `B_p`. + +As for Theorem 1, `corollary2_lipschitz` states the inequality for Lipschitz periodic `φ`, by the +same argument from `theorem1_lipschitz`, and `corollary2` is the paper's statement. + +The steps: + +* `burkholderB_eq_mellin_of_lt_two`: `B_p (A) = (p (2 − p)/2) ∫_0^∞ t^{p−1} L (A / t) dt` for + `1 < p < 2`; +* `burkholderB_eq_mellin_of_two_lt`: + `B_p (A) = (p (p − 1)(p − 2)/2) ∫_0^∞ t^{p−1} (L − det) (A / t) dt` for `2 < p`; +* `burkholderB_two`: `B_2 = −det`; +* `setIntegral_sub_nonneg_of_mellin` (private): the Fubini step; +* `continuous_integrandL`, `continuous_burkholderB`: used for the quasiconvexity in the sense of + `CalculusOfVariations` (`Agazzi.Quasiconvex`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped ContDiff + +namespace Agazzi + +/-- `L (A) = L_BMS (a₊, a₋)`: the paper's `L` is the function of Baernstein and Montgomery-Smith +in conformal coordinates. -/ +theorem integrandL_eq_bms (A : Matrix (Fin 2) (Fin 2) ℝ) : + integrandL A = External.BaernsteinMontgomerySmith.L (conformalPart A) (anticonformalPart A) := + rfl + +/-! ### The conformal coordinates: continuity and homogeneity -/ + +theorem conformalPart_eq (A : Matrix (Fin 2) (Fin 2) ℝ) : + conformalPart A = + (((A 0 0 + A 1 1) / 2 : ℝ) : ℂ) + (((A 1 0 - A 0 1) / 2 : ℝ) : ℂ) * Complex.I := by + apply Complex.ext <;> simp [conformalPart] + +theorem anticonformalPart_eq (A : Matrix (Fin 2) (Fin 2) ℝ) : + anticonformalPart A = + (((A 0 0 - A 1 1) / 2 : ℝ) : ℂ) + (((A 1 0 + A 0 1) / 2 : ℝ) : ℂ) * Complex.I := by + apply Complex.ext <;> simp [anticonformalPart] + +theorem continuous_conformalPart : Continuous conformalPart := by + rw [show conformalPart = _ from funext conformalPart_eq] + fun_prop + +theorem continuous_anticonformalPart : Continuous anticonformalPart := by + rw [show anticonformalPart = _ from funext anticonformalPart_eq] + fun_prop + +/-- `(c A)₊ = c a₊` for real `c`. -/ +theorem conformalPart_smul (c : ℝ) (A : Matrix (Fin 2) (Fin 2) ℝ) : + conformalPart (c • A) = (c : ℂ) * conformalPart A := by + apply Complex.ext <;> simp [conformalPart] <;> ring + +/-- `(c A)₋ = c a₋` for real `c`. -/ +theorem anticonformalPart_smul (c : ℝ) (A : Matrix (Fin 2) (Fin 2) ℝ) : + anticonformalPart (c • A) = (c : ℂ) * anticonformalPart A := by + apply Complex.ext <;> simp [anticonformalPart] <;> ring + +/-- `L` is continuous: the two expressions agree on `|a₊| + |a₋| = 1`. -/ +theorem continuous_integrandL : Continuous integrandL := by + have h1 := continuous_conformalPart.norm + have h2 := continuous_anticonformalPart.norm + refine continuous_if_le (h1.add h2) continuous_const ((h1.pow 2).sub (h2.pow 2)).continuousOn + ((continuous_const.mul h1).sub continuous_const).continuousOn fun A hA => ?_ + have : ‖anticonformalPart A‖ = 1 - ‖conformalPart A‖ := by linarith + rw [this]; ring + +/-- `B_p` is continuous for `1 < p`. -/ +theorem continuous_burkholderB {p : ℝ} (hp : 1 < p) : Continuous (burkholderB p) := by + have h1 := continuous_conformalPart.norm + have h2 := continuous_anticonformalPart.norm + have h3 : Continuous fun A => (‖conformalPart A‖ + ‖anticonformalPart A‖) ^ (p - 1) := + (h1.add h2).rpow_const fun _ => Or.inr (by linarith) + unfold burkholderB + split_ifs + · exact ((continuous_const.mul h1).sub h2).mul h3 + · exact ((continuous_const.mul h2).sub h1).mul h3 + +/-- `D (c φ) = c D φ`. -/ +theorem jacobian_smul (c : ℝ) (φ : (Fin 2 → ℝ) → Fin 2 → ℝ) (x : Fin 2 → ℝ) : + jacobian (fun y => c • φ y) x = c • jacobian φ x := by + ext i j + simp only [jacobian, Matrix.of_apply, Matrix.smul_apply, Pi.smul_apply, smul_eq_mul] + have : (fun y => c * φ y i) = c • fun y => φ y i := rfl + rw [this, fderiv_const_smul_field] + rfl + +/-- `|(c A)₊| = |c| |a₊|`. -/ +theorem norm_conformalPart_smul (c : ℝ) (A : Matrix (Fin 2) (Fin 2) ℝ) : + ‖conformalPart (c • A)‖ = |c| * ‖conformalPart A‖ := by + rw [conformalPart_smul, norm_mul, Complex.norm_real, Real.norm_eq_abs] + +/-- `|(c A)₋| = |c| |a₋|`. -/ +theorem norm_anticonformalPart_smul (c : ℝ) (A : Matrix (Fin 2) (Fin 2) ℝ) : + ‖anticonformalPart (c • A)‖ = |c| * ‖anticonformalPart A‖ := by + rw [anticonformalPart_smul, norm_mul, Complex.norm_real, Real.norm_eq_abs] + +/-- `L (A / t) = L_BMS (a₊ / t, a₋ / t)`. -/ +theorem integrandL_inv_smul (t : ℝ) (A : Matrix (Fin 2) (Fin 2) ℝ) : + integrandL (t⁻¹ • A) = + External.BaernsteinMontgomerySmith.L (conformalPart A / t) (anticonformalPart A / t) := by + rw [integrandL_eq_bms, conformalPart_smul, anticonformalPart_smul, Complex.ofReal_inv, + inv_mul_eq_div, inv_mul_eq_div] + +/-! ### The Mellin representations of `B_p` (Baernstein–Montgomery-Smith (1.2a), (1.2b)) -/ + +/-- For `1 < p < 2`, `B_p (A) = (p (2 − p) / 2) ∫_0^∞ t^{p−1} L (A / t) dt`: Baernstein and +Montgomery-Smith's (1.2a) at `z = a₊`, `w = a₋`, where +`β_p Φ_p (a₊, a₋) = (2 / (p (2 − p))) B_p (A)`. -/ +theorem burkholderB_eq_mellin_of_lt_two {p : ℝ} (hp1 : 1 < p) (hp2 : p < 2) + (A : Matrix (Fin 2) (Fin 2) ℝ) : + burkholderB p A = + p * (2 - p) / 2 * ∫ t in Set.Ioi (0 : ℝ), t ^ (p - 1) * integrandL (t⁻¹ • A) := by + simp_rw [integrandL_inv_smul] + rw [External.BaernsteinMontgomerySmith.equation1_2a hp1 hp2, + External.BaernsteinMontgomerySmith.beta, External.BaernsteinMontgomerySmith.Phi] + have hα := (External.BaernsteinMontgomerySmith.alpha_pos hp1).ne' + have hp0 : p ≠ 0 := by linarith + have hp2' : 2 - p ≠ 0 := by linarith + unfold burkholderB pStar External.BaernsteinMontgomerySmith.pStar + rw [ite_eq_left hp2] + field_simp + +/-- For `2 < p`, `B_p (A) = (p (p − 1)(p − 2) / 2) ∫_0^∞ t^{p−1} (L − det) (A / t) dt`: Baernstein +and Montgomery-Smith's (1.2b) at `z = a₋`, `w = a₊`, where `M (a₊ / t, a₋ / t) = (L − det) (A / t)` +(`det_eq`) and `γ_p Φ_p (a₋, a₊) = (2 / (p (p − 1)(p − 2))) B_p (A)`. -/ +theorem burkholderB_eq_mellin_of_two_lt {p : ℝ} (hp : 2 < p) (A : Matrix (Fin 2) (Fin 2) ℝ) : + burkholderB p A = p * (p - 1) * (p - 2) / 2 * + ∫ t in Set.Ioi (0 : ℝ), t ^ (p - 1) * (integrandL (t⁻¹ • A) - (t⁻¹ • A).det) := by + have hM : ∀ t : ℝ, integrandL (t⁻¹ • A) - (t⁻¹ • A).det = + External.BaernsteinMontgomerySmith.M (conformalPart A / t) (anticonformalPart A / t) := by + intro t + rw [det_eq, integrandL_inv_smul, External.BaernsteinMontgomerySmith.M, conformalPart_smul, + anticonformalPart_smul, Complex.ofReal_inv, inv_mul_eq_div, inv_mul_eq_div] + simp_rw [hM] + rw [External.BaernsteinMontgomerySmith.equation1_2b hp, External.BaernsteinMontgomerySmith.gamma, + External.BaernsteinMontgomerySmith.Phi] + have hα := (External.BaernsteinMontgomerySmith.alpha_pos (by linarith : (1 : ℝ) < p)).ne' + have hp0 : p ≠ 0 := by linarith + have hp1 : p - 1 ≠ 0 := by linarith + have hp2' : p - 2 ≠ 0 := by linarith + unfold burkholderB pStar External.BaernsteinMontgomerySmith.pStar + rw [ite_eq_right (by linarith : ¬ p < 2), add_comm ‖anticonformalPart A‖] + field_simp + +/-- `B_2 = −det`. -/ +theorem burkholderB_two (A : Matrix (Fin 2) (Fin 2) ℝ) : burkholderB 2 A = -A.det := by + have h : pStar 2 = 2 := by norm_num [pStar] + rw [det_eq] + unfold burkholderB + rw [ite_eq_right (lt_irrefl 2), h] + norm_num + ring + +/-! ### Bounds for the Fubini step -/ + +/-- `|L (A)| ≤ 3 |A|` and `|L (A)| ≤ 3 |A|²`, with `|A| = |a₊| + |a₋|`. -/ +private theorem abs_integrandL_le (A : Matrix (Fin 2) (Fin 2) ℝ) : + |integrandL A| ≤ 3 * (‖conformalPart A‖ + ‖anticonformalPart A‖) ∧ + |integrandL A| ≤ 3 * (‖conformalPart A‖ + ‖anticonformalPart A‖) ^ 2 := by + have hs := norm_nonneg (conformalPart A) + have hr := norm_nonneg (anticonformalPart A) + unfold integrandL + split_ifs with h + · constructor <;> rw [abs_le] <;> constructor <;> nlinarith + · constructor <;> rw [abs_le] <;> constructor <;> nlinarith + +/-- `|L (A) − det A| ≤ 4 |A|²`, and `L (A) = det A` for `|A| ≤ 1`. -/ +private theorem abs_integrandL_sub_det_le (A : Matrix (Fin 2) (Fin 2) ℝ) : + |integrandL A - A.det| ≤ 4 * (‖conformalPart A‖ + ‖anticonformalPart A‖) ^ 2 ∧ + (‖conformalPart A‖ + ‖anticonformalPart A‖ ≤ 1 → integrandL A - A.det = 0) := by + have hs := norm_nonneg (conformalPart A) + have hr := norm_nonneg (anticonformalPart A) + rw [det_eq] + unfold integrandL + split_ifs with h + · simp only [sub_self, abs_zero, implies_true, and_true] + positivity + · refine ⟨?_, fun h' => absurd h' h⟩ + rw [abs_le] + constructor <;> nlinarith + +private lemma rpow_sub_one'' {t : ℝ} (ht : 0 < t) (a : ℝ) : t ^ (a - 1) = t ^ a * t⁻¹ := by + rw [Real.rpow_sub ht, Real.rpow_one, div_eq_mul_inv] + +private lemma rpow_sub_two'' {t : ℝ} (ht : 0 < t) (a : ℝ) : + t ^ (a - 2) = t ^ a * (t ^ 2)⁻¹ := by + rw [Real.rpow_sub ht, div_eq_mul_inv] + norm_cast + +private lemma measurableSet_unitSquare : MeasurableSet unitSquare := + MeasurableSet.univ_pi fun _ => measurableSet_Ioo + +/-- `|Q| = 1`, from the package `CalculusOfVariations`. -/ +private lemma volume_unitSquare' : volume unitSquare = 1 := + CalculusOfVariations.rd_volume_unitCube 2 + +/-- For a continuous `f` and a Lipschitz `φ`, `x ↦ f (A + Dφ (x))` is integrable on `Q`. -/ +private lemma integrableOn_comp_add_jacobian {f : Matrix (Fin 2) (Fin 2) ℝ → ℝ} + (hf : Continuous f) (A : Matrix (Fin 2) (Fin 2) ℝ) {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} + {C : NNReal} (hφ : LipschitzWith C φ) : + IntegrableOn (fun x => f (A + jacobian φ x)) unitSquare := + CalculusOfVariations.rd_integrableOn hf.measurable + (CalculusOfVariations.isLocallyBounded_of_continuous hf) A hφ (by rw [volume_unitSquare']; simp) + +/-! ### The Fubini step -/ + +/-- The Fubini step of the arguments of Baernstein and Montgomery-Smith: if +`f (B) = c ∫_0^∞ k (B, t) dt` with `c ≥ 0`, `k` jointly measurable, `|k (g (x), t)| ≤ G (t)` with +`G` integrable on `(0, ∞)`, and `k (A, t) ≤ ∫_Q k (g (x), t) dx` for every `t > 0`, then +`∫_Q [f (g (x)) − f (A)] dx ≥ 0`. -/ +private theorem setIntegral_sub_nonneg_of_mellin {f : Matrix (Fin 2) (Fin 2) ℝ → ℝ} + {k : Matrix (Fin 2) (Fin 2) ℝ → ℝ → ℝ} {c : ℝ} (hc : 0 ≤ c) + (hk : Measurable (Function.uncurry k)) + (hrep : ∀ B, f B = c * ∫ t in Set.Ioi (0 : ℝ), k B t) + (A : Matrix (Fin 2) (Fin 2) ℝ) (hkA : IntegrableOn (k A) (Set.Ioi 0)) + {g : (Fin 2 → ℝ) → Matrix (Fin 2) (Fin 2) ℝ} (hg : Measurable g) + {G : ℝ → ℝ} (hG : IntegrableOn G (Set.Ioi 0)) + (hbound : ∀ x t, 0 < t → |k (g x) t| ≤ G t) + (hineq : ∀ t, 0 < t → k A t ≤ ∫ x in unitSquare, k (g x) t) : + 0 ≤ ∫ x in unitSquare, (f (g x) - f A) := by + have : IsFiniteMeasure (volume.restrict unitSquare) := + isFiniteMeasure_restrict.2 (by rw [volume_unitSquare']; simp) + have hF : Integrable (Function.uncurry fun x t => k (g x) t) + ((volume.restrict unitSquare).prod (volume.restrict (Set.Ioi (0 : ℝ)))) := by + refine Integrable.mono' ((hG : Integrable G _).comp_snd _) ?_ ?_ + · exact (hk.comp ((hg.comp measurable_fst).prodMk measurable_snd)).aestronglyMeasurable + · rw [Measure.prod_restrict] + refine ae_restrict_of_forall_mem (measurableSet_unitSquare.prod measurableSet_Ioi) ?_ + rintro ⟨x, t⟩ ⟨-, ht⟩ + rw [Real.norm_eq_abs] + exact hbound x t ht + have h1 := hF.integral_prod_left + have h2 := hF.integral_prod_right + have hswap := integral_integral_swap hF + have hfg : (fun x => f (g x)) = fun x => c * ∫ t in Set.Ioi (0 : ℝ), k (g x) t := + funext fun x => hrep (g x) + have hint : IntegrableOn (fun x => f (g x)) unitSquare := by + rw [hfg]; exact h1.const_mul c + rw [integral_sub hint (integrableOn_const (by rw [volume_unitSquare']; simp)), setIntegral_const, + Measure.real, volume_unitSquare', ENNReal.toReal_one, one_smul, hfg, integral_const_mul, + hswap, hrep A, ← mul_sub] + exact mul_nonneg hc (sub_nonneg.2 (setIntegral_mono_on hkA h2 measurableSet_Ioi hineq)) + +/-! ### Corollary 2 -/ + +/-- **Corollary 2** (`cor:Bp-BA`), first assertion, for Lipschitz periodic test maps: for `1 < p`, +`∫_Q [B_p (A + Dφ) − B_p (A)] dx ≥ 0`. + +Proof: the arguments of Baernstein and Montgomery-Smith. For `1 < p < 2`, +`B_p (A) = (p (2 − p)/2) ∫_0^∞ t^{p−1} L (A / t) dt` (`burkholderB_eq_mellin_of_lt_two`, from +(1.2a)); for `2 < p`, `B_p (A) = (p (p − 1)(p − 2)/2) ∫_0^∞ t^{p−1} (L − det) (A / t) dt` +(`burkholderB_eq_mellin_of_two_lt`, from (1.2b)); `B_2 = −det`. For each `t > 0`, Theorem 1 at +`A / t` with the test map `φ / t` (`theorem1_lipschitz`) gives `∫_Q L ((A + Dφ) / t) ≥ L (A / t)`, +and `det` is a null Lagrangian (`setIntegral_unitCube_det_add_grad`); integrating in `t` against +`t^{p−1}` and exchanging the integrals (Fubini, `setIntegral_sub_nonneg_of_mellin`: the integrands +are bounded by `|L (B / t)| ≤ 3 |B| / t`, `3 |B|² / t²` and `|(L − det) (B / t)| ≤ 4 |B|² / t²`, +vanishing for `t ≥ |B|`, with `|A + Dφ|` bounded) gives the inequality. -/ +theorem corollary2_lipschitz {p : ℝ} (hp : 1 < p) (A : Matrix (Fin 2) (Fin 2) ℝ) + {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} {C : NNReal} (hφ : LipschitzWith C φ) (hper : IsPeriodic φ) : + 0 ≤ ∫ x in unitSquare, (burkholderB p (A + jacobian φ x) - burkholderB p A) := by + -- the bound `|A + Dφ (x)| ≤ N` + have hn : Continuous fun B : Matrix (Fin 2) (Fin 2) ℝ => + ‖conformalPart B‖ + ‖anticonformalPart B‖ := + continuous_conformalPart.norm.add continuous_anticonformalPart.norm + obtain ⟨N, hN0, hN⟩ := CalculusOfVariations.rd_bound_near + (CalculusOfVariations.isLocallyBounded_of_continuous hn) A C + have hNx : ∀ x, ‖conformalPart (A + jacobian φ x)‖ + ‖anticonformalPart (A + jacobian φ x)‖ ≤ N := + fun x => (le_abs_self _).trans (hN _ fun i k => CalculusOfVariations.rd_grad_abs_le hφ x i k) + have hscale : ∀ (t : ℝ) (x : Fin 2 → ℝ), 0 < t → + ‖conformalPart (t⁻¹ • (A + jacobian φ x))‖ + ‖anticonformalPart (t⁻¹ • (A + jacobian φ x))‖ + ≤ t⁻¹ * N := by + intro t x ht + rw [norm_conformalPart_smul, norm_anticonformalPart_smul, abs_of_pos (inv_pos.2 ht), ← mul_add] + exact mul_le_mul_of_nonneg_left (hNx x) (inv_pos.2 ht).le + have hg : Measurable fun x => A + jacobian φ x := CalculusOfVariations.rd_measurable_add_grad A φ + -- the test maps `φ / t` + have hφt : ∀ t : ℝ, LipschitzWith (‖t⁻¹‖₊ * C) (fun y => t⁻¹ • φ y) := fun t => + (lipschitzWith_smul (t⁻¹ : ℝ)).comp hφ + have hpert : ∀ t : ℝ, IsPeriodic (fun y => t⁻¹ • φ y) := fun t x k => by + simp only [hper x k] + have hjt : ∀ (t : ℝ) (x : Fin 2 → ℝ), + t⁻¹ • (A + jacobian φ x) = t⁻¹ • A + jacobian (fun y => t⁻¹ • φ y) x := fun t x => by + rw [jacobian_smul, smul_add] + -- Theorem 1 at `A / t` with `φ / t` + have hL : ∀ t : ℝ, integrandL (t⁻¹ • A) ≤ + ∫ x in unitSquare, integrandL (t⁻¹ • (A + jacobian φ x)) := by + intro t + have h := theorem1_lipschitz (t⁻¹ • A) (hφt t) (hpert t) + rw [integral_sub (integrableOn_comp_add_jacobian continuous_integrandL _ (hφt t)) + (integrableOn_const (by rw [volume_unitSquare']; simp)), setIntegral_const, Measure.real, + volume_unitSquare', ENNReal.toReal_one, one_smul, sub_nonneg] at h + simpa only [hjt] using h + rcases lt_trichotomy p 2 with hp2 | rfl | hp2 + · -- `1 < p < 2`: (1.2a) + refine setIntegral_sub_nonneg_of_mellin (k := fun B t => t ^ (p - 1) * integrandL (t⁻¹ • B)) + (c := p * (2 - p) / 2) (by nlinarith) ?_ (burkholderB_eq_mellin_of_lt_two hp hp2) A ?_ hg + (G := fun t => if t ≤ 1 then 3 * N * t ^ (p - 2) else 3 * N ^ 2 * t ^ (p - 3)) ?_ ?_ ?_ + · exact (measurable_snd.pow_const (p - 1)).mul + (continuous_integrandL.measurable.comp (measurable_snd.inv.smul measurable_fst)) + · simp_rw [integrandL_inv_smul] + exact External.BaernsteinMontgomerySmith.integrableOn_equation1_2a hp hp2 _ _ + · rw [← Set.Ioc_union_Ioi_eq_Ioi zero_le_one] + refine IntegrableOn.union ?_ ?_ + · refine IntegrableOn.congr_fun ?_ (fun t ht => (ite_eq_left ht.2).symm) measurableSet_Ioc + exact (intervalIntegrable_iff_integrableOn_Ioc_of_le zero_le_one).1 + ((intervalIntegral.intervalIntegrable_rpow' (r := p - 2) (by linarith)).const_mul _) + · refine IntegrableOn.congr_fun ?_ (fun t ht => (ite_eq_right (not_le.2 ht)).symm) + measurableSet_Ioi + exact (integrableOn_Ioi_rpow_of_lt (a := p - 3) (by linarith) one_pos).const_mul _ + · intro x t ht + have hb := abs_integrandL_le (t⁻¹ • (A + jacobian φ x)) + have hs := hscale t x ht + have hn0 : 0 ≤ ‖conformalPart (t⁻¹ • (A + jacobian φ x))‖ + + ‖anticonformalPart (t⁻¹ • (A + jacobian φ x))‖ := by positivity + have htp : 0 < t ^ (p - 1) := Real.rpow_pos_of_pos ht _ + rw [abs_mul, abs_of_pos htp] + split_ifs with h1 + · rw [show p - 2 = p - 1 - 1 by ring, rpow_sub_one'' ht (p - 1)] + calc t ^ (p - 1) * |integrandL (t⁻¹ • (A + jacobian φ x))| + ≤ t ^ (p - 1) * (3 * (t⁻¹ * N)) := + mul_le_mul_of_nonneg_left (hb.1.trans (by linarith)) htp.le + _ = 3 * N * (t ^ (p - 1) * t⁻¹) := by ring + · rw [show p - 3 = p - 1 - 2 by ring, rpow_sub_two'' ht (p - 1)] + calc t ^ (p - 1) * |integrandL (t⁻¹ • (A + jacobian φ x))| + ≤ t ^ (p - 1) * (3 * (t⁻¹ * N) ^ 2) := + mul_le_mul_of_nonneg_left (hb.2.trans (by gcongr)) htp.le + _ = 3 * N ^ 2 * (t ^ (p - 1) * (t ^ 2)⁻¹) := by ring + · intro t ht + rw [integral_const_mul] + exact mul_le_mul_of_nonneg_left (hL t) (Real.rpow_pos_of_pos ht _).le + · -- `p = 2`: `B_2 = −det`, a null Lagrangian + have hdet : ∫ x in unitSquare, (A + jacobian φ x).det = A.det := + CalculusOfVariations.setIntegral_unitCube_det_add_grad hφ hper A + simp_rw [burkholderB_two] + rw [integral_sub (integrableOn_comp_add_jacobian (f := fun B => -B.det) + (continuous_id.matrix_det.neg) A hφ) + (integrableOn_const (by rw [volume_unitSquare']; simp)), setIntegral_const, Measure.real, + volume_unitSquare', ENNReal.toReal_one, one_smul, integral_neg, hdet] + simp + · -- `2 < p`: (1.2b) + have hc : 0 ≤ p * (p - 1) * (p - 2) / 2 := by + have : 0 < p * (p - 1) := by nlinarith + have : 0 < p * (p - 1) * (p - 2) := by nlinarith + linarith + refine setIntegral_sub_nonneg_of_mellin + (k := fun B t => t ^ (p - 1) * (integrandL (t⁻¹ • B) - (t⁻¹ • B).det)) + (c := p * (p - 1) * (p - 2) / 2) hc ?_ (burkholderB_eq_mellin_of_two_lt hp2) A ?_ hg + (G := fun t => if t ≤ N then 4 * N ^ 2 * t ^ (p - 3) else 0) ?_ ?_ ?_ + · exact (measurable_snd.pow_const (p - 1)).mul + ((continuous_integrandL.measurable.comp (measurable_snd.inv.smul measurable_fst)).sub + ((continuous_id.matrix_det).measurable.comp (measurable_snd.inv.smul measurable_fst))) + · have hM : ∀ t : ℝ, integrandL (t⁻¹ • A) - (t⁻¹ • A).det = + External.BaernsteinMontgomerySmith.M (conformalPart A / t) (anticonformalPart A / t) := by + intro t + rw [det_eq, integrandL_inv_smul, External.BaernsteinMontgomerySmith.M, conformalPart_smul, + anticonformalPart_smul, Complex.ofReal_inv, inv_mul_eq_div, inv_mul_eq_div] + simp_rw [hM] + exact External.BaernsteinMontgomerySmith.integrableOn_equation1_2b hp2 _ _ + · rw [← Set.Ioc_union_Ioi_eq_Ioi hN0] + refine IntegrableOn.union ?_ ?_ + · refine IntegrableOn.congr_fun ?_ (fun t ht => (ite_eq_left ht.2).symm) measurableSet_Ioc + exact (intervalIntegrable_iff_integrableOn_Ioc_of_le hN0).1 + ((intervalIntegral.intervalIntegrable_rpow' (r := p - 3) (by linarith)).const_mul _) + · exact integrableOn_zero.congr_fun (fun t ht => (ite_eq_right (not_le.2 ht)).symm) + measurableSet_Ioi + · intro x t ht + have hb := abs_integrandL_sub_det_le (t⁻¹ • (A + jacobian φ x)) + have hs := hscale t x ht + have hn0 : 0 ≤ ‖conformalPart (t⁻¹ • (A + jacobian φ x))‖ + + ‖anticonformalPart (t⁻¹ • (A + jacobian φ x))‖ := by positivity + have htp : 0 < t ^ (p - 1) := Real.rpow_pos_of_pos ht _ + rw [abs_mul, abs_of_pos htp] + split_ifs with h1 + · rw [show p - 3 = p - 1 - 2 by ring, rpow_sub_two'' ht (p - 1)] + calc t ^ (p - 1) * |integrandL (t⁻¹ • (A + jacobian φ x)) - (t⁻¹ • (A + jacobian φ x)).det| + ≤ t ^ (p - 1) * (4 * (t⁻¹ * N) ^ 2) := + mul_le_mul_of_nonneg_left (hb.1.trans (by gcongr)) htp.le + _ = 4 * N ^ 2 * (t ^ (p - 1) * (t ^ 2)⁻¹) := by ring + · have hlt : t⁻¹ * N ≤ 1 := by + rw [inv_mul_le_iff₀ ht, mul_one]; exact (not_le.1 h1).le + rw [hb.2 (hs.trans hlt), abs_zero, mul_zero] + · intro t ht + rw [integral_const_mul] + refine mul_le_mul_of_nonneg_left ?_ (Real.rpow_pos_of_pos ht _).le + have hdet : ∫ x in unitSquare, (t⁻¹ • A + jacobian (fun y => t⁻¹ • φ y) x).det = + (t⁻¹ • A).det := + CalculusOfVariations.setIntegral_unitCube_det_add_grad (hφt t) (hpert t) (t⁻¹ • A) + have h := hL t + simp_rw [hjt t] at h ⊢ + rw [integral_sub (integrableOn_comp_add_jacobian continuous_integrandL _ (hφt t)) + (integrableOn_comp_add_jacobian (f := fun B => B.det) (continuous_id.matrix_det) _ (hφt t)), + hdet] + linarith + +/-- **Corollary 2** (`cor:Bp-BA`), first assertion. For every `1 < p < ∞`, every `A ∈ ℝ^{2×2}` and +every `φ ∈ C^∞_per (Q; ℝ²)`, `∫_Q [B_p (A + Dφ) − B_p (A)] dx ≥ 0`. -/ +theorem corollary2 {p : ℝ} (hp : 1 < p) (A : Matrix (Fin 2) (Fin 2) ℝ) + {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} (hφ : ContDiff ℝ ∞ φ) (hper : IsPeriodic φ) : + 0 ≤ ∫ x in unitSquare, (burkholderB p (A + jacobian φ x) - burkholderB p A) := by + obtain ⟨C, hC⟩ := exists_lipschitzWith_of_contDiff_of_isPeriodic hφ hper + exact corollary2_lipschitz hp A hC hper + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Defs.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Defs.lean new file mode 100644 index 0000000000..7cba14ac83 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Defs.lean @@ -0,0 +1,172 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +-- The Challenge in `palomar/Agazzi/` imports exactly these modules. +public import Mathlib.Analysis.Calculus.ContDiff.Defs +public import Mathlib.Analysis.Calculus.FDeriv.Basic +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.CStarAlgebra.Matrix +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier +public import Mathlib.Analysis.SpecialFunctions.Pow.Real +public import Mathlib.LinearAlgebra.Matrix.Determinant.Basic +public import Mathlib.MeasureTheory.Function.LpSeminorm.Basic +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.MeasureTheory.Measure.Lebesgue.Complex + +/-! +# The definitions of the paper + +The objects that the statements of the paper's main results use, for + +A. Agazzi, K. Astala, R. Bañuelos, G. Bruno, G. Cassese, D. Faraco, A. Guerra, M. Hormozi, +B. Kirchheim, A. Koski, V. Kovač, J. Kristensen, F. Pasqualotto, I. Prause, E. Saksman, V. Šverák, +L. Székelyhidi, R. Tione, A. Volberg, H. Yang, *Sharp higher integrability theory, Part I: the +`L^p`-norm of the Beurling–Ahlfors transform*, arXiv:2609.28311v2 (2026). + +Conventions. + +* `ℝ^{2×2}` is `Matrix (Fin 2) (Fin 2) ℝ` and `ℝ²` is `Fin 2 → ℝ`. With `ℝ² = ℂ` + (`(x, y) ↦ x + iy`), a matrix `A` acts as `A z = a₊ z + a₋ (conj z)`, with the conformal part + `a₊ = conformalPart A = ((a₁₁ + a₂₂) + i (a₂₁ − a₁₂)) / 2` and the anticonformal part + `a₋ = anticonformalPart A = ((a₁₁ − a₂₂) + i (a₂₁ + a₁₂)) / 2`. Then the operator norm of `A` is + `|a₊| + |a₋|` and `det A = |a₊|² − |a₋|²` (`Agazzi.opNorm_eq`, `Agazzi.det_eq`). +* `integrandL A = L (A)` is the integrand `(eq:L-definition)`: `|a₊|² − |a₋|²` if `|A| ≤ 1`, + `2 |a₊| − 1` if `|A| > 1`, with `|A| = |a₊| + |a₋|`. +* `pStar p = max (p, p / (p − 1))` and `burkholderB p A` is the Burkholder integrand + `(eq:Bp-definition)`. +* The torus `Q = ℝ² / ℤ²` is represented by `ℤ²`-periodic maps on `ℝ²` (`IsPeriodic`), and + integrals over `Q` by integrals over the open unit square `unitSquare = (0, 1)²`, of measure `1`. + `C^∞_per (Q; ℝ²)` is the set of `C^∞` maps `ℝ² → ℝ²` that are `ℤ²`-periodic. +* `jacobian φ x` is the matrix `D φ (x)` with the entries `∂_j φ_i (x)`: its rows are the gradients + of the components (the paper's `D u = (D u¹, D u²)`). +* The Fourier transform is Mathlib's, `𝓕 f (ξ) = ∫ e^{−2πi ⟨v, ξ⟩} f (v) dv`, on `ℂ` as a real + inner product space. `beurling f = 𝓕⁻¹ (ξ ↦ ((conj ξ) / ξ) 𝓕 f (ξ))` is the +Beurling–Ahlfors transform + `𝒮`, the Fourier multiplier with `𝒮 ∘ ∂_zbar = ∂_z` (`(eq:BA-definition)`), and `beurlingNorm p` + its norm on `L^p (ℂ; ℂ)`, the supremum of `‖𝒮 f‖_p / ‖f‖_p` over the (dense) Schwartz functions. + `dz`, `dzbar` are the Wirtinger derivatives. +* Sobolev functions on an open `Ω ⊆ ℂ`: `MemLpLoc f p Ω` is `f ∈ L^p_loc (Ω)` (`f ∈ L^p (K)` for + every compact `K ⊆ Ω`); `HasWeakLineDerivOn Ω f g v` says that `g` is the weak derivative of `f` + in the direction `v` on `Ω` (`∫ (∂_v φ) f = −∫ φ g` for every real `φ ∈ C_c^∞ (ℂ)` with support + in `Ω`); `MemW12Loc Ω f fx fy` is `f ∈ W^{1,2}_loc (Ω)` with the weak partial derivatives + `fx = ∂_x f` and `fy = ∂_y f` (all three in `L²_loc (Ω)`). Then `∂f = (fx − i fy) / 2` and + `∂_zbar f = (fx + i fy) / 2`, and `Df ∈ L^p_loc (Ω)` means `fx, fy ∈ L^p_loc (Ω)`. +* `radialStretch α z = |z|^{α − 1} z`, the radial stretch. + +The block between the markers is copied word for word into `palomar/Agazzi/Challenge.lean` by +`scripts/sync_challenge_defs.py`, and the imports are the Challenge's. The definitions of the +Beurling–Ahlfors transform repeat those of the package `HarmonicAnalysis` (`HarmonicAnalysis.Defs`), +specialized to `ℂ` and to the first power, the Sobolev definitions and the radial stretch repeat +those of `HarmonicAnalysis.Sobolev.Basic` and `HarmonicAnalysis.Complex.RadialStretch`, specialized +to `ℂ`, and the jacobian is the package `CalculusOfVariations`'s `grad`; the bridges are in +`Agazzi.Bridges`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped SchwartzMap FourierTransform ENNReal ComplexConjugate + +namespace Agazzi + +-- BEGIN SHARED DEFINITIONS + +/-- The conformal part `a₊ = ((a₁₁ + a₂₂) + i (a₂₁ − a₁₂)) / 2` of `A`: with `ℝ² = ℂ`, +`A z = a₊ z + a₋ (conj z)`. -/ +def conformalPart (A : Matrix (Fin 2) (Fin 2) ℝ) : ℂ := + ⟨(A 0 0 + A 1 1) / 2, (A 1 0 - A 0 1) / 2⟩ + +/-- The anticonformal part `a₋ = ((a₁₁ − a₂₂) + i (a₂₁ + a₁₂)) / 2` of `A`. -/ +def anticonformalPart (A : Matrix (Fin 2) (Fin 2) ℝ) : ℂ := + ⟨(A 0 0 - A 1 1) / 2, (A 1 0 + A 0 1) / 2⟩ + +/-- The integrand `L` of `(eq:L-definition)`: `L (A) = |a₊|² − |a₋|²` if `|A| ≤ 1`, and +`L (A) = 2 |a₊| − 1` if `|A| > 1`, where `|A| = |a₊| + |a₋|` is the operator norm. -/ +def integrandL (A : Matrix (Fin 2) (Fin 2) ℝ) : ℝ := + if ‖conformalPart A‖ + ‖anticonformalPart A‖ ≤ 1 then + ‖conformalPart A‖ ^ 2 - ‖anticonformalPart A‖ ^ 2 + else 2 * ‖conformalPart A‖ - 1 + +/-- `p* = max (p, p / (p − 1))`. -/ +def pStar (p : ℝ) : ℝ := max p (p / (p - 1)) + +/-- The Burkholder integrand `B_p` of `(eq:Bp-definition)`: +`B_p (A) = ((p* − 1) |a₊| − |a₋|) (|a₊| + |a₋|)^{p−1}` if `1 < p < 2`, and +`B_p (A) = ((p* − 1) |a₋| − |a₊|) (|a₊| + |a₋|)^{p−1}` if `2 ≤ p < ∞` (the real power `rpow`). +It is used for `1 < p` only. -/ +def burkholderB (p : ℝ) (A : Matrix (Fin 2) (Fin 2) ℝ) : ℝ := + if p < 2 then + ((pStar p - 1) * ‖conformalPart A‖ - ‖anticonformalPart A‖) * + (‖conformalPart A‖ + ‖anticonformalPart A‖) ^ (p - 1) + else + ((pStar p - 1) * ‖anticonformalPart A‖ - ‖conformalPart A‖) * + (‖conformalPart A‖ + ‖anticonformalPart A‖) ^ (p - 1) + +/-- The open unit square `(0, 1)²`, a fundamental domain of `ℤ²` in `ℝ²`: integrals over the torus +`Q = ℝ² / ℤ²` are integrals over it. -/ +def unitSquare : Set (Fin 2 → ℝ) := + Set.pi Set.univ fun _ => Set.Ioo 0 1 + +/-- `φ` is `ℤ²`-periodic: `φ (x + k) = φ (x)` for all `x ∈ ℝ²`, `k ∈ ℤ²`; that is, `φ` is a +function on the torus `Q = ℝ² / ℤ²`. -/ +def IsPeriodic {E : Type*} (φ : (Fin 2 → ℝ) → E) : Prop := + ∀ (x : Fin 2 → ℝ) (k : Fin 2 → ℤ), φ (x + fun i => (k i : ℝ)) = φ x + +/-- The derivative matrix `D φ (x)` of `φ : ℝ² → ℝ²`: the entries `∂_j φ_i (x)` (rows are the +gradients of the components). An entry is `0` where `φ_i` is not differentiable. -/ +def jacobian (φ : (Fin 2 → ℝ) → Fin 2 → ℝ) (x : Fin 2 → ℝ) : Matrix (Fin 2) (Fin 2) ℝ := + Matrix.of fun i j => fderiv ℝ (fun y => φ y i) x (Pi.single j 1) + +/-- The Beurling–Ahlfors transform `𝒮 f = 𝓕⁻¹ (ξ ↦ ((conj ξ) / ξ) 𝓕 f (ξ))`, by Mathlib's integral +formulas for `𝓕` and `𝓕⁻¹` (the symbol is `0` at `ξ = 0`). -/ +def beurling (f : ℂ → ℂ) : ℂ → ℂ := + 𝓕⁻ (fun ξ : ℂ => (conj ξ / ξ) • 𝓕 f ξ) + +/-- `‖𝒮‖_{L^p (ℂ; ℂ) → L^p (ℂ; ℂ)}`: the supremum, in `[0, ∞]`, of `‖𝒮 f‖_p / ‖f‖_p` over the +Schwartz functions `f` (`0 / 0 = 0`). -/ +def beurlingNorm (p : ℝ) : ℝ≥0∞ := + ⨆ f : 𝓢(ℂ, ℂ), eLpNorm (beurling f) (ENNReal.ofReal p) volume / + eLpNorm (f : ℂ → ℂ) (ENNReal.ofReal p) volume + +/-- The Wirtinger derivative `∂_z g = ½ (∂_x g − i ∂_y g)` of `g : ℂ → ℂ` (`0` where `g` is not +real-differentiable). -/ +def dz (g : ℂ → ℂ) (z : ℂ) : ℂ := + (2⁻¹ : ℂ) • (fderiv ℝ g z 1 - Complex.I • fderiv ℝ g z Complex.I) + +/-- The Wirtinger derivative `∂_zbar g = ½ (∂_x g + i ∂_y g)` of `g : ℂ → ℂ` (`0` where `g` is not +real-differentiable). -/ +def dzbar (g : ℂ → ℂ) (z : ℂ) : ℂ := + (2⁻¹ : ℂ) • (fderiv ℝ g z 1 + Complex.I • fderiv ℝ g z Complex.I) + +/-- `f ∈ L^p_loc (Ω)`: `f ∈ L^p (K)` for every compact `K ⊆ Ω`. -/ +def MemLpLoc (f : ℂ → ℂ) (p : ℝ≥0∞) (Ω : Set ℂ) : Prop := + ∀ K ⊆ Ω, IsCompact K → MemLp f p (volume.restrict K) + +open scoped ContDiff in +/-- `g` is the weak derivative of `f` in the direction `v` on `Ω`: `∫ (∂_v φ) f = −∫ φ g` for every +real `φ ∈ C_c^∞ (ℂ)` with `tsupport φ ⊆ Ω`. -/ +def HasWeakLineDerivOn (Ω : Set ℂ) (f g : ℂ → ℂ) (v : ℂ) : Prop := + ∀ φ : ℂ → ℝ, ContDiff ℝ ∞ φ → HasCompactSupport φ → tsupport φ ⊆ Ω → + ∫ z, fderiv ℝ φ z v • f z = -∫ z, φ z • g z + +/-- `f ∈ W^{1,2}_loc (Ω)`, with the weak partial derivatives `fx = ∂_x f` and `fy = ∂_y f`: `f`, +`fx` and `fy` are in `L²_loc (Ω)`, and `fx`, `fy` are the weak derivatives of `f` on `Ω` in the +directions `1` and `i`. -/ +def MemW12Loc (Ω : Set ℂ) (f fx fy : ℂ → ℂ) : Prop := + MemLpLoc f 2 Ω ∧ MemLpLoc fx 2 Ω ∧ MemLpLoc fy 2 Ω ∧ + HasWeakLineDerivOn Ω f fx 1 ∧ HasWeakLineDerivOn Ω f fy Complex.I + +/-- The radial stretch `z ↦ |z|^{α − 1} z` (`0` at `z = 0`), `r e^{iθ} ↦ r^α e^{iθ}` for `α > 0`. -/ +def radialStretch (α : ℝ) (z : ℂ) : ℂ := (‖z‖ ^ (α - 1) : ℝ) • z + +-- END SHARED DEFINITIONS + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/BaernsteinMontgomerySmith/Basic.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/BaernsteinMontgomerySmith/Basic.lean new file mode 100644 index 0000000000..6486aab9b6 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/BaernsteinMontgomerySmith/Basic.lean @@ -0,0 +1,344 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.MeasureTheory.Integral.Bochner.Set +public import Mathlib.MeasureTheory.Measure.Lebesgue.Basic +public import Mathlib.Analysis.SpecialFunctions.Integrals.Basic +public import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals +public import LeanPool.IwaniecBeurlingAhlfors.BanachProbability.Martingale.Burkholder.Function + +/-! +# Baernstein and Montgomery-Smith: the Burkholder–Šverák function and its Mellin transforms + +A. Baernstein II and S. J. Montgomery-Smith, *Some conjectures about integral means of `∂f` and +`∂_zbar f`*, in: Complex analysis and differential equations (Uppsala, 1997), Acta Univ. Upsaliensis +Skr. Uppsala Univ. C Organ. Hist. 64 (1999), 92–109; arXiv:math/9709215v2 (the version read). + +In the source's own terms, for `z, w ∈ ℂ` (TeX of arXiv:math/9709215v2, §1): + +* `L (z, w) = |z|² − |w|²` if `|z| + |w| ≤ 1`, `2|z| − 1` if `|z| + |w| > 1`; +* `p* = max (p, p')`, `1/p + 1/p' = 1`, and + `Φ_p (z, w) = α_p ((p* − 1)|z| − |w|)(|z| + |w|)^{p−1}`, `α_p = p (1 − 1/p*)^{p−1}`; +* (1.2a): `∫_0^∞ t^{p−1} L (z/t, w/t) dt = β_p Φ_p (z, w)` for `1 < p < 2`, + `β_p = (½ p (2 − p) α_p)⁻¹`; +* (1.2b): with `M (z, w) = L (z, w) − (|z|² − |w|²)`, + `∫_0^∞ t^{p−1} M (w/t, z/t) dt = γ_p Φ_p (z, w)` for `2 < p < ∞`, + `γ_p = (½ p (p − 1)(p − 2) α_p)⁻¹`; +* "From [Bu3, p. 77] follows the inequality" `Φ_p (z, w) ≤ (p* − 1)^p |z|^p − |w|^p` + (`1 < p < ∞`); [Bu3] is D. L. Burkholder, *Sharp inequalities for martingales and stochastic + integrals*, Colloque Paul Lévy (Palaiseau, 1987), Astérisque 157–158 (1988), 75–94 (as listed in + the source). + +The paper (arXiv:2609.28311, TeX line 301) proves its Corollary 2 "by the arguments in +[Baernstein1997a]": these identities, the null Lagrangian `∫ |∂f|² − |∂_zbar f|² = 0`, and this +inequality. + +Proofs. (1.2a) and (1.2b) are proved by direct integration: with `S = |z| + |w|`, the integrands +are combinations of powers `t^a` on `(0, S]` and on `(S, ∞)`, integrated by Mathlib's +`integral_rpow` and `integral_Ioi_rpow_of_lt`. The inequality is Burkholder's majorization +`V ≤ U` (Burkholder 1988, (1.10)), as formalized in the package `BanachProbability` +(`BanachProbability.Burkholder.burkholderU_ge`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory + +namespace External.BaernsteinMontgomerySmith + +/-- The Burkholder–Šverák function `L : ℂ × ℂ → ℝ`. -/ +def L (z w : ℂ) : ℝ := + if ‖z‖ + ‖w‖ ≤ 1 then ‖z‖ ^ 2 - ‖w‖ ^ 2 else 2 * ‖z‖ - 1 + +/-- `M (z, w) = L (z, w) − (|z|² − |w|²)`. -/ +def M (z w : ℂ) : ℝ := L z w - (‖z‖ ^ 2 - ‖w‖ ^ 2) + +/-- `p* = max (p, p')`, `p' = p / (p − 1)`. -/ +def pStar (p : ℝ) : ℝ := max p (p / (p - 1)) + +/-- `α_p = p (1 − 1/p*)^{p−1}`. -/ +def alpha (p : ℝ) : ℝ := p * (1 - 1 / pStar p) ^ (p - 1) + +/-- `Φ_p (z, w) = α_p ((p* − 1)|z| − |w|)(|z| + |w|)^{p−1}`. -/ +def Phi (p : ℝ) (z w : ℂ) : ℝ := + alpha p * ((pStar p - 1) * ‖z‖ - ‖w‖) * (‖z‖ + ‖w‖) ^ (p - 1) + +/-- `β_p = (½ p (2 − p) α_p)⁻¹`. -/ +def beta (p : ℝ) : ℝ := (p * (2 - p) * alpha p / 2)⁻¹ + +/-- `γ_p = (½ p (p − 1)(p − 2) α_p)⁻¹`. -/ +def gamma (p : ℝ) : ℝ := (p * (p - 1) * (p - 2) * alpha p / 2)⁻¹ + +/-! ### The integrands on `(0, |z| + |w|]` and on `(|z| + |w|, ∞)` -/ + +/-- `L (z/t, w/t)` for `t > 0`: `|z/t| + |w/t| ≤ 1` exactly when `|z| + |w| ≤ t`. -/ +private lemma L_div {z w : ℂ} {t : ℝ} (ht : 0 < t) : + L (z / t) (w / t) = + if ‖z‖ + ‖w‖ ≤ t then (‖z‖ ^ 2 - ‖w‖ ^ 2) / t ^ 2 else 2 * ‖z‖ / t - 1 := by + have hn : ∀ u : ℂ, ‖u / (t : ℂ)‖ = ‖u‖ / t := fun u => by + rw [norm_div, Complex.norm_real, Real.norm_of_nonneg ht.le] + have hc : ‖z‖ / t + ‖w‖ / t ≤ 1 ↔ ‖z‖ + ‖w‖ ≤ t := by rw [← add_div, div_le_one ht] + unfold L + rw [hn, hn] + by_cases h : ‖z‖ + ‖w‖ ≤ t + · rw [ite_eq_left (hc.2 h), ite_eq_left h]; ring + · rw [ite_eq_right (mt hc.1 h), ite_eq_right h]; ring + +/-- For `0 < t ≤ |z| + |w|`, `L (z/t, w/t) = 2|z|/t − 1` (at `t = |z| + |w|` the two expressions +agree). -/ +private lemma L_div_of_le {z w : ℂ} {t : ℝ} (ht : 0 < t) (hts : t ≤ ‖z‖ + ‖w‖) : + L (z / t) (w / t) = 2 * ‖z‖ / t - 1 := by + rw [L_div ht] + split_ifs with h + · have he : t = ‖z‖ + ‖w‖ := le_antisymm hts h + rw [he] + have hS : ‖z‖ + ‖w‖ ≠ 0 := by rw [← he]; exact ht.ne' + field_simp + ring + · rfl + +/-- For `|z| + |w| ≤ t`, `L (z/t, w/t) = (|z|² − |w|²)/t²`. -/ +private lemma L_div_of_ge {z w : ℂ} {t : ℝ} (ht : 0 < t) (hts : ‖z‖ + ‖w‖ ≤ t) : + L (z / t) (w / t) = (‖z‖ ^ 2 - ‖w‖ ^ 2) / t ^ 2 := by + rw [L_div ht, ite_eq_left hts] + +private lemma norm_div_ofReal {t : ℝ} (ht : 0 < t) (u : ℂ) : ‖u / (t : ℂ)‖ = ‖u‖ / t := by + rw [norm_div, Complex.norm_real, Real.norm_of_nonneg ht.le] + +private lemma rpow_sub_one' {t : ℝ} (ht : 0 < t) (a : ℝ) : t ^ (a - 1) = t ^ a * t⁻¹ := by + rw [Real.rpow_sub ht, Real.rpow_one, div_eq_mul_inv] + +private lemma rpow_sub_two' {t : ℝ} (ht : 0 < t) (a : ℝ) : t ^ (a - 2) = t ^ a * (t ^ 2)⁻¹ := by + rw [Real.rpow_sub ht, div_eq_mul_inv] + norm_cast + +/-- The integrand of (1.2a) on `(0, |z| + |w|]`. -/ +private lemma eqOn_Ioc_2a (p : ℝ) (z w : ℂ) : + Set.EqOn (fun t : ℝ => t ^ (p - 1) * L (z / t) (w / t)) + (fun t => 2 * ‖z‖ * t ^ (p - 2) - t ^ (p - 1)) (Set.Ioc 0 (‖z‖ + ‖w‖)) := by + intro t ht + simp only + rw [L_div_of_le ht.1 ht.2, show p - 2 = p - 1 - 1 by ring, rpow_sub_one' ht.1 (p - 1)] + ring + +/-- The integrand of (1.2a) on `(|z| + |w|, ∞)`. -/ +private lemma eqOn_Ioi_2a (p : ℝ) (z w : ℂ) : + Set.EqOn (fun t : ℝ => t ^ (p - 1) * L (z / t) (w / t)) + (fun t => (‖z‖ ^ 2 - ‖w‖ ^ 2) * t ^ (p - 3)) (Set.Ioi (‖z‖ + ‖w‖)) := by + intro t ht + have ht0 : 0 < t := lt_of_le_of_lt (by positivity) ht + simp only + rw [L_div_of_ge ht0 (le_of_lt ht), show p - 3 = p - 1 - 2 by ring, rpow_sub_two' ht0 (p - 1)] + ring + +/-- The integrand of (1.2b) on `(0, |z| + |w|]`. -/ +private lemma eqOn_Ioc_2b (p : ℝ) (z w : ℂ) : + Set.EqOn (fun t : ℝ => t ^ (p - 1) * M (w / t) (z / t)) + (fun t => 2 * ‖w‖ * t ^ (p - 2) - t ^ (p - 1) - (‖w‖ ^ 2 - ‖z‖ ^ 2) * t ^ (p - 3)) + (Set.Ioc 0 (‖w‖ + ‖z‖)) := by + intro t ht + simp only + rw [M, L_div_of_le ht.1 ht.2, norm_div_ofReal ht.1, norm_div_ofReal ht.1, + show p - 2 = p - 1 - 1 by ring, rpow_sub_one' ht.1 (p - 1), show p - 3 = p - 1 - 2 by ring, + rpow_sub_two' ht.1 (p - 1)] + ring + +/-- The integrand of (1.2b) vanishes on `(|z| + |w|, ∞)`. -/ +private lemma eqOn_Ioi_2b (p : ℝ) (z w : ℂ) : + Set.EqOn (fun t : ℝ => t ^ (p - 1) * M (w / t) (z / t)) (fun _ => 0) + (Set.Ioi (‖w‖ + ‖z‖)) := by + intro t ht + have ht0 : 0 < t := lt_of_le_of_lt (by positivity) ht + simp only + rw [M, L_div_of_ge ht0 (le_of_lt ht), norm_div_ofReal ht0, norm_div_ofReal ht0] + ring + +/-! ### The integrals of the powers -/ + +private lemma intervalIntegrable_rpow_comb {a b : ℝ} (ha : -1 < a) (hb : -1 < b) (c d S : ℝ) : + IntervalIntegrable (fun t : ℝ => c * t ^ a - d * t ^ b) volume 0 S := + ((intervalIntegral.intervalIntegrable_rpow' ha).const_mul c).sub + ((intervalIntegral.intervalIntegrable_rpow' hb).const_mul d) + +private lemma integral_rpow_comb {a b : ℝ} (ha : -1 < a) (hb : -1 < b) (c d S : ℝ) : + ∫ t in (0 : ℝ)..S, (c * t ^ a - d * t ^ b) = + c * (S ^ (a + 1) / (a + 1)) - d * (S ^ (b + 1) / (b + 1)) := by + rw [intervalIntegral.integral_sub ((intervalIntegral.intervalIntegrable_rpow' ha).const_mul c) + ((intervalIntegral.intervalIntegrable_rpow' hb).const_mul d), + intervalIntegral.integral_const_mul, intervalIntegral.integral_const_mul, + integral_rpow (Or.inl ha), integral_rpow (Or.inl hb), Real.zero_rpow (by linarith), + Real.zero_rpow (by linarith), sub_zero, sub_zero] + +/-! ### The constants -/ + +/-- `α_p > 0` for `1 < p`. -/ +theorem alpha_pos {p : ℝ} (hp : 1 < p) : 0 < alpha p := by + have hps : p ≤ pStar p := le_max_left _ _ + have h1 : 0 < 1 - 1 / pStar p := by + rw [sub_pos, div_lt_one (by linarith)]; linarith + exact mul_pos (by linarith) (Real.rpow_pos_of_pos h1 _) + +private lemma pStar_sub_one_of_lt_two {p : ℝ} (hp1 : 1 < p) (hp2 : p < 2) : + pStar p - 1 = (p - 1)⁻¹ := by + have h : pStar p = p / (p - 1) := + max_eq_right (by rw [le_div_iff₀ (by linarith)]; nlinarith) + have hp0 : p - 1 ≠ 0 := by linarith + rw [h] + field_simp + ring + +private lemma pStar_of_two_lt {p : ℝ} (hp : 2 < p) : pStar p = p := + max_eq_left (by rw [div_le_iff₀ (by linarith)]; nlinarith) + +/-! ### (1.2a) and (1.2b) -/ + +/-- The integrand of (1.2a) is integrable on `(0, ∞)` for `1 < p < 2`. + +Proof: direct integration. With `S = |z| + |w|`, the integrand is `2|z| t^{p−2} − t^{p−1}` on +`(0, S]` and `(|z|² − |w|²) t^{p−3}` on `(S, ∞)`; `p − 2 > −1` and `p − 3 < −1`. -/ +theorem integrableOn_equation1_2a {p : ℝ} (hp1 : 1 < p) (hp2 : p < 2) (z w : ℂ) : + IntegrableOn (fun t : ℝ => t ^ (p - 1) * L (z / t) (w / t)) (Set.Ioi 0) := by + rcases (add_nonneg (norm_nonneg z) (norm_nonneg w)).eq_or_lt with hS | hS + · have hz : z = 0 := norm_eq_zero.1 (by linarith [norm_nonneg z, norm_nonneg w]) + have hw : w = 0 := norm_eq_zero.1 (by linarith [norm_nonneg z, norm_nonneg w]) + subst hz hw + simp [L] + · rw [← Set.Ioc_union_Ioi_eq_Ioi hS.le] + refine IntegrableOn.union ?_ ?_ + · refine IntegrableOn.congr_fun ?_ (eqOn_Ioc_2a p z w).symm measurableSet_Ioc + have := intervalIntegrable_rpow_comb (a := p - 2) (b := p - 1) (by linarith) (by linarith) + (2 * ‖z‖) 1 (‖z‖ + ‖w‖) + simp only [one_mul] at this + exact (intervalIntegrable_iff_integrableOn_Ioc_of_le hS.le).1 this + · exact IntegrableOn.congr_fun + ((integrableOn_Ioi_rpow_of_lt (a := p - 3) (by linarith) hS).const_mul + (‖z‖ ^ 2 - ‖w‖ ^ 2)) (eqOn_Ioi_2a p z w).symm measurableSet_Ioi + +/-- **(1.2a)**: `∫_0^∞ t^{p−1} L (z/t, w/t) dt = β_p Φ_p (z, w)` for `1 < p < 2`. + +Proof: direct integration. With `S = |z| + |w|`, the integral over `(0, S]` is +`2|z| S^{p−1}/(p − 1) − S^p/p` and the integral over `(S, ∞)` is `(|z|² − |w|²) S^{p−2}/(2 − p)`; +the sum is `(2/(p (2 − p))) S^{p−1} (|z|/(p − 1) − |w|) = β_p Φ_p (z, w)`, since +`p* − 1 = 1/(p − 1)`. -/ +theorem equation1_2a {p : ℝ} (hp1 : 1 < p) (hp2 : p < 2) (z w : ℂ) : + ∫ t in Set.Ioi (0 : ℝ), t ^ (p - 1) * L (z / t) (w / t) = beta p * Phi p z w := by + rcases (add_nonneg (norm_nonneg z) (norm_nonneg w)).eq_or_lt with hS | hS + · have hz : z = 0 := norm_eq_zero.1 (by linarith [norm_nonneg z, norm_nonneg w]) + have hw : w = 0 := norm_eq_zero.1 (by linarith [norm_nonneg z, norm_nonneg w]) + subst hz hw + simp [L, Phi] + · have hI := integrableOn_equation1_2a hp1 hp2 z w + rw [← Set.Ioc_union_Ioi_eq_Ioi hS.le] at hI ⊢ + rw [setIntegral_union Set.Ioc_disjoint_Ioi_same measurableSet_Ioi + (hI.mono_set Set.subset_union_left) (hI.mono_set Set.subset_union_right), + setIntegral_congr_fun measurableSet_Ioc (eqOn_Ioc_2a p z w), + setIntegral_congr_fun measurableSet_Ioi (eqOn_Ioi_2a p z w), + integral_const_mul, integral_Ioi_rpow_of_lt (by linarith) hS] + have h1 := integral_rpow_comb (a := p - 2) (b := p - 1) (by linarith) (by linarith) + (2 * ‖z‖) 1 (‖z‖ + ‖w‖) + simp only [one_mul] at h1 + rw [← intervalIntegral.integral_of_le hS.le, h1] + set s := ‖z‖ + set r := ‖w‖ + have hα := (alpha_pos hp1).ne' + have hSp : (s + r) ^ p = (s + r) ^ (p - 1) * (s + r) := by + rw [rpow_sub_one' hS, mul_assoc, inv_mul_cancel₀ hS.ne', mul_one] + have hS2 : (s + r) ^ (p - 3 + 1) = (s + r) ^ (p - 1) * (s + r)⁻¹ := by + rw [show p - 3 + 1 = p - 1 - 1 by ring, rpow_sub_one' hS] + rw [show p - 2 + 1 = p - 1 by ring, show p - 1 + 1 = p by ring, hSp, hS2, beta, Phi, + pStar_sub_one_of_lt_two hp1 hp2] + have hp0 : p - 1 ≠ 0 := by linarith + have hp2' : 2 - p ≠ 0 := by linarith + have hp3 : p - 3 + 1 ≠ 0 := by linarith + have hpp : p ≠ 0 := by linarith + field_simp + ring + +/-- The integrand of (1.2b) is integrable on `(0, ∞)` for `2 < p`. + +Proof: direct integration. With `S = |z| + |w|`, the integrand is +`2|w| t^{p−2} − t^{p−1} − (|w|² − |z|²) t^{p−3}` on `(0, S]` and `0` on `(S, ∞)`; `p − 3 > −1`. -/ +theorem integrableOn_equation1_2b {p : ℝ} (hp : 2 < p) (z w : ℂ) : + IntegrableOn (fun t : ℝ => t ^ (p - 1) * M (w / t) (z / t)) (Set.Ioi 0) := by + have hS : 0 ≤ ‖w‖ + ‖z‖ := by positivity + rw [← Set.Ioc_union_Ioi_eq_Ioi hS] + refine IntegrableOn.union ?_ ?_ + · refine IntegrableOn.congr_fun ?_ (eqOn_Ioc_2b p z w).symm measurableSet_Ioc + have := (intervalIntegrable_rpow_comb (a := p - 2) (b := p - 1) (by linarith) (by linarith) + (2 * ‖w‖) 1 (‖w‖ + ‖z‖)).sub + ((intervalIntegral.intervalIntegrable_rpow' (a := 0) (b := ‖w‖ + ‖z‖) + (r := p - 3) (by linarith)).const_mul (‖w‖ ^ 2 - ‖z‖ ^ 2)) + simp only [one_mul] at this + exact (intervalIntegrable_iff_integrableOn_Ioc_of_le hS).1 this + · exact integrableOn_zero.congr_fun (eqOn_Ioi_2b p z w).symm measurableSet_Ioi + +/-- **(1.2b)**: `∫_0^∞ t^{p−1} M (w/t, z/t) dt = γ_p Φ_p (z, w)` for `2 < p < ∞`. + +Proof: direct integration. With `S = |z| + |w|`, the integrand vanishes on `(S, ∞)`, and its +integral over `(0, S]` is `2|w| S^{p−1}/(p − 1) − S^p/p − (|w|² − |z|²) S^{p−2}/(p − 2) += (2/(p (p − 1)(p − 2))) S^{p−1} ((p − 1)|z| − |w|) = γ_p Φ_p (z, w)`, since `p* = p`. -/ +theorem equation1_2b {p : ℝ} (hp : 2 < p) (z w : ℂ) : + ∫ t in Set.Ioi (0 : ℝ), t ^ (p - 1) * M (w / t) (z / t) = gamma p * Phi p z w := by + rcases (add_nonneg (norm_nonneg w) (norm_nonneg z)).eq_or_lt with hS | hS + · have hz : z = 0 := norm_eq_zero.1 (by linarith [norm_nonneg z, norm_nonneg w]) + have hw : w = 0 := norm_eq_zero.1 (by linarith [norm_nonneg z, norm_nonneg w]) + subst hz hw + simp [M, L, Phi] + · have hI := integrableOn_equation1_2b hp z w + rw [← Set.Ioc_union_Ioi_eq_Ioi hS.le] at hI ⊢ + rw [setIntegral_union Set.Ioc_disjoint_Ioi_same measurableSet_Ioi + (hI.mono_set Set.subset_union_left) (hI.mono_set Set.subset_union_right), + setIntegral_congr_fun measurableSet_Ioc (eqOn_Ioc_2b p z w), + setIntegral_congr_fun measurableSet_Ioi (eqOn_Ioi_2b p z w), integral_zero, add_zero, + ← intervalIntegral.integral_of_le hS.le, + intervalIntegral.integral_sub (intervalIntegrable_rpow_comb (a := p - 2) (b := p - 1) + (by linarith) (by linarith) (2 * ‖w‖) 1 (‖w‖ + ‖z‖) |>.congr fun t _ => by ring) + ((intervalIntegral.intervalIntegrable_rpow' (r := p - 3) (by linarith)).const_mul _)] + have h1 := integral_rpow_comb (a := p - 2) (b := p - 1) (by linarith) (by linarith) + (2 * ‖w‖) 1 (‖w‖ + ‖z‖) + simp only [one_mul] at h1 + rw [h1, intervalIntegral.integral_const_mul, integral_rpow (Or.inl (by linarith)), + Real.zero_rpow (by linarith), sub_zero] + set s := ‖z‖ + set r := ‖w‖ + have hα := (alpha_pos (by linarith : (1 : ℝ) < p)).ne' + have hSp : (r + s) ^ p = (r + s) ^ (p - 1) * (r + s) := by + rw [rpow_sub_one' hS, mul_assoc, inv_mul_cancel₀ hS.ne', mul_one] + have hS2 : (r + s) ^ (p - 3 + 1) = (r + s) ^ (p - 1) * (r + s)⁻¹ := by + rw [show p - 3 + 1 = p - 1 - 1 by ring, rpow_sub_one' hS] + rw [show p - 2 + 1 = p - 1 by ring, show p - 1 + 1 = p by ring, hSp, hS2, gamma, Phi, + pStar_of_two_lt hp, add_comm s r] + have hp0 : p - 1 ≠ 0 := by linarith + have hp2' : p - 2 ≠ 0 := by linarith + have hp3 : p - 3 + 1 ≠ 0 := by linarith + have hpp : p ≠ 0 := by linarith + field_simp + ring + +/-- **Burkholder's inequality** as the source uses it ("From [Bu3, p. 77] follows the +inequality", §1): `Φ_p (z, w) ≤ (p* − 1)^p |z|^p − |w|^p` for `1 < p < ∞`. + +Proof: Burkholder's majorization, as formalized in BanachProbability +(`BanachProbability.Burkholder.burkholderU_ge`, Burkholder 1988, (1.10)), at `s = |w|`, `r = |z|`: +`Φ_p (z, w) = −U (|w|, |z|)`. -/ +theorem phi_le {p : ℝ} (hp : 1 < p) (z w : ℂ) : + Phi p z w ≤ (pStar p - 1) ^ p * ‖z‖ ^ p - ‖w‖ ^ p := by + have h := BanachProbability.Burkholder.burkholderU_ge hp (norm_nonneg w) (norm_nonneg z) + have he : Phi p z w = -BanachProbability.Burkholder.burkholderU p ‖w‖ ‖z‖ := by + unfold Phi alpha pStar BanachProbability.Burkholder.burkholderU + rw [add_comm ‖w‖ ‖z‖] + ring + rw [he] + unfold pStar + linarith + +end External.BaernsteinMontgomerySmith diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/BaernsteinMontgomerySmith/RemarkB.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/BaernsteinMontgomerySmith/RemarkB.lean new file mode 100644 index 0000000000..5e4c3f4df2 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/BaernsteinMontgomerySmith/RemarkB.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.CompactSupport + +/-! +# Baernstein and Montgomery-Smith, remark (b): from `∂` and `∂_zbar` to the norm of `𝒮` + +A. Baernstein II and S. J. Montgomery-Smith, *Some conjectures about integral means of `∂f` and +`∂_zbar f`* (1999; arXiv:math/9709215v2, the version read), end of §1: + +* Conjecture 3 (Iwaniec): `∫ |∂_zbar f|^p ≤ (p* − 1)^p ∫ |∂f|^p` for `f ∈ W_hom^{1,p} (ℂ, ℂ)`, + `1 < p < ∞`; "Like Conjecture 1, each of Conjectures 2 and 3 is true if and only the same + inequality always holds when `∂f` and `∂_zbar f` are interchanged". +* Remark (b): "Truth of Conjecture 3 would show that the norm of `S` on `L^p (ℂ, ℂ)` is precisely + `p* − 1`." + +The source gives no proof of remark (b). The paper (arXiv:2609.28311, TeX line 301) derives the +norm "by the arguments in [Baernstein1997a] (see also [Guerra2026b] for further details)"; Guerra +(arXiv:2608.23388, proof of the corollary labelled `cor:beurling-lp` in its TeX) makes the passage +to `L^p (ℂ)` explicit, for Hessians: density, a potential, the cut-offs `η_R`, and the limit. + +Stated here (`remark_b`) for the upper bound, with any constant `C`, the inequality with `∂` and +`∂_zbar` interchanged as the source allows, and the test functions `f ∈ C_c^∞ (ℂ)`, which is what +the +argument needs: if `∫ |∂f|^p ≤ C^p ∫ |∂_zbar f|^p` for every smooth compactly supported `f`, then +`‖𝒮‖_p ≤ C`. The norm is the package `HarmonicAnalysis`'s `beurlingPowNorm 1 p`, the supremum of +`‖𝒮 g‖_p / ‖g‖_p` over Schwartz functions. + +## Proof + +Guerra's argument, in the gradient case, as formalized in the package `HarmonicAnalysis` +(`HarmonicAnalysis.beurlingPowNorm_one_le_of_forall_hasCompactSupport`): +* the dense class `C_c^∞`: for `g ∈ C_c^∞`, its Cauchy transform + `f (z) = (1/π) ∫ g (w) / (z − w) dw` has `∂_zbar f = g` (the Cauchy–Pompeiu formula), `∂f = 𝒮 g` + (Liouville's theorem for `∂f − 𝒮 g`), `f = O (1/|z|)` and `∂f = O (1/|z|²)`; +* the inequality is applied to `η_R f`, with Guerra's cut-offs `η_R`, and `R → ∞`; +* density carries the bound to every Schwartz `g`. + +The one departure from Guerra's text is forced: Guerra treats Hessians of real functions, with the +logarithmic potential, while the norm on complex `L^p` needs the gradient case, with the Cauchy +transform. Guerra's "by density" presupposes the boundedness of `𝒮` on `L^p`, which the package +does not prove; its density step uses the convergence of the Fourier transforms in `L¹` and +Fatou's lemma instead. Here the integral inequality is turned into the inequality of `L^p` norms +that the package's statement takes. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped ENNReal ContDiff + +namespace External.BaernsteinMontgomerySmith + +/-- `∂f` is continuous for a `C¹` function `f`. -/ +theorem continuous_dz_of_contDiff {f : ℂ → ℂ} (hf : ContDiff ℝ 1 f) : + Continuous (HarmonicAnalysis.dz f) := by + have h := hf.continuous_fderiv one_ne_zero + unfold HarmonicAnalysis.dz + fun_prop + +/-- `∂_zbar f` is continuous for a `C¹` function `f`. -/ +theorem continuous_dzbar_of_contDiff {f : ℂ → ℂ} (hf : ContDiff ℝ 1 f) : + Continuous (HarmonicAnalysis.dzbar f) := by + have h := hf.continuous_fderiv one_ne_zero + unfold HarmonicAnalysis.dzbar + fun_prop + +/-- `∂f` has compact support if `f` has. -/ +theorem hasCompactSupport_dz {f : ℂ → ℂ} (hf : HasCompactSupport f) : + HasCompactSupport (HarmonicAnalysis.dz f) := + HasCompactSupport.intro (hf.fderiv ℝ) fun z hz => by + simp [HarmonicAnalysis.dz, image_eq_zero_of_notMem_tsupport hz] + +/-- `∂_zbar f` has compact support if `f` has. -/ +theorem hasCompactSupport_dzbar {f : ℂ → ℂ} (hf : HasCompactSupport f) : + HasCompactSupport (HarmonicAnalysis.dzbar f) := + HasCompactSupport.intro (hf.fderiv ℝ) fun z hz => by + simp [HarmonicAnalysis.dzbar, image_eq_zero_of_notMem_tsupport hz] + +/-- The integral inequality `∫ |∂f|^p ≤ C^p ∫ |∂_zbar f|^p` as `‖∂f‖_p ≤ C ‖∂_zbar f‖_p`, for `f` +smooth +with compact support, `0 < p` and `0 ≤ C`. -/ +theorem eLpNorm_dz_le_of_integral_le {p : ℝ} (hp : 0 < p) {C : ℝ} (hC : 0 ≤ C) {f : ℂ → ℂ} + (hf : ContDiff ℝ ∞ f) (hfc : HasCompactSupport f) + (h : ∫ z, ‖HarmonicAnalysis.dz f z‖ ^ p ≤ C ^ p * ∫ z, ‖HarmonicAnalysis.dzbar f z‖ ^ p) : + eLpNorm (HarmonicAnalysis.dz f) (ENNReal.ofReal p) volume ≤ + ENNReal.ofReal C * eLpNorm (HarmonicAnalysis.dzbar f) (ENNReal.ofReal p) volume := by + have h0 : ENNReal.ofReal p ≠ 0 := (ENNReal.ofReal_pos.2 hp).ne' + have hf1 : ContDiff ℝ 1 f := hf.of_le (by simp) + rw [((continuous_dz_of_contDiff hf1).memLp_of_hasCompactSupport + (hasCompactSupport_dz hfc)).eLpNorm_eq_integral_rpow_norm h0 ENNReal.ofReal_ne_top, + ((continuous_dzbar_of_contDiff hf1).memLp_of_hasCompactSupport + (hasCompactSupport_dzbar hfc)).eLpNorm_eq_integral_rpow_norm h0 ENNReal.ofReal_ne_top, + ENNReal.toReal_ofReal hp.le, ← ENNReal.ofReal_mul hC] + apply ENNReal.ofReal_le_ofReal + have hI : 0 ≤ ∫ z, ‖HarmonicAnalysis.dzbar f z‖ ^ p := integral_nonneg fun z => by positivity + calc (∫ z, ‖HarmonicAnalysis.dz f z‖ ^ p) ^ p⁻¹ + ≤ (C ^ p * ∫ z, ‖HarmonicAnalysis.dzbar f z‖ ^ p) ^ p⁻¹ := + Real.rpow_le_rpow (integral_nonneg fun z => by positivity) h (inv_nonneg.2 hp.le) + _ = C * (∫ z, ‖HarmonicAnalysis.dzbar f z‖ ^ p) ^ p⁻¹ := by + rw [Real.mul_rpow (by positivity) hI, Real.rpow_rpow_inv hC hp.ne'] + +/-- **Remark (b)** of Baernstein–Montgomery-Smith (§1), for the upper bound: if +`∫ |∂f|^p ≤ C^p ∫ |∂_zbar f|^p` for every smooth compactly supported `f : ℂ → ℂ`, then the norm of +the Beurling–Ahlfors transform on `L^p (ℂ)` is at most `C`, `1 < p < ∞`. + +Proof: Guerra's passage to `L^p (ℂ)` (arXiv:2608.23388, proof of `cor:beurling-lp`), in the +gradient case, as formalized in the package `HarmonicAnalysis` +(`HarmonicAnalysis.beurlingPowNorm_one_le_of_forall_hasCompactSupport`; the module docstring +says how it follows Guerra's proof). -/ +theorem remark_b {p : ℝ} (hp : 1 < p) {C : ℝ} (hC : 0 ≤ C) + (h : ∀ f : ℂ → ℂ, ContDiff ℝ ∞ f → HasCompactSupport f → + ∫ z, ‖HarmonicAnalysis.dz f z‖ ^ p ≤ C ^ p * ∫ z, ‖HarmonicAnalysis.dzbar f z‖ ^ p) : + HarmonicAnalysis.beurlingPowNorm 1 p ≤ ENNReal.ofReal C := + HarmonicAnalysis.beurlingPowNorm_one_le_of_forall_hasCompactSupport hp fun f hf hfc => + eLpNorm_dz_le_of_integral_le (by linarith) hC hf hfc (h f hf hfc) + +end External.BaernsteinMontgomerySmith diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/Guerra/TheoremL.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/Guerra/TheoremL.lean new file mode 100644 index 0000000000..d4d9bc3735 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/Guerra/TheoremL.lean @@ -0,0 +1,51 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Hessian + +/-! +# Guerra, Theorem 1.1: the quasiconvexity of `L` for Hessians + +A. Guerra, *Quasiconvexity of the Burkholder function on symmetric matrices*, preprint, +arXiv:2608.23388v1 (2026), Theorem 1.1 (labelled `thm:L` in its TeX): "For every +`A ∈ ℝ^{2×2}` and every `u ∈ C_c^∞ (ℝ²)` we have `∫_{ℝ²} [L (A + D²u) − L (A)] dx ≥ 0`." + +The paper (arXiv:2609.28311, TeX line 285) attributes the Hessian case of its Theorem 1, for +periodic `u ∈ C^∞_per (Q)`, to this theorem; the two forms are equivalent +(`Agazzi.theorem1_hessian_iff`; report, E1). + +## Proof + +Not Guerra's, which uses Morse theory: Theorem 1 for `φ = Du` (`Agazzi.theorem1_hessian`), and the +passage from periodic to compactly supported test functions (`Agazzi.theorem1_hessian_iff`, the +second-order form of Dacorogna's Prop. 5.13 in the package `CalculusOfVariations`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped ContDiff + +namespace External.Guerra + +open Agazzi + +/-- **Guerra, Theorem 1.1** (claimed in arXiv:2608.23388): for every `A ∈ ℝ^{2×2}` and every +`u ∈ C_c^∞ (ℝ²)`, `∫_{ℝ²} [L (A + D²u) − L (A)] dx ≥ 0`. + +Proof: `Agazzi.theorem1_hessian` and `Agazzi.theorem1_hessian_iff` (see the module docstring). -/ +theorem theorem1_1 (A : Matrix (Fin 2) (Fin 2) ℝ) {u : (Fin 2 → ℝ) → ℝ} (hu : ContDiff ℝ ∞ u) + (hc : HasCompactSupport u) : + 0 ≤ ∫ x, + (integrandL (A + jacobian (fun y i => fderiv ℝ u y (Pi.single i 1)) x) - integrandL A) := + (theorem1_hessian_iff A).1 (fun _ hv hper => theorem1_hessian A hv hper) u hu hc + +end External.Guerra diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/KinderlehrerStampacchia/Projection.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/KinderlehrerStampacchia/Projection.lean new file mode 100644 index 0000000000..e3db34882f --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/KinderlehrerStampacchia/Projection.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.InnerProductSpace.Projection.Minimal + +/-! +# Kinderlehrer and Stampacchia: the projection on a closed convex set + +D. Kinderlehrer and G. Stampacchia, *An introduction to variational inequalities and their +applications*, SIAM Classics in Applied Mathematics 31, 2000 (reprint of the 1980 edition), +Chapter I, Lemma 2.1 and Theorem 2.3, as the paper (arXiv:2609.28311, TeX lines 412–415) uses them: +the projection of a point of a real Hilbert space on a nonempty closed convex set exists, is unique +(`lemma2_1`), and is characterized by the variational inequality `⟪x − y, v − y⟫ ≤ 0` for all `v` +in the set (`theorem2_3`). + +The source is not freely available and has not been read: the numbering is the paper's, and the +statements are the standard ones, as the paper uses them. Both are in Mathlib +(`exists_norm_eq_iInf_of_complete_convex`, `norm_eq_iInf_iff_real_inner_le_zero`). +-/ + +@[expose] public section + +noncomputable section + +open scoped InnerProductSpace + +namespace External.KinderlehrerStampacchia + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H] + +/-- **Chapter I, Theorem 2.3** (as used by the paper): `y ∈ K` is the projection of `x` on the +convex `K` if and only if `⟪x − y, v − y⟫ ≤ 0` for every `v ∈ K`. + +Proof: Mathlib's `norm_eq_iInf_iff_real_inner_le_zero`. -/ +theorem theorem2_3 {K : Set H} (hcv : Convex ℝ K) {x y : H} (hy : y ∈ K) : + ‖x - y‖ = ⨅ v : K, ‖x - v‖ ↔ ∀ v ∈ K, ⟪x - y, v - y⟫_ℝ ≤ 0 := + norm_eq_iInf_iff_real_inner_le_zero hcv hy + +/-- **Chapter I, Lemma 2.1** (as used by the paper): the projection of `x` on a nonempty closed +convex `K` exists and is unique: there is exactly one `y ∈ K` with `‖x − y‖ = inf_{v ∈ K} ‖x − v‖`. + +Proof: Mathlib's `exists_norm_eq_iInf_of_complete_convex` for the existence (`K` is complete, as a +closed subset of a complete space); for the uniqueness, if `y₁` and `y₂` are projections, adding the +variational inequalities `⟪x − y₁, y₂ − y₁⟫ ≤ 0` and `⟪x − y₂, y₁ − y₂⟫ ≤ 0` of `theorem2_3` gives +`‖y₂ − y₁‖² ≤ 0`. -/ +theorem lemma2_1 [CompleteSpace H] {K : Set H} (hne : K.Nonempty) (hcl : IsClosed K) + (hcv : Convex ℝ K) (x : H) : + ∃! y, y ∈ K ∧ ‖x - y‖ = ⨅ v : K, ‖x - v‖ := by + obtain ⟨y, hy, hxy⟩ := exists_norm_eq_iInf_of_complete_convex hne hcl.isComplete hcv x + refine ⟨y, ⟨hy, hxy⟩, fun y' ⟨hy', hxy'⟩ => ?_⟩ + have h1 := (theorem2_3 hcv hy).1 hxy y' hy' + have h2 := (theorem2_3 hcv hy').1 hxy' y hy + have h3 : ⟪y' - y, y' - y⟫_ℝ ≤ 0 := by + rw [show y - y' = -(y' - y) by abel, inner_neg_right] at h2 + calc ⟪y' - y, y' - y⟫_ℝ = ⟪x - y, y' - y⟫_ℝ - ⟪x - y', y' - y⟫_ℝ := by + rw [← inner_sub_left, sub_sub_sub_cancel_left] + _ ≤ 0 := by linarith + have := real_inner_self_nonpos.1 h3 + exact (sub_eq_zero.1 this) + +end External.KinderlehrerStampacchia diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/Lehto/LowerBound.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/Lehto/LowerBound.lean new file mode 100644 index 0000000000..2ad59d40b1 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/External/Lehto/LowerBound.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Duality +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.LowerBound + +/-! +# Lehto: the lower bound `‖𝒮‖_p ≥ p* − 1` + +O. Lehto, *Remarks on the integrability of the derivatives of quasiconformal mappings*, Ann. Acad. +Sci. Fenn. Ser. A I No. 371 (1965). The paper (arXiv:2609.28311, TeX line 320) cites it for the +lower bound in `(eq:BA-sharp-norm)`: "the lower bound in (eq:BA-sharp-norm) is classical +[Lehto1965]". + +Stated (`lowerBound`) with the package `HarmonicAnalysis`'s Beurling–Ahlfors transform `𝓑` +(symbol `(conj ξ) / ξ`) and its norm on `L^p (ℂ)`, the supremum over Schwartz functions +(`HarmonicAnalysis.beurlingPowNorm 1 p`). +The source has not been read: its statement is the classical one, as the paper uses it. + +## Proof + +Not Lehto's, which was not read. First `‖𝓑‖_p ≥ p − 1`: the package's +`HarmonicAnalysis.sub_one_le_beurlingPowNorm_one`, the case `n = 1` of Dragičević's lower bound +`‖𝓑^n‖_p ≥ κ_n (p)` (Arch. Math. 96 (2011), Theorem 1.1, `κ₁ (p) = p − 1`), proved there by +Dragičević's argument with the test functions of that paper for `n = 1`, which on the unit disc +are the extremal functions `f_α (z) = z |z|^{−2α}`, `0 < α < 1/p`, of Baernstein–Montgomery-Smith +(1999, §1): + +* `‖∂f_α‖_p ≤ ‖𝓑‖_p ‖∂_zbar f_α‖_p`, by `𝓑 (∂_zbar φ) = ∂φ` for Schwartz functions `φ` and Schwartz + approximations of `f_α` in `W^{1,p}`; +* `‖∂f_α‖_p / ‖∂_zbar f_α‖_p → p − 1` as `α → 1/p`. + +Then `‖𝓑‖_p = ‖𝓑‖_q`, `q = p / (p − 1)` (`HarmonicAnalysis.beurlingPowNorm_conjExponent`), gives +`‖𝓑‖_p ≥ q − 1`; Baernstein and Montgomery-Smith take the conjugates `conj f_α` instead. + +## References + +* A. Baernstein II and S. J. Montgomery-Smith, *Some conjectures about integral means of `∂f` and + `∂_zbar f`*, in: Complex analysis and differential equations (Uppsala, 1997), Acta Univ. + Upsaliensis + Skr. Uppsala Univ. C Organ. Hist. 64 (1999), 92–109; arXiv:math/9709215v2, §1. +* O. Dragičević, *Some remarks on the `L^p` estimates for powers of the Ahlfors–Beurling + operator*, Arch. Math. 96 (2011), 463–471. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology + +namespace External.Lehto + +open HarmonicAnalysis + +/-- **Lehto's lower bound**: `‖𝒮‖_{L^p → L^p} ≥ p* − 1`, `p* = max (p, p / (p − 1))`, for +`1 < p < ∞`. + +Proof: `‖𝒮‖_p ≥ p − 1` is the case `n = 1` of Dragičević's lower bound, with the extremal +functions `f_α` of Baernstein–Montgomery-Smith (1999, §1), in the package `HarmonicAnalysis` +(`HarmonicAnalysis.sub_one_le_beurlingPowNorm_one`); duality, `‖𝒮‖_p = ‖𝒮‖_{p'}` +(`HarmonicAnalysis.beurlingPowNorm_conjExponent`), gives `‖𝒮‖_p ≥ p' − 1`. Lehto's own argument +was not read. -/ +theorem lowerBound {p : ℝ} (hp : 1 < p) : + ENNReal.ofReal (max p (p / (p - 1)) - 1) ≤ HarmonicAnalysis.beurlingPowNorm 1 p := by + have hq : 1 < p / (p - 1) := by rw [lt_div_iff₀ (by linarith)]; linarith + rw [← max_sub_sub_right, ENNReal.ofReal_max] + refine max_le (HarmonicAnalysis.sub_one_le_beurlingPowNorm_one hp) ?_ + rw [beurlingPowNorm_conjExponent 1 hp] + exact HarmonicAnalysis.sub_one_le_beurlingPowNorm_one hq + +end External.Lehto diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Hessian.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Hessian.lean new file mode 100644 index 0000000000..5ba6c2c173 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Hessian.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.Quasiconvexity +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Hessian +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Gradient + +/-! +# Theorem 1 for Hessians (TeX line 285) + +"In the case where `φ = Du` for some `u ∈ C^∞_per (Q)` this result had been proved in +[Guerra2026b]." + +* `theorem1_hessian`: the Hessian case of Theorem 1, `∫_Q [L (A + D²u) − L (A)] ≥ 0` for every `A` + and every `u ∈ C^∞_per (Q)`. It is Theorem 1 for `φ = Du`, which is smooth and periodic. +* `theorem1_hessian_iff`: at every `A`, this periodic inequality for all `u ∈ C^∞_per (Q)` is + equivalent to `∫_{ℝ²} [L (A + D²u) − L (A)] ≥ 0` for all `u ∈ C_c^∞ (ℝ²)`, the form in which + Guerra states the Hessian case (arXiv:2608.23388, Theorem 1.1, `External.Guerra.theorem1_1`; + report, E1). This is the second-order form of Dacorogna, *Direct Methods in the Calculus of + Variations*, Prop. 5.13, proved for every Borel, locally bounded integrand in the package + `CalculusOfVariations` (`CalculusOfVariations.hessian_periodic_iff_hasCompactSupport`). + +`D²u (x)` is `jacobian (fun y i => fderiv ℝ u y (Pi.single i 1)) x`, the derivative matrix of the +gradient `Du = (∂₁u, ∂₂u)`; it is the package's `CalculusOfVariations.hessian u x` +(`jacobian_gradient_eq_hessian`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped ContDiff + +namespace Agazzi + +/-- `D²u` is the package's Hessian. -/ +theorem jacobian_gradient_eq_hessian (u : (Fin 2 → ℝ) → ℝ) (x : Fin 2 → ℝ) : + jacobian (fun y i => fderiv ℝ u y (Pi.single i 1)) x = CalculusOfVariations.hessian u x := + rfl + +/-- The gradient of a smooth function is smooth. -/ +private theorem contDiff_gradient {u : (Fin 2 → ℝ) → ℝ} (hu : ContDiff ℝ ∞ u) : + ContDiff ℝ ∞ fun y (i : Fin 2) => fderiv ℝ u y (Pi.single i 1) := + contDiff_pi.2 fun _ => (hu.fderiv_right le_rfl).clm_apply contDiff_const + +/-- The gradient of a periodic differentiable function is periodic. -/ +private theorem isPeriodic_gradient {u : (Fin 2 → ℝ) → ℝ} (hper : IsPeriodic u) : + IsPeriodic fun y (i : Fin 2) => fderiv ℝ u y (Pi.single i 1) := by + intro x k + have h : (fun y => u (y + fun i => (k i : ℝ))) = u := funext fun y => hper y k + have e := fderiv_comp_add_right (𝕜 := ℝ) (f := u) (fun i => (k i : ℝ)) (x := x) + rw [h] at e + funext i + simp only [← e] + +/-- **Theorem 1 for Hessians** (TeX line 285): for all `A ∈ ℝ^{2×2}` and all `u ∈ C^∞_per (Q)`, +`∫_Q [L (A + D²u) − L (A)] dx ≥ 0`. + +Proof: Theorem 1 (`theorem1`) for `φ = Du`, which is `C^∞` and periodic. -/ +theorem theorem1_hessian (A : Matrix (Fin 2) (Fin 2) ℝ) {u : (Fin 2 → ℝ) → ℝ} + (hu : ContDiff ℝ ∞ u) (hper : IsPeriodic u) : + 0 ≤ ∫ x in unitSquare, + (integrandL (A + jacobian (fun y i => fderiv ℝ u y (Pi.single i 1)) x) - integrandL A) := + theorem1 A (contDiff_gradient hu) (isPeriodic_gradient hper) + +/-- **The periodic and the compactly supported forms of the Hessian case are equivalent** (report, +E1): at every `A`, `∫_Q [L (A + D²u) − L (A)] ≥ 0` for all `u ∈ C^∞_per (Q)` if and only if +`∫_{ℝ²} [L (A + D²u) − L (A)] ≥ 0` for all `u ∈ C_c^∞ (ℝ²)`. + +Proof: `L` is continuous, hence Borel and locally bounded, and the package's second-order form of +Dacorogna's Prop. 5.13 applies (`CalculusOfVariations.hessian_periodic_iff_hasCompactSupport`). -/ +theorem theorem1_hessian_iff (A : Matrix (Fin 2) (Fin 2) ℝ) : + (∀ u : (Fin 2 → ℝ) → ℝ, ContDiff ℝ ∞ u → IsPeriodic u → + 0 ≤ ∫ x in unitSquare, + (integrandL (A + jacobian (fun y i => fderiv ℝ u y (Pi.single i 1)) x) - integrandL A)) ↔ + ∀ u : (Fin 2 → ℝ) → ℝ, ContDiff ℝ ∞ u → HasCompactSupport u → + 0 ≤ ∫ x, + (integrandL (A + jacobian (fun y i => fderiv ℝ u y (Pi.single i 1)) x) - integrandL A) := + CalculusOfVariations.hessian_periodic_iff_hasCompactSupport continuous_integrandL.measurable + (CalculusOfVariations.isLocallyBounded_of_continuous continuous_integrandL) A + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/RowRepresentation.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/RowRepresentation.lean new file mode 100644 index 0000000000..b18212c46f --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/RowRepresentation.lean @@ -0,0 +1,289 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Defs +public import Mathlib.Analysis.InnerProductSpace.PiL2 +public import Mathlib.Analysis.Convex.Function + +/-! +# §2: the row representation of `L` (Lemma 3) + +The notation of §2 (TeX lines 332–344). For a matrix `A` with rows `A¹ = A 0`, `A² = A 1`: + +* `rot a = J a`, `J = [[0, −1], [1, 0]]`, and `det2 a b = det (a, b) = J a · b` + (`det_eq_det2`, `det2_eq_rot_dotProduct`); +* `euclidNorm a = |a|`, the Euclidean norm of `a ∈ ℝ²`, and `unitCircle = 𝕊¹`; +* `rowG z a b = G_z (a, b) = det (z, b) + z · (a − z)`; +* `rowF A = F (A) = sup_{|z| = 1} G_z (A¹, A²)`, which is `|A² + J A¹| − 1 = 2 |a₊| − 1` + (`rowF_eq_norm`, `rowF_eq`), a convex function (`convexOn_rowF`); +* `rowZ a = 𝒵 (a) = 𝕊¹ ∪ {a}` if `|a| ≤ 1`, `𝕊¹` if `|a| > 1`. + +Lemma 3 (`lemma3`, the display `(eq:L-row-representation)`): +`L (A) = sup_{z ∈ 𝒵 (A¹)} G_z (A¹, A²)`. Its consequences `G_z (A¹, A²) ≤ L (A)` for +`z ∈ 𝒵 (A¹)` (`rowG_le_integrandL`) and `F ≤ L` (`rowF_le_integrandL`); `|a| = √(a₁² + a₂²)` +(`euclidNorm_eq`). +-/ + +@[expose] public section + +noncomputable section + +namespace Agazzi + +/-- `J a = (−a₂, a₁)`, the rotation by `π/2`: `J = [[0, −1], [1, 0]]`. -/ +def rot (a : Fin 2 → ℝ) : Fin 2 → ℝ := ![-a 1, a 0] + +/-- `det (a, b) = a₁ b₂ − a₂ b₁`, the determinant of the matrix with rows `a`, `b`. -/ +def det2 (a b : Fin 2 → ℝ) : ℝ := a 0 * b 1 - a 1 * b 0 + +/-- The Euclidean norm `|a|` of `a ∈ ℝ²`. -/ +def euclidNorm (a : Fin 2 → ℝ) : ℝ := ‖(WithLp.toLp 2 a : EuclideanSpace ℝ (Fin 2))‖ + +/-- The unit circle `𝕊¹ = {z : |z| = 1}`. -/ +def unitCircle : Set (Fin 2 → ℝ) := {z | euclidNorm z = 1} + +/-- `G_z (a, b) = det (z, b) + z · (a − z)`. -/ +def rowG (z a b : Fin 2 → ℝ) : ℝ := det2 z b + z ⬝ᵥ (a - z) + +/-- `F (A) = sup_{|z| = 1} G_z (A¹, A²)`. -/ +def rowF (A : Matrix (Fin 2) (Fin 2) ℝ) : ℝ := + sSup ((fun z => rowG z (A 0) (A 1)) '' unitCircle) + +open Classical in +/-- `𝒵 (a) = 𝕊¹ ∪ {a}` if `|a| ≤ 1`, and `𝒵 (a) = 𝕊¹` if `|a| > 1`. -/ +def rowZ (a : Fin 2 → ℝ) : Set (Fin 2 → ℝ) := + unitCircle ∪ (if euclidNorm a ≤ 1 then {a} else ∅) + +/-- `det A = det (A¹, A²) = J A¹ · A²` (TeX line 335). + +Proof: both are `a₁₁ a₂₂ − a₁₂ a₂₁`. -/ +theorem det_eq_det2 (A : Matrix (Fin 2) (Fin 2) ℝ) : A.det = det2 (A 0) (A 1) := by + rw [Matrix.det_fin_two, det2] + +/-- `det (a, b) = J a · b`. Proof: both are `a₁ b₂ − a₂ b₁`. -/ +theorem det2_eq_rot_dotProduct (a b : Fin 2 → ℝ) : det2 a b = rot a ⬝ᵥ b := by + simp [det2, rot, dotProduct, Fin.sum_univ_two] + ring + +/-- `|a| = √(a₁² + a₂²)`. -/ +theorem euclidNorm_eq (a : Fin 2 → ℝ) : euclidNorm a = √(a 0 ^ 2 + a 1 ^ 2) := by + rw [euclidNorm, EuclideanSpace.norm_eq, Fin.sum_univ_two] + simp [Real.norm_eq_abs, sq_abs] + +private lemma rowalg_mem_unitCircle {z : Fin 2 → ℝ} : z ∈ unitCircle ↔ z 0 ^ 2 + z 1 ^ 2 = 1 := by + rw [unitCircle, Set.mem_ofPred_eq, euclidNorm_eq, Real.sqrt_eq_one] + +/-- `G_z (a, b) = z₁ (a₁ + b₂) + z₂ (a₂ − b₁) − |z|²`. -/ +private lemma rowalg_rowG (z a b : Fin 2 → ℝ) : + rowG z a b = z 0 * (a 0 + b 1) + z 1 * (a 1 - b 0) - (z 0 ^ 2 + z 1 ^ 2) := by + simp [rowG, det2, dotProduct, Fin.sum_univ_two] + ring + +/-- `|A² + J A¹| − 1` is the largest value of `G_z (A¹, A²)` on `𝕊¹`: for `|z| = 1`, +`G_z (A¹, A²) = z · v − 1` with `v = A¹ − J A²`, `|v| = |A² + J A¹|`; Cauchy–Schwarz, with equality +at `z = v / |v|` (any unit `z` if `v = 0`). -/ +private lemma rowalg_isGreatest (A : Matrix (Fin 2) (Fin 2) ℝ) : + IsGreatest ((fun z => rowG z (A 0) (A 1)) '' unitCircle) + (euclidNorm (A 1 + rot (A 0)) - 1) := by + set v0 := A 0 0 + A 1 1 + set v1 := A 0 1 - A 1 0 + have hn : euclidNorm (A 1 + rot (A 0)) = √(v0 ^ 2 + v1 ^ 2) := by + rw [euclidNorm_eq] + congr 1 + simp [rot, v0, v1] + ring + rw [hn] + set s := √(v0 ^ 2 + v1 ^ 2) + have hs0 : 0 ≤ s := Real.sqrt_nonneg _ + have hs2 : s ^ 2 = v0 ^ 2 + v1 ^ 2 := Real.sq_sqrt (by positivity) + have hG : ∀ z : Fin 2 → ℝ, z ∈ unitCircle → + rowG z (A 0) (A 1) = z 0 * v0 + z 1 * v1 - 1 := by + intro z hz + rw [rowalg_mem_unitCircle] at hz + rw [rowalg_rowG, hz] + constructor + · by_cases h0 : s = 0 + · have hv : v0 ^ 2 + v1 ^ 2 = 0 := by rw [← hs2, h0]; ring + have hv0' : v0 = 0 := by nlinarith [sq_nonneg v0, sq_nonneg v1] + have hv1' : v1 = 0 := by nlinarith [sq_nonneg v0, sq_nonneg v1] + have hmem : (![1, 0] : Fin 2 → ℝ) ∈ unitCircle := by + rw [rowalg_mem_unitCircle]; simp + refine ⟨![1, 0], hmem, ?_⟩ + simp only + rw [hG _ hmem, h0, hv0', hv1'] + simp + · have hpos : 0 < s := lt_of_le_of_ne hs0 (Ne.symm h0) + have hmem : (![v0 / s, v1 / s] : Fin 2 → ℝ) ∈ unitCircle := by + rw [rowalg_mem_unitCircle] + simp only [Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one] + rw [div_pow, div_pow, ← add_div, ← hs2] + exact div_self (by positivity) + refine ⟨_, hmem, ?_⟩ + simp only + rw [hG _ hmem] + simp only [Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one] + field_simp + rw [← hs2] + ring + · rintro _ ⟨z, hz, rfl⟩ + simp only + rw [hG z hz] + rw [rowalg_mem_unitCircle] at hz + have hL : (z 0 * v0 + z 1 * v1) ^ 2 ≤ v0 ^ 2 + v1 ^ 2 := by + have : (z 0 * v0 + z 1 * v1) ^ 2 = + (z 0 ^ 2 + z 1 ^ 2) * (v0 ^ 2 + v1 ^ 2) - (z 0 * v1 - z 1 * v0) ^ 2 := by ring + rw [this, hz] + nlinarith [sq_nonneg (z 0 * v1 - z 1 * v0)] + have := Real.abs_le_sqrt hL + linarith [le_abs_self (z 0 * v0 + z 1 * v1)] + +/-- `F (A) = |A² + J A¹| − 1` (TeX line 341). + +Proof: for `|z| = 1`, `G_z (A¹, A²) = z · v − 1` with `v = A¹ − J A²`, and `|v| = |A² + J A¹|`; by +Cauchy–Schwarz the supremum is `|v| − 1`, attained at `z = v / |v|` (at any unit `z` if `v = 0`). -/ +theorem rowF_eq_norm (A : Matrix (Fin 2) (Fin 2) ℝ) : + rowF A = euclidNorm (A 1 + rot (A 0)) - 1 := + (rowalg_isGreatest A).csSup_eq + +/-- `F (A) = 2 |a₊| − 1` (TeX line 341). + +Proof: `A² + J A¹ = (a₂₁ − a₁₂, a₂₂ + a₁₁)`, of length `2 |a₊|`. -/ +theorem rowF_eq (A : Matrix (Fin 2) (Fin 2) ℝ) : rowF A = 2 * ‖conformalPart A‖ - 1 := by + rw [rowF_eq_norm, euclidNorm_eq] + congr 1 + rw [Real.sqrt_eq_iff_eq_sq (by positivity) (by positivity), mul_pow, Complex.sq_norm, + Complex.normSq_apply] + simp [rot, conformalPart] + ring + +/-- `F` is convex (TeX line 344). + +Proof: `F (A) = 2 |a₊| − 1` (`rowF_eq`), with `a₊` real-linear in `A`; the triangle inequality. +-/ +theorem convexOn_rowF : ConvexOn ℝ Set.univ rowF := by + refine ⟨convex_univ, fun x _ y _ a b ha hb hab => ?_⟩ + simp only [rowF_eq, smul_eq_mul] + have hlin : conformalPart (a • x + b • y) = + (a : ℂ) * conformalPart x + (b : ℂ) * conformalPart y := by + apply Complex.ext <;> simp [conformalPart] <;> ring + rw [hlin] + have h := norm_add_le ((a : ℂ) * conformalPart x) ((b : ℂ) * conformalPart y) + rw [norm_mul, norm_mul, Complex.norm_real, Complex.norm_real, Real.norm_eq_abs, + Real.norm_eq_abs, abs_of_nonneg ha, abs_of_nonneg hb] at h + nlinarith + +/-- `G_{A¹} (A¹, A²) = det A`. -/ +private lemma rowalg_rowG_self (A : Matrix (Fin 2) (Fin 2) ℝ) : + rowG (A 0) (A 0) (A 1) = A.det := by + rw [rowG, sub_self, dotProduct_zero, add_zero, det_eq_det2] + +/-- `det A = |a₊|² − |a₋|²` (as `Agazzi.det_eq` of `Agazzi.Bridges`). -/ +private lemma rowalg_det_eq (A : Matrix (Fin 2) (Fin 2) ℝ) : + A.det = ‖conformalPart A‖ ^ 2 - ‖anticonformalPart A‖ ^ 2 := by + rw [Matrix.det_fin_two, Complex.sq_norm, Complex.sq_norm, Complex.normSq_apply, + Complex.normSq_apply] + simp only [conformalPart, anticonformalPart] + ring + +/-- The first identity of the proof of Lemma 3: +`det A − F (A) = (1 − |a₊| − |a₋|) (1 − |a₊| + |a₋|)`. -/ +private lemma rowalg_det_sub_rowF (A : Matrix (Fin 2) (Fin 2) ℝ) : + A.det - rowF A = (1 - ‖conformalPart A‖ - ‖anticonformalPart A‖) * + (1 - ‖conformalPart A‖ + ‖anticonformalPart A‖) := by + rw [rowalg_det_eq, rowF_eq] + ring + +/-- `|A¹| = |a₊ + ā₋|`: the first row of `A` is `(a₁₁, a₁₂)` and `a₊ + ā₋ = a₁₁ − i a₁₂`. -/ +private lemma rowalg_euclidNorm_row0 (A : Matrix (Fin 2) (Fin 2) ℝ) : + euclidNorm (A 0) = ‖conformalPart A + (starRingEnd ℂ) (anticonformalPart A)‖ := by + rw [euclidNorm_eq, Complex.norm_eq_sqrt_sq_add_sq] + congr 1 + simp [conformalPart, anticonformalPart] + ring + +/-- The second identity of the proof of Lemma 3: `||a₊| − |a₋|| ≤ |A¹| ≤ |a₊| + |a₋|`. -/ +private lemma rowalg_row0_bounds (A : Matrix (Fin 2) (Fin 2) ℝ) : + |‖conformalPart A‖ - ‖anticonformalPart A‖| ≤ euclidNorm (A 0) ∧ + euclidNorm (A 0) ≤ ‖conformalPart A‖ + ‖anticonformalPart A‖ := by + rw [rowalg_euclidNorm_row0] + constructor + · have h := abs_norm_sub_norm_le (conformalPart A) (-(starRingEnd ℂ) (anticonformalPart A)) + rwa [norm_neg, Complex.norm_conj, sub_neg_eq_add] at h + · have h := norm_add_le (conformalPart A) ((starRingEnd ℂ) (anticonformalPart A)) + rwa [Complex.norm_conj] at h + +/-- **Lemma 3** (`eq:L-row-representation`). `L (A) = sup_{z ∈ 𝒵 (A¹)} G_z (A¹, A²)`. -/ +theorem lemma3 (A : Matrix (Fin 2) (Fin 2) ℝ) : + integrandL A = sSup ((fun z => rowG z (A 0) (A 1)) '' rowZ (A 0)) := by + -- `G_{A¹} (A¹, A²) = det A`, so the supremum over `𝒵 (A¹)` is `max {det A, F (A)}` if + -- `|A¹| ≤ 1` and `F (A)` if `|A¹| > 1`. + have hsup : sSup ((fun z => rowG z (A 0) (A 1)) '' rowZ (A 0)) = + if euclidNorm (A 0) ≤ 1 then max A.det (rowF A) else rowF A := by + have hG := rowalg_isGreatest A + by_cases h : euclidNorm (A 0) ≤ 1 + · rw [ite_eq_left h, rowZ, ite_eq_left h, Set.image_union, Set.image_singleton, + rowalg_rowG_self, csSup_union hG.bddAbove hG.nonempty bddAbove_singleton + (Set.singleton_nonempty _), csSup_singleton, rowF] + exact sup_comm _ _ + · rw [ite_eq_right h, rowZ, ite_eq_right h, Set.union_empty, rowF] + rw [hsup] + -- The identities `det A − F (A) = (1 − |a₊| − |a₋|) (1 − |a₊| + |a₋|)` and + -- `||a₊| − |a₋|| ≤ |A¹| ≤ |a₊| + |a₋|`. + have hid := rowalg_det_sub_rowF A + obtain ⟨hlo, hhi⟩ := rowalg_row0_bounds A + have hm := norm_nonneg (anticonformalPart A) + by_cases h1 : ‖conformalPart A‖ + ‖anticonformalPart A‖ ≤ 1 + · -- `|a₊| + |a₋| ≤ 1`: then `|A¹| ≤ 1` and `det A ≥ F (A)`. + have hA : euclidNorm (A 0) ≤ 1 := hhi.trans h1 + have hdet : rowF A ≤ A.det := by + have : 0 ≤ (1 - ‖conformalPart A‖ - ‖anticonformalPart A‖) * + (1 - ‖conformalPart A‖ + ‖anticonformalPart A‖) := + mul_nonneg (by linarith) (by linarith) + linarith + rw [integrandL, ite_eq_left h1, ite_eq_left hA, max_eq_left hdet, rowalg_det_eq] + · by_cases hA : euclidNorm (A 0) ≤ 1 + · -- `|a₊| + |a₋| > 1` and `|A¹| ≤ 1`: then `|a₊| − |a₋| ≤ 1` and `det A ≤ F (A)`. + have hpm : ‖conformalPart A‖ - ‖anticonformalPart A‖ ≤ 1 := + (le_abs_self _).trans (hlo.trans hA) + have hdet : A.det ≤ rowF A := by + have : (1 - ‖conformalPart A‖ - ‖anticonformalPart A‖) * + (1 - ‖conformalPart A‖ + ‖anticonformalPart A‖) ≤ 0 := + mul_nonpos_of_nonpos_of_nonneg (by linarith) (by linarith) + linarith + rw [integrandL, ite_eq_right h1, ite_eq_left hA, max_eq_right hdet, rowF_eq] + · -- `|A¹| > 1`: then `|a₊| + |a₋| > 1` and `𝒵 (A¹) = 𝕊¹`. + have h1' : 1 < ‖conformalPart A‖ + ‖anticonformalPart A‖ := (not_le.1 hA).trans_le hhi + rw [integrandL, ite_eq_right h1'.not_ge, ite_eq_right hA, rowF_eq] + +/-- `𝕊¹ ⊆ 𝒵 (a)`. -/ +private lemma rowalg_unitCircle_subset_rowZ (a : Fin 2 → ℝ) : unitCircle ⊆ rowZ a := + Set.subset_union_left + +/-- The values `G_z (A¹, A²)`, `z ∈ 𝒵 (A¹)`, are bounded above. -/ +private lemma rowalg_bddAbove_rowZ (A : Matrix (Fin 2) (Fin 2) ℝ) : + BddAbove ((fun z => rowG z (A 0) (A 1)) '' rowZ (A 0)) := by + rw [rowZ, Set.image_union] + refine BddAbove.union (rowalg_isGreatest A).bddAbove ?_ + split_ifs + · rw [Set.image_singleton]; exact bddAbove_singleton + · rw [Set.image_empty]; exact bddAbove_empty + +/-- `G_z (A¹, A²) ≤ L (A)` for `z ∈ 𝒵 (A¹)` (Lemma 3). -/ +theorem rowG_le_integrandL (A : Matrix (Fin 2) (Fin 2) ℝ) {z : Fin 2 → ℝ} (hz : z ∈ rowZ (A 0)) : + rowG z (A 0) (A 1) ≤ integrandL A := by + rw [lemma3] + exact le_csSup (rowalg_bddAbove_rowZ A) (Set.mem_image_of_mem _ hz) + +/-- `F (A) ≤ L (A)` (Lemma 3: `F (A)` is a value `G_z (A¹, A²)` with `|z| = 1`). -/ +theorem rowF_le_integrandL (A : Matrix (Fin 2) (Fin 2) ℝ) : rowF A ≤ integrandL A := by + obtain ⟨z, hz, hzF⟩ := (rowalg_isGreatest A).1 + rw [rowF_eq_norm, ← hzF] + exact rowG_le_integrandL A (rowalg_unitCircle_subset_rowZ _ hz) + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Defs.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Defs.lean new file mode 100644 index 0000000000..30f0547d1d --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Defs.lean @@ -0,0 +1,56 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Defs +public import Mathlib.Analysis.Convex.Basic +public import Mathlib.Topology.EMetricSpace.Lipschitz + +/-! +# §2, Lemma 4: the objects + +The objects of Lemma 4 (TeX lines 400–405), and the representation choices of the formalization: + +* `W^{1,∞}_per (Q)` is represented by the Lipschitz `ℤ²`-periodic functions `ℝ² → ℝ` (`LipPer`): + every class of `W^{1,∞}_per (Q)` has exactly one Lipschitz representative, and the gradient of a + Lipschitz function is its pointwise derivative almost everywhere (Rademacher). +* `Dξ (x)` is `sgrad ξ x = (∂₁ ξ (x), ∂₂ ξ (x))`, from the Fréchet derivative (`0` where `ξ` is not + differentiable). +* "almost everywhere" is with respect to Lebesgue measure on the unit square, the torus `Q`. +* `constraintSet K p` is `𝒞 = {ξ ∈ W^{1,∞}_per (Q) : p + Dξ ∈ K a.e.}`. +* the `L² (Q)`-projection `ζ` of `η` on `𝒞` is a minimizer of `ξ ↦ ∫_Q (η − ξ)²` on `𝒞` + (`IsL2Projection`): the point of `𝒞` nearest to `η` in `L² (Q)`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory + +namespace Agazzi + +/-- The gradient `Dξ (x) = (∂₁ ξ (x), ∂₂ ξ (x))` of `ξ : ℝ² → ℝ` (`0` where `ξ` is not +differentiable). -/ +def sgrad (ξ : (Fin 2 → ℝ) → ℝ) (x : Fin 2 → ℝ) : Fin 2 → ℝ := + fun j => fderiv ℝ ξ x (Pi.single j 1) + +/-- `W^{1,∞}_per (Q)`, by Lipschitz representatives: `ξ` is Lipschitz and `ℤ²`-periodic. -/ +def LipPer (ξ : (Fin 2 → ℝ) → ℝ) : Prop := + (∃ C : NNReal, LipschitzWith C ξ) ∧ IsPeriodic ξ + +/-- `𝒞 = {ξ ∈ W^{1,∞}_per (Q) : p + Dξ ∈ K a.e.}`. -/ +def constraintSet (K : Set (Fin 2 → ℝ)) (p : Fin 2 → ℝ) : Set ((Fin 2 → ℝ) → ℝ) := + {ξ | LipPer ξ ∧ ∀ᵐ x ∂(volume.restrict unitSquare), p + sgrad ξ x ∈ K} + +/-- `ζ` is an `L² (Q)`-projection of `η` on `𝒞`: `ζ ∈ 𝒞` and +`∫_Q (η − ζ)² ≤ ∫_Q (η − ξ)²` for every `ξ ∈ 𝒞`. -/ +def IsL2Projection (𝒞 : Set ((Fin 2 → ℝ) → ℝ)) (η ζ : (Fin 2 → ℝ) → ℝ) : Prop := + ζ ∈ 𝒞 ∧ ∀ ξ ∈ 𝒞, ∫ x in unitSquare, (η x - ζ x) ^ 2 ≤ ∫ x in unitSquare, (η x - ξ x) ^ 2 + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Existence.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Existence.lean new file mode 100644 index 0000000000..8e8f06d7b3 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Existence.lean @@ -0,0 +1,291 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Proof.ScalarProjection.Defs +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.KinderlehrerStampacchia.Projection +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Convex.SupportFunction +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.FundamentalDomain +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.GradientConstraint +import Mathlib.MeasureTheory.Function.ConvergenceInMeasure +import Mathlib.MeasureTheory.Function.L2Space +import Mathlib.Analysis.Calculus.Rademacher + +/-! +# §2, Lemma 4: the projection exists and satisfies the variational inequality + +TeX lines 411–415: "The set `𝒞` is nonempty, closed and convex in `L² (Q)`. By +[Kinderlehrer–Stampacchia, Chapter I, Lemma 2.1 and Theorem 2.3], the projection `ζ` exists +uniquely and, with `h (x) = η (x) − ζ (x)`, satisfies `∫_Q h (ξ − ζ) dx ≤ 0` for all `ξ ∈ 𝒞` +(`(eq:projection-variational-inequality)`)." + +* `lemma4_exists`: the projection exists; +* `lemma4_unique`, `lemma4_existsUnique`: it is unique, as a Lipschitz periodic function; +* `lemma4_variationalInequality`: `(eq:projection-variational-inequality)`. + +All follow the paper through Kinderlehrer and Stampacchia, applied in the Hilbert space +`L² (Q) = Lp ℝ 2 (volume.restrict unitSquare)` to the set `𝒞_{L²}` of the classes with a +representative in `𝒞` (`constraintSetL2`). There the inner product is `∫_Q f g` and the squared norm +is `∫_Q f²`, so the projection of `η` on `𝒞_{L²}` is the class of an `L² (Q)`-projection of `η` on +`𝒞` in the sense of `IsL2Projection`, and conversely. + +* `𝒞` is convex (`convex_constraintSet`): a convex combination of Lipschitz periodic functions is + Lipschitz and periodic, and where both are differentiable (almost everywhere, by Rademacher's + theorem) its gradient is the convex combination of the gradients. +* `𝒞_{L²}` is nonempty (`0 ∈ 𝒞`, as `p ∈ K`) and closed (`isClosed_constraintSetL2`). + +The paper asserts the closedness; the argument here: for `ξ` Lipschitz and periodic, the constraint +`p + Dξ ∈ K` a.e. is equivalent to the slope bound `ξ (y) − ξ (x) + p · (y − x) ≤ H_K (y − x)` for +all `x, y`, with `H_K` the support function of `K` (`sub_add_dotProduct_le_supportFun_of_ae_mem`, +by mollification and the mean value theorem; `add_fderiv_mem_of_sub_add_dotProduct_le_supportFun` +for the converse). The slope bound gives a Lipschitz constant that depends only on `K` and `p`. A +sequence of `𝒞_{L²}` converging in `L² (Q)` has a subsequence converging a.e. on `Q`; its +representatives in `𝒞` are equi-Lipschitz and periodic, so they converge everywhere +(`exists_tendsto_of_ae_restrict_unitCube_tendsto`), and the limit satisfies the slope bound, so it +lies in `𝒞` and represents the `L²` limit. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory CalculusOfVariations + +namespace Agazzi + +variable {K : Set (Fin 2 → ℝ)} {p : Fin 2 → ℝ} + +open Filter Topology +open scoped InnerProductSpace + +/-! ### `𝒞` in `L² (Q)` -/ + +private theorem measurableSet_unitSquare : MeasurableSet unitSquare := + MeasurableSet.univ_pi fun _ => measurableSet_Ioo + +private theorem isFiniteMeasure_unitSquare : IsFiniteMeasure (volume.restrict unitSquare) := + isFiniteMeasure_restrict.2 + (lt_of_le_of_lt (measure_mono (Set.pi_mono fun _ _ => Set.Ioo_subset_Icc_self)) + (isCompact_univ_pi fun _ => isCompact_Icc (a := (0 : ℝ)) (b := 1)).measure_lt_top).ne + +/-- A Lipschitz function is in `L² (Q)`: it is bounded on `Q`. -/ +private theorem memLp_of_lipPer {ξ : (Fin 2 → ℝ) → ℝ} (hξ : LipPer ξ) : + MemLp ξ 2 (volume.restrict unitSquare) := by + have := isFiniteMeasure_unitSquare + obtain ⟨C, hC⟩ := hξ.1 + obtain ⟨M, hM⟩ := (isCompact_univ_pi fun _ => isCompact_Icc (a := (0 : ℝ)) (b := 1) + ).exists_bound_of_continuousOn hC.continuous.continuousOn + exact MemLp.of_bound hC.continuous.aestronglyMeasurable M + (ae_restrict_of_forall_mem measurableSet_unitSquare fun x hx => + hM x (Set.pi_mono (fun _ _ => Set.Ioo_subset_Icc_self) hx)) + +/-- The inner product of `L² (Q)` is `∫_Q f g`. -/ +private theorem inner_eq_integral {u w : Lp ℝ 2 (volume.restrict unitSquare)} + {f g : (Fin 2 → ℝ) → ℝ} (hu : u =ᵐ[volume.restrict unitSquare] f) + (hw : w =ᵐ[volume.restrict unitSquare] g) : + ⟪u, w⟫_ℝ = ∫ x in unitSquare, f x * g x := by + rw [L2.inner_def] + refine integral_congr_ae ?_ + filter_upwards [hu, hw] with x hx hx' + rw [Real.inner_apply, hx, hx'] + +/-- The squared norm of `L² (Q)` is `∫_Q f²`. -/ +private theorem norm_sq_eq_integral {u : Lp ℝ 2 (volume.restrict unitSquare)} + {f : (Fin 2 → ℝ) → ℝ} (hu : u =ᵐ[volume.restrict unitSquare] f) : + ‖u‖ ^ 2 = ∫ x in unitSquare, f x ^ 2 := by + rw [← real_inner_self_eq_norm_sq, inner_eq_integral hu hu] + simp_rw [sq] + +private theorem coeFn_sub_ae {u w : Lp ℝ 2 (volume.restrict unitSquare)} + {f g : (Fin 2 → ℝ) → ℝ} (hu : u =ᵐ[volume.restrict unitSquare] f) + (hw : w =ᵐ[volume.restrict unitSquare] g) : + (⇑(u - w)) =ᵐ[volume.restrict unitSquare] fun x => f x - g x := by + filter_upwards [Lp.coeFn_sub u w, hu, hw] with x h1 h2 h3 + rw [h1, Pi.sub_apply, h2, h3] + +/-- `𝒞` in `L² (Q)`: the classes with a representative in `𝒞`. -/ +private def constraintSetL2 (K : Set (Fin 2 → ℝ)) (p : Fin 2 → ℝ) : + Set (Lp ℝ 2 (volume.restrict unitSquare)) := + {u | ∃ ξ ∈ constraintSet K p, (u : (Fin 2 → ℝ) → ℝ) =ᵐ[volume.restrict unitSquare] ξ} + +private theorem toLp_mem_constraintSetL2 {ξ : (Fin 2 → ℝ) → ℝ} (hξ : ξ ∈ constraintSet K p) : + (memLp_of_lipPer hξ.1).toLp ξ ∈ constraintSetL2 K p := + ⟨ξ, hξ, MemLp.coeFn_toLp _⟩ + +/-- `𝒞` is convex. -/ +private theorem convex_constraintSet (hKcv : Convex ℝ K) : Convex ℝ (constraintSet K p) := by + intro ξ₁ h₁ ξ₂ h₂ a b ha hb hab + obtain ⟨⟨⟨C₁, hC₁⟩, hp₁⟩, hK₁⟩ := h₁ + obtain ⟨⟨⟨C₂, hC₂⟩, hp₂⟩, hK₂⟩ := h₂ + refine ⟨⟨⟨‖a‖₊ * C₁ + ‖b‖₊ * C₂, ?_⟩, ?_⟩, ?_⟩ + · exact ((lipschitzWith_smul a).comp hC₁).add ((lipschitzWith_smul b).comp hC₂) + · intro x k + simp only [Pi.add_apply, Pi.smul_apply, hp₁ x k, hp₂ x k] + · filter_upwards [hK₁, hK₂, ae_restrict_of_ae hC₁.ae_differentiableAt, + ae_restrict_of_ae hC₂.ae_differentiableAt] with x hx₁ hx₂ hd₁ hd₂ + have hfd : fderiv ℝ (a • ξ₁ + b • ξ₂) x = a • fderiv ℝ ξ₁ x + b • fderiv ℝ ξ₂ x := + ((hd₁.hasFDerivAt.const_smul a).add (hd₂.hasFDerivAt.const_smul b)).fderiv + have : p + sgrad (a • ξ₁ + b • ξ₂) x = a • (p + sgrad ξ₁ x) + b • (p + sgrad ξ₂ x) := by + ext j + simp only [sgrad, hfd, Pi.add_apply, Pi.smul_apply, add_apply, FunLike.coe_smul, + smul_eq_mul] + linear_combination (-(p j)) * hab + rw [this] + exact hKcv hx₁ hx₂ ha hb hab + +private theorem convex_constraintSetL2 (hKcv : Convex ℝ K) : Convex ℝ (constraintSetL2 K p) := by + rintro u ⟨ξ₁, h₁, hu⟩ w ⟨ξ₂, h₂, hw⟩ a b ha hb hab + refine ⟨a • ξ₁ + b • ξ₂, convex_constraintSet hKcv h₁ h₂ ha hb hab, ?_⟩ + filter_upwards [Lp.coeFn_add (a • u) (b • w), Lp.coeFn_smul a u, Lp.coeFn_smul b w, hu, hw] + with x h1 h2 h3 h4 h5 + simp only [h1, Pi.add_apply, h2, h3, Pi.smul_apply, h4, h5] + +private theorem nonempty_constraintSetL2 (hp : p ∈ K) : (constraintSetL2 K p).Nonempty := by + refine ⟨0, 0, ⟨⟨⟨0, LipschitzWith.const 0⟩, fun x k => rfl⟩, Eventually.of_forall fun x => ?_⟩, + Lp.coeFn_zero _ _ _⟩ + have : sgrad 0 x = 0 := by + ext j + simp [sgrad, fderiv_zero] + rw [this, add_zero] + exact hp + +/-- `𝒞_{L²}` is closed (see the module docstring). -/ +private theorem isClosed_constraintSetL2 (hKne : K.Nonempty) (hKc : IsCompact K) + (hKcv : Convex ℝ K) : IsClosed (constraintSetL2 K p) := by + refine IsSeqClosed.isClosed fun u u₀ hu hlim => ?_ + have hu' : ∀ n, ∃ ξ ∈ constraintSet K p, + (u n : (Fin 2 → ℝ) → ℝ) =ᵐ[volume.restrict unitSquare] ξ := hu + choose ξ hξ hξu using hu' + obtain ⟨ns, -, hns⟩ := (tendstoInMeasure_of_tendsto_Lp hlim).exists_seq_tendsto_ae + have hslope : ∀ n x y, ξ n y - ξ n x + p ⬝ᵥ (y - x) ≤ supportFun K (y - x) := fun n => + sub_add_dotProduct_le_supportFun_of_ae_mem hKc (hξ n).1.1.choose_spec (hξ n).1.2 (hξ n).2 + obtain ⟨L, hL⟩ := exists_lipschitzWith_of_sub_add_dotProduct_le_supportFun hKc hKne p + have hae : ∀ᵐ x ∂(volume.restrict unitSquare), + Tendsto (fun k => ξ (ns k) x) atTop (𝓝 (u₀ x)) := by + filter_upwards [hns, ae_all_iff.2 hξu] with x hx hx' + exact hx.congr fun k => hx' (ns k) + obtain ⟨ξ', hξ'⟩ := exists_tendsto_of_ae_restrict_unitCube_tendsto + (fun k => hL _ (hslope (ns k))) (fun k => (hξ (ns k)).1.2) hae + have hslope' : ∀ x y, ξ' y - ξ' x + p ⬝ᵥ (y - x) ≤ supportFun K (y - x) := fun x y => + le_of_tendsto' (((hξ' y).sub (hξ' x)).add_const _) fun k => hslope _ x y + have hper' : IsPeriodic ξ' := fun x z => + tendsto_nhds_unique ((hξ' (x + fun i => (z i : ℝ))).congr fun k => (hξ (ns k)).1.2 x z) + (hξ' x) + have hlip' := hL _ hslope' + refine ⟨ξ', ⟨⟨⟨L, hlip'⟩, hper'⟩, ?_⟩, ?_⟩ + · filter_upwards [ae_restrict_of_ae hlip'.ae_differentiableAt] with x hx + exact add_fderiv_mem_of_sub_add_dotProduct_le_supportFun hKc hKne hKcv hslope' hx + · filter_upwards [hae] with x hx + exact tendsto_nhds_unique hx (hξ' x) + +/-- For `ζ ∈ 𝒞`, the `L² (Q)` distance from `η` to `ζ` and to the classes of `𝒞_{L²}`, by their +representatives. -/ +private theorem norm_sub_sq_eq {η ξ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) + {v : Lp ℝ 2 (volume.restrict unitSquare)} (hv : v =ᵐ[volume.restrict unitSquare] ξ) : + ‖(memLp_of_lipPer hη).toLp η - v‖ ^ 2 = ∫ x in unitSquare, (η x - ξ x) ^ 2 := + norm_sq_eq_integral (coeFn_sub_ae (MemLp.coeFn_toLp _) hv) + +private theorem bddBelow_norm_sub (x₀ : Lp ℝ 2 (volume.restrict unitSquare)) : + BddBelow (Set.range fun v : constraintSetL2 K p => ‖x₀ - v‖) := + ⟨0, by rintro _ ⟨v, rfl⟩; exact norm_nonneg _⟩ + +/-- The `L² (Q)`-projection of `η` on `𝒞` exists (TeX line 412). + +Proof: `𝒞_{L²}` is nonempty, closed and convex in `L² (Q)`; Kinderlehrer–Stampacchia's Lemma 2.1 +(`External.KinderlehrerStampacchia.lemma2_1`) gives the nearest point of `𝒞_{L²}` to `η`, and its +representative in `𝒞` is an `L² (Q)`-projection. -/ +theorem lemma4_exists (hKne : K.Nonempty) (hKc : IsCompact K) (hKcv : Convex ℝ K) (hp : p ∈ K) + {η : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) : + ∃ ζ, IsL2Projection (constraintSet K p) η ζ := by + obtain ⟨y, ⟨⟨ζ, hζ, hy⟩, hmin⟩, -⟩ := External.KinderlehrerStampacchia.lemma2_1 + (nonempty_constraintSetL2 hp) (isClosed_constraintSetL2 hKne hKc hKcv) + (convex_constraintSetL2 hKcv) ((memLp_of_lipPer hη).toLp η) + refine ⟨ζ, hζ, fun ξ hξ => ?_⟩ + have hle : ‖(memLp_of_lipPer hη).toLp η - y‖ ≤ + ‖(memLp_of_lipPer hη).toLp η - (memLp_of_lipPer hξ.1).toLp ξ‖ := by + rw [hmin] + exact ciInf_le (bddBelow_norm_sub _) ⟨_, toLp_mem_constraintSetL2 hξ⟩ + rw [← norm_sub_sq_eq hη hy, ← norm_sub_sq_eq hη (MemLp.coeFn_toLp _)] + exact pow_le_pow_left₀ (norm_nonneg _) hle 2 + +/-- An `L² (Q)`-projection of `η` on `𝒞` is, as a class of `L² (Q)`, the nearest point of `𝒞_{L²}` +to `η`. -/ +private theorem norm_sub_toLp_eq_iInf {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) + (hζ : IsL2Projection (constraintSet K p) η ζ) : + ‖(memLp_of_lipPer hη).toLp η - (memLp_of_lipPer hζ.1.1).toLp ζ‖ = + ⨅ v : constraintSetL2 K p, ‖(memLp_of_lipPer hη).toLp η - v‖ := by + have hy₀ := toLp_mem_constraintSetL2 hζ.1 + have : Nonempty (constraintSetL2 K p) := ⟨⟨_, hy₀⟩⟩ + refine le_antisymm (le_ciInf fun v => ?_) (ciInf_le (bddBelow_norm_sub _) ⟨_, hy₀⟩) + obtain ⟨ξ', hξ', hv⟩ := v.2 + rw [← sq_le_sq₀ (norm_nonneg _) (norm_nonneg _), norm_sub_sq_eq hη (MemLp.coeFn_toLp _), + norm_sub_sq_eq hη hv] + exact hζ.2 ξ' hξ' + +/-- The `L² (Q)`-projection is unique (TeX line 412: "the projection `ζ` exists uniquely"): two +`L² (Q)`-projections of `η` on `𝒞` are equal, as Lipschitz periodic functions, the representatives +of `W^{1,∞}_per (Q)` in the formalization; in particular they agree almost everywhere on `Q`. + +Proof: their classes in `L² (Q)` are nearest points of `𝒞_{L²}` to `η`, which is nonempty, closed +and convex, so they are equal by the uniqueness in Kinderlehrer–Stampacchia's Lemma 2.1 +(`External.KinderlehrerStampacchia.lemma2_1`): the two functions agree almost everywhere on `Q`. +Being periodic, they agree almost everywhere on `ℝ²` +(`CalculusOfVariations.ae_of_ae_restrict_unitCube_of_periodic`), and, being continuous, +everywhere. -/ +theorem lemma4_unique (hKne : K.Nonempty) (hKc : IsCompact K) (hKcv : Convex ℝ K) (hp : p ∈ K) + {η ζ₁ ζ₂ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) (h₁ : IsL2Projection (constraintSet K p) η ζ₁) + (h₂ : IsL2Projection (constraintSet K p) η ζ₂) : ζ₁ = ζ₂ := by + obtain ⟨y, -, hy⟩ := External.KinderlehrerStampacchia.lemma2_1 + (nonempty_constraintSetL2 hp) (isClosed_constraintSetL2 hKne hKc hKcv) + (convex_constraintSetL2 hKcv) ((memLp_of_lipPer hη).toLp η) + have e₁ := hy _ ⟨toLp_mem_constraintSetL2 h₁.1, norm_sub_toLp_eq_iInf hη h₁⟩ + have e₂ := hy _ ⟨toLp_mem_constraintSetL2 h₂.1, norm_sub_toLp_eq_iInf hη h₂⟩ + have hQ : ζ₁ =ᵐ[volume.restrict unitSquare] ζ₂ := by + filter_upwards [(memLp_of_lipPer h₁.1.1).coeFn_toLp, (memLp_of_lipPer h₂.1.1).coeFn_toLp] + with x hx₁ hx₂ + rw [← hx₁, ← hx₂, e₁, e₂] + have hR : ζ₁ =ᵐ[volume] ζ₂ := + ae_of_ae_restrict_unitCube_of_periodic (P := fun x => ζ₁ x = ζ₂ x) + (fun x k hxk => by rwa [h₁.1.1.2 x k, h₂.1.1.2 x k] at hxk) hQ + obtain ⟨C₁, hC₁⟩ := h₁.1.1.1 + obtain ⟨C₂, hC₂⟩ := h₂.1.1.1 + exact (hC₁.continuous.ae_eq_iff_eq volume hC₂.continuous).1 hR + +/-- The `L² (Q)`-projection exists and is unique (TeX line 412): `lemma4_exists` and +`lemma4_unique`. -/ +theorem lemma4_existsUnique (hKne : K.Nonempty) (hKc : IsCompact K) (hKcv : Convex ℝ K) + (hp : p ∈ K) {η : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) : + ∃! ζ, IsL2Projection (constraintSet K p) η ζ := by + obtain ⟨ζ, hζ⟩ := lemma4_exists hKne hKc hKcv hp hη + exact ⟨ζ, hζ, fun ζ' hζ' => lemma4_unique hKne hKc hKcv hp hη hζ' hζ⟩ + +/-- `(eq:projection-variational-inequality)`: with `h = η − ζ`, `∫_Q h (ξ − ζ) ≤ 0` for every +`ξ ∈ 𝒞` (TeX lines 412–415). + +Proof: the class of `ζ` is the nearest point of the convex `𝒞_{L²}` to `η` in `L² (Q)`, and +Kinderlehrer–Stampacchia's Theorem 2.3 (`External.KinderlehrerStampacchia.theorem2_3`) gives +`⟪η − ζ, ξ − ζ⟫_{L² (Q)} ≤ 0`, which is the integral. -/ +theorem lemma4_variationalInequality (hKcv : Convex ℝ K) {η ζ : (Fin 2 → ℝ) → ℝ} + (hη : LipPer η) (hζ : IsL2Projection (constraintSet K p) η ζ) : + ∀ ξ ∈ constraintSet K p, ∫ x in unitSquare, (η x - ζ x) * (ξ x - ζ x) ≤ 0 := by + intro ξ hξ + have hy₀ := toLp_mem_constraintSetL2 hζ.1 + have : Nonempty (constraintSetL2 K p) := ⟨⟨_, hy₀⟩⟩ + have hnorm : ‖(memLp_of_lipPer hη).toLp η - (memLp_of_lipPer hζ.1.1).toLp ζ‖ = + ⨅ v : constraintSetL2 K p, ‖(memLp_of_lipPer hη).toLp η - v‖ := by + refine le_antisymm (le_ciInf fun v => ?_) (ciInf_le (bddBelow_norm_sub _) ⟨_, hy₀⟩) + obtain ⟨ξ', hξ', hv⟩ := v.2 + rw [← sq_le_sq₀ (norm_nonneg _) (norm_nonneg _), norm_sub_sq_eq hη (MemLp.coeFn_toLp _), + norm_sub_sq_eq hη hv] + exact hζ.2 ξ' hξ' + have hvi := (External.KinderlehrerStampacchia.theorem2_3 (convex_constraintSetL2 hKcv) hy₀).1 + hnorm _ (toLp_mem_constraintSetL2 hξ) + rwa [inner_eq_integral (coeFn_sub_ae (MemLp.coeFn_toLp _) (MemLp.coeFn_toLp _)) + (coeFn_sub_ae (MemLp.coeFn_toLp _) (MemLp.coeFn_toLp _))] at hvi + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Main.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Main.lean new file mode 100644 index 0000000000..675d098dd0 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Proof/ScalarProjection/Main.lean @@ -0,0 +1,758 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Proof.ScalarProjection.Existence +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.Periodic +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.ZeroSet +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.FDeriv +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.FundamentalDomain +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Periodize + +/-! +# §2: the scalar projection lemma (Lemma 4) + +For `K ⊂ ℝ²` nonempty, compact and convex, `p ∈ K` and `η ∈ W^{1,∞}_per (Q)`, let +`v (x) = p · x + η (x)` and let `ζ` be the `L² (Q)`-projection of `η` on +`𝒞 = {ξ ∈ W^{1,∞}_per (Q) : p + Dξ ∈ K a.e.}`. Then `w (x) = p · x + ζ (x)` satisfies `Dw = Dv` or +`Dw ∈ ∂K` almost everywhere, and `∫_Q Dw · (Dv − Dw) ≥ 0` (`(eq:projection-integral-sign)`). + +The objects and the representation choices are in `Agazzi.Proof.ScalarProjection.Defs`; the +existence of the projection and the variational inequality in +`Agazzi.Proof.ScalarProjection.Existence`. + +The proof (TeX lines 417–443) in steps, with `h = η − ζ`: + +* `lemma4_step1`: `Dw = Dv` a.e. on `{h = 0}` (the gradient of the Lipschitz `h` vanishes a.e. on + its zero set); +* `lemma4_step2`: `Dw (x₀) ∉ int K` where `h (x₀) ≠ 0` and `w` is differentiable at `x₀`, by the + competitor `ζ + (c − w)_+` with the cone `c (x) = w (x₀) + ε − H (x₀ − x)` + (`lemma4_step2_core`); then the first assertion, `lemma4_first`; +* `lemma4_step3_diff`, `lemma4_step3_partial`, `lemma4_step3`: the second differences of the + variational inequality, `∫_Q ∂_i h ∂_i ζ ≥ 0`, and `(eq:projection-integral-sign)`. + +Norms on `ℝ² = Fin 2 → ℝ` are Mathlib's sup norm, and balls are sup-norm balls: the paper's +Euclidean `|y|` and `B_ρ (b₀)` become `‖y‖` and sup-norm balls, the argument being the same for +any norm. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology CalculusOfVariations + +namespace Agazzi + +variable {K : Set (Fin 2 → ℝ)} {p : Fin 2 → ℝ} + +/-! ### Preliminaries: the gradient `sgrad`, the unit square -/ + +private lemma lem4_unitSquare_eq : unitSquare = CalculusOfVariations.unitCube 2 := rfl + +private lemma lem4_measurableSet_unitSquare : MeasurableSet unitSquare := + MeasurableSet.univ_pi fun _ => measurableSet_Ioo + +private lemma lem4_isOpen_unitSquare : IsOpen unitSquare := + isOpen_set_pi Set.finite_univ fun _ _ => isOpen_Ioo + +private lemma lem4_volume_unitSquare : volume unitSquare = 1 := by + simp [unitSquare, Real.volume_pi_Ioo] + +private lemma lem4_integrableOn_of_continuous {f : (Fin 2 → ℝ) → ℝ} (hf : Continuous f) : + IntegrableOn f unitSquare := + (hf.integrableOn_Icc (a := 0) (b := 1)).mono_set fun _ hx => + ⟨fun i => (hx i (Set.mem_univ i)).1.le, fun i => (hx i (Set.mem_univ i)).2.le⟩ + +/-- A measurable function bounded by `C` is integrable on the unit square. -/ +private lemma lem4_integrableOn_of_bound {f : (Fin 2 → ℝ) → ℝ} (hf : Measurable f) (C : ℝ) + (hC : ∀ x, |f x| ≤ C) : IntegrableOn f unitSquare := + IntegrableOn.of_bound (by rw [lem4_volume_unitSquare]; exact ENNReal.one_lt_top) + hf.aestronglyMeasurable C (Eventually.of_forall fun x => by rw [Real.norm_eq_abs]; exact hC x) + +/-- `|∂_v f| ≤ C ‖v‖` for a `C`-Lipschitz `f`. -/ +private lemma lem4_abs_fderiv_le {f : (Fin 2 → ℝ) → ℝ} {C : NNReal} (hf : LipschitzWith C f) + (x v : Fin 2 → ℝ) : |fderiv ℝ f x v| ≤ C * ‖v‖ := by + rw [← Real.norm_eq_abs] + exact ((fderiv ℝ f x).le_opNorm v).trans + (mul_le_mul_of_nonneg_right (norm_fderiv_le_of_lipschitz ℝ hf) (norm_nonneg v)) + +/-- `y ↦ p · y` as a continuous linear map. -/ +private def lem4Dot (p : Fin 2 → ℝ) : (Fin 2 → ℝ) →L[ℝ] ℝ := + ∑ j, p j • ContinuousLinearMap.proj j + +private lemma lem4Dot_apply (p y : Fin 2 → ℝ) : lem4Dot p y = p ⬝ᵥ y := by + simp [lem4Dot, dotProduct] + +/-- A linear functional is the dot product with its gradient. -/ +private lemma lem4_apply_eq_dotProduct (L : (Fin 2 → ℝ) →L[ℝ] ℝ) (y : Fin 2 → ℝ) : + L y = (fun j => L (Pi.single j 1)) ⬝ᵥ y := by + conv_lhs => rw [← Finset.univ_sum_single y] + simp only [map_sum, dotProduct] + refine Finset.sum_congr rfl fun j _ => ?_ + rw [show (Pi.single j (y j) : Fin 2 → ℝ) = y j • Pi.single j 1 by + rw [← Pi.single_smul, smul_eq_mul, mul_one], map_smul, smul_eq_mul, mul_comm] + +private lemma lem4_fderiv_apply_eq (f : (Fin 2 → ℝ) → ℝ) (x y : Fin 2 → ℝ) : + fderiv ℝ f x y = sgrad f x ⬝ᵥ y := + lem4_apply_eq_dotProduct _ y + +private lemma sgrad_congr {f g : (Fin 2 → ℝ) → ℝ} {x : Fin 2 → ℝ} (h : f =ᶠ[𝓝 x] g) : + sgrad f x = sgrad g x := by + unfold sgrad; rw [h.fderiv_eq] + +private lemma sgrad_comp_add (f : (Fin 2 → ℝ) → ℝ) (a x : Fin 2 → ℝ) : + sgrad (fun y => f (y + a)) x = sgrad f (x + a) := by + unfold sgrad; rw [fderiv_comp_add_right] + +private lemma sgrad_add_const (f : (Fin 2 → ℝ) → ℝ) (c : ℝ) (x : Fin 2 → ℝ) : + sgrad (fun y => f y + c) x = sgrad f x := by + unfold sgrad; rw [fderiv_add_const] + +private lemma sgrad_const_mul {f : (Fin 2 → ℝ) → ℝ} {x : Fin 2 → ℝ} + (hf : DifferentiableAt ℝ f x) (s : ℝ) : sgrad (fun y => s * f y) x = s • sgrad f x := by + ext j; simp [sgrad, fderiv_const_mul hf s] + +private lemma hasFDerivAt_dot_add {f : (Fin 2 → ℝ) → ℝ} {x : Fin 2 → ℝ} + (hf : DifferentiableAt ℝ f x) : + HasFDerivAt (fun y => p ⬝ᵥ y + f y) (lem4Dot p + fderiv ℝ f x) x := by + refine ((lem4Dot p).hasFDerivAt.add hf.hasFDerivAt).congr_of_eventuallyEq + (Eventually.of_forall fun y => ?_) + simp [lem4Dot_apply] + +/-- `D (p · y + f) = p + D f` where `f` is differentiable. -/ +private lemma sgrad_dot_add {f : (Fin 2 → ℝ) → ℝ} {x : Fin 2 → ℝ} + (hf : DifferentiableAt ℝ f x) : sgrad (fun y => p ⬝ᵥ y + f y) x = p + sgrad f x := by + ext j + simp only [sgrad, Pi.add_apply] + rw [(hasFDerivAt_dot_add hf).fderiv, add_apply, lem4Dot_apply, + dotProduct_single, mul_one] + +private lemma sgrad_periodic {f : (Fin 2 → ℝ) → ℝ} (hf : IsPeriodic f) (x : Fin 2 → ℝ) + (k : Fin 2 → ℤ) : sgrad f (x + fun i => (k i : ℝ)) = sgrad f x := by + rw [← sgrad_comp_add] + congr 1 + funext y + exact hf y k + +private lemma lem4_lipschitz_dot_add {f : (Fin 2 → ℝ) → ℝ} {C : NNReal} (hf : LipschitzWith C f) : + ∃ C', LipschitzWith C' (fun y => p ⬝ᵥ y + f y) := + ⟨_, by simpa only [lem4Dot_apply] using (lem4Dot p).lipschitzWith.add hf⟩ + +/-- The constraint of `𝒞` holds almost everywhere on `ℝ²`, not only on the unit square: it is a +periodic property. -/ +private lemma lemma4_ae_constraint {ξ : (Fin 2 → ℝ) → ℝ} (hξ : ξ ∈ constraintSet K p) : + ∀ᵐ x ∂(volume : Measure (Fin 2 → ℝ)), p + sgrad ξ x ∈ K := + ae_of_ae_restrict_unitCube_of_periodic (fun x k h => by rwa [sgrad_periodic hξ.1.2] at h) hξ.2 + +/-! ### Step 1: `Dw = Dv` almost everywhere on `{h = 0}` -/ + +/-- **Step 1** (TeX line 417). With `h = η − ζ`, `Dw = Dv` almost everywhere on `{h = 0}`: the +gradient of the Lipschitz `h = v − w` vanishes almost everywhere on its zero set. -/ +private lemma lemma4_step1 {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) (hζ : LipPer ζ) : + ∀ᵐ x ∂(volume : Measure (Fin 2 → ℝ)), η x - ζ x = 0 → + sgrad (fun y => p ⬝ᵥ y + ζ y) x = sgrad (fun y => p ⬝ᵥ y + η y) x := by + obtain ⟨Cη, hηL⟩ := hη.1 + obtain ⟨Cζ, hζL⟩ := hζ.1 + filter_upwards [ae_fderiv_eq_zero_of_eq_zero (hηL.sub hζL), hηL.ae_differentiableAt, + hζL.ae_differentiableAt] with x h0 hηd hζd hx + have h1 := h0 hx + rw [fderiv_fun_sub hηd hζd, sub_eq_zero] at h1 + rw [sgrad_dot_add hζd, sgrad_dot_add hηd] + ext j + simp [sgrad, h1] + +/-! ### Step 2: `Dw ∈ ∂K` almost everywhere on `{h ≠ 0}` -/ + +/-- TeX lines 422–425: if `B_δ (b₀) ⊂ K`, then `H (y) ≥ b₀ · y + ρ ‖y‖` with `ρ = δ / 2`. -/ +private lemma lemma4_choose_rho (hKc : IsCompact K) {b₀ : Fin 2 → ℝ} (hb : b₀ ∈ interior K) : + ∃ ρ > 0, ∀ y, b₀ ⬝ᵥ y + ρ * ‖y‖ ≤ supportFun K y := by + obtain ⟨δ, hδ, hball⟩ := Metric.mem_nhds_iff.1 (mem_interior_iff_mem_nhds.1 hb) + refine ⟨δ / 2, by positivity, fun y => ?_⟩ + set u : Fin 2 → ℝ := fun j => if 0 ≤ y j then 1 else -1 with hu_def + have hu : ‖u‖ ≤ 1 := (pi_norm_le_iff_of_nonneg zero_le_one).2 fun j => by + simp only [hu_def]; split_ifs <;> simp + have huy : ∀ j, u j * y j = |y j| := fun j => by + simp only [hu_def] + split_ifs with h + · simp [abs_of_nonneg h] + · simp [abs_of_neg (not_le.1 h)] + have hmem : b₀ + (δ / 2) • u ∈ K := hball (by + rw [Metric.mem_ball, dist_eq_norm, add_sub_cancel_left, norm_smul, Real.norm_eq_abs, + abs_of_pos (by positivity)] + nlinarith [norm_nonneg u]) + have h1 := dotProduct_le_supportFun hKc hmem y + have h2 : (b₀ + (δ / 2) • u) ⬝ᵥ y = b₀ ⬝ᵥ y + δ / 2 * (|y 0| + |y 1|) := by + rw [add_dotProduct, smul_dotProduct, smul_eq_mul] + simp only [dotProduct, Fin.sum_univ_two, huy] + have h3 : ‖y‖ ≤ |y 0| + |y 1| := (pi_norm_le_iff_of_nonneg (by positivity)).2 fun j => by + fin_cases j <;> simp [Real.norm_eq_abs] + nlinarith + +/-- TeX lines 426–429: a radius `r < 1/2` with `h > 0` on `closedBall x₀ r` and +`|w (x) − w (x₀) − b₀ · (x − x₀)| ≤ (ρ/2) ‖x − x₀‖` there (`b₀ = Dw (x₀)`). The bound `r < 1/2` +makes the ball embed in the torus; the paper leaves it implicit. -/ +private lemma lemma4_choose_r {w h : (Fin 2 → ℝ) → ℝ} {x₀ : Fin 2 → ℝ} + (hw : DifferentiableAt ℝ w x₀) (hh : Continuous h) (hh0 : 0 < h x₀) {ρ : ℝ} (hρ : 0 < ρ) : + ∃ r, 0 < r ∧ r < 1 / 2 ∧ (∀ x, ‖x - x₀‖ ≤ r → 0 < h x) ∧ + ∀ x, ‖x - x₀‖ ≤ r → |w x - w x₀ - sgrad w x₀ ⬝ᵥ (x - x₀)| ≤ ρ / 2 * ‖x - x₀‖ := by + have h1 := hw.hasFDerivAt.isLittleO.def (show 0 < ρ / 2 by positivity) + have h2 : ∀ᶠ x in 𝓝 x₀, 0 < h x := (hh.tendsto x₀).eventually (lt_mem_nhds hh0) + obtain ⟨δ, hδ, hδ'⟩ := Metric.eventually_nhds_iff.1 (h1.and h2) + have hlt : ∀ x, ‖x - x₀‖ ≤ min (δ / 2) (1 / 4) → dist x x₀ < δ := fun x hx => by + rw [dist_eq_norm]; linarith [min_le_left (δ / 2) (1 / 4)] + refine ⟨min (δ / 2) (1 / 4), by positivity, by linarith [min_le_right (δ / 2) (1 / 4)], + fun x hx => (hδ' (hlt x hx)).2, fun x hx => ?_⟩ + have := (hδ' (hlt x hx)).1 + rwa [Real.norm_eq_abs, lem4_fderiv_apply_eq] at this + +/-- The cone `c (x) = A − s H (s (x₀ − x))` is Lipschitz. -/ +private lemma lemma4_cone_lipschitz (hKne : K.Nonempty) (hKc : IsCompact K) {s : ℝ} + (hs : |s| = 1) (A : ℝ) (x₀ : Fin 2 → ℝ) : + ∃ C, LipschitzWith C (fun x => A - s * supportFun K (s • (x₀ - x))) := by + obtain ⟨C, hC⟩ := lipschitzWith_supportFun hKc hKne + refine ⟨C, LipschitzWith.of_dist_le_mul fun x y => ?_⟩ + rw [Real.dist_eq, show A - s * supportFun K (s • (x₀ - x)) - (A - s * supportFun K (s • (x₀ - y))) + = -(s * (supportFun K (s • (x₀ - x)) - supportFun K (s • (x₀ - y)))) by ring, abs_neg, + abs_mul, hs, one_mul, ← Real.dist_eq] + calc dist (supportFun K (s • (x₀ - x))) (supportFun K (s • (x₀ - y))) + ≤ C * dist (s • (x₀ - x)) (s • (x₀ - y)) := hC.dist_le_mul _ _ + _ = C * dist x y := by + rw [dist_eq_norm, dist_eq_norm, ← smul_sub, norm_smul, Real.norm_eq_abs, hs, one_mul, + show x₀ - x - (x₀ - y) = -(x - y) by abel, norm_neg] + +/-- TeX line 433: the cone `c (x) = A − s H (s (x₀ − x))` (`s = ±1`) has gradient in `K` +wherever it is differentiable: `Dc (z) = DH (s (x₀ − z))`. -/ +private lemma lemma4_cone_sgrad_mem (hKne : K.Nonempty) (hKc : IsCompact K) (hKcv : Convex ℝ K) + {s : ℝ} (hs2 : s * s = 1) (A : ℝ) (x₀ : Fin 2 → ℝ) {z : Fin 2 → ℝ} + (hz : DifferentiableAt ℝ (fun x => A - s * supportFun K (s • (x₀ - x))) z) : + sgrad (fun x => A - s * supportFun K (s • (x₀ - x))) z ∈ K := by + set c := fun x => A - s * supportFun K (s • (x₀ - x)) with hc_def + set u₀ := s • (x₀ - z) with hu₀ + have hH_eq : supportFun K = fun u => s * (A - c (x₀ - s • u)) := by + funext u + simp only [hc_def, sub_sub_cancel, smul_smul, hs2, one_smul] + rw [← mul_assoc, hs2, one_mul] + have hHd : DifferentiableAt ℝ (supportFun K) u₀ := by + rw [hH_eq] + have hin : DifferentiableAt ℝ (fun u : Fin 2 → ℝ => x₀ - s • u) u₀ := + (differentiableAt_const _).sub ((differentiableAt_id).const_smul s) + have hz' : DifferentiableAt ℝ c (x₀ - s • u₀) := by + rw [hu₀, smul_smul, hs2, one_smul, sub_sub_cancel]; exact hz + exact ((hz'.comp u₀ hin).const_sub A).const_mul s + have hmem := gradient_supportFun_mem hKc hKne hKcv hHd + have hin : HasFDerivAt (fun x : Fin 2 → ℝ => s • (x₀ - x)) + (s • -(ContinuousLinearMap.id ℝ (Fin 2 → ℝ))) z := + ((hasFDerivAt_id z).const_sub x₀).const_smul s + have hcomp : HasFDerivAt (fun x => supportFun K (s • (x₀ - x))) + ((fderiv ℝ (supportFun K) u₀).comp (s • -(ContinuousLinearMap.id ℝ (Fin 2 → ℝ)))) z := + HasFDerivAt.comp (g := supportFun K) (f := fun x : Fin 2 → ℝ => s • (x₀ - x)) z + hHd.hasFDerivAt hin + have hcd : HasFDerivAt c (-(s • ((fderiv ℝ (supportFun K) u₀).comp + (s • -(ContinuousLinearMap.id ℝ (Fin 2 → ℝ)))))) z := + (hcomp.const_mul s).const_sub A + convert hmem using 1 + ext j + simp only [sgrad, hcd.fderiv] + simp only [neg_apply, smul_apply, ContinuousLinearMap.comp_apply, + ContinuousLinearMap.id_apply, map_neg, map_smul, smul_eq_mul] + linear_combination (fderiv ℝ (supportFun K) u₀ (Pi.single j 1)) * hs2 + +/-- TeX lines 432–434: `s (c − w) ≤ ε − (ρ/2) ‖x − x₀‖` on `closedBall x₀ r`, for +`c (x) = w (x₀) + s ε − s H (s (x₀ − x))`. Hence `c < w` on `∂B_r (x₀)` (for `s = 1`) when +`ε < ρ r / 2`. -/ +private lemma lemma4_cone_bound {b₀ : Fin 2 → ℝ} {ρ : ℝ} + (hHρ : ∀ y, b₀ ⬝ᵥ y + ρ * ‖y‖ ≤ supportFun K y) {s : ℝ} (hs : s = 1 ∨ s = -1) + {w : (Fin 2 → ℝ) → ℝ} {x₀ x : Fin 2 → ℝ} (ε : ℝ) + (hw : |w x - w x₀ - b₀ ⬝ᵥ (x - x₀)| ≤ ρ / 2 * ‖x - x₀‖) : + s * ((w x₀ + s * ε - s * supportFun K (s • (x₀ - x))) - w x) ≤ ε - ρ / 2 * ‖x - x₀‖ := by + have hH := hHρ (s • (x₀ - x)) + have hn : ‖x₀ - x‖ = ‖x - x₀‖ := norm_sub_rev _ _ + have hd : b₀ ⬝ᵥ (x₀ - x) = -(b₀ ⬝ᵥ (x - x₀)) := by + rw [← dotProduct_neg, neg_sub] + have habs := abs_le.1 hw + rcases hs with rfl | rfl + · simp only [one_smul, one_mul, hn, hd] at hH ⊢ + linarith + · simp only [neg_smul, one_smul, dotProduct_neg, norm_neg, hn, hd, neg_mul, one_mul, + neg_neg] at hH ⊢ + linarith + +/-- TeX line 434: `s (c (x₀) − w (x₀)) = ε`. -/ +private lemma lemma4_cone_center (hKne : K.Nonempty) (hKc : IsCompact K) {s : ℝ} + (hs2 : s * s = 1) (A ε : ℝ) (x₀ : Fin 2 → ℝ) : + s * ((A + s * ε - s * supportFun K (s • (x₀ - x₀))) - A) = ε := by + rw [sub_self, smul_zero, supportFun_zero hKc hKne] + linear_combination ε * hs2 + +/-- TeX line 434: `(F)_+` on the ball `B_r (x₀)`, extended by zero outside (the paper's +`(c − w)_+` for `F = c − w`). -/ +private def lem4Cutoff (F : (Fin 2 → ℝ) → ℝ) (x₀ : Fin 2 → ℝ) (r : ℝ) : (Fin 2 → ℝ) → ℝ := + Set.indicator (Metric.ball x₀ r) fun x => max (F x) 0 + +/-- `(F)_+` on `B_r (x₀)`, extended by zero, is `min (F_+, (ε − (ρ/2) ‖x − x₀‖)_+)` when +`F ≤ ε − (ρ/2) ‖x − x₀‖` on `closedBall x₀ r` and `2ε < ρ r`: a formula that shows it is +Lipschitz. -/ +private lemma lem4Cutoff_eq_min {F : (Fin 2 → ℝ) → ℝ} {x₀ : Fin 2 → ℝ} {r ρ ε : ℝ} (hρ : 0 < ρ) + (hερ : 2 * ε < ρ * r) (hF : ∀ x, ‖x - x₀‖ ≤ r → F x ≤ ε - ρ / 2 * ‖x - x₀‖) + (x : Fin 2 → ℝ) : + lem4Cutoff F x₀ r x = min (max (F x) 0) (max (ε - ρ / 2 * ‖x - x₀‖) 0) := by + unfold lem4Cutoff + by_cases hx : x ∈ Metric.ball x₀ r + · rw [Set.indicator_of_mem hx] + have : ‖x - x₀‖ ≤ r := by rw [Metric.mem_ball, dist_eq_norm] at hx; exact hx.le + exact (min_eq_left (max_le_max (hF x this) le_rfl)).symm + · rw [Set.indicator_of_notMem hx] + have : r ≤ ‖x - x₀‖ := by rw [Metric.mem_ball, dist_eq_norm, not_lt] at hx; exact hx + have h2 : ε - ρ / 2 * ‖x - x₀‖ ≤ 0 := by nlinarith + rw [max_eq_right h2, min_eq_right (le_max_right _ _)] + +private lemma lem4Cutoff_nonneg (F : (Fin 2 → ℝ) → ℝ) (x₀ : Fin 2 → ℝ) (r : ℝ) (x : Fin 2 → ℝ) : + 0 ≤ lem4Cutoff F x₀ r x := + Set.indicator_nonneg (fun _ _ => le_max_right _ _) x + +private lemma lem4Cutoff_le {F : (Fin 2 → ℝ) → ℝ} {x₀ : Fin 2 → ℝ} {r ρ ε : ℝ} (hρ : 0 < ρ) + (hε : 0 < ε) (hερ : 2 * ε < ρ * r) (hF : ∀ x, ‖x - x₀‖ ≤ r → F x ≤ ε - ρ / 2 * ‖x - x₀‖) + (x : Fin 2 → ℝ) : lem4Cutoff F x₀ r x ≤ ε := by + rw [lem4Cutoff_eq_min hρ hερ hF] + exact (min_le_right _ _).trans (max_le (by nlinarith [norm_nonneg (x - x₀)]) hε.le) + +/-- The cut-off vanishes outside `B_{2ε/ρ} (x₀)`. -/ +private lemma lem4Cutoff_eq_zero {F : (Fin 2 → ℝ) → ℝ} {x₀ : Fin 2 → ℝ} {r ρ ε : ℝ} (hρ : 0 < ρ) + (hερ : 2 * ε < ρ * r) (hF : ∀ x, ‖x - x₀‖ ≤ r → F x ≤ ε - ρ / 2 * ‖x - x₀‖) + {x : Fin 2 → ℝ} (hx : 2 * ε < ρ * ‖x - x₀‖) : lem4Cutoff F x₀ r x = 0 := by + rw [lem4Cutoff_eq_min hρ hερ hF, max_eq_right (by linarith : ε - ρ / 2 * ‖x - x₀‖ ≤ 0)] + exact min_eq_right (le_max_right _ _) + +private lemma lem4Cutoff_eventuallyEq_zero {F : (Fin 2 → ℝ) → ℝ} {x₀ : Fin 2 → ℝ} {r ρ ε : ℝ} + (hρ : 0 < ρ) (hερ : 2 * ε < ρ * r) (hF : ∀ x, ‖x - x₀‖ ≤ r → F x ≤ ε - ρ / 2 * ‖x - x₀‖) + {z : Fin 2 → ℝ} (hz : 2 * ε < ρ * ‖z - x₀‖) : lem4Cutoff F x₀ r =ᶠ[𝓝 z] fun _ => 0 := by + have hopen : IsOpen {x : Fin 2 → ℝ | 2 * ε < ρ * ‖x - x₀‖} := + isOpen_lt continuous_const (continuous_const.mul (continuous_id.sub continuous_const).norm) + filter_upwards [hopen.mem_nhds hz] with x hx + exact lem4Cutoff_eq_zero hρ hερ hF hx + +private lemma lem4Cutoff_eventuallyEq_ball (F : (Fin 2 → ℝ) → ℝ) {x₀ : Fin 2 → ℝ} {r : ℝ} + {z : Fin 2 → ℝ} (hz : z ∈ Metric.ball x₀ r) : + lem4Cutoff F x₀ r =ᶠ[𝓝 z] fun x => max (F x) 0 := by + filter_upwards [Metric.isOpen_ball.mem_nhds hz] with x hx + exact Set.indicator_of_mem hx _ + +private lemma lem4Cutoff_lipschitz {F : (Fin 2 → ℝ) → ℝ} {CF : NNReal} (hFL : LipschitzWith CF F) + {x₀ : Fin 2 → ℝ} {r ρ ε : ℝ} (hρ : 0 < ρ) (hερ : 2 * ε < ρ * r) + (hF : ∀ x, ‖x - x₀‖ ≤ r → F x ≤ ε - ρ / 2 * ‖x - x₀‖) : + ∃ C, LipschitzWith C (lem4Cutoff F x₀ r) := by + have hd : LipschitzWith (Real.toNNReal (ρ / 2)) (fun x : Fin 2 → ℝ => ε - ρ / 2 * ‖x - x₀‖) := by + refine LipschitzWith.of_dist_le_mul fun x y => ?_ + have h1 : |‖x - x₀‖ - ‖y - x₀‖| ≤ ‖x - y‖ := by + calc |‖x - x₀‖ - ‖y - x₀‖| ≤ ‖(x - x₀) - (y - x₀)‖ := abs_norm_sub_norm_le _ _ + _ = ‖x - y‖ := by rw [sub_sub_sub_cancel_right] + have h2 : dist (ε - ρ / 2 * ‖x - x₀‖) (ε - ρ / 2 * ‖y - x₀‖) = + ρ / 2 * |‖x - x₀‖ - ‖y - x₀‖| := by + rw [Real.dist_eq, show ε - ρ / 2 * ‖x - x₀‖ - (ε - ρ / 2 * ‖y - x₀‖) = + -(ρ / 2 * (‖x - x₀‖ - ‖y - x₀‖)) by ring, abs_neg, abs_mul, + abs_of_pos (by positivity : 0 < ρ / 2)] + rw [h2, Real.coe_toNNReal _ (by positivity), dist_eq_norm] + exact mul_le_mul_of_nonneg_left h1 (by positivity) + rw [show lem4Cutoff F x₀ r = fun x => min (max (F x) 0) (max (ε - ρ / 2 * ‖x - x₀‖) 0) from + funext (lem4Cutoff_eq_min hρ hερ hF)] + exact ⟨_, (hFL.max (LipschitzWith.const 0)).min (hd.max (LipschitzWith.const 0))⟩ + +private lemma lem4_lipschitz_const_mul {f : (Fin 2 → ℝ) → ℝ} {C : NNReal} (hf : LipschitzWith C f) + (s : ℝ) : LipschitzWith (‖s‖₊ * C) (fun x => s * f x) := + (lipschitzWith_smul s).comp hf + +/-- **The competitor lies in `𝒞`** (TeX line 434). For the cone `c` (Lipschitz, gradient in `K` +where differentiable) and the cut-off `g = (s (c − w))_+` on `B_r (x₀)`, extended by zero +(`lem4Cutoff`), the function `ξ = ζ + s ĝ`, with `ĝ` the `ℤ²`-periodization of `g`, lies in `𝒞`. +Near a point of `B_r (x₀)` (up to an integer translation), `p · x + ξ = s max {s c, s w}` (that +is, `max {w, c}` for `s = 1` and `min {w, c}` for `s = −1`), whose gradient is a.e. `Dc ∈ K` or +`Dw ∈ K` (`ae_fderiv_max_eq_or`); away from `B_{2ε/ρ} (x₀)`, `ξ = ζ` up to translation. -/ +private lemma lemma4_competitor_mem {ζ w c : (Fin 2 → ℝ) → ℝ} (hζ : ζ ∈ constraintSet K p) + (hw : w = fun y => p ⬝ᵥ y + ζ y) {Cc : NNReal} (hcL : LipschitzWith Cc c) + (hcK : ∀ z, DifferentiableAt ℝ c z → sgrad c z ∈ K) {s : ℝ} (hs2 : s * s = 1) + {x₀ : Fin 2 → ℝ} {r ρ ε : ℝ} (hr : r < 1 / 2) (hρ : 0 < ρ) (hε : 0 < ε) + (hερ : 2 * ε < ρ * r) (hF : ∀ x, ‖x - x₀‖ ≤ r → s * (c x - w x) ≤ ε - ρ / 2 * ‖x - x₀‖) : + (fun x => ζ x + s * supPeriodize (lem4Cutoff (fun x => s * (c x - w x)) x₀ r) x) ∈ + constraintSet K p := by + have hζK := lemma4_ae_constraint hζ + obtain ⟨⟨⟨Cζ, hζL⟩, hζper⟩, -⟩ := hζ + obtain ⟨Cw, hwL⟩ := lem4_lipschitz_dot_add (p := p) hζL + rw [← hw] at hwL + have hsupp : ∀ x, r ≤ ‖x - x₀‖ → lem4Cutoff (fun x => s * (c x - w x)) x₀ r x = 0 := + fun x hx => lem4Cutoff_eq_zero hρ hερ hF (by nlinarith) + obtain ⟨Cg, hgL⟩ := lem4Cutoff_lipschitz (lem4_lipschitz_const_mul (hcL.sub hwL) s) hρ hερ hF + have hφL := lipschitzWith_supPeriodize hgL (lem4Cutoff_le hρ hε hερ hF) + set g := lem4Cutoff (fun x => s * (c x - w x)) x₀ r with hg_def + set φ := supPeriodize g with hφ_def + have hξL : LipschitzWith _ (fun x => ζ x + s * φ x) := hζL.add (lem4_lipschitz_const_mul hφL s) + refine ⟨⟨⟨_, hξL⟩, fun x k => ?_⟩, ae_restrict_of_ae ?_⟩ + · -- periodicity + simp only [hφ_def] + rw [hζper x k, supPeriodize_periodic] + -- the gradient constraint, almost everywhere on `ℝ²` + have hML := (lem4_lipschitz_const_mul hcL s).max (lem4_lipschitz_const_mul hwL s) + have hgood : ∀ᵐ z ∂(volume : Measure (Fin 2 → ℝ)), DifferentiableAt ℝ ζ z ∧ + p + sgrad ζ z ∈ K ∧ DifferentiableAt ℝ c z ∧ + DifferentiableAt ℝ (fun u => max (s * c u) (s * w u)) z ∧ + (fderiv ℝ (fun u => max (s * c u) (s * w u)) z = fderiv ℝ (fun u => s * c u) z ∨ + fderiv ℝ (fun u => max (s * c u) (s * w u)) z = fderiv ℝ (fun u => s * w u) z) := by + filter_upwards [hζL.ae_differentiableAt, hζK, hcL.ae_differentiableAt, hML.ae_differentiableAt, + ae_fderiv_max_eq_or (lem4_lipschitz_const_mul hcL s) (lem4_lipschitz_const_mul hwL s)] + with z h1 h2 h3 h4 h5 + exact ⟨h1, h2, h3, h4, h5⟩ + have hgood' := ae_all_iff.2 fun k : Fin 2 → ℤ => QuasiMeasurePreserving.ae + (measurePreserving_add_right volume fun i => (k i : ℝ)).quasiMeasurePreserving hgood + filter_upwards [hgood', hξL.ae_differentiableAt] with x hx hξd + obtain ⟨k, hk⟩ := exists_norm_add_intVec_sub_le_half x₀ x + obtain ⟨hζd, hζK', hcd, hMd, hmax⟩ := hx k + set z := x + fun i => (k i : ℝ) with hz + have hwd : DifferentiableAt ℝ w z := by rw [hw]; exact (hasFDerivAt_dot_add hζd).differentiableAt + have hwg : sgrad w z = p + sgrad ζ z := by rw [hw]; exact sgrad_dot_add hζd + -- near `x`, `p · y + ξ (y) = (w + s g) (y + k) − p · k` + have hW : (fun y => p ⬝ᵥ y + (ζ y + s * φ y)) =ᶠ[𝓝 x] + fun y => (fun u => w u + s * g u) (y + fun i => (k i : ℝ)) + -(p ⬝ᵥ fun i => (k i : ℝ)) := by + filter_upwards [supPeriodize_eventuallyEq (lem4Cutoff_nonneg _ x₀ r) hsupp hr hk] with y hy + have hy' : φ y = g (y + fun i => (k i : ℝ)) := hy + simp only [hy', hw, hζper y k, dotProduct_add] + ring + have key : p + sgrad (fun y => ζ y + s * φ y) x = sgrad (fun u => w u + s * g u) z := by + rw [← sgrad_dot_add hξd, sgrad_congr hW, sgrad_add_const] + exact sgrad_comp_add (fun u => w u + s * g u) _ x + rw [key] + by_cases hzr : z ∈ Metric.ball x₀ r + · -- near `z`, `w + s g = s max {s c, s w}` + have hloc : (fun u => w u + s * g u) =ᶠ[𝓝 z] fun u => s * max (s * c u) (s * w u) := by + filter_upwards [lem4Cutoff_eventuallyEq_ball _ hzr] with u hu + rw [hg_def, hu, show s * (c u - w u) = s * c u - s * w u by ring, + show (0 : ℝ) = s * w u - s * w u by ring, max_sub_sub_right] + linear_combination (-(w u)) * hs2 + rw [sgrad_congr hloc, sgrad_const_mul hMd] + rcases hmax with h | h + · have : sgrad (fun u => max (s * c u) (s * w u)) z = s • sgrad c z := by + ext j; simp [sgrad, h, fderiv_const_mul hcd] + rw [this, smul_smul, hs2, one_smul] + exact hcK z hcd + · have : sgrad (fun u => max (s * c u) (s * w u)) z = s • sgrad w z := by + ext j; simp [sgrad, h, fderiv_const_mul hwd] + rw [this, smul_smul, hs2, one_smul, hwg] + exact hζK' + · -- away from `B_{2ε/ρ} (x₀)`, `w + s g = w` near `z` + have hzr' : 2 * ε < ρ * ‖z - x₀‖ := by + rw [Metric.mem_ball, dist_eq_norm, not_lt] at hzr; nlinarith + have hloc : (fun u => w u + s * g u) =ᶠ[𝓝 z] w := by + filter_upwards [lem4Cutoff_eventuallyEq_zero hρ hερ hF hzr'] with u hu + rw [hg_def, hu, mul_zero, add_zero] + rw [sgrad_congr hloc, hwg] + exact hζK' + +/-- **The competitor increases the integral** (TeX line 436): `∫_Q h (ξ − ζ) > 0`, as `s h > 0` +where the periodized cut-off is positive, and `s h (x₀) ĝ (x₀) = s h (x₀) ε > 0`. -/ +private lemma lemma4_competitor_integral_pos {η ζ w c : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) + (hζ : LipPer ζ) (hw : w = fun y => p ⬝ᵥ y + ζ y) {Cc : NNReal} (hcL : LipschitzWith Cc c) + {s : ℝ} {x₀ : Fin 2 → ℝ} (hx₀ : x₀ ∈ unitSquare) {r ρ ε : ℝ} (hr : r < 1 / 2) (hρ : 0 < ρ) + (hε : 0 < ε) (hερ : 2 * ε < ρ * r) + (hF : ∀ x, ‖x - x₀‖ ≤ r → s * (c x - w x) ≤ ε - ρ / 2 * ‖x - x₀‖) + (hFx₀ : s * (c x₀ - w x₀) = ε) (hh : ∀ x, ‖x - x₀‖ ≤ r → 0 < s * (η x - ζ x)) : + 0 < ∫ x in unitSquare, (η x - ζ x) * + ((ζ x + s * supPeriodize (lem4Cutoff (fun x => s * (c x - w x)) x₀ r) x) - ζ x) := by + obtain ⟨⟨Cη, hηL⟩, hηper⟩ := hη + obtain ⟨⟨Cζ, hζL⟩, hζper⟩ := hζ + obtain ⟨Cw, hwL⟩ := lem4_lipschitz_dot_add (p := p) hζL + rw [← hw] at hwL + have hr0 : 0 < r := by nlinarith + have hsupp : ∀ x, r ≤ ‖x - x₀‖ → lem4Cutoff (fun x => s * (c x - w x)) x₀ r x = 0 := + fun x hx => lem4Cutoff_eq_zero hρ hερ hF (by nlinarith) + obtain ⟨Cg, hgL⟩ := lem4Cutoff_lipschitz (lem4_lipschitz_const_mul (hcL.sub hwL) s) hρ hερ hF + have hφc := (lipschitzWith_supPeriodize hgL (lem4Cutoff_le hρ hε hερ hF)).continuous + set g := lem4Cutoff (fun x => s * (c x - w x)) x₀ r with hg_def + set φ := supPeriodize g with hφ_def + have hηc := hηL.continuous + have hζc := hζL.continuous + have hGc : Continuous fun x => (η x - ζ x) * ((ζ x + s * φ x) - ζ x) := by fun_prop + have hGeq : ∀ x, (η x - ζ x) * ((ζ x + s * φ x) - ζ x) = s * (η x - ζ x) * φ x := fun x => by + ring + -- `s h ĝ ≥ 0`: where `ĝ (x) = g (x + k) > 0`, `x + k ∈ B_r (x₀)` and `s h (x + k) > 0` + have hG0 : ∀ x, 0 ≤ (η x - ζ x) * ((ζ x + s * φ x) - ζ x) := by + intro x + obtain ⟨k, hk⟩ := exists_norm_add_intVec_sub_le_half x₀ x + rw [hGeq, hφ_def, supPeriodize_eq (lem4Cutoff_nonneg _ x₀ r) hsupp hr hk] + rcases (lem4Cutoff_nonneg (fun x => s * (c x - w x)) x₀ r + (x + fun i => (k i : ℝ))).eq_or_lt with h0 | hpos + · rw [← h0, mul_zero] + · have hxk : ‖x + (fun i => (k i : ℝ)) - x₀‖ ≤ r := by + by_contra hcon + exact hpos.ne' (lem4Cutoff_eq_zero hρ hερ hF (by nlinarith)) + have := hh _ hxk + rw [hηper x k, hζper x k] at this + exact mul_nonneg this.le hpos.le + -- `s h (x₀) ĝ (x₀) = s h (x₀) ε > 0` + have hGx₀ : 0 < (η x₀ - ζ x₀) * ((ζ x₀ + s * φ x₀) - ζ x₀) := by + have hk0 : ‖x₀ + (fun i => ((0 : Fin 2 → ℤ) i : ℝ)) - x₀‖ ≤ 1 / 2 := by simp + have h0 : (fun i => ((0 : Fin 2 → ℤ) i : ℝ)) = 0 := by ext; simp + rw [hGeq, hφ_def, supPeriodize_eq (lem4Cutoff_nonneg _ x₀ r) hsupp hr hk0, h0, add_zero, + lem4Cutoff, Set.indicator_of_mem (Metric.mem_ball_self hr0), hFx₀, + max_eq_left hε.le] + exact mul_pos (hh x₀ (by rw [sub_self, norm_zero]; exact hr0.le)) hε + rw [setIntegral_pos_iff_support_of_nonneg_ae (Eventually.of_forall hG0) + (lem4_integrableOn_of_continuous hGc)] + exact (hGc.isOpen_support.inter lem4_isOpen_unitSquare).measure_pos volume + ⟨x₀, hGx₀.ne', hx₀⟩ + +/-- **Step 2, the contradiction** (TeX lines 422–436), for `s h (x₀) > 0` with `s = ±1`. The +case `s = 1` is the paper's; `s = −1` is the paper's "by changing signs" made explicit: the mirror +cone `c (x) = w (x₀) − ε + H (x − x₀)`, `min {w, c}` and the competitor `ζ − (w − c)_+`. -/ +private lemma lemma4_step2_core (hKne : K.Nonempty) (hKc : IsCompact K) (hKcv : Convex ℝ K) + {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) (hζ : IsL2Projection (constraintSet K p) η ζ) + {x₀ : Fin 2 → ℝ} (hx₀ : x₀ ∈ unitSquare) {s : ℝ} (hs : s = 1 ∨ s = -1) + (hsh : 0 < s * (η x₀ - ζ x₀)) (hdiff : DifferentiableAt ℝ (fun y => p ⬝ᵥ y + ζ y) x₀) + (hint : sgrad (fun y => p ⬝ᵥ y + ζ y) x₀ ∈ interior K) : False := by + have hs2 : s * s = 1 := by rcases hs with rfl | rfl <;> norm_num + have hs1 : |s| = 1 := by rcases hs with rfl | rfl <;> norm_num + obtain ⟨Cη, hηL⟩ := hη.1 + obtain ⟨Cζ, hζL⟩ := hζ.1.1.1 + -- `ρ` with `B_ρ (b₀) ⊂ K`, so that `H (y) ≥ b₀ · y + ρ ‖y‖` + obtain ⟨ρ, hρ, hHρ⟩ := lemma4_choose_rho hKc hint + -- the ball `closedBall x₀ r` + obtain ⟨r, hr0, hr, hrh, hrw⟩ := lemma4_choose_r hdiff + (continuous_const.mul (hηL.continuous.sub hζL.continuous)) hsh hρ + -- `0 < ε < ρ r / 2` + set ε := ρ * r / 4 with hε_def + have hε : 0 < ε := by positivity + have hερ : 2 * ε < ρ * r := by rw [hε_def]; nlinarith + -- the cone `c (x) = w (x₀) + s ε − s H (s (x₀ − x))` + obtain ⟨Cc, hcL⟩ := lemma4_cone_lipschitz hKne hKc hs1 (p ⬝ᵥ x₀ + ζ x₀ + s * ε) x₀ + have hcK := fun z hz => lemma4_cone_sgrad_mem hKne hKc hKcv hs2 (p ⬝ᵥ x₀ + ζ x₀ + s * ε) x₀ + (z := z) hz + have hF : ∀ x, ‖x - x₀‖ ≤ r → s * ((p ⬝ᵥ x₀ + ζ x₀ + s * ε - + s * supportFun K (s • (x₀ - x))) - (p ⬝ᵥ x + ζ x)) ≤ ε - ρ / 2 * ‖x - x₀‖ := + fun x hx => lemma4_cone_bound hHρ hs (w := fun y => p ⬝ᵥ y + ζ y) ε (hrw x hx) + have hFx₀ := lemma4_cone_center hKne hKc hs2 (p ⬝ᵥ x₀ + ζ x₀) ε x₀ + -- the competitor `ξ = ζ + s (s (c − w))_+` lies in `𝒞` and `∫_Q h (ξ − ζ) > 0` + have hξ := lemma4_competitor_mem hζ.1 rfl hcL hcK hs2 hr hρ hε hερ hF + have hpos := lemma4_competitor_integral_pos hη hζ.1.1 rfl hcL hx₀ hr hρ hε hερ hF hFx₀ hrh + -- contradicting `(eq:projection-variational-inequality)` + have := lemma4_variationalInequality hKcv hη hζ _ hξ + linarith + +/-- **Step 2** (TeX lines 422–436): where `h (x₀) ≠ 0` and `w` is differentiable at `x₀`, +`Dw (x₀) ∉ int K`. "By changing signs, we may assume `h (x₀) > 0`": made explicit by `s = ±1` in +`lemma4_step2_core`. -/ +private lemma lemma4_step2 (hKne : K.Nonempty) (hKc : IsCompact K) (hKcv : Convex ℝ K) + {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) (hζ : IsL2Projection (constraintSet K p) η ζ) + {x₀ : Fin 2 → ℝ} (hx₀ : x₀ ∈ unitSquare) (hh : η x₀ - ζ x₀ ≠ 0) + (hdiff : DifferentiableAt ℝ (fun y => p ⬝ᵥ y + ζ y) x₀) : + sgrad (fun y => p ⬝ᵥ y + ζ y) x₀ ∉ interior K := by + intro hint + rcases lt_or_gt_of_ne hh with hneg | hpos + · exact lemma4_step2_core hKne hKc hKcv hη hζ hx₀ (Or.inr rfl) (by linarith) hdiff hint + · exact lemma4_step2_core hKne hKc hKcv hη hζ hx₀ (Or.inl rfl) (by linarith) hdiff hint + +/-- **The first assertion** (TeX lines 417–436): `Dw = Dv` or `Dw ∈ ∂K` almost everywhere. -/ +private lemma lemma4_first (hKne : K.Nonempty) (hKc : IsCompact K) (hKcv : Convex ℝ K) + {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) (hζ : IsL2Projection (constraintSet K p) η ζ) : + ∀ᵐ x ∂(volume.restrict unitSquare), + sgrad (fun y => p ⬝ᵥ y + ζ y) x = sgrad (fun y => p ⬝ᵥ y + η y) x ∨ + sgrad (fun y => p ⬝ᵥ y + ζ y) x ∈ frontier K := by + obtain ⟨Cζ, hζL⟩ := hζ.1.1.1 + filter_upwards [ae_restrict_mem lem4_measurableSet_unitSquare, hζ.1.2, + ae_restrict_of_ae (lemma4_step1 (p := p) hη hζ.1.1), ae_restrict_of_ae hζL.ae_differentiableAt] + with x hx hxK h1 hζd + by_cases h0 : η x - ζ x = 0 + · exact Or.inl (h1 h0) + right + have hwK : sgrad (fun y => p ⬝ᵥ y + ζ y) x ∈ K := by rw [sgrad_dot_add hζd]; exact hxK + rw [hKc.isClosed.frontier_eq] + -- if `K` has empty interior, `∂K = K`; otherwise Step 2 + by_cases hint : interior K = ∅ + · rw [hint, Set.sdiff_empty]; exact hwK + · exact ⟨hwK, lemma4_step2 hKne hKc hKcv hη hζ hx h0 (hasFDerivAt_dot_add hζd).differentiableAt⟩ + +/-! ### Step 3: `(eq:projection-integral-sign)` -/ + +/-- TeX line 438: translates `ζ (· + a)` of `ζ ∈ 𝒞` lie in `𝒞`. -/ +private lemma lemma4_translate_mem {ζ : (Fin 2 → ℝ) → ℝ} (hζ : ζ ∈ constraintSet K p) + (a : Fin 2 → ℝ) : (fun x => ζ (x + a)) ∈ constraintSet K p := by + have hae := lemma4_ae_constraint hζ + obtain ⟨⟨⟨C, hC⟩, hper⟩, -⟩ := hζ + refine ⟨⟨⟨C, LipschitzWith.of_dist_le_mul fun x y => ?_⟩, fun x k => ?_⟩, ?_⟩ + · have := hC.dist_le_mul (x + a) (y + a) + rwa [dist_eq_norm (x + a), add_sub_add_right_eq_sub, ← dist_eq_norm] at this + · simp only + rw [show x + (fun i => (k i : ℝ)) + a = x + a + fun i => (k i : ℝ) by abel] + exact hper _ k + · refine ae_restrict_of_ae ?_ + filter_upwards [QuasiMeasurePreserving.ae + (measurePreserving_add_right volume a).quasiMeasurePreserving hae] with x hx + rwa [sgrad_comp_add] + +/-- **Step 3, the second differences** (TeX lines 438–442): adding the variational inequalities +for `ζ (· ± t e) ∈ 𝒞` and changing variables, +`0 ≥ ∫_Q h (x) [ζ (x + t e) + ζ (x − t e) − 2 ζ (x)] = −∫_Q [h (x + t e) − h (x)] +[ζ (x + t e) − ζ (x)]`. -/ +private lemma lemma4_step3_diff (hKcv : Convex ℝ K) {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) + (hζ : IsL2Projection (constraintSet K p) η ζ) (e : Fin 2 → ℝ) (t : ℝ) : + 0 ≤ ∫ x in unitSquare, ((η (x + t • e) - ζ (x + t • e)) - (η x - ζ x)) * + (ζ (x + t • e) - ζ x) := by + obtain ⟨⟨Cη, hηL⟩, hηper⟩ := hη + obtain ⟨⟨Cζ, hζL⟩, hζper⟩ := hζ.1.1 + have hηc := hηL.continuous + have hζc := hζL.continuous + -- the variational inequalities for `ζ (· + t e)` and `ζ (· − t e)` + have hplus := lemma4_variationalInequality hKcv ⟨⟨Cη, hηL⟩, hηper⟩ hζ _ + (lemma4_translate_mem hζ.1 (t • e)) + have hminus := lemma4_variationalInequality hKcv ⟨⟨Cη, hηL⟩, hηper⟩ hζ _ + (lemma4_translate_mem hζ.1 (-(t • e))) + beta_reduce at hplus hminus + have hiplus : IntegrableOn (fun x => (η x - ζ x) * (ζ (x + t • e) - ζ x)) unitSquare := + lem4_integrableOn_of_continuous (by fun_prop) + have himinus : IntegrableOn (fun x => (η x - ζ x) * (ζ (x + -(t • e)) - ζ x)) unitSquare := + lem4_integrableOn_of_continuous (by fun_prop) + have hi₂ : IntegrableOn + (fun x => (η (x + t • e) - ζ (x + t • e)) * (ζ x - ζ (x + t • e))) unitSquare := + lem4_integrableOn_of_continuous (by fun_prop) + have hsplit : ∫ x in unitSquare, (η x - ζ x) * (ζ (x + t • e) + ζ (x + -(t • e)) - 2 * ζ x) = + (∫ x in unitSquare, (η x - ζ x) * (ζ (x + t • e) - ζ x)) + + ∫ x in unitSquare, (η x - ζ x) * (ζ (x + -(t • e)) - ζ x) := by + rw [← integral_add hiplus himinus] + congr 1 + funext x + ring + -- adding them: `0 ≥ ∫_Q h (x) [ζ (x + t e) + ζ (x − t e) − 2 ζ (x)]` + have hsum : + ∫ x in unitSquare, (η x - ζ x) * (ζ (x + t • e) + ζ (x + -(t • e)) - 2 * ζ x) ≤ 0 := by + rw [hsplit]; linarith + -- changing variables: `∫_Q h (x) [ζ (x − t e) − ζ (x)] = ∫_Q h (x + t e) [ζ (x) − ζ (x + t e)]` + have hcv : ∫ x in unitSquare, (η x - ζ x) * (ζ (x + -(t • e)) - ζ x) = + ∫ x in unitSquare, (η (x + t • e) - ζ (x + t • e)) * (ζ x - ζ (x + t • e)) := by + have hper : ∀ (x : Fin 2 → ℝ) (k : Fin 2 → ℤ), + (fun x => (η x - ζ x) * (ζ (x + -(t • e)) - ζ x)) (x + fun i => (k i : ℝ)) = + (fun x => (η x - ζ x) * (ζ (x + -(t • e)) - ζ x)) x := fun x k => by + simp only + rw [hηper x k, hζper x k, show x + (fun i => (k i : ℝ)) + -(t • e) = + x + -(t • e) + fun i => (k i : ℝ) by abel, hζper _ k] + have := setIntegral_unitCube_comp_add + (f := fun x => (η x - ζ x) * (ζ (x + -(t • e)) - ζ x)) hper (t • e) + rw [← lem4_unitSquare_eq] at this + rw [← this] + congr 1 + funext x + rw [add_neg_cancel_right] + -- `= −∫_Q [h (x + t e) − h (x)] [ζ (x + t e) − ζ (x)]` + have heq : ∫ x in unitSquare, (η x - ζ x) * (ζ (x + t • e) + ζ (x + -(t • e)) - 2 * ζ x) = + -∫ x in unitSquare, ((η (x + t • e) - ζ (x + t • e)) - (η x - ζ x)) * + (ζ (x + t • e) - ζ x) := by + rw [hsplit, hcv, ← integral_add hiplus hi₂, ← integral_neg] + congr 1 + funext x + ring + linarith + +/-- **Step 3, the limit** (TeX line 443): dividing by `t²` and letting `t → 0`, +`∫_Q ∂_e h ∂_e ζ ≥ 0`. -/ +private lemma lemma4_step3_partial (hKcv : Convex ℝ K) {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) + (hζ : IsL2Projection (constraintSet K p) η ζ) (e : Fin 2 → ℝ) : + 0 ≤ ∫ x in unitSquare, fderiv ℝ (fun y => η y - ζ y) x e * fderiv ℝ ζ x e := by + obtain ⟨Cη, hηL⟩ := hη.1 + obtain ⟨Cζ, hζL⟩ := hζ.1.1.1 + have hlim := tendsto_setIntegral_slope_mul (hηL.sub hζL) hζL e + (s := unitSquare) (by rw [lem4_volume_unitSquare]; exact ENNReal.one_ne_top) + refine ge_of_tendsto hlim (Eventually.of_forall fun t => ?_) + have h := lemma4_step3_diff hKcv hη hζ e t + calc (0 : ℝ) ≤ t⁻¹ * t⁻¹ * ∫ x in unitSquare, ((η (x + t • e) - ζ (x + t • e)) - (η x - ζ x)) * + (ζ (x + t • e) - ζ x) := mul_nonneg (mul_self_nonneg _) h + _ = _ := by + rw [← integral_const_mul] + congr 1 + funext x + ring + +/-- **Step 3** (TeX line 443): summing over `i`, with `Dw = p + Dζ`, `Dv − Dw = Dh` and +`∫_Q Dh = 0`, `∫_Q Dw · (Dv − Dw) ≥ 0`. -/ +private lemma lemma4_step3 (hKcv : Convex ℝ K) {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) + (hζ : IsL2Projection (constraintSet K p) η ζ) : + 0 ≤ ∫ x in unitSquare, sgrad (fun y => p ⬝ᵥ y + ζ y) x ⬝ᵥ + (sgrad (fun y => p ⬝ᵥ y + η y) x - sgrad (fun y => p ⬝ᵥ y + ζ y) x) := by + obtain ⟨⟨Cη, hηL⟩, hηper⟩ := hη + obtain ⟨⟨Cζ, hζL⟩, hζper⟩ := hζ.1.1 + have hhL := hηL.sub hζL + have hhper : ∀ (x : Fin 2 → ℝ) (k : Fin 2 → ℤ), + (fun y => η y - ζ y) (x + fun i => (k i : ℝ)) = (fun y => η y - ζ y) x := fun x k => by + simp only [hηper x k, hζper x k] + -- `Dw = p + Dζ` and `Dv − Dw = Dh` almost everywhere + have hae : (fun x => sgrad (fun y => p ⬝ᵥ y + ζ y) x ⬝ᵥ + (sgrad (fun y => p ⬝ᵥ y + η y) x - sgrad (fun y => p ⬝ᵥ y + ζ y) x)) + =ᵐ[volume.restrict unitSquare] fun x => + ∑ j, (p j * fderiv ℝ (fun y => η y - ζ y) x (Pi.single j 1) + + fderiv ℝ ζ x (Pi.single j 1) * fderiv ℝ (fun y => η y - ζ y) x (Pi.single j 1)) := by + filter_upwards [ae_restrict_of_ae hηL.ae_differentiableAt, + ae_restrict_of_ae hζL.ae_differentiableAt] with x hηd hζd + rw [sgrad_dot_add hηd, sgrad_dot_add hζd, fderiv_fun_sub hηd hζd] + simp only [dotProduct, sgrad, Pi.add_apply, Pi.sub_apply, sub_apply] + refine Finset.sum_congr rfl fun j _ => ?_ + ring + have hint1 : ∀ j : Fin 2, IntegrableOn + (fun x => p j * fderiv ℝ (fun y => η y - ζ y) x (Pi.single j 1)) unitSquare := fun j => + lem4_integrableOn_of_bound + (measurable_const.mul (measurable_fderiv_apply_const ℝ _ _)) (|p j| * ((Cη + Cζ) * 1)) + fun x => by + rw [abs_mul] + gcongr + simpa [Pi.norm_single] using lem4_abs_fderiv_le hhL x (Pi.single j 1) + have hint2 : ∀ j : Fin 2, IntegrableOn (fun x => fderiv ℝ ζ x (Pi.single j 1) * + fderiv ℝ (fun y => η y - ζ y) x (Pi.single j 1)) unitSquare := fun j => + lem4_integrableOn_of_bound + ((measurable_fderiv_apply_const ℝ _ _).mul (measurable_fderiv_apply_const ℝ _ _)) + (Cζ * (Cη + Cζ)) fun x => by + rw [abs_mul] + have h1 := lem4_abs_fderiv_le hζL x (Pi.single j 1) + have h2 := lem4_abs_fderiv_le hhL x (Pi.single j 1) + simp only [Pi.norm_single, norm_one, mul_one] at h1 h2 + exact mul_le_mul h1 h2 (abs_nonneg _) (by positivity) + rw [integral_congr_ae hae, integral_finsetSum (f := fun j x => + p j * fderiv ℝ (fun y => η y - ζ y) x (Pi.single j 1) + + fderiv ℝ ζ x (Pi.single j 1) * fderiv ℝ (fun y => η y - ζ y) x (Pi.single j 1)) + Finset.univ fun j _ => (hint1 j).add (hint2 j)] + refine Finset.sum_nonneg fun j _ => ?_ + rw [integral_add (hint1 j) (hint2 j), integral_const_mul] + -- `∫_Q ∂_j h = 0` by periodicity, and `∫_Q ∂_j ζ ∂_j h ≥ 0` + have h0 := setIntegral_unitCube_fderiv_eq_zero hhL hhper (Pi.single j 1) + rw [← lem4_unitSquare_eq] at h0 + rw [h0, mul_zero, zero_add] + have := lemma4_step3_partial hKcv ⟨⟨Cη, hηL⟩, hηper⟩ hζ (Pi.single j 1) + calc (0 : ℝ) ≤ _ := this + _ = _ := by congr 1; funext x; ring + +-- The hypothesis `p ∈ K` is not used here: it makes `𝒞` nonempty (`0 ∈ 𝒞`), which the projection +-- hypothesis `hζ` already gives (`ζ ∈ 𝒞`); it is used for the existence of `ζ` (`lemma4_exists`). +/-- **Lemma 4** (`lem:scalar-projection`). Let `K ⊂ ℝ²` be nonempty, compact and convex, `p ∈ K`, +`η ∈ W^{1,∞}_per (Q)`, `v (x) = p · x + η (x)`, and let `ζ` be the `L² (Q)`-projection of `η` on +`𝒞 = {ξ ∈ W^{1,∞}_per (Q) : p + Dξ ∈ K a.e.}`. Then `w (x) = p · x + ζ (x)` satisfies `Dw = Dv` or +`Dw ∈ ∂K` almost everywhere, and `∫_Q Dw · (Dv − Dw) ≥ 0` (`(eq:projection-integral-sign)`). + +The proof is the paper's (TeX lines 411–443), in the steps `lemma4_step1`, `lemma4_step2` +(with `lemma4_first`) and `lemma4_step3`. Remarks on the paper's argument: + +* the ball `B_r (x₀)` of the competitor is taken with `r < 1/2`, so that it embeds in the torus + (its integer translates are disjoint) and `(c − w)_+`, extended by zero, extends to a + `ℤ²`-periodic function (`supPeriodize`); the paper leaves this implicit; +* "by changing signs, we may assume `h (x₀) > 0`" is made explicit: for `h (x₀) < 0` the mirror + cone `c (x) = w (x₀) − ε + H (x − x₀)`, `min {w, c}` and `ζ − (w − c)_+` (`s = −1` in + `lemma4_step2_core`); +* norms and balls in `ℝ²` are those of the sup norm (Mathlib's norm on `Fin 2 → ℝ`), in place of + the Euclidean ones; the argument does not depend on the norm. -/ +theorem lemma4 (hKne : K.Nonempty) (hKc : IsCompact K) (hKcv : Convex ℝ K) (_hp : p ∈ K) + {η ζ : (Fin 2 → ℝ) → ℝ} (hη : LipPer η) (hζ : IsL2Projection (constraintSet K p) η ζ) : + (∀ᵐ x ∂(volume.restrict unitSquare), + sgrad (fun y => p ⬝ᵥ y + ζ y) x = sgrad (fun y => p ⬝ᵥ y + η y) x ∨ + sgrad (fun y => p ⬝ᵥ y + ζ y) x ∈ frontier K) ∧ + 0 ≤ ∫ x in unitSquare, sgrad (fun y => p ⬝ᵥ y + ζ y) x ⬝ᵥ + (sgrad (fun y => p ⬝ᵥ y + η y) x - sgrad (fun y => p ⬝ᵥ y + ζ y) x) := + ⟨lemma4_first hKne hKc hKcv hη hζ, lemma4_step3 hKcv hη hζ⟩ + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Quasiconvex.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Quasiconvex.lean new file mode 100644 index 0000000000..d90c4b16fe --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Quasiconvex.lean @@ -0,0 +1,98 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.Quasiconvexity +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Periodic + +/-! +# Theorem 1 and Corollary 2 as quasiconvexity in the sense of `CalculusOfVariations` + +The paper's Theorem 1 and Corollary 2 test quasiconvexity with `C^∞` periodic maps on the torus. +The package `CalculusOfVariations` defines quasiconvexity (`CalculusOfVariations.Quasiconvex`) with +Lipschitz test maps vanishing outside the unit cube. The two notions agree for Borel, locally +bounded integrands (`CalculusOfVariations.quasiconvexAtOn_iff_periodic`, Dacorogna, Prop. 5.13), and +the paper's proofs give the periodic inequalities for Lipschitz periodic maps +(`theorem1_lipschitz`, `corollary2_lipschitz`). Hence: + +* `quasiconvex_integrandL`: `L` is quasiconvex; +* `quasiconvex_burkholderB`: `B_p` is quasiconvex for every `1 < p < ∞`; +* `quasiconvex_burkholder`: for `1 < p < 2`, the Burkholder function + `(|a₊| − (p − 1)|a₋|)(|a₊| + |a₋|)^{p−1}` (a positive multiple of `B_p`, and quasiconvexity + passes to positive multiples, `quasiconvex_const_mul`) is quasiconvex. +-/ + +@[expose] public section + +noncomputable section + +namespace Agazzi + +open MeasureTheory CalculusOfVariations + +/-- A continuous `f` that satisfies the periodic inequality `∫_Q [f (A + Dφ) − f (A)] dx ≥ 0` for +all Lipschitz periodic `φ` is quasiconvex: `quasiconvexAtOn_iff_periodic` and `|Q| = 1`. -/ +private theorem quasiconvex_of_periodic {f : Matrix (Fin 2) (Fin 2) ℝ → ℝ} (hf : Continuous f) + (h : ∀ (A : Matrix (Fin 2) (Fin 2) ℝ) (φ : (Fin 2 → ℝ) → Fin 2 → ℝ) (C : NNReal), + LipschitzWith C φ → IsPeriodic φ → + 0 ≤ ∫ x in unitSquare, (f (A + jacobian φ x) - f A)) : + Quasiconvex f := by + intro A + rw [quasiconvexAtOn_iff_periodic hf.measurable (isLocallyBounded_of_continuous hf)] + intro φ K hφ hper hint + have h0 : 0 ≤ ∫ x in unitCube 2, (f (A + grad φ x) - f A) := h A φ K hφ hper + have hvol : volume (unitCube 2) = 1 := rd_volume_unitCube 2 + rw [integral_sub hint (integrableOn_const (by simp [hvol])), setIntegral_const, + Measure.real, hvol, ENNReal.toReal_one, one_smul] at h0 + linarith + +/-- Quasiconvexity is preserved by multiplication by a positive constant (directly from the +definition). -/ +theorem quasiconvex_const_mul {f : Matrix (Fin 2) (Fin 2) ℝ → ℝ} (hf : Quasiconvex f) {c : ℝ} + (hc : 0 < c) : Quasiconvex fun A => c * f A := by + intro A φ K hφ h0 hint + have hint' : IntegrableOn (fun x => f (A + grad φ x)) (unitCube 2) := + (integrable_const_mul_iff (IsUnit.mk0 c hc.ne') _).1 hint + have := hf A φ K hφ h0 hint' + rw [integral_const_mul] + calc (volume (unitCube 2)).toReal * (c * f A) = c * ((volume (unitCube 2)).toReal * f A) := by + ring + _ ≤ c * ∫ x in unitCube 2, f (A + grad φ x) := mul_le_mul_of_nonneg_left this hc.le + +/-- `L` is quasiconvex, in the sense of `CalculusOfVariations` (Lipschitz test maps vanishing +outside the unit cube): Theorem 1 for Lipschitz periodic maps (`theorem1_lipschitz`) and the +equivalence with periodic test maps (`quasiconvexAtOn_iff_periodic`). -/ +theorem quasiconvex_integrandL : CalculusOfVariations.Quasiconvex integrandL := + quasiconvex_of_periodic continuous_integrandL fun A _ _ hφ hper => theorem1_lipschitz A hφ hper + +/-- `B_p` is quasiconvex for every `1 < p < ∞`, in the sense of `CalculusOfVariations`: +Corollary 2 for Lipschitz periodic maps (`corollary2_lipschitz`) and the equivalence with periodic +test maps (`quasiconvexAtOn_iff_periodic`). -/ +theorem quasiconvex_burkholderB {p : ℝ} (hp : 1 < p) : + CalculusOfVariations.Quasiconvex (burkholderB p) := + quasiconvex_of_periodic (continuous_burkholderB hp) fun A _ _ hφ hper => + corollary2_lipschitz hp A hφ hper + +/-- For `1 < p < 2`, the Burkholder function `(|a₊| − (p − 1)|a₋|)(|a₊| + |a₋|)^{p−1}` is +quasiconvex, in the sense of `CalculusOfVariations`: it is `(p − 1) B_p` +(`burkholderB_of_lt_two`). -/ +theorem quasiconvex_burkholder (p : ℝ) (hp1 : 1 < p) (hp2 : p < 2) : + CalculusOfVariations.Quasiconvex fun A : Matrix (Fin 2) (Fin 2) ℝ => + (‖conformalPart A‖ + ‖anticonformalPart A‖) ^ (p - 1) * + (‖conformalPart A‖ - (p - 1) * ‖anticonformalPart A‖) := by + have hp0 : 0 < p - 1 := by linarith + have heq : (fun A : Matrix (Fin 2) (Fin 2) ℝ => + (‖conformalPart A‖ + ‖anticonformalPart A‖) ^ (p - 1) * + (‖conformalPart A‖ - (p - 1) * ‖anticonformalPart A‖)) = + fun A => (p - 1) * burkholderB p A := by + funext A + rw [burkholderB_of_lt_two hp1 hp2, ← mul_assoc, mul_inv_cancel₀ hp0.ne', one_mul] + rw [heq] + exact quasiconvex_const_mul (quasiconvex_burkholderB hp1) hp0 + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Theorem1.lean b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Theorem1.lean new file mode 100644 index 0000000000..32608ffd77 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Agazzi/Theorem1.lean @@ -0,0 +1,407 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Proof.RowRepresentation +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Proof.ScalarProjection.Main + +/-! +# Theorem 1: the quasiconvexity of `L` + +**Theorem 1** (`thm:L-quasiconvexity`): for all `A ∈ ℝ^{2×2}` and all `φ ∈ C^∞_per (Q; ℝ²)`, +`∫_Q [L (A + Dφ) − L (A)] dx ≥ 0`. + +The paper's proof (TeX lines 376–396) uses only that `φ` is Lipschitz and periodic: Lemma 4 is +stated for `W^{1,∞}_per (Q)`. `theorem1_lipschitz` states the theorem for Lipschitz periodic `φ` +(`φ ∈ W^{1,∞}_per (Q; ℝ²)`), proved by the paper's argument, and `theorem1` is the paper's +statement, for `C^∞` periodic `φ`, which are Lipschitz +(`exists_lipschitzWith_of_contDiff_of_isPeriodic`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory CalculusOfVariations +open scoped ContDiff + +namespace Agazzi + +/-! ### Helpers: `L`, `F`, `G_z`, the unit disk, gradients and integrals -/ + +/-- The entries of a matrix are continuous functions of it. -/ +private theorem thm1_continuous_entry (i j : Fin 2) : + Continuous fun B : Matrix (Fin 2) (Fin 2) ℝ => B i j := + continuous_id.matrix_elem i j + +private theorem thm1_continuous_conformalPart : Continuous conformalPart := by + have h : conformalPart = fun A : Matrix (Fin 2) (Fin 2) ℝ => + (((A 0 0 + A 1 1) / 2 : ℝ) : ℂ) + (((A 1 0 - A 0 1) / 2 : ℝ) : ℂ) * Complex.I := by + funext A; exact Complex.mk_eq_add_mul_I _ _ + rw [h] + have := thm1_continuous_entry + fun_prop + +private theorem thm1_continuous_anticonformalPart : Continuous anticonformalPart := by + have h : anticonformalPart = fun A : Matrix (Fin 2) (Fin 2) ℝ => + (((A 0 0 - A 1 1) / 2 : ℝ) : ℂ) + (((A 1 0 + A 0 1) / 2 : ℝ) : ℂ) * Complex.I := by + funext A; exact Complex.mk_eq_add_mul_I _ _ + rw [h] + have := thm1_continuous_entry + fun_prop + +/-- `L` is continuous: the two formulas agree where `|a₊| + |a₋| = 1`. -/ +private theorem thm1_continuous_integrandL : Continuous integrandL := by + have hp := thm1_continuous_conformalPart + have hm := thm1_continuous_anticonformalPart + refine Continuous.if_le (by fun_prop) (by fun_prop) (by fun_prop) continuous_const ?_ + intro A hA + have : ‖anticonformalPart A‖ = 1 - ‖conformalPart A‖ := by linarith + rw [this]; ring + +/-- `det A = |a₊|² − |a₋|²` (TeX line 268). -/ +private theorem thm1_det_eq (A : Matrix (Fin 2) (Fin 2) ℝ) : + A.det = ‖conformalPart A‖ ^ 2 - ‖anticonformalPart A‖ ^ 2 := by + rw [Complex.sq_norm, Complex.sq_norm, Complex.normSq_apply, Complex.normSq_apply, + Matrix.det_fin_two] + simp only [conformalPart, anticonformalPart] + ring + +private theorem thm1_continuous_euclidNorm : Continuous euclidNorm := by + have : euclidNorm = fun a : Fin 2 → ℝ => √(a 0 ^ 2 + a 1 ^ 2) := funext euclidNorm_eq + rw [this]; fun_prop + +private theorem thm1_abs_le_euclidNorm (a : Fin 2 → ℝ) (i : Fin 2) : |a i| ≤ euclidNorm a := by + rw [euclidNorm_eq] + apply Real.abs_le_sqrt + fin_cases i <;> simp <;> nlinarith [sq_nonneg (a 0), sq_nonneg (a 1)] + +/-- `|A¹| ≤ |a₊| + |a₋|`: `A¹ = (Re (a₊ + ā₋), −Im (a₊ + ā₋))`. -/ +private theorem thm1_euclidNorm_row_le (A : Matrix (Fin 2) (Fin 2) ℝ) : + euclidNorm (A 0) ≤ ‖conformalPart A‖ + ‖anticonformalPart A‖ := by + have hw : (⟨A 0 0, -A 0 1⟩ : ℂ) = conformalPart A + (starRingEnd ℂ) (anticonformalPart A) := by + apply Complex.ext <;> simp [conformalPart, anticonformalPart] <;> ring + have hn : euclidNorm (A 0) = ‖(⟨A 0 0, -A 0 1⟩ : ℂ)‖ := by + rw [euclidNorm_eq, Complex.norm_def, Complex.normSq_mk] + congr 1; ring + rw [hn, hw] + exact (norm_add_le _ _).trans (by rw [Complex.norm_conj]) + +/-- The closed unit disk is compact. -/ +private theorem thm1_disk_isCompact : IsCompact {z : Fin 2 → ℝ | euclidNorm z ≤ 1} := by + refine Metric.isCompact_of_isClosed_isBounded + (isClosed_le thm1_continuous_euclidNorm continuous_const) ?_ + refine (Metric.isBounded_closedBall (x := (0 : Fin 2 → ℝ)) (r := 1)).subset fun z hz => ?_ + rw [mem_closedBall_zero_iff, pi_norm_le_iff_of_nonneg zero_le_one] + intro i + rw [Real.norm_eq_abs] + exact (thm1_abs_le_euclidNorm z i).trans hz + +/-- The closed unit disk is convex. -/ +private theorem thm1_disk_convex : Convex ℝ {z : Fin 2 → ℝ | euclidNorm z ≤ 1} := by + intro x hx y hy a b ha hb hab + change euclidNorm (a • x + b • y) ≤ 1 + change euclidNorm x ≤ 1 at hx + change euclidNorm y ≤ 1 at hy + simp only [euclidNorm] at hx hy ⊢ + rw [WithLp.toLp_add, WithLp.toLp_smul, WithLp.toLp_smul] + calc ‖a • WithLp.toLp 2 x + b • WithLp.toLp 2 y‖ + ≤ ‖a • WithLp.toLp 2 x‖ + ‖b • WithLp.toLp 2 y‖ := norm_add_le _ _ + _ = a * ‖WithLp.toLp 2 x‖ + b * ‖WithLp.toLp 2 y‖ := by + rw [norm_smul, norm_smul, Real.norm_of_nonneg ha, Real.norm_of_nonneg hb] + _ ≤ a * 1 + b * 1 := by gcongr + _ = 1 := by rw [mul_one, mul_one, hab] + +/-- A point of the boundary of the closed unit disk is on the unit circle. -/ +private theorem thm1_mem_unitCircle_of_mem_frontier {z : Fin 2 → ℝ} + (hz : z ∈ frontier {z : Fin 2 → ℝ | euclidNorm z ≤ 1}) : z ∈ unitCircle := by + have hcl : IsClosed {z : Fin 2 → ℝ | euclidNorm z ≤ 1} := + isClosed_le thm1_continuous_euclidNorm continuous_const + have h1 : euclidNorm z ≤ 1 := by + have := frontier_subset_closure hz + rwa [hcl.closure_eq] at this + have hsub : {w : Fin 2 → ℝ | euclidNorm w < 1} ⊆ {w | euclidNorm w ≤ 1} := fun w hw => + show euclidNorm w ≤ 1 from le_of_lt hw + refine le_antisymm h1 (not_lt.1 fun h2 => hz.2 ?_) + exact interior_maximal hsub (isOpen_lt thm1_continuous_euclidNorm continuous_const) h2 + +/-- `z ↦ G_z (a, b)` is bounded above on `𝕊¹`: `|z_i| ≤ 1` there. -/ +private theorem thm1_bddAbove_rowG_unitCircle (a b : Fin 2 → ℝ) : + BddAbove ((fun z => rowG z a b) '' unitCircle) := by + refine ⟨|a 0| + |a 1| + |b 0| + |b 1|, ?_⟩ + rintro _ ⟨z, hz, rfl⟩ + have h0 : |z 0| ≤ 1 := (thm1_abs_le_euclidNorm z 0).trans hz.le + have h1 : |z 1| ≤ 1 := (thm1_abs_le_euclidNorm z 1).trans hz.le + have k : ∀ s t : ℝ, |s| ≤ 1 → s * t ≤ |t| := fun s t hs => + (le_abs_self _).trans (by rw [abs_mul]; exact mul_le_of_le_one_left (abs_nonneg _) hs) + have := k (z 0) (b 1) h0 + have := k (-z 1) (b 0) (by rwa [abs_neg]) + have := k (z 0) (a 0) h0 + have := k (z 1) (a 1) h1 + simp only [rowG, det2, dotProduct, Fin.sum_univ_two, Pi.sub_apply] + nlinarith [sq_nonneg (z 0), sq_nonneg (z 1)] + +/-- `G_z (A¹, A²) ≤ F (A)` for `|z| = 1`. -/ +private theorem thm1_rowG_le_rowF {z : Fin 2 → ℝ} (hz : z ∈ unitCircle) + (B : Matrix (Fin 2) (Fin 2) ℝ) : rowG z (B 0) (B 1) ≤ rowF B := + le_csSup (thm1_bddAbove_rowG_unitCircle _ _) ⟨z, hz, rfl⟩ + +/-- `D (p · x + ζ) = p + Dζ` where `ζ` is differentiable. -/ +private theorem thm1_sgrad_dotProduct_add (p : Fin 2 → ℝ) {ζ : (Fin 2 → ℝ) → ℝ} {x : Fin 2 → ℝ} + (hζ : DifferentiableAt ℝ ζ x) : sgrad (fun y => p ⬝ᵥ y + ζ y) x = p + sgrad ζ x := by + let ℓ : (Fin 2 → ℝ) →L[ℝ] ℝ := LinearMap.toContinuousLinearMap + { toFun := fun y => p ⬝ᵥ y + map_add' := dotProduct_add p + map_smul' := fun c y => dotProduct_smul c p y } + have h : HasFDerivAt (fun y => p ⬝ᵥ y + ζ y) (ℓ + fderiv ℝ ζ x) x := + ℓ.hasFDerivAt.add hζ.hasFDerivAt + funext j + change fderiv ℝ (fun y => p ⬝ᵥ y + ζ y) x (Pi.single j 1) = p j + fderiv ℝ ζ x (Pi.single j 1) + rw [h.fderiv] + change ℓ (Pi.single j 1) + fderiv ℝ ζ x (Pi.single j 1) = _ + congr 1 + change p ⬝ᵥ Pi.single j 1 = p j + rw [dotProduct_single, mul_one] + +/-- `y ↦ (f y, g y)` is Lipschitz if `f`, `g` are. -/ +private theorem thm1_lipschitzWith_vec2 {f g : (Fin 2 → ℝ) → ℝ} {K₁ K₂ : NNReal} + (hf : LipschitzWith K₁ f) (hg : LipschitzWith K₂ g) : + LipschitzWith (max K₁ K₂) fun y => ![f y, g y] := by + refine LipschitzWith.of_dist_le_mul fun x y => ?_ + rw [dist_pi_le_iff (by positivity)] + intro i + fin_cases i + · exact (hf.dist_le_mul x y).trans (by gcongr; exact_mod_cast le_max_left K₁ K₂) + · exact (hg.dist_le_mul x y).trans (by gcongr; exact_mod_cast le_max_right K₁ K₂) + +/-- `|Q| = 1`. -/ +private theorem thm1_volume_unitSquare : volume unitSquare = 1 := + CalculusOfVariations.rd_volume_unitCube 2 + +/-- Integrability on `Q` of `f (B + ∇ψ)` for a continuous `f` and a Lipschitz `ψ`. -/ +private theorem thm1_integrableOn {d : ℕ} {f : Matrix (Fin d) (Fin 2) ℝ → ℝ} (hf : Continuous f) + (B : Matrix (Fin d) (Fin 2) ℝ) {ψ : (Fin 2 → ℝ) → Fin d → ℝ} {K : NNReal} + (hψ : LipschitzWith K ψ) : + IntegrableOn (fun x => f (B + CalculusOfVariations.grad ψ x)) unitSquare := + CalculusOfVariations.rd_integrableOn hf.measurable + (CalculusOfVariations.isLocallyBounded_of_continuous hf) B hψ + (by rw [thm1_volume_unitSquare]; exact ENNReal.one_lt_top) + +/-- `∫_Q G_z (A¹ + Dφ¹, A² + Dφ²) = G_z (A¹, A²)`: `G_z` is affine and `∫_Q Dφ = 0`. -/ +private theorem thm1_integral_rowG (A : Matrix (Fin 2) (Fin 2) ℝ) {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} + {C : NNReal} (hφ : LipschitzWith C φ) (hper : IsPeriodic φ) (z : Fin 2 → ℝ) : + ∫ x in unitSquare, rowG z ((A + jacobian φ x) 0) ((A + jacobian φ x) 1) = + rowG z (A 0) (A 1) := by + have hI : ∀ i j, Integrable (fun x => jacobian φ x i j) (volume.restrict unitSquare) := + fun i j => by + have := thm1_integrableOn (f := fun B => B i j) (continuous_id.matrix_elem i j) 0 hφ + simp only [zero_add] at this + exact this + have h0 : ∀ i j, ∫ x in unitSquare, jacobian φ x i j = 0 := fun i j => + setIntegral_unitCube_grad_eq_zero hφ hper i j + have : IsFiniteMeasure (volume.restrict unitSquare) := + ⟨by rw [Measure.restrict_apply_univ, thm1_volume_unitSquare]; exact ENNReal.one_lt_top⟩ + set c : Fin 2 → Fin 2 → ℝ := ![![z 0, z 1], ![-z 1, z 0]] + have hpt : ∀ x, rowG z ((A + jacobian φ x) 0) ((A + jacobian φ x) 1) = + rowG z (A 0) (A 1) + ∑ i, ∑ j, c i j * jacobian φ x i j := fun x => by + simp only [c, rowG, det2, dotProduct, Fin.sum_univ_two, Pi.sub_apply, Matrix.add_apply, + Matrix.cons_val_zero, Matrix.cons_val_one] + ring + have hinner : ∀ i, ∫ x in unitSquare, ∑ j, c i j * jacobian φ x i j = 0 := fun i => by + rw [integral_finsetSum _ fun j _ => (hI i j).const_mul _] + simp [integral_const_mul, h0] + calc ∫ x in unitSquare, rowG z ((A + jacobian φ x) 0) ((A + jacobian φ x) 1) + = ∫ x in unitSquare, (rowG z (A 0) (A 1) + ∑ i, ∑ j, c i j * jacobian φ x i j) := + integral_congr_ae (Filter.Eventually.of_forall hpt) + _ = (∫ _ in unitSquare, rowG z (A 0) (A 1)) + + ∫ x in unitSquare, ∑ i, ∑ j, c i j * jacobian φ x i j := + integral_add (integrable_const _) + (integrable_finsetSum _ fun i _ => integrable_finsetSum _ fun j _ => + (hI i j).const_mul _) + _ = rowG z (A 0) (A 1) := by + rw [integral_finsetSum _ fun i _ => integrable_finsetSum _ fun j _ => + (hI i j).const_mul _, Finset.sum_eq_zero fun i _ => hinner i, setIntegral_const, + measureReal_def, thm1_volume_unitSquare, ENNReal.toReal_one, one_smul, add_zero] + +/-- **Theorem 1** (`thm:L-quasiconvexity`) for Lipschitz periodic test maps +(`φ ∈ W^{1,∞}_per (Q; ℝ²)`), by the paper's proof: for all `A ∈ ℝ^{2×2}`, +`∫_Q [L (A + Dφ) − L (A)] dx ≥ 0`. + +The proof of the paper (TeX lines 376–396), with `u = A x + φ`, `Du = A + Dφ` (`|Q| = 1`, so the +claim is `∫_Q L (Du) ≥ L (A)`): + +* if `|A| > 1`: `L ≥ F` everywhere, and `F = sup_{|z| = 1} G_z` with each `G_z` affine, so that + `∫_Q G_z (Du) = G_z (A)` (`∫_Q Dφ = 0`, `setIntegral_unitCube_grad_eq_zero`); this is the + convexity step `∫_Q F (Du) ≥ F (A)`, and `F (A) = L (A)`; +* if `|A| ≤ 1`, then `|A¹| ≤ 1`: Lemma 4 (`lemma4_exists`, `lemma4`) with `K` the closed unit disk, + `p = A¹` and `η = φ¹` gives `w = A¹ · x + ζ` with `|Dw| ≤ 1` and `Dw = Du¹` or `|Dw| = 1` almost + everywhere, so `Dw ∈ 𝒵 (Du¹)`, and Lemma 3 (`lemma3`) gives + `L (Du) ≥ det (Dw, Du²) + Dw · (Du¹ − Dw)` almost everywhere. The determinant is a null Lagrangian + (`setIntegral_unitCube_det_add_grad` for the periodic map `(ζ, φ²)`): `∫_Q det (Dw, Du²) = det A`; + and `∫_Q Dw · (Du¹ − Dw) ≥ 0` (`(eq:projection-integral-sign)`). So `∫_Q L (Du) ≥ det A = L (A)`. + +Here `Dw = A¹ + Dζ` and `Du¹ = A¹ + Dφ¹` hold where `ζ` and `φ¹` are differentiable, almost +everywhere (Rademacher). -/ +theorem theorem1_lipschitz (A : Matrix (Fin 2) (Fin 2) ℝ) {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} + {C : NNReal} (hφ : LipschitzWith C φ) (hper : IsPeriodic φ) : + 0 ≤ ∫ x in unitSquare, (integrandL (A + jacobian φ x) - integrandL A) := by + have hIL : IntegrableOn (fun x => integrandL (A + jacobian φ x)) unitSquare := + thm1_integrableOn thm1_continuous_integrandL A hφ + have hQ : volume unitSquare ≠ ⊤ := by rw [thm1_volume_unitSquare]; exact ENNReal.one_ne_top + rw [integral_sub hIL (integrableOn_const hQ), setIntegral_const, measureReal_def, + thm1_volume_unitSquare, ENNReal.toReal_one, one_smul, sub_nonneg] + -- `u = A x + φ`, `Du = A + Dφ` + by_cases hA : ‖conformalPart A‖ + ‖anticonformalPart A‖ ≤ 1 + · -- `|A| ≤ 1`, so `|A¹| ≤ 1`: `L (A) = det A` + have hLA : integrandL A = A.det := by rw [integrandL, ite_eq_left hA, thm1_det_eq] + rw [hLA] + set K : Set (Fin 2 → ℝ) := {z | euclidNorm z ≤ 1} + have hp : A 0 ∈ K := (thm1_euclidNorm_row_le A).trans hA + have hφi : ∀ i, LipschitzWith C fun y => φ y i := fun i => by + have := (LipschitzWith.eval (α := fun _ : Fin 2 => ℝ) i).comp hφ + rwa [one_mul] at this + -- Lemma 4 with `K` the closed unit disk, `p = A¹`, `η = φ¹` + set η : (Fin 2 → ℝ) → ℝ := fun y => φ y 0 with hηdef + have hη : LipPer η := ⟨⟨C, hφi 0⟩, fun x k => by simp only [hηdef]; rw [hper x k]⟩ + obtain ⟨ζ, hζ⟩ := lemma4_exists ⟨A 0, hp⟩ thm1_disk_isCompact thm1_disk_convex hp hη + obtain ⟨hae, hsign⟩ := lemma4 ⟨A 0, hp⟩ thm1_disk_isCompact thm1_disk_convex hp hη hζ + obtain ⟨⟨⟨Cζ, hζL⟩, hζper⟩, hζK⟩ := hζ.1 + -- `w = A¹ · x + ζ`: `Dw = A¹ + Dζ` and `Du¹ = A¹ + Dφ¹` almost everywhere + have hdζ : ∀ᵐ x ∂(volume.restrict unitSquare), DifferentiableAt ℝ ζ x := + ae_restrict_of_ae hζL.ae_differentiableAt + have hdη : ∀ᵐ x ∂(volume.restrict unitSquare), DifferentiableAt ℝ η x := + ae_restrict_of_ae (hφi 0).ae_differentiableAt + have hrow0 : ∀ x, (A + jacobian φ x) 0 = A 0 + sgrad η x := fun x => rfl + -- `Dw ∈ 𝒵 (Du¹)`, so Lemma 3 gives `L (Du) ≥ det (Dw, Du²) + Dw · (Du¹ − Dw)` + have hpt : ∀ᵐ x ∂(volume.restrict unitSquare), + rowG (A 0 + sgrad ζ x) ((A + jacobian φ x) 0) ((A + jacobian φ x) 1) ≤ + integrandL (A + jacobian φ x) := by + filter_upwards [hae, hdζ, hdη, hζK] with x hx hxζ hxη hxK + rw [thm1_sgrad_dotProduct_add _ hxζ, thm1_sgrad_dotProduct_add _ hxη] at hx + apply rowG_le_integrandL + rcases hx with h | h + · -- `Dw = Du¹`, and `|Dw| ≤ 1` + rw [hrow0, ← h, rowZ, ite_eq_left (show euclidNorm (A 0 + sgrad ζ x) ≤ 1 from hxK)] + exact Set.mem_union_right _ (Set.mem_singleton _) + · -- `Dw ∈ ∂K`, so `|Dw| = 1` + exact Set.mem_union_left _ (thm1_mem_unitCircle_of_mem_frontier h) + -- the determinant is a null Lagrangian: `∫_Q det (Dw, Du²) = det A`, with `ψ = (ζ, φ²)` + set ψ : (Fin 2 → ℝ) → Fin 2 → ℝ := fun y => ![ζ y, φ y 1] with hψdef + have hψL : LipschitzWith (max Cζ C) ψ := thm1_lipschitzWith_vec2 hζL (hφi 1) + have hψper : ∀ (x : Fin 2 → ℝ) (k : Fin 2 → ℤ), ψ (x + fun i => (k i : ℝ)) = ψ x := + fun x k => by simp only [hψdef]; rw [hζper x k, hper x k] + have hψrow : ∀ x, (A + CalculusOfVariations.grad ψ x).det = + det2 (A 0 + sgrad ζ x) ((A + jacobian φ x) 1) := fun x => by + rw [det_eq_det2] + rfl + have hdet : ∫ x in unitSquare, det2 (A 0 + sgrad ζ x) ((A + jacobian φ x) 1) = A.det := + calc ∫ x in unitSquare, det2 (A 0 + sgrad ζ x) ((A + jacobian φ x) 1) + = ∫ x in CalculusOfVariations.unitCube 2, (A + CalculusOfVariations.grad ψ x).det := + integral_congr_ae (Filter.Eventually.of_forall fun x => (hψrow x).symm) + _ = A.det := setIntegral_unitCube_det_add_grad hψL hψper A + have hI1 : Integrable (fun x => det2 (A 0 + sgrad ζ x) ((A + jacobian φ x) 1)) + (volume.restrict unitSquare) := + (thm1_integrableOn (f := Matrix.det) (continuous_id.matrix_det) A hψL).congr + (Filter.Eventually.of_forall hψrow) + -- `Dw · (Du¹ − Dw)` is a continuous function of `A' + Dψ'`, `ψ' = (ζ, φ¹)`, `A' = (A¹, A¹)` + set ψ' : (Fin 2 → ℝ) → Fin 2 → ℝ := fun y => ![ζ y, φ y 0] with hψ'def + set A' : Matrix (Fin 2) (Fin 2) ℝ := Matrix.of ![A 0, A 0] with hA'def + have hψ'row : ∀ x, (A' + CalculusOfVariations.grad ψ' x) 0 ⬝ᵥ + ((A' + CalculusOfVariations.grad ψ' x) 1 - (A' + CalculusOfVariations.grad ψ' x) 0) = + (A 0 + sgrad ζ x) ⬝ᵥ ((A + jacobian φ x) 0 - (A 0 + sgrad ζ x)) := fun x => by + have r0 : (A' + CalculusOfVariations.grad ψ' x) 0 = A 0 + sgrad ζ x := by + ext j; simp [hψ'def, hA'def, CalculusOfVariations.grad, sgrad] + have r1 : (A' + CalculusOfVariations.grad ψ' x) 1 = (A + jacobian φ x) 0 := by + ext j; simp [hψ'def, hA'def, CalculusOfVariations.grad, jacobian] + rw [r0, r1] + have hI2 : Integrable (fun x => (A 0 + sgrad ζ x) ⬝ᵥ ((A + jacobian φ x) 0 - (A 0 + sgrad ζ x))) + (volume.restrict unitSquare) := by + have hc : Continuous fun B : Matrix (Fin 2) (Fin 2) ℝ => B 0 ⬝ᵥ (B 1 - B 0) := by + have := thm1_continuous_entry + simp only [dotProduct, Fin.sum_univ_two, Pi.sub_apply] + fun_prop + exact (thm1_integrableOn hc A' (thm1_lipschitzWith_vec2 hζL (hφi 0))).congr + (Filter.Eventually.of_forall hψ'row) + -- Lemma 4: `∫_Q Dw · (Du¹ − Dw) ≥ 0` + have hsign' : 0 ≤ ∫ x in unitSquare, + (A 0 + sgrad ζ x) ⬝ᵥ ((A + jacobian φ x) 0 - (A 0 + sgrad ζ x)) := by + refine hsign.trans_eq (integral_congr_ae ?_) + filter_upwards [hdζ, hdη] with x hxζ hxη + rw [thm1_sgrad_dotProduct_add _ hxζ, thm1_sgrad_dotProduct_add _ hxη] + rfl + calc A.det = A.det + 0 := (add_zero _).symm + _ ≤ (∫ x in unitSquare, det2 (A 0 + sgrad ζ x) ((A + jacobian φ x) 1)) + + ∫ x in unitSquare, (A 0 + sgrad ζ x) ⬝ᵥ ((A + jacobian φ x) 0 - (A 0 + sgrad ζ x)) := by + rw [hdet]; exact add_le_add le_rfl hsign' + _ = ∫ x in unitSquare, + rowG (A 0 + sgrad ζ x) ((A + jacobian φ x) 0) ((A + jacobian φ x) 1) := + (integral_add hI1 hI2).symm + _ ≤ ∫ x in unitSquare, integrandL (A + jacobian φ x) := + integral_mono_ae (hI1.add hI2) hIL hpt + · -- `|A| > 1`: `L ≥ F` and `F` is convex: `∫_Q L (Du) ≥ ∫_Q F (Du) ≥ F (A) = L (A)` + have hLA : integrandL A = rowF A := by rw [integrandL, ite_eq_right hA, rowF_eq] + have hIF : IntegrableOn (fun x => rowF (A + jacobian φ x)) unitSquare := by + have hc : Continuous rowF := by + rw [show rowF = fun B => 2 * ‖conformalPart B‖ - 1 from funext rowF_eq] + have := thm1_continuous_conformalPart + fun_prop + exact thm1_integrableOn hc A hφ + rw [hLA] + calc rowF A ≤ ∫ x in unitSquare, rowF (A + jacobian φ x) := by + -- `F = sup_{|z| = 1} G_z`, the `G_z` affine: `G_z (A) = ∫_Q G_z (Du) ≤ ∫_Q F (Du)` + refine csSup_le ⟨_, ![1, 0], by simp [unitCircle, euclidNorm_eq], rfl⟩ ?_ + rintro _ ⟨z, hz, rfl⟩ + calc rowG z (A 0) (A 1) + = ∫ x in unitSquare, rowG z ((A + jacobian φ x) 0) ((A + jacobian φ x) 1) := + (thm1_integral_rowG A hφ hper z).symm + _ ≤ ∫ x in unitSquare, rowF (A + jacobian φ x) := by + refine integral_mono ?_ hIF fun x => thm1_rowG_le_rowF hz _ + have hc : Continuous fun B : Matrix (Fin 2) (Fin 2) ℝ => rowG z (B 0) (B 1) := by + have := thm1_continuous_entry + simp only [rowG, det2, dotProduct, Fin.sum_univ_two, Pi.sub_apply] + fun_prop + exact thm1_integrableOn hc A hφ + _ ≤ ∫ x in unitSquare, integrandL (A + jacobian φ x) := + integral_mono hIF hIL fun x => rowF_le_integrandL _ + +/-- A `C^∞` `ℤ²`-periodic map `ℝ² → ℝ²` is Lipschitz: its derivative is continuous and periodic, +hence bounded (by its bound on the compact `[0, 1]²`), and `ℝ²` is convex. -/ +theorem exists_lipschitzWith_of_contDiff_of_isPeriodic {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} + (hφ : ContDiff ℝ ∞ φ) (hper : IsPeriodic φ) : ∃ C : NNReal, LipschitzWith C φ := by + have hd : Differentiable ℝ φ := hφ.differentiable (by simp) + have hc : Continuous (fderiv ℝ φ) := hφ.continuous_fderiv (by simp) + -- the derivative is periodic + have hpf : ∀ (x : Fin 2 → ℝ) (k : Fin 2 → ℤ), + fderiv ℝ φ (x + fun i => (k i : ℝ)) = fderiv ℝ φ x := by + intro x k + rw [← fderiv_comp_add_right] + congr 1 + funext y + exact hper y k + -- and bounded on the compact `[0, 1]²`, hence everywhere + obtain ⟨M, hM⟩ := (isCompact_univ_pi fun _ => + isCompact_Icc (a := (0:ℝ)) (b := 1)).exists_bound_of_continuousOn hc.continuousOn + refine ⟨M.toNNReal, lipschitzWith_of_nnNorm_fderiv_le hd fun x => ?_⟩ + have hx : (x + fun i => ((-⌊x i⌋ : ℤ) : ℝ)) ∈ Set.pi Set.univ fun _ => Set.Icc (0:ℝ) 1 := by + intro i _ + simp only [Pi.add_apply, Int.cast_neg] + constructor + · linarith [Int.floor_le (x i)] + · linarith [Int.lt_floor_add_one (x i)] + rw [← hpf x (fun i => -⌊x i⌋), ← NNReal.coe_le_coe, coe_nnNorm] + exact (hM _ hx).trans (Real.le_coe_toNNReal M) + +/-- **Theorem 1** (`thm:L-quasiconvexity`). Let `Q = ℝ² / ℤ²`, with `|Q| = 1`. For all +`A ∈ ℝ^{2×2}` and all `φ ∈ C^∞_per (Q; ℝ²)`, `∫_Q [L (A + Dφ) − L (A)] dx ≥ 0`. -/ +theorem theorem1 (A : Matrix (Fin 2) (Fin 2) ℝ) {φ : (Fin 2 → ℝ) → Fin 2 → ℝ} + (hφ : ContDiff ℝ ∞ φ) (hper : IsPeriodic φ) : + 0 ≤ ∫ x in unitSquare, (integrandL (A + jacobian φ x) - integrandL A) := by + obtain ⟨C, hC⟩ := exists_lipschitzWith_of_contDiff_of_isPeriodic hφ hper + exact theorem1_lipschitz A hC hper + +end Agazzi diff --git a/LeanPool/IwaniecBeurlingAhlfors/BanachProbability/Defs.lean b/LeanPool/IwaniecBeurlingAhlfors/BanachProbability/Defs.lean new file mode 100644 index 0000000000..d19efed2e5 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/BanachProbability/Defs.lean @@ -0,0 +1,27 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.SpecialFunctions.Pow.Real + +/-! # Burkholder's function on normed groups -/ + +@[expose] public section + +namespace BanachProbability + +/-- **Burkholder's function** (Burkholder 1988, (1.6)): +`u_p (x, y) = α_p (|y| − (p* − 1) |x|) (|x| + |y|)^{p−1}`, `α_p = p (1 − 1/p*)^{p−1}`, +`p* = max (p, p / (p − 1))`; `x` is the position of the dominating martingale and `y` that of the +subordinate one. -/ +noncomputable def Burkholder.burkholderFun {H : Type*} [NormedAddCommGroup H] (p : ℝ) (x y : H) : + ℝ := + p * (1 - 1 / max p (p / (p - 1))) ^ (p - 1) * (‖y‖ - (max p (p / (p - 1)) - 1) * ‖x‖) * + (‖x‖ + ‖y‖) ^ (p - 1) + +end BanachProbability diff --git a/LeanPool/IwaniecBeurlingAhlfors/BanachProbability/Martingale/Burkholder/Function.lean b/LeanPool/IwaniecBeurlingAhlfors/BanachProbability/Martingale/Burkholder/Function.lean new file mode 100644 index 0000000000..03c08f73dc --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/BanachProbability/Martingale/Burkholder/Function.lean @@ -0,0 +1,816 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.BanachProbability.Defs +public import Mathlib.Analysis.InnerProductSpace.Calculus +public import Mathlib.Analysis.InnerProductSpace.PiL2 +public import Mathlib.Analysis.InnerProductSpace.ProdL2 +public import Mathlib.Analysis.Calculus.Deriv.MeanValue +public import Mathlib.Analysis.Convex.Deriv +public import Mathlib.Analysis.Convex.SpecificFunctions.Basic +public import Mathlib.Analysis.SpecialFunctions.Log.Deriv +public import Mathlib.Analysis.SpecialFunctions.Log.NegMulLog +public import Mathlib.Analysis.SpecialFunctions.Pow.Deriv +public import Mathlib.Analysis.SpecialFunctions.Sqrt +public import Mathlib.Analysis.SpecificLimits.Basic + +/-! +# Burkholder's function + +D. L. Burkholder, *Sharp inequalities for martingales and stochastic integrals*, Colloque Paul +Lévy sur les processus stochastiques, Astérisque 157–158 (1988), 75–94: the function (1.6), its +majorization (1.10), and its concavity along lines, Remark 1.2 (1.17), by the arguments of the paper +(§1). The paper states Remark 1.2 without proof; it is completed from the concavity of `G` in the +paper's proof of (1.12), by (1.14), and the shift of its proof of (1.8) (steps 3 and 4 below). + +For `p > 1`, `p* = max (p, p / (p − 1))` and `x`, `y` in a normed group, Burkholder's function is +`u_p (x, y) = α_p (|y| − (p* − 1) |x|) (|x| + |y|)^{p−1}`, `α_p = p (1 − 1/p*)^{p−1}` +(`burkholderFun`), where, in Burkholder's notation, `x` is the position of the dominating martingale +and `y` that of the subordinate one. `burkholderU` is the same function of the norms, with the +subordinate position first: `u_p (x, y) = U (|y|, |x|)` (`burkholderFun_eq_burkholderU`). + +## Main results + +* `burkholderU_ge`, `burkholderFun_ge`: `u_p ≥ v_p`, `v_p (x, y) = |y|^p − (p* − 1)^p |x|^p` + (Burkholder's (1.10)). +* `burkholderU_concaveOn_line`, `burkholderFun_concaveOn_line`: in a real inner product space, if + `|k| ≤ |h|`, then `t ↦ u_p (x + t h, y + t k)` is concave on `ℝ` (Burkholder's Remark 1.2, + (1.17)). +* `burkholderFun_of_two_le`: for `p ≥ 2`, `p* = p` and + `u_p (x, y) = p (1 − 1/p)^{p−1} (|y| − (p − 1) |x|) (|x| + |y|)^{p−1}`. + +## The proofs (Burkholder 1988, §1), in the notation of `burkholderU` + +1. (1.11) `φ (p) = (p − 1)^{p−1} / p^{p−2}` is `≤ 1` for `1 < p ≤ 2` and `≥ 1` for `p ≥ 2` + (`phi_le_one`, `one_le_phi`): `log φ` vanishes at `1` and `2`, is convex on `[1, 2]` and concave + on `[2, ∞)` (its second derivative is `(2 − p) / (p² (p − 1))`), and tends to `∞` (it is at + least `log p − 1`). +2. (1.10) `V ≤ U` (`burkholderU_ge`): by homogeneity, on `|x| + |y| = 1` and with `t` the norm + of the dominating martingale's position, `U − V = F (t) = α_p (1 − p* t) − (1 − t)^p + + (p* − 1)^p t^p` (`bF`). If `p = 2`, `F ≡ 0`. If `p > 2`, `F` is concave on `[0, s₀]` and convex + on `[s₀, 1]` for some `s₀ ≤ 1/p*`, `F (1/p*) = F' (1/p*) = 0`, and `F (0) = α_p − 1 ≥ 0` by + (1.11). If `p < 2`, `F` is convex on `[0, s₀]` for some `s₀ ≥ 1/p*` and concave on `[s₀, 1]`, + and `F (1) ≥ 0` by (1.11) (`bF_nonneg`). Burkholder asserts that `s₀` exists; here it is + `1/(1 + (p* − 1)^{p/(p−2)})`, read off from `F''`. +3. The concavity of `G` in the proof of (1.12), by (1.14): if `x + t h` and `y + t k` never vanish, + `G (t) = U (x + t h, y + t k)` is twice differentiable. + For `p ≥ 2`, `U = α_p ψ (|x|, |y|)` with `ψ (s, r) = (s − (p − 1) r)(s + r)^{p−1}` (`psi`, not + to be confused with Burkholder's gradient `ψ`), and the + second derivative of `t ↦ ψ (S, R)`, `S = |x + t h|`, `R = |y + t k|`, is + `p (S + R)^{p−3} (−(p − 1)(p − 2) R (S' + R')² − (p − 2)(S + R)² S'' + − (p − 1)(S + R)(|k|² − |h|²))` (`psi_hasDerivAt_two`): its three terms are Burkholder's + `−C`, `−B`, `−A` of (1.14), each `≤ 0` (`psi_two_sign`). For `p ≤ 2`, `(p − 1) U` is `−α_p ψ` + with the arguments exchanged. So `G` is concave (`psi_line_of_ne`). +4. Remark 1.2 (`burkholderU_concaveOn_line`) states the concavity on every line without proof. It + follows from step 3 by the device of the proof of (1.8): in `H ⊕ ℝ` the lines through `(x, δ)` + and `(y, δ)` with directions `(h, 0)` and `(k, 0)` never vanish for `δ ≠ 0`; let `δ → 0`. +-/ + +@[expose] public section + +open Filter Set +open scoped Topology InnerProductSpace RealInnerProductSpace + +namespace BanachProbability.Burkholder + +/-! ### The function `ψ (s, r) = (s − (p − 1) r) (s + r)^{p−1}` and its derivatives -/ + +/-- `ψ (s, r) = (s − (p − 1) r) (s + r)^{p−1}`; Burkholder's function in the argument order of +`burkholderU` (subordinate first) is `α ψ (|x|, |y|)` for `p ≥ 2` and `−α (p − 1)⁻¹ ψ (|y|, |x|)` +for `p ≤ 2`. Not Burkholder's `ψ`, which is a gradient. -/ +private noncomputable def psi (p s r : ℝ) : ℝ := (s - (p - 1) * r) * (s + r) ^ (p - 1) + +/-- `∂ψ/∂s = p (s + r)^{p−2} (s − (p − 2) r)`. -/ +private noncomputable def psiS (p s r : ℝ) : ℝ := p * (s + r) ^ (p - 2) * (s - (p - 2) * r) + +/-- `∂ψ/∂r = −p (p − 1) r (s + r)^{p−2}`. -/ +private noncomputable def psiR (p s r : ℝ) : ℝ := -(p * (p - 1)) * r * (s + r) ^ (p - 2) + +/-- The (one-sided) derivative of `ψ` along a curve `(S, R)`: `ψ_s S' + ψ_r R'`. -/ +private theorem psi_hasDerivWithinAt {p : ℝ} {S R : ℝ → ℝ} {S1 R1 t : ℝ} {s : Set ℝ} + (hS : HasDerivWithinAt S S1 s t) (hR : HasDerivWithinAt R R1 s t) (hpos : 0 < S t + R t) : + HasDerivWithinAt (fun u => psi p (S u) (R u)) + (psiS p (S t) (R t) * S1 + psiR p (S t) (R t) * R1) s t := by + have h := (hS.sub (hR.const_mul (p - 1))).mul + ((hS.add hR).rpow_const (p := p - 1) (Or.inl hpos.ne')) + have e : (S t + R t) ^ (p - 1) = (S t + R t) ^ (p - 2) * (S t + R t) := by + rw [show p - 1 = p - 2 + 1 by ring, Real.rpow_add_one hpos.ne'] + have e2 : p - 1 - 1 = p - 2 := by ring + unfold psi psiS psiR + convert h using 1 + simp only [Pi.add_apply, Pi.sub_apply] + rw [e2, e]; ring + +private theorem psi_hasDerivAt {p : ℝ} {S R : ℝ → ℝ} {S1 R1 t : ℝ} + (hS : HasDerivAt S S1 t) (hR : HasDerivAt R R1 t) (hpos : 0 < S t + R t) : + HasDerivAt (fun u => psi p (S u) (R u)) + (psiS p (S t) (R t) * S1 + psiR p (S t) (R t) * R1) t := by + rw [← hasDerivWithinAt_univ] at * + exact psi_hasDerivWithinAt hS hR hpos + +/-- The second derivative of `ψ` along a curve `(S, R)`: +`p (S + R)^{p−3} (−(p − 1)(p − 2) R (S' + R')² − (p − 2)(S + R)² S'' − (p − 1)(S + R)(K − H))` +with `H = S'² + S S''`, `K = R'² + R R''`. -/ +private theorem psi_hasDerivAt_two {p : ℝ} {S R S1 R1 : ℝ → ℝ} {S2 R2 t : ℝ} + (hS : HasDerivAt S (S1 t) t) (hR : HasDerivAt R (R1 t) t) + (hS1 : HasDerivAt S1 S2 t) (hR1 : HasDerivAt R1 R2 t) (hpos : 0 < S t + R t) : + HasDerivAt (fun u => psiS p (S u) (R u) * S1 u + psiR p (S u) (R u) * R1 u) + (p * (S t + R t) ^ (p - 3) * (-(p - 1) * (p - 2) * R t * (S1 t + R1 t) ^ 2 + - (p - 2) * (S t + R t) ^ 2 * S2 + - (p - 1) * (S t + R t) * ((R1 t ^ 2 + R t * R2) - (S1 t ^ 2 + S t * S2)))) t := by + have hP := (hS.add hR).rpow_const (p := p - 2) (Or.inl hpos.ne') + have h1 := ((hP.const_mul p).mul (hS.sub (hR.const_mul (p - 2)))).mul hS1 + have h2 := (((hR.const_mul (-(p * (p - 1)))).mul hP)).mul hR1 + have h := h1.add h2 + have e : (S t + R t) ^ (p - 2) = (S t + R t) ^ (p - 3) * (S t + R t) := by + rw [show p - 2 = p - 3 + 1 by ring, Real.rpow_add_one hpos.ne'] + have e2 : p - 2 - 1 = p - 3 := by ring + unfold psiS psiR + convert h using 1 + simp only [Pi.add_apply, Pi.sub_apply, Pi.mul_apply] + rw [e2, e]; ring + +/-- The sign of the second derivative of `ψ` along a curve (`psi_hasDerivAt_two`): with +`S, R ≥ 0`, `S'' ≥ 0`, `H = S'² + S S''` and `K = R'² + R R''`, it is `≤ 0` if `p ≥ 2` and `H ≤ K`, +and `≥ 0` if `p ≤ 2` and `K ≤ H`. -/ +private theorem psi_two_sign {p S R S1 R1 S2 R2 : ℝ} (hp : 1 < p) (hS : 0 ≤ S) (hR : 0 ≤ R) + (hS2 : 0 ≤ S2) : + ((2 ≤ p ∧ S1 ^ 2 + S * S2 ≤ R1 ^ 2 + R * R2) → + p * (S + R) ^ (p - 3) * (-(p - 1) * (p - 2) * R * (S1 + R1) ^ 2 + - (p - 2) * (S + R) ^ 2 * S2 - (p - 1) * (S + R) * ((R1 ^ 2 + R * R2) - (S1 ^ 2 + S * S2))) + ≤ 0) ∧ + ((p ≤ 2 ∧ R1 ^ 2 + R * R2 ≤ S1 ^ 2 + S * S2) → + 0 ≤ p * (S + R) ^ (p - 3) * (-(p - 1) * (p - 2) * R * (S1 + R1) ^ 2 + - (p - 2) * (S + R) ^ 2 * S2 - (p - 1) * (S + R) * ((R1 ^ 2 + R * R2) - (S1 ^ 2 + S * S2)))) + := by + have hp1 : 0 ≤ p - 1 := by linarith + have hW : 0 ≤ S + R := add_nonneg hS hR + have hpow : 0 ≤ p * (S + R) ^ (p - 3) := mul_nonneg (by linarith) (Real.rpow_nonneg hW _) + refine ⟨fun ⟨hp2, hHK⟩ => mul_nonpos_of_nonneg_of_nonpos hpow ?_, + fun ⟨hp2, hHK⟩ => mul_nonneg hpow ?_⟩ + · have h2 : 0 ≤ p - 2 := by linarith + have := mul_nonneg (mul_nonneg (mul_nonneg hp1 h2) hR) (sq_nonneg (S1 + R1)) + have := mul_nonneg (mul_nonneg h2 (sq_nonneg (S + R))) hS2 + have := mul_nonneg (mul_nonneg hp1 hW) (sub_nonneg.2 hHK) + nlinarith + · have h2 : 0 ≤ 2 - p := by linarith + have := mul_nonneg (mul_nonneg (mul_nonneg hp1 h2) hR) (sq_nonneg (S1 + R1)) + have := mul_nonneg (mul_nonneg h2 (sq_nonneg (S + R))) hS2 + have := mul_nonneg (mul_nonneg hp1 hW) (sub_nonneg.2 hHK) + nlinarith + +/-! ### The concavity property of `ψ` along lines in a Hilbert space -/ + +section Hilbert + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H] + +/-- `S' (t) = ⟨x + t h, h⟩ / |x + t h|`, the derivative of `S (t) = |x + t h|` where +`x + t h ≠ 0`. -/ +private noncomputable def lineD (x h : H) (t : ℝ) : ℝ := ⟪x + t • h, h⟫ / ‖x + t • h‖ + +/-- `S'' (t) = (|h|² − S' (t)²) / S (t)`. -/ +private noncomputable def lineD2 (x h : H) (t : ℝ) : ℝ := + (‖h‖ ^ 2 - lineD x h t ^ 2) / ‖x + t • h‖ + +/-- `S (t) = |x + t h|` is smooth where `x + t h ≠ 0` (and constant if `h = 0`), with `S'' ≥ 0` and +`S'² + S S'' = |h|²`. -/ +private theorem line_facts (x h : H) {t : ℝ} (ht : x + t • h ≠ 0 ∨ h = 0) : + HasDerivAt (fun u : ℝ => ‖x + u • h‖) (lineD x h t) t ∧ + HasDerivAt (lineD x h) (lineD2 x h t) t ∧ 0 ≤ lineD2 x h t ∧ + lineD x h t ^ 2 + ‖x + t • h‖ * lineD2 x h t = ‖h‖ ^ 2 := by + rcases ht with ht | rfl + · have hN : 0 < ‖x + t • h‖ := norm_pos_iff.2 ht + have hlin : HasDerivAt (fun u : ℝ => x + u • h) h t := by + simpa using ((hasDerivAt_id' t).smul_const h).const_add x + have dS : HasDerivAt (fun u : ℝ => ‖x + u • h‖) (lineD x h t) t := by + have h3 := hlin.norm_sq.sqrt (pow_pos hN 2).ne' + simp only [Real.sqrt_sq_eq_abs, abs_norm] at h3 + convert h3 using 1 + unfold lineD; field_simp + have dN : HasDerivAt (fun u : ℝ => ⟪x + u • h, h⟫) (‖h‖ ^ 2) t := by + have e : ∀ u : ℝ, ⟪x + u • h, h⟫ = ⟪x, h⟫ + u * ‖h‖ ^ 2 := fun u => by + rw [inner_add_left, real_inner_smul_left, real_inner_self_eq_norm_sq] + simp only [e] + simpa using ((hasDerivAt_id' t).mul_const (‖h‖ ^ 2)).const_add ⟪x, h⟫ + have hcs : lineD x h t ^ 2 ≤ ‖h‖ ^ 2 := by + unfold lineD + rw [div_pow, div_le_iff₀ (by positivity)] + have h1 := abs_real_inner_le_norm (x + t • h) h + have h2 : ⟪x + t • h, h⟫ ^ 2 ≤ (‖x + t • h‖ * ‖h‖) ^ 2 := by + rw [← sq_abs]; exact pow_le_pow_left₀ (abs_nonneg _) h1 2 + nlinarith + refine ⟨dS, ?_, div_nonneg (sub_nonneg.2 hcs) hN.le, ?_⟩ + · convert dN.div dS hN.ne' using 1 + · funext u; simp [lineD] + · unfold lineD2 lineD + field_simp + · unfold lineD2; field_simp; ring + · have e1 : (fun u : ℝ => ‖x + u • (0 : H)‖) = fun _ => ‖x‖ := by funext u; simp + have e2 : lineD x (0 : H) = fun _ => 0 := by funext u; simp [lineD] + have e3 : lineD2 x (0 : H) t = 0 := by simp [lineD2, lineD] + rw [e1, e2, e3] + exact ⟨hasDerivAt_const _ _, hasDerivAt_const _ _, le_rfl, by simp⟩ + +/-- `G (t) = ψ (|x + t h|, |y + t k|)`, `ψ` along the line through `(x, y)` with direction +`(h, k)`. -/ +private noncomputable def psiLine (p : ℝ) (x y h k : H) (t : ℝ) : ℝ := + psi p ‖x + t • h‖ ‖y + t • k‖ + +/-- `G' (t) = ψ_s S' + ψ_r R'`, the derivative of `G` where `x + t h ≠ 0` and `y + t k ≠ 0`. -/ +private noncomputable def psiLineD (p : ℝ) (x y h k : H) (t : ℝ) : ℝ := + psiS p ‖x + t • h‖ ‖y + t • k‖ * lineD x h t + psiR p ‖x + t • h‖ ‖y + t • k‖ * lineD y k t + +/-- **(1.14)** at one point: where `x + t h ≠ 0` (or `h = 0`) and `y + t k ≠ 0` (or `k = 0`), `G` +is twice differentiable, with `G'' ≤ 0` if `p ≥ 2`, `|h| ≤ |k|`, and `G'' ≥ 0` if `p ≤ 2`, +`|k| ≤ |h|` (`psi_hasDerivAt_two`, `psi_two_sign`, with `H = |h|²`, `K = |k|²`). -/ +private theorem psi_line_smooth {p : ℝ} (hp : 1 < p) (x y h k : H) {t : ℝ} + (hx : x + t • h ≠ 0 ∨ h = 0) (hy : y + t • k ≠ 0 ∨ k = 0) + (hW : 0 < ‖x + t • h‖ + ‖y + t • k‖) : + HasDerivAt (psiLine p x y h k) (psiLineD p x y h k t) t ∧ + ∃ c, HasDerivAt (psiLineD p x y h k) c t ∧ ((2 ≤ p ∧ ‖h‖ ≤ ‖k‖) → c ≤ 0) ∧ + ((p ≤ 2 ∧ ‖k‖ ≤ ‖h‖) → 0 ≤ c) := by + obtain ⟨dS, dS1, hS2, hH⟩ := line_facts x h hx + obtain ⟨dR, dR1, -, hK⟩ := line_facts y k hy + have hsign := psi_two_sign hp (norm_nonneg (x + t • h)) (norm_nonneg (y + t • k)) hS2 + (S1 := lineD x h t) (R1 := lineD y k t) (R2 := lineD2 y k t) + refine ⟨psi_hasDerivAt dS dR hW, _, psi_hasDerivAt_two (p := p) dS dR dS1 dR1 hW, + fun ⟨hp2, hhk⟩ => hsign.1 ⟨hp2, ?_⟩, fun ⟨hp2, hhk⟩ => hsign.2 ⟨hp2, ?_⟩⟩ + · rw [hH, hK]; exact pow_le_pow_left₀ (norm_nonneg _) hhk 2 + · rw [hH, hK]; exact pow_le_pow_left₀ (norm_nonneg _) hhk 2 + +/-- **The concavity of `G`** in the proof of (1.12), by (1.14): if `x + t h ≠ 0` and `y + t k ≠ 0` +for every `t`, `G (t) = ψ (|x + t h|, |y + t k|)` is twice differentiable on `ℝ` +(`psi_line_smooth`), with `G'' ≤ 0` if `p ≥ 2` and `|h| ≤ |k|` and `G'' ≥ 0` if `p ≤ 2` and +`|k| ≤ |h|`: `G` is concave, resp. convex, on `ℝ`. -/ +private theorem psi_line_of_ne {p : ℝ} (hp : 1 < p) (x y h k : H) + (hx : ∀ t : ℝ, x + t • h ≠ 0) (hy : ∀ t : ℝ, y + t • k ≠ 0) : + ((2 ≤ p ∧ ‖h‖ ≤ ‖k‖) → ConcaveOn ℝ univ (psiLine p x y h k)) ∧ + ((p ≤ 2 ∧ ‖k‖ ≤ ‖h‖) → ConvexOn ℝ univ (psiLine p x y h k)) := by + have hcont : Continuous (psiLine p x y h k) := by + have h1 : Continuous fun t : ℝ => ‖x + t • h‖ := by fun_prop + have h2 : Continuous fun t : ℝ => ‖y + t • k‖ := by fun_prop + unfold psiLine psi + exact (h1.sub (h2.const_mul _)).mul ((h1.add h2).rpow_const fun _ => Or.inr (by linarith)) + have hs := fun t : ℝ => psi_line_smooth hp x y h k (Or.inl (hx t)) (Or.inl (hy t)) + (add_pos_of_pos_of_nonneg (norm_pos_iff.2 (hx t)) (norm_nonneg _)) + refine ⟨fun hA => ?_, fun hB => ?_⟩ + · refine concaveOn_of_hasDerivWithinAt2_nonpos (f' := psiLineD p x y h k) + (f'' := deriv (psiLineD p x y h k)) convex_univ hcont.continuousOn + (fun t _ => (hs t).1.hasDerivWithinAt) (fun t _ => ?_) (fun t _ => ?_) + · obtain ⟨c, hc, -⟩ := (hs t).2 + rw [hc.deriv]; exact hc.hasDerivWithinAt + · obtain ⟨c, hc, hc0, -⟩ := (hs t).2 + rw [hc.deriv]; exact hc0 hA + · refine convexOn_of_hasDerivWithinAt2_nonneg (f' := psiLineD p x y h k) + (f'' := deriv (psiLineD p x y h k)) convex_univ hcont.continuousOn + (fun t _ => (hs t).1.hasDerivWithinAt) (fun t _ => ?_) (fun t _ => ?_) + · obtain ⟨c, hc, -⟩ := (hs t).2 + rw [hc.deriv]; exact hc.hasDerivWithinAt + · obtain ⟨c, hc, -, hc0⟩ := (hs t).2 + rw [hc.deriv]; exact hc0 hB + +end Hilbert + +/-! ### Burkholder's function (1.6) -/ + +/-- **Burkholder's function** (Burkholder 1988, (1.6)), as a function of `s = |x|`, `r = |y|`: +`U (x, y) = p (1 − 1/p*)^{p−1} (|x| − (p* − 1)|y|)(|x| + |y|)^{p−1}`, `p* = max (p, p/(p − 1))`. +Here `x` is the position of the subordinate martingale and `y` that of the dominating one. -/ +noncomputable def burkholderU (p s r : ℝ) : ℝ := + p * (1 - 1 / max p (p / (p - 1))) ^ (p - 1) * (s - (max p (p / (p - 1)) - 1) * r) * + (s + r) ^ (p - 1) + +/-- For `p ≥ 2`, `p* = p`. -/ +theorem max_div_sub_one_eq_self {p : ℝ} (hp : 2 ≤ p) : max p (p / (p - 1)) = p := + max_eq_left (by rw [div_le_iff₀ (by linarith)]; nlinarith) + +private theorem max_eq_B {p : ℝ} (hp1 : 1 < p) (hp : p ≤ 2) : max p (p / (p - 1)) = p / (p - 1) := + max_eq_right (by rw [le_div_iff₀ (by linarith)]; nlinarith) + +private theorem U_eq_A {p : ℝ} (hp : 2 ≤ p) (s r : ℝ) : + burkholderU p s r = p * (1 - 1 / p) ^ (p - 1) * psi p s r := by + unfold burkholderU psi; rw [max_div_sub_one_eq_self hp]; ring + +private theorem U_eq_B {p : ℝ} (hp1 : 1 < p) (hp : p ≤ 2) (s r : ℝ) : + burkholderU p s r = -(p * (1 / p) ^ (p - 1) / (p - 1)) * psi p r s := by + unfold burkholderU psi; rw [max_eq_B hp1 hp] + have hp0 : p - 1 ≠ 0 := by linarith + have h1 : 1 - 1 / (p / (p - 1)) = 1 / p := by field_simp; ring + rw [h1, add_comm r s]; field_simp; ring + +/-! ### The elementary inequality (1.11) -/ + +/-- `log φ (p) = (p − 1) log (p − 1) − (p − 2) log p`, the logarithm of +`φ (p) = (p − 1)^{p−1} / p^{p−2}` (Burkholder's (1.11)); `log φ (1) = 0` (`0 · log 0 = 0`). -/ +private noncomputable def logPhi (p : ℝ) : ℝ := (p - 1) * Real.log (p - 1) - (p - 2) * Real.log p + +private theorem logPhi_hasDerivAt {p : ℝ} (hp : 1 < p) : + HasDerivAt logPhi (Real.log (p - 1) + 1 - (Real.log p + (p - 2) / p)) p := by + have h1 : HasDerivAt (fun x : ℝ => x - 1) 1 p := (hasDerivAt_id' p).sub_const 1 + have h2 : HasDerivAt (fun x : ℝ => x - 2) 1 p := (hasDerivAt_id' p).sub_const 2 + have hl1 := h1.log (by linarith : p - 1 ≠ 0) + have hl2 := Real.hasDerivAt_log (by linarith : p ≠ 0) + have h := (h1.mul hl1).sub (h2.mul hl2) + change HasDerivAt (fun x => (x - 1) * Real.log (x - 1) - (x - 2) * Real.log x) _ p + convert h using 1 + have : p - 1 ≠ 0 := by linarith + field_simp + +/-- `(log φ)'' (p) = 1/(p − 1) − 1/p − 2/p² = (2 − p) / (p² (p − 1))`. -/ +private theorem logPhi_deriv_hasDerivAt {p : ℝ} (hp : 1 < p) : + HasDerivAt (fun x => Real.log (x - 1) + 1 - (Real.log x + (x - 2) / x)) + ((2 - p) / (p ^ 2 * (p - 1))) p := by + have h1 : HasDerivAt (fun x : ℝ => x - 1) 1 p := (hasDerivAt_id' p).sub_const 1 + have hl1 := h1.log (by linarith : p - 1 ≠ 0) + have hl2 := Real.hasDerivAt_log (by linarith : p ≠ 0) + have hq := ((hasDerivAt_id' p).sub_const 2).div (hasDerivAt_id' p) (by linarith : p ≠ 0) + have h := (hl1.add_const 1).sub (hl2.add hq) + convert h using 1 + have : p - 1 ≠ 0 := by linarith + have : p ≠ 0 := by linarith + field_simp + ring + +private theorem logPhi_continuousOn : ContinuousOn logPhi (Ici 1) := by + have h1 : Continuous fun x : ℝ => (x - 1) * Real.log (x - 1) := + Real.continuous_mul_log.comp (continuous_id.sub continuous_const) + have h2 : ContinuousOn (fun x : ℝ => (x - 2) * Real.log x) (Ici 1) := + (continuous_id.sub continuous_const).continuousOn.mul (Real.continuousOn_log.mono + fun x hx => by simp only [mem_compl_iff, mem_singleton_iff]; linarith [mem_Ici.1 hx]) + exact h1.continuousOn.sub h2 + +private theorem logPhi_two : logPhi 2 = 0 := by norm_num [logPhi] + +/-- `log φ` is convex on `[1, 2]` and vanishes at both ends, so `log φ ≤ 0` there. -/ +private theorem logPhi_nonpos {p : ℝ} (hp1 : 1 ≤ p) (hp : p ≤ 2) : logPhi p ≤ 0 := by + have hconv : ConvexOn ℝ (Icc 1 2) logPhi := by + refine convexOn_of_hasDerivWithinAt2_nonneg + (f' := fun x => Real.log (x - 1) + 1 - (Real.log x + (x - 2) / x)) + (f'' := fun x => (2 - x) / (x ^ 2 * (x - 1))) (convex_Icc 1 2) + (logPhi_continuousOn.mono Icc_subset_Ici_self) (fun x hx => ?_) (fun x hx => ?_) + (fun x hx => ?_) <;> rw [interior_Icc] at hx + · exact (logPhi_hasDerivAt hx.1).hasDerivWithinAt + · exact (logPhi_deriv_hasDerivAt hx.1).hasDerivWithinAt + · exact div_nonneg (by linarith [hx.2]) (mul_nonneg (sq_nonneg _) (by linarith [hx.1])) + have h := hconv.le_on_segment (x := 1) (y := 2) ⟨le_rfl, by norm_num⟩ ⟨by norm_num, le_rfl⟩ + (by rw [segment_eq_Icc (by norm_num)]; exact ⟨hp1, hp⟩) + have e1 : logPhi 1 = 0 := by simp [logPhi] + rwa [e1, logPhi_two, max_self] at h + +/-- `log φ (p) ≥ log p − 1`, so `log φ → ∞`: `log φ (p) = log p − (p − 1) log (p / (p − 1))` and +`log (p / (p − 1)) ≤ 1 / (p − 1)`. -/ +private theorem logPhi_ge {p : ℝ} (hp : 1 < p) : Real.log p - 1 ≤ logPhi p := by + have hp1 : 0 < p - 1 := by linarith + have h := Real.log_le_sub_one_of_pos (div_pos (by linarith : (0 : ℝ) < p) hp1) + rw [Real.log_div (by linarith) hp1.ne'] at h + have h' : (p - 1) * (Real.log p - Real.log (p - 1)) ≤ 1 := + calc (p - 1) * (Real.log p - Real.log (p - 1)) ≤ (p - 1) * (p / (p - 1) - 1) := + mul_le_mul_of_nonneg_left h hp1.le + _ = 1 := by field_simp; ring + unfold logPhi + nlinarith [h'] + +/-- `log φ` is concave on `[2, ∞)`, vanishes at `2` and tends to `∞`, so `log φ ≥ 0` there. -/ +private theorem logPhi_nonneg {p : ℝ} (hp : 2 ≤ p) : 0 ≤ logPhi p := by + have hconc : ConcaveOn ℝ (Ici 2) logPhi := by + refine concaveOn_of_hasDerivWithinAt2_nonpos + (f' := fun x => Real.log (x - 1) + 1 - (Real.log x + (x - 2) / x)) + (f'' := fun x => (2 - x) / (x ^ 2 * (x - 1))) (convex_Ici 2) + (logPhi_continuousOn.mono (Ici_subset_Ici.2 (by norm_num))) (fun x hx => ?_) + (fun x hx => ?_) (fun x hx => ?_) <;> rw [interior_Ici] at hx <;> have hx' := mem_Ioi.1 hx + · exact (logPhi_hasDerivAt (by linarith)).hasDerivWithinAt + · exact (logPhi_deriv_hasDerivAt (by linarith)).hasDerivWithinAt + · exact div_nonpos_of_nonpos_of_nonneg (by linarith) + (mul_nonneg (sq_nonneg _) (by linarith)) + -- a point `p₂ ≥ p` with `log φ (p₂) ≥ 0` + set p₂ := max p (Real.exp 1) + have hp₂ : p ≤ p₂ := le_max_left _ _ + have h2 : 0 ≤ logPhi p₂ := by + have h := logPhi_ge (p := p₂) (by linarith) + have : 1 ≤ Real.log p₂ := by + rw [← Real.log_exp 1]; exact Real.log_le_log (Real.exp_pos 1) (le_max_right _ _) + linarith + have h := hconc.ge_on_segment (x := 2) (y := p₂) self_mem_Ici (mem_Ici.2 (hp.trans hp₂)) + (by rw [segment_eq_Icc (hp.trans hp₂)]; exact ⟨hp, hp₂⟩) + rw [logPhi_two] at h + exact (le_min le_rfl h2).trans h + +private theorem phi_eq_exp {p : ℝ} (hp : 1 < p) : + (p - 1) ^ (p - 1) / p ^ (p - 2) = Real.exp (logPhi p) := by + rw [Real.rpow_def_of_pos (by linarith), Real.rpow_def_of_pos (by linarith), ← Real.exp_sub, + logPhi] + ring_nf + +/-- **(1.11)**, `1 < p ≤ 2`: `(p − 1)^{p−1} / p^{p−2} ≤ 1`. -/ +private theorem phi_le_one {p : ℝ} (hp1 : 1 < p) (hp : p ≤ 2) : + (p - 1) ^ (p - 1) / p ^ (p - 2) ≤ 1 := by + rw [phi_eq_exp hp1, Real.exp_le_one_iff]; exact logPhi_nonpos hp1.le hp + +/-- **(1.11)**, `p ≥ 2`: `(p − 1)^{p−1} / p^{p−2} ≥ 1`. -/ +private theorem one_le_phi {p : ℝ} (hp : 2 ≤ p) : 1 ≤ (p - 1) ^ (p - 1) / p ^ (p - 2) := by + rw [phi_eq_exp (by linarith), Real.one_le_exp_iff]; exact logPhi_nonneg hp + +/-! ### The majorization `v ≤ u` (1.10) -/ + +/-- Burkholder's `F (t) = α_p (1 − P t) − (1 − t)^p + (P − 1)^p t^p`, `α_p = p (1 − 1/P)^{p−1}`: +for `P = p*`, `U − V` on `|x| + |y| = 1`, as a function of the norm `t` of the dominating +martingale's position. -/ +private noncomputable def bF (p P t : ℝ) : ℝ := + p * (1 - 1 / P) ^ (p - 1) * (1 - P * t) - (1 - t) ^ p + (P - 1) ^ p * t ^ p + +/-- `F'`. -/ +private noncomputable def bF1 (p P t : ℝ) : ℝ := + -(p * (1 - 1 / P) ^ (p - 1) * P) + p * (1 - t) ^ (p - 1) + p * (P - 1) ^ p * t ^ (p - 1) + +/-- `F''`. -/ +private noncomputable def bF2 (p P t : ℝ) : ℝ := + -(p * (p - 1) * (1 - t) ^ (p - 2)) + p * (p - 1) * (P - 1) ^ p * t ^ (p - 2) + +private theorem bF_hasDerivAt (p P : ℝ) {t : ℝ} (ht0 : 0 < t) (ht1 : t < 1) : + HasDerivAt (bF p P) (bF1 p P t) t ∧ HasDerivAt (bF1 p P) (bF2 p P t) t := by + have hl : HasDerivAt (fun u : ℝ => 1 - u) (-1) t := by + simpa using (hasDerivAt_id' t).const_sub 1 + have h1t : 1 - t ≠ 0 := by linarith + constructor + · have hA := (((hasDerivAt_id' t).const_mul P).const_sub 1).const_mul + (p * (1 - 1 / P) ^ (p - 1)) + have hB := hl.rpow_const (p := p) (Or.inl h1t) + have hC := (Real.hasDerivAt_rpow_const (p := p) (Or.inl ht0.ne')).const_mul ((P - 1) ^ p) + change HasDerivAt (fun u => p * (1 - 1 / P) ^ (p - 1) * (1 - P * u) - (1 - u) ^ p + + (P - 1) ^ p * u ^ p) _ t + convert (hA.sub hB).add hC using 1 + unfold bF1; ring + · have hB := hl.rpow_const (p := p - 1) (Or.inl h1t) + have hC := (Real.hasDerivAt_rpow_const (p := p - 1) (Or.inl ht0.ne')).const_mul + (p * (P - 1) ^ p) + change HasDerivAt (fun u => -(p * (1 - 1 / P) ^ (p - 1) * P) + p * (1 - u) ^ (p - 1) + + p * (P - 1) ^ p * u ^ (p - 1)) _ t + convert ((hB.const_mul p).const_add (-(p * (1 - 1 / P) ^ (p - 1) * P))).add hC using 1 + rw [show p - 1 - 1 = p - 2 by ring] + unfold bF2; ring + +private theorem continuous_bF {p : ℝ} (hp : 0 < p) (P : ℝ) : Continuous (bF p P) := by + unfold bF + exact ((continuous_const.mul (continuous_const.sub (continuous_const.mul continuous_id))).sub + ((continuous_const.sub continuous_id).rpow_const fun _ => Or.inr hp.le)).add + (continuous_const.mul (continuous_id.rpow_const fun _ => Or.inr hp.le)) + +/-- `F (1/P) = F' (1/P) = 0`. -/ +private theorem bF_crit {p P : ℝ} (hP : 1 < P) : bF p P (1 / P) = 0 ∧ bF1 p P (1 / P) = 0 := by + have hP0 : 0 < P := by linarith + have hβ : 0 ≤ P - 1 := by linarith + have e : 1 - 1 / P = (P - 1) * (1 / P) := by field_simp + have hpow : ∀ a : ℝ, (P - 1) ^ a * (1 / P) ^ a = (1 - 1 / P) ^ a := fun a => by + rw [e, Real.mul_rpow hβ (by positivity)] + have e0 : 1 - P * (1 / P) = 0 := by field_simp; ring + constructor + · unfold bF + rw [e0, hpow p]; ring + · have hPp : (P - 1) ^ p = (P - 1) * (P - 1) ^ (p - 1) := by + conv_lhs => rw [show p = 1 + (p - 1) by ring] + rw [Real.rpow_add (by linarith), Real.rpow_one] + unfold bF1 + rw [hPp] + linear_combination (p * (P - 1)) * hpow (p - 1) + +/-- `F'' (t) = p (p − 1) ((d t)^{p−2} − (1 − t)^{p−2})` with `d = (P − 1)^{p/(p−2)}` +(`p ≠ 2`). -/ +private theorem bF2_eq {p P t : ℝ} (hp2 : p ≠ 2) (hP : 1 < P) (ht : 0 < t) : + bF2 p P t = p * (p - 1) * (((P - 1) ^ (p / (p - 2)) * t) ^ (p - 2) - (1 - t) ^ (p - 2)) := by + have hβ : 0 ≤ P - 1 := by linarith + rw [Real.mul_rpow (Real.rpow_nonneg hβ _) ht.le, ← Real.rpow_mul hβ, + div_mul_cancel₀ _ (sub_ne_zero.2 hp2)] + unfold bF2; ring + +/-- A convex function on `[a, b]` with `F (c) = F' (c) = 0` at a point `c ∈ [a, b]` is `≥ 0` on +`[a, b]` (it lies above its tangent at `c`). -/ +private theorem nonneg_of_convexOn_tangent {F : ℝ → ℝ} {a b c : ℝ} (hF : ConvexOn ℝ (Icc a b) F) + (hc : c ∈ Icc a b) (hd : HasDerivAt F 0 c) (h0 : F c = 0) {t : ℝ} (ht : t ∈ Icc a b) : + 0 ≤ F t := by + rcases lt_trichotomy t c with htc | rfl | htc + · have := hF.slope_le_of_hasDerivAt ht hc htc hd + rw [slope_def_field, h0, div_le_iff₀ (sub_pos.2 htc)] at this + linarith + · rw [h0] + · have := hF.le_slope_of_hasDerivAt hc ht htc hd + rw [slope_def_field, h0, le_div_iff₀ (sub_pos.2 htc)] at this + linarith + +/-- A concave function on `[a, b]` that is `≥ 0` at `a` and at `b` is `≥ 0` on `[a, b]`. -/ +private theorem nonneg_of_concaveOn {F : ℝ → ℝ} {a b : ℝ} (hab : a ≤ b) + (hF : ConcaveOn ℝ (Icc a b) F) (ha : 0 ≤ F a) (hb : 0 ≤ F b) {t : ℝ} (ht : t ∈ Icc a b) : + 0 ≤ F t := + (le_min ha hb).trans (hF.ge_on_segment ⟨le_rfl, hab⟩ ⟨hab, le_rfl⟩ (by rwa [segment_eq_Icc hab])) + +/-- `F` is convex (resp. concave) on a subinterval `[a, b]` of `[0, 1]` on whose interior +`F'' ≥ 0` (resp. `≤ 0`). -/ +private theorem bF_convexOn {p P a b : ℝ} (hp : 0 < p) (ha : 0 ≤ a) (hb : b ≤ 1) + (h2 : ∀ t, a < t → t < b → 0 ≤ bF2 p P t) : ConvexOn ℝ (Icc a b) (bF p P) := by + refine convexOn_of_hasDerivWithinAt2_nonneg (f' := bF1 p P) (f'' := bF2 p P) (convex_Icc a b) + (continuous_bF hp P).continuousOn (fun t ht => ?_) (fun t ht => ?_) (fun t ht => ?_) <;> + rw [interior_Icc] at ht + · exact (bF_hasDerivAt p P (by linarith [ht.1]) (by linarith [ht.2])).1.hasDerivWithinAt + · exact (bF_hasDerivAt p P (by linarith [ht.1]) (by linarith [ht.2])).2.hasDerivWithinAt + · exact h2 t ht.1 ht.2 + +private theorem bF_concaveOn {p P a b : ℝ} (hp : 0 < p) (ha : 0 ≤ a) (hb : b ≤ 1) + (h2 : ∀ t, a < t → t < b → bF2 p P t ≤ 0) : ConcaveOn ℝ (Icc a b) (bF p P) := by + refine concaveOn_of_hasDerivWithinAt2_nonpos (f' := bF1 p P) (f'' := bF2 p P) (convex_Icc a b) + (continuous_bF hp P).continuousOn (fun t ht => ?_) (fun t ht => ?_) (fun t ht => ?_) <;> + rw [interior_Icc] at ht + · exact (bF_hasDerivAt p P (by linarith [ht.1]) (by linarith [ht.2])).1.hasDerivWithinAt + · exact (bF_hasDerivAt p P (by linarith [ht.1]) (by linarith [ht.2])).2.hasDerivWithinAt + · exact h2 t ht.1 ht.2 + +/-- `α_p = p (1 − 1/p)^{p−1} = (p − 1)^{p−1} / p^{p−2}`. -/ +private theorem alpha_eq_phi {p : ℝ} (hp : 1 < p) : + p * (1 - 1 / p) ^ (p - 1) = (p - 1) ^ (p - 1) / p ^ (p - 2) := by + have hp0 : 0 < p := by linarith + have e : 1 - 1 / p = (p - 1) / p := by field_simp + have hpp : p ^ (p - 1) = p ^ (p - 2) * p := by + rw [show p - 1 = p - 2 + 1 by ring, Real.rpow_add_one hp0.ne'] + have hp2 : p ^ (p - 2) ≠ 0 := (Real.rpow_pos_of_pos hp0 _).ne' + rw [e, Real.div_rpow (by linarith) hp0.le, hpp] + field_simp + +/-- **`F ≥ 0` on `[0, 1]`** (Burkholder 1988, proof of (1.10)). If `p = 2`, `F ≡ 0`. With +`d = (p* − 1)^{p/(p−2)}` and `s₀ = 1/(1 + d)` (Burkholder asserts that such an `s₀` exists; this +value is read off from `F''`, `bF2_eq`): if `p > 2`, `F` is concave on `[0, s₀]` and convex on +`[s₀, 1]`, `s₀ ≤ 1/p*`; `F (1/p*) = F' (1/p*) = 0` gives `F ≥ 0` on `[s₀, 1]`, and `F (0) ≥ 0` by +(1.11) gives it on `[0, s₀]`. If `p < 2`, `F` is convex on `[0, s₀]`, `s₀ ≥ 1/p*`, and concave on +`[s₀, 1]`, and `F (1) ≥ 0` by (1.11). -/ +private theorem bF_nonneg {p : ℝ} (hp : 1 < p) {t : ℝ} (ht0 : 0 ≤ t) (ht1 : t ≤ 1) : + 0 ≤ bF p (max p (p / (p - 1))) t := by + have hp0 : 0 < p := by linarith + set P := max p (p / (p - 1)) with hPdef + have hP : 1 < P := lt_of_lt_of_le hp (le_max_left _ _) + have hβ : 0 < P - 1 := by linarith + have hpp : 0 < p * (p - 1) := mul_pos hp0 (by linarith) + obtain ⟨hcrit, hcrit1⟩ := bF_crit (p := p) hP + have hd1 : HasDerivAt (bF p P) 0 (1 / P) := by + rw [← hcrit1] + exact (bF_hasDerivAt p P (by positivity) ((div_lt_one (by linarith)).2 hP)).1 + have hcP : 1 / P ∈ Ioo (0 : ℝ) 1 := ⟨by positivity, (div_lt_one (by linarith)).2 hP⟩ + rcases lt_trichotomy p 2 with hp2 | rfl | hp2 + · -- `1 < p < 2`: `P = p / (p − 1)` + have hPe : P = p / (p - 1) := max_eq_right (by rw [le_div_iff₀ (by linarith)]; nlinarith) + set d := (P - 1) ^ (p / (p - 2)) with hd + have hd0 : 0 < d := Real.rpow_pos_of_pos hβ _ + have hβ1 : 1 ≤ P - 1 := by + rw [hPe, le_sub_iff_add_le, le_div_iff₀ (by linarith)]; linarith + have hd1' : d ≤ 1 := Real.rpow_le_one_of_one_le_of_nonpos hβ1 + (div_nonpos_of_nonneg_of_nonpos hp0.le (by linarith)) + set s₀ := 1 / (1 + d) + have hs₀1 : s₀ ≤ 1 := (div_le_one (by linarith)).2 (by linarith) + have hPs₀ : 1 / P ≤ s₀ := one_div_le_one_div_of_le (by linarith) (by linarith) + have hdt : ∀ u, 0 < u → (u ≤ s₀ ↔ d * u ≤ 1 - u) := fun u hu => by + rw [le_div_iff₀ (by linarith)]; constructor <;> intro h <;> linarith + -- convex on `[0, s₀]`, concave on `[s₀, 1]` + have hconv : ConvexOn ℝ (Icc 0 s₀) (bF p P) := bF_convexOn hp0 le_rfl hs₀1 fun u hu0 hu1 => by + rw [bF2_eq hp2.ne hP hu0] + refine mul_nonneg hpp.le (sub_nonneg.2 (Real.rpow_le_rpow_of_nonpos (by positivity) + ((hdt u hu0).1 hu1.le) (by linarith))) + have hconc : ConcaveOn ℝ (Icc s₀ 1) (bF p P) := bF_concaveOn hp0 (by positivity) le_rfl + fun u hu0 hu1 => by + have hu : 0 < u := lt_of_le_of_lt (by positivity) hu0 + rw [bF2_eq hp2.ne hP hu] + have : 1 - u ≤ d * u := by + by_contra hc; exact absurd ((hdt u hu).2 (by linarith)) (not_le.2 hu0) + exact mul_nonpos_of_nonneg_of_nonpos hpp.le (sub_nonpos.2 (Real.rpow_le_rpow_of_nonpos + (by linarith) this (by linarith))) + have hleft : ∀ u ∈ Icc 0 s₀, 0 ≤ bF p P u := fun u hu => + nonneg_of_convexOn_tangent hconv ⟨hcP.1.le, hPs₀⟩ hd1 hcrit hu + -- `F (1) = (P − 1) ((P − 1)^{p−1} − α_p) ≥ 0` by (1.11) + have hF1 : 0 ≤ bF p P 1 := by + have hφ := phi_le_one hp hp2.le + have hα : p * (1 - 1 / P) ^ (p - 1) = 1 / p ^ (p - 2) := by + rw [hPe, show 1 - 1 / (p / (p - 1)) = 1 / p by field_simp; ring, + Real.div_rpow zero_le_one hp0.le, Real.one_rpow, + show p - 1 = p - 2 + 1 by ring, Real.rpow_add_one hp0.ne'] + field_simp + have hb : (P - 1) ^ (p - 1) = 1 / (p - 1) ^ (p - 1) := by + rw [hPe, show p / (p - 1) - 1 = 1 / (p - 1) by field_simp; ring, + Real.div_rpow zero_le_one (by linarith), Real.one_rpow] + have hPp : (P - 1) ^ p = (P - 1) * (P - 1) ^ (p - 1) := by + conv_lhs => rw [show p = 1 + (p - 1) by ring] + rw [Real.rpow_add hβ, Real.rpow_one] + have hq : 1 / p ^ (p - 2) ≤ 1 / (p - 1) ^ (p - 1) := by + rw [div_le_iff₀ (Real.rpow_pos_of_pos hp0 _)] at hφ + exact one_div_le_one_div_of_le (Real.rpow_pos_of_pos (by linarith) _) hφ |>.trans_eq' + (by rw [one_mul]) + unfold bF + rw [hα, hPp, hb, sub_self, Real.zero_rpow hp0.ne', Real.one_rpow] + nlinarith [hq, hβ] + rcases le_total t s₀ with hts | hts + · exact hleft t ⟨ht0, hts⟩ + · exact nonneg_of_concaveOn hs₀1 hconc (hleft s₀ ⟨by positivity, le_rfl⟩) hF1 ⟨hts, ht1⟩ + · -- `p = 2`: `F ≡ 0` + have hP2 : P = 2 := by rw [hPdef]; norm_num + rw [hP2] + unfold bF + norm_num [Real.rpow_two] + ring_nf + exact le_rfl + · -- `p > 2`: `P = p` + have hPe : P = p := max_eq_left (by rw [div_le_iff₀ (by linarith)]; nlinarith) + set d := (P - 1) ^ (p / (p - 2)) with hd + have hd0 : 0 < d := Real.rpow_pos_of_pos hβ _ + have hβ1 : 1 < P - 1 := by rw [hPe]; linarith + have hdβ : P - 1 < d := by + conv_lhs => rw [← Real.rpow_one (P - 1)] + exact Real.rpow_lt_rpow_of_exponent_lt hβ1 (by rw [one_lt_div (by linarith)]; linarith) + set s₀ := 1 / (1 + d) + have hs₀0 : 0 ≤ s₀ := by positivity + have hs₀P : s₀ ≤ 1 / P := one_div_le_one_div_of_le (by linarith) (by linarith) + have hdt : ∀ u, 0 < u → (u ≤ s₀ ↔ d * u ≤ 1 - u) := fun u hu => by + rw [le_div_iff₀ (by linarith)]; constructor <;> intro h <;> linarith + -- concave on `[0, s₀]`, convex on `[s₀, 1]` + have hconc : ConcaveOn ℝ (Icc 0 s₀) (bF p P) := bF_concaveOn hp0 le_rfl + (hs₀P.trans hcP.2.le) fun u hu0 hu1 => by + rw [bF2_eq hp2.ne' hP hu0] + exact mul_nonpos_of_nonneg_of_nonpos hpp.le (sub_nonpos.2 (Real.rpow_le_rpow + (by positivity) ((hdt u hu0).1 hu1.le) (by linarith))) + have hconv : ConvexOn ℝ (Icc s₀ 1) (bF p P) := bF_convexOn hp0 hs₀0 le_rfl fun u hu0 hu1 => by + have hu : 0 < u := lt_of_le_of_lt hs₀0 hu0 + rw [bF2_eq hp2.ne' hP hu] + have : 1 - u ≤ d * u := by + by_contra hc; exact absurd ((hdt u hu).2 (by linarith)) (not_le.2 hu0) + exact mul_nonneg hpp.le (sub_nonneg.2 (Real.rpow_le_rpow (by linarith) this (by linarith))) + have hright : ∀ u ∈ Icc s₀ 1, 0 ≤ bF p P u := fun u hu => + nonneg_of_convexOn_tangent hconv ⟨hs₀P, hcP.2.le⟩ hd1 hcrit hu + -- `F (0) = α_p − 1 ≥ 0` by (1.11) + have hF0 : 0 ≤ bF p P 0 := by + have hφ := one_le_phi hp2.le + unfold bF + rw [hPe, alpha_eq_phi hp, Real.zero_rpow hp0.ne', sub_zero, Real.one_rpow] + linarith + rcases le_total t s₀ with hts | hts + · exact nonneg_of_concaveOn hs₀0 hconc hF0 (hright s₀ ⟨le_rfl, (hs₀P.trans hcP.2.le)⟩) + ⟨ht0, hts⟩ + · exact hright t ⟨hts, ht1⟩ + +/-- **Majorization** (Burkholder 1988, (1.10)): `V ≤ U`, that is +`|x|^p − (p* − 1)^p |y|^p ≤ U (x, y)`, with `s = |x|` (subordinate), `r = |y|` (dominating). If +`s + r = 0` both sides vanish; otherwise, by homogeneity, +`U (s, r) − V (s, r) = (s + r)^p F (r / (s + r)) ≥ 0` (`bF_nonneg`). -/ +theorem burkholderU_ge {p s r : ℝ} (hp : 1 < p) (hs : 0 ≤ s) (hr : 0 ≤ r) : + s ^ p - (max p (p / (p - 1)) - 1) ^ p * r ^ p ≤ burkholderU p s r := by + have hp0 : 0 < p := by linarith + rcases (add_nonneg hs hr).eq_or_lt with hw | hw + · have hs0 : s = 0 := by linarith + have hr0 : r = 0 := by linarith + subst hs0 hr0 + simp [burkholderU, Real.zero_rpow hp0.ne'] + · have ht0 : 0 ≤ r / (s + r) := div_nonneg hr hw.le + have ht1 : r / (s + r) ≤ 1 := (div_le_one hw).2 (by linarith) + have hF := bF_nonneg hp ht0 ht1 + have hwp : 0 < (s + r) ^ p := Real.rpow_pos_of_pos hw p + have key : burkholderU p s r - (s ^ p - (max p (p / (p - 1)) - 1) ^ p * r ^ p) = + (s + r) ^ p * bF p (max p (p / (p - 1))) (r / (s + r)) := by + unfold burkholderU bF + have e1 : 1 - r / (s + r) = s / (s + r) := by field_simp; ring + rw [e1, Real.div_rpow hs hw.le, Real.div_rpow hr hw.le, Real.rpow_sub_one hw.ne'] + field_simp + ring + nlinarith [mul_nonneg hwp.le hF] + +/-! ### The concavity of `U` along lines: the proof of (1.12), and Remark 1.2 -/ + +/-- `α_p = p (1 − 1/p)^{p−1} ≥ 0`. -/ +private theorem alpha_nonneg {p : ℝ} (hp : 1 < p) : 0 ≤ p * (1 - 1 / p) ^ (p - 1) := by + have h : 0 ≤ 1 - 1 / p := by rw [sub_nonneg, div_le_one (by linarith)]; linarith + exact mul_nonneg (by linarith) (Real.rpow_nonneg h _) + +/-- **The concavity of `G`** in the proof of (1.12), by (1.14), for `U`: if `x + t h ≠ 0`, +`y + t k ≠ 0` for every `t` and `|h| ≤ |k|`, `t ↦ U (x + t h, y + t k)` is concave on `ℝ` +(`psi_line_of_ne`). -/ +private theorem burkholderU_concaveOn_line_of_ne {H : Type*} [NormedAddCommGroup H] + [InnerProductSpace ℝ H] {p : ℝ} (hp : 1 < p) (x y h k : H) (hhk : ‖h‖ ≤ ‖k‖) + (hx : ∀ t : ℝ, x + t • h ≠ 0) (hy : ∀ t : ℝ, y + t • k ≠ 0) : + ConcaveOn ℝ univ fun t : ℝ => burkholderU p ‖x + t • h‖ ‖y + t • k‖ := by + rcases le_total 2 p with h2 | h2 + · have e : (fun t : ℝ => burkholderU p ‖x + t • h‖ ‖y + t • k‖) = + fun t => (p * (1 - 1 / p) ^ (p - 1)) • psiLine p x y h k t := by + funext t; rw [U_eq_A h2, psiLine, smul_eq_mul] + rw [e] + exact ((psi_line_of_ne hp x y h k hx hy).1 ⟨h2, hhk⟩).smul + (alpha_nonneg hp) + · have e : (fun t : ℝ => burkholderU p ‖x + t • h‖ ‖y + t • k‖) = + fun t => (p * (1 / p) ^ (p - 1) / (p - 1)) • (-psiLine p y x k h) t := by + funext t; rw [U_eq_B hp h2, Pi.neg_apply, psiLine, smul_eq_mul]; ring + rw [e] + exact ((psi_line_of_ne hp y x k h hy hx).2 ⟨h2, hhk⟩).neg.smul + (div_nonneg (by positivity) (by linarith)) + +/-- `‖(v, δ)‖ = √(‖v‖² + δ²)` in `H ⊕ ℝ` (`WithLp 2 (H × ℝ)`). -/ +private theorem norm_toLp_shift {H : Type*} [NormedAddCommGroup H] (v : H) (δ : ℝ) : + ‖(WithLp.toLp 2 (v, δ) : WithLp 2 (H × ℝ))‖ = √(‖v‖ ^ 2 + δ ^ 2) := by + rw [WithLp.prod_norm_eq_of_L2] + simp [Real.norm_eq_abs, sq_abs] + +/-- In `H ⊕ ℝ`, the line through `(v, δ)` with direction `(w, 0)`: `(v + t w, δ)`. -/ +private theorem toLp_line {H : Type*} [NormedAddCommGroup H] [NormedSpace ℝ H] (v w : H) + (δ t : ℝ) : (WithLp.toLp 2 (v, δ) : WithLp 2 (H × ℝ)) + t • WithLp.toLp 2 (w, 0) = + WithLp.toLp 2 (v + t • w, δ) := by + rw [← WithLp.toLp_smul, ← WithLp.toLp_add, Prod.smul_mk, smul_zero, Prod.mk_add_mk, add_zero] + +private theorem toLp_ne_zero {H : Type*} [NormedAddCommGroup H] (v : H) {δ : ℝ} (hδ : δ ≠ 0) : + (WithLp.toLp 2 (v, δ) : WithLp 2 (H × ℝ)) ≠ 0 := fun h => + hδ (by simpa using congrArg (fun z : WithLp 2 (H × ℝ) => z.snd) h) + +/-- A pointwise limit of concave functions on `ℝ` is concave. -/ +private theorem concaveOn_univ_of_tendsto {f : ℕ → ℝ → ℝ} {g : ℝ → ℝ} + (hf : ∀ m, ConcaveOn ℝ univ (f m)) (hlim : ∀ t, Tendsto (fun m => f m t) atTop (𝓝 (g t))) : + ConcaveOn ℝ univ g := by + refine ⟨convex_univ, fun a _ b _ μ ν hμ hν hμν => ?_⟩ + exact le_of_tendsto_of_tendsto' (((hlim a).const_smul μ).add ((hlim b).const_smul ν)) + (hlim _) fun m => (hf m).2 (mem_univ a) (mem_univ b) hμ hν hμν + +private theorem continuous_burkholderU {p : ℝ} (hp : 1 < p) : + Continuous fun z : ℝ × ℝ => burkholderU p z.1 z.2 := by + unfold burkholderU + exact (continuous_const.mul (continuous_fst.sub (continuous_const.mul continuous_snd))).mul + ((continuous_fst.add continuous_snd).rpow_const fun _ => Or.inr (by linarith)) + +/-- `δ ↦ U (√(a² + δ²), √(b² + δ²))` is continuous, with value `U (a, b)` at `δ = 0` for +`a, b ≥ 0`. -/ +private theorem tendsto_burkholderU_shift {p a b : ℝ} (hp : 1 < p) (ha : 0 ≤ a) (hb : 0 ≤ b) : + Tendsto (fun m : ℕ => burkholderU p √(a ^ 2 + (1 / ((m : ℝ) + 1)) ^ 2) + √(b ^ 2 + (1 / ((m : ℝ) + 1)) ^ 2)) atTop (𝓝 (burkholderU p a b)) := by + have hc : Continuous fun δ : ℝ => burkholderU p √(a ^ 2 + δ ^ 2) √(b ^ 2 + δ ^ 2) := + (continuous_burkholderU hp).comp + ((Real.continuous_sqrt.comp (continuous_const.add (continuous_id.pow 2))).prodMk + (Real.continuous_sqrt.comp (continuous_const.add (continuous_id.pow 2)))) + have := (hc.tendsto 0).comp tendsto_one_div_add_atTop_nhds_zero_nat + simpa [Function.comp_def, Real.sqrt_sq ha, Real.sqrt_sq hb] using this + +/-- **Concavity of Burkholder's function along lines** (Burkholder 1988, Remark 1.2, (1.17)): +for `x, y, h, k` in a real inner product space with `|h| ≤ |k|`, +`t ↦ U (x + t h, y + t k)` is concave on `ℝ` (`x` the position of the subordinate martingale, +`y` that of the dominating one). Gap of the source: the paper states this without proof. It is +completed here from two steps of the paper, an assembly of the formalization: the proof of (1.12) +covers the lines on which `x + t h` and `y + t k` never vanish +(`burkholderU_concaveOn_line_of_ne`), and the other lines are reached by the device of the proof of +(1.8): in `H ⊕ ℝ` (`WithLp 2 (H × ℝ)`), +the lines through `(x, δ)` and `(y, δ)` with directions `(h, 0)` and `(k, 0)` never vanish for +`δ ≠ 0`, so `t ↦ U (√(|x + t h|² + δ²), √(|y + t k|² + δ²))` is concave, and these functions tend +to `t ↦ U (|x + t h|, |y + t k|)` as `δ → 0` (`concaveOn_univ_of_tendsto`). -/ +theorem burkholderU_concaveOn_line {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H] + {p : ℝ} (hp : 1 < p) (x y h k : H) (hhk : ‖h‖ ≤ ‖k‖) : + ConcaveOn ℝ univ fun t : ℝ => burkholderU p ‖x + t • h‖ ‖y + t • k‖ := by + have hδ : ∀ m : ℕ, ConcaveOn ℝ univ fun t : ℝ => + burkholderU p √(‖x + t • h‖ ^ 2 + (1 / ((m : ℝ) + 1)) ^ 2) + √(‖y + t • k‖ ^ 2 + (1 / ((m : ℝ) + 1)) ^ 2) := fun m => by + have hδ0 : (1 / ((m : ℝ) + 1)) ≠ 0 := by positivity + have := burkholderU_concaveOn_line_of_ne hp (WithLp.toLp 2 (x, 1 / ((m : ℝ) + 1))) + (WithLp.toLp 2 (y, 1 / ((m : ℝ) + 1))) (WithLp.toLp 2 (h, (0 : ℝ))) + (WithLp.toLp 2 (k, (0 : ℝ))) (by rwa [WithLp.norm_toLp_fst, WithLp.norm_toLp_fst]) + (fun t => by rw [toLp_line]; exact toLp_ne_zero _ hδ0) + (fun t => by rw [toLp_line]; exact toLp_ne_zero _ hδ0) + simpa only [toLp_line, norm_toLp_shift] using this + exact concaveOn_univ_of_tendsto hδ fun t => + tendsto_burkholderU_shift hp (norm_nonneg _) (norm_nonneg _) + +/-! ### Burkholder's function in Burkholder's notation -/ + +section Fun + +variable {H : Type*} [NormedAddCommGroup H] + +/-- `u_p (x, y) = U (|y|, |x|)`, `U = burkholderU`. -/ +theorem burkholderFun_eq_burkholderU (p : ℝ) (x y : H) : + burkholderFun p x y = burkholderU p ‖y‖ ‖x‖ := by + rw [burkholderFun, burkholderU, add_comm ‖x‖] + +/-- **Majorization** (Burkholder 1988, (1.10)): `v_p ≤ u_p`, that is +`|y|^p − (p* − 1)^p |x|^p ≤ u_p (x, y)` (`burkholderU_ge`). -/ +theorem burkholderFun_ge {p : ℝ} (hp : 1 < p) (x y : H) : + ‖y‖ ^ p - (max p (p / (p - 1)) - 1) ^ p * ‖x‖ ^ p ≤ burkholderFun p x y := by + rw [burkholderFun_eq_burkholderU] + exact burkholderU_ge hp (norm_nonneg y) (norm_nonneg x) + +/-- **Concavity along lines** (Burkholder 1988, Remark 1.2, (1.17)): in a real inner product +space, if `|k| ≤ |h|`, then `t ↦ u_p (x + t h, y + t k)` is concave on `ℝ` +(`burkholderU_concaveOn_line`). -/ +theorem burkholderFun_concaveOn_line [InnerProductSpace ℝ H] {p : ℝ} (hp : 1 < p) (x y h k : H) + (hk : ‖k‖ ≤ ‖h‖) : + ConcaveOn ℝ univ fun t : ℝ => burkholderFun p (x + t • h) (y + t • k) := by + simp only [burkholderFun_eq_burkholderU] + exact burkholderU_concaveOn_line hp y x k h hk + +/-- For `p ≥ 2`: `u_p (x, y) = p (1 − 1/p)^{p−1} (|y| − (p − 1) |x|) (|x| + |y|)^{p−1}`. -/ +theorem burkholderFun_of_two_le {p : ℝ} (hp : 2 ≤ p) (x y : H) : + burkholderFun p x y = + p * (1 - 1 / p) ^ (p - 1) * (‖y‖ - (p - 1) * ‖x‖) * (‖x‖ + ‖y‖) ^ (p - 1) := by + rw [burkholderFun, max_div_sub_one_eq_self hp] + +end Fun + +end BanachProbability.Burkholder diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Basic.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Basic.lean new file mode 100644 index 0000000000..1d5452c04a --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Basic.lean @@ -0,0 +1,162 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +-- The Challenges in `palomar/` import exactly these modules. +public import Mathlib.Analysis.Calculus.FDeriv.Basic +public import Mathlib.Analysis.Convex.Function +public import Mathlib.Analysis.Matrix.MeasurableSpace +public import Mathlib.Analysis.Matrix.Normed +public import Mathlib.Data.EReal.Basic +public import Mathlib.Data.EReal.Operations +public import Mathlib.LinearAlgebra.BilinearMap +public import Mathlib.LinearAlgebra.Matrix.Determinant.Basic +public import Mathlib.LinearAlgebra.Matrix.Rank +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.MeasureTheory.Integral.IntegrableOn +public import Mathlib.MeasureTheory.Measure.Lebesgue.Basic +public import Mathlib.Order.CompleteLattice.Basic +public import Mathlib.Order.Hom.Basic +public import Mathlib.Topology.EMetricSpace.Lipschitz +public import Mathlib.Topology.Instances.Matrix +public import Mathlib.Topology.Semicontinuity.Defs + +/-! +# Rank-one convexity and quasiconvexity + +The standard notions of the vectorial calculus of variations (see S. Müller, *Variational models +for microstructure and phase transitions*, lecture notes, MPI MiS Leipzig, 1998, Definition 4.2, +and Theorem 4.5 (ii) for the quasiconvex envelope; B. Dacorogna, *Direct Methods in the Calculus of +Variations*, 2nd ed., Springer, 2008, Definition 5.1 and Section 6.3), for integrands +`f : ℝ^{d×m} → ℝ`, with the conventions of this package: test maps are Lipschitz, and +quasiconvexity is tested on the unit cube. + +* `grad φ x`: the derivative matrix of `φ : ℝ^m → ℝ^d` (rows are the components); +* `IsLocallyBounded f`; +* `RankOneConvex f`: `t ↦ f (A + t B)` is convex for every `A` and every `B` of rank one; + `RankOneAffine f`: `f` and `−f` are rank-one convex; +* `QuasiconvexAtOn Ω f A`: `|Ω| f (A) ≤ ∫_Ω f (A + ∇φ)` for every Lipschitz `φ` vanishing outside + `Ω` (for a Lipschitz domain `Ω`, `φ ∈ W^{1,∞}_0 (Ω, ℝ^d)` extended by `0`) for which the integral + exists; `QuasiconvexAtPeriodic f A`: the same on the unit cube for `ℤ^m`-periodic Lipschitz `φ` + (`φ ∈ W^{1,∞}_per (𝕋^m, ℝ^d)`); +* `Quasiconvex f`: quasiconvexity on the unit cube at every matrix; +* `quasiconvexEnvelope f`, the supremum of the Borel, locally bounded, quasiconvex minorants of `f`, + and `qcEnvelope f`, that of the lower semicontinuous ones (in `EReal`, `⊥` when there is none); + they are equal (`quasiconvexEnvelope_eq_qcEnvelope`); +* `domainInf Ω f`, the infimum formula `inf_φ ⨍_Ω f (A + ∇φ)`; +* `minor A r c`: the minor of `A` with the rows `r` and the columns `c`. + +The marked blocks of definitions are copied word for word into the Challenges in `palomar/` by +`scripts/sync_challenge_defs.py`. +-/ + +@[expose] public section + +open MeasureTheory + +namespace CalculusOfVariations + +-- BEGIN SHARED DEFINITIONS: core + +variable {d m : ℕ} + +/-- The derivative matrix of `φ : ℝ^m → ℝ^d` at `x`: the `d × m` matrix with the entries +`∂_k φ_i (x)` (rows are the components). For a Lipschitz `φ` it is the gradient almost everywhere +(Rademacher's theorem); an entry is `0` where `φ_i` is not differentiable. -/ +noncomputable def grad (φ : (Fin m → ℝ) → Fin d → ℝ) (x : Fin m → ℝ) : + Matrix (Fin d) (Fin m) ℝ := + Matrix.of fun i k => fderiv ℝ (fun y => φ y i) x (Pi.single k 1) + +/-- The open unit cube `(0, 1)^m`. -/ +def unitCube (m : ℕ) : Set (Fin m → ℝ) := + Set.pi Set.univ fun _ => Set.Ioo 0 1 + +/-- `f` is bounded on a neighbourhood of every matrix. -/ +def IsLocallyBounded (f : Matrix (Fin d) (Fin m) ℝ → ℝ) : Prop := + ∀ A, ∃ U ∈ nhds A, ∃ C : ℝ, ∀ B ∈ U, |f B| ≤ C + +/-- Rank-one convexity: `t ↦ f (A + t B)` is convex on `ℝ` for every `A` and every `B` of rank +one. -/ +def RankOneConvex (f : Matrix (Fin d) (Fin m) ℝ → ℝ) : Prop := + ∀ A B : Matrix (Fin d) (Fin m) ℝ, B.rank = 1 → ConvexOn ℝ Set.univ fun t : ℝ => f (A + t • B) + +/-- Quasiconvexity at `A` on the domain `Ω`: `|Ω| f (A) ≤ ∫_Ω f (A + ∇φ)` for every Lipschitz `φ` +vanishing outside `Ω` for which the integral exists (for a Borel, locally bounded `f` and a bounded +`Ω`, it always does). It is used for bounded `Ω` only: if `|Ω| = ∞`, `(volume Ω).toReal` is `0`. -/ +def QuasiconvexAtOn (Ω : Set (Fin m → ℝ)) (f : Matrix (Fin d) (Fin m) ℝ → ℝ) + (A : Matrix (Fin d) (Fin m) ℝ) : Prop := + ∀ (φ : (Fin m → ℝ) → Fin d → ℝ) (K : NNReal), LipschitzWith K φ → (∀ x ∉ Ω, φ x = 0) → + IntegrableOn (fun x => f (A + grad φ x)) Ω → + (volume Ω).toReal * f A ≤ ∫ x in Ω, f (A + grad φ x) + +/-- Quasiconvexity: quasiconvexity on the unit cube at every matrix. -/ +def Quasiconvex (f : Matrix (Fin d) (Fin m) ℝ → ℝ) : Prop := + ∀ A, QuasiconvexAtOn (unitCube m) f A + +-- END SHARED DEFINITIONS: core + +-- BEGIN SHARED DEFINITIONS: periodic + +/-- Quasiconvexity at `A` with periodic test maps: `f (A) ≤ ∫_{(0,1)^m} f (A + ∇φ)` for every +`ℤ^m`-periodic Lipschitz `φ` for which the integral exists. -/ +def QuasiconvexAtPeriodic (f : Matrix (Fin d) (Fin m) ℝ → ℝ) (A : Matrix (Fin d) (Fin m) ℝ) : + Prop := + ∀ (φ : (Fin m → ℝ) → Fin d → ℝ) (K : NNReal), LipschitzWith K φ → + (∀ (x : Fin m → ℝ) (z : Fin m → ℤ), φ (x + fun i => (z i : ℝ)) = φ x) → + IntegrableOn (fun x => f (A + grad φ x)) (unitCube m) → + f A ≤ ∫ x in unitCube m, f (A + grad φ x) + +-- END SHARED DEFINITIONS: periodic + +-- BEGIN SHARED DEFINITIONS: envelope + +/-- The quasiconvex envelope of `f` at `A`: the supremum of `g (A)` over the quasiconvex `g ≤ f` +(`g` Borel, locally bounded, and quasiconvex at every matrix), with values in `EReal`: it is +`⊥ = −∞` when there is no such `g`. -/ +noncomputable def quasiconvexEnvelope (f : Matrix (Fin d) (Fin m) ℝ → ℝ) + (A : Matrix (Fin d) (Fin m) ℝ) : EReal := + ⨆ (g : Matrix (Fin d) (Fin m) ℝ → ℝ) + (_ : Measurable g ∧ IsLocallyBounded g ∧ Quasiconvex g ∧ ∀ B, g B ≤ f B), (g A : EReal) + +/-- The infimum formula on `Ω`: `inf_φ ⨍_Ω f (A + ∇φ)`, where `⨍_Ω = |Ω|⁻¹ ∫_Ω`, over the Lipschitz +`φ` vanishing outside `Ω`, with values in `EReal`. It is used for bounded open `Ω ≠ ∅` and +continuous `f`, for which the integrals exist. -/ +noncomputable def domainInf (Ω : Set (Fin m → ℝ)) (f : Matrix (Fin d) (Fin m) ℝ → ℝ) + (A : Matrix (Fin d) (Fin m) ℝ) : EReal := + ⨅ (φ : (Fin m → ℝ) → Fin d → ℝ) (_ : (∃ K, LipschitzWith K φ) ∧ ∀ x ∉ Ω, φ x = 0), + (((volume Ω).toReal⁻¹ * ∫ x in Ω, f (A + grad φ x) : ℝ) : EReal) + +-- END SHARED DEFINITIONS: envelope + +-- BEGIN SHARED DEFINITIONS: minors + +/-- Rank-one affinity: `f` and `−f` are rank-one convex. -/ +def RankOneAffine (f : Matrix (Fin d) (Fin m) ℝ → ℝ) : Prop := + RankOneConvex f ∧ RankOneConvex (-f) + +/-- The `k × k` minor of `A` with the rows `r` and the columns `c` (strictly increasing). -/ +noncomputable def minor (A : Matrix (Fin d) (Fin m) ℝ) {k : ℕ} (r : Fin k ↪o Fin d) + (c : Fin k ↪o Fin m) : ℝ := + (A.submatrix r c).det + +-- END SHARED DEFINITIONS: minors + +/-- The open Euclidean unit ball of `ℝ^m`. -/ +def unitBall (m : ℕ) : Set (Fin m → ℝ) := + {x | ∑ i, x i ^ 2 < 1} + +/-- The quasiconvex envelope, over the quasiconvex minorants `g ≤ f` that are lower semicontinuous +and locally bounded (`⊥` when there is none). It is equal to `quasiconvexEnvelope` +(`quasiconvexEnvelope_eq_qcEnvelope`). -/ +noncomputable def qcEnvelope (f : Matrix (Fin d) (Fin m) ℝ → ℝ) (A : Matrix (Fin d) (Fin m) ℝ) : + EReal := + ⨆ (g : Matrix (Fin d) (Fin m) ℝ → ℝ) + (_ : LowerSemicontinuous g ∧ IsLocallyBounded g ∧ Quasiconvex g ∧ ∀ B, g B ≤ f B), + (g A : EReal) + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Convex/SupportFunction.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Convex/SupportFunction.lean new file mode 100644 index 0000000000..65ab57badc --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Convex/SupportFunction.lean @@ -0,0 +1,177 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.Calculus.FDeriv.Basic +public import Mathlib.Analysis.Convex.Basic +public import Mathlib.Data.Matrix.Mul +public import Mathlib.Topology.EMetricSpace.Lipschitz +public import Mathlib.Topology.MetricSpace.Bounded +import Mathlib.Analysis.Calculus.Deriv.Comp +import Mathlib.Analysis.Calculus.Deriv.Mul +import Mathlib.Analysis.Calculus.Deriv.Slope +import Mathlib.Analysis.LocallyConvex.Separation +import Mathlib.Analysis.Normed.Group.Bounded +import Mathlib.Topology.Instances.Matrix +import Mathlib.Topology.Order.Compact + +/-! +# The support function of a compact convex set in `ℝ^m` + +For `K ⊂ ℝ^m = Fin m → ℝ`, the support function `H_K (y) = sup_{z ∈ K} z · y` (`supportFun`), with +the dot product `⬝ᵥ`. The following facts of convex analysis are standard. For `K` nonempty and +compact: + +* `dotProduct_le_supportFun`, `exists_dotProduct_eq_supportFun`: the supremum is attained; +* `supportFun_zero`, `supportFun_add_le`, `supportFun_smul`: `H_K` is sublinear; +* `lipschitzWith_supportFun`: `H_K` is Lipschitz; +* `mem_of_forall_dotProduct_le_supportFun`: for `K` also convex, `a ∈ K` if `a · y ≤ H_K (y)` for + every `y` (Hahn–Banach separation); +* `gradient_supportFun_mem`: for `K` also convex, the gradient of `H_K` lies in `K` wherever `H_K` + is differentiable. + +Two facts about `ℝ^m` that the proofs use: `dotProduct_le_mul_norm_mul_norm` (`z · v ≤ m ‖z‖ ‖v‖`, +sup norms) and `continuousLinearMap_apply_eq_dotProduct` (`L v = (L e_j)_j · v`). +-/ + +@[expose] public section + +noncomputable section + +namespace CalculusOfVariations + +variable {m : ℕ} + +/-- The support function `H_K (y) = sup_{z ∈ K} z · y` of `K ⊂ ℝ^m` (`0` for `K = ∅`, and for an +unbounded image, by the conventions of `sSup` on `ℝ`). -/ +def supportFun (K : Set (Fin m → ℝ)) (y : Fin m → ℝ) : ℝ := + sSup ((fun z => z ⬝ᵥ y) '' K) + +variable {K : Set (Fin m → ℝ)} + +/-- The linear form `z ↦ z · y` is continuous. -/ +private theorem continuous_dotProduct_left (y : Fin m → ℝ) : + Continuous fun z : Fin m → ℝ => z ⬝ᵥ y := + continuous_id.dotProduct continuous_const + +/-- `z · v ≤ m ‖z‖ ‖v‖`, with the sup norms. -/ +theorem dotProduct_le_mul_norm_mul_norm (z v : Fin m → ℝ) : + z ⬝ᵥ v ≤ m * (‖z‖ * ‖v‖) := by + calc z ⬝ᵥ v = ∑ i, z i * v i := rfl + _ ≤ ∑ _i : Fin m, ‖z‖ * ‖v‖ := Finset.sum_le_sum fun i _ => by + calc z i * v i ≤ |z i * v i| := le_abs_self _ + _ = ‖z i‖ * ‖v i‖ := by rw [abs_mul, Real.norm_eq_abs, Real.norm_eq_abs] + _ ≤ ‖z‖ * ‖v‖ := mul_le_mul (norm_le_pi_norm z i) (norm_le_pi_norm v i) + (norm_nonneg _) (norm_nonneg _) + _ = m * (‖z‖ * ‖v‖) := by simp + +/-- A continuous linear functional on `ℝ^m` is the dot product with its values on the standard +basis: `L v = (L e_j)_j · v`. -/ +theorem continuousLinearMap_apply_eq_dotProduct (L : (Fin m → ℝ) →L[ℝ] ℝ) (v : Fin m → ℝ) : + L v = (fun j => L (Pi.single j 1)) ⬝ᵥ v := by + conv_lhs => rw [pi_eq_sum_univ' v] + simp [map_sum, map_smul, dotProduct, mul_comm] + +/-- `z · y ≤ H_K (y)` for every `z` of a compact `K`. -/ +theorem dotProduct_le_supportFun (hK : IsCompact K) {z : Fin m → ℝ} (hz : z ∈ K) + (y : Fin m → ℝ) : z ⬝ᵥ y ≤ supportFun K y := + le_csSup (hK.image (continuous_dotProduct_left y)).bddAbove (Set.mem_image_of_mem _ hz) + +/-- For `K` compact and nonempty, the supremum `H_K (y)` is attained: `z · y = H_K (y)` for some +`z ∈ K`. -/ +theorem exists_dotProduct_eq_supportFun (hK : IsCompact K) (hne : K.Nonempty) (y : Fin m → ℝ) : + ∃ z ∈ K, z ⬝ᵥ y = supportFun K y := by + obtain ⟨z, hz, hzy⟩ := (hK.image (continuous_dotProduct_left y)).sSup_mem (hne.image _) + exact ⟨z, hz, hzy⟩ + +/-- `H_K (0) = 0` for `K` compact and nonempty. -/ +theorem supportFun_zero (hK : IsCompact K) (hne : K.Nonempty) : supportFun K 0 = 0 := by + obtain ⟨z, -, hz⟩ := exists_dotProduct_eq_supportFun hK hne 0 + rw [← hz, dotProduct_zero] + +/-- Subadditivity: `H_K (y + y') ≤ H_K (y) + H_K (y')` for `K` compact and nonempty. -/ +theorem supportFun_add_le (hK : IsCompact K) (hne : K.Nonempty) (y y' : Fin m → ℝ) : + supportFun K (y + y') ≤ supportFun K y + supportFun K y' := by + obtain ⟨z, hz, hzy⟩ := exists_dotProduct_eq_supportFun hK hne (y + y') + rw [← hzy, dotProduct_add] + exact add_le_add (dotProduct_le_supportFun hK hz y) (dotProduct_le_supportFun hK hz y') + +/-- Positive homogeneity: `H_K (c y) = c H_K (y)` for `c ≥ 0`, `K` compact and nonempty. -/ +theorem supportFun_smul (hK : IsCompact K) (hne : K.Nonempty) {c : ℝ} (hc : 0 ≤ c) + (y : Fin m → ℝ) : supportFun K (c • y) = c * supportFun K y := by + apply le_antisymm + · obtain ⟨z, hz, hzy⟩ := exists_dotProduct_eq_supportFun hK hne (c • y) + rw [← hzy, dotProduct_smul, smul_eq_mul] + exact mul_le_mul_of_nonneg_left (dotProduct_le_supportFun hK hz y) hc + · obtain ⟨z, hz, hzy⟩ := exists_dotProduct_eq_supportFun hK hne y + rw [← hzy, ← smul_eq_mul, ← dotProduct_smul] + exact dotProduct_le_supportFun hK hz _ + +/-- For `K` compact and nonempty, `H_K` is Lipschitz: if `‖z‖ ≤ R` on `K`, the constant `m R` +works (sup norms). -/ +theorem lipschitzWith_supportFun (hK : IsCompact K) (hne : K.Nonempty) : + ∃ C : NNReal, LipschitzWith C (supportFun K) := by + obtain ⟨R, hR⟩ := hK.isBounded.exists_norm_le + refine ⟨Real.toNNReal (m * R), LipschitzWith.of_le_add_mul _ fun y y' => ?_⟩ + obtain ⟨z, hz, hzy⟩ := exists_dotProduct_eq_supportFun hK hne y + have h1 := dotProduct_le_supportFun hK hz y' + have h2 : z ⬝ᵥ (y - y') ≤ m * R * dist y y' := by + rw [dist_eq_norm] + calc _ ≤ m * (‖z‖ * ‖y - y'‖) := dotProduct_le_mul_norm_mul_norm z _ + _ ≤ m * (R * ‖y - y'‖) := by gcongr; exact hR z hz + _ = _ := by ring + rw [dotProduct_sub] at h2 + rw [← hzy] + have h3 : (m * R : ℝ) * dist y y' ≤ Real.toNNReal (m * R) * dist y y' := + mul_le_mul_of_nonneg_right (Real.le_coe_toNNReal _) dist_nonneg + linarith + +/-- For `K` compact, convex and nonempty, `a ∈ K` if `a · y ≤ H_K (y)` for every `y`. + +Proof: if `a ∉ K`, the Hahn–Banach separation of the point `a` from the closed convex `K` +(`geometric_hahn_banach_closed_point`) gives a linear functional `w · _` with `H_K (w) < w · a`. + +`K.Nonempty` is needed: for `K = ∅`, `H_K = sSup ∅ = 0` and `a = 0` satisfies the hypothesis. -/ +theorem mem_of_forall_dotProduct_le_supportFun (hK : IsCompact K) (hne : K.Nonempty) + (hcv : Convex ℝ K) {a : Fin m → ℝ} (h : ∀ y, a ⬝ᵥ y ≤ supportFun K y) : a ∈ K := by + by_contra ha + obtain ⟨f, u, hfK, hfa⟩ := geometric_hahn_banach_closed_point hcv hK.isClosed ha + obtain ⟨z, hz, hzw⟩ := exists_dotProduct_eq_supportFun hK hne fun j => f (Pi.single j 1) + have h1 := h fun j => f (Pi.single j 1) + have h2 := hfK z hz + rw [continuousLinearMap_apply_eq_dotProduct] at hfa h2 + rw [← hzw, dotProduct_comm] at h1 + rw [dotProduct_comm] at h2 + linarith + +/-- For `K` compact, convex and nonempty, wherever `H_K` is differentiable, its gradient +`(∂_j H_K (y))_j` lies in `K`. + +Proof: by sublinearity, `H_K (y + t v) ≤ H_K (y) + t H_K (v)` for `t > 0`; dividing by `t` and +letting `t → 0⁺`, the gradient `g` satisfies `g · v = D H_K (y) v ≤ H_K (v)` for every `v`, so +`g ∈ K` by `mem_of_forall_dotProduct_le_supportFun`. -/ +theorem gradient_supportFun_mem (hK : IsCompact K) (hne : K.Nonempty) (hcv : Convex ℝ K) + {y : Fin m → ℝ} (hy : DifferentiableAt ℝ (supportFun K) y) : + (fun j => fderiv ℝ (supportFun K) y (Pi.single j 1)) ∈ K := by + apply mem_of_forall_dotProduct_le_supportFun hK hne hcv + intro v + rw [← continuousLinearMap_apply_eq_dotProduct] + have hd : HasDerivAt (fun t : ℝ => supportFun K (y + t • v)) + (fderiv ℝ (supportFun K) y v) 0 := by + have := hy.hasFDerivAt.comp_hasDerivAt_of_eq (x := (0 : ℝ)) + (((hasDerivAt_id (0 : ℝ)).smul_const v).const_add y) (by simp) + simpa [Function.comp_def] using this + refine le_of_tendsto hd.tendsto_slope_zero_right ?_ + filter_upwards [self_mem_nhdsWithin] with t (htpos : 0 < t) + simp only [zero_smul, add_zero, smul_eq_mul, zero_add] + rw [inv_mul_le_iff₀ htpos] + have := supportFun_add_le hK hne y (t • v) + rw [supportFun_smul hK hne htpos.le] at this + linarith + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Cutoff.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Cutoff.lean new file mode 100644 index 0000000000..551e8c9a90 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Cutoff.lean @@ -0,0 +1,205 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Gradient + +/-! +# Lipschitz cut-offs + +* `cubeCutoff δ = ∏ boundaryRamp δ (x_i)`: `0` off the unit cube, `1` on `[δ, 1 − δ]^m`, + with values in `[0, 1]` and Lipschitz constant `m / δ` in the sup norm. +* `ballCutoff x r δ`: `1` on `closedBall x ((1 − δ) r)`, `0` outside `ball x r`, + `1/(δ r)`-Lipschitz; +* `cv_lipschitz_smul`: a product `θ g` with `θ ∈ [0, 1]` vanishing outside `S` and `|g| ≤ B` on + `S` is `(L_g + L_θ B)`-Lipschitz. +-/ + +@[expose] public section + +open Metric Set MeasureTheory Filter Topology +open scoped Pointwise + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-- The one-dimensional profile: `0` off `(0, 1)`, `1` on `[δ, 1 − δ]`, `(1/δ)`-Lipschitz. -/ +noncomputable def boundaryRamp (δ t : ℝ) : ℝ := max 0 (min 1 (min (t / δ) ((1 - t) / δ))) + +private lemma rd_h_mem (δ t : ℝ) : 0 ≤ boundaryRamp δ t ∧ boundaryRamp δ t ≤ 1 := + ⟨le_max_left _ _, max_le zero_le_one (min_le_left _ _)⟩ + +private lemma rd_h_lip {δ : ℝ} (hδ : 0 < δ) (s t : ℝ) : + |boundaryRamp δ s - boundaryRamp δ t| ≤ |s - t| / δ := by + have h1 := abs_max_sub_max_le_max (0 : ℝ) (min 1 (min (s / δ) ((1 - s) / δ))) 0 + (min 1 (min (t / δ) ((1 - t) / δ))) + have h2 := abs_min_sub_min_le_max (1 : ℝ) (min (s / δ) ((1 - s) / δ)) 1 + (min (t / δ) ((1 - t) / δ)) + have h3 := abs_min_sub_min_le_max (s / δ) ((1 - s) / δ) (t / δ) ((1 - t) / δ) + have e1 : |s / δ - t / δ| = |s - t| / δ := by rw [← sub_div, abs_div, abs_of_pos hδ] + have e2 : |(1 - s) / δ - (1 - t) / δ| = |s - t| / δ := by + rw [← sub_div, abs_div, abs_of_pos hδ, show 1 - s - (1 - t) = -(s - t) by ring, abs_neg] + change |max 0 _ - max 0 _| ≤ _ + calc _ ≤ _ := h1 + _ = |min 1 (min (s / δ) ((1 - s) / δ)) - min 1 (min (t / δ) ((1 - t) / δ))| := by simp + _ ≤ _ := h2 + _ = |min (s / δ) ((1 - s) / δ) - min (t / δ) ((1 - t) / δ)| := by simp + _ ≤ _ := h3 + _ = |s - t| / δ := by rw [e1, e2, max_self] + +private lemma rd_h_zero {δ t : ℝ} (hδ : 0 < δ) (ht : t ≤ 0 ∨ 1 ≤ t) : boundaryRamp δ t = 0 := by + apply max_eq_left + refine (min_le_right _ _).trans ?_ + rcases ht with ht | ht + · exact (min_le_left _ _).trans (div_nonpos_of_nonpos_of_nonneg ht hδ.le) + · exact (min_le_right _ _).trans (div_nonpos_of_nonpos_of_nonneg (by linarith) hδ.le) + +private lemma rd_h_one {δ t : ℝ} (hδ : 0 < δ) (h1 : δ ≤ t) (h2 : t ≤ 1 - δ) : + boundaryRamp δ t = 1 := by + have a : 1 ≤ t / δ := (one_le_div hδ).2 h1 + have b : 1 ≤ (1 - t) / δ := (one_le_div hδ).2 (by linarith) + simp only [boundaryRamp, min_eq_left (le_min a b), max_eq_right zero_le_one] + +/-- The cutoff `η_δ (x) = ∏ h_δ (x_i)`. -/ +noncomputable def cubeCutoff (δ : ℝ) (x : Fin m → ℝ) : ℝ := ∏ i, boundaryRamp δ (x i) + +private lemma rd_abs_prod_sub_prod_le {ι : Type*} (s : Finset ι) (a b : ι → ℝ) + (ha : ∀ i, 0 ≤ a i ∧ a i ≤ 1) (hb : ∀ i, 0 ≤ b i ∧ b i ≤ 1) : + |∏ i ∈ s, a i - ∏ i ∈ s, b i| ≤ ∑ i ∈ s, |a i - b i| := by + classical + induction s using Finset.induction_on with + | empty => simp + | insert j s hj ih => + rw [Finset.prod_insert hj, Finset.prod_insert hj, Finset.sum_insert hj] + have hP : |∏ i ∈ s, a i| ≤ 1 := by + rw [abs_of_nonneg (Finset.prod_nonneg fun i _ => (ha i).1)] + exact Finset.prod_le_one₀ (fun i _ => (ha i).1) fun i _ => (ha i).2 + have hbj : |b j| ≤ 1 := by rw [abs_of_nonneg (hb j).1]; exact (hb j).2 + calc |a j * ∏ i ∈ s, a i - b j * ∏ i ∈ s, b i| + = |(a j - b j) * ∏ i ∈ s, a i + b j * (∏ i ∈ s, a i - ∏ i ∈ s, b i)| := by ring_nf + _ ≤ |a j - b j| * |∏ i ∈ s, a i| + |b j| * |∏ i ∈ s, a i - ∏ i ∈ s, b i| := by + rw [← abs_mul, ← abs_mul]; exact abs_add_le _ _ + _ ≤ |a j - b j| * 1 + 1 * ∑ i ∈ s, |a i - b i| := by + gcongr + _ = |a j - b j| + ∑ i ∈ s, |a i - b i| := by ring + +lemma rd_eta_mem (δ : ℝ) (x : Fin m → ℝ) : 0 ≤ cubeCutoff δ x ∧ cubeCutoff δ x ≤ 1 := + ⟨Finset.prod_nonneg fun _ _ => (rd_h_mem δ _).1, + Finset.prod_le_one₀ (fun _ _ => (rd_h_mem δ _).1) fun _ _ => (rd_h_mem δ _).2⟩ + +lemma rd_eta_lip {δ : ℝ} (hδ : 0 < δ) (x y : Fin m → ℝ) : + |cubeCutoff δ x - cubeCutoff δ y| ≤ m * dist x y / δ := by + refine (rd_abs_prod_sub_prod_le _ _ _ (fun i => rd_h_mem δ _) fun i => rd_h_mem δ _).trans ?_ + calc ∑ i, |boundaryRamp δ (x i) - boundaryRamp δ (y i)| ≤ ∑ _i : Fin m, dist x y / δ := by + gcongr with i + refine (rd_h_lip hδ _ _).trans ?_ + gcongr + rw [← Real.dist_eq]; exact dist_le_pi_dist x y i + _ = m * dist x y / δ := by simp [Finset.card_univ]; ring + +lemma rd_eta_zero {δ : ℝ} (hδ : 0 < δ) {x : Fin m → ℝ} (hx : x ∉ unitCube m) : + cubeCutoff δ x = 0 := by + simp only [unitCube, Set.mem_pi, Set.mem_univ, true_implies, Set.mem_Ioo, not_forall, + not_and_or, not_lt] at hx + obtain ⟨i, hi⟩ := hx + exact Finset.prod_eq_zero (Finset.mem_univ i) (rd_h_zero hδ hi) + +/-- The inner cube `(δ, 1 − δ)^m`. -/ +def innerCube (δ : ℝ) : Set (Fin m → ℝ) := Set.pi univ fun _ => Ioo δ (1 - δ) + +lemma rd_inner_isOpen (δ : ℝ) : IsOpen (innerCube (m := m) δ) := + isOpen_set_pi Set.finite_univ fun _ _ => isOpen_Ioo + +lemma rd_eta_one {δ : ℝ} (hδ : 0 < δ) {x : Fin m → ℝ} (hx : x ∈ innerCube δ) : + cubeCutoff δ x = 1 := + Finset.prod_eq_one fun i _ => rd_h_one hδ (hx i (Set.mem_univ _)).1.le + (hx i (Set.mem_univ _)).2.le + +/-- The cut-off equal to `1` on `closedBall x ((1 - δ) r)`, `0` outside `ball x r`, and +`1/(δ r)`-Lipschitz. -/ +noncomputable def ballCutoff (x : Fin m → ℝ) (r δ : ℝ) (y : Fin m → ℝ) : ℝ := + max 0 (min 1 ((r - ‖y - x‖) / (δ * r))) + +theorem ballCutoff_nonneg (x : Fin m → ℝ) (r δ : ℝ) (y : Fin m → ℝ) : 0 ≤ ballCutoff x r δ y := + le_max_left _ _ + +theorem ballCutoff_le_one (x : Fin m → ℝ) (r δ : ℝ) (y : Fin m → ℝ) : ballCutoff x r δ y ≤ 1 := + max_le zero_le_one (min_le_left _ _) + +theorem ballCutoff_eq_one {x : Fin m → ℝ} {r δ : ℝ} (hr : 0 < r) (hδ : 0 < δ) {y : Fin m → ℝ} + (hy : ‖y - x‖ ≤ (1 - δ) * r) : ballCutoff x r δ y = 1 := by + have h : 1 ≤ (r - ‖y - x‖) / (δ * r) := by + rw [le_div_iff₀ (by positivity)]; nlinarith + simp [ballCutoff, min_eq_left h] + +theorem ballCutoff_eq_zero {x : Fin m → ℝ} {r δ : ℝ} (hr : 0 < r) (hδ : 0 < δ) {y : Fin m → ℝ} + (hy : r ≤ ‖y - x‖) : ballCutoff x r δ y = 0 := by + have h : (r - ‖y - x‖) / (δ * r) ≤ 0 := + div_nonpos_of_nonpos_of_nonneg (by linarith) (by positivity) + simp [ballCutoff, (min_le_right _ _).trans h] + +theorem ballCutoff_lipschitz (x : Fin m → ℝ) {r δ : ℝ} (hr : 0 < r) (hδ : 0 < δ) : + LipschitzWith (1 / (δ * r)).toNNReal (ballCutoff x r δ) := by + have hu : LipschitzWith (1 / (δ * r)).toNNReal fun y : Fin m → ℝ => (r - ‖y - x‖) / (δ * r) := by + refine LipschitzWith.of_dist_le_mul fun y z => ?_ + rw [Real.dist_eq, Real.coe_toNNReal _ (by positivity), ← sub_div, abs_div, + abs_of_pos (by positivity : 0 < δ * r), div_le_iff₀ (by positivity : 0 < δ * r)] + have : |r - ‖y - x‖ - (r - ‖z - x‖)| ≤ dist y z := by + rw [show r - ‖y - x‖ - (r - ‖z - x‖) = ‖z - x‖ - ‖y - x‖ by ring, dist_comm, + dist_eq_norm] + calc |‖z - x‖ - ‖y - x‖| ≤ ‖(z - x) - (y - x)‖ := abs_norm_sub_norm_le _ _ + _ = ‖z - y‖ := by rw [sub_sub_sub_cancel_right] + calc |r - ‖y - x‖ - (r - ‖z - x‖)| ≤ dist y z := this + _ = 1 / (δ * r) * dist y z * (δ * r) := by field_simp + have := (hu.min_const 1).const_max 0 + convert this using 2 with y + simp only [ballCutoff, min_comm] + +/-- A product `θ g` with `θ ∈ [0, 1]` vanishing outside `S` and `|g| ≤ B` on `S` is +`(L_g + L_θ B)`-Lipschitz. -/ +theorem cv_lipschitz_smul {E F : Type*} [PseudoMetricSpace E] [SeminormedAddCommGroup F] + [NormedSpace ℝ F] {θ : E → ℝ} {g : E → F} {Lθ Lg : NNReal} {B : ℝ} {S : Set E} + (hθ : LipschitzWith Lθ θ) (hθ0 : ∀ y, 0 ≤ θ y) (hθ1 : ∀ y, θ y ≤ 1) + (hθS : ∀ y ∉ S, θ y = 0) (hg : LipschitzWith Lg g) (hgS : ∀ y ∈ S, ‖g y‖ ≤ B) (hB : 0 ≤ B) : + LipschitzWith (Lg + Lθ * B.toNNReal) fun y => θ y • g y := by + refine LipschitzWith.of_dist_le_mul fun y z => ?_ + rw [dist_eq_norm] + push_cast + rw [Real.coe_toNNReal _ hB] + have hθd : |θ y - θ z| ≤ Lθ * dist y z := by + rw [← Real.dist_eq]; exact hθ.dist_le_mul y z + have hgd : ‖g y - g z‖ ≤ Lg * dist y z := by + rw [← dist_eq_norm]; exact hg.dist_le_mul y z + by_cases hz : z ∈ S + · -- θ y g y - θ z g z = θ y (g y - g z) + (θ y - θ z) g z + have e : θ y • g y - θ z • g z = θ y • (g y - g z) + (θ y - θ z) • g z := by + rw [smul_sub, sub_smul]; abel + rw [e] + calc ‖θ y • (g y - g z) + (θ y - θ z) • g z‖ + ≤ ‖θ y • (g y - g z)‖ + ‖(θ y - θ z) • g z‖ := norm_add_le _ _ + _ = |θ y| * ‖g y - g z‖ + |θ y - θ z| * ‖g z‖ := by + rw [norm_smul, norm_smul, Real.norm_eq_abs, Real.norm_eq_abs] + _ ≤ 1 * (Lg * dist y z) + (Lθ * dist y z) * B := by + gcongr + · rw [abs_of_nonneg (hθ0 y)]; exact hθ1 y + · exact hgS z hz + _ = (Lg + Lθ * B) * dist y z := by ring + · by_cases hy : y ∈ S + · have e : θ y • g y - θ z • g z = (θ y - θ z) • g y := by + rw [hθS z hz, zero_smul, sub_zero, sub_zero] + rw [e, norm_smul, Real.norm_eq_abs] + calc |θ y - θ z| * ‖g y‖ ≤ (Lθ * dist y z) * B := + mul_le_mul hθd (hgS y hy) (norm_nonneg _) (by positivity) + _ ≤ (Lg + Lθ * B) * dist y z := by + have h1 : (0 : ℝ) ≤ Lg * dist y z := mul_nonneg Lg.2 dist_nonneg + nlinarith + · rw [hθS y hy, hθS z hz, zero_smul, zero_smul, sub_zero, norm_zero] + exact mul_nonneg (by positivity) dist_nonneg + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/FDeriv.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/FDeriv.lean new file mode 100644 index 0000000000..6d02ab55af --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/FDeriv.lean @@ -0,0 +1,132 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Basic +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.ZeroSet + +/-! +# Real Lipschitz functions on `ℝ^m`: derivatives almost everywhere + +Facts about the derivatives of Lipschitz functions `f, g : ℝ^m → ℝ` (`ℝ^m = Fin m → ℝ`), which +exist almost everywhere by Rademacher's theorem. They are standard. + +* `ae_fderiv_eq_zero_of_eq_zero`: the derivative vanishes almost everywhere on the zero set (the + real-valued form of `rd_ae_fderiv_eq_zero`); +* `ae_fderiv_max_eq_or`: almost everywhere, the derivative of `max f g` is that of `f` or that of + `g`; +* `tendsto_slope_of_differentiableAt`: the difference quotient `t⁻¹ (f (x + t v) − f (x))` tends + to `∂_v f (x)` where `f` is differentiable; +* `abs_slope_le_of_lipschitzWith`: the difference quotients of a `K`-Lipschitz `f` in a direction + `v` are bounded by `K ‖v‖`; +* `tendsto_setIntegral_slope_mul`: the integral over a set of finite measure of the product of two + difference quotients in a direction `v` tends to `∫ ∂_v f ∂_v g` (dominated convergence). +-/ + +@[expose] public section + +open MeasureTheory Filter Topology + +namespace CalculusOfVariations + +variable {m : ℕ} + +/-- The derivative of a real Lipschitz function vanishes almost everywhere on its zero set (the +real-valued form of `rd_ae_fderiv_eq_zero`). -/ +theorem ae_fderiv_eq_zero_of_eq_zero {f : (Fin m → ℝ) → ℝ} {K : NNReal} (hf : LipschitzWith K f) : + ∀ᵐ x ∂(volume : Measure (Fin m → ℝ)), f x = 0 → fderiv ℝ f x = 0 := by + have hφ : LipschitzWith K (fun x (_ : Fin 1) => f x) := + LipschitzWith.of_dist_le_mul fun x y => by rw [dist_pi_const]; exact hf.dist_le_mul x y + filter_upwards [rd_ae_fderiv_eq_zero hφ, hf.ae_differentiableAt] with x hx hdiff h0 + have h1 : HasFDerivAt (fun x (_ : Fin 1) => f x) + (ContinuousLinearMap.pi fun _ => fderiv ℝ f x) x := + hasFDerivAt_pi'.2 fun _ => hdiff.hasFDerivAt + have h2 := hx (funext fun _ => h0) + rw [h1.fderiv] at h2 + ext v + simpa using congrArg (fun L => L v 0) h2 + +/-- **The derivative of a maximum.** For real Lipschitz `f`, `g`, almost everywhere the derivative +of `max f g` is the derivative of `f` or that of `g`: where `f > g` or `f < g` the maximum is +locally `f` or `g`, and almost everywhere on `{f = g}` the derivative of `max f g − g` vanishes +(the zero-set lemma `ae_fderiv_eq_zero_of_eq_zero`). -/ +theorem ae_fderiv_max_eq_or {f g : (Fin m → ℝ) → ℝ} {Kf Kg : NNReal} (hf : LipschitzWith Kf f) + (hg : LipschitzWith Kg g) : + ∀ᵐ x ∂(volume : Measure (Fin m → ℝ)), + fderiv ℝ (fun y => max (f y) (g y)) x = fderiv ℝ f x ∨ + fderiv ℝ (fun y => max (f y) (g y)) x = fderiv ℝ g x := by + have hM := hf.max hg + filter_upwards [ae_fderiv_eq_zero_of_eq_zero (hM.sub hg), hg.ae_differentiableAt, + hM.ae_differentiableAt] with x h0 hgd hMd + rcases lt_trichotomy (f x) (g x) with hlt | heq | hgt + · right + apply EventuallyEq.fderiv_eq + filter_upwards [hf.continuous.continuousAt.eventually_lt hg.continuous.continuousAt hlt] + with y hy + exact max_eq_right hy.le + · right + have h := h0 (by simp [heq]) + rw [fderiv_fun_sub hMd hgd, sub_eq_zero] at h + exact h + · left + apply EventuallyEq.fderiv_eq + filter_upwards [hg.continuous.continuousAt.eventually_lt hf.continuous.continuousAt hgt] + with y hy + exact max_eq_left hy.le + +/-- The difference quotient `t⁻¹ (f (x + t v) − f (x))` of a differentiable `f` tends to +`∂_v f (x)` as `t → 0`, `t ≠ 0`. -/ +theorem tendsto_slope_of_differentiableAt {f : (Fin m → ℝ) → ℝ} {x : Fin m → ℝ} + (hf : DifferentiableAt ℝ f x) (v : Fin m → ℝ) : + Tendsto (fun t : ℝ => t⁻¹ * (f (x + t • v) - f x)) (𝓝[≠] 0) (𝓝 (fderiv ℝ f x v)) := by + have h1 : HasDerivAt (fun t : ℝ => x + t • v) v 0 := by + simpa using ((hasDerivAt_id (0 : ℝ)).smul_const v).const_add x + have h2 : HasDerivAt (fun t : ℝ => f (x + t • v)) (fderiv ℝ f x v) 0 := by + have h3 : HasFDerivAt f (fderiv ℝ f x) (x + (0 : ℝ) • v) := by + rw [zero_smul, add_zero]; exact hf.hasFDerivAt + exact h3.comp_hasDerivAt (0 : ℝ) h1 + simpa using h2.tendsto_slope_zero + +/-- `|t⁻¹ (f (x + t v) − f (x))| ≤ K ‖v‖` for a `K`-Lipschitz `f`. -/ +theorem abs_slope_le_of_lipschitzWith {f : (Fin m → ℝ) → ℝ} {K : NNReal} (hf : LipschitzWith K f) + (x v : Fin m → ℝ) (t : ℝ) : |t⁻¹ * (f (x + t • v) - f x)| ≤ K * ‖v‖ := by + rcases eq_or_ne t 0 with rfl | ht + · simp only [inv_zero, zero_smul, add_zero, sub_self, mul_zero, abs_zero] + positivity + have h := hf.dist_le_mul (x + t • v) x + rw [dist_eq_norm, dist_eq_norm, add_sub_cancel_left, norm_smul, Real.norm_eq_abs] at h + rw [abs_mul, abs_inv] + calc |t|⁻¹ * |f (x + t • v) - f x| ≤ |t|⁻¹ * (K * (|t| * ‖v‖)) := by + gcongr; rwa [← Real.norm_eq_abs] + _ = K * ‖v‖ := by field_simp + +/-- **Difference quotients and dominated convergence.** For real Lipschitz `f`, `g`, a direction +`v` and a set `s` of finite measure, +`∫_s t⁻¹ (f (x + t v) − f x) · t⁻¹ (g (x + t v) − g x) dx → ∫_s ∂_v f ∂_v g` as `t → 0`. -/ +theorem tendsto_setIntegral_slope_mul {f g : (Fin m → ℝ) → ℝ} {Kf Kg : NNReal} + (hf : LipschitzWith Kf f) (hg : LipschitzWith Kg g) (v : Fin m → ℝ) + {s : Set (Fin m → ℝ)} (hs : volume s ≠ ⊤) : + Tendsto (fun t : ℝ => ∫ x in s, + (t⁻¹ * (f (x + t • v) - f x)) * (t⁻¹ * (g (x + t • v) - g x))) + (𝓝[≠] 0) (𝓝 (∫ x in s, fderiv ℝ f x v * fderiv ℝ g x v)) := by + have : IsFiniteMeasure (volume.restrict s) := isFiniteMeasure_restrict.2 hs + refine tendsto_integral_filter_of_dominated_convergence (fun _ => (Kf * ‖v‖) * (Kg * ‖v‖)) + (Eventually.of_forall fun t => ?_) (Eventually.of_forall fun t => ?_) + (integrable_const _) ?_ + · have hcf := hf.continuous + have hcg := hg.continuous + exact (Continuous.aestronglyMeasurable (by fun_prop)) + · refine Eventually.of_forall fun x => ?_ + rw [Real.norm_eq_abs, abs_mul] + exact mul_le_mul (abs_slope_le_of_lipschitzWith hf x v t) + (abs_slope_le_of_lipschitzWith hg x v t) (abs_nonneg _) (by positivity) + · filter_upwards [ae_restrict_of_ae hf.ae_differentiableAt, + ae_restrict_of_ae hg.ae_differentiableAt] with x hfx hgx + exact (tendsto_slope_of_differentiableAt hfx v).mul (tendsto_slope_of_differentiableAt hgx v) + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/FundamentalDomain.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/FundamentalDomain.lean new file mode 100644 index 0000000000..42c82fb1e5 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/FundamentalDomain.lean @@ -0,0 +1,114 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Basic +import Mathlib.Algebra.Module.ZLattice.Basic +import Mathlib.MeasureTheory.Constructions.Pi +import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar + +/-! +# The unit cube as a fundamental domain of `ℤ^m` + +Two facts about `ℤ^m`-periodic functions on `ℝ^m = Fin m → ℝ` and the open unit cube +`(0, 1)^m = unitCube m`, which is, up to a null set, a fundamental domain of `ℤ^m`: + +* `setIntegral_unitCube_comp_add`: translation invariance, `∫_{(0,1)^m} f (x + a) dx = + ∫_{(0,1)^m} f (x) dx` for a periodic `f`; +* `ae_of_ae_restrict_unitCube_of_periodic`: a property that holds almost everywhere on `(0, 1)^m` + and passes from `x + k` to `x` for every `k ∈ ℤ^m` (in particular, a `ℤ^m`-periodic property) + holds almost everywhere on `ℝ^m`. + +Translation invariance comes from Mathlib's fundamental domains: `[0, 1)^m` is a fundamental domain +of the lattice `ℤ^m` (`ZSpan.isAddFundamentalDomain`), so is its translate by `a`, and two +fundamental domains carry the same integral of a `ℤ^m`-invariant function +(`IsAddFundamentalDomain.setIntegral_eq`); `(0, 1)^m` differs from `[0, 1)^m` by a null set. These +facts are standard. +-/ + +@[expose] public section + +open MeasureTheory Filter + +namespace CalculusOfVariations + +open scoped Pointwise + +variable {m : ℕ} + +/-- Translation invariance of the integral over the unit cube: for a `ℤ^m`-periodic `f`, +`∫_{(0,1)^m} f (x + a) dx = ∫_{(0,1)^m} f (x) dx`. No integrability is needed: two fundamental +domains carry the same integral of every `ℤ^m`-invariant function +(`IsAddFundamentalDomain.setIntegral_eq`). -/ +theorem setIntegral_unitCube_comp_add {f : (Fin m → ℝ) → ℝ} + (hf : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), f (x + fun i => (z i : ℝ)) = f x) (a : Fin m → ℝ) : + ∫ x in unitCube m, f (x + a) = ∫ x in unitCube m, f x := by + set b := Pi.basisFun ℝ (Fin m) + set F : Set (Fin m → ℝ) := Set.pi Set.univ fun _ => Set.Ico (0:ℝ) 1 + -- `[0, 1)^m` is a fundamental domain of `ℤ^m = span_ℤ (standard basis)` + have hFD : IsAddFundamentalDomain (Submodule.span ℤ (Set.range b)) F volume := by + have := ZSpan.isAddFundamentalDomain b volume + rwa [ZSpan.fundamentalDomain_pi_basisFun] at this + have hQF : (unitCube m : Set (Fin m → ℝ)) =ᵐ[volume] F := by + have h1 := Measure.univ_pi_Ioo_ae_eq_Icc (μ := fun _ : Fin m => (volume : Measure ℝ)) + (f := fun _ => (0:ℝ)) (g := fun _ => 1) + have h2 := Measure.univ_pi_Ico_ae_eq_Icc (μ := fun _ : Fin m => (volume : Measure ℝ)) + (f := fun _ => (0:ℝ)) (g := fun _ => 1) + exact h1.trans h2.symm + -- `f` is invariant under the lattice + have hinv : ∀ (g : Submodule.span ℤ (Set.range b)) (x : Fin m → ℝ), f (g +ᵥ x) = f x := by + intro g x + have hg := (Module.Basis.mem_span_iff_repr_mem ℤ b (g : Fin m → ℝ)).1 g.2 + choose z hz using fun i => hg i + have : (g : Fin m → ℝ) = fun i => (z i : ℝ) := by + funext i + have := hz i + simp only [b, Pi.basisFun_repr, algebraMap_int_eq, eq_intCast] at this + exact this.symm + rw [Submodule.vadd_def, vadd_eq_add, this, add_comm] + exact hf x z + have : VAddInvariantMeasure (Submodule.span ℤ (Set.range b)) (Fin m → ℝ) volume := + ⟨fun c s _ => measure_preimage_add volume (c : Fin m → ℝ) s⟩ + -- the translate `a + [0, 1)^m` is a fundamental domain too + have hFD' : IsAddFundamentalDomain (Submodule.span ℤ (Set.range b)) (a +ᵥ F) volume := + hFD.vadd_of_comm a + have h := (measurePreserving_add_right (volume : Measure (Fin m → ℝ)) a).setIntegral_preimage_emb + (measurableEmbedding_addRight a) f (a +ᵥ F) + have hpre : (fun x => x + a) ⁻¹' (a +ᵥ F) = F := by + ext x + simp [Set.mem_vadd_set, add_comm] + rw [hpre] at h + rw [setIntegral_congr_set hQF, setIntegral_congr_set hQF, h] + exact hFD'.setIntegral_eq hFD hinv + +/-- A property that holds almost everywhere on the unit cube `(0, 1)^m` and passes from `x + k` to +`x` for every `k ∈ ℤ^m` holds almost everywhere on `ℝ^m`: every `x` has a translate `x − ⌊x⌋` in +`[0, 1)^m`, which differs from the open cube by a null set, and the translations by `ℤ^m` preserve +the Lebesgue measure. -/ +theorem ae_of_ae_restrict_unitCube_of_periodic {P : (Fin m → ℝ) → Prop} + (hP : ∀ (x : Fin m → ℝ) (k : Fin m → ℤ), P (x + fun i => (k i : ℝ)) → P x) + (h : ∀ᵐ x ∂(volume.restrict (unitCube m)), P x) : + ∀ᵐ x ∂(volume : Measure (Fin m → ℝ)), P x := by + have hIco : (unitCube m : Set (Fin m → ℝ)) + =ᵐ[(volume : Measure (Fin m → ℝ))] (Set.pi Set.univ fun _ : Fin m => Set.Ico (0 : ℝ) 1) := + (Measure.univ_pi_Ioo_ae_eq_Icc (μ := fun _ : Fin m => (volume : Measure ℝ)) + (f := fun _ => (0 : ℝ)) (g := fun _ => 1)).trans + (Measure.univ_pi_Ico_ae_eq_Icc (μ := fun _ : Fin m => (volume : Measure ℝ)) + (f := fun _ => (0 : ℝ)) (g := fun _ => 1)).symm + rw [Measure.restrict_congr_set hIco, + ae_restrict_iff' (MeasurableSet.univ_pi fun _ => measurableSet_Ico)] at h + have hk : ∀ k : Fin m → ℤ, ∀ᵐ x : Fin m → ℝ, + (x + fun i => (k i : ℝ)) ∈ (Set.pi Set.univ fun _ : Fin m => Set.Ico (0 : ℝ) 1) → + P (x + fun i => (k i : ℝ)) := fun k => + (measurePreserving_add_right volume (fun i => (k i : ℝ))).quasiMeasurePreserving.ae h + filter_upwards [ae_all_iff.2 hk] with x hx + refine hP x (fun i => -⌊x i⌋) (hx _ fun i _ => ?_) + simp only [Int.cast_neg, Set.mem_Ico, Pi.add_apply] + constructor <;> linarith [Int.floor_le (x i), Int.lt_floor_add_one (x i)] + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Gradient.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Gradient.lean new file mode 100644 index 0000000000..5cd44274b9 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Gradient.lean @@ -0,0 +1,183 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Basic +public import Mathlib.Analysis.Convex.Continuous +public import Mathlib.Data.Matrix.Basis +public import Mathlib.MeasureTheory.Measure.Haar.NormedSpace +public import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar +public import Mathlib.Analysis.Calculus.FDeriv.Equiv +public import Mathlib.Analysis.Calculus.FDeriv.Measurable +public import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic +public import Mathlib.MeasureTheory.Integral.Prod +public import Mathlib.Analysis.Calculus.Deriv.Mul +public import Mathlib.Analysis.Calculus.Deriv.Comp +public import Mathlib.Analysis.Calculus.Deriv.Shift +public import Mathlib.Analysis.Calculus.FDeriv.Mul +public import Mathlib.MeasureTheory.Covering.BesicovitchVectorSpace +public import Mathlib.Analysis.Calculus.Rademacher +public import Mathlib.Analysis.Calculus.Rademacher +public import Mathlib.MeasureTheory.Covering.BesicovitchVectorSpace +public import Mathlib.MeasureTheory.Measure.Haar.NormedSpace +public import Mathlib.MeasureTheory.Constructions.BorelSpace.Order + +/-! +# The gradient of a Lipschitz map + +For a `K`-Lipschitz `φ : ℝ^m → ℝ^d` (sup norms): the entries of `grad φ` are bounded by `K`, +`grad φ` is measurable, it depends only on the germ of `φ`, it is additive at points of +differentiability, and `x ↦ f (A + ∇φ (x))` is bounded and integrable on sets of finite measure +for a Borel, locally bounded `f`. + +Two families of lemmas cover the same ground (prefixes `rd_` and `cv_`); they are kept apart for +now. +-/ + +@[expose] public section + +open Metric Set MeasureTheory Filter Topology +open scoped Pointwise + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-- `|∂_k φ_i| ≤ K` for a `K`-Lipschitz `φ`. -/ +lemma rd_grad_abs_le {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} (hφ : LipschitzWith K φ) + (x : Fin m → ℝ) (i : Fin d) (k : Fin m) : |grad φ x i k| ≤ K := by + have hi : LipschitzWith K (fun y => φ y i) := by + have h := (LipschitzWith.eval (α := fun _ : Fin d => ℝ) i).comp hφ + rw [one_mul] at h + exact h + simp only [grad, Matrix.of_apply] + rw [← Real.norm_eq_abs] + calc ‖fderiv ℝ (fun y => φ y i) x (Pi.single k 1)‖ + ≤ ‖fderiv ℝ (fun y => φ y i) x‖ * ‖(Pi.single k 1 : Fin m → ℝ)‖ := + ContinuousLinearMap.le_opNorm _ _ + _ ≤ K * 1 := by + gcongr + · exact norm_fderiv_le_of_lipschitz ℝ hi + · rw [Pi.norm_single, norm_one] + _ = K := mul_one _ + +lemma rd_measurable_add_grad (A : Matrix (Fin d) (Fin m) ℝ) (φ : (Fin m → ℝ) → Fin d → ℝ) : + Measurable fun x => A + grad φ x := + Measurable.of_eval_matrix _ fun i k => by + simp only [Matrix.add_apply, grad, Matrix.of_apply] + exact measurable_const.add (measurable_fderiv_apply_const ℝ (fun y => φ y i) _) + +/-- A locally bounded function is bounded on compact sets. -/ +private lemma rd_bdd_of_compact {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hbdd : IsLocallyBounded f) + {K : Set (Matrix (Fin d) (Fin m) ℝ)} (hK : IsCompact K) : ∃ C, ∀ M ∈ K, |f M| ≤ C := by + choose U hU C hC using hbdd + obtain ⟨t, -, hcover⟩ := hK.elim_nhds_subcover U (fun x _ => hU x) + refine ⟨∑ x ∈ t, |C x|, fun M hM => ?_⟩ + obtain ⟨x, hx, hMx⟩ := Set.mem_iUnion₂.1 (hcover hM) + exact (hC x M hMx).trans ((le_abs_self _).trans + (Finset.single_le_sum (f := fun x => |C x|) (fun _ _ => abs_nonneg _) hx)) + +private lemma rd_isCompact_box (B : Matrix (Fin d) (Fin m) ℝ) (K : ℝ) : + IsCompact {M : Matrix (Fin d) (Fin m) ℝ | ∀ i k, |M i k - B i k| ≤ K} := by + have : {M : Matrix (Fin d) (Fin m) ℝ | ∀ i k, |M i k - B i k| ≤ K} = + Set.pi univ fun i => Set.pi univ fun k => Icc (B i k - K) (B i k + K) := by + ext M + constructor + · intro h i _ k _ + exact ⟨by linarith [(abs_le.1 (h i k)).1], by linarith [(abs_le.1 (h i k)).2]⟩ + · intro h i k + have := h i (Set.mem_univ _) k (Set.mem_univ _) + exact abs_le.2 ⟨by linarith [this.1], by linarith [this.2]⟩ + rw [this] + exact isCompact_univ_pi fun i => isCompact_univ_pi fun k => isCompact_Icc + +/-- A bound for `f` on all matrices `A + G` with entries `|G_{ik}| ≤ L`. -/ +lemma rd_bound_near {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hbdd : IsLocallyBounded f) + (A : Matrix (Fin d) (Fin m) ℝ) (L : ℝ) : + ∃ C, 0 ≤ C ∧ ∀ G : Matrix (Fin d) (Fin m) ℝ, (∀ i k, |G i k| ≤ L) → |f (A + G)| ≤ C := by + obtain ⟨C, hC⟩ := rd_bdd_of_compact hbdd (rd_isCompact_box A L) + refine ⟨max C 0, le_max_right _ _, fun G hG => (hC _ fun i k => ?_).trans (le_max_left _ _)⟩ + simpa using hG i k + +/-- A continuous function is locally bounded. -/ +lemma isLocallyBounded_of_continuous {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : Continuous f) : + IsLocallyBounded f := fun A => by + refine ⟨f ⁻¹' Metric.ball (f A) 1, hf.continuousAt.preimage_mem_nhds + (Metric.ball_mem_nhds _ one_pos), |f A| + 1, fun B hB => ?_⟩ + rw [Set.mem_preimage, Metric.mem_ball, Real.dist_eq] at hB + linarith [abs_sub_abs_le_abs_sub (f B) (f A)] + +/-- For a Borel, locally bounded `f` and a Lipschitz `φ`, `x ↦ f (A + ∇φ (x))` is integrable on +sets of finite measure (it is measurable and bounded). -/ +lemma rd_integrableOn {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : Measurable f) + (hbdd : IsLocallyBounded f) (A : Matrix (Fin d) (Fin m) ℝ) {φ : (Fin m → ℝ) → Fin d → ℝ} + {K : NNReal} (hφ : LipschitzWith K φ) {s : Set (Fin m → ℝ)} (hs : volume s < ⊤) : + IntegrableOn (fun x => f (A + grad φ x)) s := by + obtain ⟨C, -, hC⟩ := rd_bound_near hbdd A K + refine IntegrableOn.of_bound hs + (hf.comp (rd_measurable_add_grad A φ)).aestronglyMeasurable C + (Eventually.of_forall fun x => ?_) + rw [Real.norm_eq_abs] + exact hC _ (rd_grad_abs_le hφ x) + +lemma rd_volume_unitCube (m : ℕ) : volume (unitCube m) = 1 := by + simp [unitCube, Real.volume_pi_Ioo] + +/-- The entries of the gradient of a `K`-Lipschitz map are bounded by `K`. -/ +theorem cv_grad_abs_le {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} (hφ : LipschitzWith K φ) + (x : Fin m → ℝ) (i : Fin d) (k : Fin m) : |grad φ x i k| ≤ K := + rd_grad_abs_le hφ x i k + +/-- The gradient, as a map to `Fin d → Fin m → ℝ`, is measurable. -/ +theorem cv_measurable_grad (φ : (Fin m → ℝ) → Fin d → ℝ) : + Measurable (fun x i k => grad φ x i k : (Fin m → ℝ) → Fin d → Fin m → ℝ) := + Measurable.of_eval fun i => Measurable.of_eval fun k => + measurable_fderiv_apply_const ℝ (fun y => φ y i) (Pi.single k 1) + +/-- `x ↦ F (A + ∇φ x)` is measurable for a measurable `F` on `Fin d → Fin m → ℝ`. -/ +theorem cv_measurable_comp_grad {F : (Fin d → Fin m → ℝ) → ℝ} (hF : Measurable F) + (A : Matrix (Fin d) (Fin m) ℝ) (φ : (Fin m → ℝ) → Fin d → ℝ) : + Measurable fun x => F (fun i k => A i k + grad φ x i k) := + hF.comp (Measurable.of_eval fun i => Measurable.of_eval fun k => + measurable_const.add ((measurable_pi_iff.1 ((measurable_pi_iff.1 (cv_measurable_grad φ)) i)) k)) + +/-- A continuous function of a matrix is continuous on `Fin d → Fin m → ℝ`. -/ +theorem cv_continuous_of {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : Continuous f) : + Continuous fun X : Fin d → Fin m → ℝ => f (Matrix.of X) := hf + +/-- The gradient at `x` only depends on the map near `x`. -/ +theorem cv_grad_congr {φ ψ : (Fin m → ℝ) → Fin d → ℝ} {x : Fin m → ℝ} (h : φ =ᶠ[𝓝 x] ψ) : + grad φ x = grad ψ x := by + ext i k + change fderiv ℝ (fun y => φ y i) x (Pi.single k 1) = fderiv ℝ (fun y => ψ y i) x (Pi.single k 1) + have := (h.fun_comp (fun v : Fin d → ℝ => v i)).fderiv_eq (𝕜 := ℝ) + exact congrArg (fun L => L (Pi.single k 1)) this + +/-- The gradient of a map vanishing near `x` vanishes at `x`. -/ +theorem cv_grad_eq_zero {φ : (Fin m → ℝ) → Fin d → ℝ} {x : Fin m → ℝ} + (h : φ =ᶠ[𝓝 x] fun _ => 0) : grad φ x = 0 := by + rw [cv_grad_congr h] + ext i k + change fderiv ℝ (fun _ => (0 : Fin d → ℝ) i) x (Pi.single k 1) = 0 + simp + +/-- The gradient of the sum of two maps, at a point where both are differentiable. -/ +theorem cv_grad_add {φ ψ : (Fin m → ℝ) → Fin d → ℝ} {x : Fin m → ℝ} + (hφ : DifferentiableAt ℝ φ x) (hψ : DifferentiableAt ℝ ψ x) : + grad (φ + ψ) x = grad φ x + grad ψ x := by + ext i k + change fderiv ℝ (fun y => φ y i + ψ y i) x (Pi.single k 1) = + fderiv ℝ (fun y => φ y i) x (Pi.single k 1) + fderiv ℝ (fun y => ψ y i) x (Pi.single k 1) + have h1 : DifferentiableAt ℝ (fun y => φ y i) x := + (differentiableAt_pi.1 hφ) i + have h2 : DifferentiableAt ℝ (fun y => ψ y i) x := + (differentiableAt_pi.1 hψ) i + rw [fderiv_fun_add h1 h2] + rfl + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/GradientConstraint.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/GradientConstraint.lean new file mode 100644 index 0000000000..9f8d853b3d --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/GradientConstraint.lean @@ -0,0 +1,213 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Convex.SupportFunction +public import Mathlib.MeasureTheory.Measure.Lebesgue.Basic +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.FundamentalDomain +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Mollify +import Mathlib.Analysis.Calculus.Deriv.MeanValue +import Mathlib.Analysis.Calculus.LineDeriv.Measurable + +/-! +# A gradient constraint `p + Dξ ∈ K` on Lipschitz `ℤ^m`-periodic functions + +For `ξ : ℝ^m → ℝ` Lipschitz and `ℤ^m`-periodic, `p ∈ ℝ^m` and `K ⊂ ℝ^m` compact, the constraint +"`p + Dξ ∈ K` almost everywhere on the unit cube `(0, 1)^m`" is equivalent to the slope bound +`ξ (y) − ξ (x) + p · (y − x) ≤ H_K (y − x)` for all `x, y` (`H_K = supportFun K`), when `K` is also +convex and nonempty. These facts are standard. + +* `sub_add_dotProduct_le_supportFun_of_ae_mem`: the constraint implies the slope bound. The + constraint holds almost everywhere on `ℝ^m` by periodicity + (`ae_of_ae_restrict_unitCube_of_periodic`); the mollifications `ρ_n ⋆ ξ` are smooth with + `D (ρ_n ⋆ ξ) v = ρ_n ⋆ ∂_v ξ ≤ H_K (v) − p · v` (`plancherelMollify_fderiv`), hence satisfy the + slope bound by the mean value theorem, and converge to `ξ` pointwise. +* `add_fderiv_mem_of_sub_add_dotProduct_le_supportFun`: for `K` also convex and nonempty, the + slope bound implies `p + Dξ (x) ∈ K` at every point of differentiability + (`mem_of_forall_dotProduct_le_supportFun`). +* `exists_lipschitzWith_of_sub_add_dotProduct_le_supportFun`: the slope bound implies a Lipschitz + bound that depends only on `K` and `p`. +* `exists_tendsto_of_ae_restrict_unitCube_tendsto`: an equi-Lipschitz sequence of `ℤ^m`-periodic + functions that converges almost everywhere on the unit cube converges everywhere. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology + +namespace CalculusOfVariations + +variable {m : ℕ} + +/-- The derivative of a `ℤ^m`-periodic function is `ℤ^m`-periodic. -/ +private theorem gc_fderiv_periodic {ξ : (Fin m → ℝ) → ℝ} + (hper : ∀ x (k : Fin m → ℤ), ξ (x + fun i => (k i : ℝ)) = ξ x) (x : Fin m → ℝ) + (k : Fin m → ℤ) : fderiv ℝ ξ (x + fun i => (k i : ℝ)) = fderiv ℝ ξ x := by + rw [← fderiv_comp_add_right] + congr 1 + funext y + exact hper y k + +/-- If `p + Dξ ∈ K` almost everywhere on `ℝ^m`, then `D (ρ ⋆ ξ) (x) v ≤ H_K (v) − p · v`. -/ +private theorem gc_fderiv_mollify_le {K : Set (Fin m → ℝ)} (hKc : IsCompact K) {p : Fin m → ℝ} + {ξ : (Fin m → ℝ) → ℝ} {C : NNReal} (hξ : LipschitzWith C ξ) + (hall : ∀ᵐ z, DifferentiableAt ℝ ξ z ∧ p + (fun j => fderiv ℝ ξ z (Pi.single j 1)) ∈ K) + (ρ : ContDiffBump (0 : Fin m → ℝ)) (x v : Fin m → ℝ) : + fderiv ℝ (plancherelMollify volume ρ ξ) x v ≤ supportFun K v - p ⬝ᵥ v := by + have hline : ∀ᵐ z, lineDeriv ℝ ξ z v ≤ supportFun K v - p ⬝ᵥ v := by + filter_upwards [hall] with z ⟨hd, hz⟩ + rw [hd.lineDeriv_eq_fderiv, continuousLinearMap_apply_eq_dotProduct] + have := dotProduct_le_supportFun hKc hz v + rw [add_dotProduct] at this + linarith + have hline' : ∀ᵐ t, lineDeriv ℝ ξ (x - t) v ≤ supportFun K v - p ⬝ᵥ v := + (Measure.measurePreserving_sub_left volume x).quasiMeasurePreserving.ae hline + rw [plancherelMollify_fderiv ρ hξ, plancherelMollify, convolution_lsmul] + have hρi : Integrable (ρ.normed volume) volume := + ρ.continuous_normed.integrable_of_hasCompactSupport ρ.hasCompactSupport_normed + have hi : Integrable (fun t => ρ.normed volume t • lineDeriv ℝ ξ (x - t) v) volume := by + have := hρi.bdd_mul (f := fun t => lineDeriv ℝ ξ (x - t) v) (c := C * ‖v‖) + ((measurable_lineDeriv (𝕜 := ℝ) (v := v) hξ.continuous).comp + (measurable_const.sub measurable_id)).aestronglyMeasurable + (Eventually.of_forall fun t => norm_lineDeriv_le_of_lipschitz ℝ hξ) + simpa [smul_eq_mul, mul_comm] using this + calc ∫ t, ρ.normed volume t • lineDeriv ℝ ξ (x - t) v + ≤ ∫ t, ρ.normed volume t * (supportFun K v - p ⬝ᵥ v) := + integral_mono_ae hi (hρi.mul_const _) (hline'.mono fun t ht => + mul_le_mul_of_nonneg_left ht (ρ.nonneg_normed t)) + _ = supportFun K v - p ⬝ᵥ v := by rw [integral_mul_const, ρ.integral_normed, one_mul] + +/-- The mean value theorem along the segment `[x, y]`: if `D f (z) v ≤ G (v)` for all `z, v`, then +`f (y) − f (x) ≤ G (y − x)`. -/ +private theorem gc_sub_le_of_fderiv_le {f : (Fin m → ℝ) → ℝ} (hf : Differentiable ℝ f) + {G : (Fin m → ℝ) → ℝ} (h : ∀ z v, fderiv ℝ f z v ≤ G v) (x y : Fin m → ℝ) : + f y - f x ≤ G (y - x) := by + have hg : ∀ t : ℝ, HasDerivAt (fun t : ℝ => f (x + t • (y - x))) + (fderiv ℝ f (x + t • (y - x)) (y - x)) t := by + intro t + have := (hf (x + t • (y - x))).hasFDerivAt.comp_hasDerivAt_of_eq (x := t) + (((hasDerivAt_id t).smul_const (y - x)).const_add x) (by simp) + simpa [Function.comp_def] using this + have := image_sub_le_mul_sub_of_deriv_le (f := fun t : ℝ => f (x + t • (y - x))) + (fun t => (hg t).differentiableAt) (C := G (y - x)) + (fun t => by rw [(hg t).deriv]; exact h _ _) zero_le_one + simpa using this + +/-- **The slope bound.** For `ξ` Lipschitz and `ℤ^m`-periodic with `p + Dξ ∈ K` almost everywhere +on `(0, 1)^m`, `K` compact: `ξ (y) − ξ (x) + p · (y − x) ≤ H_K (y − x)` for all `x, y`. -/ +theorem sub_add_dotProduct_le_supportFun_of_ae_mem {K : Set (Fin m → ℝ)} (hKc : IsCompact K) + {p : Fin m → ℝ} {ξ : (Fin m → ℝ) → ℝ} {C : NNReal} (hξ : LipschitzWith C ξ) + (hper : ∀ x (k : Fin m → ℤ), ξ (x + fun i => (k i : ℝ)) = ξ x) + (hK : ∀ᵐ x ∂(volume.restrict (Set.pi Set.univ fun _ : Fin m => Set.Ioo (0 : ℝ) 1)), + p + (fun j => fderiv ℝ ξ x (Pi.single j 1)) ∈ K) (x y : Fin m → ℝ) : + ξ y - ξ x + p ⬝ᵥ (y - x) ≤ supportFun K (y - x) := by + have hK' : ∀ᵐ z, p + (fun j => fderiv ℝ ξ z (Pi.single j 1)) ∈ K := + ae_of_ae_restrict_unitCube_of_periodic (fun z k hz => by rwa [gc_fderiv_periodic hper] at hz) hK + have hall := hξ.ae_differentiableAt.and hK' + have hn : ∀ n : ℕ, + plancherelMollify volume (plancherelBump m n) ξ y - + plancherelMollify volume (plancherelBump m n) ξ x + ≤ supportFun K (y - x) - p ⬝ᵥ (y - x) := fun n => + gc_sub_le_of_fderiv_le + ((plancherelMollify_contDiff _ hξ.continuous).differentiable (by simp)) + (fun z v => gc_fderiv_mollify_le hKc hξ hall _ z v) x y + have hlim : ∀ z, Tendsto (fun n : ℕ => plancherelMollify volume (plancherelBump m n) ξ z) atTop + (𝓝 (ξ z)) := fun z => + ContDiffBump.convolution_tendsto_right_of_continuous (plancherelBump_tendsto m) + hξ.continuous z + have := le_of_tendsto' ((hlim y).sub (hlim x)) hn + linarith + +/-- **The converse.** For `K` compact, convex and nonempty, if `ξ` satisfies the slope bound +`ξ (y) − ξ (x) + p · (y − x) ≤ H_K (y − x)`, then `p + Dξ (x) ∈ K` wherever `ξ` is differentiable: +`Dξ (x) v = lim_{t → 0⁺} (ξ (x + t v) − ξ (x)) / t ≤ H_K (v) − p · v`. -/ +theorem add_fderiv_mem_of_sub_add_dotProduct_le_supportFun {K : Set (Fin m → ℝ)} + (hKc : IsCompact K) (hKne : K.Nonempty) (hKcv : Convex ℝ K) {p : Fin m → ℝ} + {ξ : (Fin m → ℝ) → ℝ} + (h : ∀ x y, ξ y - ξ x + p ⬝ᵥ (y - x) ≤ supportFun K (y - x)) {x : Fin m → ℝ} + (hx : DifferentiableAt ℝ ξ x) : p + (fun j => fderiv ℝ ξ x (Pi.single j 1)) ∈ K := by + apply mem_of_forall_dotProduct_le_supportFun hKc hKne hKcv + intro v + rw [add_dotProduct, ← continuousLinearMap_apply_eq_dotProduct] + have hd : HasDerivAt (fun t : ℝ => ξ (x + t • v)) (fderiv ℝ ξ x v) 0 := by + have := hx.hasFDerivAt.comp_hasDerivAt_of_eq (x := (0 : ℝ)) + (((hasDerivAt_id (0 : ℝ)).smul_const v).const_add x) (by simp) + simpa [Function.comp_def] using this + have : fderiv ℝ ξ x v ≤ supportFun K v - p ⬝ᵥ v := by + refine le_of_tendsto hd.tendsto_slope_zero_right ?_ + filter_upwards [self_mem_nhdsWithin] with t (htpos : 0 < t) + simp only [zero_smul, add_zero, smul_eq_mul, zero_add] + rw [inv_mul_le_iff₀ htpos] + have := h x (x + t • v) + rw [add_sub_cancel_left, supportFun_smul hKc hKne htpos.le, dotProduct_smul, + smul_eq_mul] at this + linarith + linarith + +/-- The slope bound implies a Lipschitz bound `L` that depends only on `K` and `p` (`K` compact and +nonempty). -/ +theorem exists_lipschitzWith_of_sub_add_dotProduct_le_supportFun {K : Set (Fin m → ℝ)} + (hKc : IsCompact K) (hKne : K.Nonempty) (p : Fin m → ℝ) : + ∃ L : NNReal, ∀ ξ : (Fin m → ℝ) → ℝ, + (∀ x y, ξ y - ξ x + p ⬝ᵥ (y - x) ≤ supportFun K (y - x)) → LipschitzWith L ξ := by + obtain ⟨C, hC⟩ := lipschitzWith_supportFun hKc hKne + refine ⟨C + Real.toNNReal (m * ‖p‖), fun ξ h => LipschitzWith.of_le_add_mul _ fun y x => ?_⟩ + have h1 := h x y + have h2 : supportFun K (y - x) ≤ C * dist y x := by + have := hC.dist_le_mul (y - x) 0 + rw [supportFun_zero hKc hKne, Real.dist_eq, sub_zero, dist_zero_right, ← dist_eq_norm] at this + exact (le_abs_self _).trans this + have h3 : -(p ⬝ᵥ (y - x)) ≤ m * ‖p‖ * dist y x := by + have := dotProduct_le_mul_norm_mul_norm (-p) (y - x) + rw [neg_dotProduct, norm_neg, ← dist_eq_norm] at this + linarith + have h4 : (m * ‖p‖ : ℝ) * dist y x ≤ Real.toNNReal (m * ‖p‖) * dist y x := + mul_le_mul_of_nonneg_right (Real.le_coe_toNNReal _) dist_nonneg + push_cast + linarith + +/-- An equi-Lipschitz sequence of `ℤ^m`-periodic functions that converges almost everywhere on the +unit cube converges everywhere: the points of convergence are dense in `ℝ^m` (by periodicity they +have full measure), and the equicontinuity makes the sequence Cauchy at every point. -/ +theorem exists_tendsto_of_ae_restrict_unitCube_tendsto {F : ℕ → (Fin m → ℝ) → ℝ} {L : NNReal} + (hF : ∀ k, LipschitzWith L (F k)) + (hper : ∀ k x (z : Fin m → ℤ), F k (x + fun i => (z i : ℝ)) = F k x) + {u : (Fin m → ℝ) → ℝ} + (h : ∀ᵐ x ∂(volume.restrict (Set.pi Set.univ fun _ : Fin m => Set.Ioo (0 : ℝ) 1)), + Tendsto (fun k => F k x) atTop (𝓝 (u x))) : + ∃ ξ : (Fin m → ℝ) → ℝ, ∀ x, Tendsto (fun k => F k x) atTop (𝓝 (ξ x)) := by + have hall : ∀ᵐ x, CauchySeq fun k => F k x := + ae_of_ae_restrict_unitCube_of_periodic (P := fun x => CauchySeq fun k => F k x) + (fun x z hx => by simpa only [hper] using hx) (h.mono fun x hx => hx.cauchySeq) + have hdense := Measure.dense_of_ae hall + have hcs : ∀ x, CauchySeq fun k => F k x := by + intro x + rw [Metric.cauchySeq_iff'] + intro ε hε + have hδ : 0 < ε / (3 * (L + 1)) := by positivity + obtain ⟨y, hxy, hy⟩ := Metric.dense_iff.1 hdense x _ hδ + obtain ⟨N, hN⟩ := Metric.cauchySeq_iff'.1 hy (ε / 3) (by positivity) + refine ⟨N, fun n hn => ?_⟩ + have hd : dist x y < ε / (3 * (L + 1)) := by rw [dist_comm]; exact hxy + have e1 : dist (F n x) (F n y) ≤ L * dist x y := (hF n).dist_le_mul x y + have e2 : dist (F N y) (F N x) ≤ L * dist x y := by + rw [dist_comm x y]; exact (hF N).dist_le_mul y x + have e3 := hN n hn + have hL : (L : ℝ) * dist x y ≤ ε / 3 := by + calc (L : ℝ) * dist x y ≤ (L + 1) * (ε / (3 * (L + 1))) := + mul_le_mul (by linarith) hd.le dist_nonneg (by positivity) + _ = ε / 3 := by field_simp + calc dist (F n x) (F N x) + ≤ dist (F n x) (F n y) + dist (F n y) (F N y) + dist (F N y) (F N x) := + dist_triangle4 _ _ _ _ + _ < ε := by linarith + exact ⟨fun x => limUnder atTop fun k => F k x, fun x => (hcs x).tendsto_limUnder⟩ + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Mollify.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Mollify.lean new file mode 100644 index 0000000000..2536a2bd83 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Mollify.lean @@ -0,0 +1,317 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Basic +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier +public import Mathlib.Analysis.Calculus.BumpFunction.Convolution +public import Mathlib.Analysis.Calculus.ContDiff.Convolution +public import Mathlib.Analysis.Calculus.Rademacher + +/-! +# Mollification of Lipschitz functions + +For a normalised bump `ρ` and `φ : E → ℝ` (`E` finite-dimensional, `μ` an additive Haar measure), +`plancherelMollify μ ρ φ = ρ ⋆ φ`: + +* it is smooth for continuous `φ`, compactly supported for compactly supported `φ`; +* for Lipschitz `φ`, `D (ρ ⋆ φ) v = ρ ⋆ ∂_v φ` (`plancherelMollify_fderiv`), bounded by the bound + of `∂_v φ`, and vanishing away from the support; +* `∫ ∂_v φ = 0` for compactly supported Lipschitz `φ`; +* on `ℝ^m`, for the bumps `plancherelBump m n` of radii `→ 0`, `D (ρ_n ⋆ φ) v → ∂_v φ` almost + everywhere (`plancherel_ae_tendsto`). + +Moreover the mollification of a `K`-Lipschitz function is `K`-Lipschitz +(`plancherelMollify_lipschitzWith`), the mollification of a `ℤ^m`-periodic function is periodic +(`plancherelMollify_periodic`), and the componentwise mollification `mollifyPi n φ` of a +Lipschitz `ℤ^m`-periodic map `φ : ℝ^m → ℝ^d` is smooth, periodic, Lipschitz with the constant of +`φ`, vanishes outside the `2 / (n + 2)`-neighbourhood of a set outside which `φ` vanishes +(`mollifyPi_eq_zero`), and `∇ (mollifyPi n φ) → ∇φ` almost everywhere +(`ae_tendsto_grad_mollifyPi`). +-/ + +@[expose] public section + +open MeasureTheory SchwartzMap Filter Topology ContinuousLinearMap +open scoped FourierTransform ComplexConjugate ComplexInnerProductSpace LineDeriv ContDiff Pointwise + +namespace CalculusOfVariations + +section Mollify + +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] + [MeasurableSpace E] [BorelSpace E] {μ : Measure E} [μ.IsAddHaarMeasure] + +open scoped Convolution + +/-- The mollification `ρ ⋆ φ` of `φ` by the normalised bump `ρ`. -/ +noncomputable abbrev plancherelMollify (μ : Measure E) (ρ : ContDiffBump (0 : E)) (φ : E → ℝ) : + E → ℝ := + ρ.normed μ ⋆[lsmul ℝ ℝ, μ] φ + +theorem plancherelMollify_contDiff (ρ : ContDiffBump (0 : E)) {φ : E → ℝ} (hφ : Continuous φ) : + ContDiff ℝ ∞ (plancherelMollify μ ρ φ) := + ρ.hasCompactSupport_normed.contDiff_convolution_left (n := ⊤) _ ρ.contDiff_normed + (hφ.locallyIntegrable) + +theorem plancherelMollify_hasCompactSupport (ρ : ContDiffBump (0 : E)) {φ : E → ℝ} + (hφc : HasCompactSupport φ) : HasCompactSupport (plancherelMollify μ ρ φ) := + ρ.hasCompactSupport_normed.convolution _ hφc + +/-- The derivative of the mollification of a Lipschitz function is the mollification of its +(almost everywhere defined) line derivative. -/ +theorem plancherelMollify_fderiv (ρ : ContDiffBump (0 : E)) {φ : E → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) (x v : E) : + fderiv ℝ (plancherelMollify μ ρ φ) x v = + plancherelMollify μ ρ (fun y => lineDeriv ℝ φ y v) x := by + set ρn := ρ.normed μ + have hdiff : DifferentiableAt ℝ (plancherelMollify μ ρ φ) x := + ((plancherelMollify_contDiff ρ hφ.continuous).differentiable (by simp)) x + have lim1 := (hdiff.hasFDerivAt.hasLineDerivAt v).tendsto_slope_zero_right + have hgi : Integrable (fun z => ρn (x - z)) μ := + (ρ.continuous_normed.integrable_of_hasCompactSupport ρ.hasCompactSupport_normed).comp_sub_left x + have lim2 := hφ.integral_inv_smul_sub_mul_tendsto_integral_lineDeriv_mul hgi v + have heq : ∀ t : ℝ, t⁻¹ • (plancherelMollify μ ρ φ (x + t • v) - plancherelMollify μ ρ φ x) = + ∫ z, (t⁻¹ • (φ (z + t • v) - φ z)) * ρn (x - z) ∂μ := by + intro t + have hcs : HasCompactSupport (fun z => ρn (x - z)) := + ρ.hasCompactSupport_normed.comp_homeomorph (Homeomorph.subLeft x) + have hcont : Continuous (fun z => ρn (x - z)) := + ρ.continuous_normed.comp (continuous_const.sub continuous_id) + have i1 : Integrable (fun z => ρn (x - z) * φ (z + t • v)) μ := + (hcont.mul (hφ.continuous.comp + (continuous_id.add continuous_const))).integrable_of_hasCompactSupport + hcs.mul_right + have i2 : Integrable (fun z => ρn (x - z) * φ z) μ := + (hcont.mul hφ.continuous).integrable_of_hasCompactSupport hcs.mul_right + have e1 : plancherelMollify μ ρ φ (x + t • v) = ∫ z, ρn (x - z) * φ (z + t • v) ∂μ := by + rw [plancherelMollify, convolution_lsmul_swap, + ← integral_add_right_eq_self _ (t • v)] + congr 1 + ext z + simp only [smul_eq_mul] + congr 2 + abel + have e2 : plancherelMollify μ ρ φ x = ∫ z, ρn (x - z) * φ z ∂μ := by + rw [plancherelMollify, convolution_lsmul_swap] + rfl + rw [e1, e2, ← integral_sub i1 i2, ← integral_smul] + congr 1 + ext z + simp only [smul_eq_mul] + ring + simp only [heq] at lim1 + have := tendsto_nhds_unique lim1 lim2 + rw [this, plancherelMollify, convolution_lsmul_swap] + congr 1 + ext z + simp only [smul_eq_mul] + ring + +omit [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] in +theorem plancherel_lineDeriv_eq_zero_of_notMem {φ : E → ℝ} {y : E} (h : y ∉ tsupport φ) + (v : E) : lineDeriv ℝ φ y v = 0 := by + have := ((HasFDerivAt.of_notMem_tsupport ℝ h).hasLineDerivAt v).lineDeriv + simpa using this + +theorem plancherelMollify_abs_le (ρ : ContDiffBump (0 : E)) {g : E → ℝ} {C : ℝ} + (hg : ∀ y, |g y| ≤ C) (x : E) : |plancherelMollify μ ρ g x| ≤ C := by + rw [plancherelMollify, convolution_lsmul] + have hi : Integrable (fun t => ρ.normed μ t * C) μ := + (ρ.continuous_normed.integrable_of_hasCompactSupport ρ.hasCompactSupport_normed).mul_const C + have := norm_integral_le_of_norm_le hi (μ := μ) (f := fun t => ρ.normed μ t • g (x - t)) + (Filter.Eventually.of_forall fun t => by + rw [norm_smul, Real.norm_of_nonneg (ρ.nonneg_normed t), Real.norm_eq_abs] + exact mul_le_mul_of_nonneg_left (hg _) (ρ.nonneg_normed t)) + rw [integral_mul_const, ρ.integral_normed, one_mul] at this + simpa [Real.norm_eq_abs] using this + +theorem plancherelMollify_eq_zero (ρ : ContDiffBump (0 : E)) (hρ : ρ.rOut ≤ 1) {g : E → ℝ} + {S : Set E} (hg : ∀ y ∉ S, g y = 0) {x : E} (hx : x ∉ Metric.closedBall (0 : E) 1 + S) : + plancherelMollify μ ρ g x = 0 := by + rw [plancherelMollify, convolution_lsmul] + refine (integral_congr_ae (Filter.Eventually.of_forall fun t => ?_)).trans (integral_zero _ _) + by_cases ht : t ∈ Metric.ball (0 : E) ρ.rOut + · have : x - t ∉ S := by + intro h + apply hx + refine ⟨t, ?_, x - t, h, add_sub_cancel t x⟩ + exact Metric.closedBall_subset_closedBall hρ (Metric.ball_subset_closedBall ht) + simp [hg _ this] + · have : ρ.normed μ t = 0 := by + rw [← Function.notMem_support, ρ.support_normed_eq] + exact ht + simp [this] + +/-- The mollification vanishes outside the `rOut`-neighbourhood of a set outside which the +function vanishes. -/ +theorem plancherelMollify_eq_zero_of_notMem (ρ : ContDiffBump (0 : E)) {g : E → ℝ} + {S : Set E} (hg : ∀ y ∉ S, g y = 0) {x : E} + (hx : x ∉ Metric.closedBall (0 : E) ρ.rOut + S) : plancherelMollify μ ρ g x = 0 := by + rw [plancherelMollify, convolution_lsmul] + refine (integral_congr_ae (Filter.Eventually.of_forall fun t => ?_)).trans (integral_zero _ _) + by_cases ht : t ∈ Metric.ball (0 : E) ρ.rOut + · have : x - t ∉ S := fun h => hx ⟨t, Metric.ball_subset_closedBall ht, x - t, h, + add_sub_cancel t x⟩ + simp [hg _ this] + · have : ρ.normed μ t = 0 := by + rw [← Function.notMem_support, ρ.support_normed_eq] + exact ht + simp [this] + +/-- The integral of a partial derivative of a compactly supported Lipschitz function vanishes: +the difference quotients `t⁻¹ (φ (x + t v) - φ x)` have integral `0` by translation invariance and +converge to `∂_v φ` by dominated convergence. -/ +theorem plancherel_integral_fderiv_eq_zero {φ : E → ℝ} {K : NNReal} (hφ : LipschitzWith K φ) + (hφc : HasCompactSupport φ) (v : E) : ∫ x, fderiv ℝ φ x v ∂μ = 0 := by + have h := hφ.integral_inv_smul_sub_mul_tendsto_integral_lineDeriv_mul' (μ := μ) hφc + (g := fun _ => (1 : ℝ)) continuous_const v + have hz : ∀ t : ℝ, ∫ x, (t⁻¹ • (φ (x + t • v) - φ x)) * (fun _ => (1 : ℝ)) x ∂μ = 0 := by + intro t + have i1 : Integrable (fun x => φ (x + t • v)) μ := + (hφ.continuous.comp (continuous_id.add continuous_const)).integrable_of_hasCompactSupport + (hφc.comp_homeomorph (Homeomorph.addRight (t • v))) + have i2 : Integrable φ μ := hφ.continuous.integrable_of_hasCompactSupport hφc + simp only [mul_one, smul_eq_mul] + rw [integral_const_mul, integral_sub i1 i2, integral_add_right_eq_self φ (t • v), sub_self, + mul_zero] + have h' := Tendsto.congr hz h + have h0 : ∫ x, lineDeriv ℝ φ x v ∂μ = 0 := by + simpa using (tendsto_nhds_unique tendsto_const_nhds h').symm + rw [← h0] + refine integral_congr_ae ?_ + filter_upwards [hφ.ae_differentiableAt (μ := μ)] with x hx + exact hx.lineDeriv_eq_fderiv.symm + +end Mollify + +/-- The bumps `ρ_n` with radii `1/(n+2) < 2/(n+2)`. -/ +noncomputable def plancherelBump (m : ℕ) (n : ℕ) : ContDiffBump (0 : Fin m → ℝ) where + rIn := 1 / (n + 2) + rOut := 2 / (n + 2) + rIn_pos := by positivity + rIn_lt_rOut := by gcongr; norm_num + +theorem plancherelBump_rOut_le (m n : ℕ) : (plancherelBump m n).rOut ≤ 1 := by + change 2 / ((n : ℝ) + 2) ≤ 1 + rw [div_le_one (by positivity)] + linarith [n.cast_nonneg (α := ℝ)] + +theorem plancherelBump_tendsto (m : ℕ) : + Tendsto (fun n => (plancherelBump m n).rOut) atTop (𝓝 0) := by + change Tendsto (fun n : ℕ => 2 / ((n : ℝ) + 2)) atTop (𝓝 0) + have : Tendsto (fun n : ℕ => (n : ℝ) + 2) atTop atTop := + tendsto_atTop_add_const_right _ _ tendsto_natCast_atTop_atTop + simpa using this.const_div_atTop 2 + +/-- Mollified line derivatives converge almost everywhere to the derivative. -/ +theorem plancherel_ae_tendsto {m : ℕ} {φ : (Fin m → ℝ) → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) (v : Fin m → ℝ) : + ∀ᵐ x, Tendsto (fun n => fderiv ℝ (plancherelMollify volume (plancherelBump m n) φ) x v) + atTop (𝓝 (fderiv ℝ φ x v)) := by + have h1 := ContDiffBump.ae_convolution_tendsto_right_of_locallyIntegrable (μ := volume) + (φ := plancherelBump m) (K := 2) (plancherelBump_tendsto m) + (Filter.Eventually.of_forall fun n => by + change 2 / ((n : ℝ) + 2) ≤ 2 * (1 / ((n : ℝ) + 2)) + rw [mul_one_div]) + (hφ.locallyIntegrable_lineDeriv v) + filter_upwards [h1, hφ.ae_differentiableAt] with x hx hd + simp only [plancherelMollify_fderiv _ hφ] + rw [← hd.lineDeriv_eq_fderiv] + exact hx + +/-! ### Lipschitz and periodic maps -/ + +/-- The mollification of a `K`-Lipschitz function is `K`-Lipschitz: +`|ρ ⋆ φ (x) - ρ ⋆ φ (y)| ≤ ∫ ρ (t) |φ (x - t) - φ (y - t)| dt ≤ K ‖x - y‖`. -/ +theorem plancherelMollify_lipschitzWith {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] {μ : Measure E} + [μ.IsAddHaarMeasure] (ρ : ContDiffBump (0 : E)) {φ : E → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) : LipschitzWith K (plancherelMollify μ ρ φ) := by + refine LipschitzWith.of_dist_le_mul fun x y => ?_ + have hi : ∀ z : E, Integrable (fun t => ρ.normed μ t * φ (z - t)) μ := fun z => + (ρ.continuous_normed.mul (hφ.continuous.comp (continuous_const.sub continuous_id)) + ).integrable_of_hasCompactSupport ρ.hasCompactSupport_normed.mul_right + have e : ∀ z, plancherelMollify μ ρ φ z = ∫ t, ρ.normed μ t * φ (z - t) ∂μ := fun z => by + rw [plancherelMollify, convolution_lsmul]; rfl + have hb : Integrable (fun t => ρ.normed μ t * (K * dist x y)) μ := + (ρ.continuous_normed.integrable_of_hasCompactSupport ρ.hasCompactSupport_normed).mul_const _ + rw [e, e, Real.dist_eq, ← integral_sub (hi x) (hi y), ← Real.norm_eq_abs] + calc ‖∫ t, (ρ.normed μ t * φ (x - t) - ρ.normed μ t * φ (y - t)) ∂μ‖ + ≤ ∫ t, ρ.normed μ t * (K * dist x y) ∂μ := by + refine norm_integral_le_of_norm_le hb (Filter.Eventually.of_forall fun t => ?_) + rw [← mul_sub, norm_mul, Real.norm_of_nonneg (ρ.nonneg_normed t), ← dist_eq_norm] + refine mul_le_mul_of_nonneg_left ?_ (ρ.nonneg_normed t) + calc dist (φ (x - t)) (φ (y - t)) ≤ K * dist (x - t) (y - t) := hφ.dist_le_mul _ _ + _ = K * dist x y := by rw [dist_sub_right] + _ = K * dist x y := by rw [integral_mul_const, ρ.integral_normed, one_mul] + +/-- The mollification of a `ℤ^m`-periodic function is `ℤ^m`-periodic: +`ρ ⋆ φ (x + z) = ∫ ρ (t) φ (x - t + z) dt = ρ ⋆ φ (x)`. -/ +theorem plancherelMollify_periodic {m : ℕ} (ρ : ContDiffBump (0 : Fin m → ℝ)) + {φ : (Fin m → ℝ) → ℝ} + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), φ (x + fun i => (z i : ℝ)) = φ x) + (x : Fin m → ℝ) (z : Fin m → ℤ) : + plancherelMollify volume ρ φ (x + fun i => (z i : ℝ)) = plancherelMollify volume ρ φ x := by + rw [plancherelMollify, convolution_lsmul, convolution_lsmul] + congr 1 + ext t + rw [show x + (fun i => (z i : ℝ)) - t = (x - t) + fun i => (z i : ℝ) by abel, hper] + +/-- The componentwise mollification of `φ : ℝ^m → ℝ^d` by the bump `plancherelBump m n`. -/ +noncomputable def mollifyPi {d m : ℕ} (n : ℕ) (φ : (Fin m → ℝ) → Fin d → ℝ) : + (Fin m → ℝ) → Fin d → ℝ := + fun x i => plancherelMollify volume (plancherelBump m n) (fun y => φ y i) x + +/-- The mollifications of a map vanishing off `S` vanish outside the `2 / (n + 2)`-neighbourhood +of `S`. -/ +theorem mollifyPi_eq_zero {d m : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} {S : Set (Fin m → ℝ)} + (hφ : ∀ y ∉ S, φ y = 0) (n : ℕ) {x : Fin m → ℝ} + (hx : x ∉ Metric.closedBall (0 : Fin m → ℝ) (2 / ((n : ℝ) + 2)) + S) : + mollifyPi n φ x = 0 := by + ext i + change plancherelMollify volume (plancherelBump m n) (fun y => φ y i) x = 0 + exact plancherelMollify_eq_zero_of_notMem (plancherelBump m n) + (fun y hy => by rw [hφ y hy]; rfl) hx + +/-- A component of a `K`-Lipschitz map (sup norm) is `K`-Lipschitz. -/ +private theorem mollifyPi_component_lipschitz {d m : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} + {K : NNReal} (hφ : LipschitzWith K φ) (i : Fin d) : LipschitzWith K fun y => φ y i := + LipschitzWith.of_dist_le_mul fun x y => (dist_le_pi_dist _ _ i).trans (hφ.dist_le_mul x y) + +/-- The mollifications of a continuous map are smooth. -/ +theorem mollifyPi_contDiff {d m : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} (hφ : Continuous φ) (n : ℕ) : + ContDiff ℝ ∞ (mollifyPi n φ) := + contDiff_pi.2 fun i => plancherelMollify_contDiff _ ((continuous_apply i).comp hφ) + +/-- The mollifications of a `ℤ^m`-periodic map are `ℤ^m`-periodic. -/ +theorem mollifyPi_periodic {d m : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), φ (x + fun i => (z i : ℝ)) = φ x) (n : ℕ) + (x : Fin m → ℝ) (z : Fin m → ℤ) : + mollifyPi n φ (x + fun i => (z i : ℝ)) = mollifyPi n φ x := by + funext i + exact plancherelMollify_periodic (φ := fun y => φ y i) _ (fun y w => congrFun (hper y w) i) x z + +/-- The mollifications of a `K`-Lipschitz map are `K`-Lipschitz (sup norms), so their gradients +are bounded by `K` uniformly in `n`. -/ +theorem mollifyPi_lipschitzWith {d m : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) (n : ℕ) : LipschitzWith K (mollifyPi n φ) := + LipschitzWith.of_dist_le_mul fun x y => (dist_pi_le_iff (by positivity)).2 fun i => + (plancherelMollify_lipschitzWith _ (mollifyPi_component_lipschitz hφ i)).dist_le_mul x y + +/-- For a Lipschitz map, `∇ (ρ_n ⋆ φ) = ρ_n ⋆ ∇φ → ∇φ` almost everywhere: entry by entry, by +`plancherel_ae_tendsto`. -/ +theorem ae_tendsto_grad_mollifyPi {d m : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) : + ∀ᵐ x, Tendsto (fun n => grad (mollifyPi n φ) x) atTop (𝓝 (grad φ x)) := by + have h := ae_all_iff.2 fun i => ae_all_iff.2 fun k => + plancherel_ae_tendsto (mollifyPi_component_lipschitz hφ i) (Pi.single k (1 : ℝ)) + filter_upwards [h] with x hx + exact tendsto_pi_nhds.2 fun i => tendsto_pi_nhds.2 fun k => hx i k + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Periodic.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Periodic.lean new file mode 100644 index 0000000000..2529f6e78d --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Periodic.lean @@ -0,0 +1,343 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Gradient + +/-! +# Periodic extension and periodic averages + +* `periodicExtension φ = φ ∘ fract` extends maps on the unit cube. If `φ` is `K`-Lipschitz and + vanishes off the open cube, the extension is `m K`-Lipschitz and `ℤ^m`-periodic. It has the + same gradient on the open cube. +* the periodic average identity `∫_{(0,1)^m} G (N x) dx = ∫_{(0,1)^m} G` for bounded measurable + `ℤ^m`-periodic `G` and integers `N ≥ 1`; +* a Lipschitz periodic map is bounded, and its gradient is periodic. +-/ + +@[expose] public section + +open Metric Set MeasureTheory Filter Topology +open scoped Pointwise + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-! ### Periodic extension of a test map -/ + +/-- The periodic extension `x ↦ φ (fract x)` of a map on the unit cube. -/ +noncomputable def periodicExtension (φ : (Fin m → ℝ) → Fin d → ℝ) : (Fin m → ℝ) → Fin d → ℝ := + fun x => φ (fun i => Int.fract (x i)) + +/-- On a closed integer cell `z + [0, 1]^m`, the periodic extension of a map vanishing off the open +cube is its translate. -/ +private lemma rd_perExt_cell {φ : (Fin m → ℝ) → Fin d → ℝ} (h0 : ∀ x ∉ unitCube m, φ x = 0) + (z : Fin m → ℤ) {x : Fin m → ℝ} (hx : ∀ i, (z i : ℝ) ≤ x i ∧ x i ≤ z i + 1) : + periodicExtension φ x = φ (x - fun i => (z i : ℝ)) := by + by_cases h : ∀ i, (z i : ℝ) < x i ∧ x i < z i + 1 + · have : (fun i => Int.fract (x i)) = x - fun i => (z i : ℝ) := by + funext i + rw [← Int.self_sub_floor, Int.floor_eq_iff.2 ⟨(h i).1.le, (h i).2⟩] + rfl + simp only [periodicExtension, this] + · push Not at h + obtain ⟨i, hi⟩ := h + have hint : x i = z i ∨ x i = z i + 1 := by + rcases eq_or_lt_of_le (hx i).1 with h1 | h1 + · exact Or.inl h1.symm + · exact Or.inr (le_antisymm (hx i).2 (hi h1)) + have h1 : (fun i => Int.fract (x i)) ∉ unitCube m := by + intro hmem + have := (hmem i (Set.mem_univ _)).1 + dsimp only at this + rcases hint with h2 | h2 + · rw [h2, Int.fract_intCast] at this; exact lt_irrefl _ this + · rw [h2, show (z i : ℝ) + 1 = ((z i + 1 : ℤ) : ℝ) by push_cast; ring, + Int.fract_intCast] at this + exact lt_irrefl _ this + have h2 : (x - fun i => (z i : ℝ)) ∉ unitCube m := by + intro hmem + have := hmem i (Set.mem_univ _) + simp only [Pi.sub_apply] at this + rcases hint with h3 | h3 <;> rw [h3] at this <;> linarith [this.1, this.2] + simp only [periodicExtension, h0 _ h1, h0 _ h2] + +private lemma rd_perExt_eq_zero_of_int {φ : (Fin m → ℝ) → Fin d → ℝ} + (h0 : ∀ x ∉ unitCube m, φ x = 0) {x : Fin m → ℝ} {c : Fin m} {n : ℤ} (hc : x c = n) : + periodicExtension φ x = 0 := by + apply h0 + intro hmem + have := (hmem c (Set.mem_univ _)).1 + dsimp only at this + rw [hc, Int.fract_intCast] at this + exact lt_irrefl _ this + +private lemma rd_dist_update (w : Fin m → ℝ) (c : Fin m) (a b : ℝ) : + dist (Function.update w c a) (Function.update w c b) ≤ |a - b| := by + rw [dist_pi_le_iff (abs_nonneg _)] + intro i + rcases eq_or_ne i c with rfl | hi + · simp [Real.dist_eq] + · simp [Function.update_of_ne hi] + +/-- The one-dimensional step: along a coordinate line the periodic extension is `K`-Lipschitz +(it is the translate of `φ` on each closed cell, and vanishes at the integer points). -/ +private lemma rd_perExt_line {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} (hφ : LipschitzWith K φ) + (h0 : ∀ x ∉ unitCube m, φ x = 0) (w : Fin m → ℝ) (c : Fin m) (s s' : ℝ) : + dist (periodicExtension φ (Function.update w c s)) + (periodicExtension φ (Function.update w c s')) ≤ K * |s - s'| := by + wlog hss : s ≤ s' generalizing s s' + · rw [dist_comm, abs_sub_comm]; exact this s' s (le_of_not_ge hss) + -- the cell of a point of the line + have hcell : ∀ t : ℝ, ∀ i, ((fun j => ⌊Function.update w c t j⌋) i : ℝ) ≤ + Function.update w c t i ∧ Function.update w c t i ≤ + ((fun j => ⌊Function.update w c t j⌋) i : ℝ) + 1 := fun t i => + ⟨Int.floor_le _, (Int.lt_floor_add_one _).le⟩ + -- moving coordinate `c` inside the cell of `t` + have hmove : ∀ t u : ℝ, (⌊t⌋ : ℝ) ≤ u → u ≤ ⌊t⌋ + 1 → + dist (periodicExtension φ (Function.update w c t)) + (periodicExtension φ (Function.update w c u)) ≤ K * |t - u| := by + intro t u hu1 hu2 + set z := fun j => ⌊Function.update w c t j⌋ + have hzu : ∀ i, (z i : ℝ) ≤ Function.update w c u i ∧ Function.update w c u i ≤ z i + 1 := by + intro i + rcases eq_or_ne i c with rfl | hi + · simp only [z, Function.update_self]; exact ⟨hu1, hu2⟩ + · simp only [z, Function.update_of_ne hi] + exact ⟨Int.floor_le _, (Int.lt_floor_add_one _).le⟩ + rw [rd_perExt_cell h0 z (hcell t), rd_perExt_cell h0 z hzu] + calc dist (φ (Function.update w c t - fun i => (z i : ℝ))) + (φ (Function.update w c u - fun i => (z i : ℝ))) + ≤ K * dist (Function.update w c t - fun i => (z i : ℝ)) + (Function.update w c u - fun i => (z i : ℝ)) := hφ.dist_le_mul _ _ + _ = K * dist (Function.update w c t) (Function.update w c u) := by rw [dist_sub_right] + _ ≤ K * |t - u| := by gcongr; exact rd_dist_update w c t u + rcases eq_or_lt_of_le (Int.floor_le_floor hss) with heq | hlt + · -- the same cell + exact hmove s s' (by rw [heq]; exact Int.floor_le s') + (by rw [heq]; exact (Int.lt_floor_add_one s').le) + · -- through the integer points `⌊s⌋ + 1 ≤ ⌊s'⌋` + have hle : (⌊s⌋ : ℝ) + 1 ≤ ⌊s'⌋ := by exact_mod_cast hlt + have hp : periodicExtension φ (Function.update w c ((⌊s⌋ : ℝ) + 1)) = 0 := + rd_perExt_eq_zero_of_int h0 (c := c) (n := ⌊s⌋ + 1) (by simp) + have hq : periodicExtension φ (Function.update w c (⌊s'⌋ : ℝ)) = 0 := + rd_perExt_eq_zero_of_int h0 (c := c) (n := ⌊s'⌋) (by simp) + have h1 := hmove s ((⌊s⌋ : ℝ) + 1) (by linarith) le_rfl + have h2 := hmove s' (⌊s'⌋ : ℝ) le_rfl (by linarith) + rw [hp] at h1 + rw [hq] at h2 + have e1 : |s - ((⌊s⌋ : ℝ) + 1)| = (⌊s⌋ : ℝ) + 1 - s := by + rw [abs_sub_comm, abs_of_nonneg (by linarith [Int.lt_floor_add_one s])] + have e2 : |s' - (⌊s'⌋ : ℝ)| = s' - ⌊s'⌋ := abs_of_nonneg (by linarith [Int.floor_le s']) + rw [e1] at h1 + rw [e2] at h2 + calc dist (periodicExtension φ (Function.update w c s)) + (periodicExtension φ (Function.update w c s')) + ≤ dist (periodicExtension φ (Function.update w c s)) 0 + + dist 0 (periodicExtension φ (Function.update w c s')) := dist_triangle _ _ _ + _ ≤ K * ((⌊s⌋ : ℝ) + 1 - s) + K * (s' - ⌊s'⌋) := by + rw [dist_comm 0]; exact add_le_add h1 h2 + _ ≤ K * |s - s'| := by + rw [abs_sub_comm, abs_of_nonneg (by linarith)] + have : (0 : ℝ) ≤ K := K.2 + nlinarith + +/-- The periodic extension of a Lipschitz map vanishing off the open cube is Lipschitz (a path +that changes one coordinate at a time). -/ +lemma rd_perExt_lipschitz {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) (h0 : ∀ x ∉ unitCube m, φ x = 0) : + LipschitzWith (m * K) (periodicExtension φ) := by + suffices h : ∀ S : Finset (Fin m), ∀ x y : Fin m → ℝ, (∀ i ∉ S, x i = y i) → + dist (periodicExtension φ x) (periodicExtension φ y) ≤ S.card * K * dist x y by + refine LipschitzWith.of_dist_le_mul fun x y => ?_ + have := h Finset.univ x y (by simp) + simpa [Finset.card_univ] using this + intro S + induction S using Finset.induction_on with + | empty => + intro x y h + have : x = y := funext fun i => h i (Finset.notMem_empty _) + simp [this] + | insert c S hc ih => + intro x y hxy + set w := Function.update x c (y c) + have hwy : ∀ i ∉ S, w i = y i := by + intro i hi + rcases eq_or_ne i c with rfl | hic + · simp [w] + · simp only [w, Function.update_of_ne hic] + exact hxy i (by simp [hic, hi]) + have hdwy : dist w y ≤ dist x y := by + rw [dist_pi_le_iff dist_nonneg] + intro i + rcases eq_or_ne i c with rfl | hic + · simp [w] + · simp only [w, Function.update_of_ne hic]; exact dist_le_pi_dist x y i + have h1 : dist (periodicExtension φ x) (periodicExtension φ w) ≤ K * dist x y := by + have := rd_perExt_line hφ h0 x c (x c) (y c) + rw [Function.update_eq_self] at this + refine this.trans ?_ + gcongr + rw [← Real.dist_eq]; exact dist_le_pi_dist x y c + have h2 := ih w y hwy + rw [Finset.card_insert_of_notMem hc] + push_cast + have hK : (0 : ℝ) ≤ K := K.2 + calc dist (periodicExtension φ x) (periodicExtension φ y) + ≤ dist (periodicExtension φ x) (periodicExtension φ w) + + dist (periodicExtension φ w) (periodicExtension φ y) := + dist_triangle _ _ _ + _ ≤ K * dist x y + S.card * K * dist w y := add_le_add h1 h2 + _ ≤ K * dist x y + S.card * K * dist x y := by gcongr + _ = (S.card + 1) * K * dist x y := by ring + +lemma rd_perExt_periodic (φ : (Fin m → ℝ) → Fin d → ℝ) (x : Fin m → ℝ) (z : Fin m → ℤ) : + periodicExtension φ (x + fun i => (z i : ℝ)) = periodicExtension φ x := by + simp only [periodicExtension, Pi.add_apply, Int.fract_add_intCast] + +/-- On the open cube, the periodic extension is `φ`, so their gradients agree there. -/ +lemma rd_grad_perExt {φ : (Fin m → ℝ) → Fin d → ℝ} {x : Fin m → ℝ} (hx : x ∈ unitCube m) : + grad (periodicExtension φ) x = grad φ x := by + have hopen : IsOpen (unitCube m) := isOpen_set_pi Set.finite_univ fun _ _ => isOpen_Ioo + have heq : periodicExtension φ =ᶠ[𝓝 x] φ := by + filter_upwards [hopen.mem_nhds hx] with y hy + simp only [periodicExtension] + congr 1 + funext i + have := hy i (Set.mem_univ _) + rw [← Int.self_sub_floor, Int.floor_eq_zero_iff.2 ⟨this.1.le, this.2⟩, Int.cast_zero, sub_zero] + ext i k + simp only [grad, Matrix.of_apply] + have hi : (fun y => periodicExtension φ y i) =ᶠ[𝓝 x] fun y => φ y i := + heq.mono fun y hy => by change periodicExtension φ y i = φ y i; rw [hy] + rw [Filter.EventuallyEq.fderiv_eq hi] + +/-! ### The periodic average identity -/ + +/-- The open unit cube and `[0, 1)^m` differ by a null set. -/ +private lemma rd_setIntegral_unitCube_eq_Ico (g : (Fin m → ℝ) → ℝ) : + ∫ x in unitCube m, g x = ∫ x in Set.pi Set.univ (fun _ => Set.Ico (0:ℝ) 1), g x := by + apply setIntegral_congr_set + have h1 := Measure.univ_pi_Ioo_ae_eq_Icc (μ := fun _ : Fin m => (volume : Measure ℝ)) + (f := fun _ => (0:ℝ)) (g := fun _ => 1) + have h2 := Measure.univ_pi_Ico_ae_eq_Icc (μ := fun _ : Fin m => (volume : Measure ℝ)) + (f := fun _ => (0:ℝ)) (g := fun _ => 1) + exact h1.trans h2.symm + +/-- The unit cell `z + [0, 1)^m`. -/ +private def rd_cell (z : Fin m → ℝ) : Set (Fin m → ℝ) := + Set.pi Set.univ fun i => Set.Ico (z i) (z i + 1) + +private lemma rd_setIntegral_cell {G : (Fin m → ℝ) → ℝ} + (hper : ∀ x (z : Fin m → ℤ), G (x + fun i => (z i : ℝ)) = G x) (z : Fin m → ℤ) : + ∫ x in rd_cell (fun i => (z i : ℝ)), G x = ∫ x in rd_cell 0, G x := by + have h := (measurePreserving_add_right (volume : Measure (Fin m → ℝ)) + (fun i => (z i : ℝ))).setIntegral_preimage_emb (measurableEmbedding_addRight _) G + (rd_cell (fun i => (z i : ℝ))) + have hpre : (fun x => x + fun i => (z i : ℝ)) ⁻¹' rd_cell (fun i => (z i : ℝ)) = rd_cell 0 := by + ext x + simp only [rd_cell, Set.mem_preimage, Set.mem_pi, Set.mem_univ, true_implies, Set.mem_Ico, + Pi.add_apply, Pi.zero_apply, zero_add] + refine forall_congr' fun i => ?_ + constructor + · rintro ⟨h1, h2⟩; constructor <;> linarith + · rintro ⟨h1, h2⟩; constructor <;> linarith + rw [← h, hpre] + exact setIntegral_congr_fun (MeasurableSet.univ_pi fun _ => measurableSet_Ico) + fun x _ => hper x z + +/-- The periodic average identity for bounded measurable `G`: for a `ℤ^m`-periodic `G` and an +integer `N ≥ 1`, `∫_{(0,1)^m} G (N x) dx = ∫_{(0,1)^m} G`. -/ +lemma rd_setIntegral_comp_nsmul {G : (Fin m → ℝ) → ℝ} (hGm : Measurable G) {C : ℝ} + (hGb : ∀ x, |G x| ≤ C) (hper : ∀ x (z : Fin m → ℤ), G (x + fun i => (z i : ℝ)) = G x) + {N : ℕ} (hN : 0 < N) : + ∫ x in unitCube m, G ((N : ℝ) • x) = ∫ x in unitCube m, G x := by + have hN' : (0 : ℝ) < N := by exact_mod_cast hN + rw [rd_setIntegral_unitCube_eq_Ico, rd_setIntegral_unitCube_eq_Ico, + Measure.setIntegral_comp_smul_of_pos volume G _ hN'] + have hQ : Set.pi Set.univ (fun _ => Set.Ico (0:ℝ) 1) = rd_cell (0 : Fin m → ℝ) := by + simp [rd_cell] + have hcells : (N : ℝ) • Set.pi Set.univ (fun _ => Set.Ico (0:ℝ) 1) = + ⋃ z : Fin m → Fin N, rd_cell (fun i => (((z i : ℕ) : ℤ) : ℝ)) := by + ext y + rw [Set.mem_smul_set_iff_inv_smul_mem₀ hN'.ne', Set.mem_iUnion] + simp only [rd_cell, Set.mem_pi, Set.mem_univ, true_implies, Set.mem_Ico, Pi.smul_apply, + smul_eq_mul, Int.cast_natCast] + constructor + · intro h + have h0 : ∀ i, 0 ≤ y i := fun i => by + have := mul_nonneg hN'.le (h i).1 + rwa [mul_inv_cancel_left₀ hN'.ne'] at this + have h1 : ∀ i, y i < N := fun i => by + simpa using (inv_mul_lt_iff₀ hN').1 (h i).2 + refine ⟨fun i => ⟨⌊y i⌋₊, (Nat.floor_lt (h0 i)).2 (h1 i)⟩, fun i => ?_⟩ + exact ⟨Nat.floor_le (h0 i), Nat.lt_floor_add_one (y i)⟩ + · rintro ⟨z, hz⟩ i + have hzN : ((z i : ℕ) : ℝ) + 1 ≤ N := by exact_mod_cast (z i).isLt + have h0 : 0 ≤ y i := le_trans (Nat.cast_nonneg _) (hz i).1 + refine ⟨mul_nonneg (inv_nonneg.2 hN'.le) h0, ?_⟩ + rw [inv_mul_lt_iff₀ hN', mul_one] + linarith [(hz i).2] + have hint : ∀ z : Fin m → Fin N, IntegrableOn G (rd_cell (fun i => (((z i : ℕ) : ℤ) : ℝ))) := by + intro z + refine IntegrableOn.of_bound ?_ hGm.aestronglyMeasurable C + (Eventually.of_forall fun x => by rw [Real.norm_eq_abs]; exact hGb x) + simp only [rd_cell, Real.volume_pi_Ico] + exact ENNReal.prod_lt_top fun _ _ => ENNReal.ofReal_lt_top + have hdisj : Pairwise (Function.onFun Disjoint fun z : Fin m → Fin N => + rd_cell (fun i => (((z i : ℕ) : ℤ) : ℝ))) := by + intro z z' hzz' + obtain ⟨i, hi⟩ := Function.ne_iff.1 hzz' + refine Set.disjoint_left.2 fun y hy hy' => hi ?_ + have a := hy i (Set.mem_univ _) + have b := hy' i (Set.mem_univ _) + simp only [Set.mem_Ico, Int.cast_natCast] at a b + have c1 : ((z i : ℕ) : ℝ) < (z' i : ℕ) + 1 := by linarith [a.1, b.2] + have c2 : ((z' i : ℕ) : ℝ) < (z i : ℕ) + 1 := by linarith [a.2, b.1] + have d1 : (z i : ℕ) < (z' i : ℕ) + 1 := by exact_mod_cast c1 + have d2 : (z' i : ℕ) < (z i : ℕ) + 1 := by exact_mod_cast c2 + exact Fin.ext (by omega) + have hmeas : ∀ z : Fin m → Fin N, MeasurableSet (rd_cell (fun i => (((z i : ℕ) : ℤ) : ℝ))) := + fun z => MeasurableSet.univ_pi fun _ => measurableSet_Ico + rw [hcells, integral_iUnion_fintype hmeas hdisj hint] + simp_rw [rd_setIntegral_cell hper, hQ] + rw [Finset.sum_const, Finset.card_univ, Fintype.card_fun, Fintype.card_fin, Fintype.card_fin, + Module.finrank_fintype_fun_eq_card, Fintype.card_fin, nsmul_eq_mul, smul_eq_mul, ← mul_assoc] + push_cast + rw [inv_mul_cancel₀ (by positivity), one_mul] + +/-- A Lipschitz `ℤ^m`-periodic map is bounded: it takes all its values on `[0, 1]^m`. -/ +lemma rd_periodic_bounded {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), + φ (x + fun i => (z i : ℝ)) = φ x) : + ∃ M, 0 ≤ M ∧ ∀ x, ‖φ x‖ ≤ M := by + obtain ⟨C, hC⟩ := (isCompact_univ_pi fun _ => + isCompact_Icc (a := (0:ℝ)) (b := 1)).exists_bound_of_continuousOn hφ.continuous.continuousOn + refine ⟨max C 0, le_max_right _ _, fun x => ?_⟩ + have hx : (x + fun i => ((-⌊x i⌋ : ℤ) : ℝ)) ∈ Set.pi Set.univ fun _ => Set.Icc (0:ℝ) 1 := by + intro i _ + simp only [Pi.add_apply, Int.cast_neg] + constructor + · linarith [Int.floor_le (x i)] + · linarith [Int.lt_floor_add_one (x i)] + rw [← hper x (fun i => -⌊x i⌋)] + exact (hC _ hx).trans (le_max_left _ _) + +/-- The gradient of a periodic map is periodic. -/ +lemma rd_grad_periodic {φ : (Fin m → ℝ) → Fin d → ℝ} + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), φ (x + fun i => (z i : ℝ)) = φ x) + (x : Fin m → ℝ) (z : Fin m → ℤ) : grad φ (x + fun i => (z i : ℝ)) = grad φ x := by + ext i k + simp only [grad, Matrix.of_apply] + rw [← fderiv_comp_add_right (f := fun y => φ y i)] + congr 2 + funext y + rw [hper] + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Periodize.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Periodize.lean new file mode 100644 index 0000000000..5207d65759 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Periodize.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Topology.MetricSpace.Lipschitz +public import Mathlib.Analysis.Normed.Group.Constructions +public import Mathlib.Analysis.Normed.Group.Real +public import Mathlib.Algebra.Order.Round +public import Mathlib.Order.ConditionallyCompleteLattice.Indexed + +/-! +# The `ℤ^m`-periodization of a function supported in a small ball + +For `g : ℝ^m → ℝ`, `supPeriodize g x = sup_{k ∈ ℤ^m} g (x + k)`. When `g ≥ 0` vanishes outside +the ball `B_r (x₀)` (sup norm) with `r < 1/2`, the translates `B_r (x₀ − k)` are disjoint, and +`supPeriodize g` is the `ℤ^m`-periodic function equal to `g (· + k)` near every point `x` with +`‖x + k − x₀‖ ≤ 1/2`. + +* `supPeriodize_periodic`: `supPeriodize g` is `ℤ^m`-periodic; +* `exists_norm_add_intVec_sub_le_half`: every `x` has a `k ∈ ℤ^m` with `‖x + k − x₀‖ ≤ 1/2`; +* `one_le_norm_intVec_sub`: distinct points of `ℤ^m` are at distance at least `1`; +* `supPeriodize_eventuallyEq`, `supPeriodize_eq`: near such an `x`, `supPeriodize g = g (· + k)`; +* `lipschitzWith_supPeriodize`: `supPeriodize g` is `K`-Lipschitz if `g` is (and bounded above). + +These facts are elementary. +-/ + +@[expose] public section + +noncomputable section + +open Filter Topology + +namespace CalculusOfVariations + +variable {m : ℕ} + +/-- The `ℤ^m`-periodization `x ↦ sup_{k ∈ ℤ^m} g (x + k)` of `g : ℝ^m → ℝ`. -/ +def supPeriodize (g : (Fin m → ℝ) → ℝ) (x : Fin m → ℝ) : ℝ := + ⨆ k : Fin m → ℤ, g (x + fun i => (k i : ℝ)) + +/-- `supPeriodize g` is `ℤ^m`-periodic: the translation by `k` permutes the translates. -/ +theorem supPeriodize_periodic (g : (Fin m → ℝ) → ℝ) (x : Fin m → ℝ) (k : Fin m → ℤ) : + supPeriodize g (x + fun i => (k i : ℝ)) = supPeriodize g x := by + unfold supPeriodize + refine (Equiv.addLeft k).iSup_congr fun k' => ?_ + congr 1 + ext i + simp only [Equiv.coe_addLeft, Pi.add_apply, Int.cast_add] + ring + +/-- Every `x ∈ ℝ^m` has an integer translate within `1/2` of `x₀` (sup norm). -/ +theorem exists_norm_add_intVec_sub_le_half (x₀ x : Fin m → ℝ) : + ∃ k : Fin m → ℤ, ‖x + (fun i => (k i : ℝ)) - x₀‖ ≤ 1 / 2 := by + refine ⟨fun i => round (x₀ i - x i), (pi_norm_le_iff_of_nonneg (by norm_num)).2 fun i => ?_⟩ + have h := abs_sub_round (x₀ i - x i) + rw [abs_sub_comm] at h + simp only [Pi.add_apply, Pi.sub_apply, Real.norm_eq_abs] + calc |x i + (round (x₀ i - x i) : ℝ) - x₀ i| = |(round (x₀ i - x i) : ℝ) - (x₀ i - x i)| := by + ring_nf + _ ≤ 1 / 2 := h + +/-- Distinct points of `ℤ^m` are at distance at least `1` (sup norm). -/ +theorem one_le_norm_intVec_sub {k k' : Fin m → ℤ} (h : k ≠ k') : + 1 ≤ ‖(fun i => (k i : ℝ)) - fun i => (k' i : ℝ)‖ := by + obtain ⟨i, hi⟩ := Function.ne_iff.1 h + calc (1 : ℝ) ≤ |(k i : ℝ) - k' i| := by + have : (1 : ℤ) ≤ |k i - k' i| := Int.one_le_abs (sub_ne_zero.2 hi) + exact_mod_cast this + _ = ‖((fun i => (k i : ℝ)) - fun i => (k' i : ℝ)) i‖ := by simp [Real.norm_eq_abs] + _ ≤ _ := norm_le_pi_norm _ i + +variable {g : (Fin m → ℝ) → ℝ} {x₀ : Fin m → ℝ} {r : ℝ} + +/-- If `g ≥ 0` vanishes outside `B_r (x₀)`, `r < 1/2`, and `‖x + k − x₀‖ ≤ 1/2`, then +`supPeriodize g = g (· + k)` near `x`: the other translates vanish there. -/ +theorem supPeriodize_eventuallyEq (hg0 : ∀ x, 0 ≤ g x) + (hsupp : ∀ x, r ≤ ‖x - x₀‖ → g x = 0) (hr : r < 1 / 2) {x : Fin m → ℝ} {k : Fin m → ℤ} + (hk : ‖x + (fun i => (k i : ℝ)) - x₀‖ ≤ 1 / 2) : + supPeriodize g =ᶠ[𝓝 x] fun y => g (y + fun i => (k i : ℝ)) := by + filter_upwards [Metric.ball_mem_nhds x (show (0 : ℝ) < 1 / 2 - r by linarith)] with y hy + rw [Metric.mem_ball, dist_eq_norm] at hy + have hle : ∀ k' : Fin m → ℤ, g (y + fun i => (k' i : ℝ)) ≤ g (y + fun i => (k i : ℝ)) := by + intro k' + by_cases hk' : k' = k + · rw [hk'] + rw [hsupp _ ?_] + · exact hg0 _ + have h1 := one_le_norm_intVec_sub hk' + have h2 : ‖y + (fun i => (k i : ℝ)) - x₀‖ ≤ ‖y - x‖ + ‖x + (fun i => (k i : ℝ)) - x₀‖ := by + calc _ = ‖(y - x) + (x + (fun i => (k i : ℝ)) - x₀)‖ := by congr 1; abel + _ ≤ _ := norm_add_le _ _ + have h3 : ‖(fun i => (k' i : ℝ)) - fun i => (k i : ℝ)‖ ≤ + ‖y + (fun i => (k' i : ℝ)) - x₀‖ + ‖y + (fun i => (k i : ℝ)) - x₀‖ := by + calc _ = ‖(y + (fun i => (k' i : ℝ)) - x₀) - (y + (fun i => (k i : ℝ)) - x₀)‖ := by + congr 1; abel + _ ≤ _ := norm_sub_le _ _ + linarith + exact le_antisymm (ciSup_le hle) + (le_ciSup (f := fun k' : Fin m → ℤ => g (y + fun i => (k' i : ℝ))) + ⟨_, by rintro _ ⟨k', rfl⟩; exact hle k'⟩ k) + +/-- If `g ≥ 0` vanishes outside `B_r (x₀)`, `r < 1/2`, and `‖x + k − x₀‖ ≤ 1/2`, then +`supPeriodize g x = g (x + k)`. -/ +theorem supPeriodize_eq (hg0 : ∀ x, 0 ≤ g x) + (hsupp : ∀ x, r ≤ ‖x - x₀‖ → g x = 0) (hr : r < 1 / 2) {x : Fin m → ℝ} {k : Fin m → ℤ} + (hk : ‖x + (fun i => (k i : ℝ)) - x₀‖ ≤ 1 / 2) : + supPeriodize g x = g (x + fun i => (k i : ℝ)) := + (supPeriodize_eventuallyEq hg0 hsupp hr hk).eq_of_nhds + +/-- The periodization of a `K`-Lipschitz function bounded above is `K`-Lipschitz. -/ +theorem lipschitzWith_supPeriodize {K : NNReal} (hg : LipschitzWith K g) {M : ℝ} + (hM : ∀ x, g x ≤ M) : LipschitzWith K (supPeriodize g) := by + refine LipschitzWith.of_le_add_mul K fun x y => ciSup_le fun k => ?_ + have hb : BddAbove (Set.range fun k : Fin m → ℤ => g (y + fun i => (k i : ℝ))) := + ⟨M, by rintro _ ⟨k, rfl⟩; exact hM _⟩ + calc g (x + fun i => (k i : ℝ)) + ≤ g (y + fun i => (k i : ℝ)) + K * dist (x + fun i => (k i : ℝ)) (y + fun i => (k i : ℝ)) := + hg.le_add_mul _ _ + _ ≤ supPeriodize g y + K * dist x y := by + rw [dist_eq_norm, dist_eq_norm, add_sub_add_right_eq_sub] + gcongr + exact le_ciSup hb k + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Rescale.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Rescale.lean new file mode 100644 index 0000000000..82567dc319 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/Rescale.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Gradient + +/-! +# Rescaled test maps + +`∇ (x ↦ k⁻¹ φ (k x)) = (∇φ) (k x)`; the rescaled copy `rescaleMap ψ c s = s ψ (s⁻¹ (· − c))`, its +Lipschitz constant, its gradient and the change of variables `y = s⁻¹ (x − c)`. +-/ + +@[expose] public section + +open Metric Set MeasureTheory Filter Topology +open scoped Pointwise + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-- `∇ (x ↦ k⁻¹ φ (k x)) = (∇φ) (k x)`. -/ +lemma rd_grad_rescale (φ : (Fin m → ℝ) → Fin d → ℝ) {k : ℝ} (hk : k ≠ 0) + (x : Fin m → ℝ) : grad (fun y => k⁻¹ • φ (k • y)) x = grad φ (k • x) := by + ext i j + simp only [grad, Matrix.of_apply, Pi.smul_apply, smul_eq_mul] + have : (fun y => k⁻¹ * φ (k • y) i) = k⁻¹ • ((fun y => φ y i) <| k • ·) := rfl + have h2 := fderiv_comp_smul (𝕜 := ℝ) (f := fun y => φ y i) (x := x) k + rw [this, fderiv_const_smul_field, Pi.smul_apply] + erw [h2] + simp only [smul_apply, smul_eq_mul] + rw [← mul_assoc, inv_mul_cancel₀ hk, one_mul] + +/-! ### Rescaled test maps -/ + +/-- The rescaled copy `x ↦ s ψ (s⁻¹ (x - c))` of `ψ`, supported in `c + s · supp ψ`. -/ +noncomputable def rescaleMap (ψ : (Fin m → ℝ) → Fin d → ℝ) (c : Fin m → ℝ) (s : ℝ) : + (Fin m → ℝ) → Fin d → ℝ := + fun x => s • ψ (s⁻¹ • (x - c)) + +theorem rescaleMap_lipschitz {ψ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} (hψ : LipschitzWith K ψ) + (c : Fin m → ℝ) {s : ℝ} (hs : 0 < s) : LipschitzWith K (rescaleMap ψ c s) := by + refine LipschitzWith.of_dist_le_mul fun x y => ?_ + simp only [rescaleMap, dist_eq_norm, ← smul_sub, norm_smul, Real.norm_of_nonneg hs.le] + have := hψ.dist_le_mul (s⁻¹ • (x - c)) (s⁻¹ • (y - c)) + rw [dist_eq_norm, dist_eq_norm, ← smul_sub, norm_smul, Real.norm_of_nonneg (inv_pos.2 hs).le, + sub_sub_sub_cancel_right] at this + calc s * ‖ψ (s⁻¹ • (x - c)) - ψ (s⁻¹ • (y - c))‖ ≤ s * (K * (s⁻¹ * ‖x - y‖)) := + mul_le_mul_of_nonneg_left this hs.le + _ = K * ‖x - y‖ := by field_simp + +theorem rescaleMap_grad (ψ : (Fin m → ℝ) → Fin d → ℝ) (c : Fin m → ℝ) {s : ℝ} (hs : s ≠ 0) + (x : Fin m → ℝ) : grad (rescaleMap ψ c s) x = grad ψ (s⁻¹ • (x - c)) := by + ext i k + change fderiv ℝ (fun y => (s • ψ (s⁻¹ • (y - c))) i) x (Pi.single k 1) = + fderiv ℝ (fun y => ψ y i) (s⁻¹ • (x - c)) (Pi.single k 1) + have e : fderiv ℝ (fun y => (s • ψ (s⁻¹ • (y - c))) i) x = + s • (s⁻¹ • fderiv ℝ (fun w => ψ w i) (s⁻¹ • (x - c))) := by + calc fderiv ℝ (fun y => (s • ψ (s⁻¹ • (y - c))) i) x + = fderiv ℝ (s • fun y => ψ (s⁻¹ • (y + -c)) i) x := by + congr 1 + _ = s • fderiv ℝ (fun z => ψ (s⁻¹ • z) i) (x + -c) := by + rw [fderiv_const_smul_field, Pi.smul_apply, + fderiv_comp_add_right (f := fun z => ψ (s⁻¹ • z) i)] + _ = s • (s⁻¹ • fderiv ℝ (fun w => ψ w i) (s⁻¹ • (x - c))) := by + rw [fderiv_comp_smul (f := fun w => ψ w i), sub_eq_add_neg] + rw [e] + simp only [FunLike.coe_smul, Pi.smul_apply, smul_eq_mul] + field_simp + +theorem rescaleMap_eq_zero {ψ : (Fin m → ℝ) → Fin d → ℝ} {S : Set (Fin m → ℝ)} + (hψ : ∀ y ∉ S, ψ y = 0) (c : Fin m → ℝ) (s : ℝ) {x : Fin m → ℝ} + (hx : s⁻¹ • (x - c) ∉ S) : rescaleMap ψ c s x = 0 := by + simp [rescaleMap, hψ _ hx] + +/-- The change of variables `y = s⁻¹ (x - c)`. -/ +theorem cv_integral_comp_affine (G : (Fin m → ℝ) → ℝ) (c : Fin m → ℝ) {s : ℝ} (hs : 0 < s) : + ∫ x, G (s⁻¹ • (x - c)) = s ^ m * ∫ y, G y := by + rw [integral_sub_right_eq_self (fun x => G (s⁻¹ • x)) c, Measure.integral_comp_smul, + Module.finrank_fin_fun, inv_pow, inv_inv, abs_of_pos (pow_pos hs m), smul_eq_mul] + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/ZeroSet.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/ZeroSet.lean new file mode 100644 index 0000000000..f2898cb254 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Lipschitz/ZeroSet.lean @@ -0,0 +1,151 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Gradient + +/-! +# The gradient of a Lipschitz map vanishes almost everywhere on its zero set + +`rd_ae_fderiv_eq_zero`: at a Lebesgue density point `x` of `{φ = 0}` where `φ` is differentiable, +a derivative `L` with `L v ≠ 0` would make `φ` nonzero on a ball of a fixed proportion of +`B (x, r)` for all small `r`. Hence `grad φ = 0` almost everywhere on `{φ = 0}` +(`rd_ae_grad_eq_zero`). +-/ + +@[expose] public section + +open Metric Set MeasureTheory Filter Topology +open scoped Pointwise + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-- A Lipschitz map has vanishing derivative at almost every point of its zero set: at a Lebesgue +density point `x` of the zero set where `φ` is differentiable, a derivative `L` with `L v ≠ 0` +would make `φ` nonzero on the ball `B (x + (r/2) v, ρ r/2)`, a fixed proportion of `B (x, r)`. -/ +lemma rd_ae_fderiv_eq_zero {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) : + ∀ᵐ x ∂(volume : Measure (Fin m → ℝ)), φ x = 0 → fderiv ℝ φ x = 0 := by + set E := {x | φ x = 0} + have hE : MeasurableSet E := (isClosed_eq hφ.continuous continuous_const).measurableSet + filter_upwards [Besicovitch.ae_tendsto_measure_inter_div_of_measurableSet volume hE, + hφ.ae_differentiableAt] with x hden hdiff hx + rw [Set.indicator_of_mem (show x ∈ E from hx), Pi.one_apply] at hden + by_contra hL + set L := fderiv ℝ φ x + -- a direction `v`, `‖v‖ ≤ 1`, with `L v ≠ 0` + obtain ⟨v, hv1, hc⟩ : ∃ v : Fin m → ℝ, ‖v‖ ≤ 1 ∧ 0 < ‖L v‖ := by + by_contra h + push Not at h + apply hL + ext w : 1 + rcases eq_or_ne w 0 with rfl | hw + · simp + · have h1 := h (‖w‖⁻¹ • w) (by rw [norm_smul, norm_inv, norm_norm, + inv_mul_cancel₀ (norm_ne_zero_iff.2 hw)]) + rw [map_smul, norm_smul, norm_inv, norm_norm] at h1 + have h2 : ‖L w‖ ≤ 0 := by + have hw' : 0 < ‖w‖ := norm_pos_iff.2 hw + have := mul_le_mul_of_nonneg_left h1 hw'.le + rwa [← mul_assoc, mul_inv_cancel₀ hw'.ne', one_mul, mul_zero] at this + simpa using norm_le_zero_iff.1 h2 + set c := ‖L v‖ + set ρ : ℝ := min 1 (c / (2 * (‖L‖ + 1))) + have hρ0 : 0 < ρ := lt_min one_pos (by positivity) + have hρ1 : ρ ≤ 1 := min_le_left _ _ + have hρL : ‖L‖ * ρ ≤ c / 2 := by + calc ‖L‖ * ρ ≤ (‖L‖ + 1) * (c / (2 * (‖L‖ + 1))) := by + gcongr + · linarith [norm_nonneg L] + · exact min_le_right _ _ + _ = c / 2 := by field_simp + -- differentiability with `ε = c/8` + have hlo := hdiff.hasFDerivAt.isLittleO.def (show (0 : ℝ) < c / 8 by positivity) + obtain ⟨δ, hδ0, hδ⟩ := Metric.eventually_nhds_iff.1 hlo + -- for `0 < r < δ`, the zero set misses `B (x + (r/2) v, ρ r/2)` + have hmiss : ∀ r, 0 < r → r < δ → + E ∩ Metric.closedBall x r ⊆ Metric.closedBall x r \ Metric.closedBall (x + (r / 2) • v) + (ρ * (r / 2)) := by + intro r hr0 hrδ y ⟨hyE, hyr⟩ + refine ⟨hyr, fun hy => ?_⟩ + rw [Metric.mem_closedBall, dist_eq_norm] at hy hyr + set z := y - (x + (r / 2) • v) + have hyx : y - x = (r / 2) • v + z := by simp only [z]; abel + have hnorm : ‖y - x‖ ≤ r := hyr + have h1 := hδ (show dist y x < δ by rw [dist_eq_norm]; linarith) + have hyE' : φ y = 0 := hyE + rw [hyE', hx, sub_zero, zero_sub, norm_neg] at h1 + have h2 : ‖L (y - x)‖ ≥ (r / 2) * c - ‖L‖ * (ρ * (r / 2)) := by + rw [hyx, map_add, map_smul] + calc ‖(r / 2) • L v + L z‖ ≥ ‖(r / 2) • L v‖ - ‖L z‖ := norm_sub_le_norm_add _ _ + _ ≥ (r / 2) * c - ‖L‖ * (ρ * (r / 2)) := by + rw [norm_smul, Real.norm_eq_abs, abs_of_pos (by linarith)] + have := L.le_opNorm z + have hz : ‖z‖ ≤ ρ * (r / 2) := hy + nlinarith [norm_nonneg L] + have h3 : ‖L‖ * (ρ * (r / 2)) ≤ (c / 2) * (r / 2) := by nlinarith + have h4 : c / 8 * ‖y - x‖ ≤ c / 8 * r := by gcongr + nlinarith + -- the density ratio stays below `1 − (ρ/2)^m` + set V := volume (Metric.closedBall (0 : Fin m → ℝ) 1) + have hV0 : V ≠ 0 := (Metric.measure_closedBall_pos volume 0 one_pos).ne' + have hVt : V ≠ ⊤ := measure_closedBall_lt_top.ne + have hfin : Module.finrank ℝ (Fin m → ℝ) = m := by simp + have hbound : ∀ᶠ r in 𝓝[>] (0 : ℝ), + volume (E ∩ Metric.closedBall x r) / volume (Metric.closedBall x r) ≤ + ENNReal.ofReal (1 - (ρ / 2) ^ m) := by + filter_upwards [Ioo_mem_nhdsGT hδ0] with r hr + have hsub : Metric.closedBall (x + (r / 2) • v) (ρ * (r / 2)) ⊆ Metric.closedBall x r := by + intro y hy + rw [Metric.mem_closedBall, dist_eq_norm] at hy ⊢ + calc ‖y - x‖ = ‖(y - (x + (r / 2) • v)) + (r / 2) • v‖ := by congr 1; abel + _ ≤ ‖y - (x + (r / 2) • v)‖ + ‖(r / 2) • v‖ := norm_add_le _ _ + _ ≤ ρ * (r / 2) + r / 2 := by + gcongr + rw [norm_smul, Real.norm_eq_abs, abs_of_pos (by linarith [hr.1])] + nlinarith [hr.1] + _ ≤ r := by nlinarith [hr.1] + have hB : volume (Metric.closedBall x r) = ENNReal.ofReal (r ^ m) * V := by + rw [Measure.addHaar_closedBall' volume x hr.1.le, hfin] + have hb : volume (Metric.closedBall (x + (r / 2) • v) (ρ * (r / 2))) = + ENNReal.ofReal ((ρ * (r / 2)) ^ m) * V := by + rw [Measure.addHaar_closedBall' volume _ (by nlinarith [hr.1]), hfin] + have hle := measure_mono (μ := volume) (hmiss r hr.1 hr.2) + rw [measure_sdiff hsub measurableSet_closedBall.nullMeasurableSet + (measure_closedBall_lt_top.ne), hB, hb] at hle + have hr0 : 0 < r := hr.1 + have hpos : 0 < ENNReal.ofReal (r ^ m) * V := + ENNReal.mul_pos (ENNReal.ofReal_pos.2 (by positivity)).ne' hV0 + rw [hB, ENNReal.div_le_iff hpos.ne' (ENNReal.mul_ne_top ENNReal.ofReal_ne_top hVt)] + refine hle.trans (le_of_eq ?_) + rw [← ENNReal.sub_mul (fun _ _ => hVt), ← mul_assoc, ← ENNReal.ofReal_mul (by + have : (ρ / 2) ^ m ≤ 1 := pow_le_one₀ (by positivity) (by linarith) + linarith), ← ENNReal.ofReal_sub _ (by positivity)] + congr 2 + simp only [mul_pow, div_pow] + ring + have hlim := le_of_tendsto hden hbound + rw [ENNReal.one_le_ofReal] at hlim + have : 0 < (ρ / 2) ^ m := by positivity + linarith + + +/-- The gradient of a Lipschitz map vanishes almost everywhere on its zero set. -/ +lemma rd_ae_grad_eq_zero {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) : + ∀ᵐ x ∂(volume : Measure (Fin m → ℝ)), φ x = 0 → grad φ x = 0 := by + filter_upwards [rd_ae_fderiv_eq_zero hφ, hφ.ae_differentiableAt] with x hx hdiff h0 + ext i k + have hi := (hasFDerivAt_pi'.1 hdiff.hasFDerivAt i).fderiv + simp only [grad, Matrix.of_apply, Matrix.zero_apply] + rw [hi, hx h0] + simp + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/AllOrders.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/AllOrders.lean new file mode 100644 index 0000000000..f1360c706f --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/AllOrders.lean @@ -0,0 +1,374 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.Quasiaffine +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.ZeroSet +public import Mathlib.Data.Fin.Parity + +/-! +# Minors of every order are null Lagrangians and quasiaffine + +For a Lipschitz `φ : ℝ^m → ℝ^d` vanishing outside a bounded set `Ω`, every `A` and every minor (of +any order `k`), `∫_Ω minor (A + ∇φ) = |Ω| minor A` (`setIntegral_minor_add_grad`). This is (8.44) of +Theorem 8.35 of B. Dacorogna, *Direct Methods in the Calculus of Variations*, 2nd ed., Springer, +2008 ([D08], p. 409–410; `Ω` open there), with its proof (part (i) of the proof in [D08]): + +* (Theorem 8.33, p. 407–408) For smooth `u^1, …, u^s` and the directions `c_1, …, c_s`: + `∑_t (−1)^{t+1} ∂_{c_t} (∂ (u^2, …, u^s) / ∂ (x_{c_1}, …, x̂_{c_t}, …, x_{c_s})) = 0`, (8.42), and + `∂ (u^1, …, u^s) / ∂ (x_{c_1}, …, x_{c_s})` is + `∑_t (−1)^{t+1} ∂_{c_t} (u^1 ∂ (u^2, …, u^s) / ∂ (x_{c_1}, …, x̂_{c_t}, …, x_{c_s}))`, (8.43). + (8.43) follows from (8.42) (`nl_jac_eq_sum_D_of`): expand the Jacobian along its first row and use + the product rule. (8.42) is proved by induction on the order (`nl_sum_D_jac_eq_zero`): (8.43), one + order lower, for each of the Jacobians in (8.42) makes the sum a sum over `t ≠ α` of + `± ∂_{c_t} ∂_{c_α} (u^2 ∂ (u^3, …, u^s) / ∂ (…))`, the last Jacobian without the directions `c_t` + and `c_α`, and for `r < β` the terms `(t, α) = (r, β)` and `(β, r)` have opposite signs. In Lean + `α` is given by its position among the indices different from `t` (`Fin.succAbove`), which + contains the distinction between `α < t` and `α > t` of [D08]. [D08] states the theorem for `u` of + class `C²`; for `s ≥ 3` the second derivatives in its proof are those of functions that are then + only of class `C¹`. Here `u` is smooth, which is enough for Theorem 8.35. +* (Step 1, p. 409–410) `∫_Ω det (ξ + ∇ψ) = |Ω| det ξ`, (8.46), for smooth `ψ` with compact support + in `Ω`, by induction on the order (`nl_setIntegral_det_add_smooth`). Expand the determinant along + the first row (Proposition 5.65 of [D08]): the terms with the entries `ξ^1_t` integrate by the + hypothesis of induction; the terms with `∂_{c_t} ψ^1` vanish, by integration by parts and (8.42) + for the rows `ξ^i + ∇ψ^i`, `i ≥ 2`, which are gradients (`nl_setIntegral_D_mul_det_eq_zero`). + [D08] reduces first to square matrices, `ψ : ℝ^s → ℝ^s` ("by abuse of notation", p. 409); here `ψ` + is a map of `m` variables and `c_1, …, c_s` are `s` different directions, the form in which the + step of the induction uses its hypothesis (minors of order `s − 1` of a map of `s` variables). The + induction starts at the order `0` (in [D08], at `1`). +* (Step 2, p. 410, "by an elementary density argument", with no details) The identity passes to + compactly supported Lipschitz maps by mollification (`nl_lipschitz_limit`; + `nl_integral_minor_sub`, with Step 1 on a ball that contains the supports, since mollified maps + need not have their support in `Ω`), and the gradient of `φ` vanishes almost everywhere outside + `Ω` (`rd_ae_grad_eq_zero`). + +The minors of orders `2` and `3` are treated with explicit formulas in `Minors.NullLagrangian` and +`Minors.Quasiaffine`. +-/ + +@[expose] public section + +open MeasureTheory Filter Topology +open scoped ContDiff + +namespace CalculusOfVariations + +variable {d m k : ℕ} + +/-! ### Jacobians -/ + +/-- The Jacobian `∂ (v_1, …, v_k) / ∂ (x_{c_1}, …, x_{c_k}) = det [∂_{c_j} v_i]`. -/ +noncomputable def nlJac (v : Fin k → (Fin m → ℝ) → ℝ) (c : Fin k → Fin m) (x : Fin m → ℝ) : ℝ := + (Matrix.of fun i j => nlD (c j) (v i) x).det + +/-- A Jacobian of smooth functions is smooth. -/ +theorem nl_contDiff_jac {v : Fin k → (Fin m → ℝ) → ℝ} (hv : ∀ i, ContDiff ℝ ∞ (v i)) + (c : Fin k → Fin m) : ContDiff ℝ ∞ (nlJac v c) := by + have e : nlJac v c = fun x => ∑ σ : Equiv.Perm (Fin k), (Equiv.Perm.sign σ : ℝ) * + ∏ i, nlD (c i) (v (σ i)) x := by + funext x + rw [nlJac, Matrix.det_apply'] + rfl + rw [e] + exact ContDiff.sum fun σ _ => contDiff_const.mul (contDiff_prod fun i _ => nl_D_contDiff (hv _) _) + +/-- `∂_a ∑ g_i = ∑ ∂_a g_i`. -/ +theorem nl_D_sum {ι : Type*} (s : Finset ι) {g : ι → (Fin m → ℝ) → ℝ} + (hg : ∀ i ∈ s, ContDiff ℝ ∞ (g i)) (a : Fin m) (x : Fin m → ℝ) : + nlD a (fun y => ∑ i ∈ s, g i y) x = ∑ i ∈ s, nlD a (g i) x := by + have h : HasFDerivAt (fun y => ∑ i ∈ s, g i y) (∑ i ∈ s, fderiv ℝ (g i) x) x := + HasFDerivAt.fun_sum fun i hi => (((hg i hi).differentiable (by simp)) x).hasFDerivAt + simp only [nlD] + rw [h.fderiv, sum_apply] + +/-- `∂_a (b g) = b ∂_a g`. -/ +theorem nl_D_const_mul {g : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) (b : ℝ) (a : Fin m) + (x : Fin m → ℝ) : nlD a (fun y => b * g y) x = b * nlD a g x := by + have h := ((hg.differentiable (by simp)) x).hasFDerivAt.const_mul b + simp only [nlD] + rw [h.fderiv] + simp [smul_eq_mul] + +/-- The expansion of a Jacobian along its first row. -/ +theorem nl_jac_succ (v : Fin (k + 1) → (Fin m → ℝ) → ℝ) (c : Fin (k + 1) → Fin m) + (x : Fin m → ℝ) : nlJac v c x = ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * (nlD (c t) (v 0) x * + nlJac (fun i => v i.succ) (fun j => c (t.succAbove j)) x) := by + rw [nlJac, Matrix.det_succ_row_zero] + refine Finset.sum_congr rfl fun t _ => ?_ + rw [mul_assoc] + rfl + +/-- (8.43) of [D08] follows from (8.42) for `u^2, …, u^s` (the hypothesis `h`; here `s = k + 1` and +`u = v`): expand along the first row and use the product rule. -/ +theorem nl_jac_eq_sum_D_of {v : Fin (k + 1) → (Fin m → ℝ) → ℝ} (hv : ∀ i, ContDiff ℝ ∞ (v i)) + (c : Fin (k + 1) → Fin m) (x : Fin m → ℝ) + (h : ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * + nlD (c t) (nlJac (fun i => v i.succ) fun j => c (t.succAbove j)) x = 0) : + nlJac v c x = ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * nlD (c t) + (fun y => v 0 y * nlJac (fun i => v i.succ) (fun j => c (t.succAbove j)) y) x := by + rw [nl_jac_succ, ← add_zero (∑ t : Fin (k + 1), _), ← mul_zero (v 0 x), ← h, Finset.mul_sum, + ← Finset.sum_add_distrib] + refine Finset.sum_congr rfl fun t _ => ?_ + rw [nl_D_mul (hv 0) (nl_contDiff_jac (fun i => hv i.succ) _)] + ring + +/-- **Theorem 8.33 of [D08], (8.42)**, for smooth functions (`s = k + 1`, and `w_0, …, w_{k−1}` are +`u^2, …, u^s`): `∑_t (−1)^t ∂_{c_t} (∂ w / ∂ (x_{c_0}, …, x̂_{c_t}, …, x_{c_k})) = 0`. The proof is +that of [D08], by induction on the order: (8.43), one order lower, makes the sum +`∑_{t, α} ± ∂_{c_t} ∂_{c_α} (w_0 ∂ (w_1, …, w_{k−1}) / ∂ (…))`, where the terms `(r, β)` and +`(β, r)` cancel. -/ +theorem nl_sum_D_jac_eq_zero {w : Fin k → (Fin m → ℝ) → ℝ} (hw : ∀ i, ContDiff ℝ ∞ (w i)) + (c : Fin (k + 1) → Fin m) (x : Fin m → ℝ) : + ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * nlD (c t) (nlJac w fun j => c (t.succAbove j)) x = 0 := by + induction k generalizing x with + | zero => + have h1 : ∀ c' : Fin 0 → Fin m, nlJac w c' = fun _ => 1 := fun c' => by + funext y; simp [nlJac] + simp [h1, nlD] + | succ k ih => + -- the function under the second derivatives + set G : Fin (k + 2) → Fin (k + 1) → (Fin m → ℝ) → ℝ := fun t α y => + w 0 y * nlJac (fun i => w i.succ) (fun j => c (t.succAbove (α.succAbove j))) y with hG + have hGs : ∀ t α, ContDiff ℝ ∞ (G t α) := fun t α => + (hw 0).mul (nl_contDiff_jac (fun i => hw i.succ) _) + -- the hypothesis of induction: (8.43) for the minors of order `k + 1` + have hJ : ∀ t : Fin (k + 2), nlJac w (fun j => c (t.succAbove j)) = fun y => + ∑ α : Fin (k + 1), (-1) ^ (α : ℕ) * nlD (c (t.succAbove α)) (G t α) y := fun t => + funext fun y => nl_jac_eq_sum_D_of hw _ y + (ih (fun i => hw i.succ) (fun j => c (t.succAbove j)) y) + have hD : ∀ t : Fin (k + 2), + (-1) ^ (t : ℕ) * nlD (c t) (nlJac w fun j => c (t.succAbove j)) x = + ∑ α : Fin (k + 1), (-1) ^ (t + α : ℕ) * nlD (c t) (nlD (c (t.succAbove α)) (G t α)) x := by + intro t + rw [hJ t, nl_D_sum _ (fun α _ => contDiff_const.mul (nl_D_contDiff (hGs t α) _)), + Finset.mul_sum] + refine Finset.sum_congr rfl fun α _ => ?_ + rw [nl_D_const_mul (nl_D_contDiff (hGs t α) _), pow_add, mul_assoc] + simp_rw [hD] + rw [← Finset.sum_product'] + -- the terms `(r, β)` and `(β, r)` cancel + refine Finset.sum_involution (fun p _ => (p.1.succAbove p.2, p.2.predAbove p.1)) + (fun p _ => ?_) (fun p _ _ => ?_) (fun _ _ => Finset.mem_univ _) (fun p _ => ?_) + · obtain ⟨t, α⟩ := p + have hGe : G (t.succAbove α) (α.predAbove t) = G t α := by + simp only [hG, Fin.succAbove_succAbove_succAbove_predAbove] + simp only [Fin.succAbove_succAbove_predAbove, hGe, Fin.neg_one_pow_succAbove_add_predAbove] + rw [nl_D_comm (hGs t α) (c (t.succAbove α)) (c t)] + ring + · exact fun h => Fin.succAbove_ne p.1 p.2 (congrArg Prod.fst h) + · ext1 + · exact Fin.succAbove_succAbove_predAbove _ _ + · exact Fin.predAbove_predAbove_succAbove _ _ + +/-- **Theorem 8.33 of [D08], (8.43)**, for smooth functions: a Jacobian is a divergence. -/ +theorem nl_jac_eq_sum_D {v : Fin (k + 1) → (Fin m → ℝ) → ℝ} (hv : ∀ i, ContDiff ℝ ∞ (v i)) + (c : Fin (k + 1) → Fin m) (x : Fin m → ℝ) : + nlJac v c x = ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * nlD (c t) + (fun y => v 0 y * nlJac (fun i => v i.succ) (fun j => c (t.succAbove j)) y) x := + nl_jac_eq_sum_D_of hv c x (nl_sum_D_jac_eq_zero (fun i => hv i.succ) c x) + +/-! ### The minors of `A + ∇φ` -/ + +/-- The linear function `y ↦ ∑_l a_l y_l` has the partial derivatives `a_b`. -/ +theorem nl_D_linear (a : Fin m → ℝ) (b : Fin m) (x : Fin m → ℝ) : + nlD b (fun y => ∑ l, a l * y l) x = a b := by + have h : HasFDerivAt (fun y : Fin m → ℝ => ∑ l, a l * y l) + (∑ l, a l • ContinuousLinearMap.proj (R := ℝ) (φ := fun _ : Fin m => ℝ) l) x := + HasFDerivAt.fun_sum fun l _ => (hasFDerivAt_apply l x).const_mul (a l) + rw [nlD, h.fderiv] + simp [Pi.single_apply] + +/-- The second term in the proof of (8.46) of [D08]: for smooth `ψ_0, …, ψ_k`, `ψ_0` with compact +support in `Ω`, `∫_Ω ∑_t (−1)^t ∂_{c_t} ψ_0 · M_t = 0`, where `M_t` is the minor without the column +`t` of the `k × (k + 1)` matrix with the rows `X_i + ∇ψ_{i+1}`, `0 ≤ i < k`. These rows are the +gradients of the functions `w_i`, the sum of a linear function and `ψ_{i+1}`; integrate by parts, +and use (8.42) for the `w_i`. -/ +theorem nl_setIntegral_D_mul_det_eq_zero {Ω : Set (Fin m → ℝ)} + (X : Matrix (Fin k) (Fin (k + 1)) ℝ) {ψ : Fin (k + 1) → (Fin m → ℝ) → ℝ} + (hψ : ∀ i, ContDiff ℝ ∞ (ψ i)) + (hc : HasCompactSupport (ψ 0)) (hΩ : tsupport (ψ 0) ⊆ Ω) (c : Fin (k + 1) ↪ Fin m) : + ∫ x in Ω, ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * (nlD (c t) (ψ 0) x * + (Matrix.of fun i j => X i (t.succAbove j) + + nlD (c (t.succAbove j)) (ψ i.succ) x).det) = 0 := by + -- the rows `X_i + ∇ψ_i`, as gradients + set w : Fin k → (Fin m → ℝ) → ℝ := fun i y => + (∑ l, (∑ j, if c j = l then X i j else 0) * y l) + ψ i.succ y with hw + have hlin : ∀ i, ContDiff ℝ ∞ fun y : Fin m → ℝ => + ∑ l, (∑ j, if c j = l then X i j else 0) * y l := fun i => + ContDiff.sum fun l _ => contDiff_const.mul (by fun_prop) + have hws : ∀ i, ContDiff ℝ ∞ (w i) := fun i => (hlin i).add (hψ i.succ) + have hwD : ∀ i j x, nlD (c j) (w i) x = X i j + nlD (c j) (ψ i.succ) x := by + intro i j x + refine (congrFun (nl_D_add (hlin i) (hψ i.succ) (c j)) x).trans ?_ + rw [nl_D_linear] + simp [c.injective.eq_iff] + have hJ : ∀ (t : Fin (k + 1)) x, (Matrix.of fun i j => X i (t.succAbove j) + + nlD (c (t.succAbove j)) (ψ i.succ) x).det = nlJac w (fun j => c (t.succAbove j)) x := by + intro t x + rw [nlJac] + congr 1 + ext i j + simp only [Matrix.of_apply, hwD] + have hP : ∀ t : Fin (k + 1), ContDiff ℝ ∞ fun y => + ψ 0 y * nlJac w (fun j => c (t.succAbove j)) y := fun t => + (hψ 0).mul (nl_contDiff_jac hws _) + have hPc : ∀ t : Fin (k + 1), HasCompactSupport fun y => + ψ 0 y * nlJac w (fun j => c (t.succAbove j)) y := fun t => hc.mul_right + -- integration by parts, with (8.42) + have hdiv : ∀ x, ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * (nlD (c t) (ψ 0) x * + (Matrix.of fun i j => X i (t.succAbove j) + nlD (c (t.succAbove j)) (ψ i.succ) x).det) = + ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * nlD (c t) + (fun y => ψ 0 y * nlJac w (fun j => c (t.succAbove j)) y) x := by + intro x + rw [← add_zero (∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * (_ * Matrix.det _)), ← mul_zero (ψ 0 x), + ← nl_sum_D_jac_eq_zero hws c x, Finset.mul_sum, ← Finset.sum_add_distrib] + refine Finset.sum_congr rfl fun t _ => ?_ + rw [hJ, nl_D_mul (hψ 0) (nl_contDiff_jac hws _)] + ring + have hsupp : ∀ x ∉ Ω, ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * nlD (c t) + (fun y => ψ 0 y * nlJac w (fun j => c (t.succAbove j)) y) x = 0 := by + intro x hx + refine Finset.sum_eq_zero fun t _ => ?_ + have h0 : fderiv ℝ (fun y => ψ 0 y * nlJac w (fun j => c (t.succAbove j)) y) x = 0 := + image_eq_zero_of_notMem_tsupport fun h => hx (hΩ (tsupport_mul_subset_left + (tsupport_fderiv_subset ℝ h))) + rw [nlD, h0] + simp + simp_rw [hdiv] + rw [setIntegral_eq_integral_of_forall_compl_eq_zero hsupp, integral_finsetSum _ fun t _ => + (nl_integrable_of_smooth (nl_D_contDiff (hP t) _) + (nl_hasCompactSupport_D (hPc t) _)).const_mul _] + refine Finset.sum_eq_zero fun t _ => ?_ + rw [integral_const_mul, nl_integral_D_eq_zero (hP t) (hPc t), mul_zero] + +/-- A continuous function is integrable on a bounded set. -/ +theorem nl_integrableOn_of_continuous {g : (Fin m → ℝ) → ℝ} (hg : Continuous g) + {Ω : Set (Fin m → ℝ)} (hb : Bornology.IsBounded Ω) : IntegrableOn g Ω := + (hg.continuousOn.integrableOn_compact hb.isCompact_closure).mono_set subset_closure + +/-- **Step 1 of the proof of Theorem 8.35 (i) of [D08], (8.46)**: for a bounded `Ω`, a `k × k` +matrix `X` and smooth `ψ_i` with compact support in `Ω`, `∫_Ω det (X + [∂_{c_j} ψ_i]) = |Ω| det X`. +By induction on `k`: expand along the first row; the terms with the entries of `X` integrate by the +hypothesis of induction, the terms with `∂_{c_t} ψ_0` by `nl_setIntegral_D_mul_det_eq_zero`. -/ +theorem nl_setIntegral_det_add_smooth {Ω : Set (Fin m → ℝ)} (hb : Bornology.IsBounded Ω) + (X : Matrix (Fin k) (Fin k) ℝ) {ψ : Fin k → (Fin m → ℝ) → ℝ} (hψ : ∀ i, ContDiff ℝ ∞ (ψ i)) + (hc : ∀ i, HasCompactSupport (ψ i)) (hΩ : ∀ i, tsupport (ψ i) ⊆ Ω) (c : Fin k ↪ Fin m) : + ∫ x in Ω, (Matrix.of fun i j => X i j + nlD (c j) (ψ i) x).det = + (volume Ω).toReal * X.det := by + induction k with + | zero => simp [Measure.real] + | succ k ih => + -- the minors without the first row and the column `t` + set D : Fin (k + 1) → (Fin m → ℝ) → ℝ := fun t x => (Matrix.of fun i j : Fin k => + X i.succ (t.succAbove j) + nlD (c (t.succAbove j)) (ψ i.succ) x).det with hD + have hDc : ∀ t, Continuous (D t) := fun t => + Continuous.matrix_det (continuous_matrix fun i j => continuous_const.add + (nl_D_contDiff (hψ i.succ) _).continuous) + have hexp : ∀ x, (Matrix.of fun i j => X i j + nlD (c j) (ψ i) x).det = + (∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * (X 0 t * D t x)) + + ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * (nlD (c t) (ψ 0) x * D t x) := by + intro x + rw [Matrix.det_succ_row_zero, ← Finset.sum_add_distrib] + refine Finset.sum_congr rfl fun t _ => ?_ + have e : (Matrix.of fun i j => X i j + nlD (c j) (ψ i) x).submatrix Fin.succ t.succAbove = + Matrix.of fun i j : Fin k => + X i.succ (t.succAbove j) + nlD (c (t.succAbove j)) (ψ i.succ) x := rfl + rw [e, Matrix.of_apply] + simp only [hD] + ring + -- the first term, by the hypothesis of induction + have h1 : ∫ x in Ω, ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * (X 0 t * D t x) = + (volume Ω).toReal * X.det := by + rw [integral_finsetSum _ fun t _ => ((nl_integrableOn_of_continuous (hDc t) hb).const_mul + _).const_mul _, Matrix.det_succ_row_zero, Finset.mul_sum] + refine Finset.sum_congr rfl fun t _ => ?_ + rw [integral_const_mul, integral_const_mul] + have := ih (X.submatrix Fin.succ t.succAbove) (fun i => hψ i.succ) (fun i => hc i.succ) + (fun i => hΩ i.succ) ((Fin.succAboveEmb t).trans c) + simp only [hD] + rw [show (∫ x in Ω, (Matrix.of fun i j : Fin k => X i.succ (t.succAbove j) + + nlD (c (t.succAbove j)) (ψ i.succ) x).det) = _ from this] + ring + -- the second term, by integration by parts and (8.42) + have h2 := nl_setIntegral_D_mul_det_eq_zero (X.submatrix Fin.succ id) hψ (hc 0) (hΩ 0) c + simp_rw [hexp] + rw [integral_add, h1] + · rw [show (∫ x in Ω, ∑ t : Fin (k + 1), (-1) ^ (t : ℕ) * (nlD (c t) (ψ 0) x * D t x)) = 0 + from h2, add_zero] + · exact integrable_finsetSum _ fun t _ => ((nl_integrableOn_of_continuous (hDc t) hb).const_mul + _).const_mul _ + · exact integrable_finsetSum _ fun t _ => (nl_integrableOn_of_continuous + ((nl_D_contDiff (hψ 0) _).continuous.mul (hDc t)) hb).const_mul _ + +/-- **Step 2 of the proof of Theorem 8.35 (i) of [D08]**, density: for a Lipschitz `φ` with compact +support, `∫ (minor (A + ∇φ) − minor A) = 0`, by Step 1 for its mollifications, on a ball that +contains their supports. -/ +theorem nl_integral_minor_sub {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} (hφ : LipschitzWith K φ) + (hc : HasCompactSupport φ) (A : Matrix (Fin d) (Fin m) ℝ) (r : Fin k ↪o Fin d) + (c : Fin k ↪o Fin m) : ∫ x, (minor (A + grad φ x) r c - minor A r c) = 0 := by + have hcomp : ∀ i, HasCompactSupport fun y => φ y i := fun i => + hc.comp_left (g := fun z : Fin d → ℝ => z i) rfl + have hF : Continuous fun G : Fin d → Fin m → ℝ => + minor (A + Matrix.of G) r c - minor A r c := by + have : Continuous fun G : Fin d → Fin m → ℝ => (A + Matrix.of G).submatrix r c := + (continuous_const.add continuous_id).matrix_submatrix r c + exact this.matrix_det.sub continuous_const + refine nl_lipschitz_limit (fun i y => φ y i) (fun _ => K) (nl_lip_comp hφ) hcomp + (fun G => minor (A + Matrix.of G) r c - minor A r c) hF (by simp) fun ψ hψ hψc => ?_ + -- Step 1 on a ball that contains the supports + have hS : IsCompact (⋃ i, tsupport (ψ i)) := isCompact_iUnion hψc + obtain ⟨R, hR⟩ := hS.isBounded.subset_closedBall 0 + have hb : Bornology.IsBounded (Metric.closedBall (0 : Fin m → ℝ) R) := Metric.isBounded_closedBall + have hΩ : ∀ i, tsupport (ψ i) ⊆ Metric.closedBall 0 R := fun i => + (Set.subset_iUnion (fun i => tsupport (ψ i)) i).trans hR + have h1 := nl_setIntegral_det_add_smooth hb (A.submatrix r c) (fun i => hψ (r i)) + (fun i => hψc (r i)) (fun i => hΩ (r i)) c.toEmbedding + have hD0 : ∀ x ∉ Metric.closedBall (0 : Fin m → ℝ) R, ∀ i a, nlD a (ψ i) x = 0 := by + intro x hx i a + have h0 : fderiv ℝ (ψ i) x = 0 := image_eq_zero_of_notMem_tsupport fun h => + hx (hΩ i (tsupport_fderiv_subset ℝ h)) + rw [nlD, h0] + simp + have hmin : ∀ x, minor (A + Matrix.of fun i a => nlD a (ψ i) x) r c = + (Matrix.of fun i j => A.submatrix r c i j + nlD (c.toEmbedding j) (ψ (r i)) x).det := + fun x => rfl + have hcont : Continuous fun x => minor (A + Matrix.of fun i a => nlD a (ψ i) x) r c := + ((continuous_const.add (continuous_matrix fun i a => + (nl_D_contDiff (hψ i) a).continuous)).matrix_submatrix r c).matrix_det + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero (s := Metric.closedBall (0 : Fin m → ℝ) R) + fun x hx => ?_, integral_sub (nl_integrableOn_of_continuous hcont hb) + (integrableOn_const hb.measure_lt_top.ne eNorm_ne_top), setIntegral_const, smul_eq_mul] + · simp_rw [hmin] + rw [h1, Measure.real] + exact sub_self _ + · rw [show (Matrix.of fun i a => nlD a (ψ i) x) = 0 from by + ext i a; exact hD0 x hx i a, add_zero, sub_self] + +/-- **Minors of every order are null Lagrangians** ([D08], Theorem 8.35, (8.44)): for a bounded `Ω` +and a Lipschitz `φ` vanishing outside `Ω`, `∫_Ω minor (A + ∇φ) = |Ω| minor A`. -/ +theorem setIntegral_minor_add_grad {Ω : Set (Fin m → ℝ)} (hb : Bornology.IsBounded Ω) + {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} (hφ : LipschitzWith K φ) (h0 : ∀ x ∉ Ω, φ x = 0) + (A : Matrix (Fin d) (Fin m) ℝ) (r : Fin k ↪o Fin d) (c : Fin k ↪o Fin m) : + ∫ x in Ω, minor (A + grad φ x) r c = (volume Ω).toReal * minor A r c := by + have hfin : volume Ω ≠ ⊤ := hb.measure_lt_top.ne + have hcs : HasCompactSupport φ := by + obtain ⟨R, hR⟩ := hb.subset_closedBall 0 + exact HasCompactSupport.intro (isCompact_closedBall _ R) fun x hx => h0 x fun h => hx (hR h) + have hcont : Continuous fun J : Matrix (Fin d) (Fin m) ℝ => minor J r c := + (continuous_id.matrix_submatrix r c).matrix_det + have hI : IntegrableOn (fun x => minor (A + grad φ x) r c) Ω := + nl_integrableOn_cube hφ hcont A Ω hfin + have h1 : ∫ x in Ω, (minor (A + grad φ x) r c - minor A r c) = 0 := by + rw [setIntegral_eq_integral_of_ae_compl_eq_zero, nl_integral_minor_sub hφ hcs A r c] + filter_upwards [rd_ae_grad_eq_zero hφ] with x hx hxΩ + rw [hx (h0 x hxΩ), add_zero, sub_self] + rw [integral_sub hI (integrableOn_const hfin eNorm_ne_top), setIntegral_const, smul_eq_mul, + Measure.real] at h1 + linarith + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/NullLagrangian.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/NullLagrangian.lean new file mode 100644 index 0000000000..8a5e051e9f --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/NullLagrangian.lean @@ -0,0 +1,274 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Mollify +public import Mathlib.Analysis.Calculus.FDeriv.Symmetric + +/-! +# Minors of order at most three are null Lagrangians + +For Lipschitz maps vanishing outside a compact set, the integrals of the `2 × 2` and `3 × 3` minors +of the gradient vanish (`nl_null2`, `nl_null3`): for smooth compactly supported maps by the +divergence identities (`∂_a u ∂_b v − ∂_b u ∂_a v = ∂_a (u ∂_b v) − ∂_b (u ∂_a v)`, and the +cofactor identity for `3 × 3` minors), and for Lipschitz maps by mollification +(`Lipschitz.Mollify`) and dominated convergence (`nl_lipschitz_limit`). This is the argument of +C. B. Morrey, *Quasi-convexity and the lower semicontinuity of multiple integrals*, Pacific J. Math. +2 (1952), Lemma 5.1 (mollify, then Green's theorem), and of B. Dacorogna, *Direct Methods in the +Calculus of Variations*, 2nd ed., Springer, 2008, Theorems 8.33 and 8.35 (minors as divergences, and +density), which cover minors of every order (`Minors.AllOrders`); here orders `2` and `3`. +-/ + +@[expose] public section + +open MeasureTheory Filter Topology +open scoped ContDiff Pointwise + +namespace CalculusOfVariations + +variable {m : ℕ} + +/-- The partial derivative `∂_a g`. -/ +noncomputable def nlD (a : Fin m) (g : (Fin m → ℝ) → ℝ) (x : Fin m → ℝ) : ℝ := + fderiv ℝ g x (Pi.single a 1) + +theorem nl_D_contDiff {g : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) (a : Fin m) : + ContDiff ℝ ∞ (nlD a g) := + (hg.fderiv_right (m := ∞) (by simp)).clm_apply contDiff_const + +theorem nl_D_mul {g h : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) (hh : ContDiff ℝ ∞ h) + (a : Fin m) : nlD a (fun x => g x * h x) = fun x => nlD a g x * h x + g x * nlD a h x := by + funext x + simp only [nlD] + rw [fderiv_fun_mul ((hg.differentiable (by simp)) x) ((hh.differentiable (by simp)) x)] + simp [smul_eq_mul] + ring + +theorem nl_D_sub {g h : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) (hh : ContDiff ℝ ∞ h) + (a : Fin m) : nlD a (fun x => g x - h x) = fun x => nlD a g x - nlD a h x := by + funext x + simp only [nlD] + rw [fderiv_fun_sub ((hg.differentiable (by simp)) x) ((hh.differentiable (by simp)) x)] + rfl + +theorem nl_D_add {g h : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) (hh : ContDiff ℝ ∞ h) + (a : Fin m) : nlD a (fun x => g x + h x) = fun x => nlD a g x + nlD a h x := by + funext x + simp only [nlD] + rw [fderiv_fun_add ((hg.differentiable (by simp)) x) ((hh.differentiable (by simp)) x)] + rfl + +/-- Symmetry of second derivatives: `∂_a ∂_b g = ∂_b ∂_a g`. -/ +theorem nl_D_comm {g : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) (a b : Fin m) : + nlD a (nlD b g) = nlD b (nlD a g) := by + funext x + have hd : DifferentiableAt ℝ (fderiv ℝ g) x := + ((hg.fderiv_right (m := ∞) (by simp)).differentiable (by simp)) x + have hsymm := (hg.contDiffAt (x := x)).isSymmSndFDerivAt (n := ∞) (by simp) + change fderiv ℝ (fun y => fderiv ℝ g y (Pi.single b 1)) x (Pi.single a 1) = + fderiv ℝ (fun y => fderiv ℝ g y (Pi.single a 1)) x (Pi.single b 1) + rw [fderiv_clm_apply hd (differentiableAt_const _), fderiv_clm_apply hd + (differentiableAt_const _)] + simp only [fderiv_fun_const, Pi.zero_apply, ContinuousLinearMap.comp_zero, zero_add, + ContinuousLinearMap.flip_apply] + exact hsymm _ _ + +/-- `∫ ∂_a w = 0` for smooth compactly supported `w`. -/ +theorem nl_integral_D_eq_zero {w : (Fin m → ℝ) → ℝ} (hw : ContDiff ℝ ∞ w) + (hwc : HasCompactSupport w) (a : Fin m) : ∫ x, nlD a w x = 0 := by + obtain ⟨K, hK⟩ := hw.lipschitzWith_of_hasCompactSupport hwc (by simp) (𝕂 := ℝ) + exact plancherel_integral_fderiv_eq_zero hK hwc _ + +theorem nl_hasCompactSupport_D {g : (Fin m → ℝ) → ℝ} (hgc : HasCompactSupport g) (a : Fin m) : + HasCompactSupport (nlD a g) := + (hgc.fderiv ℝ).comp_left (g := fun L : (Fin m → ℝ) →L[ℝ] ℝ => L (Pi.single a 1)) rfl + +theorem nl_integrable_of_smooth {g : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) + (hgc : HasCompactSupport g) : Integrable g := + hg.continuous.integrable_of_hasCompactSupport hgc + +/-- **`2 × 2` minors, smooth case**: `∫ (∂_a u ∂_b v − ∂_b u ∂_a v) = 0`. -/ +theorem nl_null2_smooth {u v : (Fin m → ℝ) → ℝ} (hu : ContDiff ℝ ∞ u) (hv : ContDiff ℝ ∞ v) + (huc : HasCompactSupport u) (a b : Fin m) : + ∫ x, (nlD a u x * nlD b v x - nlD b u x * nlD a v x) = 0 := by + have hDv := fun c => nl_D_contDiff hv c + have e : (fun x => nlD a u x * nlD b v x - nlD b u x * nlD a v x) = + fun x => nlD a (fun y => u y * nlD b v y) x - nlD b (fun y => u y * nlD a v y) x := by + rw [nl_D_mul hu (hDv b), nl_D_mul hu (hDv a), nl_D_comm hv a b] + funext x; ring + rw [e] + have hw1 : ContDiff ℝ ∞ fun y => u y * nlD b v y := hu.mul (hDv b) + have hw2 : ContDiff ℝ ∞ fun y => u y * nlD a v y := hu.mul (hDv a) + have hc1 : HasCompactSupport fun y => u y * nlD b v y := huc.mul_right + have hc2 : HasCompactSupport fun y => u y * nlD a v y := huc.mul_right + rw [integral_sub (nl_integrable_of_smooth (nl_D_contDiff hw1 a) (nl_hasCompactSupport_D hc1 a)) + (nl_integrable_of_smooth (nl_D_contDiff hw2 b) (nl_hasCompactSupport_D hc2 b)), + nl_integral_D_eq_zero hw1 hc1, nl_integral_D_eq_zero hw2 hc2, sub_zero] + +/-- The `3 × 3` minor `det [∂_{a_j} u_i]`. -/ +noncomputable def nlDet3 (u₀ u₁ u₂ : (Fin m → ℝ) → ℝ) (a₀ a₁ a₂ : Fin m) (x : Fin m → ℝ) : ℝ := + nlD a₀ u₀ x * (nlD a₁ u₁ x * nlD a₂ u₂ x - nlD a₂ u₁ x * nlD a₁ u₂ x) - + nlD a₁ u₀ x * (nlD a₀ u₁ x * nlD a₂ u₂ x - nlD a₂ u₁ x * nlD a₀ u₂ x) + + nlD a₂ u₀ x * (nlD a₀ u₁ x * nlD a₁ u₂ x - nlD a₁ u₁ x * nlD a₀ u₂ x) + +/-- **`3 × 3` minors, smooth case**: `∫ det [∂_{a_j} u_i] = 0`, by +`det = Σ_j ∂_{a_j} (u₀ C_j)` with the cofactors `C_j` of the first row, whose divergence +`Σ_j ∂_{a_j} C_j` vanishes (Piola). -/ +theorem nl_null3_smooth {u₀ u₁ u₂ : (Fin m → ℝ) → ℝ} (h₀ : ContDiff ℝ ∞ u₀) + (h₁ : ContDiff ℝ ∞ u₁) (h₂ : ContDiff ℝ ∞ u₂) (hc : HasCompactSupport u₀) + (a₀ a₁ a₂ : Fin m) : ∫ x, nlDet3 u₀ u₁ u₂ a₀ a₁ a₂ x = 0 := by + have D1 := fun c => nl_D_contDiff h₁ c + have D2 := fun c => nl_D_contDiff h₂ c + -- the cofactors of the first row + set C₀ : (Fin m → ℝ) → ℝ := fun x => nlD a₁ u₁ x * nlD a₂ u₂ x - nlD a₂ u₁ x * nlD a₁ u₂ x + set C₁ : (Fin m → ℝ) → ℝ := fun x => nlD a₀ u₁ x * nlD a₂ u₂ x - nlD a₂ u₁ x * nlD a₀ u₂ x + set C₂ : (Fin m → ℝ) → ℝ := fun x => nlD a₀ u₁ x * nlD a₁ u₂ x - nlD a₁ u₁ x * nlD a₀ u₂ x + have hC₀ : ContDiff ℝ ∞ C₀ := ((D1 a₁).mul (D2 a₂)).sub ((D1 a₂).mul (D2 a₁)) + have hC₁ : ContDiff ℝ ∞ C₁ := ((D1 a₀).mul (D2 a₂)).sub ((D1 a₂).mul (D2 a₀)) + have hC₂ : ContDiff ℝ ∞ C₂ := ((D1 a₀).mul (D2 a₁)).sub ((D1 a₁).mul (D2 a₀)) + -- the Piola identity + have hP : ∀ x, nlD a₀ C₀ x - nlD a₁ C₁ x + nlD a₂ C₂ x = 0 := by + intro x + simp only [C₀, C₁, C₂] + rw [nl_D_sub ((D1 a₁).mul (D2 a₂)) ((D1 a₂).mul (D2 a₁)), + nl_D_sub ((D1 a₀).mul (D2 a₂)) ((D1 a₂).mul (D2 a₀)), + nl_D_sub ((D1 a₀).mul (D2 a₁)) ((D1 a₁).mul (D2 a₀))] + simp only + rw [nl_D_mul (D1 a₁) (D2 a₂), nl_D_mul (D1 a₂) (D2 a₁), nl_D_mul (D1 a₀) (D2 a₂), + nl_D_mul (D1 a₂) (D2 a₀), nl_D_mul (D1 a₀) (D2 a₁), nl_D_mul (D1 a₁) (D2 a₀)] + simp only + rw [nl_D_comm h₁ a₀ a₁, nl_D_comm h₁ a₀ a₂, nl_D_comm h₁ a₁ a₂, + nl_D_comm h₂ a₀ a₁, nl_D_comm h₂ a₀ a₂, nl_D_comm h₂ a₁ a₂] + ring + have e : nlDet3 u₀ u₁ u₂ a₀ a₁ a₂ = fun x => + nlD a₀ (fun y => u₀ y * C₀ y) x - nlD a₁ (fun y => u₀ y * C₁ y) x + + nlD a₂ (fun y => u₀ y * C₂ y) x := by + rw [nl_D_mul h₀ hC₀, nl_D_mul h₀ hC₁, nl_D_mul h₀ hC₂] + funext x + have := hP x + simp only [nlDet3] + linear_combination (-(u₀ x)) * this + rw [e] + have w0 : ContDiff ℝ ∞ fun y => u₀ y * C₀ y := h₀.mul hC₀ + have w1 : ContDiff ℝ ∞ fun y => u₀ y * C₁ y := h₀.mul hC₁ + have w2 : ContDiff ℝ ∞ fun y => u₀ y * C₂ y := h₀.mul hC₂ + have c0 : HasCompactSupport fun y => u₀ y * C₀ y := hc.mul_right + have c1 : HasCompactSupport fun y => u₀ y * C₁ y := hc.mul_right + have c2 : HasCompactSupport fun y => u₀ y * C₂ y := hc.mul_right + have i0 := nl_integrable_of_smooth (nl_D_contDiff w0 a₀) (nl_hasCompactSupport_D c0 a₀) + have i1 := nl_integrable_of_smooth (nl_D_contDiff w1 a₁) (nl_hasCompactSupport_D c1 a₁) + have i2 := nl_integrable_of_smooth (nl_D_contDiff w2 a₂) (nl_hasCompactSupport_D c2 a₂) + beta_reduce + rw [integral_add (f := fun x => nlD a₀ (fun y => u₀ y * C₀ y) x - + nlD a₁ (fun y => u₀ y * C₁ y) x) (i0.sub i1) i2, + integral_sub i0 i1, nl_integral_D_eq_zero w0 c0, + nl_integral_D_eq_zero w1 c1, nl_integral_D_eq_zero w2 c2] + ring + +/-- **Mollification**: an identity `∫ Φ (∇ψ) = 0`, valid for smooth compactly supported `ψ`, +passes to compactly supported Lipschitz maps, for continuous `Φ` with `Φ (0) = 0` (the +mollifications `ρ_n ⋆ u_i` are smooth with compact support, and their derivatives are bounded, +supported in a fixed compact set and converge almost everywhere). -/ +theorem nl_lipschitz_limit {k : ℕ} (u : Fin k → (Fin m → ℝ) → ℝ) (K : Fin k → NNReal) + (hu : ∀ i, LipschitzWith (K i) (u i)) (huc : ∀ i, HasCompactSupport (u i)) + (Φ : (Fin k → Fin m → ℝ) → ℝ) (hΦ : Continuous Φ) (hΦ0 : Φ 0 = 0) + (hsmooth : ∀ ψ : Fin k → (Fin m → ℝ) → ℝ, (∀ i, ContDiff ℝ ∞ (ψ i)) → + (∀ i, HasCompactSupport (ψ i)) → ∫ x, Φ (fun i a => nlD a (ψ i) x) = 0) : + ∫ x, Φ (fun i a => fderiv ℝ (u i) x (Pi.single a 1)) = 0 := by + set ψ : ℕ → Fin k → (Fin m → ℝ) → ℝ := + fun n i => plancherelMollify volume (plancherelBump m n) + (u i) with hψ + have hψs : ∀ n i, ContDiff ℝ ∞ (ψ n i) := fun n i => + plancherelMollify_contDiff _ (hu i).continuous + have hψc : ∀ n i, HasCompactSupport (ψ n i) := fun n i => + plancherelMollify_hasCompactSupport _ (huc i) + have hn : ∀ n, ∫ x, Φ (fun i a => nlD a (ψ n i) x) = 0 := fun n => hsmooth _ (hψs n) (hψc n) + have hbd : ∀ n i (v : Fin m → ℝ) x, |fderiv ℝ (ψ n i) x v| ≤ K i * ‖v‖ := by + intro n i v x + rw [plancherelMollify_fderiv _ (hu i)] + exact plancherelMollify_abs_le _ (fun y => by + simpa [Real.norm_eq_abs] using norm_lineDeriv_le_of_lipschitz ℝ (hu i) (x₀ := y) (v := v)) x + set S := ⋃ i, Metric.closedBall (0 : Fin m → ℝ) 1 + tsupport (u i) with hS + have hSc : IsCompact S := isCompact_iUnion fun i => (isCompact_closedBall _ _).add (huc i) + have hsupp : ∀ n i (v : Fin m → ℝ) x, x ∉ S → fderiv ℝ (ψ n i) x v = 0 := by + intro n i v x hx + rw [plancherelMollify_fderiv _ (hu i)] + exact plancherelMollify_eq_zero _ + (plancherelBump_rOut_le m n) + (fun y hy => plancherel_lineDeriv_eq_zero_of_notMem hy v) + (fun h => hx (Set.mem_iUnion.mpr ⟨i, h⟩)) + -- a bound for `Φ` on the box of admissible gradients + set B : Set (Fin k → Fin m → ℝ) := + Set.pi Set.univ fun i => Set.pi Set.univ fun a => + Set.Icc (-(K i * ‖(Pi.single a 1 : Fin m → ℝ)‖)) (K i * ‖(Pi.single a 1 : Fin m → ℝ)‖) + have hBc : IsCompact B := isCompact_univ_pi fun i => isCompact_univ_pi fun a => isCompact_Icc + obtain ⟨M, hM⟩ := hBc.exists_bound_of_continuousOn hΦ.continuousOn + have hmem : ∀ n x, (fun i a => nlD a (ψ n i) x) ∈ B := by + intro n x i _ a _ + exact abs_le.mp (hbd n i _ x) + have hlim : Tendsto (fun n => ∫ x, Φ (fun i a => nlD a (ψ n i) x)) atTop + (𝓝 (∫ x, Φ (fun i a => fderiv ℝ (u i) x (Pi.single a 1)))) := by + refine tendsto_integral_of_dominated_convergence (S.indicator fun _ => M) (fun n => ?_) ?_ + (fun n => ?_) ?_ + · have : Continuous fun x => (fun i a => nlD a (ψ n i) x) := + continuous_pi fun i => continuous_pi fun a => (nl_D_contDiff (hψs n i) a).continuous + exact (hΦ.comp this).aestronglyMeasurable + · exact (integrable_indicator_iff hSc.measurableSet).2 + (integrableOn_const hSc.measure_lt_top.ne) + · filter_upwards with x + by_cases hx : x ∈ S + · rw [Set.indicator_of_mem hx] + exact hM _ (hmem n x) + · rw [Set.indicator_of_notMem hx] + have : (fun i a => nlD a (ψ n i) x) = 0 := by + funext i a; exact hsupp n i _ x hx + rw [this, hΦ0, norm_zero] + · have hae : ∀ᵐ x, ∀ i : Fin k, ∀ a : Fin m, Tendsto + (fun n => fderiv ℝ (ψ n i) x (Pi.single a 1)) atTop + (𝓝 (fderiv ℝ (u i) x (Pi.single a 1))) := by + rw [ae_all_iff]; intro i + rw [ae_all_iff]; intro a + exact plancherel_ae_tendsto (hu i) _ + filter_upwards [hae] with x hx + exact (hΦ.tendsto _).comp (tendsto_pi_nhds.mpr fun i => tendsto_pi_nhds.mpr fun a => hx i a) + exact tendsto_nhds_unique (tendsto_const_nhds.congr fun n => (hn n).symm) hlim |>.symm + +/-- **`2 × 2` minors are null Lagrangians** (Lipschitz, compact support). -/ +theorem nl_null2 {u v : (Fin m → ℝ) → ℝ} {Ku Kv : NNReal} (hu : LipschitzWith Ku u) + (hv : LipschitzWith Kv v) (huc : HasCompactSupport u) (hvc : HasCompactSupport v) + (a b : Fin m) : + ∫ x, (fderiv ℝ u x (Pi.single a 1) * fderiv ℝ v x (Pi.single b 1) - + fderiv ℝ u x (Pi.single b 1) * fderiv ℝ v x (Pi.single a 1)) = 0 := by + have := nl_lipschitz_limit ![u, v] ![Ku, Kv] + (fun i => by fin_cases i <;> simpa) (fun i => by fin_cases i <;> simpa) + (fun G => G 0 a * G 1 b - G 0 b * G 1 a) (by fun_prop) (by simp) + (fun ψ hψ hψc => nl_null2_smooth (hψ 0) (hψ 1) (hψc 0) a b) + simpa using this + +/-- **`3 × 3` minors are null Lagrangians** (Lipschitz, compact support). -/ +theorem nl_null3 {u₀ u₁ u₂ : (Fin m → ℝ) → ℝ} {K₀ K₁ K₂ : NNReal} (h₀ : LipschitzWith K₀ u₀) + (h₁ : LipschitzWith K₁ u₁) (h₂ : LipschitzWith K₂ u₂) (c₀ : HasCompactSupport u₀) + (c₁ : HasCompactSupport u₁) (c₂ : HasCompactSupport u₂) (a₀ a₁ a₂ : Fin m) : + ∫ x, (fderiv ℝ u₀ x (Pi.single a₀ 1) * (fderiv ℝ u₁ x (Pi.single a₁ 1) * + fderiv ℝ u₂ x (Pi.single a₂ 1) - fderiv ℝ u₁ x (Pi.single a₂ 1) * + fderiv ℝ u₂ x (Pi.single a₁ 1)) - + fderiv ℝ u₀ x (Pi.single a₁ 1) * (fderiv ℝ u₁ x (Pi.single a₀ 1) * + fderiv ℝ u₂ x (Pi.single a₂ 1) - fderiv ℝ u₁ x (Pi.single a₂ 1) * + fderiv ℝ u₂ x (Pi.single a₀ 1)) + + fderiv ℝ u₀ x (Pi.single a₂ 1) * (fderiv ℝ u₁ x (Pi.single a₀ 1) * + fderiv ℝ u₂ x (Pi.single a₁ 1) - fderiv ℝ u₁ x (Pi.single a₁ 1) * + fderiv ℝ u₂ x (Pi.single a₀ 1))) = 0 := by + have := nl_lipschitz_limit ![u₀, u₁, u₂] ![K₀, K₁, K₂] + (fun i => by fin_cases i <;> simpa) (fun i => by fin_cases i <;> simpa) + (fun G => G 0 a₀ * (G 1 a₁ * G 2 a₂ - G 1 a₂ * G 2 a₁) - + G 0 a₁ * (G 1 a₀ * G 2 a₂ - G 1 a₂ * G 2 a₀) + + G 0 a₂ * (G 1 a₀ * G 2 a₁ - G 1 a₁ * G 2 a₀)) (by fun_prop) (by simp) + (fun ψ hψ hψc => nl_null3_smooth (hψ 0) (hψ 1) (hψ 2) (hψc 0) a₀ a₁ a₂) + simpa using this + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/Periodic.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/Periodic.lean new file mode 100644 index 0000000000..d33d5c30c7 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/Periodic.lean @@ -0,0 +1,142 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Basic +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.AllOrders +import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Periodic + +/-! +# Null Lagrangians for periodic maps + +For `ℤ^m`-periodic Lipschitz maps on `ℝ^m = Fin m → ℝ`, integrated over the open unit cube +`(0, 1)^m = unitCube m`, a fundamental domain of `ℤ^m`: + +* `setIntegral_unitCube_fderiv_eq_zero`: `∫_{(0,1)^m} ∂_v f = 0` for a periodic Lipschitz + `f : ℝ^m → ℝ`; +* `setIntegral_unitCube_grad_eq_zero`: `∫_{(0,1)^m} ∇φ = 0`, entrywise, for a periodic Lipschitz + map `φ : ℝ^m → ℝ^d`; +* `setIntegral_unitCube_det_add_grad`: the determinant is a null Lagrangian for periodic Lipschitz + perturbations: `∫_{(0,1)²} det (A + ∇ψ) = det A` for `ψ : ℝ² → ℝ²`. + +All three come from one identity for minors of every order: `∫_{(0,1)^m} minor (A + ∇φ) = minor A` +for periodic Lipschitz `φ`. Every minor is a null Lagrangian for Lipschitz maps vanishing off a +bounded set (`setIntegral_minor_add_grad`, after B. Dacorogna, *Direct Methods in the Calculus of +Variations*, 2nd ed., Springer, 2008, Theorem 8.35), so the minor and its negative are quasiconvex +on the unit cube, hence quasiconvex with periodic test maps (`quasiconvexAtOn_iff_periodic`, [ibid., +Proposition 5.13]); the two inequalities give the identity. The entries of `∇φ` are the `1 × 1` +minors (with `A = 0`), the determinant of a `2 × 2` matrix is its `2 × 2` minor, and `∂_v f` is a +linear combination of the entries of the gradient of the map `x ↦ (f x) ∈ ℝ^1`. +-/ + +@[expose] public section + +open MeasureTheory + +namespace CalculusOfVariations + +variable {m : ℕ} + +/-- Every minor is a null Lagrangian for periodic perturbations: `∫_{(0,1)^m} minor (A + ∇φ) = +minor A` for a `ℤ^m`-periodic Lipschitz `φ`. The minor and its negative are null Lagrangians on the +unit cube (`setIntegral_minor_add_grad`), hence quasiconvex there, hence quasiconvex with periodic +test maps (`quasiconvexAtOn_iff_periodic`); the two inequalities give the equality. -/ +private theorem setIntegral_unitCube_minor_add_grad {d k : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} + {K : NNReal} (hφ : LipschitzWith K φ) + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), φ (x + fun i => (z i : ℝ)) = φ x) + (A : Matrix (Fin d) (Fin m) ℝ) (r : Fin k ↪o Fin d) (c : Fin k ↪o Fin m) : + ∫ x in unitCube m, minor (A + grad φ x) r c = minor A r c := by + have hcont : Continuous fun B : Matrix (Fin d) (Fin m) ℝ => minor B r c := + (continuous_id.matrix_submatrix r c).matrix_det + have hb : Bornology.IsBounded (unitCube m) := + (Metric.isBounded_Icc (0 : Fin m → ℝ) 1).subset fun x hx => + ⟨fun i => (hx i (Set.mem_univ _)).1.le, fun i => (hx i (Set.mem_univ _)).2.le⟩ + have hI : IntegrableOn (fun x => minor (A + grad φ x) r c) (unitCube m) := + rd_integrableOn hcont.measurable (isLocallyBounded_of_continuous hcont) A hφ + (by rw [rd_volume_unitCube]; exact ENNReal.one_lt_top) + -- `s · minor` is quasiconvex on the unit cube (a null Lagrangian), hence with periodic test maps + have hq : ∀ s : ℝ, QuasiconvexAtPeriodic (fun B => s * minor B r c) A := by + intro s + have hcs : Continuous fun B : Matrix (Fin d) (Fin m) ℝ => s * minor B r c := + continuous_const.mul hcont + refine (quasiconvexAtOn_iff_periodic hcs.measurable (isLocallyBounded_of_continuous hcs) + A).1 fun ψ L hψ h0 _ => ?_ + rw [integral_const_mul, setIntegral_minor_add_grad hb hψ h0] + exact le_of_eq (by ring) + have h1 := hq 1 φ K hφ hper (by simpa using hI) + have h2 := hq (-1) φ K hφ hper (by simpa using hI.neg) + simp only [one_mul, neg_one_mul, integral_neg] at h1 h2 + linarith + +/-- `∫_{(0,1)^m} ∂_k φ_i = 0` for a `ℤ^m`-periodic Lipschitz `φ`: the entry `(i, k)` is the +`1 × 1` minor with the row `i` and the column `k`. -/ +private theorem setIntegral_unitCube_grad_entry {d : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} + {K : NNReal} (hφ : LipschitzWith K φ) + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), φ (x + fun i => (z i : ℝ)) = φ x) + (i : Fin d) (k : Fin m) : + ∫ x in unitCube m, grad φ x i k = 0 := by + have h := setIntegral_unitCube_minor_add_grad hφ hper 0 + (OrderEmbedding.ofStrictMono (fun _ : Fin 1 => i) (Subsingleton.strictMono _)) + (OrderEmbedding.ofStrictMono (fun _ : Fin 1 => k) (Subsingleton.strictMono _)) + simpa [minor, Matrix.det_unique] using h + +/-- `∫_{(0,1)^m} ∂_v f = 0` for a `ℤ^m`-periodic Lipschitz `f`. -/ +theorem setIntegral_unitCube_fderiv_eq_zero {f : (Fin m → ℝ) → ℝ} {K : NNReal} + (hf : LipschitzWith K f) + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), f (x + fun i => (z i : ℝ)) = f x) + (v : Fin m → ℝ) : + ∫ x in unitCube m, fderiv ℝ f x v = 0 := by + -- `f` as a map to `ℝ^1` + set φ : (Fin m → ℝ) → Fin 1 → ℝ := fun x _ => f x with hφdef + have hφ : LipschitzWith K φ := LipschitzWith.of_dist_le_mul fun x y => by + simp only [hφdef, dist_pi_const]; exact hf.dist_le_mul x y + have hφper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), φ (x + fun i => (z i : ℝ)) = φ x := + fun x z => by simp only [hφdef, hper] + have hI : ∀ k, IntegrableOn (fun x => fderiv ℝ f x (Pi.single k 1)) (unitCube m) := fun k => + rd_integrableOn (f := fun B : Matrix (Fin 1) (Fin m) ℝ => B 0 k) + (continuous_id.matrix_elem 0 k).measurable + (isLocallyBounded_of_continuous (continuous_id.matrix_elem 0 k)) 0 hφ + (by rw [rd_volume_unitCube]; exact ENNReal.one_lt_top) |>.congr_fun + (fun x _ => by simp [grad, hφdef]) (MeasurableSet.univ_pi fun _ => measurableSet_Ioo) + -- `∂_v f = ∑_k v_k ∂_k f` + have hsum : ∀ x, fderiv ℝ f x v = ∑ k, v k * fderiv ℝ f x (Pi.single k 1) := by + intro x + conv_lhs => rw [← Finset.univ_sum_single v] + rw [map_sum] + refine Finset.sum_congr rfl fun k _ => ?_ + rw [← smul_eq_mul, ← map_smul] + congr 1 + ext j + simp [Pi.single_apply] + simp_rw [hsum] + rw [integral_finsetSum _ fun k _ => (hI k).const_mul (v k)] + refine Finset.sum_eq_zero fun k _ => ?_ + rw [integral_const_mul, show (∫ x in unitCube m, fderiv ℝ f x (Pi.single k 1)) = + ∫ x in unitCube m, grad φ x 0 k from rfl, setIntegral_unitCube_grad_entry hφ hφper 0 k, + mul_zero] + +/-- `∫_{(0,1)^m} ∇φ = 0`, entrywise, for a `ℤ^m`-periodic Lipschitz `φ : ℝ^m → ℝ^d`. -/ +theorem setIntegral_unitCube_grad_eq_zero {d : ℕ} {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} + (hφ : LipschitzWith K φ) + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), φ (x + fun i => (z i : ℝ)) = φ x) + (i : Fin d) (k : Fin m) : + ∫ x in unitCube m, grad φ x i k = 0 := + setIntegral_unitCube_grad_entry hφ hper i k + +/-- The determinant is a null Lagrangian for periodic perturbations: +`∫_{(0,1)²} det (A + ∇ψ) = det A` for a `ℤ²`-periodic Lipschitz `ψ : ℝ² → ℝ²`. -/ +theorem setIntegral_unitCube_det_add_grad {ψ : (Fin 2 → ℝ) → Fin 2 → ℝ} {K : NNReal} + (hψ : LipschitzWith K ψ) + (hper : ∀ (x : Fin 2 → ℝ) (z : Fin 2 → ℤ), ψ (x + fun i => (z i : ℝ)) = ψ x) + (A : Matrix (Fin 2) (Fin 2) ℝ) : + ∫ x in unitCube 2, (A + grad ψ x).det = A.det := by + have h := setIntegral_unitCube_minor_add_grad hψ hper A (OrderIso.refl (Fin 2)).toOrderEmbedding + (OrderIso.refl (Fin 2)).toOrderEmbedding + simpa [minor] using h + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/Quasiaffine.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/Quasiaffine.lean new file mode 100644 index 0000000000..39a7a80749 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/Quasiaffine.lean @@ -0,0 +1,262 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.NullLagrangian +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.RankOneAffine +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Gradient +public import Mathlib.LinearAlgebra.Matrix.Adjugate + +/-! +# The `3 × 3` minors are quasiaffine + +For a Lipschitz test map `φ` vanishing outside the unit cube, +`∫_{(0,1)^m} det ((A + ∇φ)_{rc}) = det (A_{rc})` for every `3 × 3` minor (`nl_minor3_quasiaffine`): +expand `det (X + Y) = det X + tr (adj X · Y) + tr (X · adj Y) + det Y` and integrate the minors of +`∇φ` of orders `1`, `2`, `3` (`Minors.NullLagrangian`). This is (8.44) of Theorem 8.35 of B. +Dacorogna, *Direct Methods in the Calculus of Variations*, 2nd ed., Springer, 2008 ([D08], p. +409–411), for the `3 × 3` minors and the cube, by the proof of its part (ii) (expand `det (∇v + ∇w)` +into mixed minors, write them as divergences, and argue by density), with `v` affine and `w = φ`. +-/ + +@[expose] public section + +open MeasureTheory +open scoped Matrix + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-- The closed unit cube. -/ +def nlIcc (m : ℕ) : Set (Fin m → ℝ) := Set.pi Set.univ fun _ => Set.Icc 0 1 + +theorem nl_isCompact_Icc (m : ℕ) : IsCompact (nlIcc m) := + isCompact_univ_pi fun _ => isCompact_Icc + +theorem nl_unitCube_subset (m : ℕ) : unitCube m ⊆ nlIcc m := + Set.pi_mono fun _ _ => Set.Ioo_subset_Icc_self + +section TestMap + +variable {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} (hφ : LipschitzWith K φ) + (h0 : ∀ x ∉ unitCube m, φ x = 0) +include hφ h0 + +omit h0 in +theorem nl_lip_comp (i : Fin d) : LipschitzWith K fun y => φ y i := by + have := (LipschitzWith.eval (α := fun _ : Fin d => ℝ) i).comp hφ + rw [one_mul] at this + exact this + +omit hφ in +theorem nl_hasCompactSupport_comp (i : Fin d) : HasCompactSupport fun y => φ y i := + HasCompactSupport.intro (nl_isCompact_Icc m) fun x hx => by + rw [h0 x fun h => hx (nl_unitCube_subset m h)]; rfl + +omit hφ in +theorem nl_fderiv_comp_zero (i : Fin d) {x : Fin m → ℝ} (hx : x ∉ nlIcc m) : + fderiv ℝ (fun y => φ y i) x = 0 := by + have hopen : IsOpen (nlIcc m)ᶜ := (nl_isCompact_Icc m).isClosed.isOpen_compl + have hev : (fun y => φ y i) =ᶠ[nhds x] fun _ => 0 := by + filter_upwards [hopen.mem_nhds hx] with y hy + rw [h0 y fun h => hy (nl_unitCube_subset m h)]; rfl + rw [hev.fderiv_eq]; simp + +omit hφ in +theorem nl_grad_zero {x : Fin m → ℝ} (hx : x ∉ nlIcc m) : grad φ x = 0 := by + ext i k + simp only [grad, Matrix.of_apply, nl_fderiv_comp_zero h0 i hx]; rfl + +omit h0 in +omit hφ h0 in +theorem nl_measurable_grad : Measurable fun x => grad φ x := by + refine measurable_pi_iff.mpr fun i => measurable_pi_iff.mpr fun k => ?_ + exact measurable_fderiv_apply_const ℝ (fun y => φ y i) (Pi.single k 1) + +omit h0 in +/-- For continuous `Φ`, `x ↦ Φ (B + ∇φ (x))` is bounded and measurable, hence integrable on the +cube. -/ +theorem nl_integrableOn_cube {Φ : Matrix (Fin d) (Fin m) ℝ → ℝ} (hΦ : Continuous Φ) + (B : Matrix (Fin d) (Fin m) ℝ) (s : Set (Fin m → ℝ)) (hs : volume s ≠ ⊤) : + IntegrableOn (fun x => Φ (B + grad φ x)) s := by + set box : Set (Matrix (Fin d) (Fin m) ℝ) := + Set.pi Set.univ fun i => Set.pi Set.univ fun k => Set.Icc (B i k - K) (B i k + K) + have hbox : IsCompact box := isCompact_univ_pi fun i => isCompact_univ_pi fun k => isCompact_Icc + obtain ⟨M, hM⟩ := hbox.exists_bound_of_continuousOn hΦ.continuousOn + refine Measure.integrableOn_of_bounded (M := M) hs + (((hΦ.comp (continuous_const.add continuous_id)).measurable.comp + (nl_measurable_grad)).aestronglyMeasurable) + (Filter.Eventually.of_forall fun x => hM _ fun i _ k _ => ?_) + have := abs_le.mp (rd_grad_abs_le hφ x i k) + simp only [Matrix.add_apply] + constructor <;> linarith [this.1, this.2] + +/-- If `Φ (0) = 0`, then `x ↦ Φ (∇φ (x))` is integrable on `ℝ^m`, and its integral over the open +cube is its integral over `ℝ^m`. -/ +theorem nl_integrable_of_zero {Φ : Matrix (Fin d) (Fin m) ℝ → ℝ} (hΦ : Continuous Φ) + (hΦ0 : Φ 0 = 0) : Integrable fun x => Φ (grad φ x) := by + have h := nl_integrableOn_cube hφ hΦ 0 (nlIcc m) + ((nl_isCompact_Icc m).measure_lt_top.ne) + simp only [zero_add] at h + exact h.integrable_of_forall_notMem_eq_zero fun x hx => by rw [nl_grad_zero h0 hx, hΦ0] + +omit hφ in +theorem nl_setIntegral_cube_of_zero {Φ : Matrix (Fin d) (Fin m) ℝ → ℝ} (hΦ0 : Φ 0 = 0) : + ∫ x in unitCube m, Φ (grad φ x) = ∫ x, Φ (grad φ x) := by + have hae : (Set.pi Set.univ fun _ : Fin m => Set.Ioo (0 : ℝ) 1) =ᵐ[volume] + (Set.pi Set.univ fun _ : Fin m => Set.Icc (0 : ℝ) 1) := Measure.pi_Ioo_ae_eq_pi_Icc + rw [show unitCube m = Set.pi Set.univ fun _ => Set.Ioo (0 : ℝ) 1 from rfl, + setIntegral_congr_set hae] + exact setIntegral_eq_integral_of_forall_compl_eq_zero fun x hx => by + rw [nl_grad_zero h0 hx, hΦ0] + +/-- `∫ ∂_k φ_i = 0`. -/ +theorem nl_integral_grad (i : Fin d) (k : Fin m) : ∫ x, grad φ x i k = 0 := + plancherel_integral_fderiv_eq_zero (nl_lip_comp hφ i) + (nl_hasCompactSupport_comp h0 i) _ + +/-- `∫ (∂_a φ_p ∂_b φ_q − ∂_b φ_p ∂_a φ_q) = 0`. -/ +theorem nl_integral_minor2 (p q : Fin d) (a b : Fin m) (σ : ℝ) : + ∫ x, σ * (grad φ x p a * grad φ x q b - grad φ x p b * grad φ x q a) = 0 := by + rw [integral_const_mul] + have := nl_null2 (nl_lip_comp hφ p) (nl_lip_comp hφ q) + (nl_hasCompactSupport_comp h0 p) (nl_hasCompactSupport_comp h0 q) a b + simp only [grad, Matrix.of_apply] + rw [this, mul_zero] + +end TestMap + +/-- `det (X + Y) = det X + tr (adj X · Y) + tr (X · adj Y) + det Y` for `3 × 3` matrices. -/ +theorem nl_det_add (X Y : Matrix (Fin 3) (Fin 3) ℝ) : + (X + Y).det = X.det + ∑ i, ∑ j, X.adjugate j i * Y i j + ∑ i, ∑ j, X i j * Y.adjugate j i + + Y.det := by + simp [Matrix.det_fin_three, Matrix.adjugate_fin_three, Fin.sum_univ_three] + ring + +section Minor + +variable {φ : (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} (hφ : LipschitzWith K φ) + (h0 : ∀ x ∉ unitCube m, φ x = 0) +include hφ h0 + +/-- The cofactors of a `3 × 3` minor of `∇φ` integrate to `0`. -/ +theorem nl_integral_adj (r : Fin 3 ↪o Fin d) (c : Fin 3 ↪o Fin m) (j i : Fin 3) : + ∫ x, ((grad φ x).submatrix r c).adjugate j i = 0 := by + have key : ∀ (p q a b : Fin 3) (σ : ℝ), (∀ x, ((grad φ x).submatrix r c).adjugate j i = + σ * (grad φ x (r p) (c a) * grad φ x (r q) (c b) - grad φ x (r p) (c b) * grad φ x (r q) + (c a))) → + ∫ x, ((grad φ x).submatrix r c).adjugate j i = 0 := by + intro p q a b σ h + simp_rw [h] + exact nl_integral_minor2 hφ h0 _ _ _ _ σ + fin_cases j <;> fin_cases i + · exact key 1 2 1 2 1 (fun x => by simp [Matrix.adjugate_fin_three]) + · exact key 0 2 1 2 (-1) (fun x => by simp [Matrix.adjugate_fin_three]; ring) + · exact key 0 1 1 2 1 (fun x => by simp [Matrix.adjugate_fin_three]) + · exact key 1 2 0 2 (-1) (fun x => by simp [Matrix.adjugate_fin_three]; ring) + · exact key 0 2 0 2 1 (fun x => by simp [Matrix.adjugate_fin_three]) + · exact key 0 1 0 2 (-1) (fun x => by simp [Matrix.adjugate_fin_three]; ring) + · exact key 1 2 0 1 1 (fun x => by simp [Matrix.adjugate_fin_three]) + · exact key 0 2 0 1 (-1) (fun x => by simp [Matrix.adjugate_fin_three]; ring) + · exact key 0 1 0 1 1 (fun x => by simp [Matrix.adjugate_fin_three]) + +/-- The `3 × 3` minors of `∇φ` integrate to `0`. -/ +theorem nl_integral_det (r : Fin 3 ↪o Fin d) (c : Fin 3 ↪o Fin m) : + ∫ x, ((grad φ x).submatrix r c).det = 0 := by + have := nl_null3 (nl_lip_comp hφ (r 0)) (nl_lip_comp hφ (r 1)) + (nl_lip_comp hφ (r 2)) (nl_hasCompactSupport_comp h0 (r 0)) + (nl_hasCompactSupport_comp h0 (r 1)) (nl_hasCompactSupport_comp h0 (r 2)) + (c 0) (c 1) (c 2) + rw [← this] + congr 1; funext x + simp only [Matrix.det_fin_three, Matrix.submatrix_apply, grad, Matrix.of_apply] + ring + +/-- **`3 × 3` minors are quasiaffine**: `∫_{(0,1)^m} det ((A + ∇φ)_{rc}) = det (A_{rc})`. -/ +theorem nl_minor3_quasiaffine (A : Matrix (Fin d) (Fin m) ℝ) (r : Fin 3 ↪o Fin d) + (c : Fin 3 ↪o Fin m) : + ∫ x in unitCube m, minor (A + grad φ x) r c = + minor A r c := by + set X := A.submatrix r c + set F : Matrix (Fin d) (Fin m) ℝ → ℝ := fun J => ((A + J).submatrix r c).det - X.det + have hFc : Continuous F := by + have : Continuous fun J : Matrix (Fin d) (Fin m) ℝ => ((A + J).submatrix r c) := + (continuous_const.add continuous_id).matrix_submatrix r c + exact this.matrix_det.sub continuous_const + have hF0 : F 0 = 0 := by simp [F, X] + have hsplit : ∀ J : Matrix (Fin d) (Fin m) ℝ, F J = + (∑ i, ∑ j, X.adjugate j i * J (r i) (c j)) + + (∑ i, ∑ j, X i j * (J.submatrix r c).adjugate j i) + (J.submatrix r c).det := by + intro J + have hs : (A + J).submatrix r c = X + J.submatrix r c := by ext; simp [X] + simp only [F, hs, nl_det_add, Matrix.submatrix_apply] + ring + have hcube : volume (unitCube m) = 1 := rd_volume_unitCube m + calc ∫ x in unitCube m, minor (A + grad φ x) r c + = ∫ x in unitCube m, (X.det + F (grad φ x)) := by + refine setIntegral_congr_fun (MeasurableSet.univ_pi fun _ => measurableSet_Ioo) + fun x _ => ?_ + simp only [F, minor]; ring + _ = X.det + ∫ x in unitCube m, F (grad φ x) := by + have hI := nl_integrableOn_cube hφ hFc 0 (unitCube m) (by rw [hcube]; simp) + simp only [zero_add] at hI + rw [integral_add (integrableOn_const (by rw [hcube]; simp) eNorm_ne_top) hI, + setIntegral_const, Measure.real, hcube] + simp + _ = X.det + ∫ x, F (grad φ x) := by rw [nl_setIntegral_cube_of_zero h0 hF0] + _ = X.det := by + have i1 : Integrable fun x => ∑ i, ∑ j, X.adjugate j i * grad φ x (r i) (c j) := + nl_integrable_of_zero hφ h0 (Φ := fun J => ∑ i, ∑ j, X.adjugate j i * J (r i) (c j)) + (by fun_prop) (by simp) + have i2 : Integrable fun x => ∑ i, ∑ j, X i j * ((grad φ x).submatrix r c).adjugate j i := + nl_integrable_of_zero hφ h0 + (Φ := fun J => ∑ i, ∑ j, X i j * (J.submatrix r c).adjugate j i) + (by + refine continuous_finsetSum _ fun i _ => continuous_finsetSum _ fun j _ => + continuous_const.mul ?_ + have : Continuous fun J : Matrix (Fin d) (Fin m) ℝ => (J.submatrix r c).adjugate := + (continuous_id.matrix_submatrix r c).matrix_adjugate + exact (continuous_apply i).comp ((continuous_apply j).comp this)) + (by simp) + have i3 : Integrable fun x => ((grad φ x).submatrix r c).det := + nl_integrable_of_zero hφ h0 (Φ := fun J => (J.submatrix r c).det) + (continuous_id.matrix_submatrix r c).matrix_det (by simp) + simp_rw [hsplit] + rw [integral_add (f := fun x => (∑ i, ∑ j, X.adjugate j i * grad φ x (r i) (c j)) + + ∑ i, ∑ j, X i j * ((grad φ x).submatrix r c).adjugate j i) (i1.add i2) i3, + integral_add i1 i2, nl_integral_det hφ h0 r c] + have e1 : ∫ x, ∑ i, ∑ j, X.adjugate j i * grad φ x (r i) (c j) = 0 := by + rw [integral_finsetSum _ fun i _ => ?_] + · refine Finset.sum_eq_zero fun i _ => ?_ + rw [integral_finsetSum _ fun j _ => ?_] + · refine Finset.sum_eq_zero fun j _ => ?_ + rw [integral_const_mul, nl_integral_grad hφ h0, mul_zero] + · exact (nl_integrable_of_zero hφ h0 (Φ := fun J => J (r i) (c j)) + (by fun_prop) (by simp)).const_mul _ + · exact nl_integrable_of_zero hφ h0 (Φ := fun J => ∑ j, X.adjugate j i * J (r i) (c j)) + (by fun_prop) (by simp) + have e2 : ∫ x, ∑ i, ∑ j, X i j * ((grad φ x).submatrix r c).adjugate j i = 0 := by + have hadj : ∀ i j, Continuous fun J : Matrix (Fin d) (Fin m) ℝ => + (J.submatrix r c).adjugate j i := fun i j => + (continuous_apply i).comp ((continuous_apply j).comp + ((continuous_id.matrix_submatrix r c).matrix_adjugate)) + rw [integral_finsetSum _ fun i _ => ?_] + · refine Finset.sum_eq_zero fun i _ => ?_ + rw [integral_finsetSum _ fun j _ => ?_] + · refine Finset.sum_eq_zero fun j _ => ?_ + rw [integral_const_mul, nl_integral_adj hφ h0 r c j i, mul_zero] + · exact (nl_integrable_of_zero hφ h0 (hadj i j) (by simp)).const_mul _ + · exact nl_integrable_of_zero hφ h0 + (Φ := fun J => ∑ j, X i j * (J.submatrix r c).adjugate j i) + (continuous_finsetSum _ fun j _ => continuous_const.mul (hadj i j)) (by simp) + rw [e1, e2]; ring + +end Minor + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/RankOneAffine.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/RankOneAffine.lean new file mode 100644 index 0000000000..0c7d4705e2 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Minors/RankOneAffine.lean @@ -0,0 +1,916 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Basic + +/-! +# Rank-one affine functions are affine combinations of minors + +`RankOneAffine.exists_eq_sum_minor`: a rank-one affine `f : ℝ^{N×n} → ℝ` is an affine combination +of the minors of its argument, of orders `k ≤ min (N, n)`. This is the implication (ii) ⇒ (iii′) of +Theorem 5.20 (p. 179) of B. Dacorogna, *Direct Methods in the Calculus of Variations*, 2nd ed., +Springer, 2008 ([D08]). As in [D08], `f` is not assumed continuous. Only this implication of the +theorem is proved here, by the proof of [D08], pp. 181–191 (induction on the number of rows, and +Lemma 5.24), with the repairs listed at the end; the equivalence is in `Minors.Characterization`. + +## The proof of [D08], step by step + +`ξ¹, …, ξ^N` are the rows of `ξ` (`ξ¹` is row `0` in Lean), `ξ_1, …, ξ_n` its columns, and +`ξ′ = (ξ², …, ξ^N)`. `M_{I,S}` is the minor with the rows `I` and the columns `S`, `|I| = |S| = s`; +the `s`-subsets are order embeddings `Fin s ↪o Fin n`, and the entries of [D08]'s `adj_s` are these +minors up to signs. + +* **What is used of (ii)** (p. 181). The function `f` is affine along the rank-one lines + `t ↦ ξ + t a ⊗ b` (`RankOneAffine.add_smul_vecMulVec`; `MinorsRA`). If `L` maps rank-one lines to + rank-one lines, then `f ∘ L` has the same property (`minors_RA_comp`); the maps `L` below are the + transposition, setting rows to zero, removing or adding a first row, and placing a smaller matrix + in given rows and columns. +* **Reduction to `n ≥ N`** (p. 182): `f` is replaced with `ξ ↦ f (ξᵀ)` (`minors_transpose_RA`, and + the proof of the theorem). +* **Induction on `N`, for all `n ≥ N`** (`minors_mem_span`). The induction starts at `N = 0` (`f` is + constant). Step 1 of [D08] (`N = 1`, `f` is affine) is the case of the induction step where `ξ′` + has no row; Step 2 (`N = 2`) is an illustration in [D08]. +* **Step `N`**, (5.42) to (5.44), pp. 184–185: `f` is affine in `ξ¹`, + `f (ξ) = ⟨ψ (ξ′); ξ¹⟩ + χ (ξ′)` (5.42), with `χ (ξ′) = f (0; ξ′)` (`minorsChi`) and + `ψ_l (ξ′) = f (e_l; ξ′) − f (0; ξ′)` (`minorsPsi`, `minors_rowAffine`). The functions `χ` and + `ψ_l` are affine along the rank-one lines (`minors_rowCons_RA`), so by the induction hypothesis + they are combinations of minors of `ξ′` (5.43), and + `f (ξ) = χ (ξ′) + ∑_s ∑_I h^I (ξ)`, `h^I (ξ) = ∑_{S,l} γ^{I}_{l,S} ξ¹_l M_{I,S} (ξ′)` (5.44) + (`minorsPart`), `I` over the `s`-sets of rows of `ξ′`. The term `⟨β¹; ξ¹⟩` of (5.44) is the part + `s = 0`. +* **The parts are rank-one affine** (p. 185; `minors_part_RA`): `h = f − χ` is affine along the + rank-one lines. Setting the rows of `ξ′` outside `I` to zero (`minorsKeep`) turns `h` into + `∑_{J ⊆ I} h^J` (`minors_part_keep`), so the `h^I` are affine along the rank-one lines, by + induction on `s = |I|`. +* **Lemma 5.24**, p. 186, in the "stronger version" of p. 187, for one row set `I`, `|I| = s < n` + (`minors_part_eq_sum_minor`): if `g (ξ) = ∑_{S,l} γ_{l,S} ξ¹_l M_{I,S} (ξ′)` is affine along the + rank-one lines, then `g (ξ) = ∑_B δ_B M_{{1} ∪ I, B} (ξ)`, `B` over the `(s+1)`-sets of columns + (5.45). Here `s ≤ N − 1 < n`, by `n ≥ N`. Part 1 (`N = 2`) is an illustration in [D08]. Part 2: + * Fix `B = {λ_1 < ⋯ < λ_{s+1}}`. The function `X_B` (5.47) is `g` with the columns outside `B` + set to zero, seen as a function of the `(s+1) × (s+1)` matrix `Y` placed in the rows `{1} ∪ I` + and the columns `B` (`minorsPlace`, `minors_place_RA`): + `X_B (Y) = ∑_{q,l} κ_{l,q} Y¹_l det (Y without the row 1 and the column q)`, + `κ_{l,q} = γ_{λ_l, B ∖ λ_q}` (`minorsX`, `minors_part_place`). + * The function `t ↦ X_B (ξ + t a ⊗ b)` is affine. For the pair `(λ_k, λ_{s+1})`, `k ≤ s`, of + columns of `B`, take `a = e_1 + e_2` and `ξ` with the rows `1` and `2` zero and the rows + `3, …, s+1` the identity on the other columns of `B`, so that `ξ_{λ_k} = ξ_{λ_{s+1}} = 0` (a + case of (5.49), (5.52); `minorsTest`, `minors_test_add`). Then + `X_B (ξ + t a ⊗ b) = t² X_B (ξ + a ⊗ b)` (`minors_X_test_smul`), so "the coefficient of the term + in `t²` must be `0`" (p. 189; `minors_X_test_eq_zero`). This coefficient is the sum of the terms + of the columns `λ_k` and `λ_{s+1}`, as displayed on p. 190, for every vector `b` + (`minors_coeff_eq`, `minors_coeff_last`, with the minors of `minors_test_det` and + `minors_test_det_eq_zero`). + * Varying `b` gives (5.51) and (5.53) (`minors_coeff`): `κ_{l,q} = 0` for `l ≠ q`, and + `κ_{k,k} = (-1)^{k+s+1} κ_{s+1,s+1}`. By the Laplace expansion along the first row, + `X_B = δ_B det` (5.48), `δ_B = (-1)^s κ_{s+1,s+1}` (`minors_X_eq_det`). + * If `l ∈ S`, then `γ_{l,S} = 0`: take `B = S ∪ {x}`, `x ∉ S`. The pairs `(l, S)` with `l ∉ S` are + the `(λ_q, B ∖ λ_q)`, each counted once (`minors_exists_insert`, `minors_del_injective`), so + `g (ξ) = ∑_B X_B (ξ_{{1} ∪ I, B})`, and (5.48) gives (5.45). +* **Conclusion** (p. 185; `minors_mem_span`): `f` is a combination of minors of `ξ′`, which are + minors of `ξ` (`minors_tail_mem`), and of `(s+1) × (s+1)` minors of `ξ` that contain the first + row. + +## Repairs of the source, and details filled in + +* (a) [D08] passes from (ii) to (ii′): `f ∈ C¹` and `f (ξ + a ⊗ b) = f (ξ) + ⟨∇f (ξ); a ⊗ b⟩` + (pp. 181–182). That a function affine along the rank-one lines is `C¹` is not justified there, + and it is not needed: the proof uses only the affinity along the rank-one lines. Where [D08] + takes `β = ∇f (0)` (Step 1), `minors_affine_of_lines` shows that a function on `ℝ^n` that is + affine along every line is affine. +* (b) In (5.47) the inner sums run over all `l = 1, …, n`, and [D08] states that `g = ∑_β X_β` and + that the `X_β` are rank-one affine (p. 189). Both fail for `n > s + 1`: every pair `(l, S)` is + counted `n − s` times. For `N = 2`, `n = 3`, `s = 1` and `g = det (ξ_1, ξ_2) + det (ξ_1, ξ_3)`, + the sum of the three `X_β` is `2 g`, and the `X_β` of the columns `{1, 2}` is + `det (ξ_1, ξ_2) − ξ¹_3 ξ²_1`, which is not rank-one affine. Here `X_B` is the restriction of `g` + to the columns in `B`, which is rank-one affine; the identity `g = ∑_B X_B` holds once + `γ_{l,S} = 0` is known for `l ∈ S`, and it is proved then. +* (c) The `t²` coefficients displayed on p. 190 omit terms. The columns `λ_k`, `λ_{s+1}` are equal + for `ξ`, but not for `ξ + t a ⊗ b`, so the summands of (5.47) without another column of `B` + contribute `b_l (b_{λ_{s+1}} − b_{λ_k})` times minors that contain the common column. These terms + vanish for the choice `ξ_{λ_k} = ξ_{λ_{s+1}} = 0` in the rows `3, …, s+1`, which is made here. +* (d) (5.50) and (5.52) set `b_l = 0` for the other columns `l` of `B`. Then the `γ_{λ_j, B ∖ λ_k}` + with `j ≠ k`, `j, k ≤ s`, which (5.51) and (5.53) state to vanish, are in none of the displayed + coefficients (the terms omitted in (c), for the pair `(λ_j, λ_{s+1})`, would give them). For the + choice of `ξ` in (c) the restriction on `b` is not needed, and `b` is arbitrary here. +* (e) In Step `N`, [D08] ("proceeding as in Step 2") does not say that `χ` and `ψ_l` are rank-one + affine, which the induction hypothesis requires: `minors_rowCons_RA` and `minors_RA_sub`. +* (f) The row sets: [D08] shows that the `h_1^i` are rank-one affine, then "with the same + reasoning" the `h_s` (p. 185) and the `g^i` (p. 187), and proves Lemma 5.24 for the last row set + only, "the general case being handled similarly" (p. 187). Here `minors_part_RA` and + `minors_part_eq_sum_minor` treat every row set `I`. +-/ + +@[expose] public section + +namespace CalculusOfVariations + +variable {d m : ℕ} + +private lemma minors_rank_eq_zero_imp {A : Matrix (Fin d) (Fin m) ℝ} (h : A.rank = 0) : + A = 0 := by + rw [Matrix.rank, Submodule.finrank_eq_zero, LinearMap.range_eq_bot] at h + ext i j + have := congrArg (fun F => F (Pi.single j 1) i) h + simpa [Matrix.mulVecLin_apply] using this + +open Matrix + +/-! ### Affinity along the rank-one lines -/ + +/-- A function on `ℝ` that is convex and concave is affine. -/ +private lemma minors_affine_of_convex_concave {g : ℝ → ℝ} (h1 : ConvexOn ℝ Set.univ g) + (h2 : ConvexOn ℝ Set.univ (-g)) (t : ℝ) : g t = g 0 + t * (g 1 - g 0) := by + have key : ∀ x y a b : ℝ, 0 ≤ a → 0 ≤ b → a + b = 1 → g (a * x + b * y) = a * g x + b * g y := by + intro x y a b ha hb hab + have e1 := h1.2 (Set.mem_univ x) (Set.mem_univ y) ha hb hab + have e2 := h2.2 (Set.mem_univ x) (Set.mem_univ y) ha hb hab + simp only [smul_eq_mul, Pi.neg_apply] at e1 e2 + linarith + rcases le_or_gt t 1 with ht1 | ht1 + · rcases le_or_gt 0 t with ht0 | ht0 + · have := key 0 1 (1 - t) t (by linarith) ht0 (by ring) + simp only [mul_zero, zero_add, mul_one] at this + rw [this]; ring + · -- `0` is a convex combination of `t` and `1` + have hpos : 0 < 1 - t := by linarith + have := key t 1 (1 / (1 - t)) (-t / (1 - t)) (by positivity) + (div_nonneg (by linarith) hpos.le) (by field_simp; ring) + have e : 1 / (1 - t) * t + -t / (1 - t) * 1 = 0 := by field_simp; ring + rw [e] at this + field_simp at this + linarith + · have hpos : 0 < t := by linarith + have := key 0 t (1 - 1 / t) (1 / t) (by rw [sub_nonneg, div_le_one hpos]; linarith) + (by positivity) (by ring) + have e : (1 - 1 / t) * 0 + 1 / t * t = 1 := by + rw [mul_zero, zero_add, one_div, inv_mul_cancel₀ hpos.ne'] + rw [e] at this + field_simp at this + linarith + +private lemma minors_rank_vecMulVec {u : Fin d → ℝ} {v : Fin m → ℝ} (h : vecMulVec u v ≠ 0) : + (vecMulVec u v).rank = 1 := + le_antisymm (rank_vecMulVec_le _ _) (Nat.one_le_iff_ne_zero.2 fun h' => + h (minors_rank_eq_zero_imp h')) + +/-- A rank-one affine function is affine along the rank-one lines `t ↦ A + t (u ⊗ v)`: by +definition it is convex and concave along them. -/ +theorem RankOneAffine.add_smul_vecMulVec {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (hf : RankOneAffine f) (A : Matrix (Fin d) (Fin m) ℝ) (u : Fin d → ℝ) (v : Fin m → ℝ) + (t : ℝ) : f (A + t • vecMulVec u v) = f A + t * (f (A + vecMulVec u v) - f A) := by + by_cases h : vecMulVec u v = 0 + · simp [h] + have hr := minors_rank_vecMulVec h + have := minors_affine_of_convex_concave (hf.1 A _ hr) (hf.2 A _ hr) t + simpa using this + +/-- Affinity along the rank-one lines `t ↦ A + t (u ⊗ v)`. -/ +private def MinorsRA {d m : ℕ} (f : Matrix (Fin d) (Fin m) ℝ → ℝ) : Prop := + ∀ A (u : Fin d → ℝ) (v : Fin m → ℝ) (t : ℝ), + f (A + t • vecMulVec u v) = f A + t * (f (A + vecMulVec u v) - f A) + +private lemma minors_RA_sub {f g : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : MinorsRA f) + (hg : MinorsRA g) : MinorsRA fun A => f A - g A := by + intro A u v t + simp only [hf A u v t, hg A u v t] + ring + +private lemma minors_RA_sum {ι : Type*} (s : Finset ι) {F : ι → Matrix (Fin d) (Fin m) ℝ → ℝ} + (hF : ∀ i ∈ s, MinorsRA (F i)) : MinorsRA fun A => ∑ i ∈ s, F i A := by + intro A u v t + simp only + rw [← Finset.sum_sub_distrib, Finset.mul_sum, ← Finset.sum_add_distrib] + exact Finset.sum_congr rfl fun i hi => hF i hi A u v t + +/-- If `L` maps rank-one lines to rank-one lines and `f` is affine along the rank-one lines, then +so is `f ∘ L`. -/ +private lemma minors_RA_comp {d' m' : ℕ} {f : Matrix (Fin d') (Fin m') ℝ → ℝ} + {L : Matrix (Fin d) (Fin m) ℝ → Matrix (Fin d') (Fin m') ℝ} + (hL : ∀ u v, ∃ u' v', ∀ Y (t : ℝ), L (Y + t • vecMulVec u v) = L Y + t • vecMulVec u' v') + (hf : MinorsRA f) : MinorsRA fun Y => f (L Y) := by + intro A u v t + obtain ⟨u', v', h⟩ := hL u v + have h1 := h A 1 + rw [one_smul, one_smul] at h1 + simp only [h, h1] + exact hf _ _ _ _ + +/-- "We reverse the roles of `n` and `N`" ([D08], p. 182): `ξ ↦ f (ξᵀ)` is affine along the rank-one +lines, `(a ⊗ b)ᵀ = b ⊗ a`. -/ +private lemma minors_transpose_RA {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : MinorsRA f) : + MinorsRA fun ξ : Matrix (Fin m) (Fin d) ℝ => f ξᵀ := + minors_RA_comp (fun u v => ⟨v, u, fun Y t => by + rw [transpose_add, transpose_smul, transpose_vecMulVec]⟩) hf + +/-! ### `s`-subsets of `{1, …, n}`, as order embeddings `Fin s ↪o Fin n` -/ + +section Emb + +variable {s n : ℕ} + +/-- An `s`-subset of an `s`-set is the whole set. -/ +private lemma minors_emb_eq (r r' : Fin s ↪o Fin n) (h : ∀ i, r' i ∈ Set.range r) : r' = r := by + have h1 : Set.range r' ⊆ Set.range r := by rintro _ ⟨i, rfl⟩; exact h i + have h2 : Set.range r' = Set.range r := by + refine Set.eq_of_subset_of_ncard_le h1 ?_ (Set.toFinite _) + rw [← Set.image_univ, ← Set.image_univ, Set.ncard_image_of_injective _ r.injective, + Set.ncard_image_of_injective _ r'.injective] + exact DFunLike.coe_injective + ((r'.strictMono.range_inj_of_wellFoundedLT r.strictMono).1 h2) + +/-- A `k'`-subset of a `k`-set has `k' ≤ k`. -/ +private lemma minors_emb_le {k k' : ℕ} (r : Fin k ↪o Fin n) (r' : Fin k' ↪o Fin n) + (h : ∀ i, r' i ∈ Set.range r) : k' ≤ k := by + choose p hp using h + have hinj : Function.Injective p := fun i j hij => r'.injective (by rw [← hp i, ← hp j, hij]) + simpa using Fintype.card_le_of_injective p hinj + +/-- The `s`-subset `B ∖ λ_q` of `B = {λ_0 < ⋯ < λ_s}`. -/ +private def minorsDel (C : Fin (s + 1) ↪o Fin n) (q : Fin (s + 1)) : Fin s ↪o Fin n := + q.succAboveOrderEmb.trans C + +private lemma minors_del_apply (C : Fin (s + 1) ↪o Fin n) (q : Fin (s + 1)) (i : Fin s) : + minorsDel C q i = C (q.succAbove i) := rfl + +/-- An `s`-subset of `B` is `B ∖ λ_q` for some `q`. -/ +private lemma minors_exists_del (C : Fin (s + 1) ↪o Fin n) (c : Fin s ↪o Fin n) + (h : ∀ i, c i ∈ Set.range C) : ∃ q, minorsDel C q = c := by + obtain ⟨q, hq⟩ : ∃ q, C q ∉ Set.range c := by + by_contra! hcon + have := minors_emb_le c C hcon + omega + refine ⟨q, (minors_emb_eq _ _ fun i => ?_).symm⟩ + obtain ⟨x, hx⟩ := h i + obtain ⟨y, rfl⟩ := Fin.exists_succAbove_eq (x := x) (y := q) fun hxq => + hq ⟨i, by rw [← hx, hxq]⟩ + exact ⟨y, hx⟩ + +/-- A pair `(S, l)` with `|S| = s` and `l ∉ S` is `(B ∖ λ_q, λ_q)`, with `B = S ∪ {l}`. -/ +private lemma minors_exists_insert (c : Fin s ↪o Fin n) {l : Fin n} (hl : l ∉ Set.range c) : + ∃ (C : Fin (s + 1) ↪o Fin n) (q : Fin (s + 1)), minorsDel C q = c ∧ C q = l := by + have hl' : l ∉ Finset.univ.map c.toEmbedding := by simpa using hl + have hcard : (insert l (Finset.univ.map c.toEmbedding)).card = s + 1 := by + rw [Finset.card_insert_of_notMem hl', Finset.card_map, Finset.card_fin] + set C := (insert l (Finset.univ.map c.toEmbedding)).orderEmbOfFin hcard with hC + have hmem : ∀ x, x ∈ insert l (Finset.univ.map c.toEmbedding) → x ∈ Set.range C := by + intro x hx + rw [hC, Finset.range_orderEmbOfFin] + exact Finset.mem_coe.2 hx + obtain ⟨q, hq⟩ := hmem l (Finset.mem_insert_self _ _) + refine ⟨C, q, (minors_emb_eq _ _ fun i => ?_).symm, hq⟩ + obtain ⟨x, hx⟩ := hmem (c i) (Finset.mem_insert_of_mem + (Finset.mem_map_of_mem c.toEmbedding (Finset.mem_univ i))) + obtain ⟨y, rfl⟩ := Fin.exists_succAbove_eq (x := x) (y := q) fun hxq => + hl ⟨i, by rw [← hx, hxq, hq]⟩ + exact ⟨y, hx⟩ + +/-- The pair `(B ∖ λ_q, λ_q)` determines `B` and `q`. -/ +private lemma minors_del_injective : + Function.Injective fun p : (Fin (s + 1) ↪o Fin n) × Fin (s + 1) => + (minorsDel p.1 p.2, p.1 p.2) := by + rintro ⟨C, q⟩ ⟨C', q'⟩ h + obtain ⟨h1, h2⟩ := Prod.mk.inj h + have hC : C = C' := by + refine minors_emb_eq _ _ fun i => ?_ + rcases eq_or_ne i q with rfl | hi + · exact ⟨q', h2.symm⟩ + · obtain ⟨y, rfl⟩ := Fin.exists_succAbove_eq hi + exact ⟨q'.succAbove y, by rw [← minors_del_apply C, h1, minors_del_apply]⟩ + subst hC + exact Prod.ext rfl (C.injective h2) + +end Emb + +/-! ### Lemma 5.24: the functions `X_B` -/ + +section Coeff + +/-- The right-hand side of (5.47), with the columns in `B`: +`X_B (Y) = ∑_{q,l} κ_{l,q} Y¹_l det (Y without the row 1 and the column q)`. -/ +private def minorsX {s : ℕ} (κ : Fin (s + 1) → Fin (s + 1) → ℝ) + (Y : Matrix (Fin (s + 1)) (Fin (s + 1)) ℝ) : ℝ := + ∑ q, ∑ l, κ l q * (Y 0 l * (Y.submatrix Fin.succ q.succAbove).det) + +/-- The matrix with rows `b`, `b` and the identity on the columns other than `q` and +`p = q.succAbove j` below: it is `ξ + a ⊗ b` for `a = e_1 + e_2` and for `ξ` with rows `1`, `2` and +columns `p`, `q` zero. -/ +private def minorsTest {s : ℕ} (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) : + Matrix (Fin (s + 2)) (Fin (s + 2)) ℝ := + Matrix.of (Fin.cons b (Fin.cons b fun i : Fin s => Pi.single (q.succAbove (j.succAbove i)) 1)) + +variable {s : ℕ} + +private lemma minors_test_zero (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) + (k : Fin (s + 2)) : minorsTest q j b 0 k = b k := rfl + +private lemma minors_test_one (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) + (k : Fin (s + 2)) : minorsTest q j b 1 k = b k := rfl + +private lemma minors_test_succ (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) + (i : Fin s) (k : Fin (s + 2)) : minorsTest q j b i.succ.succ k = + (Pi.single (q.succAbove (j.succAbove i)) 1 : Fin (s + 2) → ℝ) k := rfl + +/-- The line `t ↦ ξ + t a ⊗ b` of (5.49), (5.52), with `a = e_1 + e_2`. -/ +private lemma minors_test_add (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) (t : ℝ) : + minorsTest q j 0 + t • vecMulVec (Fin.cons 1 (Fin.cons 1 0)) b = minorsTest q j (t • b) := by + ext i k + refine Fin.cases ?_ (fun i => Fin.cases ?_ (fun i => ?_) i) i + · simp [minors_test_zero, vecMulVec_apply] + · simp [minors_test_one, vecMulVec_apply] + · simp [minors_test_succ, vecMulVec_apply] + +/-- `X_B (ξ + t a ⊗ b) = t² X_B (ξ + a ⊗ b)`. -/ +private lemma minors_X_test_smul (κ : Fin (s + 2) → Fin (s + 2) → ℝ) (q : Fin (s + 2)) + (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) (t : ℝ) : + minorsX κ (minorsTest q j (t • b)) = t ^ 2 * minorsX κ (minorsTest q j b) := by + have h : ∀ x : Fin (s + 2), ((minorsTest q j (t • b)).submatrix Fin.succ x.succAbove).det = + t * ((minorsTest q j b).submatrix Fin.succ x.succAbove).det := by + intro x + have e : (minorsTest q j (t • b)).submatrix Fin.succ x.succAbove = + ((minorsTest q j b).submatrix Fin.succ x.succAbove).updateRow 0 + (t • ((minorsTest q j b).submatrix Fin.succ x.succAbove) 0) := by + ext i k + refine Fin.cases ?_ (fun i => ?_) i + · simp [updateRow_self, minors_test_one] + · rw [updateRow_ne (Fin.succ_ne_zero i)] + simp [minors_test_succ] + rw [e, det_updateRow_smul, updateRow_eq_self] + simp only [minorsX, h, Finset.mul_sum] + refine Finset.sum_congr rfl fun x _ => Finset.sum_congr rfl fun l _ => ?_ + simp only [minors_test_zero, Pi.smul_apply, smul_eq_mul] + ring + +/-- "The coefficient of the term in `t²` must be `0`" ([D08], p. 189). -/ +private lemma minors_X_test_eq_zero {κ : Fin (s + 2) → Fin (s + 2) → ℝ} + (hX : MinorsRA (minorsX κ)) (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) : + minorsX κ (minorsTest q j b) = 0 := by + have h := hX (minorsTest q j 0) (Fin.cons 1 (Fin.cons 1 0)) b 2 + have h1 := minors_test_add q j b 1 + rw [one_smul, one_smul] at h1 + have h0 := minors_X_test_smul κ q j b 0 + rw [zero_smul] at h0 + rw [minors_test_add, h1, minors_X_test_smul, h0] at h + linarith + +/-- The minor without the column `q`: its first row is `b`, the others are the identity on the +columns other than `p = q.succAbove j`. -/ +private lemma minors_test_det (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) : + ((minorsTest q j b).submatrix Fin.succ q.succAbove).det = + (-1) ^ (j : ℕ) * b (q.succAbove j) := by + rw [det_succ_row_zero, Finset.sum_eq_single j] + · have e : ((minorsTest q j b).submatrix Fin.succ q.succAbove).submatrix Fin.succ j.succAbove = + 1 := by + ext i k + simp [minors_test_succ, Matrix.one_apply, Pi.single_apply, eq_comm] + rw [e, det_one, mul_one] + simp [minors_test_one] + · intro x _ hx + obtain ⟨y, rfl⟩ := Fin.exists_succAbove_eq hx + rw [det_eq_zero_of_row_eq_zero y fun k => ?_, mul_zero] + simp [minors_test_succ, Fin.succAbove_ne] + · simp + +/-- The minors without a column other than `p` and `q` have a zero row. -/ +private lemma minors_test_det_eq_zero (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) + (i : Fin s) : ((minorsTest q j b).submatrix Fin.succ + (q.succAbove (j.succAbove i)).succAbove).det = 0 := by + refine det_eq_zero_of_row_eq_zero i.succ fun k => ?_ + simp [minors_test_succ, Fin.succAbove_ne] + +/-- The `t²` coefficients of p. 190 of [D08], for the columns `q` and `p = q.succAbove j`. -/ +private lemma minors_coeff_eq {κ : Fin (s + 2) → Fin (s + 2) → ℝ} (hX : MinorsRA (minorsX κ)) + (q : Fin (s + 2)) (j : Fin (s + 1)) (b : Fin (s + 2) → ℝ) : + (∑ l, κ l q * b l) * ((-1) ^ (j : ℕ) * b (q.succAbove j)) + + (∑ l, κ l (q.succAbove j) * b l) * + ((minorsTest q j b).submatrix Fin.succ (q.succAbove j).succAbove).det = 0 := by + have h := minors_X_test_eq_zero hX q j b + have h' : ∀ x : Fin (s + 2), ∑ l, κ l x * (minorsTest q j b 0 l * + ((minorsTest q j b).submatrix Fin.succ x.succAbove).det) = (∑ l, κ l x * b l) * + ((minorsTest q j b).submatrix Fin.succ x.succAbove).det := by + intro x + rw [Finset.sum_mul] + exact Finset.sum_congr rfl fun l _ => by rw [minors_test_zero, mul_assoc] + simp only [minorsX, h'] at h + rw [Fin.sum_univ_succAbove _ q, Fin.sum_univ_succAbove _ j, minors_test_det] at h + simp only [minors_test_det_eq_zero, mul_zero, Finset.sum_const_zero, add_zero] at h + exact h + +/-- The displayed coefficient of p. 190 of [D08] for the pair `(λ_k, λ_{s+1})`, for every `b`: the +sum of the terms of the columns `λ_k` and `λ_{s+1}`. -/ +private lemma minors_coeff_last {κ : Fin (s + 2) → Fin (s + 2) → ℝ} (hX : MinorsRA (minorsX κ)) + (k : Fin (s + 1)) (b : Fin (s + 2) → ℝ) : + (∑ l, κ l k.castSucc * b l) * ((-1) ^ s * b (Fin.last (s + 1))) + + (∑ l, κ l (Fin.last (s + 1)) * b l) * ((-1) ^ (k : ℕ) * b k.castSucc) = 0 := by + have h := minors_coeff_eq hX k.castSucc (Fin.last s) b + have e : k.castSucc.succAbove (Fin.last s) = Fin.last (s + 1) := by simp + have ht : minorsTest k.castSucc (Fin.last s) b = minorsTest (Fin.last (s + 1)) k b := by + simp [minorsTest, Fin.succAbove_last, Fin.castSucc_succAbove_castSucc] + rw [e, ht, minors_test_det, Fin.succAbove_last, Fin.val_last] at h + exact h + +/-- (5.51), (5.53): if `X_B` is affine along the rank-one lines, then `κ_{l,q} = 0` for `l ≠ q`, and +the `κ_{q,q}` alternate. As in [D08], only the pairs `(λ_k, λ_{s+1})` are used. The vector `b` is +arbitrary: `e_{s+1}` and `e_{s+1} + e_l` give `κ_{l,k} = 0` for `l ≠ k`, `e_k` and `e_k + e_l` give +`κ_{l,s+1} = 0` for `l ≠ s + 1`, and `e_k + e_{s+1}` gives the relation of `κ_{k,k}` and +`κ_{s+1,s+1}`. -/ +private lemma minors_coeff {κ : Fin (s + 1) → Fin (s + 1) → ℝ} (hX : MinorsRA (minorsX κ)) : + (∀ l q, l ≠ q → κ l q = 0) ∧ + ∀ q, κ q q = (-1) ^ (q : ℕ) * ((-1) ^ s * κ (Fin.last s) (Fin.last s)) := by + cases s with + | zero => + refine ⟨fun l q hlq => absurd ((Fin.fin_one_eq_zero l).trans (Fin.fin_one_eq_zero q).symm) hlq, + fun q => ?_⟩ + rw [show q = Fin.last 0 from (Fin.fin_one_eq_zero q).trans rfl] + simp + | succ s => + have hpow : ∀ n : ℕ, ((-1 : ℝ)) ^ n ≠ 0 := fun n => pow_ne_zero _ (by norm_num) + -- the pair `(λ_k, λ_{s+1})` + have hk : ∀ k : Fin (s + 1), (∀ l, l ≠ k.castSucc → κ l k.castSucc = 0) ∧ + ∀ l, l ≠ Fin.last (s + 1) → κ l (Fin.last (s + 1)) = 0 := by + intro k + have hne : Fin.last (s + 1) ≠ k.castSucc := (Fin.castSucc_lt_last k).ne' + have h1 : κ (Fin.last (s + 1)) k.castSucc = 0 := by + have h := minors_coeff_last hX k (Pi.single (Fin.last (s + 1)) 1) + simpa [Pi.single_apply, hne, hne.symm] using h + have h2 : κ k.castSucc (Fin.last (s + 1)) = 0 := by + have h := minors_coeff_last hX k (Pi.single k.castSucc 1) + simpa [Pi.single_apply, hne, hne.symm] using h + constructor + · intro l hl + by_cases hl' : l = Fin.last (s + 1) + · rw [hl', h1] + · have h := minors_coeff_last hX k (Pi.single (Fin.last (s + 1)) 1 + Pi.single l 1) + simpa [mul_add, Finset.sum_add_distrib, Pi.single_apply, hne, hne.symm, hl, Ne.symm hl, + hl', Ne.symm hl', h1] using h + · intro l hl + by_cases hl' : l = k.castSucc + · rw [hl', h2] + · have h := minors_coeff_last hX k (Pi.single k.castSucc 1 + Pi.single l 1) + simpa [mul_add, Finset.sum_add_distrib, Pi.single_apply, hne, hne.symm, hl, Ne.symm hl, + hl', Ne.symm hl', h2] using h + constructor + · intro l q hlq + refine Fin.lastCases (fun hlq => (hk 0).2 l hlq) (fun k hlq => (hk k).1 l hlq) q hlq + · refine Fin.lastCases ?_ (fun k => ?_) + · rw [Fin.val_last, ← mul_assoc, ← mul_pow, neg_one_mul, neg_neg, one_pow, one_mul] + · have hne : Fin.last (s + 1) ≠ k.castSucc := (Fin.castSucc_lt_last k).ne' + have h := minors_coeff_last hX k (Pi.single k.castSucc 1 + Pi.single (Fin.last (s + 1)) 1) + have h1 := (hk k).1 _ hne + have h2 := (hk k).2 _ hne.symm + simp only [Pi.add_apply, mul_add, Finset.sum_add_distrib, Pi.single_apply, mul_ite, mul_one, + mul_zero, Finset.sum_ite_eq', Finset.mem_univ, ite_true, hne, hne.symm, ite_false, h1, h2, + add_zero, zero_add] at h + rw [Fin.val_castSucc] + have e1 : ((-1 : ℝ)) ^ s * (-1) ^ s = 1 := by rw [← mul_pow]; norm_num + calc κ k.castSucc k.castSucc = κ k.castSucc k.castSucc * ((-1) ^ s * (-1) ^ s) := by + rw [e1, mul_one] + _ = (-1) ^ (k : ℕ) * ((-1) ^ (s + 1) * κ (Fin.last (s + 1)) (Fin.last (s + 1))) := by + rw [pow_succ] + linear_combination (-1 : ℝ) ^ s * h + +/-- (5.48): `X_B = δ_B det`, by the Laplace expansion along the first row, with +`δ_B = (-1)^s κ_{s+1,s+1}`. -/ +private lemma minors_X_eq_det {κ : Fin (s + 1) → Fin (s + 1) → ℝ} (hX : MinorsRA (minorsX κ)) + (Y : Matrix (Fin (s + 1)) (Fin (s + 1)) ℝ) : + minorsX κ Y = ((-1) ^ s * κ (Fin.last s) (Fin.last s)) * Y.det := by + rw [det_succ_row_zero, minorsX, Finset.mul_sum] + refine Finset.sum_congr rfl fun q _ => ?_ + rw [Finset.sum_eq_single q (fun l _ hl => by rw [(minors_coeff hX).1 l q hl, zero_mul]) + fun hq => absurd (Finset.mem_univ q) hq, (minors_coeff hX).2 q] + ring + +end Coeff + +/-! ### Lemma 5.24 -/ + +section Lemma524 + +variable {N s : ℕ} + +/-- The rows `{1} ∪ I` of `ξ`, for a set `I` of rows of `ξ′`. -/ +private def minorsRows (r : Fin s ↪o Fin N) : Fin (s + 1) ↪o Fin (N + 1) := + OrderEmbedding.ofStrictMono (Fin.cons 0 (Fin.succ ∘ r)) + (Fin.strictMono_cons.2 ⟨fun _ => Fin.succ_pos _, Fin.strictMono_succ.comp r.strictMono⟩) + +private lemma minors_rows_zero (r : Fin s ↪o Fin N) : minorsRows r 0 = 0 := rfl + +/-- The function `g (ξ) = ∑_{S,l} γ_{l,S} ξ¹_l M_{I,S} (ξ′)` of Lemma 5.24 (p. 187), for a set `I` +of rows of `ξ′`; the parts `h^I` in (5.44). -/ +private noncomputable def minorsPart (r : Fin s ↪o Fin N) (γ : (Fin s ↪o Fin m) → Fin m → ℝ) + (ξ : Matrix (Fin (N + 1)) (Fin m) ℝ) : ℝ := + ∑ c, ∑ l, γ c l * (ξ 0 l * minor (ξ.submatrix Fin.succ id) r c) + +/-- The matrix `Y` in the rows `R` and the columns `C`, with zeros elsewhere. -/ +private def minorsPlace {k : ℕ} (R : Fin k ↪o Fin d) (C : Fin k ↪o Fin m) + (Y : Matrix (Fin k) (Fin k) ℝ) : Matrix (Fin d) (Fin m) ℝ := + (1 : Matrix (Fin d) (Fin d) ℝ).submatrix id R * Y * + (1 : Matrix (Fin m) (Fin m) ℝ).submatrix C id + +private lemma minors_place_apply {k : ℕ} (R : Fin k ↪o Fin d) (C : Fin k ↪o Fin m) + (Y : Matrix (Fin k) (Fin k) ℝ) (i j : Fin k) : minorsPlace R C Y (R i) (C j) = Y i j := by + simp [minorsPlace, Matrix.mul_apply, Matrix.one_apply] + +private lemma minors_place_of_notMem {k : ℕ} (R : Fin k ↪o Fin d) (C : Fin k ↪o Fin m) + (Y : Matrix (Fin k) (Fin k) ℝ) (i : Fin d) {j : Fin m} (hj : j ∉ Set.range C) : + minorsPlace R C Y i j = 0 := by + have hj' : ∀ x, C x ≠ j := fun x hx => hj ⟨x, hx⟩ + simp [minorsPlace, Matrix.mul_apply, Matrix.one_apply, hj'] + +private lemma minors_place_RA {k : ℕ} {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : MinorsRA f) + (R : Fin k ↪o Fin d) (C : Fin k ↪o Fin m) : MinorsRA fun Y => f (minorsPlace R C Y) := by + refine minors_RA_comp (fun u v => ⟨(1 : Matrix (Fin d) (Fin d) ℝ).submatrix id R *ᵥ u, + v ᵥ* (1 : Matrix (Fin m) (Fin m) ℝ).submatrix C id, fun Y t => ?_⟩) hf + rw [minorsPlace, Matrix.mul_add, Matrix.add_mul, Matrix.mul_smul, Matrix.smul_mul, + mul_vecMulVec, vecMulVec_mul] + rfl + +/-- (5.47), restricted to the columns in `B`: `X_B (Y)` is the value of `g` at `Y` placed in the +rows `{1} ∪ I` and the columns `B`. -/ +private lemma minors_part_place (r : Fin s ↪o Fin N) (γ : (Fin s ↪o Fin m) → Fin m → ℝ) + (C : Fin (s + 1) ↪o Fin m) (Y : Matrix (Fin (s + 1)) (Fin (s + 1)) ℝ) : + minorsPart r γ (minorsPlace (minorsRows r) C Y) = + minorsX (fun l q => γ (minorsDel C q) (C l)) Y := by + have hinj : Function.Injective fun q => minorsDel C q := by + intro q q' h + by_contra hqq + obtain ⟨y, hy⟩ := Fin.exists_succAbove_eq (Ne.symm hqq) + have h1 : C (q.succAbove y) = C (q'.succAbove y) := congrArg (fun c => c y) h + rw [hy] at h1 + exact Fin.succAbove_ne q' y (C.injective h1).symm + symm + refine Fintype.sum_of_injective _ hinj _ _ (fun c hc => ?_) fun q => ?_ + · -- a column of the minor is outside `B` + obtain ⟨k, hk⟩ : ∃ k, c k ∉ Set.range C := by + by_contra! hcon + exact hc (minors_exists_del C c hcon) + have h0 : minor ((minorsPlace (minorsRows r) C Y).submatrix Fin.succ id) r c = 0 := + det_eq_zero_of_column_eq_zero k fun i => minors_place_of_notMem _ _ _ _ hk + simp [h0] + · have h0 : minor ((minorsPlace (minorsRows r) C Y).submatrix Fin.succ id) r (minorsDel C q) = + (Y.submatrix Fin.succ q.succAbove).det := by + unfold minor + congr 1 + ext i k + exact minors_place_apply (minorsRows r) C Y i.succ (q.succAbove k) + refine Fintype.sum_of_injective C C.injective _ _ (fun l hl => ?_) fun l => ?_ + · rw [minors_place_of_notMem _ _ _ _ hl, zero_mul, mul_zero] + · rw [h0, ← minors_place_apply (minorsRows r) C Y 0 l, minors_rows_zero] + +/-- **Lemma 5.24** of [D08], p. 186, for one row set `I`, `|I| = s < n` (the "stronger version" of +p. 187): if `g (ξ) = ∑_{S,l} γ_{l,S} ξ¹_l M_{I,S} (ξ′)` is affine along the rank-one lines, then +`g (ξ) = ∑_B δ_B M_{{1} ∪ I, B} (ξ)`, `B` over the `(s+1)`-sets of columns (5.45). -/ +private lemma minors_part_eq_sum_minor (hs : s < m) (r : Fin s ↪o Fin N) + (γ : (Fin s ↪o Fin m) → Fin m → ℝ) (hg : MinorsRA (minorsPart r γ)) : + ∃ δ : (Fin (s + 1) ↪o Fin m) → ℝ, + ∀ ξ, minorsPart r γ ξ = ∑ C, δ C * minor ξ (minorsRows r) C := by + have hX : ∀ C : Fin (s + 1) ↪o Fin m, MinorsRA (minorsX fun l q => γ (minorsDel C q) (C l)) := by + intro C + simpa only [minors_part_place] using minors_place_RA hg (minorsRows r) C + -- `γ_{l,S} = 0` for `l ∈ S` + have hzero : ∀ (c : Fin s ↪o Fin m) l, l ∈ Set.range c → γ c l = 0 := by + rintro c _ ⟨k, rfl⟩ + obtain ⟨x, hx⟩ : ∃ x, x ∉ Set.range c := by + by_contra! hcon + have := Fintype.card_le_of_surjective c hcon + simp only [Fintype.card_fin] at this + omega + obtain ⟨C, q, rfl, -⟩ := minors_exists_insert c hx + exact (minors_coeff (hX C)).1 (q.succAbove k) q (Fin.succAbove_ne q k) + refine ⟨fun C => (-1) ^ s * γ (minorsDel C (Fin.last s)) (C (Fin.last s)), fun ξ => ?_⟩ + -- the sum over the pairs `(l, S)`, `l ∉ S`, regrouped by `B = S ∪ {l}` + rw [minorsPart, ← Fintype.sum_prod_type', ← Fintype.sum_of_injective _ minors_del_injective + (fun p => γ (minorsDel p.1 p.2) (p.1 p.2) * + (ξ 0 (p.1 p.2) * minor (ξ.submatrix Fin.succ id) r (minorsDel p.1 p.2))) _ + (fun p hp => ?_) fun _ => rfl, Fintype.sum_prod_type] + · refine Finset.sum_congr rfl fun C _ => ?_ + -- the term of `B` is `X_B = δ_B det` + rw [minor, ← minors_X_eq_det (hX C), minorsX] + refine Finset.sum_congr rfl fun q _ => ?_ + rw [Finset.sum_eq_single q (fun l _ hl => by rw [(minors_coeff (hX C)).1 l q hl, zero_mul]) + fun hq => absurd (Finset.mem_univ q) hq] + rfl + · obtain ⟨c, l⟩ := p + rw [hzero c l, zero_mul] + by_contra hl + obtain ⟨C, q, h1, h2⟩ := minors_exists_insert c hl + exact hp ⟨(C, q), Prod.ext h1 h2⟩ + +end Lemma524 + +/-! ### The parts of (5.44) are affine along the rank-one lines -/ + +section Parts + +variable {N : ℕ} + +/-- The matrix `ξ` with the rows of `ξ′` outside `I` set to zero. -/ +private def minorsKeep {s : ℕ} (r : Fin s ↪o Fin N) (ξ : Matrix (Fin (N + 1)) (Fin m) ℝ) : + Matrix (Fin (N + 1)) (Fin m) ℝ := + Matrix.of (Fin.cons (ξ 0) fun i j => if ∃ a, r a = i then ξ i.succ j else 0) + +private lemma minors_keep_zero {s : ℕ} (r : Fin s ↪o Fin N) (ξ : Matrix (Fin (N + 1)) (Fin m) ℝ) + (j : Fin m) : minorsKeep r ξ 0 j = ξ 0 j := rfl + +private lemma minors_keep_succ {s : ℕ} (r : Fin s ↪o Fin N) (ξ : Matrix (Fin (N + 1)) (Fin m) ℝ) + (i : Fin N) (j : Fin m) : + minorsKeep r ξ i.succ j = if ∃ a, r a = i then ξ i.succ j else 0 := rfl + +private lemma minors_keep_RA {s : ℕ} {f : Matrix (Fin (N + 1)) (Fin m) ℝ → ℝ} (hf : MinorsRA f) + (r : Fin s ↪o Fin N) : MinorsRA fun ξ => f (minorsKeep r ξ) := by + refine minors_RA_comp (fun u v => ⟨Fin.cons (u 0) fun i => if ∃ a, r a = i then u i.succ else 0, + v, fun Y t => ?_⟩) hf + ext i j + refine Fin.cases ?_ (fun i => ?_) i + · simp [minors_keep_zero, vecMulVec_apply] + · by_cases h : ∃ a, r a = i <;> simp [minors_keep_succ, vecMulVec_apply, h] + +/-- With the rows of `ξ′` outside `I` set to zero, `h^J` is unchanged if `J ⊆ I` and zero +otherwise. -/ +private lemma minors_part_keep {s s' : ℕ} (r : Fin s ↪o Fin N) (r' : Fin s' ↪o Fin N) + (γ : (Fin s' ↪o Fin m) → Fin m → ℝ) (ξ : Matrix (Fin (N + 1)) (Fin m) ℝ) : + minorsPart r' γ (minorsKeep r ξ) = + if ∀ i, ∃ a, r a = r' i then minorsPart r' γ ξ else 0 := by + split_ifs with h + · rw [minorsPart, minorsPart] + refine Finset.sum_congr rfl fun c _ => Finset.sum_congr rfl fun l _ => ?_ + congr 2 + unfold minor + congr 1 + ext i j + simp [minors_keep_succ, h i] + · rw [minorsPart] + push Not at h + obtain ⟨i, hi⟩ := h + refine Finset.sum_eq_zero fun c _ => Finset.sum_eq_zero fun l _ => ?_ + have h0 : minor ((minorsKeep r ξ).submatrix Fin.succ id) r' c = 0 := by + refine det_eq_zero_of_row_eq_zero i fun j => ?_ + simp [minors_keep_succ, hi] + rw [h0, mul_zero, mul_zero] + +/-- [D08], p. 185: if `h = ∑_s ∑_I h^I` is affine along the rank-one lines, then so is each `h^I`. +Induction on `s = |I|`: with the rows of `ξ′` outside `I` set to zero, `h` is the sum of `h^I` and +of the `h^J`, `J ⊂ I`, `|J| < s`. -/ +private lemma minors_part_RA {K : ℕ} + {γ : (k : ℕ) → (Fin k ↪o Fin N) → (Fin k ↪o Fin m) → Fin m → ℝ} + (h : MinorsRA fun ξ => ∑ k ∈ Finset.range K, ∑ r, minorsPart r (γ k r) ξ) : + ∀ s < K, ∀ r : Fin s ↪o Fin N, MinorsRA (minorsPart r (γ s r)) := by + intro s + induction s using Nat.strong_induction_on with + | _ s ih => + intro hs r + have key : ∀ ξ, minorsPart r (γ s r) ξ = + (∑ k ∈ Finset.range K, ∑ r', minorsPart r' (γ k r') (minorsKeep r ξ)) - + ∑ k ∈ Finset.range s, ∑ r', minorsPart r' (γ k r') (minorsKeep r ξ) := by + intro ξ + rw [← Finset.sum_subset (Finset.range_subset_range.2 (Nat.succ_le_of_lt hs)), + Finset.sum_range_succ, add_sub_cancel_left, Finset.sum_eq_single r] + · simp [minors_part_keep] + · intro r' _ hr' + rw [minors_part_keep, ite_eq_right] + exact fun hsub => hr' (minors_emb_eq r r' hsub) + · exact fun hr => absurd (Finset.mem_univ r) hr + · intro k _ hk + refine Finset.sum_eq_zero fun r' _ => ?_ + rw [minors_part_keep, ite_eq_right] + intro hsub + have := minors_emb_le r r' hsub + rw [Finset.mem_range, not_lt] at hk + omega + rw [funext key] + refine minors_RA_sub (minors_keep_RA h r) (minors_RA_sum _ fun k hk => minors_RA_sum _ + fun r' _ => minors_keep_RA (ih k (Finset.mem_range.1 hk) ?_ r') r) + exact (Finset.mem_range.1 hk).trans hs + +end Parts + +/-! ### The induction on the number of rows -/ + +section Induction + +/-- The span of the minors. -/ +private def minorsSpan (d m : ℕ) : Submodule ℝ (Matrix (Fin d) (Fin m) ℝ → ℝ) := + Submodule.span ℝ {g | ∃ (k : ℕ) (r : Fin k ↪o Fin d) (c : Fin k ↪o Fin m), + g = fun A => minor A r c} + +private lemma minors_minor_mem {k : ℕ} (r : Fin k ↪o Fin d) (c : Fin k ↪o Fin m) : + (fun A : Matrix (Fin d) (Fin m) ℝ => minor A r c) ∈ minorsSpan d m := + Submodule.subset_span ⟨k, r, c, rfl⟩ + +/-- The coefficients of an element of the span of the minors. -/ +private lemma minors_exists_coeff {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : f ∈ minorsSpan d m) : + ∃ a : (k : ℕ) → (Fin k ↪o Fin d) → (Fin k ↪o Fin m) → ℝ, + ∀ A, f A = ∑ k ∈ Finset.range (min d m + 1), ∑ r, ∑ c, a k r c * minor A r c := by + let ι := Σ k : Fin (min d m + 1), (Fin k ↪o Fin d) × (Fin k ↪o Fin m) + let v : ι → Matrix (Fin d) (Fin m) ℝ → ℝ := fun i A => minor A i.2.1 i.2.2 + have hle : minorsSpan d m ≤ Submodule.span ℝ (Set.range v) := by + refine Submodule.span_le.2 ?_ + rintro g ⟨k, r, c, rfl⟩ + have hk : k < min d m + 1 := by + have h1 := Fintype.card_le_of_embedding r.toEmbedding + have h2 := Fintype.card_le_of_embedding c.toEmbedding + simp only [Fintype.card_fin] at h1 h2 + omega + exact Submodule.subset_span ⟨⟨⟨k, hk⟩, (r, c)⟩, rfl⟩ + obtain ⟨a, ha⟩ := (Submodule.mem_span_range_iff_exists_fun ℝ).1 (hle hf) + refine ⟨fun k r c => if hk : k < min d m + 1 then a ⟨⟨k, hk⟩, (r, c)⟩ else 0, fun A => ?_⟩ + rw [← ha, Finset.sum_apply, Fintype.sum_sigma, Finset.sum_range] + refine Finset.sum_congr rfl fun k _ => ?_ + rw [Fintype.sum_prod_type] + simp only [k.isLt, ↓reduceDIte, Pi.smul_apply, smul_eq_mul, v] + +/-- The minors of `ξ′` are minors of `ξ`. -/ +private lemma minors_tail_mem {g : Matrix (Fin d) (Fin m) ℝ → ℝ} (hg : g ∈ minorsSpan d m) : + (fun ξ : Matrix (Fin (d + 1)) (Fin m) ℝ => g (ξ.submatrix Fin.succ id)) ∈ + minorsSpan (d + 1) m := by + induction hg using Submodule.span_induction with + | mem x hx => + obtain ⟨k, r, c, rfl⟩ := hx + exact minors_minor_mem (r.trans (Fin.succOrderEmb d)) c + | zero => exact Submodule.zero_mem _ + | add x y _ _ hx hy => exact Submodule.add_mem _ hx hy + | smul a x _ hx => exact Submodule.smul_mem _ a hx + +/-- The matrix `(a; ξ′)` with first row `a` and the rows of `ξ′` below it. -/ +private def minorsRowCons (a : Fin m → ℝ) (ξ' : Matrix (Fin d) (Fin m) ℝ) : + Matrix (Fin (d + 1)) (Fin m) ℝ := + Matrix.of (Fin.cons a fun i => ξ' i) + +@[simp] private lemma minorsRowCons_zero (a : Fin m → ℝ) (ξ' : Matrix (Fin d) (Fin m) ℝ) + (j : Fin m) : minorsRowCons a ξ' 0 j = a j := rfl + +@[simp] private lemma minorsRowCons_succ (a : Fin m → ℝ) (ξ' : Matrix (Fin d) (Fin m) ℝ) + (i : Fin d) (j : Fin m) : minorsRowCons a ξ' i.succ j = ξ' i j := rfl + +private lemma minorsRowCons_eta (ξ : Matrix (Fin (d + 1)) (Fin m) ℝ) : + minorsRowCons (ξ 0) (ξ.submatrix Fin.succ id) = ξ := by + ext i j + refine Fin.cases ?_ (fun i => ?_) i <;> rfl + +/-- A function on `ℝ^m` that is affine along every line is affine (Step 1 of [D08], p. 182, without +the gradient). -/ +private lemma minors_affine_of_lines {g : (Fin m → ℝ) → ℝ} + (hg : ∀ a v (t : ℝ), g (a + t • v) = g a + t * (g (a + v) - g a)) (a : Fin m → ℝ) : + g a = g 0 + ∑ k, a k * (g (Pi.single k 1) - g 0) := by + have hsmul : ∀ (t : ℝ) x, g (t • x) - g 0 = t * (g x - g 0) := by + intro t x + have := hg 0 x t + simp only [zero_add] at this + rw [this]; ring + have hadd : ∀ x y, g (x + y) - g 0 = (g x - g 0) + (g y - g 0) := by + intro x y + have e1 := hg x (y - x) (1 / 2) + have e2 := hg 0 (x + y) (1 / 2) + have e : x + (1 / 2 : ℝ) • (y - x) = 0 + (1 / 2 : ℝ) • (x + y) := by + ext i; simp only [Pi.add_apply, Pi.smul_apply, Pi.sub_apply, smul_eq_mul, Pi.zero_apply] + ring + rw [e, e2, add_sub_cancel] at e1 + simp only [zero_add] at e1 + linarith + let L : (Fin m → ℝ) →ₗ[ℝ] ℝ := + { toFun := fun x => g x - g 0 + map_add' := hadd + map_smul' := fun t x => by simp only [hsmul, smul_eq_mul, RingHom.id_apply] } + have h := LinearMap.pi_apply_eq_sum_univ L a + have hs : ∀ i : Fin m, (fun j => if i = j then (1 : ℝ) else 0) = Pi.single i 1 := by + intro i; ext j; simp [Pi.single_apply, eq_comm] + simp only [hs, smul_eq_mul] at h + change g a - g 0 = ∑ i, a i * (g (Pi.single i 1) - g 0) at h + linarith + +/-- The function `χ (ξ′) = f (0; ξ′)` of (5.42). -/ +private def minorsChi (f : Matrix (Fin (d + 1)) (Fin m) ℝ → ℝ) (ξ' : Matrix (Fin d) (Fin m) ℝ) : + ℝ := + f (minorsRowCons 0 ξ') + +/-- The function `ψ_l (ξ′) = f (e_l; ξ′) − f (0; ξ′)` of (5.42). -/ +private def minorsPsi (f : Matrix (Fin (d + 1)) (Fin m) ℝ → ℝ) (l : Fin m) + (ξ' : Matrix (Fin d) (Fin m) ℝ) : ℝ := + f (minorsRowCons (Pi.single l 1) ξ') - minorsChi f ξ' + +/-- (5.42): `f` is affine in the first row, `f (a; ξ′) = χ (ξ′) + ∑_l a_l ψ_l (ξ′)`. -/ +private lemma minors_rowAffine {f : Matrix (Fin (d + 1)) (Fin m) ℝ → ℝ} (hf : MinorsRA f) + (a : Fin m → ℝ) (ξ' : Matrix (Fin d) (Fin m) ℝ) : + f (minorsRowCons a ξ') = minorsChi f ξ' + ∑ l, a l * minorsPsi f l ξ' := by + refine minors_affine_of_lines (g := fun a => f (minorsRowCons a ξ')) (fun a v t => ?_) a + have h := hf (minorsRowCons a ξ') (Fin.cons 1 0) v t + have e : ∀ s : ℝ, minorsRowCons a ξ' + s • vecMulVec (Fin.cons 1 0) v = + minorsRowCons (a + s • v) ξ' := by + intro s + ext i j + refine Fin.cases ?_ (fun i => ?_) i <;> simp [vecMulVec_apply] + have e1 := e 1 + rw [one_smul, one_smul] at e1 + rwa [e t, e1] at h + +/-- For a fixed first row, `f` is affine along the rank-one lines in `ξ′`. -/ +private lemma minors_rowCons_RA {f : Matrix (Fin (d + 1)) (Fin m) ℝ → ℝ} (hf : MinorsRA f) + (w : Fin m → ℝ) : MinorsRA fun ξ' => f (minorsRowCons w ξ') := by + refine minors_RA_comp (fun u v => ⟨Fin.cons 0 u, v, fun Y t => ?_⟩) hf + ext i j + refine Fin.cases ?_ (fun i => ?_) i <;> simp [vecMulVec_apply] + +private lemma minors_tail_RA {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : MinorsRA f) : + MinorsRA fun ξ : Matrix (Fin (d + 1)) (Fin m) ℝ => f (ξ.submatrix Fin.succ id) := + minors_RA_comp (fun u v => ⟨fun i => u i.succ, v, fun _ _ => rfl⟩) hf + +/-- **The induction on the number of rows**, [D08], pp. 182–185: for `N ≤ n`, a function on +`ℝ^{N×n}` that is affine along the rank-one lines is a linear combination of minors. -/ +private lemma minors_mem_span : ∀ d ≤ m, ∀ f : Matrix (Fin d) (Fin m) ℝ → ℝ, MinorsRA f → + f ∈ minorsSpan d m := by + intro d + induction d with + | zero => + intro _ f _ + let r0 : Fin 0 ↪o Fin 0 := OrderEmbedding.ofIsEmpty + let c0 : Fin 0 ↪o Fin m := OrderEmbedding.ofIsEmpty + have hf : f = f 0 • fun A : Matrix (Fin 0) (Fin m) ℝ => minor A r0 c0 := by + ext A + have hA : A = 0 := by ext i; exact i.elim0 + simp [minor, hA, det_isEmpty] + rw [hf] + exact Submodule.smul_mem _ _ (minors_minor_mem r0 c0) + | succ N ih => + intro hN f hf + -- (5.43): the induction hypothesis for `χ` and the `ψ_l` + have hχ := ih (by omega) (minorsChi f) (minors_rowCons_RA hf 0) + choose a ha using fun l => minors_exists_coeff (ih (by omega) (minorsPsi f l) + (minors_RA_sub (minors_rowCons_RA hf _) (minors_rowCons_RA hf 0))) + let γ : (k : ℕ) → (Fin k ↪o Fin N) → (Fin k ↪o Fin m) → Fin m → ℝ := fun k r c l => a l k r c + -- (5.44) + have h44 : ∀ ξ, f ξ = minorsChi f (ξ.submatrix Fin.succ id) + + ∑ k ∈ Finset.range (min N m + 1), ∑ r, minorsPart r (γ k r) ξ := by + intro ξ + conv_lhs => rw [← minorsRowCons_eta ξ, minors_rowAffine hf] + congr 1 + simp only [ha, Finset.mul_sum, minorsPart] + rw [Finset.sum_comm] + refine Finset.sum_congr rfl fun k _ => ?_ + rw [Finset.sum_comm] + refine Finset.sum_congr rfl fun r _ => ?_ + rw [Finset.sum_comm] + refine Finset.sum_congr rfl fun c _ => Finset.sum_congr rfl fun l _ => ?_ + ring + -- `h = f − χ` is affine along the rank-one lines + have hh : MinorsRA fun ξ => ∑ k ∈ Finset.range (min N m + 1), ∑ r, minorsPart r (γ k r) ξ := by + have := minors_RA_sub hf (minors_tail_RA (minors_rowCons_RA hf 0)) + convert this using 2 with ξ + rw [h44 ξ] + simp [minorsChi] + -- Lemma 5.24 for each part, with `s = k ≤ N < n` + have hmem : ∀ k ∈ Finset.range (min N m + 1), ∀ r : Fin k ↪o Fin N, + minorsPart r (γ k r) ∈ minorsSpan (N + 1) m := by + intro k hk r + rw [Finset.mem_range] at hk + obtain ⟨δ, hδ⟩ := minors_part_eq_sum_minor (by omega) r (γ k r) (minors_part_RA hh k hk r) + have e : minorsPart r (γ k r) = ∑ C, δ C • fun ξ => minor ξ (minorsRows r) C := by + ext ξ + simp [hδ] + rw [e] + exact Submodule.sum_mem _ fun C _ => Submodule.smul_mem _ _ (minors_minor_mem _ _) + have e : f = (fun ξ => minorsChi f (ξ.submatrix Fin.succ id)) + + ∑ k ∈ Finset.range (min N m + 1), ∑ r, minorsPart r (γ k r) := by + ext ξ + simp [h44 ξ] + rw [e] + exact Submodule.add_mem _ (minors_tail_mem hχ) + (Submodule.sum_mem _ fun k hk => Submodule.sum_mem _ fun r _ => hmem k hk r) + +end Induction + +/-- **A rank-one affine function is an affine combination of minors**: [D08], Theorem 5.20 +(p. 179), the implication (ii) ⇒ (iii′). For a rank-one affine `f : ℝ^{d×m} → ℝ` there are +coefficients `a k r c` with `f (A) = ∑_{k ≤ min d m} ∑_{r, c} a k r c · minor A r c` for every `A` +(the `0 × 0` minor is the constant `1`, and its coefficient is `f (0)`). As in [D08], `f` is not +assumed continuous. + +The proof is that of [D08], pp. 181–191, repaired as listed in the module docstring. If `d ≤ m`: +induction on the number of rows (`minors_mem_span`), in which `f` is affine in its first row +(5.42), the coefficients are combinations of minors of the other rows by the induction hypothesis +(5.43), the parts of `f` with a given set of other rows (5.44) are rank-one affine +(`minors_part_RA`), and Lemma 5.24 (`minors_part_eq_sum_minor`) writes each part as a combination of +minors that contain the first row. Otherwise, the result for `ξ ↦ f (ξᵀ)`: the minors of `Aᵀ` are +the minors of `A`. -/ +theorem RankOneAffine.exists_eq_sum_minor {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (hf : RankOneAffine f) : + ∃ a : (k : ℕ) → (Fin k ↪o Fin d) → (Fin k ↪o Fin m) → ℝ, + ∀ A, f A = ∑ k ∈ Finset.range (min d m + 1), ∑ r, ∑ c, a k r c * minor A r c := by + have hRA : MinorsRA f := hf.add_smul_vecMulVec + rcases le_total d m with hdm | hmd + · exact minors_exists_coeff (minors_mem_span d hdm f hRA) + · obtain ⟨a, ha⟩ := minors_exists_coeff (minors_mem_span m hmd _ (minors_transpose_RA hRA)) + refine ⟨fun k r c => a k c r, fun A => ?_⟩ + have h := ha Aᵀ + rw [transpose_transpose] at h + rw [h, min_comm] + refine Finset.sum_congr rfl fun k _ => ?_ + rw [Finset.sum_comm] + refine Finset.sum_congr rfl fun r _ => Finset.sum_congr rfl fun c _ => ?_ + rw [minor, minor, ← det_transpose, transpose_submatrix, transpose_transpose] + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Cutoff.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Cutoff.lean new file mode 100644 index 0000000000..2a3eb637ad --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Cutoff.lean @@ -0,0 +1,164 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Cutoff + +/-! +# Cut-offs near the boundary of the cube + +`le_of_quasiconvexAtOn_of_tendsto`: let `f` be Borel and locally bounded, and quasiconvex at `F` on +the unit cube `Q`. If the maps `u_k` are Lipschitz with the same constant, `u_k → 0` uniformly and +`∫_Q f (F + ∇u_k) → E`, then `f (F) ≤ E`, although the `u_k` need not vanish on `∂Q`. + +This is the cut-off argument of F. Rindler, *Calculus of Variations*, 2nd ed., Graduate Texts in +Mathematics 310, Springer, 2026 ([R2]), proof of Proposition 5.6, Step 2 (p. 112–113), and of +B. Dacorogna, *Direct Methods in the Calculus of Variations*, 2nd ed., Springer, 2008, proof of +Proposition 5.13 (p. 173–174). In [R2]: take cut-off functions `ρ_j` with `0 ≤ ρ_j ≤ 1`, `ρ_j = 0` +off `Q` and `|Q ∖ G_j| → 0` for `G_j = {ρ_j = 1}`, and `v_{j,k} = ρ_j u_k`, so that +`∇v_{j,k} = ρ_j ∇u_k + u_k ⊗ ∇ρ_j` ([R2] writes `F x + u_k` for `u_k` and `F x + v_{j,k}` for +`v_{j,k}`). Since `u_k → 0` uniformly, one can choose, for every `j`, an index `k (j)` such that the +gradients `∇v_j`, `v_j = v_{j,k (j)}`, are bounded independently of `j`. As `f` is locally bounded, +`∫_Q |f (F + ∇v_j) − f (F + ∇u_{k (j)})| ≤ C |Q ∖ G_j| → 0`, and +`f (F) ≤ ∫_Q f (F + ∇v_j)` by quasiconvexity. + +Here `ρ_j = cubeCutoff (1/j)` (Lipschitz cut-offs, equal to `1` on `[1/j, 1 − 1/j]^m`, with +`|∇ρ_j| ≤ m j`), and `k (j)` is chosen with `|u_{k (j)}| ≤ 1/j`, so that `v_j` is Lipschitz with a +constant independent of `j`, and with `k (j) ≥ j`, so that `∫_Q f (F + ∇u_{k (j)}) → E` (for the +laminates of [R2] this integral does not depend on `k`, so `k (j) → ∞` is not needed there). +-/ + +@[expose] public section + +open Metric Set MeasureTheory Filter Topology +open scoped Pointwise + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-- The cut-off `ρ u` of a `K`-Lipschitz map `u` with `|u| ≤ M δ`, `ρ = cubeCutoff δ`, is +`(K + m M)`-Lipschitz: `|∇ρ| ≤ m / δ`. -/ +lemma rd_eta_smul_lipschitz {u : (Fin m → ℝ) → Fin d → ℝ} {K M : NNReal} (hu : LipschitzWith K u) + {δ : ℝ} (hδ : 0 < δ) (hb : ∀ x, ‖u x‖ ≤ M * δ) : + LipschitzWith (K + m * M) fun x => cubeCutoff δ x • u x := by + refine LipschitzWith.of_dist_le_mul fun x y => ?_ + rw [dist_eq_norm] + have e : cubeCutoff δ x • u x - cubeCutoff δ y • u y = + cubeCutoff δ x • (u x - u y) + (cubeCutoff δ x - cubeCutoff δ y) • u y := by + rw [smul_sub, sub_smul]; abel + have h1 := hu.dist_le_mul x y + rw [dist_eq_norm] at h1 + have h2 := rd_eta_lip hδ x y + have h3 := rd_eta_mem δ x + rw [e] + calc ‖cubeCutoff δ x • (u x - u y) + (cubeCutoff δ x - cubeCutoff δ y) • u y‖ + ≤ |cubeCutoff δ x| * ‖u x - u y‖ + |cubeCutoff δ x - cubeCutoff δ y| * ‖u y‖ := by + refine (norm_add_le _ _).trans ?_ + rw [norm_smul, norm_smul, Real.norm_eq_abs, Real.norm_eq_abs] + _ ≤ 1 * (K * dist x y) + m * dist x y / δ * (M * δ) := by + gcongr + · rw [abs_of_nonneg h3.1]; exact h3.2 + · exact hb y + _ = (K + m * M : NNReal) * dist x y := by + push_cast + field_simp + +/-- The inner cube `(δ, 1 − δ)^m` lies in the unit cube. -/ +lemma rd_inner_subset {δ : ℝ} (hδ : 0 ≤ δ) : innerCube (m := m) δ ⊆ unitCube m := fun x hx i _ => + ⟨by linarith [(hx i (mem_univ i)).1], by linarith [(hx i (mem_univ i)).2]⟩ + +lemma rd_inner_measurableSet (δ : ℝ) : MeasurableSet (innerCube (m := m) δ) := + (rd_inner_isOpen δ).measurableSet + +/-- The boundary layer `Q ∖ (δ, 1 − δ)^m` of the unit cube has measure `1 − (1 − 2δ)^m`. -/ +lemma rd_volume_real_layer {δ : ℝ} (hδ : 0 ≤ δ) (hδ2 : 2 * δ ≤ 1) : + volume.real (unitCube m \ innerCube δ) = 1 - (1 - 2 * δ) ^ m := by + have hQ : volume.real (unitCube m) = 1 := by + rw [measureReal_def, rd_volume_unitCube, ENNReal.toReal_one] + rw [measureReal_sdiff (rd_inner_subset hδ) (rd_inner_measurableSet δ) + (by rw [rd_volume_unitCube]; exact ENNReal.one_ne_top), hQ, measureReal_def] + simp only [innerCube, Real.volume_pi_Ioo, Finset.prod_const, Finset.card_univ, Fintype.card_fin] + rw [ENNReal.toReal_pow, ENNReal.toReal_ofReal (by linarith)] + ring + +/-- **Cut-off near the boundary** ([R2], proof of Proposition 5.6, Step 2; see the module docstring +for the proof). Let `f` be Borel, locally bounded and quasiconvex at `F` on the unit cube `Q`. If +the `u_k` are `K`-Lipschitz, `u_k → 0` uniformly and `∫_Q f (F + ∇u_k) → E`, then `f (F) ≤ E`. -/ +theorem le_of_quasiconvexAtOn_of_tendsto {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (hf : Measurable f) (hbdd : IsLocallyBounded f) {F : Matrix (Fin d) (Fin m) ℝ} + (hq : QuasiconvexAtOn (unitCube m) f F) {u : ℕ → (Fin m → ℝ) → Fin d → ℝ} {K : NNReal} + (hu : ∀ k, LipschitzWith K (u k)) (hu0 : TendstoUniformly u 0 atTop) {E : ℝ} + (hE : Tendsto (fun k => ∫ x in unitCube m, f (F + grad (u k) x)) atTop (𝓝 E)) : f F ≤ E := by + have hQm : MeasurableSet (unitCube m) := MeasurableSet.univ_pi fun _ => measurableSet_Ioo + have hQfin : volume (unitCube m) < ⊤ := by rw [rd_volume_unitCube]; exact ENNReal.one_lt_top + -- the bound of `f` on the gradients + obtain ⟨C, hC0, hC⟩ := rd_bound_near hbdd F (K + m) + -- the choice of `k (j)` + have hk : ∀ j : ℕ, ∃ k, j ≤ k ∧ (0 < j → ∀ x, ‖u k x‖ ≤ 1 / (j : ℝ)) := by + intro j + rcases Nat.eq_zero_or_pos j with rfl | hj + · exact ⟨0, le_rfl, fun h => absurd h (lt_irrefl _)⟩ + · have hj' : (0 : ℝ) < 1 / j := one_div_pos.2 (Nat.cast_pos.2 hj) + obtain ⟨k, hk⟩ := ((Metric.tendstoUniformly_iff.1 hu0 _ hj').and + (eventually_ge_atTop j)).exists + exact ⟨k, hk.2, fun _ x => by simpa using (hk.1 x).le⟩ + choose k hkj hkb using hk + -- the energies of `v_j = ρ_j u_{k (j)}` and of `u_{k (j)}` + have key : ∀ j : ℕ, 2 ≤ j → f F ≤ (∫ x in unitCube m, f (F + grad (u (k j)) x)) + + 2 * C * (1 - (1 - 2 * (1 / (j : ℝ))) ^ m) := by + intro j hj + have hj' : (2 : ℝ) ≤ j := by exact_mod_cast hj + set δ : ℝ := 1 / j with hδdef + have hδ : 0 < δ := by positivity + have hδ2 : 2 * δ ≤ 1 := by rw [hδdef, mul_one_div, div_le_one (by linarith)]; exact hj' + set v : (Fin m → ℝ) → Fin d → ℝ := fun x => cubeCutoff δ x • u (k j) x with hvdef + have hv : LipschitzWith (K + m * 1) v := rd_eta_smul_lipschitz (hu _) hδ + fun x => by rw [NNReal.coe_one, one_mul]; exact hkb j (by omega) x + have hv0 : ∀ x ∉ unitCube m, v x = 0 := fun x hx => by + simp only [hvdef, rd_eta_zero hδ hx, zero_smul] + have hq' := hq v _ hv hv0 (rd_integrableOn hf hbdd F hv hQfin) + rw [rd_volume_unitCube, ENNReal.toReal_one, one_mul] at hq' + -- the two integrands agree on `G_j` + have hagree : ∀ x ∈ innerCube δ, grad v x = grad (u (k j)) x := fun x hx => by + refine cv_grad_congr ?_ + filter_upwards [(rd_inner_isOpen δ).mem_nhds hx] with y hy + simp only [hvdef, rd_eta_one hδ hy, one_smul] + have hb1 : ∀ x, ‖f (F + grad v x)‖ ≤ C := fun x => by + rw [Real.norm_eq_abs] + exact hC _ fun i l => by simpa using rd_grad_abs_le hv x i l + have hb2 : ∀ x, ‖f (F + grad (u (k j)) x)‖ ≤ C := fun x => by + rw [Real.norm_eq_abs] + refine hC _ fun i l => (rd_grad_abs_le (hu _) x i l).trans ?_ + linarith [(Nat.cast_nonneg m : (0 : ℝ) ≤ m)] + have hint1 := rd_integrableOn hf hbdd F hv hQfin + have hint2 := rd_integrableOn hf hbdd F (hu (k j)) hQfin + have hsub := rd_inner_subset (m := m) hδ.le + have hdiff : ∫ x in unitCube m, (f (F + grad v x) - f (F + grad (u (k j)) x)) = + ∫ x in unitCube m \ innerCube δ, (f (F + grad v x) - f (F + grad (u (k j)) x)) := by + refine setIntegral_eq_of_subset_of_forall_sdiff_eq_zero hQm sdiff_subset fun x hx => ?_ + have hx' : x ∈ innerCube δ := by_contra fun h => hx.2 ⟨hx.1, h⟩ + rw [hagree x hx', sub_self] + have hbd := norm_setIntegral_le_of_norm_le_const (μ := volume) + (s := unitCube m \ innerCube (m := m) δ) ((measure_mono sdiff_subset).trans_lt hQfin) + (f := fun x => f (F + grad v x) - f (F + grad (u (k j)) x)) (C := 2 * C) + fun x _ => (norm_sub_le _ _).trans (by linarith [hb1 x, hb2 x]) + rw [← hdiff, integral_sub hint1 hint2, Real.norm_eq_abs, rd_volume_real_layer hδ.le hδ2] at hbd + linarith [(abs_le.1 hbd).2] + -- the limit `j → ∞` + have h1 : Tendsto (fun j : ℕ => ∫ x in unitCube m, f (F + grad (u (k j)) x)) atTop (𝓝 E) := + hE.comp (tendsto_atTop_mono hkj tendsto_id) + have h2 : Tendsto (fun j : ℕ => 2 * C * (1 - (1 - 2 * (1 / (j : ℝ))) ^ m)) atTop + (𝓝 (2 * C * (1 - (1 - 2 * 0) ^ m))) := + tendsto_const_nhds.mul (tendsto_const_nhds.sub + ((tendsto_const_nhds.sub (tendsto_const_nhds.mul tendsto_one_div_atTop_nhds_zero_nat)).pow m)) + have h3 := h1.add h2 + simp only [mul_zero, sub_zero, one_pow, sub_self, add_zero] at h3 + exact ge_of_tendsto h3 ((eventually_ge_atTop 2).mono key) + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Domain.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Domain.lean new file mode 100644 index 0000000000..e3f8e40892 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Domain.lean @@ -0,0 +1,277 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.ZeroSet + +/-! +# Quasiconvexity does not depend on the domain + +For a Borel, locally bounded `f`, quasiconvexity at `A` on the unit cube is equivalent to +quasiconvexity at `A` on any nonempty bounded open set (`quasiconvexAtOn_iff`); the direction from +the cube holds on every bounded measurable set (`quasiconvexAtOn_of_unitCube`). + +This is Proposition 5.11 of B. Dacorogna, *Direct Methods in the Calculus of Variations*, 2nd ed., +Springer, 2008 ([D08], pp. 172–173), and Lemma 5.2 (i) of F. Rindler, *Calculus of Variations*, 2nd +ed., Graduate Texts in Mathematics 310, Springer, 2026 ([R2], p. 106; Lipschitz domains), with their +argument (also Remark 2 after Definition 4.2 in S. Müller, *Variational models for microstructure +and phase transitions*, lecture notes, MPI MiS Leipzig, 1998): extend the test map by zero, put a +translated and scaled copy of its domain inside the other domain, and compute the energy of the +copy, the rest contributing `f (A)` times its measure. Here the unit cube is the intermediate +domain. + +The computation uses that the gradient of the extended map vanishes almost everywhere outside the +domain of the test map. In [D08] this is immediate, since `W^{1,∞}_0 (E)` is there +`W^{1,∞} (E) ∩ W^{1,1}_0 (E)` (Definition 12.9 (iv)), and in [R2] and Müller because the domains are +Lipschitz, respectively `|∂U| = 0`. For the test maps of this package (Lipschitz, vanishing outside +the domain) on an arbitrary bounded open set it is the vanishing of the gradient of a Lipschitz map +almost everywhere on its zero set (`Lipschitz.ZeroSet`). [D08] does not say that the first domain is +nonempty; for the empty set the proposition is false (its hypothesis is void). +-/ + +@[expose] public section + +open Metric Set MeasureTheory Filter Topology +open scoped Pointwise + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-- **From the cube to any bounded set**: quasiconvexity at `A` on the unit cube gives it on +every bounded measurable `Ω` (in particular on every bounded open set). Put `Ω` in a cube +`Q_R = x₀ + R (0, 1)^m`; a test map `φ` on `Ω`, rescaled to the unit cube, gives +`R^m f (A) ≤ ∫_{Q_R} f (A + ∇φ)`; on `Q_R ∖ Ω` the map vanishes, so its gradient vanishes almost +everywhere (`rd_ae_grad_eq_zero`), and the inequality becomes `|Ω| f (A) ≤ ∫_Ω f (A + ∇φ)`. -/ +theorem quasiconvexAtOn_of_unitCube {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (hf : Measurable f) (hbdd : IsLocallyBounded f) {A : Matrix (Fin d) (Fin m) ℝ} + {Ω : Set (Fin m → ℝ)} (hb : Bornology.IsBounded Ω) (hΩm : MeasurableSet Ω) + (h : QuasiconvexAtOn (unitCube m) f A) : QuasiconvexAtOn Ω f A := by + intro φ K hφ h0 _ + obtain ⟨ρ, hρ⟩ := hb.subset_closedBall 0 + set a : ℝ := |ρ| + 1 with ha_def + have ha : 1 ≤ a := by have := abs_nonneg ρ; linarith + set R : ℝ := 2 * a with hR_def + have hR : 0 < R := by linarith + set x₀ : Fin m → ℝ := fun _ => -a + set T : (Fin m → ℝ) → Fin m → ℝ := fun y => x₀ + R • y + set ψ : (Fin m → ℝ) → Fin d → ℝ := fun y => R⁻¹ • φ (T y) + have hT : LipschitzWith ‖R‖₊ T := LipschitzWith.of_dist_le_mul fun y z => by + simp only [T, dist_add_left]; exact (lipschitzWith_smul R).dist_le_mul y z + have hψ : LipschitzWith (‖R⁻¹‖₊ * (K * ‖R‖₊)) ψ := (lipschitzWith_smul R⁻¹).comp (hφ.comp hT) + have hent : ∀ x ∈ Ω, ∀ i, |x i| ≤ ρ := fun x hx i => by + have := hρ hx + rw [Metric.mem_closedBall, dist_zero_right] at this + rw [← Real.norm_eq_abs] + exact (norm_le_pi_norm x i).trans this + have hρa : ρ ≤ a - 1 := by rw [ha_def]; linarith [le_abs_self ρ] + have hTΩ : ∀ y, T y ∈ Ω → y ∈ unitCube m := by + intro y hy i _ + have := abs_le.1 (hent _ hy i) + simp only [T, x₀, Pi.add_apply, Pi.smul_apply, smul_eq_mul] at this + constructor + · by_contra hneg; push Not at hneg; nlinarith + · by_contra hneg; push Not at hneg; nlinarith + have hψ0 : ∀ y ∉ unitCube m, ψ y = 0 := fun y hy => by + simp only [ψ, h0 _ fun h => hy (hTΩ y h), smul_zero] + have hgrad : ∀ y, grad ψ y = grad φ (T y) := by + intro y + ext i k + simp only [grad, Matrix.of_apply, ψ, T, Pi.smul_apply, smul_eq_mul] + have e1 : (fun z => R⁻¹ * φ (x₀ + R • z) i) = + R⁻¹ • ((fun w => (fun u => φ u i) (x₀ + w)) <| R • ·) := rfl + have h2 := fderiv_comp_smul (𝕜 := ℝ) (f := fun w => (fun u => φ u i) (x₀ + w)) (x := y) R + rw [e1, fderiv_const_smul_field, Pi.smul_apply] + erw [h2] + have h3 := fderiv_comp_add_left (𝕜 := ℝ) (f := fun u => φ u i) (x := R • y) x₀ + erw [h3] + simp only [smul_apply, smul_eq_mul] + rw [← mul_assoc, inv_mul_cancel₀ hR.ne', one_mul] + have hvolQ : volume (unitCube m) < ⊤ := by rw [rd_volume_unitCube]; exact ENNReal.one_lt_top + have hq := h ψ _ hψ hψ0 (rd_integrableOn hf hbdd A hψ hvolQ) + rw [rd_volume_unitCube, ENNReal.toReal_one, one_mul] at hq + simp only [hgrad] at hq + -- change of variables `x = x₀ + R y` + set G : (Fin m → ℝ) → ℝ := fun x => f (A + grad φ x) + set QR : Set (Fin m → ℝ) := Set.pi univ fun _ => Ioo (-a) a + have hfin : Module.finrank ℝ (Fin m → ℝ) = m := by simp + have hcv : ∫ y in unitCube m, G (T y) = (R ^ m)⁻¹ * ∫ x in QR, G x := by + have h1 := Measure.setIntegral_comp_smul_of_pos volume (fun z => G (x₀ + z)) (unitCube m) hR + have h2 := (measurePreserving_add_left volume x₀).setIntegral_preimage_emb + (measurableEmbedding_addLeft x₀) G QR + have hset : R • unitCube m = (fun z => x₀ + z) ⁻¹' QR := by + ext z + rw [Set.mem_smul_set_iff_inv_smul_mem₀ hR.ne'] + simp only [unitCube, QR, Set.mem_pi, Set.mem_univ, true_implies, Set.mem_Ioo, + Set.mem_preimage, Pi.smul_apply, smul_eq_mul, Pi.add_apply, x₀] + refine forall_congr' fun i => ?_ + rw [← div_eq_inv_mul, div_pos_iff_of_pos_right hR, div_lt_one hR, hR_def] + constructor <;> rintro ⟨h1, h2⟩ <;> constructor <;> linarith + simp only [T] at h1 ⊢ + rw [h1, hset, h2, hfin, smul_eq_mul] + have hQRvol : volume QR = ENNReal.ofReal (R ^ m) := by + simp only [QR, Real.volume_pi_Ioo, Finset.prod_const, Finset.card_univ, Fintype.card_fin] + rw [← ENNReal.ofReal_pow (by linarith), hR_def] + congr 2 + ring + have hQRfin : volume QR < ⊤ := by rw [hQRvol]; exact ENNReal.ofReal_lt_top + have hΩQR : Ω ⊆ QR := fun x hx i _ => by + have := abs_le.1 (hent x hx i) + exact ⟨by linarith, by linarith⟩ + have hΩfin : volume Ω < ⊤ := (measure_mono hΩQR).trans_lt hQRfin + have hint : IntegrableOn G QR := rd_integrableOn hf hbdd A hφ hQRfin + have hsplit := integral_inter_add_sdiff hΩm hint + rw [Set.inter_eq_right.2 hΩQR] at hsplit + -- on `Q_R ∖ Ω` the gradient vanishes almost everywhere + have hout : ∫ x in QR \ Ω, G x = volume.real (QR \ Ω) * f A := by + rw [setIntegral_congr_ae (g := fun _ => f A) ((MeasurableSet.univ_pi fun _ => + measurableSet_Ioo).diff hΩm) ?_, setIntegral_const, smul_eq_mul] + filter_upwards [rd_ae_grad_eq_zero hφ] with x hx hxs + simp only [G, hx (h0 x hxs.2), add_zero] + have hvol : volume.real (QR \ Ω) = R ^ m - volume.real Ω := by + rw [Measure.real, measure_sdiff hΩQR hΩm.nullMeasurableSet hΩfin.ne, hQRvol, + ENNReal.toReal_sub_of_le ((measure_mono hΩQR).trans_eq hQRvol) ENNReal.ofReal_ne_top, + ENNReal.toReal_ofReal (by positivity), Measure.real] + rw [hcv, ← hsplit, hout, hvol] at hq + have hRm : 0 < R ^ m := by positivity + rw [← mul_le_mul_iff_of_pos_left hRm, ← mul_assoc, mul_inv_cancel₀ hRm.ne', one_mul] at hq + rw [← Measure.real] + nlinarith + + +/-- Quasiconvexity on `Ω₁` gives it on every measurable `Ω₂ ⊆ Ω₁`: a test map on `Ω₂` is one on +`Ω₁`, and its gradient vanishes almost everywhere on `Ω₁ ∖ Ω₂`. -/ +private lemma rd_quasiconvexAtOn_mono {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (hf : Measurable f) (hbdd : IsLocallyBounded f) {A : Matrix (Fin d) (Fin m) ℝ} + {Ω₁ Ω₂ : Set (Fin m → ℝ)} (hsub : Ω₂ ⊆ Ω₁) (h₁ : MeasurableSet Ω₁) (h₂ : MeasurableSet Ω₂) + (hfin : volume Ω₁ < ⊤) (h : QuasiconvexAtOn Ω₁ f A) : QuasiconvexAtOn Ω₂ f A := by + intro φ K hφ h0 _ + have hq := h φ K hφ (fun x hx => h0 x fun h => hx (hsub h)) (rd_integrableOn hf hbdd A hφ hfin) + have hint : IntegrableOn (fun x => f (A + grad φ x)) Ω₁ := rd_integrableOn hf hbdd A hφ hfin + have hsplit := integral_inter_add_sdiff h₂ hint + rw [Set.inter_eq_right.2 hsub] at hsplit + have hout : ∫ x in Ω₁ \ Ω₂, f (A + grad φ x) = volume.real (Ω₁ \ Ω₂) * f A := by + rw [setIntegral_congr_ae (g := fun _ => f A) (h₁.diff h₂) ?_, setIntegral_const, smul_eq_mul] + filter_upwards [rd_ae_grad_eq_zero hφ] with x hx hxs + simp only [hx (h0 x hxs.2), add_zero] + have hvol : volume.real (Ω₁ \ Ω₂) = volume.real Ω₁ - volume.real Ω₂ := by + rw [Measure.real, measure_sdiff hsub h₂.nullMeasurableSet + ((measure_mono hsub).trans_lt hfin).ne, + ENNReal.toReal_sub_of_le (measure_mono hsub) hfin.ne, Measure.real, Measure.real] + rw [← hsplit, hout, hvol] at hq + change volume.real Ω₁ * f A ≤ _ at hq + rw [← Measure.real] + linarith + +/-- Quasiconvexity on a nonempty open `Ω` gives it on the unit cube. `Ω` contains a cube +`Q' = x₀ + R (0, 1)^m`, on which `f` is quasiconvex at `A` (`rd_quasiconvexAtOn_mono`); a test map +on the unit cube, rescaled to `Q'`, gives the inequality. -/ +private lemma rd_unitCube_of_quasiconvexAtOn {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (hf : Measurable f) (hbdd : IsLocallyBounded f) {A : Matrix (Fin d) (Fin m) ℝ} + {Ω : Set (Fin m → ℝ)} (hΩ : IsOpen Ω) (hb : Bornology.IsBounded Ω) (hne : Ω.Nonempty) + (h : QuasiconvexAtOn Ω f A) : QuasiconvexAtOn (unitCube m) f A := by + obtain ⟨x₁, hx₁⟩ := hne + obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.1 hΩ x₁ hx₁ + set R : ℝ := ε + set x₀ : Fin m → ℝ := fun i => x₁ i - ε / 2 + set Q' : Set (Fin m → ℝ) := Set.pi univ fun i => Ioo (x₀ i) (x₀ i + R) + have hQ'Ω : Q' ⊆ Ω := by + intro x hx + apply hball + rw [Metric.mem_ball, dist_pi_lt_iff hε] + intro i + have := hx i (Set.mem_univ _) + simp only [x₀, R, Set.mem_Ioo] at this + rw [Real.dist_eq, abs_lt] + constructor <;> linarith + have hΩfin : volume Ω < ⊤ := hb.measure_lt_top + have hQ' : QuasiconvexAtOn Q' f A := rd_quasiconvexAtOn_mono hf hbdd hQ'Ω hΩ.measurableSet + (MeasurableSet.univ_pi fun _ => measurableSet_Ioo) hΩfin h + intro φ K hφ h0 _ + have hR : 0 < R := hε + set S : (Fin m → ℝ) → Fin m → ℝ := fun x => R⁻¹ • (x - x₀) + set ψ : (Fin m → ℝ) → Fin d → ℝ := fun x => R • φ (S x) + have hS : LipschitzWith ‖R⁻¹‖₊ S := LipschitzWith.of_dist_le_mul fun y z => by + simp only [S] + rw [dist_smul₀, dist_sub_right] + rfl + have hψ : LipschitzWith (‖R‖₊ * (K * ‖R⁻¹‖₊)) ψ := (lipschitzWith_smul R).comp (hφ.comp hS) + have hSQ : ∀ x, S x ∈ unitCube m → x ∈ Q' := by + intro x hx i _ + have := hx i (Set.mem_univ _) + simp only [S, Pi.smul_apply, Pi.sub_apply, smul_eq_mul, Set.mem_Ioo] at this + rw [← div_eq_inv_mul, div_pos_iff_of_pos_right hR, div_lt_one hR] at this + exact ⟨by linarith, by linarith⟩ + have hψ0 : ∀ x ∉ Q', ψ x = 0 := fun x hx => by + simp only [ψ, h0 _ fun h => hx (hSQ x h), smul_zero] + have hgrad : ∀ x, grad ψ x = grad φ (S x) := by + intro x + ext i k + simp only [grad, Matrix.of_apply, ψ, S, Pi.smul_apply, smul_eq_mul] + have e1 : (fun z => R * φ (R⁻¹ • (z - x₀)) i) = + R • ((fun w => (fun u => φ u i) (R⁻¹ • w)) ∘ fun z => z - x₀) := rfl + rw [e1, fderiv_const_smul_field, Pi.smul_apply] + have h2 : fderiv ℝ ((fun w => (fun u => φ u i) (R⁻¹ • w)) ∘ fun z => z - x₀) x = + fderiv ℝ (fun w => (fun u => φ u i) (R⁻¹ • w)) (x - x₀) := by + exact fderiv_comp_sub (𝕜 := ℝ) (f := fun w => (fun u => φ u i) (R⁻¹ • w)) (x := x) x₀ + rw [h2] + have h3 := fderiv_comp_smul (𝕜 := ℝ) (f := fun u => φ u i) (x := x - x₀) R⁻¹ + erw [h3] + simp only [smul_apply, smul_eq_mul] + rw [← mul_assoc, mul_inv_cancel₀ hR.ne', one_mul] + have hQ'fin : volume Q' < ⊤ := (measure_mono hQ'Ω).trans_lt hΩfin + have hq := hQ' ψ _ hψ hψ0 (rd_integrableOn hf hbdd A hψ hQ'fin) + simp only [hgrad] at hq + -- change of variables `y = R⁻¹ (x − x₀)` + set G : (Fin m → ℝ) → ℝ := fun y => f (A + grad φ y) + have hfin : Module.finrank ℝ (Fin m → ℝ) = m := by simp + have hcv : ∫ x in Q', G (S x) = R ^ m * ∫ y in unitCube m, G y := by + have h1 := (measurePreserving_sub_right volume x₀).setIntegral_preimage_emb + (measurableEmbedding_subRight x₀) (fun z => G (R⁻¹ • z)) (R • unitCube m) + have h4 := Measure.setIntegral_comp_smul_of_pos volume G (R • unitCube m) (inv_pos.2 hR) + rw [inv_smul_smul₀ hR.ne'] at h4 + have hset : (fun z => z - x₀) ⁻¹' (R • unitCube m) = Q' := by + ext z + rw [Set.mem_preimage, Set.mem_smul_set_iff_inv_smul_mem₀ hR.ne'] + simp only [unitCube, Q', Set.mem_pi, Set.mem_univ, true_implies, Set.mem_Ioo, + Pi.smul_apply, Pi.sub_apply, smul_eq_mul] + refine forall_congr' fun i => ?_ + rw [← div_eq_inv_mul, div_pos_iff_of_pos_right hR, div_lt_one hR] + constructor <;> rintro ⟨h1, h2⟩ <;> constructor <;> linarith + simp only [S] + rw [← hset, h1, h4, hfin, smul_eq_mul, inv_pow, inv_inv] + have hQ'vol : volume.real Q' = R ^ m := by + simp only [Q', Measure.real, Real.volume_pi_Ioo, Finset.prod_const, Finset.card_univ, + Fintype.card_fin, add_sub_cancel_left] + rw [ENNReal.toReal_pow, ENNReal.toReal_ofReal hR.le] + rw [hcv, ← Measure.real, hQ'vol] at hq + rw [rd_volume_unitCube, ENNReal.toReal_one, one_mul] + have hRm : 0 < R ^ m := by positivity + exact le_of_mul_le_mul_left hq hRm + +/-- **Quasiconvexity does not depend on the domain**: for a Borel, locally bounded `f`, +quasiconvexity at `A` on the unit cube is equivalent to quasiconvexity at `A` on any nonempty +bounded open `Ω`. (For `Ω = ∅` the condition holds for every `f`: the only test map is +`0`, and both sides vanish.) + +Proof: the argument of [D08], Proposition 5.11, and [R2], Lemma 5.2 (i), with the unit cube as the +intermediate domain. Quasiconvexity on the unit cube is quasiconvexity on every cube +`x₀ + R (0, 1)^m`, by the change of variables `x = x₀ + R y`, and quasiconvexity on a set passes to +its measurable subsets, because a test map on the subset vanishes on the rest, so its gradient +vanishes almost everywhere there (`rd_quasiconvexAtOn_mono`, from `rd_ae_fderiv_eq_zero`: at a +density point of the zero set of a Lipschitz map, its derivative is `0`; no condition on the +boundary is needed). "⇒": `Ω` lies in a large cube (`quasiconvexAtOn_of_unitCube`); "⇐": `Ω` +contains a small cube (`rd_unitCube_of_quasiconvexAtOn`). -/ +theorem quasiconvexAtOn_iff {f : Matrix (Fin d) (Fin m) ℝ → ℝ} (hf : Measurable f) + (hbdd : IsLocallyBounded f) (A : Matrix (Fin d) (Fin m) ℝ) {Ω : Set (Fin m → ℝ)} + (hΩ : IsOpen Ω) (hb : Bornology.IsBounded Ω) (hne : Ω.Nonempty) : + QuasiconvexAtOn (unitCube m) f A ↔ QuasiconvexAtOn Ω f A := + ⟨quasiconvexAtOn_of_unitCube hf hbdd hb hΩ.measurableSet, + rd_unitCube_of_quasiconvexAtOn hf hbdd hΩ hb hne⟩ + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Hessian.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Hessian.lean new file mode 100644 index 0000000000..8cf446d92d --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Hessian.lean @@ -0,0 +1,529 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Periodic +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Rescale +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Cutoff +public import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension +public import Mathlib.Analysis.Calculus.ContDiff.Defs + +/-! +# Hessians: periodic and compactly supported test functions + +For a Borel, locally bounded `f : ℝ^{m×m} → ℝ` and a matrix `A`, the inequality +`∫ [f (A + D²u) − f (A)] ≥ 0` holds for every `ℤ^m`-periodic `u ∈ C^∞ (ℝ^m)`, integrated over the +unit cube `Q = (0, 1)^m`, if and only if it holds for every `u ∈ C_c^∞ (ℝ^m)`, integrated over +`ℝ^m` (`CalculusOfVariations.hessian_periodic_iff_hasCompactSupport`). This is the second-order +form of B. Dacorogna, *Direct Methods in the Calculus of Variations*, 2nd ed., Springer, 2008, +Proposition 5.13, with the argument of its proof (as in `CalculusOfVariations.Quasiconvex.Periodic` +for first-order test maps): + +* "⇐" (`CalculusOfVariations.integral_hessian_nonneg_of_periodic`): a `u ∈ C_c^∞` with support in + `closedBall 0 R` is rescaled and translated, `v (x) = λ² u ((x − c) / λ)` with `λ = 1/(4R)` and + `c` the centre of `Q`, so that `D²v (x) = D²u ((x − c) / λ)` and `v` vanishes off `[1/4, 3/4]^m`. + Its periodic extension `x ↦ v (fract x)` agrees near every point with an integer translate of + `v`, so it is smooth and periodic, with the Hessian of `v` on `Q`. The change of variables + `x = c + λ y` gives `∫_Q [f (A + D²v) − f (A)] = λ^m ∫_{ℝ^m} [f (A + D²u) − f (A)]`, since the + integrand vanishes off `Q`. This direction uses neither the measurability nor the local + boundedness of `f`. +* "⇒" (`CalculusOfVariations.setIntegral_unitCube_hessian_nonneg_of_hasCompactSupport`): for a + periodic `u`, the functions `ψ_ν (x) = ν⁻² u (ν x)`, `ν ∈ ℕ`, have `D²ψ_ν (x) = D²u (ν x)`, so the + same integral over `Q` by periodicity, while `|ψ_ν| ≤ ν⁻² sup |u|` and `|Dψ_ν| ≤ ν⁻¹ sup |Du|`. + The cut-off `η_j` is a smooth bump function for the sup norm (Mathlib's `ContDiffBump`, whose + balls are cubes), equal to `1` on `(1/j, 1 − 1/j)^m` and with compact support in `Q`; its first + and second derivatives are bounded by some `C_j`. For `ν ≥ C_j`, the Hessian + `D² (η_j ψ_ν) = η_j D²ψ_ν + Dη_j ⊗ Dψ_ν + Dψ_ν ⊗ Dη_j + ψ_ν D²η_j` of the test function + `η_j ψ_ν ∈ C_c^∞` is bounded independently of `j`, and equal to `D²ψ_ν` on `(1/j, 1 − 1/j)^m`. + As `f` is locally bounded, the two integrals over `Q` differ by at most a constant times the + measure `1 − (1 − 2/j)^m` of the boundary layer; let `j → ∞`. As in + `CalculusOfVariations.Quasiconvex.Cutoff`, the width `1/j` of the layer and the frequency `ν` are + chosen separately, so that no bound of the derivatives of `η_j` in terms of `j` is needed. + +`CalculusOfVariations.hessian u x` is the matrix `(∂_j ∂_i u (x))`, the derivative matrix +(`CalculusOfVariations.grad`) of the gradient `y ↦ (∂_i u (y))_i`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Metric Set Filter Topology +open scoped ContDiff + +namespace CalculusOfVariations + +variable {m : ℕ} + +/-- The Hessian matrix of `u : ℝ^m → ℝ` at `x`: the entries `∂_j ∂_i u (x)`, that is, the derivative +matrix of the gradient `y ↦ (∂_i u (y))_i`. -/ +def hessian (u : (Fin m → ℝ) → ℝ) (x : Fin m → ℝ) : Matrix (Fin m) (Fin m) ℝ := + grad (fun y i => fderiv ℝ u y (Pi.single i 1)) x + +/-! ### Calculus of Hessians -/ + +/-- The entries of the Hessian: `(D²u (x))_{ik} = ∂_k ∂_i u (x)`. -/ +private lemma hess_apply (u : (Fin m → ℝ) → ℝ) (x : Fin m → ℝ) (i k : Fin m) : + hessian u x i k = fderiv ℝ (fun y => fderiv ℝ u y (Pi.single i 1)) x (Pi.single k 1) := rfl + +/-- The directional derivatives of a smooth function are smooth. -/ +private lemma hess_contDiff_fderiv {g : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) + (v : Fin m → ℝ) : ContDiff ℝ ∞ fun y => fderiv ℝ g y v := + (contDiff_infty_iff_fderiv.1 hg).2.clm_apply contDiff_const + +/-- A smooth function is differentiable. -/ +private lemma hess_differentiable {g : (Fin m → ℝ) → ℝ} (hg : ContDiff ℝ ∞ g) : + Differentiable ℝ g := + hg.differentiable (by simp) + +/-- `D (y ↦ c g (a y)) (x) = c a Dg (a x)`. -/ +private lemma hess_fderiv_comp_smul (g : (Fin m → ℝ) → ℝ) (c a : ℝ) (x : Fin m → ℝ) : + fderiv ℝ (fun y => c * g (a • y)) x = (c * a) • fderiv ℝ g (a • x) := by + have e : (fun y => c * g (a • y)) = c • fun y => g (a • y) := rfl + rw [e, fderiv_const_smul_field, Pi.smul_apply, fderiv_comp_smul (f := g), smul_smul] + +/-- `D² (y ↦ c g (a y)) (x) = c a² D²g (a x)`. -/ +private lemma hess_hessian_comp_smul (g : (Fin m → ℝ) → ℝ) (c a : ℝ) (x : Fin m → ℝ) : + hessian (fun y => c * g (a • y)) x = (c * a ^ 2) • hessian g (a • x) := by + ext i k + have e : (fun y => fderiv ℝ (fun y => c * g (a • y)) y (Pi.single i 1)) = + fun y => (c * a) * fderiv ℝ g (a • y) (Pi.single i 1) := by + funext y + rw [hess_fderiv_comp_smul] + rfl + rw [Matrix.smul_apply, hess_apply, hess_apply, e] + refine (congrArg (fun L => L (Pi.single k 1)) + (hess_fderiv_comp_smul (fun z => fderiv ℝ g z (Pi.single i 1)) (c * a) a x)).trans ?_ + simp only [smul_apply, smul_eq_mul] + ring + +/-- `D² (y ↦ g (y − b)) (x) = D²g (x − b)`. -/ +private lemma hess_hessian_comp_sub (g : (Fin m → ℝ) → ℝ) (b x : Fin m → ℝ) : + hessian (fun y => g (y - b)) x = hessian g (x - b) := by + ext i k + have e : (fun y => fderiv ℝ (fun y => g (y - b)) y (Pi.single i 1)) = + fun y => fderiv ℝ g (y - b) (Pi.single i 1) := by + funext y + rw [fderiv_comp_sub] + rw [hess_apply, hess_apply, e] + exact congrArg (fun L => L (Pi.single k 1)) + (fderiv_comp_sub (𝕜 := ℝ) (f := fun z => fderiv ℝ g z (Pi.single i 1)) b) + +/-- The Hessian at `x` only depends on the function near `x`. -/ +private lemma hess_hessian_congr {u v : (Fin m → ℝ) → ℝ} {x : Fin m → ℝ} (h : u =ᶠ[𝓝 x] v) : + hessian u x = hessian v x := by + unfold hessian + refine cv_grad_congr ?_ + filter_upwards [h.fderiv (𝕜 := ℝ)] with y hy + rw [hy] + +/-- The Hessian vanishes off the closed support. -/ +private lemma hess_hessian_eq_zero {u : (Fin m → ℝ) → ℝ} {x : Fin m → ℝ} (hx : x ∉ tsupport u) : + hessian u x = 0 := by + rw [hess_hessian_congr (notMem_tsupport_iff_eventuallyEq.1 hx)] + ext i k + simp [hess_apply] + +/-- The Hessian of a product: `D² (η ψ) = η D²ψ + ψ D²η + Dη ⊗ Dψ + Dψ ⊗ Dη`. -/ +private lemma hess_hessian_mul {η ψ : (Fin m → ℝ) → ℝ} (hη : ContDiff ℝ ∞ η) + (hψ : ContDiff ℝ ∞ ψ) (x : Fin m → ℝ) (i k : Fin m) : + hessian (fun y => η y * ψ y) x i k = η x * hessian ψ x i k + ψ x * hessian η x i k + + fderiv ℝ η x (Pi.single k 1) * fderiv ℝ ψ x (Pi.single i 1) + + fderiv ℝ η x (Pi.single i 1) * fderiv ℝ ψ x (Pi.single k 1) := by + have dη := hess_differentiable hη + have dψ := hess_differentiable hψ + have dηi := hess_differentiable (hess_contDiff_fderiv hη (Pi.single i 1)) + have dψi := hess_differentiable (hess_contDiff_fderiv hψ (Pi.single i 1)) + have e : (fun y => fderiv ℝ (fun y => η y * ψ y) y (Pi.single i 1)) = fun y => + η y * fderiv ℝ ψ y (Pi.single i 1) + ψ y * fderiv ℝ η y (Pi.single i 1) := by + funext y + rw [fderiv_fun_mul (dη y) (dψ y)] + simp + rw [hess_apply, e, fderiv_fun_add ((dη x).fun_mul (dψi x)) ((dψ x).fun_mul (dηi x)), + fderiv_fun_mul (dη x) (dψi x), fderiv_fun_mul (dψ x) (dηi x), hess_apply, hess_apply] + simp only [add_apply, smul_apply, smul_eq_mul] + ring + +/-- `x ↦ A + D²u (x)` is measurable, for every `u`. -/ +private lemma hess_measurable_add (A : Matrix (Fin m) (Fin m) ℝ) (u : (Fin m → ℝ) → ℝ) : + Measurable fun x => A + hessian u x := + rd_measurable_add_grad A _ + +/-! ### Bounds -/ + +/-- The derivatives of a `ℤ^m`-periodic function are periodic. -/ +private lemma hess_fderiv_periodic {g : (Fin m → ℝ) → ℝ} + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), g (x + fun i => (z i : ℝ)) = g x) + (v x : Fin m → ℝ) (z : Fin m → ℤ) : + fderiv ℝ g (x + fun i => (z i : ℝ)) v = fderiv ℝ g x v := by + rw [← fderiv_comp_add_right] + congr 2 + funext y + exact hper y z + +/-- The Hessian of a `ℤ^m`-periodic function is periodic. -/ +private lemma hess_hessian_periodic {u : (Fin m → ℝ) → ℝ} + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), u (x + fun i => (z i : ℝ)) = u x) + (x : Fin m → ℝ) (z : Fin m → ℤ) : hessian u (x + fun i => (z i : ℝ)) = hessian u x := by + ext i k + rw [hess_apply, hess_apply, + hess_fderiv_periodic (fun y z => hess_fderiv_periodic hper (Pi.single i 1) y z)] + +/-- A continuous `ℤ^m`-periodic function is bounded: it takes all its values on `[0, 1]^m`. -/ +private lemma hess_bdd_of_periodic {g : (Fin m → ℝ) → ℝ} (hg : Continuous g) + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), g (x + fun i => (z i : ℝ)) = g x) : + ∃ C, ∀ x, |g x| ≤ C := by + obtain ⟨C, hC⟩ := (isCompact_univ_pi fun _ => + isCompact_Icc (a := (0:ℝ)) (b := 1)).exists_bound_of_continuousOn hg.continuousOn + refine ⟨C, fun x => ?_⟩ + have hx : (x + fun i => ((-⌊x i⌋ : ℤ) : ℝ)) ∈ Set.pi Set.univ fun _ => Set.Icc (0:ℝ) 1 := by + intro i _ + simp only [Pi.add_apply, Int.cast_neg] + constructor + · linarith [Int.floor_le (x i)] + · linarith [Int.lt_floor_add_one (x i)] + rw [← hper x (fun i => -⌊x i⌋), ← Real.norm_eq_abs] + exact hC _ hx + +/-- Uniform bounds for a smooth `u` and its first and second derivatives, when the smooth functions +of a class `P` closed under directional derivatives are bounded. -/ +private lemma hess_bounds {P : ((Fin m → ℝ) → ℝ) → Prop} + (hb : ∀ g, ContDiff ℝ ∞ g → P g → ∃ C, ∀ x, |g x| ≤ C) + (hd : ∀ g v, P g → P fun y => fderiv ℝ g y v) {u : (Fin m → ℝ) → ℝ} + (hu : ContDiff ℝ ∞ u) (hP : P u) : + ∃ B, 0 ≤ B ∧ (∀ x, |u x| ≤ B) ∧ (∀ i x, |fderiv ℝ u x (Pi.single i 1)| ≤ B) ∧ + ∀ i k x, |hessian u x i k| ≤ B := by + obtain ⟨B0, h0⟩ := hb u hu hP + choose B1 h1 using fun i : Fin m => hb _ (hess_contDiff_fderiv hu (Pi.single i 1)) (hd u _ hP) + choose B2 h2 using fun p : Fin m × Fin m => + hb _ (hess_contDiff_fderiv (hess_contDiff_fderiv hu (Pi.single p.1 1)) (Pi.single p.2 1)) + (hd _ _ (hd u _ hP)) + obtain ⟨D1, hD1⟩ := Finite.bddAbove_range B1 + obtain ⟨D2, hD2⟩ := Finite.bddAbove_range B2 + refine ⟨max (max B0 0) (max D1 D2), le_max_of_le_left (le_max_right _ _), + fun x => (h0 x).trans (le_max_of_le_left (le_max_left _ _)), fun i x => ?_, fun i k x => ?_⟩ + · exact (h1 i x).trans ((hD1 ⟨i, rfl⟩).trans (le_max_of_le_right (le_max_left _ _))) + · exact (h2 (i, k) x).trans ((hD2 ⟨(i, k), rfl⟩).trans (le_max_of_le_right (le_max_right _ _))) + +/-- `|a − b| ≤ 2 M` if `|a| ≤ M` and `|b| ≤ M`. -/ +private lemma hess_abs_sub_le {a b M : ℝ} (ha : |a| ≤ M) (hb : |b| ≤ M) : |a - b| ≤ 2 * M := by + rw [abs_le] at * + constructor <;> linarith + +/-! ### Periodic extension and cut-offs -/ + +/-- The periodic extension `x ↦ v (fract x)` of a function `v` vanishing off `[δ, 1 − δ]^m` agrees +near every `x` with the translate `v (· − ⌊x⌋)`. -/ +private lemma hess_fract_eventuallyEq {v : (Fin m → ℝ) → ℝ} {δ : ℝ} (hδ : 0 < δ) + (hv : ∀ y : Fin m → ℝ, (∃ i, y i < δ ∨ 1 - δ < y i) → v y = 0) (x : Fin m → ℝ) : + (fun y => v fun i => Int.fract (y i)) =ᶠ[𝓝 x] fun y => v (y - fun i => (⌊x i⌋ : ℝ)) := by + filter_upwards [Metric.ball_mem_nhds x hδ] with y hy + by_cases hfl : ∀ i, ⌊y i⌋ = ⌊x i⌋ + · congr 1 + funext i + rw [Pi.sub_apply, ← hfl i, Int.self_sub_floor] + · push Not at hfl + obtain ⟨i, hi⟩ := hfl + have hyx : |y i - x i| < δ := by + rw [← Real.dist_eq]; exact (dist_le_pi_dist y x i).trans_lt hy + have a1 := Int.floor_le (y i) + have a2 := Int.lt_floor_add_one (y i) + have b1 := Int.floor_le (x i) + have b2 := Int.lt_floor_add_one (x i) + obtain ⟨c1, c2⟩ := abs_lt.1 hyx + rcases lt_or_gt_of_ne hi with h | h + · have h' : (⌊y i⌋ : ℝ) + 1 ≤ ⌊x i⌋ := by + have : ⌊y i⌋ + 1 ≤ ⌊x i⌋ := h + exact_mod_cast this + have f1 : 1 - δ < Int.fract (y i) := by rw [← Int.self_sub_floor]; linarith + have f2 : (y - fun i => (⌊x i⌋ : ℝ)) i < δ := by rw [Pi.sub_apply]; linarith + rw [hv (fun i => Int.fract (y i)) ⟨i, Or.inr f1⟩, + hv (y - fun i => (⌊x i⌋ : ℝ)) ⟨i, Or.inl f2⟩] + · have h' : (⌊x i⌋ : ℝ) + 1 ≤ ⌊y i⌋ := by + have : ⌊x i⌋ + 1 ≤ ⌊y i⌋ := h + exact_mod_cast this + have f1 : Int.fract (y i) < δ := by rw [← Int.self_sub_floor]; linarith + have f2 : 1 - δ < (y - fun i => (⌊x i⌋ : ℝ)) i := by rw [Pi.sub_apply]; linarith + rw [hv (fun i => Int.fract (y i)) ⟨i, Or.inl f1⟩, + hv (y - fun i => (⌊x i⌋ : ℝ)) ⟨i, Or.inr f2⟩] + +/-- A smooth cut-off: `1` on the inner cube `(δ, 1 − δ)^m`, with values in `[0, 1]`, and with +compact support in the open unit cube (a bump function for the sup norm, centred at the centre of +the cube). -/ +private lemma hess_exists_cutoff {δ : ℝ} (hδ : 0 < δ) (hδ2 : 2 * δ < 1) : + ∃ η : (Fin m → ℝ) → ℝ, ContDiff ℝ ∞ η ∧ HasCompactSupport η ∧ tsupport η ⊆ unitCube m ∧ + (∀ x, 0 ≤ η x ∧ η x ≤ 1) ∧ ∀ x ∈ innerCube δ, η x = 1 := by + let b : ContDiffBump (fun _ : Fin m => (1 / 2 : ℝ)) := + ⟨1 / 2 - δ, 1 / 2 - δ / 2, by linarith, by linarith⟩ + have hIn : b.rIn = 1 / 2 - δ := rfl + have hOut : b.rOut = 1 / 2 - δ / 2 := rfl + refine ⟨b, b.contDiff, b.hasCompactSupport, ?_, fun x => ⟨b.nonneg, b.le_one⟩, + fun x hx => b.one_of_mem_closedBall ?_⟩ + · rw [b.tsupport_eq, hOut] + intro x hx i _ + have h := (dist_le_pi_dist x _ i).trans (mem_closedBall.1 hx) + rw [Real.dist_eq] at h + have h' := abs_le.1 h + constructor <;> linarith [h'.1, h'.2] + · rw [hIn, mem_closedBall, dist_pi_le_iff (by linarith)] + intro i + have := hx i (mem_univ i) + rw [Real.dist_eq, abs_le] + constructor <;> linarith [this.1, this.2] + +/-! ### The two implications -/ + +/-- **Compactly supported test functions give periodic ones** (Dacorogna, Prop. 5.13, "⇒", for +Hessians): if `∫_{ℝ^m} [f (A + D²v) − f (A)] ≥ 0` for every `v ∈ C_c^∞ (ℝ^m)`, then +`∫_Q [f (A + D²u) − f (A)] ≥ 0` for every `ℤ^m`-periodic `u ∈ C^∞ (ℝ^m)`. -/ +theorem setIntegral_unitCube_hessian_nonneg_of_hasCompactSupport + {f : Matrix (Fin m) (Fin m) ℝ → ℝ} (hf : Measurable f) (hbdd : IsLocallyBounded f) + (A : Matrix (Fin m) (Fin m) ℝ) + (h : ∀ v : (Fin m → ℝ) → ℝ, ContDiff ℝ ∞ v → HasCompactSupport v → + 0 ≤ ∫ x, (f (A + hessian v x) - f A)) + {u : (Fin m → ℝ) → ℝ} (hu : ContDiff ℝ ∞ u) + (hper : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), u (x + fun i => (z i : ℝ)) = u x) : + 0 ≤ ∫ x in unitCube m, (f (A + hessian u x) - f A) := by + have hQm : MeasurableSet (unitCube m) := MeasurableSet.univ_pi fun _ => measurableSet_Ioo + have hQfin : volume (unitCube m) < ⊤ := by rw [rd_volume_unitCube]; exact ENNReal.one_lt_top + -- bounds of `u` and of its first and second derivatives + obtain ⟨B, hB0, hBu, hBd, hBh⟩ := hess_bounds + (P := fun g => ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), g (x + fun i => (z i : ℝ)) = g x) + (fun g hg hp => hess_bdd_of_periodic hg.continuous hp) + (fun g v hp => hess_fderiv_periodic hp v) hu hper + -- a bound of `f` near `A` + obtain ⟨M, hM0, hM⟩ := rd_bound_near hbdd A (4 * B) + have hfA : |f A| ≤ M := by + simpa using hM 0 fun _ _ => by + simp only [Matrix.zero_apply, abs_zero, Nat.ofNat_pos, mul_nonneg_iff_of_pos_left] + positivity + have hGm : Measurable fun x => f (A + hessian u x) - f A := + (hf.comp (hess_measurable_add A u)).sub measurable_const + have hGb : ∀ x, |f (A + hessian u x) - f A| ≤ 2 * M := fun x => + hess_abs_sub_le (hM _ fun i k => (hBh i k x).trans (by linarith)) hfA + have hGp : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), + f (A + hessian u (x + fun i => (z i : ℝ))) - f A = f (A + hessian u x) - f A := + fun x z => by rw [hess_hessian_periodic hper] + -- the inequality up to the measure of a boundary layer of width `1/j` + have key : ∀ j : ℕ, 3 ≤ j → -(2 * M * (1 - (1 - 2 * (1 / (j : ℝ))) ^ m)) ≤ + ∫ x in unitCube m, (f (A + hessian u x) - f A) := by + intro j hj + have hj' : (3 : ℝ) ≤ j := by exact_mod_cast hj + set δ : ℝ := 1 / j with hδdef + have hδ : 0 < δ := by positivity + have hδ2 : 2 * δ < 1 := by + rw [hδdef, mul_one_div, div_lt_one (by linarith)]; linarith + -- the cut-off `η` and the bounds of its derivatives + obtain ⟨η, hηs, hηc, hηQ, hη01, hη1⟩ := hess_exists_cutoff (m := m) hδ hδ2 + obtain ⟨C, hC0, -, hCd, hCh⟩ := hess_bounds (P := HasCompactSupport) + (fun g hg hc => by + obtain ⟨C, hC⟩ := hg.continuous.bounded_above_of_compact_support hc + exact ⟨C, fun x => by rw [← Real.norm_eq_abs]; exact hC x⟩) + (fun g v hc => hc.fderiv_apply (𝕜 := ℝ) v) hηs hηc + -- the frequency `ν ≥ C` + set ν : ℕ := ⌈C⌉₊ + 1 with hνdef + have hν : 0 < ν := Nat.succ_pos _ + have hν1 : (1 : ℝ) ≤ ν := by exact_mod_cast hν + have hνC : C ≤ ν := by rw [hνdef]; push_cast; linarith [Nat.le_ceil C] + set a : ℝ := (ν : ℝ)⁻¹ with hadef + have ha0 : 0 < a := by positivity + have ha1 : a ≤ 1 := inv_le_one_of_one_le₀ hν1 + have haC : a * C ≤ 1 := by + rw [hadef, inv_mul_le_iff₀ (by positivity)]; linarith + -- `ψ (x) = ν⁻² u (ν x)` + set ψ : (Fin m → ℝ) → ℝ := fun y => ((ν : ℝ) ^ 2)⁻¹ * u ((ν : ℝ) • y) with hψdef + have hψs : ContDiff ℝ ∞ ψ := contDiff_const.mul (hu.comp (contDiff_id.const_smul _)) + have hψ : ∀ x, |ψ x| ≤ a ^ 2 * B := fun x => by + rw [hψdef, abs_mul, abs_of_pos (by positivity), hadef, inv_pow] + exact mul_le_mul_of_nonneg_left (hBu _) (by positivity) + have hψd : ∀ x i, |fderiv ℝ ψ x (Pi.single i 1)| ≤ a * B := fun x i => by + rw [hψdef, hess_fderiv_comp_smul, smul_apply, smul_eq_mul, abs_mul, + abs_of_pos (by positivity)] + have e : ((ν : ℝ) ^ 2)⁻¹ * ν = a := by rw [hadef]; field_simp + rw [e] + exact mul_le_mul_of_nonneg_left (hBd _ _) ha0.le + have hψh : ∀ x, hessian ψ x = hessian u ((ν : ℝ) • x) := fun x => by + rw [hψdef, hess_hessian_comp_smul, inv_mul_cancel₀ (by positivity), one_smul] + -- the test function `w = η ψ` + set w : (Fin m → ℝ) → ℝ := fun y => η y * ψ y with hwdef + have hws : ContDiff ℝ ∞ w := hηs.mul hψs + have hwc : HasCompactSupport w := hηc.mul_right + have hwb : ∀ x i k, |hessian w x i k| ≤ 4 * B := fun x i k => by + rw [hwdef, hess_hessian_mul hηs hψs, hψh] + have t1 : |η x * hessian u ((ν : ℝ) • x) i k| ≤ B := by + rw [abs_mul, abs_of_nonneg (hη01 x).1] + exact (mul_le_of_le_one_left (abs_nonneg _) (hη01 x).2).trans (hBh i k _) + have t2 : |ψ x * hessian η x i k| ≤ B := by + rw [abs_mul] + calc |ψ x| * |hessian η x i k| ≤ (a ^ 2 * B) * C := + mul_le_mul (hψ x) (hCh i k x) (abs_nonneg _) (by positivity) + _ = (a * C) * a * B := by ring + _ ≤ 1 * 1 * B := by gcongr + _ = B := by ring + have t3 : ∀ p q, |fderiv ℝ η x (Pi.single p 1) * fderiv ℝ ψ x (Pi.single q 1)| ≤ B := + fun p q => by + rw [abs_mul] + calc |fderiv ℝ η x (Pi.single p 1)| * |fderiv ℝ ψ x (Pi.single q 1)| ≤ C * (a * B) := + mul_le_mul (hCd p x) (hψd x q) (abs_nonneg _) hC0 + _ = (a * C) * B := by ring + _ ≤ 1 * B := by gcongr + _ = B := one_mul B + have s1 := abs_add_le (η x * hessian u ((ν : ℝ) • x) i k + ψ x * hessian η x i k + + fderiv ℝ η x (Pi.single k 1) * fderiv ℝ ψ x (Pi.single i 1)) + (fderiv ℝ η x (Pi.single i 1) * fderiv ℝ ψ x (Pi.single k 1)) + have s2 := abs_add_le (η x * hessian u ((ν : ℝ) • x) i k + ψ x * hessian η x i k) + (fderiv ℝ η x (Pi.single k 1) * fderiv ℝ ψ x (Pi.single i 1)) + have s3 := abs_add_le (η x * hessian u ((ν : ℝ) • x) i k) (ψ x * hessian η x i k) + linarith [t3 k i, t3 i k] + have hwQ : ∀ x ∉ unitCube m, hessian w x = 0 := fun x hx => + hess_hessian_eq_zero fun h => hx (hηQ (tsupport_mul_subset_left h)) + have hwi : ∀ x ∈ innerCube δ, hessian w x = hessian ψ x := fun x hx => + hess_hessian_congr (by + filter_upwards [(rd_inner_isOpen δ).mem_nhds hx] with y hy + simp only [hwdef, hη1 y hy, one_mul]) + -- the hypothesis, as an integral over `Q` + have h0 := h w hws hwc + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero (s := unitCube m) + fun x hx => by rw [hwQ x hx, add_zero, sub_self]] at h0 + -- periodicity: `∫_Q f (A + D²ψ) = ∫_Q f (A + D²u)` + have hperQ : ∫ x in unitCube m, (f (A + hessian ψ x) - f A) = + ∫ x in unitCube m, (f (A + hessian u x) - f A) := by + simp_rw [hψh] + exact rd_setIntegral_comp_nsmul (G := fun x => f (A + hessian u x) - f A) hGm hGb hGp hν + -- the two integrands agree on the inner cube + have hb1 : ∀ x, |f (A + hessian w x)| ≤ M := fun x => hM _ (hwb x) + have hb2 : ∀ x, |f (A + hessian ψ x)| ≤ M := fun x => by + rw [hψh]; exact hM _ fun i k => (hBh i k _).trans (by linarith) + have hint : ∀ φ : (Fin m → ℝ) → ℝ, (∀ x, |f (A + hessian φ x)| ≤ M) → + IntegrableOn (fun x => f (A + hessian φ x) - f A) (unitCube m) := fun φ hφ => + IntegrableOn.of_bound hQfin + ((hf.comp (hess_measurable_add A φ)).sub measurable_const).aestronglyMeasurable (2 * M) + (Eventually.of_forall fun x => by rw [Real.norm_eq_abs]; exact hess_abs_sub_le (hφ x) hfA) + have hdiff : ∫ x in unitCube m, ((f (A + hessian w x) - f A) - (f (A + hessian ψ x) - f A)) = + ∫ x in unitCube m \ innerCube δ, + ((f (A + hessian w x) - f A) - (f (A + hessian ψ x) - f A)) := by + refine setIntegral_eq_of_subset_of_forall_sdiff_eq_zero hQm sdiff_subset fun x hx => ?_ + have hx' : x ∈ innerCube δ := by_contra fun h => hx.2 ⟨hx.1, h⟩ + rw [hwi x hx', sub_self] + have hbd := norm_setIntegral_le_of_norm_le_const (μ := volume) + (s := unitCube m \ innerCube (m := m) δ) ((measure_mono sdiff_subset).trans_lt hQfin) + (f := fun x => (f (A + hessian w x) - f A) - (f (A + hessian ψ x) - f A)) (C := 2 * M) + fun x _ => by + rw [Real.norm_eq_abs, sub_sub_sub_cancel_right]; exact hess_abs_sub_le (hb1 x) (hb2 x) + rw [← hdiff, integral_sub (hint w hb1) (hint ψ hb2), hperQ, Real.norm_eq_abs, + rd_volume_real_layer hδ.le hδ2.le] at hbd + have hle : (∫ x in unitCube m, (f (A + hessian w x) - f A)) - + ∫ x in unitCube m, (f (A + hessian u x) - f A) ≤ 2 * M * (1 - (1 - 2 * δ) ^ m) := + (abs_le.1 hbd).2 + linarith + -- the limit `j → ∞` + have hlim : Tendsto (fun j : ℕ => -(2 * M * (1 - (1 - 2 * (1 / (j : ℝ))) ^ m))) atTop + (𝓝 (-(2 * M * (1 - (1 - 2 * 0) ^ m)))) := + (tendsto_const_nhds.mul (tendsto_const_nhds.sub + ((tendsto_const_nhds.sub (tendsto_const_nhds.mul + tendsto_one_div_atTop_nhds_zero_nat)).pow m))).neg + simp only [mul_zero, sub_zero, one_pow, sub_self, neg_zero] at hlim + exact le_of_tendsto hlim ((eventually_ge_atTop 3).mono key) + +/-- **Periodic test functions give compactly supported ones** (Dacorogna, Prop. 5.13, "⇐", for +Hessians): if `∫_Q [f (A + D²v) − f (A)] ≥ 0` for every `ℤ^m`-periodic `v ∈ C^∞ (ℝ^m)`, then +`∫_{ℝ^m} [f (A + D²u) − f (A)] ≥ 0` for every `u ∈ C_c^∞ (ℝ^m)`. -/ +theorem integral_hessian_nonneg_of_periodic {f : Matrix (Fin m) (Fin m) ℝ → ℝ} + (A : Matrix (Fin m) (Fin m) ℝ) + (h : ∀ v : (Fin m → ℝ) → ℝ, ContDiff ℝ ∞ v → + (∀ (x : Fin m → ℝ) (z : Fin m → ℤ), v (x + fun i => (z i : ℝ)) = v x) → + 0 ≤ ∫ x in unitCube m, (f (A + hessian v x) - f A)) + {u : (Fin m → ℝ) → ℝ} (hu : ContDiff ℝ ∞ u) (hc : HasCompactSupport u) : + 0 ≤ ∫ x, (f (A + hessian u x) - f A) := by + have hQm : MeasurableSet (unitCube m) := MeasurableSet.univ_pi fun _ => measurableSet_Ioo + -- a ball `closedBall 0 R` containing the support, and the scale `s = λ = 1/(4R)` + obtain ⟨r, hr⟩ := hc.isCompact.isBounded.subset_closedBall (0 : Fin m → ℝ) + set R : ℝ := max r 1 + have hR0 : 0 < R := lt_of_lt_of_le one_pos (le_max_right _ _) + have hR : tsupport u ⊆ closedBall 0 R := + hr.trans (closedBall_subset_closedBall (le_max_left _ _)) + set s : ℝ := (4 * R)⁻¹ + have hs : 0 < s := by positivity + have hsinv : s⁻¹ = 4 * R := inv_inv _ + set c : Fin m → ℝ := fun _ => 1 / 2 + -- the points at distance `> 1/4` from the centre `c` are sent outside the support + have hout : ∀ (y : Fin m → ℝ) (i : Fin m), 1 / 4 < |y i - 1 / 2| → + s⁻¹ • (y - c) ∉ tsupport u := by + intro y i hi hy + have h1 := mem_closedBall_zero_iff.1 (hR hy) + have h2 := norm_le_pi_norm (s⁻¹ • (y - c)) i + have hci : c i = 1 / 2 := rfl + rw [hsinv] at h1 h2 + rw [Pi.smul_apply, Pi.sub_apply, smul_eq_mul, Real.norm_eq_abs, abs_mul, hci, + abs_of_pos (by positivity : (0:ℝ) < 4 * R)] at h2 + nlinarith + -- the rescaled copy `v (x) = s² u ((x − c) / s)`, supported in `[1/4, 3/4]^m` + set v : (Fin m → ℝ) → ℝ := fun y => s ^ 2 * u (s⁻¹ • (y - c)) with hvdef + have hvs : ContDiff ℝ ∞ v := + contDiff_const.mul (hu.comp ((contDiff_id.sub contDiff_const).const_smul _)) + have hv0 : ∀ y : Fin m → ℝ, (∃ i, y i < 1 / 4 ∨ 1 - 1 / 4 < y i) → v y = 0 := by + rintro y ⟨i, hi⟩ + rw [hvdef] + dsimp only + rw [image_eq_zero_of_notMem_tsupport (hout y i ?_), mul_zero] + rcases hi with hi | hi + · rw [abs_of_neg (by linarith)]; linarith + · rw [abs_of_pos (by linarith)]; linarith + have hvh : ∀ x, hessian v x = hessian u (s⁻¹ • (x - c)) := fun x => by + have h1 := hess_hessian_comp_sub (fun z => s ^ 2 * u (s⁻¹ • z)) c x + have hs2 : s ^ 2 * s⁻¹ ^ 2 = 1 := by rw [← mul_pow, mul_inv_cancel₀ hs.ne', one_pow] + rw [hess_hessian_comp_smul, hs2, one_smul] at h1 + exact h1 + -- its periodic extension `vp (x) = v (fract x)` + set vp : (Fin m → ℝ) → ℝ := fun y => v fun i => Int.fract (y i) with hvpdef + have hvps : ContDiff ℝ ∞ vp := contDiff_iff_contDiffAt.2 fun x => + (hvs.comp (contDiff_id.sub contDiff_const)).contDiffAt.congr_of_eventuallyEq + (hess_fract_eventuallyEq (by norm_num) hv0 x) + have hvpp : ∀ (x : Fin m → ℝ) (z : Fin m → ℤ), vp (x + fun i => (z i : ℝ)) = vp x := + fun x z => by simp only [hvpdef, Pi.add_apply, Int.fract_add_intCast] + have hvpQ : ∀ x ∈ unitCube m, hessian vp x = hessian u (s⁻¹ • (x - c)) := fun x hx => by + rw [← hvh] + refine hess_hessian_congr ?_ + filter_upwards [(isOpen_set_pi Set.finite_univ fun _ _ => isOpen_Ioo).mem_nhds hx] with y hy + simp only [hvpdef] + congr 1 + funext i + exact Int.fract_eq_self.2 ⟨(hy i (mem_univ i)).1.le, (hy i (mem_univ i)).2⟩ + -- off the cube, the integrand vanishes + have hzero : ∀ x ∉ unitCube m, f (A + hessian u (s⁻¹ • (x - c))) - f A = 0 := by + intro x hx + simp only [unitCube, Set.mem_pi, mem_univ, true_implies, mem_Ioo, not_forall, not_and_or, + not_lt] at hx + obtain ⟨i, hi⟩ := hx + rw [hess_hessian_eq_zero (hout x i ?_), add_zero, sub_self] + rcases hi with hi | hi + · rw [abs_of_neg (by linarith)]; linarith + · rw [abs_of_pos (by linarith)]; linarith + -- the change of variables `x = c + λ y` + have key := h vp hvps hvpp + have e1 : ∫ x in unitCube m, (f (A + hessian vp x) - f A) = + ∫ x in unitCube m, (f (A + hessian u (s⁻¹ • (x - c))) - f A) := + setIntegral_congr_fun hQm fun x hx => by simp only [hvpQ x hx] + have e2 := cv_integral_comp_affine (fun y => f (A + hessian u y) - f A) c hs + rw [e1, setIntegral_eq_integral_of_forall_compl_eq_zero hzero, e2] at key + exact (mul_nonneg_iff_of_pos_left (pow_pos hs m)).1 key + +/-- **The periodic and the compactly supported Hessian inequalities are equivalent** at every +matrix `A`, for a Borel, locally bounded `f` (Dacorogna, Prop. 5.13, for Hessians). -/ +theorem hessian_periodic_iff_hasCompactSupport + {f : Matrix (Fin m) (Fin m) ℝ → ℝ} (hf : Measurable f) (hbdd : IsLocallyBounded f) + (A : Matrix (Fin m) (Fin m) ℝ) : + (∀ u : (Fin m → ℝ) → ℝ, ContDiff ℝ ∞ u → + (∀ (x : Fin m → ℝ) (z : Fin m → ℤ), u (x + fun i => (z i : ℝ)) = u x) → + 0 ≤ ∫ x in unitCube m, (f (A + hessian u x) - f A)) ↔ + ∀ u : (Fin m → ℝ) → ℝ, ContDiff ℝ ∞ u → HasCompactSupport u → + 0 ≤ ∫ x, (f (A + hessian u x) - f A) := + ⟨fun h _ hu hc => integral_hessian_nonneg_of_periodic A h hu hc, + fun h _ hu hper => setIntegral_unitCube_hessian_nonneg_of_hasCompactSupport hf hbdd A h hu hper⟩ + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Periodic.lean b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Periodic.lean new file mode 100644 index 0000000000..dbada66ec2 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/CalculusOfVariations/Quasiconvex/Periodic.lean @@ -0,0 +1,115 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Periodic +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Rescale +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Cutoff + +/-! +# Quasiconvexity with periodic test maps + +For a Borel, locally bounded `f`, quasiconvexity at `A` on the unit cube is equivalent to the +inequality `f (A) ≤ ∫_{(0,1)^m} f (A + ∇φ)` for `ℤ^m`-periodic Lipschitz `φ` +(`quasiconvexAtOn_iff_periodic`). This is Proposition 5.13 of B. Dacorogna, *Direct Methods in the +Calculus of Variations*, 2nd ed., Springer, 2008 ([D08], p. 173–174), with its proof. + +"⇒": for a periodic `φ`, the maps `ψ_ν (x) = ν⁻¹ φ (ν x)`, `ν ∈ ℕ`, satisfy +`∫_Q f (A + ∇ψ_ν) = ∫_Q f (A + ∇φ)` by periodicity, and they converge to `0` uniformly with bounded +gradients. Multiplied by cut-offs `η_ν` (`0` off `Q`, `1` on `[1/ν, 1 − 1/ν]^m`, `|∇η_ν| ≤ c ν`) +they are test maps with bounded gradients, and the energies differ by at most a constant times the +measure of the boundary layer, since `f` is locally bounded (`le_of_quasiconvexAtOn_of_tendsto`, +`Quasiconvex.Cutoff`, which chooses the width `1/j` of the layer and the frequency `ν` separately). +"⇐": a test map on the cube extends periodically (`periodicExtension`). It is Lipschitz because +it vanishes on the boundary of the cube, and has the same gradient on the open cube ([D08]: +`W^{1,∞}_0 (Q) ⊂ W^{1,∞}_per (Q)`). +-/ + +@[expose] public section + +open Metric Set MeasureTheory Filter Topology +open scoped Pointwise + +namespace CalculusOfVariations + +variable {d m : ℕ} + +/-- Quasiconvexity on the cube gives the inequality for periodic test maps: the maps +`ψ_ν (x) = ν⁻¹ φ (ν x)` are Lipschitz with the constant of `φ`, converge to `0` uniformly, and +`∫_Q f (A + ∇ψ_ν) = ∫_Q f (A + ∇φ)` for `ν ≥ 1` by periodicity, so +`le_of_quasiconvexAtOn_of_tendsto` applies. -/ +lemma rd_periodic_of_cube {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (hf : Measurable f) (hbdd : IsLocallyBounded f) (A : Matrix (Fin d) (Fin m) ℝ) + (hq : QuasiconvexAtOn (unitCube m) f A) : QuasiconvexAtPeriodic f A := by + intro φ K hφ hper _ + obtain ⟨M, hM0, hM⟩ := rd_periodic_bounded hφ hper + obtain ⟨C, -, hC⟩ := rd_bound_near hbdd A K + have hFm : Measurable fun x => f (A + grad φ x) := + hf.comp (rd_measurable_add_grad A φ) + set ψ : ℕ → (Fin m → ℝ) → Fin d → ℝ := fun ν x => (ν : ℝ)⁻¹ • φ ((ν : ℝ) • x) with hψ + refine le_of_quasiconvexAtOn_of_tendsto hf hbdd hq (u := ψ) (K := K) (fun ν => ?_) ?_ ?_ + · -- the Lipschitz constants + rcases Nat.eq_zero_or_pos ν with rfl | hν + · refine LipschitzWith.of_dist_le_mul fun x y => ?_ + simp only [hψ, Nat.cast_zero, inv_zero, zero_smul, dist_self] + positivity + · have h := rescaleMap_lipschitz hφ 0 (inv_pos.2 (Nat.cast_pos (α := ℝ).2 hν)) + unfold rescaleMap at h + simpa only [hψ, inv_inv, sub_zero] using h + · -- `ψ_ν → 0` uniformly + rw [Metric.tendstoUniformly_iff] + intro ε hε + have hlim : Tendsto (fun ν : ℕ => (ν : ℝ)⁻¹ * M) atTop (𝓝 0) := by + simpa using tendsto_inv_atTop_nhds_zero_nat (𝕜 := ℝ).mul_const M + filter_upwards [hlim.eventually (gt_mem_nhds hε)] with ν hν x + rw [Pi.zero_apply, dist_zero_left, norm_smul, Real.norm_of_nonneg (by positivity)] + exact (mul_le_mul_of_nonneg_left (hM _) (by positivity)).trans_lt hν + · -- the energies + refine tendsto_const_nhds.congr' ?_ + filter_upwards [eventually_gt_atTop 0] with ν hν + have hν' : (ν : ℝ) ≠ 0 := Nat.cast_ne_zero.2 hν.ne' + have hGb : ∀ y, |f (A + grad φ y)| ≤ C := fun y => hC _ (rd_grad_abs_le hφ y) + rw [← rd_setIntegral_comp_nsmul hFm hGb (fun x z => by rw [rd_grad_periodic hper]) hν] + simp only [hψ, rd_grad_rescale φ hν'] + +/-- The inequality for periodic test maps gives quasiconvexity on the cube: a test map on the +cube extends periodically (`periodicExtension`, +Lipschitz since it vanishes on the boundary of the cube), with the same gradient on the open +cube. -/ +private lemma rd_cube_of_periodic {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (A : Matrix (Fin d) (Fin m) ℝ) (hp : QuasiconvexAtPeriodic f A) : + QuasiconvexAtOn (unitCube m) f A := by + intro φ K hφ h0 hint + have hopen : IsOpen (unitCube m) := isOpen_set_pi Set.finite_univ fun _ _ => isOpen_Ioo + have heq : ∀ x ∈ unitCube m, f (A + grad (periodicExtension φ) x) = f (A + grad φ x) := + fun x hx => by rw [rd_grad_perExt hx] + have hmeas : MeasurableSet (unitCube m) := MeasurableSet.univ_pi fun _ => measurableSet_Ioo + have hint' : IntegrableOn (fun x => f (A + grad (periodicExtension φ) x)) (unitCube m) := + hint.congr_fun (fun x hx => (heq x hx).symm) hmeas + have := hp (periodicExtension φ) _ (rd_perExt_lipschitz hφ h0) (rd_perExt_periodic φ) hint' + rw [setIntegral_congr_fun hmeas heq] at this + rw [rd_volume_unitCube, ENNReal.toReal_one, one_mul] + exact this + +/-- **Quasiconvexity with periodic test maps**: for a Borel, locally bounded `f`, quasiconvexity at +`A` on the unit cube is equivalent to the inequality for `ℤ^m`-periodic Lipschitz test maps, that +is, on the torus `𝕋^m = ℝ^m / ℤ^m`. + +This is [D08], Proposition 5.13 (stated there for `f` quasiconvex at every matrix; its proof fixes +the matrix), with the proof of [D08]. "⇒": rescaled periodic maps and cut-offs +(`rd_periodic_of_cube`, `le_of_quasiconvexAtOn_of_tendsto`). "⇐": a test map on the cube extends +periodically (`periodicExtension`, `x ↦ φ (fract x)`). It is Lipschitz because it vanishes on the +boundary of the cube, and has the same gradient on the open cube. See also S. Müller, *Variational +models for microstructure and phase transitions*, lecture notes, MPI MiS Leipzig, 1998, Proposition +4.19. -/ +theorem quasiconvexAtOn_iff_periodic {f : Matrix (Fin d) (Fin m) ℝ → ℝ} + (hf : Measurable f) (hbdd : IsLocallyBounded f) (A : Matrix (Fin d) (Fin m) ℝ) : + QuasiconvexAtOn (unitCube m) f A ↔ QuasiconvexAtPeriodic f A := + ⟨rd_periodic_of_cube hf hbdd A, rd_cube_of_periodic A⟩ + +end CalculusOfVariations diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Basic.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Basic.lean new file mode 100644 index 0000000000..9cd0451e32 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Basic.lean @@ -0,0 +1,151 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.Wirtinger +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Basic + +/-! +# The Beurling–Ahlfors transform and its powers + +With `ℂ ≅ ℝ²` by `x + iy ↦ (x, y)` and Mathlib's Fourier transform +`𝓕 f (ξ) = ∫ e^{−2πi ⟨v, ξ⟩} f (v) dv`: + +* `HarmonicAnalysis.beurlingSymbol ξ = (conj ξ) / ξ`, the symbol of the Beurling–Ahlfors transform +`𝓑` + (`0` at `ξ = 0`, by Lean's `0 / 0 = 0`; the value at one point does not matter); +* `HarmonicAnalysis.beurlingPow k f = 𝓕⁻¹ (m^k · 𝓕 f)`, the power `𝓑^k`; +* `HarmonicAnalysis.beurlingPowNorm k p = ‖𝓑^k‖_{L^p (ℝ²) → L^p (ℝ²)}`, computed on Schwartz + functions (`HarmonicAnalysis.multiplierNorm`). + +## Main results + +* `HarmonicAnalysis.beurlingPow_dzbarCLM_pow`: `𝓑^k (∂_zbar^k F) = ∂^k F` for every Schwartz `F` + (on the Fourier side, `m^k (π i ξ)^k = (π i (conj ξ))^k`). For `k = 1` this is the + characterisation + `𝓑 (∂_zbar h) = ∂h` of the Beurling–Ahlfors transform. With the pointwise derivatives: + `HarmonicAnalysis.beurlingPow_dzbar_iterate`. The `k`-fold iterate of `𝓑` is `𝓑^k` on the + functions `∂_zbar^k F` (`HarmonicAnalysis.iterate_beurlingPow_one_dzbar_iterate`). +* `HarmonicAnalysis.div_le_beurlingPowNorm_of_tendsto` (density): if Schwartz functions `φ_k` + satisfy `∂_zbar^k φ_k → u` and `∂^k φ_k → v` in `L^p`, then `‖v‖_p / ‖u‖_p ≤ ‖𝓑^k‖_p`. For + `f ∈ W^{k,p}` with `u = ∂_zbar^k f`, `v = ∂^k f`, this is `𝓑^k (∂_zbar^k f) = ∂^k f` (Dragičević + 2011, + p. 465; lecture notes, §4.1, and Exercise 2.19 for `k = 1`, whose hint is "first consider smooth + `h` and then approximate"), used through the norm over Schwartz functions. +* Elementary properties of the symbol: `|m| ≤ 1`, `m (−ξ) = m (ξ)`, `m (t ξ) = m (ξ)` for real + `t ≠ 0`, continuity off `0`, measurability. + +## References + +* O. Dragičević, *Some remarks on the `L^p` estimates for powers of the Ahlfors–Beurling + operator*, Arch. Math. 96 (2011), 463–471, p. 465. +* O. Dragičević, *Analysis of the Ahlfors–Beurling transform*, lecture notes, + [arXiv:2109.04555](https://arxiv.org/abs/2109.04555), §1.3 ((1.11)), Exercise 2.19 and §4.1. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped SchwartzMap ENNReal ComplexConjugate FourierTransform Real + +namespace HarmonicAnalysis + +theorem norm_beurlingSymbol_le (ξ : ℂ) : ‖beurlingSymbol ξ‖ ≤ 1 := by + rcases eq_or_ne ξ 0 with rfl | h + · simp [beurlingSymbol] + · simp [beurlingSymbol, h] + +theorem beurlingSymbol_neg (ξ : ℂ) : beurlingSymbol (-ξ) = beurlingSymbol ξ := by + simp [beurlingSymbol, neg_div_neg_eq] + +theorem beurlingSymbol_ofReal_mul {t : ℝ} (ht : t ≠ 0) (ξ : ℂ) : + beurlingSymbol (t * ξ) = beurlingSymbol ξ := by + simp only [beurlingSymbol, map_mul, Complex.conj_ofReal] + rw [mul_div_mul_left _ _ (Complex.ofReal_ne_zero.mpr ht)] + +theorem continuousAt_beurlingSymbol {ξ : ℂ} (hξ : ξ ≠ 0) : ContinuousAt beurlingSymbol ξ := + Complex.continuous_conj.continuousAt.div continuousAt_id hξ + +theorem measurable_beurlingSymbol : Measurable beurlingSymbol := + Complex.continuous_conj.measurable.div measurable_id + +/-- The Fourier symbol of `∂_zbar^k`: `𝓕 (∂_zbar^k F) (ξ) = (π i ξ)^k 𝓕 F (ξ)`. -/ +private lemma fourier_dzbarCLM_pow (k : ℕ) (F : 𝓢(ℂ, ℂ)) (ξ : ℂ) : + 𝓕 ((dzbarCLM ^ k) F : ℂ → ℂ) ξ = ((π : ℂ) * Complex.I * ξ) ^ k • 𝓕 (F : ℂ → ℂ) ξ := by + induction k with + | zero => simp + | succ k ih => + rw [pow_succ', mul_apply_eq_comp, fourier_dzbarCLM, ih, smul_smul, ← pow_succ'] + +/-- The Fourier symbol of `∂^k`: `𝓕 (∂^k F) (ξ) = (π i (conj ξ))^k 𝓕 F (ξ)`. -/ +private lemma fourier_dzCLM_pow (k : ℕ) (F : 𝓢(ℂ, ℂ)) (ξ : ℂ) : + 𝓕 ((dzCLM ^ k) F : ℂ → ℂ) ξ = ((π : ℂ) * Complex.I * conj ξ) ^ k • 𝓕 (F : ℂ → ℂ) ξ := by + induction k with + | zero => simp + | succ k ih => + rw [pow_succ', mul_apply_eq_comp, fourier_dzCLM, ih, smul_smul, ← pow_succ'] + +/-- `𝓑^k (∂_zbar^k F) = ∂^k F` for every Schwartz function `F`. -/ +theorem beurlingPow_dzbarCLM_pow (k : ℕ) (F : 𝓢(ℂ, ℂ)) : + beurlingPow k ((dzbarCLM ^ k) F : ℂ → ℂ) = ((dzCLM ^ k) F : ℂ → ℂ) := by + -- On the Fourier side, `m^k (π i ξ)^k = (π i (conj ξ))^k`. + have hsymb : (fun ξ => beurlingSymbol ξ ^ k • 𝓕 ((dzbarCLM ^ k) F : ℂ → ℂ) ξ) = + 𝓕 ((dzCLM ^ k) F : ℂ → ℂ) := by + ext ξ + rw [fourier_dzbarCLM_pow, fourier_dzCLM_pow, smul_smul] + congr 1 + rcases eq_or_ne ξ 0 with rfl | hξ + · rcases k with _ | k <;> simp [beurlingSymbol] + · rw [beurlingSymbol, ← mul_pow] + congr 1 + field_simp + -- Fourier inversion on `𝓢(ℂ, ℂ)`. + rw [beurlingPow, fourierMultiplier, hsymb, ← SchwartzMap.fourier_coe, + ← SchwartzMap.fourierInv_coe, FourierTransform.fourierInv_fourier_eq] + +/-- `𝓑^k (∂_zbar^k F) = ∂^k F` for every Schwartz function `F`, with the pointwise derivatives. -/ +theorem beurlingPow_dzbar_iterate (k : ℕ) (F : 𝓢(ℂ, ℂ)) : + beurlingPow k (dzbar^[k] F) = dz^[k] F := by + rw [← coe_dzbarCLM_pow, ← coe_dzCLM_pow] + exact beurlingPow_dzbarCLM_pow k F + +/-- `𝓑^k` is the `k`-fold iterate of `𝓑` on the functions `∂_zbar^k F`, `F` Schwartz: applying `𝓑` +to +`∂_zbar^k F` gives `∂_zbar^{k−1} (∂F)`, then `∂_zbar^{k−2} (∂²F)`, and so on to `∂^k F`. -/ +theorem iterate_beurlingPow_one_dzbar_iterate (k : ℕ) (F : 𝓢(ℂ, ℂ)) : + (beurlingPow 1)^[k] (dzbar^[k] F) = dz^[k] F := by + rw [← coe_dzbarCLM_pow, ← coe_dzCLM_pow] + induction k generalizing F with + | zero => rfl + | succ k ih => + have h : beurlingPow 1 ((dzbarCLM ^ (k + 1)) F : ℂ → ℂ) = + ((dzbarCLM ^ k) (dzCLM F) : ℂ → ℂ) := by + have h1 := beurlingPow_dzbarCLM_pow 1 ((dzbarCLM ^ k) F) + have h2 := congrArg (fun T => T F) (commute_dzCLM_dzbarCLM.pow_right k).eq + simp only [pow_one, mul_apply_eq_comp] at h1 h2 + rw [pow_succ', mul_apply_eq_comp, h1, h2] + rw [Function.iterate_succ_apply, h, ih, pow_succ, mul_apply_eq_comp] + +/-- Density: if Schwartz functions `φ_k` satisfy `∂_zbar^k φ_k → u` and `∂^k φ_k → v` in `L^p`, +`1 ≤ p`, then `‖v‖_p / ‖u‖_p ≤ ‖𝓑^k‖_p`. -/ +theorem div_le_beurlingPowNorm_of_tendsto (k : ℕ) {p : ℝ} (hp : 1 ≤ p) {φ : ℕ → 𝓢(ℂ, ℂ)} + {u v : ℂ → ℂ} + (hφu : Tendsto (fun j => eLpNorm (fun z => (dzbarCLM ^ k) (φ j) z - u z) (ENNReal.ofReal p) + volume) atTop (𝓝 0)) + (hφv : Tendsto (fun j => eLpNorm (fun z => (dzCLM ^ k) (φ j) z - v z) (ENNReal.ofReal p) + volume) atTop (𝓝 0)) : + eLpNorm v (ENNReal.ofReal p) volume / eLpNorm u (ENNReal.ofReal p) volume ≤ + beurlingPowNorm k p := by + refine div_le_multiplierNorm_of_tendsto _ hp (φ := fun j => (dzbarCLM ^ k) (φ j)) hφu ?_ + have h : ∀ j, fourierMultiplier (fun ξ => beurlingSymbol ξ ^ k) ((dzbarCLM ^ k) (φ j)) = + ((dzCLM ^ k) (φ j) : ℂ → ℂ) := fun j => beurlingPow_dzbarCLM_pow k (φ j) + simpa only [h] using hφv + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Beltrami.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Beltrami.lean new file mode 100644 index 0000000000..5604bf3b6b --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Beltrami.lean @@ -0,0 +1,376 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.L2 +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Sobolev.Embedding +import Mathlib.Analysis.SpecificLimits.Basic +import Mathlib.MeasureTheory.Function.ConvergenceInMeasure +import Mathlib.MeasureTheory.Function.Holder +import Mathlib.MeasureTheory.Function.LpSpace.Complete + +/-! +# Higher integrability of solutions of the Beltrami equation, from the `L^p` norm of `𝓑` + +`HarmonicAnalysis.memLpLoc_of_beltrami`: let `Ω ⊆ ℂ` be open, `0 ≤ k < 1` and `2 ≤ p < ∞` with +`k ‖𝓑‖_p < 1`. If `f ∈ W^{1,2}_loc (Ω)` and `|∂_zbar f| ≤ k |∂f|` almost everywhere in `Ω` (`f` is +`K`-quasiregular, `K = (1 + k) / (1 − k)`), then `Df ∈ L^p_loc (Ω)`. + +The multiplier-norm criterion is due to B. Bojarski (Mat. Sb. 43(85), 1957, 451–503). +It is stated by O. Lehto (*Remarks on the integrability of the derivatives of quasiconformal +mappings*, 1965, equation (1)) and by T. Iwaniec (*Extremal inequalities in Sobolev spaces and +quasiconformal mappings*, 1982, equation (5)). The proof below uses a cut-off and the Neumann +series. + +## Proof + +Let `K ⊆ Ω` be compact and `η ∈ C_c^∞ (Ω)` equal to `1` on a neighbourhood of `K` +(`HarmonicAnalysis.exists_contDiff_tsupport_subset_eventuallyEq_one`). Let `μ = ∂_zbar f / ∂f` on +`tsupport η` where `|∂_zbar f| ≤ k |∂f|` (with `0 / 0 = 0`) and `μ = 0` elsewhere, computed from a +strongly measurable version of `Df` on `tsupport η`, so that `μ` is measurable, `|μ| ≤ k` +everywhere and `∂_zbar f = μ ∂f` almost everywhere on `tsupport η`. + +1. `g = η f` is a compactly supported `W^{1,2}` function on the plane, with + `∂_zbar g = η ∂_zbar f + f ∂_zbar η` and `∂g = η ∂f + f ∂η` + (`HarmonicAnalysis.HasWeakFDerivOn.smul_of_tsupport_subset`). So `∂_zbar g − μ ∂g = h` with + `h = f (∂_zbar η − μ ∂η)`, and `h ∈ L² ∩ L^p`, since `f ∈ L^q_loc (Ω)` for every `q < ∞` + (`HarmonicAnalysis.MemLpLoc.of_hasWeakFDerivOn`) and `∂_zbar η − μ ∂η` is bounded and vanishes + off + `tsupport η`. +2. `∂g = 𝓑 (∂_zbar g)` (`HarmonicAnalysis.beurlingL2_dzbar`), so `ω = ∂_zbar g ∈ L²` solves + `ω = h + T ω`, with `T u = μ 𝓑 u`, a bounded operator on `L²` (`μ` acts through Mathlib's + Hölder multiplication `ContinuousLinearMap.holderL`). +3. `‖T‖ ≤ k < 1` on `L²` (`HarmonicAnalysis.norm_beurlingL2_le`). Iterating `ω = h + T ω`, + `ω − Σ_{n < N} Tⁿ h = T^N ω`, of `L²` norm at most `k^N ‖ω‖₂ → 0`: the partial sums of the + Neumann series converge to `ω` in `L²`. On `L² ∩ L^p`, `‖T u‖_p ≤ k ‖𝓑‖_p ‖u‖_p` + (`HarmonicAnalysis.eLpNorm_beurlingL2_le`), so `‖Σ_{n < N} Tⁿ h‖_p ≤ ‖h‖_p / (1 − k ‖𝓑‖_p)`. + A subsequence of the partial sums converges almost everywhere to `ω`, and Fatou's lemma gives + `‖ω‖_p ≤ ‖h‖_p / (1 − k ‖𝓑‖_p) < ∞`. +4. So `∂_zbar g ∈ L^p` and `∂g = 𝓑 (∂_zbar g) ∈ L^p`, hence `Dg ∈ L^p` + (`HarmonicAnalysis.norm_le_dzPart_add_dzbarPart`), and `Df = Dg` on `K`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped ENNReal + +namespace HarmonicAnalysis + +/-- `∂ (A + B) = ∂A + ∂B`. -/ +private theorem bel_dzPart_add (A B : ℂ →L[ℝ] ℂ) : dzPart (A + B) = dzPart A + dzPart B := by + simp only [dzPart, add_apply] + ring + +/-- `∂_zbar (A + B) = ∂_zbar A + ∂_zbar B`. -/ +private theorem bel_dzbarPart_add (A B : ℂ →L[ℝ] ℂ) : + dzbarPart (A + B) = dzbarPart A + dzbarPart B := by + simp only [dzbarPart, add_apply] + ring + +/-- `∂ (c A) = c ∂A` for real `c`. -/ +private theorem bel_dzPart_smul (c : ℝ) (A : ℂ →L[ℝ] ℂ) : dzPart (c • A) = c * dzPart A := by + simp only [dzPart, smul_apply, Complex.real_smul] + ring + +/-- `∂_zbar (c A) = c ∂_zbar A` for real `c`. -/ +private theorem bel_dzbarPart_smul (c : ℝ) (A : ℂ →L[ℝ] ℂ) : + dzbarPart (c • A) = c * dzbarPart A := by + simp only [dzbarPart, smul_apply, Complex.real_smul] + ring + +/-- `∂ (L ⊗ w) = w ∂ (L ⊗ 1)` for a real linear form `L`. -/ +private theorem bel_dzPart_smulRight (L : ℂ →L[ℝ] ℝ) (w : ℂ) : + dzPart (L.smulRight w) = w * dzPart (L.smulRight 1) := by + simp only [dzPart, ContinuousLinearMap.smulRight_apply, Complex.real_smul, mul_one] + ring + +/-- `∂_zbar (L ⊗ w) = w ∂_zbar (L ⊗ 1)` for a real linear form `L`. -/ +private theorem bel_dzbarPart_smulRight (L : ℂ →L[ℝ] ℝ) (w : ℂ) : + dzbarPart (L.smulRight w) = w * dzbarPart (L.smulRight 1) := by + simp only [dzbarPart, ContinuousLinearMap.smulRight_apply, Complex.real_smul, mul_one] + ring + +/-- `f c ∈ L^q` for `f ∈ L^q_loc (Ω)` and a bounded measurable `c` vanishing off a compact +`T ⊆ Ω`. -/ +private theorem bel_memLp_mul {Ω T : Set ℂ} {f c : ℂ → ℂ} {q : ℝ≥0∞} (hf : MemLpLoc f q Ω) + (hT : IsCompact T) (hTΩ : T ⊆ Ω) (hc : AEStronglyMeasurable c volume) {C : ℝ} + (hcC : ∀ z, ‖c z‖ ≤ C) (hcT : ∀ z ∉ T, c z = 0) : + MemLp (fun z => f z * c z) q volume := by + have heq : T.indicator (fun z => f z * c z) = fun z => f z * c z := + Set.indicator_eq_self.2 fun z hz => by + by_contra hzT + exact hz (by simp [hcT z hzT]) + have hfT := hf T hTΩ hT + rw [← heq, memLp_indicator_iff_restrict hT.measurableSet.nullMeasurableSet] + refine hfT.of_le_mul (c := C) (hfT.aestronglyMeasurable.mul hc.restrict) + (ae_of_all _ fun z => ?_) + rw [norm_mul, mul_comm] + exact mul_le_mul_of_nonneg_right (hcC z) (norm_nonneg _) + +/-- **The Neumann series in `L² ∩ L^p`**: if `ω = h + μ 𝓑 ω` in `L²`, with `μ` measurable, +`|μ| ≤ k < 1` and `k ‖𝓑‖_p < 1`, and `h ∈ L^p`, then `ω ∈ L^p`. -/ +private theorem bel_memLp_of_eq {k p : ℝ} (hk : 0 ≤ k) (hk1 : k < 1) (hp : 1 ≤ p) + (hfin : beurlingPowNorm 1 p ≠ ⊤) (hkp : k * (beurlingPowNorm 1 p).toReal < 1) + {μ : ℂ → ℂ} (hμm : AEStronglyMeasurable μ volume) (hμk : ∀ z, ‖μ z‖ ≤ k) + {ω h : Lp ℂ 2 (volume : Measure ℂ)} (hh : MemLp h (ENNReal.ofReal p) volume) + (hω : ω =ᵐ[volume] fun z => h z + μ z * beurlingL2 ω z) : + MemLp ω (ENNReal.ofReal p) volume := by + set P := ENNReal.ofReal p + set Bp := beurlingPowNorm 1 p + have hP1 : 1 ≤ P := by + rw [← ENNReal.ofReal_one] + exact ENNReal.ofReal_le_ofReal hp + -- the operator `T u = μ · 𝓑 u` on `L²` + have hμt : MemLp μ ∞ volume := memLp_top_of_bound hμm k (ae_of_all _ hμk) + set T : Lp ℂ 2 (volume : Measure ℂ) →L[ℂ] Lp ℂ 2 (volume : Measure ℂ) := + (((ContinuousLinearMap.mul ℂ ℂ).holderL volume 2 ∞ 2).flip (hμt.toLp μ)).comp beurlingL2 + have hT : ∀ u, T u =ᵐ[volume] fun z => beurlingL2 u z * μ z := by + intro u + filter_upwards [(ContinuousLinearMap.mul ℂ ℂ).coeFn_holder (r := 2) (beurlingL2 u) + (hμt.toLp μ), hμt.coeFn_toLp] with z hz1 hz2 + simp only [T, ContinuousLinearMap.comp_apply, ContinuousLinearMap.flip_apply, + ContinuousLinearMap.holderL_apply_apply] + rw [hz1, hz2] + rfl + have hTn : ∀ u, ‖T u‖ ≤ k * ‖u‖ := by + intro u + calc ‖T u‖ ≤ k * ‖beurlingL2 u‖ := Lp.norm_le_mul_norm_of_ae_le_mul (by + filter_upwards [hT u] with z hz + rw [hz, norm_mul, mul_comm] + exact mul_le_mul_of_nonneg_right (hμk z) (norm_nonneg _)) + _ ≤ k * ‖u‖ := by + gcongr + calc ‖beurlingL2 u‖ ≤ ‖beurlingL2‖ * ‖u‖ := beurlingL2.le_opNorm u + _ ≤ 1 * ‖u‖ := by gcongr; exact norm_beurlingL2_le + _ = ‖u‖ := one_mul _ + have hTpow : ∀ n u, ‖(T ^ n) u‖ ≤ k ^ n * ‖u‖ := by + intro n + induction n with + | zero => intro u; simp + | succ n ih => + intro u + rw [pow_succ', mul_apply_eq_comp] + calc ‖T ((T ^ n) u)‖ ≤ k * ‖(T ^ n) u‖ := hTn _ + _ ≤ k * (k ^ n * ‖u‖) := by gcongr; exact ih u + _ = k ^ (n + 1) * ‖u‖ := by ring + -- `T` on `L² ∩ L^p` + have hTP : ∀ u : Lp ℂ 2 (volume : Measure ℂ), MemLp u P volume → + eLpNorm (T u) P volume ≤ ENNReal.ofReal k * Bp * eLpNorm u P volume := by + intro u hu + calc eLpNorm (T u) P volume = eLpNorm (fun z => beurlingL2 u z * μ z) P volume := + eLpNorm_congr_ae (hT u) + _ ≤ ENNReal.ofReal k * eLpNorm (beurlingL2 u) P volume := + eLpNorm_le_mul_eLpNorm_of_ae_le_mul ((Lp.aestronglyMeasurable _).mul hμm) + (ae_of_all _ fun z => by + rw [Pi.mul_apply, norm_mul, mul_comm] + exact mul_le_mul_of_nonneg_right (hμk z) (norm_nonneg _)) P + _ ≤ ENNReal.ofReal k * (Bp * eLpNorm u P volume) := by + gcongr + exact eLpNorm_beurlingL2_le hp u hu + _ = ENNReal.ofReal k * Bp * eLpNorm u P volume := (mul_assoc _ _ _).symm + set r := ENNReal.ofReal k * Bp + have hr : r < 1 := + calc r = ENNReal.ofReal (k * Bp.toReal) := by + rw [ENNReal.ofReal_mul hk, ENNReal.ofReal_toReal hfin] + _ < 1 := ENNReal.ofReal_lt_one.2 hkp + set H := eLpNorm h P volume + have hTPn : ∀ n, eLpNorm ((T ^ n) h) P volume ≤ r ^ n * H := by + intro n + induction n with + | zero => simp [H] + | succ n ih => + rw [pow_succ', mul_apply_eq_comp] + have hmem : MemLp ((T ^ n) h) P volume := + ih.trans_lt (ENNReal.mul_lt_top (ENNReal.pow_lt_top (hr.trans ENNReal.one_lt_top)) hh) + calc eLpNorm (T ((T ^ n) h)) P volume ≤ r * eLpNorm ((T ^ n) h) P volume := hTP _ hmem + _ ≤ r * (r ^ n * H) := by gcongr + _ = r ^ (n + 1) * H := by ring + -- the partial sums of the Neumann series + set S : ℕ → Lp ℂ 2 (volume : Measure ℂ) := fun N => ∑ n ∈ Finset.range N, (T ^ n) h + have hSP : ∀ N, eLpNorm (S N) P volume ≤ (∑ n ∈ Finset.range N, r ^ n) * H := by + intro N + induction N with + | zero => + simp only [S, Finset.range_zero, Finset.sum_empty, zero_mul, nonpos_iff_eq_zero] + rw [eLpNorm_congr_ae (Lp.coeFn_zero _ _ _)] + exact eLpNorm_zero + | succ N ih => + simp only [S, Finset.sum_range_succ] at ih ⊢ + calc eLpNorm (⇑(∑ n ∈ Finset.range N, (T ^ n) h + (T ^ N) h)) P volume + = eLpNorm (⇑(∑ n ∈ Finset.range N, (T ^ n) h) + ⇑((T ^ N) h)) P volume := + eLpNorm_congr_ae (Lp.coeFn_add _ _) + _ ≤ eLpNorm (⇑(∑ n ∈ Finset.range N, (T ^ n) h)) P volume + + eLpNorm ((T ^ N) h) P volume := + eLpNorm_add_le hP1 + _ ≤ (∑ n ∈ Finset.range N, r ^ n) * H + r ^ N * H := add_le_add ih (hTPn N) + _ = (∑ n ∈ Finset.range N, r ^ n + r ^ N) * H := (add_mul _ _ _).symm + have hSP' : ∀ N, eLpNorm (S N) P volume ≤ (1 - r)⁻¹ * H := fun N => + (hSP N).trans (by + gcongr + rw [← ENNReal.tsum_geometric] + exact sum_le_tsum _) + -- the partial sums converge to `ω` in `L²` + have hfix : ω - h = T ω := by + refine sub_eq_iff_eq_add'.2 (Lp.ext ?_) + filter_upwards [hω, Lp.coeFn_add h (T ω), hT ω] with z h1 h2 h3 + rw [h1, h2, Pi.add_apply, h3, mul_comm] + have hrem : ∀ N, ω - S N = (T ^ N) ω := by + intro N + induction N with + | zero => simp [S] + | succ N ih => + simp only [S, Finset.sum_range_succ] at ih ⊢ + rw [← sub_sub, ih, ← map_sub, hfix, pow_succ, mul_apply_eq_comp] + have hconv : Tendsto S atTop (𝓝 ω) := by + rw [tendsto_iff_norm_sub_tendsto_zero] + refine squeeze_zero (fun N => norm_nonneg _) (g := fun N => k ^ N * ‖ω‖) (fun N => ?_) ?_ + · rw [norm_sub_rev, hrem] + exact hTpow N ω + · simpa using (tendsto_pow_atTop_nhds_zero_of_lt_one hk hk1).mul_const ‖ω‖ + -- Fatou's lemma along an almost everywhere convergent subsequence + obtain ⟨ns, -, hns⟩ := (tendstoInMeasure_of_tendsto_Lp hconv).exists_seq_tendsto_ae + calc eLpNorm ω P volume ≤ atTop.liminf fun n => eLpNorm (S (ns n)) P volume := + Lp.eLpNorm_lim_le_liminf_eLpNorm (fun n => Lp.aestronglyMeasurable _) _ + (Lp.aestronglyMeasurable ω) hns + _ ≤ (1 - r)⁻¹ * H := liminf_le_of_frequently_le' (Frequently.of_forall fun n => hSP' _) + _ < ⊤ := ENNReal.mul_lt_top (ENNReal.inv_lt_top.2 (tsub_pos_of_lt hr)) hh + +/-- **Bojarski's integrability criterion**: if `k ‖𝓑‖_p < 1`, `0 ≤ k < 1`, `2 ≤ p`, then every +`f ∈ W^{1,2}_loc (Ω)` with `|∂_zbar f| ≤ k |∂f|` almost everywhere in the open set `Ω` has +`Df ∈ L^p_loc (Ω)`. -/ +theorem memLpLoc_of_beltrami {Ω : Set ℂ} (hΩ : IsOpen Ω) {k p : ℝ} (hk : 0 ≤ k) (hk1 : k < 1) + (hp : 2 ≤ p) (hfin : beurlingPowNorm 1 p ≠ ⊤) (hkp : k * (beurlingPowNorm 1 p).toReal < 1) + {f : ℂ → ℂ} {Df : ℂ → ℂ →L[ℝ] ℂ} (hf : MemLpLoc f 2 Ω) (hDf : MemLpLoc Df 2 Ω) + (h : HasWeakFDerivOn Ω f Df) + (hbel : ∀ᵐ z ∂(volume.restrict Ω), ‖dzbarPart (Df z)‖ ≤ k * ‖dzPart (Df z)‖) : + MemLpLoc Df (ENNReal.ofReal p) Ω := by + set P := ENNReal.ofReal p + have hp1 : 1 ≤ p := by linarith + intro K hKΩ hK + -- the cut-off `η`, `g = η f` and its weak derivative `Dg` + obtain ⟨η, hη, hηc, hηΩ, hη1⟩ := exists_contDiff_tsupport_subset_eventuallyEq_one hK hΩ hKΩ + set T := tsupport η + have hTc : IsCompact T := hηc + have hTm : MeasurableSet T := (isClosed_tsupport η).measurableSet + set g : ℂ → ℂ := fun x => η x • f x + set Dg : ℂ → ℂ →L[ℝ] ℂ := fun x => η x • Df x + (fderiv ℝ η x).smulRight (f x) + have hW : HasWeakFDerivOn Set.univ g Dg := h.smul_of_tsupport_subset + (hf.locallyIntegrableOn hΩ one_le_two) (hDf.locallyIntegrableOn hΩ one_le_two) hη hηc hηΩ + have hgc : HasCompactSupport g := hηc.smul_right + have hg2 : MemLp g 2 volume := hf.memLp_smul_of_tsupport_subset hη.continuous hηc hηΩ + have hη1' : ContDiff ℝ 1 η := hη.of_le (by exact_mod_cast le_top) + have hDg2 : MemLp Dg 2 volume := + (hDf.memLp_smul_of_tsupport_subset hη.continuous hηc hηΩ).add + (hf.memLp_smulRight_of_tsupport_subset hη1' hηc hηΩ) + have hfP : MemLpLoc f P Ω := hf.of_hasWeakFDerivOn hΩ hDf h ENNReal.ofReal_ne_top + -- the Beltrami coefficient `μ`, from a strongly measurable version `D'` of `Df` on `T` + obtain ⟨D', hD'm, hD'eq⟩ : AEStronglyMeasurable Df (volume.restrict T) := + (hDf T hηΩ hTc).aestronglyMeasurable + have hA : Measurable fun z => dzPart (D' z) := + (continuous_dzPart.comp_stronglyMeasurable hD'm).measurable + have hB : Measurable fun z => dzbarPart (D' z) := + (continuous_dzbarPart.comp_stronglyMeasurable hD'm).measurable + set μ : ℂ → ℂ := T.indicator fun z => + if ‖dzbarPart (D' z)‖ ≤ k * ‖dzPart (D' z)‖ then dzbarPart (D' z) / dzPart (D' z) else 0 + have hμm : Measurable μ := + (Measurable.ite (measurableSet_le hB.norm (hA.norm.const_mul k)) (hB.div hA) + measurable_const).indicator hTm + have hμk : ∀ z, ‖μ z‖ ≤ k := by + intro z + simp only [μ, Set.indicator] + split_ifs with h1 h2 + · rw [norm_div] + rcases eq_or_ne (dzPart (D' z)) 0 with h0 | h0 + · simp [h0, hk] + · rw [div_le_iff₀ (norm_pos_iff.2 h0)] + exact h2 + · simpa using hk + · simpa using hk + have hμbel : ∀ᵐ z ∂(volume.restrict T), dzbarPart (Df z) = μ z * dzPart (Df z) := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hηΩ hbel, hD'eq, + ae_restrict_mem hTm] with z hz hzD hzT + rw [hzD] at hz ⊢ + simp only [μ, Set.indicator_of_mem hzT, hz, ite_true] + rcases eq_or_ne (dzPart (D' z)) 0 with h0 | h0 + · rw [h0, norm_zero, mul_zero] at hz + simp [h0, norm_le_zero_iff.1 hz] + · rw [div_mul_cancel₀ _ h0] + -- `h = f (∂_zbar η − μ ∂η) ∈ L² ∩ L^p` + set dη : ℂ → ℂ := fun z => dzPart ((fderiv ℝ η z).smulRight (1 : ℂ)) + set dbη : ℂ → ℂ := fun z => dzbarPart ((fderiv ℝ η z).smulRight (1 : ℂ)) + set c : ℂ → ℂ := fun z => dbη z - μ z * dη z + set hh : ℂ → ℂ := fun z => f z * c z + have hDη : Continuous (fderiv ℝ η) := hη1'.continuous_fderiv one_ne_zero + have hDη1 : Continuous fun z => (fderiv ℝ η z).smulRight (1 : ℂ) := + ((ContinuousLinearMap.smulRightL ℝ ℂ ℂ).continuous.comp hDη).clm_apply continuous_const + obtain ⟨Cη, hCη⟩ := hDη.bounded_above_of_compact_support (hηc.fderiv (𝕜 := ℝ)) + have hcm : AEStronglyMeasurable c volume := + ((continuous_dzbarPart.comp hDη1).aestronglyMeasurable).sub + (hμm.aestronglyMeasurable.mul (continuous_dzPart.comp hDη1).aestronglyMeasurable) + have hcC : ∀ z, ‖c z‖ ≤ (1 + k) * Cη := by + intro z + have h1 : ‖(fderiv ℝ η z).smulRight (1 : ℂ)‖ ≤ Cη := by + rw [ContinuousLinearMap.norm_smulRight_apply, norm_one, mul_one] + exact hCη z + have h2 : ‖dbη z‖ ≤ Cη := (norm_dzbarPart_le _).trans h1 + have h3 : ‖dη z‖ ≤ Cη := (norm_dzPart_le _).trans h1 + calc ‖c z‖ ≤ ‖dbη z‖ + ‖μ z‖ * ‖dη z‖ := by + refine (norm_sub_le _ _).trans ?_ + rw [norm_mul] + _ ≤ Cη + k * Cη := by gcongr; exact hμk z + _ = (1 + k) * Cη := by ring + have hcT : ∀ z ∉ T, c z = 0 := by + intro z hz + simp [c, dη, dbη, fderiv_of_notMem_tsupport ℝ hz, dzPart, dzbarPart] + have hh2 : MemLp hh 2 volume := bel_memLp_mul hf hTc hηΩ hcm hcC hcT + have hhP : MemLp hh P volume := bel_memLp_mul hfP hTc hηΩ hcm hcC hcT + -- `∂_zbar g = h + μ ∂g` + have heq : ∀ᵐ z ∂volume, dzbarPart (Dg z) = hh z + μ z * dzPart (Dg z) := by + refine ae_of_ae_restrict_of_ae_restrict_compl T ?_ ?_ + · filter_upwards [hμbel] with z hz + simp only [Dg, hh, c, dη, dbη, bel_dzPart_add, bel_dzbarPart_add, bel_dzPart_smul, + bel_dzbarPart_smul] + rw [bel_dzPart_smulRight _ (f z), bel_dzbarPart_smulRight _ (f z)] + linear_combination (η z : ℂ) * hz + · rw [ae_restrict_iff' hTm.compl] + refine ae_of_all _ fun z hz => ?_ + have h0 : fderiv ℝ η z = 0 := fderiv_of_notMem_tsupport ℝ hz + have h1 : η z = 0 := image_eq_zero_of_notMem_tsupport hz + simp [Dg, hh, c, dη, dbη, h0, h1, dzPart, dzbarPart] + -- the Neumann series: `∂_zbar g ∈ L^p` + set ω : Lp ℂ 2 (volume : Measure ℂ) := (memLp_dzbarPart hDg2).toLp _ + have hBω : beurlingL2 ω =ᵐ[volume] fun z => dzPart (Dg z) := beurlingL2_dzbar hgc hg2 hDg2 hW + have hωP : MemLp ω P volume := by + refine bel_memLp_of_eq hk hk1 hp1 hfin hkp hμm.aestronglyMeasurable hμk + (h := hh2.toLp hh) ((memLp_congr_ae hh2.coeFn_toLp).2 hhP) ?_ + filter_upwards [(memLp_dzbarPart hDg2).coeFn_toLp, hh2.coeFn_toLp, heq, hBω] with + z h1 h2 h3 h4 + rw [h1, h2, h4] + exact h3 + -- `∂g = 𝓑 (∂_zbar g) ∈ L^p`, hence `Dg ∈ L^p` + have hdbar : MemLp (fun z => dzbarPart (Dg z)) P volume := + (memLp_congr_ae (memLp_dzbarPart hDg2).coeFn_toLp).1 hωP + have hdz : MemLp (fun z => dzPart (Dg z)) P volume := by + refine (memLp_congr_ae hBω).1 ?_ + exact (eLpNorm_beurlingL2_le hp1 ω hωP).trans_lt (ENNReal.mul_lt_top hfin.lt_top hωP) + have hDgP : MemLp Dg P volume := by + refine (hdz.norm.add hdbar.norm).of_le hDg2.aestronglyMeasurable (ae_of_all _ fun z => ?_) + rw [Pi.add_apply, Real.norm_of_nonneg (by positivity)] + exact norm_le_dzPart_add_dzbarPart (Dg z) + -- `Df = Dg` on `K` + refine (memLp_congr_ae ?_).1 (hDgP.restrict K) + filter_upwards [ae_restrict_mem hK.measurableSet] with z hz + have h0 : fderiv ℝ η z = 0 := by + rw [(hη1 z hz).fderiv_eq] + exact fderiv_const_apply _ + simp [Dg, h0, (hη1 z hz).eq_of_nhds] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/CauchyTransform.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/CauchyTransform.lean new file mode 100644 index 0000000000..af0deb9478 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/CauchyTransform.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.CauchyTransform +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Basic +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Regularity +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.CauchyPompeiu +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.Liouville +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.WirtingerRadial + +/-! +# The Cauchy transform of `g ∈ C_c^∞`: `∂_zbar (C g) = g` and `∂ (C g) = 𝓑 g` + +For a smooth compactly supported `g : ℂ → ℂ`, its Cauchy transform +`f = C g`, `f (z) = (1/π) ∫ g (w) / (z − w) dw` (`HarmonicAnalysis.cauchyTransform`), is the +potential of the gradient case of Guerra's argument (A. Guerra, *Quasiconvexity of the Burkholder +function on symmetric matrices*, preprint, arXiv:2608.23388, 2026, §6, proofs of Corollaries 1.2 +and 1.4, where the potential of a real `h` is its logarithmic potential `u`, with `Δu = 2h`, +`Du = O (|x|^{−1})` and `D²u = O (|x|^{−2})`, all stated there without proof). Here: + +* `HarmonicAnalysis.dzbar_cauchyTransform_eq`: `∂_zbar f = g`, by the Cauchy–Pompeiu formula + (`HarmonicAnalysis.cauchyTransform_dzbar`), the analogue of `Δu = 2h`; +* `HarmonicAnalysis.dz_cauchyTransform_eq_beurlingPow_one`: `∂f = 𝓑 g`, the analogue of Guerra's + `𝒮 h = 𝒮 (½ Δu) = 2 𝒮 (u_{z (conj z)}) = 2 u_{zz}`, which applies `𝒮 ∘ ∂_zbar = ∂_z` to `u_z`. + Here + `𝓑 (∂_zbar φ) = ∂φ` is known for Schwartz functions `φ` + (`HarmonicAnalysis.beurlingPow_dzbarCLM_pow`), + and `f` is not one. The identity is proved through Liouville's theorem: + `∂f − 𝓑 g = C (∂g) − 𝓑 g` has `∂_zbar (C (∂g)) = C (∂_zbar∂g) = ∂g` (Cauchy–Pompeiu for `∂g`) and + `∂_zbar (𝓑 g) = ∂g` (`HarmonicAnalysis.dzbar_beurlingPow_one`), so it is entire + (`HarmonicAnalysis.differentiable_complex_of_dzbar_eq_zero`); it tends to `0` at infinity + (`C (∂g) = O (1/|z|²)` since `∫ ∂g = 0`, and the Riemann–Lebesgue lemma for `𝓑 g`), so it + vanishes (`HarmonicAnalysis.eq_zero_of_dzbar_eq_zero`); +* the decay: `f = O (1/|z|)` (`HarmonicAnalysis.exists_norm_cauchyTransform_le`) and + `∂f = C (∂g) = O (1/|z|²)`, so that `∂f ∈ L^p` for every `1 < p` + (`HarmonicAnalysis.memLp_dz_cauchyTransform`), the analogues of Guerra's `Du = O (|x|^{−1})`, + `D²u = O (|x|^{−2})`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped SchwartzMap ContDiff + +namespace HarmonicAnalysis + +variable {g : ℂ → ℂ} + +/-- `∂g` is smooth for a smooth `g`. -/ +theorem contDiff_dz (hg : ContDiff ℝ ∞ g) : ContDiff ℝ ∞ (dz g) := by + have h : ContDiff ℝ ∞ (fderiv ℝ g) := (contDiff_infty_iff_fderiv.1 hg).2 + have h1 : ContDiff ℝ ∞ fun z => fderiv ℝ g z 1 := h.clm_apply contDiff_const + have h2 : ContDiff ℝ ∞ fun z => fderiv ℝ g z Complex.I := h.clm_apply contDiff_const + exact (h1.sub (h2.const_smul Complex.I)).const_smul (2⁻¹ : ℂ) + +/-- `∂g` has compact support if `g` has. -/ +theorem hasCompactSupport_dz (hgc : HasCompactSupport g) : HasCompactSupport (dz g) := + HasCompactSupport.intro (hgc.fderiv ℝ) fun z hz => by + simp [dz, image_eq_zero_of_notMem_tsupport hz] + +/-- `∂_zbar (C g) = g` for `g ∈ C_c^∞`: `∂_zbar (C g) = C (∂_zbar g)` and the Cauchy–Pompeiu +formula. -/ +theorem dzbar_cauchyTransform_eq (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) : + dzbar (cauchyTransform g) = g := by + rw [dzbar_cauchyTransform hg hgc] + exact funext (cauchyTransform_dzbar (hg.of_le (by simp)) hgc) + +/-- `∂ (C g) = 𝓑 g` for `g ∈ C_c^∞`: `∂ (C g) − 𝓑 g = C (∂g) − 𝓑 g` is entire, since its `∂_zbar` is +`∂g − ∂g = 0`, and tends to `0` at infinity, so it vanishes by Liouville's theorem. -/ +theorem dz_cauchyTransform_eq_beurlingPow_one (hg : ContDiff ℝ ∞ g) + (hgc : HasCompactSupport g) : dz (cauchyTransform g) = beurlingPow 1 g := by + set G : 𝓢(ℂ, ℂ) := hgc.toSchwartzMap hg + have hG : (G : ℂ → ℂ) = g := rfl + have hdg := contDiff_dz hg + have hdgc := hasCompactSupport_dz hgc + rw [dz_cauchyTransform hg hgc] + have hd1 : Differentiable ℝ (cauchyTransform (dz g)) := + (contDiff_cauchyTransform hdg hdgc).differentiable (by simp) + have hd2 : Differentiable ℝ (beurlingPow 1 g) := by + rw [← hG] + exact differentiable_beurlingPow_one G + have hbar : ∀ w, dzbar (fun z => cauchyTransform (dz g) z - beurlingPow 1 g z) w = 0 := by + intro w + rw [dzbar_sub (hd1 w) (hd2 w), congrFun (dzbar_cauchyTransform hdg hdgc) w, + cauchyTransform_dzbar (hdg.of_le (by simp)) hdgc w, ← hG, dzbar_beurlingPow_one G w, + sub_self] + have hlim : Tendsto (fun z => cauchyTransform (dz g) z - beurlingPow 1 g z) (cocompact ℂ) + (𝓝 0) := by + have h1 := tendsto_cauchyTransform_cocompact hdg.continuous hdgc + have h2 : Tendsto (beurlingPow 1 g) (cocompact ℂ) (𝓝 0) := by + rw [← hG] + exact tendsto_beurlingPow_one_cocompact G + simpa using h1.sub h2 + funext z + exact sub_eq_zero.1 (eq_zero_of_dzbar_eq_zero (hd1.sub hd2) hbar hlim z) + +/-- `∂ (C g) ∈ L^p` for `g ∈ C_c^∞` and `1 < p`: `∂ (C g) = C (∂g)` is continuous and +`O (1/|z|²)` at infinity, since `∫ ∂g = 0`. -/ +theorem memLp_dz_cauchyTransform (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) {p : ℝ} + (hp : 1 < p) : MemLp (dz (cauchyTransform g)) (ENNReal.ofReal p) volume := by + rw [dz_cauchyTransform hg hgc] + obtain ⟨A, R, hR, h⟩ := exists_norm_cauchyTransform_le_of_integral_eq_zero + (contDiff_dz hg).continuous (hasCompactSupport_dz hgc) + (integral_dz_eq_zero (hg.of_le (by simp)) hgc) + exact memLp_of_norm_le_div_sq + (continuous_cauchyTransform (contDiff_dz hg).continuous (hasCompactSupport_dz hgc)) hR h hp + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/CompactSupport.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/CompactSupport.lean new file mode 100644 index 0000000000..20cc6bf4c5 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/CompactSupport.lean @@ -0,0 +1,556 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.CauchyTransform +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.CompactSupport +import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension +import Mathlib.MeasureTheory.Function.LpSpace.Complete +import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls + +/-! +# `‖𝓑‖_p` as the best constant of `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` on `C_c^∞` + +For `1 < p < ∞` and `C ∈ [0, ∞]`, the norm of the Beurling–Ahlfors transform on `L^p (ℂ)` is at +most `C` if and only if `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` for every smooth compactly supported `u : ℂ → ℂ` +(`HarmonicAnalysis.beurlingPowNorm_one_le_iff`): `‖𝓑‖_p` is the best constant of that inequality +(`HarmonicAnalysis.isLeast_beurlingPowNorm_one`). This is the reduction that +Baernstein–Montgomery-Smith state without proof (1999, §1, remark (b), and §2, (2.4)): the truth +of their Conjecture 3 (Iwaniec's), `∫ |∂_zbar f|^p ≤ (p* − 1)^p ∫ |∂f|^p` for `f ∈ W_hom^{1,p}`, +which holds +if and only if it holds with `∂f` and `∂_zbar f` interchanged, "would show that the norm of `S` on +`L^p (ℂ, ℂ)` is precisely `p* − 1`". They state the inequality on `W_hom^{1,p}`; here it is on +`C_c^∞`, which is what the reduction needs. + +## Proof + +Guerra's proof of Corollary 1.4 (A. Guerra, *Quasiconvexity of the Burkholder function on +symmetric matrices*, preprint, arXiv:2608.23388, 2026, §6), with the cut-offs of the proof of +Corollary 1.2 there: + +1. **The dense class `C_c^∞`.** For `g ∈ C_c^∞`, let `f = C g` be its Cauchy transform, + `f (z) = (1/π) ∫ g (w) / (z − w) dw`. Then `∂_zbar f = g`, `∂f = 𝓑 g`, `f = O (1/|z|)` and + `∂f = O (1/|z|²)` (`HarmonicAnalysis.BeurlingAhlfors.CauchyTransform`). +2. **The cut-offs.** `η_R (z) = χ (z / R)`, `χ` a smooth bump function, `1` on the unit disc and + `0` off the disc of radius `2`, so that `|Dη_R| ≤ K / R` and `Dη_R` vanishes off + `R ≤ |z| ≤ 2R`. By the Leibniz rule `∂ (η_R f) − ∂f = (η_R − 1) ∂f + f ∂η_R`: the first term + tends to `0` in `L^p` by dominated convergence (`∂f ∈ L^p`), and the second is at most + `(A / R) (K / R)` on the disc of radius `2R` and `0` off it, so its `L^p` norm is at most + `A K (4π)^{1/p} R^{2/p − 2} → 0`, since `p > 1`. The same holds for `∂_zbar`. So `∂ (η_R f) → 𝓑 + g` + and `∂_zbar (η_R f) → g` in `L^p` + (`HarmonicAnalysis.exists_hasCompactSupport_tendsto_cauchyTransform`), and the inequality + for the `η_R f ∈ C_c^∞` gives `‖𝓑 g‖_p ≤ C ‖g‖_p` + (`HarmonicAnalysis.eLpNorm_beurlingPow_one_le_of_hasCompactSupport`). +3. **Density.** `‖𝓑‖_p` is a supremum over the Schwartz functions `g`. The functions + `g_n = η_n g ∈ C_c^∞` have `g_n → g` in `L^p` and `𝓕 g_n → 𝓕 g` in `L¹` + (`HarmonicAnalysis.exists_hasCompactSupport_tendsto`), so `𝓑 g_n → 𝓑 g` uniformly + (`HarmonicAnalysis.enorm_fourierMultiplier_sub_le`, `|(conj ξ)/ξ| ≤ 1`), and Fatou's lemma gives + `‖𝓑 g‖_p ≤ liminf ‖𝓑 g_n‖_p ≤ C ‖g‖_p`. + +**The one departure from Guerra's proof, which is forced.** Guerra treats the Hessian case: a +real `h ∈ C_c^∞`, its logarithmic potential `u = (1/π) ∫ log |x − y| h (y) dy`, and the parts +`a₊ = h`, `a₋ = conj (𝒮 h)` of `D²u`. The norm of `𝓑` on complex `L^p`, and the inequality for +`∂u`, `∂_zbar u` of complex `u` from which it is derived here, are the gradient case: a complex +`g ∈ C_c^∞` and its Cauchy transform `f`, with `∂_zbar f = g` and `∂f = 𝓑 g`, in place of `h` and +`u`. +The steps of the proof are Guerra's, with the decay `f = O (1/|z|)`, `∂f = O (1/|z|²)` in place of +`Du = O (|x|^{−1})`, `D²u = O (|x|^{−2})`. + +**Guerra's "by density".** Guerra passes from `C_c^∞` to `L^p` "by density", which presupposes +that `𝒮` is bounded on `L^p`. The library does not prove that boundedness (a theorem of +Calderón–Zygmund theory) and does not need it: step 3 passes to the limit by Fatou's lemma, with +the convergence of the Fourier transforms in `L¹`. + +The converse is `𝓑 (∂_zbar u) = ∂u` (`HarmonicAnalysis.beurlingPow_dzbarCLM_pow`) and the definition +of `‖𝓑‖_p`. + +## References + +* A. Baernstein II and S. J. Montgomery-Smith, *Some conjectures about integral means of `∂f` and + `∂_zbar f`*, in: Complex analysis and differential equations (Uppsala, 1997), ed. C. Kiselman, + Acta + Univ. Upsaliensis C 64 (1999), 92–109, [arXiv:math/9709215](https://arxiv.org/abs/math/9709215), + §1, Conjecture 3 and remark (b); §2, (2.4). +* A. Guerra, *Quasiconvexity of the Burkholder function on symmetric matrices*, preprint, + [arXiv:2608.23388](https://arxiv.org/abs/2608.23388) (2026), §6: the proofs of Corollaries 1.2 + and 1.4. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology Metric +open scoped SchwartzMap FourierTransform ENNReal ContDiff Real + +namespace HarmonicAnalysis + +/-! ### Cut-offs -/ + +/-- `½ (∂_x g + s ∂_y g)`: `∂g` for `s = −i`, `∂_zbar g` for `s = i`. -/ +private def wirt (s : ℂ) (g : ℂ → ℂ) (z : ℂ) : ℂ := + 2⁻¹ * (fderiv ℝ g z 1 + s * fderiv ℝ g z Complex.I) + +/-- `∂ = wirt (−i)`. -/ +private lemma dz_eq_wirt (g : ℂ → ℂ) : dz g = wirt (-Complex.I) g := by + funext z + simp only [dz, wirt, smul_eq_mul, neg_mul, sub_eq_add_neg] + +/-- `∂_zbar = wirt i`. -/ +private lemma dzbar_eq_wirt (g : ℂ → ℂ) : dzbar g = wirt Complex.I g := by + funext z + simp only [dzbar, wirt, smul_eq_mul] + +/-- `wirt s g` is measurable for every `g`. -/ +private lemma measurable_wirt (s : ℂ) (g : ℂ → ℂ) : Measurable (wirt s g) := by + unfold wirt + fun_prop + +/-- The Leibniz rule `D (c d) = c D d + d D c`. -/ +private lemma wirt_mul (s : ℂ) {c d : ℂ → ℂ} {z : ℂ} (hc : DifferentiableAt ℝ c z) + (hd : DifferentiableAt ℝ d z) : + wirt s (fun w => c w * d w) z = c z * wirt s d z + d z * wirt s c z := by + simp only [wirt, fderiv_fun_mul hc hd, add_apply, smul_apply, smul_eq_mul] + ring + +/-- The chain rule for a dilation: `D (ψ (r ·)) (z) = r D ψ (r z)`. -/ +private lemma wirt_comp_smul (s : ℂ) (ψ : ℂ → ℂ) (r : ℝ) (z : ℂ) : + wirt s (fun w => ψ (r • w)) z = r * wirt s ψ (r • z) := by + have h : fderiv ℝ (fun w => ψ (r • w)) z = r • fderiv ℝ ψ (r • z) := fderiv_comp_smul r + unfold wirt + rw [h] + simp only [smul_apply, Complex.real_smul] + ring + +/-- The bump function `χ`: `1` on the closed unit disc, `0` off the disc of radius `2`. -/ +private def bump : ContDiffBump (0 : ℂ) := ⟨1, 2, one_pos, one_lt_two⟩ + +/-- The cut-off `η_R (z) = χ (z / R)`. -/ +private def cutoff (R : ℝ) (z : ℂ) : ℂ := (bump (R⁻¹ • z) : ℂ) + +/-- `η_R` is smooth. -/ +private lemma contDiff_cutoff (R : ℝ) : ContDiff ℝ ∞ (cutoff R) := + (Complex.ofRealCLM.contDiff.comp bump.contDiff).comp (contDiff_const_smul R⁻¹) + +/-- `η_R` has compact support. -/ +private lemma hasCompactSupport_cutoff {R : ℝ} (hR : R ≠ 0) : HasCompactSupport (cutoff R) := + (bump.hasCompactSupport.comp_left Complex.ofReal_zero).comp_smul (inv_ne_zero hR) + +/-- `η_R = 1` on the closed disc of radius `R`. -/ +private lemma cutoff_eq_one {R : ℝ} (hR : 0 < R) {z : ℂ} (hz : ‖z‖ ≤ R) : cutoff R z = 1 := by + rw [cutoff, bump.one_of_mem_closedBall, Complex.ofReal_one] + rw [mem_closedBall_zero_iff, norm_smul, Real.norm_of_nonneg (inv_nonneg.2 hR.le), + inv_mul_le_iff₀ hR] + change ‖z‖ ≤ R * 1 + rwa [mul_one] + +/-- `|η_R − 1| ≤ 1`, since `0 ≤ η_R ≤ 1`. -/ +private lemma norm_cutoff_sub_one_le (R : ℝ) (z : ℂ) : ‖cutoff R z - 1‖ ≤ 1 := by + rw [cutoff, ← Complex.ofReal_one, ← Complex.ofReal_sub, Complex.norm_real, Real.norm_eq_abs, + abs_le] + constructor <;> linarith [bump.nonneg (x := R⁻¹ • z), bump.le_one (x := R⁻¹ • z)] + +/-- `|∂η_R|, |∂_zbar η_R| ≤ K / R`, `K` a bound of `|∂χ|`, `|∂_zbar χ|`. -/ +private lemma exists_norm_wirt_cutoff_le (s : ℂ) : + ∃ K, ∀ R : ℝ, 0 < R → ∀ z, ‖wirt s (cutoff R) z‖ ≤ R⁻¹ * K := by + set ψ : ℂ → ℂ := fun z => (bump z : ℂ) + have hψ : ContDiff ℝ ∞ ψ := Complex.ofRealCLM.contDiff.comp bump.contDiff + have hcont : Continuous (wirt s ψ) := by + have := hψ.continuous_fderiv (by simp) + unfold wirt + fun_prop + have hsupp : HasCompactSupport (wirt s ψ) := by + refine ((bump.hasCompactSupport.comp_left Complex.ofReal_zero).fderiv (𝕜 := ℝ)).mono ?_ + intro z hz + rw [Function.mem_support] at hz ⊢ + contrapose hz + have h0 : fderiv ℝ ψ z = 0 := hz + simp [wirt, h0] + obtain ⟨K, hK⟩ := hcont.bounded_above_of_compact_support hsupp + refine ⟨K, fun R hR z => ?_⟩ + have h : cutoff R = fun w => ψ (R⁻¹ • w) := rfl + rw [h, wirt_comp_smul, norm_mul, Complex.norm_real, Real.norm_of_nonneg (inv_nonneg.2 hR.le)] + exact mul_le_mul_of_nonneg_left (hK _) (inv_nonneg.2 hR.le) + +/-- Dominated convergence in `L^p`, `0 < p < ∞`: if `|c_n| ≤ 1`, `c_n (z) = 0` for large `n` and +`h ∈ L^p`, then `‖c_n h‖_p → 0`. -/ +private lemma tendsto_eLpNorm_mul_of_eventually_zero {c : ℕ → ℂ → ℂ} {h : ℂ → ℂ} {p : ℝ} + (hp : 0 < p) (hc : ∀ n, Continuous (c n)) (hcb : ∀ n z, ‖c n z‖ ≤ 1) + (hlim : ∀ z, ∀ᶠ n in atTop, c n z = 0) (hh : MemLp h (ENNReal.ofReal p) volume) : + Tendsto (fun n => eLpNorm (fun z => c n z * h z) (ENNReal.ofReal p) volume) atTop (𝓝 0) := by + have hmeas : ∀ n, AEStronglyMeasurable (fun z => c n z * h z) volume := fun n => + (hc n).aestronglyMeasurable.mul hh.aestronglyMeasurable + have hint : Tendsto (fun n => ∫⁻ z, ‖c n z * h z‖ₑ ^ p) atTop (𝓝 (∫⁻ _ : ℂ, 0)) := by + refine tendsto_lintegral_of_dominated_convergence' (fun z => ‖h z‖ₑ ^ p) + (fun n => (hmeas n).eNorm.pow_const p) (fun n => ae_of_all _ fun z => ?_) ?_ + (ae_of_all _ fun z => ?_) + · refine ENNReal.rpow_le_rpow ?_ hp.le + rw [eNorm_mul] + calc ‖c n z‖ₑ * ‖h z‖ₑ ≤ 1 * ‖h z‖ₑ := by + gcongr + rw [← ofReal_norm] + exact ENNReal.ofReal_le_one.2 (hcb n z) + _ = ‖h z‖ₑ := one_mul _ + · rw [← eLpNorm_ofReal_rpow_eq_lintegral hp hh.aestronglyMeasurable] + exact ENNReal.rpow_ne_top_of_nonneg hp.le hh.eLpNorm_lt_top.ne + · refine tendsto_const_nhds.congr' ?_ + filter_upwards [hlim z] with n hn + simp [hn, ENNReal.zero_rpow_of_pos hp] + rw [lintegral_zero] at hint + have h1 := hint.ennrpow_const (1 / p) + rw [ENNReal.zero_rpow_of_pos (by positivity)] at h1 + refine h1.congr fun n => ?_ + rw [← eLpNorm_ofReal_rpow_eq_lintegral hp (hmeas n), ← ENNReal.rpow_mul, + mul_one_div_cancel hp.ne', ENNReal.rpow_one] + +/-- `D η_R (z) = 0` where `η_R` is locally constant: for `|z| < R` (`η_R = 1`) and for `|z| > 2R` +(`η_R = 0`). -/ +private lemma wirt_cutoff_eq_zero (s : ℂ) {R : ℝ} (hR : 0 < R) {z : ℂ} + (hz : ‖z‖ < R ∨ 2 * R < ‖z‖) : wirt s (cutoff R) z = 0 := by + have h : ∃ c : ℂ, cutoff R =ᶠ[𝓝 z] fun _ => c := by + rcases hz with hz | hz + · refine ⟨1, ?_⟩ + filter_upwards [(isOpen_lt continuous_norm continuous_const).mem_nhds hz] with w hw + exact cutoff_eq_one hR hw.le + · refine ⟨0, ?_⟩ + filter_upwards [(isOpen_lt continuous_const continuous_norm).mem_nhds hz] with w hw + have hw' : 2 * R < ‖w‖ := hw + rw [cutoff, bump.zero_of_le_dist, Complex.ofReal_zero] + rw [dist_zero_right, norm_smul, Real.norm_of_nonneg (inv_nonneg.2 hR.le)] + change 2 ≤ R⁻¹ * ‖w‖ + rw [le_inv_mul_iff₀ hR] + linarith + obtain ⟨c, hc⟩ := h + simp [wirt, hc.fderiv_eq] + +/-- `‖f Dη_R‖_p → 0` as `R → ∞` (`R = n + 1`) if `|f (z)| ≤ A / |z|` for `|z| ≥ R₀` and `1 < p`: +`f Dη_R` is at most `(A / R) (K / R)` on the disc of radius `2R` and `0` off it, so +`‖f Dη_R‖_p ≤ A K (4π)^{1/p} R^{2/p − 2}`. -/ +private lemma tendsto_eLpNorm_mul_wirt_cutoff (s : ℂ) {f : ℂ → ℂ} (hf : Continuous f) + {A R₀ : ℝ} (hR₀ : 0 < R₀) (hdecay : ∀ z, R₀ ≤ ‖z‖ → ‖f z‖ ≤ A / ‖z‖) {p : ℝ} (hp : 1 < p) : + Tendsto (fun n : ℕ => eLpNorm (fun z => f z * wirt s (cutoff ((n : ℝ) + 1)) z) + (ENNReal.ofReal p) volume) atTop (𝓝 0) := by + have hp0 : 0 < p := by linarith + obtain ⟨K, hK⟩ := exists_norm_wirt_cutoff_le s + have hK0 : 0 ≤ K := by + have := (norm_nonneg _).trans (hK 1 one_pos 0) + simpa using this + have hA0 : 0 ≤ A := by + have h1 := (norm_nonneg _).trans (hdecay (R₀ : ℂ) (by simp [abs_of_pos hR₀])) + rw [Complex.norm_real, Real.norm_of_nonneg hR₀.le, le_div_iff₀ hR₀, zero_mul] at h1 + exact h1 + set c : ℝ := A * K * (4 * π) ^ (1 / p) + set e : ℝ := 2 - 2 / p + have he : 0 < e := by + have : 2 / p < 2 := by rw [div_lt_iff₀ hp0]; linarith + simp only [e]; linarith + -- the bound for `R ≥ R₀` + have hbound : ∀ R : ℝ, R₀ ≤ R → eLpNorm (fun z => f z * wirt s (cutoff R) z) + (ENNReal.ofReal p) volume ≤ ENNReal.ofReal (c * R ^ (-e)) := by + intro R hR + have hR0 : 0 < R := hR₀.trans_le hR + have hpt : ∀ z, ‖f z * wirt s (cutoff R) z‖ ≤ + (closedBall (0 : ℂ) (2 * R)).indicator (fun _ => A * K / R ^ 2) z := by + intro z + by_cases hw : wirt s (cutoff R) z = 0 + · rw [hw, mul_zero, norm_zero] + exact Set.indicator_nonneg (fun _ _ => by positivity) z + · have h1 : R ≤ ‖z‖ := by + by_contra h + exact hw (wirt_cutoff_eq_zero s hR0 (Or.inl (not_le.1 h))) + have h2 : ‖z‖ ≤ 2 * R := by + by_contra h + exact hw (wirt_cutoff_eq_zero s hR0 (Or.inr (not_le.1 h))) + rw [Set.indicator_of_mem (mem_closedBall_zero_iff.2 h2), norm_mul] + calc ‖f z‖ * ‖wirt s (cutoff R) z‖ ≤ (A / R) * (R⁻¹ * K) := by + gcongr + · exact (hdecay z (hR.trans h1)).trans (div_le_div_of_nonneg_left hA0 hR0 h1) + · exact hK R hR0 z + _ = A * K / R ^ 2 := by field_simp + have hmono := eLpNorm_mono_real (μ := volume) (p := ENNReal.ofReal p) + (hf.aestronglyMeasurable.mul (measurable_wirt s _).aestronglyMeasurable) hpt + rw [eLpNorm_indicator_const (measurableSet_closedBall (α := ℂ) (x := 0) + (ε := 2 * R)).nullMeasurableSet (by simpa using hp0) + ENNReal.ofReal_ne_top, Complex.volume_closedBall, ENNReal.toReal_ofReal hp0.le] at hmono + refine hmono.trans (le_of_eq ?_) + have hπ : ((NNReal.pi : ℝ≥0∞)) = ENNReal.ofReal π := by + rw [← ENNReal.ofReal_coe_nnreal, NNReal.coe_real_pi] + rw [hπ, ← ENNReal.ofReal_pow (by positivity), ← ENNReal.ofReal_mul (by positivity), + ENNReal.ofReal_rpow_of_nonneg (by positivity) (by positivity), + Real.eNorm_of_nonneg (by positivity), ← ENNReal.ofReal_mul (by positivity)] + congr 1 + have h1 : ((2 * R) ^ 2 * π) ^ (1 / p) = (4 * π) ^ (1 / p) * R ^ (2 / p) := by + rw [show (2 * R) ^ 2 * π = (4 * π) * R ^ 2 by ring, Real.mul_rpow (by positivity) + (by positivity), ← Real.rpow_natCast R 2, ← Real.rpow_mul hR0.le, Nat.cast_ofNat, + mul_one_div] + have h2 : R ^ (-e) = R ^ (2 / p) / R ^ 2 := by + rw [Real.rpow_neg hR0.le, Real.rpow_sub hR0, Real.rpow_two, inv_div] + rw [h1, h2] + simp only [c] + field_simp + -- the bound tends to `0` + have hlim : Tendsto (fun n : ℕ => ENNReal.ofReal (c * ((n : ℝ) + 1) ^ (-e))) atTop (𝓝 0) := by + have h1 : Tendsto (fun n : ℕ => (n : ℝ) + 1) atTop atTop := + tendsto_atTop_add_const_right _ _ tendsto_natCast_atTop_atTop + have h2 := ((tendsto_rpow_neg_atTop he).comp h1).const_mul c + rw [mul_zero] at h2 + simpa using ENNReal.tendsto_ofReal h2 + obtain ⟨N, hN⟩ := exists_nat_ge R₀ + refine tendsto_of_tendsto_of_tendsto_of_le_of_le' tendsto_const_nhds hlim + (Eventually.of_forall fun _ => zero_le) ?_ + filter_upwards [eventually_ge_atTop N] with n hn + refine hbound _ ?_ + have : (N : ℝ) ≤ n := by exact_mod_cast hn + linarith + +/-- For `u_n = η_{n+1} f`, `f` smooth with `|f (z)| ≤ A / |z|` for `|z| ≥ R₀`, `1 < p`: +`‖∂u_n − ∂f‖_p → 0` if `∂f ∈ L^p`, and `‖∂_zbar u_n − ∂_zbar f‖_p → 0` if `∂_zbar f ∈ L^p` (`s = +∓i`). -/ +private lemma tendsto_wirt_cutoff_mul (s : ℂ) {f : ℂ → ℂ} (hf : ContDiff ℝ ∞ f) {A R₀ : ℝ} + (hR₀ : 0 < R₀) (hdecay : ∀ z, R₀ ≤ ‖z‖ → ‖f z‖ ≤ A / ‖z‖) {p : ℝ} (hp : 1 < p) + (hwf : MemLp (wirt s f) (ENNReal.ofReal p) volume) : + Tendsto (fun n : ℕ => eLpNorm (fun z => wirt s (fun w => cutoff ((n : ℝ) + 1) w * f w) z - + wirt s f z) (ENNReal.ofReal p) volume) atTop (𝓝 0) := by + set P := ENNReal.ofReal p + have hR : ∀ n : ℕ, (0 : ℝ) < n + 1 := fun n => by positivity + -- `(η_R − 1) ∂f → 0`, by dominated convergence + have h1 : Tendsto (fun n : ℕ => eLpNorm (fun z => (cutoff ((n : ℝ) + 1) z - 1) * wirt s f z) P + volume) atTop (𝓝 0) := by + refine tendsto_eLpNorm_mul_of_eventually_zero (by linarith) + (fun n => (contDiff_cutoff _).continuous.sub continuous_const) + (fun n z => norm_cutoff_sub_one_le _ _) (fun z => ?_) hwf + obtain ⟨N, hN⟩ := exists_nat_ge ‖z‖ + filter_upwards [eventually_ge_atTop N] with n hn + rw [cutoff_eq_one (hR n), sub_self] + have : (N : ℝ) ≤ n := by exact_mod_cast hn + linarith + -- `f ∂η_R → 0` + have h2 := tendsto_eLpNorm_mul_wirt_cutoff s hf.continuous hR₀ hdecay hp + -- `∂u_R − ∂f = (η_R − 1) ∂f + f ∂η_R` + have hlim := ENNReal.Tendsto.const_mul (h1.add h2) (Or.inr (ENNReal.LpAddConst_lt_top P).ne) + rw [add_zero, mul_zero] at hlim + refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hlim (fun _ => zero_le) + fun n => le_of_eq_of_le ?_ (eLpNorm_add_le' P) + congr 1 + funext z + rw [wirt_mul s ((contDiff_cutoff _).contDiffAt.differentiableAt (by simp)) + (hf.differentiable (by simp) z)] + simp only [Pi.add_apply] + ring + +/-- **Cut-offs of the Cauchy transform** (Guerra's step "`D (η_R u) → Du` in `L^p`", in the +gradient case). For `g ∈ C_c^∞` and `1 < p`, the smooth compactly supported `u_n = η_{n+1} C g` +have `∂u_n → ∂ (C g) = 𝓑 g` and `∂_zbar u_n → ∂_zbar (C g) = g` in `L^p`. -/ +theorem exists_hasCompactSupport_tendsto_cauchyTransform {g : ℂ → ℂ} (hg : ContDiff ℝ ∞ g) + (hgc : HasCompactSupport g) {p : ℝ} (hp : 1 < p) : + ∃ u : ℕ → ℂ → ℂ, (∀ n, ContDiff ℝ ∞ (u n)) ∧ (∀ n, HasCompactSupport (u n)) ∧ + Tendsto (fun n => eLpNorm (fun z => dz (u n) z - beurlingPow 1 g z) (ENNReal.ofReal p) + volume) atTop (𝓝 0) ∧ + Tendsto (fun n => eLpNorm (fun z => dzbar (u n) z - g z) (ENNReal.ofReal p) volume) + atTop (𝓝 0) := by + set f := cauchyTransform g + have hf : ContDiff ℝ ∞ f := contDiff_cauchyTransform hg hgc + obtain ⟨A, R₀, hR₀, hdecay⟩ := exists_norm_cauchyTransform_le hg.continuous hgc + refine ⟨fun n w => cutoff ((n : ℝ) + 1) w * f w, fun n => (contDiff_cutoff _).mul hf, + fun n => (hasCompactSupport_cutoff (by positivity)).mul_right, ?_, ?_⟩ + · have hw : MemLp (wirt (-Complex.I) f) (ENNReal.ofReal p) volume := by + rw [← dz_eq_wirt] + exact memLp_dz_cauchyTransform hg hgc hp + refine (tendsto_wirt_cutoff_mul _ hf hR₀ hdecay hp hw).congr fun n => ?_ + congr 1 + funext z + rw [← dz_eq_wirt, ← dz_eq_wirt, show dz f = beurlingPow 1 g from + dz_cauchyTransform_eq_beurlingPow_one hg hgc] + · have hw : MemLp (wirt Complex.I f) (ENNReal.ofReal p) volume := by + rw [← dzbar_eq_wirt, show dzbar f = g from dzbar_cauchyTransform_eq hg hgc] + exact hg.continuous.memLp_of_hasCompactSupport hgc + refine (tendsto_wirt_cutoff_mul _ hf hR₀ hdecay hp hw).congr fun n => ?_ + congr 1 + funext z + rw [← dzbar_eq_wirt, ← dzbar_eq_wirt, show dzbar f = g from dzbar_cauchyTransform_eq hg hgc] + +/-- `𝓑 0 = 0`. -/ +private lemma beurlingPow_one_zero : beurlingPow 1 (0 : ℂ → ℂ) = 0 := by + funext z + simp [beurlingPow, fourierMultiplier, Real.fourier_eq, Real.fourierInv_eq] + +/-- **The dense class `C_c^∞`** (Guerra, 2026, preprint, proof of Corollary 1.4, in the gradient +case): if `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` for every smooth compactly supported `u`, `1 < p < ∞`, then +`‖𝓑 g‖_p ≤ C ‖g‖_p` for every smooth compactly supported `g`: apply the inequality to the +`η_R C g` of `HarmonicAnalysis.exists_hasCompactSupport_tendsto_cauchyTransform` and let +`R → ∞`. -/ +theorem eLpNorm_beurlingPow_one_le_of_hasCompactSupport {p : ℝ} (hp : 1 < p) {C : ℝ≥0∞} + (h : ∀ u : ℂ → ℂ, ContDiff ℝ ∞ u → HasCompactSupport u → + eLpNorm (dz u) (ENNReal.ofReal p) volume ≤ + C * eLpNorm (dzbar u) (ENNReal.ofReal p) volume) + {g : ℂ → ℂ} (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) : + eLpNorm (beurlingPow 1 g) (ENNReal.ofReal p) volume ≤ + C * eLpNorm g (ENNReal.ofReal p) volume := by + set P := ENNReal.ofReal p + have hP : 1 ≤ P := by simpa [P] using ENNReal.ofReal_le_ofReal hp.le + have hP0 : P ≠ 0 := (zero_lt_one.trans_le hP).ne' + rcases eq_or_ne C ⊤ with rfl | hC + · by_cases h0 : eLpNorm g P volume = 0 + · -- `g = 0`, hence `𝓑 g = 0` + have hz : g = 0 := by + rw [eLpNorm_eq_zero_iff hP0] at h0 + exact (hg.continuous.ae_eq_iff_eq volume continuous_zero).1 h0 + simp [hz, beurlingPow_one_zero] + · rw [ENNReal.top_mul h0] + exact le_top + · obtain ⟨u, hu, huc, hdz, hdzbar⟩ := exists_hasCompactSupport_tendsto_cauchyTransform hg hgc hp + have hlim : Tendsto (fun n => eLpNorm (fun z => dz (u n) z - beurlingPow 1 g z) P volume + + C * (eLpNorm (fun z => dzbar (u n) z - g z) P volume + eLpNorm g P volume)) atTop + (𝓝 (C * eLpNorm g P volume)) := by + simpa using hdz.add (ENNReal.Tendsto.const_mul (hdzbar.add_const _) (Or.inr hC)) + refine ge_of_tendsto' hlim fun n => ?_ + calc eLpNorm (beurlingPow 1 g) P volume + ≤ eLpNorm (fun z => dz (u n) z - beurlingPow 1 g z) P volume + + eLpNorm (dz (u n)) P volume := by + have e := eLpNorm_sub_le (μ := volume) (f := dz (u n)) + (g := fun z => dz (u n) z - beurlingPow 1 g z) hP + rw [add_comm] + convert e using 2 + funext z + simp + _ ≤ eLpNorm (fun z => dz (u n) z - beurlingPow 1 g z) P volume + + C * eLpNorm (dzbar (u n)) P volume := by + gcongr + exact h _ (hu n) (huc n) + _ ≤ _ := by + gcongr + have e := eLpNorm_add_le (μ := volume) (f := fun z => dzbar (u n) z - g z) (g := g) hP + convert e using 2 + funext z + simp + +/-! ### Density -/ + +/-- The step from `C_c^∞` to all Schwartz functions, for `C < ∞` (Guerra's "by density"): the +`g_n = η_n g ∈ C_c^∞` of `HarmonicAnalysis.exists_hasCompactSupport_tendsto` have `g_n → g` in +`L^p` and `𝓕 g_n → 𝓕 g` in `L¹`, hence `𝓑 g_n → 𝓑 g` pointwise, and Fatou's lemma gives +`‖𝓑 g‖_p ≤ liminf ‖𝓑 g_n‖_p ≤ C ‖g‖_p`. -/ +private theorem eLpNorm_beurlingPow_one_le_of_ne_top {p : ℝ} (hp : 1 < p) {C : ℝ≥0∞} + (hC : C ≠ ⊤) + (h : ∀ u : ℂ → ℂ, ContDiff ℝ ∞ u → HasCompactSupport u → + eLpNorm (dz u) (ENNReal.ofReal p) volume ≤ + C * eLpNorm (dzbar u) (ENNReal.ofReal p) volume) + (g : 𝓢(ℂ, ℂ)) : + eLpNorm (beurlingPow 1 g) (ENNReal.ofReal p) volume ≤ + C * eLpNorm g (ENNReal.ofReal p) volume := by + set P := ENNReal.ofReal p + have hP : 1 ≤ P := by simpa [P] using ENNReal.ofReal_le_ofReal hp.le + obtain ⟨φ, hφ, hφp, hφ1⟩ := exists_hasCompactSupport_tendsto g + have hm : Measurable fun ξ => beurlingSymbol ξ ^ 1 := measurable_beurlingSymbol.pow_const 1 + have hm1 : ∀ ξ, ‖beurlingSymbol ξ ^ 1‖ ≤ 1 := fun ξ => by + simpa using norm_beurlingSymbol_le ξ + -- `𝓑 φ_j → 𝓑 g` pointwise (uniformly), since `𝓕 φ_j → 𝓕 g` in `L¹` + have hlim : ∀ x, Tendsto (fun j => beurlingPow 1 (φ j) x) atTop (𝓝 (beurlingPow 1 g x)) := by + intro x + rw [tendsto_iff_edist_tendsto_0] + refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hφ1 (fun _ => zero_le) + fun j => ?_ + rw [eDist_eq_eNorm_sub] + exact enorm_fourierMultiplier_sub_le hm hm1 (φ j) g x + -- Fatou's lemma + have hfatou := Lp.eLpNorm_lim_le_liminf_eLpNorm (p := P) (μ := volume) + (fun j => (continuous_fourierMultiplier _ (φ j)).aestronglyMeasurable) (beurlingPow 1 g) + (continuous_fourierMultiplier _ g).aestronglyMeasurable (ae_of_all _ hlim) + have hbound : ∀ j, eLpNorm (beurlingPow 1 (φ j)) P volume ≤ + C * (eLpNorm (fun x => φ j x - g x) P volume + eLpNorm g P volume) := fun j => by + refine (eLpNorm_beurlingPow_one_le_of_hasCompactSupport hp h ((φ j).smooth ⊤) + (hφ j)).trans ?_ + gcongr + have e := eLpNorm_add_le (μ := volume) (f := fun x => φ j x - g x) (g := g) hP + convert e using 2 + funext x + simp + have hlim2 : Tendsto (fun j => C * (eLpNorm (fun x => φ j x - g x) P volume + + eLpNorm g P volume)) atTop (𝓝 (C * eLpNorm g P volume)) := by + simpa using ENNReal.Tendsto.const_mul ((hφp p hp.le).add_const _) (Or.inr hC) + calc eLpNorm (beurlingPow 1 g) P volume + ≤ atTop.liminf fun j => eLpNorm (beurlingPow 1 (φ j)) P volume := hfatou + _ ≤ atTop.liminf fun j => C * (eLpNorm (fun x => φ j x - g x) P volume + + eLpNorm g P volume) := liminf_le_liminf (Eventually.of_forall hbound) + _ = C * eLpNorm g P volume := hlim2.liminf_eq + +/-! ### The norm of `𝓑` -/ + +/-- **The norm of `𝓑` on `L^p` is at most the constant of `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` on `C_c^∞`**, +`1 < p < ∞`: if `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` for every smooth compactly supported `u`, then +`‖𝓑‖_p ≤ C`. Baernstein–Montgomery-Smith state it without proof (1999, §1, remark (b): their +Conjecture 3 "would show that the norm of `S` on `L^p (ℂ, ℂ)` is precisely `p* − 1`"). The proof +is Guerra's proof of Corollary 1.4 (2026, preprint) in the gradient case: the dense class +`C_c^∞`, the Cauchy transform as the potential, the cut-offs `η_R`, the limit `R → ∞`, and +density (see the module docstring). -/ +theorem beurlingPowNorm_one_le_of_forall_hasCompactSupport {p : ℝ} (hp : 1 < p) {C : ℝ≥0∞} + (h : ∀ u : ℂ → ℂ, ContDiff ℝ ∞ u → HasCompactSupport u → + eLpNorm (dz u) (ENNReal.ofReal p) volume ≤ + C * eLpNorm (dzbar u) (ENNReal.ofReal p) volume) : + beurlingPowNorm 1 p ≤ C := by + rcases eq_or_ne C ⊤ with rfl | hC + · exact le_top + exact iSup_le fun g => ENNReal.div_le_of_le_mul (eLpNorm_beurlingPow_one_le_of_ne_top hp hC h g) + +/-- `‖𝓑 g‖_p ≤ C ‖g‖_p` for every Schwartz function `g` if `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` for every +smooth +compactly supported `u`, `1 < p < ∞`: `‖𝓑 g‖_p ≤ ‖𝓑‖_p ‖g‖_p` and +`HarmonicAnalysis.beurlingPowNorm_one_le_of_forall_hasCompactSupport`. -/ +theorem eLpNorm_beurlingPow_one_le_of_forall_hasCompactSupport {p : ℝ} (hp : 1 < p) + {C : ℝ≥0∞} + (h : ∀ u : ℂ → ℂ, ContDiff ℝ ∞ u → HasCompactSupport u → + eLpNorm (dz u) (ENNReal.ofReal p) volume ≤ + C * eLpNorm (dzbar u) (ENNReal.ofReal p) volume) + (g : 𝓢(ℂ, ℂ)) : + eLpNorm (beurlingPow 1 g) (ENNReal.ofReal p) volume ≤ + C * eLpNorm g (ENNReal.ofReal p) volume := + (eLpNorm_fourierMultiplier_le _ p g).trans + (mul_le_mul_left (beurlingPowNorm_one_le_of_forall_hasCompactSupport hp h) _) + +/-- **The converse**: `‖∂u‖_p ≤ ‖𝓑‖_p ‖∂_zbar u‖_p` for every smooth compactly supported `u`, since +`u` is a Schwartz function and `𝓑 (∂_zbar u) = ∂u` (`HarmonicAnalysis.beurlingPow_dzbarCLM_pow`). -/ +theorem eLpNorm_dz_le_beurlingPowNorm_one_mul (p : ℝ) {u : ℂ → ℂ} (hu : ContDiff ℝ ∞ u) + (huc : HasCompactSupport u) : + eLpNorm (dz u) (ENNReal.ofReal p) volume ≤ + beurlingPowNorm 1 p * eLpNorm (dzbar u) (ENNReal.ofReal p) volume := by + set U : 𝓢(ℂ, ℂ) := huc.toSchwartzMap hu + have hU : (U : ℂ → ℂ) = u := rfl + have h1 : dz u = dzCLM U := by + rw [← hU] + exact funext fun z => (dzCLM_apply U z).symm + have h2 : dzbar u = dzbarCLM U := by + rw [← hU] + exact funext fun z => (dzbarCLM_apply U z).symm + have h3 := beurlingPow_dzbarCLM_pow 1 U + simp only [pow_one] at h3 + rw [h1, h2, ← h3] + exact eLpNorm_fourierMultiplier_le _ p (dzbarCLM U) + +/-- **`‖𝓑‖_p` is the best constant of `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` on `C_c^∞`**, `1 < p < ∞`: +`‖𝓑‖_p ≤ C` if and only if `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` for every smooth compactly supported `u`. +This is +the reduction of Baernstein–Montgomery-Smith (1999, §1, remark (b), stated without proof), by +`HarmonicAnalysis.beurlingPowNorm_one_le_of_forall_hasCompactSupport` (Guerra's argument) and +the converse `HarmonicAnalysis.eLpNorm_dz_le_beurlingPowNorm_one_mul`. -/ +theorem beurlingPowNorm_one_le_iff {p : ℝ} (hp : 1 < p) {C : ℝ≥0∞} : + beurlingPowNorm 1 p ≤ C ↔ ∀ u : ℂ → ℂ, ContDiff ℝ ∞ u → HasCompactSupport u → + eLpNorm (dz u) (ENNReal.ofReal p) volume ≤ + C * eLpNorm (dzbar u) (ENNReal.ofReal p) volume := + ⟨fun hC _ hu huc => (eLpNorm_dz_le_beurlingPowNorm_one_mul p hu huc).trans + (mul_le_mul_left hC _), beurlingPowNorm_one_le_of_forall_hasCompactSupport hp⟩ + +/-- `‖𝓑‖_p` is the least `C ∈ [0, ∞]` with `‖∂u‖_p ≤ C ‖∂_zbar u‖_p` for all `u ∈ C_c^∞`, +`1 < p < ∞` (`HarmonicAnalysis.beurlingPowNorm_one_le_iff`). -/ +theorem isLeast_beurlingPowNorm_one {p : ℝ} (hp : 1 < p) : + IsLeast {C : ℝ≥0∞ | ∀ u : ℂ → ℂ, ContDiff ℝ ∞ u → HasCompactSupport u → + eLpNorm (dz u) (ENNReal.ofReal p) volume ≤ + C * eLpNorm (dzbar u) (ENNReal.ofReal p) volume} (beurlingPowNorm 1 p) := + ⟨(beurlingPowNorm_one_le_iff hp).1 le_rfl, fun _ hC => (beurlingPowNorm_one_le_iff hp).2 hC⟩ + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Duality.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Duality.lean new file mode 100644 index 0000000000..419c01ea2c --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Duality.lean @@ -0,0 +1,51 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Duality + +/-! +# `‖𝓑^k‖_p = ‖𝓑^k‖_q` + +`HarmonicAnalysis.beurlingPowNorm_conjExponent`: for `1 < p < ∞` and `q = p / (p − 1)`, +`‖𝓑^k‖_{L^p} = ‖𝓑^k‖_{L^q}`. The argument is Carbonaro–Dragičević–Kovač's (§1.3.1): `𝓑^{−k}`, +the multiplier with symbol `conj m^k`, is the `L²`-adjoint of `𝓑^k`, so `‖𝓑^k‖_p = ‖𝓑^{−k}‖_q` +(`HarmonicAnalysis.multiplierNorm_conj_conjExponent`); and `𝓑^{−k} f = conj (𝓑^k (conj f))`, +because `m (−ξ) = m (ξ)`, so `‖𝓑^{−k}‖_q = ‖𝓑^k‖_q` +(`HarmonicAnalysis.multiplierNorm_conj_comp_neg`). + +## References + +* A. Carbonaro, O. Dragičević, V. Kovač, *Sharp `L^p` estimates of powers of the complex Riesz + transform*, Math. Ann. 386 (2023), [arXiv:2109.08369](https://arxiv.org/abs/2109.08369), + §1.3.1. +* O. Dragičević, *Analysis of the Ahlfors–Beurling transform*, lecture notes, + [arXiv:2109.04555](https://arxiv.org/abs/2109.04555), Exercise 1.16. +-/ + +@[expose] public section + +noncomputable section + +open scoped ComplexConjugate + +namespace HarmonicAnalysis + +/-- `‖𝓑^k‖_{L^p} = ‖𝓑^k‖_{L^q}` for `1 < p < ∞`, `q = p / (p − 1)`. -/ +theorem beurlingPowNorm_conjExponent (k : ℕ) {p : ℝ} (hp : 1 < p) : + beurlingPowNorm k p = beurlingPowNorm k (p / (p - 1)) := by + unfold beurlingPowNorm + rw [multiplierNorm_conj_conjExponent (measurable_beurlingSymbol.pow_const k) + ⟨1, fun ξ => by + rw [norm_pow] + exact pow_le_one₀ (norm_nonneg _) (norm_beurlingSymbol_le ξ)⟩ hp, + ← multiplierNorm_conj_comp_neg (fun ξ => conj (beurlingSymbol ξ ^ k))] + simp [beurlingSymbol_neg] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/L2.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/L2.lean new file mode 100644 index 0000000000..fb50e6fef1 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/L2.lean @@ -0,0 +1,406 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Extension +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Sobolev.Mollify +public import TauCeti.Analysis.Complex.Wirtinger.Beurling.Basic +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.CompactSupport +import Mathlib.Analysis.Calculus.ContDiff.Convolution +import Mathlib.MeasureTheory.Function.ConvergenceInMeasure +import Mathlib.MeasureTheory.Function.LpSpace.Complete +import Mathlib.MeasureTheory.Integral.Bochner.ContinuousLinearMap +import Mathlib.MeasureTheory.Integral.Lebesgue.DominatedConvergence +import TauCeti.Analysis.Distribution.TemperedDistribution.Lp + +/-! +# The Beurling–Ahlfors transform on `L² (ℂ)` + +`HarmonicAnalysis.beurlingL2` is the Beurling–Ahlfors transform `𝓑` as a bounded operator on +`L² (ℂ)`, the extension of `𝓑` from the Schwartz functions: + +* `HarmonicAnalysis.beurlingL2_toLp`: `𝓑 f = beurlingPow 1 f` for Schwartz `f`; +* `HarmonicAnalysis.norm_beurlingL2_le`: `‖𝓑‖_{L² → L²} ≤ 1`, from Tau Ceti's operator bound; +* `HarmonicAnalysis.eLpNorm_beurlingL2_two_le`: `‖𝓑 u‖₂ ≤ ‖u‖₂`, with `eLpNorm`; +* `HarmonicAnalysis.eLpNorm_beurlingL2_le`: on `L² ∩ L^p`, `‖𝓑 u‖_p ≤ ‖𝓑‖_p ‖u‖_p`, `1 ≤ p < ∞`, + where `‖𝓑‖_p = beurlingPowNorm 1 p` is the norm on Schwartz functions: the operator on `L²` + and the extension of `𝓑` to `L^p` agree on `L² ∩ L^p`; +* `HarmonicAnalysis.eLpNorm_beurlingL2_toLp_le`: the same for a function `w ∈ L² ∩ L^p`; +* `HarmonicAnalysis.beurlingL2_dzbar`: `𝓑 (∂_zbar g) = ∂g` for every compactly supported `g ∈ L²` +with + a weak derivative in `L²`, the characterization `𝓑 ∘ ∂_zbar = ∂` of the Beurling–Ahlfors transform + beyond the Schwartz functions. + +## Proofs + +`beurlingPowNorm_one_two_le`: by `HarmonicAnalysis.beurlingPowNorm_one_le_iff`, it suffices that +`‖∂u‖₂ ≤ ‖∂_zbar u‖₂` for smooth compactly supported `u`; by Plancherel for Schwartz functions, +`‖∂u‖₂ = ‖π i (conj ξ) 𝓕u‖₂ = ‖π i ξ 𝓕u‖₂ = ‖∂_zbar u‖₂`. + +`beurlingL2` is Tau Ceti's spectral multiplier. Its agreement with the integral formula on +Schwartz inputs follows by identifying the inverse Fourier transforms in tempered distributions. + +`eLpNorm_beurlingL2_le`: `u ∈ L² ∩ L^p` is the limit, in `L²` and in `L^p` at once, of smooth +compactly supported functions, the mollifications `ρ_k ⋆ (1_{B_R} u)` of truncations +(`HarmonicAnalysis.tendsto_eLpNorm_convolution_sub`); `𝓑` of these converges to `𝓑 u` in `L²`, +hence almost everywhere along a subsequence, and Fatou's lemma bounds `‖𝓑 u‖_p` by +`liminf ‖𝓑‖_p ‖ρ_k ⋆ (1_{B_R} u)‖_p = ‖𝓑‖_p ‖u‖_p`. + +`beurlingL2_dzbar`: the mollifications `g_n = ρ_n ⋆ g` are smooth with compact support, hence +Schwartz functions, with `𝓑 (∂_zbar g_n) = ∂g_n` (`HarmonicAnalysis.beurlingPow_dzbarCLM_pow`); and +`∂_zbar g_n = ρ_n ⋆ ∂_zbar g → ∂_zbar g`, `∂g_n = ρ_n ⋆ ∂g → ∂g` in `L²` +(`HarmonicAnalysis.hasFDerivAt_convolution_of_hasWeakFDerivOn`, +`HarmonicAnalysis.tendsto_eLpNorm_convolution_sub`). `𝓑` is continuous on `L²`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology ContinuousLinearMap +open scoped ENNReal SchwartzMap FourierTransform ComplexConjugate Convolution + +namespace HarmonicAnalysis + +/-! ### The norm of `𝓑` on `L²` -/ + +/-- Plancherel for Schwartz functions: `‖𝓕 f‖₂ = ‖f‖₂`. -/ +private lemma bl2_eLpNorm_fourier (f : 𝓢(ℂ, ℂ)) : + eLpNorm (𝓕 (f : ℂ → ℂ)) 2 volume = eLpNorm (f : ℂ → ℂ) 2 volume := by + have h : ‖(𝓕 f).toLp 2 volume‖ = ‖f.toLp 2 volume‖ := SchwartzMap.norm_fourier_toL2_eq f + rw [SchwartzMap.norm_toLp, SchwartzMap.norm_toLp] at h + have h' := (ENNReal.toReal_eq_toReal_iff' ((𝓕 f).memLp 2 volume).eLpNorm_ne_top + (f.memLp 2 volume).eLpNorm_ne_top).1 h + rwa [SchwartzMap.fourier_coe] at h' + +/-- `‖∂U‖₂ = ‖∂_zbar U‖₂` for Schwartz `U`: on the Fourier side, `|π i (conj ξ)| = |π i ξ|`. -/ +private lemma bl2_eLpNorm_dzCLM (U : 𝓢(ℂ, ℂ)) : + eLpNorm (dzCLM U : ℂ → ℂ) 2 volume = eLpNorm (dzbarCLM U : ℂ → ℂ) 2 volume := by + rw [← bl2_eLpNorm_fourier, ← bl2_eLpNorm_fourier] + refine eLpNorm_congr_norm_ae (𝓕 (dzCLM U)).continuous.aestronglyMeasurable + (𝓕 (dzbarCLM U)).continuous.aestronglyMeasurable (ae_of_all _ fun ξ => ?_) + rw [fourier_dzCLM, fourier_dzbarCLM] + simp only [norm_smul, norm_mul, Complex.norm_conj] + +/-- `‖𝓑 f‖₂ ≤ ‖f‖₂` for Schwartz `f`: `‖𝓑‖₂ ≤ 1`. -/ +theorem beurlingPowNorm_one_two_le : beurlingPowNorm 1 2 ≤ 1 := by + refine (beurlingPowNorm_one_le_iff one_lt_two).2 fun u hu huc => ?_ + set U : 𝓢(ℂ, ℂ) := huc.toSchwartzMap hu + have hU : (U : ℂ → ℂ) = u := rfl + have h1 : dz u = dzCLM U := by + rw [← hU] + exact funext fun z => (dzCLM_apply U z).symm + have h2 : dzbar u = dzbarCLM U := by + rw [← hU] + exact funext fun z => (dzbarCLM_apply U z).symm + rw [one_mul, h1, h2, ENNReal.ofReal_ofNat, bl2_eLpNorm_dzCLM] + +/-! ### The operator on `L²` -/ + +/-- `𝓑 f ∈ L²` for Schwartz `f`. -/ +theorem memLp_beurlingPow_one_two (f : 𝓢(ℂ, ℂ)) : MemLp (beurlingPow 1 f) 2 volume := by + have h := memLp_fourierMultiplier (m := fun ξ => beurlingSymbol ξ ^ 1) (p := 2) + (beurlingPowNorm_one_two_le.trans_lt ENNReal.one_lt_top).ne f + rwa [ENNReal.ofReal_ofNat] at h + +/-- Tau Ceti's Beurling–Ahlfors transform on complex-valued `L²` functions. -/ +abbrev beurlingL2 : Lp ℂ 2 (volume : Measure ℂ) →L[ℂ] Lp ℂ 2 (volume : Measure ℂ) := + TauCeti.beurlingL2 ℂ + +/-- `𝓑` on the Schwartz functions, as a linear map into `L² (ℂ)`. -/ +def beurlingSchwartzToL2 : 𝓢(ℂ, ℂ) →ₗ[ℂ] Lp ℂ 2 (volume : Measure ℂ) := + beurlingL2.toLinearMap.comp (SchwartzMap.toLpCLM ℂ ℂ 2 (volume : Measure ℂ)).toLinearMap + +/-- `𝓑 f = beurlingPow 1 f` for Schwartz `f`. -/ +theorem beurlingL2_toLp (f : 𝓢(ℂ, ℂ)) : + beurlingL2 (f.toLp 2) =ᵐ[volume] beurlingPow 1 f := by + let product : Lp ℂ 2 (volume : Measure ℂ) := TauCeti.beurlingSymbolLinf • 𝓕 (f.toLp 2) + have hproduct : product =ᵐ[volume] fun ξ => beurlingSymbol ξ • 𝓕 (f : ℂ → ℂ) ξ := by + dsimp only [product] + rw [SchwartzMap.toLp_fourier_eq] + filter_upwards [Lp.coeFn_lpSMul (r := 2) TauCeti.beurlingSymbolLinf ((𝓕 f).toLp 2), + TauCeti.coeFn_beurlingSymbolLinf, (𝓕 f).coeFn_toLp 2] with ξ hmul hsymbol hfourier + rw [hmul, Pi.smul_apply', hsymbol, hfourier, SchwartzMap.fourier_coe] + by_cases hξ : ξ = 0 + · simp [hξ, TauCeti.beurlingSymbol_zero, beurlingSymbol] + rw [(eq_div_iff hξ).2 (TauCeti.beurlingSymbol_mul ξ), beurlingSymbol] + have hintegrable : Integrable (fun ξ => beurlingSymbol ξ • 𝓕 (f : ℂ → ℂ) ξ) := + integrable_smul_fourier measurable_beurlingSymbol ⟨1, norm_beurlingSymbol_le⟩ f + change ⇑(TauCeti.beurlingL2 ℂ (f.toLp 2)) =ᵐ[volume] beurlingPow 1 f + rw [TauCeti.beurlingL2_def, Lp.fourierMultiplierCLM_apply] + simpa only [beurlingPow, fourierMultiplier, pow_one] using + (Lp.ae_eq_of_toTemperedDistribution_apply_eq (𝓕⁻ product) + (continuous_fourierMultiplier beurlingSymbol f).locallyIntegrable fun φ => by + rw [← Lp.fourierInv_toTemperedDistribution_eq] + exact Lp.fourierInv_toTemperedDistribution_apply _ hintegrable hproduct φ) + +/-- `‖𝓑‖_{L² → L²} ≤ 1`. -/ +theorem norm_beurlingL2_le : ‖beurlingL2‖ ≤ 1 := + TauCeti.norm_beurlingL2_le + +/-! ### Mollifiers and truncations -/ + +/-- The bump of radii `1 / (n + 2) < 1 / (n + 1)`. -/ +private def bl2_bump (n : ℕ) : ContDiffBump (0 : ℂ) where + rIn := 1 / ((n : ℝ) + 2) + rOut := 1 / ((n : ℝ) + 1) + rIn_pos := by positivity + rIn_lt_rOut := by + apply one_div_lt_one_div_of_lt (by positivity) + linarith + +/-- The radii of the bumps tend to `0`. -/ +private lemma bl2_tendsto_rOut : Tendsto (fun n => (bl2_bump n).rOut) atTop (𝓝 0) := + tendsto_one_div_add_atTop_nhds_zero_nat + +/-- Truncation: `‖1_{|z| > n} f‖_q → 0` for `f ∈ L^q`, `0 < q < ∞` (dominated convergence). -/ +private lemma bl2_tendsto_eLpNorm_indicator_compl {q : ℝ≥0∞} (hq0 : q ≠ 0) (hq : q ≠ ∞) + {f : ℂ → ℂ} (hf : MemLp f q volume) : + Tendsto (fun n : ℕ => eLpNorm ((Metric.closedBall (0 : ℂ) n)ᶜ.indicator f) q volume) atTop + (𝓝 0) := by + have hq' : 0 < q.toReal := ENNReal.toReal_pos hq0 hq + have hmeas : ∀ n : ℕ, + AEStronglyMeasurable ((Metric.closedBall (0 : ℂ) n)ᶜ.indicator f) volume := fun n => + hf.aestronglyMeasurable.indicator measurableSet_closedBall.compl + have hint : Tendsto (fun n : ℕ => + ∫⁻ z, ‖(Metric.closedBall (0 : ℂ) n)ᶜ.indicator f z‖ₑ ^ q.toReal) atTop + (𝓝 (∫⁻ _ : ℂ, 0)) := by + refine tendsto_lintegral_of_dominated_convergence' (fun z => ‖f z‖ₑ ^ q.toReal) + (fun n => (hmeas n).eNorm.pow_const _) (fun n => ae_of_all _ fun z => ?_) ?_ + (ae_of_all _ fun z => ?_) + · exact ENNReal.rpow_le_rpow (eNorm_indicator_le_eNorm_self _ _) hq'.le + · exact (lintegral_rpow_eNorm_lt_top_of_eLpNorm_lt_top hq0 hq hf.eLpNorm_lt_top).ne + · refine tendsto_const_nhds.congr' ?_ + filter_upwards [eventually_ge_atTop ⌈‖z‖⌉₊] with n hn + have hz : z ∈ Metric.closedBall (0 : ℂ) n := by + rw [mem_closedBall_zero_iff] + exact (Nat.le_ceil _).trans (by exact_mod_cast hn) + rw [Set.indicator_of_notMem (show z ∉ (Metric.closedBall (0 : ℂ) n)ᶜ from fun h' => h' hz), + eNorm_zero, ENNReal.zero_rpow_of_pos hq'] + rw [lintegral_zero] at hint + have h1 := hint.ennrpow_const (1 / q.toReal) + rw [ENNReal.zero_rpow_of_pos (by positivity)] at h1 + refine h1.congr fun n => ?_ + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal hq0 hq (hmeas n)] + +/-- `u ∈ L² ∩ L^q`, `1 ≤ q < ∞`, is within `ε` of a Schwartz function, in `L²` and in `L^q` at +once: a mollification `ρ_k ⋆ (1_{B_R} u)` of a truncation. -/ +private lemma bl2_exists_schwartz_le {u : ℂ → ℂ} {q : ℝ≥0∞} (hq : 1 ≤ q) (hq' : q ≠ ∞) + (hu2 : MemLp u 2 volume) (huq : MemLp u q volume) {ε : ℝ≥0∞} (hε : 0 < ε) : + ∃ ψ : 𝓢(ℂ, ℂ), eLpNorm (⇑ψ - u) 2 volume ≤ ε ∧ eLpNorm (⇑ψ - u) q volume ≤ ε := by + have hε2 : 0 < ε / 2 := ENNReal.half_pos hε.ne' + -- the truncation `v = 1_{B_R} u` + obtain ⟨R, hR2, hRq⟩ := ((bl2_tendsto_eLpNorm_indicator_compl two_ne_zero ENNReal.ofNat_ne_top + hu2).eventually (ge_mem_nhds hε2) |>.and ((bl2_tendsto_eLpNorm_indicator_compl + (zero_lt_one.trans_le hq).ne' hq' huq).eventually (ge_mem_nhds hε2))).exists + set v := (Metric.closedBall (0 : ℂ) R).indicator u + have hv2 : MemLp v 2 volume := MemLp.indicator measurableSet_closedBall.nullMeasurableSet hu2 + have hvq : MemLp v q volume := MemLp.indicator measurableSet_closedBall.nullMeasurableSet huq + have hvc : HasCompactSupport v := + HasCompactSupport.intro (isCompact_closedBall 0 R) fun z hz => Set.indicator_of_notMem hz u + have hvl : LocallyIntegrable v volume := hv2.locallyIntegrable one_le_two + have hvu : ∀ r, eLpNorm (v - u) r volume = + eLpNorm ((Metric.closedBall (0 : ℂ) R)ᶜ.indicator u) r volume := fun r => by + rw [eLpNorm_sub_comm, Set.indicator_compl] + -- the mollification `ρ_k ⋆ v` + obtain ⟨k, hk2, hkq⟩ := ((tendsto_eLpNorm_convolution_sub bl2_tendsto_rOut one_le_two + ENNReal.ofNat_ne_top hv2).eventually (ge_mem_nhds hε2) |>.and + ((tendsto_eLpNorm_convolution_sub bl2_tendsto_rOut hq hq' hvq).eventually + (ge_mem_nhds hε2))).exists + set ρ := (bl2_bump k).normed volume + have hsm : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (ρ ⋆[lsmul ℝ ℝ] v) := + (bl2_bump k).hasCompactSupport_normed.contDiff_convolution_left (lsmul ℝ ℝ) + (bl2_bump k).contDiff_normed hvl + have hcs : HasCompactSupport (ρ ⋆[lsmul ℝ ℝ] v) := + (bl2_bump k).hasCompactSupport_normed.convolution _ hvc + have e : ⇑(hcs.toSchwartzMap hsm) - u = (ρ ⋆[lsmul ℝ ℝ] v - v) + (v - u) := by + rw [sub_add_sub_cancel] + rfl + -- `‖ψ − u‖_r ≤ ‖ρ_k ⋆ v − v‖_r + ‖v − u‖_r ≤ ε / 2 + ε / 2` + have hsplit : ∀ r, 1 ≤ r → eLpNorm (ρ ⋆[lsmul ℝ ℝ] v - v) r volume ≤ ε / 2 → + eLpNorm ((Metric.closedBall (0 : ℂ) R)ᶜ.indicator u) r volume ≤ ε / 2 → + eLpNorm (⇑(hcs.toSchwartzMap hsm) - u) r volume ≤ ε := fun r hr h₁ h₂ => by + rw [e, ← ENNReal.add_halves ε] + exact (eLpNorm_add_le hr).trans (add_le_add h₁ ((hvu r).trans_le h₂)) + exact ⟨_, hsplit 2 one_le_two hk2 hR2, hsplit q hq hkq hRq⟩ + +/-- `u ∈ L² ∩ L^q`, `1 ≤ q < ∞`, is the limit in `L²` and in `L^q` at once of Schwartz functions +(indeed smooth compactly supported ones). -/ +private lemma bl2_exists_tendsto {u : ℂ → ℂ} {q : ℝ≥0∞} (hq : 1 ≤ q) (hq' : q ≠ ∞) + (hu2 : MemLp u 2 volume) (huq : MemLp u q volume) : + ∃ φ : ℕ → 𝓢(ℂ, ℂ), Tendsto (fun n => eLpNorm (⇑(φ n) - u) 2 volume) atTop (𝓝 0) ∧ + Tendsto (fun n => eLpNorm (⇑(φ n) - u) q volume) atTop (𝓝 0) := by + choose φ hφ2 hφq using fun n : ℕ => + bl2_exists_schwartz_le hq hq' hu2 huq (ENNReal.inv_pos.2 (ENNReal.natCast_ne_top n)) + exact ⟨φ, tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds + ENNReal.tendsto_inv_nat_nhds_zero (fun _ => zero_le) hφ2, + tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds + ENNReal.tendsto_inv_nat_nhds_zero (fun _ => zero_le) hφq⟩ + +/-! ### `𝓑` on `L² ∩ L^p` -/ + +/-- **`𝓑` on `L² ∩ L^p`**: `‖𝓑 u‖_p ≤ ‖𝓑‖_p ‖u‖_p` for `u ∈ L² ∩ L^p`, `1 ≤ p < ∞`. -/ +theorem eLpNorm_beurlingL2_le {p : ℝ} (hp : 1 ≤ p) (u : Lp ℂ 2 (volume : Measure ℂ)) + (hu : MemLp u (ENNReal.ofReal p) volume) : + eLpNorm (beurlingL2 u) (ENNReal.ofReal p) volume ≤ + beurlingPowNorm 1 p * eLpNorm u (ENNReal.ofReal p) volume := by + set P := ENNReal.ofReal p + have hP : 1 ≤ P := by simpa [P] using ENNReal.ofReal_le_ofReal hp + have hP0 : P ≠ 0 := (zero_lt_one.trans_le hP).ne' + set M := beurlingPowNorm 1 p + rcases eq_or_ne M ⊤ with hM | hM + · by_cases h0 : eLpNorm u P volume = 0 + · -- `u = 0`, hence `𝓑 u = 0` + have hu0 : u = 0 := Lp.eq_zero_iff_ae_eq_zero.2 ((eLpNorm_eq_zero_iff hP0).1 h0) + rw [hu0, map_zero, eLpNorm_congr_ae (Lp.coeFn_zero _ _ _), eLpNorm_zero] + exact zero_le + · rw [hM, ENNReal.top_mul h0] + exact le_top + obtain ⟨φ, hφ2, hφP⟩ := bl2_exists_tendsto hP ENNReal.ofReal_ne_top (Lp.memLp u) hu + -- `φ_n → u` in `L²`, hence `𝓑 φ_n → 𝓑 u` in `L²` + have hL2 : Tendsto (fun n => (φ n).toLp 2 volume) atTop (𝓝 u) := by + rw [Lp.tendsto_Lp_iff_tendsto_eLpNorm'] + refine hφ2.congr fun n => eLpNorm_congr_ae ?_ + filter_upwards [(φ n).coeFn_toLp 2 volume] with x hx + simp [hx] + have hB : Tendsto (fun n => beurlingL2 ((φ n).toLp 2 volume)) atTop (𝓝 (beurlingL2 u)) := + (beurlingL2.continuous.tendsto u).comp hL2 + -- a subsequence converges almost everywhere + obtain ⟨ns, hns, hae⟩ := (tendstoInMeasure_of_tendsto_Lp hB).exists_seq_tendsto_ae + have hall : ∀ᵐ x ∂volume, ∀ n, beurlingL2 ((φ n).toLp 2 volume) x = beurlingPow 1 (φ n) x := + ae_all_iff.2 fun n => beurlingL2_toLp (φ n) + have hlim : ∀ᵐ x ∂volume, + Tendsto (fun n => beurlingPow 1 (φ (ns n)) x) atTop (𝓝 (beurlingL2 u x)) := by + filter_upwards [hae, hall] with x hx hx' + simpa only [hx'] using hx + -- Fatou's lemma + have hfatou := Lp.eLpNorm_lim_le_liminf_eLpNorm (p := P) (μ := volume) + (fun n => (continuous_fourierMultiplier _ (φ (ns n))).aestronglyMeasurable) _ + (Lp.aestronglyMeasurable _) hlim + have hbound : ∀ n, eLpNorm (beurlingPow 1 (φ (ns n))) P volume ≤ + M * (eLpNorm (⇑(φ (ns n)) - ⇑u) P volume + eLpNorm u P volume) := fun n => by + have e := eLpNorm_add_le (μ := volume) (f := ⇑(φ (ns n)) - ⇑u) (g := ⇑u) hP + rw [sub_add_cancel] at e + calc eLpNorm (beurlingPow 1 (φ (ns n))) P volume ≤ M * eLpNorm (φ (ns n)) P volume := + eLpNorm_fourierMultiplier_le _ p (φ (ns n)) + _ ≤ _ := by gcongr + have hlim2 : Tendsto (fun n => M * (eLpNorm (⇑(φ (ns n)) - ⇑u) P volume + eLpNorm u P volume)) + atTop (𝓝 (M * eLpNorm u P volume)) := by + simpa using ENNReal.Tendsto.const_mul ((hφP.comp hns.tendsto_atTop).add_const _) (Or.inr hM) + calc eLpNorm (beurlingL2 u) P volume + ≤ atTop.liminf fun n => eLpNorm (beurlingPow 1 (φ (ns n))) P volume := hfatou + _ ≤ atTop.liminf fun n => M * (eLpNorm (⇑(φ (ns n)) - ⇑u) P volume + + eLpNorm u P volume) := liminf_le_liminf (Eventually.of_forall hbound) + _ = M * eLpNorm u P volume := hlim2.liminf_eq + +/-- `‖𝓑 u‖₂ ≤ ‖u‖₂` for `u ∈ L²`. -/ +theorem eLpNorm_beurlingL2_two_le (u : Lp ℂ 2 (volume : Measure ℂ)) : + eLpNorm (beurlingL2 u) 2 volume ≤ eLpNorm u 2 volume := by + have h := eLpNorm_beurlingL2_le one_le_two u (by rw [ENNReal.ofReal_ofNat]; exact Lp.memLp u) + rw [ENNReal.ofReal_ofNat] at h + calc eLpNorm (beurlingL2 u) 2 volume ≤ beurlingPowNorm 1 2 * eLpNorm u 2 volume := h + _ ≤ 1 * eLpNorm u 2 volume := by gcongr; exact beurlingPowNorm_one_two_le + _ = eLpNorm u 2 volume := one_mul _ + +/-- `eLpNorm_beurlingL2_le` for a function `w ∈ L² ∩ L^p`, `1 ≤ p < ∞`: +`‖𝓑 w‖_p ≤ ‖𝓑‖_p ‖w‖_p`. -/ +theorem eLpNorm_beurlingL2_toLp_le {p : ℝ} (hp : 1 ≤ p) {w : ℂ → ℂ} (hw : MemLp w 2 volume) + (hwp : MemLp w (ENNReal.ofReal p) volume) : + eLpNorm (beurlingL2 (hw.toLp w)) (ENNReal.ofReal p) volume ≤ + beurlingPowNorm 1 p * eLpNorm w (ENNReal.ofReal p) volume := by + have h := eLpNorm_beurlingL2_le hp (hw.toLp w) (hwp.ae_eq hw.coeFn_toLp.symm) + rwa [eLpNorm_congr_ae hw.coeFn_toLp] at h + +/-! ### `𝓑 (∂_zbar g) = ∂g` -/ + +/-- A continuous linear map commutes with mollification: `L ((ρ ⋆ f) z) = (ρ ⋆ (L ∘ f)) z`. -/ +private lemma bl2_map_convolution {E' F' : Type*} [NormedAddCommGroup E'] [NormedSpace ℝ E'] + [CompleteSpace E'] [NormedAddCommGroup F'] [NormedSpace ℝ F'] [CompleteSpace F'] + (L : E' →L[ℝ] F') (φ : ContDiffBump (0 : ℂ)) {f : ℂ → E'} (hf : LocallyIntegrable f volume) + (z : ℂ) : + L ((φ.normed volume ⋆[lsmul ℝ ℝ] f) z) = + (φ.normed volume ⋆[lsmul ℝ ℝ] (fun w => L (f w))) z := by + have hex : ConvolutionExistsAt (φ.normed volume) f z (lsmul ℝ ℝ) volume := + φ.hasCompactSupport_normed.convolutionExists_left _ φ.continuous_normed hf z + rw [convolution_def, convolution_def, ← L.integral_comp_comm hex] + simp only [lsmul_apply, map_smul] + +/-- `∂_zbar`, as a continuous real-linear functional on the real-linear maps of `ℂ`. -/ +private def bl2_dzbarL : (ℂ →L[ℝ] ℂ) →L[ℝ] ℂ := + (2⁻¹ : ℂ) • (ContinuousLinearMap.apply ℝ ℂ (1 : ℂ) + + Complex.I • ContinuousLinearMap.apply ℝ ℂ Complex.I) + +/-- `∂`, as a continuous real-linear functional on the real-linear maps of `ℂ`. -/ +private def bl2_dzL : (ℂ →L[ℝ] ℂ) →L[ℝ] ℂ := + (2⁻¹ : ℂ) • (ContinuousLinearMap.apply ℝ ℂ (1 : ℂ) - + Complex.I • ContinuousLinearMap.apply ℝ ℂ Complex.I) + +/-- `bl2_dzbarL A = ∂_zbar A`. -/ +private lemma bl2_dzbarL_apply (A : ℂ →L[ℝ] ℂ) : bl2_dzbarL A = dzbarPart A := by + simp [bl2_dzbarL, dzbarPart, smul_eq_mul, mul_add] + +/-- `bl2_dzL A = ∂A`. -/ +private lemma bl2_dzL_apply (A : ℂ →L[ℝ] ℂ) : bl2_dzL A = dzPart A := by + simp [bl2_dzL, dzPart, smul_eq_mul, mul_sub] + +/-- **`𝓑 (∂_zbar g) = ∂g`** for a compactly supported `g ∈ L² (ℂ)` with a weak derivative `Dg ∈ L² +(ℂ)` +on the whole plane. -/ +theorem beurlingL2_dzbar {g : ℂ → ℂ} {Dg : ℂ → ℂ →L[ℝ] ℂ} (hgc : HasCompactSupport g) + (hg : MemLp g 2 volume) (hDg : MemLp Dg 2 volume) (h : HasWeakFDerivOn Set.univ g Dg) : + beurlingL2 ((memLp_dzbarPart hDg).toLp _) =ᵐ[volume] fun z => dzPart (Dg z) := by + have hgl : LocallyIntegrable g volume := hg.locallyIntegrable one_le_two + have hDgl : LocallyIntegrable Dg volume := hDg.locallyIntegrable one_le_two + set ρ : ℕ → ℂ → ℝ := fun n => (bl2_bump n).normed volume + -- `g_n = ρ_n ⋆ g`, a Schwartz function + have hsm : ∀ n, ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (ρ n ⋆[lsmul ℝ ℝ] g) := fun n => + (bl2_bump n).hasCompactSupport_normed.contDiff_convolution_left (lsmul ℝ ℝ) + (bl2_bump n).contDiff_normed hgl + have hcs : ∀ n, HasCompactSupport (ρ n ⋆[lsmul ℝ ℝ] g) := fun n => + (bl2_bump n).hasCompactSupport_normed.convolution _ hgc + set G : ℕ → 𝓢(ℂ, ℂ) := fun n => (hcs n).toSchwartzMap (hsm n) + have hG : ∀ n, (G n : ℂ → ℂ) = ρ n ⋆[lsmul ℝ ℝ] g := fun n => rfl + -- `D g_n = ρ_n ⋆ Dg` + have hD : ∀ n z, fderiv ℝ (G n) z = (ρ n ⋆[lsmul ℝ ℝ] Dg) z := fun n z => by + rw [hG] + exact (hasFDerivAt_convolution_of_hasWeakFDerivOn (bl2_bump n) hgl hDgl h z).fderiv + have hdzbar : ∀ n, (dzbarCLM (G n) : ℂ → ℂ) = + ρ n ⋆[lsmul ℝ ℝ] (fun w => dzbarPart (Dg w)) := fun n => funext fun z => by + rw [dzbarCLM_apply, ← dzbarPart_fderiv, hD, ← bl2_dzbarL_apply, + bl2_map_convolution _ _ hDgl] + simp only [bl2_dzbarL_apply] + rfl + have hdz : ∀ n, (dzCLM (G n) : ℂ → ℂ) = + ρ n ⋆[lsmul ℝ ℝ] (fun w => dzPart (Dg w)) := fun n => funext fun z => by + rw [dzCLM_apply, ← dzPart_fderiv, hD, ← bl2_dzL_apply, bl2_map_convolution _ _ hDgl] + simp only [bl2_dzL_apply] + rfl + -- `∂_zbar g_n → ∂_zbar g` in `L²` + have h1 : Tendsto (fun n => (dzbarCLM (G n)).toLp 2 volume) atTop + (𝓝 ((memLp_dzbarPart hDg).toLp _)) := by + rw [Lp.tendsto_Lp_iff_tendsto_eLpNorm] + refine (tendsto_eLpNorm_convolution_sub bl2_tendsto_rOut one_le_two ENNReal.ofNat_ne_top + (memLp_dzbarPart hDg)).congr fun n => eLpNorm_congr_ae ?_ + filter_upwards [(dzbarCLM (G n)).coeFn_toLp 2 volume] with x hx + rw [Pi.sub_apply, Pi.sub_apply, hx, hdzbar] + -- `𝓑 (∂_zbar g_n) = ∂g_n → ∂g` in `L²` + have h2 : Tendsto (fun n => beurlingL2 ((dzbarCLM (G n)).toLp 2 volume)) atTop + (𝓝 ((memLp_dzPart hDg).toLp _)) := by + rw [Lp.tendsto_Lp_iff_tendsto_eLpNorm] + refine (tendsto_eLpNorm_convolution_sub bl2_tendsto_rOut one_le_two ENNReal.ofNat_ne_top + (memLp_dzPart hDg)).congr fun n => eLpNorm_congr_ae ?_ + have hB := beurlingPow_dzbarCLM_pow 1 (G n) + simp only [pow_one] at hB + filter_upwards [beurlingL2_toLp (dzbarCLM (G n))] with x hx + rw [Pi.sub_apply, Pi.sub_apply, hx, hB, hdz] + have h3 := (beurlingL2.continuous.tendsto _).comp h1 + rw [tendsto_nhds_unique h3 h2] + exact (memLp_dzPart hDg).coeFn_toLp + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/LowerBound.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/LowerBound.lean new file mode 100644 index 0000000000..d29e645b03 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/LowerBound.lean @@ -0,0 +1,380 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Duality +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.TestFunctions.One + +/-! +# Dragičević's lower bounds for `‖𝓑‖_p` and `‖𝓑²‖_p` + +With the Pochhammer symbol `(a)_n = a (a + 1) ⋯ (a + n − 1)` and `q = p / (p − 1)`, Dragičević's +constant is `κ_n (p) = (1/q)_n / (1/p)_n` (`HarmonicAnalysis.beurlingKappa`); `κ₁ (p) = p − 1` +and `κ₂ (p) = (p − 1)(2p − 1) / (p + 1)`. Let `p* = max (p, q)` (`HarmonicAnalysis.pStar`). + +## Main results + +* `HarmonicAnalysis.tendsto_eLpNorm_div_of_lintegral_ball`: the limit of the ratio of the norms in + Dragičević's proof, from the integrals over the unit disc and those outside it. +* `HarmonicAnalysis.tendsto_eLpNorm_div_testFunOne`, `HarmonicAnalysis.tendsto_eLpNorm_div_testFun` + (Dragičević's limit, `n = 1` and `n = 2`): for the test functions + `f_{1,α} (z) = z |z|^{−2α} g₂ (|z|)` and `f_{2,α} (z) = z² |z|^{−2α} g₂ (|z|)`, + `‖∂f_{1,α}‖_p / ‖∂_zbar f_{1,α}‖_p → κ₁ (p)` and `‖∂²f_{2,α}‖_p / ‖∂_zbar²f_{2,α}‖_p → κ₂ (p)` as + `α → 1/p` from below. On the unit disc, `f_{1,α}` is the function `f_α` of + Baernstein–Montgomery-Smith (1999, §1), and the limit for `n = 1` is theirs. +* `HarmonicAnalysis.eLpNorm_div_le_beurlingPowNorm_one`, + `HarmonicAnalysis.eLpNorm_div_le_beurlingPowNorm_two`: + `‖∂^n f_{n,α}‖_p / ‖∂_zbar^n f_{n,α}‖_p ≤ ‖𝓑^n‖_p` for `0 < α < 1/p`, by Schwartz approximations + of + `f_{n,α}` and `𝓑^n (∂_zbar^n φ) = ∂^n φ` for these. +* `HarmonicAnalysis.beurlingKappa_one_le_beurlingPowNorm_one`, + `HarmonicAnalysis.beurlingKappa_two_le_beurlingPowNorm_two` (Dragičević's theorem, `n = 1` and + `n = 2`): `κ_n (p) ≤ ‖𝓑^n‖_p` for `1 < p < ∞`; for `n = 1`, `p − 1 ≤ ‖𝓑‖_p` + (`HarmonicAnalysis.sub_one_le_beurlingPowNorm_one`). +* `HarmonicAnalysis.beurlingKappa_two_pStar_le_beurlingPowNorm_two`: `κ₂ (p*) ≤ ‖𝓑²‖_p` for + `1 < p < ∞`. Dragičević's Theorem 1.1 is for `p > 2`, and the article does not state the bound + with `κ_n` for `p < 2`; that case is `‖𝓑²‖_p = ‖𝓑²‖_q` + (`HarmonicAnalysis.beurlingPowNorm_conjExponent`), the reduction to `p ≥ 2` of + Carbonaro–Dragičević–Kovač §1.3.1 (for `R^k`, `𝓑 = R²`). The article recalls (p. 463), and the + lecture notes' Corollary 4.8 states, the weaker asymptotic form + `‖T^n‖_p ≳ n^{1−2/p*}(p* − 1)` for every `p`. +* Corollaries: `p* − 1 < ‖𝓑²‖_p` for `p ≠ 2` + (`HarmonicAnalysis.pStar_sub_one_lt_beurlingPowNorm_two`), since + `κ₂ (p*) − (p* − 1) = (p* − 1)(p* − 2) / (p* + 1) > 0`; and `21/5 = κ₂ (4) ≤ ‖𝓑²‖₄` + (`HarmonicAnalysis.twentyOne_div_five_le_beurlingPowNorm_two_four`). + +Dragičević's Theorem 1.1 is `‖T^n‖_p ≥ κ_n (p)` for every `n` and `p > 2` (the article's standing +assumption, p. 464), where it is the informative bound; the same argument gives +`κ_n (p) ≤ ‖𝓑^n‖_p` for every `p > 1`. Only `n = 1` and `n = 2` are proved here; general `n` is a +planned extension. + +The proof is the article's (pp. 466–467; repeated in the lecture notes, Proposition 4.2), with its +test functions (`HarmonicAnalysis.BeurlingAhlfors.testFun`; for `n = 1`, +`HarmonicAnalysis.BeurlingAhlfors.testFunOne`, with the cutoff `g₂` in place of the article's +example `g₁`, which is not `C¹` at `1`): explicit integrals over the unit disc, of order +`(1 − αp)⁻¹`, and integrals outside it that stay bounded, in the identity (2.1) for the ratio of +the `p`-th powers of the norms. The norm `‖𝓑^n‖_p` is a supremum over Schwartz functions, and +`f_{n,α}` is not one. The article asserts without proof that `f_{n,α}` "belongs to `W^{n,p}`, +which ensures that `T^n (∂_zbar^n f) = ∂^n f`" (p. 465; lecture notes, §4.1 and Exercise 4.1; for +`n = 1`, Exercise 2.19, whose hint is to approximate by smooth functions). What is used of it, +`‖∂^n f‖_p ≤ ‖𝓑^n‖_p ‖∂_zbar^n f‖_p`, is proved here by the density step +`HarmonicAnalysis.div_le_beurlingPowNorm_of_tendsto`, applied to Schwartz approximations of +`f_{n,α}` in `W^{n,p}` (`HarmonicAnalysis.BeurlingAhlfors.exists_schwartz_tendsto_testFunOne`, +`HarmonicAnalysis.BeurlingAhlfors.exists_schwartz_tendsto_testFun`). + +## References + +* O. Dragičević, *Some remarks on the `L^p` estimates for powers of the Ahlfors–Beurling + operator*, Arch. Math. 96 (2011), 463–471: Theorem 1.1 (p. 465), proof pp. 466–467. +* O. Dragičević, *Analysis of the Ahlfors–Beurling transform*, lecture notes, + [arXiv:2109.04555](https://arxiv.org/abs/2109.04555): Proposition 4.2 (Theorem 1.1 of the + previous reference, with the same proof), Exercises 2.19 and 4.1. +* A. Carbonaro, O. Dragičević, V. Kovač, *Sharp `L^p` estimates of powers of the complex Riesz + transform*, Math. Ann. 386 (2023), 1081–1125, + [arXiv:2109.08369](https://arxiv.org/abs/2109.08369), §1.3.1 and §2.1. +* A. Baernstein II and S. J. Montgomery-Smith, *Some conjectures about integral means of `∂f` and + `∂_zbar f`*, in: Complex analysis and differential equations (Uppsala, 1997), ed. C. Kiselman, + Acta + Univ. Upsaliensis C 64 (1999), 92–109, [arXiv:math/9709215](https://arxiv.org/abs/math/9709215), + §1. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped ENNReal + +namespace HarmonicAnalysis + +open BeurlingAhlfors + +/-- `κ₁ (p) = p − 1`. -/ +theorem beurlingKappa_one {p : ℝ} (hp : p ≠ 0) : beurlingKappa 1 p = p - 1 := by + simp only [beurlingKappa, ascPochhammer_one, Polynomial.eval_X] + field_simp + +/-- `κ₂ (p) = (p − 1)(2p − 1) / (p + 1)`. -/ +theorem beurlingKappa_two {p : ℝ} (hp : 0 < p) : + beurlingKappa 2 p = (p - 1) * (2 * p - 1) / (p + 1) := by + simp only [beurlingKappa, ascPochhammer_succ_eval, ascPochhammer_zero, Polynomial.eval_one, + one_mul] + field_simp + ring + +/-- `κ₂ (4) = 21/5`. -/ +theorem beurlingKappa_two_four : beurlingKappa 2 4 = 21 / 5 := by + simp only [beurlingKappa, ascPochhammer_succ_eval, ascPochhammer_zero, Polynomial.eval_one, + one_mul] + norm_num + +theorem pStar_of_two_le {p : ℝ} (hp : 2 ≤ p) : pStar p = p := + max_eq_left (by rw [div_le_iff₀ (by linarith)]; nlinarith) + +theorem pStar_of_lt_two {p : ℝ} (hp : 1 < p) (hp2 : p < 2) : pStar p = p / (p - 1) := + max_eq_right (by rw [le_div_iff₀ (by linarith)]; nlinarith) + +theorem two_lt_pStar {p : ℝ} (hp : 1 < p) (hp2 : p ≠ 2) : 2 < pStar p := by + rcases lt_or_gt_of_ne hp2 with h | h + · rw [pStar_of_lt_two hp h, lt_div_iff₀ (by linarith)] + linarith + · rw [pStar_of_two_le h.le] + exact h + +/-! ### The limit of the ratio -/ + +/-- `αp < 1` for `0 < α < 1/p`. -/ +theorem mul_lt_one_of_mem_Ioo_inv {p α : ℝ} (hp : 0 < p) (hα : α ∈ Set.Ioo 0 p⁻¹) : α * p < 1 := + calc α * p < p⁻¹ * p := mul_lt_mul_of_pos_right hα.2 hp + _ = 1 := inv_mul_cancel₀ hp.ne' + +/-- The limit in Dragičević's proof of Theorem 1.1 (pp. 466–467, with the identity (2.1)): if, for +`0 < α < 1/p`, `∫_Δ |u_α|^p = π / (1 − αp) a (α)^p` and `∫_Δ |v_α|^p = π / (1 − αp) b (α)^p` on +the unit disc `Δ`, and the integrals of `|u_α|^p` and `|v_α|^p` outside `Δ` stay bounded, then +`‖u_α‖_p / ‖v_α‖_p → a (1/p) / b (1/p)` as `α → 1/p` from below (`a`, `b` continuous, `a ≥ 0` +and `b > 0` on `(0, 1/p]`): the integrals over `Δ` grow like `(1 − αp)⁻¹`, and the others +disappear in the ratio. -/ +theorem tendsto_eLpNorm_div_of_lintegral_ball {p : ℝ} (hp : 1 < p) {u v : ℝ → ℂ → ℂ} + {a b : ℝ → ℝ} (hu : ∀ α, Measurable (u α)) (hv : ∀ α, Measurable (v α)) + (ha : Continuous a) (hb : Continuous b) (ha0 : ∀ α ∈ Set.Ioc 0 p⁻¹, 0 ≤ a α) + (hb0 : ∀ α ∈ Set.Ioc 0 p⁻¹, 0 < b α) + (huB : ∀ α ∈ Set.Ioo 0 p⁻¹, ∫⁻ z in Metric.ball (0 : ℂ) 1, ‖u α z‖ₑ ^ p = + ENNReal.ofReal (Real.pi / (1 - α * p) * a α ^ p)) + (hvB : ∀ α ∈ Set.Ioo 0 p⁻¹, ∫⁻ z in Metric.ball (0 : ℂ) 1, ‖v α z‖ₑ ^ p = + ENNReal.ofReal (Real.pi / (1 - α * p) * b α ^ p)) + (hC : ∃ C : ℝ, ∀ α ∈ Set.Ioo 0 p⁻¹, + ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, ‖u α z‖ₑ ^ p ≤ ENNReal.ofReal C ∧ + ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, ‖v α z‖ₑ ^ p ≤ ENNReal.ofReal C) : + Tendsto (fun α => eLpNorm (u α) (ENNReal.ofReal p) volume / + eLpNorm (v α) (ENNReal.ofReal p) volume) + (𝓝[<] p⁻¹) (𝓝 (ENNReal.ofReal (a p⁻¹ / b p⁻¹))) := by + have hp0 : 0 < p := zero_lt_one.trans hp + have hB : MeasurableSet (Metric.ball (0 : ℂ) 1) := Metric.isOpen_ball.measurableSet + -- the integrals over `Δᶜ`, bounded uniformly in `α` + obtain ⟨C, hC⟩ := hC + obtain ⟨iOut, hiOut⟩ : ∃ g : ℝ → ℝ, ∀ α, g α = + (∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, ‖u α z‖ₑ ^ p).toReal := + ⟨_, fun _ => rfl⟩ + obtain ⟨jOut, hjOut⟩ : ∃ g : ℝ → ℝ, ∀ α, g α = + (∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, ‖v α z‖ₑ ^ p).toReal := + ⟨_, fun _ => rfl⟩ + -- the article's (2.1): the ratio of the `p`-th powers of the norms, with numerator and + -- denominator multiplied by `1 − αp` + have heq : ∀ α ∈ Set.Ioo 0 p⁻¹, + eLpNorm (u α) (ENNReal.ofReal p) volume / eLpNorm (v α) (ENNReal.ofReal p) volume = + ENNReal.ofReal (((Real.pi * a α ^ p + (1 - α * p) * iOut α) / + (Real.pi * b α ^ p + (1 - α * p) * jOut α)) ^ (1 / p)) := by + intro α hα + obtain ⟨hI, hJ⟩ := hC α hα + have hε : 0 < 1 - α * p := by linarith [mul_lt_one_of_mem_Ioo_inv hp0 hα] + have hα' : α ∈ Set.Ioc 0 p⁻¹ := Set.Ioo_subset_Ioc_self hα + have ha : 0 ≤ Real.pi / (1 - α * p) * a α ^ p := + mul_nonneg (div_pos Real.pi_pos hε).le (Real.rpow_nonneg (ha0 α hα') _) + have hb : 0 < Real.pi / (1 - α * p) * b α ^ p := + mul_pos (div_pos Real.pi_pos hε) (Real.rpow_pos_of_pos (hb0 α hα') _) + have hp' : ENNReal.ofReal p ≠ 0 := by simpa using hp0 + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal hp' ENNReal.ofReal_ne_top + (hu α).aestronglyMeasurable, + eLpNorm_eq_lintegral_rpow_eNorm_toReal hp' ENNReal.ofReal_ne_top + (hv α).aestronglyMeasurable, + ENNReal.toReal_ofReal hp0.le, ← lintegral_add_compl (μ := volume) _ hB, + ← lintegral_add_compl (μ := volume) _ hB, huB α hα, hvB α hα, + ← ENNReal.ofReal_toReal (ne_top_of_le_ne_top ENNReal.ofReal_ne_top hI), + ← ENNReal.ofReal_toReal (ne_top_of_le_ne_top ENNReal.ofReal_ne_top hJ), + ← ENNReal.ofReal_add ha ENNReal.toReal_nonneg, + ← ENNReal.ofReal_add hb.le ENNReal.toReal_nonneg, + ← ENNReal.div_rpow_of_nonneg _ _ (one_div_nonneg.2 hp0.le), + ← ENNReal.ofReal_div_of_pos (add_pos_of_pos_of_nonneg hb ENNReal.toReal_nonneg), + ENNReal.ofReal_rpow_of_nonneg (div_nonneg (add_nonneg ha ENNReal.toReal_nonneg) + (add_nonneg hb.le ENNReal.toReal_nonneg)) (one_div_nonneg.2 hp0.le)] + congr 2 + rw [hiOut, hjOut] + field_simp + -- as `α → 1/p`, `1 − αp → 0`, and the integrals over `Δᶜ` disappear + have hev : ∀ᶠ α in 𝓝[<] p⁻¹, α ∈ Set.Ioo 0 p⁻¹ := Ioo_mem_nhdsLT (inv_pos.2 hp0) + have hε : Tendsto (fun α : ℝ => 1 - α * p) (𝓝[<] p⁻¹) (𝓝 0) := by + have h : Tendsto (fun α : ℝ => 1 - α * p) (𝓝 p⁻¹) (𝓝 (1 - p⁻¹ * p)) := + (continuous_const.sub (continuous_id.mul continuous_const)).tendsto p⁻¹ + rw [inv_mul_cancel₀ hp0.ne', sub_self] at h + exact h.mono_left nhdsWithin_le_nhds + have hvanish : ∀ g : ℝ → ℝ, + (∀ α ∈ Set.Ioo 0 p⁻¹, 0 ≤ g α ∧ g α ≤ (ENNReal.ofReal C).toReal) → + Tendsto (fun α => (1 - α * p) * g α) (𝓝[<] p⁻¹) (𝓝 0) := by + intro g hg + have h0 := hε.mul_const (ENNReal.ofReal C).toReal + rw [zero_mul] at h0 + refine squeeze_zero' ?_ ?_ h0 + · filter_upwards [hev] with α hα + exact mul_nonneg (by linarith [mul_lt_one_of_mem_Ioo_inv hp0 hα]) (hg α hα).1 + · filter_upwards [hev] with α hα + exact mul_le_mul_of_nonneg_left (hg α hα).2 + (by linarith [mul_lt_one_of_mem_Ioo_inv hp0 hα]) + have hi := hvanish iOut fun α hα => ⟨(hiOut α).symm ▸ ENNReal.toReal_nonneg, + (hiOut α).symm ▸ ENNReal.toReal_mono ENNReal.ofReal_ne_top (hC α hα).1⟩ + have hj := hvanish jOut fun α hα => ⟨(hjOut α).symm ▸ ENNReal.toReal_nonneg, + (hjOut α).symm ▸ ENNReal.toReal_mono ENNReal.ofReal_ne_top (hC α hα).2⟩ + have hcont : ∀ g : ℝ → ℝ, Continuous g → + Tendsto (fun α => Real.pi * g α ^ p) (𝓝[<] p⁻¹) (𝓝 (Real.pi * g p⁻¹ ^ p)) := fun g hg => + ((continuous_const.mul (hg.rpow_const fun _ => Or.inr hp0.le)).tendsto p⁻¹).mono_left + nhdsWithin_le_nhds + have hp1 : p⁻¹ ∈ Set.Ioc 0 p⁻¹ := ⟨inv_pos.2 hp0, le_rfl⟩ + have ha1 := ha0 _ hp1 + have hb1 := hb0 _ hp1 + have hlim := (((hcont a ha).add hi).div ((hcont b hb).add hj) (by + rw [add_zero] + exact (mul_pos Real.pi_pos (Real.rpow_pos_of_pos hb1 p)).ne')).rpow_const + (Or.inr (one_div_nonneg.2 hp0.le)) + -- the limit is `a (1/p) / b (1/p)` + have hval : ((Real.pi * a p⁻¹ ^ p + 0) / (Real.pi * b p⁻¹ ^ p + 0)) ^ (1 / p) = + a p⁻¹ / b p⁻¹ := by + rw [add_zero, add_zero, mul_div_mul_left _ _ Real.pi_ne_zero, ← Real.div_rpow ha1 hb1.le, + ← Real.rpow_mul (div_nonneg ha1 hb1.le), mul_one_div_cancel hp0.ne', Real.rpow_one] + rw [hval] at hlim + refine (ENNReal.tendsto_ofReal hlim).congr' ?_ + filter_upwards [hev] with α hα + exact (heq α hα).symm + +/-! ### `n = 1` -/ + +/-- Dragičević's limit (Theorem 1.1, for `p > 2`), `n = 1`: +`‖∂f_{1,α}‖_p / ‖∂_zbar f_{1,α}‖_p → κ₁ (p) = p − 1` as `α → 1/p` from below, for `1 < p < ∞`, by +the article's argument (`HarmonicAnalysis.tendsto_eLpNorm_div_of_lintegral_ball`). It is the limit +that Baernstein–Montgomery-Smith (1999, §1) compute for their `f_α`, equal to `f_{1,α}` on the unit +disc and to `1/(conj z)` outside it. -/ +theorem tendsto_eLpNorm_div_testFunOne {p : ℝ} (hp : 1 < p) : + Tendsto (fun α : ℝ => + eLpNorm (dz (testFunOne α)) (ENNReal.ofReal p) volume / + eLpNorm (dzbar (testFunOne α)) (ENNReal.ofReal p) volume) + (𝓝[<] p⁻¹) (𝓝 (ENNReal.ofReal (beurlingKappa 1 p))) := by + have hp0 : 0 < p := zero_lt_one.trans hp + have hpi : p⁻¹ < 1 := inv_lt_one_of_one_lt₀ hp + obtain ⟨C, hC⟩ := exists_bound_testFunOne_compl_ball hp0 + have h := tendsto_eLpNorm_div_of_lintegral_ball hp (u := fun α => dz (testFunOne α)) + (v := fun α => dzbar (testFunOne α)) (a := fun α => 1 - α) (b := fun α => α) + (fun _ => measurable_dz _) (fun _ => measurable_dzbar _) (by fun_prop) (by fun_prop) + (fun α hα => by linarith [hα.2]) (fun α hα => hα.1) + (fun α hα => lintegral_dz_testFunOne_ball hp hα.1 (mul_lt_one_of_mem_Ioo_inv hp0 hα)) + (fun α hα => lintegral_dzbar_testFunOne_ball hp hα.1 (mul_lt_one_of_mem_Ioo_inv hp0 hα)) + ⟨C, fun α hα => hC α ⟨hα.1.le, (hα.2.trans hpi).le⟩⟩ + rwa [show (1 - p⁻¹) / p⁻¹ = beurlingKappa 1 p by + rw [beurlingKappa_one hp0.ne'] + field_simp] at h + +/-- `‖∂f_{1,α}‖_p / ‖∂_zbar f_{1,α}‖_p ≤ ‖𝓑‖_p` for `1 < p < ∞` and `0 < α < 1/p`: Schwartz +approximations of `f_{1,α}` and `𝓑 ∂_zbar = ∂` on Schwartz functions. -/ +theorem eLpNorm_div_le_beurlingPowNorm_one {p α : ℝ} (hp : 1 < p) (hα0 : 0 < α) + (hα : α * p < 1) : + eLpNorm (dz (testFunOne α)) (ENNReal.ofReal p) volume / + eLpNorm (dzbar (testFunOne α)) (ENNReal.ofReal p) volume ≤ + beurlingPowNorm 1 p := by + obtain ⟨φ, hu, hv⟩ := exists_schwartz_tendsto_testFunOne hp.le hα0 hα + exact div_le_beurlingPowNorm_of_tendsto 1 hp.le hu hv + +/-- Dragičević's lower bound (Theorem 1.1, for `p > 2`), the case `n = 1`: +`κ₁ (p) ≤ ‖𝓑‖_{L^p}` for `1 < p < ∞`. -/ +theorem beurlingKappa_one_le_beurlingPowNorm_one {p : ℝ} (hp : 1 < p) : + ENNReal.ofReal (beurlingKappa 1 p) ≤ beurlingPowNorm 1 p := by + have hp0 : 0 < p := zero_lt_one.trans hp + refine le_of_tendsto (tendsto_eLpNorm_div_testFunOne hp) ?_ + filter_upwards [Ioo_mem_nhdsLT (inv_pos.mpr hp0)] with α hα + exact eLpNorm_div_le_beurlingPowNorm_one hp hα.1 (mul_lt_one_of_mem_Ioo_inv hp0 hα) + +/-- `p − 1 ≤ ‖𝓑‖_{L^p}` for `1 < p < ∞`: Dragičević's lower bound for `n = 1`, +`κ₁ (p) = p − 1`. -/ +theorem sub_one_le_beurlingPowNorm_one {p : ℝ} (hp : 1 < p) : + ENNReal.ofReal (p - 1) ≤ beurlingPowNorm 1 p := by + rw [← beurlingKappa_one (zero_lt_one.trans hp).ne'] + exact beurlingKappa_one_le_beurlingPowNorm_one hp + +/-! ### `n = 2` -/ + +/-- Dragičević's limit (Theorem 1.1, for `p > 2`), `n = 2`: +`‖∂²f_{2,α}‖_p / ‖∂_zbar²f_{2,α}‖_p → κ₂ (p)` as `α → 1/p` from below, for `1 < p < ∞`. -/ +theorem tendsto_eLpNorm_div_testFun {p : ℝ} (hp : 1 < p) : + Tendsto (fun α : ℝ => + eLpNorm (dz (dz (testFun 2 α))) (ENNReal.ofReal p) volume / + eLpNorm (dzbar (dzbar (testFun 2 α))) (ENNReal.ofReal p) volume) + (𝓝[<] p⁻¹) (𝓝 (ENNReal.ofReal (beurlingKappa 2 p))) := by + have hp0 : 0 < p := zero_lt_one.trans hp + have hpi : p⁻¹ < 1 := inv_lt_one_of_one_lt₀ hp + obtain ⟨C, hC⟩ := exists_bound_testFun_compl_ball hp0 + have h := tendsto_eLpNorm_div_of_lintegral_ball hp (u := fun α => dz (dz (testFun 2 α))) + (v := fun α => dzbar (dzbar (testFun 2 α))) (a := fun α => (2 - α) * (1 - α)) + (b := fun α => α * (α + 1)) (fun _ => measurable_dz _) (fun _ => measurable_dzbar _) + (by fun_prop) (by fun_prop) + (fun α hα => mul_nonneg (by linarith [hα.2]) (by linarith [hα.2])) + (fun α hα => mul_pos hα.1 (by linarith [hα.1])) + (fun α hα => lintegral_dz_dz_testFun_ball hp hα.1 (mul_lt_one_of_mem_Ioo_inv hp0 hα)) + (fun α hα => lintegral_dzbar_dzbar_testFun_ball hp hα.1 (mul_lt_one_of_mem_Ioo_inv hp0 hα)) + ⟨C, fun α hα => hC α ⟨hα.1.le, (hα.2.trans hpi).le⟩⟩ + rwa [show (2 - p⁻¹) * (1 - p⁻¹) / (p⁻¹ * (p⁻¹ + 1)) = beurlingKappa 2 p by + simp only [beurlingKappa, ascPochhammer_succ_eval, ascPochhammer_zero, Polynomial.eval_one, + one_mul] + push_cast + ring] at h + +/-- `‖∂²f_{2,α}‖_p / ‖∂_zbar²f_{2,α}‖_p ≤ ‖𝓑²‖_p` for `1 < p < ∞` and `0 < α < 1/p`: Schwartz +approximations of `f_{2,α}` and `𝓑² ∂_zbar² = ∂²` on Schwartz functions. -/ +theorem eLpNorm_div_le_beurlingPowNorm_two {p α : ℝ} (hp : 1 < p) (hα0 : 0 < α) + (hα : α * p < 1) : + eLpNorm (dz (dz (testFun 2 α))) (ENNReal.ofReal p) volume / + eLpNorm (dzbar (dzbar (testFun 2 α))) (ENNReal.ofReal p) volume ≤ + beurlingPowNorm 2 p := by + obtain ⟨φ, hu, hv⟩ := exists_schwartz_tendsto_testFun hp.le hα0 hα + exact div_le_beurlingPowNorm_of_tendsto 2 hp.le hu hv + +/-- Dragičević's lower bound (Theorem 1.1, for `p > 2`), the case `n = 2`: +`κ₂ (p) ≤ ‖𝓑²‖_{L^p}` for `1 < p < ∞`. -/ +theorem beurlingKappa_two_le_beurlingPowNorm_two {p : ℝ} (hp : 1 < p) : + ENNReal.ofReal (beurlingKappa 2 p) ≤ beurlingPowNorm 2 p := by + refine le_of_tendsto (tendsto_eLpNorm_div_testFun hp) ?_ + filter_upwards [Ioo_mem_nhdsLT (inv_pos.mpr (zero_lt_one.trans hp))] with α hα + refine eLpNorm_div_le_beurlingPowNorm_two hp hα.1 ?_ + have hp0 : 0 < p := zero_lt_one.trans hp + calc α * p < p⁻¹ * p := mul_lt_mul_of_pos_right hα.2 hp0 + _ = 1 := inv_mul_cancel₀ hp0.ne' + +/-- `κ₂ (p*) ≤ ‖𝓑²‖_{L^p}` for `1 < p < ∞`: for `p < 2`, `‖𝓑²‖_p = ‖𝓑²‖_q` +(Carbonaro–Dragičević–Kovač, §1.3.1) and `p* = q`. -/ +theorem beurlingKappa_two_pStar_le_beurlingPowNorm_two {p : ℝ} (hp : 1 < p) : + ENNReal.ofReal (beurlingKappa 2 (pStar p)) ≤ beurlingPowNorm 2 p := by + rcases le_or_gt 2 p with h2 | h2 + · rw [pStar_of_two_le h2] + exact beurlingKappa_two_le_beurlingPowNorm_two hp + · rw [pStar_of_lt_two hp h2, beurlingPowNorm_conjExponent 2 hp] + exact beurlingKappa_two_le_beurlingPowNorm_two (by rw [lt_div_iff₀ (by linarith)]; linarith) + +/-- `(p* − 1)(2p* − 1) / (p* + 1) ≤ ‖𝓑²‖_{L^p}` for `1 < p < ∞`. -/ +theorem le_beurlingPowNorm_two {p : ℝ} (hp : 1 < p) : + ENNReal.ofReal ((pStar p - 1) * (2 * pStar p - 1) / (pStar p + 1)) ≤ beurlingPowNorm 2 p := by + have h : 0 < pStar p := lt_of_lt_of_le (by linarith) (le_max_left p _) + rw [← beurlingKappa_two h] + exact beurlingKappa_two_pStar_le_beurlingPowNorm_two hp + +/-- `p* − 1 < κ₂ (p*)` for `1 < p < ∞`, `p ≠ 2`. -/ +theorem pStar_sub_one_lt_beurlingKappa_two {p : ℝ} (hp : 1 < p) (hp2 : p ≠ 2) : + pStar p - 1 < beurlingKappa 2 (pStar p) := by + have h := two_lt_pStar hp hp2 + rw [beurlingKappa_two (by linarith), lt_div_iff₀ (by linarith)] + nlinarith + +/-- `p* − 1 < ‖𝓑²‖_{L^p}` for `1 < p < ∞`, `p ≠ 2`. -/ +theorem pStar_sub_one_lt_beurlingPowNorm_two {p : ℝ} (hp : 1 < p) (hp2 : p ≠ 2) : + ENNReal.ofReal (pStar p - 1) < beurlingPowNorm 2 p := by + have h := pStar_sub_one_lt_beurlingKappa_two hp hp2 + refine lt_of_lt_of_le ?_ (beurlingKappa_two_pStar_le_beurlingPowNorm_two hp) + exact (ENNReal.ofReal_lt_ofReal_iff (by linarith [two_lt_pStar hp hp2])).mpr h + +/-- `21/5 ≤ ‖𝓑²‖_{L⁴}`. -/ +theorem twentyOne_div_five_le_beurlingPowNorm_two_four : + ENNReal.ofReal (21 / 5) ≤ beurlingPowNorm 2 4 := by + rw [← beurlingKappa_two_four] + exact beurlingKappa_two_le_beurlingPowNorm_two (by norm_num) + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Periodic.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Periodic.lean new file mode 100644 index 0000000000..dd5ca447de --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Periodic.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Smooth +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Transference + +/-! +# The Beurling–Ahlfors transform on smooth periodic functions + +On `ℤ²`-periodic functions on `ℝ² ≅ ℂ`, the powers `𝓑^k` of the Beurling–Ahlfors transform are +the Fourier multipliers `UnitAddTorus.periodicMultiplier` with the symbols `m (ν)^k`, +`m (ξ) = (conj ξ) / ξ` (`HarmonicAnalysis.beurlingSymbol`), `ν = n₀ + i n₁` +(`HarmonicAnalysis.latticePoint`): + +* the symbols are bounded, hence polynomially bounded + (`HarmonicAnalysis.isPolyBounded_beurlingSymbol_pow`); +* `𝓑 (∂_zbar g) = ∂g` for every smooth periodic `g` + (`HarmonicAnalysis.periodicMultiplier_beurlingSymbol_dzbarPi`), by comparing coefficients: + `m (ν) πi ν = πi (conj ν)`; +* on trigonometric polynomials, `𝓑^k` is the torus multiplier `HarmonicAnalysis.torusBeurlingPow` + (`HarmonicAnalysis.periodicMultiplier_trigPoly`). +-/ + +@[expose] public section + +noncomputable section + +open Complex +open scoped ComplexConjugate Real ContDiff + +namespace HarmonicAnalysis + +open UnitAddTorus + +/-- The symbols `m (n₀ + i n₁)^k` of `𝓑^k` on `𝕋²` are polynomially bounded (by `1`). -/ +theorem isPolyBounded_beurlingSymbol_pow (k : ℕ) : + IsPolyBounded fun n => beurlingSymbol (latticePoint n) ^ k := + isPolyBounded_of_norm_le (C := 1) fun n => by + rw [norm_pow] + exact pow_le_one₀ (norm_nonneg _) (norm_beurlingSymbol_le _) + +/-- `𝓑 (∂_zbar g) = ∂g` for every smooth `ℤ²`-periodic `g : ℝ² → ℂ`. -/ +theorem periodicMultiplier_beurlingSymbol_dzbarPi {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) + (hper : IsPeriodic g) : + periodicMultiplier (fun n => beurlingSymbol (latticePoint n)) (dzbarPi g) = dzPi g := by + have hβ : IsPolyBounded fun n => beurlingSymbol (latticePoint n) := by + simpa using isPolyBounded_beurlingSymbol_pow 1 + have hg1 : ContDiff ℝ 1 g := hg.of_le (by exact_mod_cast le_top) + have hd := contDiff_dzbarPi hg + have hdp := isPeriodic_dzbarPi hper + refine eq_of_cubeFourierCoeff_eq (contDiff_periodicMultiplier hβ hd hdp) + (isPeriodic_periodicMultiplier _ _) (contDiff_dzPi hg) (isPeriodic_dzPi hper) fun n => ?_ + rw [cubeFourierCoeff_periodicMultiplier hβ hd hdp, cubeFourierCoeff_dzbarPi hg1 hper, + cubeFourierCoeff_dzPi hg1 hper] + -- `m (ν) πi ν = πi (conj ν)` + rcases eq_or_ne (latticePoint n) 0 with h | h + · simp [h] + · rw [beurlingSymbol] + field_simp + +/-- On trigonometric polynomials, `𝓑^k` is the torus multiplier `torusBeurlingPow k`. -/ +theorem periodicMultiplier_trigPoly (k : ℕ) (c : (Fin 2 → ℤ) →₀ ℂ) : + periodicMultiplier (fun n => beurlingSymbol (latticePoint n) ^ k) + (fun x => trigPoly c (ofPi x)) = + fun x => torusBeurlingPow k c (ofPi x) := by + have e : (fun x => trigPoly c (ofPi x)) = + fun x => ∑ n ∈ c.support, c n * mFourier n (ofPi x) := by + funext x + simp [trigPoly, Finsupp.sum] + rw [e, periodicMultiplier_sum_mFourier] + funext x + simp [torusBeurlingPow, torusMultiplier, Finsupp.sum] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Regularity.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Regularity.lean new file mode 100644 index 0000000000..4f42a8b3a8 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Regularity.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Basic +import Mathlib.Analysis.Fourier.FourierTransformDeriv +import Mathlib.Analysis.Fourier.RiemannLebesgueLemma + +/-! +# Regularity of the Beurling–Ahlfors transform of a Schwartz function + +For a Schwartz function `g`, `𝓑 g = 𝓕⁻¹ F` with `F (ξ) = m (ξ) 𝓕 g (ξ)`, `m (ξ) = (conj ξ) / ξ`. +It is +not in general a Schwartz function (`m` is discontinuous at `0`), but `|m| ≤ 1` makes `F` and +`ξ ↦ |ξ| F (ξ)` integrable, and that is all the proofs below use. + +## Main results + +* `HarmonicAnalysis.differentiable_beurlingPow_one`: `𝓑 g` is real-differentiable, by + differentiation under the integral sign (Mathlib's `Real.hasFDerivAt_fourier`, through + `𝓕⁻¹ F = 𝓕 (F (−·))`): `D (𝓑 g) (z) v = 𝓕⁻¹ (2πi ⟨ξ, v⟩ F) (z)`. +* `HarmonicAnalysis.dzbar_beurlingPow_one`: `∂_zbar (𝓑 g) = ∂g` pointwise. From the derivative, + `∂_zbar (𝓑 g) = 𝓕⁻¹ (π i ξ m (ξ) 𝓕 g) = 𝓕⁻¹ (π i (conj ξ) 𝓕 g) = 𝓕⁻¹ (𝓕 (∂g)) = ∂g`, by Fourier + inversion + for the Schwartz function `∂g`. +* `HarmonicAnalysis.tendsto_beurlingPow_one_cocompact`: `𝓑 g (z) → 0` as `z → ∞`, by the + Riemann–Lebesgue lemma for the integrable `F`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology VectorFourier +open scoped SchwartzMap FourierTransform Real ComplexConjugate RealInnerProductSpace + +namespace HarmonicAnalysis + +/-- `𝓑 g = 𝓕 (F (−·))` with `F = m 𝓕 g`, where `F (−·)` and `ξ ↦ |ξ| F (−ξ)` are integrable. -/ +private lemma beurlingPow_one_eq_fourier (g : 𝓢(ℂ, ℂ)) : + beurlingPow 1 (g : ℂ → ℂ) = 𝓕 (fun ξ => beurlingSymbol (-ξ) ^ 1 • 𝓕 (g : ℂ → ℂ) (-ξ)) ∧ + Integrable (fun ξ => beurlingSymbol (-ξ) ^ 1 • 𝓕 (g : ℂ → ℂ) (-ξ)) ∧ + Integrable (fun ξ : ℂ => ‖ξ‖ * ‖beurlingSymbol (-ξ) ^ 1 • 𝓕 (g : ℂ → ℂ) (-ξ)‖) := by + set F : ℂ → ℂ := fun ξ => beurlingSymbol ξ ^ 1 • 𝓕 (g : ℂ → ℂ) ξ + have hF : Integrable F := + integrable_smul_fourier (measurable_beurlingSymbol.pow_const 1) + ⟨1, fun ξ => by simpa using norm_beurlingSymbol_le ξ⟩ g + have hF' : Integrable (fun ξ : ℂ => ‖ξ‖ * ‖F ξ‖) := by + have h := (𝓕 g).integrable_pow_mul volume 1 + simp only [pow_one, SchwartzMap.fourier_coe] at h + refine h.mono (continuous_norm.aestronglyMeasurable.mul hF.1.norm) + (ae_of_all _ fun ξ => ?_) + simp only [norm_mul, norm_norm, F, smul_eq_mul, pow_one] + gcongr + calc ‖beurlingSymbol ξ‖ * ‖𝓕 (g : ℂ → ℂ) ξ‖ ≤ 1 * ‖𝓕 (g : ℂ → ℂ) ξ‖ := by + gcongr + exact norm_beurlingSymbol_le ξ + _ = _ := one_mul _ + refine ⟨?_, hF.comp_neg, ?_⟩ + · rw [beurlingPow, fourierMultiplier, Real.fourierInv_eq_fourier_comp_neg] + · simpa only [norm_neg] using hF'.comp_neg + +/-- `𝓑 g` is real-differentiable for a Schwartz function `g`. -/ +theorem differentiable_beurlingPow_one (g : 𝓢(ℂ, ℂ)) : + Differentiable ℝ (beurlingPow 1 (g : ℂ → ℂ)) := by + obtain ⟨hu, hF, hF'⟩ := beurlingPow_one_eq_fourier g + rw [hu] + exact Real.differentiable_fourier hF hF' + +/-- `m (ξ) ξ = (conj ξ)`, also at `ξ = 0`. -/ +private lemma beurlingSymbol_mul_self (ξ : ℂ) : beurlingSymbol ξ * ξ = conj ξ := by + rcases eq_or_ne ξ 0 with rfl | hξ + · simp + · exact div_mul_cancel₀ _ hξ + +/-- `∂_zbar (𝓑 g) = ∂g` pointwise, for a Schwartz function `g`: `D (𝓑 g) (z) v` is the inverse +Fourier transform of `2πi ⟨ξ, v⟩ F (ξ)`, so `∂_zbar (𝓑 g)` is that of +`π i ξ m (ξ) 𝓕 g (ξ) = π i (conj ξ) 𝓕 g (ξ) = 𝓕 (∂g) (ξ)`. -/ +theorem dzbar_beurlingPow_one (g : 𝓢(ℂ, ℂ)) (z : ℂ) : + dzbar (beurlingPow 1 (g : ℂ → ℂ)) z = dz (g : ℂ → ℂ) z := by + obtain ⟨hu, hF, hF'⟩ := beurlingPow_one_eq_fourier g + set F : ℂ → ℂ := fun ξ => beurlingSymbol (-ξ) ^ 1 • 𝓕 (g : ℂ → ℂ) (-ξ) with hFdef + set G := fourierSMulRight (innerSL ℝ) F + have hG : Integrable G := by + refine (hF'.const_mul (2 * π * ‖(innerSL ℝ : ℂ →L[ℝ] ℂ →L[ℝ] ℝ)‖)).mono' + hF.1.fourierSMulRight (ae_of_all _ fun v => ?_) + rw [← mul_assoc] + exact norm_fourierSMulRight_le _ _ _ + -- the derivative in the direction `a`: `D (𝓑 g) (z) a = 𝓕 (−2πi ⟨·, a⟩ F) (z)` + have hD : ∀ a : ℂ, fderiv ℝ (beurlingPow 1 (g : ℂ → ℂ)) z a = + ∫ v, 𝐞 (-⟪v, z⟫) • (-(2 * π * Complex.I) • ⟪v, a⟫ • F v) := fun a => by + rw [hu, (Real.hasFDerivAt_fourier hF hF' z).fderiv, Real.fourier_continuousLinearMap_apply hG] + rfl + have hint : ∀ a : ℂ, Integrable (fun v => 𝐞 (-⟪v, z⟫) • (-(2 * π * Complex.I) • ⟪v, a⟫ • F v)) := + fun a => (Real.fourierIntegral_convergent_iff z).2 (hG.apply_continuousLinearMap a) + -- `∂g = 𝓕⁻¹ (𝓕 (∂g)) = 𝓕 (π i (conj ξ) 𝓕 g) (−·)` + have hdz : dz (g : ℂ → ℂ) z = + ∫ v, 𝐞 (-⟪v, z⟫) • (((π : ℂ) * Complex.I * conj (-v)) • 𝓕 (g : ℂ → ℂ) (-v)) := by + have hinv : 𝓕⁻ (𝓕 (dzCLM g)) = (dzCLM g : 𝓢(ℂ, ℂ)) := FourierTransform.fourierInv_fourier_eq _ + rw [← dzCLM_apply, ← hinv, SchwartzMap.fourierInv_coe, SchwartzMap.fourier_coe, + Real.fourierInv_eq_fourier_comp_neg, Real.fourier_eq] + simp only [fourier_dzCLM] + have hI : Integrable (fun v => Complex.I • + (𝐞 (-⟪v, z⟫) • (-(2 * π * Complex.I) • ⟪v, Complex.I⟫ • F v))) := + (hint Complex.I).smul (Complex.I : ℂ) + rw [dzbar, hD, hD, hdz, ← integral_smul, ← integral_add (hint 1) hI, ← integral_smul] + refine integral_congr_ae (ae_of_all _ fun v => ?_) + have hv : (⟪v, 1⟫ : ℂ) + Complex.I * ⟪v, Complex.I⟫ = v := by + apply Complex.ext <;> simp [Complex.inner] + have hm := beurlingSymbol_mul_self v + simp only [hFdef, beurlingSymbol_neg, pow_one, Circle.smul_def, smul_eq_mul, Complex.real_smul, + map_neg] + linear_combination + (-(π : ℂ) * Complex.I * (𝐞 (-⟪v, z⟫) : ℂ) * beurlingSymbol v * 𝓕 (g : ℂ → ℂ) (-v)) * hv + + (-(π : ℂ) * Complex.I * (𝐞 (-⟪v, z⟫) : ℂ) * 𝓕 (g : ℂ → ℂ) (-v)) * hm + +/-- `𝓑 g (z) → 0` as `z → ∞`, for a Schwartz function `g`: the Riemann–Lebesgue lemma. -/ +theorem tendsto_beurlingPow_one_cocompact (g : 𝓢(ℂ, ℂ)) : + Tendsto (beurlingPow 1 (g : ℂ → ℂ)) (cocompact ℂ) (𝓝 0) := by + rw [(beurlingPow_one_eq_fourier g).1] + exact tendsto_integral_exp_inner_smul_cocompact _ + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions.lean new file mode 100644 index 0000000000..b83a3f24a7 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions.lean @@ -0,0 +1,485 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.TestFunctions.Approx +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.RadialIntegral +import Mathlib.Analysis.SpecialFunctions.Gaussian.GaussianIntegral +import Mathlib.MeasureTheory.Integral.Lebesgue.DominatedConvergence +import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar + +/-! +# Dragičević's test functions + +For `n ∈ ℕ` and `α ∈ ℝ`, Dragičević's test functions (2011 article, p. 465) are +`f_{n,α} (z) = z^n |z|^{−2α} g_n (|z|)` (`HarmonicAnalysis.BeurlingAhlfors.testFun`), where +`g_n (x) = 1` for `x ≤ 1` and `g_n (x) = exp (−(x − 1)^n)` for `x > 1` +(`HarmonicAnalysis.BeurlingAhlfors.testCutoff`; the source's example of a sufficiently smooth, +rapidly decaying `g_n` equal to `1` on `[0, 1]`). Only `n = 2` is used below; `n = 1`, with the +cutoff `g₂`, is in `HarmonicAnalysis.BeurlingAhlfors.TestFunctions.One`. The derivatives are +the pointwise Wirtinger derivatives `HarmonicAnalysis.dz`, `HarmonicAnalysis.dzbar`. A remark, not +used or proved here: for `α < 1` they agree almost everywhere with the weak ones, since `f_{2,α}` +is `C¹` off `0` (`g₂` is `C¹` at `1`) and `C²` off `0` and the unit circle, and near `0`, +`f = O (|z|^{2−2α})`, `∇f = O (|z|^{1−2α})` (for `α = 1`, `f = z / (conj z)` and the distribution +`∂²f` +has a Dirac mass at `0`). The article takes `p > 2` and `α < 1/p`; the statements below hold for +every `p` and `α` in the range given. + +## Main results, for `n = 2` + +* On the punctured unit disc (proof of Theorem 1.1, pp. 466–467): + `∂²f = (2 − α)(1 − α) |z|^{−2α}` and `∂_zbar²f = (−α)(−α − 1) (z / (conj z))² |z|^{−2α}` + (`dz_dz_testFun_of_norm_lt_one`, `dzbar_dzbar_testFun_of_norm_lt_one`), so that, for + `0 < α < 1/p`, `∫_Δ |∂²f|^p = π / (1 − αp) ((2 − α)(1 − α))^p` and + `∫_Δ |∂_zbar²f|^p = π / (1 − αp) (α (α + 1))^p` (`lintegral_dz_dz_testFun_ball`, + `lintegral_dzbar_dzbar_testFun_ball`). +* Outside the disc, the integrals of `|∂²f|^p` and `|∂_zbar²f|^p` stay bounded for `α ∈ [0, 1]` + (`exists_bound_testFun_compl_ball`; the article, p. 467: + `|Dⁿ f (z)| ≤ P (n, α) |z|^M e^{−(|z| − 1)^n}`). +* `f_{2,α} ∈ W^{2,p}` for `1 ≤ p`, `0 < α < 1/p` (asserted without proof in the article, p. 465, + for `p > 2`; Exercise 4.1 of the lecture notes), in the form used: Schwartz functions `φ_k` with + `∂_zbar²φ_k → ∂_zbar²f` and `∂²φ_k → ∂²f` in `L^p` (`exists_schwartz_tendsto_testFun`). + +## Proofs + +Near a point `z` with `|z| < 1`, resp. `|z| > 1`, `f_{2,α} (w) = w² K (|w|²)` with +`K (t) = t^{−α}`, resp. `K (t) = t^{−α} E (t)`, `E (t) = exp (−(√t − 1)²)` +(`testFun_eventuallyEq_of_norm_lt_one`, `testFun_eventuallyEq_of_one_lt_norm`), so that +`∂²f = 2 K + 4 t K' + t² K''` and `∂_zbar²f = z⁴ K''` at `t = |z|²` +(`HarmonicAnalysis.dz_dz_sq_mul_ofReal_radial`; outside the disc, +`dz_dz_testFun_of_one_lt_norm`, `dzbar_dzbar_testFun_of_one_lt_norm`). Outside the disc, +`|K^{(j)} (t)| ≤ 16 E (t)` for `α ∈ [0, 1]`, so that +`|∂²f|, |∂_zbar²f| ≤ 32 (1 + |z|²)² e^{−(|z| − 1)²}` (`norm_testFun_le_of_one_lt_norm`), whose +`p`-th +power is integrable on `|z| ≥ 1` (`lintegral_compl_ball_majorant_lt_top`, by polar coordinates +and a Gamma-type integral). The approximation of `f_{2,α}` is in +`HarmonicAnalysis.BeurlingAhlfors.TestFunctions.Approx`. + +## References + +* O. Dragičević, *Some remarks on the `L^p` estimates for powers of the Ahlfors–Beurling + operator*, Arch. Math. 96 (2011), 463–471: p. 465 and the proof of Theorem 1.1, pp. 466–467. +* O. Dragičević, *Analysis of the Ahlfors–Beurling transform*, lecture notes, + [arXiv:2109.04555](https://arxiv.org/abs/2109.04555), §4.1 (Exercise 4.1, Proposition 4.2). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology Set +open scoped SchwartzMap ENNReal Real ComplexConjugate + +namespace HarmonicAnalysis.BeurlingAhlfors + +/-! ### Local forms: `f_{2,α} (z) = z² K (|z|²)` -/ + +/-- Locality of `∂²`: functions that agree near `z` have the same `∂²` at `z`. -/ +theorem dz_dz_congr {f g : ℂ → ℂ} {z : ℂ} (h : f =ᶠ[𝓝 z] g) : dz (dz f) z = dz (dz g) z := + Filter.EventuallyEq.dz_eq (h.eventuallyEq_nhds.mono fun _ hw => hw.dz_eq) + +/-- Locality of `∂_zbar²`: functions that agree near `z` have the same `∂_zbar²` at `z`. -/ +theorem dzbar_dzbar_congr {f g : ℂ → ℂ} {z : ℂ} (h : f =ᶠ[𝓝 z] g) : + dzbar (dzbar f) z = dzbar (dzbar g) z := + Filter.EventuallyEq.dzbar_eq (h.eventuallyEq_nhds.mono fun _ hw => hw.dzbar_eq) + +/-- On the unit disc, `f_{2,α} (w) = w² K₀ (|w|²)`, `K₀ (t) = t^{−α}`. -/ +theorem testFun_eventuallyEq_of_norm_lt_one (α : ℝ) {z : ℂ} (hz : ‖z‖ < 1) : + testFun 2 α =ᶠ[𝓝 z] fun w => w ^ 2 * ((Complex.normSq w ^ (-α) : ℝ) : ℂ) := by + filter_upwards [(isOpen_lt continuous_norm continuous_const).mem_nhds hz] with w + (hw : ‖w‖ < 1) + rw [testFun, testCutoff, ite_eq_left hw.le, mul_one, normSq_rpow_neg] + +/-- Outside the closed unit disc, `f_{2,α} (w) = w² K₁ (|w|²)`, `K₁ (t) = t^{−α} E (t)`, +`E (t) = exp (−(√t − 1)²)`. -/ +theorem testFun_eventuallyEq_of_one_lt_norm (α : ℝ) {z : ℂ} (hz : 1 < ‖z‖) : + testFun 2 α =ᶠ[𝓝 z] fun w => + w ^ 2 * ((Complex.normSq w ^ (-α) * expCutoff (Complex.normSq w) : ℝ) : ℂ) := by + filter_upwards [(isOpen_lt continuous_const continuous_norm).mem_nhds hz] with w + (hw : 1 < ‖w‖) + rw [testFun, testCutoff, ite_eq_right (not_le.2 hw), normSq_rpow_neg, expCutoff_normSq] + +/-! ### The punctured unit disc -/ + +/-- On the punctured unit disc, `∂²f_{2,α} (z) = (2 − α)(1 − α) |z|^{−2α}`. -/ +theorem dz_dz_testFun_of_norm_lt_one (α : ℝ) {z : ℂ} (hz0 : z ≠ 0) (hz : ‖z‖ < 1) : + dz (dz (testFun 2 α)) z = (((2 - α) * (1 - α) * ‖z‖ ^ (-2 * α) : ℝ) : ℂ) := by + have ht : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + have h := dz_dz_sq_mul_ofReal_radial + (Real.contDiffAt_rpow_const_of_ne (p := -α) (n := 2) ht.ne') + beta_reduce at h + rw [dz_dz_congr (testFun_eventuallyEq_of_norm_lt_one α hz), h, deriv_deriv_rpow_neg, + deriv_rpow_neg] + beta_reduce + rw [Real.rpow_sub_one ht.ne', Real.rpow_sub ht, Real.rpow_two, normSq_rpow_neg] + congr 1 + field_simp + ring + +/-- On the punctured unit disc, `∂_zbar²f_{2,α} (z) = (−α)(−α − 1) (z / (conj z))² |z|^{−2α}`. -/ +theorem dzbar_dzbar_testFun_of_norm_lt_one (α : ℝ) {z : ℂ} (hz0 : z ≠ 0) (hz : ‖z‖ < 1) : + dzbar (dzbar (testFun 2 α)) z = + (((-α) * (-α - 1) : ℝ) : ℂ) * (z / conj z) ^ 2 * ((‖z‖ ^ (-2 * α) : ℝ) : ℂ) := by + have ht : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + have h := dzbar_dzbar_sq_mul_ofReal_radial + (Real.contDiffAt_rpow_const_of_ne (p := -α) (n := 2) ht.ne') + beta_reduce at h + rw [dzbar_dzbar_congr (testFun_eventuallyEq_of_norm_lt_one α hz), h, deriv_deriv_rpow_neg] + beta_reduce + rw [Real.rpow_sub ht, Real.rpow_two, normSq_rpow_neg] + have hc : (conj z : ℂ) ≠ 0 := (map_ne_zero _).2 hz0 + have hn : ((Complex.normSq z : ℝ) : ℂ) = z * conj z := (Complex.mul_conj z).symm + push_cast + rw [hn] + field_simp + ring + +/-- `∫_Δ |∂²f_{2,α}|^p = π / (1 − αp) ((2 − α)(1 − α))^p` for `0 < α < 1/p`. -/ +theorem lintegral_dz_dz_testFun_ball {p α : ℝ} (hp : 1 < p) (hα0 : 0 < α) (hα : α * p < 1) : + ∫⁻ z in Metric.ball (0 : ℂ) 1, ‖dz (dz (testFun 2 α)) z‖ₑ ^ p = + ENNReal.ofReal (π / (1 - α * p) * ((2 - α) * (1 - α)) ^ p) := by + have hp0 : 0 < p := by linarith + have hα1 : α < 1 := by nlinarith + have hc : 0 < (2 - α) * (1 - α) := by nlinarith + have h : ∀ᵐ z ∂(volume : Measure ℂ), z ∈ Metric.ball (0 : ℂ) 1 → + ‖dz (dz (testFun 2 α)) z‖ₑ ^ p = + ENNReal.ofReal (((2 - α) * (1 - α)) ^ p) * ENNReal.ofReal (‖z‖ ^ (-(2 * α * p))) := by + filter_upwards [Measure.ae_ne volume 0] with z hz0 hz + rw [mem_ball_zero_iff] at hz + rw [dz_dz_testFun_of_norm_lt_one α hz0 hz, ← ofReal_norm, Complex.norm_real, + Real.norm_eq_abs, abs_of_nonneg (by positivity), + ENNReal.ofReal_rpow_of_nonneg (by positivity) hp0.le, ← ENNReal.ofReal_mul (by positivity), + Real.mul_rpow hc.le (by positivity), ← Real.rpow_mul (norm_nonneg z)] + congr 3 + ring + rw [setLIntegral_congr_fun_ae Metric.isOpen_ball.measurableSet h, + lintegral_const_mul _ (by fun_prop), lintegral_ball_norm_rpow (by linarith), + ← ENNReal.ofReal_mul (by positivity)] + congr 1 + have : 1 - α * p ≠ 0 := by linarith + have : 2 - 2 * α * p ≠ 0 := by linarith + field_simp + +/-- `∫_Δ |∂_zbar²f_{2,α}|^p = π / (1 − αp) (α (α + 1))^p` for `0 < α < 1/p`. -/ +theorem lintegral_dzbar_dzbar_testFun_ball {p α : ℝ} (hp : 1 < p) (hα0 : 0 < α) + (hα : α * p < 1) : + ∫⁻ z in Metric.ball (0 : ℂ) 1, ‖dzbar (dzbar (testFun 2 α)) z‖ₑ ^ p = + ENNReal.ofReal (π / (1 - α * p) * (α * (α + 1)) ^ p) := by + have hp0 : 0 < p := by linarith + have hc : 0 < α * (α + 1) := by positivity + have h : ∀ᵐ z ∂(volume : Measure ℂ), z ∈ Metric.ball (0 : ℂ) 1 → + ‖dzbar (dzbar (testFun 2 α)) z‖ₑ ^ p = + ENNReal.ofReal ((α * (α + 1)) ^ p) * ENNReal.ofReal (‖z‖ ^ (-(2 * α * p))) := by + filter_upwards [Measure.ae_ne volume 0] with z hz0 hz + rw [mem_ball_zero_iff] at hz + rw [dzbar_dzbar_testFun_of_norm_lt_one α hz0 hz, ← ofReal_norm, norm_mul, norm_mul, + norm_pow, norm_div, Complex.norm_conj, div_self (norm_ne_zero_iff.2 hz0), one_pow, mul_one, + Complex.norm_real, Complex.norm_real, Real.norm_eq_abs, Real.norm_eq_abs, + abs_of_nonneg (show 0 ≤ (-α) * (-α - 1) by nlinarith), abs_of_nonneg (by positivity), + show (-α) * (-α - 1) = α * (α + 1) by ring, + ENNReal.ofReal_rpow_of_nonneg (by positivity) hp0.le, ← ENNReal.ofReal_mul (by positivity), + Real.mul_rpow hc.le (by positivity), ← Real.rpow_mul (norm_nonneg z)] + congr 3 + ring + rw [setLIntegral_congr_fun_ae Metric.isOpen_ball.measurableSet h, + lintegral_const_mul _ (by fun_prop), lintegral_ball_norm_rpow (by linarith), + ← ENNReal.ofReal_mul (by positivity)] + congr 1 + have : 1 - α * p ≠ 0 := by linarith + have : 2 - 2 * α * p ≠ 0 := by linarith + field_simp + +/-! ### Outside the unit disc -/ + +theorem contDiffAt_rpow_neg_mul_expCutoff (α : ℝ) {t : ℝ} (ht : 0 < t) : + ContDiffAt ℝ 2 (fun s : ℝ => s ^ (-α) * expCutoff s) t := + (Real.contDiffAt_rpow_const_of_ne ht.ne').mul (contDiffAt_expCutoff ht.ne') + +/-- For `|z| > 1`: `∂²f_{2,α} (z) = 2 K₁ (t) + 4 t K₁' (t) + t² K₁'' (t)`, with +`K₁ (t) = t^{−α} E (t)` and `t = |z|²`. -/ +theorem dz_dz_testFun_of_one_lt_norm (α : ℝ) {z : ℂ} (hz : 1 < ‖z‖) : + dz (dz (testFun 2 α)) z = + ((2 * (Complex.normSq z ^ (-α) * expCutoff (Complex.normSq z)) + + 4 * Complex.normSq z * + deriv (fun s : ℝ => s ^ (-α) * expCutoff s) (Complex.normSq z) + + Complex.normSq z ^ 2 * + deriv (deriv fun s : ℝ => s ^ (-α) * expCutoff s) (Complex.normSq z) : ℝ) : ℂ) := by + have ht : 0 < Complex.normSq z := by rw [Complex.normSq_eq_norm_sq]; nlinarith + have h := dz_dz_sq_mul_ofReal_radial (contDiffAt_rpow_neg_mul_expCutoff α ht) + beta_reduce at h + rw [dz_dz_congr (testFun_eventuallyEq_of_one_lt_norm α hz), h] + +/-- For `|z| > 1`: `∂_zbar²f_{2,α} (z) = z⁴ K₁'' (|z|²)`, with `K₁ (t) = t^{−α} E (t)`. -/ +theorem dzbar_dzbar_testFun_of_one_lt_norm (α : ℝ) {z : ℂ} (hz : 1 < ‖z‖) : + dzbar (dzbar (testFun 2 α)) z = + z ^ 4 * ((deriv (deriv fun s : ℝ => s ^ (-α) * expCutoff s) (Complex.normSq z) : ℝ) : + ℂ) := by + have ht : 0 < Complex.normSq z := by rw [Complex.normSq_eq_norm_sq]; nlinarith + have h := dzbar_dzbar_sq_mul_ofReal_radial (contDiffAt_rpow_neg_mul_expCutoff α ht) + beta_reduce at h + rw [dzbar_dzbar_congr (testFun_eventuallyEq_of_one_lt_norm α hz), h] + +/-- For `t ≥ 1` and `α ∈ [0, 1]`: `|K₁^{(j)} (t)| ≤ 16 E (t)`, `j ≤ 2`, with +`K₁ (t) = t^{−α} E (t)`. -/ +theorem derivBoundTwo_rpow_neg_mul_expCutoff {α t : ℝ} (hα : α ∈ Icc (0 : ℝ) 1) (ht : 1 ≤ t) : + DerivBoundTwo (fun s : ℝ => s ^ (-α) * expCutoff s) t (16 * expCutoff t) := + ((derivBoundTwo_rpow_neg hα.1 hα.2 ht).mul (Real.contDiffAt_rpow_const_of_ne (by linarith)) + (contDiffAt_expCutoff (by linarith)) (derivBoundTwo_expCutoff ht)).mono + (le_of_eq (by ring)) + +/-- For `|z| > 1` and `α ∈ [0, 1]`: +`|∂²f_{2,α} (z)|, |∂_zbar²f_{2,α} (z)| ≤ 32 (1 + |z|²)² e^{−(|z| − 1)²}`. -/ +theorem norm_testFun_le_of_one_lt_norm {α : ℝ} (hα : α ∈ Icc (0 : ℝ) 1) {z : ℂ} + (hz : 1 < ‖z‖) : + ‖dz (dz (testFun 2 α)) z‖ ≤ 32 * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) ∧ + ‖dzbar (dzbar (testFun 2 α)) z‖ ≤ + 32 * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) := by + have ht : 1 < Complex.normSq z := by rw [Complex.normSq_eq_norm_sq]; nlinarith + have h := norm_dz_dz_sq_mul_ofReal_radial_le + (contDiffAt_rpow_neg_mul_expCutoff α (by linarith)) + (derivBoundTwo_rpow_neg_mul_expCutoff hα ht.le) + beta_reduce at h + rw [expCutoff_normSq] at h + rw [dz_dz_congr (testFun_eventuallyEq_of_one_lt_norm α hz), + dzbar_dzbar_congr (testFun_eventuallyEq_of_one_lt_norm α hz)] + exact ⟨h.1.trans_eq (by ring), h.2.trans_eq (by ring)⟩ + +/-- `(1 + r²)² e^{−(r − 1)²} ≤ 4 e^{5/4} r⁴ e^{−r}` for `r ≥ 1`, since +`(r − 1)² ≥ r − 5/4`. -/ +theorem one_add_sq_sq_mul_exp_le {r : ℝ} (hr : 1 ≤ r) : + (1 + r ^ 2) ^ 2 * Real.exp (-(r - 1) ^ 2) ≤ + 4 * Real.exp (5 / 4) * (r ^ 4 * Real.exp (-r)) := by + have h1 : (1 + r ^ 2) ^ 2 ≤ 4 * r ^ 4 := by + have : 1 + r ^ 2 ≤ 2 * r ^ 2 := by nlinarith + calc (1 + r ^ 2) ^ 2 ≤ (2 * r ^ 2) ^ 2 := pow_le_pow_left₀ (by positivity) this 2 + _ = 4 * r ^ 4 := by ring + have h2 : Real.exp (-(r - 1) ^ 2) ≤ Real.exp (5 / 4) * Real.exp (-r) := by + rw [← Real.exp_add] + exact Real.exp_le_exp.2 (by nlinarith [sq_nonneg (r - 3 / 2)]) + calc (1 + r ^ 2) ^ 2 * Real.exp (-(r - 1) ^ 2) ≤ + (4 * r ^ 4) * (Real.exp (5 / 4) * Real.exp (-r)) := + mul_le_mul h1 h2 (Real.exp_pos _).le (by positivity) + _ = _ := by ring + +/-- The majorant `(c (1 + |z|²)² e^{−(|z| − 1)²})^p` is integrable outside the unit disc: by +polar coordinates and `r (1 + r²)^{2p} e^{−p (r − 1)²} ≤ C r^{4p + 1} e^{−p r}`. -/ +theorem lintegral_compl_ball_majorant_lt_top {p : ℝ} (hp : 0 < p) {c : ℝ} (hc : 0 ≤ c) : + ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, + ENNReal.ofReal (c * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2))) ^ p < ∞ := by + set g : ℝ → ℝ≥0∞ := (Ici (1 : ℝ)).indicator + fun r => ENNReal.ofReal (c * ((1 + r ^ 2) ^ 2 * Real.exp (-(r - 1) ^ 2))) ^ p with hg_def + have hg : Measurable g := (by fun_prop : Measurable fun r : ℝ => + ENNReal.ofReal (c * ((1 + r ^ 2) ^ 2 * Real.exp (-(r - 1) ^ 2))) ^ p).indicator + measurableSet_Ici + have hind : (Metric.ball (0 : ℂ) 1)ᶜ.indicator (fun z => + ENNReal.ofReal (c * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2))) ^ p) = + fun z => g ‖z‖ := by + funext z + by_cases hz : 1 ≤ ‖z‖ + · rw [hg_def, indicator_of_mem (by simpa using hz), indicator_of_mem (mem_Ici.2 hz)] + · rw [hg_def, indicator_of_notMem (by simpa using hz), indicator_of_notMem (by simpa using hz)] + rw [← lintegral_indicator Metric.isOpen_ball.measurableSet.compl, hind, lintegral_comp_norm hg] + refine ENNReal.mul_lt_top ENNReal.ofReal_lt_top ?_ + set K := (4 * c * Real.exp (5 / 4)) ^ p with hK + have hint : IntegrableOn (fun r : ℝ => K * (r ^ (4 * p + 1) * Real.exp (-p * r ^ (1 : ℝ)))) + (Ioi 0) := + (integrableOn_rpow_mul_exp_neg_mul_rpow (by linarith) one_pos hp).const_mul K + refine lt_of_le_of_lt (setLIntegral_mono' measurableSet_Ioi fun r (hr : 0 < r) => ?_) + hint.lintegral_lt_top + by_cases h1 : 1 ≤ r + · rw [hg_def, indicator_of_mem (mem_Ici.2 h1), + ENNReal.ofReal_rpow_of_nonneg (by positivity) hp.le, ← ENNReal.ofReal_mul hr.le] + apply ENNReal.ofReal_le_ofReal + have hm := mul_le_mul_of_nonneg_left (one_add_sq_sq_mul_exp_le h1) hc + calc r * (c * ((1 + r ^ 2) ^ 2 * Real.exp (-(r - 1) ^ 2))) ^ p ≤ + r * (4 * c * Real.exp (5 / 4) * (r ^ 4 * Real.exp (-r))) ^ p := + mul_le_mul_of_nonneg_left (Real.rpow_le_rpow (by positivity) + (hm.trans_eq (by ring)) hp.le) hr.le + _ = K * (r ^ (4 * p + 1) * Real.exp (-p * r ^ (1 : ℝ))) := by + rw [Real.mul_rpow (x := 4 * c * Real.exp (5 / 4)) (by positivity) (by positivity), + Real.mul_rpow (x := r ^ 4) (by positivity) (by positivity), + ← Real.rpow_natCast_mul hr.le, + ← Real.exp_mul, Real.rpow_add_one hr.ne', Real.rpow_one, + show -r * p = -p * r by ring, hK] + push_cast + ring + · rw [hg_def, indicator_of_notMem (by simpa using h1), mul_zero] + exact zero_le + +/-- The unit circle is a null set. -/ +theorem ae_norm_ne_one : ∀ᵐ z ∂(volume : Measure ℂ), ‖z‖ ≠ 1 := by + filter_upwards [measure_eq_zero_iff_ae_notMem.1 + (Measure.addHaar_sphere (volume : Measure ℂ) 0 1)] with z hz + rwa [mem_sphere_zero_iff_norm] at hz + +/-- Outside the unit disc, `∫ |∂²f_{2,α}|^p` and `∫ |∂_zbar²f_{2,α}|^p` are bounded uniformly in +`α ∈ [0, 1]`. -/ +theorem exists_bound_testFun_compl_ball {p : ℝ} (hp : 0 < p) : + ∃ C : ℝ, ∀ α ∈ Set.Icc (0 : ℝ) 1, + ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, ‖dz (dz (testFun 2 α)) z‖ₑ ^ p ≤ ENNReal.ofReal C ∧ + ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, ‖dzbar (dzbar (testFun 2 α)) z‖ₑ ^ p ≤ + ENNReal.ofReal C := by + set I := ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, + ENNReal.ofReal (32 * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2))) ^ p with hI_def + have hI : I < ∞ := lintegral_compl_ball_majorant_lt_top hp (by norm_num) + refine ⟨I.toReal, fun α hα => ?_⟩ + rw [ENNReal.ofReal_toReal hI.ne] + have hae : ∀ᵐ z ∂(volume.restrict (Metric.ball (0 : ℂ) 1)ᶜ), 1 < ‖z‖ := by + filter_upwards [ae_restrict_of_ae ae_norm_ne_one, + ae_restrict_mem Metric.isOpen_ball.measurableSet.compl] with z hz1 hz2 + rw [mem_compl_iff, mem_ball_zero_iff, not_lt] at hz2 + exact lt_of_le_of_ne hz2 (Ne.symm hz1) + constructor + · refine lintegral_mono_ae (hae.mono fun z hz => ?_) + rw [← ofReal_norm] + exact ENNReal.rpow_le_rpow (ENNReal.ofReal_le_ofReal (norm_testFun_le_of_one_lt_norm hα hz).1) + hp.le + · refine lintegral_mono_ae (hae.mono fun z hz => ?_) + rw [← ofReal_norm] + exact ENNReal.rpow_le_rpow (ENNReal.ofReal_le_ofReal (norm_testFun_le_of_one_lt_norm hα hz).2) + hp.le + +/-! ### Approximation in `W^{2,p}` -/ + +/-- Dominated convergence in `L^p`: if `F_k → G` a.e., `|F_k| ≤ D` a.e. and `∫ (2 D)^p < ∞`, +then `‖F_k − G‖_p → 0`. -/ +theorem tendsto_eLpNorm_sub_of_dominated {p : ℝ} (hp : 0 < p) {F : ℕ → ℂ → ℂ} {G : ℂ → ℂ} + {D : ℂ → ℝ} (hF : ∀ k, Measurable (F k)) (hG : Measurable G) + (hFD : ∀ k, ∀ᵐ z ∂(volume : Measure ℂ), ‖F k z‖ ≤ D z) + (hD : ∫⁻ z, ENNReal.ofReal (2 * D z) ^ p ≠ ∞) + (hlim : ∀ᵐ z ∂(volume : Measure ℂ), Tendsto (fun k => F k z) atTop (𝓝 (G z))) : + Tendsto (fun k => eLpNorm (fun z => F k z - G z) (ENNReal.ofReal p) volume) atTop (𝓝 0) := by + have hGD : ∀ᵐ z ∂(volume : Measure ℂ), ‖G z‖ ≤ D z := by + filter_upwards [hlim, ae_all_iff.2 hFD] with z hz hzD + exact le_of_tendsto' hz.norm hzD + have hint := tendsto_lintegral_of_dominated_convergence (μ := volume) + (F := fun k z => ‖F k z - G z‖ₑ ^ p) (f := fun _ => 0) + (fun z => ENNReal.ofReal (2 * D z) ^ p) (fun k => ((hF k).sub hG).eNorm.pow_const p) + (fun k => by + filter_upwards [hFD k, hGD] with z h1 h2 + rw [← ofReal_norm] + exact ENNReal.rpow_le_rpow + (ENNReal.ofReal_le_ofReal ((norm_sub_le _ _).trans (by linarith))) hp.le) + hD (by + filter_upwards [hlim] with z hz + have h0 : Tendsto (fun k => F k z - G z) atTop (𝓝 0) := by + simpa using hz.sub_const (G z) + have := (ENNReal.continuous_rpow_const (y := p)).tendsto _ |>.comp + ((continuous_eNorm.tendsto _).comp h0) + simpa [Function.comp_def, ENNReal.zero_rpow_of_pos hp] using this) + rw [lintegral_zero] at hint + have h := (ENNReal.continuous_rpow_const (y := 1 / p)).tendsto _ |>.comp hint + rw [ENNReal.zero_rpow_of_pos (by positivity)] at h + refine h.congr fun k => ?_ + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal (by simpa using hp) ENNReal.ofReal_ne_top + (show Measurable fun z => F k z - G z from (hF k).sub hG).aestronglyMeasurable, + ENNReal.toReal_ofReal hp.le] + rfl + +/-- `f_{2,α} ∈ W^{2,p}` for `1 ≤ p < ∞`, `0 < α < 1/p` (Dragičević 2011, p. 465, where `p > 2`), in +the form used: there are Schwartz functions `φ_k` with `∂_zbar²φ_k → ∂_zbar²f_{2,α}` and +`∂²φ_k → ∂²f_{2,α}` in `L^p`. + +The article asserts this without proof, and the lecture notes leave it as an exercise (Exercise +4.1); the proof is the standard approximation argument: +`φ_k (z) = z² K_k (|z|²)` (`HarmonicAnalysis.BeurlingAhlfors.approxSchwartz`) regularises the +singularity at `0` (`|z|^{−2α}` becomes `(|z|² + ε_k)^{−α}`), smooths the cutoff `g₂` at `|z| = 1`, +where it is only `C¹`, and truncates at infinity. Off `0` and the unit circle, `∂²φ_k → ∂²f` and +`∂_zbar²φ_k → ∂_zbar²f` pointwise, with a domination uniform in `k`, by `8 |z|^{−2α}` on the disc +and by +`C (1 + |z|²)² e^{−(|z| − 1)²}` outside it, whose `p`-th power is integrable; dominated convergence +concludes. -/ +theorem exists_schwartz_tendsto_testFun {p α : ℝ} (hp : 1 ≤ p) (hα0 : 0 < α) (hα : α * p < 1) : + ∃ φ : ℕ → 𝓢(ℂ, ℂ), + Tendsto (fun k => eLpNorm (fun z => (dzbarCLM ^ 2) (φ k) z - dzbar (dzbar (testFun 2 α)) z) + (ENNReal.ofReal p) volume) atTop (𝓝 0) ∧ + Tendsto (fun k => eLpNorm (fun z => (dzCLM ^ 2) (φ k) z - dz (dz (testFun 2 α)) z) + (ENNReal.ofReal p) volume) atTop (𝓝 0) := by + have hp0 : 0 < p := by linarith + have hα1 : α < 1 := by nlinarith + obtain ⟨C, hC⟩ := exists_norm_approxSchwartz_le_of_one_lt hα0.le hα1.le + set c := max C 0 with hc_def + have hc : 0 ≤ c := le_max_right _ _ + set D : ℂ → ℝ := fun z => if ‖z‖ < 1 then 8 * ‖z‖ ^ (-2 * α) else + c * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) with hD_def + have hae : ∀ᵐ z ∂(volume : Measure ℂ), z ≠ 0 ∧ ‖z‖ ≠ 1 := + (Measure.ae_ne volume 0).and ae_norm_ne_one + -- the domination, uniform in `k` + have hdom : ∀ k z, z ≠ 0 → ‖z‖ ≠ 1 → ‖(dzbarCLM ^ 2) (approxSchwartz α k) z‖ ≤ D z ∧ + ‖(dzCLM ^ 2) (approxSchwartz α k) z‖ ≤ D z := by + intro k z hz0 hz1 + rcases lt_or_gt_of_ne hz1 with h | h + · rw [hD_def] + simp only [ite_eq_left h] + obtain ⟨h1, h2⟩ := norm_approxSchwartz_le_of_lt_one hα0 hα1 k hz0 h + exact ⟨h2.trans (by nlinarith [Real.rpow_nonneg (norm_nonneg z) (-2 * α)]), h1⟩ + · rw [hD_def] + simp only [ite_eq_right (not_lt.2 h.le)] + obtain ⟨h1, h2⟩ := hC k z h + have hm : 0 ≤ (1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2) := by positivity + exact ⟨h2.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) hm), + h1.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) hm)⟩ + -- the pointwise limits + have hlim : ∀ z, z ≠ 0 → ‖z‖ ≠ 1 → + Tendsto (fun k => (dzCLM ^ 2) (approxSchwartz α k) z) atTop + (𝓝 (dz (dz (testFun 2 α)) z)) ∧ + Tendsto (fun k => (dzbarCLM ^ 2) (approxSchwartz α k) z) atTop + (𝓝 (dzbar (dzbar (testFun 2 α)) z)) := by + intro z hz0 hz1 + simp only [dzCLM_sq_approxSchwartz, dzbarCLM_sq_approxSchwartz] + have ht0 : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + rcases lt_or_gt_of_ne hz1 with h | h + · have ht1 : Complex.normSq z < 1 := by + rw [Complex.normSq_eq_norm_sq]; nlinarith [norm_nonneg z] + have := tendsto_dz_dz_sq_mul_ofReal_radial (fun k => contDiffAt_two_approxProfile α k z) + (Real.contDiffAt_rpow_const_of_ne (p := -α) (n := 2) ht0.ne') + (tendstoTwo_approxProfile_of_lt_one α ht0 ht1) + beta_reduce at this + rwa [dz_dz_congr (testFun_eventuallyEq_of_norm_lt_one α h), + dzbar_dzbar_congr (testFun_eventuallyEq_of_norm_lt_one α h)] + · have ht1 : 1 < Complex.normSq z := by + rw [Complex.normSq_eq_norm_sq]; nlinarith + have := tendsto_dz_dz_sq_mul_ofReal_radial (fun k => contDiffAt_two_approxProfile α k z) + (contDiffAt_rpow_neg_mul_expCutoff α ht0) (tendstoTwo_approxProfile_of_one_lt α ht1) + beta_reduce at this + rwa [dz_dz_congr (testFun_eventuallyEq_of_one_lt_norm α h), + dzbar_dzbar_congr (testFun_eventuallyEq_of_one_lt_norm α h)] + -- the integrability of the majorant + have hfin : ∫⁻ z, ENNReal.ofReal (2 * D z) ^ p ≠ ∞ := by + rw [← lintegral_add_compl _ (Metric.isOpen_ball (x := (0 : ℂ)) (ε := 1)).measurableSet] + refine ENNReal.add_ne_top.2 ⟨?_, ?_⟩ + · rw [setLIntegral_congr_fun Metric.isOpen_ball.measurableSet + (g := fun z => ENNReal.ofReal (16 ^ p) * ENNReal.ofReal (‖z‖ ^ (-(2 * α * p)))) + (fun z hz => ?_)] + · rw [lintegral_const_mul _ (by fun_prop), lintegral_ball_norm_rpow (by linarith)] + exact ENNReal.mul_ne_top ENNReal.ofReal_ne_top ENNReal.ofReal_ne_top + · rw [mem_ball_zero_iff] at hz + rw [hD_def] + simp only [ite_eq_left hz] + rw [← mul_assoc, show (2 : ℝ) * 8 = 16 by norm_num, + ENNReal.ofReal_rpow_of_nonneg (by positivity) hp0.le, + Real.mul_rpow (by norm_num) (by positivity), ← Real.rpow_mul (norm_nonneg _), + ENNReal.ofReal_mul (by positivity)] + congr 3 + ring + · refine ne_of_lt (lt_of_le_of_lt (setLIntegral_mono' + Metric.isOpen_ball.measurableSet.compl fun z hz => ?_) + (lintegral_compl_ball_majorant_lt_top hp0 (c := 2 * c) (by positivity))) + rw [mem_compl_iff, mem_ball_zero_iff, not_lt] at hz + rw [hD_def] + simp only [ite_eq_right (not_lt.2 hz)] + rw [← mul_assoc] + refine ⟨approxSchwartz α, ?_, ?_⟩ + · exact tendsto_eLpNorm_sub_of_dominated hp0 (fun k => (SchwartzMap.continuous _).measurable) + (measurable_dzbar _) (fun k => hae.mono fun z hz => (hdom k z hz.1 hz.2).1) hfin + (hae.mono fun z hz => (hlim z hz.1 hz.2).2) + · exact tendsto_eLpNorm_sub_of_dominated hp0 (fun k => (SchwartzMap.continuous _).measurable) + (measurable_dz _) (fun k => hae.mono fun z hz => (hdom k z hz.1 hz.2).2) hfin + (hae.mono fun z hz => (hlim z hz.1 hz.2).1) + +end HarmonicAnalysis.BeurlingAhlfors diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/Approx.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/Approx.lean new file mode 100644 index 0000000000..2f15e58c57 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/Approx.lean @@ -0,0 +1,489 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.TestFunctions.Profile +import Mathlib.Analysis.InnerProductSpace.Calculus + +/-! +# Smooth approximations of Dragičević's test functions + +The test function `f_{2,α} (z) = z² |z|^{−2α} g₂ (|z|)` is approximated by smooth compactly +supported functions, by the standard argument: regularise the singularity at `0`, smooth the +cutoff `g₂` at `1` (where it is only `C¹`), and truncate at infinity. With `t = |z|²`, +`ε_k = δ_k = 1/(k + 1)`, `R_k = k + 2`, `s = Real.smoothTransition` and +`E (t) = exp (−(√t − 1)²)` (`HarmonicAnalysis.BeurlingAhlfors.expCutoff`): + +* `A_k (t) = (t + ε_k)^{−α}`, smooth on `t > −ε_k`; +* `G_k (t) = 1 + (E (t) − 1) s ((t − 1)/δ_k)` (`HarmonicAnalysis.BeurlingAhlfors.approxGlue`): + `1` for `t ≤ 1`, `E (t)` for `t ≥ 1 + δ_k`, smooth; +* `χ_k (t) = s (2 − t/R_k)` (`HarmonicAnalysis.BeurlingAhlfors.approxTrunc`): `1` for `t ≤ R_k`, + `0` for `t ≥ 2 R_k`; +* `K_k = A_k G_k χ_k` (`HarmonicAnalysis.BeurlingAhlfors.approxProfile`) and + `φ_k (z) = z² K_k (|z|²)` (`HarmonicAnalysis.BeurlingAhlfors.approxFun`), a Schwartz function + (`HarmonicAnalysis.BeurlingAhlfors.approxSchwartz`). + +## Main results + +* `HarmonicAnalysis.BeurlingAhlfors.dzCLM_sq_approxSchwartz_eq`, + `HarmonicAnalysis.BeurlingAhlfors.dzbarCLM_sq_approxSchwartz_eq`: the derivative formulas + `∂²φ_k = 2 K_k + 4 t K_k' + t² K_k''` and `∂_zbar²φ_k = z⁴ K_k''`, `t = |z|²`. +* `HarmonicAnalysis.BeurlingAhlfors.tendstoTwo_approxProfile_of_lt_one`, + `HarmonicAnalysis.BeurlingAhlfors.tendstoTwo_approxProfile_of_one_lt`: the pointwise limits of + `K_k` and its first two derivatives, `t^{−α}` on `(0, 1)` and `t^{−α} E (t)` on `(1, ∞)`. +* `HarmonicAnalysis.BeurlingAhlfors.norm_approxSchwartz_le_of_lt_one`, + `HarmonicAnalysis.BeurlingAhlfors.exists_norm_approxSchwartz_le_of_one_lt`: the domination, + uniform in `k`, by `8 |z|^{−2α}` on the punctured disc and by `C (1 + |z|²)² e^{−(|z| − 1)²}` + outside it. +-/ + +@[expose] public section + +noncomputable section + +open Set Filter Topology +open scoped SchwartzMap ContDiff + +namespace HarmonicAnalysis.BeurlingAhlfors + +/-! ### The parameters -/ + +/-- `ε_k = δ_k = 1/(k + 1)`. -/ +def approxEps (k : ℕ) : ℝ := 1 / (k + 1) + +/-- `R_k = k + 2`. -/ +def approxRadius (k : ℕ) : ℝ := k + 2 + +theorem approxEps_pos (k : ℕ) : 0 < approxEps k := by + unfold approxEps; positivity + +theorem approxEps_le_one (k : ℕ) : approxEps k ≤ 1 := by + unfold approxEps + rw [div_le_one (by positivity)] + linarith [(Nat.cast_nonneg k : (0 : ℝ) ≤ k)] + +theorem tendsto_approxEps : Tendsto approxEps atTop (𝓝 0) := + tendsto_one_div_add_atTop_nhds_zero_nat + +theorem two_le_approxRadius (k : ℕ) : 2 ≤ approxRadius k := by + unfold approxRadius + linarith [(Nat.cast_nonneg k : (0 : ℝ) ≤ k)] + +theorem tendsto_approxRadius : Tendsto approxRadius atTop atTop := + tendsto_atTop_add_const_right _ _ tendsto_natCast_atTop_atTop + +/-! ### The one-variable factors -/ + +/-- `G_k (t) = 1 + (E (t) − 1) s ((t − 1)/δ_k)`: the cutoff `E`, smoothed at `t = 1`. -/ +def approxGlue (k : ℕ) (t : ℝ) : ℝ := + 1 + (expCutoff t - 1) * Real.smoothTransition ((t - 1) / approxEps k) + +/-- `χ_k (t) = s (2 − t/R_k)`: the truncation at infinity. -/ +def approxTrunc (k : ℕ) (t : ℝ) : ℝ := Real.smoothTransition (2 - t / approxRadius k) + +/-- `K_k (t) = (t + ε_k)^{−α} G_k (t) χ_k (t)`. -/ +def approxProfile (α : ℝ) (k : ℕ) (t : ℝ) : ℝ := + (t + approxEps k) ^ (-α) * approxGlue k t * approxTrunc k t + +/-- `G_k = 1` on `t ≤ 1`. -/ +theorem approxGlue_eq_one (k : ℕ) {t : ℝ} (ht : t ≤ 1) : approxGlue k t = 1 := by + rw [approxGlue, Real.smoothTransition.zero_of_nonpos + (div_nonpos_of_nonpos_of_nonneg (by linarith) (approxEps_pos k).le), mul_zero, add_zero] + +/-- `G_k = E` on `t ≥ 1 + δ_k`. -/ +theorem approxGlue_eq_expCutoff (k : ℕ) {t : ℝ} (ht : 1 + approxEps k ≤ t) : + approxGlue k t = expCutoff t := by + rw [approxGlue, Real.smoothTransition.one_of_one_le + ((le_div_iff₀ (approxEps_pos k)).2 (by linarith)), mul_one] + ring + +/-- `χ_k = 1` on `t ≤ R_k`. -/ +theorem approxTrunc_eq_one (k : ℕ) {t : ℝ} (ht : t ≤ approxRadius k) : approxTrunc k t = 1 := by + have hR : 0 < approxRadius k := by linarith [two_le_approxRadius k] + exact Real.smoothTransition.one_of_one_le (by linarith [div_le_one_of_le₀ ht hR.le]) + +/-- `χ_k = 0` on `t ≥ 2 R_k`. -/ +theorem approxTrunc_eq_zero (k : ℕ) {t : ℝ} (ht : 2 * approxRadius k ≤ t) : + approxTrunc k t = 0 := by + have hR : 0 < approxRadius k := by linarith [two_le_approxRadius k] + exact Real.smoothTransition.zero_of_nonpos (by linarith [(le_div_iff₀ hR).2 ht]) + +theorem contDiff_approxGlue (k : ℕ) : ContDiff ℝ ∞ (approxGlue k) := by + rw [contDiff_iff_contDiffAt] + intro t + rcases lt_or_ge t 1 with ht | ht + · refine (contDiffAt_const (c := (1 : ℝ))).congr_of_eventuallyEq ?_ + filter_upwards [Iio_mem_nhds ht] with s hs using approxGlue_eq_one k hs.le + · have hσ : ContDiffAt ℝ ∞ (fun s => Real.smoothTransition ((s - 1) / approxEps k)) t := + Real.smoothTransition.contDiffAt.comp t ((contDiffAt_id.sub contDiffAt_const).div_const _) + exact contDiffAt_const.add + (((contDiffAt_expCutoff (by linarith)).sub contDiffAt_const).mul hσ) + +theorem contDiff_approxTrunc (k : ℕ) : ContDiff ℝ ∞ (approxTrunc k) := + Real.smoothTransition.contDiff.comp (contDiff_const.sub (contDiff_id.div_const _)) + +theorem contDiffAt_rpow_add_neg (α c : ℝ) {t : ℝ} (ht : -c < t) : + ContDiffAt ℝ ∞ (fun s : ℝ => (s + c) ^ (-α)) t := + (Real.contDiffAt_rpow_const_of_ne (x := t + c) (p := -α) (by linarith)).comp t + (contDiffAt_id.add contDiffAt_const) + +theorem contDiffAt_approxProfile (α : ℝ) (k : ℕ) {t : ℝ} (ht : -approxEps k < t) : + ContDiffAt ℝ ∞ (approxProfile α k) t := + ((contDiffAt_rpow_add_neg α _ ht).mul (contDiff_approxGlue k).contDiffAt).mul + (contDiff_approxTrunc k).contDiffAt + +/-! ### The approximants -/ + +/-- `φ_k (z) = z² K_k (|z|²)`. -/ +def approxFun (α : ℝ) (k : ℕ) (z : ℂ) : ℂ := + z ^ 2 * ((approxProfile α k (Complex.normSq z) : ℝ) : ℂ) + +theorem contDiff_approxFun (α : ℝ) (k : ℕ) : ContDiff ℝ ∞ (approxFun α k) := by + have hN : ContDiff ℝ ∞ Complex.normSq := by + rw [show Complex.normSq = fun z : ℂ => ‖z‖ ^ 2 from funext Complex.normSq_eq_norm_sq] + exact contDiff_norm_sq ℝ + rw [contDiff_iff_contDiffAt] + intro z + have h1 : ContDiffAt ℝ ∞ (approxProfile α k) (Complex.normSq z) := + contDiffAt_approxProfile α k (by linarith [Complex.normSq_nonneg z, approxEps_pos k]) + have h2 : ContDiffAt ℝ ∞ (fun w => ((approxProfile α k (Complex.normSq w) : ℝ) : ℂ)) z := + Complex.ofRealCLM.contDiff.contDiffAt.comp z (h1.comp z hN.contDiffAt) + exact (contDiffAt_id.pow 2).mul h2 + +/-- `φ_k (z) = 0` for `|z|² ≥ 2 R_k`. -/ +theorem approxFun_eq_zero (α : ℝ) (k : ℕ) {z : ℂ} (hz : 2 * approxRadius k ≤ Complex.normSq z) : + approxFun α k z = 0 := by + rw [approxFun, approxProfile, approxTrunc_eq_zero k hz] + simp + +theorem hasCompactSupport_approxFun (α : ℝ) (k : ℕ) : HasCompactSupport (approxFun α k) := by + refine HasCompactSupport.intro (isCompact_closedBall (0 : ℂ) (2 * approxRadius k)) + fun z hz => approxFun_eq_zero α k ?_ + rw [Metric.mem_closedBall, dist_zero_right, not_le] at hz + rw [Complex.normSq_eq_norm_sq] + have := two_le_approxRadius k + nlinarith + +/-- `φ_k` as a Schwartz function. -/ +def approxSchwartz (α : ℝ) (k : ℕ) : 𝓢(ℂ, ℂ) := + (hasCompactSupport_approxFun α k).toSchwartzMap (contDiff_approxFun α k) + +theorem coe_approxSchwartz (α : ℝ) (k : ℕ) : ⇑(approxSchwartz α k) = approxFun α k := rfl + +theorem dzCLM_sq_apply (f : 𝓢(ℂ, ℂ)) (z : ℂ) : (dzCLM ^ 2) f z = dz (dz f) z := by + rw [coe_dzCLM_pow] + rfl + +theorem dzbarCLM_sq_apply (f : 𝓢(ℂ, ℂ)) (z : ℂ) : (dzbarCLM ^ 2) f z = dzbar (dzbar f) z := by + rw [coe_dzbarCLM_pow] + rfl + +/-- `∂²φ_k` is the pointwise `∂²` of `z² K_k (|z|²)`. -/ +theorem dzCLM_sq_approxSchwartz (α : ℝ) (k : ℕ) (z : ℂ) : + (dzCLM ^ 2) (approxSchwartz α k) z = + dz (dz (fun w => w ^ 2 * ((approxProfile α k (Complex.normSq w) : ℝ) : ℂ))) z := by + rw [dzCLM_sq_apply, coe_approxSchwartz] + rfl + +/-- `∂_zbar²φ_k` is the pointwise `∂_zbar²` of `z² K_k (|z|²)`. -/ +theorem dzbarCLM_sq_approxSchwartz (α : ℝ) (k : ℕ) (z : ℂ) : + (dzbarCLM ^ 2) (approxSchwartz α k) z = + dzbar (dzbar (fun w => w ^ 2 * ((approxProfile α k (Complex.normSq w) : ℝ) : ℂ))) z := by + rw [dzbarCLM_sq_apply, coe_approxSchwartz] + rfl + +theorem contDiffAt_two_approxProfile (α : ℝ) (k : ℕ) (z : ℂ) : + ContDiffAt ℝ 2 (approxProfile α k) (Complex.normSq z) := + (contDiffAt_approxProfile α k (by linarith [Complex.normSq_nonneg z, approxEps_pos k])).of_le + (by norm_num) + +/-- The derivative formula for `φ_k`: `∂²φ_k (z) = 2 K_k (t) + 4 t K_k' (t) + t² K_k'' (t)`, +`t = |z|²`. -/ +theorem dzCLM_sq_approxSchwartz_eq (α : ℝ) (k : ℕ) (z : ℂ) : + (dzCLM ^ 2) (approxSchwartz α k) z = + ((2 * approxProfile α k (Complex.normSq z) + + 4 * Complex.normSq z * deriv (approxProfile α k) (Complex.normSq z) + + Complex.normSq z ^ 2 * deriv (deriv (approxProfile α k)) (Complex.normSq z) : ℝ) : + ℂ) := by + rw [dzCLM_sq_approxSchwartz, dz_dz_sq_mul_ofReal_radial (contDiffAt_two_approxProfile α k z)] + +/-- The derivative formula for `φ_k`: `∂_zbar²φ_k (z) = z⁴ K_k'' (|z|²)`. -/ +theorem dzbarCLM_sq_approxSchwartz_eq (α : ℝ) (k : ℕ) (z : ℂ) : + (dzbarCLM ^ 2) (approxSchwartz α k) z = + z ^ 4 * ((deriv (deriv (approxProfile α k)) (Complex.normSq z) : ℝ) : ℂ) := by + rw [dzbarCLM_sq_approxSchwartz, + dzbar_dzbar_sq_mul_ofReal_radial (contDiffAt_two_approxProfile α k z)] + +/-! ### The germs of `K_k` -/ + +/-- On `t < 1`, `K_k = A_k` near `t`. -/ +theorem approxProfile_eventuallyEq_of_lt_one (α : ℝ) (k : ℕ) {t : ℝ} (ht : t < 1) : + approxProfile α k =ᶠ[𝓝 t] fun s => (s + approxEps k) ^ (-α) := by + filter_upwards [Iio_mem_nhds ht] with s hs + rw [approxProfile, approxGlue_eq_one k hs.le, + approxTrunc_eq_one k (by linarith [two_le_approxRadius k, mem_Iio.1 hs]), mul_one, mul_one] + +/-- On `1 + δ_k < t < R_k`, `K_k = A_k E` near `t`. -/ +theorem approxProfile_eventuallyEq_of_lt (α : ℝ) (k : ℕ) {t : ℝ} (h1 : 1 + approxEps k < t) + (h2 : t < approxRadius k) : + approxProfile α k =ᶠ[𝓝 t] fun s => (s + approxEps k) ^ (-α) * expCutoff s := by + filter_upwards [Ioo_mem_nhds h1 h2] with s hs + rw [approxProfile, approxGlue_eq_expCutoff k hs.1.le, approxTrunc_eq_one k hs.2.le, mul_one] + +/-! ### Pointwise limits -/ + +/-- On `(0, 1)`, `K_k^{(j)} (t) → (t^{−α})^{(j)}`, `j ≤ 2`. -/ +theorem tendstoTwo_approxProfile_of_lt_one (α : ℝ) {t : ℝ} (ht0 : 0 < t) (ht1 : t < 1) : + TendstoTwo (approxProfile α) (fun s => s ^ (-α)) t := + (tendstoTwo_rpow_add_neg α ht0 tendsto_approxEps).congr + (Eventually.of_forall fun k => approxProfile_eventuallyEq_of_lt_one α k ht1) + +/-- On `(1, ∞)`, `K_k^{(j)} (t) → (t^{−α} E (t))^{(j)}`, `j ≤ 2`. -/ +theorem tendstoTwo_approxProfile_of_one_lt (α : ℝ) {t : ℝ} (ht : 1 < t) : + TendstoTwo (approxProfile α) (fun s => s ^ (-α) * expCutoff s) t := by + have hA : ∀ k, ContDiffAt ℝ 2 (fun s : ℝ => (s + approxEps k) ^ (-α)) t := fun k => + (contDiffAt_rpow_add_neg α _ (by linarith [approxEps_pos k])).of_le (by norm_num) + have h := (tendstoTwo_rpow_add_neg α (by linarith : (0 : ℝ) < t) tendsto_approxEps).mul_right + hA (Real.contDiffAt_rpow_const_of_ne (by linarith)) (contDiffAt_expCutoff (by linarith)) + refine h.congr ?_ + have h1 : ∀ᶠ k in atTop, 1 + approxEps k < t := + (by simpa using tendsto_approxEps.const_add 1 : Tendsto (fun k => 1 + approxEps k) atTop + (𝓝 1)).eventually_lt_const ht + filter_upwards [h1, tendsto_approxRadius.eventually_gt_atTop t] with k hk1 hk2 using + approxProfile_eventuallyEq_of_lt α k hk1 hk2 + +/-! ### Domination -/ + +/-- On `t < 1`, `K_k^{(j)} (t) = A_k^{(j)} (t)`, `j ≤ 2`, explicitly. -/ +theorem approxProfile_jet_of_lt_one (α : ℝ) (k : ℕ) {t : ℝ} (ht : t < 1) : + approxProfile α k t = (t + approxEps k) ^ (-α) ∧ + deriv (approxProfile α k) t = -α * (t + approxEps k) ^ (-α - 1) ∧ + deriv (deriv (approxProfile α k)) t = α * (α + 1) * (t + approxEps k) ^ (-α - 2) := by + have h := approxProfile_eventuallyEq_of_lt_one α k ht + refine ⟨h.self_of_nhds, ?_, ?_⟩ + · rw [h.deriv_eq, deriv_rpow_add_neg] + · rw [h.deriv.deriv_eq, deriv_deriv_rpow_add_neg] + +/-- On `(0, 1)`: `|2 K_k + 4 t K_k' + t² K_k''| ≤ 8 t^{−α}` and `t² |K_k''| ≤ 2 t^{−α}`, since +`t / (t + ε_k) ≤ 1` and `(t + ε_k)^{−α} ≤ t^{−α}`. -/ +theorem abs_approxProfile_le_of_lt_one {α : ℝ} (hα0 : 0 < α) (hα1 : α < 1) (k : ℕ) {t : ℝ} + (ht0 : 0 < t) (ht1 : t < 1) : + |2 * approxProfile α k t + 4 * t * deriv (approxProfile α k) t + + t ^ 2 * deriv (deriv (approxProfile α k)) t| ≤ 8 * t ^ (-α) ∧ + t ^ 2 * |deriv (deriv (approxProfile α k)) t| ≤ 2 * t ^ (-α) := by + obtain ⟨h0, h1, h2⟩ := approxProfile_jet_of_lt_one α k ht1 + rw [h0, h1, h2] + have hε := approxEps_pos k + obtain ⟨s, hs_def⟩ : ∃ s, s = t + approxEps k := ⟨_, rfl⟩ + rw [← hs_def] + have hs : 0 < s := by linarith + have hts : t ≤ s := by linarith + have hX0 : 0 < s ^ (-α) := Real.rpow_pos_of_pos hs _ + have hXt : s ^ (-α) ≤ t ^ (-α) := Real.rpow_le_rpow_of_nonpos ht0 hts (by linarith) + have e1 : s ^ (-α - 1) = s ^ (-α) / s := Real.rpow_sub_one hs.ne' _ + have e2 : s ^ (-α - 2) = s ^ (-α) / s ^ 2 := by + rw [Real.rpow_sub hs, Real.rpow_two] + rw [e1, e2] + obtain ⟨r, hr_def⟩ : ∃ r, r = t / s := ⟨_, rfl⟩ + have hr0 : 0 < r := hr_def ▸ div_pos ht0 hs + have hr1 : r ≤ 1 := hr_def ▸ (div_le_one hs).2 hts + have eq1 : 2 * s ^ (-α) + 4 * t * (-α * (s ^ (-α) / s)) + + t ^ 2 * (α * (α + 1) * (s ^ (-α) / s ^ 2)) = + s ^ (-α) * (2 - 4 * α * r + α * (α + 1) * r ^ 2) := by + rw [hr_def]; field_simp; ring + have eq2 : t ^ 2 * |α * (α + 1) * (s ^ (-α) / s ^ 2)| = s ^ (-α) * (α * (α + 1) * r ^ 2) := by + rw [abs_of_nonneg (by positivity), hr_def]; field_simp + rw [eq1, eq2, abs_mul, abs_of_pos hX0] + have har : α * r ≤ 1 := by + simpa using mul_le_mul hα1.le hr1 hr0.le (zero_le_one : (0 : ℝ) ≤ 1) + have har2 : α * (α + 1) * r ^ 2 ≤ 2 := by + have hr2 : r ^ 2 ≤ 1 := by simpa using pow_le_pow_left₀ hr0.le hr1 2 + have hαplus : α + 1 ≤ 2 := by linarith only [hα1] + have hαα : α * (α + 1) ≤ 2 := by + simpa using mul_le_mul hα1.le hαplus + (by positivity : 0 ≤ α + 1) (zero_le_one : (0 : ℝ) ≤ 1) + simpa using mul_le_mul hαα hr2 (sq_nonneg r) (by norm_num : (0 : ℝ) ≤ 2) + have har3 : 0 ≤ α * (α + 1) * r ^ 2 := by positivity + have hP : |2 - 4 * α * r + α * (α + 1) * r ^ 2| ≤ 8 := by + rw [abs_le] + constructor <;> linarith only [har, har2, har3, mul_nonneg hα0.le hr0.le] + constructor + · calc _ ≤ t ^ (-α) * 8 := mul_le_mul hXt hP (abs_nonneg _) (Real.rpow_nonneg ht0.le _) + _ = 8 * t ^ (-α) := mul_comm _ _ + · calc _ ≤ t ^ (-α) * 2 := mul_le_mul hXt har2 har3 (Real.rpow_nonneg ht0.le _) + _ = 2 * t ^ (-α) := mul_comm _ _ + +/-- Near the unit circle, `1 ≤ t ≤ 1 + δ_k`: `|G_k|, |G_k'|, |G_k''| ≤ 2 + 3 S`, with `S` a bound +for `s`, `s'`, `s''` (`|E − 1| ≤ δ²`, `|E'| ≤ δ`, `|E''| ≤ 2`). -/ +theorem derivBoundTwo_approxGlue_of_le {S : ℝ} (hS1 : 1 ≤ S) + (hS : ∀ x, DerivBoundTwo Real.smoothTransition x S) (k : ℕ) {t : ℝ} (ht : 1 ≤ t) + (htδ : t ≤ 1 + approxEps k) : DerivBoundTwo (approxGlue k) t (2 + 3 * S) := by + obtain ⟨δ, hδ_def⟩ : ∃ δ, δ = approxEps k := ⟨_, rfl⟩ + have hδ : 0 < δ := hδ_def ▸ approxEps_pos k + have hδ1 : δ ≤ 1 := hδ_def ▸ approxEps_le_one k + rw [← hδ_def] at htδ + set σ : ℝ → ℝ := fun s => Real.smoothTransition (δ⁻¹ * s + -δ⁻¹) with hσ_def + have hG : approxGlue k = fun s => 1 + (expCutoff s - 1) * σ s := by + funext s + simp only [approxGlue, σ, ← hδ_def] + congr 3 + rw [div_eq_inv_mul] + ring + have hE2 : ContDiffAt ℝ 2 (fun s => expCutoff s - 1) t := + (contDiffAt_expCutoff (by linarith)).sub contDiffAt_const + have hσ2 : ContDiffAt ℝ 2 σ t := + (Real.smoothTransition.contDiff (n := 2)).contDiffAt.comp t + ((contDiffAt_const.mul contDiffAt_id).add contDiffAt_const) + have hd : deriv (approxGlue k) = deriv fun s => (expCutoff s - 1) * σ s := by + rw [hG, deriv_const_add'] + have hd1 : deriv σ t = δ⁻¹ * deriv Real.smoothTransition (δ⁻¹ * t + -δ⁻¹) := by + rw [hσ_def, deriv_comp_mul_add] + have hd2 : deriv (deriv σ) t = + δ⁻¹ ^ 2 * deriv (deriv Real.smoothTransition) (δ⁻¹ * t + -δ⁻¹) := by + rw [hσ_def, deriv_deriv_comp_mul_add] + have hσ0 : |σ t| ≤ 1 := by + rw [abs_of_nonneg (Real.smoothTransition.nonneg _)]; exact Real.smoothTransition.le_one _ + obtain ⟨-, hs1, hs2⟩ := hS (δ⁻¹ * t + -δ⁻¹) + -- the bounds on `E − 1`, `E'`, `E''` + have hE0 : |expCutoff t - 1| ≤ δ ^ 2 := + (abs_expCutoff_sub_one_le ht).trans (pow_le_pow_left₀ (by linarith) (by linarith) 2) + have hE0' : |expCutoff t - 1| ≤ 1 := by + rw [abs_of_nonpos (by linarith [expCutoff_le_one t])]; linarith [expCutoff_pos t] + have hE1 : |deriv expCutoff t| ≤ δ := (abs_deriv_expCutoff_le ht).trans (by linarith) + have hE2' : |deriv (deriv expCutoff) t| ≤ 2 := + (derivBoundTwo_expCutoff ht).2.2.trans (by linarith [expCutoff_le_one t]) + have hu : 0 < δ⁻¹ := inv_pos.2 hδ + have huδ : δ⁻¹ * δ = 1 := inv_mul_cancel₀ hδ.ne' + have k1 : |expCutoff t - 1| * δ⁻¹ ≤ 1 := by + calc |expCutoff t - 1| * δ⁻¹ ≤ δ ^ 2 * δ⁻¹ := mul_le_mul_of_nonneg_right hE0 hu.le + _ = δ := by field_simp + _ ≤ 1 := hδ1 + have k2 : |expCutoff t - 1| * δ⁻¹ ^ 2 ≤ 1 := by + calc |expCutoff t - 1| * δ⁻¹ ^ 2 ≤ δ ^ 2 * δ⁻¹ ^ 2 := + mul_le_mul_of_nonneg_right hE0 (by positivity) + _ = 1 := by field_simp + have k3 : |deriv expCutoff t| * δ⁻¹ ≤ 1 := by + calc |deriv expCutoff t| * δ⁻¹ ≤ δ * δ⁻¹ := mul_le_mul_of_nonneg_right hE1 hu.le + _ = 1 := by field_simp + refine ⟨?_, ?_, ?_⟩ + · rw [hG] + refine (abs_add_le _ _).trans ?_ + rw [abs_one, abs_mul] + have hprod := mul_le_mul hE0' hσ0 (abs_nonneg _) (zero_le_one : (0 : ℝ) ≤ 1) + linarith only [hprod, hS1] + · rw [hd, deriv_fun_mul (hE2.differentiableAt (by norm_num)) (hσ2.differentiableAt (by norm_num)), + deriv_sub_const, hd1] + refine (abs_add_le _ _).trans ?_ + rw [abs_mul, abs_mul, abs_mul, abs_of_pos hu] + have hfirst : |deriv expCutoff t| * |σ t| ≤ 1 := by + simpa using (mul_le_mul hE1 hσ0 (abs_nonneg _) hδ.le).trans + (mul_le_mul_of_nonneg_right hδ1 zero_le_one) + have hlast := mul_le_mul k1 hs1 (abs_nonneg _) (zero_le_one : (0 : ℝ) ≤ 1) + linarith only [hfirst, hlast, hS1] + · rw [hd, deriv_deriv_mul hE2 hσ2, deriv_sub_const_fun, hd1, hd2] + refine (abs_add_le _ _).trans (add_le_add (abs_add_le _ _) le_rfl |>.trans ?_) + rw [abs_mul, abs_mul, abs_mul, abs_mul, abs_mul, abs_mul, abs_two, abs_of_pos hu, + abs_of_pos (by positivity : 0 < δ⁻¹ ^ 2)] + have hfirst := mul_le_mul hE2' hσ0 (abs_nonneg _) (by norm_num : (0 : ℝ) ≤ 2) + have hmiddle := mul_le_mul k3 hs1 (abs_nonneg _) (zero_le_one : (0 : ℝ) ≤ 1) + have hlast := mul_le_mul k2 hs2 (abs_nonneg _) (zero_le_one : (0 : ℝ) ≤ 1) + linarith only [hfirst, hmiddle, hlast] + +/-- For `t > 1`, `|G_k^{(j)} (t)| ≤ B E (t)`, `j ≤ 2`, uniformly in `k`. -/ +theorem exists_derivBoundTwo_approxGlue : + ∃ B, ∀ k t, 1 < t → DerivBoundTwo (approxGlue k) t (B * expCutoff t) := by + obtain ⟨S, hS1, hS⟩ := exists_derivBoundTwo_smoothTransition + refine ⟨2 + (2 + 3 * S) * Real.exp 1, fun k t ht => ?_⟩ + have hE := expCutoff_pos t + rcases le_or_gt t (1 + approxEps k) with htδ | htδ + · refine (derivBoundTwo_approxGlue_of_le hS1 hS k ht.le htδ).mono ?_ + have hE1 : Real.exp (-1) ≤ expCutoff t := + exp_neg_one_le_expCutoff ht.le (by linarith [approxEps_le_one k]) + have : 1 ≤ Real.exp 1 * expCutoff t := by + calc (1 : ℝ) = Real.exp 1 * Real.exp (-1) := by rw [← Real.exp_add]; simp + _ ≤ Real.exp 1 * expCutoff t := mul_le_mul_of_nonneg_left hE1 (Real.exp_pos 1).le + nlinarith + · have h : approxGlue k =ᶠ[𝓝 t] expCutoff := by + filter_upwards [Ioi_mem_nhds htδ] with s hs using approxGlue_eq_expCutoff k hs.le + refine ((derivBoundTwo_expCutoff ht.le).congr h).mono ?_ + have : 0 ≤ (2 + 3 * S) * Real.exp 1 * expCutoff t := + mul_nonneg (mul_nonneg (by linarith) (Real.exp_pos 1).le) hE.le + nlinarith + +/-- `|χ_k^{(j)}| ≤ S`, `j ≤ 2`, with `S` a bound for `s`, `s'`, `s''` (`R_k ≥ 1`). -/ +theorem derivBoundTwo_approxTrunc {S : ℝ} (hS : ∀ x, DerivBoundTwo Real.smoothTransition x S) + (k : ℕ) (t : ℝ) : DerivBoundTwo (approxTrunc k) t S := by + have hR : 0 < approxRadius k := by linarith [two_le_approxRadius k] + have h : approxTrunc k = fun s => Real.smoothTransition (-(approxRadius k)⁻¹ * s + 2) := by + funext s + simp only [approxTrunc] + congr 1 + rw [div_eq_mul_inv] + ring + rw [h] + refine DerivBoundTwo.comp_mul_add ?_ (hS _) + rw [abs_neg, abs_inv, abs_of_pos hR] + exact inv_le_one_of_one_le₀ (by linarith [two_le_approxRadius k]) + +/-- For `t > 1` and `α ∈ [0, 1]`, `|K_k^{(j)} (t)| ≤ B E (t)`, `j ≤ 2`, uniformly in `k`. -/ +theorem exists_derivBoundTwo_approxProfile {α : ℝ} (hα0 : 0 ≤ α) (hα1 : α ≤ 1) : + ∃ B, ∀ k t, 1 < t → DerivBoundTwo (approxProfile α k) t (B * expCutoff t) := by + obtain ⟨S, -, hS⟩ := exists_derivBoundTwo_smoothTransition + obtain ⟨Bg, hBg⟩ := exists_derivBoundTwo_approxGlue + refine ⟨4 * (4 * 2 * Bg) * S, fun k t ht => ?_⟩ + have hA : DerivBoundTwo (fun s => (s + approxEps k) ^ (-α)) t 2 := + DerivBoundTwo.comp_add_const + (derivBoundTwo_rpow_neg hα0 hα1 (by linarith [approxEps_pos k])) + have hAc : ContDiffAt ℝ 2 (fun s : ℝ => (s + approxEps k) ^ (-α)) t := + (contDiffAt_rpow_add_neg α _ (by linarith [approxEps_pos k])).of_le (by norm_num) + have hGc : ContDiffAt ℝ 2 (approxGlue k) t := + (contDiff_approxGlue k).contDiffAt.of_le (by norm_num) + have hTc : ContDiffAt ℝ 2 (approxTrunc k) t := + (contDiff_approxTrunc k).contDiffAt.of_le (by norm_num) + have h := (hA.mul hAc hGc (hBg k t ht)).mul (hAc.mul hGc) hTc + (derivBoundTwo_approxTrunc hS k t) + exact (show DerivBoundTwo (approxProfile α k) t _ from h).mono (le_of_eq (by ring)) + +/-- Domination on the punctured unit disc: `|∂²φ_k (z)| ≤ 8 |z|^{−2α}`, +`|∂_zbar²φ_k (z)| ≤ 2 |z|^{−2α}`. -/ +theorem norm_approxSchwartz_le_of_lt_one {α : ℝ} (hα0 : 0 < α) (hα1 : α < 1) (k : ℕ) {z : ℂ} + (hz0 : z ≠ 0) (hz : ‖z‖ < 1) : + ‖(dzCLM ^ 2) (approxSchwartz α k) z‖ ≤ 8 * ‖z‖ ^ (-2 * α) ∧ + ‖(dzbarCLM ^ 2) (approxSchwartz α k) z‖ ≤ 2 * ‖z‖ ^ (-2 * α) := by + have ht0 : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + have ht1 : Complex.normSq z < 1 := by + rw [Complex.normSq_eq_norm_sq]; nlinarith [norm_nonneg z] + have hk := contDiffAt_two_approxProfile α k z + obtain ⟨h1, h2⟩ := abs_approxProfile_le_of_lt_one hα0 hα1 k ht0 ht1 + rw [dzCLM_sq_approxSchwartz, dzbarCLM_sq_approxSchwartz, dz_dz_sq_mul_ofReal_radial hk, + dzbar_dzbar_sq_mul_ofReal_radial hk, Complex.norm_real, Real.norm_eq_abs, norm_mul, + norm_pow, Complex.norm_real, Real.norm_eq_abs, ← normSq_rpow_neg] + refine ⟨h1, ?_⟩ + rwa [show ‖z‖ ^ 4 = Complex.normSq z ^ 2 by rw [Complex.normSq_eq_norm_sq]; ring] + +/-- Domination outside the unit disc, for `α ∈ [0, 1]`: +`|∂²φ_k (z)|, |∂_zbar²φ_k (z)| ≤ C (1 + |z|²)² e^{−(|z| − 1)²}`, uniformly in `k`. -/ +theorem exists_norm_approxSchwartz_le_of_one_lt {α : ℝ} (hα0 : 0 ≤ α) (hα1 : α ≤ 1) : + ∃ C, ∀ k z, 1 < ‖z‖ → + ‖(dzCLM ^ 2) (approxSchwartz α k) z‖ ≤ + C * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) ∧ + ‖(dzbarCLM ^ 2) (approxSchwartz α k) z‖ ≤ + C * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) := by + obtain ⟨B, hB⟩ := exists_derivBoundTwo_approxProfile hα0 hα1 + refine ⟨2 * B, fun k z hz => ?_⟩ + have ht : 1 < Complex.normSq z := by + rw [Complex.normSq_eq_norm_sq]; nlinarith + have h := norm_dz_dz_sq_mul_ofReal_radial_le (contDiffAt_two_approxProfile α k z) + (hB k _ ht) + rw [expCutoff_normSq] at h + rw [dzCLM_sq_approxSchwartz, dzbarCLM_sq_approxSchwartz] + constructor + · exact h.1.trans_eq (by ring) + · exact h.2.trans_eq (by ring) + +end HarmonicAnalysis.BeurlingAhlfors diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/One.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/One.lean new file mode 100644 index 0000000000..d2fdf52f54 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/One.lean @@ -0,0 +1,548 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.TestFunctions +import Mathlib.Analysis.InnerProductSpace.Calculus + +/-! +# Dragičević's test functions for `n = 1` + +Dragičević's test functions (2011 article, p. 465) are `f_{n,α} (z) = z^n |z|^{−2α} g_n (|z|)`, +with a sufficiently smooth, rapidly decaying cutoff `g_n` equal to `1` on `[0, 1]`. The article's +example for `n = 1`, `g₁ (x) = exp (−(x − 1))` for `x > 1`, is not `C¹` at `1`. The cutoff here is +that of `n = 2`, `g₂ (x) = exp (−(x − 1)²)` for `x > 1` +(`HarmonicAnalysis.BeurlingAhlfors.testCutoff 2`), which is `C¹`: +`f_{1,α} (z) = z |z|^{−2α} g₂ (|z|)` (`HarmonicAnalysis.BeurlingAhlfors.testFunOne`). The choice +changes no limit, since the integrals outside the unit disc stay bounded while those on the disc +grow like `(1 − αp)⁻¹`, and the smooth approximations of `f_{2,α}` +(`HarmonicAnalysis.BeurlingAhlfors.approxProfile`) serve for `f_{1,α}` as they are. + +On the unit disc, `f_{1,α} (z) = z |z|^{−2α}`: these are the functions `f_α` of +Baernstein–Montgomery-Smith (1999, §1), who continue them by `1/(conj z)` outside the disc and +compute +that `∫ |∂f_α|^p / ∫ |∂_zbar f_α|^p → (p − 1)^p` as `α → 1/p`. + +With `t = |z|²` and `f (z) = z k (t)` for a real profile `k`, `∂f = k (t) + t k' (t)` and +`∂_zbar f = z² k' (t)` (`HarmonicAnalysis.dz_mul_ofReal_radial`, +`HarmonicAnalysis.dzbar_mul_ofReal_radial`, from `HarmonicAnalysis.dz_monomial_mul_radial` and +`HarmonicAnalysis.dzbar_monomial_mul_radial`). + +## Main results, for `n = 1` + +* On the punctured unit disc (Dragičević's proof of Theorem 1.1, pp. 466–467): + `∂f = (1 − α) |z|^{−2α}` and `|∂_zbar f| = α |z|^{−2α}`, so that, for `0 < α < 1/p`, + `∫_Δ |∂f|^p = π / (1 − αp) (1 − α)^p` and `∫_Δ |∂_zbar f|^p = π / (1 − αp) α^p` + (`lintegral_dz_testFunOne_ball`, `lintegral_dzbar_testFunOne_ball`). +* Outside the disc, the integrals of `|∂f|^p` and `|∂_zbar f|^p` stay bounded for `α ∈ [0, 1]` + (`exists_bound_testFunOne_compl_ball`). +* `f_{1,α} ∈ W^{1,p}` for `1 ≤ p`, `0 < α < 1/p` (asserted without proof in the article, p. 465; + for `n = 1`, Exercise 2.19 of the lecture notes, whose hint is to approximate by smooth + functions), in the form used: Schwartz functions `φ_k` with `∂_zbar φ_k → ∂_zbar f` and `∂φ_k → + ∂f` in + `L^p` (`exists_schwartz_tendsto_testFunOne`). + +The limit of `‖∂f_{1,α}‖_p / ‖∂_zbar f_{1,α}‖_p` and the bound `p − 1 ≤ ‖𝓑‖_p` are in +`HarmonicAnalysis.BeurlingAhlfors.LowerBound`. + +## Proofs + +As for `n = 2` (`HarmonicAnalysis.BeurlingAhlfors.TestFunctions`), with first derivatives only. +Near `z` with `|z| < 1`, resp. `|z| > 1`, `f_{1,α} (w) = w K (|w|²)` with `K (t) = t^{−α}`, resp. +`K (t) = t^{−α} E (t)`, `E (t) = exp (−(√t − 1)²)`; outside the disc the bounds on `K` and `K'` +of the case `n = 2` give `|∂f|, |∂_zbar f| ≤ 32 (1 + |z|²)² e^{−(|z| − 1)²}`. The approximants are +`φ_k (z) = z K_k (|z|²)` (`approxSchwartzOne`), with the profiles `K_k` of the approximations of +`f_{2,α}` (`HarmonicAnalysis.BeurlingAhlfors.TestFunctions.Approx`): they regularise the +singularity at `0`, smooth the cutoff at `|z| = 1` and truncate at infinity; dominated +convergence, by `|z|^{−2α}` on the disc and the bounds of the case `n = 2` outside it. + +## References + +* O. Dragičević, *Some remarks on the `L^p` estimates for powers of the Ahlfors–Beurling + operator*, Arch. Math. 96 (2011), 463–471: p. 465 and the proof of Theorem 1.1, pp. 466–467. +* O. Dragičević, *Analysis of the Ahlfors–Beurling transform*, lecture notes, + [arXiv:2109.04555](https://arxiv.org/abs/2109.04555), Exercise 2.19 and §4.1. +* A. Baernstein II and S. J. Montgomery-Smith, *Some conjectures about integral means of `∂f` and + `∂_zbar f`*, in: Complex analysis and differential equations (Uppsala, 1997), ed. C. Kiselman, + Acta + Univ. Upsaliensis C 64 (1999), 92–109, [arXiv:math/9709215](https://arxiv.org/abs/math/9709215), + §1. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology Set +open scoped SchwartzMap ENNReal Real ComplexConjugate ContDiff + +namespace HarmonicAnalysis + +/-! ### The first Wirtinger derivatives of `z k (|z|²)` -/ + +/-- `∂ (z k (|z|²)) = k (t) + t k' (t)`, `t = |z|²`, for a real profile `k` differentiable +at `t`. -/ +theorem dz_mul_ofReal_radial {k : ℝ → ℝ} {z : ℂ} (hk : DifferentiableAt ℝ k (Complex.normSq z)) : + dz (fun w => w * ((k (Complex.normSq w) : ℝ) : ℂ)) z = + ((k (Complex.normSq z) + Complex.normSq z * deriv k (Complex.normSq z) : ℝ) : ℂ) := by + have hK : DifferentiableAt ℝ (fun s => (k s : ℂ)) (Complex.normSq z) := + hk.hasDerivAt.ofReal_comp.differentiableAt + have h := dz_monomial_mul_radial 1 0 hK + have hf : (fun w : ℂ => w ^ 1 * conj w ^ 0 * ((k (Complex.normSq w) : ℝ) : ℂ)) = + fun w => w * ((k (Complex.normSq w) : ℝ) : ℂ) := by + funext w + ring + rw [hf, deriv_ofReal_comp] at h + rw [h] + simp only [Nat.cast_one, Nat.sub_self, pow_zero, pow_one, zero_add, one_mul, mul_one] + push_cast + rw [← Complex.mul_conj] + +/-- `∂_zbar (z k (|z|²)) = z² k' (|z|²)` for a real profile `k` differentiable at `|z|²`. -/ +theorem dzbar_mul_ofReal_radial {k : ℝ → ℝ} {z : ℂ} + (hk : DifferentiableAt ℝ k (Complex.normSq z)) : + dzbar (fun w => w * ((k (Complex.normSq w) : ℝ) : ℂ)) z = + z ^ 2 * ((deriv k (Complex.normSq z) : ℝ) : ℂ) := by + have hK : DifferentiableAt ℝ (fun s => (k s : ℂ)) (Complex.normSq z) := + hk.hasDerivAt.ofReal_comp.differentiableAt + have h := dzbar_monomial_mul_radial 1 0 hK + have hf : (fun w : ℂ => w ^ 1 * conj w ^ 0 * ((k (Complex.normSq w) : ℝ) : ℂ)) = + fun w => w * ((k (Complex.normSq w) : ℝ) : ℂ) := by + funext w + ring + rw [hf, deriv_ofReal_comp] at h + rw [h] + push_cast + ring + +/-- `|∂ (z k (|z|²))|, |∂_zbar (z k (|z|²))| ≤ 2 (1 + |z|²)² M` if `|k (|z|²)|, |k' (|z|²)| ≤ M`. -/ +theorem norm_dz_mul_ofReal_radial_le {k : ℝ → ℝ} {z : ℂ} {M : ℝ} + (hk : DifferentiableAt ℝ k (Complex.normSq z)) (h : DerivBoundTwo k (Complex.normSq z) M) : + ‖dz (fun w => w * ((k (Complex.normSq w) : ℝ) : ℂ)) z‖ ≤ 2 * (1 + ‖z‖ ^ 2) ^ 2 * M ∧ + ‖dzbar (fun w => w * ((k (Complex.normSq w) : ℝ) : ℂ)) z‖ ≤ + 2 * (1 + ‖z‖ ^ 2) ^ 2 * M := by + rw [dz_mul_ofReal_radial hk, dzbar_mul_ofReal_radial hk, Complex.norm_real, Real.norm_eq_abs, + norm_mul, norm_pow, Complex.norm_real, Real.norm_eq_abs, ← Complex.normSq_eq_norm_sq] + obtain ⟨h0, h1, -⟩ := h + set t := Complex.normSq z + have hM : 0 ≤ M := (abs_nonneg _).trans h0 + have ht0 : 0 ≤ t := Complex.normSq_nonneg z + have e1 : |k t + t * deriv k t| ≤ |k t| + t * |deriv k t| := by + refine (abs_add_le _ _).trans (le_of_eq ?_) + rw [abs_mul, abs_of_nonneg ht0] + have e2 := mul_le_mul_of_nonneg_left h1 ht0 + have e3 : (1 + t) * M ≤ 2 * (1 + t) ^ 2 * M := by + have : 1 + t ≤ 2 * (1 + t) ^ 2 := by nlinarith + exact mul_le_mul_of_nonneg_right this hM + constructor + · nlinarith + · nlinarith + +/-- If `f_k → g` with one derivative at `t = |z|²`, then `∂ (z f_k (|z|²)) → ∂ (z g (|z|²))` and +`∂_zbar (z f_k (|z|²)) → ∂_zbar (z g (|z|²))` at `z`. -/ +theorem tendsto_dz_mul_ofReal_radial {f : ℕ → ℝ → ℝ} {g : ℝ → ℝ} {z : ℂ} + (hf : ∀ k, DifferentiableAt ℝ (f k) (Complex.normSq z)) + (hg : DifferentiableAt ℝ g (Complex.normSq z)) (h : TendstoTwo f g (Complex.normSq z)) : + Tendsto (fun k => dz (fun w => w * ((f k (Complex.normSq w) : ℝ) : ℂ)) z) atTop + (𝓝 (dz (fun w => w * ((g (Complex.normSq w) : ℝ) : ℂ)) z)) ∧ + Tendsto (fun k => dzbar (fun w => w * ((f k (Complex.normSq w) : ℝ) : ℂ)) z) atTop + (𝓝 (dzbar (fun w => w * ((g (Complex.normSq w) : ℝ) : ℂ)) z)) := by + obtain ⟨h0, h1, -⟩ := h + rw [dz_mul_ofReal_radial hg, dzbar_mul_ofReal_radial hg] + constructor + · refine ((Complex.continuous_ofReal.tendsto _).comp (h0.add (h1.const_mul _))).congr + fun k => ?_ + rw [dz_mul_ofReal_radial (hf k)] + rfl + · refine (((Complex.continuous_ofReal.tendsto _).comp h1).const_mul _).congr fun k => ?_ + rw [dzbar_mul_ofReal_radial (hf k)] + rfl + +namespace BeurlingAhlfors + +/-! ### The test functions -/ + +/-- Dragičević's test function for `n = 1` (2011, p. 465), `f_{1,α} (z) = z |z|^{−2α} g₂ (|z|)`, +with the cutoff `g₂` of `n = 2` in place of the article's example `g₁`, which is not `C¹` at `1`. +On the unit disc, it is the function `f_α` of Baernstein–Montgomery-Smith (1999, §1). -/ +def testFunOne (α : ℝ) (z : ℂ) : ℂ := + z * ((‖z‖ ^ (-2 * α) * testCutoff 2 ‖z‖ : ℝ) : ℂ) + +/-- On the unit disc, `f_{1,α} (w) = w K₀ (|w|²)`, `K₀ (t) = t^{−α}`. -/ +theorem testFunOne_eventuallyEq_of_norm_lt_one (α : ℝ) {z : ℂ} (hz : ‖z‖ < 1) : + testFunOne α =ᶠ[𝓝 z] fun w => w * ((Complex.normSq w ^ (-α) : ℝ) : ℂ) := by + filter_upwards [(isOpen_lt continuous_norm continuous_const).mem_nhds hz] with w + (hw : ‖w‖ < 1) + rw [testFunOne, testCutoff, ite_eq_left hw.le, mul_one, normSq_rpow_neg] + +/-- Outside the closed unit disc, `f_{1,α} (w) = w K₁ (|w|²)`, `K₁ (t) = t^{−α} E (t)`, +`E (t) = exp (−(√t − 1)²)`. -/ +theorem testFunOne_eventuallyEq_of_one_lt_norm (α : ℝ) {z : ℂ} (hz : 1 < ‖z‖) : + testFunOne α =ᶠ[𝓝 z] fun w => + w * ((Complex.normSq w ^ (-α) * expCutoff (Complex.normSq w) : ℝ) : ℂ) := by + filter_upwards [(isOpen_lt continuous_const continuous_norm).mem_nhds hz] with w + (hw : 1 < ‖w‖) + rw [testFunOne, testCutoff, ite_eq_right (not_le.2 hw), normSq_rpow_neg, expCutoff_normSq] + +/-! ### The punctured unit disc -/ + +/-- On the punctured unit disc, `∂f_{1,α} (z) = (1 − α) |z|^{−2α}`. -/ +theorem dz_testFunOne_of_norm_lt_one (α : ℝ) {z : ℂ} (hz0 : z ≠ 0) (hz : ‖z‖ < 1) : + dz (testFunOne α) z = (((1 - α) * ‖z‖ ^ (-2 * α) : ℝ) : ℂ) := by + have ht : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + have h := dz_mul_ofReal_radial + ((Real.contDiffAt_rpow_const_of_ne (p := -α) (n := 1) ht.ne').differentiableAt one_ne_zero) + beta_reduce at h + rw [(testFunOne_eventuallyEq_of_norm_lt_one α hz).dz_eq, h, deriv_rpow_neg] + beta_reduce + rw [Real.rpow_sub_one ht.ne', normSq_rpow_neg] + congr 1 + field_simp + ring + +/-- On the punctured unit disc, `∂_zbar f_{1,α} (z) = −α z² |z|^{−2α−2}`. -/ +theorem dzbar_testFunOne_of_norm_lt_one (α : ℝ) {z : ℂ} (hz0 : z ≠ 0) (hz : ‖z‖ < 1) : + dzbar (testFunOne α) z = z ^ 2 * ((-α * Complex.normSq z ^ (-α - 1) : ℝ) : ℂ) := by + have ht : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + have h := dzbar_mul_ofReal_radial + ((Real.contDiffAt_rpow_const_of_ne (p := -α) (n := 1) ht.ne').differentiableAt one_ne_zero) + beta_reduce at h + rw [(testFunOne_eventuallyEq_of_norm_lt_one α hz).dzbar_eq, h, deriv_rpow_neg] + +/-- On the punctured unit disc, `|∂_zbar f_{1,α} (z)| = α |z|^{−2α}` for `α ≥ 0`. -/ +theorem norm_dzbar_testFunOne_of_norm_lt_one {α : ℝ} (hα : 0 ≤ α) {z : ℂ} (hz0 : z ≠ 0) + (hz : ‖z‖ < 1) : ‖dzbar (testFunOne α) z‖ = α * ‖z‖ ^ (-2 * α) := by + have ht : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + rw [dzbar_testFunOne_of_norm_lt_one α hz0 hz, norm_mul, norm_pow, Complex.norm_real, + Real.norm_eq_abs, abs_mul, abs_neg, abs_of_nonneg hα, + abs_of_nonneg (Real.rpow_nonneg ht.le _), ← Complex.normSq_eq_norm_sq, + Real.rpow_sub_one ht.ne', normSq_rpow_neg] + field_simp + +/-- `∫_Δ |∂f_{1,α}|^p = π / (1 − αp) (1 − α)^p` for `0 < α < 1/p`. -/ +theorem lintegral_dz_testFunOne_ball {p α : ℝ} (hp : 1 < p) (hα0 : 0 < α) (hα : α * p < 1) : + ∫⁻ z in Metric.ball (0 : ℂ) 1, ‖dz (testFunOne α) z‖ₑ ^ p = + ENNReal.ofReal (π / (1 - α * p) * (1 - α) ^ p) := by + have hp0 : 0 < p := by linarith + have hα1 : α < 1 := by nlinarith + have hc : 0 < 1 - α := by linarith + have h : ∀ᵐ z ∂(volume : Measure ℂ), z ∈ Metric.ball (0 : ℂ) 1 → + ‖dz (testFunOne α) z‖ₑ ^ p = + ENNReal.ofReal ((1 - α) ^ p) * ENNReal.ofReal (‖z‖ ^ (-(2 * α * p))) := by + filter_upwards [Measure.ae_ne volume 0] with z hz0 hz + rw [mem_ball_zero_iff] at hz + rw [dz_testFunOne_of_norm_lt_one α hz0 hz, ← ofReal_norm, Complex.norm_real, + Real.norm_eq_abs, abs_of_nonneg (by positivity), + ENNReal.ofReal_rpow_of_nonneg (by positivity) hp0.le, ← ENNReal.ofReal_mul (by positivity), + Real.mul_rpow hc.le (by positivity), ← Real.rpow_mul (norm_nonneg z)] + congr 3 + ring + rw [setLIntegral_congr_fun_ae Metric.isOpen_ball.measurableSet h, + lintegral_const_mul _ (by fun_prop), lintegral_ball_norm_rpow (by linarith), + ← ENNReal.ofReal_mul (by positivity)] + congr 1 + have : 1 - α * p ≠ 0 := by linarith + have : 2 - 2 * α * p ≠ 0 := by linarith + field_simp + +/-- `∫_Δ |∂_zbar f_{1,α}|^p = π / (1 − αp) α^p` for `0 < α < 1/p`. -/ +theorem lintegral_dzbar_testFunOne_ball {p α : ℝ} (hp : 1 < p) (hα0 : 0 < α) + (hα : α * p < 1) : + ∫⁻ z in Metric.ball (0 : ℂ) 1, ‖dzbar (testFunOne α) z‖ₑ ^ p = + ENNReal.ofReal (π / (1 - α * p) * α ^ p) := by + have hp0 : 0 < p := by linarith + have h : ∀ᵐ z ∂(volume : Measure ℂ), z ∈ Metric.ball (0 : ℂ) 1 → + ‖dzbar (testFunOne α) z‖ₑ ^ p = + ENNReal.ofReal (α ^ p) * ENNReal.ofReal (‖z‖ ^ (-(2 * α * p))) := by + filter_upwards [Measure.ae_ne volume 0] with z hz0 hz + rw [mem_ball_zero_iff] at hz + rw [← ofReal_norm, norm_dzbar_testFunOne_of_norm_lt_one hα0.le hz0 hz, + ENNReal.ofReal_rpow_of_nonneg (by positivity) hp0.le, ← ENNReal.ofReal_mul (by positivity), + Real.mul_rpow hα0.le (by positivity), ← Real.rpow_mul (norm_nonneg z)] + congr 3 + ring + rw [setLIntegral_congr_fun_ae Metric.isOpen_ball.measurableSet h, + lintegral_const_mul _ (by fun_prop), lintegral_ball_norm_rpow (by linarith), + ← ENNReal.ofReal_mul (by positivity)] + congr 1 + have : 1 - α * p ≠ 0 := by linarith + have : 2 - 2 * α * p ≠ 0 := by linarith + field_simp + +/-! ### Outside the unit disc -/ + +/-- For `|z| > 1` and `α ∈ [0, 1]`: +`|∂f_{1,α} (z)|, |∂_zbar f_{1,α} (z)| ≤ 32 (1 + |z|²)² e^{−(|z| − 1)²}`. -/ +theorem norm_testFunOne_le_of_one_lt_norm {α : ℝ} (hα : α ∈ Icc (0 : ℝ) 1) {z : ℂ} + (hz : 1 < ‖z‖) : + ‖dz (testFunOne α) z‖ ≤ 32 * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) ∧ + ‖dzbar (testFunOne α) z‖ ≤ 32 * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) := by + have ht : 1 < Complex.normSq z := by rw [Complex.normSq_eq_norm_sq]; nlinarith + have h := norm_dz_mul_ofReal_radial_le + ((contDiffAt_rpow_neg_mul_expCutoff α (by linarith)).differentiableAt (by norm_num)) + (derivBoundTwo_rpow_neg_mul_expCutoff hα ht.le) + beta_reduce at h + rw [expCutoff_normSq] at h + rw [(testFunOne_eventuallyEq_of_one_lt_norm α hz).dz_eq, + (testFunOne_eventuallyEq_of_one_lt_norm α hz).dzbar_eq] + exact ⟨h.1.trans_eq (by ring), h.2.trans_eq (by ring)⟩ + +/-- Outside the unit disc, `∫ |∂f_{1,α}|^p` and `∫ |∂_zbar f_{1,α}|^p` are bounded uniformly in +`α ∈ [0, 1]`. -/ +theorem exists_bound_testFunOne_compl_ball {p : ℝ} (hp : 0 < p) : + ∃ C : ℝ, ∀ α ∈ Set.Icc (0 : ℝ) 1, + ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, ‖dz (testFunOne α) z‖ₑ ^ p ≤ ENNReal.ofReal C ∧ + ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, ‖dzbar (testFunOne α) z‖ₑ ^ p ≤ ENNReal.ofReal C := by + set I := ∫⁻ z in (Metric.ball (0 : ℂ) 1)ᶜ, + ENNReal.ofReal (32 * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2))) ^ p with hI_def + have hI : I < ⊤ := lintegral_compl_ball_majorant_lt_top hp (by norm_num) + refine ⟨I.toReal, fun α hα => ?_⟩ + rw [ENNReal.ofReal_toReal hI.ne] + have hae : ∀ᵐ z ∂(volume.restrict (Metric.ball (0 : ℂ) 1)ᶜ), 1 < ‖z‖ := by + filter_upwards [ae_restrict_of_ae ae_norm_ne_one, + ae_restrict_mem Metric.isOpen_ball.measurableSet.compl] with z hz1 hz2 + rw [mem_compl_iff, mem_ball_zero_iff, not_lt] at hz2 + exact lt_of_le_of_ne hz2 (Ne.symm hz1) + constructor + · refine lintegral_mono_ae (hae.mono fun z hz => ?_) + rw [← ofReal_norm] + exact ENNReal.rpow_le_rpow + (ENNReal.ofReal_le_ofReal (norm_testFunOne_le_of_one_lt_norm hα hz).1) hp.le + · refine lintegral_mono_ae (hae.mono fun z hz => ?_) + rw [← ofReal_norm] + exact ENNReal.rpow_le_rpow + (ENNReal.ofReal_le_ofReal (norm_testFunOne_le_of_one_lt_norm hα hz).2) hp.le + +/-! ### Approximation in `W^{1,p}` -/ + +/-- The approximants `φ_k (z) = z K_k (|z|²)`, with the profiles `K_k` of the approximations of +`f_{2,α}` (`HarmonicAnalysis.BeurlingAhlfors.approxProfile`). -/ +def approxFunOne (α : ℝ) (k : ℕ) (z : ℂ) : ℂ := + z * ((approxProfile α k (Complex.normSq z) : ℝ) : ℂ) + +/-- `φ_k` is smooth. -/ +theorem contDiff_approxFunOne (α : ℝ) (k : ℕ) : ContDiff ℝ ∞ (approxFunOne α k) := by + have hN : ContDiff ℝ ∞ Complex.normSq := by + rw [show Complex.normSq = fun z : ℂ => ‖z‖ ^ 2 from funext Complex.normSq_eq_norm_sq] + exact contDiff_norm_sq ℝ + rw [contDiff_iff_contDiffAt] + intro z + have h1 : ContDiffAt ℝ ∞ (approxProfile α k) (Complex.normSq z) := + contDiffAt_approxProfile α k (by linarith [Complex.normSq_nonneg z, approxEps_pos k]) + have h2 : ContDiffAt ℝ ∞ (fun w => ((approxProfile α k (Complex.normSq w) : ℝ) : ℂ)) z := + Complex.ofRealCLM.contDiff.contDiffAt.comp z (h1.comp z hN.contDiffAt) + exact contDiffAt_id.mul h2 + +/-- `φ_k (z) = 0` for `|z|² ≥ 2 R_k`. -/ +theorem approxFunOne_eq_zero (α : ℝ) (k : ℕ) {z : ℂ} + (hz : 2 * approxRadius k ≤ Complex.normSq z) : approxFunOne α k z = 0 := by + rw [approxFunOne, approxProfile, approxTrunc_eq_zero k hz] + simp + +/-- `φ_k` has compact support. -/ +theorem hasCompactSupport_approxFunOne (α : ℝ) (k : ℕ) : + HasCompactSupport (approxFunOne α k) := by + refine HasCompactSupport.intro (isCompact_closedBall (0 : ℂ) (2 * approxRadius k)) + fun z hz => approxFunOne_eq_zero α k ?_ + rw [Metric.mem_closedBall, dist_zero_right, not_le] at hz + rw [Complex.normSq_eq_norm_sq] + have := two_le_approxRadius k + nlinarith + +/-- `φ_k` as a Schwartz function. -/ +def approxSchwartzOne (α : ℝ) (k : ℕ) : 𝓢(ℂ, ℂ) := + (hasCompactSupport_approxFunOne α k).toSchwartzMap (contDiff_approxFunOne α k) + +/-- `∂φ_k` is the pointwise `∂` of `z K_k (|z|²)`. -/ +theorem dzCLM_pow_one_approxSchwartzOne (α : ℝ) (k : ℕ) (z : ℂ) : + (dzCLM ^ 1) (approxSchwartzOne α k) z = + dz (fun w => w * ((approxProfile α k (Complex.normSq w) : ℝ) : ℂ)) z := by + rw [pow_one, dzCLM_apply] + rfl + +/-- `∂_zbar φ_k` is the pointwise `∂_zbar` of `z K_k (|z|²)`. -/ +theorem dzbarCLM_pow_one_approxSchwartzOne (α : ℝ) (k : ℕ) (z : ℂ) : + (dzbarCLM ^ 1) (approxSchwartzOne α k) z = + dzbar (fun w => w * ((approxProfile α k (Complex.normSq w) : ℝ) : ℂ)) z := by + rw [pow_one, dzbarCLM_apply] + rfl + +/-- On `(0, 1)`: `|K_k + t K_k'| ≤ t^{−α}` and `t |K_k'| ≤ t^{−α}`, since `t / (t + ε_k) ≤ 1` and +`(t + ε_k)^{−α} ≤ t^{−α}`. -/ +theorem abs_approxProfile_add_le_of_lt_one {α : ℝ} (hα0 : 0 < α) (hα1 : α < 1) (k : ℕ) {t : ℝ} + (ht0 : 0 < t) (ht1 : t < 1) : + |approxProfile α k t + t * deriv (approxProfile α k) t| ≤ t ^ (-α) ∧ + t * |deriv (approxProfile α k) t| ≤ t ^ (-α) := by + obtain ⟨h0, h1, -⟩ := approxProfile_jet_of_lt_one α k ht1 + rw [h0, h1] + have hε := approxEps_pos k + obtain ⟨s, hs_def⟩ : ∃ s, s = t + approxEps k := ⟨_, rfl⟩ + rw [← hs_def] + have hs : 0 < s := by linarith + have hts : t ≤ s := by linarith + have hX0 : 0 < s ^ (-α) := Real.rpow_pos_of_pos hs _ + have hXt : s ^ (-α) ≤ t ^ (-α) := Real.rpow_le_rpow_of_nonpos ht0 hts (by linarith) + have e1 : s ^ (-α - 1) = s ^ (-α) / s := Real.rpow_sub_one hs.ne' _ + rw [e1] + obtain ⟨r, hr_def⟩ : ∃ r, r = t / s := ⟨_, rfl⟩ + have hr0 : 0 < r := hr_def ▸ div_pos ht0 hs + have hr1 : r ≤ 1 := hr_def ▸ (div_le_one hs).2 hts + have eq1 : s ^ (-α) + t * (-α * (s ^ (-α) / s)) = s ^ (-α) * (1 - α * r) := by + rw [hr_def]; field_simp; ring + have eq2 : t * |-α * (s ^ (-α) / s)| = s ^ (-α) * (α * r) := by + rw [abs_mul, abs_neg, abs_of_pos hα0, abs_of_pos (div_pos hX0 hs), hr_def] + field_simp + rw [eq1, eq2, abs_mul, abs_of_pos hX0] + have har : α * r ≤ 1 := by nlinarith + have har0 : 0 ≤ α * r := by positivity + constructor + · rw [abs_of_nonneg (by linarith)]; nlinarith + · nlinarith + +/-- Domination on the punctured unit disc: `|∂φ_k (z)|, |∂_zbar φ_k (z)| ≤ |z|^{−2α}`. -/ +theorem norm_approxSchwartzOne_le_of_lt_one {α : ℝ} (hα0 : 0 < α) (hα1 : α < 1) (k : ℕ) + {z : ℂ} (hz0 : z ≠ 0) (hz : ‖z‖ < 1) : + ‖(dzCLM ^ 1) (approxSchwartzOne α k) z‖ ≤ ‖z‖ ^ (-2 * α) ∧ + ‖(dzbarCLM ^ 1) (approxSchwartzOne α k) z‖ ≤ ‖z‖ ^ (-2 * α) := by + have ht0 : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + have ht1 : Complex.normSq z < 1 := by + rw [Complex.normSq_eq_norm_sq]; nlinarith [norm_nonneg z] + have hk := (contDiffAt_two_approxProfile α k z).differentiableAt (by norm_num) + obtain ⟨h1, h2⟩ := abs_approxProfile_add_le_of_lt_one hα0 hα1 k ht0 ht1 + rw [dzCLM_pow_one_approxSchwartzOne, dzbarCLM_pow_one_approxSchwartzOne, + dz_mul_ofReal_radial hk, dzbar_mul_ofReal_radial hk, Complex.norm_real, Real.norm_eq_abs, + norm_mul, norm_pow, Complex.norm_real, Real.norm_eq_abs, ← Complex.normSq_eq_norm_sq, + ← normSq_rpow_neg] + exact ⟨h1, h2⟩ + +/-- Domination outside the unit disc, for `α ∈ [0, 1]`: +`|∂φ_k (z)|, |∂_zbar φ_k (z)| ≤ C (1 + |z|²)² e^{−(|z| − 1)²}`, uniformly in `k`. -/ +theorem exists_norm_approxSchwartzOne_le_of_one_lt {α : ℝ} (hα0 : 0 ≤ α) (hα1 : α ≤ 1) : + ∃ C, ∀ k z, 1 < ‖z‖ → + ‖(dzCLM ^ 1) (approxSchwartzOne α k) z‖ ≤ + C * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) ∧ + ‖(dzbarCLM ^ 1) (approxSchwartzOne α k) z‖ ≤ + C * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) := by + obtain ⟨B, hB⟩ := exists_derivBoundTwo_approxProfile hα0 hα1 + refine ⟨2 * B, fun k z hz => ?_⟩ + have ht : 1 < Complex.normSq z := by + rw [Complex.normSq_eq_norm_sq]; nlinarith + have h := norm_dz_mul_ofReal_radial_le + ((contDiffAt_two_approxProfile α k z).differentiableAt (by norm_num)) (hB k _ ht) + rw [expCutoff_normSq] at h + rw [dzCLM_pow_one_approxSchwartzOne, dzbarCLM_pow_one_approxSchwartzOne] + exact ⟨h.1.trans_eq (by ring), h.2.trans_eq (by ring)⟩ + +/-- `f_{1,α} ∈ W^{1,p}` for `1 ≤ p < ∞`, `0 < α < 1/p` (Dragičević 2011, p. 465, where `p > 2`), in +the form used: there are Schwartz functions `φ_k` with `∂_zbar φ_k → ∂_zbar f_{1,α}` and `∂φ_k → +∂f_{1,α}` +in `L^p`. + +The article asserts this without proof, and the lecture notes leave it as an exercise (Exercise +2.19, whose hint is to approximate by smooth functions); the proof is the standard approximation +argument, as for `n = 2` (`HarmonicAnalysis.BeurlingAhlfors.exists_schwartz_tendsto_testFun`): +`φ_k (z) = z K_k (|z|²)` (`HarmonicAnalysis.BeurlingAhlfors.approxSchwartzOne`) regularises the +singularity at `0`, smooths the cutoff at `|z| = 1` and truncates at infinity. Off `0` and the +unit circle, `∂φ_k → ∂f` and `∂_zbar φ_k → ∂_zbar f` pointwise, with a domination uniform in `k`, by +`|z|^{−2α}` on the disc and by `C (1 + |z|²)² e^{−(|z| − 1)²}` outside it, whose `p`-th power is +integrable; dominated convergence concludes. -/ +theorem exists_schwartz_tendsto_testFunOne {p α : ℝ} (hp : 1 ≤ p) (hα0 : 0 < α) + (hα : α * p < 1) : + ∃ φ : ℕ → 𝓢(ℂ, ℂ), + Tendsto (fun k => eLpNorm (fun z => (dzbarCLM ^ 1) (φ k) z - dzbar (testFunOne α) z) + (ENNReal.ofReal p) volume) atTop (𝓝 0) ∧ + Tendsto (fun k => eLpNorm (fun z => (dzCLM ^ 1) (φ k) z - dz (testFunOne α) z) + (ENNReal.ofReal p) volume) atTop (𝓝 0) := by + have hp0 : 0 < p := by linarith + have hα1 : α < 1 := by nlinarith + obtain ⟨C, hC⟩ := exists_norm_approxSchwartzOne_le_of_one_lt hα0.le hα1.le + set c := max C 0 with hc_def + have hc : 0 ≤ c := le_max_right _ _ + set D : ℂ → ℝ := fun z => if ‖z‖ < 1 then ‖z‖ ^ (-2 * α) else + c * ((1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2)) with hD_def + have hae : ∀ᵐ z ∂(volume : Measure ℂ), z ≠ 0 ∧ ‖z‖ ≠ 1 := + (Measure.ae_ne volume 0).and ae_norm_ne_one + -- the domination, uniform in `k` + have hdom : ∀ k z, z ≠ 0 → ‖z‖ ≠ 1 → ‖(dzbarCLM ^ 1) (approxSchwartzOne α k) z‖ ≤ D z ∧ + ‖(dzCLM ^ 1) (approxSchwartzOne α k) z‖ ≤ D z := by + intro k z hz0 hz1 + rcases lt_or_gt_of_ne hz1 with h | h + · rw [hD_def] + simp only [ite_eq_left h] + obtain ⟨h1, h2⟩ := norm_approxSchwartzOne_le_of_lt_one hα0 hα1 k hz0 h + exact ⟨h2, h1⟩ + · rw [hD_def] + simp only [ite_eq_right (not_lt.2 h.le)] + obtain ⟨h1, h2⟩ := hC k z h + have hm : 0 ≤ (1 + ‖z‖ ^ 2) ^ 2 * Real.exp (-(‖z‖ - 1) ^ 2) := by positivity + exact ⟨h2.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) hm), + h1.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) hm)⟩ + -- the pointwise limits + have hlim : ∀ z, z ≠ 0 → ‖z‖ ≠ 1 → + Tendsto (fun k => (dzCLM ^ 1) (approxSchwartzOne α k) z) atTop + (𝓝 (dz (testFunOne α) z)) ∧ + Tendsto (fun k => (dzbarCLM ^ 1) (approxSchwartzOne α k) z) atTop + (𝓝 (dzbar (testFunOne α) z)) := by + intro z hz0 hz1 + simp only [dzCLM_pow_one_approxSchwartzOne, dzbarCLM_pow_one_approxSchwartzOne] + have ht0 : 0 < Complex.normSq z := Complex.normSq_pos.2 hz0 + have hk : ∀ k, DifferentiableAt ℝ (approxProfile α k) (Complex.normSq z) := fun k => + (contDiffAt_two_approxProfile α k z).differentiableAt (by norm_num) + rcases lt_or_gt_of_ne hz1 with h | h + · have ht1 : Complex.normSq z < 1 := by + rw [Complex.normSq_eq_norm_sq]; nlinarith [norm_nonneg z] + have := tendsto_dz_mul_ofReal_radial hk + ((Real.contDiffAt_rpow_const_of_ne (p := -α) (n := 1) ht0.ne').differentiableAt + one_ne_zero) + (tendstoTwo_approxProfile_of_lt_one α ht0 ht1) + beta_reduce at this + rwa [(testFunOne_eventuallyEq_of_norm_lt_one α h).dz_eq, + (testFunOne_eventuallyEq_of_norm_lt_one α h).dzbar_eq] + · have ht1 : 1 < Complex.normSq z := by + rw [Complex.normSq_eq_norm_sq]; nlinarith + have := tendsto_dz_mul_ofReal_radial hk + ((contDiffAt_rpow_neg_mul_expCutoff α ht0).differentiableAt (by norm_num)) + (tendstoTwo_approxProfile_of_one_lt α ht1) + beta_reduce at this + rwa [(testFunOne_eventuallyEq_of_one_lt_norm α h).dz_eq, + (testFunOne_eventuallyEq_of_one_lt_norm α h).dzbar_eq] + -- the integrability of the majorant + have hfin : ∫⁻ z, ENNReal.ofReal (2 * D z) ^ p ≠ ⊤ := by + rw [← lintegral_add_compl _ (Metric.isOpen_ball (x := (0 : ℂ)) (ε := 1)).measurableSet] + refine ENNReal.add_ne_top.2 ⟨?_, ?_⟩ + · rw [setLIntegral_congr_fun Metric.isOpen_ball.measurableSet + (g := fun z => ENNReal.ofReal (2 ^ p) * ENNReal.ofReal (‖z‖ ^ (-(2 * α * p)))) + (fun z hz => ?_)] + · rw [lintegral_const_mul _ (by fun_prop), lintegral_ball_norm_rpow (by linarith)] + exact ENNReal.mul_ne_top ENNReal.ofReal_ne_top ENNReal.ofReal_ne_top + · rw [mem_ball_zero_iff] at hz + rw [hD_def] + simp only [ite_eq_left hz] + rw [ENNReal.ofReal_rpow_of_nonneg (by positivity) hp0.le, + Real.mul_rpow (by norm_num) (by positivity), ← Real.rpow_mul (norm_nonneg _), + ENNReal.ofReal_mul (by positivity)] + congr 3 + ring + · refine ne_of_lt (lt_of_le_of_lt (setLIntegral_mono' + Metric.isOpen_ball.measurableSet.compl fun z hz => ?_) + (lintegral_compl_ball_majorant_lt_top hp0 (c := 2 * c) (by positivity))) + rw [mem_compl_iff, mem_ball_zero_iff, not_lt] at hz + rw [hD_def] + simp only [ite_eq_right (not_lt.2 hz)] + rw [← mul_assoc] + refine ⟨approxSchwartzOne α, ?_, ?_⟩ + · exact tendsto_eLpNorm_sub_of_dominated hp0 (fun k => (SchwartzMap.continuous _).measurable) + (measurable_dzbar _) (fun k => hae.mono fun z hz => (hdom k z hz.1 hz.2).1) hfin + (hae.mono fun z hz => (hlim z hz.1 hz.2).2) + · exact tendsto_eLpNorm_sub_of_dominated hp0 (fun k => (SchwartzMap.continuous _).measurable) + (measurable_dz _) (fun k => hae.mono fun z hz => (hdom k z hz.1 hz.2).2) hfin + (hae.mono fun z hz => (hlim z hz.1 hz.2).1) + +end BeurlingAhlfors + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/Profile.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/Profile.lean new file mode 100644 index 0000000000..eff7985dce --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/TestFunctions/Profile.lean @@ -0,0 +1,485 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.WirtingerRadial +public import Mathlib.Analysis.Calculus.Deriv.CompMul +public import Mathlib.Analysis.Calculus.Deriv.Shift +public import Mathlib.Analysis.SpecialFunctions.Pow.Deriv +public import Mathlib.Analysis.SpecialFunctions.Sqrt +public import Mathlib.Analysis.SpecialFunctions.SmoothTransition + +/-! +# One-variable calculus for Dragičević's test functions + +The test functions of `HarmonicAnalysis.BeurlingAhlfors.TestFunctions`, and their smooth +approximations, are of the form `z² K (|z|²)` with a real profile `K`. This file collects what is +needed about the profiles, as functions of `t = |z|²`. + +* `HarmonicAnalysis.dz_dz_sq_mul_ofReal_radial`, + `HarmonicAnalysis.dzbar_dzbar_sq_mul_ofReal_radial`: for a real profile `k`, `C²` at + `t = |z|²`, `∂² (z² k (|z|²)) = 2 k + 4 t k' + t² k''` and `∂_zbar² (z² k (|z|²)) = z⁴ k''`. +* `HarmonicAnalysis.deriv_deriv_mul`: the Leibniz rule `(f g)'' = f'' g + 2 f' g' + f g''`. +* `HarmonicAnalysis.DerivBoundTwo f t B`: `|f (t)|, |f' (t)|, |f'' (t)| ≤ B`, with the rules for + products (`HarmonicAnalysis.DerivBoundTwo.mul`) and translations. +* The profiles: `t ↦ t^{−α}` (`HarmonicAnalysis.deriv_rpow_neg`, + `HarmonicAnalysis.deriv_deriv_rpow_neg`, bounds for `t ≥ 1`); the exterior cutoff + `E (t) = exp (−(√t − 1)²)` (`HarmonicAnalysis.BeurlingAhlfors.expCutoff`; `g₂ (|z|) = E (|z|²)` + for `|z| ≥ 1`), with `E' = E u'`, `E'' = E (u'² + u'')`, `u (t) = −(√t − 1)²`; and the bounds on + `Real.smoothTransition` and its first two derivatives. +-/ + +@[expose] public section + +noncomputable section + +open Set Filter Topology +open scoped ComplexConjugate ContDiff + +namespace HarmonicAnalysis + +/-! ### Real profiles -/ + +/-- `d/dt (k (t) : ℂ) = (k' (t) : ℂ)`, whether `k` is differentiable at `t` or not. -/ +theorem deriv_ofReal_comp (k : ℝ → ℝ) (t : ℝ) : + deriv (fun s => (k s : ℂ)) t = ((deriv k t : ℝ) : ℂ) := by + by_cases h : DifferentiableAt ℝ k t + · exact h.hasDerivAt.ofReal_comp.deriv + · rw [deriv_zero_of_not_differentiableAt h, Complex.ofReal_zero] + refine deriv_zero_of_not_differentiableAt fun h' => h ?_ + have := Complex.reCLM.differentiableAt.comp t h' + simpa [Function.comp_def] using this + +/-- A function `C²` at `t` is differentiable near `t`. -/ +theorem eventually_differentiableAt_of_contDiffAt {f : ℝ → ℝ} {t : ℝ} + (h : ContDiffAt ℝ 2 f t) : ∀ᶠ s in 𝓝 t, DifferentiableAt ℝ f s := + (h.eventually (by simp)).mono fun _ hs => hs.differentiableAt (by norm_num) + +/-- The derivative of a function `C²` at `t` is differentiable at `t`. -/ +theorem differentiableAt_deriv_of_contDiffAt {f : ℝ → ℝ} {t : ℝ} (h : ContDiffAt ℝ 2 f t) : + DifferentiableAt ℝ (deriv f) t := + (h.derivWithin (m := 1) (by norm_num)).differentiableAt one_ne_zero + +/-- `∂² (z² k (|z|²)) = 2 k (t) + 4 t k' (t) + t² k'' (t)`, `t = |z|²`, for a real profile `k`, +`C²` at `t`. -/ +theorem dz_dz_sq_mul_ofReal_radial {k : ℝ → ℝ} {z : ℂ} + (hk : ContDiffAt ℝ 2 k (Complex.normSq z)) : + dz (dz (fun w => w ^ 2 * ((k (Complex.normSq w) : ℝ) : ℂ))) z = + ((2 * k (Complex.normSq z) + 4 * Complex.normSq z * deriv k (Complex.normSq z) + + Complex.normSq z ^ 2 * deriv (deriv k) (Complex.normSq z) : ℝ) : ℂ) := by + have hd : deriv (fun s => (k s : ℂ)) = fun s => ((deriv k s : ℝ) : ℂ) := + funext (deriv_ofReal_comp k) + have hK : ∀ᶠ t in 𝓝 (Complex.normSq z), DifferentiableAt ℝ (fun s => (k s : ℂ)) t := + (eventually_differentiableAt_of_contDiffAt hk).mono fun _ ht => + ht.hasDerivAt.ofReal_comp.differentiableAt + have hK' : DifferentiableAt ℝ (deriv fun s => (k s : ℂ)) (Complex.normSq z) := by + rw [hd] + exact (differentiableAt_deriv_of_contDiffAt hk).hasDerivAt.ofReal_comp.differentiableAt + rw [dz_dz_sq_mul_radial hK hK', hd, deriv_ofReal_comp (deriv k)] + push_cast + ring + +/-- `∂_zbar² (z² k (|z|²)) = z⁴ k'' (|z|²)` for a real profile `k`, `C²` at `|z|²`. -/ +theorem dzbar_dzbar_sq_mul_ofReal_radial {k : ℝ → ℝ} {z : ℂ} + (hk : ContDiffAt ℝ 2 k (Complex.normSq z)) : + dzbar (dzbar (fun w => w ^ 2 * ((k (Complex.normSq w) : ℝ) : ℂ))) z = + z ^ 4 * ((deriv (deriv k) (Complex.normSq z) : ℝ) : ℂ) := by + have hd : deriv (fun s => (k s : ℂ)) = fun s => ((deriv k s : ℝ) : ℂ) := + funext (deriv_ofReal_comp k) + have hK : ∀ᶠ t in 𝓝 (Complex.normSq z), DifferentiableAt ℝ (fun s => (k s : ℂ)) t := + (eventually_differentiableAt_of_contDiffAt hk).mono fun _ ht => + ht.hasDerivAt.ofReal_comp.differentiableAt + have hK' : DifferentiableAt ℝ (deriv fun s => (k s : ℂ)) (Complex.normSq z) := by + rw [hd] + exact (differentiableAt_deriv_of_contDiffAt hk).hasDerivAt.ofReal_comp.differentiableAt + rw [dzbar_dzbar_sq_mul_radial hK hK', hd, deriv_ofReal_comp (deriv k)] + +/-! ### The Leibniz rule and bounds on two derivatives -/ + +/-- The Leibniz rule for the second derivative: `(f g)'' = f'' g + 2 f' g' + f g''`. -/ +theorem deriv_deriv_mul {f g : ℝ → ℝ} {t : ℝ} (hf : ContDiffAt ℝ 2 f t) + (hg : ContDiffAt ℝ 2 g t) : + deriv (deriv fun s => f s * g s) t = + deriv (deriv f) t * g t + 2 * (deriv f t * deriv g t) + f t * deriv (deriv g) t := by + have h1 : deriv (fun s => f s * g s) =ᶠ[𝓝 t] fun s => deriv f s * g s + f s * deriv g s := + ((eventually_differentiableAt_of_contDiffAt hf).and + (eventually_differentiableAt_of_contDiffAt hg)).mono fun _ hs => deriv_fun_mul hs.1 hs.2 + have hf1 := differentiableAt_deriv_of_contDiffAt hf + have hg1 := differentiableAt_deriv_of_contDiffAt hg + have hf0 : DifferentiableAt ℝ f t := hf.differentiableAt (by norm_num) + have hg0 : DifferentiableAt ℝ g t := hg.differentiableAt (by norm_num) + rw [h1.deriv_eq, deriv_fun_add (hf1.fun_mul hg0) (hf0.fun_mul hg1), deriv_fun_mul hf1 hg0, + deriv_fun_mul hf0 hg1] + ring + +/-- `|f (t)|, |f' (t)|, |f'' (t)| ≤ B`. -/ +def DerivBoundTwo (f : ℝ → ℝ) (t B : ℝ) : Prop := + |f t| ≤ B ∧ |deriv f t| ≤ B ∧ |deriv (deriv f) t| ≤ B + +namespace DerivBoundTwo + +variable {f g : ℝ → ℝ} {t B F G : ℝ} + +theorem nonneg (h : DerivBoundTwo f t B) : 0 ≤ B := + (abs_nonneg _).trans h.1 + +theorem mono (h : DerivBoundTwo f t B) {B' : ℝ} (hB : B ≤ B') : DerivBoundTwo f t B' := + ⟨h.1.trans hB, h.2.1.trans hB, h.2.2.trans hB⟩ + +theorem congr (h : DerivBoundTwo g t B) (hfg : f =ᶠ[𝓝 t] g) : DerivBoundTwo f t B := by + refine ⟨?_, ?_, ?_⟩ + · rw [hfg.self_of_nhds]; exact h.1 + · rw [hfg.deriv_eq]; exact h.2.1 + · rw [hfg.deriv.deriv_eq]; exact h.2.2 + +/-- The bounds for a product: `|(f g)^{(j)} (t)| ≤ 4 F G` for `j ≤ 2`. -/ +theorem mul (hf : ContDiffAt ℝ 2 f t) (hg : ContDiffAt ℝ 2 g t) (hF : DerivBoundTwo f t F) + (hG : DerivBoundTwo g t G) : DerivBoundTwo (fun s => f s * g s) t (4 * F * G) := by + obtain ⟨hf0, hf1, hf2⟩ := hF + obtain ⟨hg0, hg1, hg2⟩ := hG + have hF0 : 0 ≤ F := (abs_nonneg _).trans hf0 + have hG0 : 0 ≤ G := (abs_nonneg _).trans hg0 + have hm : ∀ {a b : ℝ}, |a| ≤ F → |b| ≤ G → |a * b| ≤ F * G := fun ha hb => by + rw [abs_mul]; exact mul_le_mul ha hb (abs_nonneg _) hF0 + have hFG : 0 ≤ F * G := mul_nonneg hF0 hG0 + refine ⟨?_, ?_, ?_⟩ + · exact (hm hf0 hg0).trans (by nlinarith) + · rw [deriv_fun_mul (hf.differentiableAt (by norm_num)) (hg.differentiableAt (by norm_num))] + exact (abs_add_le _ _).trans (by linarith [hm hf1 hg0, hm hf0 hg1]) + · rw [deriv_deriv_mul hf hg] + refine (abs_add_le _ _).trans ?_ + have := (abs_add_le (deriv (deriv f) t * g t) (2 * (deriv f t * deriv g t))) + rw [abs_mul 2, abs_two] at this + linarith [hm hf2 hg0, hm hf1 hg1, hm hf0 hg2] + +/-- Bounds for a translate: `f (· + c)` at `t` from `f` at `t + c`. -/ +theorem comp_add_const {c : ℝ} (h : DerivBoundTwo f (t + c) B) : + DerivBoundTwo (fun s => f (s + c)) t B := by + have hd : deriv (fun s => f (s + c)) = fun s => deriv f (s + c) := + funext fun s => deriv_comp_add_const f c s + refine ⟨h.1, ?_, ?_⟩ + · rw [hd]; exact h.2.1 + · rw [hd, deriv_comp_add_const (deriv f) c t]; exact h.2.2 + +end DerivBoundTwo + +/-- The derivative of `f (c s + d)`: `c f' (c s + d)`, whether `f` is differentiable or not. -/ +theorem deriv_comp_mul_add (f : ℝ → ℝ) (c d : ℝ) : + deriv (fun s => f (c * s + d)) = fun s => c * deriv f (c * s + d) := by + funext s + have := deriv_comp_mul_left c (fun u => f (u + d)) s + simp only [smul_eq_mul, deriv_comp_add_const] at this + exact this + +/-- The second derivative of `f (c s + d)`: `c² f'' (c s + d)`. -/ +theorem deriv_deriv_comp_mul_add (f : ℝ → ℝ) (c d : ℝ) : + deriv (deriv fun s => f (c * s + d)) = fun s => c ^ 2 * deriv (deriv f) (c * s + d) := by + rw [deriv_comp_mul_add, deriv_const_mul_field', deriv_comp_mul_add] + funext s + ring + +/-- Bounds for `f (c s + d)` with `|c| ≤ 1`, from bounds for `f` at `c t + d`. -/ +theorem DerivBoundTwo.comp_mul_add {f : ℝ → ℝ} {c d t B : ℝ} (hc : |c| ≤ 1) + (h : DerivBoundTwo f (c * t + d) B) : DerivBoundTwo (fun s => f (c * s + d)) t B := by + have hB := h.nonneg + have hc2 : |c ^ 2| ≤ 1 := by rw [abs_pow]; exact pow_le_one₀ (abs_nonneg _) hc + refine ⟨h.1, ?_, ?_⟩ + · rw [deriv_comp_mul_add, abs_mul] + nlinarith [abs_nonneg c, abs_nonneg (deriv f (c * t + d)), h.2.1] + · rw [deriv_deriv_comp_mul_add, abs_mul] + nlinarith [abs_nonneg (c ^ 2), abs_nonneg (deriv (deriv f) (c * t + d)), h.2.2] + +/-- Convergence of the values and the first two derivatives at `t`: `f_k^{(j)} (t) → g^{(j)} (t)` +for `j ≤ 2`. -/ +def TendstoTwo (f : ℕ → ℝ → ℝ) (g : ℝ → ℝ) (t : ℝ) : Prop := + Tendsto (fun k => f k t) atTop (𝓝 (g t)) ∧ + Tendsto (fun k => deriv (f k) t) atTop (𝓝 (deriv g t)) ∧ + Tendsto (fun k => deriv (deriv (f k)) t) atTop (𝓝 (deriv (deriv g) t)) + +namespace TendstoTwo + +variable {f f' : ℕ → ℝ → ℝ} {g h : ℝ → ℝ} {t : ℝ} + +/-- `TendstoTwo` only depends on the germs at `t` of the `f_k`, `k` large. -/ +theorem congr (hf : TendstoTwo f g t) (hff' : ∀ᶠ k in atTop, f' k =ᶠ[𝓝 t] f k) : + TendstoTwo f' g t := by + refine ⟨hf.1.congr' ?_, hf.2.1.congr' ?_, hf.2.2.congr' ?_⟩ + · exact hff'.mono fun k hk => hk.self_of_nhds.symm + · exact hff'.mono fun k hk => hk.deriv_eq.symm + · exact hff'.mono fun k hk => hk.deriv.deriv_eq.symm + +/-- `TendstoTwo` for the products with a fixed factor `h`, `C²` at `t`. -/ +theorem mul_right (hf : TendstoTwo f g t) (hfk : ∀ k, ContDiffAt ℝ 2 (f k) t) + (hg : ContDiffAt ℝ 2 g t) (hh : ContDiffAt ℝ 2 h t) : + TendstoTwo (fun k s => f k s * h s) (fun s => g s * h s) t := by + obtain ⟨h0, h1, h2⟩ := hf + have hd : ∀ {u : ℝ → ℝ}, ContDiffAt ℝ 2 u t → DifferentiableAt ℝ u t := fun hu => + hu.differentiableAt (by norm_num) + refine ⟨h0.mul_const _, ?_, ?_⟩ + · rw [deriv_fun_mul (hd hg) (hd hh)] + exact ((h1.mul_const _).add (h0.mul_const _)).congr fun k => + (deriv_fun_mul (hd (hfk k)) (hd hh)).symm + · rw [deriv_deriv_mul hg hh] + exact (((h2.mul_const _).add ((h1.mul_const _).const_mul 2)).add (h0.mul_const _)).congr + fun k => (deriv_deriv_mul (hfk k) hh).symm + +end TendstoTwo + +/-! ### Bounds and limits for `∂² (z² k (|z|²))`, `∂_zbar² (z² k (|z|²))` -/ + +/-- `|∂² (z² k (|z|²))|, |∂_zbar² (z² k (|z|²))| ≤ 2 (1 + |z|²)² M` if `|k^{(j)} (|z|²)| ≤ M` for +`j ≤ 2`. -/ +theorem norm_dz_dz_sq_mul_ofReal_radial_le {k : ℝ → ℝ} {z : ℂ} {M : ℝ} + (hk : ContDiffAt ℝ 2 k (Complex.normSq z)) (h : DerivBoundTwo k (Complex.normSq z) M) : + ‖dz (dz (fun w => w ^ 2 * ((k (Complex.normSq w) : ℝ) : ℂ))) z‖ ≤ + 2 * (1 + ‖z‖ ^ 2) ^ 2 * M ∧ + ‖dzbar (dzbar (fun w => w ^ 2 * ((k (Complex.normSq w) : ℝ) : ℂ))) z‖ ≤ + 2 * (1 + ‖z‖ ^ 2) ^ 2 * M := by + rw [dz_dz_sq_mul_ofReal_radial hk, dzbar_dzbar_sq_mul_ofReal_radial hk, Complex.norm_real, + Real.norm_eq_abs, norm_mul, norm_pow, Complex.norm_real, Real.norm_eq_abs] + have ht : Complex.normSq z = ‖z‖ ^ 2 := Complex.normSq_eq_norm_sq z + have hz4 : ‖z‖ ^ 4 = (Complex.normSq z) ^ 2 := by rw [ht]; ring + rw [hz4, ← ht] + obtain ⟨h0, h1, h2⟩ := h + set t := Complex.normSq z + have hM : 0 ≤ M := (abs_nonneg _).trans h0 + have ht0 : 0 ≤ t := Complex.normSq_nonneg z + have ht2 : 0 ≤ t ^ 2 := by positivity + have e1 : |2 * k t + 4 * t * deriv k t + t ^ 2 * deriv (deriv k) t| ≤ + 2 * |k t| + 4 * t * |deriv k t| + t ^ 2 * |deriv (deriv k) t| := by + refine (abs_add_le _ _).trans (add_le_add ((abs_add_le _ _).trans (le_of_eq ?_)) ?_) + · rw [abs_mul, abs_mul, abs_mul, abs_of_nonneg ht0, abs_two, + abs_of_pos (by norm_num : (0 : ℝ) < 4)] + · rw [abs_mul, abs_of_nonneg ht2] + have e2 := mul_le_mul_of_nonneg_left h1 (by positivity : (0 : ℝ) ≤ 4 * t) + have e3 := mul_le_mul_of_nonneg_left h2 ht2 + constructor + · nlinarith + · nlinarith + +/-- If `f_k → g` with two derivatives at `t = |z|²`, then `∂² (z² f_k (|z|²)) → ∂² (z² g (|z|²))` +and `∂_zbar² (z² f_k (|z|²)) → ∂_zbar² (z² g (|z|²))` at `z`. -/ +theorem tendsto_dz_dz_sq_mul_ofReal_radial {f : ℕ → ℝ → ℝ} {g : ℝ → ℝ} {z : ℂ} + (hf : ∀ k, ContDiffAt ℝ 2 (f k) (Complex.normSq z)) + (hg : ContDiffAt ℝ 2 g (Complex.normSq z)) (h : TendstoTwo f g (Complex.normSq z)) : + Tendsto (fun k => dz (dz (fun w => w ^ 2 * ((f k (Complex.normSq w) : ℝ) : ℂ))) z) atTop + (𝓝 (dz (dz (fun w => w ^ 2 * ((g (Complex.normSq w) : ℝ) : ℂ))) z)) ∧ + Tendsto (fun k => dzbar (dzbar (fun w => w ^ 2 * ((f k (Complex.normSq w) : ℝ) : ℂ))) z) + atTop (𝓝 (dzbar (dzbar (fun w => w ^ 2 * ((g (Complex.normSq w) : ℝ) : ℂ))) z)) := by + obtain ⟨h0, h1, h2⟩ := h + rw [dz_dz_sq_mul_ofReal_radial hg, dzbar_dzbar_sq_mul_ofReal_radial hg] + constructor + · refine ((Complex.continuous_ofReal.tendsto _).comp + (((h0.const_mul 2).add (h1.const_mul _)).add (h2.const_mul _))).congr fun k => ?_ + rw [dz_dz_sq_mul_ofReal_radial (hf k)] + rfl + · refine (((Complex.continuous_ofReal.tendsto _).comp h2).const_mul _).congr fun k => ?_ + rw [dzbar_dzbar_sq_mul_ofReal_radial (hf k)] + rfl + +/-! ### The power `t^{−α}` -/ + +/-- `(|z|²)^{−α} = |z|^{−2α}`. -/ +theorem normSq_rpow_neg (z : ℂ) (α : ℝ) : Complex.normSq z ^ (-α) = ‖z‖ ^ (-2 * α) := by + rw [Complex.normSq_eq_norm_sq, ← Real.rpow_natCast_mul (norm_nonneg z)] + congr 1 + push_cast + ring + +/-- `d/dt t^{−α} = −α t^{−α−1}`. -/ +theorem deriv_rpow_neg (α : ℝ) : + deriv (fun s : ℝ => s ^ (-α)) = fun s => -α * s ^ (-α - 1) := + Real.deriv_rpow_const' (-α) + +/-- `d²/dt² t^{−α} = α (α + 1) t^{−α−2}`. -/ +theorem deriv_deriv_rpow_neg (α : ℝ) : + deriv (deriv fun s : ℝ => s ^ (-α)) = fun s => α * (α + 1) * s ^ (-α - 2) := by + rw [deriv_rpow_neg, deriv_const_mul_field', Real.deriv_rpow_const'] + funext s + rw [show -α - 1 - 1 = -α - 2 by ring] + ring + +/-- `d/dt (t + c)^{−α} = −α (t + c)^{−α−1}`. -/ +theorem deriv_rpow_add_neg (α c : ℝ) : + deriv (fun s : ℝ => (s + c) ^ (-α)) = fun s => -α * (s + c) ^ (-α - 1) := by + funext s + rw [deriv_comp_add_const (fun s : ℝ => s ^ (-α)), deriv_rpow_neg] + +/-- `d²/dt² (t + c)^{−α} = α (α + 1) (t + c)^{−α−2}`. -/ +theorem deriv_deriv_rpow_add_neg (α c : ℝ) : + deriv (deriv fun s : ℝ => (s + c) ^ (-α)) = fun s => α * (α + 1) * (s + c) ^ (-α - 2) := by + funext s + have : deriv (fun s : ℝ => (s + c) ^ (-α)) = fun s => deriv (fun s : ℝ => s ^ (-α)) (s + c) := + funext fun s => deriv_comp_add_const (fun s : ℝ => s ^ (-α)) c s + rw [this, deriv_comp_add_const (deriv fun s : ℝ => s ^ (-α)), deriv_deriv_rpow_neg] + +/-- `(t + ε_k)^{−α}` and its first two derivatives converge to those of `t^{−α}` at `t > 0` when +`ε_k → 0`. -/ +theorem tendstoTwo_rpow_add_neg (α : ℝ) {t : ℝ} (ht : 0 < t) {ε : ℕ → ℝ} + (hε : Tendsto ε atTop (𝓝 0)) : + TendstoTwo (fun k s => (s + ε k) ^ (-α)) (fun s => s ^ (-α)) t := by + have htε : Tendsto (fun k => t + ε k) atTop (𝓝 t) := by + simpa using (tendsto_const_nhds (x := t)).add hε + have hlim : ∀ β : ℝ, Tendsto (fun k => (t + ε k) ^ β) atTop (𝓝 (t ^ β)) := fun β => + (Real.continuousAt_rpow_const t β (Or.inl ht.ne')).tendsto.comp htε + refine ⟨hlim _, ?_, ?_⟩ + · simp only [deriv_rpow_add_neg, deriv_rpow_neg] + exact (hlim _).const_mul _ + · simp only [deriv_deriv_rpow_add_neg, deriv_deriv_rpow_neg] + exact (hlim _).const_mul _ + +/-- For `t ≥ 1` and `α ∈ [0, 1]`: `t^{−α}`, `α t^{−α−1}`, `α (α + 1) t^{−α−2} ≤ 2`. -/ +theorem derivBoundTwo_rpow_neg {α t : ℝ} (hα0 : 0 ≤ α) (hα1 : α ≤ 1) (ht : 1 ≤ t) : + DerivBoundTwo (fun s : ℝ => s ^ (-α)) t 2 := by + have h : ∀ β : ℝ, β ≤ 0 → 0 ≤ t ^ β ∧ t ^ β ≤ 1 := fun β hβ => + ⟨Real.rpow_nonneg (by linarith) _, Real.rpow_le_one_of_one_le_of_nonpos ht hβ⟩ + obtain ⟨h0, h0'⟩ := h (-α) (by linarith) + obtain ⟨h1, h1'⟩ := h (-α - 1) (by linarith) + obtain ⟨h2, h2'⟩ := h (-α - 2) (by linarith) + refine ⟨?_, ?_, ?_⟩ + · rw [abs_of_nonneg h0]; linarith + · rw [deriv_rpow_neg, abs_mul, abs_neg, abs_of_nonneg hα0, abs_of_nonneg h1] + nlinarith + · rw [deriv_deriv_rpow_neg, abs_mul, abs_of_nonneg (by positivity), abs_of_nonneg h2] + calc α * (α + 1) * t ^ (-α - 2) ≤ 2 * 1 := mul_le_mul (by nlinarith) h2' h2 (by norm_num) + _ = 2 := mul_one 2 + +/-! ### The exterior cutoff `E (t) = exp (−(√t − 1)²)` -/ + +namespace BeurlingAhlfors + +/-- The exterior cutoff `E (t) = exp (−(√t − 1)²)`: `g₂ (|z|) = E (|z|²)` for `|z| ≥ 1`. -/ +def expCutoff (t : ℝ) : ℝ := Real.exp (-(√t - 1) ^ 2) + +theorem expCutoff_pos (t : ℝ) : 0 < expCutoff t := Real.exp_pos _ + +/-- `E (|z|²) = exp (−(|z| − 1)²)`. -/ +theorem expCutoff_normSq (z : ℂ) : expCutoff (Complex.normSq z) = Real.exp (-(‖z‖ - 1) ^ 2) := by + rw [expCutoff, Complex.normSq_eq_norm_sq, Real.sqrt_sq (norm_nonneg z)] + +theorem expCutoff_le_one (t : ℝ) : expCutoff t ≤ 1 := + Real.exp_le_one_iff.2 (by nlinarith [sq_nonneg (√t - 1)]) + +theorem contDiffAt_expCutoff {n : WithTop ℕ∞} {t : ℝ} (ht : t ≠ 0) : + ContDiffAt ℝ n expCutoff t := + (((Real.contDiffAt_sqrt ht).sub contDiffAt_const).pow 2).neg.exp + +/-- `E' (t) = E (t) u' (t)`, `u' (t) = 1/√t − 1`, for `t > 0`. -/ +theorem hasDerivAt_expCutoff {t : ℝ} (ht : 0 < t) : + HasDerivAt expCutoff (expCutoff t * ((√t)⁻¹ - 1)) t := by + have hs : √t ≠ 0 := (Real.sqrt_pos.2 ht).ne' + have h1 := (((Real.hasDerivAt_sqrt ht.ne').sub_const 1).fun_pow 2).fun_neg.exp + refine h1.congr_deriv ?_ + simp only [expCutoff] + field_simp + ring + +theorem deriv_expCutoff {t : ℝ} (ht : 0 < t) : + deriv expCutoff t = expCutoff t * ((√t)⁻¹ - 1) := + (hasDerivAt_expCutoff ht).deriv + +/-- `E'' (t) = E (t) (u' (t)² + u'' (t))`, `u'' (t) = −1/(2 √t³)`, for `t > 0`. -/ +theorem deriv_deriv_expCutoff {t : ℝ} (ht : 0 < t) : + deriv (deriv expCutoff) t = expCutoff t * (((√t)⁻¹ - 1) ^ 2 - (2 * √t ^ 3)⁻¹) := by + have hs : √t ≠ 0 := (Real.sqrt_pos.2 ht).ne' + have h1 : deriv expCutoff =ᶠ[𝓝 t] fun s => expCutoff s * ((√s)⁻¹ - 1) := + Filter.mem_of_superset (Ioi_mem_nhds ht) fun s hs => deriv_expCutoff hs + rw [h1.deriv_eq] + have := (hasDerivAt_expCutoff ht).fun_mul (((Real.hasDerivAt_sqrt ht.ne').fun_inv hs).sub_const 1) + rw [this.deriv] + field_simp + ring + +/-- For `t ≥ 1`: `|E (t)|, |E' (t)|, |E'' (t)| ≤ 2 E (t)` (`|u'| ≤ 1`, `|u''| ≤ 1/2`). -/ +theorem derivBoundTwo_expCutoff {t : ℝ} (ht : 1 ≤ t) : + DerivBoundTwo expCutoff t (2 * expCutoff t) := by + have ht0 : 0 < t := by linarith + have hE := expCutoff_pos t + have hs1 : 1 ≤ √t := Real.one_le_sqrt.2 ht + have hi0 : 0 < (√t)⁻¹ := inv_pos.2 (by linarith) + have hi1 : (√t)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hs1 + have hc0 : 0 < (2 * √t ^ 3)⁻¹ := by positivity + have hc1 : (2 * √t ^ 3)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by nlinarith [one_le_pow₀ (n := 3) hs1]) + refine ⟨?_, ?_, ?_⟩ + · rw [abs_of_pos hE]; linarith + · rw [deriv_expCutoff ht0, abs_mul, abs_of_pos hE] + have : |(√t)⁻¹ - 1| ≤ 1 := by rw [abs_le]; constructor <;> linarith + nlinarith + · rw [deriv_deriv_expCutoff ht0, abs_mul, abs_of_pos hE] + have : |((√t)⁻¹ - 1) ^ 2 - (2 * √t ^ 3)⁻¹| ≤ 2 := by + rw [abs_le]; constructor <;> nlinarith + nlinarith + +/-- `|E (t) − 1| ≤ (t − 1)²` for `t ≥ 1` (`1 − e^{−y} ≤ y`, `√t − 1 ≤ t − 1`). -/ +theorem abs_expCutoff_sub_one_le {t : ℝ} (ht : 1 ≤ t) : |expCutoff t - 1| ≤ (t - 1) ^ 2 := by + rw [abs_of_nonpos (by linarith [expCutoff_le_one t])] + have h := Real.add_one_le_exp (-(√t - 1) ^ 2) + have hs1 : 1 ≤ √t := Real.one_le_sqrt.2 ht + have hst : √t ≤ t := by nlinarith [Real.mul_self_sqrt (by linarith : (0 : ℝ) ≤ t)] + have : (√t - 1) ^ 2 ≤ (t - 1) ^ 2 := pow_le_pow_left₀ (by linarith) (by linarith) 2 + simp only [expCutoff] + linarith + +/-- `|E' (t)| ≤ t − 1` for `t ≥ 1`. -/ +theorem abs_deriv_expCutoff_le {t : ℝ} (ht : 1 ≤ t) : |deriv expCutoff t| ≤ t - 1 := by + have hs1 : 1 ≤ √t := Real.one_le_sqrt.2 ht + have hi1 : (√t)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hs1 + have hsi : √t * (√t)⁻¹ = 1 := mul_inv_cancel₀ (by linarith) + have hst : √t ≤ t := by nlinarith [Real.mul_self_sqrt (by linarith : (0 : ℝ) ≤ t)] + rw [deriv_expCutoff (by linarith), abs_mul, abs_of_pos (expCutoff_pos t), + abs_of_nonpos (by linarith)] + nlinarith [expCutoff_le_one t, expCutoff_pos t, mul_nonneg (sub_nonneg.2 hs1) (sub_nonneg.2 hi1)] + +/-- `E (t) ≥ e^{−1}` for `1 ≤ t ≤ 4`. -/ +theorem exp_neg_one_le_expCutoff {t : ℝ} (ht : 1 ≤ t) (ht4 : t ≤ 4) : + Real.exp (-1) ≤ expCutoff t := by + have hs1 : 1 ≤ √t := Real.one_le_sqrt.2 ht + have hs2 : √t ≤ 2 := by nlinarith [Real.mul_self_sqrt (by linarith : (0 : ℝ) ≤ t)] + exact Real.exp_le_exp.2 (by nlinarith) + +end BeurlingAhlfors + +/-! ### The smooth transition -/ + +/-- `Real.smoothTransition` and its first two derivatives are bounded. -/ +theorem exists_derivBoundTwo_smoothTransition : + ∃ S, 1 ≤ S ∧ ∀ x, DerivBoundTwo Real.smoothTransition x S := by + have hs : ContDiff ℝ ∞ Real.smoothTransition := Real.smoothTransition.contDiff + have hs1 : ContDiff ℝ ∞ (deriv Real.smoothTransition) := (contDiff_infty_iff_deriv.mp hs).2 + have hs2 : ContDiff ℝ ∞ (deriv (deriv Real.smoothTransition)) := + (contDiff_infty_iff_deriv.mp hs1).2 + have hout : ∀ x, x ∉ Icc (0 : ℝ) 1 → x < 0 ∨ 1 < x := fun x hx => by + simp only [mem_Icc, not_and_or, not_le] at hx; exact hx + have hloc : ∀ x, x < 0 ∨ 1 < x → + Real.smoothTransition =ᶠ[𝓝 x] fun _ => Real.smoothTransition x := by + rintro x (hx | hx) + · filter_upwards [Iio_mem_nhds hx] with y hy + rw [Real.smoothTransition.zero_of_nonpos hy.le, Real.smoothTransition.zero_of_nonpos hx.le] + · filter_upwards [Ioi_mem_nhds hx] with y hy + rw [Real.smoothTransition.one_of_one_le hy.le, Real.smoothTransition.one_of_one_le hx.le] + have hd1 : ∀ x, x < 0 ∨ 1 < x → deriv Real.smoothTransition x = 0 := fun x hx => by + rw [(hloc x hx).deriv_eq, deriv_const] + have hd2 : ∀ x, x < 0 ∨ 1 < x → deriv (deriv Real.smoothTransition) x = 0 := by + rintro x (hx | hx) + · have : deriv Real.smoothTransition =ᶠ[𝓝 x] fun _ => 0 := + Filter.mem_of_superset (Iio_mem_nhds hx) fun y hy => hd1 y (Or.inl hy) + rw [this.deriv_eq, deriv_const] + · have : deriv Real.smoothTransition =ᶠ[𝓝 x] fun _ => 0 := + Filter.mem_of_superset (Ioi_mem_nhds hx) fun y hy => hd1 y (Or.inr hy) + rw [this.deriv_eq, deriv_const] + obtain ⟨C1, hC1⟩ := hs1.continuous.bounded_above_of_compact_support + (HasCompactSupport.intro isCompact_Icc fun x hx => hd1 x (hout x hx)) + obtain ⟨C2, hC2⟩ := hs2.continuous.bounded_above_of_compact_support + (HasCompactSupport.intro isCompact_Icc fun x hx => hd2 x (hout x hx)) + refine ⟨max 1 (max C1 C2), le_max_left _ _, fun x => ⟨?_, ?_, ?_⟩⟩ + · rw [abs_of_nonneg (Real.smoothTransition.nonneg x)] + exact (Real.smoothTransition.le_one x).trans (le_max_left _ _) + · exact (hC1 x).trans ((le_max_left _ _).trans (le_max_right _ _)) + · exact (hC2 x).trans ((le_max_right _ _).trans (le_max_right _ _)) + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Transference.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Transference.lean new file mode 100644 index 0000000000..05938157c1 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/BeurlingAhlfors/Transference.lean @@ -0,0 +1,58 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Transference.Homogeneous + +/-! +# The powers of the Beurling–Ahlfors transform on `𝕋²`, and transference + +* `HarmonicAnalysis.torusBeurlingPow k c`: `𝓑^k` on the torus `𝕋²`, the multiplier + `m (n₀ + i n₁)^k`, `m (ξ) = (conj ξ) / ξ`, applied to the trigonometric polynomial with + coefficients `c`; +* `HarmonicAnalysis.torusBeurlingPowNorm k p = ‖𝓑^k‖_{L^p_0 (𝕋²) → L^p_0 (𝕋²)}`, on mean-zero + trigonometric polynomials. + +`HarmonicAnalysis.beurlingPowNorm_le_torusBeurlingPowNorm`: `‖𝓑^k‖_{L^p (ℝ²)} ≤ +‖𝓑^k‖_{L^p_0 (𝕋²)}` for `1 < p < ∞`, the inequality `I ≤ II` of Corollary 5.7.6 of +Hytönen–van Neerven–Veraar–Weis (HNVW; `HarmonicAnalysis.multiplierNorm_le_torusMultiplierNorm`) +for the symbol `m^k`, which is continuous off `0` and homogeneous of degree `0`. + +## References + +* T. Hytönen, J. van Neerven, M. Veraar, L. Weis, *Analysis in Banach Spaces, Volume I*, Ergebnisse + der Mathematik 63, Springer, 2016: Corollary 5.7.6 (pp. 462–463). +-/ + +@[expose] public section + +noncomputable section + +open scoped ENNReal + +namespace HarmonicAnalysis + +/-- `𝓑^k` on `𝕋²`, the multiplier `m (n₀ + i n₁)^k`, applied to the trigonometric polynomial with +coefficients `c`. -/ +def torusBeurlingPow (k : ℕ) (c : (Fin 2 → ℤ) →₀ ℂ) (x : UnitAddTorus (Fin 2)) : ℂ := + torusMultiplier (fun n => beurlingSymbol (latticePoint n) ^ k) c x + +/-- `‖𝓑^k‖_{L^p_0 (𝕋²) → L^p_0 (𝕋²)}`, on mean-zero trigonometric polynomials. -/ +def torusBeurlingPowNorm (k : ℕ) (p : ℝ) : ℝ≥0∞ := + torusMultiplierNorm (fun n => beurlingSymbol (latticePoint n) ^ k) p + +/-- Transference (HNVW, Corollary 5.7.6): `‖𝓑^k‖_{L^p (ℝ²)} ≤ ‖𝓑^k‖_{L^p_0 (𝕋²)}` for +`1 < p < ∞`. -/ +theorem beurlingPowNorm_le_torusBeurlingPowNorm (k : ℕ) {p : ℝ} (hp : 1 < p) : + beurlingPowNorm k p ≤ torusBeurlingPowNorm k p := + multiplierNorm_le_torusMultiplierNorm (m := fun ξ => beurlingSymbol ξ ^ k) + (fun ξ hξ => (continuousAt_beurlingSymbol hξ).pow k) + (fun t ht ξ => by rw [beurlingSymbol_ofReal_mul ht.ne']) hp + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/CauchyPompeiu.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/CauchyPompeiu.lean new file mode 100644 index 0000000000..bc6703d175 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/CauchyPompeiu.lean @@ -0,0 +1,227 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.CauchyTransform +import Mathlib.Analysis.SpecialFunctions.PolarCoord +import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv +import Mathlib.MeasureTheory.Integral.IntegralEqImproper + +/-! +# The Cauchy–Pompeiu formula + +For a compactly supported `C¹` function `g : ℂ → ℂ`, the Cauchy transform of `∂_zbar g` is `g`: +`C (∂_zbar g) (z) = (1/π) ∫ ∂_zbar g (w) / (z − w) dw = g (z)` for every `z ∈ ℂ` +(`HarmonicAnalysis.cauchyTransform_dzbar`). In other words, the Cauchy kernel `1 / (π z)` is a +fundamental solution of `∂_zbar`. This is the standard Cauchy–Pompeiu formula, for compactly +supported +functions (no boundary term). + +The proof is the computation in polar coordinates around `z`. The substitution `w = z + ρ` +reduces the formula to `∫ ∂_zbar g (z + ρ) / ρ dρ = −π g (z)`. Write `ρ = r e^{iθ}`, let +`a (r, θ) = g (z + r e^{iθ})` and let `L` be the real derivative of `g` at `z + r e^{iθ}`. + +* The Jacobian `r` cancels the singularity: + `r ∂_zbar g (z + r e^{iθ}) / (r e^{iθ}) = ½ (L (e^{iθ}) + i L (i e^{iθ}))`. +* `L (e^{iθ}) = ∂_r a (r, θ)`, and its integral over `r ∈ (0, ∞)` is `−g (z)` (fundamental + theorem of calculus; `g` has compact support). +* `L (i e^{iθ}) = r⁻¹ ∂_θ a (r, θ)`, and its integral over `θ ∈ (−π, π)` is `0` for `r > 0`, + since `a (r, π) = a (r, −π)`. + +Both terms are continuous in `(r, θ)` and vanish for large `r`, so Fubini's theorem applies: +`∫ ∂_zbar g (z + ρ) / ρ dρ = ½ · 2π · (−g (z)) = −π g (z)`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Set Filter Complex +open scoped Real Topology + +namespace HarmonicAnalysis + +/-- A real-linear map `L : ℂ → ℂ` is `L v = Re v · L 1 + Im v · L i`. -/ +private lemma clm_apply_eq (L : ℂ →L[ℝ] ℂ) (v : ℂ) : L v = v.re * L 1 + v.im * L I := by + have hv : v = v.re • (1 : ℂ) + v.im • I := by + rw [Complex.real_smul, Complex.real_smul, mul_one, Complex.re_add_im] + conv_lhs => rw [hv] + rw [map_add, map_smul, map_smul, Complex.real_smul, Complex.real_smul] + +/-- A real-linear map `L : ℂ → ℂ` commutes with real scalars: `L (r v) = r L v`. -/ +private lemma clm_ofReal_mul (L : ℂ →L[ℝ] ℂ) (r : ℝ) (v : ℂ) : L (r * v) = r * L v := by + rw [← Complex.real_smul, map_smul, Complex.real_smul] + +/-- The unit vector `e^{iθ} = cos θ + i sin θ`. -/ +private def unitVec (θ : ℝ) : ℂ := Real.cos θ + Real.sin θ * I + +/-- The integrand in polar coordinates: for `r ≠ 0`, `e = e^{iθ}` and a real-linear `L` (the +derivative of `g` at `z + r e`), `r · ½ (L 1 + i L i) / (r e) = ½ (L e + i L (i e))`. -/ +private lemma polar_integrand (L : ℂ →L[ℝ] ℂ) {r : ℝ} (hr : r ≠ 0) (θ : ℝ) : + r • ((2⁻¹ : ℂ) • (L 1 + I • L I) * (r * unitVec θ)⁻¹) = + 2⁻¹ * (L (unitVec θ) + I * L (I * unitVec θ)) := by + unfold unitVec + have hcs : (Real.cos θ : ℂ) ^ 2 + (Real.sin θ : ℂ) ^ 2 = 1 := by + exact_mod_cast Real.cos_sq_add_sin_sq θ + have he : ((Real.cos θ : ℂ) + Real.sin θ * I)⁻¹ = Real.cos θ - Real.sin θ * I := + inv_eq_of_mul_eq_one_right (by linear_combination hcs - (Real.sin θ : ℂ) ^ 2 * I_sq) + rw [clm_apply_eq L (_ + _), clm_apply_eq L (I * _)] + simp only [add_re, add_im, mul_re, mul_im, ofReal_re, ofReal_im, I_re, I_im, mul_zero, zero_mul, + add_zero, zero_add, sub_zero, mul_one, zero_sub, ofReal_neg] + rw [mul_inv, he, Complex.real_smul, smul_eq_mul, smul_eq_mul] + have hr' : (r : ℂ) ≠ 0 := ofReal_ne_zero.2 hr + field_simp + linear_combination (-(L I * Real.sin θ)) * I_sq + +/-- `|e^{iθ}| = 1`. -/ +private lemma norm_unitVec (θ : ℝ) : ‖unitVec θ‖ = 1 := by + rw [unitVec, ofReal_cos, ofReal_sin] + exact norm_cos_add_sin_mul_I θ + +/-- `θ ↦ e^{iθ}` is continuous. -/ +private lemma continuous_unitVec : Continuous unitVec := by + unfold unitVec + fun_prop + +/-- `d/dθ e^{iθ} = i e^{iθ}`. -/ +private lemma hasDerivAt_unitVec (θ : ℝ) : HasDerivAt unitVec (I * unitVec θ) θ := by + have h := (Real.hasDerivAt_cos θ).ofReal_comp.add + ((Real.hasDerivAt_sin θ).ofReal_comp.mul_const I) + have he : I * unitVec θ = ↑(-Real.sin θ) + ↑(Real.cos θ) * I := by + rw [unitVec, ofReal_neg] + linear_combination (Real.sin θ : ℂ) * I_sq + rw [he] + exact h + +/-- `e^{iπ} = e^{−iπ}`. -/ +private lemma unitVec_pi : unitVec π = unitVec (-π) := by + simp [unitVec] + +/-- If `tsupport g ⊆ B (0, M)` and `r > M + |z|`, then `z + r e^{iθ}` lies outside the support +of `g`. -/ +private lemma add_mul_unitVec_notMem {g : ℂ → ℂ} {M : ℝ} + (hM : tsupport g ⊆ Metric.closedBall 0 M) (z : ℂ) {r : ℝ} (hr : M + ‖z‖ < r) (θ : ℝ) : + z + r * unitVec θ ∉ tsupport g := by + intro h + have h1 := mem_closedBall_zero_iff.1 (hM h) + have h2 : ‖(r : ℂ) * unitVec θ‖ ≤ ‖z + r * unitVec θ‖ + ‖z‖ := by + calc ‖(r : ℂ) * unitVec θ‖ = ‖(z + r * unitVec θ) - z‖ := by ring_nf + _ ≤ _ := norm_sub_le _ _ + rw [norm_mul, norm_unitVec, mul_one, Complex.norm_real, Real.norm_eq_abs] at h2 + linarith [le_abs_self r] + +/-- A continuous function of `(r, θ)` that vanishes for `r > R` is integrable on the target +`(0, ∞) × (−π, π)` of the polar coordinates. -/ +private lemma integrableOn_polarTarget {F : ℝ × ℝ → ℂ} (hF : Continuous F) {R : ℝ} + (hR : ∀ p : ℝ × ℝ, R < p.1 → F p = 0) : + IntegrableOn F (Ioi 0 ×ˢ Ioo (-π) π) := by + refine (hF.continuousOn.integrableOn_compact (K := Icc 0 R ×ˢ Icc (-π) π) + (isCompact_Icc.prod isCompact_Icc)).of_forall_sdiff_eq_zero + (measurableSet_Ioi.prod measurableSet_Ioo) fun p hp => hR p ?_ + obtain ⟨⟨h0, hθ⟩, hn⟩ := hp + by_contra h + exact hn ⟨⟨le_of_lt h0, not_lt.1 h⟩, ⟨le_of_lt hθ.1, le_of_lt hθ.2⟩⟩ + +/-- A continuous function on `ℝ` that vanishes on `(R, ∞)` is integrable on `(0, ∞)`. -/ +private lemma integrableOn_Ioi_of_eq_zero {φ : ℝ → ℂ} (hφ : Continuous φ) {R : ℝ} + (hR : ∀ r, R < r → φ r = 0) : IntegrableOn φ (Ioi 0) := by + refine (hφ.continuousOn.integrableOn_compact (K := Icc 0 R) + isCompact_Icc).of_forall_sdiff_eq_zero measurableSet_Ioi fun r hr => hR r ?_ + obtain ⟨h0, hn⟩ := hr + by_contra h + exact hn ⟨le_of_lt h0, not_lt.1 h⟩ + +/-- `∫ ∂_zbar g (z + ρ) / ρ dρ = −π g (z)`, in polar coordinates `ρ = r e^{iθ}` around `z`. -/ +private lemma integral_dzbar_mul_inv {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) + (hgc : HasCompactSupport g) (z : ℂ) : ∫ ρ, dzbar g (z + ρ) * ρ⁻¹ = -(π * g z) := by + obtain ⟨M, hM⟩ := hgc.isCompact.isBounded.subset_closedBall (0 : ℂ) + have hD : Continuous (fderiv ℝ g) := hg.continuous_fderiv one_ne_zero + have hdiff : Differentiable ℝ g := hg.differentiable one_ne_zero + set b : ℝ × ℝ → ℂ := fun p => fderiv ℝ g (z + p.1 * unitVec p.2) (unitVec p.2) + set c : ℝ × ℝ → ℂ := fun p => fderiv ℝ g (z + p.1 * unitVec p.2) (I * unitVec p.2) + have hu := continuous_unitVec + have hb : Continuous b := by fun_prop + have hc : Continuous c := by fun_prop + have hfar : ∀ p : ℝ × ℝ, M + ‖z‖ < p.1 → fderiv ℝ g (z + p.1 * unitVec p.2) = 0 := + fun p hp => fderiv_of_notMem_tsupport ℝ (add_mul_unitVec_notMem hM z hp p.2) + have hbi : IntegrableOn b (Ioi 0 ×ˢ Ioo (-π) π) := + integrableOn_polarTarget hb (R := M + ‖z‖) fun p hp => by simp [b, hfar p hp] + have hci : IntegrableOn c (Ioi 0 ×ˢ Ioo (-π) π) := + integrableOn_polarTarget hc (R := M + ‖z‖) fun p hp => by simp [c, hfar p hp] + have hprod : (volume : Measure (ℝ × ℝ)).restrict (Ioi 0 ×ˢ Ioo (-π) π) = + (volume.restrict (Ioi 0)).prod (volume.restrict (Ioo (-π) π)) := by + rw [Measure.volume_eq_prod, Measure.prod_restrict] + -- The `r`-integral of `b = ∂_r g (z + r e^{iθ})` is `−g (z)`. + have hB : ∫ p in Ioi 0 ×ˢ Ioo (-π) π, b p = (2 * π : ℝ) • -g z := by + have hinner : ∀ θ : ℝ, ∫ r in Ioi (0 : ℝ), b (r, θ) = -g z := by + intro θ + have hderiv : ∀ r : ℝ, HasDerivAt (fun r : ℝ => g (z + r * unitVec θ)) (b (r, θ)) r := by + intro r + have h1 : HasDerivAt (fun r : ℝ => z + r * unitVec θ) (unitVec θ) r := by + simpa using ((hasDerivAt_id r).ofReal_comp.mul_const (unitVec θ)).const_add z + exact (hdiff _).hasFDerivAt.comp_hasDerivAt r h1 + have h := integral_Ioi_of_hasDerivAt_of_tendsto (m := 0) + (hderiv 0).continuousAt.continuousWithinAt (fun r _ => hderiv r) + (integrableOn_Ioi_of_eq_zero (hb.comp (Continuous.prodMk_left θ)) (R := M + ‖z‖) + fun r hr => by simp [b, hfar (r, θ) hr]) + (tendsto_const_nhds.congr' ((eventually_gt_atTop (M + ‖z‖)).mono fun r hr => + (image_eq_zero_of_notMem_tsupport (add_mul_unitVec_notMem hM z hr θ)).symm)) + simpa using h + rw [IntegrableOn, hprod] at hbi + rw [hprod, integral_prod_symm b hbi] + simp_rw [hinner] + rw [setIntegral_const, Real.volume_real_Ioo_of_le (by linarith [Real.pi_pos])] + ring_nf + -- The `θ`-integral of `c = r⁻¹ ∂_θ g (z + r e^{iθ})` vanishes, by periodicity. + have hC : ∫ p in Ioi 0 ×ˢ Ioo (-π) π, c p = 0 := by + have hinner : ∀ r : ℝ, r ≠ 0 → ∫ θ in Ioo (-π) π, c (r, θ) = 0 := by + intro r hr + have hderiv : ∀ θ : ℝ, + HasDerivAt (fun θ : ℝ => g (z + r * unitVec θ)) (r * c (r, θ)) θ := by + intro θ + have h1 : HasDerivAt (fun θ : ℝ => z + r * unitVec θ) (r * (I * unitVec θ)) θ := + ((hasDerivAt_unitVec θ).const_mul (r : ℂ)).const_add z + have h := (hdiff _).hasFDerivAt.comp_hasDerivAt θ h1 + rwa [clm_ofReal_mul] at h + have h := intervalIntegral.integral_eq_sub_of_hasDerivAt (a := -π) (b := π) + (fun θ _ => hderiv θ) + ((continuous_const.mul (hc.comp (Continuous.prodMk_right r))).intervalIntegrable _ _) + rw [intervalIntegral.integral_const_mul, unitVec_pi, sub_self, + intervalIntegral.integral_of_le (by linarith [Real.pi_pos]), + integral_Ioc_eq_integral_Ioo] at h + exact (mul_eq_zero.1 h).resolve_left (ofReal_ne_zero.2 hr) + rw [IntegrableOn, hprod] at hci + rw [hprod, integral_prod c hci, ← integral_zero ℝ ℂ] + exact setIntegral_congr_fun measurableSet_Ioi fun r hr => hinner r (ne_of_gt hr) + rw [← Complex.integral_comp_polarCoord_symm, polarCoord_target, + setIntegral_congr_fun (measurableSet_Ioi.prod measurableSet_Ioo) + (g := fun p => 2⁻¹ * (b p + I * c p)) fun p hp => ?_] + · rw [integral_const_mul, integral_add hbi (hci.const_mul I), integral_const_mul, hB, hC] + rw [Complex.real_smul] + push_cast + ring + · simp only [Complex.polarCoord_symm_apply, dzbar] + exact polar_integrand _ (ne_of_gt hp.1) p.2 + +/-- **The Cauchy–Pompeiu formula**: the Cauchy transform inverts `∂_zbar` on compactly supported +`C¹` functions, `C (∂_zbar g) (z) = (1/π) ∫ ∂_zbar g (w) / (z − w) dw = g (z)`. -/ +theorem cauchyTransform_dzbar {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) (hgc : HasCompactSupport g) + (z : ℂ) : cauchyTransform (dzbar g) z = g z := by + rw [cauchyTransform_apply, + ← integral_add_left_eq_self (fun w => dzbar g w * cauchyKernel (z - w)) z] + have h : ∀ ρ : ℂ, dzbar g (z + ρ) * cauchyKernel (z - (z + ρ)) = + -(π : ℂ)⁻¹ * (dzbar g (z + ρ) * ρ⁻¹) := by + intro ρ + rw [cauchyKernel, sub_add_cancel_left, mul_neg, inv_neg, mul_inv] + ring + simp_rw [h] + rw [integral_const_mul, integral_dzbar_mul_inv hg hgc z] + have hπ : (π : ℂ) ≠ 0 := ofReal_ne_zero.2 Real.pi_ne_zero + field_simp + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/CauchyTransform.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/CauchyTransform.lean new file mode 100644 index 0000000000..141dfd34a5 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/CauchyTransform.lean @@ -0,0 +1,385 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs +public import Mathlib.Analysis.Calculus.ContDiff.Convolution +public import Mathlib.Analysis.Convolution +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.RadialIntegral +import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts +import Mathlib.Analysis.SpecialFunctions.JapaneseBracket +import Mathlib.LinearAlgebra.Complex.FiniteDimensional + +/-! +# The Cauchy transform + +The Cauchy kernel `1 / (π z)` (`HarmonicAnalysis.cauchyKernel`) and the Cauchy transform +`C g = g ∗ (1 / (π z))`, that is `C g (z) = (1/π) ∫ g (w) / (z − w) dw` +(`HarmonicAnalysis.cauchyTransform`), as a convolution in Mathlib's sense, and its basic +properties for `g` continuous, resp. smooth, with compact support. The smoothness and the +derivatives are Mathlib's differentiation of convolutions with a compactly supported factor +(`HasCompactSupport.contDiff_convolution_left`, `HasCompactSupport.hasFDerivAt_convolution_left`), +once the kernel is known to be locally integrable. The decay estimates at infinity are elementary +bounds on `1 / (z − w)` for `w` in the support of `g`. + +## Main results + +* `HarmonicAnalysis.locallyIntegrable_cauchyKernel`: `1 / (π z)` is locally integrable, since + `∫_{|z| < 1} |z|^{−1} dz = 2π`. +* `HarmonicAnalysis.continuous_cauchyTransform`, `HarmonicAnalysis.contDiff_cauchyTransform`: for + `g` continuous, resp. smooth, with compact support, `C g` is continuous, resp. smooth. +* `HarmonicAnalysis.fderiv_cauchyTransform_apply`, `HarmonicAnalysis.dz_cauchyTransform`, + `HarmonicAnalysis.dzbar_cauchyTransform`: `∂_v (C g) = C (∂_v g)`, so `∂ (C g) = C (∂g)` and + `∂_zbar (C g) = C (∂_zbar g)` (for `g` of class `C¹` with compact support: + `HarmonicAnalysis.dz_cauchyTransform_of_contDiff_one`, + `HarmonicAnalysis.dzbar_cauchyTransform_of_contDiff_one`). +* `HarmonicAnalysis.integral_dz_eq_zero`, `HarmonicAnalysis.integral_dzbar_eq_zero`: + `∫ ∂g = ∫ ∂_zbar g = 0` for `g` of class `C¹` with compact support (integration by parts against + the constant `1`). +* `HarmonicAnalysis.exists_norm_cauchyTransform_le`: if `g` is continuous and vanishes outside + `|w| ≤ R₀`, then `|C g (z)| ≤ (2/π) ‖g‖₁ / |z|` for `|z| ≥ 2 R₀`, since then + `|z − w| ≥ |z| / 2` on the support of `g`. +* `HarmonicAnalysis.exists_norm_cauchyTransform_le_of_integral_eq_zero`: if moreover `∫ g = 0`, + then `C g (z) = (1/π) ∫ g (w) (1/(z − w) − 1/z) dw = (1/π) ∫ g (w) w / (z (z − w)) dw`, so + `|C g (z)| ≤ (2 R₀/π) ‖g‖₁ / |z|²` for `|z| ≥ 2 R₀`. +* `HarmonicAnalysis.tendsto_cauchyTransform_cocompact`: `C g (z) → 0` as `z → ∞`. +* `HarmonicAnalysis.memLp_of_norm_le_div_sq`: a continuous function that is `O (1/|z|²)` at + infinity is in `L^p` for every `1 < p`, by comparison with `(1 + |z|)^{−2p}`, integrable on + `ℂ` since `2p > 2`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Metric +open scoped Real Convolution Topology ContDiff + +namespace HarmonicAnalysis + +/-- The Cauchy kernel `1 / (π z)` (`0` at `z = 0`, by Lean's `0⁻¹ = 0`; the value at one point +does not matter). -/ +def cauchyKernel (z : ℂ) : ℂ := ((π : ℂ) * z)⁻¹ + +/-- The Cauchy transform `C g = g ∗ (1 / (π z))`: `C g (z) = (1/π) ∫ g (w) / (z − w) dw` +(`HarmonicAnalysis.cauchyTransform_apply`). -/ +def cauchyTransform (g : ℂ → ℂ) : ℂ → ℂ := + g ⋆[ContinuousLinearMap.mul ℝ ℂ, volume] cauchyKernel + +/-- `C g (z) = ∫ g (w) / (π (z − w)) dw`. -/ +theorem cauchyTransform_apply (g : ℂ → ℂ) (z : ℂ) : + cauchyTransform g z = ∫ w, g w * cauchyKernel (z - w) := by + simp [cauchyTransform, convolution_def] + +/-! ### The kernel -/ + +/-- `|1 / (π z)| = 1 / (π |z|)`. -/ +theorem norm_cauchyKernel (z : ℂ) : ‖cauchyKernel z‖ = (π * ‖z‖)⁻¹ := by + simp [cauchyKernel, abs_of_pos Real.pi_pos] + +/-- The Cauchy kernel is measurable. -/ +theorem measurable_cauchyKernel : Measurable cauchyKernel := by + unfold cauchyKernel + fun_prop + +/-- The Cauchy kernel is integrable on the unit disc: `∫_{|z| < 1} |z|^{−1} dz = 2π`. -/ +theorem integrableOn_cauchyKernel_ball : IntegrableOn cauchyKernel (ball 0 1) := by + refine ⟨measurable_cauchyKernel.aestronglyMeasurable, ?_⟩ + have h := lintegral_ball_norm_rpow (s := 1) (by norm_num) + have hmeas : Measurable fun z : ℂ => ENNReal.ofReal (‖z‖ ^ (-1 : ℝ)) := by fun_prop + calc ∫⁻ z in ball 0 1, ‖cauchyKernel z‖ₑ + = ∫⁻ z : ℂ in ball 0 1, ENNReal.ofReal π⁻¹ * ENNReal.ofReal (‖z‖ ^ (-1 : ℝ)) := by + refine lintegral_congr fun z => ?_ + rw [← ofReal_norm, norm_cauchyKernel, ← ENNReal.ofReal_mul (by positivity), + Real.rpow_neg_one, mul_inv] + _ = ENNReal.ofReal π⁻¹ * ENNReal.ofReal (2 * π / (2 - 1)) := by + rw [lintegral_const_mul _ hmeas, h] + _ < ⊤ := ENNReal.mul_lt_top ENNReal.ofReal_lt_top ENNReal.ofReal_lt_top + +/-- The Cauchy kernel `1 / (π z)` is locally integrable: integrable on the unit disc, and +continuous away from `0`. -/ +theorem locallyIntegrable_cauchyKernel : LocallyIntegrable cauchyKernel volume := by + rw [locallyIntegrable_iff] + intro k hk + have hk' : IsCompact (k \ ball 0 1) := hk.diff isOpen_ball + have hcont : ContinuousOn cauchyKernel (k \ ball 0 1) := by + intro z hz + have hz0 : z ≠ 0 := by + rintro rfl + exact hz.2 (mem_ball_self one_pos) + have hπ : (π : ℂ) ≠ 0 := by exact_mod_cast Real.pi_ne_zero + exact ((continuousAt_const.mul continuousAt_id).inv₀ (mul_ne_zero hπ hz0)).continuousWithinAt + refine (integrableOn_cauchyKernel_ball.union (hcont.integrableOn_compact hk')).mono_set ?_ + intro z hz + by_cases h : z ∈ ball (0 : ℂ) 1 + · exact Or.inl h + · exact Or.inr ⟨hz, h⟩ + +/-- For a continuous compactly supported `g`, `w ↦ g (w) / (π (z − w))` is integrable. -/ +theorem integrable_mul_cauchyKernel {g : ℂ → ℂ} (hg : Continuous g) (hgc : HasCompactSupport g) + (z : ℂ) : Integrable fun w => g w * cauchyKernel (z - w) := + hgc.convolutionExists_left (ContinuousLinearMap.mul ℝ ℂ) hg locallyIntegrable_cauchyKernel z + +/-! ### Continuity and derivatives -/ + +/-- The Cauchy transform of a continuous compactly supported function is continuous. -/ +theorem continuous_cauchyTransform {g : ℂ → ℂ} (hg : Continuous g) (hgc : HasCompactSupport g) : + Continuous (cauchyTransform g) := + hgc.continuous_convolution_left _ hg locallyIntegrable_cauchyKernel + +/-- The Cauchy transform of a smooth compactly supported function is smooth. -/ +theorem contDiff_cauchyTransform {g : ℂ → ℂ} (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) : + ContDiff ℝ ∞ (cauchyTransform g) := + hgc.contDiff_convolution_left _ hg locallyIntegrable_cauchyKernel + +/-- `∂_v (C g) = C (∂_v g)` for `g` of class `C¹` with compact support. -/ +theorem fderiv_cauchyTransform_apply {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) + (hgc : HasCompactSupport g) (z v : ℂ) : + fderiv ℝ (cauchyTransform g) z v = cauchyTransform (fun w => fderiv ℝ g w v) z := by + have hd := hgc.hasFDerivAt_convolution_left (ContinuousLinearMap.mul ℝ ℂ) hg + locallyIntegrable_cauchyKernel z + have hint := (hgc.fderiv ℝ).convolutionExists_left + ((ContinuousLinearMap.mul ℝ ℂ).precompL ℂ) (hg.continuous_fderiv one_ne_zero) + locallyIntegrable_cauchyKernel z + rw [cauchyTransform_apply] + unfold cauchyTransform + rw [hd.fderiv, convolution_def, ContinuousLinearMap.integral_apply hint] + rfl + +/-- `w ↦ ∂_v g (w) / (π (z − w))` is integrable, for `g` of class `C¹` with compact support. -/ +private lemma integrable_fderiv_mul_cauchyKernel {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) + (hgc : HasCompactSupport g) (z v : ℂ) : + Integrable fun w => fderiv ℝ g w v * cauchyKernel (z - w) := + integrable_mul_cauchyKernel ((hg.continuous_fderiv one_ne_zero).clm_apply continuous_const) + (hgc.fderiv_apply ℝ v) z + +/-- `∂ (C g) = C (∂g)` for `g` of class `C¹` with compact support. -/ +theorem dz_cauchyTransform_of_contDiff_one {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) + (hgc : HasCompactSupport g) : dz (cauchyTransform g) = cauchyTransform (dz g) := by + funext z + simp only [dz, fderiv_cauchyTransform_apply hg hgc, cauchyTransform_apply, smul_eq_mul] + rw [← integral_const_mul, + ← integral_sub (integrable_fderiv_mul_cauchyKernel hg hgc z 1) + ((integrable_fderiv_mul_cauchyKernel hg hgc z Complex.I).const_mul _), + ← integral_const_mul] + congr 1 + funext w + ring + +/-- `∂_zbar (C g) = C (∂_zbar g)` for `g` of class `C¹` with compact support. -/ +theorem dzbar_cauchyTransform_of_contDiff_one {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) + (hgc : HasCompactSupport g) : dzbar (cauchyTransform g) = cauchyTransform (dzbar g) := by + funext z + simp only [dzbar, fderiv_cauchyTransform_apply hg hgc, cauchyTransform_apply, smul_eq_mul] + rw [← integral_const_mul, + ← integral_add (integrable_fderiv_mul_cauchyKernel hg hgc z 1) + ((integrable_fderiv_mul_cauchyKernel hg hgc z Complex.I).const_mul _), + ← integral_const_mul] + congr 1 + funext w + ring + +/-- `∂ (C g) = C (∂g)` for `g` smooth with compact support. -/ +theorem dz_cauchyTransform {g : ℂ → ℂ} (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) : + dz (cauchyTransform g) = cauchyTransform (dz g) := + dz_cauchyTransform_of_contDiff_one (hg.of_le (by exact_mod_cast le_top)) hgc + +/-- `∂_zbar (C g) = C (∂_zbar g)` for `g` smooth with compact support. -/ +theorem dzbar_cauchyTransform {g : ℂ → ℂ} (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) : + dzbar (cauchyTransform g) = cauchyTransform (dzbar g) := + dzbar_cauchyTransform_of_contDiff_one (hg.of_le (by exact_mod_cast le_top)) hgc + +/-! ### Integrals of derivatives -/ + +/-- `∫ ∂_v g = 0` for `g` of class `C¹` with compact support: integration by parts against the +constant `1`. -/ +theorem integral_fderiv_apply_eq_zero {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) + (hgc : HasCompactSupport g) (v : ℂ) : ∫ z, fderiv ℝ g z v = 0 := by + have hcont : Continuous fun z => fderiv ℝ g z v := + (hg.continuous_fderiv one_ne_zero).clm_apply continuous_const + have h := integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable (μ := volume) + (f := fun _ : ℂ => (1 : ℂ)) (g := g) (v := v) (by simp) + (by simpa using hcont.integrable_of_hasCompactSupport (hgc.fderiv_apply ℝ v)) + (by simpa using hg.continuous.integrable_of_hasCompactSupport hgc) + (fun x _ => differentiableAt_const _) (fun x _ => hg.differentiable one_ne_zero x) + simpa using h + +/-- `∫ ∂g = 0` for `g` of class `C¹` with compact support. -/ +theorem integral_dz_eq_zero {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) (hgc : HasCompactSupport g) : + ∫ z, dz g z = 0 := by + have h1 := (hg.continuous_fderiv one_ne_zero).clm_apply (continuous_const (y := (1 : ℂ))) + have hI := (hg.continuous_fderiv one_ne_zero).clm_apply (continuous_const (y := Complex.I)) + have hi1 : Integrable fun z => fderiv ℝ g z 1 := + h1.integrable_of_hasCompactSupport (hgc.fderiv_apply ℝ 1) + have hiI : Integrable fun z => Complex.I • fderiv ℝ g z Complex.I := + (hI.integrable_of_hasCompactSupport (hgc.fderiv_apply ℝ Complex.I)).smul Complex.I + simp only [dz] + rw [integral_smul, integral_sub hi1 hiI, integral_smul, integral_fderiv_apply_eq_zero hg hgc, + integral_fderiv_apply_eq_zero hg hgc] + simp + +/-- `∫ ∂_zbar g = 0` for `g` of class `C¹` with compact support. -/ +theorem integral_dzbar_eq_zero {g : ℂ → ℂ} (hg : ContDiff ℝ 1 g) (hgc : HasCompactSupport g) : + ∫ z, dzbar g z = 0 := by + have h1 := (hg.continuous_fderiv one_ne_zero).clm_apply (continuous_const (y := (1 : ℂ))) + have hI := (hg.continuous_fderiv one_ne_zero).clm_apply (continuous_const (y := Complex.I)) + have hi1 : Integrable fun z => fderiv ℝ g z 1 := + h1.integrable_of_hasCompactSupport (hgc.fderiv_apply ℝ 1) + have hiI : Integrable fun z => Complex.I • fderiv ℝ g z Complex.I := + (hI.integrable_of_hasCompactSupport (hgc.fderiv_apply ℝ Complex.I)).smul Complex.I + simp only [dzbar] + rw [integral_smul, integral_add hi1 hiI, integral_smul, integral_fderiv_apply_eq_zero hg hgc, + integral_fderiv_apply_eq_zero hg hgc] + simp + +/-! ### Decay at infinity -/ + +/-- A compactly supported function vanishes outside a disc `|w| ≤ R₀`, `R₀ > 0`. -/ +private lemma exists_norm_le_of_ne_zero {g : ℂ → ℂ} (hgc : HasCompactSupport g) : + ∃ R₀ : ℝ, 0 < R₀ ∧ ∀ w, g w ≠ 0 → ‖w‖ ≤ R₀ := by + obtain ⟨r, hr⟩ := hgc.isCompact.isBounded.subset_closedBall 0 + refine ⟨max r 1, lt_max_of_lt_right one_pos, fun w hw => ?_⟩ + have h := hr (subset_tsupport g hw) + rw [mem_closedBall_zero_iff] at h + exact h.trans (le_max_left _ _) + +/-- `C g = O (1/|z|)` at infinity: if `g` is continuous and vanishes outside `|w| ≤ R₀`, then +`|C g (z)| ≤ (2/π) ‖g‖₁ / |z|` for `|z| ≥ 2 R₀`. -/ +theorem exists_norm_cauchyTransform_le {g : ℂ → ℂ} (hg : Continuous g) + (hgc : HasCompactSupport g) : + ∃ A R : ℝ, 0 < R ∧ ∀ z, R ≤ ‖z‖ → ‖cauchyTransform g z‖ ≤ A / ‖z‖ := by + obtain ⟨R₀, hR₀, hsupp⟩ := exists_norm_le_of_ne_zero hgc + have hgi : Integrable g := hg.integrable_of_hasCompactSupport hgc + refine ⟨2 / π * ∫ w, ‖g w‖, 2 * R₀, by positivity, fun z hz => ?_⟩ + have hz0 : 0 < ‖z‖ := by linarith + rw [cauchyTransform_apply] + calc ‖∫ w, g w * cauchyKernel (z - w)‖ ≤ ∫ w, ‖g w‖ * (2 / (π * ‖z‖)) := by + refine norm_integral_le_of_norm_le (hgi.norm.mul_const _) + (Eventually.of_forall fun w => ?_) + rw [norm_mul] + by_cases hw : g w = 0 + · simp [hw] + refine mul_le_mul_of_nonneg_left ?_ (norm_nonneg _) + have hw' := hsupp w hw + have hzw : ‖z‖ / 2 ≤ ‖z - w‖ := by + have := norm_sub_norm_le z w + linarith + have hzw0 : 0 < ‖z - w‖ := by linarith + rw [norm_cauchyKernel, inv_eq_one_div, div_le_div_iff₀ (by positivity) (by positivity)] + nlinarith [Real.pi_pos] + _ = 2 / π * (∫ w, ‖g w‖) / ‖z‖ := by + rw [integral_mul_const] + field_simp + +/-- `C g = O (1/|z|²)` at infinity if `∫ g = 0`: if `g` is continuous, vanishes outside +`|w| ≤ R₀` and has integral `0`, then `C g (z) = (1/π) ∫ g (w) w / (z (z − w)) dw`, so +`|C g (z)| ≤ (2 R₀/π) ‖g‖₁ / |z|²` for `|z| ≥ 2 R₀`. -/ +theorem exists_norm_cauchyTransform_le_of_integral_eq_zero {g : ℂ → ℂ} (hg : Continuous g) + (hgc : HasCompactSupport g) (h0 : ∫ w, g w = 0) : + ∃ A R : ℝ, 0 < R ∧ ∀ z, R ≤ ‖z‖ → ‖cauchyTransform g z‖ ≤ A / ‖z‖ ^ 2 := by + obtain ⟨R₀, hR₀, hsupp⟩ := exists_norm_le_of_ne_zero hgc + have hgi : Integrable g := hg.integrable_of_hasCompactSupport hgc + refine ⟨2 * R₀ / π * ∫ w, ‖g w‖, 2 * R₀, by positivity, fun z hz => ?_⟩ + have hz0 : 0 < ‖z‖ := by linarith + have hC : cauchyTransform g z = ∫ w, g w * (cauchyKernel (z - w) - cauchyKernel z) := by + rw [cauchyTransform_apply] + simp_rw [mul_sub] + rw [integral_sub (integrable_mul_cauchyKernel hg hgc z) (hgi.mul_const _), + integral_mul_const, h0, zero_mul, sub_zero] + rw [hC] + calc ‖∫ w, g w * (cauchyKernel (z - w) - cauchyKernel z)‖ + ≤ ∫ w, ‖g w‖ * (2 * R₀ / (π * ‖z‖ ^ 2)) := by + refine norm_integral_le_of_norm_le (hgi.norm.mul_const _) + (Eventually.of_forall fun w => ?_) + rw [norm_mul] + by_cases hw : g w = 0 + · simp [hw] + refine mul_le_mul_of_nonneg_left ?_ (norm_nonneg _) + have hw' := hsupp w hw + have hzw : ‖z‖ / 2 ≤ ‖z - w‖ := by + have := norm_sub_norm_le z w + linarith + have hzw0 : 0 < ‖z - w‖ := by linarith + have hz' : z ≠ 0 := norm_pos_iff.1 hz0 + have hzw' : z - w ≠ 0 := norm_pos_iff.1 hzw0 + have hπ : (π : ℂ) ≠ 0 := by exact_mod_cast Real.pi_ne_zero + have key : cauchyKernel (z - w) - cauchyKernel z = w / (π * z * (z - w)) := by + simp only [cauchyKernel] + field_simp + ring + rw [key, norm_div, norm_mul, norm_mul, Complex.norm_real, + Real.norm_of_nonneg Real.pi_pos.le, + div_le_div_iff₀ (by positivity) (by positivity)] + have e1 : ‖w‖ * (π * ‖z‖ ^ 2) ≤ R₀ * (π * ‖z‖ ^ 2) := + mul_le_mul_of_nonneg_right hw' (by positivity) + have e2 : R₀ * π * ‖z‖ * ‖z‖ ≤ R₀ * π * ‖z‖ * (2 * ‖z - w‖) := + mul_le_mul_of_nonneg_left (by linarith) (by positivity) + nlinarith + _ = 2 * R₀ / π * (∫ w, ‖g w‖) / ‖z‖ ^ 2 := by + rw [integral_mul_const] + field_simp + +/-- `C g (z) → 0` as `z → ∞`, for `g` continuous with compact support. -/ +theorem tendsto_cauchyTransform_cocompact {g : ℂ → ℂ} (hg : Continuous g) + (hgc : HasCompactSupport g) : Tendsto (cauchyTransform g) (cocompact ℂ) (𝓝 0) := by + obtain ⟨A, R, -, hA⟩ := exists_norm_cauchyTransform_le hg hgc + have hnorm : Tendsto (fun z : ℂ => ‖z‖) (cocompact ℂ) atTop := tendsto_norm_cocompact_atTop + have hlim : Tendsto (fun z : ℂ => A / ‖z‖) (cocompact ℂ) (𝓝 0) := + (tendsto_const_nhds : Tendsto (fun _ : ℂ => A) (cocompact ℂ) (𝓝 A)).div_atTop hnorm + refine squeeze_zero_norm' ?_ hlim + filter_upwards [hnorm.eventually (eventually_ge_atTop R)] with z hz using hA z hz + +/-- A continuous function that is `O (1/|z|²)` at infinity is in `L^p (ℂ)` for every `1 < p`: +it is bounded by a multiple of `(1 + |z|)^{−2}`, whose `p`-th power is integrable on `ℂ` since +`2p > 2`. -/ +theorem memLp_of_norm_le_div_sq {f : ℂ → ℂ} (hf : Continuous f) {A R : ℝ} (hR : 0 < R) + (h : ∀ z, R ≤ ‖z‖ → ‖f z‖ ≤ A / ‖z‖ ^ 2) {p : ℝ} (hp : 1 < p) : + MemLp f (ENNReal.ofReal p) volume := by + obtain ⟨M, hM⟩ := (isCompact_closedBall (0 : ℂ) R).exists_bound_of_continuousOn hf.continuousOn + set C := max M 0 * (1 + R) ^ 2 + |A| * (1 + R⁻¹) ^ 2 with hC + have hbound : ∀ z, ‖f z‖ ≤ C * (1 + ‖z‖) ^ (-2 : ℝ) := by + intro z + have h1 : 0 < 1 + ‖z‖ := by positivity + rw [Real.rpow_neg h1.le, Real.rpow_two, ← div_eq_mul_inv, le_div_iff₀ (by positivity)] + rcases le_or_gt ‖z‖ R with hz | hz + · have hfz : ‖f z‖ ≤ max M 0 := + (hM z (mem_closedBall_zero_iff.2 hz)).trans (le_max_left _ _) + have h2 : (1 + ‖z‖) ^ 2 ≤ (1 + R) ^ 2 := by gcongr + calc ‖f z‖ * (1 + ‖z‖) ^ 2 ≤ max M 0 * (1 + R) ^ 2 := + mul_le_mul hfz h2 (by positivity) (le_max_right _ _) + _ ≤ C := le_add_of_nonneg_right (by positivity) + · have hz0 : 0 < ‖z‖ := hR.trans hz + have hfz : ‖f z‖ ≤ |A| / ‖z‖ ^ 2 := + (h z hz.le).trans (div_le_div_of_nonneg_right (le_abs_self A) (by positivity)) + have h2 : 1 + ‖z‖ ≤ (1 + R⁻¹) * ‖z‖ := by + have : 1 ≤ R⁻¹ * ‖z‖ := by + rw [inv_mul_eq_div, one_le_div hR] + exact hz.le + nlinarith + calc ‖f z‖ * (1 + ‖z‖) ^ 2 ≤ |A| / ‖z‖ ^ 2 * ((1 + R⁻¹) * ‖z‖) ^ 2 := + mul_le_mul hfz (by gcongr) (by positivity) (by positivity) + _ = |A| * (1 + R⁻¹) ^ 2 := by + field_simp + _ ≤ C := le_add_of_nonneg_left (by positivity) + have hp0 : 0 < p := by linarith + have hdom : MemLp (fun z : ℂ => C * (1 + ‖z‖) ^ (-2 : ℝ)) (ENNReal.ofReal p) volume := by + have hmeas : AEStronglyMeasurable (fun z : ℂ => C * (1 + ‖z‖) ^ (-2 : ℝ)) volume := + (by fun_prop : Measurable fun z : ℂ => C * (1 + ‖z‖) ^ (-2 : ℝ)).aestronglyMeasurable + rw [← integrable_norm_rpow_iff hmeas (by simpa using hp0) ENNReal.ofReal_ne_top, + ENNReal.toReal_ofReal hp0.le] + have hint : Integrable (fun z : ℂ => (1 + ‖z‖) ^ (-(2 * p))) volume := + integrable_one_add_norm (by simp [Complex.finrank_real_complex]; linarith) + refine (hint.const_mul (|C| ^ p)).congr (Eventually.of_forall fun z => ?_) + have h1 : 0 < 1 + ‖z‖ := by positivity + simp only + rw [norm_mul, Real.norm_eq_abs, Real.norm_of_nonneg (Real.rpow_nonneg h1.le _), + Real.mul_rpow (abs_nonneg _) (Real.rpow_nonneg h1.le _), ← Real.rpow_mul h1.le, neg_mul] + exact hdom.of_le hf.aestronglyMeasurable + (Eventually.of_forall fun z => (hbound z).trans (Real.le_norm_self _)) + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/Liouville.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/Liouville.lean new file mode 100644 index 0000000000..25cb0b81b7 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/Liouville.lean @@ -0,0 +1,69 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs +import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars +import Mathlib.Analysis.Complex.Liouville + +/-! +# A Liouville lemma for `∂_zbar u = 0` + +For a real-differentiable `u : ℂ → ℂ`, `∂_zbar u (z) = ½ (∂_x u (z) + i ∂_y u (z)) = 0` is the +Cauchy–Riemann equation `∂_y u (z) = i ∂_x u (z)`: the real derivative `Du (z)` is then +multiplication by `∂_x u (z)`, a complex-linear map, and `u` is complex-differentiable at `z`. + +## Main results + +* `HarmonicAnalysis.differentiable_complex_of_dzbar_eq_zero`: a real-differentiable `u` with + `∂_zbar u = 0` everywhere is entire. +* `HarmonicAnalysis.eq_zero_of_dzbar_eq_zero`: if moreover `u (z) → 0` as `z → ∞`, then `u = 0`, + by Liouville's theorem (Mathlib's `Differentiable.apply_eq_of_tendsto_cocompact`). +-/ + +@[expose] public section + +noncomputable section + +open Filter Topology + +namespace HarmonicAnalysis + +/-- A real-differentiable `u : ℂ → ℂ` with `∂_zbar u = 0` everywhere is complex-differentiable: at +each +`z`, `Du (z) (i) = i Du (z) (1)`, so `Du (z) (w) = w Du (z) (1)` is complex-linear. -/ +theorem differentiable_complex_of_dzbar_eq_zero {u : ℂ → ℂ} (hu : Differentiable ℝ u) + (h : ∀ z, dzbar u z = 0) : Differentiable ℂ u := by + intro z + set L := fderiv ℝ u z + -- the Cauchy–Riemann equation `L i = i L 1` + have hI : L Complex.I = Complex.I * L 1 := by + have h0 := h z + simp only [dzbar, smul_eq_mul, mul_eq_zero, inv_eq_zero, OfNat.ofNat_ne_zero, + false_or] at h0 + linear_combination (-Complex.I) * h0 + (L Complex.I) * Complex.I_sq + refine (differentiableAt_iff_restrictScalars ℝ (hu z)).2 + ⟨ContinuousLinearMap.smulRight (1 : ℂ →L[ℂ] ℂ) (L 1), ?_⟩ + ext w + -- `L w = L (Re w • 1 + Im w • i) = Re w L 1 + Im w L i = w L 1` + have hw : L w = (w.re : ℂ) * L 1 + (w.im : ℂ) * L Complex.I := by + have hw' : w = w.re • (1 : ℂ) + w.im • Complex.I := by simp [Complex.re_add_im] + conv_lhs => rw [hw'] + rw [map_add, map_smul, map_smul, Complex.real_smul, Complex.real_smul] + change w * L 1 = L w + rw [hw, hI] + conv_lhs => rw [← Complex.re_add_im w] + ring + +/-- A Liouville lemma: a real-differentiable `u : ℂ → ℂ` with `∂_zbar u = 0` everywhere and +`u (z) → 0` as `z → ∞` vanishes identically. -/ +theorem eq_zero_of_dzbar_eq_zero {u : ℂ → ℂ} (hu : Differentiable ℝ u) (h : ∀ z, dzbar u z = 0) + (hlim : Tendsto u (cocompact ℂ) (𝓝 0)) (z : ℂ) : u z = 0 := + (differentiable_complex_of_dzbar_eq_zero hu h).apply_eq_of_tendsto_cocompact z hlim + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/RadialIntegral.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/RadialIntegral.lean new file mode 100644 index 0000000000..2fd2dd85db --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/RadialIntegral.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.SpecialFunctions.PolarCoord +public import Mathlib.Analysis.SpecialFunctions.Integrals.Basic +public import Mathlib.MeasureTheory.Measure.Lebesgue.Complex + +/-! +# Integrals of radial functions on `ℂ` + +* `HarmonicAnalysis.lintegral_comp_norm`: `∫⁻_ℂ g (|z|) dz = 2π ∫⁻_0^∞ g (r) r dr` (polar + coordinates). +* `HarmonicAnalysis.lintegral_ball_norm_rpow`: `∫_{|z| < 1} |z|^{−s} dz = 2π / (2 − s)` for + `s < 2`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Set +open scoped ENNReal Real + +namespace HarmonicAnalysis + +/-- Integrals of radial functions: `∫⁻_ℂ g (|z|) dz = 2π ∫⁻_0^∞ g (r) r dr`. -/ +theorem lintegral_comp_norm {g : ℝ → ℝ≥0∞} (hg : Measurable g) : + ∫⁻ z : ℂ, g ‖z‖ = ENNReal.ofReal (2 * π) * ∫⁻ r in Ioi (0 : ℝ), ENNReal.ofReal r * g r := by + rw [← Complex.lintegral_comp_polarCoord_symm, polarCoord_target] + have hmeas : MeasurableSet (Ioi (0 : ℝ) ×ˢ Ioo (-π) π) := measurableSet_Ioi.prod measurableSet_Ioo + rw [setLIntegral_congr_fun hmeas (g := fun p => ENNReal.ofReal p.1 * g p.1 * 1) + (fun p hp => by + dsimp only + rw [Complex.norm_polarCoord_symm, abs_of_pos hp.1, smul_eq_mul, mul_one])] + have h := lintegral_prod_mul (μ := volume.restrict (Ioi (0 : ℝ))) + (ν := volume.restrict (Ioo (-π) π)) (f := fun r => ENNReal.ofReal r * g r) + (g := fun _ => (1 : ℝ≥0∞)) (by fun_prop) aemeasurable_const + beta_reduce at h + rw [Measure.volume_eq_prod, ← Measure.prod_restrict, h, setLIntegral_const, one_mul, + Real.volume_Ioo, mul_comm] + congr 2 + ring + +/-- `∫_{|z| < 1} |z|^{−s} dz = 2π / (2 − s)` for `s < 2`. -/ +theorem lintegral_ball_norm_rpow {s : ℝ} (hs : s < 2) : + ∫⁻ z in Metric.ball (0 : ℂ) 1, ENNReal.ofReal (‖z‖ ^ (-s)) = + ENNReal.ofReal (2 * π / (2 - s)) := by + set h : ℝ → ℝ≥0∞ := (Iio (1 : ℝ)).indicator fun r => ENNReal.ofReal (r ^ (-s)) with h_def + have hh : Measurable h := + (by fun_prop : Measurable fun r : ℝ => ENNReal.ofReal (r ^ (-s))).indicator measurableSet_Iio + have hball : (Metric.ball (0 : ℂ) 1).indicator (fun z => ENNReal.ofReal (‖z‖ ^ (-s))) = + fun z => h ‖z‖ := by + funext z + by_cases hz : ‖z‖ < 1 + · rw [h_def, indicator_of_mem (mem_ball_zero_iff.2 hz), indicator_of_mem (mem_Iio.2 hz)] + · rw [h_def, indicator_of_notMem (mt mem_ball_zero_iff.1 hz), + indicator_of_notMem (mt mem_Iio.1 hz)] + rw [← lintegral_indicator Metric.isOpen_ball.measurableSet, hball, lintegral_comp_norm hh] + have hmul : (fun r => ENNReal.ofReal r * h r) = + (Iio (1 : ℝ)).indicator fun r => ENNReal.ofReal r * ENNReal.ofReal (r ^ (-s)) := by + funext r + simp only [h_def, indicator_apply] + split_ifs <;> simp + have hint : IntegrableOn (fun r : ℝ => r ^ (1 - s)) (Ioo 0 1) := + (intervalIntegral.intervalIntegrable_rpow' (a := 0) (b := 1) + (by linarith : -1 < 1 - s)).1.mono_set Ioo_subset_Ioc_self + have hnn : 0 ≤ᵐ[volume.restrict (Ioo (0 : ℝ) 1)] fun r : ℝ => r ^ (1 - s) := + ae_restrict_of_forall_mem measurableSet_Ioo fun r hr => Real.rpow_nonneg hr.1.le _ + rw [hmul, lintegral_indicator measurableSet_Iio, Measure.restrict_restrict measurableSet_Iio, + inter_comm, Ioi_inter_Iio, + setLIntegral_congr_fun measurableSet_Ioo (g := fun r => ENNReal.ofReal (r ^ (1 - s))) + (fun r hr => by + dsimp only + rw [← ENNReal.ofReal_mul hr.1.le, sub_eq_add_neg, Real.rpow_add hr.1, Real.rpow_one]), + ← ofReal_integral_eq_lintegral_ofReal hint hnn, ← integral_Ioc_eq_integral_Ioo, + ← intervalIntegral.integral_of_le zero_le_one, integral_rpow (Or.inl (by linarith)), + Real.one_rpow, Real.zero_rpow (by linarith), ← ENNReal.ofReal_mul (by positivity)] + congr 1 + ring + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/RadialStretch.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/RadialStretch.lean new file mode 100644 index 0000000000..e58e8e46dc --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/RadialStretch.lean @@ -0,0 +1,504 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Sobolev.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.RadialIntegral +public import Mathlib.Topology.Homeomorph.Defs +import Mathlib.Analysis.Calculus.FDeriv.Measurable +import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts +import Mathlib.Analysis.InnerProductSpace.Calculus +import Mathlib.Analysis.SpecialFunctions.Integrability.Basic +import Mathlib.Analysis.SpecialFunctions.Pow.Deriv +import Mathlib.MeasureTheory.Function.L2Space +import Mathlib.MeasureTheory.Integral.DominatedConvergence + +/-! +# The radial stretch `z ↦ |z|^{α − 1} z` + +For `0 < α ≤ 1`, the radial stretch `f (z) = |z|^{α − 1} z` (`f (re^{iθ}) = r^α e^{iθ}`) is the +extremal `K`-quasiconformal map for the higher integrability of the derivatives, `K = 1/α`: + +* `HarmonicAnalysis.exists_homeomorph_radialStretch`: `f` is a homeomorphism of `ℂ` (its inverse + is the radial stretch with exponent `1/α`); +* `HarmonicAnalysis.hasWeakFDerivOn_radialStretch`, + `HarmonicAnalysis.memLpLoc_fderiv_radialStretch`: its pointwise derivative, which exists off + `0`, is its weak derivative on `ℂ`, and is in `L²_loc (ℂ)`, so `f ∈ W^{1,2}_loc (ℂ)`; +* `HarmonicAnalysis.norm_dzbarPart_fderiv_radialStretch`: `|∂_zbar f| = ((1 − α)/(1 + α)) |∂f|` +off `0`, + that is, `|∂_zbar f| = k |∂f|` with `k = (K − 1)/(K + 1)`; +* `HarmonicAnalysis.not_memLp_fderiv_radialStretch_apply_one`: for `α < 1`, `∂_x f` is not in + `L^{2/(1 − α)}` of any disc around `0`; `2/(1 − α) = 2K/(K − 1)`. + +Off `0`, `∂f = ((1 + α)/2) |z|^{α − 1}` and `∂_zbar f = ((α − 1)/2) |z|^{α − 1} z / (conj z)` +(`HarmonicAnalysis.dzPart_fderiv_radialStretch`, `HarmonicAnalysis.dzbarPart_fderiv_radialStretch`), +so `|Df| = |∂f| + |∂_zbar f| = |z|^{α − 1}`, which is in `L^p` near `0` if and only if +`(α − 1) p > −2`. + +## Proofs + +* The homeomorphism: `|f (z)| = |z|^α`, so the radial stretches with exponents `α` and `1/α` are + inverse to each other (`HarmonicAnalysis.radialStretch_radialStretch`), and `f` is continuous at + `0`. +* The derivative off `0`: `f (z) = (|z|²)^{(α − 1)/2} z`, and `|z|²` is smooth + (`HarmonicAnalysis.fderiv_radialStretch_apply`). +* `|z|^t`, `−2 < t ≤ 0`, is integrable on compact sets: on the unit disc by + `HarmonicAnalysis.lintegral_ball_norm_rpow`, and it is at most `1` off the unit disc. +* `L²_loc`: `‖Df (z)‖ ≤ |∂f| + |∂_zbar f| = |z|^{α − 1}`, and `2 (α − 1) > −2`. +* The weak derivative: `f` is the limit of the smooth maps `f_ε (z) = (|z|² + ε²)^{(α − 1)/2} z`, + `ε → 0`, for which the integration by parts holds on the whole plane. On the support of a test + function, `|f_ε (z)| ≤ |z|^α` and `|Df_ε (z) v| ≤ 2 |z|^{α − 1} |v|`, which is integrable, and + dominated convergence passes to the limit on both sides (off the null set `{0}`). +* The failure of `L^{2/(1 − α)}`: `|∂_x f| ≥ |∂f| − |∂_zbar f| = α |z|^{α − 1}`, and + `∫_{|z| < r} |z|^{−2} = 2π ∫_0^r ρ⁻¹ dρ = ∞` (`HarmonicAnalysis.lintegral_comp_norm`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped ENNReal ContDiff ComplexConjugate + +namespace HarmonicAnalysis + +/-- The radial stretch `z ↦ |z|^{α − 1} z` (`0` at `z = 0`). -/ +def radialStretch (α : ℝ) (z : ℂ) : ℂ := (‖z‖ ^ (α - 1) : ℝ) • z + +/-! ### The radial stretch as a homeomorphism -/ + +/-- `|f (z)| = |z|^α`, for `α ≠ 0`. -/ +theorem norm_radialStretch {α : ℝ} (hα : α ≠ 0) (z : ℂ) : ‖radialStretch α z‖ = ‖z‖ ^ α := by + rcases eq_or_ne z 0 with rfl | hz + · simp [radialStretch, Real.zero_rpow hα] + · rw [radialStretch, norm_smul, Real.norm_of_nonneg (Real.rpow_nonneg (norm_nonneg z) _), + ← Real.rpow_add_one (norm_ne_zero_iff.2 hz), sub_add_cancel] + +/-- The radial stretches with exponents `α` and `β`, `αβ = 1`, are inverse to each other. -/ +theorem radialStretch_radialStretch {α β : ℝ} (h : α * β = 1) (z : ℂ) : + radialStretch β (radialStretch α z) = z := by + rcases eq_or_ne z 0 with rfl | hz + · simp [radialStretch] + have hα : α ≠ 0 := left_ne_zero_of_mul_eq_one h + have hz' : 0 < ‖z‖ := norm_pos_iff.2 hz + rw [radialStretch, norm_radialStretch hα, radialStretch, smul_smul, ← Real.rpow_mul hz'.le, + ← Real.rpow_add hz', show α * (β - 1) + (α - 1) = 0 by linear_combination h, Real.rpow_zero, + one_smul] + +/-- The radial stretch is continuous for `0 < α`, so it is in `L^p_loc (ℂ)` for every `p`. -/ +theorem continuous_radialStretch {α : ℝ} (hα : 0 < α) : Continuous (radialStretch α) := by + rw [continuous_iff_continuousAt] + intro z + rcases eq_or_ne z 0 with rfl | hz + · rw [ContinuousAt, show radialStretch α 0 = 0 by simp [radialStretch], + tendsto_zero_iff_norm_tendsto_zero] + simp_rw [norm_radialStretch hα.ne'] + have := ((continuous_norm (E := ℂ)).rpow_const fun _ => Or.inr hα.le).tendsto 0 + simpa [Real.zero_rpow hα.ne'] using this + · exact (continuous_norm.continuousAt.rpow_const (Or.inl (norm_ne_zero_iff.2 hz))).smul + continuousAt_id + +/-- The radial stretch is a homeomorphism of `ℂ` for `0 < α`. -/ +theorem exists_homeomorph_radialStretch {α : ℝ} (hα : 0 < α) : + ∃ e : ℂ ≃ₜ ℂ, ⇑e = radialStretch α := + ⟨{ toFun := radialStretch α + invFun := radialStretch α⁻¹ + left_inv := radialStretch_radialStretch (mul_inv_cancel₀ hα.ne') + right_inv := radialStretch_radialStretch (inv_mul_cancel₀ hα.ne') + continuous_toFun := continuous_radialStretch hα + continuous_invFun := continuous_radialStretch (inv_pos.2 hα) }, rfl⟩ + +/-! ### The derivative -/ + +/-- The smooth approximations `z ↦ (|z|² + ε²)^{(α − 1)/2} z` of the radial stretch. -/ +private def rsReg (α ε : ℝ) (z : ℂ) : ℂ := ((‖z‖ ^ 2 + ε ^ 2) ^ ((α - 1) / 2) : ℝ) • z + +private theorem rs_sq_rpow (α : ℝ) (z : ℂ) : (‖z‖ ^ 2) ^ ((α - 1) / 2) = ‖z‖ ^ (α - 1) := by + rw [← Real.rpow_natCast, ← Real.rpow_mul (norm_nonneg z)] + congr 1 + push_cast + ring + +private theorem rsReg_zero (α : ℝ) : rsReg α 0 = radialStretch α := by + funext z + rw [rsReg, radialStretch, zero_pow two_ne_zero, add_zero, rs_sq_rpow] + +private theorem rs_hasFDerivAt_reg (α ε : ℝ) {z : ℂ} (hz : ‖z‖ ^ 2 + ε ^ 2 ≠ 0) : + ∃ L : ℂ →L[ℝ] ℂ, HasFDerivAt (rsReg α ε) L z ∧ ∀ v, L v = + ((‖z‖ ^ 2 + ε ^ 2) ^ ((α - 1) / 2) : ℝ) • + (v + ((α - 1) * (z.re * v.re + z.im * v.im) / (‖z‖ ^ 2 + ε ^ 2) : ℝ) • z) := by + have h1 := ((hasStrictFDerivAt_norm_sq z).hasFDerivAt.add_const (ε ^ 2)).rpow_const + (p := (α - 1) / 2) (Or.inl hz) + refine ⟨_, h1.smul (hasFDerivAt_id z), fun v => ?_⟩ + simp only [add_apply, smul_apply, ContinuousLinearMap.id_apply, + ContinuousLinearMap.smulRight_apply, innerSL_apply_apply, Complex.inner] + rw [Real.rpow_sub_one hz, smul_add, smul_smul] + congr 1 + congr 1 + simp only [smul_eq_mul, nsmul_eq_mul, Complex.mul_re, Complex.conj_re, Complex.conj_im] + push_cast + ring + +private theorem rs_fderiv_reg_apply (α ε : ℝ) {z : ℂ} (hz : ‖z‖ ^ 2 + ε ^ 2 ≠ 0) (v : ℂ) : + fderiv ℝ (rsReg α ε) z v = ((‖z‖ ^ 2 + ε ^ 2) ^ ((α - 1) / 2) : ℝ) • + (v + ((α - 1) * (z.re * v.re + z.im * v.im) / (‖z‖ ^ 2 + ε ^ 2) : ℝ) • z) := by + obtain ⟨L, hL, hLv⟩ := rs_hasFDerivAt_reg α ε hz + rw [hL.fderiv, hLv] + +/-- The derivative of the radial stretch off `0`: +`Df (z) v = |z|^{α − 1} (v + (α − 1) ⟨z, v⟩ / |z|² z)`. -/ +theorem fderiv_radialStretch_apply (α : ℝ) {z : ℂ} (hz : z ≠ 0) (v : ℂ) : + fderiv ℝ (radialStretch α) z v = + (‖z‖ ^ (α - 1) : ℝ) • (v + ((α - 1) * (z.re * v.re + z.im * v.im) / ‖z‖ ^ 2 : ℝ) • z) := by + have h : ‖z‖ ^ 2 + 0 ^ 2 ≠ 0 := by + rw [zero_pow two_ne_zero, add_zero] + exact pow_ne_zero 2 (norm_ne_zero_iff.2 hz) + rw [← rsReg_zero, rs_fderiv_reg_apply α 0 h, zero_pow two_ne_zero, add_zero, rs_sq_rpow] + +private theorem rs_norm_sq (z : ℂ) : ‖z‖ ^ 2 = z.re ^ 2 + z.im ^ 2 := by + rw [Complex.sq_norm, Complex.normSq_apply] + ring + +/-- `∂f = ((1 + α)/2) |z|^{α − 1}` off `0`. -/ +theorem dzPart_fderiv_radialStretch (α : ℝ) {z : ℂ} (hz : z ≠ 0) : + dzPart (fderiv ℝ (radialStretch α) z) = ((1 + α) / 2 * ‖z‖ ^ (α - 1) : ℝ) := by + have hN : z.re ^ 2 + z.im ^ 2 ≠ 0 := by + rw [← rs_norm_sq] + exact pow_ne_zero 2 (norm_ne_zero_iff.2 hz) + simp only [dzPart, fderiv_radialStretch_apply α hz, rs_norm_sq] + apply Complex.ext <;> + · simp only [Complex.real_smul, Complex.mul_re, Complex.mul_im, Complex.sub_re, + Complex.sub_im, Complex.add_re, Complex.add_im, Complex.ofReal_re, Complex.ofReal_im, + Complex.one_re, Complex.one_im, Complex.I_re, Complex.I_im, Complex.inv_re, + Complex.inv_im, Complex.normSq_ofNat, Complex.re_ofNat, Complex.im_ofNat] + field_simp + ring + +/-- `∂_zbar f = ((α − 1)/2) |z|^{α − 1} z / (conj z)` off `0`. -/ +theorem dzbarPart_fderiv_radialStretch (α : ℝ) {z : ℂ} (hz : z ≠ 0) : + dzbarPart (fderiv ℝ (radialStretch α) z) = + ((α - 1) / 2 * ‖z‖ ^ (α - 1) : ℝ) * (z / conj z) := by + have hN : z.re ^ 2 + z.im ^ 2 ≠ 0 := by + rw [← rs_norm_sq] + exact pow_ne_zero 2 (norm_ne_zero_iff.2 hz) + have hzz : z / conj z = z ^ 2 / ((z.re ^ 2 + z.im ^ 2 : ℝ) : ℂ) := by + rw [← rs_norm_sq, Complex.ofReal_pow, ← Complex.mul_conj'] + have hc : conj z ≠ 0 := (map_ne_zero _).2 hz + field_simp + simp only [dzbarPart, fderiv_radialStretch_apply α hz, rs_norm_sq, hzz] + apply Complex.ext <;> + · simp only [Complex.real_smul, Complex.mul_re, Complex.mul_im, Complex.add_re, + Complex.add_im, Complex.ofReal_re, Complex.ofReal_im, Complex.one_re, Complex.one_im, + Complex.I_re, Complex.I_im, Complex.inv_re, Complex.inv_im, Complex.normSq_ofNat, + Complex.re_ofNat, Complex.im_ofNat, Complex.div_ofReal_re, Complex.div_ofReal_im, pow_two] + field_simp + ring + +/-- `|∂f| = ((1 + α)/2) |z|^{α − 1}` off `0`, for `−1 ≤ α`. -/ +private theorem rs_norm_dzPart {α : ℝ} (hα : -1 ≤ α) {z : ℂ} (hz : z ≠ 0) : + ‖dzPart (fderiv ℝ (radialStretch α) z)‖ = (1 + α) / 2 * ‖z‖ ^ (α - 1) := by + rw [dzPart_fderiv_radialStretch α hz, Complex.norm_real, Real.norm_of_nonneg] + have := Real.rpow_nonneg (norm_nonneg z) (α - 1) + have : 0 ≤ (1 + α) / 2 := by linarith + positivity + +/-- `|∂_zbar f| = ((1 − α)/2) |z|^{α − 1}` off `0`, for `α ≤ 1`. -/ +private theorem rs_norm_dzbarPart {α : ℝ} (hα1 : α ≤ 1) {z : ℂ} (hz : z ≠ 0) : + ‖dzbarPart (fderiv ℝ (radialStretch α) z)‖ = (1 - α) / 2 * ‖z‖ ^ (α - 1) := by + rw [dzbarPart_fderiv_radialStretch α hz, norm_mul, norm_div, Complex.norm_conj, + div_self (norm_ne_zero_iff.2 hz), mul_one, Complex.norm_real, Real.norm_eq_abs, abs_mul, + abs_of_nonneg (Real.rpow_nonneg (norm_nonneg z) _), abs_div, abs_two, + abs_of_nonpos (by linarith : α - 1 ≤ 0)] + ring + +/-- `|∂_zbar f| = ((1 − α)/(1 + α)) |∂f|` off `0`, for `α ≤ 1`. -/ +theorem norm_dzbarPart_fderiv_radialStretch {α : ℝ} (hα : 0 < α) (hα1 : α ≤ 1) {z : ℂ} + (hz : z ≠ 0) : + ‖dzbarPart (fderiv ℝ (radialStretch α) z)‖ = + (1 - α) / (1 + α) * ‖dzPart (fderiv ℝ (radialStretch α) z)‖ := by + rw [rs_norm_dzbarPart hα1 hz, rs_norm_dzPart (by linarith) hz] + field_simp + +/-- `‖Df (z)‖ ≤ |z|^{α − 1}` off `0`, for `0 < α ≤ 1`. -/ +private theorem rs_norm_fderiv_le {α : ℝ} (hα : 0 < α) (hα1 : α ≤ 1) {z : ℂ} (hz : z ≠ 0) : + ‖fderiv ℝ (radialStretch α) z‖ ≤ ‖z‖ ^ (α - 1) := by + refine (norm_le_dzPart_add_dzbarPart _).trans (le_of_eq ?_) + rw [rs_norm_dzbarPart hα1 hz, rs_norm_dzPart (by linarith) hz] + ring + +/-- `|∂_x f (z)| ≥ α |z|^{α − 1}` off `0`, for `0 < α ≤ 1`. -/ +private theorem rs_le_norm_fderiv_apply_one {α : ℝ} (hα : 0 < α) (hα1 : α ≤ 1) {z : ℂ} + (hz : z ≠ 0) : α * ‖z‖ ^ (α - 1) ≤ ‖fderiv ℝ (radialStretch α) z 1‖ := by + have h := apply_eq_dzPart_add_dzbarPart (fderiv ℝ (radialStretch α) z) 1 + rw [mul_one, (starRingEnd ℂ).map_one, mul_one] at h + have h' := norm_sub_le (fderiv ℝ (radialStretch α) z 1) + (dzbarPart (fderiv ℝ (radialStretch α) z)) + rw [h, add_sub_cancel_right, rs_norm_dzbarPart hα1 hz, rs_norm_dzPart (by linarith) hz] at h' + rw [h] + linarith + +/-! ### Integrability of `|z|^t` near `0` -/ + +private theorem rs_ae_ne_zero : ∀ᵐ z : ℂ, z ≠ 0 := by + simp [ae_iff, measure_singleton] + +/-- `|z|^t` is integrable on compact sets, for `−2 < t ≤ 0`. -/ +private theorem rs_integrableOn_norm_rpow {t : ℝ} (ht : -2 < t) (ht0 : t ≤ 0) {K : Set ℂ} + (hK : IsCompact K) : IntegrableOn (fun z : ℂ => ‖z‖ ^ t) K := by + have hmeas : Measurable fun z : ℂ => ‖z‖ ^ t := by fun_prop + have hball : IntegrableOn (fun z : ℂ => ‖z‖ ^ t) (Metric.ball 0 1) := by + refine ⟨hmeas.aestronglyMeasurable, ?_⟩ + rw [hasFiniteIntegral_iff_ofReal (ae_of_all _ fun z => Real.rpow_nonneg (norm_nonneg z) t)] + have h := lintegral_ball_norm_rpow (s := -t) (by linarith) + rw [neg_neg] at h + rw [h] + exact ENNReal.ofReal_lt_top + have hsum : IntegrableOn + (fun z : ℂ => (Metric.ball (0 : ℂ) 1).indicator (fun z => ‖z‖ ^ t) z + 1) K := + ((integrable_indicator_iff Metric.isOpen_ball.measurableSet).2 hball).integrableOn.add + (integrableOn_const hK.measure_lt_top.ne) + refine hsum.mono' hmeas.aestronglyMeasurable (ae_of_all _ fun z => ?_) + rw [Real.norm_of_nonneg (Real.rpow_nonneg (norm_nonneg z) t)] + by_cases hz : ‖z‖ < 1 + · rw [Set.indicator_of_mem (mem_ball_zero_iff.2 hz)] + linarith + · rw [Set.indicator_of_notMem (mt mem_ball_zero_iff.1 hz), zero_add] + exact Real.rpow_le_one_of_one_le_of_nonpos (not_lt.1 hz) ht0 + +/-- `|z|^t` is locally integrable, for `−2 < t ≤ 0`. -/ +private theorem rs_locallyIntegrable_norm_rpow {t : ℝ} (ht : -2 < t) (ht0 : t ≤ 0) : + LocallyIntegrable (fun z : ℂ => ‖z‖ ^ t) := + locallyIntegrable_iff.2 fun _ hK => rs_integrableOn_norm_rpow ht ht0 hK + +/-- `|z|^{−2}` is not integrable on any disc around `0`. -/ +private theorem rs_not_integrableOn_ball {r : ℝ} (hr : 0 < r) : + ¬ IntegrableOn (fun z : ℂ => ‖z‖ ^ (-2 : ℝ)) (Metric.ball 0 r) := by + intro h + have hfin : ∫⁻ z in Metric.ball (0 : ℂ) r, ENNReal.ofReal (‖z‖ ^ (-2 : ℝ)) < (∞ : ℝ≥0∞) := + (hasFiniteIntegral_iff_ofReal + (ae_of_all _ fun z => Real.rpow_nonneg (norm_nonneg z) _)).1 h.2 + set g : ℝ → ℝ≥0∞ := (Set.Iio r).indicator fun t => ENNReal.ofReal (t ^ (-2 : ℝ)) with g_def + have hg : Measurable g := + (by fun_prop : Measurable fun t : ℝ => ENNReal.ofReal (t ^ (-2 : ℝ))).indicator + measurableSet_Iio + have hball : (Metric.ball (0 : ℂ) r).indicator (fun z => ENNReal.ofReal (‖z‖ ^ (-2 : ℝ))) = + fun z => g ‖z‖ := by + funext z + by_cases hz : ‖z‖ < r + · rw [g_def, Set.indicator_of_mem (mem_ball_zero_iff.2 hz), + Set.indicator_of_mem (Set.mem_Iio.2 hz)] + · rw [g_def, Set.indicator_of_notMem (mt mem_ball_zero_iff.1 hz), + Set.indicator_of_notMem (mt Set.mem_Iio.1 hz)] + have hmul : (fun t => ENNReal.ofReal t * g t) = + (Set.Iio r).indicator fun t => ENNReal.ofReal t * ENNReal.ofReal (t ^ (-2 : ℝ)) := by + funext t + simp only [g_def, Set.indicator_apply] + split_ifs <;> simp + rw [← lintegral_indicator Metric.isOpen_ball.measurableSet, hball, lintegral_comp_norm hg, + hmul, lintegral_indicator measurableSet_Iio, Measure.restrict_restrict measurableSet_Iio, + Set.inter_comm, Set.Ioi_inter_Iio, + setLIntegral_congr_fun measurableSet_Ioo (g := fun t => ENNReal.ofReal (t ^ (-1 : ℝ))) + (fun t ht => by + dsimp only + rw [← ENNReal.ofReal_mul ht.1.le, show (-1 : ℝ) = 1 + -2 by norm_num, + Real.rpow_add ht.1, Real.rpow_one])] at hfin + have hfin' := ENNReal.lt_top_of_mul_ne_top_right hfin.ne + (ENNReal.ofReal_pos.2 (by positivity)).ne' + refine (intervalIntegral.integrableOn_Ioo_rpow_iff hr).not.2 (lt_irrefl _) ⟨by fun_prop, ?_⟩ + exact (hasFiniteIntegral_iff_ofReal (ae_restrict_of_forall_mem measurableSet_Ioo + fun t ht => Real.rpow_nonneg ht.1.le _)).2 hfin' + +/-! ### The weak derivative -/ + +private theorem rs_contDiff_reg (α : ℝ) {ε : ℝ} (hε : 0 < ε) : ContDiff ℝ 1 (rsReg α ε) := by + have h : ContDiff ℝ 1 fun z : ℂ => ‖z‖ ^ 2 + ε ^ 2 := (contDiff_norm_sq ℝ).add contDiff_const + exact (h.rpow_const_of_ne fun z => by positivity).smul contDiff_id + +/-- `|f_ε (z)| ≤ |z|^α` off `0`, for `α ≤ 1`. -/ +private theorem rs_norm_reg_le {α : ℝ} (hα1 : α ≤ 1) (ε : ℝ) {z : ℂ} (hz : z ≠ 0) : + ‖rsReg α ε z‖ ≤ ‖z‖ ^ α := by + have hz2 : 0 < ‖z‖ ^ 2 := pow_pos (norm_pos_iff.2 hz) 2 + have hM : ‖z‖ ^ 2 ≤ ‖z‖ ^ 2 + ε ^ 2 := le_add_of_nonneg_right (sq_nonneg ε) + rw [rsReg, norm_smul, Real.norm_of_nonneg (Real.rpow_nonneg (hz2.le.trans hM) _)] + calc _ ≤ ‖z‖ ^ (α - 1) * ‖z‖ := by + gcongr + rw [← rs_sq_rpow] + exact Real.rpow_le_rpow_of_nonpos hz2 hM (by linarith) + _ = ‖z‖ ^ α := by rw [← Real.rpow_add_one (norm_ne_zero_iff.2 hz), sub_add_cancel] + +/-- `|Df_ε (z) v| ≤ 2 |z|^{α − 1} |v|` off `0`, for `0 ≤ α ≤ 1`. -/ +private theorem rs_norm_fderiv_reg_le {α : ℝ} (hα : 0 ≤ α) (hα1 : α ≤ 1) (ε : ℝ) {z : ℂ} + (hz : z ≠ 0) (v : ℂ) : ‖fderiv ℝ (rsReg α ε) z v‖ ≤ 2 * ‖v‖ * ‖z‖ ^ (α - 1) := by + have hz2 : 0 < ‖z‖ ^ 2 := pow_pos (norm_pos_iff.2 hz) 2 + have hM : ‖z‖ ^ 2 ≤ ‖z‖ ^ 2 + ε ^ 2 := le_add_of_nonneg_right (sq_nonneg ε) + have hMpos : 0 < ‖z‖ ^ 2 + ε ^ 2 := hz2.trans_le hM + have hip : |z.re * v.re + z.im * v.im| ≤ ‖z‖ * ‖v‖ := by + have h := Complex.abs_re_le_norm (conj z * v) + rwa [norm_mul, Complex.norm_conj, Complex.mul_re, Complex.conj_re, Complex.conj_im, neg_mul, + sub_neg_eq_add] at h + have hα' : |α - 1| ≤ 1 := abs_le.2 ⟨by linarith, by linarith⟩ + have h1 : ‖v + ((α - 1) * (z.re * v.re + z.im * v.im) / (‖z‖ ^ 2 + ε ^ 2) : ℝ) • z‖ ≤ + 2 * ‖v‖ := by + refine (norm_add_le _ _).trans ?_ + rw [norm_smul, Real.norm_eq_abs, abs_div, abs_mul, abs_of_pos hMpos] + have h2 : |α - 1| * |z.re * v.re + z.im * v.im| / (‖z‖ ^ 2 + ε ^ 2) * ‖z‖ ≤ ‖v‖ := by + rw [div_mul_eq_mul_div, div_le_iff₀ hMpos] + calc |α - 1| * |z.re * v.re + z.im * v.im| * ‖z‖ ≤ 1 * (‖z‖ * ‖v‖) * ‖z‖ := by gcongr + _ = ‖v‖ * ‖z‖ ^ 2 := by ring + _ ≤ ‖v‖ * (‖z‖ ^ 2 + ε ^ 2) := by gcongr + linarith + have h3 : (‖z‖ ^ 2 + ε ^ 2) ^ ((α - 1) / 2) ≤ ‖z‖ ^ (α - 1) := by + rw [← rs_sq_rpow] + exact Real.rpow_le_rpow_of_nonpos hz2 hM (by linarith) + rw [rs_fderiv_reg_apply α ε hMpos.ne' v, norm_smul, + Real.norm_of_nonneg (Real.rpow_nonneg hMpos.le _)] + calc _ ≤ ‖z‖ ^ (α - 1) * (2 * ‖v‖) := + mul_le_mul h3 h1 (norm_nonneg _) (Real.rpow_nonneg (norm_nonneg _) _) + _ = 2 * ‖v‖ * ‖z‖ ^ (α - 1) := by ring + +/-- `f_ε (z) → f (z)` as `ε → 0`, for `z ≠ 0`. -/ +private theorem rs_tendsto_reg (α : ℝ) {ε : ℕ → ℝ} (hε : Tendsto ε atTop (𝓝 0)) {z : ℂ} + (hz : z ≠ 0) : Tendsto (fun n => rsReg α (ε n) z) atTop (𝓝 (radialStretch α z)) := by + have hN : ‖z‖ ^ 2 + (0 : ℝ) ^ 2 ≠ 0 := + (add_pos_of_pos_of_nonneg (pow_pos (norm_pos_iff.2 hz) 2) (sq_nonneg 0)).ne' + have hc : ContinuousAt (fun e : ℝ => ((‖z‖ ^ 2 + e ^ 2) ^ ((α - 1) / 2) : ℝ) • z) 0 := + ((continuousAt_const.add (continuousAt_id.pow 2)).rpow_const (Or.inl hN)).smul + continuousAt_const + rw [← rsReg_zero] + exact hc.tendsto.comp hε + +/-- `Df_ε (z) v → Df (z) v` as `ε → 0`, for `z ≠ 0`. -/ +private theorem rs_tendsto_fderiv_reg (α : ℝ) {ε : ℕ → ℝ} (hε : Tendsto ε atTop (𝓝 0)) + {z : ℂ} (hz : z ≠ 0) (v : ℂ) : + Tendsto (fun n => fderiv ℝ (rsReg α (ε n)) z v) atTop + (𝓝 (fderiv ℝ (radialStretch α) z v)) := by + have hpos : ∀ e : ℝ, ‖z‖ ^ 2 + e ^ 2 ≠ 0 := fun e => + (add_pos_of_pos_of_nonneg (pow_pos (norm_pos_iff.2 hz) 2) (sq_nonneg e)).ne' + have hc : ContinuousAt (fun e : ℝ => ((‖z‖ ^ 2 + e ^ 2) ^ ((α - 1) / 2) : ℝ) • + (v + ((α - 1) * (z.re * v.re + z.im * v.im) / (‖z‖ ^ 2 + e ^ 2) : ℝ) • z)) 0 := + ((continuousAt_const.add (continuousAt_id.pow 2)).rpow_const (Or.inl (hpos 0))).smul + (continuousAt_const.add ((continuousAt_const.div + (continuousAt_const.add (continuousAt_id.pow 2)) (hpos 0)).smul continuousAt_const)) + have h1 : (fun n => fderiv ℝ (rsReg α (ε n)) z v) = fun n => + ((‖z‖ ^ 2 + ε n ^ 2) ^ ((α - 1) / 2) : ℝ) • + (v + ((α - 1) * (z.re * v.re + z.im * v.im) / (‖z‖ ^ 2 + ε n ^ 2) : ℝ) • z) := + funext fun n => rs_fderiv_reg_apply α _ (hpos _) v + rw [h1, ← rsReg_zero, rs_fderiv_reg_apply α 0 (hpos 0) v] + exact hc.tendsto.comp hε + +/-- The integration by parts for the smooth approximations `f_ε`, `ε > 0`. -/ +private theorem rs_integral_reg (α : ℝ) {ε : ℝ} (hε : 0 < ε) (v : ℂ) {φ : ℂ → ℝ} + (hφ : ContDiff ℝ ∞ φ) (hφc : HasCompactSupport φ) : + ∫ x, fderiv ℝ φ x v • rsReg α ε x = -∫ x, φ x • fderiv ℝ (rsReg α ε) x v := by + have hg := rs_contDiff_reg α hε + have hgd : Differentiable ℝ (rsReg α ε) := hg.differentiable (by simp) + have hφd : Differentiable ℝ φ := hφ.differentiable (by simp) + have hDφ : Continuous fun x => fderiv ℝ φ x v := + (hφ.continuous_fderiv (by simp)).clm_apply continuous_const + have hDg : Continuous fun x => fderiv ℝ (rsReg α ε) x v := + (hg.continuous_fderiv (by simp)).clm_apply continuous_const + rw [integral_smul_fderiv_eq_neg_fderiv_smul_of_integrable + ((hDφ.smul hg.continuous).integrable_of_hasCompactSupport + (hφc.fderiv_apply (𝕜 := ℝ) v).smul_right) + ((hφ.continuous.smul hDg).integrable_of_hasCompactSupport hφc.smul_right) + ((hφ.continuous.smul hg.continuous).integrable_of_hasCompactSupport hφc.smul_right) + (fun x _ => hφd x) (fun x _ => hgd x), neg_neg] + +/-- The pointwise derivative of the radial stretch (`0` at `z = 0`) is its weak derivative on the +whole plane, for `0 < α ≤ 1`. -/ +theorem hasWeakFDerivOn_radialStretch {α : ℝ} (hα : 0 < α) (hα1 : α ≤ 1) : + HasWeakFDerivOn Set.univ (radialStretch α) (fderiv ℝ (radialStretch α)) := by + intro v φ hφ hφc _ + set ε : ℕ → ℝ := fun n => 1 / ((n : ℝ) + 1) + have hε : ∀ n, 0 < ε n := fun n => by positivity + have hε0 : Tendsto ε atTop (𝓝 0) := tendsto_one_div_add_atTop_nhds_zero_nat + have hDφ : Continuous fun x => fderiv ℝ φ x v := + (hφ.continuous_fderiv (by simp)).clm_apply continuous_const + -- the left-hand sides converge, dominated by `|∂_v φ (x)| |x|^α` + have hL : Tendsto (fun n => ∫ x, fderiv ℝ φ x v • rsReg α (ε n) x) atTop + (𝓝 (∫ x, fderiv ℝ φ x v • radialStretch α x)) := by + have hb : Continuous fun x : ℂ => ‖fderiv ℝ φ x v‖ * ‖x‖ ^ α := + hDφ.norm.mul (continuous_norm.rpow_const fun _ => Or.inr hα.le) + have hint : Integrable fun x : ℂ => ‖fderiv ℝ φ x v‖ * ‖x‖ ^ α := + hb.integrable_of_hasCompactSupport (hφc.fderiv_apply (𝕜 := ℝ) v).norm.mul_right + refine tendsto_integral_of_dominated_convergence _ + (fun n => (hDφ.smul (rs_contDiff_reg α (hε n)).continuous).aestronglyMeasurable) hint + (fun n => ?_) ?_ + · filter_upwards [rs_ae_ne_zero] with x hx + rw [norm_smul] + exact mul_le_mul_of_nonneg_left (rs_norm_reg_le hα1 _ hx) (norm_nonneg _) + · filter_upwards [rs_ae_ne_zero] with x hx + exact tendsto_const_nhds.smul (rs_tendsto_reg α hε0 hx) + -- the right-hand sides converge, dominated by `2 |v| |φ (x)| |x|^{α − 1}` + have hR : Tendsto (fun n => ∫ x, φ x • fderiv ℝ (rsReg α (ε n)) x v) atTop + (𝓝 (∫ x, φ x • fderiv ℝ (radialStretch α) x v)) := by + have hint : Integrable fun x : ℂ => φ x • ‖x‖ ^ (α - 1) := + sob_integrable_smul_of_tsupport_subset + ((rs_locallyIntegrable_norm_rpow (t := α - 1) (by linarith) + (by linarith)).locallyIntegrableOn Set.univ) + hφ.continuous hφc (Set.subset_univ _) + refine tendsto_integral_of_dominated_convergence + (fun x => 2 * ‖v‖ * ‖φ x • ‖x‖ ^ (α - 1)‖) + (fun n => hφ.continuous.aestronglyMeasurable.smul + (measurable_fderiv_apply_const ℝ _ v).aestronglyMeasurable) + (hint.norm.const_mul _) (fun n => ?_) ?_ + · filter_upwards [rs_ae_ne_zero] with x hx + rw [norm_smul, norm_smul, Real.norm_of_nonneg (Real.rpow_nonneg (norm_nonneg x) _)] + calc ‖φ x‖ * ‖fderiv ℝ (rsReg α (ε n)) x v‖ ≤ ‖φ x‖ * (2 * ‖v‖ * ‖x‖ ^ (α - 1)) := + mul_le_mul_of_nonneg_left (rs_norm_fderiv_reg_le hα.le hα1 _ hx v) (norm_nonneg _) + _ = _ := by ring + · filter_upwards [rs_ae_ne_zero] with x hx + exact tendsto_const_nhds.smul (rs_tendsto_fderiv_reg α hε0 hx v) + have heq : (fun n => ∫ x, fderiv ℝ φ x v • rsReg α (ε n) x) = + fun n => -∫ x, φ x • fderiv ℝ (rsReg α (ε n)) x v := + funext fun n => rs_integral_reg α (hε n) v hφ hφc + rw [heq] at hL + exact tendsto_nhds_unique hL hR.neg + +/-- The derivative of the radial stretch is in `L²_loc (ℂ)`, for `0 < α ≤ 1`. -/ +theorem memLpLoc_fderiv_radialStretch {α : ℝ} (hα : 0 < α) (hα1 : α ≤ 1) : + MemLpLoc (fderiv ℝ (radialStretch α)) 2 Set.univ := by + intro K _ hK + have hg : MemLp (fun z : ℂ => ‖z‖ ^ (α - 1)) 2 (volume.restrict K) := by + rw [memLp_two_iff_integrable_sq + (by fun_prop : Measurable fun z : ℂ => ‖z‖ ^ (α - 1)).aestronglyMeasurable] + have h := rs_integrableOn_norm_rpow (t := 2 * (α - 1)) (by linarith) (by linarith) hK + refine h.congr_fun (fun z _ => ?_) hK.measurableSet + rw [← Real.rpow_natCast, ← Real.rpow_mul (norm_nonneg z), Nat.cast_ofNat, mul_comm] + refine hg.of_le (measurable_fderiv ℝ _).aestronglyMeasurable ?_ + filter_upwards [ae_restrict_of_ae rs_ae_ne_zero] with z hz + rw [Real.norm_of_nonneg (Real.rpow_nonneg (norm_nonneg z) _)] + exact rs_norm_fderiv_le hα hα1 hz + +/-- For `0 < α < 1`, `∂_x f` is not in `L^{2/(1 − α)}` of any disc around `0`. -/ +theorem not_memLp_fderiv_radialStretch_apply_one {α : ℝ} (hα : 0 < α) (hα1 : α < 1) {r : ℝ} + (hr : 0 < r) : + ¬ MemLp (fun z => fderiv ℝ (radialStretch α) z 1) (ENNReal.ofReal (2 / (1 - α))) + (volume.restrict (Metric.ball 0 r)) := by + intro h + set p : ℝ := 2 / (1 - α) with hp_def + have hp : 0 < p := div_pos two_pos (by linarith) + have hint := h.integrable_norm_rpow (by simp [hp]) ENNReal.ofReal_ne_top + rw [ENNReal.toReal_ofReal hp.le] at hint + apply rs_not_integrableOn_ball hr + refine (hint.const_mul (α ^ p)⁻¹).mono' + (by fun_prop : Measurable fun z : ℂ => ‖z‖ ^ (-2 : ℝ)).aestronglyMeasurable ?_ + filter_upwards [ae_restrict_of_ae rs_ae_ne_zero] with z hz + have hαp : 0 < α ^ p := Real.rpow_pos_of_pos hα p + have hz' : 0 < ‖z‖ := norm_pos_iff.2 hz + rw [Real.norm_of_nonneg (Real.rpow_nonneg hz'.le _), le_inv_mul_iff₀ hαp] + have h1 : α ^ p * ‖z‖ ^ (-2 : ℝ) = (α * ‖z‖ ^ (α - 1)) ^ p := by + rw [Real.mul_rpow hα.le (Real.rpow_nonneg hz'.le _), ← Real.rpow_mul hz'.le] + congr 2 + rw [hp_def] + field_simp + ring + rw [h1] + exact Real.rpow_le_rpow (by positivity) (rs_le_norm_fderiv_apply_one hα hα1.le hz) hp.le + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/Wirtinger.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/Wirtinger.lean new file mode 100644 index 0000000000..3959389a66 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/Wirtinger.lean @@ -0,0 +1,154 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs + +/-! +# The Wirtinger derivatives + +For a function `g : ℂ → F` into a complex normed space, with `ℂ ≅ ℝ²` by `x + iy ↦ (x, y)`, the +Wirtinger derivatives at `z` are +`∂g (z) = ½ (∂_x g (z) − i ∂_y g (z))` and `∂_zbar g (z) = ½ (∂_x g (z) + i ∂_y g (z))`, +where `∂_x g (z) = fderiv ℝ g z 1` and `∂_y g (z) = fderiv ℝ g z I` +(`HarmonicAnalysis.dz`, `HarmonicAnalysis.dzbar`). On the Schwartz space `𝓢(ℂ, F)` they are +continuous linear maps (`HarmonicAnalysis.dzCLM`, `HarmonicAnalysis.dzbarCLM`), built from the +line derivatives of Mathlib. + +## Main results + +* `HarmonicAnalysis.fourier_dzbarCLM`, `HarmonicAnalysis.fourier_dzCLM`: the Fourier symbols. + With `𝓕 f (ξ) = ∫ e^{−2πi ⟨v, ξ⟩} f (v) dv` (Mathlib's convention, `⟨v, ξ⟩ = Re ((conj v) ξ)`), + `𝓕 (∂_zbar f) (ξ) = π i ξ 𝓕 f (ξ)` and `𝓕 (∂f) (ξ) = π i (conj ξ) 𝓕 f (ξ)`. +* `HarmonicAnalysis.dzbar_conj`, `HarmonicAnalysis.dz_conj`: the conjugation rules + `∂_zbar (conj ∘ g) = conj ∘ ∂g` and `∂ (conj ∘ g) = conj ∘ ∂_zbar g`. +* `HarmonicAnalysis.measurable_dz`, `HarmonicAnalysis.measurable_dzbar`: `∂g` and `∂_zbar g` are + measurable for every `g : ℂ → ℂ`. + +## References + +* O. Dragičević, *Analysis of the Ahlfors–Beurling transform*, lecture notes, + [arXiv:2109.04555](https://arxiv.org/abs/2109.04555), §1. +-/ + +@[expose] public section + +noncomputable section + +open scoped SchwartzMap FourierTransform Real ComplexConjugate + +namespace HarmonicAnalysis + +variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] + +/-- `∂ = ½ (∂_x − i ∂_y)` as a continuous linear map of the Schwartz space `𝓢(ℂ, F)`. -/ +def dzCLM : 𝓢(ℂ, F) →L[ℂ] 𝓢(ℂ, F) := + (2⁻¹ : ℂ) • (LineDeriv.lineDerivOpCLM ℂ 𝓢(ℂ, F) (1 : ℂ) - + Complex.I • LineDeriv.lineDerivOpCLM ℂ 𝓢(ℂ, F) Complex.I) + +/-- `∂_zbar = ½ (∂_x + i ∂_y)` as a continuous linear map of the Schwartz space `𝓢(ℂ, F)`. -/ +def dzbarCLM : 𝓢(ℂ, F) →L[ℂ] 𝓢(ℂ, F) := + (2⁻¹ : ℂ) • (LineDeriv.lineDerivOpCLM ℂ 𝓢(ℂ, F) (1 : ℂ) + + Complex.I • LineDeriv.lineDerivOpCLM ℂ 𝓢(ℂ, F) Complex.I) + +theorem dzCLM_apply (f : 𝓢(ℂ, F)) (z : ℂ) : dzCLM f z = dz f z := by + simp [dzCLM, dz, SchwartzMap.lineDerivOp_apply_eq_fderiv] + +theorem dzbarCLM_apply (f : 𝓢(ℂ, F)) (z : ℂ) : dzbarCLM f z = dzbar f z := by + simp [dzbarCLM, dzbar, SchwartzMap.lineDerivOp_apply_eq_fderiv] + +/-- `∂^k` on the Schwartz space is the `k`-fold pointwise derivative. -/ +theorem coe_dzCLM_pow (k : ℕ) (f : 𝓢(ℂ, F)) : ⇑((dzCLM ^ k) f) = dz^[k] f := by + induction k with + | zero => rfl + | succ k ih => + rw [pow_succ', mul_apply_eq_comp, Function.iterate_succ_apply', ← ih] + exact funext (dzCLM_apply _) + +/-- `∂_zbar^k` on the Schwartz space is the `k`-fold pointwise derivative. -/ +theorem coe_dzbarCLM_pow (k : ℕ) (f : 𝓢(ℂ, F)) : ⇑((dzbarCLM ^ k) f) = dzbar^[k] f := by + induction k with + | zero => rfl + | succ k ih => + rw [pow_succ', mul_apply_eq_comp, Function.iterate_succ_apply', ← ih] + exact funext (dzbarCLM_apply _) + +/-- The Fourier transform of a line derivative, pointwise: +`𝓕 (∂_m f) (ξ) = 2πi ⟨ξ, m⟩ 𝓕 f (ξ)`. -/ +private lemma fourier_lineDerivOp_apply (f : 𝓢(ℂ, F)) (m ξ : ℂ) : + 𝓕 (LineDeriv.lineDerivOp m f : ℂ → F) ξ = + ((2 * π * Complex.I : ℂ) * (inner ℝ ξ m : ℝ)) • 𝓕 (f : ℂ → F) ξ := by + have : (inner ℝ · m : ℂ → ℝ).HasTemperateGrowth := ((innerSL ℝ).flip m).hasTemperateGrowth + rw [← SchwartzMap.fourier_coe, SchwartzMap.fourier_lineDerivOp_eq, smul_apply, + SchwartzMap.smulLeftCLM_apply_apply this, SchwartzMap.fourier_coe, + mul_smul _ ((inner ℝ ξ m : ℝ) : ℂ), Complex.coe_smul] + +/-- The Fourier symbol of `∂_zbar`: `𝓕 (∂_zbar f) (ξ) = π i ξ 𝓕 f (ξ)`. -/ +theorem fourier_dzbarCLM (f : 𝓢(ℂ, F)) (ξ : ℂ) : + 𝓕 (dzbarCLM f : ℂ → F) ξ = ((π : ℂ) * Complex.I * ξ) • 𝓕 (f : ℂ → F) ξ := by + have h : dzbarCLM f = (2⁻¹ : ℂ) • (LineDeriv.lineDerivOp (1 : ℂ) f + + Complex.I • LineDeriv.lineDerivOp Complex.I f) := rfl + rw [← SchwartzMap.fourier_coe, h] + simp only [FourierTransform.fourier_smul, FourierTransform.fourier_add, smul_apply, add_apply, + SchwartzMap.fourier_coe, fourier_lineDerivOp_apply, smul_smul, ← add_smul] + congr 1 + simp only [Complex.inner, one_mul, Complex.mul_re, Complex.I_re, Complex.I_im, Complex.conj_re, + Complex.conj_im] + apply Complex.ext <;> simp <;> ring + +/-- The Fourier symbol of `∂`: `𝓕 (∂f) (ξ) = π i (conj ξ) 𝓕 f (ξ)`. -/ +theorem fourier_dzCLM (f : 𝓢(ℂ, F)) (ξ : ℂ) : + 𝓕 (dzCLM f : ℂ → F) ξ = ((π : ℂ) * Complex.I * conj ξ) • 𝓕 (f : ℂ → F) ξ := by + have h : dzCLM f = (2⁻¹ : ℂ) • (LineDeriv.lineDerivOp (1 : ℂ) f - + Complex.I • LineDeriv.lineDerivOp Complex.I f) := rfl + rw [← SchwartzMap.fourier_coe, h, sub_eq_add_neg] + simp only [FourierTransform.fourier_smul, FourierTransform.fourier_add, smul_apply, add_apply, + SchwartzMap.fourier_coe, fourier_lineDerivOp_apply, smul_smul, ← neg_smul, ← add_smul] + congr 1 + simp only [Complex.inner, one_mul, Complex.mul_re, Complex.I_re, Complex.I_im, Complex.conj_re, + Complex.conj_im] + apply Complex.ext <;> simp <;> ring + +/-- `∂` and `∂_zbar` commute on the Schwartz space: their Fourier symbols do. -/ +theorem commute_dzCLM_dzbarCLM : Commute (dzCLM : 𝓢(ℂ, ℂ) →L[ℂ] 𝓢(ℂ, ℂ)) dzbarCLM := by + refine ContinuousLinearMap.ext fun f => ?_ + have h : 𝓕 (dzCLM (dzbarCLM f)) = 𝓕 (dzbarCLM (dzCLM f)) := by + ext ξ + rw [SchwartzMap.fourier_coe, SchwartzMap.fourier_coe, fourier_dzCLM, fourier_dzbarCLM, + fourier_dzbarCLM, fourier_dzCLM, smul_smul, smul_smul, mul_comm] + have hinv : ∀ g : 𝓢(ℂ, ℂ), 𝓕⁻ (𝓕 g) = g := FourierTransform.fourierInv_fourier_eq + rw [mul_apply_eq_comp, mul_apply_eq_comp, ← hinv (dzCLM (dzbarCLM f)), h, hinv] + +theorem measurable_dz (g : ℂ → ℂ) : Measurable (dz g) := by + unfold dz + fun_prop + +theorem measurable_dzbar (g : ℂ → ℂ) : Measurable (dzbar g) := by + unfold dzbar + fun_prop + +/-- `D (conj ∘ g) (z) v = conj (D g (z) v)` for every `g` (differentiable at `z` or not). -/ +private lemma fderiv_conj_apply (g : ℂ → ℂ) (z v : ℂ) : + fderiv ℝ (fun w => conj (g w)) z v = conj (fderiv ℝ g z v) := by + have : (fun w => conj (g w)) = Complex.conjCLE ∘ g := rfl + rw [this, ContinuousLinearEquiv.comp_fderiv] + rfl + +/-- The conjugation rule `∂_zbar (conj ∘ g) = conj ∘ ∂g`. -/ +theorem dzbar_conj (g : ℂ → ℂ) (z : ℂ) : dzbar (fun w => conj (g w)) z = conj (dz g z) := by + simp only [dzbar, dz, fderiv_conj_apply, smul_eq_mul, map_mul, map_sub, Complex.conj_I, + map_inv₀, map_ofNat] + ring + +/-- The conjugation rule `∂ (conj ∘ g) = conj ∘ ∂_zbar g`. -/ +theorem dz_conj (g : ℂ → ℂ) (z : ℂ) : dz (fun w => conj (g w)) z = conj (dzbar g z) := by + simp only [dzbar, dz, fderiv_conj_apply, smul_eq_mul, map_mul, map_add, Complex.conj_I, + map_inv₀, map_ofNat] + ring + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/WirtingerRadial.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/WirtingerRadial.lean new file mode 100644 index 0000000000..1b1f6e98dc --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Complex/WirtingerRadial.lean @@ -0,0 +1,246 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.Wirtinger +import Mathlib.Analysis.InnerProductSpace.Calculus + +/-! +# Wirtinger derivatives of `z^a (conj z)^b K (|z|²)` + +The Leibniz and chain rules for the Wirtinger derivatives of the functions +`w ↦ w^a (conj w)^b K (|w|²)`, with `a, b ∈ ℕ` and `K : ℝ → ℂ` differentiable at `|z|²`: + +* `HarmonicAnalysis.dzbar_monomial_mul_radial`: + `∂_zbar (z^a (conj z)^b K (|z|²)) = b z^a (conj z)^{b−1} K (|z|²) + z^{a+1} (conj z)^b K' (|z|²)`; +* `HarmonicAnalysis.dz_monomial_mul_radial`: + `∂ (z^a (conj z)^b K (|z|²)) = a z^{a−1} (conj z)^b K (|z|²) + z^a (conj z)^{b+1} K' (|z|²)`. + +(The terms with the factor `b`, resp. `a`, are absent when `b = 0`, resp. `a = 0`; in Lean the +exponent `b − 1` is truncated, and the factor `0` makes the term vanish.) The proof computes the +real Fréchet derivative by the product and chain rules, with `|w|² = ‖w‖²`, and evaluates it at +`1` and `I`. + +## Main results + +* `HarmonicAnalysis.differentiableAt_monomial_mul_radial`: `w ↦ w^a (conj w)^b K (|w|²)` is + real-differentiable at `z`. +* Linearity: `HarmonicAnalysis.dz_add`, `HarmonicAnalysis.dz_sub` (for real-differentiable + functions), `HarmonicAnalysis.dz_neg`, `HarmonicAnalysis.dz_const_smul`, + `HarmonicAnalysis.dz_const_mul`, and the same for `dzbar` (`HarmonicAnalysis.dzbar_add`, …). +* Locality: `Filter.EventuallyEq.dz_eq`, `Filter.EventuallyEq.dzbar_eq`. +* `HarmonicAnalysis.dz_sq_mul_radial`, `HarmonicAnalysis.dzbar_sq_mul_radial`: the case `a = 2`, + `b = 0`, `∂ (z² K (|z|²)) = 2 z K (|z|²) + z² (conj z) K' (|z|²)` and + `∂_zbar (z² K (|z|²)) = z³ K' (|z|²)`. +* `HarmonicAnalysis.dz_dz_sq_mul_radial`, `HarmonicAnalysis.dzbar_dzbar_sq_mul_radial`: with + `t = |z|²`, `K` differentiable near `t` and `K'` differentiable at `t`, + `∂² (z² K (|z|²)) = 2 K (t) + 4 t K' (t) + t² K'' (t)` and `∂_zbar² (z² K (|z|²)) = z⁴ K'' (t)`. +-/ + +@[expose] public section + +noncomputable section + +open scoped ComplexConjugate Topology + +namespace HarmonicAnalysis + +/-- The real Fréchet derivative of `w ↦ w^a (conj w)^b K (|w|²)` at `z`, by the product rule: +`h ↦ a z^{a−1} h (conj z)^b K + z^a b (conj z)^{b−1} (conj h) K + z^a (conj z)^b K' 2 ⟪z, h⟫`. -/ +private lemma hasFDerivAt_monomial_mul_radial (a b : ℕ) {K : ℝ → ℂ} {z : ℂ} + (hK : DifferentiableAt ℝ K (Complex.normSq z)) : + HasFDerivAt (fun w => w ^ a * conj w ^ b * K (Complex.normSq w)) + ((z ^ a * conj z ^ b) • ((ContinuousLinearMap.toSpanSingleton ℝ + (deriv K (Complex.normSq z))).comp (2 • innerSL ℝ z)) + + K (Complex.normSq z) • (z ^ a • ((b • conj z ^ (b - 1)) • + (Complex.conjCLE : ℂ →L[ℝ] ℂ)) + + conj z ^ b • ((a • z ^ (a - 1)) • ContinuousLinearMap.id ℝ ℂ))) z := by + have h1 := hasFDerivAt_pow (𝕜 := ℝ) a (x := z) + have h2 := (Complex.conjCLE.hasFDerivAt (x := z)).pow b + have h3 : HasFDerivAt (fun w => K (Complex.normSq w)) + ((ContinuousLinearMap.toSpanSingleton ℝ + (deriv K (Complex.normSq z))).comp (2 • innerSL ℝ z)) z := by + have hK' := hK.hasDerivAt.hasFDerivAt + rw [Complex.normSq_eq_norm_sq] at hK' + have := hK'.comp z (hasStrictFDerivAt_norm_sq z).hasFDerivAt + simp only [← Complex.normSq_eq_norm_sq] at this + exact this + exact (h1.mul h2).mul h3 + +/-- The real Fréchet derivative of `w ↦ w^a (conj w)^b K (|w|²)` at `z`, applied to `h`. -/ +private lemma fderiv_monomial_mul_radial_apply (a b : ℕ) {K : ℝ → ℂ} {z : ℂ} + (hK : DifferentiableAt ℝ K (Complex.normSq z)) (h : ℂ) : + fderiv ℝ (fun w => w ^ a * conj w ^ b * K (Complex.normSq w)) z h = + a * z ^ (a - 1) * h * conj z ^ b * K (Complex.normSq z) + + z ^ a * (b * conj z ^ (b - 1) * conj h) * K (Complex.normSq z) + + z ^ a * conj z ^ b * (2 * (z.re * h.re + z.im * h.im)) * deriv K (Complex.normSq z) := by + rw [(hasFDerivAt_monomial_mul_radial a b hK).fderiv] + simp only [ContinuousLinearMap.comp_smul, nsmul_eq_mul, Nat.cast_ofNat, smul_add, add_apply, + smul_apply, mul_apply_eq_comp, ContinuousLinearMap.comp_apply, coe_innerSL_apply, + Complex.inner, Complex.mul_re, Complex.conj_re, Complex.conj_im, mul_neg, sub_neg_eq_add, + ContinuousLinearMap.toSpanSingleton_apply, Complex.real_smul, Complex.ofReal_add, + Complex.ofReal_mul, ContinuousLinearMap.ofNat_apply, smul_eq_mul, + ContinuousLinearEquiv.coe_coe, ContinuousAlgEquiv.coeCLE_apply, Complex.conjCAE_apply, + ContinuousLinearMap.id_apply] + ring + +/-- `∂_zbar (z^a (conj z)^b K (|z|²)) = b z^a (conj z)^{b−1} K (|z|²) + z^{a+1} (conj z)^b K' +(|z|²)`. -/ +theorem dzbar_monomial_mul_radial (a b : ℕ) {K : ℝ → ℂ} {z : ℂ} + (hK : DifferentiableAt ℝ K (Complex.normSq z)) : + dzbar (fun w => w ^ a * conj w ^ b * K (Complex.normSq w)) z = + b * z ^ a * conj z ^ (b - 1) * K (Complex.normSq z) + + z ^ (a + 1) * conj z ^ b * deriv K (Complex.normSq z) := by + simp only [dzbar, smul_eq_mul, fderiv_monomial_mul_radial_apply a b hK, Complex.one_re, + Complex.one_im, Complex.I_re, Complex.I_im, map_one, Complex.conj_I, Complex.ofReal_one, + Complex.ofReal_zero] + linear_combination (2⁻¹ * a * z ^ (a - 1) * conj z ^ b * K (Complex.normSq z) - + 2⁻¹ * b * z ^ a * conj z ^ (b - 1) * K (Complex.normSq z)) * Complex.I_sq + + z ^ a * conj z ^ b * deriv K (Complex.normSq z) * Complex.re_add_im z + +/-- `∂ (z^a (conj z)^b K (|z|²)) = a z^{a−1} (conj z)^b K (|z|²) + z^a (conj z)^{b+1} K' (|z|²)`. -/ +theorem dz_monomial_mul_radial (a b : ℕ) {K : ℝ → ℂ} {z : ℂ} + (hK : DifferentiableAt ℝ K (Complex.normSq z)) : + dz (fun w => w ^ a * conj w ^ b * K (Complex.normSq w)) z = + a * z ^ (a - 1) * conj z ^ b * K (Complex.normSq z) + + z ^ a * conj z ^ (b + 1) * deriv K (Complex.normSq z) := by + have hc : conj z = z.re - z.im * Complex.I := by apply Complex.ext <;> simp + simp only [dz, smul_eq_mul, fderiv_monomial_mul_radial_apply a b hK, Complex.one_re, + Complex.one_im, Complex.I_re, Complex.I_im, map_one, Complex.conj_I, Complex.ofReal_one, + Complex.ofReal_zero] + linear_combination (-2⁻¹ * a * z ^ (a - 1) * conj z ^ b * K (Complex.normSq z) + + 2⁻¹ * b * z ^ a * conj z ^ (b - 1) * K (Complex.normSq z)) * Complex.I_sq - + z ^ a * conj z ^ b * deriv K (Complex.normSq z) * hc + +/-- `w ↦ w^a (conj w)^b K (|w|²)` is real-differentiable at `z` if `K` is differentiable at +`|z|²`. -/ +theorem differentiableAt_monomial_mul_radial (a b : ℕ) {K : ℝ → ℂ} {z : ℂ} + (hK : DifferentiableAt ℝ K (Complex.normSq z)) : + DifferentiableAt ℝ (fun w => w ^ a * conj w ^ b * K (Complex.normSq w)) z := + (hasFDerivAt_monomial_mul_radial a b hK).differentiableAt + +section Linear + +variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] {f g : ℂ → F} {z : ℂ} + +/-- `∂ (f + g) = ∂f + ∂g` at a point where `f` and `g` are real-differentiable. -/ +theorem dz_add (hf : DifferentiableAt ℝ f z) (hg : DifferentiableAt ℝ g z) : + dz (fun w => f w + g w) z = dz f z + dz g z := by + simp only [dz, fderiv_fun_add hf hg, add_apply] + module + +/-- `∂_zbar (f + g) = ∂_zbar f + ∂_zbar g` at a point where `f` and `g` are real-differentiable. -/ +theorem dzbar_add (hf : DifferentiableAt ℝ f z) (hg : DifferentiableAt ℝ g z) : + dzbar (fun w => f w + g w) z = dzbar f z + dzbar g z := by + simp only [dzbar, fderiv_fun_add hf hg, add_apply] + module + +/-- `∂ (f − g) = ∂f − ∂g` at a point where `f` and `g` are real-differentiable. -/ +theorem dz_sub (hf : DifferentiableAt ℝ f z) (hg : DifferentiableAt ℝ g z) : + dz (fun w => f w - g w) z = dz f z - dz g z := by + simp only [dz, fderiv_fun_sub hf hg, sub_apply] + module + +/-- `∂_zbar (f − g) = ∂_zbar f − ∂_zbar g` at a point where `f` and `g` are real-differentiable. -/ +theorem dzbar_sub (hf : DifferentiableAt ℝ f z) (hg : DifferentiableAt ℝ g z) : + dzbar (fun w => f w - g w) z = dzbar f z - dzbar g z := by + simp only [dzbar, fderiv_fun_sub hf hg, sub_apply] + module + +/-- `∂ (−f) = −∂f`. -/ +theorem dz_neg : dz (fun w => -f w) z = -dz f z := by + simp only [dz, fderiv_fun_neg, neg_apply] + module + +/-- `∂_zbar (−f) = −∂_zbar f`. -/ +theorem dzbar_neg : dzbar (fun w => -f w) z = -dzbar f z := by + simp only [dzbar, fderiv_fun_neg, neg_apply] + module + +/-- `∂ (c f) = c ∂f` for a complex constant `c`. -/ +theorem dz_const_smul (c : ℂ) : dz (fun w => c • f w) z = c • dz f z := by + simp only [dz, show (fun w => c • f w) = c • f from rfl, fderiv_const_smul_field, + Pi.smul_apply, smul_apply] + module + +/-- `∂_zbar (c f) = c ∂_zbar f` for a complex constant `c`. -/ +theorem dzbar_const_smul (c : ℂ) : dzbar (fun w => c • f w) z = c • dzbar f z := by + simp only [dzbar, show (fun w => c • f w) = c • f from rfl, fderiv_const_smul_field, + Pi.smul_apply, smul_apply] + module + +/-- Locality of `∂`: functions that agree near `z` have the same `∂` at `z`. -/ +theorem _root_.Filter.EventuallyEq.dz_eq (h : f =ᶠ[𝓝 z] g) : dz f z = dz g z := by + simp only [dz, h.fderiv_eq] + +/-- Locality of `∂_zbar`: functions that agree near `z` have the same `∂_zbar` at `z`. -/ +theorem _root_.Filter.EventuallyEq.dzbar_eq (h : f =ᶠ[𝓝 z] g) : dzbar f z = dzbar g z := by + simp only [dzbar, h.fderiv_eq] + +end Linear + +/-- `∂ (c f) = c ∂f` for a complex constant `c` and `f : ℂ → ℂ`. -/ +theorem dz_const_mul (c : ℂ) {f : ℂ → ℂ} {z : ℂ} : dz (fun w => c * f w) z = c * dz f z := + dz_const_smul c + +/-- `∂_zbar (c f) = c ∂_zbar f` for a complex constant `c` and `f : ℂ → ℂ`. -/ +theorem dzbar_const_mul (c : ℂ) {f : ℂ → ℂ} {z : ℂ} : + dzbar (fun w => c * f w) z = c * dzbar f z := + dzbar_const_smul c + +/-- `∂ (z² K (|z|²)) = 2 z K (|z|²) + z² (conj z) K' (|z|²)`. -/ +theorem dz_sq_mul_radial {K : ℝ → ℂ} {z : ℂ} (hK : DifferentiableAt ℝ K (Complex.normSq z)) : + dz (fun w => w ^ 2 * K (Complex.normSq w)) z = + 2 * z * K (Complex.normSq z) + z ^ 2 * conj z * deriv K (Complex.normSq z) := by + have := dz_monomial_mul_radial 2 0 hK + norm_num at this + exact this + +/-- `∂_zbar (z² K (|z|²)) = z³ K' (|z|²)`. -/ +theorem dzbar_sq_mul_radial {K : ℝ → ℂ} {z : ℂ} (hK : DifferentiableAt ℝ K (Complex.normSq z)) : + dzbar (fun w => w ^ 2 * K (Complex.normSq w)) z = z ^ 3 * deriv K (Complex.normSq z) := by + have := dzbar_monomial_mul_radial 2 0 hK + norm_num at this + exact this + +/-- `∂² (z² K (|z|²)) = 2 K (t) + 4 t K' (t) + t² K'' (t)`, `t = |z|²`, if `K` is differentiable +near `t` and `K'` at `t`. -/ +theorem dz_dz_sq_mul_radial {K : ℝ → ℂ} {z : ℂ} + (hK : ∀ᶠ t in 𝓝 (Complex.normSq z), DifferentiableAt ℝ K t) + (hK' : DifferentiableAt ℝ (deriv K) (Complex.normSq z)) : + dz (dz (fun w => w ^ 2 * K (Complex.normSq w))) z = + 2 * K (Complex.normSq z) + 4 * Complex.normSq z * deriv K (Complex.normSq z) + + Complex.normSq z ^ 2 * deriv (deriv K) (Complex.normSq z) := by + have hK0 := hK.self_of_nhds + have h1 : dz (fun w => w ^ 2 * K (Complex.normSq w)) =ᶠ[𝓝 z] fun w => + 2 * (w ^ 1 * conj w ^ 0 * K (Complex.normSq w)) + + w ^ 2 * conj w ^ 1 * deriv K (Complex.normSq w) := + (Complex.continuous_normSq.tendsto z |>.eventually hK).mono fun w hw => by + rw [dz_sq_mul_radial hw] + ring + rw [h1.dz_eq, dz_add ((differentiableAt_monomial_mul_radial 1 0 hK0).const_mul 2) + (differentiableAt_monomial_mul_radial 2 1 hK'), dz_const_mul, + dz_monomial_mul_radial 1 0 hK0, dz_monomial_mul_radial 2 1 hK', ← Complex.mul_conj] + ring + +/-- `∂_zbar² (z² K (|z|²)) = z⁴ K'' (|z|²)` if `K` is differentiable near `|z|²` and `K'` at +`|z|²`. -/ +theorem dzbar_dzbar_sq_mul_radial {K : ℝ → ℂ} {z : ℂ} + (hK : ∀ᶠ t in 𝓝 (Complex.normSq z), DifferentiableAt ℝ K t) + (hK' : DifferentiableAt ℝ (deriv K) (Complex.normSq z)) : + dzbar (dzbar (fun w => w ^ 2 * K (Complex.normSq w))) z = + z ^ 4 * deriv (deriv K) (Complex.normSq z) := by + have h1 : dzbar (fun w => w ^ 2 * K (Complex.normSq w)) =ᶠ[𝓝 z] fun w => + w ^ 3 * conj w ^ 0 * deriv K (Complex.normSq w) := + (Complex.continuous_normSq.tendsto z |>.eventually hK).mono fun w hw => by + rw [dzbar_sq_mul_radial hw] + ring + rw [h1.dzbar_eq, dzbar_monomial_mul_radial 3 0 hK'] + ring + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Defs.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Defs.lean new file mode 100644 index 0000000000..6d72cde934 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Defs.lean @@ -0,0 +1,153 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier +public import Mathlib.Analysis.Fourier.AddCircleMulti +public import Mathlib.Analysis.SpecialFunctions.Pow.Real +public import Mathlib.MeasureTheory.Function.LpSeminorm.Basic +public import Mathlib.MeasureTheory.Measure.Lebesgue.Complex +public import Mathlib.Order.LiminfLimsup +public import Mathlib.RingTheory.Polynomial.Pochhammer + +/-! +# Definitions: Fourier multipliers, the Beurling–Ahlfors transform, Dragičević's test functions + +The definitions that the headline theorems of the library use: Fourier multipliers and their norms +on `L^p (V)`, `V` a Euclidean space, and on `L^p_0 (𝕋^ι)`; the Wirtinger derivatives; the +Beurling–Ahlfors transform and its powers; Dragičević's constants and test functions. Their theory +is in the other modules: `HarmonicAnalysis.FourierMultiplier.Basic`, +`HarmonicAnalysis.Torus.TrigPoly`, `HarmonicAnalysis.Complex.Wirtinger`, +`HarmonicAnalysis.BeurlingAhlfors.Basic`, `HarmonicAnalysis.BeurlingAhlfors.TestFunctions`, +`HarmonicAnalysis.BeurlingAhlfors.LowerBound`. + +The block between the markers is copied word for word into +`palomar/FourierMultipliers/Challenge.lean` by `scripts/sync_challenge_defs.py`, and the imports +are the Challenge's. + +The Fourier transform is Mathlib's, `𝓕 f (ξ) = ∫ e^{−2πi ⟨v, ξ⟩} f (v) dv`, and `ℂ ≅ ℝ²` by +`x + iy ↦ (x, y)`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped SchwartzMap FourierTransform ENNReal ComplexConjugate + +namespace HarmonicAnalysis + +-- BEGIN SHARED DEFINITIONS + +/-! ### Fourier multipliers on a Euclidean space -/ + +section Euclidean + +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] + [MeasurableSpace V] [BorelSpace V] + +/-- The Fourier multiplier with symbol `m`: `T_m f = 𝓕⁻¹ (m · 𝓕 f)`, by Mathlib's integral formulas +for `𝓕` and `𝓕⁻¹`. For a bounded measurable `m` and a Schwartz function `f`, `m · 𝓕 f` is +integrable and `T_m f (x) = ∫ m (ξ) 𝓕 f (ξ) e^{2πi ⟨ξ, x⟩} dξ`. -/ +def fourierMultiplier (m : V → ℂ) (f : V → ℂ) : V → ℂ := + 𝓕⁻ (fun ξ : V => m ξ • 𝓕 f ξ) + +/-- `‖T_m‖_{L^p → L^p}`: the supremum, in `[0, ∞]`, of `‖T_m f‖_p / ‖f‖_p` over the Schwartz +functions `f` (dense in `L^p` for `1 ≤ p < ∞`; `0 / 0 = 0`). -/ +def multiplierNorm (m : V → ℂ) (p : ℝ) : ℝ≥0∞ := + ⨆ f : 𝓢(V, ℂ), eLpNorm (fourierMultiplier m f) (ENNReal.ofReal p) volume / + eLpNorm (f : V → ℂ) (ENNReal.ofReal p) volume + +end Euclidean + +/-! ### Fourier multipliers on the torus -/ + +section Torus + +open UnitAddTorus + +variable {ι : Type*} [Fintype ι] + +/-- The trigonometric polynomial `x ↦ Σ_n c_n e^{2πi ⟨n, x⟩}` on the torus `𝕋^ι = (ℝ / ℤ)^ι`, for +finitely supported coefficients `c`. -/ +def trigPoly (c : (ι → ℤ) →₀ ℂ) (x : UnitAddTorus ι) : ℂ := + c.sum fun n a => a * mFourier n x + +/-- The Fourier multiplier with symbol `m : ℤ^ι → ℂ` applied to the trigonometric polynomial with +coefficients `c`: `x ↦ Σ_n m (n) c_n e^{2πi ⟨n, x⟩}`. -/ +def torusMultiplier (m : (ι → ℤ) → ℂ) (c : (ι → ℤ) →₀ ℂ) (x : UnitAddTorus ι) : ℂ := + c.sum fun n a => m n * a * mFourier n x + +/-- `‖T_m‖_{L^p_0 (𝕋^ι) → L^p_0 (𝕋^ι)}`, `L^p_0` the subspace of mean-zero functions: the supremum, +in `[0, ∞]`, of `‖T_m f‖_p / ‖f‖_p` over the (dense) trigonometric polynomials `f` of mean zero +(`c₀ = 0`). The value `m (0)` does not matter. -/ +def torusMultiplierNorm (m : (ι → ℤ) → ℂ) (p : ℝ) : ℝ≥0∞ := + ⨆ (c : (ι → ℤ) →₀ ℂ) (_ : c 0 = 0), + eLpNorm (torusMultiplier m c) (ENNReal.ofReal p) volume / + eLpNorm (trigPoly c) (ENNReal.ofReal p) volume + +/-- The lattice point `n₀ + i n₁ ∈ ℂ` of `n ∈ ℤ²`. -/ +def latticePoint (n : Fin 2 → ℤ) : ℂ := (n 0 : ℂ) + (n 1 : ℂ) * Complex.I + +end Torus + +/-! ### The Wirtinger derivatives -/ + +section Wirtinger + +variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] + +/-- The Wirtinger derivative `∂g (z) = ½ (∂_x g (z) − i ∂_y g (z))` of a function `g : ℂ → F` +(`0` where `g` is not real-differentiable). -/ +def dz (g : ℂ → F) (z : ℂ) : F := + (2⁻¹ : ℂ) • (fderiv ℝ g z 1 - Complex.I • fderiv ℝ g z Complex.I) + +/-- The Wirtinger derivative `∂_zbar g (z) = ½ (∂_x g (z) + i ∂_y g (z))` of a function `g : ℂ → F` +(`0` where `g` is not real-differentiable). -/ +def dzbar (g : ℂ → F) (z : ℂ) : F := + (2⁻¹ : ℂ) • (fderiv ℝ g z 1 + Complex.I • fderiv ℝ g z Complex.I) + +end Wirtinger + +/-! ### The Beurling–Ahlfors transform and its powers -/ + +/-- The symbol `m (ξ) = (conj ξ) / ξ` of the Beurling–Ahlfors transform (`m (0) = 0`). -/ +def beurlingSymbol (ξ : ℂ) : ℂ := conj ξ / ξ + +/-- `𝓑^k f = 𝓕⁻¹ (m^k · 𝓕 f)`, with `m (ξ) = (conj ξ) / ξ`. -/ +def beurlingPow (k : ℕ) (f : ℂ → ℂ) : ℂ → ℂ := + fourierMultiplier (fun ξ => beurlingSymbol ξ ^ k) f + +/-- `‖𝓑^k‖_{L^p (ℝ²) → L^p (ℝ²)}`: the supremum, in `[0, ∞]`, of `‖𝓑^k f‖_p / ‖f‖_p` over the +(dense) Schwartz functions `f`. -/ +def beurlingPowNorm (k : ℕ) (p : ℝ) : ℝ≥0∞ := + multiplierNorm (fun ξ => beurlingSymbol ξ ^ k) p + +/-! ### Dragičević's constants and test functions -/ + +/-- Dragičević's constant `κ_n (p) = (1/q)_n / (1/p)_n`, `1/q = 1 − 1/p`, with the Pochhammer +symbol `(a)_n = a (a + 1) ⋯ (a + n − 1)`. -/ +def beurlingKappa (n : ℕ) (p : ℝ) : ℝ := + (ascPochhammer ℝ n).eval (1 - p⁻¹) / (ascPochhammer ℝ n).eval p⁻¹ + +/-- `p* = max (p, p / (p − 1))`. -/ +def pStar (p : ℝ) : ℝ := max p (p / (p - 1)) + +/-- The cutoff `g_n (x) = 1` for `x ≤ 1`, `exp (−(x − 1)^n)` for `x > 1`, which Dragičević (2011, +p. 465) gives as an example of a sufficiently smooth, rapidly decaying `g_n` equal to `1` on +`[0, 1]`. -/ +def BeurlingAhlfors.testCutoff (n : ℕ) (x : ℝ) : ℝ := if x ≤ 1 then 1 else Real.exp (-(x - 1) ^ n) + +/-- Dragičević's test function `f_{n,α} (z) = z^n |z|^{−2α} g_n (|z|)`, with this cutoff `g_n`. -/ +def BeurlingAhlfors.testFun (n : ℕ) (α : ℝ) (z : ℂ) : ℂ := + z ^ n * ((‖z‖ ^ (-2 * α) * testCutoff n ‖z‖ : ℝ) : ℂ) + +-- END SHARED DEFINITIONS + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Basic.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Basic.lean new file mode 100644 index 0000000000..75d6a25502 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Basic.lean @@ -0,0 +1,187 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs + +/-! +# Fourier multipliers on a Euclidean space + +`V` is a finite-dimensional real inner product space with its Lebesgue measure `volume`, and the +Fourier transform is Mathlib's, `𝓕 f (ξ) = ∫ e^{−2πi ⟨v, ξ⟩} f (v) dv`. + +* `HarmonicAnalysis.fourierMultiplier m f = 𝓕⁻¹ (m · 𝓕 f)`, the Fourier multiplier with symbol + `m : V → ℂ`, applied to `f : V → ℂ`. +* `HarmonicAnalysis.multiplierNorm m p`, the norm of `f ↦ 𝓕⁻¹ (m · 𝓕 f)` on `L^p (V)`, computed on + the dense subspace of Schwartz functions: `⨆_{f ∈ 𝓢(V)} ‖T_m f‖_p / ‖f‖_p` in `ℝ≥0∞` (with + `0 / 0 = 0`; it is `∞` when `T_m` is unbounded on `L^p`). + +## Main results + +* `HarmonicAnalysis.continuous_fourierMultiplier`: `T_m f` is continuous for every Schwartz + function `f` (when `m · 𝓕 f` is not integrable, Lean's integral makes it `0`). +* `HarmonicAnalysis.eLpNorm_fourierMultiplier_le`: `‖T_m f‖_p ≤ ‖T_m‖_p ‖f‖_p`. +* `HarmonicAnalysis.enorm_fourierMultiplier_sub_le`: `|T_m f (x) − T_m g (x)| ≤ ‖𝓕 f − 𝓕 g‖₁` for + `|m| ≤ 1`, so that `T_m f_j → T_m f` uniformly when `𝓕 f_j → 𝓕 f` in `L¹`. +* `HarmonicAnalysis.div_le_multiplierNorm_of_tendsto` (density): the norm over Schwartz functions + bounds the ratio `‖v‖_p / ‖u‖_p` for every pair `(u, v)` that is an `L^p`-limit of pairs + `(φ_k, T_m φ_k)` with `φ_k` Schwartz, that is, for `T_m` on the closure of its graph over + Schwartz functions. This is how `T_m` is applied to functions of Sobolev spaces that are not + Schwartz functions. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped SchwartzMap FourierTransform ENNReal + +namespace HarmonicAnalysis + +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] + [MeasurableSpace V] [BorelSpace V] + +/-- `m · 𝓕 f` is integrable for a bounded measurable symbol `m` and a Schwartz function `f`. -/ +theorem integrable_smul_fourier {m : V → ℂ} (hm : Measurable m) (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) + (f : 𝓢(V, ℂ)) : Integrable (fun ξ => m ξ • 𝓕 (f : V → ℂ) ξ) := by + obtain ⟨C, hC⟩ := hmb + have : Integrable (𝓕 (f : V → ℂ)) := by + rw [← SchwartzMap.fourier_coe] + exact (𝓕 f).integrable + simpa [smul_eq_mul] using this.bdd_mul hm.aestronglyMeasurable (ae_of_all _ hC) + +/-- `T_m f` is continuous for every Schwartz function `f`. -/ +theorem continuous_fourierMultiplier (m : V → ℂ) (f : 𝓢(V, ℂ)) : + Continuous (fourierMultiplier m f) := by + have hL : Continuous fun p : V × V ↦ (-innerₗ V) p.1 p.2 := by + simp only [LinearMap.neg_apply, innerₗ_apply_apply] + fun_prop + by_cases hg : Integrable (fun ξ => m ξ • 𝓕 (f : V → ℂ) ξ) + · exact VectorFourier.fourierIntegral_continuous Real.continuous_fourierChar hL hg + · have : fourierMultiplier m f = 0 := by + ext w + exact integral_undef (mt (VectorFourier.fourierIntegral_convergent_iff + Real.continuous_fourierChar hL w).1 hg) + rw [this] + exact continuous_const + +/-- `‖T_m f‖_p ≤ ‖T_m‖_p ‖f‖_p` for every Schwartz function `f`. -/ +theorem eLpNorm_fourierMultiplier_le (m : V → ℂ) (p : ℝ) (f : 𝓢(V, ℂ)) : + eLpNorm (fourierMultiplier m f) (ENNReal.ofReal p) volume ≤ + multiplierNorm m p * eLpNorm (f : V → ℂ) (ENNReal.ofReal p) volume := by + have hle : eLpNorm (fourierMultiplier m f) (ENNReal.ofReal p) volume / + eLpNorm (f : V → ℂ) (ENNReal.ofReal p) volume ≤ multiplierNorm m p := + le_iSup (fun f : 𝓢(V, ℂ) => eLpNorm (fourierMultiplier m f) (ENNReal.ofReal p) volume / + eLpNorm (f : V → ℂ) (ENNReal.ofReal p) volume) f + by_cases h0 : eLpNorm (f : V → ℂ) (ENNReal.ofReal p) volume = 0 + · rcases eq_or_ne (ENNReal.ofReal p) 0 with hp | hp + · rw [hp, eLpNorm_exponent_zero (continuous_fourierMultiplier m f).aestronglyMeasurable] + exact zero_le + · have hf : (f : V → ℂ) = 0 := by + rw [eLpNorm_eq_zero_iff hp] at h0 + exact (f.continuous.ae_eq_iff_eq volume continuous_zero).1 h0 + have hT : fourierMultiplier m f = 0 := by + ext w + simp [fourierMultiplier, hf, Real.fourier_eq, Real.fourierInv_eq] + simp [hT] + · calc eLpNorm (fourierMultiplier m f) (ENNReal.ofReal p) volume + = eLpNorm (fourierMultiplier m f) (ENNReal.ofReal p) volume / + eLpNorm (f : V → ℂ) (ENNReal.ofReal p) volume * + eLpNorm (f : V → ℂ) (ENNReal.ofReal p) volume := + (ENNReal.div_mul_cancel h0 (f.memLp _).eLpNorm_lt_top.ne).symm + _ ≤ _ := by gcongr + +/-- `|T_m f (x) − T_m g (x)| ≤ ‖𝓕 f − 𝓕 g‖₁` for Schwartz `f`, `g` and a measurable symbol with +`|m| ≤ 1`: `T_m f − T_m g` is the inverse Fourier transform of `m (𝓕 f − 𝓕 g)`. -/ +theorem enorm_fourierMultiplier_sub_le {m : V → ℂ} (hm : Measurable m) (hm1 : ∀ ξ, ‖m ξ‖ ≤ 1) + (f g : 𝓢(V, ℂ)) (x : V) : + ‖fourierMultiplier m f x - fourierMultiplier m g x‖ₑ ≤ + eLpNorm (fun ξ => 𝓕 (f : V → ℂ) ξ - 𝓕 (g : V → ℂ) ξ) 1 volume := by + have hL : Continuous fun p : V × V ↦ (-innerₗ V) p.1 p.2 := by + simp only [LinearMap.neg_apply, innerₗ_apply_apply] + fun_prop + set a : V → ℂ := fun ξ => m ξ • 𝓕 (f : V → ℂ) ξ + set b : V → ℂ := fun ξ => m ξ • 𝓕 (g : V → ℂ) ξ + have ha : Integrable a := integrable_smul_fourier hm ⟨1, hm1⟩ f + have hb : Integrable b := integrable_smul_fourier hm ⟨1, hm1⟩ g + have hadd := VectorFourier.fourierIntegral_add (μ := volume) (L := -innerₗ V) + Real.continuous_fourierChar hL (ha.sub hb) hb + rw [sub_add_cancel] at hadd + have heq : fourierMultiplier m f x - fourierMultiplier m g x = + VectorFourier.fourierIntegral 𝐞 volume (-innerₗ V) (a - b) x := by + have e := congrFun hadd x + simp only [Pi.add_apply] at e + change VectorFourier.fourierIntegral 𝐞 volume (-innerₗ V) a x - + VectorFourier.fourierIntegral 𝐞 volume (-innerₗ V) b x = _ + rw [e, add_sub_cancel_right] + rw [heq] + calc ‖VectorFourier.fourierIntegral 𝐞 volume (-innerₗ V) (a - b) x‖ₑ + ≤ ENNReal.ofReal (∫ ξ, ‖(a - b) ξ‖) := by + rw [← ofReal_norm] + exact ENNReal.ofReal_le_ofReal + (VectorFourier.norm_fourierIntegral_le_integral_norm _ _ _ _ _) + _ = ∫⁻ ξ, ‖(a - b) ξ‖ₑ := ofReal_integral_norm_eq_lintegral_eNorm (ha.sub hb) + _ ≤ ∫⁻ ξ, ‖𝓕 (f : V → ℂ) ξ - 𝓕 (g : V → ℂ) ξ‖ₑ := lintegral_mono fun ξ => by + simp only [Pi.sub_apply, a, b, ← smul_sub, eNorm_smul] + calc ‖m ξ‖ₑ * ‖𝓕 (f : V → ℂ) ξ - 𝓕 (g : V → ℂ) ξ‖ₑ + ≤ 1 * ‖𝓕 (f : V → ℂ) ξ - 𝓕 (g : V → ℂ) ξ‖ₑ := by + gcongr + rw [← ofReal_norm] + exact ENNReal.ofReal_le_one.2 (hm1 ξ) + _ = _ := one_mul _ + _ = _ := (eLpNorm_one_eq_lintegral_eNorm + (((𝓕 f).continuous.sub (𝓕 g).continuous).aestronglyMeasurable)).symm + +/-- Density: if Schwartz functions `φ_k` satisfy `φ_k → u` and `T_m φ_k → v` in `L^p`, `1 ≤ p`, +then `‖v‖_p / ‖u‖_p ≤ ‖T_m‖_p`. -/ +theorem div_le_multiplierNorm_of_tendsto (m : V → ℂ) {p : ℝ} (hp : 1 ≤ p) {φ : ℕ → 𝓢(V, ℂ)} + {u v : V → ℂ} + (hφu : Tendsto (fun k => eLpNorm (fun x => φ k x - u x) (ENNReal.ofReal p) volume) atTop + (𝓝 0)) + (hφv : Tendsto (fun k => eLpNorm (fun x => fourierMultiplier m (φ k) x - v x) + (ENNReal.ofReal p) volume) atTop (𝓝 0)) : + eLpNorm v (ENNReal.ofReal p) volume / eLpNorm u (ENNReal.ofReal p) volume ≤ + multiplierNorm m p := by + set P := ENNReal.ofReal p + set M := multiplierNorm m p + rcases eq_or_ne M ⊤ with hM | hM + · rw [hM] + exact le_top + refine ENNReal.div_le_of_le_mul ?_ + have hP : 1 ≤ P := by simpa [P] using ENNReal.ofReal_le_ofReal hp + have hlim : Tendsto (fun k => eLpNorm (fun x => fourierMultiplier m (φ k) x - v x) P volume + + M * (eLpNorm (fun x => φ k x - u x) P volume + eLpNorm u P volume)) atTop + (𝓝 (M * eLpNorm u P volume)) := by + have := hφv.add (ENNReal.Tendsto.const_mul (hφu.add_const (eLpNorm u P volume)) (Or.inr hM)) + simpa using this + refine ge_of_tendsto' hlim fun k => ?_ + have h1 : eLpNorm v P volume ≤ eLpNorm (fun x => fourierMultiplier m (φ k) x - v x) P volume + + eLpNorm (fourierMultiplier m (φ k)) P volume := by + have := eLpNorm_sub_le (μ := volume) (f := fourierMultiplier m (φ k)) + (g := fun x => fourierMultiplier m (φ k) x - v x) hP + rw [add_comm] + convert this using 2 + ext x + simp + have h2 : eLpNorm (φ k : V → ℂ) P volume ≤ + eLpNorm (fun x => φ k x - u x) P volume + eLpNorm u P volume := by + have := eLpNorm_add_le (μ := volume) (f := fun x => φ k x - u x) (g := u) hP + convert this using 2 + ext x + simp + calc eLpNorm v P volume + ≤ eLpNorm (fun x => fourierMultiplier m (φ k) x - v x) P volume + + eLpNorm (fourierMultiplier m (φ k)) P volume := h1 + _ ≤ eLpNorm (fun x => fourierMultiplier m (φ k) x - v x) P volume + + M * eLpNorm (φ k : V → ℂ) P volume := by + gcongr + exact eLpNorm_fourierMultiplier_le m p (φ k) + _ ≤ _ := by gcongr + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/CompactSupport.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/CompactSupport.lean new file mode 100644 index 0000000000..54d276824f --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/CompactSupport.lean @@ -0,0 +1,151 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Density +import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension + +/-! +# Density of the compactly supported Schwartz functions, by cut-offs + +`V` is a finite-dimensional real inner product space with its Lebesgue measure. +`HarmonicAnalysis.exists_hasCompactSupport_tendsto` is the density of `C_c^∞ (V)` in the Schwartz +space `𝓢 (V)` in the two senses used with Fourier multipliers: for every Schwartz function `f` +there are compactly supported Schwartz functions `φ_n` such that `φ_n → f` in `L^p` for every +`1 ≤ p < ∞`, and `𝓕 φ_n → 𝓕 f` in `L^1`. + +## Proof + +By cut-offs: `φ_n (x) = η (x / (n + 1)) f (x)`, where `η` is a smooth bump function (a +`ContDiffBump`, even, with values in `[0, 1]`) equal to `1` on the unit ball. + +* `φ_n → f` in `L^p` by dominated convergence: `|φ_n − f| ≤ |f|`, and `φ_n (x) = f (x)` as soon as + `|x| ≤ n + 1`. +* On the Fourier side, `𝓕 φ_n = ψ_{1/(n+1)} ∗ 𝓕 f` is a mollification of `𝓕 f` + (`HarmonicAnalysis.mollify`), where `𝓕 ψ = η` and `∫ ψ = η (0) = 1`: both sides have Fourier + transform `ξ ↦ η (ξ / (n + 1)) f (−ξ)`, since `𝓕 (𝓕 u) = u (−·)` and `η` is even. Then + `𝓕 φ_n → 𝓕 f` in `L^1` is `HarmonicAnalysis.tendsto_eLpNorm_mollify_sub` with `p = 1`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped SchwartzMap FourierTransform ENNReal ContDiff + +namespace HarmonicAnalysis + +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] + [MeasurableSpace V] [BorelSpace V] + +/-- `𝓕 (𝓕 u) (ξ) = u (−ξ)` for a Schwartz function `u`. -/ +private lemma fourier_fourier_apply (u : 𝓢(V, ℂ)) (ξ : V) : 𝓕 (𝓕 u) ξ = u (-ξ) := by + have h := Real.fourierInv_eq_fourier_neg (𝓕 (u : V → ℂ)) (-ξ) + rw [neg_neg] at h + have hinv : 𝓕⁻ (𝓕 u) = u := FourierTransform.fourierInv_fourier_eq u + rw [SchwartzMap.fourier_coe, SchwartzMap.fourier_coe, ← h, ← SchwartzMap.fourier_coe, + ← SchwartzMap.fourierInv_coe, hinv] + +/-- **Density of `C_c^∞` in the Schwartz space, by cut-offs**: for every Schwartz function `f` there +are compactly supported Schwartz functions `φ_n` such that `φ_n → f` in `L^p` for every +`1 ≤ p < ∞`, and `𝓕 φ_n → 𝓕 f` in `L^1`. They are `φ_n (x) = η (x / (n + 1)) f (x)`, `η` a bump +function equal to `1` near `0`. -/ +theorem exists_hasCompactSupport_tendsto (f : 𝓢(V, ℂ)) : + ∃ φ : ℕ → 𝓢(V, ℂ), (∀ n, HasCompactSupport (φ n)) ∧ + (∀ p : ℝ, 1 ≤ p → Tendsto (fun n => eLpNorm (fun x => φ n x - f x) (ENNReal.ofReal p) volume) + atTop (𝓝 0)) ∧ + Tendsto (fun n => eLpNorm (fun ξ => 𝓕 (φ n) ξ - 𝓕 f ξ) 1 volume) atTop (𝓝 0) := by + -- the cut-off `η`, a bump function equal to `1` on the unit ball, as a Schwartz function `X` + let χ : ContDiffBump (0 : V) := ⟨1, 2, one_pos, one_lt_two⟩ + have hχc : HasCompactSupport fun ξ => (χ ξ : ℂ) := + χ.hasCompactSupport.comp_left Complex.ofReal_zero + have hχs : ContDiff ℝ ∞ fun ξ => (χ ξ : ℂ) := Complex.ofRealCLM.contDiff.comp χ.contDiff + let X : 𝓢(V, ℂ) := hχc.toSchwartzMap hχs + have hX : ∀ ξ, X ξ = χ ξ := fun _ => rfl + -- `t_n = 1 / (n + 1)` and `φ_n (x) = η (t_n x) f (x)` + set t : ℕ → ℝ := fun n => 1 / ((n : ℝ) + 1) + have ht : Tendsto t atTop (𝓝 0) := tendsto_one_div_add_atTop_nhds_zero_nat + have ht0 : ∀ n, t n ≠ 0 := fun n => by positivity + have hg : ∀ n, (fun x : V => X (t n • x)).HasTemperateGrowth := fun n => + X.hasTemperateGrowth.comp (by fun_prop : (fun x : V => t n • x).HasTemperateGrowth) + set φ : ℕ → 𝓢(V, ℂ) := fun n => SchwartzMap.smulLeftCLM ℂ (fun x => X (t n • x)) f + have hφ : ∀ n x, φ n x = χ (t n • x) * f x := fun n x => by + rw [SchwartzMap.smulLeftCLM_apply_apply (hg n), hX, smul_eq_mul] + -- `ψ` with `𝓕 ψ = X`, so that `∫ ψ = η (0) = 1` + set ψ : 𝓢(V, ℂ) := 𝓕⁻ X + have hψX : 𝓕 ψ = X := FourierTransform.fourier_fourierInv_eq X + have hψ : ∫ y, ψ y = 1 := by + have h : 𝓕 ψ 0 = 1 := by + rw [hψX, hX, χ.one_of_mem_closedBall (Metric.mem_closedBall_self zero_le_one), + Complex.ofReal_one] + rw [SchwartzMap.fourier_coe, Real.fourier_eq] at h + simpa using h + -- `𝓕 φ_n = ψ_{t_n} ∗ 𝓕 f`: both have Fourier transform `ξ ↦ η (t_n ξ) f (−ξ)` + have hFφ : ∀ n, 𝓕 (φ n) = mollify ψ (𝓕 f) (t n) := fun n => by + have key : 𝓕 (𝓕 (φ n)) = 𝓕 (mollify ψ (𝓕 f) (t n)) := by + ext ξ + rw [fourier_fourier_apply, fourier_mollify, fourier_fourier_apply, hψX, hX, hφ, smul_neg, + χ.neg] + calc 𝓕 (φ n) = 𝓕⁻ (𝓕 (𝓕 (φ n))) := (FourierTransform.fourierInv_fourier_eq _).symm + _ = 𝓕⁻ (𝓕 (mollify ψ (𝓕 f) (t n))) := by rw [key] + _ = mollify ψ (𝓕 f) (t n) := FourierTransform.fourierInv_fourier_eq _ + refine ⟨φ, fun n => ?_, fun p hp => ?_, ?_⟩ + · -- compact support + have h : (φ n : V → ℂ) = (fun x => (χ (t n • x) : ℂ)) * (f : V → ℂ) := funext (hφ n) + rw [h] + exact (hχc.comp_smul (ht0 n)).mul_right + · -- `φ_n → f` in `L^p`, by dominated convergence + have hp0 : 0 < p := by linarith + have hP0 : ENNReal.ofReal p ≠ 0 := by simpa using hp0 + have heq : ∀ g : V → ℂ, Continuous g → + eLpNorm g (ENNReal.ofReal p) volume = (∫⁻ x, ‖g x‖ₑ ^ p) ^ (1 / p) := fun g hg => by + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal hP0 ENNReal.ofReal_ne_top + hg.aestronglyMeasurable, ENNReal.toReal_ofReal hp0.le] + have hfin : ∫⁻ x, ‖f x‖ₑ ^ p ≠ ⊤ := by + have h := lintegral_rpow_eNorm_lt_top_of_eLpNorm_lt_top hP0 ENNReal.ofReal_ne_top + (f.memLp (ENNReal.ofReal p) volume).eLpNorm_lt_top + rw [ENNReal.toReal_ofReal hp0.le] at h + exact h.ne + have hlim : Tendsto (fun n => ∫⁻ x, ‖φ n x - f x‖ₑ ^ p) atTop (𝓝 0) := by + rw [← lintegral_zero] + refine tendsto_lintegral_of_dominated_convergence (fun x => ‖f x‖ₑ ^ p) + (fun n => ?_) (fun n => ae_of_all _ fun x => ?_) hfin (ae_of_all _ fun x => ?_) + · exact ((φ n).continuous.sub f.continuous).eNorm.measurable.pow_const p + · -- `|φ_n − f| = |η (t_n x) − 1| |f| ≤ |f|` + refine ENNReal.rpow_le_rpow ?_ hp0.le + rw [← ofReal_norm, ← ofReal_norm] + refine ENNReal.ofReal_le_ofReal ?_ + have h1 : φ n x - f x = ((χ (t n • x) - 1 : ℝ) : ℂ) * f x := by + rw [hφ] + push_cast + ring + rw [h1, norm_mul, Complex.norm_real, Real.norm_eq_abs] + refine mul_le_of_le_one_left (norm_nonneg _) (abs_le.2 ⟨?_, ?_⟩) + · linarith [χ.nonneg (x := t n • x)] + · linarith [χ.le_one (x := t n • x)] + · -- `φ_n (x) = f (x)` as soon as `|t_n x| ≤ 1` + have hx : ∀ᶠ n in atTop, t n • x ∈ Metric.closedBall (0 : V) 1 := by + have := ht.smul_const x + rw [zero_smul] at this + exact this.eventually (Metric.closedBall_mem_nhds 0 one_pos) + refine tendsto_const_nhds.congr' ?_ + filter_upwards [hx] with n hn + rw [hφ, χ.one_of_mem_closedBall hn, Complex.ofReal_one, one_mul, sub_self, eNorm_zero, + ENNReal.zero_rpow_of_pos hp0] + have := hlim.ennrpow_const (1 / p) + rw [ENNReal.zero_rpow_of_pos (by positivity)] at this + refine this.congr fun n => ?_ + exact (heq _ ((φ n).continuous.sub f.continuous)).symm + · -- `𝓕 φ_n → 𝓕 f` in `L^1`: the mollifiers + have h := (tendsto_eLpNorm_mollify_sub hψ (𝓕 f) le_rfl).comp ht + rw [ENNReal.ofReal_one] at h + refine h.congr fun n => ?_ + simp only [Function.comp_apply, hFφ n] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Density.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Density.lean new file mode 100644 index 0000000000..fa0b913bad --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Density.lean @@ -0,0 +1,665 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier +public import Mathlib.MeasureTheory.Function.LpSeminorm.Basic +import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension +import Mathlib.MeasureTheory.Function.LpSpace.ContinuousCompMeasurePreserving +import Mathlib.MeasureTheory.Integral.MeanInequalities + +/-! +# Density of the Schwartz functions with Fourier transform supported off the origin + +`V` is a finite-dimensional real inner product space with its Lebesgue measure, of dimension +`d > 0`. `HarmonicAnalysis.exists_tendsto_hasCompactFourierSupportOffZero` is Proposition 2.4.23 +(ii) of Hytönen–van Neerven–Veraar–Weis (HNVW), for Schwartz functions: for every Schwartz function +`f` there are Schwartz functions `f_j` with Fourier transforms in `C_c^∞ (V ∖ {0})` such that +`f_j → f` in `L^p` for every `1 < p < ∞`, and `𝓕 f_j → 𝓕 f` in `L^1`. + +## Main results + +* `HarmonicAnalysis.lintegral_rpow_lintegral_mul_le`: Hölder's inequality for the measure `w dν` + and Tonelli's theorem, the computation of Young's inequality (HNVW, Lemma 1.2.30); + `HarmonicAnalysis.lintegral_rpow_lintegral_le`: Minkowski's integral inequality. +* `HarmonicAnalysis.mollify ϕ f t`, the mollification `ϕ_t ∗ f` with `ϕ_t (x) = t^{−d} ϕ (x / t)`: + `𝓕 (ϕ_t ∗ f) = 𝓕 ϕ (t ·) 𝓕 f` (`HarmonicAnalysis.fourier_mollify`), + `(ϕ_t ∗ f) (x) = ∫ ϕ (y) f (x − t y) dy` (`HarmonicAnalysis.mollify_apply`). +* `HarmonicAnalysis.tendsto_eLpNorm_mollify_sub` (HNVW, Proposition 1.2.32): if `∫ ϕ = 1`, then + `ϕ_t ∗ f → f` in `L^p`, `1 ≤ p < ∞`, as `t → 0`; + `HarmonicAnalysis.tendsto_eLpNorm_mollify_atTop`: `ϕ_R ∗ f → 0` in `L^p`, `1 < p < ∞`, as + `R → ∞`; and, on the Fourier side, `HarmonicAnalysis.tendsto_eLpNorm_fourier_mollify_sub` and + `HarmonicAnalysis.tendsto_eLpNorm_fourier_mollify_atTop`. +* `HarmonicAnalysis.HasCompactFourierSupportOffZero`: the Fourier transform is compactly supported + in `V ∖ {0}`; `HarmonicAnalysis.exists_tendsto_hasCompactFourierSupportOffZero`: the density. + +## Proof + +That of HNVW, p. 118: `f_j = (ϕ_{δ_j} − ϕ_{R_j}) ∗ f`, where `δ_j ↓ 0`, `R_j → ∞` and `𝓕 ϕ` is a +bump function equal to `1` near `0`, so that `𝓕 f_j = (𝓕 ϕ (δ_j ·) − 𝓕 ϕ (R_j ·)) 𝓕 f`. The +preliminary truncation `φ (ε ·) f` of HNVW, which makes the Fourier transform smooth, is not needed +for a Schwartz function. HNVW states the limits without proof. `ϕ_t ∗ f → f` in `L^p` is their +Proposition 1.2.32, proved here as there: Minkowski's integral inequality, the continuity of the +translations in `L^p` (in Mathlib) and dominated convergence. `‖ϕ_R ∗ f‖_p → 0` is Young's +inequality `‖ϕ_R ∗ f‖_p ≤ ‖ϕ_R‖_p ‖f‖_1` with `‖ϕ_R‖_p = R^{−d (1 − 1/p)} ‖ϕ‖_p`. The limits on the +Fourier side are by dominated convergence. + +## A correction to the source + +HNVW's Proposition 2.4.23 is about the space `L^p ∩ L_Fourier^1`, `L_Fourier^1` the inverse +Fourier transforms of +`L^1`, and its part (i) lists `C_c^∞ (ℝ^d ∖ {0})` among the dense subspaces. That space is dense in +`L^p` but not in `L^p ∩ L_Fourier^1`: its functions vanish at `0`, and `|f (0)| ≤ ‖𝓕 f‖_1`. The +proof there +does not treat it. Part (ii), used here, is not affected. + +## References + +* T. Hytönen, J. van Neerven, M. Veraar, L. Weis, *Analysis in Banach Spaces, Volume I*, Ergebnisse + der Mathematik 63, Springer, 2016: Lemma 1.2.30 and Proposition 1.2.32 (pp. 28–29), Lemma 2.4.8 + (p. 109), Proposition 2.4.23 (p. 118). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped SchwartzMap FourierTransform ENNReal ContDiff + +namespace HarmonicAnalysis + +/-- The `p`-th power of the `L^p` norm is the integral of the `p`-th power of the norm, +`0 < p < ∞`. -/ +theorem eLpNorm_ofReal_rpow_eq_lintegral {S F : Type*} [NormedAddCommGroup F] + {mS : MeasurableSpace S} {ν : Measure S} {p : ℝ} (hp : 0 < p) {f : S → F} + (hf : AEStronglyMeasurable f ν) : + eLpNorm f (ENNReal.ofReal p) ν ^ p = ∫⁻ z, ‖f z‖ₑ ^ p ∂ν := by + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal (by simpa using hp) ENNReal.ofReal_ne_top hf, + ENNReal.toReal_ofReal hp.le, ← ENNReal.rpow_mul, one_div_mul_cancel hp.ne', ENNReal.rpow_one] + +/-! ### Young's inequality -/ + +/-- The computation in the proof of Young's inequality (HNVW, Lemma 1.2.30): for `1 ≤ p`, +`∫ (∫ w (y) h (x, y) dy)^p dx ≤ (∫ w)^{p − 1} ∫ w (y) ∫ h (x, y)^p dx dy`, by Hölder's inequality +for the measure `w dν` and Tonelli's theorem. -/ +theorem lintegral_rpow_lintegral_mul_le {α β : Type*} [MeasurableSpace α] [MeasurableSpace β] + {μ : Measure α} {ν : Measure β} [SFinite μ] [SFinite ν] {w : β → ℝ≥0∞} (hw : Measurable w) + {h : α → β → ℝ≥0∞} (hh : Measurable (Function.uncurry h)) {p : ℝ} (hp : 1 ≤ p) : + ∫⁻ x, (∫⁻ y, w y * h x y ∂ν) ^ p ∂μ ≤ + (∫⁻ y, w y ∂ν) ^ (p - 1) * ∫⁻ y, w y * ∫⁻ x, h x y ^ p ∂μ ∂ν := by + have hp0 : 0 < p := by linarith + have hmeas : Measurable (Function.uncurry fun x y => w y * h x y ^ p) := + (hw.comp measurable_snd).mul (hh.pow_const p) + have key : ∀ x, (∫⁻ y, w y * h x y ∂ν) ^ p ≤ + (∫⁻ y, w y ∂ν) ^ (p - 1) * ∫⁻ y, w y * h x y ^ p ∂ν := by + intro x + have hhx : Measurable (h x) := hh.comp measurable_prodMk_left + rcases hp.eq_or_lt with rfl | hp1 + · simp + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp1).2 rfl + set q := p / (p - 1) + have hq0 : 0 < q := hpq.symm.pos + have h1 : ∀ y, w y * h x y = ((fun y => w y ^ (1 / q)) * fun y => w y ^ (1 / p) * h x y) y := by + intro y + rw [Pi.mul_apply, ← mul_assoc, ← ENNReal.rpow_add_of_nonneg _ _ (by positivity) + (by positivity), add_comm, hpq.one_div_add_one_div, div_one, ENNReal.rpow_one] + have h2 : ∀ y, (w y ^ (1 / p) * h x y) ^ p = w y * h x y ^ p := fun y => by + rw [ENNReal.mul_rpow_of_nonneg _ _ hp0.le, ← ENNReal.rpow_mul, one_div_mul_cancel hp0.ne', + ENNReal.rpow_one] + have h3 : ∀ y, (w y ^ (1 / q)) ^ q = w y := fun y => by + rw [← ENNReal.rpow_mul, one_div_mul_cancel hq0.ne', ENNReal.rpow_one] + have hH := ENNReal.lintegral_mul_le_Lp_mul_Lq ν hpq.symm + (f := fun y => w y ^ (1 / q)) (g := fun y => w y ^ (1 / p) * h x y) + (hw.pow_const _).aemeasurable ((hw.pow_const _).mul hhx).aemeasurable + simp only [← h1, h2, h3] at hH + calc (∫⁻ y, w y * h x y ∂ν) ^ p + ≤ ((∫⁻ y, w y ∂ν) ^ (1 / q) * (∫⁻ y, w y * h x y ^ p ∂ν) ^ (1 / p)) ^ p := by + gcongr + _ = _ := by + rw [ENNReal.mul_rpow_of_nonneg _ _ hp0.le, ← ENNReal.rpow_mul, ← ENNReal.rpow_mul, + one_div_mul_cancel hp0.ne', ENNReal.rpow_one] + congr 2 + simp only [q] + field_simp + calc ∫⁻ x, (∫⁻ y, w y * h x y ∂ν) ^ p ∂μ + ≤ ∫⁻ x, (∫⁻ y, w y ∂ν) ^ (p - 1) * ∫⁻ y, w y * h x y ^ p ∂ν ∂μ := lintegral_mono key + _ = (∫⁻ y, w y ∂ν) ^ (p - 1) * ∫⁻ x, ∫⁻ y, w y * h x y ^ p ∂ν ∂μ := + lintegral_const_mul _ hmeas.lintegral_prod_right' + _ = _ := by + rw [lintegral_lintegral_swap hmeas.aemeasurable] + congr 1 + refine lintegral_congr fun y => ?_ + exact lintegral_const_mul _ ((hh.comp measurable_prodMk_right).pow_const p) + +/-- Minkowski's integral inequality, in the form of Young's inequality: +`‖∫ w (s) F (·, s) dν (s)‖_p ≤ ‖w‖_1 C` when `‖F (·, s)‖_p ≤ C` for almost every `s`. -/ +theorem eLpNorm_integral_smul_le {X α β : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] + [MeasurableSpace α] [MeasurableSpace β] {μ : Measure α} {ν : Measure β} [SFinite μ] [SFinite ν] + {p : ℝ} (hp : 1 ≤ p) {w : β → ℝ} (hw : Measurable w) {F : α → β → X} + (hF : StronglyMeasurable (Function.uncurry F)) {C : ℝ≥0∞} + (hC : ∀ᵐ s ∂ν, eLpNorm (fun x => F x s) (ENNReal.ofReal p) μ ≤ C) : + eLpNorm (fun x => ∫ s, w s • F x s ∂ν) (ENNReal.ofReal p) μ ≤ (∫⁻ s, ‖w s‖ₑ ∂ν) * C := by + have hp0 : 0 < p := by linarith + have hwF : StronglyMeasurable fun x => ∫ s, w s • F x s ∂ν := + ((hw.comp measurable_snd).stronglyMeasurable.smul hF).integral_prod_right + set A := ∫⁻ s, ‖w s‖ₑ ∂ν + rw [← ENNReal.rpow_le_rpow_iff hp0, eLpNorm_ofReal_rpow_eq_lintegral hp0 hwF.aestronglyMeasurable] + calc ∫⁻ x, ‖∫ s, w s • F x s ∂ν‖ₑ ^ p ∂μ + ≤ ∫⁻ x, (∫⁻ s, ‖w s‖ₑ * ‖F x s‖ₑ ∂ν) ^ p ∂μ := by + refine lintegral_mono fun x => ENNReal.rpow_le_rpow ?_ hp0.le + refine (eNorm_integral_le_lintegral_eNorm _).trans_eq ?_ + simp_rw [eNorm_smul] + _ ≤ A ^ (p - 1) * ∫⁻ s, ‖w s‖ₑ * (∫⁻ x, ‖F x s‖ₑ ^ p ∂μ) ∂ν := + lintegral_rpow_lintegral_mul_le hw.eNorm hF.eNorm hp + _ ≤ A ^ (p - 1) * ∫⁻ s, ‖w s‖ₑ * C ^ p ∂ν := by + refine mul_le_mul' le_rfl (lintegral_mono_ae ?_) + filter_upwards [hC] with s hs + rw [← eLpNorm_ofReal_rpow_eq_lintegral hp0 + (hF.comp_measurable measurable_prodMk_right).aestronglyMeasurable (f := fun x => F x s)] + gcongr + _ = (A * C) ^ p := by + rw [lintegral_mul_const _ hw.eNorm, ← mul_assoc, ENNReal.mul_rpow_of_nonneg _ _ hp0.le] + congr 1 + conv_lhs => rw [show ∫⁻ s, ‖w s‖ₑ ∂ν = A ^ (1 : ℝ) from (ENNReal.rpow_one A).symm] + rw [← ENNReal.rpow_add_of_nonneg _ _ (by linarith) zero_le_one, sub_add_cancel] + +/-- Minkowski's integral inequality, for `1 ≤ p` and a finite left side: +`(∫ (∫ h (x, y) dy)^p dx)^{1/p} ≤ ∫ (∫ h (x, y)^p dx)^{1/p} dy`. With `F (x) = ∫ h (x, y) dy`, by +Tonelli's theorem and Hölder's inequality, `∫ F^p = ∫ ∫ h (x, y) F (x)^{p − 1} dx dy` is at most the +right side times `(∫ F^p)^{1 − 1/p}`. -/ +theorem lintegral_rpow_lintegral_le {α β : Type*} [MeasurableSpace α] [MeasurableSpace β] + {μ : Measure α} {ν : Measure β} [SFinite μ] [SFinite ν] {h : α → β → ℝ≥0∞} + (hh : Measurable (Function.uncurry h)) {p : ℝ} (hp : 1 ≤ p) + (hI : ∫⁻ x, (∫⁻ y, h x y ∂ν) ^ p ∂μ ≠ ⊤) : + (∫⁻ x, (∫⁻ y, h x y ∂ν) ^ p ∂μ) ^ (1 / p) ≤ ∫⁻ y, (∫⁻ x, h x y ^ p ∂μ) ^ (1 / p) ∂ν := by + rcases hp.eq_or_lt with rfl | hp1 + · simp only [ENNReal.rpow_one, div_one] + rw [lintegral_lintegral_swap hh.aemeasurable] + have hp0 : 0 < p := by linarith + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp1).2 rfl + set q := p / (p - 1) + set F : α → ℝ≥0∞ := fun x => ∫⁻ y, h x y ∂ν + have hF : Measurable F := hh.lintegral_prod_right' + set I := ∫⁻ x, F x ^ p ∂μ + set S := ∫⁻ y, (∫⁻ x, h x y ^ p ∂μ) ^ (1 / p) ∂ν + have hy : ∀ y, Measurable fun x => h x y := fun y => hh.comp measurable_prodMk_right + have hle : I ≤ S * I ^ (1 / q) := by + calc I = ∫⁻ x, ∫⁻ y, h x y * F x ^ (p - 1) ∂ν ∂μ := by + refine lintegral_congr fun x => ?_ + have hhx : Measurable (h x) := hh.comp measurable_prodMk_left + rw [lintegral_mul_const _ hhx] + conv_lhs => rw [show p = 1 + (p - 1) by ring, + ENNReal.rpow_add_of_nonneg _ _ zero_le_one (by linarith), ENNReal.rpow_one] + _ = ∫⁻ y, ∫⁻ x, h x y * F x ^ (p - 1) ∂μ ∂ν := + lintegral_lintegral_swap + (hh.mul ((hF.comp measurable_fst).pow_const (p - 1))).aemeasurable + _ ≤ ∫⁻ y, (∫⁻ x, h x y ^ p ∂μ) ^ (1 / p) * I ^ (1 / q) ∂ν := by + refine lintegral_mono fun y => ?_ + have hH := ENNReal.lintegral_mul_le_Lp_mul_Lq μ hpq (f := fun x => h x y) + (g := fun x => F x ^ (p - 1)) (hy y).aemeasurable (hF.pow_const _).aemeasurable + have hFq : ∀ x, (F x ^ (p - 1)) ^ q = F x ^ p := fun x => by + rw [← ENNReal.rpow_mul, hpq.sub_one_mul_conj] + simpa only [Pi.mul_apply, hFq] using hH + _ = S * I ^ (1 / q) := + lintegral_mul_const _ ((hh.pow_const p).lintegral_prod_left'.pow_const _) + rcases eq_or_ne I 0 with h0 | h0 + · rw [h0, ENNReal.zero_rpow_of_pos (by positivity)] + exact zero_le + have hq0 : I ^ (1 / q) ≠ 0 := (ENNReal.rpow_pos (pos_iff_ne_zero.2 h0) hI).ne' + have hqt : I ^ (1 / q) ≠ ⊤ := ENNReal.rpow_ne_top_of_nonneg hpq.symm.one_div_nonneg hI + rw [← ENNReal.mul_le_mul_iff_left hq0 hqt, ← ENNReal.rpow_add _ _ h0 hI, + hpq.one_div_add_one_div, div_one, ENNReal.rpow_one] + exact hle + +/-! ### Mollification -/ + +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] + [MeasurableSpace V] [BorelSpace V] + +/-- The mollification `ϕ_t ∗ f` of a Schwartz function `f`, where `ϕ_t (x) = t^{−d} ϕ (x / t)` for +`t > 0`, `d = dim V`, defined by its Fourier transform `𝓕 ϕ (t ·) 𝓕 f`; for `t = 0` it is +`f ∫ ϕ`. -/ +def mollify (ϕ f : 𝓢(V, ℂ)) (t : ℝ) : 𝓢(V, ℂ) := + 𝓕⁻ (SchwartzMap.smulLeftCLM ℂ (fun ξ => 𝓕 ϕ (t • ξ)) (𝓕 f)) + +/-- `𝓕 (ϕ_t ∗ f) = 𝓕 ϕ (t ·) 𝓕 f`. -/ +theorem fourier_mollify (ϕ f : 𝓢(V, ℂ)) (t : ℝ) (ξ : V) : + 𝓕 (mollify ϕ f t) ξ = 𝓕 ϕ (t • ξ) * 𝓕 f ξ := by + have hg : (fun ξ => 𝓕 ϕ (t • ξ)).HasTemperateGrowth := + (𝓕 ϕ).hasTemperateGrowth.comp (by fun_prop : (fun ξ : V => t • ξ).HasTemperateGrowth) + rw [mollify, FourierTransform.fourier_fourierInv_eq, SchwartzMap.smulLeftCLM_apply_apply hg, + smul_eq_mul] + +/-- `(ϕ_t ∗ f) (x) = ∫ ϕ (y) f (x − t y) dy` (HNVW, Lemma 2.4.8 and (1.4)): insert +`𝓕 ϕ (t ξ) = ∫ ϕ (y) e^{−2πi ⟨t ξ, y⟩} dy` in `∫ 𝓕 ϕ (t ξ) 𝓕 f (ξ) e^{2πi ⟨ξ, x⟩} dξ`, and use +Fubini's theorem and Fourier inversion for `f`. -/ +theorem mollify_apply (ϕ f : 𝓢(V, ℂ)) (t : ℝ) (x : V) : + mollify ϕ f t x = ∫ y, ϕ y * f (x - t • y) := by + set L : V →ₗ[ℝ] V →ₗ[ℝ] ℝ := t • innerₗ V + have hL : Continuous fun p : V × V => L p.1 p.2 := by + simp only [L, LinearMap.smul_apply, innerₗ_apply_apply] + fun_prop + set G : V → ℂ := fun ξ => 𝐞 (inner ℝ ξ x) • 𝓕 f ξ + have hG : Integrable G := by + refine (𝓕 f).integrable.mono ?_ (ae_of_all _ fun ξ => by simp [G]) + exact ((Real.continuous_fourierChar.comp (by fun_prop)).smul + (𝓕 f).continuous).aestronglyMeasurable + have h := VectorFourier.integral_fourierIntegral_smul_eq_flip (μ := volume) (ν := volume) + (L := L) Real.continuous_fourierChar hL ϕ.integrable hG + have h1 : ∀ ξ, VectorFourier.fourierIntegral 𝐞 volume L ϕ ξ = 𝓕 ϕ (t • ξ) := fun ξ => by + rw [SchwartzMap.fourier_coe, Real.fourier_eq] + simp [VectorFourier.fourierIntegral, L, real_inner_smul_right] + have h2 : ∀ y, VectorFourier.fourierIntegral 𝐞 volume L.flip G y = f (x - t • y) := fun y => by + have : f (x - t • y) = 𝓕⁻ (𝓕 f) (x - t • y) := by + rw [FourierTransform.fourierInv_fourier_eq] + rw [this, SchwartzMap.fourierInv_coe, Real.fourierInv_eq] + refine integral_congr_ae (ae_of_all _ fun ξ => ?_) + simp only [G, L, LinearMap.flip_apply, LinearMap.smul_apply, innerₗ_apply_apply, smul_smul, + inner_sub_right, real_inner_smul_right, ← AddChar.map_add_eq_mul, smul_eq_mul] + congr 2 + rw [real_inner_comm] + ring + simp only [h1, h2, smul_eq_mul] at h + rw [← h, mollify, SchwartzMap.fourierInv_coe, Real.fourierInv_eq] + refine integral_congr_ae (ae_of_all _ fun ξ => ?_) + have hg : (fun ξ => 𝓕 ϕ (t • ξ)).HasTemperateGrowth := + (𝓕 ϕ).hasTemperateGrowth.comp (by fun_prop : (fun ξ : V => t • ξ).HasTemperateGrowth) + simp only [SchwartzMap.smulLeftCLM_apply_apply hg, G, Circle.smul_def, smul_eq_mul] + ring + +/-- `‖g‖_p = (∫ |g|^p)^{1/p}` for continuous `g` and `0 < p < ∞`. -/ +private theorem eLpNorm_eq_lintegral_rpow {g : V → ℂ} (hg : Continuous g) {p : ℝ} (hp : 0 < p) : + eLpNorm g (ENNReal.ofReal p) volume = (∫⁻ x, ‖g x‖ₑ ^ p) ^ (1 / p) := by + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal (by simpa using hp) ENNReal.ofReal_ne_top + hg.aestronglyMeasurable, ENNReal.toReal_ofReal hp.le] + +/-- `‖g_t‖_p → 0` if `‖g_t‖_p^p → 0`. -/ +private theorem tendsto_eLpNorm_of_rpow {ι : Type*} {l : Filter ι} {g : ι → V → ℂ} {p : ℝ} + (hp : 0 < p) (h : Tendsto (fun t => eLpNorm (g t) (ENNReal.ofReal p) volume ^ p) l (𝓝 0)) : + Tendsto (fun t => eLpNorm (g t) (ENNReal.ofReal p) volume) l (𝓝 0) := by + have := h.ennrpow_const (1 / p) + rw [ENNReal.zero_rpow_of_pos (by positivity)] at this + refine this.congr fun t => ?_ + rw [← ENNReal.rpow_mul, mul_one_div_cancel hp.ne', ENNReal.rpow_one] + +/-- Translations are continuous in `L^p`, `1 ≤ p < ∞`: `‖f (· − h) − f‖_p → 0` as `h → 0`. -/ +theorem tendsto_eLpNorm_translate_sub (f : 𝓢(V, ℂ)) {p : ℝ} (hp : 1 ≤ p) : + Tendsto (fun h : V => eLpNorm (fun x => f (x - h) - f x) (ENNReal.ofReal p) volume) (𝓝 0) + (𝓝 0) := by + have : Fact (1 ≤ ENNReal.ofReal p) := ⟨by simpa using hp⟩ + have hmp : ∀ h : V, MeasurePreserving (fun x : V => x - h) volume volume := fun h => + measurePreserving_sub_right volume h + let g : C(V, C(V, V)) := ContinuousMap.curry ⟨fun z : V × V => z.2 - z.1, by fun_prop⟩ + have hf := f.memLp (ENNReal.ofReal p) volume + have h : Tendsto (fun h => (hf.comp_measurePreserving (hmp h)).toLp _) (𝓝 0) + (𝓝 ((hf.comp_measurePreserving (hmp 0)).toLp _)) := + Filter.Tendsto.compMeasurePreservingLp (l := 𝓝 (0 : V)) (g := fun h => g h) + (g₀ := g 0) (tendsto_const_nhds (x := hf.toLp f)) (g.continuous.tendsto 0) + (fun h => hmp h) (hmp 0) ENNReal.ofReal_ne_top + rw [Lp.tendsto_Lp_iff_tendsto_eLpNorm''] at h + refine h.congr fun h => ?_ + congr 1 + funext x + simp + +/-- Mollifiers (HNVW, Proposition 1.2.32, for Schwartz functions): if `∫ ϕ = 1`, then +`‖ϕ_t ∗ f − f‖_p → 0` as `t → 0`, for `1 ≤ p < ∞`. By +`(ϕ_t ∗ f) (x) − f (x) = ∫ ϕ (y) (f (x − t y) − f (x)) dy` and Minkowski's integral inequality, +`‖ϕ_t ∗ f − f‖_p ≤ ∫ |ϕ (y)| ‖f (· − t y) − f‖_p dy`, which tends to `0` by the continuity of the +translations in `L^p` and dominated convergence, `‖f (· − t y) − f‖_p ≤ 2 ‖f‖_p`. -/ +theorem tendsto_eLpNorm_mollify_sub {ϕ : 𝓢(V, ℂ)} (hϕ : ∫ y, ϕ y = 1) (f : 𝓢(V, ℂ)) {p : ℝ} + (hp : 1 ≤ p) : + Tendsto (fun t => eLpNorm (fun x => mollify ϕ f t x - f x) (ENNReal.ofReal p) volume) (𝓝 0) + (𝓝 0) := by + have hp0 : 0 < p := by linarith + have hP : 1 ≤ ENNReal.ofReal p := by simpa using hp + have hϕ1 : ∫⁻ y, ‖ϕ y‖ₑ ≠ ⊤ := ϕ.integrable.2.ne + set N : V → ℝ≥0∞ := fun h => eLpNorm (fun x => f (x - h) - f x) (ENNReal.ofReal p) volume + set M : ℝ≥0∞ := 2 * eLpNorm f (ENNReal.ofReal p) volume + have hM : M ≠ ⊤ := ENNReal.mul_ne_top ENNReal.ofNat_ne_top (f.memLp _).eLpNorm_lt_top.ne + have hNM : ∀ h, N h ≤ M := by + intro h + refine (eLpNorm_sub_le hP (f := fun x => f (x - h)) (g := f)).trans_eq ?_ + have h1 := eLpNorm_comp_measurePreserving (p := ENNReal.ofReal p) + f.continuous.aestronglyMeasurable (measurePreserving_sub_right (volume : Measure V) h) + simp only [M, two_mul] + exact congrArg (· + _) h1 + -- The integrand `h (x, y) = |ϕ (y)| |f (x − t y) − f (x)|`. + have hmeas : ∀ t : ℝ, Measurable (Function.uncurry fun x y : V => + ‖ϕ y‖ₑ * ‖f (x - t • y) - f x‖ₑ) := fun t => + (by fun_prop : Continuous fun z : V × V => ‖ϕ z.2‖ₑ).measurable.mul + (by fun_prop : Continuous fun z : V × V => ‖f (z.1 - t • z.2) - f z.1‖ₑ).measurable + have hnorm : ∀ (t : ℝ) (y : V), (∫⁻ x, (‖ϕ y‖ₑ * ‖f (x - t • y) - f x‖ₑ) ^ p) ^ (1 / p) = + ‖ϕ y‖ₑ * N (t • y) := by + intro t y + simp_rw [ENNReal.mul_rpow_of_nonneg _ _ hp0.le] + rw [lintegral_const_mul _ ((by fun_prop : Continuous fun x => + ‖f (x - t • y) - f x‖ₑ).measurable.pow_const p), + ENNReal.mul_rpow_of_nonneg _ _ (by positivity), + ← ENNReal.rpow_mul, mul_one_div_cancel hp0.ne', ENNReal.rpow_one, + ← eLpNorm_eq_lintegral_rpow (g := fun x => f (x - t • y) - f x) (by fun_prop) hp0] + have hle : ∀ t : ℝ, eLpNorm (fun x => mollify ϕ f t x - f x) (ENNReal.ofReal p) volume ≤ + ∫⁻ y, ‖ϕ y‖ₑ * N (t • y) := by + intro t + -- Finiteness, by Young's computation. + have hI : ∫⁻ x, (∫⁻ y, ‖ϕ y‖ₑ * ‖f (x - t • y) - f x‖ₑ) ^ p ≠ ⊤ := by + refine ne_top_of_le_ne_top ?_ (lintegral_rpow_lintegral_mul_le (w := fun y => ‖ϕ y‖ₑ) + (h := fun x y => ‖f (x - t • y) - f x‖ₑ) ϕ.continuous.eNorm.measurable + (by fun_prop : Continuous fun z : V × V => ‖f (z.1 - t • z.2) - f z.1‖ₑ).measurable hp) + refine ENNReal.mul_ne_top (ENNReal.rpow_ne_top_of_nonneg (by linarith) hϕ1) + (ne_top_of_le_ne_top (b := (∫⁻ y, ‖ϕ y‖ₑ) * M ^ p) (ENNReal.mul_ne_top hϕ1 + (ENNReal.rpow_ne_top_of_nonneg hp0.le hM)) ?_) + rw [← lintegral_mul_const _ ϕ.continuous.eNorm.measurable] + gcongr with y + rw [← eLpNorm_ofReal_rpow_eq_lintegral hp0 (f := fun x => f (x - t • y) - f x) + (by fun_prop : Continuous fun x => f (x - t • y) - f x).aestronglyMeasurable] + exact ENNReal.rpow_le_rpow (hNM _) hp0.le + have hmin := lintegral_rpow_lintegral_le (hmeas t) hp hI + simp_rw [hnorm] at hmin + refine le_trans ?_ hmin + rw [eLpNorm_eq_lintegral_rpow (by fun_prop) hp0] + refine ENNReal.rpow_le_rpow (lintegral_mono fun x => ENNReal.rpow_le_rpow ?_ hp0.le) + (by positivity) + have hi : Integrable fun y => ϕ y * f (x - t • y) := by + refine (ϕ.integrable.mul_const (SchwartzMap.seminorm ℝ 0 0 f : ℂ)).mono + (by fun_prop : Continuous fun y => ϕ y * f (x - t • y)).aestronglyMeasurable + (ae_of_all _ fun y => ?_) + rw [norm_mul, norm_mul, Complex.norm_real, Real.norm_of_nonneg (apply_nonneg _ _)] + exact mul_le_mul_of_nonneg_left (f.norm_le_seminorm ℝ _) (norm_nonneg _) + have hsub : mollify ϕ f t x - f x = ∫ y, ϕ y * (f (x - t • y) - f x) := by + simp_rw [mul_sub] + rw [integral_sub hi (ϕ.integrable.mul_const _), integral_mul_const, hϕ, one_mul, + mollify_apply] + rw [hsub] + refine (eNorm_integral_le_lintegral_eNorm _).trans_eq ?_ + simp_rw [eNorm_mul] + -- Dominated convergence. + have hlim : Tendsto (fun t : ℝ => ∫⁻ y, ‖ϕ y‖ₑ * N (t • y)) (𝓝 0) (𝓝 0) := by + have h0 : ∫⁻ _ : V, (0 : ℝ≥0∞) = 0 := lintegral_zero + rw [← h0] + refine tendsto_lintegral_filter_of_dominated_convergence (fun y => ‖ϕ y‖ₑ * M) + (Eventually.of_forall fun t => ?_) (Eventually.of_forall fun t => ae_of_all _ fun y => ?_) ?_ + (ae_of_all _ fun y => ?_) + · simp_rw [← hnorm] + exact ((hmeas t).pow_const p).lintegral_prod_left'.pow_const _ + · gcongr + exact hNM _ + · rw [lintegral_mul_const _ ϕ.continuous.eNorm.measurable] + exact ENNReal.mul_ne_top hϕ1 hM + · have h1 : Tendsto (fun t : ℝ => t • y) (𝓝 0) (𝓝 0) := by + have : Tendsto (fun t : ℝ => t • y) (𝓝 0) (𝓝 ((0 : ℝ) • y)) := + (by fun_prop : Continuous fun t : ℝ => t • y).tendsto 0 + rwa [zero_smul] at this + have := ENNReal.Tendsto.const_mul ((tendsto_eLpNorm_translate_sub f hp).comp h1) + (a := ‖ϕ y‖ₑ) (Or.inr eNorm_ne_top) + rwa [mul_zero] at this + exact tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hlim (fun _ => zero_le) hle + +/-- The change of variables `w = R y`: `∫ F (R y) dy = R^{−d} ∫ F`, `R > 0`. -/ +private theorem lintegral_comp_smul {F : V → ℝ≥0∞} (hF : Measurable F) {R : ℝ} (hR : 0 < R) : + ∫⁻ y, F (R • y) = ENNReal.ofReal (R ^ Module.finrank ℝ V)⁻¹ * ∫⁻ y, F y := by + rw [← lintegral_map hF (measurable_const_smul R), Measure.map_addHaar_smul volume hR.ne', + lintegral_smul_measure, smul_eq_mul, abs_of_pos (by positivity)] + +/-- For `1 < p < ∞` and `d > 0`, `‖ϕ_R ∗ f‖_p → 0` as `R → ∞`: by Young's inequality +`‖ϕ_R ∗ f‖_p ≤ ‖ϕ_R‖_p ‖f‖_1`, and `‖ϕ_R‖_p = R^{−d (1 − 1/p)} ‖ϕ‖_p`. -/ +theorem tendsto_eLpNorm_mollify_atTop [Nontrivial V] (ϕ f : 𝓢(V, ℂ)) {p : ℝ} (hp : 1 < p) : + Tendsto (fun R => eLpNorm (mollify ϕ f R) (ENNReal.ofReal p) volume) atTop (𝓝 0) := by + have hp0 : 0 < p := by linarith + set d := Module.finrank ℝ V + have hd : 0 < d := Module.finrank_pos + have hf1 : ∫⁻ y, ‖f y‖ₑ ≠ ⊤ := f.integrable.2.ne + have hϕp : ∫⁻ x, ‖ϕ x‖ₑ ^ p ≠ ⊤ := by + rw [← eLpNorm_ofReal_rpow_eq_lintegral hp0 ϕ.continuous.aestronglyMeasurable] + exact ENNReal.rpow_ne_top_of_nonneg hp0.le (ϕ.memLp _).eLpNorm_lt_top.ne + set A : ℝ≥0∞ := (∫⁻ y, ‖f y‖ₑ) ^ (p - 1) * ((∫⁻ y, ‖f y‖ₑ) * ∫⁻ x, ‖ϕ x‖ₑ ^ p) + have hA : A ≠ ⊤ := ENNReal.mul_ne_top (ENNReal.rpow_ne_top_of_nonneg (by linarith) hf1) + (ENNReal.mul_ne_top hf1 hϕp) + have hle : ∀ R : ℝ, 0 < R → eLpNorm (mollify ϕ f R) (ENNReal.ofReal p) volume ^ p ≤ + ENNReal.ofReal ((R ^ d)⁻¹ ^ (p - 1)) * A := by + intro R hR + set c : ℝ≥0∞ := ENNReal.ofReal (R ^ d)⁻¹ + -- `(ϕ_R ∗ f) (x) = ∫ f (z) ϕ_R (x − z) dz` + have h1 : ∀ x, ‖mollify ϕ f R x‖ₑ ≤ ∫⁻ z, ‖f z‖ₑ * (c * ‖ϕ (R⁻¹ • (x - z))‖ₑ) := by + intro x + rw [mollify_apply] + refine (eNorm_integral_le_lintegral_eNorm _).trans_eq ?_ + have h2 : ∀ y, ‖ϕ y * f (x - R • y)‖ₑ = + (fun w => ‖ϕ (R⁻¹ • w)‖ₑ * ‖f (x - w)‖ₑ) (R • y) := fun y => by + simp only [smul_smul, inv_mul_cancel₀ hR.ne', one_smul, eNorm_mul] + have hm : Measurable fun w => ‖ϕ (R⁻¹ • w)‖ₑ * ‖f (x - w)‖ₑ := + (by fun_prop : Continuous fun w => ‖ϕ (R⁻¹ • w)‖ₑ).measurable.mul + (by fun_prop : Continuous fun w => ‖f (x - w)‖ₑ).measurable + simp_rw [h2] + rw [lintegral_comp_smul hm hR, ← lintegral_const_mul _ hm, + ← lintegral_sub_left_eq_self _ x] + refine lintegral_congr fun z => ?_ + simp only [sub_sub_cancel, c, d] + ring + rw [eLpNorm_ofReal_rpow_eq_lintegral hp0 (mollify ϕ f R).continuous.aestronglyMeasurable] + refine (lintegral_mono fun x => ENNReal.rpow_le_rpow (h1 x) hp0.le).trans + ((lintegral_rpow_lintegral_mul_le (w := fun z => ‖f z‖ₑ) + (h := fun x z => c * ‖ϕ (R⁻¹ • (x - z))‖ₑ) f.continuous.eNorm.measurable ?_ hp.le).trans_eq + ?_) + · exact measurable_const.mul + (by fun_prop : Continuous fun z : V × V => ‖ϕ (R⁻¹ • (z.1 - z.2))‖ₑ).measurable + · have h3 : ∀ z, ∫⁻ x, (c * ‖ϕ (R⁻¹ • (x - z))‖ₑ) ^ p = + ENNReal.ofReal ((R ^ d)⁻¹ ^ (p - 1)) * ∫⁻ x, ‖ϕ x‖ₑ ^ p := by + intro z + rw [lintegral_sub_right_eq_self (fun x => (c * ‖ϕ (R⁻¹ • x)‖ₑ) ^ p) z] + simp_rw [ENNReal.mul_rpow_of_nonneg _ _ hp0.le] + rw [lintegral_const_mul _ + ((by fun_prop : Continuous fun x => ‖ϕ (R⁻¹ • x)‖ₑ).measurable.pow_const p), + lintegral_comp_smul (F := fun x => ‖ϕ x‖ₑ ^ p) (ϕ.continuous.eNorm.measurable.pow_const p) + (inv_pos.2 hR), ← mul_assoc] + congr 1 + simp only [c] + rw [ENNReal.ofReal_rpow_of_nonneg (by positivity) hp0.le, + ← ENNReal.ofReal_mul (by positivity)] + congr 1 + rw [Real.rpow_sub_one (by positivity), inv_pow, inv_inv] + field_simp + rfl + simp_rw [h3] + rw [lintegral_mul_const _ f.continuous.eNorm.measurable] + simp only [A] + ring + refine tendsto_eLpNorm_of_rpow hp0 (tendsto_of_tendsto_of_tendsto_of_le_of_le' + tendsto_const_nhds ?_ (Eventually.of_forall fun _ => zero_le) + ((eventually_gt_atTop 0).mono hle)) + have h4 : Tendsto (fun R : ℝ => (R ^ d)⁻¹ ^ (p - 1)) atTop (𝓝 0) := by + have := ((tendsto_pow_atTop hd.ne').inv_tendsto_atTop (𝕜 := ℝ)).rpow_const + (p := p - 1) (Or.inr (by linarith)) + rwa [Real.zero_rpow (by linarith)] at this + have := ENNReal.Tendsto.mul_const (ENNReal.tendsto_ofReal h4) (b := A) (Or.inr hA) + rwa [ENNReal.ofReal_zero, zero_mul] at this + +/-- On the Fourier side: if `∫ ϕ = 1`, then `‖𝓕 (ϕ_t ∗ f) − 𝓕 f‖_1 = ‖𝓕 ϕ (t ·) 𝓕 f − 𝓕 f‖_1 → 0` +as `t → 0`, by dominated convergence. -/ +theorem tendsto_eLpNorm_fourier_mollify_sub {ϕ : 𝓢(V, ℂ)} (hϕ : ∫ y, ϕ y = 1) (f : 𝓢(V, ℂ)) : + Tendsto (fun t => eLpNorm (fun ξ => 𝓕 (mollify ϕ f t) ξ - 𝓕 f ξ) 1 volume) (𝓝 0) (𝓝 0) := by + set K := SchwartzMap.seminorm ℝ 0 0 (𝓕 ϕ) + have hK : ∀ ξ, ‖𝓕 ϕ ξ - 1‖ₑ ≤ ENNReal.ofReal (K + 1) := fun ξ => by + rw [← ofReal_norm] + refine ENNReal.ofReal_le_ofReal ((norm_sub_le _ _).trans ?_) + rw [norm_one] + gcongr + exact (𝓕 ϕ).norm_le_seminorm ℝ ξ + have hϕ0 : 𝓕 ϕ 0 = 1 := by + rw [SchwartzMap.fourier_coe, Real.fourier_eq] + simpa using hϕ + have heq : ∀ t, eLpNorm (fun ξ => 𝓕 (mollify ϕ f t) ξ - 𝓕 f ξ) 1 volume = + ∫⁻ ξ, ‖𝓕 ϕ (t • ξ) - 1‖ₑ * ‖𝓕 f ξ‖ₑ := fun t => by + rw [eLpNorm_one_eq_lintegral_eNorm (by fun_prop : Continuous fun ξ => + 𝓕 (mollify ϕ f t) ξ - 𝓕 f ξ).aestronglyMeasurable] + refine lintegral_congr fun ξ => ?_ + rw [fourier_mollify, ← eNorm_mul, sub_mul, one_mul] + simp_rw [heq] + have h0 : ∫⁻ _ : V, (0 : ℝ≥0∞) = 0 := lintegral_zero + rw [← h0] + refine tendsto_lintegral_filter_of_dominated_convergence + (fun ξ => ENNReal.ofReal (K + 1) * ‖𝓕 f ξ‖ₑ) + (Eventually.of_forall fun t => ?_) (Eventually.of_forall fun t => ae_of_all _ fun ξ => ?_) ?_ + (ae_of_all _ fun ξ => ?_) + · exact (by fun_prop : Continuous fun ξ => ‖𝓕 ϕ (t • ξ) - 1‖ₑ).measurable.mul + (𝓕 f).continuous.eNorm.measurable + · gcongr + exact hK _ + · rw [lintegral_const_mul _ (𝓕 f).continuous.eNorm.measurable] + exact ENNReal.mul_ne_top ENNReal.ofReal_ne_top (𝓕 f).integrable.2.ne + · have h1 : Tendsto (fun t : ℝ => ‖𝓕 ϕ (t • ξ) - 1‖ₑ) (𝓝 0) (𝓝 0) := by + have := (by fun_prop : Continuous fun t : ℝ => ‖𝓕 ϕ (t • ξ) - 1‖ₑ).tendsto 0 + simpa [hϕ0] using this + have := ENNReal.Tendsto.mul_const h1 (b := ‖𝓕 f ξ‖ₑ) (Or.inr eNorm_ne_top) + rwa [zero_mul] at this + +/-- On the Fourier side: for `d > 0`, `‖𝓕 (ϕ_R ∗ f)‖_1 = ‖𝓕 ϕ (R ·) 𝓕 f‖_1 → 0` as `R → ∞`, by +dominated convergence. -/ +theorem tendsto_eLpNorm_fourier_mollify_atTop [Nontrivial V] (ϕ f : 𝓢(V, ℂ)) : + Tendsto (fun R => eLpNorm (𝓕 (mollify ϕ f R : V → ℂ)) 1 volume) atTop (𝓝 0) := by + set K := SchwartzMap.seminorm ℝ 0 0 (𝓕 ϕ) + have hK : ∀ ξ, ‖𝓕 ϕ ξ‖ₑ ≤ ENNReal.ofReal K := fun ξ => by + rw [← ofReal_norm] + exact ENNReal.ofReal_le_ofReal ((𝓕 ϕ).norm_le_seminorm ℝ ξ) + have heq : ∀ R, eLpNorm (𝓕 (mollify ϕ f R : V → ℂ)) 1 volume = + ∫⁻ ξ, ‖𝓕 ϕ (R • ξ)‖ₑ * ‖𝓕 f ξ‖ₑ := fun R => by + rw [← SchwartzMap.fourier_coe, + eLpNorm_one_eq_lintegral_eNorm (𝓕 (mollify ϕ f R)).continuous.aestronglyMeasurable] + refine lintegral_congr fun ξ => ?_ + rw [fourier_mollify, eNorm_mul] + simp_rw [heq] + have h0 : ∫⁻ _ : V, (0 : ℝ≥0∞) = 0 := lintegral_zero + rw [← h0] + refine tendsto_lintegral_filter_of_dominated_convergence (fun ξ => ENNReal.ofReal K * ‖𝓕 f ξ‖ₑ) + (Eventually.of_forall fun R => ?_) (Eventually.of_forall fun R => ae_of_all _ fun ξ => ?_) ?_ ?_ + · exact (by fun_prop : Continuous fun ξ => ‖𝓕 ϕ (R • ξ)‖ₑ).measurable.mul + (𝓕 f).continuous.eNorm.measurable + · gcongr + exact hK _ + · rw [lintegral_const_mul _ (𝓕 f).continuous.eNorm.measurable] + exact ENNReal.mul_ne_top ENNReal.ofReal_ne_top (𝓕 f).integrable.2.ne + · filter_upwards [Measure.ae_ne volume 0] with ξ hξ + have h1 : Tendsto (fun R : ℝ => R • ξ) atTop (cocompact V) := by + rw [← Metric.cobounded_eq_cocompact, ← tendsto_norm_atTop_iff_cobounded] + simp_rw [norm_smul] + exact tendsto_norm_atTop_atTop.atTop_mul_const (norm_pos_iff.2 hξ) + have h2 : Tendsto (fun R : ℝ => ‖𝓕 ϕ (R • ξ)‖ₑ) atTop (𝓝 0) := by + have := ((𝓕 ϕ).tendsto_cocompact.comp h1).eNorm + rwa [eNorm_zero] at this + have := ENNReal.Tendsto.mul_const h2 (b := ‖𝓕 f ξ‖ₑ) (Or.inr eNorm_ne_top) + rwa [zero_mul] at this + +/-! ### Density -/ + +/-- The Schwartz functions whose Fourier transform is compactly supported in `V ∖ {0}`, that is, the +inverse Fourier transforms of the functions of `C_c^∞ (V ∖ {0})`. -/ +def HasCompactFourierSupportOffZero (f : 𝓢(V, ℂ)) : Prop := + HasCompactSupport (𝓕 (f : V → ℂ)) ∧ 0 ∉ tsupport (𝓕 (f : V → ℂ)) + +/-- **HNVW, Proposition 2.4.23 (ii)**, for a Schwartz function `f` (and `d > 0`): there are Schwartz +functions `f_j` with Fourier transforms compactly supported in `V ∖ {0}` such that `f_j → f` in +`L^p` for every `1 < p < ∞`, and `𝓕 f_j → 𝓕 f` in `L^1`. They are +`f_j = (ϕ_{δ_j} − ϕ_{R_j}) ∗ f`, where `𝓕 ϕ` is a bump function equal to `1` near `0`. -/ +theorem exists_tendsto_hasCompactFourierSupportOffZero [Nontrivial V] (f : 𝓢(V, ℂ)) : + ∃ φ : ℕ → 𝓢(V, ℂ), (∀ j, HasCompactFourierSupportOffZero (φ j)) ∧ + (∀ p : ℝ, 1 < p → Tendsto (fun j => eLpNorm (fun x => φ j x - f x) (ENNReal.ofReal p) volume) + atTop (𝓝 0)) ∧ + Tendsto (fun j => eLpNorm (fun ξ => 𝓕 (φ j) ξ - 𝓕 f ξ) 1 volume) atTop (𝓝 0) := by + -- `ϕ` with `𝓕 ϕ = χ`, a bump function equal to `1` on the unit ball + let χ : ContDiffBump (0 : V) := ⟨1, 2, one_pos, one_lt_two⟩ + have hχc : HasCompactSupport fun ξ => (χ ξ : ℂ) := + χ.hasCompactSupport.comp_left Complex.ofReal_zero + have hχs : ContDiff ℝ ∞ fun ξ => (χ ξ : ℂ) := Complex.ofRealCLM.contDiff.comp χ.contDiff + let X : 𝓢(V, ℂ) := hχc.toSchwartzMap hχs + have hX : ∀ ξ, X ξ = χ ξ := fun _ => rfl + set ϕ : 𝓢(V, ℂ) := 𝓕⁻ X + have hϕX : 𝓕 ϕ = X := FourierTransform.fourier_fourierInv_eq X + have hϕ : ∫ y, ϕ y = 1 := by + have h : 𝓕 ϕ 0 = 1 := by + rw [hϕX, hX, χ.one_of_mem_closedBall (Metric.mem_closedBall_self zero_le_one), + Complex.ofReal_one] + rw [SchwartzMap.fourier_coe, Real.fourier_eq] at h + simpa using h + -- `f_j = (ϕ_{δ_j} − ϕ_{R_j}) ∗ f` with `δ_j = 1 / (j + 1)`, `R_j = j + 1` + set φ : ℕ → 𝓢(V, ℂ) := fun j => + mollify ϕ f (1 / ((j : ℝ) + 1)) - mollify ϕ f ((j : ℝ) + 1) + have hδ : Tendsto (fun j : ℕ => 1 / ((j : ℝ) + 1)) atTop (𝓝 0) := + tendsto_one_div_add_atTop_nhds_zero_nat + have hR : Tendsto (fun j : ℕ => (j : ℝ) + 1) atTop atTop := + tendsto_atTop_add_const_right _ _ tendsto_natCast_atTop_atTop + have hφ : ∀ j ξ, 𝓕 (φ j) ξ = + (χ ((1 / ((j : ℝ) + 1)) • ξ) - χ (((j : ℝ) + 1) • ξ)) * 𝓕 f ξ := fun j ξ => by + have h : 𝓕 (φ j) = 𝓕 (mollify ϕ f (1 / ((j : ℝ) + 1))) - 𝓕 (mollify ϕ f ((j : ℝ) + 1)) := + map_sub (FourierTransform.fourierCLM ℂ 𝓢(V, ℂ)) _ _ + rw [h, sub_apply, fourier_mollify, fourier_mollify, hϕX, hX, hX, sub_mul] + refine ⟨φ, fun j => ⟨?_, ?_⟩, fun p hp => ?_, ?_⟩ + · refine HasCompactSupport.of_support_subset_isCompact + (isCompact_closedBall (0 : V) (2 * ((j : ℝ) + 1))) fun ξ hξ => ?_ + by_contra h + rw [mem_closedBall_zero_iff, not_le] at h + have hj : (0 : ℝ) < j + 1 := by positivity + have h1 : χ ((1 / ((j : ℝ) + 1)) • ξ) = 0 := by + refine χ.zero_of_le_dist ?_ + rw [dist_zero_right, norm_smul, Real.norm_of_nonneg (by positivity), one_div, + ← div_eq_inv_mul, le_div_iff₀ hj] + exact h.le + have h2 : χ (((j : ℝ) + 1) • ξ) = 0 := by + refine χ.zero_of_le_dist ?_ + rw [dist_zero_right, norm_smul, Real.norm_of_nonneg hj.le] + change 2 ≤ _ + nlinarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j), norm_nonneg ξ] + refine hξ ?_ + rw [← SchwartzMap.fourier_coe, hφ, h1, h2] + simp + · rw [notMem_tsupport_iff_eventuallyEq] + have hj : (0 : ℝ) < j + 1 := by positivity + filter_upwards [Metric.closedBall_mem_nhds (0 : V) (one_div_pos.2 hj)] with ξ hξ + rw [mem_closedBall_zero_iff, le_div_iff₀ hj] at hξ + have h1 : χ ((1 / ((j : ℝ) + 1)) • ξ) = 1 := by + refine χ.one_of_mem_closedBall ?_ + rw [mem_closedBall_zero_iff, norm_smul, Real.norm_of_nonneg (by positivity), one_div, + ← div_eq_inv_mul, div_le_iff₀ hj] + change ‖ξ‖ ≤ 1 * _ + nlinarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j), norm_nonneg ξ] + have h2 : χ (((j : ℝ) + 1) • ξ) = 1 := by + refine χ.one_of_mem_closedBall ?_ + rw [mem_closedBall_zero_iff, norm_smul, Real.norm_of_nonneg hj.le, mul_comm] + exact hξ + rw [← SchwartzMap.fourier_coe, hφ, h1, h2] + simp + · have hP : 1 ≤ ENNReal.ofReal p := by simpa using hp.le + have hlim := ((tendsto_eLpNorm_mollify_sub hϕ f hp.le).comp hδ).add + ((tendsto_eLpNorm_mollify_atTop ϕ f hp).comp hR) + rw [add_zero] at hlim + refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hlim + (fun _ => zero_le) fun j => ?_ + have := eLpNorm_sub_le (μ := volume) hP + (f := fun x => mollify ϕ f (1 / ((j : ℝ) + 1)) x - f x) (g := mollify ϕ f ((j : ℝ) + 1)) + refine le_trans (le_of_eq ?_) this + congr 1 + funext x + simp only [φ, sub_apply, Pi.sub_apply] + ring + · have hlim := ((tendsto_eLpNorm_fourier_mollify_sub hϕ f).comp hδ).add + ((tendsto_eLpNorm_fourier_mollify_atTop ϕ f).comp hR) + rw [add_zero] at hlim + refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hlim + (fun _ => zero_le) fun j => ?_ + have := eLpNorm_sub_le (μ := volume) le_rfl + (f := fun ξ => 𝓕 (mollify ϕ f (1 / ((j : ℝ) + 1))) ξ - 𝓕 f ξ) + (g := 𝓕 (mollify ϕ f ((j : ℝ) + 1) : V → ℂ)) + refine le_trans (le_of_eq ?_) this + congr 1 + funext ξ + rw [← SchwartzMap.fourier_coe, Pi.sub_apply, hφ, fourier_mollify, fourier_mollify, hϕX, hX, hX] + ring + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Duality.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Duality.lean new file mode 100644 index 0000000000..e80235ad69 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Duality.lean @@ -0,0 +1,334 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Basic +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Norming + +/-! +# Duality for Fourier multipliers + +For `1 < p < ∞` and `q = p / (p − 1)`: + +* `HarmonicAnalysis.multiplierNorm_conj_conjExponent` (the adjoint): the `L²`-adjoint of `T_m` is + `T_{conj m}`, `∫ T_m f · (conj g) = ∫ f · conj (T_{conj m} g)` + (`HarmonicAnalysis.integral_fourierMultiplier_mul_conj`), so `‖T_m‖_p = ‖T_{conj m}‖_q`, for + bounded + measurable `m`. +* `HarmonicAnalysis.fourierMultiplier_conj`, `HarmonicAnalysis.multiplierNorm_conj_comp_neg` + (conjugation): `conj (T_m (conj f)) = T_{m_reflected} f` with `m_reflected (ξ) = conj (m (−ξ))`, + so + `‖T_{m_reflected}‖_p = ‖T_m‖_p`. + +* `HarmonicAnalysis.multiplierNorm_comp_neg` (reflection): `‖T_{m (−·)}‖_p = ‖T_m‖_p`. +* `HarmonicAnalysis.multiplierNorm_conjExponent`: `‖T_m‖_p = ‖T_m‖_q` for bounded measurable `m`, + the case of scalar symbols of Proposition 5.3.7 of Hytönen–van Neerven–Veraar–Weis (HNVW), by + their proof: `∫ T_m f · g = ∫ T_{m (−·)} g · f` + (`HarmonicAnalysis.integral_fourierMultiplier_comp_neg_mul`) and reflection. + +The adjoint identity holds because both sides equal `∫ m · 𝓕 f · conj (𝓕 g)` +(`HarmonicAnalysis.integral_fourierInv_mul_conj`, Fubini; the bilinear form is +`HarmonicAnalysis.integral_fourierInv_mul`). With Hölder's inequality and the bound +`‖T_{conj m} g‖_q ≤ ‖T_{conj m}‖_q ‖g‖_q`, it gives `|∫ T_m f · (conj g)| ≤ ‖f‖_p ‖T_{conj m}‖_q +‖g‖_q` for every +Schwartz function `g`, hence `‖T_m f‖_p ≤ ‖T_{conj m}‖_q ‖f‖_p`, because Schwartz functions norm +`L^p` +(`HarmonicAnalysis.eLpNorm_le_of_forall_schwartz`). Conjugation rests on +`𝓕 (conj ∘ f) (ξ) = conj (𝓕 f (−ξ))` (`HarmonicAnalysis.fourier_conj`) and on the involution +`f ↦ conj ∘ f` of the Schwartz space (`HarmonicAnalysis.conjSchwartz`). + +## References + +* A. Carbonaro, O. Dragičević, V. Kovač, *Sharp `L^p` estimates of powers of the complex Riesz + transform*, Math. Ann. 386 (2023), [arXiv:2109.08369](https://arxiv.org/abs/2109.08369), + §1.3.1 (for the powers of the complex Riesz transform). +* O. Dragičević, *Analysis of the Ahlfors–Beurling transform*, lecture notes, + [arXiv:2109.04555](https://arxiv.org/abs/2109.04555), Exercise 1.16. +* T. Hytönen, J. van Neerven, M. Veraar, L. Weis, *Analysis in Banach Spaces, Volume I*, Ergebnisse + der Mathematik 63, Springer, 2016: Proposition 5.3.7 (p. 403). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped SchwartzMap FourierTransform ENNReal ComplexConjugate + +namespace HarmonicAnalysis + +/-- Complex conjugation of a Schwartz function, `x ↦ conj (f x)`. -/ +def conjSchwartz {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (f : 𝓢(E, ℂ)) : + 𝓢(E, ℂ) := + SchwartzMap.postcompCLM (Complex.conjCLE : ℂ →L[ℝ] ℂ) f + +@[simp] +theorem conjSchwartz_apply {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (f : 𝓢(E, ℂ)) + (x : E) : conjSchwartz f x = conj (f x) := by + simp [conjSchwartz] + +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] + [MeasurableSpace V] [BorelSpace V] + +/-! ### The Fourier transform and conjugation -/ + +/-- `conj (𝐞 t) = 𝐞 (−t)`. -/ +theorem conj_fourierChar (t : ℝ) : conj ((𝐞 t : ℂ)) = 𝐞 (-t) := by + rw [← Circle.coe_inv_eq_conj, ← AddChar.map_neg_eq_inv] + +/-- `𝓕 (conj ∘ f) (ξ) = conj (𝓕 f (−ξ))`, for every function `f`. -/ +theorem fourier_conj (f : V → ℂ) (ξ : V) : + 𝓕 (fun v => conj (f v)) ξ = conj (𝓕 f (-ξ)) := by + simp only [Real.fourier_eq, ← integral_conj, Circle.smul_def, smul_eq_mul, map_mul, + conj_fourierChar, inner_neg_right, neg_neg] + +/-- `𝓕⁻¹ (conj ∘ f) = conj ∘ 𝓕 f`, for every function `f`. -/ +theorem fourierInv_conj (f : V → ℂ) (ξ : V) : + 𝓕⁻ (fun v => conj (f v)) ξ = conj (𝓕 f ξ) := by + rw [Real.fourierInv_eq_fourier_neg, fourier_conj, neg_neg] + +/-! ### The adjoint -/ + +/-- `∫ 𝓕⁻¹ φ · (conj g) = ∫ φ · conj (𝓕 g)` for integrable `φ` and `g`. -/ +theorem integral_fourierInv_mul_conj {φ g : V → ℂ} (hφ : Integrable φ) (hg : Integrable g) : + ∫ x, 𝓕⁻ φ x * conj (g x) = ∫ ξ, φ ξ * conj (𝓕 g ξ) := by + have hL : Continuous fun p : V × V => (-innerₗ V) p.1 p.2 := by + simp only [LinearMap.neg_apply, innerₗ_apply_apply] + fun_prop + have hg' : Integrable (fun x => conj (g x)) := by + simpa using (Complex.conjCLE : ℂ →L[ℝ] ℂ).integrable_comp hg + have h := VectorFourier.integral_fourierIntegral_smul_eq_flip Real.continuous_fourierChar hL + hφ hg' + have hflip (ξ : V) : VectorFourier.fourierIntegral 𝐞 volume (-innerₗ V).flip + (fun x => conj (g x)) ξ = conj (𝓕 g ξ) := by + rw [← fourierInv_conj, Real.fourierInv_eq] + simp only [VectorFourier.fourierIntegral, LinearMap.flip_apply, LinearMap.neg_apply, + innerₗ_apply_apply, neg_neg] + simp_rw [real_inner_comm ξ] + simp only [smul_eq_mul, hflip] at h + exact h + +/-- Hölder's inequality for the pairing: `|∫ u v| ≤ ‖u‖_P ‖v‖_Q` for conjugate exponents. -/ +theorem enorm_integral_mul_le {α : Type*} [MeasurableSpace α] {μ : Measure α} {u v : α → ℂ} + (hu : AEStronglyMeasurable u μ) (hv : AEStronglyMeasurable v μ) (P Q : ℝ≥0∞) + [ENNReal.HolderConjugate P Q] : ‖∫ x, u x * v x ∂μ‖ₑ ≤ eLpNorm u P μ * eLpNorm v Q μ := by + calc ‖∫ x, u x * v x ∂μ‖ₑ ≤ eLpNorm (fun x => u x * v x) 1 μ := + (eNorm_integral_le_lintegral_eNorm _).trans lintegral_eNorm_le_eLpNorm_one + _ ≤ 1 * eLpNorm u P μ * eLpNorm v Q μ := + eLpNorm_le_eLpNorm_mul_eLpNorm_of_eNorm (fun a b : ℂ => a * b) 1 + (fun hf hg => hf.mul hg) hu hv (ae_of_all _ fun x => by simp) + _ = _ := by rw [one_mul] + +/-- `∫ 𝓕⁻¹ φ · g = ∫ φ · 𝓕⁻¹ g` for integrable `φ` and `g`. -/ +theorem integral_fourierInv_mul {φ g : V → ℂ} (hφ : Integrable φ) (hg : Integrable g) : + ∫ x, 𝓕⁻ φ x * g x = ∫ ξ, φ ξ * 𝓕⁻ g ξ := by + have hg' : Integrable (fun x => conj (g x)) := by + simpa using (Complex.conjCLE : ℂ →L[ℝ] ℂ).integrable_comp hg + have h := integral_fourierInv_mul_conj hφ hg' + simpa only [← fourierInv_conj, Complex.conj_conj] using h + +/-- The `L²`-adjoint of `T_m` is `T_{conj m}`: `∫ T_m f · (conj g) = ∫ f · conj (T_{conj m} g)` +for Schwartz +functions `f`, `g` and a bounded measurable symbol `m`. -/ +theorem integral_fourierMultiplier_mul_conj {m : V → ℂ} (hm : Measurable m) + (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) (f g : 𝓢(V, ℂ)) : + ∫ x, fourierMultiplier m f x * conj (g x) = + ∫ x, f x * conj (fourierMultiplier (fun ξ => conj (m ξ)) g x) := by + have hm' : Measurable fun ξ => conj (m ξ) := Complex.continuous_conj.measurable.comp hm + have hmb' : ∃ C, ∀ ξ, ‖conj (m ξ)‖ ≤ C := by + obtain ⟨C, hC⟩ := hmb + exact ⟨C, fun ξ => by simpa using hC ξ⟩ + have h1 := integral_fourierInv_mul_conj (integrable_smul_fourier hm hmb f) g.integrable + have h2 := integral_fourierInv_mul_conj (integrable_smul_fourier hm' hmb' g) f.integrable + unfold fourierMultiplier + rw [h1] + calc ∫ ξ, m ξ • 𝓕 (f : V → ℂ) ξ * conj (𝓕 (g : V → ℂ) ξ) + = conj (∫ ξ, conj (m ξ) • 𝓕 (g : V → ℂ) ξ * conj (𝓕 (f : V → ℂ) ξ)) := by + rw [← integral_conj] + congr 1 + ext ξ + simp only [smul_eq_mul, map_mul, Complex.conj_conj] + ring + _ = conj (∫ x, 𝓕⁻ (fun ξ => conj (m ξ) • 𝓕 (g : V → ℂ) ξ) x * conj (f x)) := by rw [h2] + _ = _ := by + rw [← integral_conj] + congr 1 + ext x + simp only [map_mul, Complex.conj_conj] + ring + +/-- `‖T_m‖_p ≤ ‖T_{conj m}‖_q`, by duality. -/ +private theorem multiplierNorm_le_conj_conjExponent {m : V → ℂ} (hm : Measurable m) + (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) {p : ℝ} (hp : 1 < p) : + multiplierNorm m p ≤ multiplierNorm (fun ξ => conj (m ξ)) (p / (p - 1)) := by + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).2 rfl + have : ENNReal.HolderConjugate (ENNReal.ofReal p) (ENNReal.ofReal (p / (p - 1))) := + hpq.ennrealOfReal + refine iSup_le fun f => ENNReal.div_le_of_le_mul ?_ + rw [mul_comm] + refine eLpNorm_le_of_forall_schwartz (continuous_fourierMultiplier m f) hp fun g => ?_ + rw [integral_fourierMultiplier_mul_conj hm hmb f g] + set T := fourierMultiplier (fun ξ => conj (m ξ)) g + have hT : Continuous T := continuous_fourierMultiplier _ g + calc ‖∫ x, f x * conj (T x)‖ₑ ≤ eLpNorm f (ENNReal.ofReal p) volume * + eLpNorm (fun x => conj (T x)) (ENNReal.ofReal (p / (p - 1))) volume := + enorm_integral_mul_le f.continuous.aestronglyMeasurable + (Complex.continuous_conj.comp hT).aestronglyMeasurable _ _ + _ = eLpNorm f (ENNReal.ofReal p) volume * eLpNorm T (ENNReal.ofReal (p / (p - 1))) volume := by + congr 1 + exact eLpNorm_conj _ _ _ + _ ≤ eLpNorm f (ENNReal.ofReal p) volume * (multiplierNorm (fun ξ => conj (m ξ)) (p / (p - 1)) * + eLpNorm g (ENNReal.ofReal (p / (p - 1))) volume) := by + gcongr + exact eLpNorm_fourierMultiplier_le _ _ g + _ = _ := (mul_assoc _ _ _).symm + +/-- The adjoint of `T_m` is `T_{conj m}`: for a bounded measurable symbol `m` and `1 < p < ∞`, +`‖T_m‖_{L^p} = ‖T_{conj m}‖_{L^q}`, `q = p / (p − 1)`. -/ +theorem multiplierNorm_conj_conjExponent {m : V → ℂ} (hm : Measurable m) + (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) {p : ℝ} (hp : 1 < p) : + multiplierNorm m p = multiplierNorm (fun ξ => conj (m ξ)) (p / (p - 1)) := by + refine le_antisymm (multiplierNorm_le_conj_conjExponent hm hmb hp) ?_ + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).2 rfl + have hm' : Measurable fun ξ => conj (m ξ) := Complex.continuous_conj.measurable.comp hm + have hmb' : ∃ C, ∀ ξ, ‖conj (m ξ)‖ ≤ C := by + obtain ⟨C, hC⟩ := hmb + exact ⟨C, fun ξ => by simpa using hC ξ⟩ + have h := multiplierNorm_le_conj_conjExponent hm' hmb' hpq.symm.lt + rw [← hpq.symm.conjugate_eq] at h + simpa using h + +/-! ### Conjugation -/ + +/-- Conjugation: `conj (T_m (conj f)) = T_{m_reflected} f`, `m_reflected (ξ) = conj (m (−ξ))`. -/ +theorem fourierMultiplier_conj (m : V → ℂ) (f : V → ℂ) (x : V) : + fourierMultiplier (fun ξ => conj (m (-ξ))) f x = + conj (fourierMultiplier m (fun v => conj (f v)) x) := by + simp only [fourierMultiplier, Real.fourierInv_eq, fourier_conj] + rw [← integral_conj] + conv_lhs => rw [← integral_neg_eq_self] + congr 1 + ext ξ + simp only [Circle.smul_def, smul_eq_mul, map_mul, conj_fourierChar, Complex.conj_conj, neg_neg, + inner_neg_left] + +/-- Conjugation: `‖T_{m_reflected}‖_{L^p} = ‖T_m‖_{L^p}`, `m_reflected (ξ) = conj (m (−ξ))`. -/ +theorem multiplierNorm_conj_comp_neg (m : V → ℂ) (p : ℝ) : + multiplierNorm (fun ξ => conj (m (-ξ))) p = multiplierNorm m p := by + have hsurj : Function.Surjective (conjSchwartz : 𝓢(V, ℂ) → 𝓢(V, ℂ)) := + fun f => ⟨conjSchwartz f, by ext x; simp⟩ + unfold multiplierNorm + rw [← hsurj.iSup_comp] + refine iSup_congr fun f => ?_ + have hf : (conjSchwartz f : V → ℂ) = fun x => conj (f x) := by + ext x + simp + have hT : fourierMultiplier (fun ξ => conj (m (-ξ))) (conjSchwartz f) = + fun x => conj (fourierMultiplier m f x) := by + ext x + have : (fun v => conj (conjSchwartz f v)) = (f : V → ℂ) := by + ext v + simp + rw [fourierMultiplier_conj, this] + rw [hT, hf] + exact congr_arg₂ (· / ·) (eLpNorm_conj _ _ _) (eLpNorm_conj _ _ _) + +/-! ### Reflection, and `‖T_m‖_p = ‖T_m‖_q` -/ + +/-- Reflection: `T_{m (−·)} (f (−·)) = (T_m f) (−·)` (HNVW, p. 403), for every function `f`. -/ +theorem fourierMultiplier_comp_neg (m : V → ℂ) (f : V → ℂ) (x : V) : + fourierMultiplier (fun ξ => m (-ξ)) (fun v => f (-v)) x = fourierMultiplier m f (-x) := by + have h : (fun ξ => m (-ξ) • 𝓕 (fun v => f (-v)) ξ) = + (fun ξ => m ξ • 𝓕 f ξ) ∘ LinearIsometryEquiv.neg ℝ (E := V) := by + funext ξ + exact congrArg (m (-ξ) • ·) + (Real.fourier_comp_linearIsometry (LinearIsometryEquiv.neg ℝ (E := V)) f ξ) + rw [fourierMultiplier, h, Real.fourierInv_comp_linearIsometry] + rfl + +/-- Reflection: `‖T_{m (−·)}‖_{L^p} = ‖T_m‖_{L^p}` (HNVW, p. 403). -/ +theorem multiplierNorm_comp_neg (m : V → ℂ) (p : ℝ) : + multiplierNorm (fun ξ => m (-ξ)) p = multiplierNorm m p := by + let N : 𝓢(V, ℂ) → 𝓢(V, ℂ) := + SchwartzMap.compCLMOfContinuousLinearEquiv ℂ (ContinuousLinearEquiv.neg ℝ : V ≃L[ℝ] V) + have hN : ∀ f x, N f x = f (-x) := fun f x => rfl + have hsurj : Function.Surjective N := fun f => ⟨N f, by + ext x + simp [hN]⟩ + have hneg : ∀ h : V → ℂ, Continuous h → eLpNorm (fun x => h (-x)) (ENNReal.ofReal p) volume = + eLpNorm h (ENNReal.ofReal p) volume := fun h hh => + eLpNorm_comp_measurePreserving hh.aestronglyMeasurable (Measure.measurePreserving_neg _) + unfold multiplierNorm + rw [← hsurj.iSup_comp] + refine iSup_congr fun f => ?_ + have hT : fourierMultiplier (fun ξ => m (-ξ)) (N f) = fun x => fourierMultiplier m f (-x) := + funext fun x => fourierMultiplier_comp_neg m f x + rw [hT, hneg _ (continuous_fourierMultiplier m f)] + congr 1 + exact hneg f f.continuous + +/-- The bilinear pairing (HNVW, proof of Proposition 5.3.7): `∫ T_m f · g = ∫ T_{m (−·)} g · f` for +Schwartz functions `f`, `g` and a bounded measurable symbol `m`. Both sides are +`∫ m 𝓕 f 𝓕⁻¹ g`. -/ +theorem integral_fourierMultiplier_comp_neg_mul {m : V → ℂ} (hm : Measurable m) + (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) (f g : 𝓢(V, ℂ)) : + ∫ x, fourierMultiplier m f x * g x = ∫ x, fourierMultiplier (fun ξ => m (-ξ)) g x * f x := by + have hmb' : ∃ C, ∀ ξ, ‖m (-ξ)‖ ≤ C := by + obtain ⟨C, hC⟩ := hmb + exact ⟨C, fun ξ => hC (-ξ)⟩ + have hm' : Measurable fun ξ => m (-ξ) := hm.comp measurable_neg + unfold fourierMultiplier + rw [integral_fourierInv_mul (integrable_smul_fourier hm hmb f) g.integrable, + integral_fourierInv_mul (integrable_smul_fourier hm' hmb' g) f.integrable] + conv_rhs => rw [← integral_neg_eq_self] + congr 1 + funext ξ + simp only [Real.fourierInv_eq_fourier_neg, neg_neg, smul_eq_mul] + ring + +/-- `‖T_m‖_p ≤ ‖T_{m (−·)}‖_q`, by duality. -/ +private theorem multiplierNorm_le_comp_neg_conjExponent {m : V → ℂ} (hm : Measurable m) + (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) {p : ℝ} (hp : 1 < p) : + multiplierNorm m p ≤ multiplierNorm (fun ξ => m (-ξ)) (p / (p - 1)) := by + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).2 rfl + have : ENNReal.HolderConjugate (ENNReal.ofReal p) (ENNReal.ofReal (p / (p - 1))) := + hpq.ennrealOfReal + refine iSup_le fun f => ENNReal.div_le_of_le_mul ?_ + rw [mul_comm] + refine eLpNorm_le_of_forall_schwartz (continuous_fourierMultiplier m f) hp fun g => ?_ + have hg : (conjSchwartz g : V → ℂ) = fun x => conj (g x) := funext fun x => conjSchwartz_apply g x + have h := integral_fourierMultiplier_comp_neg_mul hm hmb f (conjSchwartz g) + simp only [conjSchwartz_apply] at h + rw [h] + simp_rw [mul_comm _ (f _)] + refine (enorm_integral_mul_le f.continuous.aestronglyMeasurable + (continuous_fourierMultiplier _ _).aestronglyMeasurable (ENNReal.ofReal p) + (ENNReal.ofReal (p / (p - 1)))).trans ?_ + rw [mul_assoc] + gcongr + refine (eLpNorm_fourierMultiplier_le _ _ (conjSchwartz g)).trans_eq ?_ + rw [hg] + exact congrArg _ (eLpNorm_conj _ _ _) + +/-- **HNVW, Proposition 5.3.7**, for scalar symbols: `‖T_m‖_{L^p} = ‖T_m‖_{L^q}`, +`q = p / (p − 1)`, for a bounded measurable symbol `m` and `1 < p < ∞`. By the bilinear pairing and +reflection, `‖T_m‖_p ≤ ‖T_{m (−·)}‖_q = ‖T_m‖_q`, and the same with `p` and `q` interchanged. -/ +theorem multiplierNorm_conjExponent {m : V → ℂ} (hm : Measurable m) (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) + {p : ℝ} (hp : 1 < p) : multiplierNorm m p = multiplierNorm m (p / (p - 1)) := by + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).2 rfl + have h := multiplierNorm_le_comp_neg_conjExponent hm hmb hpq.symm.lt + rw [← hpq.symm.conjugate_eq, multiplierNorm_comp_neg] at h + refine le_antisymm ?_ h + rw [← multiplierNorm_comp_neg m (p / (p - 1))] + exact multiplierNorm_le_comp_neg_conjExponent hm hmb hp + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Extension.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Extension.lean new file mode 100644 index 0000000000..2ef1d103cb --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Extension.lean @@ -0,0 +1,149 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Basic +import Mathlib.Analysis.Normed.Operator.Extend + +/-! +# Fourier multipliers as operators on `L^p` + +For `1 ≤ p < ∞` and a bounded measurable symbol `m`, `HarmonicAnalysis.multiplierNorm m p` is the +norm of `T_m` as an operator on `L^p (V)`: it is finite if and only if `T_m` extends from Schwartz +functions to a bounded operator on `L^p (V)`, that is, if and only if `m` is an `L^p` Fourier +multiplier; the extension is unique, and its norm is `multiplierNorm m p`. + +## Main results + +* `HarmonicAnalysis.existsUnique_extension_of_multiplierNorm_ne_top`: if `multiplierNorm m p ≠ ∞`, + there is exactly one bounded operator `T` on `L^p (V)` with `T f = T_m f` almost everywhere for + every Schwartz function `f`. +* `HarmonicAnalysis.enorm_eq_multiplierNorm`: the norm of such a `T` is `multiplierNorm m p` (in + particular, `multiplierNorm m p ≠ ∞` if there is one). + +Both are the density of Schwartz functions in `L^p`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped SchwartzMap FourierTransform ENNReal + +namespace HarmonicAnalysis + +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] + [MeasurableSpace V] [BorelSpace V] + +/-- `T_m (f + g) = T_m f + T_m g` for Schwartz functions `f`, `g` and a bounded measurable `m`. -/ +theorem fourierMultiplier_add {m : V → ℂ} (hm : Measurable m) (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) + (f g : 𝓢(V, ℂ)) : fourierMultiplier m (f + g : 𝓢(V, ℂ)) = + fourierMultiplier m f + fourierMultiplier m g := by + have hL : Continuous fun p : V × V ↦ (-innerₗ V) p.1 p.2 := by + simp only [LinearMap.neg_apply, innerₗ_apply_apply] + fun_prop + have h := VectorFourier.fourierIntegral_add Real.continuous_fourierChar hL + (integrable_smul_fourier hm hmb f) (integrable_smul_fourier hm hmb g) + have hadd : (fun ξ => m ξ • 𝓕 ((f + g : 𝓢(V, ℂ)) : V → ℂ) ξ) = + (fun ξ => m ξ • 𝓕 (f : V → ℂ) ξ) + fun ξ => m ξ • 𝓕 (g : V → ℂ) ξ := by + funext ξ + simp only [Pi.add_apply, ← SchwartzMap.fourier_coe, FourierTransform.fourier_add, add_apply, + smul_add] + unfold fourierMultiplier + rw [hadd] + exact h + +/-- `T_m (a f) = a T_m f` for Schwartz functions `f`. -/ +theorem fourierMultiplier_smul (m : V → ℂ) (a : ℂ) (f : 𝓢(V, ℂ)) : + fourierMultiplier m (a • f : 𝓢(V, ℂ)) = a • fourierMultiplier m f := by + have hsmul : (fun ξ => m ξ • 𝓕 ((a • f : 𝓢(V, ℂ)) : V → ℂ) ξ) = + a • fun ξ => m ξ • 𝓕 (f : V → ℂ) ξ := by + funext ξ + simp only [Pi.smul_apply, ← SchwartzMap.fourier_coe, FourierTransform.fourier_smul, smul_apply, + smul_comm a] + unfold fourierMultiplier + rw [hsmul] + exact VectorFourier.fourierIntegral_const_smul _ _ _ _ _ + +/-- `T_m f ∈ L^p` for every Schwartz function `f` if `multiplierNorm m p` is finite. -/ +theorem memLp_fourierMultiplier {m : V → ℂ} {p : ℝ} (hM : multiplierNorm m p ≠ ∞) + (f : 𝓢(V, ℂ)) : MemLp (fourierMultiplier m f) (ENNReal.ofReal p) volume := + (eLpNorm_fourierMultiplier_le m p f).trans_lt + (ENNReal.mul_lt_top hM.lt_top (f.memLp _).eLpNorm_lt_top) + +/-- If `multiplierNorm m p` is finite, then there is exactly one bounded operator `T` on `L^p (V)` +with `T f = T_m f` for every Schwartz function `f` (`m` bounded and measurable, `1 ≤ p < ∞`). -/ +theorem existsUnique_extension_of_multiplierNorm_ne_top {m : V → ℂ} (hm : Measurable m) + (hmb : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C) {p : ℝ} [Fact (1 ≤ ENNReal.ofReal p)] + (hM : multiplierNorm m p ≠ ∞) : + ∃! T : Lp ℂ (ENNReal.ofReal p) (volume : Measure V) →L[ℂ] + Lp ℂ (ENNReal.ofReal p) (volume : Measure V), + ∀ f : 𝓢(V, ℂ), T (f.toLp (ENNReal.ofReal p)) =ᵐ[volume] fourierMultiplier m f := by + have hmem := memLp_fourierMultiplier hM + -- `T_m` as a linear map from Schwartz functions to `L^p`. + let S : 𝓢(V, ℂ) →ₗ[ℂ] Lp ℂ (ENNReal.ofReal p) (volume : Measure V) := + { toFun := fun f => (hmem f).toLp _ + map_add' := fun f g => by + rw [← MemLp.toLp_add] + exact MemLp.toLp_congr _ _ (ae_of_all _ fun x => by rw [fourierMultiplier_add hm hmb f g]) + map_smul' := fun a f => by + rw [RingHom.id_apply, ← MemLp.toLp_const_smul] + exact MemLp.toLp_congr _ _ (ae_of_all _ fun x => by rw [fourierMultiplier_smul m a f]) } + let e : 𝓢(V, ℂ) →ₗ[ℂ] Lp ℂ (ENNReal.ofReal p) (volume : Measure V) := + (SchwartzMap.toLpCLM ℂ ℂ (ENNReal.ofReal p) volume).toLinearMap + have he : DenseRange e := SchwartzMap.denseRange_toLpCLM ENNReal.ofReal_ne_top + have hS : ∀ f, ‖S f‖ ≤ (multiplierNorm m p).toReal * ‖e f‖ := fun f => by + have h1 : ‖S f‖ = (eLpNorm (fourierMultiplier m f) (ENNReal.ofReal p) volume).toReal := + Lp.norm_toLp _ (hmem f) + have h2 : ‖e f‖ = (eLpNorm f (ENNReal.ofReal p) volume).toReal := SchwartzMap.norm_toLp + rw [h1, h2, ← ENNReal.toReal_mul] + exact ENNReal.toReal_mono (ENNReal.mul_ne_top hM (f.memLp _).eLpNorm_lt_top.ne) + (eLpNorm_fourierMultiplier_le m p f) + refine ⟨S.extendOfNorm e, fun f => ?_, fun T hT => ?_⟩ + · have h : S.extendOfNorm e (f.toLp (ENNReal.ofReal p)) = S f := + LinearMap.extendOfNorm_eq he ⟨_, hS⟩ f + rw [h] + exact MemLp.coeFn_toLp (hmem f) + · refine (LinearMap.extendOfNorm_unique he _ hS T (LinearMap.ext fun f => ?_)).symm + exact Lp.ext ((hT f).trans (MemLp.coeFn_toLp (hmem f)).symm) + +/-- A bounded operator `T` on `L^p (V)`, `1 ≤ p < ∞`, with `T f = T_m f` for every Schwartz function +`f` has the norm `multiplierNorm m p`. -/ +theorem enorm_eq_multiplierNorm {m : V → ℂ} {p : ℝ} [Fact (1 ≤ ENNReal.ofReal p)] + {T : Lp ℂ (ENNReal.ofReal p) (volume : Measure V) →L[ℂ] + Lp ℂ (ENNReal.ofReal p) (volume : Measure V)} + (hT : ∀ f : 𝓢(V, ℂ), T (f.toLp (ENNReal.ofReal p)) =ᵐ[volume] fourierMultiplier m f) : + ‖T‖ₑ = multiplierNorm m p := by + have hTf : ∀ f : 𝓢(V, ℂ), ‖T (f.toLp (ENNReal.ofReal p))‖ₑ = + eLpNorm (fourierMultiplier m f) (ENNReal.ofReal p) volume := fun f => by + rw [Lp.eNorm_def] + exact eLpNorm_congr_ae (hT f) + have hf : ∀ f : 𝓢(V, ℂ), ‖f.toLp (ENNReal.ofReal p) (volume : Measure V)‖ₑ = + eLpNorm f (ENNReal.ofReal p) volume := fun f => by + rw [Lp.eNorm_def] + exact eLpNorm_congr_ae (f.coeFn_toLp _ _) + refine le_antisymm ?_ (iSup_le fun f => ENNReal.div_le_of_le_mul ?_) + · rcases eq_or_ne (multiplierNorm m p) ∞ with hM | hM + · rw [hM] + exact le_top + have he : DenseRange (SchwartzMap.toLpCLM ℝ ℂ (ENNReal.ofReal p) (volume : Measure V)) := + SchwartzMap.denseRange_toLpCLM ENNReal.ofReal_ne_top + have hbound : ∀ x, ‖T x‖ ≤ (multiplierNorm m p).toReal * ‖x‖ := by + intro x + refine he.induction_on (p := fun x => ‖T x‖ ≤ (multiplierNorm m p).toReal * ‖x‖) x + (isClosed_le T.continuous.norm (continuous_const.mul continuous_norm)) fun f => ?_ + rw [SchwartzMap.toLpCLM_apply, ← toReal_eNorm, ← toReal_eNorm, hTf, hf, ← ENNReal.toReal_mul] + exact ENNReal.toReal_mono (ENNReal.mul_ne_top hM (f.memLp _).eLpNorm_lt_top.ne) + (eLpNorm_fourierMultiplier_le m p f) + rw [← ofReal_norm] + exact ENNReal.ofReal_le_of_le_toReal (T.opNorm_le_bound ENNReal.toReal_nonneg hbound) + · rw [← hTf, ← hf] + exact T.le_opENorm _ + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Norming.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Norming.lean new file mode 100644 index 0000000000..73106fc756 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/FourierMultiplier/Norming.lean @@ -0,0 +1,247 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.Distribution.SchwartzSpace.Basic +public import Mathlib.MeasureTheory.Function.LpSeminorm.Basic +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension +import Mathlib.Analysis.SpecialFunctions.Pow.Continuity +import Mathlib.Geometry.Manifold.SmoothApprox +import Mathlib.MeasureTheory.Function.LpSeminorm.Indicator +import Mathlib.MeasureTheory.Integral.Bochner.ContinuousLinearMap + +/-! +# The `L^p` norm is normed by Schwartz functions + +`HarmonicAnalysis.eLpNorm_le_of_forall_schwartz`: for `1 < p < ∞`, `q = p / (p − 1)` and a +continuous function `h` on a finite-dimensional real normed space with a measure that is finite on +compact sets, if `‖∫ h · (conj g)‖ ≤ A ‖g‖_q` for every Schwartz function `g`, then `‖h‖_p ≤ A`. + +The proof is the standard one. The bound passes from Schwartz functions to continuous compactly +supported ones by uniform approximation with a fixed compact support +(`Continuous.exists_contDiff_approx`). It is then tested on `g = χ |h|^{p−2} h`, `χ` a bump +function equal to `1` on a ball: `∫ h (conj g) = ∫ χ |h|^p =: I` and `‖g‖_q^q ≤ I`, so that +`I ≤ A I^{1/q}`, `I^{1/p} ≤ A`, and monotone convergence over the balls concludes. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology Metric +open scoped SchwartzMap ENNReal ComplexConjugate ContDiff + +namespace HarmonicAnalysis + +variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] + [MeasurableSpace V] [BorelSpace V] {μ : Measure V} [IsFiniteMeasureOnCompacts μ] + +/-- The bound `‖∫ h · (conj g)‖ ≤ A ‖g‖_q` passes from Schwartz functions `g` to continuous +compactly +supported ones. -/ +private theorem norm_integral_mul_conj_le_of_hasCompactSupport {h : V → ℂ} (hh : Continuous h) + {q : ℝ≥0∞} (hq : 1 ≤ q) (hq' : q ≠ ⊤) {A : ℝ≥0∞} (hA : A ≠ ⊤) + (H : ∀ g : 𝓢(V, ℂ), ‖∫ x, h x * conj (g x) ∂μ‖ₑ ≤ A * eLpNorm g q μ) + {g : V → ℂ} (hg : Continuous g) (hgc : HasCompactSupport g) : + ‖∫ x, h x * conj (g x) ∂μ‖ₑ ≤ A * eLpNorm g q μ := by + set K := tsupport g + have hK : IsCompact K := hgc + have hsupp : Function.support g ⊆ K := subset_tsupport g + have hφ (j : ℕ) : ∃ φ : V → ℂ, ContDiff ℝ ∞ φ ∧ (∀ x, dist (φ x) (g x) < 1 / (j + 1)) ∧ + Function.support φ ⊆ Function.support g := + hg.exists_contDiff_approx ⊤ continuous_const (fun _ => by positivity) + choose φ hφs hφd hφsupp using hφ + have hφK (j : ℕ) (x : V) (hx : x ∉ K) : φ j x = 0 := + Function.notMem_support.1 fun hx' => hx (hsupp (hφsupp j hx')) + -- the pairings converge, by dominated convergence + have hlim : Tendsto (fun j => ∫ x, h x * conj (φ j x) ∂μ) atTop + (𝓝 (∫ x, h x * conj (g x) ∂μ)) := by + refine tendsto_integral_of_dominated_convergence (K.indicator fun x => ‖h x‖ * (‖g x‖ + 1)) + (fun j => (hh.mul (Complex.continuous_conj.comp (hφs j).continuous)).aestronglyMeasurable) + ((integrable_indicator_iff hK.measurableSet).2 + ((by fun_prop : Continuous fun x => ‖h x‖ * (‖g x‖ + 1)).continuousOn.integrableOn_compact + hK)) + (fun j => ae_of_all _ fun x => ?_) (ae_of_all _ fun x => ?_) + · by_cases hx : x ∈ K + · rw [Set.indicator_of_mem hx, norm_mul, Complex.norm_conj] + gcongr + have h1 : 1 / ((j : ℝ) + 1) ≤ 1 := by + rw [div_le_one (by positivity)] + linarith [(Nat.cast_nonneg j : (0 : ℝ) ≤ j)] + have := norm_le_norm_add_norm_sub' (φ j x) (g x) + rw [← dist_eq_norm] at this + linarith [hφd j x] + · simp [Set.indicator_of_notMem hx, hφK j x hx] + · have hconv : Tendsto (fun j => φ j x) atTop (𝓝 (g x)) := + tendsto_iff_dist_tendsto_zero.2 (squeeze_zero (fun _ => dist_nonneg) + (fun j => (hφd j x).le) tendsto_one_div_add_atTop_nhds_zero_nat) + exact ((continuous_const.mul Complex.continuous_conj).tendsto (g x)).comp hconv + -- the norms converge from above + set c := μ K ^ (1 / q.toReal) + have hc : c ≠ ⊤ := ENNReal.rpow_ne_top_of_nonneg (by positivity) hK.measure_lt_top.ne + have hnorm (j : ℕ) : + eLpNorm (φ j) q μ ≤ eLpNorm g q μ + ENNReal.ofReal (1 / (j + 1)) * c := by + calc eLpNorm (φ j) q μ = eLpNorm (g + (φ j - g)) q μ := by rw [add_sub_cancel] + _ ≤ eLpNorm g q μ + eLpNorm (φ j - g) q μ := eLpNorm_add_le hq + _ ≤ _ := by + gcongr + exact eLpNorm_sub_le_of_dist_bdd μ hq' hK.measurableSet.nullMeasurableSet + (by positivity) ((hφs j).continuous.sub hg).aestronglyMeasurable + (fun x => (hφd j x).le) ((hφsupp j).trans hsupp) hsupp + have hlim' : Tendsto (fun j : ℕ => A * (eLpNorm g q μ + ENNReal.ofReal (1 / (j + 1)) * c)) + atTop (𝓝 (A * eLpNorm g q μ)) := by + have h1 : Tendsto (fun j : ℕ => ENNReal.ofReal (1 / (j + 1))) atTop (𝓝 0) := by + simpa using ENNReal.tendsto_ofReal (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) + simpa using ENNReal.Tendsto.const_mul + (tendsto_const_nhds.add (ENNReal.Tendsto.mul_const h1 (Or.inr hc))) (Or.inr hA) + refine le_of_tendsto_of_tendsto' hlim.eNorm hlim' fun j => ?_ + calc ‖∫ x, h x * conj (φ j x) ∂μ‖ₑ ≤ A * eLpNorm (φ j) q μ := + H ((hgc.mono (hφsupp j)).toSchwartzMap (hφs j)) + _ ≤ _ := by gcongr; exact hnorm j + +/-- If `J ≤ A J^{1/q}` with `J < ∞` and `1/p + 1/q = 1`, then `J ≤ A^p`. -/ +private theorem le_rpow_of_le_mul_rpow {J A : ℝ≥0∞} {p q : ℝ} (hpq : p.HolderConjugate q) + (hJ : J ≠ ⊤) (h : J ≤ A * J ^ (1 / q)) : J ≤ A ^ p := by + rcases eq_or_ne J 0 with h0 | h0 + · simp [h0] + have hsplit : J ^ (1 / p) * J ^ (1 / q) = J := by + rw [← ENNReal.rpow_add _ _ h0 hJ, hpq.one_div_add_one_div, div_one, ENNReal.rpow_one] + have hq0 : J ^ (1 / q) ≠ 0 := (ENNReal.rpow_pos (pos_iff_ne_zero.2 h0) hJ).ne' + have hqt : J ^ (1 / q) ≠ ⊤ := ENNReal.rpow_ne_top_of_nonneg hpq.symm.one_div_nonneg hJ + have : J ^ (1 / p) ≤ A := by + rw [← ENNReal.mul_le_mul_iff_left hq0 hqt, hsplit] + exact h + rwa [one_div, ENNReal.rpow_inv_le_iff hpq.pos] at this + +/-- `‖ |z|^{p−2} z ‖ = |z|^{p−1}`. -/ +private theorem norm_rpow_sub_two_mul {p : ℝ} (hp : 1 < p) (z : ℂ) : + ‖((‖z‖ ^ (p - 2) : ℝ) : ℂ) * z‖ = ‖z‖ ^ (p - 1) := by + rw [norm_mul, Complex.norm_real, Real.norm_of_nonneg (by positivity)] + rcases eq_or_ne z 0 with rfl | hz + · simp [Real.zero_rpow (by linarith : p - 1 ≠ 0)] + · conv_rhs => rw [show p - 1 = (p - 2) + 1 by ring, Real.rpow_add (norm_pos_iff.2 hz), + Real.rpow_one] + +/-- The function `z ↦ |z|^{p−2} z` is continuous for `1 < p`. -/ +private theorem continuous_rpow_sub_two_mul {p : ℝ} (hp : 1 < p) : + Continuous fun z : ℂ => ((‖z‖ ^ (p - 2) : ℝ) : ℂ) * z := by + rw [continuous_iff_continuousAt] + intro z + rcases eq_or_ne z 0 with rfl | hz + · have hc : Continuous fun z : ℂ => ‖z‖ ^ (p - 1) := + continuous_norm.rpow_const fun _ => Or.inr (by linarith) + change Tendsto _ (𝓝 0) (𝓝 (((‖(0 : ℂ)‖ ^ (p - 2) : ℝ) : ℂ) * 0)) + rw [mul_zero, tendsto_zero_iff_norm_tendsto_zero] + simp_rw [norm_rpow_sub_two_mul hp] + simpa [Real.zero_rpow (by linarith : p - 1 ≠ 0)] using hc.tendsto 0 + · exact (Complex.continuous_ofReal.continuousAt.comp + ((Real.continuousAt_rpow_const _ _ (Or.inl (norm_ne_zero_iff.2 hz))).comp + continuous_norm.continuousAt)).mul continuousAt_id + +/-- **Norming by Schwartz functions.** Let `1 < p < ∞` and `q = p / (p − 1)`. If `h` is +continuous and `‖∫ h · (conj g)‖ ≤ A ‖g‖_q` for every Schwartz function `g`, then `‖h‖_p ≤ A`. -/ +theorem eLpNorm_le_of_forall_schwartz {h : V → ℂ} (hh : Continuous h) {p : ℝ} (hp : 1 < p) + {A : ℝ≥0∞} + (H : ∀ g : 𝓢(V, ℂ), ‖∫ x, h x * conj (g x) ∂μ‖ₑ ≤ + A * eLpNorm g (ENNReal.ofReal (p / (p - 1))) μ) : + eLpNorm h (ENNReal.ofReal p) μ ≤ A := by + rcases eq_or_ne A ⊤ with rfl | hA + · exact le_top + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).2 rfl + set q := p / (p - 1) + have hp0 : 0 < p := hpq.pos + have hq1 : 1 < q := hpq.symm.lt + have hQ0 : ENNReal.ofReal q ≠ 0 := by simpa using hpq.symm.pos + have H' (g : V → ℂ) (hg : Continuous g) (hgc : HasCompactSupport g) : + ‖∫ x, h x * conj (g x) ∂μ‖ₑ ≤ A * eLpNorm g (ENNReal.ofReal q) μ := + norm_integral_mul_conj_le_of_hasCompactSupport hh (ENNReal.one_le_ofReal.2 hq1.le) + ENNReal.ofReal_ne_top hA H hg hgc + have hcont : Continuous fun x => ‖h x‖ ^ p := hh.norm.rpow_const fun _ => Or.inr hp0.le + -- the integrals over the balls + have hball (N : ℕ) : ∫⁻ x, (closedBall (0 : V) (N + 1)).indicator + (fun x => ‖h x‖ₑ ^ p) x ∂μ ≤ A ^ p := by + let χ : ContDiffBump (0 : V) := ⟨N + 1, N + 2, by positivity, by linarith⟩ + set g : V → ℂ := fun x => (χ x : ℂ) * (((‖h x‖ ^ (p - 2) : ℝ) : ℂ) * h x) + have hgc : Continuous g := + (Complex.continuous_ofReal.comp χ.continuous).mul + ((continuous_rpow_sub_two_mul hp).comp hh) + have hgs : HasCompactSupport g := by + have : HasCompactSupport ((Complex.ofReal ∘ χ) * + fun x => ((‖h x‖ ^ (p - 2) : ℝ) : ℂ) * h x) := + (χ.hasCompactSupport.comp_left Complex.ofReal_zero).mul_right + exact this + have hnn (x : V) : 0 ≤ χ x * ‖h x‖ ^ p := mul_nonneg χ.nonneg (by positivity) + have hint : Integrable (fun x => χ x * ‖h x‖ ^ p) μ := + (χ.continuous.mul hcont).integrable_of_hasCompactSupport + (χ.hasCompactSupport.mul_right (f' := fun x => ‖h x‖ ^ p)) + set J := ∫⁻ x, ENNReal.ofReal (χ x * ‖h x‖ ^ p) ∂μ + have hpair : ‖∫ x, h x * conj (g x) ∂μ‖ₑ = J := by + have hpt (x : V) : h x * conj (g x) = ((χ x * ‖h x‖ ^ p : ℝ) : ℂ) := by + have h2 : ‖h x‖ ^ (p - 2) * ‖h x‖ ^ 2 = ‖h x‖ ^ p := by + rw [← Real.rpow_natCast, ← Real.rpow_add' (norm_nonneg _) (by norm_num; linarith)] + norm_num + calc h x * conj (g x) = (χ x : ℂ) * ((‖h x‖ ^ (p - 2) : ℝ) : ℂ) * (h x * conj (h x)) := by + simp only [g, map_mul, Complex.conj_ofReal] + ring + _ = _ := by + rw [Complex.mul_conj, Complex.normSq_eq_norm_sq, ← h2, Complex.ofReal_mul, + Complex.ofReal_mul] + ring + simp_rw [hpt, integral_complex_ofReal] + rw [← ofReal_norm, Complex.norm_real, Real.norm_of_nonneg (integral_nonneg hnn)] + exact ofReal_integral_eq_lintegral_ofReal hint (ae_of_all _ hnn) + have hJ : J ≠ ⊤ := hpair ▸ eNorm_ne_top + have hnormg : eLpNorm g (ENNReal.ofReal q) μ ≤ J ^ (1 / q) := by + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal hQ0 ENNReal.ofReal_ne_top + hgc.aestronglyMeasurable, ENNReal.toReal_ofReal (by linarith)] + refine ENNReal.rpow_le_rpow (lintegral_mono fun x => ?_) (by positivity) + rw [← ofReal_norm, ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) (by linarith)] + apply ENNReal.ofReal_le_ofReal + rw [norm_mul, Complex.norm_real, Real.norm_of_nonneg χ.nonneg, norm_rpow_sub_two_mul hp, + Real.mul_rpow χ.nonneg (by positivity), ← Real.rpow_mul (norm_nonneg _), + hpq.sub_one_mul_conj] + gcongr + calc χ x ^ q ≤ χ x ^ (1 : ℝ) := + Real.rpow_le_rpow_of_exponent_ge' χ.nonneg χ.le_one zero_le_one hq1.le + _ = χ x := Real.rpow_one _ + have hJA : J ≤ A ^ p := le_rpow_of_le_mul_rpow hpq hJ <| by + calc J = ‖∫ x, h x * conj (g x) ∂μ‖ₑ := hpair.symm + _ ≤ A * eLpNorm g (ENNReal.ofReal q) μ := H' g hgc hgs + _ ≤ A * J ^ (1 / q) := by gcongr + refine le_trans (lintegral_mono fun x => ?_) hJA + by_cases hx : x ∈ closedBall (0 : V) (N + 1) + · rw [Set.indicator_of_mem hx, χ.one_of_mem_closedBall hx, one_mul, ← ofReal_norm, + ENNReal.ofReal_rpow_of_nonneg (norm_nonneg _) hp0.le] + · rw [Set.indicator_of_notMem hx] + exact zero_le + -- monotone convergence over the balls + have hmeas : Measurable fun x => ‖h x‖ₑ ^ p := hh.measurable.eNorm.pow_const _ + have hmono : Monotone fun N : ℕ => + (closedBall (0 : V) (N + 1)).indicator (fun x => ‖h x‖ₑ ^ p) := by + intro N M hNM + exact Set.indicator_le_indicator_of_subset + (closedBall_subset_closedBall (by gcongr)) (fun _ => zero_le) + have hsup (x : V) : ‖h x‖ₑ ^ p = + ⨆ N : ℕ, (closedBall (0 : V) (N + 1)).indicator (fun x => ‖h x‖ₑ ^ p) x := by + obtain ⟨N, hN⟩ := exists_nat_ge ‖x‖ + refine le_antisymm (le_iSup_of_le N ?_) (iSup_le fun N => Set.indicator_le_self _ _ x) + rw [Set.indicator_of_mem (mem_closedBall_zero_iff.2 (by linarith))] + have hlint : ∫⁻ x, ‖h x‖ₑ ^ p ∂μ ≤ A ^ p := by + calc ∫⁻ x, ‖h x‖ₑ ^ p ∂μ + = ∫⁻ x, ⨆ N : ℕ, (closedBall (0 : V) (N + 1)).indicator (fun x => ‖h x‖ₑ ^ p) x ∂μ := + lintegral_congr hsup + _ = ⨆ N : ℕ, ∫⁻ x, (closedBall (0 : V) (N + 1)).indicator (fun x => ‖h x‖ₑ ^ p) x ∂μ := + lintegral_iSup (fun N => hmeas.indicator measurableSet_closedBall) hmono + _ ≤ A ^ p := iSup_le hball + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal (by simpa using hp0) ENNReal.ofReal_ne_top + hh.aestronglyMeasurable, ENNReal.toReal_ofReal hp0.le, one_div, ENNReal.rpow_inv_le_iff hp0] + exact hlint + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Basic.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Basic.lean new file mode 100644 index 0000000000..4512e0e099 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Basic.lean @@ -0,0 +1,314 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import Mathlib.Analysis.Calculus.FDeriv.Basic +public import Mathlib.Analysis.Calculus.ContDiff.Defs +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.MeasureTheory.Function.LocallyIntegrable +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs +import Mathlib.Analysis.Calculus.FDeriv.Mul +import Mathlib.Analysis.Distribution.AEEqOfIntegralContDiff +import Mathlib.MeasureTheory.Function.LpSeminorm.Indicator + +/-! +# Weak derivatives and local Sobolev spaces + +For a real normed space `E` with a measure (`volume`), an open set `Ω ⊆ E` and functions with +values in a real normed space `F`: + +* `HarmonicAnalysis.MemLpLoc f p Ω`: `f ∈ L^p_loc (Ω)`, that is, `f ∈ L^p (K)` for every compact + `K ⊆ Ω`. +* `HarmonicAnalysis.HasWeakLineDerivOn Ω f g v`: `g` is a weak derivative of `f` in the + direction `v` on `Ω`, that is, `∫ (∂_v φ) f = −∫ φ g` for every real `φ ∈ C_c^∞ (E)` with + `tsupport φ ⊆ Ω`. +* `HarmonicAnalysis.HasWeakFDerivOn Ω f Df`: `Df : E → (E →L[ℝ] F)` is a weak derivative of `f` + on `Ω`: for every `v`, `x ↦ Df x v` is a weak derivative of `f` in the direction `v`. + +The integrals are Bochner integrals, so the definitions are meant for a complete `F`: for an +incomplete `F`, Mathlib's integral is `0` and every `g` would be a weak derivative. The theorems of +the package use them with `F = ℂ` and `F = ℂ →L[ℝ] ℂ`. + +The local Sobolev space `W^{1,p}_loc (Ω)` is that of the `f ∈ L^p_loc (Ω)` with a weak derivative +`Df ∈ L^p_loc (Ω)`; the theorems take the three conditions `MemLpLoc f p Ω`, +`HasWeakFDerivOn Ω f Df` and `MemLpLoc Df p Ω`. This is the standard definition (weak partial +derivatives in `L^p_loc`): for `E = ℝⁿ`, `Df x` is determined by the partial derivatives +`Df x eᵢ`, and `‖Df x‖` is equivalent to `Σᵢ ‖Df x eᵢ‖`. The test functions are real-valued; for +complex `f` this is equivalent to complex-valued test functions, by linearity. + +On the plane, `HarmonicAnalysis.dzPart A = ½ (A 1 − i A i)` and +`HarmonicAnalysis.dzbarPart A = ½ (A 1 + i A i)` are the complex-linear and the +complex-antilinear parts of a real-linear map `A : ℂ → ℂ`: +`A v = (dzPart A) v + (dzbarPart A) (conj v)`; +for `A = Df (z)` they are the Wirtinger derivatives `∂f (z)` and `∂_zbar f (z)`. + +## Main results + +* `HarmonicAnalysis.HasWeakLineDerivOn.ae_eq`: weak derivatives are unique almost everywhere. +* `HarmonicAnalysis.HasWeakFDerivOn.smul_of_tsupport_subset`: for a smooth `η` with compact + support in `Ω`, `η f` has the weak derivative `η Df + Dη ⊗ f` on the whole space (the Leibniz + rule). +* `HarmonicAnalysis.MemLpLoc.memLp_smul_of_tsupport_subset`: `η f ∈ L^p` for such `η`. +* `HarmonicAnalysis.apply_eq_dzPart_add_dzbarPart`, `HarmonicAnalysis.norm_le_dzPart_add_dzbarPart`. + +## Proofs + +* The integrability of `φ g` for `g` locally integrable on `Ω` and a continuous `φ` with compact + support in `Ω` (`HarmonicAnalysis.sob_integrable_smul_of_tsupport_subset`) makes the integrals of + the weak-derivative identities split. +* Uniqueness: the difference of two weak derivatives integrates to `0` against every test function, + and Mathlib's `IsOpen.ae_eq_zero_of_integral_contDiff_smul_eq_zero` applies. +* The Leibniz rule: the weak-derivative identity of `f` is tested against `φ η`, whose derivative is + `(∂_v φ) η + φ ∂_v η`; the openness of `Ω` is not used. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped ENNReal ContDiff ComplexConjugate + +namespace HarmonicAnalysis + +section Defs + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [MeasureSpace E] + [NormedAddCommGroup F] [NormedSpace ℝ F] + +/-- `f ∈ L^p_loc (Ω)`: `f ∈ L^p (K)` for every compact `K ⊆ Ω`. -/ +def MemLpLoc (f : E → F) (p : ℝ≥0∞) (Ω : Set E) : Prop := + ∀ K ⊆ Ω, IsCompact K → MemLp f p (volume.restrict K) + +/-- `g` is a weak derivative of `f` in the direction `v` on `Ω`: `∫ (∂_v φ) f = −∫ φ g` for every +real `φ ∈ C_c^∞ (E)` with `tsupport φ ⊆ Ω`. -/ +def HasWeakLineDerivOn (Ω : Set E) (f g : E → F) (v : E) : Prop := + ∀ φ : E → ℝ, ContDiff ℝ ∞ φ → HasCompactSupport φ → tsupport φ ⊆ Ω → + ∫ x, fderiv ℝ φ x v • f x = -∫ x, φ x • g x + +/-- `Df` is a weak derivative of `f` on `Ω`: for every `v`, `x ↦ Df x v` is a weak derivative of +`f` in the direction `v` on `Ω`. -/ +def HasWeakFDerivOn (Ω : Set E) (f : E → F) (Df : E → E →L[ℝ] F) : Prop := + ∀ v, HasWeakLineDerivOn Ω f (fun x => Df x v) v + +theorem HasWeakFDerivOn.mono {Ω Ω' : Set E} {f : E → F} {Df : E → E →L[ℝ] F} + (h : HasWeakFDerivOn Ω f Df) (hΩ : Ω' ⊆ Ω) : HasWeakFDerivOn Ω' f Df := + fun v φ hφ hφc hφΩ => h v φ hφ hφc (hφΩ.trans hΩ) + +end Defs + +section General + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] + [MeasureSpace E] [BorelSpace E] [IsFiniteMeasureOnCompacts (volume : Measure E)] + [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] + +omit [NormedSpace ℝ E] [FiniteDimensional ℝ E] [BorelSpace E] [NormedSpace ℝ F] + [CompleteSpace F] in +/-- `L^q_loc ⊆ L^p_loc` for `p ≤ q`: compact sets have finite measure. -/ +theorem MemLpLoc.mono_exponent {Ω : Set E} {f : E → F} {p q : ℝ≥0∞} (hpq : p ≤ q) + (h : MemLpLoc f q Ω) : MemLpLoc f p Ω := by + intro K hKΩ hK + have : IsFiniteMeasure (volume.restrict K) := isFiniteMeasure_restrict.2 hK.measure_lt_top.ne + exact (h K hKΩ hK).mono_exponent hpq + +omit [BorelSpace E] [NormedSpace ℝ F] [CompleteSpace F] in +/-- A function in `L^p_loc (Ω)`, `1 ≤ p`, is locally integrable on the open set `Ω`. -/ +theorem MemLpLoc.locallyIntegrableOn {Ω : Set E} (hΩ : IsOpen Ω) {f : E → F} {p : ℝ≥0∞} + (hp : 1 ≤ p) (h : MemLpLoc f p Ω) : LocallyIntegrableOn f Ω volume := by + rw [locallyIntegrableOn_iff hΩ.isLocallyClosed] + intro K hKΩ hK + exact memLp_one_iff_integrable.1 ((h.mono_exponent hp) K hKΩ hK) + +omit [NormedSpace ℝ E] [FiniteDimensional ℝ E] [IsFiniteMeasureOnCompacts (volume : Measure E)] + [CompleteSpace F] in +/-- `η f ∈ L^p` for `f ∈ L^p_loc (Ω)` and a continuous `η` with compact support in `Ω`. -/ +theorem MemLpLoc.memLp_smul_of_tsupport_subset {Ω : Set E} {f : E → F} {p : ℝ≥0∞} + (h : MemLpLoc f p Ω) {η : E → ℝ} (hη : Continuous η) (hηc : HasCompactSupport η) + (hηΩ : tsupport η ⊆ Ω) : MemLp (fun x => η x • f x) p volume := by + obtain ⟨C, hC⟩ := hη.bounded_above_of_compact_support hηc + have hfK := h _ hηΩ hηc + have heq : (tsupport η).indicator (fun x => η x • f x) = fun x => η x • f x := + Set.indicator_eq_self.2 fun x hx => + subset_tsupport η (Function.support_smul_subset_left η f hx) + rw [← heq, memLp_indicator_iff_restrict (isClosed_tsupport η).measurableSet.nullMeasurableSet] + refine hfK.of_le_mul (c := C) (hη.aestronglyMeasurable.smul hfK.aestronglyMeasurable) + (ae_of_all _ fun x => ?_) + rw [norm_smul] + exact mul_le_mul_of_nonneg_right (hC x) (norm_nonneg _) + +/-- `φ g` is integrable for `g` locally integrable on `Ω` and a continuous real `φ` with compact +support in `Ω`. -/ +theorem sob_integrable_smul_of_tsupport_subset {X G : Type*} [TopologicalSpace X] [T2Space X] + [MeasurableSpace X] [OpensMeasurableSpace X] [NormedAddCommGroup G] [NormedSpace ℝ G] + {μ : Measure X} {Ω : Set X} {g : X → G} (hg : LocallyIntegrableOn g Ω μ) {φ : X → ℝ} + (hφ : Continuous φ) (hφc : HasCompactSupport φ) (hφΩ : tsupport φ ⊆ Ω) : + Integrable (fun x => φ x • g x) μ := by + have h₁ : IntegrableOn (fun x => φ x • g x) (tsupport φ) μ := + (hg.integrableOn_compact_subset hφΩ hφc).continuousOn_smul hφ.continuousOn hφc + exact (integrableOn_iff_integrable_of_support_subset (f := fun x => φ x • g x) + fun x hx => subset_tsupport φ (Function.support_smul_subset_left φ g hx)).1 h₁ + +omit [IsFiniteMeasureOnCompacts (volume : Measure E)] in +/-- Weak derivatives are unique: two weak derivatives of `f` in the direction `v` on the open set +`Ω`, both locally integrable on `Ω`, agree almost everywhere on `Ω` (the fundamental lemma of the +calculus of variations, `IsOpen.ae_eq_zero_of_integral_contDiff_smul_eq_zero`). -/ +theorem HasWeakLineDerivOn.ae_eq {Ω : Set E} (hΩ : IsOpen Ω) {f g₁ g₂ : E → F} {v : E} + (h₁ : HasWeakLineDerivOn Ω f g₁ v) (h₂ : HasWeakLineDerivOn Ω f g₂ v) + (hg₁ : LocallyIntegrableOn g₁ Ω volume) (hg₂ : LocallyIntegrableOn g₂ Ω volume) : + g₁ =ᵐ[volume.restrict Ω] g₂ := by + have key := hΩ.ae_eq_zero_of_integral_contDiff_smul_eq_zero (hg₁.sub hg₂) + (fun φ hφ hφc hφΩ => by + have i₁ := sob_integrable_smul_of_tsupport_subset hg₁ hφ.continuous hφc hφΩ + have i₂ := sob_integrable_smul_of_tsupport_subset hg₂ hφ.continuous hφc hφΩ + simp only [Pi.sub_apply, smul_sub] + rw [integral_sub i₁ i₂, sub_eq_zero, ← neg_inj, ← h₁ φ hφ hφc hφΩ, h₂ φ hφ hφc hφΩ]) + rw [Filter.EventuallyEq, ae_restrict_iff' hΩ.measurableSet] + filter_upwards [key] with x hx hxΩ + exact sub_eq_zero.1 (hx hxΩ) + +omit [FiniteDimensional ℝ E] [IsFiniteMeasureOnCompacts (volume : Measure E)] [CompleteSpace F] in +/-- **The Leibniz rule with a cut-off.** If `Df` is a weak derivative of `f` on `Ω` (both locally +integrable on `Ω`) and `η ∈ C_c^∞ (E)` is real with `tsupport η ⊆ Ω`, then `η f` +has the weak derivative `η Df + Dη ⊗ f`, `v ↦ η (x) Df (x) v + (∂_v η (x)) f (x)`, on the whole +space. -/ +theorem HasWeakFDerivOn.smul_of_tsupport_subset {Ω : Set E} {f : E → F} {Df : E → E →L[ℝ] F} + (hf : LocallyIntegrableOn f Ω volume) (hDf : LocallyIntegrableOn Df Ω volume) + (h : HasWeakFDerivOn Ω f Df) {η : E → ℝ} + (hη : ContDiff ℝ ∞ η) (hηc : HasCompactSupport η) (hηΩ : tsupport η ⊆ Ω) : + HasWeakFDerivOn Set.univ (fun x => η x • f x) + (fun x => η x • Df x + (fderiv ℝ η x).smulRight (f x)) := by + intro v φ hφ hφc _ + have hφd : Differentiable ℝ φ := hφ.differentiable (by simp) + have hηd : Differentiable ℝ η := hη.differentiable (by simp) + have hDφ : Continuous fun x => fderiv ℝ φ x v := + (hφ.continuous_fderiv (by simp)).clm_apply continuous_const + have hDη : Continuous fun x => fderiv ℝ η x v := + (hη.continuous_fderiv (by simp)).clm_apply continuous_const + have hDηΩ : tsupport (fun x => fderiv ℝ η x v) ⊆ tsupport η := tsupport_fderiv_apply_subset ℝ v + -- the test function `φ η` + have hψ : ContDiff ℝ ∞ (fun x => φ x * η x) := hφ.mul hη + have hψc : HasCompactSupport (fun x => φ x * η x) := hηc.mul_left + have hψΩ : tsupport (fun x => φ x * η x) ⊆ Ω := tsupport_mul_subset_right.trans hηΩ + have key := h v _ hψ hψc hψΩ + have hderiv : ∀ x, fderiv ℝ (fun x => φ x * η x) x v = + φ x * fderiv ℝ η x v + η x * fderiv ℝ φ x v := by + intro x + rw [fderiv_fun_mul (hφd x) (hηd x)] + simp [smul_eq_mul] + have i₁ : Integrable (fun x => (φ x * fderiv ℝ η x v) • f x) := + sob_integrable_smul_of_tsupport_subset hf (hφ.continuous.mul hDη) + ((hηc.fderiv_apply (𝕜 := ℝ) v).mul_left) + (tsupport_mul_subset_right.trans (hDηΩ.trans hηΩ)) + have i₂ : Integrable (fun x => (η x * fderiv ℝ φ x v) • f x) := + sob_integrable_smul_of_tsupport_subset hf (hη.continuous.mul hDφ) hηc.mul_right + (tsupport_mul_subset_left.trans hηΩ) + have i₃ : Integrable (fun x => (φ x * η x) • Df x v) := + (sob_integrable_smul_of_tsupport_subset hDf (hφ.continuous.mul hη.continuous) hψc + hψΩ).apply_continuousLinearMap v + simp only [hderiv, add_smul] at key + rw [integral_add i₁ i₂] at key + have e₁ : (fun x => fderiv ℝ φ x v • η x • f x) = fun x => (η x * fderiv ℝ φ x v) • f x := by + ext x; rw [smul_smul, mul_comm] + have e₂ : (fun x => φ x • (η x • Df x + (fderiv ℝ η x).smulRight (f x)) v) = + fun x => (φ x * η x) • Df x v + (φ x * fderiv ℝ η x v) • f x := by + ext x; simp [smul_add, smul_smul] + simp only [e₁, e₂] + rw [integral_add i₃ i₁, neg_add, ← key] + abel + +end General + +/-! ### The Wirtinger parts of a real-linear map of `ℂ` -/ + +section Wirtinger + +/-- The complex-linear part `½ (A 1 − i A i)` of a real-linear map `A : ℂ → ℂ`; for `A = Df (z)` +it is the Wirtinger derivative `∂f (z)`. -/ +def dzPart (A : ℂ →L[ℝ] ℂ) : ℂ := (2⁻¹ : ℂ) * (A 1 - Complex.I * A Complex.I) + +/-- The complex-antilinear part `½ (A 1 + i A i)` of a real-linear map `A : ℂ → ℂ`; for +`A = Df (z)` it is the Wirtinger derivative `∂_zbar f (z)`. -/ +def dzbarPart (A : ℂ →L[ℝ] ℂ) : ℂ := (2⁻¹ : ℂ) * (A 1 + Complex.I * A Complex.I) + +/-- `A v = (∂A) v + (∂_zbar A) (conj v)`. -/ +theorem apply_eq_dzPart_add_dzbarPart (A : ℂ →L[ℝ] ℂ) (v : ℂ) : + A v = dzPart A * v + dzbarPart A * conj v := by + have hv : v = (v.re : ℝ) • (1 : ℂ) + (v.im : ℝ) • Complex.I := by + simp [Complex.real_smul, Complex.re_add_im] + have hcv : conj v = (v.re : ℂ) - v.im * Complex.I := Complex.ext (by simp) (by simp) + have hv' : v = (v.re : ℂ) + v.im * Complex.I := (Complex.re_add_im v).symm + conv_lhs => rw [hv] + rw [map_add, map_smul, map_smul, hcv, Complex.real_smul, Complex.real_smul] + simp only [dzPart, dzbarPart] + linear_combination (-(2⁻¹ * (A 1 - Complex.I * A Complex.I))) * hv' + + (A Complex.I * v.im) * Complex.I_sq + +/-- `‖A‖ ≤ |∂A| + |∂_zbar A|` (in fact `=`). -/ +theorem norm_le_dzPart_add_dzbarPart (A : ℂ →L[ℝ] ℂ) : ‖A‖ ≤ ‖dzPart A‖ + ‖dzbarPart A‖ := by + refine ContinuousLinearMap.opNorm_le_bound _ (by positivity) fun v => ?_ + rw [apply_eq_dzPart_add_dzbarPart, add_mul] + refine (norm_add_le _ _).trans ?_ + rw [norm_mul, norm_mul, Complex.norm_conj] + +/-- `|∂A| ≤ ‖A‖`. -/ +theorem norm_dzPart_le (A : ℂ →L[ℝ] ℂ) : ‖dzPart A‖ ≤ ‖A‖ := by + have h₁ : ‖A 1‖ ≤ ‖A‖ := by simpa using A.le_opNorm 1 + have hI : ‖A Complex.I‖ ≤ ‖A‖ := by simpa using A.le_opNorm Complex.I + calc ‖dzPart A‖ ≤ 2⁻¹ * (‖A 1‖ + ‖A Complex.I‖) := by + rw [dzPart, norm_mul] + gcongr + · simp + · exact (norm_sub_le _ _).trans (by simp) + _ ≤ ‖A‖ := by linarith + +/-- `|∂_zbar A| ≤ ‖A‖`. -/ +theorem norm_dzbarPart_le (A : ℂ →L[ℝ] ℂ) : ‖dzbarPart A‖ ≤ ‖A‖ := by + have h₁ : ‖A 1‖ ≤ ‖A‖ := by simpa using A.le_opNorm 1 + have hI : ‖A Complex.I‖ ≤ ‖A‖ := by simpa using A.le_opNorm Complex.I + calc ‖dzbarPart A‖ ≤ 2⁻¹ * (‖A 1‖ + ‖A Complex.I‖) := by + rw [dzbarPart, norm_mul] + gcongr + · simp + · exact (norm_add_le _ _).trans (by simp) + _ ≤ ‖A‖ := by linarith + +/-- `∂` of the derivative is the Wirtinger derivative `HarmonicAnalysis.dz`. -/ +theorem dzPart_fderiv (g : ℂ → ℂ) (z : ℂ) : dzPart (fderiv ℝ g z) = dz g z := by + simp only [dzPart, dz, smul_eq_mul] + +/-- `∂_zbar` of the derivative is the Wirtinger derivative `HarmonicAnalysis.dzbar`. -/ +theorem dzbarPart_fderiv (g : ℂ → ℂ) (z : ℂ) : dzbarPart (fderiv ℝ g z) = dzbar g z := by + simp only [dzbarPart, dzbar, smul_eq_mul] + +/-- `A ↦ ∂A` is continuous. -/ +theorem continuous_dzPart : Continuous dzPart := by + unfold dzPart + fun_prop + +/-- `A ↦ ∂_zbar A` is continuous. -/ +theorem continuous_dzbarPart : Continuous dzbarPart := by + unfold dzbarPart + fun_prop + +/-- `∂ (Df) ∈ L^p` for `Df ∈ L^p`. -/ +theorem memLp_dzPart {α : Type*} [MeasurableSpace α] {μ : Measure α} {p : ℝ≥0∞} + {Df : α → ℂ →L[ℝ] ℂ} (h : MemLp Df p μ) : MemLp (fun x => dzPart (Df x)) p μ := + h.of_le (continuous_dzPart.comp_aestronglyMeasurable h.aestronglyMeasurable) + (ae_of_all _ fun x => norm_dzPart_le (Df x)) + +/-- `∂_zbar (Df) ∈ L^p` for `Df ∈ L^p`. -/ +theorem memLp_dzbarPart {α : Type*} [MeasurableSpace α] {μ : Measure α} {p : ℝ≥0∞} + {Df : α → ℂ →L[ℝ] ℂ} (h : MemLp Df p μ) : MemLp (fun x => dzbarPart (Df x)) p μ := + h.of_le (continuous_dzbarPart.comp_aestronglyMeasurable h.aestronglyMeasurable) + (ae_of_all _ fun x => norm_dzbarPart_le (Df x)) + +end Wirtinger + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Embedding.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Embedding.lean new file mode 100644 index 0000000000..c6b050e7f0 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Embedding.lean @@ -0,0 +1,227 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Sobolev.Mollify +import Mathlib.Analysis.FunctionalSpaces.SobolevInequality +import Mathlib.Geometry.Manifold.PartitionOfUnity +import Mathlib.LinearAlgebra.Complex.FiniteDimensional +import Mathlib.MeasureTheory.Function.ConvergenceInMeasure +import Mathlib.MeasureTheory.Function.LpSpace.Complete + +/-! +# Sobolev's embedding in the plane: `W^{1,2}_loc ⊂ L^q_loc` for every `q < ∞` + +* `HarmonicAnalysis.memLp_of_hasWeakFDerivOn_univ`: a compactly supported `g ∈ L² (ℂ)` with a weak + derivative `Dg ∈ L² (ℂ)` is in `L^q (ℂ)` for every `q < ∞`. +* `HarmonicAnalysis.MemLpLoc.of_hasWeakFDerivOn`: `f ∈ W^{1,2}_loc (Ω)` is in `L^q_loc (Ω)` for + every `q < ∞`. + +Two auxiliary results, also used for the Beltrami equation: + +* `HarmonicAnalysis.exists_contDiff_tsupport_subset_eventuallyEq_one`: a smooth cut-off with + compact support in an open `Ω`, equal to `1` on a neighbourhood of a given compact `K ⊆ Ω`. +* `HarmonicAnalysis.MemLpLoc.memLp_smulRight_of_tsupport_subset`: `Dη ⊗ f ∈ L^p` for + `f ∈ L^p_loc (Ω)` and such a cut-off `η`; with + `HarmonicAnalysis.MemLpLoc.memLp_smul_of_tsupport_subset`, the weak derivative + `η Df + Dη ⊗ f` of `η f` is in `L^p` for `f ∈ W^{1,p}_loc (Ω)`. + +## Proof + +The Gagliardo–Nirenberg–Sobolev inequality of Mathlib (`eLpNorm_le_eLpNorm_fderiv_of_eq`), for +compactly supported `C¹` functions: `‖u‖_q ≤ C ‖Du‖_s` for `1 ≤ s < 2` and `q = 2s / (2 − s)`, +with `C` independent of `u`. Let `g` be compactly supported with weak derivative `Dg ∈ L²`, and +`q ≥ 2`. Multiplying `Dg` by a smooth cut-off `χ` equal to `1` near `tsupport g` gives another weak +derivative of `g` (the Leibniz rule `HarmonicAnalysis.HasWeakFDerivOn.smul_of_tsupport_subset`, as +`χ g = g` and `Dχ ⊗ g = 0`), which has compact support and is therefore in `L^s` (Hölder). The +mollifications `g_n = ρ_n ⋆ g` are smooth with compact support, with `D g_n = ρ_n ⋆ (χ Dg)` +(`HarmonicAnalysis.hasFDerivAt_convolution_of_hasWeakFDerivOn`), so +`‖g_n‖_q ≤ C ‖ρ_n ⋆ (χ Dg)‖_s ≤ C ‖χ Dg‖_s` (`HarmonicAnalysis.eLpNorm_convolution_le`); and +`g_n → g` in `L²`, hence almost everywhere along a subsequence +(`HarmonicAnalysis.tendsto_eLpNorm_convolution_sub`). Fatou's lemma gives +`‖g‖_q ≤ liminf ‖g_n‖_q ≤ C ‖χ Dg‖_s < ∞`. A general `q < ∞` follows from `max q 2` by Hölder's +inequality on the compact support of `g`. For `f ∈ W^{1,2}_loc (Ω)` and a compact `K ⊆ Ω`, apply +this to `g = η f`, with `η ∈ C_c^∞ (Ω)` equal to `1` on `K` +(`HarmonicAnalysis.HasWeakFDerivOn.smul_of_tsupport_subset`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped ENNReal NNReal ContDiff Convolution + +namespace HarmonicAnalysis + +/-- **A smooth cut-off**: for a compact `K` in an open set `Ω` of a finite-dimensional real normed +space, a smooth real `η` with compact support in `Ω`, equal to `1` on a neighbourhood of `K`. -/ +theorem exists_contDiff_tsupport_subset_eventuallyEq_one {E : Type*} [NormedAddCommGroup E] + [NormedSpace ℝ E] [FiniteDimensional ℝ E] {K Ω : Set E} (hK : IsCompact K) (hΩ : IsOpen Ω) + (hKΩ : K ⊆ Ω) : + ∃ η : E → ℝ, ContDiff ℝ ∞ η ∧ HasCompactSupport η ∧ tsupport η ⊆ Ω ∧ + ∀ x ∈ K, η =ᶠ[𝓝 x] 1 := by + obtain ⟨L₁, hL₁, hKL₁, hL₁Ω⟩ := exists_compact_between hK hΩ hKΩ + obtain ⟨L₂, hL₂, hL₁L₂, hL₂Ω⟩ := exists_compact_between hL₁ hΩ hL₁Ω + obtain ⟨η, hη, -, hηs, hη1⟩ := + exists_contDiff_support_eq_eq_one_iff (n := (⊤ : ℕ∞)) isOpen_interior hL₁.isClosed hL₁L₂ + have hts : tsupport η ⊆ L₂ := by + rw [tsupport, hηs] + exact closure_minimal interior_subset hL₂.isClosed + refine ⟨η, hη, hL₂.of_isClosed_subset (isClosed_tsupport η) hts, hts.trans hL₂Ω, + fun x hx => ?_⟩ + filter_upwards [mem_interior_iff_mem_nhds.1 (hKL₁ hx)] with y hy + exact (hη1 y).1 hy + +section General + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] + [MeasureSpace E] [BorelSpace E] [NormedAddCommGroup F] [NormedSpace ℝ F] + +/-- `Dη ⊗ f`, `v ↦ (∂_v η) f`, is in `L^p` for `f ∈ L^p_loc (Ω)` and a `C¹` real `η` with +compact support in `Ω`. -/ +theorem MemLpLoc.memLp_smulRight_of_tsupport_subset {Ω : Set E} {f : E → F} {p : ℝ≥0∞} + (h : MemLpLoc f p Ω) {η : E → ℝ} (hη : ContDiff ℝ 1 η) (hηc : HasCompactSupport η) + (hηΩ : tsupport η ⊆ Ω) : + MemLp (fun x => (fderiv ℝ η x).smulRight (f x)) p volume := by + have hDη : Continuous (fderiv ℝ η) := hη.continuous_fderiv one_ne_zero + obtain ⟨C, hC⟩ := hDη.bounded_above_of_compact_support (hηc.fderiv (𝕜 := ℝ)) + have hfK := h _ hηΩ hηc + have heq : (tsupport η).indicator (fun x => (fderiv ℝ η x).smulRight (f x)) = + fun x => (fderiv ℝ η x).smulRight (f x) := by + refine Set.indicator_eq_self.2 fun x hx => ?_ + by_contra hxη + apply hx + simp [fderiv_of_notMem_tsupport ℝ hxη] + rw [← heq, memLp_indicator_iff_restrict + (isClosed_tsupport η).measurableSet.nullMeasurableSet] + refine hfK.of_le_mul (c := C) ?_ (ae_of_all _ fun x => ?_) + · exact (ContinuousLinearMap.smulRightL ℝ E F).continuous₂.comp_aestronglyMeasurable₂ + hDη.aestronglyMeasurable hfK.aestronglyMeasurable + · rw [ContinuousLinearMap.norm_smulRight_apply] + exact mul_le_mul_of_nonneg_right (hC x) (norm_nonneg _) + +end General + +/-- **Sobolev's embedding for `q ≥ 2`**, the main step of +`HarmonicAnalysis.memLp_of_hasWeakFDerivOn_univ`: the Gagliardo–Nirenberg–Sobolev inequality for +the mollifications of `g` and Fatou's lemma. -/ +private theorem memLp_nnreal_of_hasWeakFDerivOn_univ {g : ℂ → ℂ} {Dg : ℂ → ℂ →L[ℝ] ℂ} + (hgc : HasCompactSupport g) (hg : MemLp g 2 volume) (hDg : MemLp Dg 2 volume) + (h : HasWeakFDerivOn Set.univ g Dg) {q : ℝ≥0} (hq : 2 ≤ q) : MemLp g q volume := by + -- a derivative with compact support: `χ Dg`, with `χ = 1` near `tsupport g` + obtain ⟨χ, hχ, hχc, -, hχ1⟩ := exists_contDiff_tsupport_subset_eventuallyEq_one + hgc.isCompact isOpen_univ (Set.subset_univ _) + have hgl : LocallyIntegrable g volume := hg.locallyIntegrable one_le_two + have hDgloc : MemLpLoc Dg 2 Set.univ := fun K _ _ => hDg.restrict K + set G : ℂ → ℂ →L[ℝ] ℂ := fun x => χ x • Dg x + have hW : HasWeakFDerivOn Set.univ g G := by + have hW₀ := h.smul_of_tsupport_subset (hgl.locallyIntegrableOn _) + ((hDg.locallyIntegrable one_le_two).locallyIntegrableOn _) hχ hχc (Set.subset_univ _) + have e₁ : (fun x => χ x • g x) = g := by + ext x + by_cases hx : x ∈ tsupport g + · simp [(hχ1 x hx).eq_of_nhds] + · simp [image_eq_zero_of_notMem_tsupport hx] + have e₂ : (fun x => χ x • Dg x + (fderiv ℝ χ x).smulRight (g x)) = G := by + ext x : 1 + by_cases hx : x ∈ tsupport g + · have : fderiv ℝ χ x = 0 := by + rw [(hχ1 x hx).fderiv_eq] + exact fderiv_const_apply _ + simp [G, this] + · simp [G, image_eq_zero_of_notMem_tsupport hx] + rwa [e₁, e₂] at hW₀ + have hG2 : MemLp G 2 volume := hDgloc.memLp_smul_of_tsupport_subset hχ.continuous hχc + (Set.subset_univ _) + have hGl : LocallyIntegrable G volume := hG2.locallyIntegrable one_le_two + -- the exponent `s = 2q / (q + 2) ∈ [1, 2)` with `1 / q = 1 / s − 1 / 2` + set s : ℝ≥0 := (q⁻¹ + 2⁻¹)⁻¹ + have hs1 : 1 ≤ s := by + rw [← NNReal.coe_le_coe] + simp only [s, NNReal.coe_inv, NNReal.coe_add, NNReal.coe_one, NNReal.coe_ofNat] + have : (2 : ℝ) ≤ q := by exact_mod_cast hq + rw [one_le_inv₀ (by positivity)] + calc (q : ℝ)⁻¹ + 2⁻¹ ≤ 2⁻¹ + 2⁻¹ := by gcongr + _ = 1 := by norm_num + have hs2 : (s : ℝ≥0∞) ≤ 2 := by + have : s ≤ 2 := by + rw [← NNReal.coe_le_coe] + simp only [s, NNReal.coe_inv, NNReal.coe_add, NNReal.coe_ofNat] + rw [inv_le_comm₀ (by positivity) (by norm_num)] + have : 0 ≤ (q : ℝ)⁻¹ := by positivity + linarith + exact_mod_cast this + have hqs : ((q : ℝ))⁻¹ = (s : ℝ)⁻¹ - (Module.finrank ℝ ℂ : ℝ)⁻¹ := by + simp [s, Complex.finrank_real_complex] + have hGs : MemLp G s volume := + hG2.mono_exponent_of_measure_support_ne_top (s := tsupport χ) + (fun x hx => by simp [G, image_eq_zero_of_notMem_tsupport hx]) hχc.measure_lt_top.ne hs2 + -- the mollifications + let φ : ℕ → ContDiffBump (0 : ℂ) := fun n => + ⟨1 / ((n : ℝ) + 2), 1 / ((n : ℝ) + 1), by positivity, + one_div_lt_one_div_of_lt (by positivity) (by linarith)⟩ + have hφ : Tendsto (fun n => (φ n).rOut) atTop (𝓝 0) := tendsto_one_div_add_atTop_nhds_zero_nat + set u : ℕ → ℂ → ℂ := fun n => (φ n).normed volume ⋆[ContinuousLinearMap.lsmul ℝ ℝ] g + have hu : ∀ n, ContDiff ℝ 1 (u n) := fun n => + (φ n).hasCompactSupport_normed.contDiff_convolution_left _ + ((φ n).contDiff_normed.of_le (by exact_mod_cast le_top)) hgl + have huc : ∀ n, HasCompactSupport (u n) := fun n => + (φ n).hasCompactSupport_normed.convolution _ hgc + have hDu : ∀ n, fderiv ℝ (u n) = (φ n).normed volume ⋆[ContinuousLinearMap.lsmul ℝ ℝ] G := + fun n => funext fun x => + (hasFDerivAt_convolution_of_hasWeakFDerivOn (φ n) hgl hGl hW x).fderiv + set C : ℝ≥0 := SNormLESNormFDerivOfEqConst ℂ (volume : Measure ℂ) s + have hbound : ∀ n, eLpNorm (u n) q volume ≤ C * eLpNorm G s volume := fun n => + calc eLpNorm (u n) q volume ≤ C * eLpNorm (fderiv ℝ (u n)) s volume := + eLpNorm_le_eLpNorm_fderiv_of_eq volume (hu n) (huc n) hs1 + (by simp [Complex.finrank_real_complex]) hqs + _ ≤ C * eLpNorm G s volume := by + rw [hDu n] + gcongr + exact eLpNorm_convolution_le (φ n) (by exact_mod_cast hs1) hGs.aestronglyMeasurable + -- `u n → g` in `L²`, hence almost everywhere along a subsequence; Fatou's lemma + have hlim := tendsto_eLpNorm_convolution_sub hφ one_le_two ENNReal.ofNat_ne_top hg + obtain ⟨ns, -, hns⟩ := + (tendstoInMeasure_of_tendsto_eLpNorm two_ne_zero hlim).exists_seq_tendsto_ae + calc eLpNorm g q volume ≤ atTop.liminf fun n => eLpNorm (u (ns n)) q volume := + Lp.eLpNorm_lim_le_liminf_eLpNorm (fun n => (hu (ns n)).continuous.aestronglyMeasurable) g + hg.aestronglyMeasurable hns + _ ≤ C * eLpNorm G s volume := + liminf_le_of_frequently_le' (Frequently.of_forall fun n => hbound (ns n)) + _ < ⊤ := ENNReal.mul_lt_top ENNReal.coe_lt_top hGs.eLpNorm_lt_top + +/-- A compactly supported `g ∈ L² (ℂ)` with a weak derivative `Dg ∈ L² (ℂ)` on the whole plane is +in `L^q (ℂ)` for every `q < ∞`. -/ +theorem memLp_of_hasWeakFDerivOn_univ {g : ℂ → ℂ} {Dg : ℂ → ℂ →L[ℝ] ℂ} + (hgc : HasCompactSupport g) (hg : MemLp g 2 volume) (hDg : MemLp Dg 2 volume) + (h : HasWeakFDerivOn Set.univ g Dg) {q : ℝ≥0∞} (hq : q ≠ ⊤) : MemLp g q volume := by + have H := memLp_nnreal_of_hasWeakFDerivOn_univ hgc hg hDg h (le_max_right q.toNNReal 2) + refine H.mono_exponent_of_measure_support_ne_top (s := tsupport g) + (fun x hx => image_eq_zero_of_notMem_tsupport hx) hgc.measure_lt_top.ne ?_ + calc q = (q.toNNReal : ℝ≥0∞) := (ENNReal.coe_toNNReal hq).symm + _ ≤ _ := by exact_mod_cast le_max_left q.toNNReal 2 + +/-- **Sobolev's embedding in the plane**: `W^{1,2}_loc (Ω) ⊂ L^q_loc (Ω)` for every `q < ∞`. -/ +theorem MemLpLoc.of_hasWeakFDerivOn {Ω : Set ℂ} (hΩ : IsOpen Ω) {f : ℂ → ℂ} + {Df : ℂ → ℂ →L[ℝ] ℂ} (hf : MemLpLoc f 2 Ω) (hDf : MemLpLoc Df 2 Ω) + (h : HasWeakFDerivOn Ω f Df) {q : ℝ≥0∞} (hq : q ≠ ⊤) : MemLpLoc f q Ω := by + intro K hKΩ hK + obtain ⟨η, hη, hηc, hηΩ, hη1⟩ := exists_contDiff_tsupport_subset_eventuallyEq_one hK hΩ hKΩ + have hW := h.smul_of_tsupport_subset (hf.locallyIntegrableOn hΩ one_le_two) + (hDf.locallyIntegrableOn hΩ one_le_two) hη hηc hηΩ + have hgq := memLp_of_hasWeakFDerivOn_univ (hηc.smul_right (f' := f)) + (hf.memLp_smul_of_tsupport_subset hη.continuous hηc hηΩ) + ((hDf.memLp_smul_of_tsupport_subset hη.continuous hηc hηΩ).add + (hf.memLp_smulRight_of_tsupport_subset (hη.of_le (by exact_mod_cast le_top)) hηc hηΩ)) + hW hq + refine (memLp_congr_ae ?_).1 (hgq.restrict K) + filter_upwards [ae_restrict_mem hK.measurableSet] with x hx + simp [(hη1 x hx).eq_of_nhds] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Mollify.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Mollify.lean new file mode 100644 index 0000000000..f642d222c4 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Sobolev/Mollify.lean @@ -0,0 +1,239 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Sobolev.Basic +public import Mathlib.Analysis.Calculus.BumpFunction.Convolution +public import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension +public import Mathlib.Analysis.Calculus.BumpFunction.Normed +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Density +import Mathlib.Analysis.Calculus.ContDiff.Convolution +import Mathlib.MeasureTheory.Function.ContinuousMapDense +import Mathlib.MeasureTheory.Integral.Bochner.ContinuousLinearMap + +/-! +# Mollification + +For a bump function `φ : ContDiffBump 0` on a finite-dimensional real normed space `E` with an +additive Haar measure, `ρ = φ.normed volume` is smooth, nonnegative, of integral `1` and supported +in the ball of radius `φ.rOut`; the mollification of `f` is the convolution `ρ ⋆ f`. Mathlib +proves that `ρ ⋆ f` is smooth for locally integrable `f` +(`HasCompactSupport.contDiff_convolution_left`) and compactly supported if `f` is +(`HasCompactSupport.convolution`). Here: + +* `HarmonicAnalysis.eLpNorm_convolution_le`: `‖ρ ⋆ f‖_p ≤ ‖f‖_p`, `1 ≤ p` (Young's inequality + with `‖ρ‖₁ = 1`). +* `HarmonicAnalysis.tendsto_eLpNorm_convolution_sub`: `ρ_i ⋆ f → f` in `L^p`, `1 ≤ p < ∞`, when the + radii `rOut` of the bumps tend to `0`. +* `HarmonicAnalysis.hasFDerivAt_convolution_of_hasWeakFDerivOn`: for `f` with a weak derivative + `Df` on the whole space, `D (ρ ⋆ f) = ρ ⋆ Df` (mollification commutes with weak derivatives). + +## Proofs + +* Young's inequality: for `p < ∞` it is Minkowski's integral inequality + `HarmonicAnalysis.eLpNorm_integral_smul_le`, applied to the translates of a strongly measurable + version of `f`; for `p = ∞`, `|ρ ⋆ f| ≤ ‖ρ‖₁ ‖f‖_∞` everywhere (`eNorm_convolution_le`). +* The convergence: `f` is approximated in `L^p` by a continuous `g` with compact support + (`MemLp.exists_hasCompactSupport_eLpNorm_sub_le`); `ρ_i ⋆ g → g` uniformly, with supports in the + `1`-neighbourhood of `tsupport g` once `rOut ≤ 1`, hence in `L^p`; and + `‖ρ_i ⋆ (f − g)‖_p ≤ ‖f − g‖_p` by Young's inequality. +* The derivative: Mathlib's `HasCompactSupport.hasFDerivAt_convolution_left` gives + `D (ρ ⋆ f) (x) = ((Dρ) ⋆ f) (x)`, and the weak derivative tested against `y ↦ ρ (x − y)` turns + `((Dρ) ⋆ f) (x) v` into `(ρ ⋆ Df) (x) v`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology ContinuousLinearMap +open scoped ENNReal Convolution + +namespace HarmonicAnalysis + +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] + [MeasureSpace E] [BorelSpace E] [(volume : Measure E).IsAddHaarMeasure] + {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] + +omit [CompleteSpace F] in +/-- **Young's inequality** for a mollifier: `‖ρ ⋆ f‖_p ≤ ‖f‖_p`, `1 ≤ p ≤ ∞`, since `ρ ≥ 0` and +`∫ ρ = 1`. -/ +theorem eLpNorm_convolution_le (φ : ContDiffBump (0 : E)) {p : ℝ≥0∞} (hp : 1 ≤ p) {f : E → F} + (hf : AEStronglyMeasurable f volume) : + eLpNorm (φ.normed volume ⋆[lsmul ℝ ℝ] f) p volume ≤ eLpNorm f p volume := by + set ρ := φ.normed volume + have hρm : AEStronglyMeasurable ρ volume := φ.continuous_normed.aestronglyMeasurable + have hρ1 : ∫⁻ t, ‖ρ t‖ₑ = 1 := by + rw [lintegral_eNorm_of_nonneg (fun t => φ.nonneg_normed t), + ← ofReal_integral_eq_lintegral_ofReal φ.integrable_normed + (ae_of_all _ fun t => φ.nonneg_normed t), φ.integral_normed, ENNReal.ofReal_one] + rcases eq_or_ne p ∞ with rfl | hp' + · -- `p = ∞`: `|ρ ⋆ f| ≤ ‖ρ‖₁ ‖f‖_∞` everywhere + have hL : ‖(lsmul ℝ ℝ : ℝ →L[ℝ] F →L[ℝ] F)‖ₑ ≤ 1 := by + rw [← ofReal_norm] + exact ENNReal.ofReal_le_one.2 opNorm_lsmul_le + have hbound : ∀ x, ‖(ρ ⋆[lsmul ℝ ℝ] f) x‖ₑ ≤ eLpNorm f ∞ volume := fun x => + calc ‖(ρ ⋆[lsmul ℝ ℝ] f) x‖ₑ + ≤ ‖(lsmul ℝ ℝ : ℝ →L[ℝ] F →L[ℝ] F)‖ₑ * eLpNorm ρ 1 volume * eLpNorm f ∞ volume := + eNorm_convolution_le _ hρm hf x + _ ≤ 1 * 1 * eLpNorm f ∞ volume := by + rw [eLpNorm_one_eq_lintegral_eNorm hρm, hρ1] + gcongr + _ = eLpNorm f ∞ volume := by rw [one_mul, one_mul] + rw [eLpNorm_exponent_top (hρm.convolution (L := lsmul ℝ ℝ) hf)] + exact eLpNormEssSup_le_of_ae_eNorm_bound (ae_of_all _ hbound) + · -- `1 ≤ p < ∞`: Minkowski's integral inequality, for a strongly measurable version of `f` + obtain ⟨r, hr, rfl⟩ : ∃ r : ℝ, 1 ≤ r ∧ p = ENNReal.ofReal r := + ⟨p.toReal, by simpa using ENNReal.toReal_mono hp' hp, (ENNReal.ofReal_toReal hp').symm⟩ + set g := hf.mk f + have hconv : ρ ⋆[lsmul ℝ ℝ] f = fun x => ∫ s, ρ s • g (x - s) := by + rw [convolution_congr (lsmul ℝ ℝ) (EventuallyEq.refl _ ρ) hf.ae_eq_mk] + ext x + simp [convolution_def, g] + rw [hconv] + have hC : ∀ᵐ s ∂(volume : Measure E), + eLpNorm (fun x => g (x - s)) (ENNReal.ofReal r) volume ≤ + eLpNorm f (ENNReal.ofReal r) volume := + ae_of_all _ fun s => by + rw [show (fun x => g (x - s)) = g ∘ fun x => x - s from rfl, + eLpNorm_comp_measurePreserving hf.stronglyMeasurable_mk.aestronglyMeasurable + (measurePreserving_sub_right volume s), eLpNorm_congr_ae hf.ae_eq_mk.symm] + calc eLpNorm (fun x => ∫ s, ρ s • g (x - s)) (ENNReal.ofReal r) volume + ≤ (∫⁻ s, ‖ρ s‖ₑ) * eLpNorm f (ENNReal.ofReal r) volume := + eLpNorm_integral_smul_le hr φ.continuous_normed.measurable (F := fun x s => g (x - s)) + (hf.stronglyMeasurable_mk.comp_measurable measurable_sub) hC + _ = eLpNorm f (ENNReal.ofReal r) volume := by rw [hρ1, one_mul] + +omit [NormedSpace ℝ E] [FiniteDimensional ℝ E] [BorelSpace E] [NormedSpace ℝ F] [CompleteSpace F] in +/-- Functions supported in a fixed compact set and tending to `0` uniformly tend to `0` in `L^p`. -/ +private theorem tendsto_eLpNorm_of_uniform {ι : Type*} {l : Filter ι} {h : ι → E → F} {K : Set E} + (hK : IsCompact K) (hsupp : ∀ᶠ i in l, Function.support (h i) ⊆ K) + (hmeas : ∀ i, AEStronglyMeasurable (h i) volume) + (hunif : ∀ ε > 0, ∀ᶠ i in l, ∀ x, ‖h i x‖ ≤ ε) (p : ℝ≥0∞) : + Tendsto (fun i => eLpNorm (h i) p volume) l (𝓝 0) := by + set M := volume K ^ p.toReal⁻¹ + have hM : M ≠ ∞ := + ENNReal.rpow_ne_top_of_nonneg (inv_nonneg.2 ENNReal.toReal_nonneg) hK.measure_lt_top.ne + have hlim : Tendsto (fun ε : ℝ => M * ENNReal.ofReal ε) (𝓝 0) (𝓝 0) := by + simpa using ENNReal.Tendsto.const_mul (ENNReal.tendsto_ofReal (tendsto_id (x := 𝓝 (0 : ℝ)))) + (Or.inr hM) + rw [ENNReal.tendsto_nhds_zero] + intro δ hδ + obtain ⟨ε, hεδ, hε⟩ := (((hlim.eventually (ge_mem_nhds hδ)).filter_mono + nhdsWithin_le_nhds).and (self_mem_nhdsWithin (s := Set.Ioi (0 : ℝ)) (a := 0))).exists + filter_upwards [hsupp, hunif ε hε] with i hi hbound + rw [← eLpNorm_restrict_eq_of_support_subset (hmeas i) hi] + calc eLpNorm (h i) p (volume.restrict K) + ≤ (volume.restrict K) Set.univ ^ p.toReal⁻¹ * ENNReal.ofReal ε := + eLpNorm_le_of_ae_bound (hmeas i).restrict (ae_of_all _ hbound) + _ = M * ENNReal.ofReal ε := by rw [Measure.restrict_apply_univ] + _ ≤ δ := hεδ + +/-- **Mollification converges in `L^p`**, `1 ≤ p < ∞`: if the radii of the bumps `φ i` tend to `0`, +then `ρ_i ⋆ f → f` in `L^p` for every `f ∈ L^p`. -/ +theorem tendsto_eLpNorm_convolution_sub {ι : Type*} {l : Filter ι} {φ : ι → ContDiffBump (0 : E)} + (hφ : Tendsto (fun i => (φ i).rOut) l (𝓝 0)) {p : ℝ≥0∞} (hp : 1 ≤ p) (hp' : p ≠ ∞) + {f : E → F} (hf : MemLp f p volume) : + Tendsto (fun i => eLpNorm ((φ i).normed volume ⋆[lsmul ℝ ℝ] f - f) p volume) l (𝓝 0) := by + have hfl : LocallyIntegrable f volume := hf.locallyIntegrable hp + rw [ENNReal.tendsto_nhds_zero] + intro ε hε + have hε3 : ε / 3 ≠ 0 := by simpa using hε.ne' + -- a continuous `g` with compact support, `‖f − g‖_p ≤ ε / 3` + obtain ⟨g, hgc, hfg, hgcont, hgp⟩ := hf.exists_hasCompactSupport_eLpNorm_sub_le hp' hε3 + have hgl : LocallyIntegrable g volume := hgcont.locallyIntegrable + -- `ρ_i ⋆ g → g` uniformly, with supports in the compact `1`-neighbourhood of `tsupport g` + have hlim : Tendsto (fun i => eLpNorm ((φ i).normed volume ⋆[lsmul ℝ ℝ] g - g) p volume) l + (𝓝 0) := by + refine tendsto_eLpNorm_of_uniform (hgc.isCompact.cthickening (r := 1)) ?_ (fun i => ?_) + (fun δ hδ => ?_) p + · filter_upwards [hφ.eventually (ge_mem_nhds one_pos)] with i hi x hx + by_contra hxK + apply hx + have hgx : g x = 0 := + image_eq_zero_of_notMem_tsupport fun h => hxK (Metric.self_subset_cthickening _ h) + have hcx : ((φ i).normed volume ⋆[lsmul ℝ ℝ] g) x = 0 := by + by_contra hne + obtain ⟨a, ha, b, hb, rfl⟩ := support_convolution_subset_swap _ hne + rw [(φ i).support_normed_eq (μ := volume)] at hb + refine hxK (Metric.mem_cthickening_of_dist_le _ a 1 _ (subset_tsupport _ ha) ?_) + rw [dist_eq_norm, add_sub_cancel_left] + exact (mem_ball_zero_iff.1 hb).le.trans hi + simp [hgx, hcx] + · exact (((φ i).hasCompactSupport_normed.continuous_convolution_left _ + (φ i).continuous_normed hgl).sub hgcont).aestronglyMeasurable + · obtain ⟨η, hη, hgη⟩ := + Metric.uniformContinuous_iff.1 (hgc.uniformContinuous_of_continuous hgcont) δ hδ + filter_upwards [hφ.eventually (gt_mem_nhds hη)] with i hi x + rw [Pi.sub_apply, ← dist_eq_norm] + exact ContDiffBump.dist_normed_convolution_le hgcont.aestronglyMeasurable + fun y hy => (hgη ((Metric.mem_ball.1 hy).trans hi)).le + filter_upwards [ENNReal.tendsto_nhds_zero.1 hlim (ε / 3) (pos_iff_ne_zero.2 hε3)] with i hi + set ρ := (φ i).normed volume + have hρc : HasCompactSupport ρ := (φ i).hasCompactSupport_normed + have hconv : ρ ⋆[lsmul ℝ ℝ] f = ρ ⋆[lsmul ℝ ℝ] (f - g) + ρ ⋆[lsmul ℝ ℝ] g := by + rw [← ConvolutionExists.distrib_add, sub_add_cancel] + · exact hρc.convolutionExists_left _ (φ i).continuous_normed (hfl.sub hgl) + · exact hρc.convolutionExists_left _ (φ i).continuous_normed hgl + have hsplit : ρ ⋆[lsmul ℝ ℝ] f - f = + ρ ⋆[lsmul ℝ ℝ] (f - g) + (ρ ⋆[lsmul ℝ ℝ] g - g) + (g - f) := by + rw [hconv]; abel + rw [hsplit] + calc eLpNorm (ρ ⋆[lsmul ℝ ℝ] (f - g) + (ρ ⋆[lsmul ℝ ℝ] g - g) + (g - f)) p volume + ≤ eLpNorm (ρ ⋆[lsmul ℝ ℝ] (f - g)) p volume + eLpNorm (ρ ⋆[lsmul ℝ ℝ] g - g) p volume + + eLpNorm (g - f) p volume := + (eLpNorm_add_le hp).trans (add_le_add_left (eLpNorm_add_le hp) _) + _ ≤ ε / 3 + ε / 3 + ε / 3 := by + gcongr + · exact (eLpNorm_convolution_le (φ i) hp + (hf.aestronglyMeasurable.sub hgp.aestronglyMeasurable)).trans hfg + · rw [eLpNorm_sub_comm]; exact hfg + _ = ε := ENNReal.add_thirds ε + +omit [CompleteSpace F] in +/-- **Mollification commutes with weak derivatives**: if `Df` is a weak derivative of `f` on the +whole space, both locally integrable, then `ρ ⋆ f` has the derivative `(ρ ⋆ Df) (x)` at every +`x`. -/ +theorem hasFDerivAt_convolution_of_hasWeakFDerivOn (φ : ContDiffBump (0 : E)) {f : E → F} + {Df : E → E →L[ℝ] F} (hf : LocallyIntegrable f volume) (hDf : LocallyIntegrable Df volume) + (h : HasWeakFDerivOn Set.univ f Df) (x : E) : + HasFDerivAt (φ.normed volume ⋆[lsmul ℝ ℝ] f) ((φ.normed volume ⋆[lsmul ℝ ℝ] Df) x) x := by + set ρ := φ.normed volume + have hρc : HasCompactSupport ρ := φ.hasCompactSupport_normed + have hρs : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) ρ := φ.contDiff_normed + have hρd : Differentiable ℝ ρ := hρs.differentiable (by simp) + -- Mathlib: `D (ρ ⋆ f) = (Dρ) ⋆ f` + refine (hρc.hasFDerivAt_convolution_left (lsmul ℝ ℝ) (hρs.of_le (by exact_mod_cast le_top)) hf + x).congr_fderiv ?_ + ext v + have hex₁ : ConvolutionExistsAt (fderiv ℝ ρ) f x ((lsmul ℝ ℝ).precompL E) volume := + (hρc.fderiv ℝ).convolutionExists_left _ (hρs.continuous_fderiv (by simp)) hf x + have hex₂ : ConvolutionExistsAt ρ Df x (lsmul ℝ ℝ) volume := + hρc.convolutionExists_left _ φ.continuous_normed hDf x + rw [convolution_def, convolution_def, ContinuousLinearMap.integral_apply hex₁, + ContinuousLinearMap.integral_apply hex₂] + simp only [precompL_apply, lsmul_apply, smul_apply] + -- the weak derivative, tested against `ψ (y) = ρ (x − y)` + have hψ : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (fun y => ρ (x - y)) := + hρs.comp (contDiff_const.sub contDiff_id) + have hψc : HasCompactSupport (fun y => ρ (x - y)) := hρc.comp_homeomorph (Homeomorph.subLeft x) + have key := h v _ hψ hψc (Set.subset_univ _) + have hderiv : ∀ y, fderiv ℝ (fun y => ρ (x - y)) y v = -fderiv ℝ ρ (x - y) v := by + intro y + have hd : HasFDerivAt (fun y => ρ (x - y)) + ((fderiv ℝ ρ (x - y)).comp (-ContinuousLinearMap.id ℝ E)) y := + (hρd (x - y)).hasFDerivAt.comp y ((hasFDerivAt_id y).const_sub x) + rw [hd.fderiv] + simp + simp only [hderiv, neg_smul, integral_neg, neg_inj] at key + have e₁ := integral_sub_left_eq_self (μ := volume) (fun t => fderiv ℝ ρ t v • f (x - t)) x + have e₂ := integral_sub_left_eq_self (μ := volume) (fun t => ρ t • Df (x - t) v) x + simp only [sub_sub_cancel] at e₁ e₂ + rw [← e₁, ← e₂, key] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Cube.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Cube.lean new file mode 100644 index 0000000000..1ce4b8f2f5 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Cube.lean @@ -0,0 +1,411 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs +public import Mathlib.MeasureTheory.Group.Integral + +/-! +# The torus `𝕋^ι`, periodic functions on `ℝ^ι` and the unit cube + +* `UnitAddTorus.ofPi : ℝ^ι → 𝕋^ι = (ℝ / ℤ)^ι` and its measurable section + `UnitAddTorus.toPi : 𝕋^ι → (0, 1]^ι`; `ℤ^ι`-periodic functions (`UnitAddTorus.IsPeriodic`). +* The open unit cube `(0, 1)^ι` (`UnitAddTorus.cube`): integrals over the torus, with the Haar + measure of total mass one, are integrals over the cube (`UnitAddTorus.integral_cube_ofPi`); the + monomials `e_n (x) = e^{2πi ⟨n, x⟩}` on `ℝ^ι` (`UnitAddTorus.mFourier_ofPi`) and their + orthogonality on the cube (`UnitAddTorus.integral_cube_mFourier`). +* The torus `𝕋²` and `ℂ ≅ ℝ²` (`x + iy ↦ (x, y)`): the lattice point `n₀ + i n₁` of `n ∈ ℤ²` + (`HarmonicAnalysis.latticePoint`), the projection `HarmonicAnalysis.ofComplex : ℂ → 𝕋²`, with + `e_n (y) = e^{2πi ⟨n₀ + i n₁, y⟩}` (`HarmonicAnalysis.mFourier_ofComplex`), and integrals over + `𝕋²` as integrals over the centred cell `(−½, ½]²` of `ℂ` + (`HarmonicAnalysis.lintegral_torus_eq_centredCell`). +* The dilated cell `R · (−½, ½]² = {y : y / R ∈ (−½, ½]²}`, `R > 0` + (`HarmonicAnalysis.div_mem_centredCell_iff`, `HarmonicAnalysis.measurableSet_dilatedCell`): + `∫_{R · (−½, ½]²} f (y / R) dy = R² ∫_{𝕋²} f` (`HarmonicAnalysis.setLIntegral_dilatedCell`, + `HarmonicAnalysis.lintegral_torus_eq_dilatedCell`), for every `f : 𝕋² → [0, ∞]`; + `R^{2/p} ‖F‖_{L^p (𝕋²)} = ‖F (· / R) 1_{R · (−½, ½]²}‖_{L^p (ℂ)}` for `0 < p` and every `F` + (`HarmonicAnalysis.ofReal_rpow_mul_eLpNorm_torus_eq_dilatedCell`); these cells exhaust `ℂ` as + `R → ∞` (`HarmonicAnalysis.eventually_div_mem_centredCell`). + +The first two items normalise the measure on `ℝ / ℤ` as `Mathlib.Analysis.Fourier.AddCircleMulti` +does, with its local instances; the last two items use Mathlib's global measure on `ℝ / ℤ`, which +is the same measure of total mass one (`HarmonicAnalysis.volume_eq_pi_haarAddCircle`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology Set Complex +open scoped ComplexConjugate Real Finset ENNReal + +section HaarNormalized + +/-! As in `Mathlib.Analysis.Fourier.AddCircleMulti`, the measure on `ℝ / ℤ` is the Haar measure of +total mass one. -/ +attribute [local instance] instMeasureSpaceUnitAddCircle instIsAddHaarMeasureUnitAddCircleVolume + instIsProbabilityMeasureUnitAddCircleVolume + +namespace UnitAddTorus + +variable {ι : Type*} [Fintype ι] + +/-! ### Periodic functions on `ℝ^ι` and functions on the torus -/ + +/-- The projection `ℝ^ι → 𝕋^ι = (ℝ / ℤ)^ι`. -/ +def ofPi (x : ι → ℝ) : UnitAddTorus ι := fun i => (x i : UnitAddCircle) + +omit [Fintype ι] in +theorem continuous_ofPi : Continuous (ofPi : (ι → ℝ) → UnitAddTorus ι) := + continuous_pi fun i => (AddCircle.continuous_mk' 1).comp (continuous_apply i) + +omit [Fintype ι] in +theorem measurable_ofPi [Finite ι] : Measurable (ofPi : (ι → ℝ) → UnitAddTorus ι) := + continuous_ofPi.measurable + +omit [Fintype ι] in +theorem ofPi_add (x y : ι → ℝ) : ofPi (x + y) = ofPi x + ofPi y := by + funext i; simp [ofPi] + +omit [Fintype ι] in +theorem ofPi_add_int (x : ι → ℝ) (k : ι → ℤ) : ofPi (x + fun i => (k i : ℝ)) = ofPi x := by + funext i + simp only [ofPi, Pi.add_apply, AddCircle.coe_add, add_eq_left] + exact (AddCircle.coe_eq_zero_iff (1 : ℝ)).mpr ⟨k i, by simp⟩ + +/-- The representative of a point of the torus in `(0, 1]^ι`. -/ +def toPi (z : UnitAddTorus ι) : ι → ℝ := ((measurableEquivPiIoc (0 : ι → ℝ) z : _) : ι → ℝ) + +omit [Fintype ι] in +theorem measurable_toPi : Measurable (toPi : UnitAddTorus ι → ι → ℝ) := + measurable_subtype_coe.comp (measurableEquivPiIoc (0 : ι → ℝ)).measurable + +omit [Fintype ι] in +theorem ofPi_toPi (z : UnitAddTorus ι) : ofPi (toPi z) = z := by + funext i + simp [ofPi, toPi] + +omit [Fintype ι] in +theorem exists_toPi_ofPi (x : ι → ℝ) : ∃ k : ι → ℤ, toPi (ofPi x) = x + fun i => (k i : ℝ) := by + have h : ∀ i, ∃ k : ℤ, toPi (ofPi x) i = x i + k := by + intro i + have h1 : ((toPi (ofPi x) i - x i : ℝ) : UnitAddCircle) = 0 := by + have := congrFun (ofPi_toPi (ofPi x)) i + simp only [ofPi] at this + rw [AddCircle.coe_sub, this, sub_self] + obtain ⟨k, hk⟩ := (AddCircle.coe_eq_zero_iff (1 : ℝ)).mp h1 + exact ⟨k, by simp at hk; linarith⟩ + choose k hk using h + exact ⟨k, funext fun i => by simp [hk i]⟩ + +/-- `g` is `ℤ^ι`-periodic. -/ +def IsPeriodic {E : Type*} (g : (ι → ℝ) → E) : Prop := + ∀ (x : ι → ℝ) (k : ι → ℤ), g (x + fun i => (k i : ℝ)) = g x + +omit [Fintype ι] in +theorem IsPeriodic.comp_toPi_ofPi {E : Type*} {g : (ι → ℝ) → E} (hg : IsPeriodic g) + (x : ι → ℝ) : g (toPi (ofPi x)) = g x := by + obtain ⟨k, hk⟩ := exists_toPi_ofPi x + rw [hk, hg] + +/-- The open unit cube `(0, 1)^ι`. -/ +abbrev cube (ι : Type*) : Set (ι → ℝ) := univ.pi fun _ => Ioo (0 : ℝ) 1 + +omit [Fintype ι] in +theorem measurableSet_cube [Finite ι] : MeasurableSet (cube ι) := + MeasurableSet.univ_pi fun _ => measurableSet_Ioo + +theorem volume_cube : volume (cube ι) = 1 := by + rw [Real.volume_pi_Ioo]; simp + +instance : IsFiniteMeasure (volume.restrict (cube ι)) := + ⟨by rw [Measure.restrict_apply_univ, volume_cube]; exact ENNReal.one_lt_top⟩ + +/-- Integrals over the torus (with the Haar measure of total mass one, as in +`Mathlib.Analysis.Fourier.AddCircleMulti`) are integrals over the cube. -/ +theorem integral_cube_ofPi {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + (F : UnitAddTorus ι → E) : ∫ x in cube ι, F (ofPi x) = ∫ z, F z := by + rw [integral_preimage F 0] + have h1 : {x : ι → ℝ | ∀ i, x i ∈ Ioc ((0 : ι → ℝ) i) ((0 : ι → ℝ) i + 1)} = + univ.pi fun _ => Ioc (0 : ℝ) 1 := by + ext x; simp + rw [h1] + exact setIntegral_congr_set + (Measure.univ_pi_Ioo_ae_eq_Icc.trans Measure.univ_pi_Ioc_ae_eq_Icc.symm) + +/-- The integral over the cube of a periodic function is invariant under translations. -/ +theorem integral_cube_comp_add {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + {g : (ι → ℝ) → E} (hg : IsPeriodic g) (a : ι → ℝ) : + ∫ x in cube ι, g (x + a) = ∫ x in cube ι, g x := by + have h1 : ∀ x, g (x + a) = (g ∘ toPi) (ofPi x + ofPi a) := fun x => by + rw [Function.comp_apply, ← ofPi_add, hg.comp_toPi_ofPi] + have h2 : ∀ x, g x = (g ∘ toPi) (ofPi x) := fun x => (hg.comp_toPi_ofPi x).symm + simp_rw [h1, h2] + rw [integral_cube_ofPi (fun z => (g ∘ toPi) (z + ofPi a)), integral_cube_ofPi, + integral_add_right_eq_self] + +/-! ### The monomials on `ℝ^ι` -/ + +theorem mFourier_ofPi (n : ι → ℤ) (x : ι → ℝ) : + mFourier n (ofPi x) = Complex.exp (2 * π * I * ∑ i, (n i : ℂ) * (x i : ℂ)) := by + simp only [mFourier, ContinuousMap.coe_mk, ofPi, fourier_coe_apply, ← Complex.exp_sum] + congr 1 + rw [Finset.mul_sum] + refine Finset.sum_congr rfl fun i _ => ?_ + push_cast + ring + +/-- `|e_n| = 1` on `𝕋^ι`. -/ +theorem norm_mFourier_apply_eq_one (n : ι → ℤ) (z : UnitAddTorus ι) : ‖mFourier n z‖ = 1 := by + simp [mFourier, fourier_apply, norm_prod, Circle.norm_coe] + +theorem norm_mFourier_ofPi (n : ι → ℤ) (x : ι → ℝ) : ‖mFourier n (ofPi x)‖ = 1 := + norm_mFourier_apply_eq_one n (ofPi x) + +theorem mFourier_ofPi_add (n : ι → ℤ) (x y : ι → ℝ) : + mFourier n (ofPi (x + y)) = mFourier n (ofPi x) * mFourier n (ofPi y) := by + simp only [mFourier_ofPi, ← Complex.exp_add, Pi.add_apply] + congr 1 + push_cast + rw [← mul_add, ← Finset.sum_add_distrib] + congr 1 + exact Finset.sum_congr rfl fun i _ => by ring + +theorem mFourier_ofPi_neg (n : ι → ℤ) (x : ι → ℝ) : + mFourier (-n) (ofPi x) = mFourier n (ofPi (-x)) := by + simp only [mFourier_ofPi, Pi.neg_apply] + congr 1 + push_cast + congr 1 + exact Finset.sum_congr rfl fun i _ => by ring + +theorem mFourier_ofPi_add_index (m n : ι → ℤ) (x : ι → ℝ) : + mFourier (m + n) (ofPi x) = mFourier m (ofPi x) * mFourier n (ofPi x) := + mFourier_add + +theorem continuous_mFourier_ofPi (n : ι → ℤ) : Continuous fun x : ι → ℝ => mFourier n (ofPi x) := + (mFourier n).continuous.comp continuous_ofPi + +theorem mFourier_ofPi_isPeriodic (n : ι → ℤ) : IsPeriodic fun x : ι → ℝ => mFourier n (ofPi x) := + fun x k => by simp only [ofPi_add_int] + +/-- Orthogonality: `∫_{(0,1)^ι} e_m = 1` if `m = 0`, and `0` otherwise. -/ +theorem integral_cube_mFourier (m : ι → ℤ) : + ∫ x in cube ι, mFourier m (ofPi x) = if m = 0 then 1 else 0 := by + rw [integral_cube_ofPi (fun z => mFourier m z)] + have h := (orthonormal_iff_ite.mp (orthonormal_mFourier (d := ι))) 0 m + rw [ContinuousMap.inner_toLp] at h + simp only [mFourier_zero, ContinuousMap.one_apply, map_one, mul_one] at h + rw [h] + by_cases hm : m = 0 <;> simp [hm, eq_comm] + +end UnitAddTorus + +end HaarNormalized + +namespace HarmonicAnalysis + +open UnitAddTorus + +/-- Mathlib's measure on the torus, of total mass one, is the product of the Haar probability +measures. -/ +theorem volume_eq_pi_haarAddCircle {ι : Type*} [Fintype ι] : + (volume : Measure (UnitAddTorus ι)) = Measure.pi fun _ : ι => AddCircle.haarAddCircle := by + rw [volume_pi] + congr 1 + funext i + rw [AddCircle.volume_eq_smul_haarAddCircle, ENNReal.ofReal_one, one_smul] + +/-- The projection `ℂ → 𝕋² = (ℝ / ℤ)²`, `y ↦ (Re y, Im y) mod ℤ²`. -/ +def ofComplex (y : ℂ) : UnitAddTorus (Fin 2) := ofPi ![y.re, y.im] + +/-- The centred cell `{y : Re y, Im y ∈ (−½, ½]}` of the lattice `ℤ² = ℤ + iℤ ⊂ ℂ`. -/ +def centredCell : Set ℂ := {y | y.re ∈ Ioc (-2⁻¹ : ℝ) 2⁻¹ ∧ y.im ∈ Ioc (-2⁻¹ : ℝ) 2⁻¹} + +/-- The projection `ℂ → 𝕋²` is continuous. -/ +theorem continuous_ofComplex : Continuous ofComplex := + continuous_ofPi.comp (continuous_pi fun i => by fin_cases i <;> simpa using by fun_prop) + +/-- The projection `ℂ → 𝕋²` is measurable. -/ +theorem measurable_ofComplex : Measurable ofComplex := + continuous_ofComplex.measurable + +/-- The centred cell `(−½, ½]²` is measurable. -/ +theorem measurableSet_centredCell : MeasurableSet centredCell := + (measurable_re measurableSet_Ioc).inter (measurable_im measurableSet_Ioc) + +/-- The monomial `e_n` on `ℂ`: `e_n (y) = e^{2πi ⟨n₀ + i n₁, y⟩}`. -/ +theorem mFourier_ofComplex (n : Fin 2 → ℤ) (y : ℂ) : + mFourier n (ofComplex y) = + Complex.exp (2 * π * Complex.I * (inner ℝ (latticePoint n) y : ℝ)) := by + rw [ofComplex, mFourier_ofPi] + congr 1 + simp [Fin.sum_univ_two, latticePoint, Complex.inner] + ring + +/-- Integrals over `𝕋²` (with Mathlib's measure, of total mass one) are integrals over the centred +cell of `ℂ`. -/ +theorem lintegral_torus_eq_centredCell (f : UnitAddTorus (Fin 2) → ℝ≥0∞) : + ∫⁻ x, f x = ∫⁻ y in centredCell, f (ofComplex y) := by + have hvol : (volume : Measure (UnitAddTorus (Fin 2))) = + @volume _ (@MeasureSpace.pi (Fin 2) _ (fun _ => UnitAddCircle) + (fun _ => instMeasureSpaceUnitAddCircle)) := + volume_eq_pi_haarAddCircle + rw [hvol, UnitAddTorus.lintegral_preimage f (fun _ => -2⁻¹), + ← Complex.volume_preserving_equiv_pi.setLIntegral_comp_preimage_emb + Complex.measurableEquivPi.measurableEmbedding] + congr 2 + ext y + simp only [mem_preimage, mem_ofPred_eq, Fin.forall_fin_two, measurableEquivPi_apply, + Matrix.cons_val_zero, Matrix.cons_val_one, centredCell] + norm_num + +/-! ### Dilated cells + +For `R > 0`, the dilated cell `R · (−½, ½]² = {y : y / R ∈ (−½, ½]²}` of `ℂ`: integrals and `L^p` +norms over `𝕋²` as integrals and `L^p` norms over it, after the change of variables `y ↦ y / R`. -/ + +/-- `y ∈ R · (−½, ½]²` if and only if `Re y, Im y ∈ (−R/2, R/2]`. -/ +theorem div_mem_centredCell_iff {R : ℝ} (hR : 0 < R) {y : ℂ} : + y / R ∈ centredCell ↔ y.re ∈ Ioc (-(R / 2)) (R / 2) ∧ y.im ∈ Ioc (-(R / 2)) (R / 2) := by + simp only [centredCell, mem_ofPred_eq, div_ofReal_re, div_ofReal_im, mem_Ioc, + lt_div_iff₀ hR, div_le_iff₀ hR] + constructor <;> rintro ⟨⟨h1, h2⟩, h3, h4⟩ <;> refine ⟨⟨?_, ?_⟩, ?_, ?_⟩ <;> linarith + +/-- The dilated cell `R · (−½, ½]²` is measurable. -/ +theorem measurableSet_dilatedCell (R : ℝ) : MeasurableSet {y : ℂ | y / R ∈ centredCell} := + measurableSet_centredCell.preimage (measurable_id.div_const _) + +/-- Integrals over `𝕋²` (with Mathlib's measure, of total mass one) are, up to the factor `R²`, +integrals over the dilated cell `R · (−½, ½]²`: for `R > 0`, +`∫_{R · (−½, ½]²} f (y / R) dy = R² ∫_{𝕋²} f`. -/ +theorem setLIntegral_dilatedCell (f : UnitAddTorus (Fin 2) → ℝ≥0∞) {R : ℝ} (hR : 0 < R) : + ∫⁻ y in {y : ℂ | y / R ∈ centredCell}, f (ofComplex (y / R)) = + ENNReal.ofReal (R ^ 2) * ∫⁻ x, f x := by + have hR' : R⁻¹ ≠ 0 := inv_ne_zero hR.ne' + let e : ℂ ≃ᵐ ℂ := MeasurableEquiv.smul₀ R⁻¹ hR' + have he : ∀ y : ℂ, e y = y / R := fun y => by + simp [e, Complex.real_smul, div_eq_inv_mul] + have hmap : Measure.map e volume = ENNReal.ofReal (R ^ 2) • (volume : Measure ℂ) := by + rw [MeasurableEquiv.coe_smul₀, Measure.map_addHaar_smul volume hR', + Module.finrank_eq_card_basis Complex.basisOneI, Fintype.card_fin, inv_pow, inv_inv, + abs_of_nonneg (sq_nonneg R)] + have hset : {y : ℂ | y / R ∈ centredCell} = e ⁻¹' centredCell := by + ext y + simp [he] + rw [lintegral_torus_eq_centredCell, hset] + simp_rw [← he] + calc ∫⁻ y in e ⁻¹' centredCell, f (ofComplex (e y)) + = ∫⁻ y in centredCell, f (ofComplex y) ∂(Measure.map e volume) := by + rw [MeasurableEquiv.restrict_map, lintegral_map_equiv] + _ = _ := by rw [hmap, Measure.restrict_smul, lintegral_smul_measure, smul_eq_mul] + +/-- Integrals over `𝕋²` (with Mathlib's measure, of total mass one) as integrals over the dilated +cell `R · (−½, ½]²`: for `R > 0`, `∫_{𝕋²} f = R⁻² ∫_{R · (−½, ½]²} f (y / R) dy`. -/ +theorem lintegral_torus_eq_dilatedCell (f : UnitAddTorus (Fin 2) → ℝ≥0∞) {R : ℝ} (hR : 0 < R) : + ∫⁻ x, f x = + ENNReal.ofReal (R ^ 2)⁻¹ * ∫⁻ y in {y : ℂ | y / R ∈ centredCell}, f (ofComplex (y / R)) := by + rw [setLIntegral_dilatedCell f hR, ← mul_assoc, ← ENNReal.ofReal_mul (by positivity), + inv_mul_cancel₀ (by positivity), ENNReal.ofReal_one, one_mul] + +/-- A measurable section of `ofComplex` with values in the centred cell, inverse to `ofComplex` on +the cell. -/ +private theorem exists_section_ofComplex : ∃ g : UnitAddTorus (Fin 2) → ℂ, Measurable g ∧ + (∀ z, ofComplex (g z) = z) ∧ (∀ z, g z ∈ centredCell) ∧ + ∀ y ∈ centredCell, g (ofComplex y) = y := by + let e := measurableEquivPiIoc (fun _ : Fin 2 => (-2⁻¹ : ℝ)) + refine ⟨fun z => measurableEquivPi.symm (e z).1, ?_, fun z => ?_, fun z => ?_, fun y hy => ?_⟩ + · exact measurableEquivPi.symm.measurable.comp (measurable_subtype_coe.comp e.measurable) + · funext i + fin_cases i <;> simp [ofComplex, ofPi, e] + · have h := (e z).2 + simp only [Fin.forall_fin_two] at h + norm_num at h + simpa [centredCell] using h + · have h1 : y.re ∈ Ioc (-2⁻¹ : ℝ) (-2⁻¹ + 1) := by convert hy.1 using 2; norm_num + have h2 : y.im ∈ Ioc (-2⁻¹ : ℝ) (-2⁻¹ + 1) := by convert hy.2 using 2; norm_num + apply Complex.ext <;> simp [e, ofComplex, ofPi, AddCircle.equivIoc_coe_of_mem h1, + AddCircle.equivIoc_coe_of_mem h2] + +/-- `L^p` norms over `𝕋²` (with Mathlib's measure, of total mass one) as `L^p` norms over the +dilated cell `R · (−½, ½]²`: for `0 < p` and `R > 0`, +`R^{2/p} ‖F‖_{L^p (𝕋²)} = ‖F (· / R) 1_{R · (−½, ½]²}‖_{L^p (ℂ)}`. No measurability of `F` is +assumed. -/ +theorem ofReal_rpow_mul_eLpNorm_torus_eq_dilatedCell (F : UnitAddTorus (Fin 2) → ℂ) {p : ℝ} + (hp : 0 < p) {R : ℝ} (hR : 0 < R) : + ENNReal.ofReal (R ^ (2 / p)) * eLpNorm F (ENNReal.ofReal p) volume = + eLpNorm ({y : ℂ | y / R ∈ centredCell}.indicator fun y => F (ofComplex (y / R))) + (ENNReal.ofReal p) volume := by + obtain ⟨g, hgm, hg1, hg2, hg3⟩ := exists_section_ofComplex + set S := {y : ℂ | y / R ∈ centredCell} + have hS : MeasurableSet S := measurableSet_dilatedCell R + have hR0 : (R : ℂ) ≠ 0 := ofReal_ne_zero.2 hR.ne' + -- `ψ z = R g (z)` is a measurable embedding of `𝕋²` onto the dilated cell, inverse to + -- `y ↦ ofComplex (y / R)` there. + let ψ : UnitAddTorus (Fin 2) → ℂ := fun z => R * g z + have hψφ : ∀ y ∈ S, ψ (ofComplex (y / R)) = y := fun y hy => by + simp only [ψ, hg3 _ hy] + field_simp + have hφψ : ∀ z, ofComplex (ψ z / R) = z := fun z => by + simp only [ψ] + rw [mul_div_cancel_left₀ _ hR0] + exact hg1 z + have hψS : ∀ z, ψ z ∈ S := fun z => by + change ψ z / R ∈ centredCell + simp only [ψ] + rw [mul_div_cancel_left₀ _ hR0] + exact hg2 z + have hψm : Measurable ψ := measurable_const.mul hgm + have hφm : Measurable fun y : ℂ => ofComplex (y / R) := + measurable_ofComplex.comp (measurable_id.div_const _) + have hemb : MeasurableEmbedding ψ := by + refine ⟨fun z w h => by rw [← hφψ z, ← hφψ w, h], hψm, fun s hs => ?_⟩ + have : ψ '' s = S ∩ (fun y : ℂ => ofComplex (y / R)) ⁻¹' s := by + ext y + constructor + · rintro ⟨z, hz, rfl⟩ + exact ⟨hψS z, by simp only [mem_preimage, hφψ z, hz]⟩ + · rintro ⟨hy, hys⟩ + exact ⟨_, hys, hψφ y hy⟩ + rw [this] + exact hS.inter (hφm hs) + have hmap : Measure.map ψ (ENNReal.ofReal (R ^ 2) • volume) = volume.restrict S := by + ext s hs + rw [Measure.map_apply hψm hs, smul_apply, smul_eq_mul, + ← lintegral_indicator_one (hψm hs), ← setLIntegral_dilatedCell _ hR, + ← lintegral_indicator_one hs] + refine setLIntegral_congr_fun hS fun y hy => ?_ + have h : ofComplex (y / R) ∈ ψ ⁻¹' s ↔ y ∈ s := by rw [mem_preimage, hψφ y hy] + by_cases hys : y ∈ s + · rw [indicator_of_mem hys, indicator_of_mem (h.2 hys)] + rfl + · rw [indicator_of_notMem hys, indicator_of_notMem (mt h.1 hys)] + have h1 : eLpNorm F (ENNReal.ofReal p) (ENNReal.ofReal (R ^ 2) • volume) = + eLpNorm (S.indicator fun y => F (ofComplex (y / R))) (ENNReal.ofReal p) volume := by + rw [eLpNorm_indicator_eq_eLpNorm_restrict hS.nullMeasurableSet, ← hmap, + hemb.eLpNorm_map_measure] + congr 1 + funext z + simp only [Function.comp_apply, hφψ z] + rw [← h1, eLpNorm_smul_measure_of_ne_zero_of_ne_top (ENNReal.ofReal_pos.2 hp).ne' + ENNReal.ofReal_ne_top, smul_eq_mul] + congr 1 + rw [ENNReal.ofReal_rpow_of_nonneg (by positivity) (by positivity), one_div, ENNReal.toReal_inv, + ENNReal.toReal_ofReal hp.le, ← Real.rpow_natCast, ← Real.rpow_mul hR.le, Nat.cast_ofNat, + div_eq_mul_inv] + +/-- The dilated cells `R · (−½, ½]²` exhaust `ℂ` as `R → ∞`. -/ +theorem eventually_div_mem_centredCell (y : ℂ) : ∀ᶠ R : ℝ in atTop, y / R ∈ centredCell := by + filter_upwards [eventually_gt_atTop (2 * ‖y‖)] with R hR + rw [div_mem_centredCell_iff (lt_of_le_of_lt (by positivity) hR)] + have h1 := abs_re_le_norm y + have h2 := abs_im_le_norm y + refine ⟨⟨?_, ?_⟩, ?_, ?_⟩ <;> + linarith [neg_abs_le y.re, le_abs_self y.re, neg_abs_le y.im, le_abs_self y.im] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Lattice.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Lattice.lean new file mode 100644 index 0000000000..b04ad4b175 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Lattice.lean @@ -0,0 +1,192 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Cube +public import Mathlib.NumberTheory.ModularForms.EisensteinSeries.Summable + +/-! +# The lattice `ℤ² ⊂ ℂ`, its cells and `ℤ²`-periodic functions on `ℂ` + +* The lattice points `n₀ + i n₁` (`HarmonicAnalysis.latticePoint`): additivity, and + `‖n‖_∞ ≤ |n₀ + i n₁|` (`HarmonicAnalysis.norm_le_norm_latticePoint`); the series + `Σ_{n ∈ ℤ²} ‖n‖_∞^{−3}` converges (`HarmonicAnalysis.summable_inv_norm_pow_three`). +* The translates `j + (−½, ½]²`, `j ∈ ℤ²`, tile `ℂ`: + `∫_ℂ h = Σ_j ∫_{(−½, ½]²} h (y + j) dy` for integrable `h` + (`HarmonicAnalysis.hasSum_integral_centredCell_add`). +* Fourier coefficients on `𝕋²` as integrals over the centred cell + (`HarmonicAnalysis.mFourierCoeff_eq_integral_centredCell`). +* A `ℤ²`-periodic function `g` on `ℂ` descends to `𝕋²` (`HarmonicAnalysis.torusLift`), with + `torusLift g (ofComplex y) = g y`; it is continuous when `g` is, since `ofComplex` is an open + quotient map (`HarmonicAnalysis.isOpenQuotientMap_ofComplex`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology Set Complex +open scoped ComplexConjugate Real ENNReal + +namespace HarmonicAnalysis + +open UnitAddTorus + +/-! ### Lattice points -/ + +@[simp] +theorem latticePoint_re (n : Fin 2 → ℤ) : (latticePoint n).re = n 0 := by + simp [latticePoint] + +@[simp] +theorem latticePoint_im (n : Fin 2 → ℤ) : (latticePoint n).im = n 1 := by + simp [latticePoint] + +theorem latticePoint_add (m n : Fin 2 → ℤ) : + latticePoint (m + n) = latticePoint m + latticePoint n := by + apply Complex.ext <;> simp + +@[simp] +theorem latticePoint_zero : latticePoint 0 = 0 := by + apply Complex.ext <;> simp + +theorem latticePoint_neg (n : Fin 2 → ℤ) : latticePoint (-n) = -latticePoint n := by + apply Complex.ext <;> simp + +/-- `‖n‖_∞ ≤ |n₀ + i n₁|`. -/ +theorem norm_le_norm_latticePoint (n : Fin 2 → ℤ) : ‖n‖ ≤ ‖latticePoint n‖ := by + refine (pi_norm_le_iff_of_nonneg (norm_nonneg _)).2 fun i => ?_ + fin_cases i + · simpa [Int.norm_eq_abs] using abs_re_le_norm (latticePoint n) + · simpa [Int.norm_eq_abs] using abs_im_le_norm (latticePoint n) + +/-- The projection `ℂ → 𝕋²` is `ℤ²`-periodic. -/ +theorem ofComplex_add_latticePoint (y : ℂ) (k : Fin 2 → ℤ) : + ofComplex (y + latticePoint k) = ofComplex y := by + have h : ![(y + latticePoint k).re, (y + latticePoint k).im] = + ![y.re, y.im] + fun i => (k i : ℝ) := by + funext i + fin_cases i <;> simp + rw [ofComplex, h, ofPi_add_int, ofComplex] + +/-- `Σ_{n ∈ ℤ²} ‖n‖_∞^{−3}` converges (the term `n = 0` is `0`). -/ +theorem summable_inv_norm_pow_three : Summable fun n : Fin 2 → ℤ => (‖n‖ ^ 3)⁻¹ := by + refine (EisensteinSeries.summable_one_div_norm_rpow (k := 3) (by norm_num)).congr fun n => ?_ + rw [Real.rpow_neg (norm_nonneg _), show (3 : ℝ) = (3 : ℕ) by norm_num, Real.rpow_natCast] + +/-! ### The tiling of `ℂ` by the translates of the centred cell -/ + +/-- The centred cell lies in the closed unit disc. -/ +theorem centredCell_subset_closedBall : centredCell ⊆ Metric.closedBall (0 : ℂ) 1 := by + intro y hy + obtain ⟨⟨h1, h2⟩, h3, h4⟩ := hy + rw [mem_closedBall_zero_iff] + have h5 : |y.re| ≤ 2⁻¹ := abs_le.2 ⟨h1.le, h2⟩ + have h6 : |y.im| ≤ 2⁻¹ := abs_le.2 ⟨h3.le, h4⟩ + linarith [norm_le_abs_re_add_abs_im y] + +/-- The centred cell has finite measure. -/ +theorem volume_centredCell_lt_top : volume centredCell < ∞ := + (measure_mono centredCell_subset_closedBall).trans_lt measure_closedBall_lt_top + +/-- An integer in `(−1, 1)` is `0`. -/ +private theorem int_eq_zero_of_abs_lt_one {m : ℤ} (h1 : -1 < (m : ℝ)) (h2 : (m : ℝ) < 1) : + m = 0 := by + have h1' : -1 < m := by exact_mod_cast h1 + have h2' : m < 1 := by exact_mod_cast h2 + omega + +/-- The translates `j + (−½, ½]²`, `j ∈ ℤ²`, of the centred cell tile `ℂ`: for integrable `h`, +`∫_ℂ h = Σ_{j ∈ ℤ²} ∫_{(−½, ½]²} h (y + j) dy`. -/ +theorem hasSum_integral_centredCell_add {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + {h : ℂ → E} (hh : Integrable h) : + HasSum (fun k : Fin 2 → ℤ => ∫ y in centredCell, h (y + latticePoint k)) (∫ y, h y) := by + set s : (Fin 2 → ℤ) → Set ℂ := fun k => (fun y => y - latticePoint k) ⁻¹' centredCell + have hm : ∀ k, MeasurableSet (s k) := fun k => + measurableSet_centredCell.preimage (measurable_id.sub_const _) + have hd : Pairwise (Function.onFun Disjoint s) := by + intro j k hjk + refine Set.disjoint_left.2 fun y hj hk => hjk ?_ + simp only [s, mem_preimage, centredCell, mem_ofPred_eq, mem_Ioc, sub_re, sub_im, + latticePoint_re, latticePoint_im] at hj hk + funext i + fin_cases i + · have := int_eq_zero_of_abs_lt_one (m := j 0 - k 0) (by push_cast; linarith) + (by push_cast; linarith) + simp only [Fin.zero_eta, Fin.isValue] + omega + · have := int_eq_zero_of_abs_lt_one (m := j 1 - k 1) (by push_cast; linarith) + (by push_cast; linarith) + simp only [Fin.mk_one, Fin.isValue] + omega + have hU : (⋃ k, s k) = univ := by + refine eq_univ_of_forall fun y => mem_iUnion.2 ⟨![⌈y.re - 2⁻¹⌉, ⌈y.im - 2⁻¹⌉], ?_⟩ + simp only [s, mem_preimage, centredCell, mem_ofPred_eq, mem_Ioc, sub_re, sub_im, + latticePoint_re, latticePoint_im, Matrix.cons_val_zero, Matrix.cons_val_one] + have h1 := Int.le_ceil (y.re - 2⁻¹) + have h2 := Int.ceil_lt_add_one (y.re - 2⁻¹) + have h3 := Int.le_ceil (y.im - 2⁻¹) + have h4 := Int.ceil_lt_add_one (y.im - 2⁻¹) + refine ⟨⟨?_, ?_⟩, ?_, ?_⟩ <;> linarith + have hsum := hasSum_integral_iUnion hm hd (hh.integrableOn (s := ⋃ k, s k)) + rw [hU, Measure.restrict_univ] at hsum + refine hsum.congr_fun fun k => ?_ + have hpre : (fun y => y + latticePoint k) ⁻¹' s k = centredCell := by + ext y + simp [s] + rw [← hpre, (measurePreserving_add_right volume (latticePoint k)).setIntegral_preimage_emb + (measurableEmbedding_addRight _) h (s k)] + +/-! ### Functions on the torus -/ + +/-- `|e_n| = 1` on `𝕋²`. -/ +theorem norm_mFourier_apply (n : Fin 2 → ℤ) (z : UnitAddTorus (Fin 2)) : ‖mFourier n z‖ = 1 := + norm_mFourier_apply_eq_one n z + +/-- Fourier coefficients on `𝕋²` (with the Haar measure of total mass one) as integrals over the +centred cell: `F̂ (n) = ∫_{(−½, ½]²} e_{−n} (y) F (y) dy`. -/ +theorem mFourierCoeff_eq_integral_centredCell {E : Type*} [NormedAddCommGroup E] + [NormedSpace ℂ E] (F : UnitAddTorus (Fin 2) → E) (n : Fin 2 → ℤ) : + mFourierCoeff F n = ∫ y in centredCell, mFourier (-n) (ofComplex y) • F (ofComplex y) := by + rw [mFourierCoeff_eq_integral F n (fun _ => -2⁻¹), + ← Complex.volume_preserving_equiv_pi.setIntegral_preimage_emb + Complex.measurableEquivPi.measurableEmbedding] + congr 1 + ext y + simp only [Fin.forall_fin_two, centredCell] + norm_num + +/-- The projection `ℂ → 𝕋²` is an open quotient map. -/ +theorem isOpenQuotientMap_ofComplex : IsOpenQuotientMap ofComplex := by + have h1 : IsOpenQuotientMap (ofPi : (Fin 2 → ℝ) → UnitAddTorus (Fin 2)) := + IsOpenQuotientMap.piMap fun _ => QuotientAddGroup.isOpenQuotientMap_mk + exact h1.comp basisOneI.equivFun.toContinuousLinearEquiv.toHomeomorph.isOpenQuotientMap + +/-- The function on `𝕋²` induced by a function `g` on `ℂ`: its value at `z` is the value of `g` at +the representative of `z` in `(0, 1]²`. For `ℤ²`-periodic `g`, `torusLift g (ofComplex y) = g y` +(`HarmonicAnalysis.torusLift_ofComplex`). -/ +def torusLift (g : ℂ → ℂ) (z : UnitAddTorus (Fin 2)) : ℂ := + g ((toPi z 0 : ℂ) + (toPi z 1 : ℂ) * I) + +theorem torusLift_ofComplex {g : ℂ → ℂ} (hg : ∀ y k, g (y + latticePoint k) = g y) (y : ℂ) : + torusLift g (ofComplex y) = g y := by + obtain ⟨k, hk⟩ := exists_toPi_ofPi ![y.re, y.im] + have h : (toPi (ofComplex y) 0 : ℂ) + (toPi (ofComplex y) 1 : ℂ) * I = y + latticePoint k := by + rw [ofComplex, hk] + apply Complex.ext <;> simp + rw [torusLift, h, hg] + +/-- A continuous `ℤ²`-periodic function on `ℂ` descends to a continuous function on `𝕋²`. -/ +theorem continuous_torusLift {g : ℂ → ℂ} (hg : ∀ y k, g (y + latticePoint k) = g y) + (hc : Continuous g) : Continuous (torusLift g) := by + rw [← isOpenQuotientMap_ofComplex.continuous_comp_iff] + convert hc using 1 + funext y + exact torusLift_ofComplex hg y + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Lipschitz.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Lipschitz.lean new file mode 100644 index 0000000000..fa12aea3c9 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Lipschitz.lean @@ -0,0 +1,249 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Cube +public import Mathlib.Analysis.Calculus.Rademacher + +/-! +# Fourier coefficients over the unit cube, and derivatives of Lipschitz periodic functions + +For a function `g : ℝ^ι → ℂ`, its Fourier coefficients over the open unit cube `(0, 1)^ι` +(`UnitAddTorus.cubeFourierCoeff`) are `ĝ (n) = ∫_{(0,1)^ι} e^{−2πi ⟨n, x⟩} g (x) dx`, `n ∈ ℤ^ι`; +for a `ℤ^ι`-periodic `g` they are the Fourier coefficients on the torus `𝕋^ι` of the function that +`g` induces there (Grafakos, *Classical Fourier Analysis*, Chapter 3). + +* Linearity (`UnitAddTorus.cubeFourierCoeff_add`, `UnitAddTorus.cubeFourierCoeff_sub`, + `UnitAddTorus.cubeFourierCoeff_const_mul`), for bounded measurable functions, and the + coefficients of a trigonometric polynomial (`UnitAddTorus.cubeFourierCoeff_trig`, + `UnitAddTorus.cubeFourierCoeff_one`), by the orthogonality of the monomials `e_n`. +* Parseval's identity `Σ_n |ĝ (n)|² = ∫_{(0,1)^ι} |g|²` for bounded measurable periodic `g` + (`UnitAddTorus.hasSum_sq_cubeFourierCoeff`), from Mathlib's Parseval identity on the torus. +* The coefficients of a derivative: for a Lipschitz `ℤ^ι`-periodic `f : ℝ^ι → ℝ`, + `(∂_v f)^ (n) = 2πi ⟨n, v⟩ f̂ (n)`, with `∂_v f (x) = fderiv ℝ f x v`, which is the derivative of + `f` almost everywhere by Rademacher's theorem (`UnitAddTorus.cubeFourierCoeff_fderiv`). The + proof integrates the difference quotients against `e_{−n}`, moves the translation onto `e_{−n}` + and passes to the limit by dominated convergence. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology Set Complex +open scoped ComplexConjugate Real Finset + +/-! As in `Mathlib.Analysis.Fourier.AddCircleMulti` (whose local instances these are), the measure +on `ℝ / ℤ` is the Haar measure of total mass one. -/ +attribute [local instance] instMeasureSpaceUnitAddCircle instIsAddHaarMeasureUnitAddCircleVolume + instIsProbabilityMeasureUnitAddCircleVolume + +namespace UnitAddTorus + +variable {ι : Type*} [Fintype ι] + +/-! ### Fourier coefficients over the cube -/ + +/-- The `n`-th Fourier coefficient of a function on `ℝ^ι`, over the cube: +`ĝ (n) = ∫_{(0,1)^ι} e^{−2πi ⟨n, x⟩} g (x) dx`. -/ +def cubeFourierCoeff (g : (ι → ℝ) → ℂ) (n : ι → ℤ) : ℂ := + ∫ x in cube ι, mFourier (-n) (ofPi x) * g x + +theorem integrableOn_cube_of_bound {E : Type*} [NormedAddCommGroup E] {g : (ι → ℝ) → E} + (hg : AEStronglyMeasurable g) {C : ℝ} (hC : ∀ x, ‖g x‖ ≤ C) : IntegrableOn g (cube ι) := + Measure.integrableOn_of_bounded (by rw [volume_cube]; exact ENNReal.one_ne_top) hg + (ae_of_all _ hC) + +theorem integrableOn_cube_mFourier_mul {g : (ι → ℝ) → ℂ} (hg : AEStronglyMeasurable g) {C : ℝ} + (hC : ∀ x, ‖g x‖ ≤ C) (n : ι → ℤ) : + IntegrableOn (fun x => mFourier n (ofPi x) * g x) (cube ι) := + integrableOn_cube_of_bound ((continuous_mFourier_ofPi n).aestronglyMeasurable.mul hg) + (C := C) fun x => by rw [norm_mul, norm_mFourier_ofPi, one_mul]; exact hC x + +theorem cubeFourierCoeff_add {g h : (ι → ℝ) → ℂ} (hg : AEStronglyMeasurable g) {C : ℝ} + (hgC : ∀ x, ‖g x‖ ≤ C) (hh : AEStronglyMeasurable h) {D : ℝ} (hhD : ∀ x, ‖h x‖ ≤ D) + (n : ι → ℤ) : + cubeFourierCoeff (fun x => g x + h x) n = cubeFourierCoeff g n + cubeFourierCoeff h n := by + simp only [cubeFourierCoeff, mul_add] + exact integral_add (integrableOn_cube_mFourier_mul hg hgC _) + (integrableOn_cube_mFourier_mul hh hhD _) + +theorem cubeFourierCoeff_sub {g h : (ι → ℝ) → ℂ} (hg : AEStronglyMeasurable g) {C : ℝ} + (hgC : ∀ x, ‖g x‖ ≤ C) (hh : AEStronglyMeasurable h) {D : ℝ} (hhD : ∀ x, ‖h x‖ ≤ D) + (n : ι → ℤ) : + cubeFourierCoeff (fun x => g x - h x) n = cubeFourierCoeff g n - cubeFourierCoeff h n := by + simp only [cubeFourierCoeff, mul_sub] + exact integral_sub (integrableOn_cube_mFourier_mul hg hgC _) + (integrableOn_cube_mFourier_mul hh hhD _) + +theorem cubeFourierCoeff_const_mul (c : ℂ) (g : (ι → ℝ) → ℂ) (n : ι → ℤ) : + cubeFourierCoeff (fun x => c * g x) n = c * cubeFourierCoeff g n := by + simp only [cubeFourierCoeff, mul_left_comm _ c] + exact integral_const_mul c _ + +/-- The coefficients of a trigonometric polynomial. -/ +theorem cubeFourierCoeff_trig (S : Finset (ι → ℤ)) (c : (ι → ℤ) → ℂ) (n : ι → ℤ) : + cubeFourierCoeff (fun x => ∑ m ∈ S, c m * mFourier m (ofPi x)) n = + if n ∈ S then c n else 0 := by + simp only [cubeFourierCoeff, Finset.mul_sum] + rw [integral_finsetSum] + · have : ∀ m ∈ S, ∫ x in cube ι, mFourier (-n) (ofPi x) * (c m * mFourier m (ofPi x)) = + if n = m then c m else 0 := by + intro m _ + have e : ∀ x, mFourier (-n) (ofPi x) * (c m * mFourier m (ofPi x)) = + c m * mFourier (-n + m) (ofPi x) := fun x => by + rw [mFourier_ofPi_add_index]; ring + simp_rw [e] + rw [integral_const_mul, integral_cube_mFourier] + by_cases h : n = m + · simp [h] + · have h' : -n + m ≠ 0 := fun h0 => h (neg_add_eq_zero.mp h0) + simp [h, h'] + rw [Finset.sum_congr rfl this, Finset.sum_ite_eq] + · intro m _ + exact integrableOn_cube_of_bound ((continuous_mFourier_ofPi _).mul + (continuous_const.mul (continuous_mFourier_ofPi _))).aestronglyMeasurable (C := ‖c m‖) + fun x => by rw [norm_mul, norm_mul, norm_mFourier_ofPi, norm_mFourier_ofPi]; simp + +/-- The coefficients of the constant `1`. -/ +theorem cubeFourierCoeff_one (n : ι → ℤ) : + cubeFourierCoeff (fun _ => (1 : ℂ)) n = if n = 0 then 1 else 0 := by + rw [cubeFourierCoeff] + simp only [mul_one] + rw [integral_cube_mFourier] + simp only [neg_eq_zero] + +/-- **Parseval's identity** on the cube, for a bounded measurable `ℤ^ι`-periodic `g`: +`Σ_n |ĝ (n)|² = ∫_{(0,1)^ι} |g|²`. -/ +theorem hasSum_sq_cubeFourierCoeff {g : (ι → ℝ) → ℂ} (hgm : Measurable g) {C : ℝ} + (hgC : ∀ x, ‖g x‖ ≤ C) (hg : IsPeriodic g) : + HasSum (fun n => ‖cubeFourierCoeff g n‖ ^ 2) (∫ x in cube ι, ‖g x‖ ^ 2) := by + set G : UnitAddTorus ι → ℂ := g ∘ toPi with hG + have hGm : Measurable G := hgm.comp measurable_toPi + have hmem : MemLp G 2 volume := MemLp.of_bound hGm.aestronglyMeasurable C + (ae_of_all _ fun z => hgC _) + have key := hasSum_sq_mFourierCoeff (hmem.toLp G) + have hc : ∀ n, mFourierCoeff (hmem.toLp G) n = cubeFourierCoeff g n := by + intro n + have e1 : mFourierCoeff (hmem.toLp G) n = mFourierCoeff G n := by + refine integral_congr_ae ?_ + filter_upwards [hmem.coeFn_toLp] with z hz + rw [hz] + rw [e1, mFourierCoeff, cubeFourierCoeff, ← integral_cube_ofPi] + refine setIntegral_congr_fun measurableSet_cube fun x _ => ?_ + simp only [hG, Function.comp_apply, hg.comp_toPi_ofPi, smul_eq_mul] + have hn : ∫ t, ‖(hmem.toLp G) t‖ ^ 2 = ∫ x in cube ι, ‖g x‖ ^ 2 := by + have e1 : ∫ t, ‖(hmem.toLp G) t‖ ^ 2 = ∫ t, ‖G t‖ ^ 2 := by + refine integral_congr_ae ?_ + filter_upwards [hmem.coeFn_toLp] with z hz + rw [hz] + rw [e1, ← integral_cube_ofPi] + refine setIntegral_congr_fun measurableSet_cube fun x _ => ?_ + simp only [hG, Function.comp_apply, hg.comp_toPi_ofPi] + simp only [hc, hn] at key + exact key + +theorem integrableOn_cube_of_continuous {E : Type*} [NormedAddCommGroup E] {g : (ι → ℝ) → E} + (hg : Continuous g) : IntegrableOn g (cube ι) := + (hg.continuousOn.integrableOn_compact (isCompact_univ_pi fun _ => isCompact_Icc + (a := (0 : ℝ)) (b := 1))).mono_set (pi_mono fun _ _ => Ioo_subset_Icc_self) + +/-! ### The derivative of a Lipschitz periodic function -/ + +/-- The slope `t⁻¹ (e^{2πi t ⟨n, v⟩} − 1)` tends to `2πi ⟨n, v⟩`. -/ +theorem tendsto_slope_mFourier_ofPi_smul (n : ι → ℤ) (v : ι → ℝ) : + Tendsto (fun t : ℝ => (t⁻¹ : ℂ) * (mFourier n (ofPi (t • v)) - 1)) (𝓝[≠] 0) + (𝓝 (2 * π * I * ∑ i, (n i : ℂ) * (v i : ℂ))) := by + set c : ℂ := 2 * π * I * ∑ i, (n i : ℂ) * (v i : ℂ) with hc + have hE : ∀ t : ℝ, mFourier n (ofPi (t • v)) = Complex.exp ((t : ℂ) * c) := fun t => by + rw [mFourier_ofPi, hc] + congr 1 + simp only [Pi.smul_apply, smul_eq_mul, Complex.ofReal_mul, Finset.mul_sum] + exact Finset.sum_congr rfl fun i _ => by ring + have hd : HasDerivAt (fun t : ℝ => Complex.exp ((t : ℂ) * c)) c 0 := by + have h1 : HasDerivAt (fun t : ℝ => (t : ℂ) * c) c 0 := by + simpa using ((hasDerivAt_id (0 : ℝ)).ofReal_comp).mul_const c + simpa using h1.cexp + have := hasDerivAt_iff_tendsto_slope_zero.mp hd + simp only [zero_add, Complex.ofReal_zero, zero_mul, Complex.exp_zero] at this + refine this.congr fun t => ?_ + rw [hE, Complex.real_smul, Complex.ofReal_inv] + +/-- The Fourier coefficients of the derivative of a Lipschitz `ℤ^ι`-periodic `f : ℝ^ι → ℝ` in the +direction `v`: `(∂_v f)^ (n) = 2πi ⟨n, v⟩ f̂ (n)`, with `∂_v f (x) = fderiv ℝ f x v` (the derivative +almost everywhere, by Rademacher's theorem). The proof integrates the difference quotients +`t⁻¹ (f (x + t v) − f (x))` against `e_{−n}`, moves the translation onto `e_{−n}` by the +translation invariance of the integral of a periodic function, and lets `t → 0` (dominated +convergence on one side, the derivative of `t ↦ e^{2πi t ⟨n, v⟩}` on the other). -/ +theorem cubeFourierCoeff_fderiv {f : (ι → ℝ) → ℝ} {C : NNReal} (hf : LipschitzWith C f) + (hper : IsPeriodic f) (v : ι → ℝ) (n : ι → ℤ) : + cubeFourierCoeff (fun x => (fderiv ℝ f x v : ℂ)) n = + 2 * π * I * (∑ i, (n i : ℂ) * (v i : ℂ)) * cubeFourierCoeff (fun x => (f x : ℂ)) n := by + set A : ℝ → ℂ := fun t => ∫ x in cube ι, + mFourier (-n) (ofPi x) * ((t⁻¹ * (f (x + t • v) - f x) : ℝ) : ℂ) with hA + -- the difference quotients converge to the derivative + have h1 : Tendsto A (𝓝[≠] 0) (𝓝 (cubeFourierCoeff (fun x => (fderiv ℝ f x v : ℂ)) n)) := by + refine tendsto_integral_filter_of_dominated_convergence (fun _ => (C : ℝ) * ‖v‖) ?_ ?_ ?_ ?_ + · exact Eventually.of_forall fun t => ((continuous_mFourier_ofPi _).mul + (Complex.continuous_ofReal.comp (continuous_const.mul + ((hf.continuous.comp (continuous_id.add continuous_const)).sub + hf.continuous)))).aestronglyMeasurable + · refine Eventually.of_forall fun t => ae_of_all _ fun x => ?_ + rw [norm_mul, norm_mFourier_ofPi, one_mul, Complex.norm_real, Real.norm_eq_abs, abs_mul, + abs_inv] + have h := hf.dist_le_mul (x + t • v) x + rw [Real.dist_eq, dist_eq_norm, add_sub_cancel_left, norm_smul, Real.norm_eq_abs] at h + by_cases ht : t = 0 + · simp only [ht, abs_zero, inv_zero, zero_mul]; positivity + · have ht' : 0 < |t| := abs_pos.mpr ht + calc |t|⁻¹ * |f (x + t • v) - f x| ≤ |t|⁻¹ * (C * (|t| * ‖v‖)) := by gcongr + _ = C * ‖v‖ := by field_simp + · exact integrableOn_const (by rw [volume_cube]; exact ENNReal.one_ne_top) + · filter_upwards [ae_restrict_of_ae hf.ae_differentiableAt] with x hx + have h0 : HasDerivAt (fun t : ℝ => x + t • v) v 0 := by + simpa using ((hasDerivAt_id (0 : ℝ)).smul_const v).const_add x + have hd : HasDerivAt (fun t : ℝ => f (x + t • v)) (fderiv ℝ f x v) 0 := + hx.hasFDerivAt.comp_hasDerivAt_of_eq 0 h0 (by simp) + have h2 := hasDerivAt_iff_tendsto_slope_zero.mp hd + simp only [zero_add, zero_smul, add_zero, smul_eq_mul] at h2 + exact ((Complex.continuous_ofReal.tendsto _).comp h2).const_mul _ + -- the translation moves onto `e_{−n}` + have h2 : ∀ t : ℝ, A t = (t⁻¹ : ℂ) * (mFourier n (ofPi (t • v)) - 1) * + cubeFourierCoeff (fun x => (f x : ℂ)) n := by + intro t + have hcont : ∀ w : ι → ℝ, Continuous fun x => mFourier (-n) (ofPi x) * (f (x + w) : ℂ) := + fun w => (continuous_mFourier_ofPi _).mul (Complex.continuous_ofReal.comp + (hf.continuous.comp (continuous_id.add continuous_const))) + have e1 : ∀ x, mFourier (-n) (ofPi x) * ((t⁻¹ * (f (x + t • v) - f x) : ℝ) : ℂ) = + (t⁻¹ : ℂ) * (mFourier (-n) (ofPi x) * (f (x + t • v) : ℂ) - + mFourier (-n) (ofPi x) * (f (x + 0) : ℂ)) := fun x => by + push_cast; rw [add_zero]; ring + have hF : IsPeriodic fun y => mFourier (-n) (ofPi (y + -(t • v))) * (f y : ℂ) := by + intro y k + simp only + rw [show y + (fun i => (k i : ℝ)) + -(t • v) = (y + -(t • v)) + fun i => (k i : ℝ) by + abel, ofPi_add_int, hper] + have e2 : ∫ x in cube ι, mFourier (-n) (ofPi x) * (f (x + t • v) : ℂ) = + mFourier n (ofPi (t • v)) * cubeFourierCoeff (fun x => (f x : ℂ)) n := by + have := integral_cube_comp_add hF (t • v) + simp only [add_neg_cancel_right] at this + rw [this, cubeFourierCoeff, ← integral_const_mul] + refine setIntegral_congr_fun measurableSet_cube fun y _ => ?_ + rw [mFourier_ofPi_add, mFourier_ofPi_neg n (-(t • v)), neg_neg] + ring + simp only [hA] + simp_rw [e1] + rw [integral_const_mul, integral_sub (integrableOn_cube_of_continuous (hcont _)) + (integrableOn_cube_of_continuous (hcont 0)), e2] + simp only [add_zero, cubeFourierCoeff] + ring + have h3 := (tendsto_slope_mFourier_ofPi_smul n v).mul_const + (cubeFourierCoeff (fun x => (f x : ℂ)) n) + exact tendsto_nhds_unique h1 (h3.congr fun t => (h2 t).symm) + +end UnitAddTorus diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Poisson.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Poisson.lean new file mode 100644 index 0000000000..62c4b2d85e --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Poisson.lean @@ -0,0 +1,487 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Lattice + +/-! +# Periodisation and Poisson summation on `𝕋²` + +For a Schwartz function `f` on `ℂ ≅ ℝ²` and `R > 0`: + +* `HarmonicAnalysis.periodize R f (y) = Σ_{j ∈ ℤ²} f (R (y + j))`, a `ℤ²`-periodic function of + `y ∈ ℂ` (the lattice `ℤ²` is `ℤ + iℤ`, `HarmonicAnalysis.latticePoint`); +* `HarmonicAnalysis.sampledCoeff R f (n) = R⁻² 𝓕 f (n / R)` for `n ≠ 0`, and `0` at `n = 0`. + +## Main results + +* `HarmonicAnalysis.summable_sampledCoeff`: these coefficients are summable. +* `HarmonicAnalysis.hasSum_periodize` (Poisson summation on `ℤ²`): + `Σ_{j ∈ ℤ²} f (R (y + j)) = Σ_{n ∈ ℤ²} R⁻² 𝓕 f (n / R) e^{2πi ⟨n, y⟩}`, the Fourier series of + the periodisation, which converges absolutely. +* `HarmonicAnalysis.tendsto_eLpNorm_tsum_fourier_mul_mFourier`, Lemma 5.7.5 of + Hytönen–van Neerven–Veraar–Weis (HNVW) for `ℝ² ≅ ℂ` and scalar functions, with `ε = 1 / R`: for + `1 ≤ p < ∞`, `R^{2/p} ‖Σ_n R⁻² 𝓕 f (n / R) e_n‖_{L^p (𝕋²)} → ‖f‖_{L^p (ℂ)}` as `R → ∞`. + +The coefficients `sampledCoeff`, without the mean, serve only for the summability behind Poisson +summation, which enters the transference through Lemma 5.7.5. + +## Proofs + +Poisson summation by the standard argument: the series defining the periodisation converges +locally uniformly (Weierstrass M-test, with the Schwartz decay of `f` and Peetre's inequality +`HarmonicAnalysis.exists_norm_add_le`), so the periodisation is a continuous function on `𝕋²` +(`HarmonicAnalysis.torusLift`); its Fourier coefficients are the samples `R⁻² 𝓕 f (n / R)` +(`HarmonicAnalysis.mFourierCoeff_torusLift_periodize`: the translates of the centred cell tile +`ℂ`, then the change of variables `x = R y`), which are summable, and the Fourier series of a +continuous function with summable coefficients converges to it everywhere. + +Lemma 5.7.5 by HNVW's argument (p. 461): Poisson summation; the change of variables `x = R y`, which +turns the norm over `𝕋²` into the norm over the cell `R · (−½, ½]²` +(`HarmonicAnalysis.ofReal_rpow_mul_eLpNorm_torus_eq_dilatedCell`); the decomposition +`Σ_j f (x + R j) = f (x) + Σ_{j ≠ 0} f (x + R j)` (`HarmonicAnalysis.periodize_div_eq`); the decay +`|f (x + R j)| ≤ C (R |j|)^{−3}` on the cell, so that the error is `O (R^{−3})` there +(`HarmonicAnalysis.exists_norm_tsum_ite_le`) and `O (R^{2/p − 3})` in `L^p`, by Minkowski's +inequality; and the norms of `f` over the cells, which tend to `‖f‖_p`. HNVW sums the norms of the +terms `f (· + R j)`, `j ≠ 0`; here they are summed pointwise first. + +A correction to the source: HNVW does not say which cell of `R ℤ²` represents the dilated torus, and +the proof needs the centred one. On `R · [0, 1)²` (the book writes `𝕋^d = [0, 1]^d` on p. 113 and +integrates over `[0, 1)^d` in Lemma 5.7.3) the decay bound fails, as `x + R j` can be near `0` for +`j ≠ 0`, and the norms of `f` over these cells tend to its norm over `[0, ∞)²`. HNVW does not state +the range of `p` either; its `N > d > d / p` is for `p > 1`, and `N > d ≥ d / p` does for `p = 1`. + +## References + +* T. Hytönen, J. van Neerven, M. Veraar, L. Weis, *Analysis in Banach Spaces, Volume I*, Ergebnisse + der Mathematik 63, Springer, 2016: Lemma 5.7.5 (p. 461). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter +open scoped SchwartzMap FourierTransform ENNReal + +namespace HarmonicAnalysis + +open UnitAddTorus + +/-- The periodisation `y ↦ Σ_{j ∈ ℤ²} f (R (y + j))` of `x ↦ f (R x)`, a `ℤ²`-periodic function on +`ℂ`. -/ +def periodize (R : ℝ) (f : ℂ → ℂ) (y : ℂ) : ℂ := + ∑' j : Fin 2 → ℤ, f (R * (y + latticePoint j)) + +/-- The coefficients `R⁻² 𝓕 f (n / R)` of the periodisation of `x ↦ f (R x)`, with the mean +(`n = 0`) removed. -/ +def sampledCoeff (R : ℝ) (f : ℂ → ℂ) (n : Fin 2 → ℤ) : ℂ := + if n = 0 then 0 else ((R : ℂ) ^ 2)⁻¹ * 𝓕 f (latticePoint n / R) + +/-- The coefficients `R⁻² 𝓕 f (n / R)` are summable: by the Schwartz decay of `𝓕 f`, +`|ξ|³ |𝓕 f (ξ)| ≤ C`, so `|R⁻² 𝓕 f (n / R)| ≤ C R |n|^{−3} ≤ C R ‖n‖_∞^{−3}` for `n ≠ 0`, and +`Σ_{n ≠ 0} ‖n‖_∞^{−3}` converges. -/ +theorem summable_sampledCoeff (f : 𝓢(ℂ, ℂ)) {R : ℝ} (hR : 0 < R) : + Summable (sampledCoeff R f) := by + -- Schwartz decay of `𝓕 f`: `|ξ|³ |𝓕 f (ξ)| ≤ C`. + set C := SchwartzMap.seminorm ℝ 3 0 (𝓕 f) + have hC : ∀ ξ : ℂ, ‖ξ‖ ^ 3 * ‖𝓕 (f : ℂ → ℂ) ξ‖ ≤ C := fun ξ => by + rw [← SchwartzMap.fourier_coe] + exact SchwartzMap.norm_pow_mul_le_seminorm ℝ (𝓕 f) 3 ξ + have hC0 : 0 ≤ C := (mul_nonneg (by positivity) (norm_nonneg _)).trans (hC 0) + -- For `n ≠ 0`: `R⁻² |𝓕 f (n / R)| ≤ R⁻² C (|n| / R)^{−3} ≤ C R ‖n‖_∞^{−3}`. + refine Summable.of_norm_bounded (summable_inv_norm_pow_three.mul_left (C * R)) fun n => ?_ + by_cases hn : n = 0 + · simp [sampledCoeff, hn] + have hn' : 0 < ‖n‖ := norm_pos_iff.2 hn + have hle := norm_le_norm_latticePoint n + have hpos : 0 < ‖latticePoint n‖ := hn'.trans_le hle + have h1 := hC (latticePoint n / R) + rw [norm_div, Complex.norm_real, Real.norm_of_nonneg hR.le, div_pow, div_mul_eq_mul_div, + div_le_iff₀ (by positivity)] at h1 + rw [sampledCoeff, ite_eq_right hn, norm_mul, norm_inv, norm_pow, Complex.norm_real, + Real.norm_of_nonneg hR.le] + have h2 : ‖𝓕 (f : ℂ → ℂ) (latticePoint n / R)‖ ≤ C * R ^ 3 / ‖latticePoint n‖ ^ 3 := by + rw [le_div_iff₀ (by positivity)] + linarith + calc (R ^ 2)⁻¹ * ‖𝓕 (f : ℂ → ℂ) (latticePoint n / R)‖ + ≤ (R ^ 2)⁻¹ * (C * R ^ 3 / ‖latticePoint n‖ ^ 3) := by gcongr + _ ≤ (R ^ 2)⁻¹ * (C * R ^ 3 / ‖n‖ ^ 3) := by gcongr + _ = C * R * (‖n‖ ^ 3)⁻¹ := by field_simp + +/-! ### The periodisation -/ + +/-- Peetre's inequality for the weight `(1 + |x|)^{−3}`, for a Schwartz function `f`: +`|f (x + a)| ≤ C (1 + |x|)³ (1 + |a|)^{−3}`. -/ +theorem exists_norm_add_le (f : 𝓢(ℂ, ℂ)) : + ∃ C, 0 ≤ C ∧ ∀ x a : ℂ, ‖f (x + a)‖ ≤ C * (1 + ‖x‖) ^ 3 * ((1 + ‖a‖) ^ 3)⁻¹ := by + set C := 2 ^ 3 * (Finset.Iic (3, 0)).sup (fun m => SchwartzMap.seminorm ℝ m.1 m.2) f + have hC : ∀ z, (1 + ‖z‖) ^ 3 * ‖f z‖ ≤ C := fun z => by + simpa [norm_iteratedFDeriv_zero] using + SchwartzMap.one_add_le_sup_seminorm_apply (𝕜 := ℝ) (m := (3, 0)) le_rfl le_rfl f z + refine ⟨C, (mul_nonneg (by positivity) (norm_nonneg _)).trans (hC 0), fun x a => ?_⟩ + have h1 : 1 + ‖a‖ ≤ (1 + ‖x‖) * (1 + ‖x + a‖) := by + have := norm_sub_le (x + a) x + rw [add_sub_cancel_left] at this + nlinarith [norm_nonneg x, norm_nonneg (x + a)] + have h2 : ‖f (x + a)‖ ≤ C * ((1 + ‖x + a‖) ^ 3)⁻¹ := by + rw [le_mul_inv_iff₀ (by positivity), mul_comm] + exact hC _ + have h3 : ((1 + ‖x + a‖) ^ 3)⁻¹ ≤ (1 + ‖x‖) ^ 3 * ((1 + ‖a‖) ^ 3)⁻¹ := by + rw [← div_eq_mul_inv, le_div_iff₀ (by positivity), inv_mul_eq_div, + div_le_iff₀ (by positivity), ← mul_pow] + gcongr + calc ‖f (x + a)‖ ≤ C * ((1 + ‖x + a‖) ^ 3)⁻¹ := h2 + _ ≤ C * ((1 + ‖x‖) ^ 3 * ((1 + ‖a‖) ^ 3)⁻¹) := by gcongr + _ = C * (1 + ‖x‖) ^ 3 * ((1 + ‖a‖) ^ 3)⁻¹ := by ring + +/-- `Σ_{j ∈ ℤ²} (1 + R |j|)^{−3}` converges for `R > 0`. -/ +theorem summable_inv_one_add_norm_pow_three {R : ℝ} (hR : 0 < R) : + Summable fun j : Fin 2 → ℤ => ((1 + ‖(R : ℂ) * latticePoint j‖) ^ 3)⁻¹ := by + refine Summable.of_norm_bounded_eventually (summable_inv_norm_pow_three.mul_left (R ^ 3)⁻¹) ?_ + filter_upwards [eventually_cofinite_ne 0] with j hj + have hj' : 0 < ‖j‖ := norm_pos_iff.2 hj + rw [Real.norm_of_nonneg (by positivity), ← mul_inv, ← mul_pow] + refine inv_anti₀ (by positivity) (pow_le_pow_left₀ (by positivity) ?_ 3) + rw [norm_mul, Complex.norm_real, Real.norm_of_nonneg hR.le] + nlinarith [mul_le_mul_of_nonneg_left (norm_le_norm_latticePoint j) hR.le] + +/-- The series `Σ_{j ∈ ℤ²} f (x + R j)` converges, for a Schwartz function `f` and `R > 0`. -/ +theorem summable_comp_add_mul_latticePoint (f : 𝓢(ℂ, ℂ)) {R : ℝ} (hR : 0 < R) (x : ℂ) : + Summable fun j : Fin 2 → ℤ => f (x + R * latticePoint j) := by + obtain ⟨C, -, hC⟩ := exists_norm_add_le f + exact Summable.of_norm_bounded + ((summable_inv_one_add_norm_pow_three hR).mul_left (C * (1 + ‖x‖) ^ 3)) fun j => hC x _ + +/-- The periodisation is `ℤ²`-periodic. -/ +theorem periodize_add_latticePoint (R : ℝ) (f : ℂ → ℂ) (y : ℂ) (k : Fin 2 → ℤ) : + periodize R f (y + latticePoint k) = periodize R f y := by + have := (Equiv.addLeft k).tsum_eq (fun j => f (R * (y + latticePoint j))) + simp only [Equiv.coe_addLeft, latticePoint_add, ← add_assoc] at this + exact this + +/-- The periodisation of a Schwartz function is continuous: on the ball `B (y₀, 1)`, the series +`Σ_j f (R (y + j))` converges uniformly (Weierstrass M-test, with Peetre's inequality). -/ +theorem continuous_periodize (f : 𝓢(ℂ, ℂ)) {R : ℝ} (hR : 0 < R) : Continuous (periodize R f) := by + obtain ⟨C, hC0, hC⟩ := exists_norm_add_le f + refine continuous_iff_continuousAt.2 fun y₀ => ?_ + have hon : ContinuousOn (fun y => ∑' j : Fin 2 → ℤ, f (R * (y + latticePoint j))) + (Metric.ball y₀ 1) := by + refine continuousOn_tsum (u := fun j => C * (1 + R * (‖y₀‖ + 1)) ^ 3 * + ((1 + ‖(R : ℂ) * latticePoint j‖) ^ 3)⁻¹) (fun j => ?_) + ((summable_inv_one_add_norm_pow_three hR).mul_left _) fun j y hy => ?_ + · exact (f.continuous.comp (by fun_prop)).continuousOn + · rw [mul_add] + refine (hC _ _).trans ?_ + have hy' : ‖y‖ ≤ ‖y₀‖ + 1 := by + have := norm_sub_norm_le y y₀ + linarith [mem_ball_iff_norm.1 hy] + rw [norm_mul, Complex.norm_real, Real.norm_of_nonneg hR.le] + gcongr + exact hon.continuousAt (Metric.ball_mem_nhds _ one_pos) + +/-- Poisson summation, the Fourier coefficients: the `n`-th Fourier coefficient of the +periodisation of `x ↦ f (R x)`, as a function on `𝕋²`, is `R⁻² 𝓕 f (n / R)`. The integral over +the centred cell of `Σ_j e_{−n} (y + j) f (R (y + j))` is, as the translates of the cell tile `ℂ`, +the integral over `ℂ` of `e_{−n} (y) f (R y)`; the change of variables `x = R y` concludes. -/ +theorem mFourierCoeff_torusLift_periodize (f : 𝓢(ℂ, ℂ)) {R : ℝ} (hR : 0 < R) + (n : Fin 2 → ℤ) : + mFourierCoeff (torusLift (periodize R f)) n = + ((R : ℂ) ^ 2)⁻¹ * 𝓕 (f : ℂ → ℂ) (latticePoint n / R) := by + obtain ⟨C, hC0, hC⟩ := exists_norm_add_le f + have hRne : (R : ℂ) ≠ 0 := Complex.ofReal_ne_zero.2 hR.ne' + -- The integrand `h (y) = e_{−n} (y) f (R y)` on `ℂ`. + set e : ℂ → ℂ := fun y => mFourier (-n) (ofComplex y) + set h : ℂ → ℂ := fun y => e y * f (R * y) with hh_def + have he : Continuous e := (mFourier (-n)).continuous.comp continuous_ofComplex + have he1 : ∀ y, ‖e y‖ = 1 := fun y => norm_mFourier_apply _ _ + have he_add : ∀ y k, e (y + latticePoint k) = e y := fun y k => by + simp only [e, ofComplex_add_latticePoint] + have hhc : Continuous h := he.mul (f.continuous.comp (continuous_const.mul continuous_id)) + have hint : Integrable h := by + have h1 : Integrable fun y : ℂ => f (R • y) := f.integrable.comp_smul hR.ne' + refine h1.mono hhc.aestronglyMeasurable (Eventually.of_forall fun y => ?_) + simp [h, he1, Complex.real_smul] + -- The coefficient as an integral over the centred cell. + rw [mFourierCoeff_eq_integral_centredCell] + simp_rw [torusLift_ofComplex (periodize_add_latticePoint R f)] + have step1 : ∀ y, mFourier (-n) (ofComplex y) • periodize R f y = + ∑' j : Fin 2 → ℤ, h (y + latticePoint j) := fun y => by + simp only [periodize, smul_eq_mul, h, he_add, ← tsum_mul_left] + rfl + simp_rw [step1] + -- Exchange of the sum and the integral over the cell. + have hFint : ∀ j : Fin 2 → ℤ, + Integrable (fun y => h (y + latticePoint j)) (volume.restrict centredCell) := fun j => + ((hhc.comp (continuous_id.add continuous_const)).continuousOn.integrableOn_compact + (isCompact_closedBall 0 1)).mono_set centredCell_subset_closedBall + have hbd : ∀ j : Fin 2 → ℤ, ∀ y ∈ centredCell, ‖‖h (y + latticePoint j)‖‖ ≤ + C * (1 + R) ^ 3 * ((1 + ‖(R : ℂ) * latticePoint j‖) ^ 3)⁻¹ := fun j y hy => by + have hy1 : ‖y‖ ≤ 1 := mem_closedBall_zero_iff.1 (centredCell_subset_closedBall hy) + rw [norm_norm, hh_def] + simp only [norm_mul, he1, one_mul] + rw [mul_add] + refine (hC _ _).trans ?_ + simp only [norm_mul, Complex.norm_real, Real.norm_of_nonneg hR.le] + gcongr + nlinarith + have hFsum : Summable fun j : Fin 2 → ℤ => + ∫ y in centredCell, ‖h (y + latticePoint j)‖ := by + refine Summable.of_nonneg_of_le (fun j => integral_nonneg fun _ => norm_nonneg _) + (fun j => ?_) (((summable_inv_one_add_norm_pow_three hR).mul_left (C * (1 + R) ^ 3)).mul_right + (volume.real centredCell)) + exact (le_abs_self _).trans + (norm_setIntegral_le_of_norm_le_const volume_centredCell_lt_top (hbd j)) + rw [← integral_tsum_of_summable_integral_norm hFint hFsum, + (hasSum_integral_centredCell_add hint).tsum_eq] + -- The change of variables `x = R y`. + have h4 : 𝓕 (f : ℂ → ℂ) (latticePoint n / R) = (R : ℂ) ^ 2 * ∫ y, h y := by + rw [Real.fourier_eq'] + have hpt : ∀ v : ℂ, Complex.exp (↑(-2 * Real.pi * inner ℝ v (latticePoint n / R)) * + Complex.I) • f v = h (R⁻¹ • v) := fun v => by + simp only [h, e, Complex.real_smul, smul_eq_mul, mFourier_ofComplex] + congr 1 + · congr 1 + simp [Complex.inner, latticePoint_neg] + ring + · congr 1 + push_cast + field_simp + simp_rw [hpt] + rw [Measure.integral_comp_inv_smul_of_nonneg volume h hR.le, + Module.finrank_eq_card_basis Complex.basisOneI, Fintype.card_fin, + Complex.real_smul] + push_cast + rfl + rw [h4] + field_simp + +/-- Poisson summation on `ℤ²`: `Σ_{j ∈ ℤ²} f (R (y + j)) = Σ_{n ∈ ℤ²} R⁻² 𝓕 f (n / R) e_n (y)`. +The standard argument: the periodisation is continuous and `ℤ²`-periodic, so it is a continuous +function on `𝕋²`; its Fourier coefficients are the samples `R⁻² 𝓕 f (n / R)` of `𝓕 f` +(`HarmonicAnalysis.mFourierCoeff_torusLift_periodize`), which are summable +(`HarmonicAnalysis.summable_sampledCoeff`), so its Fourier series converges to it everywhere. -/ +theorem hasSum_periodize (f : 𝓢(ℂ, ℂ)) {R : ℝ} (hR : 0 < R) (y : ℂ) : + HasSum (fun n : Fin 2 → ℤ => + ((R : ℂ) ^ 2)⁻¹ * 𝓕 (f : ℂ → ℂ) (latticePoint n / R) * mFourier n (ofComplex y)) + (periodize R f y) := by + let P : C(UnitAddTorus (Fin 2), ℂ) := + ⟨torusLift (periodize R f), continuous_torusLift (periodize_add_latticePoint R f) + (continuous_periodize f hR)⟩ + have hcoeff : mFourierCoeff P = fun n : Fin 2 → ℤ => + ((R : ℂ) ^ 2)⁻¹ * 𝓕 (f : ℂ → ℂ) (latticePoint n / R) := + funext (mFourierCoeff_torusLift_periodize f hR) + have hsum : Summable (mFourierCoeff P) := by + rw [hcoeff] + convert (summable_sampledCoeff f hR).update 0 + (((R : ℂ) ^ 2)⁻¹ * 𝓕 (f : ℂ → ℂ) (latticePoint 0 / R)) using 1 + funext n + by_cases hn : n = 0 + · subst hn + simp + · simp [Function.update, hn, sampledCoeff] + have := hasSum_mFourier_series_apply_of_summable hsum (ofComplex y) + rw [hcoeff] at this + convert this using 1 + exact (torusLift_ofComplex (periodize_add_latticePoint R f) y).symm + +/-! ### The `L^p` norms of the periodisations -/ + +/-- The periodisation, rescaled: `Σ_j f (R (x / R + j)) = f (x) + Σ_{j ≠ 0} f (x + R j)`. -/ +theorem periodize_div_eq (f : 𝓢(ℂ, ℂ)) {R : ℝ} (hR : 0 < R) (x : ℂ) : + periodize R f (x / R) = + f x + ∑' j : Fin 2 → ℤ, if j = 0 then 0 else f (x + R * latticePoint j) := by + have hRne : (R : ℂ) ≠ 0 := Complex.ofReal_ne_zero.2 hR.ne' + have h : ∀ j, (R : ℂ) * (x / R + latticePoint j) = x + R * latticePoint j := fun j => by + field_simp + simp only [periodize, h] + rw [(summable_comp_add_mul_latticePoint f hR x).tsum_eq_add_tsum_ite 0] + simp + +/-- On the dilated cell `R · (−½, ½]²`: `R ‖j‖_∞ ≤ 2 |x + R j|` for `j ∈ ℤ²`. -/ +theorem mul_norm_le_two_mul_norm_add {R : ℝ} (hR : 0 < R) {x : ℂ} (hx : x / R ∈ centredCell) + (j : Fin 2 → ℤ) : R * ‖j‖ ≤ 2 * ‖x + R * latticePoint j‖ := by + rw [div_mem_centredCell_iff hR] at hx + obtain ⟨⟨h1, h2⟩, h3, h4⟩ := hx + set z := x + R * latticePoint j + have key : ∀ (a : ℝ) (m : ℤ), -(R / 2) < a → a ≤ R / 2 → |a + R * m| ≤ ‖z‖ → + R * ‖m‖ ≤ 2 * ‖z‖ := by + intro a m ha1 ha2 hle + rw [Int.norm_eq_abs] + rcases eq_or_ne m 0 with rfl | hm + · simp + have hm1 : (1 : ℝ) ≤ |(m : ℝ)| := by exact_mod_cast Int.one_le_abs hm + have hRm : R * |(m : ℝ)| ≤ |a + R * m| + |a| := by + calc R * |(m : ℝ)| = |(a + R * m) - a| := by + rw [add_sub_cancel_left, abs_mul, abs_of_pos hR] + _ ≤ |a + R * m| + |a| := abs_sub _ _ + have ha : |a| ≤ R / 2 := abs_le.2 ⟨ha1.le, ha2⟩ + nlinarith [mul_le_mul_of_nonneg_left hm1 hR.le] + have hn : 0 ≤ 2 * ‖z‖ / R := by positivity + have : ‖j‖ ≤ 2 * ‖z‖ / R := by + refine (pi_norm_le_iff_of_nonneg hn).2 fun i => ?_ + rw [le_div_iff₀ hR, mul_comm] + fin_cases i + · exact key _ _ h1 h2 (by simpa [z] using Complex.abs_re_le_norm z) + · exact key _ _ h3 h4 (by simpa [z] using Complex.abs_im_le_norm z) + rwa [le_div_iff₀ hR, mul_comm] at this + +/-- The error of the rescaled periodisation on the dilated cell: +`|Σ_{j ≠ 0} f (x + R j)| ≤ K R^{−3}` for `x ∈ R · (−½, ½]²`. With `|z|³ |f (z)| ≤ C` and +`|x + R j| ≥ R ‖j‖_∞ / 2`, `K = 8 C Σ_{j ≠ 0} ‖j‖_∞^{−3}`. -/ +theorem exists_norm_tsum_ite_le (f : 𝓢(ℂ, ℂ)) : ∃ K, 0 ≤ K ∧ ∀ R : ℝ, 0 < R → ∀ x : ℂ, + x / R ∈ centredCell → + ‖∑' j : Fin 2 → ℤ, if j = 0 then 0 else f (x + R * latticePoint j)‖ ≤ K * (R ^ 3)⁻¹ := by + set C := SchwartzMap.seminorm ℝ 3 0 f + have hC : ∀ z, ‖z‖ ^ 3 * ‖f z‖ ≤ C := fun z => SchwartzMap.norm_pow_mul_le_seminorm ℝ f 3 z + have hC0 : 0 ≤ C := (mul_nonneg (by positivity) (norm_nonneg _)).trans (hC 0) + set S := ∑' j : Fin 2 → ℤ, (‖j‖ ^ 3)⁻¹ + have hS : 0 ≤ S := tsum_nonneg fun j => by positivity + refine ⟨8 * C * S, by positivity, fun R hR x hx => ?_⟩ + refine (tsum_of_norm_bounded (summable_inv_norm_pow_three.hasSum.mul_left + (8 * C * (R ^ 3)⁻¹)) fun j => ?_).trans_eq (by ring) + by_cases hj : j = 0 + · simp [hj] + rw [ite_eq_right hj] + have hj' : 0 < ‖j‖ := norm_pos_iff.2 hj + set z := x + R * latticePoint j + have hz : R * ‖j‖ / 2 ≤ ‖z‖ := by linarith [mul_norm_le_two_mul_norm_add hR hx j] + have hpos : 0 < R * ‖j‖ / 2 := div_pos (mul_pos hR hj') two_pos + have h1 : ‖f z‖ ≤ C / ‖z‖ ^ 3 := by + rw [le_div_iff₀ (pow_pos (hpos.trans_le hz) 3), mul_comm] + exact hC z + calc ‖f z‖ ≤ C / ‖z‖ ^ 3 := h1 + _ ≤ C / (R * ‖j‖ / 2) ^ 3 := by gcongr + _ = 8 * C * (R ^ 3)⁻¹ * (‖j‖ ^ 3)⁻¹ := by field_simp; ring + +/-- The measure of the dilated cell `R · (−½, ½]²` is `R²`. -/ +private theorem volume_dilatedCell {R : ℝ} (hR : 0 < R) : + volume {y : ℂ | y / R ∈ centredCell} = ENNReal.ofReal (R ^ 2) := by + have h := setLIntegral_dilatedCell (fun _ => (1 : ℝ≥0∞)) hR + simp only [lintegral_const, Measure.restrict_apply_univ, one_mul] at h + rw [h, volume_pi, Measure.pi_univ] + simp + +/-- The estimate in the proof of HNVW, Lemma 5.7.5, for `1 ≤ p` and `R > 0`: by Poisson summation, +`R^{2/p} ‖Σ_n R⁻² 𝓕 f (n / R) e_n‖_{L^p (𝕋²)}` is the `L^p` norm of `Σ_j f (x + R j)` over the +dilated cell `Q_R = R · (−½, ½]²`, of measure `R²`. There `Σ_j f (x + R j) = f (x) + O (R^{−3})`, so +by Minkowski's inequality it differs from `‖f 1_{Q_R}‖_p` by at most `K R^{−3} R^{2/p}`. -/ +private theorem exists_eLpNorm_periodize_le (f : 𝓢(ℂ, ℂ)) {p : ℝ} (hp : 1 ≤ p) : + ∃ K, 0 ≤ K ∧ ∀ R : ℝ, 0 < R → + ENNReal.ofReal (R ^ (2 / p)) * eLpNorm (fun x => ∑' n : Fin 2 → ℤ, ((R : ℂ) ^ 2)⁻¹ * + 𝓕 (f : ℂ → ℂ) (latticePoint n / R) * mFourier n x) (ENNReal.ofReal p) volume ≤ + eLpNorm ({y : ℂ | y / R ∈ centredCell}.indicator f) (ENNReal.ofReal p) volume + + ENNReal.ofReal (K * (R ^ 3)⁻¹ * R ^ (2 / p)) ∧ + eLpNorm ({y : ℂ | y / R ∈ centredCell}.indicator f) (ENNReal.ofReal p) volume ≤ + ENNReal.ofReal (R ^ (2 / p)) * eLpNorm (fun x => ∑' n : Fin 2 → ℤ, ((R : ℂ) ^ 2)⁻¹ * + 𝓕 (f : ℂ → ℂ) (latticePoint n / R) * mFourier n x) (ENNReal.ofReal p) volume + + ENNReal.ofReal (K * (R ^ 3)⁻¹ * R ^ (2 / p)) := by + obtain ⟨K, hK0, hK⟩ := exists_norm_tsum_ite_le f + have hp0 : 0 < p := by linarith + have hP : 1 ≤ ENNReal.ofReal p := by simpa using hp + refine ⟨K, hK0, fun R hR => ?_⟩ + rw [ofReal_rpow_mul_eLpNorm_torus_eq_dilatedCell _ hp0 hR] + -- Poisson summation. + simp_rw [fun y => (hasSum_periodize f hR y).tsum_eq] + set Q := {y : ℂ | y / R ∈ centredCell} + have hQ : MeasurableSet Q := measurableSet_dilatedCell R + set B := K * (R ^ 3)⁻¹ + have hB : 0 ≤ B := by positivity + set G : ℂ → ℂ := Q.indicator fun y => periodize R f (y / R) + -- The error on the dilated cell. + have hE : eLpNorm (fun y => G y - Q.indicator f y) (ENNReal.ofReal p) volume ≤ + ENNReal.ofReal (B * R ^ (2 / p)) := by + have hm : AEStronglyMeasurable (fun y => G y - Q.indicator f y) volume := + ((((continuous_periodize f hR).comp (continuous_id.div_const _)).aestronglyMeasurable + (μ := volume)).indicator hQ).sub (f.continuous.aestronglyMeasurable.indicator hQ) + have hpt : ∀ y, ‖G y - Q.indicator f y‖ ≤ Q.indicator (fun _ => B) y := by + intro y + by_cases hy : y ∈ Q + · simp only [G, Set.indicator_of_mem hy] + rw [periodize_div_eq f hR, add_sub_cancel_left] + exact hK R hR y hy + · simp [G, Set.indicator_of_notMem hy] + refine (eLpNorm_mono_real hm hpt).trans_eq ?_ + rw [eLpNorm_indicator_const hQ.nullMeasurableSet (by simpa using hp0) ENNReal.ofReal_ne_top, + volume_dilatedCell hR, Real.eNorm_eq_ofReal hB, ENNReal.toReal_ofReal hp0.le, + ENNReal.ofReal_rpow_of_nonneg (by positivity) (by positivity), ← ENNReal.ofReal_mul hB, + ← Real.rpow_natCast, ← Real.rpow_mul hR.le] + congr 3 + push_cast + ring + constructor + · have h := eLpNorm_add_le (μ := volume) hP (f := Q.indicator f) + (g := fun y => G y - Q.indicator f y) + rw [show (Q.indicator f + fun y => G y - Q.indicator f y) = G by ext y; simp] at h + exact h.trans (by gcongr) + · have h := eLpNorm_sub_le (μ := volume) hP (f := G) (g := fun y => G y - Q.indicator f y) + rw [show (G - fun y => G y - Q.indicator f y) = Q.indicator f by ext y; simp] at h + exact h.trans (by gcongr) + +/-- **HNVW, Lemma 5.7.5** (for `ℝ² ≅ ℂ` and scalar functions, with `ε = 1 / R`, so that +`ε^{2/p'} 𝓕 f (ε n) = R^{2/p} R⁻² 𝓕 f (n / R)`): for a Schwartz function `f` and `1 ≤ p < ∞`, +`R^{2/p} ‖Σ_{n ∈ ℤ²} R⁻² 𝓕 f (n / R) e_n‖_{L^p (𝕋²)} → ‖f‖_{L^p (ℂ)}` as `R → ∞`. -/ +theorem tendsto_eLpNorm_tsum_fourier_mul_mFourier (f : 𝓢(ℂ, ℂ)) {p : ℝ} (hp : 1 ≤ p) : + Tendsto (fun R : ℝ => ENNReal.ofReal (R ^ (2 / p)) * eLpNorm (fun x => ∑' n : Fin 2 → ℤ, + ((R : ℂ) ^ 2)⁻¹ * 𝓕 (f : ℂ → ℂ) (latticePoint n / R) * mFourier n x) (ENNReal.ofReal p) + volume) atTop (nhds (eLpNorm (f : ℂ → ℂ) (ENNReal.ofReal p) volume)) := by + obtain ⟨K, hK0, hK⟩ := exists_eLpNorm_periodize_le f hp + have hp0 : 0 < p := by linarith + -- The error term tends to `0`, because `2 / p − 3 < 0`. + have herr : Tendsto (fun R : ℝ => ENNReal.ofReal (K * (R ^ 3)⁻¹ * R ^ (2 / p))) atTop + (nhds 0) := by + have h2p : 2 / p < 3 := by rw [div_lt_iff₀ hp0]; linarith + have h := (tendsto_rpow_neg_atTop (y := 3 - 2 / p) (by linarith)).const_mul K + rw [mul_zero] at h + have h' : Tendsto (fun R : ℝ => K * (R ^ 3)⁻¹ * R ^ (2 / p)) atTop (nhds 0) := by + refine h.congr' ?_ + filter_upwards [eventually_gt_atTop 0] with R hR + rw [show -(3 - 2 / p) = 2 / p - ((3 : ℕ) : ℝ) by push_cast; ring, + Real.rpow_sub_natCast hR.ne'] + ring + simpa using ENNReal.tendsto_ofReal h' + -- The norms over the dilated cells exhaust the norm over `ℂ`. + have hcell : Tendsto (fun R : ℝ => eLpNorm ({y : ℂ | y / R ∈ centredCell}.indicator f) + (ENNReal.ofReal p) volume) atTop (nhds (eLpNorm (f : ℂ → ℂ) (ENNReal.ofReal p) volume)) := by + have hm : ∀ R : ℝ, AEStronglyMeasurable ({y : ℂ | y / R ∈ centredCell}.indicator f) volume := + fun R => f.continuous.aestronglyMeasurable.indicator (measurableSet_dilatedCell R) + have hP0 : ENNReal.ofReal p ≠ 0 := by simpa using hp0 + simp_rw [fun R => eLpNorm_eq_lintegral_rpow_eNorm_toReal hP0 ENNReal.ofReal_ne_top (hm R)] + rw [eLpNorm_eq_lintegral_rpow_eNorm_toReal hP0 ENNReal.ofReal_ne_top + f.continuous.aestronglyMeasurable, ENNReal.toReal_ofReal hp0.le] + have hfm : Measurable fun y : ℂ => ‖f y‖ₑ ^ p := f.continuous.eNorm.measurable.pow_const p + have hcell' : ∀ (R : ℝ) (y : ℂ), ‖{y : ℂ | y / R ∈ centredCell}.indicator f y‖ₑ ^ p = + {y : ℂ | y / R ∈ centredCell}.indicator (fun y => ‖f y‖ₑ ^ p) y := fun R y => by + by_cases hy : y ∈ {y : ℂ | y / R ∈ centredCell} + · simp only [Set.indicator_of_mem hy] + · simp only [Set.indicator_of_notMem hy, eNorm_zero, ENNReal.zero_rpow_of_pos hp0] + simp_rw [hcell'] + refine (tendsto_lintegral_filter_of_dominated_convergence (fun y => ‖f y‖ₑ ^ p) + (Eventually.of_forall fun R => hfm.indicator (measurableSet_dilatedCell R)) + (Eventually.of_forall fun R => ae_of_all _ fun y => Set.indicator_le_self _ _ y) ?_ + (ae_of_all _ fun y => ?_)).ennrpow_const _ + · have := lintegral_rpow_eNorm_lt_top_of_eLpNorm_lt_top hP0 ENNReal.ofReal_ne_top + (f.memLp (ENNReal.ofReal p) volume).eLpNorm_lt_top + rw [ENNReal.toReal_ofReal hp0.le] at this + exact this.ne + · refine tendsto_const_nhds.congr' ?_ + filter_upwards [eventually_div_mem_centredCell y] with R hR + exact (Set.indicator_of_mem (s := {y : ℂ | y / R ∈ centredCell}) (a := y) hR + fun y => ‖f y‖ₑ ^ p).symm + have hlow := ENNReal.Tendsto.sub hcell herr (Or.inl + (f.memLp (ENNReal.ofReal p) volume).eLpNorm_lt_top.ne) + rw [tsub_zero] at hlow + have hupp := hcell.add herr + rw [add_zero] at hupp + refine tendsto_of_tendsto_of_tendsto_of_le_of_le' hlow hupp ?_ ?_ + · filter_upwards [eventually_gt_atTop 0] with R hR + exact tsub_le_iff_right.2 (hK R hR).2 + · filter_upwards [eventually_gt_atTop 0] with R hR + exact (hK R hR).1 + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Smooth.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Smooth.lean new file mode 100644 index 0000000000..c9cba36065 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/Smooth.lean @@ -0,0 +1,879 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Lipschitz +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Lattice +public import Mathlib.Analysis.Calculus.SmoothSeries +public import Mathlib.Analysis.Calculus.ContDiff.Bounds +public import Mathlib.Analysis.SpecialFunctions.ExpDeriv +public import Mathlib.Analysis.PSeries + +/-! +# Smooth periodic functions on `ℝ^ι`, their Fourier series and Fourier multipliers + +For `ℤ^ι`-periodic functions `g : ℝ^ι → ℂ` (`UnitAddTorus.IsPeriodic`), with the Fourier +coefficients `ĝ (n) = ∫_{(0,1)^ι} e^{−2πi ⟨n, x⟩} g (x) dx` (`UnitAddTorus.cubeFourierCoeff`) and +the monomials `e_n (x) = e^{2πi ⟨n, x⟩}` (`UnitAddTorus.mFourier n (UnitAddTorus.ofPi x)`); the +norm `‖n‖` of `n ∈ ℤ^ι` is the sup norm. The arguments are the standard ones of Grafakos, +*Classical Fourier Analysis*, Chapter 3, and Katznelson, *An Introduction to Harmonic Analysis*, +Chapter I. + +* A `C¹` periodic map is Lipschitz (`UnitAddTorus.IsPeriodic.exists_lipschitzWith`: its derivative + is periodic and continuous, hence bounded, and the mean value inequality). +* The coefficients of a derivative: `(∂_v g)^ (n) = 2πi ⟨n, v⟩ ĝ (n)` for `C¹` periodic `g` + (`UnitAddTorus.cubeFourierCoeff_fderiv_of_contDiff`), by the difference quotient argument. +* Rapid decay: for smooth periodic `g`, `(1 + ‖n‖)^k |ĝ (n)|` is bounded and summable for every + `k` (`UnitAddTorus.exists_norm_cubeFourierCoeff_le`, `UnitAddTorus.summable_cubeFourierCoeff`), + by integrating by parts `k` times in one coordinate. +* The Fourier series of a smooth periodic `g` converges absolutely to `g` + (`UnitAddTorus.hasSum_cubeFourierCoeff_mul_mFourier`, from Mathlib's + `hasSum_mFourier_series_apply_of_summable`), hence the uniqueness of the coefficients + (`UnitAddTorus.eq_of_cubeFourierCoeff_eq`). +* Fourier multipliers `T_m g = Σ_n m (n) ĝ (n) e_n` (`UnitAddTorus.periodicMultiplier`) with + polynomially bounded symbols `m` (`UnitAddTorus.IsPolyBounded`): `T_m g` is smooth and periodic + (`UnitAddTorus.contDiff_periodicMultiplier`, by the Weierstrass M-test for all derivatives), + with coefficients `m ĝ` (`UnitAddTorus.cubeFourierCoeff_periodicMultiplier`, by termwise + integration); `T_m T_{m'} = T_{m m'}`, `T_1 = id`, `T_m ∂_v = T_{2πi ⟨·, v⟩ m}`, linearity, and + `T_m` on trigonometric polynomials, by comparing coefficients. +* On `ℝ² ≅ ℂ`: the Wirtinger derivatives `∂ = ½ (∂_x − i ∂_y)`, `∂_zbar = ½ (∂_x + i ∂_y)` + (`UnitAddTorus.dzPi`, `UnitAddTorus.dzbarPi`), with the symbols `πi (conj ν)` and `πi ν`, + `ν = n₀ + i n₁` (`HarmonicAnalysis.latticePoint`); the inverse of `∂_zbar` on mean-zero smooth + periodic functions, the multiplier with symbol `(πi ν)⁻¹` off `0` + (`UnitAddTorus.dzbarPi_periodicMultiplier_dzbarInvSymbol`, `UnitAddTorus.exists_dzbarPi_eq`). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology Set Complex +open scoped ComplexConjugate Real ContDiff + +/-! As in `Mathlib.Analysis.Fourier.AddCircleMulti` (whose local instances these are), the measure +on `ℝ / ℤ` is the Haar measure of total mass one. -/ +attribute [local instance] instMeasureSpaceUnitAddCircle instIsAddHaarMeasureUnitAddCircleVolume + instIsProbabilityMeasureUnitAddCircleVolume + +namespace UnitAddTorus + +variable {ι : Type*} [Fintype ι] + +/-! ### Periodic functions -/ + +omit [Fintype ι] in +/-- A continuous periodic function induces a continuous function on the torus. -/ +theorem IsPeriodic.continuous_comp_toPi {E : Type*} [TopologicalSpace E] {g : (ι → ℝ) → E} + (hc : Continuous g) (hper : IsPeriodic g) : Continuous (g ∘ toPi) := by + have h1 : IsOpenQuotientMap (ofPi : (ι → ℝ) → UnitAddTorus ι) := + IsOpenQuotientMap.piMap fun _ => QuotientAddGroup.isOpenQuotientMap_mk + rw [← h1.continuous_comp_iff] + convert hc using 1 + funext x + exact hper.comp_toPi_ofPi x + +omit [Fintype ι] in +/-- A continuous periodic function is bounded. -/ +theorem IsPeriodic.exists_bound {E : Type*} [SeminormedAddCommGroup E] {g : (ι → ℝ) → E} + (hc : Continuous g) (hper : IsPeriodic g) : ∃ C : ℝ, ∀ x, ‖g x‖ ≤ C := by + obtain ⟨C, hC⟩ := isCompact_univ.exists_bound_of_continuousOn + (hper.continuous_comp_toPi hc).continuousOn + exact ⟨C, fun x => by simpa [hper.comp_toPi_ofPi x] using hC (ofPi x) (mem_univ _)⟩ + +omit [Fintype ι] in +/-- The derivative of a periodic map is periodic. -/ +theorem isPeriodic_fderiv [Finite ι] {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + {g : (ι → ℝ) → E} (hper : IsPeriodic g) : IsPeriodic (fderiv ℝ g) := by + have := Fintype.ofFinite ι + intro x k + rw [← fderiv_comp_add_right] + congr 1 + funext y + exact hper y k + +omit [Fintype ι] in +/-- The directional derivatives of a periodic map are periodic. -/ +theorem IsPeriodic.fderiv_apply [Finite ι] + {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + {g : (ι → ℝ) → E} (hper : IsPeriodic g) (v : ι → ℝ) : IsPeriodic fun x => fderiv ℝ g x v := + fun x k => by simp only [isPeriodic_fderiv hper x k] + +/-- A `C¹` periodic map is Lipschitz: its derivative is continuous and periodic, hence bounded, +and the mean value inequality applies. -/ +theorem IsPeriodic.exists_lipschitzWith {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + {g : (ι → ℝ) → E} (hg : ContDiff ℝ 1 g) (hper : IsPeriodic g) : + ∃ K : NNReal, LipschitzWith K g := by + obtain ⟨C, hC⟩ := (isPeriodic_fderiv hper).exists_bound (hg.continuous_fderiv one_ne_zero) + refine ⟨C.toNNReal, lipschitzWith_of_nnNorm_fderiv_le (hg.differentiable one_ne_zero) + fun x => ?_⟩ + rw [← NNReal.coe_le_coe, coe_nnNorm] + exact (hC x).trans (Real.le_coe_toNNReal C) + +/-! ### Coefficients -/ + +/-- The coefficients are bounded by the sup norm. -/ +theorem norm_cubeFourierCoeff_le {g : (ι → ℝ) → ℂ} {C : ℝ} (hC : ∀ x, ‖g x‖ ≤ C) (n : ι → ℤ) : + ‖cubeFourierCoeff g n‖ ≤ C := by + rw [cubeFourierCoeff] + have h := norm_setIntegral_le_of_norm_le_const (μ := volume) (s := cube ι) + (f := fun x => mFourier (-n) (ofPi x) * g x) (C := C) + (by rw [volume_cube]; exact ENNReal.one_lt_top) + (fun x _ => by rw [norm_mul, norm_mFourier_ofPi, one_mul]; exact hC x) + simpa [measureReal_def, volume_cube] using h + +/-- The coefficients over the cube of a periodic `g` are the Fourier coefficients on the torus of +the function `g ∘ toPi` that `g` induces there. -/ +theorem mFourierCoeff_comp_toPi {g : (ι → ℝ) → ℂ} (hper : IsPeriodic g) (n : ι → ℤ) : + mFourierCoeff (g ∘ toPi) n = cubeFourierCoeff g n := by + rw [mFourierCoeff, cubeFourierCoeff, ← integral_cube_ofPi] + refine setIntegral_congr_fun measurableSet_cube fun x _ => ?_ + simp only [Function.comp_apply, hper.comp_toPi_ofPi, smul_eq_mul] + +/-- The coefficients of the derivative of a Lipschitz `ℤ^ι`-periodic `g : ℝ^ι → ℂ`: +`(∂_v g)^ (n) = 2πi ⟨n, v⟩ ĝ (n)`, with `∂_v g (x) = fderiv ℝ g x v` (the derivative almost +everywhere, by Rademacher's theorem). The difference quotient argument of +`UnitAddTorus.cubeFourierCoeff_fderiv`: integrate `t⁻¹ (g (x + t v) − g (x))` against `e_{−n}`, +move the translation onto `e_{−n}` and let `t → 0`. -/ +theorem cubeFourierCoeff_fderiv_of_lipschitzWith {g : (ι → ℝ) → ℂ} {C : NNReal} + (hg : LipschitzWith C g) (hper : IsPeriodic g) (v : ι → ℝ) (n : ι → ℤ) : + cubeFourierCoeff (fun x => fderiv ℝ g x v) n = + 2 * π * I * (∑ i, (n i : ℂ) * (v i : ℂ)) * cubeFourierCoeff g n := by + set A : ℝ → ℂ := fun t => ∫ x in cube ι, + mFourier (-n) (ofPi x) * ((t⁻¹ : ℂ) * (g (x + t • v) - g x)) with hA + -- the difference quotients converge to the derivative + have h1 : Tendsto A (𝓝[≠] 0) (𝓝 (cubeFourierCoeff (fun x => fderiv ℝ g x v) n)) := by + refine tendsto_integral_filter_of_dominated_convergence (fun _ => (C : ℝ) * ‖v‖) ?_ ?_ ?_ ?_ + · exact Eventually.of_forall fun t => ((continuous_mFourier_ofPi _).mul + (continuous_const.mul ((hg.continuous.comp (continuous_id.add continuous_const)).sub + hg.continuous))).aestronglyMeasurable + · refine Eventually.of_forall fun t => ae_of_all _ fun x => ?_ + rw [norm_mul, norm_mFourier_ofPi, one_mul, norm_mul, norm_inv, Complex.norm_real, + Real.norm_eq_abs] + have h := hg.dist_le_mul (x + t • v) x + rw [dist_eq_norm, dist_eq_norm, add_sub_cancel_left, norm_smul, Real.norm_eq_abs] at h + by_cases ht : t = 0 + · simp only [ht, abs_zero, inv_zero, zero_mul]; positivity + · have ht' : 0 < |t| := abs_pos.mpr ht + calc |t|⁻¹ * ‖g (x + t • v) - g x‖ ≤ |t|⁻¹ * (C * (|t| * ‖v‖)) := by gcongr + _ = C * ‖v‖ := by field_simp + · exact integrableOn_const (by rw [volume_cube]; exact ENNReal.one_ne_top) + · filter_upwards [ae_restrict_of_ae hg.ae_differentiableAt] with x hx + have h0 : HasDerivAt (fun t : ℝ => x + t • v) v 0 := by + simpa using ((hasDerivAt_id (0 : ℝ)).smul_const v).const_add x + have hd : HasDerivAt (fun t : ℝ => g (x + t • v)) (fderiv ℝ g x v) 0 := + hx.hasFDerivAt.comp_hasDerivAt_of_eq 0 h0 (by simp) + have h2 := hasDerivAt_iff_tendsto_slope_zero.mp hd + simp only [zero_add, zero_smul, add_zero] at h2 + refine (h2.const_mul (mFourier (-n) (ofPi x))).congr fun t => ?_ + rw [Complex.real_smul, Complex.ofReal_inv] + -- the translation moves onto `e_{−n}` + have h2 : ∀ t : ℝ, A t = (t⁻¹ : ℂ) * (mFourier n (ofPi (t • v)) - 1) * cubeFourierCoeff g n := by + intro t + have hcont : ∀ w : ι → ℝ, Continuous fun x => mFourier (-n) (ofPi x) * g (x + w) := + fun w => (continuous_mFourier_ofPi _).mul + (hg.continuous.comp (continuous_id.add continuous_const)) + have e1 : ∀ x, mFourier (-n) (ofPi x) * ((t⁻¹ : ℂ) * (g (x + t • v) - g x)) = + (t⁻¹ : ℂ) * (mFourier (-n) (ofPi x) * g (x + t • v) - + mFourier (-n) (ofPi x) * g (x + 0)) := fun x => by + rw [add_zero]; ring + have hF : IsPeriodic fun y => mFourier (-n) (ofPi (y + -(t • v))) * g y := by + intro y k + simp only + rw [show y + (fun i => (k i : ℝ)) + -(t • v) = (y + -(t • v)) + fun i => (k i : ℝ) by + abel, ofPi_add_int, hper] + have e2 : ∫ x in cube ι, mFourier (-n) (ofPi x) * g (x + t • v) = + mFourier n (ofPi (t • v)) * cubeFourierCoeff g n := by + have := integral_cube_comp_add hF (t • v) + simp only [add_neg_cancel_right] at this + rw [this, cubeFourierCoeff, ← integral_const_mul] + refine setIntegral_congr_fun measurableSet_cube fun y _ => ?_ + rw [mFourier_ofPi_add, mFourier_ofPi_neg n (-(t • v)), neg_neg] + ring + simp only [hA] + simp_rw [e1] + rw [integral_const_mul, integral_sub (integrableOn_cube_of_continuous (hcont _)) + (integrableOn_cube_of_continuous (hcont 0)), e2] + simp only [add_zero, cubeFourierCoeff] + ring + have h3 := (tendsto_slope_mFourier_ofPi_smul n v).mul_const (cubeFourierCoeff g n) + exact tendsto_nhds_unique h1 (h3.congr fun t => (h2 t).symm) + +/-- The coefficients of the derivative of a `C¹` periodic `g : ℝ^ι → ℂ`: +`(∂_v g)^ (n) = 2πi ⟨n, v⟩ ĝ (n)`. -/ +theorem cubeFourierCoeff_fderiv_of_contDiff {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ 1 g) + (hper : IsPeriodic g) (v : ι → ℝ) (n : ι → ℤ) : + cubeFourierCoeff (fun x => fderiv ℝ g x v) n = + 2 * π * I * (∑ i, (n i : ℂ) * (v i : ℂ)) * cubeFourierCoeff g n := by + obtain ⟨K, hK⟩ := hper.exists_lipschitzWith hg + exact cubeFourierCoeff_fderiv_of_lipschitzWith hK hper v n + +/-- The derivative of a `C¹` periodic function has mean zero. -/ +theorem cubeFourierCoeff_fderiv_zero {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ 1 g) + (hper : IsPeriodic g) (v : ι → ℝ) : cubeFourierCoeff (fun x => fderiv ℝ g x v) 0 = 0 := by + rw [cubeFourierCoeff_fderiv_of_contDiff hg hper] + simp + +/-! ### Rapid decay and the Fourier series of a smooth periodic function -/ + +/-- The directional derivatives of a smooth map are smooth. -/ +private lemma contDiff_fderiv_apply {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (v : ι → ℝ) : + ContDiff ℝ ∞ fun x => fderiv ℝ g x v := + (contDiff_infty_iff_fderiv.mp hg).2.clm_apply contDiff_const + +private lemma contDiff_one_of_infty {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) : ContDiff ℝ 1 g := + hg.of_le (by exact_mod_cast le_top) + +section Partial + +variable [DecidableEq ι] + +/-- The `j`-th iterate of the partial derivative `∂_i = fderiv ℝ · · (Pi.single i 1)`. -/ +private def iterPartial (i : ι) (j : ℕ) (g : (ι → ℝ) → ℂ) : (ι → ℝ) → ℂ := + (fun f x => fderiv ℝ f x (Pi.single i 1))^[j] g + +private lemma sum_mul_single (n : ι → ℤ) (i : ι) : + ∑ l, (n l : ℂ) * ((Pi.single i (1 : ℝ) : ι → ℝ) l : ℂ) = n i := by + rw [Finset.sum_eq_single i (fun l _ hl => by simp [Pi.single_eq_of_ne hl]) (by simp)] + simp + +/-- `∂_i^j g` is smooth and periodic, with coefficients `(2πi n_i)^j ĝ (n)`. -/ +private lemma iterPartial_spec {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) + (i : ι) (j : ℕ) : + ContDiff ℝ ∞ (iterPartial i j g) ∧ IsPeriodic (iterPartial i j g) ∧ + ∀ n, cubeFourierCoeff (iterPartial i j g) n = + (2 * π * I * (n i : ℂ)) ^ j * cubeFourierCoeff g n := by + induction j with + | zero => exact ⟨hg, hper, fun n => by simp [iterPartial]⟩ + | succ j ih => + obtain ⟨h1, h2, h3⟩ := ih + have e : iterPartial i (j + 1) g = + fun x => fderiv ℝ (iterPartial i j g) x (Pi.single i 1) := by + simp only [iterPartial, Function.iterate_succ_apply'] + rw [e] + refine ⟨contDiff_fderiv_apply h1 _, h2.fderiv_apply _, fun n => ?_⟩ + rw [cubeFourierCoeff_fderiv_of_contDiff (contDiff_one_of_infty h1) h2, h3, pow_succ, + sum_mul_single] + ring + +end Partial + +/-- The sup norm of `n ∈ ℤ^ι` is the absolute value of one of its coordinates. -/ +private lemma exists_norm_eq [Nonempty ι] (n : ι → ℤ) : ∃ i, ‖n‖ = ‖n i‖ := by + obtain ⟨i, -, hi⟩ := + Finset.exists_mem_eq_sup Finset.univ Finset.univ_nonempty fun b => ‖n b‖₊ + exact ⟨i, by rw [Pi.norm_def, hi, coe_nnNorm]⟩ + +private lemma one_add_pow_le {a : ℝ} (ha : 0 ≤ a) (k : ℕ) : + (1 + a) ^ k ≤ 2 ^ k * (1 + a ^ k) := by + rcases le_total a 1 with h | h + · calc (1 + a) ^ k ≤ 2 ^ k := pow_le_pow_left₀ (by linarith) (by linarith) k + _ ≤ 2 ^ k * (1 + a ^ k) := + le_mul_of_one_le_right (by positivity) (by linarith [pow_nonneg ha k]) + · calc (1 + a) ^ k ≤ (2 * a) ^ k := pow_le_pow_left₀ (by linarith) (by linarith) k + _ = 2 ^ k * a ^ k := mul_pow 2 a k + _ ≤ 2 ^ k * (1 + a ^ k) := by gcongr; linarith + +/-- Rapid decay of the coefficients of a smooth periodic `g`: `(1 + ‖n‖)^k |ĝ (n)|` is bounded, +by integrating by parts `k` times in one coordinate (the derivative formula +`UnitAddTorus.cubeFourierCoeff_fderiv_of_contDiff` along a coordinate vector). -/ +theorem exists_norm_cubeFourierCoeff_le {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) + (hper : IsPeriodic g) (k : ℕ) : + ∃ C : ℝ, ∀ n : ι → ℤ, (1 + ‖n‖) ^ k * ‖cubeFourierCoeff g n‖ ≤ C := by + classical + -- `|n_i|^k |ĝ (n)| ≤ (2π |n_i|)^k |ĝ (n)| = |(∂_i^k g)^ (n)| ≤ sup |∂_i^k g|` + have hb : ∀ i : ι, ∃ C : ℝ, ∀ n : ι → ℤ, ‖n i‖ ^ k * ‖cubeFourierCoeff g n‖ ≤ C := by + intro i + obtain ⟨h1, h2, h3⟩ := iterPartial_spec hg hper i k + obtain ⟨C, hC⟩ := h2.exists_bound h1.continuous + refine ⟨C, fun n => le_trans ?_ (norm_cubeFourierCoeff_le hC n)⟩ + rw [h3 n, norm_mul, norm_pow] + gcongr + rw [norm_mul, Complex.norm_intCast, ← Int.norm_eq_abs] + refine le_mul_of_one_le_left (norm_nonneg _) ?_ + simp only [norm_mul, Complex.norm_ofNat, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos Real.pi_pos, Complex.norm_I, mul_one] + nlinarith [Real.two_le_pi] + choose C hC using hb + obtain ⟨B, hB⟩ := hper.exists_bound hg.continuous + have hB0 : 0 ≤ B := (norm_nonneg _).trans (hB 0) + have hC0 : ∀ i, 0 ≤ C i := fun i => (by positivity : (0 : ℝ) ≤ _).trans (hC i 0) + refine ⟨2 ^ k * (B + ∑ i, C i), fun n => ?_⟩ + have hB' := norm_cubeFourierCoeff_le hB n + rcases isEmpty_or_nonempty ι with hι | hι + · have : ‖n‖ = 0 := by rw [Subsingleton.elim n 0, norm_zero] + rw [this, add_zero, one_pow, one_mul, Finset.univ_eq_empty, Finset.sum_empty, add_zero] + exact hB'.trans (le_mul_of_one_le_left hB0 (one_le_pow₀ one_le_two)) + · obtain ⟨i, hi⟩ := exists_norm_eq n + rw [hi] + calc (1 + ‖n i‖) ^ k * ‖cubeFourierCoeff g n‖ + ≤ 2 ^ k * (1 + ‖n i‖ ^ k) * ‖cubeFourierCoeff g n‖ := by + gcongr; exact one_add_pow_le (norm_nonneg _) k + _ = 2 ^ k * (‖cubeFourierCoeff g n‖ + ‖n i‖ ^ k * ‖cubeFourierCoeff g n‖) := by ring + _ ≤ 2 ^ k * (B + C i) := by gcongr; exact hC i n + _ ≤ 2 ^ k * (B + ∑ j, C j) := by + gcongr; exact Finset.single_le_sum (fun j _ => hC0 j) (Finset.mem_univ i) + +/-- `Σ_{n ∈ ℤ^ι} (1 + ‖n‖)^{−2 card ι}` converges, by comparison with +`Π_i Σ_{m ∈ ℤ} (1 + |m|)^{−2}`. -/ +theorem summable_one_add_norm_pow_inv : + Summable fun n : ι → ℤ => ((1 + ‖n‖) ^ (2 * Fintype.card ι))⁻¹ := by + classical + set f : ℤ → ℝ := fun m => ((1 + ‖m‖) ^ 2)⁻¹ with hf_def + have hf0 : ∀ m, 0 ≤ f m := fun m => by positivity + have hf : Summable f := by + refine Summable.of_nonneg_of_le hf0 (fun m => ?_) + ((Real.summable_one_div_int_pow.mpr one_lt_two).add (hasSum_ite_eq (0 : ℤ) (1 : ℝ)).summable) + by_cases hm : m = 0 + · simp [hf_def, hm] + · have h1 : (0 : ℝ) < (m : ℝ) ^ 2 := by positivity + have h2 : (m : ℝ) ^ 2 ≤ (1 + ‖m‖) ^ 2 := by + rw [Int.norm_eq_abs, ← sq_abs (m : ℝ)] + gcongr + linarith + simp only [hf_def, hm, ↓reduceIte, add_zero, one_div] + exact inv_anti₀ h1 h2 + have hprod : Summable fun n : ι → ℤ => ∏ i, f (n i) := by + refine summable_of_sum_le (c := (∑' m, f m) ^ Fintype.card ι) + (fun n => Finset.prod_nonneg fun i _ => hf0 _) fun S => ?_ + set T : Finset ℤ := S.biUnion fun n => Finset.univ.image n + calc ∑ n ∈ S, ∏ i, f (n i) ≤ ∑ n ∈ Fintype.piFinset fun _ => T, ∏ i, f (n i) := + Finset.sum_le_sum_of_subset_of_nonneg + (fun n hn => Fintype.mem_piFinset.2 fun i => Finset.mem_biUnion.2 + ⟨n, hn, Finset.mem_image_of_mem n (Finset.mem_univ i)⟩) + (fun _ _ _ => Finset.prod_nonneg fun i _ => hf0 _) + _ = ∏ _i : ι, ∑ m ∈ T, f m := (Finset.prod_univ_sum (fun _ => T) fun _ => f).symm + _ ≤ ∏ _i : ι, ∑' m, f m := + Finset.prod_le_prod₀ (fun _ _ => Finset.sum_nonneg fun _ _ => hf0 _) + fun _ _ => hf.sum_le_tsum T fun _ _ => hf0 _ + _ = (∑' m, f m) ^ Fintype.card ι := by rw [Finset.prod_const, Finset.card_univ] + refine hprod.of_nonneg_of_le (fun n => by positivity) fun n => ?_ + have h : ∏ i, (1 + ‖n i‖) ^ 2 ≤ (1 + ‖n‖) ^ (2 * Fintype.card ι) := by + rw [pow_mul, ← Finset.card_univ, ← Finset.prod_const] + exact Finset.prod_le_prod₀ (fun _ _ => by positivity) + fun i _ => pow_le_pow_left₀ (by positivity) (by linarith [norm_le_pi_norm n i]) 2 + simp only [hf_def, Finset.prod_inv_distrib] + exact inv_anti₀ (Finset.prod_pos fun _ _ => by positivity) h + +/-- For smooth periodic `g`, `Σ_n (1 + ‖n‖)^k |ĝ (n)|` converges for every `k`. -/ +theorem summable_cubeFourierCoeff {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) + (hper : IsPeriodic g) (k : ℕ) : + Summable fun n : ι → ℤ => (1 + ‖n‖) ^ k * ‖cubeFourierCoeff g n‖ := by + obtain ⟨C, hC⟩ := exists_norm_cubeFourierCoeff_le hg hper (k + 2 * Fintype.card ι) + refine ((summable_one_add_norm_pow_inv (ι := ι)).mul_left C).of_nonneg_of_le + (fun n => by positivity) fun n => ?_ + have hpos : 0 < (1 + ‖n‖) ^ (2 * Fintype.card ι) := by positivity + rw [← div_eq_mul_inv, le_div_iff₀ hpos] + calc (1 + ‖n‖) ^ k * ‖cubeFourierCoeff g n‖ * (1 + ‖n‖) ^ (2 * Fintype.card ι) + = (1 + ‖n‖) ^ (k + 2 * Fintype.card ι) * ‖cubeFourierCoeff g n‖ := by ring + _ ≤ C := hC n + +/-- The Fourier series of a smooth periodic `g` converges absolutely to `g`: +`g (x) = Σ_n ĝ (n) e^{2πi ⟨n, x⟩}` (Mathlib's `hasSum_mFourier_series_apply_of_summable` for the +function `g ∘ toPi` on the torus). -/ +theorem hasSum_cubeFourierCoeff_mul_mFourier {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) + (hper : IsPeriodic g) (x : ι → ℝ) : + HasSum (fun n => cubeFourierCoeff g n * mFourier n (ofPi x)) (g x) := by + set G : C(UnitAddTorus ι, ℂ) := ⟨g ∘ toPi, hper.continuous_comp_toPi hg.continuous⟩ + have hG : mFourierCoeff G = cubeFourierCoeff g := funext fun n => mFourierCoeff_comp_toPi hper n + have hs : Summable (mFourierCoeff G) := by + rw [hG] + exact Summable.of_norm (by simpa using summable_cubeFourierCoeff hg hper 0) + have := hasSum_mFourier_series_apply_of_summable hs (ofPi x) + rw [hG] at this + simpa [G, hper.comp_toPi_ofPi] using this + +/-- Uniqueness of Fourier coefficients: smooth periodic functions with the same coefficients are +equal. -/ +theorem eq_of_cubeFourierCoeff_eq {g g' : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) + (hper : IsPeriodic g) (hg' : ContDiff ℝ ∞ g') (hper' : IsPeriodic g') + (h : ∀ n, cubeFourierCoeff g n = cubeFourierCoeff g' n) : g = g' := by + funext x + have h1 := hasSum_cubeFourierCoeff_mul_mFourier hg hper x + have h2 := hasSum_cubeFourierCoeff_mul_mFourier hg' hper' x + simp_rw [← h] at h2 + exact h1.unique h2 + +/-- The coefficients of an absolutely convergent trigonometric series `Σ_l c_l e_l` are `c` +(termwise integration and the orthogonality of the monomials). -/ +theorem cubeFourierCoeff_tsum_mFourier {c : (ι → ℤ) → ℂ} (hc : Summable c) (n : ι → ℤ) : + cubeFourierCoeff (fun x => ∑' l, c l * mFourier l (ofPi x)) n = c n := by + have hint : ∀ l, Integrable (fun x => mFourier (-n) (ofPi x) * (c l * mFourier l (ofPi x))) + (volume.restrict (cube ι)) := fun l => + integrableOn_cube_of_continuous ((continuous_mFourier_ofPi _).mul + (continuous_const.mul (continuous_mFourier_ofPi _))) + have hnorm : ∀ l, ∫ x in cube ι, ‖mFourier (-n) (ofPi x) * (c l * mFourier l (ofPi x))‖ = + ‖c l‖ := fun l => by + simp_rw [norm_mul, norm_mFourier_ofPi, one_mul, mul_one] + simp [measureReal_def, volume_cube] + have key := integral_tsum_of_summable_integral_norm hint (by simp_rw [hnorm]; exact hc.norm) + have hl : ∀ l, ∫ x in cube ι, mFourier (-n) (ofPi x) * (c l * mFourier l (ofPi x)) = + if l = n then c l else 0 := fun l => by + have := cubeFourierCoeff_trig {l} c n + simp only [Finset.sum_singleton, Finset.mem_singleton] at this + rw [cubeFourierCoeff] at this + rw [this] + by_cases h : l = n + · simp [h] + · simp [h, Ne.symm h] + rw [cubeFourierCoeff] + simp_rw [← tsum_mul_left] + rw [← key] + simp_rw [hl] + exact tsum_ite_eq n c + +/-! ### Polynomially bounded symbols -/ + +/-- The symbol `m : ℤ^ι → ℂ` is polynomially bounded: `|m (n)| ≤ C (1 + ‖n‖)^k`. -/ +def IsPolyBounded (m : (ι → ℤ) → ℂ) : Prop := + ∃ C : ℝ, ∃ k : ℕ, ∀ n, ‖m n‖ ≤ C * (1 + ‖n‖) ^ k + +/-- Bounded symbols are polynomially bounded. -/ +theorem isPolyBounded_of_norm_le {m : (ι → ℤ) → ℂ} {C : ℝ} (h : ∀ n, ‖m n‖ ≤ C) : + IsPolyBounded m := + ⟨C, 0, fun n => by simpa using h n⟩ + +theorem isPolyBounded_const (c : ℂ) : IsPolyBounded fun _ : ι → ℤ => c := + isPolyBounded_of_norm_le fun _ => le_rfl + +theorem IsPolyBounded.add {m m' : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) (hm' : IsPolyBounded m') : + IsPolyBounded fun n => m n + m' n := by + obtain ⟨C, k, hC⟩ := hm + obtain ⟨C', k', hC'⟩ := hm' + refine ⟨|C| + |C'|, k + k', fun n => ?_⟩ + have h1 : 1 ≤ 1 + ‖n‖ := by linarith [norm_nonneg n] + have hk : (1 + ‖n‖) ^ k ≤ (1 + ‖n‖) ^ (k + k') := pow_le_pow_right₀ h1 (by omega) + have hk' : (1 + ‖n‖) ^ k' ≤ (1 + ‖n‖) ^ (k + k') := pow_le_pow_right₀ h1 (by omega) + calc ‖m n + m' n‖ ≤ ‖m n‖ + ‖m' n‖ := norm_add_le _ _ + _ ≤ C * (1 + ‖n‖) ^ k + C' * (1 + ‖n‖) ^ k' := add_le_add (hC n) (hC' n) + _ ≤ |C| * (1 + ‖n‖) ^ (k + k') + |C'| * (1 + ‖n‖) ^ (k + k') := + add_le_add (mul_le_mul (le_abs_self C) hk (by positivity) (abs_nonneg C)) + (mul_le_mul (le_abs_self C') hk' (by positivity) (abs_nonneg C')) + _ = (|C| + |C'|) * (1 + ‖n‖) ^ (k + k') := by ring + +theorem IsPolyBounded.mul {m m' : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) (hm' : IsPolyBounded m') : + IsPolyBounded fun n => m n * m' n := by + obtain ⟨C, k, hC⟩ := hm + obtain ⟨C', k', hC'⟩ := hm' + refine ⟨C * C', k + k', fun n => ?_⟩ + rw [norm_mul] + calc ‖m n‖ * ‖m' n‖ ≤ (C * (1 + ‖n‖) ^ k) * (C' * (1 + ‖n‖) ^ k') := + mul_le_mul (hC n) (hC' n) (norm_nonneg _) ((norm_nonneg _).trans (hC n)) + _ = C * C' * (1 + ‖n‖) ^ (k + k') := by ring + +theorem IsPolyBounded.pow {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) (k : ℕ) : + IsPolyBounded fun n => m n ^ k := by + induction k with + | zero => simpa using isPolyBounded_const (ι := ι) 1 + | succ k ih => simpa only [pow_succ] using ih.mul hm + +/-- The symbol `n ↦ 2πi ⟨n, v⟩` of the directional derivative `∂_v` is polynomially bounded. -/ +theorem isPolyBounded_derivSymbol (v : ι → ℝ) : + IsPolyBounded fun n : ι → ℤ => 2 * π * I * ∑ i, (n i : ℂ) * (v i : ℂ) := by + refine ⟨2 * π * ∑ i, ‖v i‖, 1, fun n => ?_⟩ + have h1 : ‖∑ i, (n i : ℂ) * (v i : ℂ)‖ ≤ (1 + ‖n‖) * ∑ i, ‖v i‖ := by + rw [Finset.mul_sum] + refine (norm_sum_le _ _).trans (Finset.sum_le_sum fun i _ => ?_) + rw [norm_mul, Complex.norm_intCast, ← Int.norm_eq_abs, Complex.norm_real] + gcongr + linarith [norm_le_pi_norm n i] + have h2 : ‖(2 * π * I : ℂ)‖ = 2 * π := by + simp [Complex.norm_I, abs_of_pos Real.pi_pos] + rw [norm_mul, h2, pow_one] + calc 2 * π * ‖∑ i, (n i : ℂ) * (v i : ℂ)‖ ≤ 2 * π * ((1 + ‖n‖) * ∑ i, ‖v i‖) := by + gcongr + _ = 2 * π * (∑ i, ‖v i‖) * (1 + ‖n‖) := by ring + +/-! ### Fourier multipliers on smooth periodic functions -/ + +/-- The Fourier multiplier with symbol `m : ℤ^ι → ℂ` on periodic functions: +`T_m g (x) = Σ_n m (n) ĝ (n) e^{2πi ⟨n, x⟩}` (`0` where the series does not converge; it +converges absolutely for smooth periodic `g` and polynomially bounded `m`). -/ +def periodicMultiplier (m : (ι → ℤ) → ℂ) (g : (ι → ℝ) → ℂ) (x : ι → ℝ) : ℂ := + ∑' n, m n * cubeFourierCoeff g n * mFourier n (ofPi x) + +theorem isPeriodic_periodicMultiplier (m : (ι → ℤ) → ℂ) (g : (ι → ℝ) → ℂ) : + IsPeriodic (periodicMultiplier m g) := + fun x k => by simp only [periodicMultiplier, ofPi_add_int] + +/-- The weighted coefficients `(1 + ‖n‖)^j |m (n) ĝ (n)|` are summable. -/ +private lemma summable_symbol_mul_cubeFourierCoeff {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) + {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) (j : ℕ) : + Summable fun n => (1 + ‖n‖) ^ j * ‖m n * cubeFourierCoeff g n‖ := by + obtain ⟨C, k, hC⟩ := hm + refine ((summable_cubeFourierCoeff hg hper (j + k)).mul_left |C|).of_nonneg_of_le + (fun n => by positivity) fun n => ?_ + rw [norm_mul] + calc (1 + ‖n‖) ^ j * (‖m n‖ * ‖cubeFourierCoeff g n‖) + ≤ (1 + ‖n‖) ^ j * ((|C| * (1 + ‖n‖) ^ k) * ‖cubeFourierCoeff g n‖) := by + gcongr + exact (hC n).trans (mul_le_mul_of_nonneg_right (le_abs_self C) (by positivity)) + _ = |C| * ((1 + ‖n‖) ^ (j + k) * ‖cubeFourierCoeff g n‖) := by ring + +private lemma summable_symbol_mul {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) + {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) : + Summable fun n => m n * cubeFourierCoeff g n := + Summable.of_norm (by simpa using summable_symbol_mul_cubeFourierCoeff hm hg hper 0) + +/-- The terms of the series of `T_m g (x)` are summable. -/ +private lemma summable_periodicMultiplier_terms {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) + {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) (x : ι → ℝ) : + Summable fun n => m n * cubeFourierCoeff g n * mFourier n (ofPi x) := + Summable.of_norm (by + simpa [norm_mFourier_ofPi] using (summable_symbol_mul hm hg hper).norm) + +/-- The linear functional `ℓ_n x = 2πi ⟨n, x⟩`, with `e_n (x) = exp (ℓ_n x)`. -/ +private def freqCLM (n : ι → ℤ) : (ι → ℝ) →L[ℝ] ℂ := + ∑ i, (2 * π * I * (n i : ℂ)) • (Complex.ofRealCLM.comp (ContinuousLinearMap.proj i)) + +private lemma freqCLM_apply (n : ι → ℤ) (x : ι → ℝ) : + freqCLM n x = 2 * π * I * ∑ i, (n i : ℂ) * (x i : ℂ) := by + simp [freqCLM, Finset.mul_sum, mul_assoc] + +private lemma mFourier_ofPi_eq_exp (n : ι → ℤ) (x : ι → ℝ) : + mFourier n (ofPi x) = cexp (freqCLM n x) := by + rw [mFourier_ofPi, freqCLM_apply] + +private lemma norm_freqCLM_le (n : ι → ℤ) : + ‖freqCLM n‖ ≤ 2 * π * Fintype.card ι * (1 + ‖n‖) := by + refine ContinuousLinearMap.opNorm_le_bound _ (by positivity) fun x => ?_ + rw [freqCLM_apply] + have h2 : ‖(2 * π * I : ℂ)‖ = 2 * π := by + simp [Complex.norm_I, abs_of_pos Real.pi_pos] + rw [norm_mul, h2] + have h1 : ‖∑ i, (n i : ℂ) * (x i : ℂ)‖ ≤ Fintype.card ι * ((1 + ‖n‖) * ‖x‖) := by + refine (norm_sum_le _ _).trans ?_ + calc ∑ i, ‖(n i : ℂ) * (x i : ℂ)‖ ≤ ∑ _i : ι, (1 + ‖n‖) * ‖x‖ := + Finset.sum_le_sum fun i _ => by + rw [norm_mul, Complex.norm_intCast, ← Int.norm_eq_abs, Complex.norm_real] + exact mul_le_mul (by linarith [norm_le_pi_norm n i]) (norm_le_pi_norm x i) + (norm_nonneg _) (by positivity) + _ = _ := by rw [Finset.sum_const, Finset.card_univ, nsmul_eq_mul] + calc 2 * π * ‖∑ i, (n i : ℂ) * (x i : ℂ)‖ + ≤ 2 * π * (Fintype.card ι * ((1 + ‖n‖) * ‖x‖)) := by gcongr + _ = 2 * π * Fintype.card ι * (1 + ‖n‖) * ‖x‖ := by ring + +/-- `‖D^k (exp ∘ ℓ)‖ ≤ ‖ℓ‖^k |exp ∘ ℓ|` for a continuous linear functional `ℓ`. -/ +private lemma norm_iteratedFDeriv_cexp_clm {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + (ℓ : E →L[ℝ] ℂ) (k : ℕ) (x : E) : + ‖iteratedFDeriv ℝ k (fun y => cexp (ℓ y)) x‖ ≤ ‖ℓ‖ ^ k * ‖cexp (ℓ x)‖ := by + induction k generalizing x with + | zero => simp + | succ k ih => + let Φ : ℂ →L[ℝ] (E →L[ℝ] ℂ) := (ContinuousLinearMap.lsmul ℝ ℂ).flip ℓ + have hF : fderiv ℝ (fun y => cexp (ℓ y)) = fun y => Φ (cexp (ℓ y)) := by + funext y + rw [(ℓ.hasFDerivAt.cexp).fderiv] + rfl + have hΦ : ‖Φ‖ ≤ ‖ℓ‖ := ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _) fun z => by + simp [Φ, norm_smul, mul_comm] + rw [← norm_iteratedFDeriv_fderiv, hF] + calc ‖iteratedFDeriv ℝ k (fun y => Φ (cexp (ℓ y))) x‖ + ≤ ‖Φ‖ * ‖iteratedFDeriv ℝ k (fun y => cexp (ℓ y)) x‖ := + Φ.norm_iteratedFDeriv_comp_left (f := fun y => cexp (ℓ y)) + (ℓ.contDiff.cexp.contDiffAt (n := ⊤)) le_top + _ ≤ ‖ℓ‖ * (‖ℓ‖ ^ k * ‖cexp (ℓ x)‖) := by gcongr; exact ih x + _ = ‖ℓ‖ ^ (k + 1) * ‖cexp (ℓ x)‖ := by ring + +/-- `T_m g` is smooth, by the Weierstrass M-test for the series of the derivatives of every order +(`contDiff_tsum`), whose terms are `O ((1 + ‖n‖)^{k + j} |ĝ (n)|)`. -/ +theorem contDiff_periodicMultiplier {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) + {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) : + ContDiff ℝ ∞ (periodicMultiplier m g) := by + set c : (ι → ℤ) → ℂ := fun n => m n * cubeFourierCoeff g n with hc + have hfun : periodicMultiplier m g = fun x => ∑' n, c n * cexp (freqCLM n x) := by + funext x + simp only [periodicMultiplier, hc, mFourier_ofPi_eq_exp] + rw [hfun] + refine contDiff_tsum (v := fun j n => ‖c n‖ * (2 * π * Fintype.card ι * (1 + ‖n‖)) ^ j) + (fun n => contDiff_const.mul (freqCLM n).contDiff.cexp) (fun j _ => ?_) + (fun j n x _ => ?_) + · refine ((summable_symbol_mul_cubeFourierCoeff hm hg hper j).mul_left + ((2 * π * Fintype.card ι) ^ j)).congr fun n => ?_ + simp only [hc, mul_pow] + ring + · have hsmul : (fun x => c n * cexp (freqCLM n x)) = fun x => c n • cexp (freqCLM n x) := rfl + rw [hsmul, iteratedFDeriv_const_smul_apply' (freqCLM n).contDiff.cexp.contDiffAt, norm_smul] + have h1 := norm_iteratedFDeriv_cexp_clm (freqCLM n) j x + rw [← mFourier_ofPi_eq_exp, norm_mFourier_ofPi, mul_one] at h1 + gcongr + exact h1.trans (pow_le_pow_left₀ (norm_nonneg _) (norm_freqCLM_le n) j) + +/-- The coefficients of `T_m g` are `m ĝ`, by termwise integration. -/ +theorem cubeFourierCoeff_periodicMultiplier {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) + {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) (n : ι → ℤ) : + cubeFourierCoeff (periodicMultiplier m g) n = m n * cubeFourierCoeff g n := + cubeFourierCoeff_tsum_mFourier (c := fun n => m n * cubeFourierCoeff g n) + (summable_symbol_mul hm hg hper) n + +/-- `T_m T_{m'} = T_{m m'}` on smooth periodic functions. -/ +theorem periodicMultiplier_periodicMultiplier {m m' : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) + (hm' : IsPolyBounded m') {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) : + periodicMultiplier m (periodicMultiplier m' g) = + periodicMultiplier (fun n => m n * m' n) g := by + have h1 := contDiff_periodicMultiplier hm' hg hper + have h2 := isPeriodic_periodicMultiplier m' g + refine eq_of_cubeFourierCoeff_eq (contDiff_periodicMultiplier hm h1 h2) + (isPeriodic_periodicMultiplier _ _) (contDiff_periodicMultiplier (hm.mul hm') hg hper) + (isPeriodic_periodicMultiplier _ _) fun n => ?_ + rw [cubeFourierCoeff_periodicMultiplier hm h1 h2, cubeFourierCoeff_periodicMultiplier hm' hg hper, + cubeFourierCoeff_periodicMultiplier (hm.mul hm') hg hper, mul_assoc] + +/-- `T_1 = id` on smooth periodic functions: the Fourier series converges to the function. -/ +theorem periodicMultiplier_one {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) : + periodicMultiplier (fun _ => 1) g = g := by + funext x + simpa [periodicMultiplier] using (hasSum_cubeFourierCoeff_mul_mFourier hg hper x).tsum_eq + +/-- `T_m ∂_v = T_{2πi ⟨·, v⟩ m}` on smooth periodic functions. -/ +theorem periodicMultiplier_fderiv {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) + {g : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) (hper : IsPeriodic g) (v : ι → ℝ) : + periodicMultiplier m (fun x => fderiv ℝ g x v) = + periodicMultiplier (fun n => 2 * π * I * (∑ i, (n i : ℂ) * (v i : ℂ)) * m n) g := by + have h1 := contDiff_fderiv_apply hg v + have h2 := hper.fderiv_apply v + have hm' := (isPolyBounded_derivSymbol v).mul hm + refine eq_of_cubeFourierCoeff_eq (contDiff_periodicMultiplier hm h1 h2) + (isPeriodic_periodicMultiplier _ _) (contDiff_periodicMultiplier hm' hg hper) + (isPeriodic_periodicMultiplier _ _) fun n => ?_ + rw [cubeFourierCoeff_periodicMultiplier hm h1 h2, cubeFourierCoeff_periodicMultiplier hm' hg hper, + cubeFourierCoeff_fderiv_of_contDiff (contDiff_one_of_infty hg) hper] + ring + +/-- Coefficients of the sum of two smooth periodic functions. -/ +private lemma cubeFourierCoeff_add_of_contDiff {g h : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) + (hgp : IsPeriodic g) (hh : ContDiff ℝ ∞ h) (hhp : IsPeriodic h) (n : ι → ℤ) : + cubeFourierCoeff (fun x => g x + h x) n = cubeFourierCoeff g n + cubeFourierCoeff h n := by + obtain ⟨C, hC⟩ := hgp.exists_bound hg.continuous + obtain ⟨D, hD⟩ := hhp.exists_bound hh.continuous + exact cubeFourierCoeff_add hg.continuous.aestronglyMeasurable hC + hh.continuous.aestronglyMeasurable hD n + +private lemma cubeFourierCoeff_sub_of_contDiff {g h : (ι → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) + (hgp : IsPeriodic g) (hh : ContDiff ℝ ∞ h) (hhp : IsPeriodic h) (n : ι → ℤ) : + cubeFourierCoeff (fun x => g x - h x) n = cubeFourierCoeff g n - cubeFourierCoeff h n := by + obtain ⟨C, hC⟩ := hgp.exists_bound hg.continuous + obtain ⟨D, hD⟩ := hhp.exists_bound hh.continuous + exact cubeFourierCoeff_sub hg.continuous.aestronglyMeasurable hC + hh.continuous.aestronglyMeasurable hD n + +theorem periodicMultiplier_add {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) {g h : (ι → ℝ) → ℂ} + (hg : ContDiff ℝ ∞ g) (hgp : IsPeriodic g) (hh : ContDiff ℝ ∞ h) (hhp : IsPeriodic h) : + periodicMultiplier m (fun x => g x + h x) = + fun x => periodicMultiplier m g x + periodicMultiplier m h x := by + funext x + simp only [periodicMultiplier] + rw [← (summable_periodicMultiplier_terms hm hg hgp x).tsum_add + (summable_periodicMultiplier_terms hm hh hhp x)] + congr 1 + funext n + rw [cubeFourierCoeff_add_of_contDiff hg hgp hh hhp] + ring + +theorem periodicMultiplier_sub {m : (ι → ℤ) → ℂ} (hm : IsPolyBounded m) {g h : (ι → ℝ) → ℂ} + (hg : ContDiff ℝ ∞ g) (hgp : IsPeriodic g) (hh : ContDiff ℝ ∞ h) (hhp : IsPeriodic h) : + periodicMultiplier m (fun x => g x - h x) = + fun x => periodicMultiplier m g x - periodicMultiplier m h x := by + funext x + simp only [periodicMultiplier] + rw [← (summable_periodicMultiplier_terms hm hg hgp x).tsum_sub + (summable_periodicMultiplier_terms hm hh hhp x)] + congr 1 + funext n + rw [cubeFourierCoeff_sub_of_contDiff hg hgp hh hhp] + ring + +theorem periodicMultiplier_const_mul (m : (ι → ℤ) → ℂ) (c : ℂ) (g : (ι → ℝ) → ℂ) : + periodicMultiplier m (fun x => c * g x) = fun x => c * periodicMultiplier m g x := by + funext x + simp only [periodicMultiplier, cubeFourierCoeff_const_mul] + rw [← tsum_mul_left] + congr 1 + funext n + ring + +/-- `T_m` on trigonometric polynomials. -/ +theorem periodicMultiplier_sum_mFourier (m : (ι → ℤ) → ℂ) (S : Finset (ι → ℤ)) + (c : (ι → ℤ) → ℂ) : + periodicMultiplier m (fun x => ∑ n ∈ S, c n * mFourier n (ofPi x)) = + fun x => ∑ n ∈ S, m n * c n * mFourier n (ofPi x) := by + funext x + simp only [periodicMultiplier, cubeFourierCoeff_trig] + rw [tsum_eq_sum (s := S) fun n hn => by simp [hn]] + exact Finset.sum_congr rfl fun n hn => by simp [hn] + +/-! ### The Wirtinger derivatives on `ℝ² ≅ ℂ` and the inverse of `∂_zbar` + +With `ℝ² ≅ ℂ` by `(x, y) ↦ x + iy`, and the lattice point `ν = n₀ + i n₁` of `n ∈ ℤ²` +(`HarmonicAnalysis.latticePoint`). -/ + +section Two + +/-- The Wirtinger derivative `∂g = ½ (∂_x g − i ∂_y g)` of `g : ℝ² → ℂ`. -/ +def dzPi (g : (Fin 2 → ℝ) → ℂ) (x : Fin 2 → ℝ) : ℂ := + 2⁻¹ * (fderiv ℝ g x (Pi.single 0 1) - I * fderiv ℝ g x (Pi.single 1 1)) + +/-- The Wirtinger derivative `∂_zbar g = ½ (∂_x g + i ∂_y g)` of `g : ℝ² → ℂ`. -/ +def dzbarPi (g : (Fin 2 → ℝ) → ℂ) (x : Fin 2 → ℝ) : ℂ := + 2⁻¹ * (fderiv ℝ g x (Pi.single 0 1) + I * fderiv ℝ g x (Pi.single 1 1)) + +theorem contDiff_dzPi {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) : ContDiff ℝ ∞ (dzPi g) := + contDiff_const.mul ((contDiff_fderiv_apply hg _).sub + (contDiff_const.mul (contDiff_fderiv_apply hg _))) + +theorem contDiff_dzbarPi {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ ∞ g) : + ContDiff ℝ ∞ (dzbarPi g) := + contDiff_const.mul ((contDiff_fderiv_apply hg _).add + (contDiff_const.mul (contDiff_fderiv_apply hg _))) + +theorem isPeriodic_dzPi {g : (Fin 2 → ℝ) → ℂ} (hper : IsPeriodic g) : IsPeriodic (dzPi g) := by + intro x k + have h0 := hper.fderiv_apply (Pi.single 0 1) x k + have h1 := hper.fderiv_apply (Pi.single 1 1) x k + simp only at h0 h1 + simp only [dzPi, h0, h1] + +theorem isPeriodic_dzbarPi {g : (Fin 2 → ℝ) → ℂ} (hper : IsPeriodic g) : + IsPeriodic (dzbarPi g) := by + intro x k + have h0 := hper.fderiv_apply (Pi.single 0 1) x k + have h1 := hper.fderiv_apply (Pi.single 1 1) x k + simp only at h0 h1 + simp only [dzbarPi, h0, h1] + +/-- The coefficients of `∂_x g` and `∂_y g` for `C¹` periodic `g` on `ℝ²`. -/ +private lemma cubeFourierCoeff_partial {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ 1 g) + (hper : IsPeriodic g) (n : Fin 2 → ℤ) : + cubeFourierCoeff (fun x => fderiv ℝ g x (Pi.single 0 1)) n = + 2 * π * I * (n 0 : ℂ) * cubeFourierCoeff g n ∧ + cubeFourierCoeff (fun x => fderiv ℝ g x (Pi.single 1 1)) n = + 2 * π * I * (n 1 : ℂ) * cubeFourierCoeff g n := by + rw [cubeFourierCoeff_fderiv_of_contDiff hg hper, cubeFourierCoeff_fderiv_of_contDiff hg hper] + simp [Fin.sum_univ_two] + +/-- The bounds that the linearity of the coefficients needs, for `∂_x g` and `I ∂_y g`. -/ +private lemma exists_bound_partial {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ 1 g) + (hper : IsPeriodic g) (v : Fin 2 → ℝ) (c : ℂ) : + Continuous (fun x => c * fderiv ℝ g x v) ∧ ∃ C, ∀ x, ‖c * fderiv ℝ g x v‖ ≤ C := by + have hc : Continuous fun x => c * fderiv ℝ g x v := + continuous_const.mul ((hg.continuous_fderiv one_ne_zero).clm_apply continuous_const) + refine ⟨hc, ?_⟩ + have hp : IsPeriodic fun x => c * fderiv ℝ g x v := by + intro x k + have := hper.fderiv_apply v x k + simp only at this + simp only [this] + exact hp.exists_bound hc + +/-- The symbol of `∂_zbar`: `(∂_zbar g)^ (n) = πi (n₀ + i n₁) ĝ (n)`. -/ +theorem cubeFourierCoeff_dzbarPi {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ 1 g) + (hper : IsPeriodic g) (n : Fin 2 → ℤ) : + cubeFourierCoeff (dzbarPi g) n = + π * I * HarmonicAnalysis.latticePoint n * cubeFourierCoeff g n := by + obtain ⟨h0c, C0, hC0⟩ := exists_bound_partial hg hper (Pi.single 0 1) 1 + obtain ⟨h1c, C1, hC1⟩ := exists_bound_partial hg hper (Pi.single 1 1) I + simp only [one_mul] at h0c hC0 + obtain ⟨e0, e1⟩ := cubeFourierCoeff_partial hg hper n + have e : dzbarPi g = + fun x => 2⁻¹ * (fderiv ℝ g x (Pi.single 0 1) + I * fderiv ℝ g x (Pi.single 1 1)) := rfl + rw [e, cubeFourierCoeff_const_mul, cubeFourierCoeff_add h0c.aestronglyMeasurable hC0 + h1c.aestronglyMeasurable hC1, cubeFourierCoeff_const_mul, e0, e1] + simp only [HarmonicAnalysis.latticePoint] + ring + +/-- The symbol of `∂`: `(∂g)^ (n) = πi (n₀ − i n₁) ĝ (n)`. -/ +theorem cubeFourierCoeff_dzPi {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ 1 g) + (hper : IsPeriodic g) (n : Fin 2 → ℤ) : + cubeFourierCoeff (dzPi g) n = + π * I * conj (HarmonicAnalysis.latticePoint n) * cubeFourierCoeff g n := by + obtain ⟨h0c, C0, hC0⟩ := exists_bound_partial hg hper (Pi.single 0 1) 1 + obtain ⟨h1c, C1, hC1⟩ := exists_bound_partial hg hper (Pi.single 1 1) I + simp only [one_mul] at h0c hC0 + obtain ⟨e0, e1⟩ := cubeFourierCoeff_partial hg hper n + have e : dzPi g = + fun x => 2⁻¹ * (fderiv ℝ g x (Pi.single 0 1) - I * fderiv ℝ g x (Pi.single 1 1)) := rfl + rw [e, cubeFourierCoeff_const_mul, cubeFourierCoeff_sub h0c.aestronglyMeasurable hC0 + h1c.aestronglyMeasurable hC1, cubeFourierCoeff_const_mul, e0, e1] + simp only [HarmonicAnalysis.latticePoint, map_add, map_mul, map_intCast, conj_I] + ring + +/-- `∂_zbar g` has mean zero. -/ +theorem cubeFourierCoeff_dzbarPi_zero {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ 1 g) + (hper : IsPeriodic g) : cubeFourierCoeff (dzbarPi g) 0 = 0 := by + rw [cubeFourierCoeff_dzbarPi hg hper] + simp [HarmonicAnalysis.latticePoint] + +/-- `∂g` has mean zero. -/ +theorem cubeFourierCoeff_dzPi_zero {g : (Fin 2 → ℝ) → ℂ} (hg : ContDiff ℝ 1 g) + (hper : IsPeriodic g) : cubeFourierCoeff (dzPi g) 0 = 0 := by + rw [cubeFourierCoeff_dzPi hg hper] + simp [HarmonicAnalysis.latticePoint] + +/-- The symbol of `∂_zbar⁻¹` on mean-zero functions: `(πi (n₀ + i n₁))⁻¹` for `n ≠ 0`, and `0` at +`n = 0`. -/ +def dzbarInvSymbol (n : Fin 2 → ℤ) : ℂ := + if n = 0 then 0 else (π * I * HarmonicAnalysis.latticePoint n)⁻¹ + +/-- A nonzero `n ∈ ℤ^ι` has sup norm at least `1`. -/ +private lemma one_le_norm_of_ne_zero {n : ι → ℤ} (hn : n ≠ 0) : 1 ≤ ‖n‖ := by + obtain ⟨i, hi⟩ := Function.ne_iff.mp hn + refine le_trans ?_ (norm_le_pi_norm n i) + rw [Int.norm_eq_abs, ← Int.cast_abs] + exact_mod_cast Int.one_le_abs hi + +private lemma latticePoint_ne_zero {n : Fin 2 → ℤ} (hn : n ≠ 0) : + HarmonicAnalysis.latticePoint n ≠ 0 := by + have h1 := one_le_norm_of_ne_zero hn + have h2 := HarmonicAnalysis.norm_le_norm_latticePoint n + intro h + rw [h, norm_zero] at h2 + linarith + +theorem isPolyBounded_dzbarInvSymbol : IsPolyBounded dzbarInvSymbol := by + refine isPolyBounded_of_norm_le (C := 1) fun n => ?_ + unfold dzbarInvSymbol + split_ifs with hn + · simp + · have h1 := one_le_norm_of_ne_zero hn + have h2 := HarmonicAnalysis.norm_le_norm_latticePoint n + rw [norm_inv, norm_mul, norm_mul, Complex.norm_real, Complex.norm_I, mul_one, + Real.norm_eq_abs, abs_of_pos Real.pi_pos] + apply inv_le_one_of_one_le₀ + nlinarith [Real.two_le_pi] + +/-- `∂_zbar (T h) = h` for the multiplier `T` with symbol `dzbarInvSymbol` and every smooth periodic +`h` of mean zero, by comparing coefficients. -/ +theorem dzbarPi_periodicMultiplier_dzbarInvSymbol {h : (Fin 2 → ℝ) → ℂ} (hh : ContDiff ℝ ∞ h) + (hper : IsPeriodic h) (h0 : cubeFourierCoeff h 0 = 0) : + dzbarPi (periodicMultiplier dzbarInvSymbol h) = h := by + have hu := contDiff_periodicMultiplier isPolyBounded_dzbarInvSymbol hh hper + have hup := isPeriodic_periodicMultiplier dzbarInvSymbol h + refine eq_of_cubeFourierCoeff_eq (contDiff_dzbarPi hu) (isPeriodic_dzbarPi hup) hh hper + fun n => ?_ + rw [cubeFourierCoeff_dzbarPi (contDiff_one_of_infty hu) hup, + cubeFourierCoeff_periodicMultiplier isPolyBounded_dzbarInvSymbol hh hper] + unfold dzbarInvSymbol + split_ifs with hn + · subst hn; simp [h0] + · have hne : (π : ℂ) * I * HarmonicAnalysis.latticePoint n ≠ 0 := + mul_ne_zero (mul_ne_zero (ofReal_ne_zero.2 Real.pi_ne_zero) I_ne_zero) + (latticePoint_ne_zero hn) + exact mul_inv_cancel_left₀ hne _ + +/-- Every smooth periodic `h` of mean zero is `∂_zbar u` for a smooth periodic `u` of mean zero. -/ +theorem exists_dzbarPi_eq {h : (Fin 2 → ℝ) → ℂ} (hh : ContDiff ℝ ∞ h) (hper : IsPeriodic h) + (h0 : cubeFourierCoeff h 0 = 0) : + ∃ u, ContDiff ℝ ∞ u ∧ IsPeriodic u ∧ cubeFourierCoeff u 0 = 0 ∧ dzbarPi u = h := by + refine ⟨periodicMultiplier dzbarInvSymbol h, + contDiff_periodicMultiplier isPolyBounded_dzbarInvSymbol hh hper, + isPeriodic_periodicMultiplier _ _, ?_, dzbarPi_periodicMultiplier_dzbarInvSymbol hh hper h0⟩ + rw [cubeFourierCoeff_periodicMultiplier isPolyBounded_dzbarInvSymbol hh hper] + simp [dzbarInvSymbol] + +end Two + +end UnitAddTorus diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/TrigPoly.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/TrigPoly.lean new file mode 100644 index 0000000000..a02029d0b4 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Torus/TrigPoly.lean @@ -0,0 +1,163 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Cube + +/-! +# Trigonometric polynomials and Fourier multipliers on the torus + +On the torus `𝕋^ι = (ℝ / ℤ)^ι`, with Mathlib's measure (of total mass one) and the monomials +`e_n = UnitAddTorus.mFourier n`, `n ∈ ℤ^ι`: + +* `HarmonicAnalysis.trigPoly c = Σ_n c_n e_n`, for finitely supported coefficients `c`; +* `HarmonicAnalysis.torusMultiplier m c = Σ_n m (n) c_n e_n`, the Fourier multiplier with symbol + `m : ℤ^ι → ℂ` applied to `trigPoly c`; +* `HarmonicAnalysis.torusMultiplierNorm m p`, the norm of this multiplier on the mean-zero + subspace `L^p_0 (𝕋^ι)`, computed on the dense subspace of mean-zero trigonometric polynomials + (`c₀ = 0`): `⨆ ‖T_m (trigPoly c)‖_p / ‖trigPoly c‖_p` in `ℝ≥0∞`. + +## Main results + +* `HarmonicAnalysis.eLpNorm_torusMultiplier_le`: `‖T_m P‖_p ≤ ‖T_m‖_{L^p_0} ‖P‖_p` for every + mean-zero trigonometric polynomial `P`; `HarmonicAnalysis.enorm_le_torusMultiplierNorm`: + `|m (n)| ≤ ‖T_m‖_{L^p_0}` for `n ≠ 0`. +* `HarmonicAnalysis.integral_mFourier_mul_mFourier` (orthogonality): `∫ e_k e_ℓ` is `1` if `ℓ = −k` + and `0` otherwise; `HarmonicAnalysis.integral_torusMultiplier_mul_trigPoly`: hence + `∫ T_m (Σ_k c_k e_k) (Σ_ℓ d_ℓ e_ℓ) = Σ_k m (k) c_k d_{−k}`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory +open scoped ENNReal + +namespace HarmonicAnalysis + +open UnitAddTorus + +variable {ι : Type*} [Fintype ι] + +theorem continuous_trigPoly (c : (ι → ℤ) →₀ ℂ) : Continuous (trigPoly c) := + continuous_finsetSum _ fun n _ => continuous_const.mul (mFourier n).continuous + +theorem continuous_torusMultiplier (m : (ι → ℤ) → ℂ) (c : (ι → ℤ) →₀ ℂ) : + Continuous (torusMultiplier m c) := + continuous_finsetSum _ fun n _ => continuous_const.mul (mFourier n).continuous + +/-! ### Orthogonality -/ + +/-- Orthogonality: `∫ e_k e_ℓ = 1` if `ℓ = −k`, and `0` otherwise. -/ +theorem integral_mFourier_mul_mFourier (k l : ι → ℤ) : + ∫ x : UnitAddTorus ι, mFourier k x * mFourier l x = if l = -k then 1 else 0 := by + have h := orthonormal_iff_ite.mp (orthonormal_mFourier (d := ι)) (-k) l + rw [ContinuousMap.inner_toLp] at h + simp only [← mFourier_neg, neg_neg] at h + rw [volume_eq_pi_haarAddCircle] + simp_rw [mul_comm (mFourier k _), eq_comm (a := l)] + exact h + +/-- The pairing of two trigonometric polynomials, by orthogonality: +`∫ T_m (Σ_k c_k e_k) (Σ_ℓ d_ℓ e_ℓ) = Σ_k m (k) c_k d_{−k}`. -/ +theorem integral_torusMultiplier_mul_trigPoly (m : (ι → ℤ) → ℂ) (c d : (ι → ℤ) →₀ ℂ) : + ∫ x, torusMultiplier m c x * trigPoly d x = c.sum fun n a => m n * a * d (-n) := by + classical + have hint : ∀ k l : ι → ℤ, Integrable (fun x : UnitAddTorus ι => + m k * c k * d l * (mFourier k x * mFourier l x)) := fun k l => + (Continuous.integrable_of_hasCompactSupport (by fun_prop) + (HasCompactSupport.of_compactSpace _)).const_mul _ + have hprod : ∀ x, torusMultiplier m c x * trigPoly d x = + ∑ k ∈ c.support, ∑ l ∈ d.support, m k * c k * d l * (mFourier k x * mFourier l x) := by + intro x + simp only [torusMultiplier, trigPoly, Finsupp.sum, Finset.sum_mul_sum] + exact Finset.sum_congr rfl fun k _ => Finset.sum_congr rfl fun l _ => by ring + simp_rw [hprod] + rw [integral_finsetSum _ fun k _ => integrable_finsetSum _ fun l _ => hint k l, Finsupp.sum] + refine Finset.sum_congr rfl fun k _ => ?_ + rw [integral_finsetSum _ fun l _ => hint k l] + simp_rw [integral_const_mul, integral_mFourier_mul_mFourier, mul_ite, mul_one, mul_zero] + rw [Finset.sum_ite_eq'] + split_ifs with h + · rfl + · rw [Finsupp.notMem_support_iff.1 h, mul_zero] + +/-- A trigonometric polynomial determines its coefficients: if `Σ_n c_n e_n` vanishes almost +everywhere, then `c = 0`, by `c_k = ∫ (Σ_n c_n e_n) e_{−k}`. -/ +private lemma eq_zero_of_trigPoly_ae_eq_zero {c : (ι → ℤ) →₀ ℂ} (h : trigPoly c =ᵐ[volume] 0) : + c = 0 := by + classical + ext k + have h1 := integral_torusMultiplier_mul_trigPoly (fun _ => 1) c (Finsupp.single (-k) 1) + have h2 : torusMultiplier (fun _ => 1) c = trigPoly c := by + funext x + simp [torusMultiplier, trigPoly] + have h3 : ∫ x, trigPoly c x * trigPoly (Finsupp.single (-k) 1) x = 0 := by + refine integral_eq_zero_of_ae ?_ + filter_upwards [h] with x hx + simp [hx] + rw [h2, h3, Finsupp.sum, Finset.sum_eq_single k] at h1 + · simpa using h1.symm + · intro n _ hn + simp [hn] + · intro hk + simp [Finsupp.notMem_support_iff.1 hk] + +/-! ### The multiplier norm -/ + +/-- The bound defining `torusMultiplierNorm`, for one mean-zero trigonometric polynomial. -/ +theorem eLpNorm_torusMultiplier_le (m : (ι → ℤ) → ℂ) {p : ℝ} (hp : 0 < p) + (c : (ι → ℤ) →₀ ℂ) (hc0 : c 0 = 0) : + eLpNorm (torusMultiplier m c) (ENNReal.ofReal p) volume ≤ + torusMultiplierNorm m p * eLpNorm (trigPoly c) (ENNReal.ofReal p) volume := by + by_cases hy : eLpNorm (trigPoly c) (ENNReal.ofReal p) volume = 0 + · obtain rfl := eq_zero_of_trigPoly_ae_eq_zero + ((eLpNorm_eq_zero_iff (ENNReal.ofReal_pos.2 hp).ne').1 hy) + have : torusMultiplier m (0 : (ι → ℤ) →₀ ℂ) = 0 := funext fun x => by simp [torusMultiplier] + simp [this] + have hy' : eLpNorm (trigPoly c) (ENNReal.ofReal p) volume ≠ ⊤ := + ((continuous_trigPoly c).memLp_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _)).eLpNorm_lt_top.ne + calc eLpNorm (torusMultiplier m c) (ENNReal.ofReal p) volume + = eLpNorm (torusMultiplier m c) (ENNReal.ofReal p) volume / + eLpNorm (trigPoly c) (ENNReal.ofReal p) volume * + eLpNorm (trigPoly c) (ENNReal.ofReal p) volume := (ENNReal.div_mul_cancel hy hy').symm + _ ≤ _ := by + gcongr + exact le_iSup₂ (f := fun (c : (ι → ℤ) →₀ ℂ) (_ : c 0 = 0) => + eLpNorm (torusMultiplier m c) (ENNReal.ofReal p) volume / + eLpNorm (trigPoly c) (ENNReal.ofReal p) volume) c hc0 + +/-- `‖e_n‖_p = 1` on the torus, of total mass one. -/ +private lemma eLpNorm_mFourier (n : ι → ℤ) {p : ℝ} (hp : 0 < p) : + eLpNorm (mFourier n) (ENNReal.ofReal p) (volume : Measure (UnitAddTorus ι)) = 1 := by + have hμ : (volume : Measure (UnitAddTorus ι)) ≠ 0 := by + rw [volume_eq_pi_haarAddCircle] + exact IsProbabilityMeasure.ne_zero _ + rw [eLpNorm_congr_norm_ae (g := fun _ => (1 : ℂ)) (mFourier n).continuous.aestronglyMeasurable + aestronglyMeasurable_const (ae_of_all _ fun x => by simp [norm_mFourier_apply_eq_one]), + eLpNorm_const _ (by simpa using hp) hμ, volume_eq_pi_haarAddCircle, measure_univ] + simp + +/-- The values of the symbol off `0` are at most the multiplier norm: `|m (n)| ≤ ‖T_m‖_{L^p_0}` for +`n ≠ 0`, by `T_m e_n = m (n) e_n`. -/ +theorem enorm_le_torusMultiplierNorm (m : (ι → ℤ) → ℂ) {p : ℝ} (hp : 0 < p) {n : ι → ℤ} + (hn : n ≠ 0) : ‖m n‖ₑ ≤ torusMultiplierNorm m p := by + classical + have h := eLpNorm_torusMultiplier_le m hp (Finsupp.single n 1) (by simp [hn]) + have h1 : trigPoly (Finsupp.single n 1) = mFourier n := by + funext x + simp [trigPoly] + have h2 : torusMultiplier m (Finsupp.single n 1) = m n • ⇑(mFourier n) := by + funext x + simp [torusMultiplier] + rwa [h1, h2, eLpNorm_const_smul, eLpNorm_mFourier n hp, mul_one, mul_one] at h + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/ContinuousSymbol.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/ContinuousSymbol.lean new file mode 100644 index 0000000000..89b18e71f4 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/ContinuousSymbol.lean @@ -0,0 +1,451 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.TrigPoly +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Cube +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Density +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Duality +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Norming +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Poisson +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Transference.RiemannSum + +/-! +# Transference from the torus to the plane for symbols continuous off the origin + +`HarmonicAnalysis.multiplierNorm_le_liminf_torusMultiplierNorm` is Proposition 5.7.4 of +Hytönen–van Neerven–Veraar–Weis (HNVW) for `ℝ² ≅ ℂ` and scalar symbols: if `m` is continuous at +every `ξ ≠ 0`, then for `1 < p < ∞` and every sequence `R_j → ∞` (in HNVW, `ε_j = 1 / R_j ↓ 0`), +`‖T_m‖_{L^p (ℝ²)} ≤ liminf_j ‖T_{(m (n / R_j))_n}‖_{L^p_0 (𝕋²)}`. + +The other direction, from the line to the circle and for vector-valued functions, is Proposition +5.7.1, in `HarmonicAnalysis.VectorValued.Transference`. + +If the `liminf` is finite, `m` is bounded +(`HarmonicAnalysis.exists_norm_le_of_liminf_torusMultiplierNorm_ne_top`), and `T_m` extends to a +bounded operator on `L^p (ℝ²)` (`HarmonicAnalysis.existsUnique_extension_of_multiplierNorm_ne_top`): +`m` is a Fourier multiplier on `L^p (ℝ²)`. + +## Proof + +That of HNVW, pp. 461–462. + +1. Test functions: Schwartz functions `f`, `g` with Fourier transforms in `C_c^∞ (ℂ ∖ {0})` + (`HarmonicAnalysis.HasCompactFourierSupportOffZero`). +2. Pairing: `∫ T_m f · g = ∫ m 𝓕 f 𝓕⁻¹ g`. +3. The integrand is continuous with compact support, so the integral is the limit of its lattice + Riemann sums `Σ_n R⁻² (m 𝓕 f 𝓕⁻¹ g) (n / R)` (`HarmonicAnalysis.tendsto_riemannSum_real`; the + Riemann integrability HNVW refers to is there dominated convergence for step functions). +4. Orthogonality on `𝕋²` (`HarmonicAnalysis.integral_torusMultiplier_mul_trigPoly`): the Riemann + sum is `R²` times the pairing of `T_{m (· / R)} P` and `Q`, where `P = Σ_n R⁻² 𝓕 f (n / R) e_n` + and `Q = Σ_n R⁻² 𝓕 g (n / R) e_n` are trigonometric polynomials, and `P` has mean zero because + `𝓕 f (0) = 0`. +5. Hölder's inequality on `𝕋²` and the definition of the multiplier norm bound it by + `‖T_{m (· / R)}‖ · R^{2/p} ‖P‖_p · R^{2/q} ‖Q‖_q`, `q = p / (p − 1)`. +6. Lemma 5.7.5, for `f` and `p` and for `g` and `q` + (`HarmonicAnalysis.tendsto_eLpNorm_tsum_fourier_mul_mFourier`): `R^{2/p} ‖P‖_p → ‖f‖_p` and + `R^{2/q} ‖Q‖_q → ‖g‖_q`. Hence `|∫ T_m f · g| ≤ liminf ‖T_{m (· / R)}‖ ‖f‖_p ‖g‖_q`. +7. Density (Proposition 2.4.23 (ii), + `HarmonicAnalysis.exists_tendsto_hasCompactFourierSupportOffZero`) extends this to all Schwartz + functions `f` and `g`, and duality (`HarmonicAnalysis.eLpNorm_le_of_forall_schwartz`) concludes. + HNVW leaves this step to the reader. As in its §5.3 (p. 401), the density of the `f` is used in + `L^p` and for `𝓕 f_j → 𝓕 f` in `L^1`, so that `T_m f_j → T_m f`; the limit is taken here in the + pairing, before duality, and there in `L^p`, after it. + +## Corrections to the source + +* The statement of Proposition 5.7.4 is printed without its first hypotheses (`X`, `Y` Banach + spaces, `1 < p < ∞`), says "multiplier for `L^p (ℝ^d; X)`" for "from `L^p (ℝ^d; X)` to + `L^p (ℝ^d; Y)`", and has a superfluous `ℒ (` in its display. +* It does not say that `m` is bounded, which the definition of `T_m` (HNVW, Definition 5.3.1) asks + for. Where the `liminf` is finite, this follows from the values `|m (n / R)|`, `n ≠ 0`, at most + the torus norms (`HarmonicAnalysis.enorm_le_torusMultiplierNorm`), and from the density of the + lattices `R⁻¹ ℤ²` as `R → ∞`. +* The factors `ε^{d/p}` and `ε^{d/p'}` of the last display are interchanged (compare Lemma 5.7.5; + their product is the same), and `X*` there should be `Y*`. +* HNVW quotes the density of the `g` in `L^{p'}` only. That alone does not norm `T_m f`, which is + not yet known to be in `L^p`: the constant function `1`, for instance, pairs to `𝓕 g (0) = 0` with + each of these `g`. Here Proposition 2.4.23 is used as stated, with `𝓕 g_j → 𝓕 g` in `L^1` as well; + it carries the bound to every Schwartz function `g`, and these norm the `L^p` norm of every + continuous function. + +## References + +* T. Hytönen, J. van Neerven, M. Veraar, L. Weis, *Analysis in Banach Spaces, Volume I*, Ergebnisse + der Mathematik 63, Springer, 2016: Proposition 5.7.4, Lemma 5.7.5 (pp. 460–462), Definition 5.3.1 + and §5.3.a (pp. 400–401), Proposition 2.4.23 (p. 118). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology +open scoped SchwartzMap FourierTransform ENNReal ComplexConjugate + +namespace HarmonicAnalysis + +open UnitAddTorus + +/-- A symbol `m` that is continuous off `0` is Borel measurable. -/ +theorem measurable_of_continuousAt_ne_zero {m : ℂ → ℂ} (hmc : ∀ ξ ≠ 0, ContinuousAt m ξ) : + Measurable m := by + classical + have h := ContinuousOn.measurable_piecewise (s := {0}) (continuousOn_singleton m 0) + (fun ξ hξ => (hmc ξ hξ).continuousWithinAt) (measurableSet_singleton 0) + rwa [Set.piecewise_same] at h + +/-! ### The pairing -/ + +/-- The pairing (step 2): `∫ T_m f · g = ∫ m 𝓕 f 𝓕⁻¹ g` for Schwartz functions `f` and `g`, when +`m 𝓕 f` is integrable. -/ +private theorem integral_fourierMultiplier_mul {m : ℂ → ℂ} {f : 𝓢(ℂ, ℂ)} + (hmf : Integrable fun ξ => m ξ * 𝓕 (f : ℂ → ℂ) ξ) (g : 𝓢(ℂ, ℂ)) : + ∫ x, fourierMultiplier m f x * g x = + ∫ ξ, m ξ * 𝓕 (f : ℂ → ℂ) ξ * 𝓕⁻ (g : ℂ → ℂ) ξ := + integral_fourierInv_mul hmf g.integrable + +/-! ### The trigonometric polynomials `Σ_n R⁻² 𝓕 f (n / R) e_n` -/ + +/-- If `𝓕 f` is compactly supported, its samples on `R⁻¹ ℤ²` are finitely supported. -/ +private theorem exists_finsupp_samples {f : 𝓢(ℂ, ℂ)} (hf : HasCompactSupport (𝓕 (f : ℂ → ℂ))) + {R : ℝ} (hR : 0 < R) : ∃ c : (Fin 2 → ℤ) →₀ ℂ, + ∀ n, c n = ((R : ℂ) ^ 2)⁻¹ * 𝓕 (f : ℂ → ℂ) (latticePoint n / R) := by + obtain ⟨ρ, hρ⟩ := hf.isCompact.isBounded.subset_closedBall 0 + have hfin : (Function.support fun n : Fin 2 → ℤ => + ((R : ℂ) ^ 2)⁻¹ * 𝓕 (f : ℂ → ℂ) (latticePoint n / R)).Finite := by + refine ((isCompact_closedBall (0 : Fin 2 → ℤ) (ρ * R)).finite_of_discrete).subset fun n hn => ?_ + have h1 : latticePoint n / R ∈ tsupport (𝓕 (f : ℂ → ℂ)) := + subset_tsupport _ (right_ne_zero_of_mul hn) + have h2 := mem_closedBall_zero_iff.1 (hρ h1) + rw [norm_div, Complex.norm_real, Real.norm_of_nonneg hR.le, div_le_iff₀ hR] at h2 + exact mem_closedBall_zero_iff.2 ((norm_le_norm_latticePoint n).trans h2) + exact ⟨Finsupp.ofSupportFinite _ hfin, fun n => rfl⟩ + +/-- A trigonometric polynomial as the series of its coefficients. -/ +private theorem trigPoly_eq_tsum {c : (Fin 2 → ℤ) →₀ ℂ} {a : (Fin 2 → ℤ) → ℂ} + (hc : ∀ n, c n = a n) : trigPoly c = fun x => ∑' n, a n * mFourier n x := by + funext x + rw [trigPoly, Finsupp.sum, tsum_eq_sum (s := c.support)] + · exact Finset.sum_congr rfl fun n _ => by rw [hc] + · intro n hn + rw [← hc, Finsupp.notMem_support_iff.1 hn, zero_mul] + +/-- The Riemann sum on the torus (steps 4 and 5): for `f` and `g` with Fourier transforms compactly +supported in `ℂ ∖ {0}` and `R > 0`, with the trigonometric polynomials `P = Σ_n R⁻² 𝓕 f (n / R) e_n` +and `Q = Σ_n R⁻² 𝓕 g (n / R) e_n`, the first of mean `R⁻² 𝓕 f (0) = 0`, +`|Σ_n R⁻² (m 𝓕 f 𝓕⁻¹ g) (n / R)| = R² |∫_{𝕋²} T_{m (· / R)} P · Q|`, by orthogonality, which is at +most `‖T_{m (· / R)}‖ · R^{2/p} ‖P‖_p · R^{2/q} ‖Q‖_q`, by Hölder's inequality. -/ +private theorem enorm_riemannSum_le {f g : 𝓢(ℂ, ℂ)} (hf : HasCompactFourierSupportOffZero f) + (hg : HasCompactFourierSupportOffZero g) (m : ℂ → ℂ) {p : ℝ} (hp : 1 < p) {R : ℝ} (hR : 0 < R) : + ‖∑' n : Fin 2 → ℤ, ((R : ℂ) ^ 2)⁻¹ * (m (latticePoint n / R) * + 𝓕 (f : ℂ → ℂ) (latticePoint n / R) * 𝓕⁻ (g : ℂ → ℂ) (latticePoint n / R))‖ₑ ≤ + torusMultiplierNorm (fun n => m (latticePoint n / R)) p * + ((ENNReal.ofReal (R ^ (2 / p)) * eLpNorm (fun x => ∑' n : Fin 2 → ℤ, ((R : ℂ) ^ 2)⁻¹ * + 𝓕 (f : ℂ → ℂ) (latticePoint n / R) * mFourier n x) (ENNReal.ofReal p) volume) * + (ENNReal.ofReal (R ^ (2 / (p / (p - 1)))) * eLpNorm (fun x => ∑' n : Fin 2 → ℤ, + ((R : ℂ) ^ 2)⁻¹ * 𝓕 (g : ℂ → ℂ) (latticePoint n / R) * mFourier n x) + (ENNReal.ofReal (p / (p - 1))) volume)) := by + have hp0 : 0 < p := by linarith + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).2 rfl + have : ENNReal.HolderConjugate (ENNReal.ofReal p) (ENNReal.ofReal (p / (p - 1))) := + hpq.ennrealOfReal + set q := p / (p - 1) + have hRc : (R : ℂ) ≠ 0 := Complex.ofReal_ne_zero.2 hR.ne' + obtain ⟨c, hc⟩ := exists_finsupp_samples hf.1 hR + obtain ⟨d, hd⟩ := exists_finsupp_samples hg.1 hR + set μ : (Fin 2 → ℤ) → ℂ := fun n => m (latticePoint n / R) + -- The mean vanishes. + have hc0 : c 0 = 0 := by + rw [hc, latticePoint_zero, zero_div, image_eq_zero_of_notMem_tsupport hf.2, mul_zero] + -- The Riemann sum is a pairing on the torus, by orthogonality. + have hpair : ∑' n : Fin 2 → ℤ, ((R : ℂ) ^ 2)⁻¹ * (m (latticePoint n / R) * + 𝓕 (f : ℂ → ℂ) (latticePoint n / R) * 𝓕⁻ (g : ℂ → ℂ) (latticePoint n / R)) = + (R : ℂ) ^ 2 * ∫ x, torusMultiplier μ c x * trigPoly d x := by + rw [integral_torusMultiplier_mul_trigPoly, Finsupp.sum, Finset.mul_sum, + tsum_eq_sum (s := c.support)] + · refine Finset.sum_congr rfl fun n _ => ?_ + rw [hc, hd, latticePoint_neg, neg_div, ← Real.fourierInv_eq_fourier_neg] + simp only [μ] + field_simp + · intro n hn + have h := hc n + rw [Finsupp.notMem_support_iff.1 hn] at h + rcases mul_eq_zero.1 h.symm with h' | h' + · exact absurd h' (inv_ne_zero (pow_ne_zero 2 hRc)) + · rw [h', mul_zero, zero_mul, mul_zero] + have hRpow : ENNReal.ofReal (R ^ (2 / p)) * ENNReal.ofReal (R ^ (2 / q)) = ‖(R : ℂ) ^ 2‖ₑ := by + rw [← ENNReal.ofReal_mul (by positivity), ← Real.rpow_add hR, ← ofReal_norm, norm_pow, + Complex.norm_real, Real.norm_of_nonneg hR.le, div_eq_mul_inv, div_eq_mul_inv, ← mul_add, + hpq.inv_add_inv_eq_one, mul_one, Real.rpow_ofNat] + rw [hpair, eNorm_mul, ← hRpow, ← trigPoly_eq_tsum hc, ← trigPoly_eq_tsum hd] + calc ENNReal.ofReal (R ^ (2 / p)) * ENNReal.ofReal (R ^ (2 / q)) * + ‖∫ x, torusMultiplier μ c x * trigPoly d x‖ₑ + ≤ ENNReal.ofReal (R ^ (2 / p)) * ENNReal.ofReal (R ^ (2 / q)) * + (torusMultiplierNorm μ p * eLpNorm (trigPoly c) (ENNReal.ofReal p) volume * + eLpNorm (trigPoly d) (ENNReal.ofReal q) volume) := by + gcongr + refine (enorm_integral_mul_le (continuous_torusMultiplier μ c).aestronglyMeasurable + (continuous_trigPoly d).aestronglyMeasurable (ENNReal.ofReal p) + (ENNReal.ofReal q)).trans ?_ + gcongr + exact eLpNorm_torusMultiplier_le μ hp0 c hc0 + _ = _ := by ring + +/-! ### The bound for Fourier transforms supported off `0` -/ + +/-- A continuous function `ψ` with `0 ∉ supp ψ` absorbs the discontinuity of `m` at `0`: `m ψ` is +continuous. -/ +private theorem continuous_mul_of_notMem_tsupport {m : ℂ → ℂ} (hmc : ∀ ξ ≠ 0, ContinuousAt m ξ) + {ψ : ℂ → ℂ} (hψ : Continuous ψ) (h0 : 0 ∉ tsupport ψ) : Continuous fun ξ => m ξ * ψ ξ := by + rw [continuous_iff_continuousAt] + intro ξ + rcases eq_or_ne ξ 0 with rfl | hξ + · rw [notMem_tsupport_iff_eventuallyEq] at h0 + refine (continuousAt_const (y := (0 : ℂ))).congr ?_ + filter_upwards [h0] with ξ hξ + simp [hξ] + · exact (hmc ξ hξ).mul hψ.continuousAt + +/-- Steps 2 to 6: `|∫ T_m f · g| ≤ liminf_j ‖T_{m (· / R_j)}‖ ‖f‖_p ‖g‖_q` for `f` and `g` with +Fourier transforms compactly supported in `ℂ ∖ {0}`. -/ +private theorem enorm_integral_fourierMultiplier_mul_le {m : ℂ → ℂ} + (hmc : ∀ ξ ≠ 0, ContinuousAt m ξ) {R : ℕ → ℝ} (hR : Tendsto R atTop atTop) {p : ℝ} + (hp : 1 < p) {f g : 𝓢(ℂ, ℂ)} (hf : HasCompactFourierSupportOffZero f) + (hg : HasCompactFourierSupportOffZero g) + (hM : liminf (fun j => torusMultiplierNorm (fun n => m (latticePoint n / R j)) p) atTop ≠ ⊤) : + ‖∫ x, fourierMultiplier m f x * g x‖ₑ ≤ + liminf (fun j => torusMultiplierNorm (fun n => m (latticePoint n / R j)) p) atTop * + (eLpNorm (f : ℂ → ℂ) (ENNReal.ofReal p) volume * + eLpNorm (g : ℂ → ℂ) (ENNReal.ofReal (p / (p - 1))) volume) := by + -- `m 𝓕 f` is continuous with compact support. + have hmfc : Continuous fun ξ => m ξ * 𝓕 (f : ℂ → ℂ) ξ := + continuous_mul_of_notMem_tsupport hmc (𝓕 f).continuous hf.2 + have hmfs : HasCompactSupport fun ξ => m ξ * 𝓕 (f : ℂ → ℂ) ξ := hf.1.mul_left (f := m) + rw [integral_fourierMultiplier_mul (hmfc.integrable_of_hasCompactSupport hmfs) g] + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).2 rfl + set q := p / (p - 1) + set φ : ℂ → ℂ := fun ξ => m ξ * 𝓕 (f : ℂ → ℂ) ξ * 𝓕⁻ (g : ℂ → ℂ) ξ + -- The integrand is continuous with compact support, hence `O ((1 + |ξ|)^{−3})`. + have hgc : Continuous (𝓕⁻ (g : ℂ → ℂ)) := by + rw [← SchwartzMap.fourierInv_coe] + exact (𝓕⁻ g).continuous + have hφc : Continuous φ := hmfc.mul hgc + have hφs : HasCompactSupport φ := hmfs.mul_right + obtain ⟨C, hC⟩ := (hφs.mul_left + (f := fun ξ => ((1 + ‖ξ‖ : ℝ) : ℂ) ^ 3)).exists_bound_of_continuous (by fun_prop) + have hφb : ∀ ξ, ‖φ ξ‖ ≤ C * (1 + ‖ξ‖) ^ (-3 : ℝ) := fun ξ => by + have h := hC ξ + rw [Pi.mul_apply, norm_mul, norm_pow, Complex.norm_real, Real.norm_of_nonneg (by positivity)] + at h + rw [Real.rpow_neg (by positivity), Real.rpow_ofNat, ← div_eq_mul_inv, + le_div_iff₀ (by positivity), mul_comm] + exact h + -- The Riemann sums, and Lemma 5.7.5 for `f` and for `g`. + have hsum := ((tendsto_riemannSum_real (fun ξ _ => hφc.continuousAt) hφb).comp hR).eNorm + have hNf := (tendsto_eLpNorm_tsum_fourier_mul_mFourier f hp.le).comp hR + have hNg := (tendsto_eLpNorm_tsum_fourier_mul_mFourier g hpq.symm.lt.le).comp hR + have hft := (f.memLp (ENNReal.ofReal p) volume).eLpNorm_lt_top.ne + have hgt := (g.memLp (ENNReal.ofReal q) volume).eLpNorm_lt_top.ne + have hN := ENNReal.Tendsto.mul hNf (Or.inr hgt) hNg (Or.inr hft) + have hab := ENNReal.mul_ne_top hft hgt + set N : ℕ → ℝ≥0∞ := fun j => (ENNReal.ofReal (R j ^ (2 / p)) * eLpNorm (fun x => + ∑' n : Fin 2 → ℤ, ((R j : ℂ) ^ 2)⁻¹ * 𝓕 (f : ℂ → ℂ) (latticePoint n / R j) * mFourier n x) + (ENNReal.ofReal p) volume) * + (ENNReal.ofReal (R j ^ (2 / q)) * eLpNorm (fun x => ∑' n : Fin 2 → ℤ, ((R j : ℂ) ^ 2)⁻¹ * + 𝓕 (g : ℂ → ℂ) (latticePoint n / R j) * mFourier n x) (ENNReal.ofReal q) volume) + set T : ℕ → ℝ≥0∞ := fun j => torusMultiplierNorm (fun n => m (latticePoint n / R j)) p + have hle : ∀ᶠ j in atTop, ‖∑' n : Fin 2 → ℤ, ((R j : ℂ) ^ 2)⁻¹ * φ (latticePoint n / R j)‖ₑ ≤ + (N * T) j := by + filter_upwards [hR.eventually_gt_atTop 0] with j hj + exact (enorm_riemannSum_le hf hg m hp hj).trans_eq (mul_comm _ _) + have hNlim : limsup N atTop = _ := hN.limsup_eq + calc ‖∫ ξ, φ ξ‖ₑ = liminf (fun j => ‖∑' n : Fin 2 → ℤ, ((R j : ℂ) ^ 2)⁻¹ * + φ (latticePoint n / R j)‖ₑ) atTop := hsum.liminf_eq.symm + _ ≤ liminf (N * T) atTop := liminf_le_liminf hle + _ ≤ limsup N atTop * liminf T atTop := + ENNReal.liminf_mul_le (Or.inr hM) (Or.inl (hNlim ▸ hab)) + _ = _ := by rw [hNlim, mul_comm] + +/-! ### Density -/ + +/-- The symbol is bounded off `0` by `liminf_j ‖T_{m (· / R_j)}‖`: its values are limits of values +at points of the lattices `R_j⁻¹ ℤ²`, off `0`. -/ +theorem enorm_le_liminf_torusMultiplierNorm {m : ℂ → ℂ} (hmc : ∀ ξ ≠ 0, ContinuousAt m ξ) + {R : ℕ → ℝ} (hR : Tendsto R atTop atTop) {p : ℝ} (hp : 0 < p) {ξ : ℂ} (hξ : ξ ≠ 0) : + ‖m ξ‖ₑ ≤ liminf (fun j => torusMultiplierNorm (fun n => m (latticePoint n / R j)) p) atTop := by + obtain ⟨n, hn⟩ := exists_tendsto_latticePoint_div ξ + have hv := hn.comp hR + have hm := ((hmc ξ hξ).tendsto.comp hv).eNorm + rw [← hm.liminf_eq] + refine liminf_le_liminf ?_ + filter_upwards [hv.eventually_ne hξ] with j hj + refine enorm_le_torusMultiplierNorm (fun k => m (latticePoint k / R j)) hp (n := n (R j)) ?_ + intro h0 + refine hj ?_ + simp [h0] + +/-- A bound `|∫ h 𝓕 φ| ≤ A ‖φ‖_p`, with `h` bounded, passes to the limit when `φ_j → f` in `L^p` +and `𝓕 φ_j → 𝓕 f` in `L^1`. -/ +private theorem enorm_integral_le_of_tendsto {h : ℂ → ℂ} (hh : Measurable h) {C : ℝ≥0∞} + (hC : C ≠ ⊤) (hhC : ∀ᵐ ξ, ‖h ξ‖ₑ ≤ C) {P : ℝ≥0∞} (hP : 1 ≤ P) {A : ℝ≥0∞} (hA : A ≠ ⊤) + {φ : ℕ → 𝓢(ℂ, ℂ)} {f : 𝓢(ℂ, ℂ)} + (hφ : Tendsto (fun j => eLpNorm (fun x => φ j x - f x) P volume) atTop (𝓝 0)) + (hφ1 : Tendsto (fun j => eLpNorm (fun ξ => 𝓕 (φ j) ξ - 𝓕 f ξ) 1 volume) atTop (𝓝 0)) + (H : ∀ j, ‖∫ ξ, h ξ * 𝓕 (φ j) ξ‖ₑ ≤ A * eLpNorm (φ j) P volume) : + ‖∫ ξ, h ξ * 𝓕 f ξ‖ₑ ≤ A * eLpNorm f P volume := by + have hint : ∀ u : 𝓢(ℂ, ℂ), Integrable fun ξ => h ξ * u ξ := fun u => by + refine u.integrable.bdd_mul (c := C.toReal) hh.aestronglyMeasurable ?_ + filter_upwards [hhC] with ξ hξ + rwa [← toReal_eNorm, ENNReal.toReal_le_toReal eNorm_ne_top hC] + have hlim : Tendsto (fun j => ∫ ξ, h ξ * 𝓕 (φ j) ξ) atTop (𝓝 (∫ ξ, h ξ * 𝓕 f ξ)) := by + refine tendsto_integral_of_L1 _ (hint _).aestronglyMeasurable + (Eventually.of_forall fun j => hint _) ?_ + have hle : ∀ j, ∫⁻ ξ, ‖h ξ * 𝓕 (φ j) ξ - h ξ * 𝓕 f ξ‖ₑ ≤ + C * eLpNorm (fun ξ => 𝓕 (φ j) ξ - 𝓕 f ξ) 1 volume := fun j => by + rw [eLpNorm_one_eq_lintegral_eNorm (by fun_prop : Continuous fun ξ => + 𝓕 (φ j) ξ - 𝓕 f ξ).aestronglyMeasurable, ← lintegral_const_mul' _ _ hC] + refine lintegral_mono_ae ?_ + filter_upwards [hhC] with ξ hξ + rw [← mul_sub, eNorm_mul] + gcongr + refine tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds ?_ (fun _ => zero_le) hle + simpa using ENNReal.Tendsto.const_mul hφ1 (a := C) (Or.inr hC) + have hupp : Tendsto (fun j => A * (eLpNorm (fun x => φ j x - f x) P volume + + eLpNorm f P volume)) atTop (𝓝 (A * eLpNorm f P volume)) := by + simpa using ENNReal.Tendsto.const_mul (hφ.add_const (eLpNorm f P volume)) (a := A) (Or.inr hA) + refine le_of_tendsto_of_tendsto' hlim.eNorm hupp fun j => (H j).trans ?_ + gcongr + refine le_trans (le_of_eq ?_) (eLpNorm_add_le hP (f := fun x => φ j x - f x) (g := f)) + congr 1 + ext x + simp + +/-- Density (step 7), by HNVW, Proposition 2.4.23 (ii): if `m` is bounded off `0`, a bound +`|∫ T_m f · g| ≤ M ‖f‖_p ‖g‖_q` for the `f` and `g` with Fourier transforms compactly supported in +`ℂ ∖ {0}` holds for all Schwartz functions `f` and `g`. -/ +private theorem enorm_integral_fourierMultiplier_mul_le_of_forall {m : ℂ → ℂ} (hm : Measurable m) + {M : ℝ≥0∞} (hM : M ≠ ⊤) (hmM : ∀ ξ ≠ 0, ‖m ξ‖ₑ ≤ M) {p q : ℝ} (hp : 1 < p) (hq : 1 < q) + (H : ∀ f g : 𝓢(ℂ, ℂ), HasCompactFourierSupportOffZero f → HasCompactFourierSupportOffZero g → + ‖∫ x, fourierMultiplier m f x * g x‖ₑ ≤ M * (eLpNorm (f : ℂ → ℂ) (ENNReal.ofReal p) volume * + eLpNorm (g : ℂ → ℂ) (ENNReal.ofReal q) volume)) (f g : 𝓢(ℂ, ℂ)) : + ‖∫ x, fourierMultiplier m f x * g x‖ₑ ≤ M * (eLpNorm (f : ℂ → ℂ) (ENNReal.ofReal p) volume * + eLpNorm (g : ℂ → ℂ) (ENNReal.ofReal q) volume) := by + have hmf : ∀ f : 𝓢(ℂ, ℂ), Integrable fun ξ => m ξ * 𝓕 (f : ℂ → ℂ) ξ := fun f => by + refine (𝓕 f).integrable.bdd_mul (c := M.toReal) hm.aestronglyMeasurable ?_ + filter_upwards [Measure.ae_ne volume 0] with ξ hξ + rw [← toReal_eNorm, ENNReal.toReal_le_toReal eNorm_ne_top hM] + exact hmM ξ hξ + simp only [integral_fourierMultiplier_mul (hmf _)] at H ⊢ + have hbdd : ∀ u : 𝓢(ℂ, ℂ), ∃ K : ℝ≥0∞, K ≠ ⊤ ∧ ∀ ξ, ‖u ξ‖ₑ ≤ K := fun u => + ⟨ENNReal.ofReal (SchwartzMap.seminorm ℝ 0 0 u), ENNReal.ofReal_ne_top, fun ξ => by + rw [← ofReal_norm] + exact ENNReal.ofReal_le_ofReal (u.norm_le_seminorm ℝ ξ)⟩ + -- The density of the `f`, for `g` with Fourier transform compactly supported in `ℂ ∖ {0}`. + have h1 : ∀ f g : 𝓢(ℂ, ℂ), HasCompactFourierSupportOffZero g → + ‖∫ ξ, m ξ * 𝓕 (f : ℂ → ℂ) ξ * 𝓕⁻ (g : ℂ → ℂ) ξ‖ₑ ≤ + M * (eLpNorm (f : ℂ → ℂ) (ENNReal.ofReal p) volume * + eLpNorm (g : ℂ → ℂ) (ENNReal.ofReal q) volume) := by + intro f g hg + obtain ⟨φ, hφ, hφp, hφ1⟩ := exists_tendsto_hasCompactFourierSupportOffZero f + obtain ⟨K, hK, hgK⟩ := hbdd (𝓕⁻ g) + have hcomm : ∀ u : 𝓢(ℂ, ℂ), ∫ ξ, m ξ * 𝓕 (u : ℂ → ℂ) ξ * 𝓕⁻ (g : ℂ → ℂ) ξ = + ∫ ξ, m ξ * 𝓕⁻ g ξ * 𝓕 u ξ := fun u => by + rw [SchwartzMap.fourier_coe, SchwartzMap.fourierInv_coe] + congr 1 + ext ξ + ring + rw [hcomm, mul_comm (eLpNorm _ _ _), ← mul_assoc] + refine enorm_integral_le_of_tendsto (h := fun ξ => m ξ * 𝓕⁻ g ξ) (C := M * K) + (hm.mul (𝓕⁻ g).continuous.measurable) (ENNReal.mul_ne_top hM hK) ?_ (by simpa using hp.le) + (ENNReal.mul_ne_top hM (g.memLp (ENNReal.ofReal q) volume).eLpNorm_lt_top.ne) (hφp p hp) hφ1 + fun j => ?_ + · filter_upwards [Measure.ae_ne volume 0] with ξ hξ + rw [eNorm_mul] + exact mul_le_mul' (hmM ξ hξ) (hgK ξ) + · rw [← hcomm, mul_assoc, mul_comm (eLpNorm _ _ _)] + exact H _ g (hφ j) hg + -- The density of the `g`. + obtain ⟨φ, hφ, hφp, hφ1⟩ := exists_tendsto_hasCompactFourierSupportOffZero g + obtain ⟨K, hK, hfK⟩ := hbdd (𝓕 f) + have hcomm : ∀ u : 𝓢(ℂ, ℂ), ∫ ξ, m ξ * 𝓕 (f : ℂ → ℂ) ξ * 𝓕⁻ (u : ℂ → ℂ) ξ = + ∫ ξ, m (-ξ) * 𝓕 f (-ξ) * 𝓕 u ξ := fun u => by + rw [← integral_neg_eq_self] + simp_rw [Real.fourierInv_eq_fourier_neg, neg_neg, SchwartzMap.fourier_coe] + rw [hcomm, ← mul_assoc] + refine enorm_integral_le_of_tendsto (h := fun ξ => m (-ξ) * 𝓕 f (-ξ)) (C := M * K) + ((hm.comp measurable_neg).mul ((𝓕 f).continuous.comp continuous_neg).measurable) + (ENNReal.mul_ne_top hM hK) ?_ (by simpa using hq.le) + (ENNReal.mul_ne_top hM (f.memLp (ENNReal.ofReal p) volume).eLpNorm_lt_top.ne) + (hφp q hq) hφ1 fun j => ?_ + · filter_upwards [Measure.ae_ne volume 0] with ξ hξ + rw [eNorm_mul] + exact mul_le_mul' (hmM _ (neg_ne_zero.2 hξ)) (hfK _) + · rw [← hcomm, mul_assoc] + exact h1 f (φ j) (hφ j) + +/-! ### Proposition 5.7.4 -/ + +/-- **HNVW, Proposition 5.7.4** (transference from `𝕋²` to `ℝ²`, for scalar symbols): let `m` be +continuous at every `ξ ≠ 0`, `1 < p < ∞` and `R_j → ∞` (in HNVW, `ε_j = 1 / R_j ↓ 0`). Then +`‖T_m‖_{L^p (ℝ²)} ≤ liminf_j ‖T_{(m (n / R_j))_{n ≠ 0}}‖_{L^p_0 (𝕋²)}`. + +The proof is HNVW's; the module docstring gives its steps and the corrections to the printed +text. -/ +theorem multiplierNorm_le_liminf_torusMultiplierNorm {m : ℂ → ℂ} + (hmc : ∀ ξ ≠ 0, ContinuousAt m ξ) {R : ℕ → ℝ} (hR : Tendsto R atTop atTop) {p : ℝ} + (hp : 1 < p) : + multiplierNorm m p ≤ + liminf (fun j => torusMultiplierNorm (fun n => m (latticePoint n / R j)) p) atTop := by + set M := liminf (fun j => torusMultiplierNorm (fun n => m (latticePoint n / R j)) p) atTop + rcases eq_or_ne M ⊤ with hM | hM + · rw [hM] + exact le_top + have hpq : p.HolderConjugate (p / (p - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).2 rfl + have hm : Measurable m := measurable_of_continuousAt_ne_zero hmc + have hmM : ∀ ξ ≠ 0, ‖m ξ‖ₑ ≤ M := fun ξ hξ => + enorm_le_liminf_torusMultiplierNorm hmc hR (by linarith) hξ + -- The bound for the pairing of Schwartz functions. + have hpair := enorm_integral_fourierMultiplier_mul_le_of_forall hm hM hmM hp hpq.symm.lt + fun f g hf hg => enorm_integral_fourierMultiplier_mul_le hmc hR hp hf hg hM + -- Duality. + refine iSup_le fun f => ENNReal.div_le_of_le_mul ?_ + refine eLpNorm_le_of_forall_schwartz (continuous_fourierMultiplier m f) hp fun g => ?_ + have hg : (conjSchwartz g : ℂ → ℂ) = fun x => conj (g x) := funext fun x => conjSchwartz_apply g x + have h := hpair f (conjSchwartz g) + rw [hg, show eLpNorm (fun x => conj (g x)) _ volume = _ from eLpNorm_conj _ _ _, + ← mul_assoc] at h + exact h + +/-- If the `liminf` is finite, the symbol is bounded, and so the symbol of a Fourier multiplier in +the sense of HNVW, Definition 5.3.1. -/ +theorem exists_norm_le_of_liminf_torusMultiplierNorm_ne_top {m : ℂ → ℂ} + (hmc : ∀ ξ ≠ 0, ContinuousAt m ξ) {R : ℕ → ℝ} (hR : Tendsto R atTop atTop) {p : ℝ} + (hp : 0 < p) (hM : liminf (fun j => torusMultiplierNorm (fun n => m (latticePoint n / R j)) p) + atTop ≠ ⊤) : ∃ C, ∀ ξ, ‖m ξ‖ ≤ C := by + set M := liminf (fun j => torusMultiplierNorm (fun n => m (latticePoint n / R j)) p) atTop + refine ⟨max ‖m 0‖ M.toReal, fun ξ => ?_⟩ + rcases eq_or_ne ξ 0 with rfl | hξ + · exact le_max_left _ _ + refine le_max_of_le_right ?_ + rw [← toReal_eNorm] + exact ENNReal.toReal_mono hM (enorm_le_liminf_torusMultiplierNorm hmc hR hp hξ) + +/-- The dilated symbols in the notation of HNVW, `m (ε k)` with `ε = 1 / R ↓ 0`. -/ +theorem torusMultiplierNorm_div_inv (m : ℂ → ℂ) (ε p : ℝ) : + torusMultiplierNorm (fun n => m (latticePoint n / (ε⁻¹ : ℝ))) p = + torusMultiplierNorm (fun n => m (ε * latticePoint n)) p := by + congr 1 + funext n + rw [Complex.ofReal_inv, div_inv_eq_mul, mul_comm] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/Homogeneous.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/Homogeneous.lean new file mode 100644 index 0000000000..f4d8a0a267 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/Homogeneous.lean @@ -0,0 +1,65 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Transference.ContinuousSymbol + +/-! +# Transference from the torus to the plane for homogeneous symbols + +`HarmonicAnalysis.multiplierNorm_le_torusMultiplierNorm` is the inequality `I ≤ II` of Corollary +5.7.6 of Hytönen–van Neerven–Veraar–Weis (HNVW), for `ℝ² ≅ ℂ` and scalar symbols: let `m : ℂ → ℂ` +be continuous at every `ξ ≠ 0`, with `m (t ξ) = m (ξ)` for `t > 0`. Then for `1 < p < ∞`, +`‖T_m‖_{L^p (ℝ²)} ≤ ‖T_m‖_{L^p_0 (𝕋²)}`, where on the torus `T_m` multiplies the `n`-th Fourier +coefficient by `m (n₀ + i n₁)`. + +As in HNVW, it is Proposition 5.7.4 +(`HarmonicAnalysis.multiplierNorm_le_liminf_torusMultiplierNorm`) for a symbol homogeneous of degree +`0`: `m (n / R) = m (n)`, so the torus norms in the `liminf` are all equal. + +HNVW sets `m (0)` to be the mean of `m` over the unit circle. Here `m (0)` is arbitrary, since it +does not matter for `L^p (ℝ²)` nor for the mean-zero functions on `𝕋²`; it matters for the norm +`III` on `L^p (𝕋²)`, and HNVW's `II ≤ III ≤ I` is not formalized. (The proof of `III ≤ I` there +quotes Proposition 5.7.1, which asks that every `k ∈ ℤ²` be a Lebesgue point of `m`; unless `m` is +constant, `0` is not one, and the choice of `m (0)` has to be used instead.) + +## Main results + +* `HarmonicAnalysis.multiplierNorm_le_torusMultiplierNorm`: the transference. + +## References + +* T. Hytönen, J. van Neerven, M. Veraar, L. Weis, *Analysis in Banach Spaces, Volume I*, Ergebnisse + der Mathematik 63, Springer, 2016: Corollary 5.7.6 (pp. 462–463), Proposition 5.7.1 (p. 458). +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology + +namespace HarmonicAnalysis + +/-- **HNVW, Corollary 5.7.6**, the inequality `I ≤ II` (for `ℝ² ≅ ℂ` and scalar symbols): for a +symbol `m` that is continuous off `0` and homogeneous of degree `0`, +`‖T_m‖_{L^p (ℝ²)} ≤ ‖T_m‖_{L^p_0 (𝕋²)}` for `1 < p < ∞`. + +By homogeneity, `m (n / R) = m (n)`, and Proposition 5.7.4 +(`HarmonicAnalysis.multiplierNorm_le_liminf_torusMultiplierNorm`) applies. -/ +theorem multiplierNorm_le_torusMultiplierNorm {m : ℂ → ℂ} (hmc : ∀ ξ ≠ 0, ContinuousAt m ξ) + (hmh : ∀ t : ℝ, 0 < t → ∀ ξ, m (t * ξ) = m ξ) {p : ℝ} (hp : 1 < p) : + multiplierNorm m p ≤ torusMultiplierNorm (fun n => m (latticePoint n)) p := by + have h := multiplierNorm_le_liminf_torusMultiplierNorm hmc tendsto_natCast_atTop_atTop hp + rwa [tendsto_const_nhds.congr' ?_ |>.liminf_eq] at h + filter_upwards [eventually_gt_atTop 0] with j hj + congr 1 + funext n + rw [div_eq_inv_mul, ← Complex.ofReal_inv, hmh _ (inv_pos.2 (Nat.cast_pos.2 hj))] + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/RiemannSum.lean b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/RiemannSum.lean new file mode 100644 index 0000000000..a405ca9c60 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/HarmonicAnalysis/Transference/RiemannSum.lean @@ -0,0 +1,173 @@ +/- +Copyright (c) 2026 The-Anh Vu-Le. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The-Anh Vu-Le +-/ +module + +-- Modified for Lean Pool. See the project entry module for upstream attribution. + +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Cube +import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Lattice +import Mathlib.Analysis.SpecialFunctions.JapaneseBracket +import Mathlib.LinearAlgebra.Complex.FiniteDimensional +import Mathlib.MeasureTheory.Function.Floor + +/-! +# Lattice Riemann sums of functions continuous off the origin + +`HarmonicAnalysis.tendsto_riemannSum_real`: if `φ : ℂ → ℂ` is continuous at every `ξ ≠ 0` and +`|φ (ξ)| ≤ C (1 + |ξ|)^{−3}`, then the Riemann sums over the lattice `R⁻¹ ℤ²`, +`Σ_{n ∈ ℤ²} R⁻² φ (n / R)`, tend to `∫_ℂ φ` as `R → ∞` through the reals. No continuity at `0` is +needed: the cells `R⁻¹ (n + [0, 1)²)` shrink, and the step functions `ξ ↦ φ (⌊R ξ⌋ / R)` converge to +`φ` off `0` under the integrable bound `C' (1 + |ξ|)^{−3}`. A continuous function with compact +support satisfies the hypotheses. + +`HarmonicAnalysis.exists_tendsto_latticePoint_div`: every `ξ ∈ ℂ` is a limit of points of the +lattices `R⁻¹ ℤ²` as `R → ∞`. +-/ + +@[expose] public section + +noncomputable section + +open MeasureTheory Filter Topology + +namespace HarmonicAnalysis + +/-! ### The cells of the lattice `R⁻¹ ℤ²` -/ + +/-- The index `(⌊R Re ξ⌋, ⌊R Im ξ⌋) ∈ ℤ²` of the cell `R⁻¹ (n + [0, 1)²)` containing `ξ`. -/ +private def cellIndex (R : ℝ) (ξ : ℂ) : Fin 2 → ℤ := ![⌊R * ξ.re⌋, ⌊R * ξ.im⌋] + +private theorem measurable_cellIndex (R : ℝ) : Measurable (cellIndex R) := + measurable_pi_iff.mpr <| Fin.forall_fin_two.mpr + ⟨(measurable_const.mul Complex.measurable_re).floor, + (measurable_const.mul Complex.measurable_im).floor⟩ + +/-- `|⌊R x⌋ / R − x| ≤ R⁻¹`. -/ +private theorem abs_floor_div_sub_le {R : ℝ} (hR : 0 < R) (x : ℝ) : + |⌊R * x⌋ / R - x| ≤ R⁻¹ := by + have h : (⌊R * x⌋ : ℝ) / R - x = -(Int.fract (R * x) / R) := by + rw [Int.fract] + field_simp + ring + rw [h, abs_neg, abs_of_nonneg (div_nonneg (Int.fract_nonneg _) hR.le), div_eq_mul_inv] + exact mul_le_of_le_one_left (inv_nonneg.mpr hR.le) (Int.fract_lt_one _).le + +/-- The lower left corner `⌊R ξ⌋ / R` of the cell containing `ξ` is within `2 / R` of `ξ`. -/ +private theorem norm_latticePoint_cellIndex_div_sub_le {R : ℝ} (hR : 0 < R) (ξ : ℂ) : + ‖latticePoint (cellIndex R ξ) / R - ξ‖ ≤ 2 / R := by + refine (Complex.norm_le_abs_re_add_abs_im _).trans ?_ + have h1 := abs_floor_div_sub_le hR ξ.re + have h2 := abs_floor_div_sub_le hR ξ.im + simp only [Complex.sub_re, Complex.sub_im, Complex.div_ofReal_re, Complex.div_ofReal_im, + latticePoint_re, latticePoint_im, cellIndex] + simp only [Matrix.cons_val_zero, Matrix.cons_val_one] + rw [show (2 : ℝ) / R = R⁻¹ + R⁻¹ by ring] + exact add_le_add h1 h2 + +/-- The cell `R⁻¹ (n + [0, 1)²)`, in the coordinates `ℂ ≃ ℝ × ℝ`. -/ +private theorem cellIndex_preimage (R : ℝ) (n : Fin 2 → ℤ) : + cellIndex R ⁻¹' {n} = Complex.measurableEquivRealProd ⁻¹' + (((fun x : ℝ => R * x) ⁻¹' Set.Ico (n 0 : ℝ) (n 0 + 1)) ×ˢ + ((fun x : ℝ => R * x) ⁻¹' Set.Ico (n 1 : ℝ) (n 1 + 1))) := by + ext ξ + simp [cellIndex, funext_iff, Fin.forall_fin_two, Int.floor_eq_iff] + +/-- Each cell of `R⁻¹ ℤ²` has measure `R⁻²`. -/ +private theorem volume_real_cellIndex_preimage {R : ℝ} (hR : 0 < R) (n : Fin 2 → ℤ) : + volume.real (cellIndex R ⁻¹' {n}) = (R ^ 2)⁻¹ := by + have hm : ∀ k : ℤ, MeasurableSet ((fun x : ℝ => R * x) ⁻¹' Set.Ico (k : ℝ) (k + 1)) := + fun _ => measurableSet_Ico.preimage (measurable_id.const_mul _) + rw [Measure.real, cellIndex_preimage, Complex.volume_preserving_equiv_real_prod.measure_preimage + ((hm _).prod (hm _)).nullMeasurableSet, Measure.volume_eq_prod, Measure.prod_prod, + Real.volume_preimage_mul_left hR.ne', Real.volume_preimage_mul_left hR.ne', Real.volume_Ico, + Real.volume_Ico] + simp [abs_of_pos hR, ENNReal.toReal_mul, sq, hR.le] + +private theorem rpow_neg_three {x : ℝ} (hx : 0 ≤ x) : x ^ (-3 : ℝ) = (x ^ 3)⁻¹ := by + rw [Real.rpow_neg hx, Real.rpow_ofNat] + +/-! ### Riemann sums -/ + +/-- Lattice Riemann sums: for `φ` continuous off `0` with `|φ (ξ)| ≤ C (1 + |ξ|)^{−3}`, +`Σ_{n ∈ ℤ²} R⁻² φ (n / R) → ∫_ℂ φ` as `R → ∞` through the reals. -/ +theorem tendsto_riemannSum_real {φ : ℂ → ℂ} (hφ : ∀ ξ ≠ 0, ContinuousAt φ ξ) {C : ℝ} + (hC : ∀ ξ, ‖φ ξ‖ ≤ C * (1 + ‖ξ‖) ^ (-3 : ℝ)) : + Tendsto (fun R : ℝ => ∑' n : Fin 2 → ℤ, ((R : ℂ) ^ 2)⁻¹ * φ (latticePoint n / R)) atTop + (𝓝 (∫ ξ, φ ξ)) := by + have hC0 : 0 ≤ C := by simpa using (norm_nonneg _).trans (hC 0) + -- The step functions `S R ξ = φ (⌊R ξ⌋ / R)`, constant on the cells of `R⁻¹ ℤ²`. + set S : ℝ → ℂ → ℂ := fun R ξ => φ (latticePoint (cellIndex R ξ) / R) with hS + -- The dominating function. + set g : ℂ → ℝ := fun ξ => C * 27 * (1 + ‖ξ‖) ^ (-3 : ℝ) with hg + have hg_int : Integrable g := + (integrable_one_add_norm (by simp [Complex.finrank_real_complex]; norm_num)).const_mul _ + have hS_meas : ∀ R, AEStronglyMeasurable (S R) volume := fun R => + ((measurable_of_countable fun n => φ (latticePoint n / R)).comp + (measurable_cellIndex R)).aestronglyMeasurable + have hS_bound : ∀ R : ℝ, 1 ≤ R → ∀ ξ, ‖S R ξ‖ ≤ g ξ := by + intro R hR ξ + set p := latticePoint (cellIndex R ξ) / R + have hp : ‖ξ‖ ≤ ‖p‖ + 2 := by + have h1 := norm_latticePoint_cellIndex_div_sub_le (zero_lt_one.trans_le hR) ξ + have h2 : (2 : ℝ) / R ≤ 2 := div_le_self zero_le_two hR + have h3 := norm_sub_norm_le ξ p + rw [norm_sub_rev] at h3 + linarith + have h1 : (1 + ‖ξ‖) ^ 3 ≤ 27 * (1 + ‖p‖) ^ 3 := by + have : 1 + ‖ξ‖ ≤ 3 * (1 + ‖p‖) := by linarith [norm_nonneg p] + calc (1 + ‖ξ‖) ^ 3 ≤ (3 * (1 + ‖p‖)) ^ 3 := by gcongr + _ = 27 * (1 + ‖p‖) ^ 3 := by ring + calc ‖S R ξ‖ ≤ C * (1 + ‖p‖) ^ (-3 : ℝ) := hC p + _ ≤ g ξ := by + simp only [hg, rpow_neg_three (by positivity : (0 : ℝ) ≤ 1 + ‖p‖), + rpow_neg_three (by positivity : (0 : ℝ) ≤ 1 + ‖ξ‖), mul_assoc] + gcongr + rw [← div_eq_mul_inv, le_div_iff₀ (by positivity), inv_mul_le_iff₀ (by positivity)] + linarith + have hS_int : ∀ R : ℝ, 1 ≤ R → Integrable (S R) := fun R hR => + hg_int.mono' (hS_meas R) (ae_of_all _ (hS_bound R hR)) + -- The integral of `S R` is the Riemann sum. + have hsum : ∀ R : ℝ, 1 ≤ R → + HasSum (fun n => ((R : ℂ) ^ 2)⁻¹ * φ (latticePoint n / R)) (∫ ξ, S R ξ) := by + intro R hR + have hR0 : 0 < R := zero_lt_one.trans_le hR + have hm : ∀ n, MeasurableSet (cellIndex R ⁻¹' {n}) := fun n => + measurable_cellIndex R (measurableSet_singleton n) + have h := hasSum_integral_iUnion (μ := volume) hm + (fun m n hmn => (Set.disjoint_singleton.mpr hmn).preimage _) (hS_int R hR).integrableOn + rw [← Set.preimage_iUnion, Set.iUnion_of_singleton, Set.preimage_univ, + Measure.restrict_univ] at h + convert h using 1 + funext n + rw [setIntegral_congr_fun (hm n) (g := fun _ => φ (latticePoint n / R)) + (fun ξ hξ => by simp only [hS, Set.mem_singleton_iff.mp hξ]), + setIntegral_const, volume_real_cellIndex_preimage hR0, Complex.real_smul] + push_cast + rfl + -- Dominated convergence. + have hlim : Tendsto (fun R => ∫ ξ, S R ξ) atTop (𝓝 (∫ ξ, φ ξ)) := by + refine tendsto_integral_filter_of_dominated_convergence g (Eventually.of_forall hS_meas) + (eventually_atTop.mpr ⟨1, fun R hR => ae_of_all _ (hS_bound R hR)⟩) hg_int ?_ + filter_upwards [Measure.ae_ne volume 0] with ξ hξ + refine (hφ ξ hξ).tendsto.comp ?_ + rw [tendsto_iff_norm_sub_tendsto_zero] + refine squeeze_zero' (Eventually.of_forall fun _ => norm_nonneg _) + (eventually_atTop.mpr ⟨1, fun R hR => norm_latticePoint_cellIndex_div_sub_le + (zero_lt_one.trans_le hR) ξ⟩) + (tendsto_const_nhds.div_atTop tendsto_id) + exact hlim.congr' (eventually_atTop.mpr ⟨1, fun R hR => (hsum R hR).tsum_eq.symm⟩) + +/-- The lattices `R⁻¹ ℤ²` become dense as `R → ∞`: for every `ξ` there are `n_R ∈ ℤ²` with +`n_R / R → ξ`. -/ +theorem exists_tendsto_latticePoint_div (ξ : ℂ) : + ∃ n : ℝ → Fin 2 → ℤ, Tendsto (fun R : ℝ => latticePoint (n R) / R) atTop (𝓝 ξ) := by + refine ⟨fun R => cellIndex R ξ, ?_⟩ + rw [tendsto_iff_norm_sub_tendsto_zero] + exact squeeze_zero' (Eventually.of_forall fun _ => norm_nonneg _) + (eventually_atTop.mpr ⟨1, fun R hR => norm_latticePoint_cellIndex_div_sub_le + (zero_lt_one.trans_le hR) ξ⟩) (tendsto_const_nhds.div_atTop tendsto_id) + +end HarmonicAnalysis diff --git a/LeanPool/IwaniecBeurlingAhlfors/Imports.lean b/LeanPool/IwaniecBeurlingAhlfors/Imports.lean new file mode 100644 index 0000000000..b651d3f115 --- /dev/null +++ b/LeanPool/IwaniecBeurlingAhlfors/Imports.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Lean Pool contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Lean Pool contributors +-/ +module -- shake: keep-all --deprecated_module: ignore + +-- Generated project imports; run `lake exe mk_all`. +public import LeanPool.IwaniecBeurlingAhlfors +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Astala +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Bridges +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.Norm +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.NormTorus +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Corollary2.Quasiconvexity +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Defs +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.BaernsteinMontgomerySmith.Basic +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.BaernsteinMontgomerySmith.RemarkB +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.Guerra.TheoremL +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.KinderlehrerStampacchia.Projection +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.External.Lehto.LowerBound +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Hessian +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Proof.RowRepresentation +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Proof.ScalarProjection.Defs +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Proof.ScalarProjection.Existence +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Proof.ScalarProjection.Main +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Quasiconvex +public import LeanPool.IwaniecBeurlingAhlfors.Agazzi.Theorem1 +public import LeanPool.IwaniecBeurlingAhlfors.BanachProbability.Defs +public import LeanPool.IwaniecBeurlingAhlfors.BanachProbability.Martingale.Burkholder.Function +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Basic +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Convex.SupportFunction +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Cutoff +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.FDeriv +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.FundamentalDomain +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Gradient +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.GradientConstraint +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Mollify +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Periodic +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Periodize +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.Rescale +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Lipschitz.ZeroSet +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.AllOrders +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.NullLagrangian +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.Periodic +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.Quasiaffine +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Minors.RankOneAffine +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Cutoff +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Domain +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Hessian +public import LeanPool.IwaniecBeurlingAhlfors.CalculusOfVariations.Quasiconvex.Periodic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Beltrami +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.CauchyTransform +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.CompactSupport +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Duality +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.L2 +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.LowerBound +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Periodic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Regularity +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.TestFunctions +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.TestFunctions.Approx +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.TestFunctions.One +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.TestFunctions.Profile +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.BeurlingAhlfors.Transference +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.CauchyPompeiu +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.CauchyTransform +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.Liouville +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.RadialIntegral +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.RadialStretch +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.Wirtinger +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Complex.WirtingerRadial +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Defs +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.CompactSupport +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Density +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Duality +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Extension +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.FourierMultiplier.Norming +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Sobolev.Basic +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Sobolev.Embedding +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Sobolev.Mollify +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Cube +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Lattice +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Lipschitz +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Poisson +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.Smooth +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Torus.TrigPoly +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Transference.ContinuousSymbol +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Transference.Homogeneous +public import LeanPool.IwaniecBeurlingAhlfors.HarmonicAnalysis.Transference.RiemannSum diff --git a/LeanPool/projects/iwaniec-beurling-ahlfors.yaml b/LeanPool/projects/iwaniec-beurling-ahlfors.yaml new file mode 100644 index 0000000000..1721348400 --- /dev/null +++ b/LeanPool/projects/iwaniec-beurling-ahlfors.yaml @@ -0,0 +1,44 @@ +slug: iwaniec-beurling-ahlfors +title: Iwaniec's conjecture on the Beurling–Ahlfors norm +summary: Formalizes Agazzi et al.'s quasiconvexity theorem for the + Burkholder–Šverák integrand on real 2-by-2 matrices and the resulting sharp + norm of the Beurling–Ahlfors transform. + The proof develops scalar projection under a gradient constraint and relates + the sharp planar estimate to periodic test functions and higher integrability. +branch: harmonic analysis and calculus of variations +entry_module: LeanPool.IwaniecBeurlingAhlfors +authors: +- The-Anh Vu-Le +source: + arxiv: '2609.28311' + url: https://github.com/vltanh/lean4-iwaniec/tree/f310788a42a6935fd9e24092f9df95e2682afb3b + github_repo: vltanh/lean4-iwaniec + commit: f310788a42a6935fd9e24092f9df95e2682afb3b + paper_url: https://arxiv.org/pdf/2609.28311v2 +license: Apache-2.0 +status: verified +provenance: AI +main_declarations: +- Agazzi.theorem1 +- Agazzi.corollary2_norm +main_results: +- declaration: Agazzi.theorem1 + informal: Agazzi et al.'s Theorem 1 proves that the Burkholder–Šverák + integrand is quasiconvex under smooth periodic perturbations of real + 2-by-2 matrices. +- declaration: Agazzi.corollary2_norm + informal: For every real p > 1, the Beurling–Ahlfors Fourier multiplier has + sharp Lp norm equal to max(p, p / (p − 1)) − 1. +- declaration: Agazzi.theorem1_hessian_iff + informal: The Hessian inequality for smooth periodic scalar test functions + is equivalent to the formulation for compactly supported smooth scalar + test functions on the plane. +tags: +- singular-integrals +- quasiconvexity +- fourier-multipliers +- beltrami-equation +msc: +- 42B20 +- 49J45 +- 30C62