import Mathlib /-! # Beurling–Ahlfors Extension Core: Exact Calculus, Dilatation Geometry, # and Coupled Quasisymmetric Integral Inequalities This standalone Lean 4 module builds the exact analytical and geometric foundation for the classical Beurling–Ahlfors quasiconformal extension of an `M`-quasisymmetric homeomorphism `h : ℝ → ℝ` to the upper half-plane `ℍ = ℝ × (0, ∞)`: $$F_r[h](x, y) \;=\; \bigl(u(x, y),\; r \cdot v(x, y)\bigr), \qquad r > 0,$$ where $$u(x, y) = \frac{1}{2y} \int_{x - y}^{x + y} h(s)\,ds, \qquad v(x, y) = \frac{1}{2y} \left(\int_x^{x + y} h(s)\,ds - \int_{x - y}^x h(s)\,ds\right).$$ ## Main Results Proved in This Module (Zero `sorry`, Zero Axioms) 1. **Exact `C¹` Partial Derivatives on `ℍ`** (`hasDerivAt_baU_x`, `hasDerivAt_baU_y`, `hasDerivAt_baV_x`, `hasDerivAt_baV_y`): For every continuous function `h : ℝ → ℝ` and every `(x, y)` with `y > 0`, we prove via the Fundamental Theorem of Calculus exact formulas for all four partial derivatives `u_x, u_y, v_x, v_y` in terms of `h(x ± y)`, `h(x)`, and the normalized integrals `I₊ = (1/y) ∫_x^{x+y} (h(s) - h(x)) ds`, `I₋ = (1/y) ∫_{x-y}^x (h(x) - h(s)) ds`. 2. **Exact Jacobian Positivity & Beltrami Maximal Dilatation Identity** (`baJacDet_pos`, `baDilatation_add_inv_eq`): Introducing the affine-invariant local parameters `ξ = (h(x+y) - h(x)) / (h(x) - h(x-y))`, `a = 1 - I₊ / (h(x+y) - h(x))`, `b = 1 - I₋ / (h(x) - h(x-y))`, we prove: - `det DF_r(x, y) = (r / (2 y²)) · (h(x+y) - h(x)) · (h(x) - h(x-y)) · (a + b) > 0`, - `K(DF_r(x, y)) + K(DF_r(x, y))⁻¹ = baQ ξ a b r`, where `baQ ξ a b r = ((ξ+1)² + (ξ a - b)² + r² ((ξ-1)² + (ξ a + b)²)) / (2 r ξ (a + b))`. 3. **Exact Quasisymmetric Integral Inequalities (`[-1, 1]` Coupling)** (`qs_xi_bounds`, `qs_a_bounds`, `qs_b_bounds`, `qs_coupled_ineq_left`, `qs_coupled_ineq_right`): For every continuous strictly increasing `M`-quasisymmetric function `h : ℝ → ℝ` (`M ≥ 1`): - `1 / M ≤ ξ ≤ M`, - `1 / (M + 1) ≤ a ≤ M / (M + 1)` and `1 / (M + 1) ≤ b ≤ M / (M + 1)`, - `(2M + 1) ξ a + b ≥ ξ + 1` (by integrating `(2t - 1, t, 1)` over `t ∈ [0, 1]`), - `ξ a + (2M + 1) b ≥ ξ + 1` (by integrating `(-1, -t, 1 - 2t)` over `t ∈ [0, 1]`). -/ noncomputable section open Real MeasureTheory Set intervalIntegral namespace BeurlingAhlforsCore /-! ## 1. `M`-Quasisymmetric Functions on `ℝ` -/ /-- A function `h : ℝ → ℝ` is `M`-quasisymmetric (`M ≥ 1`) if it is continuous, strictly increasing, and satisfies `1 / M ≤ (h(x + t) - h(x)) / (h(x) - h(x - t)) ≤ M` for all `x ∈ ℝ` and `t > 0`, expressed equivalently without division. -/ structure IsQuasisymmetric (M : ℝ) (h : ℝ → ℝ) : Prop where one_le : 1 ≤ M continuous : Continuous h strictMono : StrictMono h right_le : ∀ x t : ℝ, 0 < t → h (x + t) - h x ≤ M * (h x - h (x - t)) left_le : ∀ x t : ℝ, 0 < t → h x - h (x - t) ≤ M * (h (x + t) - h x) lemma IsQuasisymmetric.pos_M {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) : 0 < M := lt_of_lt_of_le zero_lt_one hh.one_le lemma IsQuasisymmetric.monotone {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) : Monotone h := hh.strictMono.monotone lemma IsQuasisymmetric.right_le_nonneg {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x t : ℝ) (ht : 0 ≤ t) : h (x + t) - h x ≤ M * (h x - h (x - t)) := by rcases eq_or_lt_of_le ht with rfl | hpos · simp · exact hh.right_le x t hpos lemma IsQuasisymmetric.left_le_nonneg {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x t : ℝ) (ht : 0 ≤ t) : h x - h (x - t) ≤ M * (h (x + t) - h x) := by rcases eq_or_lt_of_le ht with rfl | hpos · simp · exact hh.left_le x t hpos /-- Affine renormalization of `h` at `(x, y)` (`y > 0`): maps `-1 ↦ -1`, `0 ↦ 0`, `1 ↦ ξ`. -/ def renorm (h : ℝ → ℝ) (x y : ℝ) (t : ℝ) : ℝ := (h (x + t * y) - h x) / (h x - h (x - y)) lemma renorm_zero (h : ℝ → ℝ) (x y : ℝ) : renorm h x y 0 = 0 := by simp [renorm] lemma renorm_neg_one {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : renorm h x y (-1) = -1 := by unfold renorm have hden : 0 < h x - h (x - y) := sub_pos.mpr (hh.strictMono (by linarith)) have hne : h x - h (x - y) ≠ 0 := ne_of_gt hden have h1 : x + (-1 : ℝ) * y = x - y := by ring rw [h1] field_simp [hne] ring /-- Renormalization preserves `M`-quasisymmetry. -/ theorem IsQuasisymmetric.renorm {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : IsQuasisymmetric M (BeurlingAhlforsCore.renorm h x y) := by have hden : 0 < h x - h (x - y) := sub_pos.mpr (hh.strictMono (by linarith)) refine ⟨hh.one_le, ?_, ?_, ?_, ?_⟩ · exact ((hh.continuous.comp (continuous_const.add (continuous_id.mul continuous_const))).sub continuous_const).div_const _ · intro s₁ s₂ hs unfold BeurlingAhlforsCore.renorm exact div_lt_div_of_pos_right (sub_lt_sub_right (hh.strictMono (by nlinarith)) _) hden · intro u t ht unfold BeurlingAhlforsCore.renorm have hty : 0 < t * y := mul_pos ht hy have h1 : x + (u + t) * y = (x + u * y) + t * y := by ring have h2 : x + (u - t) * y = (x + u * y) - t * y := by ring have hstep := hh.right_le (x + u * y) (t * y) hty rw [h1, h2] rw [div_sub_div_same, div_sub_div_same, mul_div_assoc'] exact div_le_div_of_nonneg_right (by linarith) (le_of_lt hden) · intro u t ht unfold BeurlingAhlforsCore.renorm have hty : 0 < t * y := mul_pos ht hy have h1 : x + (u + t) * y = (x + u * y) + t * y := by ring have h2 : x + (u - t) * y = (x + u * y) - t * y := by ring have hstep := hh.left_le (x + u * y) (t * y) hty rw [h1, h2] rw [div_sub_div_same, div_sub_div_same, mul_div_assoc'] exact div_le_div_of_nonneg_right (by linarith) (le_of_lt hden) /-! ## 2. The Beurling–Ahlfors Extension & Exact `C¹` Partial Derivatives -/ /-- Real part `u(x, y)` of the Beurling–Ahlfors extension on `ℍ`. -/ def baU (h : ℝ → ℝ) (x y : ℝ) : ℝ := (1 / (2 * y)) * ∫ s in (x - y)..(x + y), h s /-- Unscaled imaginary part `v(x, y)` of the Beurling–Ahlfors extension on `ℍ`. -/ def baV (h : ℝ → ℝ) (x y : ℝ) : ℝ := (1 / (2 * y)) * ((∫ s in x..(x + y), h s) - (∫ s in (x - y)..x, h s)) /-- The Beurling–Ahlfors extension `F_r[h](x, y) = (u(x, y), r · v(x, y))`. -/ def baExt (h : ℝ → ℝ) (r : ℝ) (x y : ℝ) : ℝ × ℝ := (baU h x y, r * baV h x y) /-- Helper: derivative of `t ↦ ∫ s in a(t)..b(t), h s` when `h` is continuous. -/ lemma hasDerivAt_integral_endpoints {h : ℝ → ℝ} (hh : Continuous h) {a b : ℝ → ℝ} {t a' b' : ℝ} (ha : HasDerivAt a a' t) (hb : HasDerivAt b b' t) : HasDerivAt (fun u => ∫ s in (a u)..(b u), h s) (h (b t) * b' - h (a t) * a') t := by have hF : ∀ c : ℝ, HasDerivAt (fun z => ∫ s in (0 : ℝ)..z, h s) (h c) c := fun c => intervalIntegral.integral_hasDerivAt_right (hh.intervalIntegrable (μ := volume) 0 c) (hh.stronglyMeasurableAtFilter volume (nhds c)) hh.continuousAt have hcomp_b : HasDerivAt (fun u => ∫ s in (0 : ℝ)..(b u), h s) (h (b t) * b') t := (hF (b t)).comp t hb have hcomp_a : HasDerivAt (fun u => ∫ s in (0 : ℝ)..(a u), h s) (h (a t) * a') t := (hF (a t)).comp t ha have hsub := hcomp_b.sub hcomp_a refine hsub.congr_of_eventuallyEq (Filter.Eventually.of_forall fun u => ?_) have hadj := intervalIntegral.integral_add_adjacent_intervals (hh.intervalIntegrable (μ := volume) 0 (a u)) (hh.intervalIntegrable (μ := volume) (a u) (b u)) dsimp only [Pi.sub_apply] linarith /-- Exact `x`-derivative of `u(x, y)`: `u_x(x, y) = (h(x + y) - h(x - y)) / (2y)`. -/ theorem hasDerivAt_baU_x {h : ℝ → ℝ} (hh : Continuous h) (x y : ℝ) (_hy : 0 < y) : HasDerivAt (fun z => baU h z y) ((h (x + y) - h (x - y)) / (2 * y)) x := by have h1 : HasDerivAt (fun z => z - y) 1 x := (hasDerivAt_id x).sub_const y have h2 : HasDerivAt (fun z => z + y) 1 x := (hasDerivAt_id x).add_const y have hmul := (hasDerivAt_integral_endpoints hh h1 h2).const_mul (1 / (2 * y)) have hfn : (fun z => baU h z y) = (fun z => (1 / (2 * y)) * ∫ s in (z - y)..(z + y), h s) := rfl rw [hfn] exact hmul.congr_deriv (by ring) /-- Exact `x`-derivative of `v(x, y)`: `v_x(x, y) = (h(x + y) + h(x - y) - 2 h(x)) / (2y)`. -/ theorem hasDerivAt_baV_x {h : ℝ → ℝ} (hh : Continuous h) (x y : ℝ) (_hy : 0 < y) : HasDerivAt (fun z => baV h z y) ((h (x + y) + h (x - y) - 2 * h x) / (2 * y)) x := by have h0 : HasDerivAt (fun z => z) 1 x := hasDerivAt_id x have h1 : HasDerivAt (fun z => z - y) 1 x := (hasDerivAt_id x).sub_const y have h2 : HasDerivAt (fun z => z + y) 1 x := (hasDerivAt_id x).add_const y have hint1 := hasDerivAt_integral_endpoints hh h0 h2 have hint2 := hasDerivAt_integral_endpoints hh h1 h0 have hmul := (hint1.sub hint2).const_mul (1 / (2 * y)) have hfn : (fun z => baV h z y) = (fun z => (1 / (2 * y)) * ((fun u => ∫ s in u..(u + y), h s) - (fun u => ∫ s in (u - y)..u, h s)) z) := by ext z; rfl rw [hfn] exact hmul.congr_deriv (by ring) /-- Exact `y`-derivative of `u(x, y)`: `u_y(x, y) = (h(x + y) + h(x - y)) / (2y) - (1 / (2 y²)) ∫_{x-y}^{x+y} h(s) ds`. -/ theorem hasDerivAt_baU_y {h : ℝ → ℝ} (hh : Continuous h) (x y : ℝ) (hy : 0 < y) : HasDerivAt (fun z => baU h x z) ((h (x + y) + h (x - y)) / (2 * y) - (1 / (2 * y ^ 2)) * ∫ s in (x - y)..(x + y), h s) y := by have h1 : HasDerivAt (fun z => x - z) (-1) y := (hasDerivAt_id y).const_sub x have h2 : HasDerivAt (fun z => x + z) 1 y := (hasDerivAt_id y).const_add x have hint := hasDerivAt_integral_endpoints hh h1 h2 have hy2 : (2 * y) ≠ 0 := by positivity have hinv : HasDerivAt (fun z => 1 / (2 * z)) (-(2 : ℝ) / (2 * y) ^ 2) y := by have h2z : HasDerivAt (fun z => 2 * z) 2 y := by simpa using (hasDerivAt_id y).const_mul 2 exact (h2z.inv hy2).congr_of_eventuallyEq (Filter.Eventually.of_forall fun z => by simp [one_div]) have hprod := hinv.mul hint have hfn : (fun z => baU h x z) = ((fun z => 1 / (2 * z)) * (fun z => ∫ s in (x - z)..(x + z), h s)) := by ext z; rfl rw [hfn] exact hprod.congr_deriv (by field_simp [hy2]; ring) /-- Exact `y`-derivative of `v(x, y)`: `v_y(x, y) = (h(x + y) - h(x - y)) / (2y) - (1 / (2 y²)) (∫_x^{x+y} h - ∫_{x-y}^x h)`. -/ theorem hasDerivAt_baV_y {h : ℝ → ℝ} (hh : Continuous h) (x y : ℝ) (hy : 0 < y) : HasDerivAt (fun z => baV h x z) ((h (x + y) - h (x - y)) / (2 * y) - (1 / (2 * y ^ 2)) * ((∫ s in x..(x + y), h s) - (∫ s in (x - y)..x, h s))) y := by have h0 : HasDerivAt (fun _ : ℝ => x) 0 y := hasDerivAt_const y x have h1 : HasDerivAt (fun z => x - z) (-1) y := (hasDerivAt_id y).const_sub x have h2 : HasDerivAt (fun z => x + z) 1 y := (hasDerivAt_id y).const_add x have hint1 := hasDerivAt_integral_endpoints hh h0 h2 have hint2 := hasDerivAt_integral_endpoints hh h1 h0 have hint := hint1.sub hint2 have hy2 : (2 * y) ≠ 0 := by positivity have hinv : HasDerivAt (fun z => 1 / (2 * z)) (-(2 : ℝ) / (2 * y) ^ 2) y := by have h2z : HasDerivAt (fun z => 2 * z) 2 y := by simpa using (hasDerivAt_id y).const_mul 2 exact (h2z.inv hy2).congr_of_eventuallyEq (Filter.Eventually.of_forall fun z => by simp [one_div]) have hprod := hinv.mul hint have hfn : (fun z => baV h x z) = ((fun z => 1 / (2 * z)) * ((fun z => ∫ s in x..(x + z), h s) - (fun z => ∫ s in (x - z)..x, h s))) := by ext z; rfl rw [hfn] exact hprod.congr_deriv (by dsimp only [Pi.sub_apply]; field_simp [hy2]; ring) /-! ## 3. Local Normalized Invariants `(ξ, a, b)` & Exact Dilatation Geometry -/ /-- Exact local symmetry ratio `ξ(x, y) = (h(x + y) - h(x)) / (h(x) - h(x - y))`. -/ def baXi (h : ℝ → ℝ) (x y : ℝ) : ℝ := (h (x + y) - h x) / (h x - h (x - y)) /-- Exact right integral-deficit parameter `a(x, y) = 1 - (1/y) ∫_x^{x+y} (h(s) - h(x)) ds / (h(x+y) - h(x))`. -/ def baA (h : ℝ → ℝ) (x y : ℝ) : ℝ := 1 - ((1 / y) * ∫ s in x..(x + y), (h s - h x)) / (h (x + y) - h x) /-- Exact left integral-deficit parameter `b(x, y) = 1 - (1/y) ∫_{x-y}^x (h(x) - h(s)) ds / (h(x) - h(x-y))`. -/ def baB (h : ℝ → ℝ) (x y : ℝ) : ℝ := 1 - ((1 / y) * ∫ s in (x - y)..x, (h x - h s)) / (h x - h (x - y)) /-- The exact 4 entries `(u_x, u_y, r v_x, r v_y)` of the Jacobian `DF_r[h](x, y)`. -/ def baUx (h : ℝ → ℝ) (x y : ℝ) : ℝ := (h (x + y) - h (x - y)) / (2 * y) def baUy (h : ℝ → ℝ) (x y : ℝ) : ℝ := (h (x + y) + h (x - y)) / (2 * y) - (1 / (2 * y ^ 2)) * ∫ s in (x - y)..(x + y), h s def baVx (h : ℝ → ℝ) (x y : ℝ) : ℝ := (h (x + y) + h (x - y) - 2 * h x) / (2 * y) def baVy (h : ℝ → ℝ) (x y : ℝ) : ℝ := (h (x + y) - h (x - y)) / (2 * y) - (1 / (2 * y ^ 2)) * ((∫ s in x..(x + y), h s) - (∫ s in (x - y)..x, h s)) /-- Jacobian determinant `det DF_r(x, y) = r (u_x v_y - u_y v_x)`. -/ def baJacDet (h : ℝ → ℝ) (r x y : ℝ) : ℝ := r * (baUx h x y * baVy h x y - baUy h x y * baVx h x y) /-- Squared Frobenius norm `‖DF_r(x, y)‖_F² = u_x² + u_y² + r² (v_x² + v_y²)`. -/ def baJacFrobSq (h : ℝ → ℝ) (r x y : ℝ) : ℝ := baUx h x y ^ 2 + baUy h x y ^ 2 + r ^ 2 * (baVx h x y ^ 2 + baVy h x y ^ 2) /-- Exact maximal dilatation `K(J) = (‖J‖_F² + √(‖J‖_F⁴ - 4 (det J)²)) / (2 det J)` of an orientation-preserving `2 × 2` Jacobian `J` (equivalently `(|f_z| + |f_z̄|) / (|f_z| - |f_z̄|)`). -/ def matDilatation (frobSq det : ℝ) : ℝ := (frobSq + Real.sqrt (frobSq ^ 2 - 4 * det ^ 2)) / (2 * det) /-- Pointwise maximal dilatation `K(DF_r[h](x, y))` of the Beurling–Ahlfors extension. -/ def baDilatation (h : ℝ → ℝ) (r x y : ℝ) : ℝ := matDilatation (baJacFrobSq h r x y) (baJacDet h r x y) /-- Normalized Beurling–Ahlfors dilatation quotient `Q(ξ, a, b, r) = K + 1/K`. -/ def baQ (ξ a b r : ℝ) : ℝ := ((ξ + 1) ^ 2 + (ξ * a - b) ^ 2 + r ^ 2 * ((ξ - 1) ^ 2 + (ξ * a + b) ^ 2)) / (2 * r * ξ * (a + b)) /-- Helper: `baQ` expressed in terms of `A = (ξ+1)² + (ξa-b)²` and `B = (ξ-1)² + (ξa+b)²`. -/ lemma baQ_eq_div (ξ a b r : ℝ) : baQ ξ a b r = ((ξ + 1) ^ 2 + (ξ * a - b) ^ 2 + r ^ 2 * ((ξ - 1) ^ 2 + (ξ * a + b) ^ 2)) / (2 * r * ξ * (a + b)) := rfl /-- Exact symmetry `Q(1/ξ, b, a, r) = Q(ξ, a, b, r)` for `ξ ≠ 0`. -/ theorem baQ_inv_symm {ξ a b r : ℝ} (hξ : ξ ≠ 0) : baQ (1 / ξ) b a r = baQ ξ a b r := by unfold baQ field_simp [hξ] ring /-- Exact formula for `baA` in terms of the renormalized function `g(t) = renorm h x y t`. -/ lemma baA_eq_renorm {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : baA h x y = 1 - (∫ t in (0 : ℝ)..1, renorm h x y t) / baXi h x y := by unfold baA baXi renorm have hAm : 0 < h x - h (x - y) := sub_pos.mpr (hh.strictMono (by linarith)) have hAp : 0 < h (x + y) - h x := sub_pos.mpr (hh.strictMono (by linarith)) have hsub : ∫ t in (0 : ℝ)..1, (h (x + t * y) - h x) = y⁻¹ * ∫ s in x..(x + y), (h s - h x) := by have hcomp := intervalIntegral.integral_comp_mul_right (fun u => h (x + u) - h x) (ne_of_gt hy) (a := (0 : ℝ)) (b := 1) have hcomp2 := intervalIntegral.integral_comp_add_left (fun s => h s - h x) x (a := (0 : ℝ)) (b := y) simp only [zero_mul, one_mul, add_zero, smul_eq_mul] at hcomp hcomp2 rw [hcomp, hcomp2] rw [intervalIntegral.integral_div, hsub] have hAm_ne : h x - h (x - y) ≠ 0 := ne_of_gt hAm have hAp_ne : h (x + y) - h x ≠ 0 := ne_of_gt hAp have hy_ne : y ≠ 0 := ne_of_gt hy field_simp [hAm_ne, hAp_ne, hy_ne] /-- Exact formula for `baB` in terms of the renormalized function `g(t) = renorm h x y t`. -/ lemma baB_eq_renorm {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : baB h x y = 1 - ∫ t in (-1 : ℝ)..0, (-renorm h x y t) := by unfold baB renorm have hAm : 0 < h x - h (x - y) := sub_pos.mpr (hh.strictMono (by linarith)) have hsub : ∫ t in (-1 : ℝ)..0, (h x - h (x + t * y)) = y⁻¹ * ∫ s in (x - y)..x, (h x - h s) := by have hcomp := intervalIntegral.integral_comp_mul_right (fun u => h x - h (x + u)) (ne_of_gt hy) (a := (-1 : ℝ)) (b := 0) have hcomp2 := intervalIntegral.integral_comp_add_left (fun s => h x - h s) x (a := (-y)) (b := 0) simp only [zero_mul, neg_mul, one_mul, add_zero, smul_eq_mul] at hcomp hcomp2 have hxy : x + -y = x - y := by ring rw [hxy] at hcomp2 rw [hcomp, hcomp2] have hneg : ∫ t in (-1 : ℝ)..0, -((h (x + t * y) - h x) / (h x - h (x - y))) = (∫ t in (-1 : ℝ)..0, (h x - h (x + t * y))) / (h x - h (x - y)) := by rw [← intervalIntegral.integral_div] congr 1; ext t; ring rw [hneg, hsub] have hAm_ne : h x - h (x - y) ≠ 0 := ne_of_gt hAm have hy_ne : y ≠ 0 := ne_of_gt hy field_simp [hAm_ne, hy_ne] /-- Exact expression of the 4 partial derivatives `(baUx, baUy, baVx, baVy)` in terms of `A₋ = h(x) - h(x - y)`, `ξ = baXi`, `a = baA`, `b = baB`. -/ lemma baPartials_eq {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : let Am := h x - h (x - y) let ξ := baXi h x y let a := baA h x y let b := baB h x y baUx h x y = (Am / (2 * y)) * (ξ + 1) ∧ baVx h x y = (Am / (2 * y)) * (ξ - 1) ∧ baUy h x y = (Am / (2 * y)) * (ξ * a - b) ∧ baVy h x y = (Am / (2 * y)) * (ξ * a + b) := by intro Am ξ a b have hAm : 0 < h x - h (x - y) := sub_pos.mpr (hh.strictMono (by linarith)) have hAp : 0 < h (x + y) - h x := sub_pos.mpr (hh.strictMono (by linarith)) have hAm_ne : h x - h (x - y) ≠ 0 := ne_of_gt hAm have hAp_ne : h (x + y) - h x ≠ 0 := ne_of_gt hAp have hy_ne : y ≠ 0 := ne_of_gt hy have hξ_mul : Am * ξ = h (x + y) - h x := by dsimp only [Am, ξ, baXi]; field_simp [hAm_ne] have hIntR : ∫ s in x..(x + y), (h s - h x) = (∫ s in x..(x + y), h s) - y * h x := by rw [intervalIntegral.integral_sub (hh.continuous.intervalIntegrable _ _) (continuous_const.intervalIntegrable _ _)] simp only [intervalIntegral.integral_const, smul_eq_mul] ring have hIntL : ∫ s in (x - y)..x, (h x - h s) = y * h x - ∫ s in (x - y)..x, h s := by rw [intervalIntegral.integral_sub (continuous_const.intervalIntegrable _ _) (hh.continuous.intervalIntegrable _ _)] simp only [intervalIntegral.integral_const, smul_eq_mul] ring have hIntTot : ∫ s in (x - y)..(x + y), h s = (∫ s in (x - y)..x, h s) + (∫ s in x..(x + y), h s) := (intervalIntegral.integral_add_adjacent_intervals (hh.continuous.intervalIntegrable _ _) (hh.continuous.intervalIntegrable _ _)).symm have hξa : Am * (ξ * a) = (h (x + y) - h x) - (1 / y) * ((∫ s in x..(x + y), h s) - y * h x) := by have : Am * (ξ * a) = (Am * ξ) * a := by ring rw [this, hξ_mul] dsimp only [a, baA] rw [hIntR] field_simp [hAp_ne, hy_ne] have hb_mul : Am * b = (h x - h (x - y)) - (1 / y) * (y * h x - ∫ s in (x - y)..x, h s) := by dsimp only [Am, b, baB] rw [hIntL] field_simp [hAm_ne, hy_ne] refine ⟨?_, ?_, ?_, ?_⟩ · unfold baUx have : Am * (ξ + 1) = h (x + y) - h (x - y) := by have : Am * (ξ + 1) = Am * ξ + Am := by ring rw [this, hξ_mul]; dsimp only [Am]; ring rw [div_mul_eq_mul_div, this] · unfold baVx have : Am * (ξ - 1) = h (x + y) + h (x - y) - 2 * h x := by have : Am * (ξ - 1) = Am * ξ - Am := by ring rw [this, hξ_mul]; dsimp only [Am]; ring rw [div_mul_eq_mul_div, this] · unfold baUy rw [hIntTot] have hdiff : Am * (ξ * a - b) = Am * (ξ * a) - Am * b := by ring symm rw [div_mul_eq_mul_div, hdiff, hξa, hb_mul] field_simp [hy_ne] ring · unfold baVy have hsum : Am * (ξ * a + b) = Am * (ξ * a) + Am * b := by ring symm rw [div_mul_eq_mul_div, hsum, hξa, hb_mul] field_simp [hy_ne] ring /-- Exact Jacobian determinant identity in terms of `(ξ, a, b)`. -/ theorem baJacDet_eq {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (r x y : ℝ) (hy : 0 < y) : baJacDet h r x y = ((h x - h (x - y)) / (2 * y)) ^ 2 * (2 * r * baXi h x y * (baA h x y + baB h x y)) := by rcases baPartials_eq hh x y hy with ⟨hux, hvx, huy, hvy⟩ unfold baJacDet rw [hux, hvx, huy, hvy] ring /-- Exact Frobenius norm squared identity in terms of `(ξ, a, b)`. -/ theorem baJacFrobSq_eq {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (r x y : ℝ) (hy : 0 < y) : baJacFrobSq h r x y = ((h x - h (x - y)) / (2 * y)) ^ 2 * ((baXi h x y + 1) ^ 2 + (baXi h x y * baA h x y - baB h x y) ^ 2 + r ^ 2 * ((baXi h x y - 1) ^ 2 + (baXi h x y * baA h x y + baB h x y) ^ 2)) := by rcases baPartials_eq hh x y hy with ⟨hux, hvx, huy, hvy⟩ unfold baJacFrobSq rw [hux, hvx, huy, hvy] ring /-- Exact algebraic inequality `2 det ≤ ‖J‖_F²` for any real `2 × 2` matrix. -/ lemma two_mul_det_le_frobSq (ux uy vx vy r : ℝ) : 2 * (r * (ux * vy - uy * vx)) ≤ ux ^ 2 + uy ^ 2 + r ^ 2 * (vx ^ 2 + vy ^ 2) := by have h : 0 ≤ (ux - r * vy) ^ 2 + (uy + r * vx) ^ 2 := by positivity nlinarith /-- For any positive `det` and `frobSq ≥ 2 det`, `K = matDilatation frobSq det` satisfies `1 ≤ K` and `K + K⁻¹ = frobSq / det`. -/ lemma matDilatation_ge_one {frobSq det : ℝ} (hdet : 0 < det) (hge : 2 * det ≤ frobSq) : 1 ≤ matDilatation frobSq det := by unfold matDilatation have hsq : 0 ≤ Real.sqrt (frobSq ^ 2 - 4 * det ^ 2) := Real.sqrt_nonneg _ rw [one_le_div (by positivity)] linarith lemma matDilatation_add_inv {frobSq det : ℝ} (hdet : 0 < det) (hge : 2 * det ≤ frobSq) : matDilatation frobSq det + (matDilatation frobSq det)⁻¹ = frobSq / det := by have hK1 : 1 ≤ matDilatation frobSq det := matDilatation_ge_one hdet hge have hKpos : 0 < matDilatation frobSq det := by linarith have hdisc : 0 ≤ frobSq ^ 2 - 4 * det ^ 2 := by nlinarith set s := Real.sqrt (frobSq ^ 2 - 4 * det ^ 2) have hs2 : s ^ 2 = frobSq ^ 2 - 4 * det ^ 2 := Real.sq_sqrt hdisc have hmul : (frobSq + s) * (frobSq - s) = 4 * det ^ 2 := by nlinarith have hK : matDilatation frobSq det = (frobSq + s) / (2 * det) := rfl have hfp : frobSq + s ≠ 0 := by have : 0 < frobSq + s := by linarith [Real.sqrt_nonneg (frobSq ^ 2 - 4 * det ^ 2)] exact ne_of_gt this have hdet_ne : det ≠ 0 := ne_of_gt hdet rw [hK] field_simp [hfp, hdet_ne] nlinarith /-- Monotonicity bridge: if `K ≥ 1` and `K + K⁻¹ ≤ Q` (with `2 ≤ Q`), then `K ≤ (Q + √(Q² - 4)) / 2`. -/ lemma le_of_add_inv_le {K Q : ℝ} (hK : 1 ≤ K) (hQ : K + K⁻¹ ≤ Q) : K ≤ (Q + Real.sqrt (Q ^ 2 - 4)) / 2 := by have hKpos : 0 < K := by linarith have hQ2 : 2 ≤ Q := by have : 0 ≤ (K - 1) ^ 2 / K := by positivity have h2 : 2 ≤ K + K⁻¹ := by have : K + K⁻¹ - 2 = (K - 1) ^ 2 / K := by field_simp [ne_of_gt hKpos]; ring linarith linarith have hdisc : 0 ≤ Q ^ 2 - 4 := by nlinarith have hquad : (2 * K - Q) ^ 2 ≤ Q ^ 2 - 4 := by have h1 : K ^ 2 + 1 ≤ Q * K := by have := mul_le_mul_of_nonneg_right hQ (le_of_lt hKpos) rw [add_mul, inv_mul_cancel₀ (ne_of_gt hKpos)] at this nlinarith nlinarith have hsqrt : 2 * K - Q ≤ Real.sqrt (Q ^ 2 - 4) := by by_cases hsign : 2 * K - Q ≤ 0 · linarith [Real.sqrt_nonneg (Q ^ 2 - 4)] · push Not at hsign have := Real.sqrt_le_sqrt hquad rwa [Real.sqrt_sq (le_of_lt hsign)] at this linarith /-! ## 4. Integral Inequalities for `M`-Quasisymmetric Functions -/ /-- Exact symmetry ratio bounds `1 / M ≤ ξ ≤ M`. -/ theorem qs_xi_bounds {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : 1 / M ≤ baXi h x y ∧ baXi h x y ≤ M := by unfold baXi have hAm : 0 < h x - h (x - y) := sub_pos.mpr (hh.strictMono (by linarith)) have hM : 0 < M := hh.pos_M have hr := hh.right_le x y hy have hl := hh.left_le x y hy constructor · rw [div_le_div_iff₀ hM hAm]; linarith · rw [div_le_iff₀ hAm]; exact hr /-- **Core Unit-Interval Integral Bound (Beurling–Ahlfors 1956)**: For any `M`-quasisymmetric function `g : ℝ → ℝ` with `g 0 = 0` and `g 1 = c > 0`, `c / (M + 1) ≤ ∫ t in 0..1, g t ≤ M * c / (M + 1)`. -/ theorem qs_unit_integral_bounds {M : ℝ} {g : ℝ → ℝ} (hg : IsQuasisymmetric M g) (hg0 : g 0 = 0) : g 1 / (M + 1) ≤ (∫ t in (0 : ℝ)..1, g t) ∧ (∫ t in (0 : ℝ)..1, g t) ≤ M * g 1 / (M + 1) := by have hM : 0 < M := hg.pos_M have hM1 : 0 < M + 1 := by linarith set I := ∫ t in (0 : ℝ)..1, g t set I₁ := ∫ t in (0 : ℝ)..(1 / 2 : ℝ), g t set I₂ := ∫ t in (1 / 2 : ℝ)..1, g t have hI_split : I = I₁ + I₂ := (intervalIntegral.integral_add_adjacent_intervals (hg.continuous.intervalIntegrable _ _) (hg.continuous.intervalIntegrable _ _)).symm -- Change of variables: ∫_0^{1/2} g(2t) dt = I / 2 have hscale : ∫ t in (0 : ℝ)..(1 / 2 : ℝ), g (2 * t) = I / 2 := by have hc := intervalIntegral.integral_comp_mul_left g (by norm_num : (2 : ℝ) ≠ 0) (a := (0 : ℝ)) (b := (1 / 2 : ℝ)) simp only [mul_zero, smul_eq_mul] at hc have h2 : (2 : ℝ) * (1 / 2 : ℝ) = 1 := by norm_num rw [h2] at hc linarith -- Change of variables: ∫_0^{1/2} g(1 - t) dt = I₂ have hrefl1 : ∫ t in (0 : ℝ)..(1 / 2 : ℝ), g (1 - t) = I₂ := by rw [intervalIntegral.integral_comp_sub_left g (1 : ℝ)] have h1 : (1 : ℝ) - 1 / 2 = 1 / 2 := by norm_num have h2 : (1 : ℝ) - 0 = 1 := by norm_num rw [h1, h2] -- Change of variables: ∫_0^{1/2} g(1 - 2t) dt = I / 2 have hrefl2 : ∫ t in (0 : ℝ)..(1 / 2 : ℝ), g (1 - 2 * t) = I / 2 := by have hc1 := intervalIntegral.integral_comp_mul_left (fun u => g (1 - u)) (by norm_num : (2 : ℝ) ≠ 0) (a := (0 : ℝ)) (b := (1 / 2 : ℝ)) simp only [mul_zero, smul_eq_mul] at hc1 have h2 : (2 : ℝ) * (1 / 2 : ℝ) = 1 := by norm_num rw [h2, intervalIntegral.integral_comp_sub_left g (1 : ℝ)] at hc1 have h3 : (1 : ℝ) - 1 = 0 := by norm_num have h4 : (1 : ℝ) - 0 = 1 := by norm_num rw [h3, h4] at hc1 linarith -- Integrability helpers have hint_g : IntervalIntegrable g volume 0 (1 / 2 : ℝ) := hg.continuous.intervalIntegrable _ _ have hint_g2 : IntervalIntegrable (fun t => g (2 * t)) volume 0 (1 / 2 : ℝ) := (hg.continuous.comp (continuous_const.mul continuous_id)).intervalIntegrable _ _ have hint_r1 : IntervalIntegrable (fun t => g (1 - t)) volume 0 (1 / 2 : ℝ) := (hg.continuous.comp (continuous_const.sub continuous_id)).intervalIntegrable _ _ have hint_r2 : IntervalIntegrable (fun t => g (1 - 2 * t)) volume 0 (1 / 2 : ℝ) := (hg.continuous.comp (continuous_const.sub (continuous_const.mul continuous_id))).intervalIntegrable _ _ -- (A) From triple (0, t, 2t) for t ∈ [0, 1/2]: -- g(2t) - g(t) ≤ M * g(t) and g(t) ≤ M * (g(2t) - g(t)) have hA1 : I / 2 - I₁ ≤ M * I₁ := by have hpt : ∀ t ∈ uIcc (0 : ℝ) (1 / 2 : ℝ), g (2 * t) - g t ≤ M * g t := by intro t ht rw [uIcc_of_le (by norm_num : (0 : ℝ) ≤ 1 / 2)] at ht have h := hg.right_le_nonneg t t ht.1 have h1 : t + t = 2 * t := by ring have h2 : t - t = 0 := by ring rw [h1, h2, hg0, sub_zero] at h exact h have hint := intervalIntegral.integral_mono_on (by norm_num : (0 : ℝ) ≤ 1 / 2) (hint_g2.sub hint_g) (hint_g.const_mul M) (fun t ht => hpt t (by rwa [uIcc_of_le (by norm_num)])) rw [intervalIntegral.integral_sub hint_g2 hint_g, intervalIntegral.integral_const_mul, hscale] at hint exact hint have hA2 : I₁ ≤ M * (I / 2 - I₁) := by have hpt : ∀ t ∈ uIcc (0 : ℝ) (1 / 2 : ℝ), g t ≤ M * (g (2 * t) - g t) := by intro t ht rw [uIcc_of_le (by norm_num : (0 : ℝ) ≤ 1 / 2)] at ht have h := hg.left_le_nonneg t t ht.1 have h1 : t + t = 2 * t := by ring have h2 : t - t = 0 := by ring rw [h1, h2, hg0, sub_zero] at h exact h have hint := intervalIntegral.integral_mono_on (by norm_num : (0 : ℝ) ≤ 1 / 2) hint_g ((hint_g2.sub hint_g).const_mul M) (fun t ht => hpt t (by rwa [uIcc_of_le (by norm_num)])) rw [intervalIntegral.integral_const_mul, intervalIntegral.integral_sub hint_g2 hint_g, hscale] at hint exact hint -- (B) From triple (1 - 2t, 1 - t, 1) for t ∈ [0, 1/2]: -- g(1) - g(1 - t) ≤ M * (g(1 - t) - g(1 - 2t)) and reverse have hB1 : g 1 / 2 - I₂ ≤ M * (I₂ - I / 2) := by have hpt : ∀ t ∈ Icc (0 : ℝ) (1 / 2 : ℝ), g 1 - g (1 - t) ≤ M * (g (1 - t) - g (1 - 2 * t)) := by intro t ht have h := hg.right_le_nonneg (1 - t) t ht.1 have h1 : (1 - t) + t = 1 := by ring have h2 : (1 - t) - t = 1 - 2 * t := by ring rw [h1, h2] at h exact h have hint := intervalIntegral.integral_mono_on (by norm_num : (0 : ℝ) ≤ 1 / 2) ((continuous_const.intervalIntegrable _ _).sub hint_r1) ((hint_r1.sub hint_r2).const_mul M) hpt rw [intervalIntegral.integral_sub (continuous_const.intervalIntegrable _ _) hint_r1, intervalIntegral.integral_const_mul, intervalIntegral.integral_sub hint_r1 hint_r2, intervalIntegral.integral_const, hrefl1, hrefl2] at hint simp only [sub_zero, smul_eq_mul] at hint linarith have hB2 : I₂ - I / 2 ≤ M * (g 1 / 2 - I₂) := by have hpt : ∀ t ∈ Icc (0 : ℝ) (1 / 2 : ℝ), g (1 - t) - g (1 - 2 * t) ≤ M * (g 1 - g (1 - t)) := by intro t ht have h := hg.left_le_nonneg (1 - t) t ht.1 have h1 : (1 - t) + t = 1 := by ring have h2 : (1 - t) - t = 1 - 2 * t := by ring rw [h1, h2] at h exact h have hint := intervalIntegral.integral_mono_on (by norm_num : (0 : ℝ) ≤ 1 / 2) (hint_r1.sub hint_r2) (((continuous_const.intervalIntegrable _ _).sub hint_r1).const_mul M) hpt rw [intervalIntegral.integral_sub hint_r1 hint_r2, intervalIntegral.integral_const_mul, intervalIntegral.integral_sub (continuous_const.intervalIntegrable _ _) hint_r1, intervalIntegral.integral_const, hrefl1, hrefl2] at hint simp only [sub_zero, smul_eq_mul] at hint linarith -- Combine hA1, hB2 for lower bound and hA2, hB1 for upper bound: constructor · rw [div_le_iff₀ hM1] nlinarith · rw [le_div_iff₀ hM1] nlinarith /-- Classical box bounds `1 / (M + 1) ≤ a ≤ M / (M + 1)` for `baA`. -/ theorem qs_a_bounds {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : 1 / (M + 1) ≤ baA h x y ∧ baA h x y ≤ M / (M + 1) := by have hg := hh.renorm x y hy have hg0 : renorm h x y 0 = 0 := renorm_zero h x y have hξ_eq : renorm h x y 1 = baXi h x y := by simp [renorm, baXi] have hξ_pos : 0 < baXi h x y := by unfold baXi exact div_pos (sub_pos.mpr (hh.strictMono (by linarith))) (sub_pos.mpr (hh.strictMono (by linarith))) have hM1 : 0 < M + 1 := by linarith [hh.one_le] rcases qs_unit_integral_bounds hg hg0 with ⟨hlo, hhi⟩ rw [hξ_eq] at hlo hhi rw [baA_eq_renorm hh x y hy] constructor · have h1 : (∫ t in (0 : ℝ)..1, renorm h x y t) / baXi h x y ≤ M / (M + 1) := by rw [div_le_iff₀ hξ_pos] calc ∫ t in (0 : ℝ)..1, renorm h x y t ≤ M * baXi h x y / (M + 1) := hhi _ = M / (M + 1) * baXi h x y := by ring have : 1 - M / (M + 1) = 1 / (M + 1) := by field_simp [ne_of_gt hM1]; ring linarith · have h1 : 1 / (M + 1) ≤ (∫ t in (0 : ℝ)..1, renorm h x y t) / baXi h x y := by rw [le_div_iff₀ hξ_pos] calc 1 / (M + 1) * baXi h x y = baXi h x y / (M + 1) := by ring _ ≤ ∫ t in (0 : ℝ)..1, renorm h x y t := hlo have : 1 - 1 / (M + 1) = M / (M + 1) := by field_simp [ne_of_gt hM1]; ring linarith /-- Mirror of `h`: `t ↦ -g(-t)` is also `M`-quasisymmetric. -/ lemma IsQuasisymmetric.neg_comp_neg {M : ℝ} {g : ℝ → ℝ} (hg : IsQuasisymmetric M g) : IsQuasisymmetric M (fun t => -g (-t)) := by refine ⟨hg.one_le, ?_, ?_, ?_, ?_⟩ · exact (hg.continuous.comp continuous_neg).neg · intro s₁ s₂ hs exact neg_lt_neg (hg.strictMono (neg_lt_neg hs)) · intro u t ht have h := hg.left_le (-u) t ht have h1 : -(u + t) = -u - t := by ring have h2 : -(u - t) = -u + t := by ring rw [h1, h2] linarith · intro u t ht have h := hg.right_le (-u) t ht have h1 : -(u + t) = -u - t := by ring have h2 : -(u - t) = -u + t := by ring rw [h1, h2] linarith /-- Classical box bounds `1 / (M + 1) ≤ b ≤ M / (M + 1)` for `baB`. -/ theorem qs_b_bounds {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : 1 / (M + 1) ≤ baB h x y ∧ baB h x y ≤ M / (M + 1) := by have hg := (hh.renorm x y hy).neg_comp_neg have hg0 : -renorm h x y (-0) = 0 := by simp [renorm_zero] have hg1 : -renorm h x y (-1) = 1 := by rw [renorm_neg_one hh x y hy]; ring have hM1 : 0 < M + 1 := by linarith [hh.one_le] rcases qs_unit_integral_bounds hg hg0 with ⟨hlo, hhi⟩ rw [hg1] at hlo hhi have hrefl : ∫ t in (0 : ℝ)..1, (-renorm h x y (-t)) = ∫ t in (-1 : ℝ)..0, (-renorm h x y t) := by rw [intervalIntegral.integral_comp_neg (fun u => -renorm h x y u)] simp rw [hrefl] at hlo hhi rw [baB_eq_renorm hh x y hy] constructor · have : 1 - M * 1 / (M + 1) = 1 / (M + 1) := by field_simp [ne_of_gt hM1]; ring linarith · have : 1 - 1 / (M + 1) = M / (M + 1) := by field_simp [ne_of_gt hM1]; ring linarith /-- **Strict Jacobian Positivity**: for every `M`-quasisymmetric `h` and `r > 0`, `det DF_r[h](x, y) > 0` everywhere on `ℍ`. -/ theorem baJacDet_pos {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) {r x y : ℝ} (hr : 0 < r) (hy : 0 < y) : 0 < baJacDet h r x y := by rw [baJacDet_eq hh r x y hy] have hAm : 0 < h x - h (x - y) := sub_pos.mpr (hh.strictMono (by linarith)) have hM := hh.pos_M have hM1 : 0 < M + 1 := by linarith [hh.one_le] have hξ : 0 < baXi h x y := lt_of_lt_of_le (by positivity) (qs_xi_bounds hh x y hy).1 have ha : 0 < baA h x y := lt_of_lt_of_le (by positivity) (qs_a_bounds hh x y hy).1 have hb : 0 < baB h x y := lt_of_lt_of_le (by positivity) (qs_b_bounds hh x y hy).1 positivity /-- **Exact Pointwise Dilatation Identity**: `K(DF_r[h](x, y)) + K(DF_r[h](x, y))⁻¹ = baQ (baXi h x y) (baA h x y) (baB h x y) r`. -/ theorem baDilatation_add_inv_eq {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) {r x y : ℝ} (hr : 0 < r) (hy : 0 < y) : baDilatation h r x y + (baDilatation h r x y)⁻¹ = baQ (baXi h x y) (baA h x y) (baB h x y) r := by have hdet : 0 < baJacDet h r x y := baJacDet_pos hh hr hy have hge : 2 * baJacDet h r x y ≤ baJacFrobSq h r x y := two_mul_det_le_frobSq (baUx h x y) (baUy h x y) (baVx h x y) (baVy h x y) r unfold baDilatation rw [matDilatation_add_inv hdet hge, baJacFrobSq_eq hh r x y hy, baJacDet_eq hh r x y hy] have hAm : 0 < h x - h (x - y) := sub_pos.mpr (hh.strictMono (by linarith)) have hscale : ((h x - h (x - y)) / (2 * y)) ^ 2 ≠ 0 := by positivity unfold baQ exact mul_div_mul_left _ _ hscale theorem baDilatation_ge_one {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) {r x y : ℝ} (hr : 0 < r) (hy : 0 < y) : 1 ≤ baDilatation h r x y := matDilatation_ge_one (baJacDet_pos hh hr hy) (two_mul_det_le_frobSq (baUx h x y) (baUy h x y) (baVx h x y) (baVy h x y) r) /-- **Coupled Integral Inequality (Right)**: integrating the `M`-quasisymmetric triple `(-1, -t, 1 - 2t)` over `t ∈ [0, 1]` gives `ξ · a + (2M + 1) · b ≥ ξ + 1`. -/ theorem qs_coupled_ineq_right {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : baXi h x y + 1 ≤ baXi h x y * baA h x y + (2 * M + 1) * baB h x y := by set g := renorm h x y have hg : IsQuasisymmetric M g := hh.renorm x y hy have hg1 : g 1 = baXi h x y := by simp [g, renorm, baXi] have hgm1 : g (-1) = -1 := renorm_neg_one hh x y hy have hξ_pos : 0 < baXi h x y := lt_of_lt_of_le (by positivity [hh.pos_M]) (qs_xi_bounds hh x y hy).1 set Ip := ∫ t in (0 : ℝ)..1, g t set Im := ∫ t in (-1 : ℝ)..0, (-g t) have hIp_eq : Ip = baXi h x y * (1 - baA h x y) := by rw [baA_eq_renorm hh x y hy] field_simp [ne_of_gt hξ_pos] ring have hIm_eq : Im = 1 - baB h x y := by rw [baB_eq_renorm hh x y hy] ring -- Change of variables: ∫_0^1 g(1 - 2t) dt = (Ip - Im) / 2 have hcomp1 : ∫ t in (0 : ℝ)..1, g (1 - 2 * t) = (Ip - Im) / 2 := by have hc1 := intervalIntegral.integral_comp_mul_left (fun u => g (1 - u)) (by norm_num : (2 : ℝ) ≠ 0) (a := (0 : ℝ)) (b := 1) simp only [mul_zero, mul_one, smul_eq_mul] at hc1 rw [intervalIntegral.integral_comp_sub_left g (1 : ℝ)] at hc1 have h1 : (1 : ℝ) - 2 = -1 := by norm_num have h2 : (1 : ℝ) - 0 = 1 := by norm_num rw [h1, h2] at hc1 have hadj : (∫ u in (-1 : ℝ)..1, g u) = (∫ u in (-1 : ℝ)..0, g u) + (∫ u in (0 : ℝ)..1, g u) := (intervalIntegral.integral_add_adjacent_intervals (hg.continuous.intervalIntegrable _ _) (hg.continuous.intervalIntegrable _ _)).symm have hneg : (∫ u in (-1 : ℝ)..0, g u) = -Im := by simp only [Im, intervalIntegral.integral_neg, neg_neg] linarith -- Change of variables: ∫_0^1 g(-t) dt = -Im have hcomp2 : ∫ t in (0 : ℝ)..1, g (-t) = -Im := by have hc := intervalIntegral.integral_comp_neg g (a := (0 : ℝ)) (b := 1) simp only [neg_zero] at hc rw [hc] simp only [Im, intervalIntegral.integral_neg, neg_neg] -- Pointwise M-QS on (-1, -t, 1 - 2t) for t ∈ [0, 1] (step 1 - t ≥ 0): -- g(1 - 2t) - g(-t) ≤ M * (g(-t) - g(-1)) = M * (g(-t) + 1) have hpt : ∀ t ∈ Icc (0 : ℝ) 1, g (1 - 2 * t) - g (-t) ≤ M * (g (-t) + 1) := by intro t ht have h := hg.right_le_nonneg (-t) (1 - t) (by linarith [ht.2]) have h1 : -t + (1 - t) = 1 - 2 * t := by ring have h2 : -t - (1 - t) = -1 := by ring rw [h1, h2, hgm1] at h linarith have hint1 : IntervalIntegrable (fun t => g (1 - 2 * t)) volume 0 1 := (hg.continuous.comp (continuous_const.sub (continuous_const.mul continuous_id))).intervalIntegrable _ _ have hint2 : IntervalIntegrable (fun t => g (-t)) volume 0 1 := (hg.continuous.comp continuous_neg).intervalIntegrable _ _ have hint := intervalIntegral.integral_mono_on (by norm_num : (0 : ℝ) ≤ 1) (hint1.sub hint2) ((hint2.add (continuous_const.intervalIntegrable _ _)).const_mul M) hpt rw [intervalIntegral.integral_sub hint1 hint2, intervalIntegral.integral_const_mul, intervalIntegral.integral_add hint2 (continuous_const.intervalIntegrable _ _), intervalIntegral.integral_const, hcomp1, hcomp2] at hint simp only [sub_zero, smul_eq_mul, mul_one] at hint rw [hIp_eq, hIm_eq] at hint linarith /-- **Coupled Integral Inequality (Left)**: integrating the `M`-quasisymmetric triple `(2t - 1, t, 1)` over `t ∈ [0, 1]` gives `(2M + 1) · ξ · a + b ≥ ξ + 1`. -/ theorem qs_coupled_ineq_left {M : ℝ} {h : ℝ → ℝ} (hh : IsQuasisymmetric M h) (x y : ℝ) (hy : 0 < y) : baXi h x y + 1 ≤ (2 * M + 1) * baXi h x y * baA h x y + baB h x y := by set g := renorm h x y have hg : IsQuasisymmetric M g := hh.renorm x y hy have hg1 : g 1 = baXi h x y := by simp [g, renorm, baXi] have hξ_pos : 0 < baXi h x y := lt_of_lt_of_le (by positivity [hh.pos_M]) (qs_xi_bounds hh x y hy).1 set Ip := ∫ t in (0 : ℝ)..1, g t set Im := ∫ t in (-1 : ℝ)..0, (-g t) have hIp_eq : Ip = baXi h x y * (1 - baA h x y) := by rw [baA_eq_renorm hh x y hy] field_simp [ne_of_gt hξ_pos] ring have hIm_eq : Im = 1 - baB h x y := by rw [baB_eq_renorm hh x y hy] ring -- Change of variables: ∫_0^1 g(2t - 1) dt = (Ip - Im) / 2 have hcomp1 : ∫ t in (0 : ℝ)..1, g (2 * t - 1) = (Ip - Im) / 2 := by have hc1 := intervalIntegral.integral_comp_mul_left (fun u => g (u - 1)) (by norm_num : (2 : ℝ) ≠ 0) (a := (0 : ℝ)) (b := 1) simp only [mul_zero, mul_one, smul_eq_mul] at hc1 rw [intervalIntegral.integral_comp_sub_right g (1 : ℝ)] at hc1 have h1 : (0 : ℝ) - 1 = -1 := by norm_num have h2 : (2 : ℝ) - 1 = 1 := by norm_num rw [h1, h2] at hc1 have hadj : (∫ u in (-1 : ℝ)..1, g u) = (∫ u in (-1 : ℝ)..0, g u) + (∫ u in (0 : ℝ)..1, g u) := (intervalIntegral.integral_add_adjacent_intervals (hg.continuous.intervalIntegrable _ _) (hg.continuous.intervalIntegrable _ _)).symm have hneg : (∫ u in (-1 : ℝ)..0, g u) = -Im := by simp only [Im, intervalIntegral.integral_neg, neg_neg] linarith -- Pointwise M-QS on (2t - 1, t, 1) for t ∈ [0, 1] (step 1 - t ≥ 0): -- g(t) - g(2t - 1) ≤ M * (g(1) - g(t)) have hpt : ∀ t ∈ Icc (0 : ℝ) 1, g t - g (2 * t - 1) ≤ M * (baXi h x y - g t) := by intro t ht have h := hg.left_le_nonneg t (1 - t) (by linarith [ht.2]) have h1 : t + (1 - t) = 1 := by ring have h2 : t - (1 - t) = 2 * t - 1 := by ring rw [h1, h2, hg1] at h exact h have hint1 : IntervalIntegrable g volume 0 1 := hg.continuous.intervalIntegrable _ _ have hint2 : IntervalIntegrable (fun t => g (2 * t - 1)) volume 0 1 := (hg.continuous.comp ((continuous_const.mul continuous_id).sub continuous_const)).intervalIntegrable _ _ have hint := intervalIntegral.integral_mono_on (by norm_num : (0 : ℝ) ≤ 1) (hint1.sub hint2) (((continuous_const.intervalIntegrable _ _).sub hint1).const_mul M) hpt rw [intervalIntegral.integral_sub hint1 hint2, intervalIntegral.integral_const_mul, intervalIntegral.integral_sub (continuous_const.intervalIntegrable _ _) hint1, intervalIntegral.integral_const, hcomp1] at hint simp only [sub_zero, smul_eq_mul, one_mul] at hint have hIp' : (∫ t in (0 : ℝ)..1, g t) = Ip := rfl rw [hIp', hIp_eq, hIm_eq] at hint linarith #print axioms hasDerivAt_baU_x #print axioms hasDerivAt_baV_x #print axioms hasDerivAt_baU_y #print axioms hasDerivAt_baV_y #print axioms baJacDet_pos #print axioms baDilatation_add_inv_eq #print axioms qs_xi_bounds #print axioms qs_a_bounds #print axioms qs_b_bounds #print axioms qs_coupled_ineq_left #print axioms qs_coupled_ineq_right end BeurlingAhlforsCore