openAI-math-dataset / lean /OAI /Geometry /RCD /Sobolev /BochnerSourceFunctionals.lean
roseking's picture
Add lean source and binary files (part 73)
b37e936 verified
Raw History Blame Contribute Delete
1.94 kB
17
def boundedIntegralFunctional (ρ : X → ℝ) (hρ : Integrable ρ μ) :
    (X →ᵇ ℝ) →ₗ[ℝ] ℝ where
body · 12 lines
  toFun v := ∫ x, v x * ρ x ∂μ
  map_add' v w := by
    have hi (f : X →ᵇ ℝ) : Integrable (fun x => f x * ρ x) μ :=
      hρ.bdd_mul f.continuous.aestronglyMeasurable
        (Eventually.of_forall fun x => f.norm_coe_le_norm x)
    change (∫ x, (v x + w x) * ρ x ∂μ) = _
    simp_rw [add_mul]
    exact integral_add (hi v) (hi w)
  map_smul' c v := by
    change (∫ x, (c * v x) * ρ x ∂μ) = c * ∫ x, v x * ρ x ∂μ
    simp_rw [mul_assoc]
    exact integral_const_mul c _
34
def gammaSourceFunctional (d : Lp ℝ 2 μ) (u : SobolevSpace μ hQ) (L : ℝ≥0)
    (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ u x ≤ L) :
    SobolevSpace μ hQ →ₗ[ℝ] ℝ where
body · 13 lines
  toFun w := weightedGamma μ hQ d u w
  map_add' v w := by
    have hi (f : SobolevSpace μ hQ) : Integrable (fun x => d x * localGamma μ hQ u f x) μ :=
      (Lp.memLp d).integrable_mul (localGamma_memLp_of_bounded_gradient μ hQ u f L hu)
    unfold weightedGamma
    rw [← integral_add (hi v) (hi w)]
    apply integral_congr_ae
    filter_upwards [localGamma_add_right μ hQ u v w] with x hx
    rw [hx, mul_add]
  map_smul' c v := by
    change weightedGamma μ hQ d u (c • v) = c * weightedGamma μ hQ d u v
    rw [weightedGamma_comm μ hQ d u (c • v), weightedGamma_smul_left,
      weightedGamma_comm μ hQ d v u]