Download data/lean/OAI/Analysis/Conductivity/Sources/PhysicalC1Pullback.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.33 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Sources/PhysicalC1Pullback.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Conductivity/Sources/PhysicalC1Pullback.lean
-
curl -L -o PhysicalC1Pullback.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Conductivity/Sources/PhysicalC1Pullback.lean
5.33 kB
| import Mathlib | |
| import OAI.Analysis.Conductivity.Variational.UniformC1Bounds | |
| import OAI.Analysis.Conductivity.Sources.LocalPhysicalCorrection | |
| namespace OAI | |
| noncomputable section | |
| namespace ScalarConductivity | |
| open Set MeasureTheory Filter Topology Matrix | |
| open scoped Matrix.Norms.Elementwise | |
| def inverseSourceWeight (X : OpenPartialHomeomorph Coord3 Coord3) (x : Coord3) : β := | |
| |(fderiv β X.symm (X x)).det|β»ΒΉ | |
| lemma inverseSourceWeight_smooth | |
| (X : OpenPartialHomeomorph Coord3 Coord3) | |
| (hX : ContDiffOn β (β(β€:ββ)) X X.source) | |
| (hXi : ContDiffOn β (β(β€:ββ)) X.symm X.target) : | |
| ContDiffOn β (β(β€:ββ)) (inverseSourceWeight X) X.source := by | |
| apply X.open_source.contDiffOn_iff.mpr | |
| intro x hx | |
| have hxs := hX.contDiffAt (X.open_source.mem_nhds hx) | |
| have hxis := hXi.contDiffAt (X.open_target.mem_nhds (X.map_source hx)) | |
| have hd : ContDiffAt β (β(β€:ββ)) (fun y => fderiv β X.symm (X y)) x := | |
| (hxis.fderiv_right (by trivial)).comp x hxs | |
| have hd0 := local_fderiv_det_ne_zero X.symm (hXi.differentiableOn (by simp)) | |
| (hX.differentiableOn (by simp)) (X.map_source hx) | |
| exact ((((contDiff_clm_det (E := Coord3) (β(β€:ββ))).contDiffAt.comp x hd).abs hd0).inv | |
| (abs_ne_zero.mpr hd0)) | |
| lemma compact_smooth_C1_bound {f : Coord3 β β} {U K : Set Coord3} | |
| (hU : IsOpen U) (hf : ContDiffOn β (β(β€:ββ)) f U) | |
| (hK : IsCompact K) (hKU : KβU) : | |
| β M : β,0<M β§ β xβK,|f x|β€M β§ βfderiv β f xββ€M := by | |
| have hd : ContinuousOn (fderiv β f) U := by | |
| intro x hx | |
| exact ((hf.contDiffAt (hU.mem_nhds hx)).fderiv_right (m := 0) (by simp)).continuousAt.continuousWithinAt | |
| obtain β¨A,hAβ© := (hK.image_of_continuousOn (hf.continuousOn.mono hKU)).isBounded.exists_norm_le | |
| obtain β¨B,hBβ© := (hK.image_of_continuousOn (hd.mono hKU)).isBounded.exists_norm_le | |
| refine β¨|A|+|B|+1,by positivity,fun x hx => β¨?_,?_β©β© | |
| Β· exact (hA _ (mem_image_of_mem _ hx)).trans (by linarith [le_abs_self A,abs_nonneg B]) | |
| Β· exact (hB _ (mem_image_of_mem _ hx)).trans (by linarith [le_abs_self B,abs_nonneg A]) | |
| theorem localPiolaSource_inverse_C1 | |
| (X : OpenPartialHomeomorph Coord3 Coord3) | |
| (hX : ContDiffOn β (β(β€:ββ)) X X.source) | |
| (hXi : ContDiffOn β (β(β€:ββ)) X.symm X.target) | |
| {K : Set Coord3} (hK : IsCompact K) (hKs : KβX.source) : | |
| β L : β,0<L β§ β (r : Coord3 β β),ContDiff β (β(β€:ββ)) r β | |
| HasCompactSupport r β tsupport rβX '' K β β M : β,0β€M β | |
| UniformC1Bound r M β UniformC1Bound (localPiolaSource X.symm r) (L*M) := by | |
| let w := inverseSourceWeight X | |
| have hw := inverseSourceWeight_smooth X hX hXi | |
| obtain β¨B,hB,hwbβ© := compact_smooth_C1_bound X.open_source hw hK hKs | |
| have hdX : ContinuousOn (fderiv β X) X.source := by | |
| intro x hx | |
| exact ((hX.contDiffAt (X.open_source.mem_nhds hx)).fderiv_right (m := 0) (by simp)).continuousAt.continuousWithinAt | |
| obtain β¨D,hDβ© := (hK.image_of_continuousOn (hdX.mono hKs)).isBounded.exists_norm_le | |
| have hDX (x) (hx : xβK) : βfderiv β X xββ€|D|+1 := | |
| (hD _ (mem_image_of_mem _ hx)).trans (by linarith [le_abs_self D]) | |
| refine β¨B*(|D|+2),by positivity,fun r hr hc hs M hM hb => ?_β© | |
| let p := localPiolaSource X.symm r | |
| have hps : tsupport pβK := localPiolaSource_inverse_support X r hc hKs hs | |
| intro x | |
| change |p x| β€ B*(|D|+2)*M β§ βfderiv β p xβ β€ B*(|D|+2)*M | |
| by_cases hx : xβK | |
| Β· have hxs := hX.contDiffAt (X.open_source.mem_nhds (hKs hx)) | |
| have hws := hw.contDiffAt (X.open_source.mem_nhds (hKs hx)) | |
| have he : p=αΆ [π x] (fun y => w y*r (X y)) := by | |
| filter_upwards [X.open_source.mem_nhds (hKs hx)] with y hy | |
| simp [p,localPiolaSource,hy,w,inverseSourceWeight] | |
| have hrc : DifferentiableAt β (fun y => r (X y)) x := | |
| (hr.differentiable (by simp) (X x)).comp x (hxs.differentiableAt (by simp)) | |
| refine β¨?_,?_β© | |
| Β· rw [he.eq_of_nhds,abs_mul] | |
| exact (mul_le_mul (hwb x hx).1 (hb (X x)).1 (abs_nonneg _) hB.le).trans | |
| (by nlinarith [mul_nonneg hB.le hM,abs_nonneg D]) | |
| Β· rw [he.fderiv_eq,fderiv_fun_mul (hws.differentiableAt (by simp)) hrc] | |
| have hchain := ((hr.differentiable (by simp) (X x)).hasFDerivAt.comp x | |
| (hxs.differentiableAt (by simp)).hasFDerivAt).fderiv | |
| have hcomp : βfderiv β (fun y => r (X y)) xββ€M*(|D|+1) := by | |
| change βfderiv β (r β X) xβ β€ _ | |
| rw [hchain] | |
| exact (ContinuousLinearMap.opNorm_comp_le _ _).trans | |
| (mul_le_mul (hb (X x)).2 (hDX x hx) (norm_nonneg _) hM) | |
| calc | |
| _ β€ βw x β’ fderiv β (fun y => r (X y)) xβ+βr (X x) β’ fderiv β w xβ := norm_add_le _ _ | |
| _ = |w x| *βfderiv β (fun y => r (X y)) xβ+|r (X x)| *βfderiv β w xβ := by | |
| simp only [norm_smul,Real.norm_eq_abs] | |
| _ β€ B*(M*(|D|+1))+M*B := add_le_add | |
| (mul_le_mul (hwb x hx).1 hcomp (norm_nonneg _) hB.le) | |
| (mul_le_mul (hb (X x)).1 (hwb x hx).2 (norm_nonneg _) hM) | |
| _ = _ := by ring | |
| Β· have hn : xβtsupport p := fun h => hx (hps h) | |
| rw [image_eq_zero_of_notMem_tsupport hn,fderiv_of_notMem_tsupport β hn,abs_zero,norm_zero] | |
| exact β¨by positivity,by positivityβ© | |
| end ScalarConductivity | |
| end | |
| end OAI | |