cfahlgren1/math / lean /OAI /Geometry /NodalSets /Elliptic /CompactWeightedDivergenceIntegral.lean
cfahlgren1's picture
download
raw
2.39 kB
import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts
import OAI.Geometry.NodalSets.Coefficients.GlobalCorrection
namespace OAI
namespace Yau
open Set MeasureTheory
open scoped ContDiff
noncomputable section
variable {d : ℕ}
lemma integral_directional_derivative_compact_zero (g : Coord d → ℝ)
(hg : ContDiff ℝ ∞ g) (hc : HasCompactSupport g) (v : Coord d) :
(∫ x, fderiv ℝ g x v) = 0 := by
have hd : ContDiff ℝ ∞ (fun x ↦ fderiv ℝ g x v) :=
(hg.fderiv_right (by simp)).clm_apply contDiff_const
have hi : Integrable (fun x ↦ fderiv ℝ g x v) := hd.continuous.integrable_of_hasCompactSupport (hc.fderiv_apply ℝ v)
have h := integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable
(μ := volume) (f := fun _ : Coord d ↦ (1:ℝ)) (g := g) (v := v)
(by simp) (by simpa using hi)
(by simpa using hg.continuous.integrable_of_hasCompactSupport hc)
(fun _ _ ↦ differentiableAt_const 1) (fun x _ ↦ hg.differentiable (by simp) x)
simpa using h
theorem integral_weightedDiv_compact_zero (gamma : Coord d → ℝ)
(hg : ContDiff ℝ ∞ gamma) (hgn : ∀ x, gamma x ≠ 0)
(V : Coord d → Coord d) (hV : ∀ i, ContDiff ℝ ∞ (fun x ↦ V x i))
(hc : ∀ i, HasCompactSupport (fun x ↦ V x i)) :
Integrable (fun x ↦ gamma x*weightedDiv gamma V x) ∧
(∫ x, gamma x*weightedDiv gamma V x) = 0 := by
let W : Fin d → Coord d → ℝ := fun i x ↦ gamma x*V x i
have hW (i : Fin d) : ContDiff ℝ ∞ (W i) := hg.mul (hV i)
have hWc (i : Fin d) : HasCompactSupport (W i) := (hc i).mul_left
have hd (i : Fin d) : ContDiff ℝ ∞ (fun x ↦ fderiv ℝ (W i) x (Pi.single i 1)) :=
((hW i).fderiv_right (by simp)).clm_apply contDiff_const
have hi (i : Fin d) : Integrable (fun x ↦ fderiv ℝ (W i) x (Pi.single i 1)) :=
(hd i).continuous.integrable_of_hasCompactSupport ((hWc i).fderiv_apply ℝ (Pi.single i 1))
have he : (fun x ↦ gamma x*weightedDiv gamma V x) =
(fun x ↦ ∑ i, fderiv ℝ (W i) x (Pi.single i 1)) := by
funext x
simp only [weightedDiv,coordDiv,coordPartial,← mul_assoc,mul_inv_cancel₀ (hgn x),one_mul,W]
rw [he]
refine ⟨integrable_finsetSum _ (fun i _ ↦ hi i),?_⟩
rw [integral_finsetSum _ (fun i _ ↦ hi i)]
simp only [integral_directional_derivative_compact_zero _ (hW _) (hWc _),Finset.sum_const_zero]
end
end Yau
end OAI

Xet Storage Details

Size:
2.39 kB
·
Xet hash:
92ba95f443df2f8a4125648144e5f9a0824d6cd834d3a42a3121598524e43e10

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.