lemmaweak_pairing_congr {K : SetSpace} {u v g : Space→ℝ}
(he : ∀ x ∈K, u x = v x) (hg : ContDiffℝ2 g) (hs : tsupport g ⊆K) :
(∫ x, u x*Δ g x) = ∫ x, v x*Δ g x :=by
proof · 6
lines
apply integral_congr_ae
exact Eventually.of_forall fun x =>byby_cases hx : Δ g x = 0
· simp only [hx,mul_zero]
· change u x * Δ g x = v x * Δ g x
rw [he x (hs (tfLaplacian_support hg hx))]
theoremweak_strict_source_comparison {K : SetSpace} (hK : IsCompactK)
{u F : Space→ℝ} (hu : ContinuousOn u K) (hF : ContinuousOnFK)
(hpos : ∀ x ∈ interior K, 0 < u x →0 < F x)
(hb : ∀ x ∈K, x ∉ interior K→ u x ≤0)
(hw : ∀g : Space→ℝ, ContDiffℝ2 g →HasCompactSupport g →
tsupport g ⊆ interior K→ (∀ x, 0≤ g x) →
(∫ x, F x*g x) ≤∫ x, u x*Δ g x) : ∀ x ∈K, u x ≤0:=by
proof · 34
lines
intro x hx
by_contra! hux
obtain ⟨y,hy,hmax⟩ := hK.exists_isMaxOn ⟨x,hx⟩ hu
havehuy : 0 < u y := hux.trans_le (hmax hx)
havehyi : y ∈ interior K:=by
by_contra hn
exact (not_lt_of_ge (hb y hy hn)) huy
let c :=F y/2havehc : 0 < c := half_pos (hpos y hyi huy)
havehcf : c < F y := half_lt_self (hpos y hyi huy)
havehnb : {z | c < F z} ∩ interior K∈ 𝓝 y :=
inter_mem ((hF.continuousAt (mem_interior_iff_mem_nhds.mp hyi)).preimage_mem_nhds
(Ioi_mem_nhds hcf)) (isOpen_interior.mem_nhds hyi)
obtain ⟨r,hr,hrs⟩ :=Metric.mem_nhds_iff.mp hnb
havehbsub : closedBall y (r/2) ⊆ ball y r := closedBall_subset_ball (half_lt_self hr)
havehsub : closedBall y (r/2) ⊆K:=fun z hz => interior_subset (hrs (hbsub hz)).2
apply weak_laplacian_no_positive_at_max_local (hu.mono hsub) (half_pos hr) hc
· intro z hz
exact hmax (hsub (ball_subset_closedBall hz))
· intro g hg hcg hs hn
havehsi : tsupport g ⊆ interior K:=fun z hz =>
(hrs (hbsub (ball_subset_closedBall (hs hz)))).2have hiF := continuousOn_mul_integrable_support hK hF hg.continuous
((subset_tsupport g).trans (hsi.trans interior_subset))
calc
c*(∫ z, g z) = ∫ z, c*g z := (integral_const_mul c g).symm
_ ≤∫ z, F z*g z :=by
apply integral_mono ((hg.continuous.integrable_of_hasCompactSupport hcg).const_mul c) hiF
intro z
by_cases hz : g z = 0
· simp only [hz,mul_zero,le_refl]
· exact mul_le_mul_of_nonneg_right
((hrs (hbsub (ball_subset_closedBall (hs (subset_tsupport g hz))))).1.le) (hn z)
_ ≤ _ := hw g hg hcg hsi hn