Offline · exact source
Exact Lean source

HybridIntegralBounds

formalization/Cloning/HybridIntegralBounds.lean

Source hash: 38f27ec177f0e561a759ad2dde711236e1bf27d563ddfe62bf55bf21e05949dc

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Mathlib.MeasureTheory.Function.L2Space
2import Mathlib.MeasureTheory.Integral.Bochner.Basic
3import Mathlib.Analysis.SpecialFunctions.Pow.Real
4 
5/-! Cauchy–Schwarz for square roots of integrable densities on arbitrary
6measure spaces, including infinite Lebesgue measures. -/
7noncomputable section
8open MeasureTheory Filter
9namespace Cloning.Hybrid
10variable {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
11 
12lemma sqrt_mul_sqrt_le_half_add {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) :
13    Real.sqrt a * Real.sqrt b ≤ (a + b) / 2 := by
14  have h := sq_nonneg (Real.sqrt a - Real.sqrt b)
15  nlinarith [Real.sq_sqrt ha, Real.sq_sqrt hb]
16 
17lemma integrable_sqrt_mul_sqrt {f g : Ω → ℝ} (hf : Integrable f μ)
18    (hg : Integrable g μ) (hfn : ∀ x, 0 ≤ f x) (hgn : ∀ x, 0 ≤ g x) :
19    Integrable (fun x => Real.sqrt (f x) * Real.sqrt (g x)) μ := by
20  apply ((hf.add hg).div_const 2).mono'
21    ((Real.continuous_sqrt.comp_aestronglyMeasurable hf.aestronglyMeasurable).mul
22      (Real.continuous_sqrt.comp_aestronglyMeasurable hg.aestronglyMeasurable))
23  exact Eventually.of_forall fun x => by
24    dsimp only [Pi.mul_apply, Pi.add_apply]
25    rw [Real.norm_of_nonneg (mul_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _))]
26    exact sqrt_mul_sqrt_le_half_add (hfn x) (hgn x)
27 
28lemma memLp_two_sqrt {f : Ω → ℝ} (hf : Integrable f μ) (hfn : ∀ x, 0 ≤ f x) :
29    MemLp (fun x => Real.sqrt (f x)) 2 μ := by
30  apply (memLp_two_iff_integrable_sq
31    (Real.continuous_sqrt.comp_aestronglyMeasurable hf.aestronglyMeasurable)).mpr
32  simpa only [Real.sq_sqrt (hfn _)] using hf
33 
34/-- Integral Cauchy–Schwarz directly in the form required for hybrid fidelity. -/
35theorem integral_sqrt_mul_sqrt_le {f g : Ω → ℝ} (hf : Integrable f μ)
36    (hg : Integrable g μ) (hfn : ∀ x, 0 ≤ f x) (hgn : ∀ x, 0 ≤ g x) :
37    (∫ x, Real.sqrt (f x) * Real.sqrt (g x) ∂μ) ≤
38      Real.sqrt (∫ x, f x ∂μ) * Real.sqrt (∫ x, g x ∂μ) := by
39  have hpq : (2 : ℝ).HolderConjugate 2 := by
40    apply Real.holderConjugate_iff.mpr
41    norm_num
42  have h := integral_mul_le_Lp_mul_Lq_of_nonneg hpq
43    (Eventually.of_forall fun x => Real.sqrt_nonneg (f x))
44    (Eventually.of_forall fun x => Real.sqrt_nonneg (g x))
45    (by simpa using memLp_two_sqrt hf hfn)
46    (by simpa using memLp_two_sqrt hg hgn)
47  simpa only [Real.rpow_two, Real.sq_sqrt (hfn _), Real.sq_sqrt (hgn _),
48    ← Real.sqrt_eq_rpow] using h
49 
50end Cloning.Hybrid