math / data /lean /OAI /Geometry /Perimeter /Regularity /EllipticLinearStep.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
5.02 kB
import OAI.Geometry.Perimeter.Regularity.EllipticContinuousComparison
namespace OAI
noncomputable section
open Set Filter MeasureTheory
open scoped Topology ENNReal ContDiff InnerProductSpace
namespace RPISingularHarnack
variable {n : β„•}
def WeakLinearEquation (A : Euc n β†’ Euc n β†’L[ℝ] Euc n) (f : Euc n β†’ ℝ)
(F : Euc n β†’ Euc n) (U : Set (Euc n)) : Prop :=
βˆ€ Ο† : SmoothLocalTest U,
(∫ x, inner ℝ (A x (gradient f x)) (gradient Ο†.val x)) =
∫ x, inner ℝ (F x) (gradient Ο†.val x)
def linearResidual (A : Euc n β†’ Euc n β†’L[ℝ] Euc n) (f : Euc n β†’ ℝ)
(F : Euc n β†’ Euc n) (Aβ‚€ : Euc n β†’L[ℝ] Euc n) (Fβ‚€ q : Euc n) (x : Euc n) :=
(gradient f x-q) - A x (gradient f x) + F x + (Aβ‚€ q-Fβ‚€)
theorem linearResidual_continuous {A : Euc n β†’ Euc n β†’L[ℝ] Euc n}
{f : Euc n β†’ ℝ} {F : Euc n β†’ Euc n} (hA : Continuous A) (hf : ContDiff ℝ 1 f)
(hF : Continuous F) (Aβ‚€ : Euc n β†’L[ℝ] Euc n) (Fβ‚€ q : Euc n) :
Continuous (linearResidual A f F Aβ‚€ Fβ‚€ q) :=
((((gradient_continuous_C1 hf).sub continuous_const).sub
(hA.clm_apply (gradient_continuous_C1 hf))).add hF).add continuous_const
theorem linearResidual_pairing {A : Euc n β†’ Euc n β†’L[ℝ] Euc n}
{f : Euc n β†’ ℝ} {F : Euc n β†’ Euc n} {U : Set (Euc n)}
(hA : Continuous A) (hf : ContDiff ℝ 1 f) (hF : Continuous F)
(h : WeakLinearEquation A f F U) (Aβ‚€ : Euc n β†’L[ℝ] Euc n) (Fβ‚€ q : Euc n)
(Ο† : SmoothLocalTest U) :
(∫ x, inner ℝ (gradient (fun y ↦ f y-inner ℝ q y) x) (gradient Ο†.val x)) =
∫ x, inner ℝ (linearResidual A f F Aβ‚€ Fβ‚€ q x) (gradient Ο†.val x) := by
have hg := inner_gradient_pairing_integrable (gradient_continuous_C1 hf) Ο†
have hq := inner_gradient_pairing_integrable (continuous_const : Continuous (fun _ : Euc n ↦ q)) Ο†
have hAf := inner_gradient_pairing_integrable (hA.clm_apply (gradient_continuous_C1 hf)) Ο†
have hFi := inner_gradient_pairing_integrable hF Ο†
have hc := inner_gradient_pairing_integrable
(continuous_const : Continuous (fun _ : Euc n ↦ Aβ‚€ q-Fβ‚€)) Ο†
simp_rw [gradient_sub_linear (hf.differentiable (by simp)),linearResidual,inner_add_left,inner_sub_left]
simp_rw [← inner_sub_left (Aβ‚€ q) Fβ‚€]
erw [integral_add ((hg.sub hq).sub hAf |>.add hFi) hc,
integral_add ((hg.sub hq).sub hAf) hFi,integral_sub (hg.sub hq) hAf,
constant_gradient_pairing_zero Ο† (Aβ‚€ q-Fβ‚€),h Ο†]
ring_nf
rfl
theorem linearResidual_bound {A : Euc n β†’ Euc n β†’L[ℝ] Euc n}
{f : Euc n β†’ ℝ} {F : Euc n β†’ Euc n} (Aβ‚€ : Euc n β†’L[ℝ] Euc n) (Fβ‚€ q x : Euc n)
{Ξ΄ Ξ± Ξ² : ℝ} (hΞ΄ : β€–ContinuousLinearMap.id ℝ (Euc n)-A x‖≀δ)
(hΞ± : β€–Aβ‚€-A x‖≀α) (hΞ² : β€–F x-F₀‖≀β) :
β€–linearResidual A f F Aβ‚€ Fβ‚€ q x‖≀δ*β€–gradient f x-qβ€–+Ξ±*β€–qβ€–+Ξ² := by
have he : linearResidual A f F Aβ‚€ Fβ‚€ q x =
(ContinuousLinearMap.id ℝ (Euc n)-A x) (gradient f x-q)+(Aβ‚€-A x) q+(F x-Fβ‚€) := by
simp only [linearResidual,sub_apply,ContinuousLinearMap.id_apply,map_sub]
abel
rw [he]
have h1 := (ContinuousLinearMap.id ℝ (Euc n)-A x).le_opNorm (gradient f x-q)
have h2 := (Aβ‚€-A x).le_opNorm q
have hh := norm_add_le ((ContinuousLinearMap.id ℝ (Euc n)-A x) (gradient f x-q)+(Aβ‚€-A x) q) (F x-Fβ‚€)
have hh' := norm_add_le ((ContinuousLinearMap.id ℝ (Euc n)-A x) (gradient f x-q)) ((Aβ‚€-A x) q)
have h1' := mul_le_mul_of_nonneg_right hΞ΄ (norm_nonneg (gradient f x-q))
have h2' := mul_le_mul_of_nonneg_right hΞ± (norm_nonneg q)
linarith
theorem continuous_residual_energy_bound {e W : Euc n β†’ Euc n} (he : Continuous e)
(hW : Continuous W) {Ξ΄ b : ℝ} (hΞ΄ : 0≀δ) (hb : 0≀b)
(h : βˆ€ x∈Metric.ball (0:Euc n) 1, β€–e x‖≀δ*β€–W xβ€–+b) :
(∫ x in Metric.ball (0:Euc n) 1, β€–e xβ€–^2) ≀
2*Ξ΄^2*(∫ x in Metric.ball (0:Euc n) 1, β€–W xβ€–^2)+2*b^2*volume.real (Metric.ball (0:Euc n) 1) := by
have hI (G : Euc n β†’ Euc n) (hG : Continuous G) :
IntegrableOn (fun x ↦ β€–G xβ€–^2) (Metric.ball (0:Euc n) 1) volume :=
((hG.norm.pow 2).continuousOn.integrableOn_compact (isCompact_closedBall 0 1)).mono_set Metric.ball_subset_closedBall
have : IsFiniteMeasure (volume.restrict (Metric.ball (0:Euc n) 1)) := ⟨by
rw [Measure.restrict_apply_univ]; exact measure_ball_lt_top⟩
calc
_ ≀ ∫ x in Metric.ball (0:Euc n) 1, 2*Ξ΄^2*β€–W xβ€–^2+2*b^2 := by
apply integral_mono_ae (hI e he) (((hI W hW).const_mul _).add (integrable_const _))
filter_upwards [ae_restrict_mem measurableSet_ball] with x hx
have hsq := (sq_le_sqβ‚€ (norm_nonneg (e x))
(add_nonneg (mul_nonneg hΞ΄ (norm_nonneg (W x))) hb)).2 (h x hx)
change β€–e xβ€–^2≀2*Ξ΄^2*β€–W xβ€–^2+2*b^2
nlinarith [sq_nonneg (Ξ΄*β€–W xβ€–-b)]
_ = _ := by rw [integral_add ((hI W hW).const_mul _) (integrable_const _),integral_const_mul,integral_const]; simp [smul_eq_mul,mul_comm]
end RPISingularHarnack
end
end OAI