Download data/lean/OAI/Geometry/CubicTorus/Estimates/PlaneWeakGradient.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 41.9 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CubicTorus/Estimates/PlaneWeakGradient.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CubicTorus/Estimates/PlaneWeakGradient.lean
-
curl -L -o PlaneWeakGradient.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CubicTorus/Estimates/PlaneWeakGradient.lean
41.9 kB
| import Mathlib | |
| import OAI.Geometry.CubicTorus.Estimates.DifferenceStep | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma differential_integral_restrict {Ο : Plane β β} {S : Set Plane} | |
| (hs : tsupport ΟβS) (F : Plane β Plane) : | |
| (β« y in S, fderiv β Ο y (F y))=(β« y, fderiv β Ο y (F y)) := by | |
| apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| intro y hy | |
| rw [fderiv_of_notMem_tsupport β (fun hy' β¦ hy (hs hy')),zero_apply] | |
| theorem WeakCMCGraph.linearized_equation {g : Plane β β} {K : ββ₯0} | |
| (hg : LipschitzWith K g) (hK : (K:β)β€1) {H R : β} (hR : 0<R) | |
| (hgc : ContDiffOn β 1 g (Metric.ball 0 R)) | |
| (hcmc : WeakCMCGraph g H (Metric.ball 0 R)) (v : Plane) (hv : βvββ€1) : | |
| β u : Lp Plane 2 (volume.restrict (Metric.ball (0 : Plane) (R/4))), | |
| (β (w : Plane) (Ο : Plane β β), ContDiff β 1 Ο β HasCompactSupport Ο β | |
| tsupport ΟβMetric.ball 0 (R/4) β | |
| (β« y in Metric.ball 0 (R/4), βͺu y,wβ«*Ο y)= | |
| -(β« y, βͺgradient g y,wβ«*fderiv β Ο y v)) β§ | |
| (β Ο : Plane β β, ContDiff β 1 Ο β HasCompactSupport Ο β | |
| tsupport ΟβMetric.ball 0 (R/4) β | |
| (β« y in Metric.ball 0 (R/4), fderiv β Ο y (cmcJacobian (gradient g y) (u y)))=0) := by | |
| obtain β¨G,C,hGc,hGb,hC,hGeq,henergyβ© := hcmc.gradient_difference_data hg hK hR hgc | |
| have hΞ΄ : 0<R/4 := by linarith | |
| obtain β¨u,Ο,_hu,hΟ,hwβ© := vector_L2_difference_subsequence hGc hGb hΞ΄ hC v (henergy v hv) | |
| let t : β β β := fun i β¦ differenceStep (R/4) (Ο i) | |
| let Q : β β Lp Plane 2 (volume.restrict (Metric.ball (0 : Plane) (R/4))) := fun i β¦ | |
| (vectorDifference_memLp hGc hGb (R/4) (t i) v).toLp (vectorDifference G v (t i)) | |
| have ht (i : β) : t iβIoc 0 (R/4) := differenceStep_mem hΞ΄ (Ο i) | |
| have htlim : Tendsto t atTop (π[>] 0) := (differenceStep_tendsto hΞ΄).comp hΟ.tendsto_atTop | |
| have hQ (i : β) : (Q i : Plane β Plane)=α΅[volume.restrict (Metric.ball (0 : Plane) (R/4))] | |
| vectorDifference G v (t i) := (vectorDifference_memLp hGc hGb (R/4) (t i) v).coeFn_toLp | |
| have hweak : β V : Lp Plane 2 (volume.restrict (Metric.ball (0 : Plane) (R/4))), | |
| Tendsto (fun i β¦ βͺQ i,Vβ«) atTop (π βͺu,Vβ«) := hw | |
| have hty (i : β) : βt i β’ vββ€t i := by | |
| rw [norm_smul,Real.norm_eq_abs,abs_of_pos (ht i).1] | |
| exact mul_le_of_le_one_right (ht i).1.le hv | |
| have hGy (y : Plane) (hy : yβMetric.ball (0 : Plane) (R/4)) : G y=gradient g y := by | |
| apply hGeq | |
| have hh : βyβ<R/4 := by simpa only [Metric.mem_ball,dist_zero_right] using hy | |
| linarith | |
| have hGyt (i : β) (y : Plane) (hy : yβMetric.ball (0 : Plane) (R/4)) : | |
| G (y+t i β’ v)=gradient g (y+t i β’ v) := by | |
| apply hGeq | |
| have hh : βyβ<R/4 := by simpa only [Metric.mem_ball,dist_zero_right] using hy | |
| exact (norm_add_le _ _).trans (by linarith [hty i,(ht i).2]) | |
| refine β¨u,?_,?_β© | |
| Β· intro w Ο hΟ hc hs | |
| rw [vector_weak_quotient_derivative hGc htlim v w hQ hweak hΟ hc hs] | |
| congr 1 | |
| apply integral_congr_ae | |
| filter_upwards [] with y | |
| by_cases hy : yβtsupport Ο | |
| Β· rw [hGy y (hs hy)] | |
| Β· rw [fderiv_of_notMem_tsupport β hy,zero_apply,mul_zero,mul_zero] | |
| Β· intro Ο hΟ hc hs | |
| have hlim := weak_L2_cmc_chain hGc hGb hC (fun i β¦ (ht i).1) | |
| (tendsto_nhds_of_tendsto_nhdsWithin htlim) v (fun i β¦ henergy v hv (t i) (ht i)) hQ hweak hΟ hc | |
| have hzero (i : β) : (β« y in Metric.ball 0 (R/4), | |
| fderiv β Ο y ((t i)β»ΒΉ β’ (cmcFlux (G (y+t i β’ v))-cmcFlux (G y))))=0 := by | |
| calc | |
| _ = β« y in Metric.ball 0 (R/4), | |
| fderiv β Ο y ((t i)β»ΒΉ β’ (cmcFlux (gradient g (y+t i β’ v))-cmcFlux (gradient g y))) := by | |
| apply setIntegral_congr_fun measurableSet_ball | |
| intro y hy | |
| dsimp only | |
| rw [hGy y hy,hGyt i y hy] | |
| _ = β« y, fderiv β Ο y ((t i)β»ΒΉ β’ | |
| (cmcFlux (gradient g (y+t i β’ v))-cmcFlux (gradient g y))) := differential_integral_restrict hs _ | |
| _ = (t i)β»ΒΉ*(β« y, fderiv β Ο y | |
| (cmcFlux (gradient g (y+t i β’ v))-cmcFlux (gradient g y))) := by | |
| simp only [map_smul,smul_eq_mul,integral_const_mul] | |
| _ = 0 := by | |
| rw [hcmc.difference_test hg hΞ΄ (by linarith [hty i,(ht i).2]) hΟ hc hs,mul_zero] | |
| have he : (β« y in Metric.ball 0 (R/4), fderiv β Ο y (cmcJacobian (G y) (u y)))=0 := | |
| tendsto_nhds_unique hlim (by simp only [hzero]; exact tendsto_const_nhds) | |
| rw [β he] | |
| apply setIntegral_congr_fun measurableSet_ball | |
| intro y hy | |
| dsimp only | |
| rw [hGy y hy] | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| theorem LinearCMCEquation.weak_derivative {g : Plane β β} {K : ββ₯0} | |
| (hg : LipschitzWith K g) {p B : Plane β Plane} (hp : Continuous p) (hpb : β y,βp yββ€1) | |
| {LA LB : ββ₯0} (hA : LipschitzWith LA (fun y β¦ cmcJacobian (p y))) (hB : LipschitzWith LB B) | |
| (hAc : ContDiff β 1 (fun y β¦ cmcJacobian (p y))) (hBc : ContDiff β 1 B) | |
| {M R : β} (hBb : β y,βB yββ€M) (hR : 0<R) | |
| (hgc : ContDiffOn β 1 g (Metric.ball 0 R)) | |
| (hw : LinearCMCEquation g p B (Metric.ball 0 R)) (v : Plane) (hv : βvββ€1) : | |
| β u : Lp Plane 2 (volume.restrict (Metric.ball (0 : Plane) (R/4))), | |
| (β (w : Plane) (Ο : Plane β β), ContDiff β 1 Ο β HasCompactSupport Ο β | |
| tsupport ΟβMetric.ball 0 (R/4) β | |
| (β« y in Metric.ball 0 (R/4), βͺu y,wβ«*Ο y)= | |
| -(β« y, βͺgradient g y,wβ«*fderiv β Ο y v)) β§ | |
| (β Ο : Plane β β, ContDiff β 1 Ο β HasCompactSupport Ο β | |
| tsupport ΟβMetric.ball 0 (R/4) β | |
| (β« y in Metric.ball 0 (R/4), fderiv β Ο y (cmcJacobian (p y) (u y)- | |
| (fderiv β B y v-fderiv β (fun z β¦ cmcJacobian (p z)) y v (gradient g y))))=0) := by | |
| obtain β¨G,C,hGc,hGb,hC,hGeq,henergyβ© := hw.gradient_difference_data hg hp hpb hA hB hBb hR hgc | |
| have hΞ΄ : 0<R/4 := by linarith | |
| obtain β¨u,Ο,_hu,hΟ,hwkβ© := vector_L2_difference_subsequence hGc hGb hΞ΄ hC v (henergy v hv) | |
| let t : β β β := fun i β¦ differenceStep (R/4) (Ο i) | |
| let Q : β β Lp Plane 2 (volume.restrict (Metric.ball (0 : Plane) (R/4))) := fun i β¦ | |
| (vectorDifference_memLp hGc hGb (R/4) (t i) v).toLp (vectorDifference G v (t i)) | |
| have ht (i : β) : t iβIoc 0 (R/4) := differenceStep_mem hΞ΄ (Ο i) | |
| have htlim : Tendsto t atTop (π[>] 0) := (differenceStep_tendsto hΞ΄).comp hΟ.tendsto_atTop | |
| have hQ (i : β) : (Q i : Plane β Plane)=α΅[volume.restrict (Metric.ball (0 : Plane) (R/4))] | |
| vectorDifference G v (t i) := (vectorDifference_memLp hGc hGb (R/4) (t i) v).coeFn_toLp | |
| have hweak : β V : Lp Plane 2 (volume.restrict (Metric.ball (0 : Plane) (R/4))), | |
| Tendsto (fun i β¦ βͺQ i,Vβ«) atTop (π βͺu,Vβ«) := hwk | |
| have hty (i : β) : βt i β’ vββ€t i := by | |
| rw [norm_smul,Real.norm_eq_abs,abs_of_pos (ht i).1] | |
| exact mul_le_of_le_one_right (ht i).1.le hv | |
| have hGy (y : Plane) (hy : yβMetric.ball (0 : Plane) (R/4)) : G y=gradient g y := by | |
| apply hGeq | |
| have hh : βyβ<R/4 := by simpa only [Metric.mem_ball,dist_zero_right] using hy | |
| linarith | |
| have hGyt (i : β) (y : Plane) (hy : yβMetric.ball (0 : Plane) (R/4)) : | |
| G (y+t i β’ v)=gradient g (y+t i β’ v) := by | |
| apply hGeq | |
| have hh : βyβ<R/4 := by simpa only [Metric.mem_ball,dist_zero_right] using hy | |
| exact (norm_add_le _ _).trans (by linarith [hty i,(ht i).2]) | |
| refine β¨u,?_,?_β© | |
| Β· intro w Ο hΟ hc hs | |
| rw [vector_weak_quotient_derivative hGc htlim v w hQ hweak hΟ hc hs] | |
| congr 1 | |
| apply integral_congr_ae | |
| filter_upwards [] with y | |
| by_cases hy : yβtsupport Ο | |
| Β· rw [hGy y (hs hy)] | |
| Β· rw [fderiv_of_notMem_tsupport β hy,zero_apply,mul_zero,mul_zero] | |
| Β· intro Ο hΟ hc hs | |
| have hlim := weak_L2_linear_cmc_chain hGc hGb hp hpb hA hB | |
| (hAc.differentiable (by simp)) (hBc.differentiable (by simp)) | |
| (fun i β¦ (ht i).1) htlim v hQ hweak hΟ hc | |
| have hzero (i : β) : (β« y in Metric.ball 0 (R/4), | |
| fderiv β Ο y ((t i)β»ΒΉ β’ ((cmcJacobian (p (y+t i β’ v)) (G (y+t i β’ v))-B (y+t i β’ v))- | |
| (cmcJacobian (p y) (G y)-B y))))=0 := by | |
| calc | |
| _ = β« y in Metric.ball 0 (R/4), fderiv β Ο y ((t i)β»ΒΉ β’ | |
| ((cmcJacobian (p (y+t i β’ v)) (gradient g (y+t i β’ v))-B (y+t i β’ v))- | |
| (cmcJacobian (p y) (gradient g y)-B y))) := by | |
| apply setIntegral_congr_fun measurableSet_ball | |
| intro y hy | |
| dsimp only | |
| rw [hGy y hy,hGyt i y hy] | |
| _ = β« y, fderiv β Ο y ((t i)β»ΒΉ β’ | |
| ((cmcJacobian (p (y+t i β’ v)) (gradient g (y+t i β’ v))-B (y+t i β’ v))- | |
| (cmcJacobian (p y) (gradient g y)-B y))) := differential_integral_restrict hs _ | |
| _ = (t i)β»ΒΉ*(β« y, fderiv β Ο y | |
| ((cmcJacobian (p (y+t i β’ v)) (gradient g (y+t i β’ v))-B (y+t i β’ v))- | |
| (cmcJacobian (p y) (gradient g y)-B y))) := by | |
| simp only [map_smul,smul_eq_mul,integral_const_mul] | |
| _ = 0 := by | |
| rw [hw.difference_test hg hp hpb hB.continuous hBb hΞ΄ | |
| (by linarith [hty i,(ht i).2]) hΟ hc hs,mul_zero] | |
| have he : (β« y in Metric.ball 0 (R/4), fderiv β Ο y (cmcJacobian (p y) (u y)))+ | |
| (β« y in Metric.ball 0 (R/4),fderiv β Ο y | |
| (fderiv β (fun z β¦ cmcJacobian (p z)) y v (G y)-fderiv β B y v))=0 := | |
| tendsto_nhds_unique hlim (by simp only [hzero]; exact tendsto_const_nhds) | |
| have hAi := Lp.cmc_differential_integrable hp hpb (R/4) u hΟ hc | |
| have hSc : Continuous (fun y β¦ fderiv β Ο y | |
| (fderiv β (fun z β¦ cmcJacobian (p z)) y v (G y)-fderiv β B y v)) := | |
| (hΟ.continuous_fderiv (by simp)).clm_apply | |
| ((((hAc.continuous_fderiv (by simp)).clm_apply continuous_const).clm_apply hGc).sub | |
| ((hBc.continuous_fderiv (by simp)).clm_apply continuous_const)) | |
| have hSi := hSc.continuousOn.integrableOn_compact (ΞΌ := (volume : Measure Plane)) | |
| (isCompact_closedBall (0 : Plane) (R/4)) |>.mono_set Metric.ball_subset_closedBall | |
| rw [β integral_add hAi hSi] at he | |
| rw [β he] | |
| apply setIntegral_congr_fun measurableSet_ball | |
| intro y hy | |
| dsimp only | |
| rw [hGy y hy] | |
| simp only [map_sub] | |
| ring | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma C1_gradient_continuous {f : Plane β β} (hf : ContDiff β 1 f) : | |
| Continuous (gradient f) := | |
| (InnerProductSpace.toDual β Plane).symm.continuous.comp (hf.continuous_fderiv (by simp)) | |
| lemma plane_gradient_support {f : Plane β β} : tsupport (gradient f)βtsupport f := by | |
| exact (tsupport_comp_subset (g := (InnerProductSpace.toDual β Plane).symm) (by simp) _).trans | |
| (tsupport_fderiv_subset β) | |
| lemma plane_gradient_compact {f : Plane β β} (hf : HasCompactSupport f) : | |
| HasCompactSupport (gradient f) := | |
| (hf.fderiv β).comp_left (map_zero (InnerProductSpace.toDual β Plane).symm) | |
| lemma compact_C1_gradient_memLp {f : Plane β β} (hf : ContDiff β 1 f) | |
| (hc : HasCompactSupport f) : MemLp (gradient f) 2 := | |
| (C1_gradient_continuous hf).memLp_of_hasCompactSupport (plane_gradient_compact hc) | |
| lemma compact_test_poincare (R : β) : β C : β, 0β€C β§ | |
| β f : Plane β β, β hf : ContDiff β 1 f, β hc : HasCompactSupport f, | |
| tsupport fβMetric.ball 0 R β | |
| β(hf.continuous.memLp_of_hasCompactSupport hc : MemLp f 2).toLp fββ€ | |
| C*β(compact_C1_gradient_memLp hf hc).toLp (gradient f)β := by | |
| let A : ββ₯0 := eLpNormLESNormFDerivOfEqInnerConst (volume : Measure Plane) 1 | |
| let B : ββ₯0β := volume (Metric.ball (0 : Plane) R)^(1/2:β) | |
| have hB : Bβ β€ := ENNReal.rpow_ne_top_of_nonneg (by norm_num) measure_ball_lt_top.ne | |
| refine β¨(A:β)*B.toReal,by positivity,?_β© | |
| intro f hf hc hs | |
| have hd := hf.continuous_fderiv (by simp : (1 : WithTop ββ)β 0) | |
| have hm : MemLp (fderiv β f) 2 := hd.memLp_of_hasCompactSupport (hc.fderiv β) | |
| have hsub : Function.support (fderiv β f)βMetric.ball 0 R := | |
| (subset_tsupport (fderiv β f)).trans ((tsupport_fderiv_subset β).trans hs) | |
| have hgns := eLpNorm_le_eLpNorm_fderiv_of_eq_inner (volume : Measure Plane) hf hc | |
| (p := 1) (p' := 2) (by norm_num) (by simp [Plane]) (by norm_num [Plane]) | |
| have hcomp := eLpNorm_le_eLpNorm_mul_rpow_measure_univ (ΞΌ := volume.restrict (Metric.ball 0 R)) | |
| (f := fderiv β f) (p := 1) (q := 2) (by norm_num) hd.aestronglyMeasurable.restrict | |
| rw [eLpNorm_restrict_eq_of_support_subset (ΞΌ := volume) (p := 1) (f := fderiv β f) hd.aestronglyMeasurable hsub, | |
| eLpNorm_restrict_eq_of_support_subset (ΞΌ := volume) (p := 2) (f := fderiv β f) hd.aestronglyMeasurable hsub,Measure.restrict_apply_univ] at hcomp | |
| norm_num only [ENNReal.toReal_one,ENNReal.toReal_ofNat,div_one] at hcomp | |
| have hcomp' : eLpNorm (fderiv β f) 1 volumeβ€eLpNorm (fderiv β f) 2 volume*B := by | |
| exact hcomp | |
| have he : eLpNorm f 2 volume β€ (A:ββ₯0β)*(eLpNorm (fderiv β f) 2 volume*B) := | |
| hgns.trans (mul_le_mul_right hcomp' _) | |
| have hgn : eLpNorm (gradient f) 2 volume=eLpNorm (fderiv β f) 2 volume := | |
| eLpNorm_congr_norm_ae (C1_gradient_continuous hf).aestronglyMeasurable | |
| hd.aestronglyMeasurable (ae_of_all _ (plane_gradient_norm f)) | |
| rw [Lp.norm_toLp,Lp.norm_toLp,hgn] | |
| have hh := ENNReal.toReal_mono (ENNReal.mul_ne_top ENNReal.coe_ne_top | |
| (ENNReal.mul_ne_top hm.ne hB)) he | |
| simpa only [ENNReal.toReal_mul,ENNReal.coe_toReal,mul_assoc,mul_comm,mul_left_comm] using hh | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| def PlaneWeakGradient (S : Set Plane) (u : Plane β β) (G : Plane β Plane) : Prop := | |
| β (v : Plane) (Ο : Plane β β), ContDiff β (β€ : ββ) Ο β HasCompactSupport Ο β | |
| tsupport ΟβS β (β« y, βͺG y,vβ«*Ο y)= -(β« y,u y*fderiv β Ο y v) | |
| lemma PlaneWeakGradient.congr {S : Set Plane} {u u' : Plane β β} {G G' : Plane β Plane} | |
| (h : PlaneWeakGradient S u G) (hu : u'=α΅[volume] u) (hG : G'=α΅[volume] G) : | |
| PlaneWeakGradient S u' G' := by | |
| intro v Ο hΟ hc hs | |
| have ha : (β« y,βͺG' y,vβ«*Ο y)=(β« y,βͺG y,vβ«*Ο y) := | |
| integral_congr_ae (hG.mono fun _ he β¦ by dsimp only; rw [he]) | |
| have hb : (β« y,u' y*fderiv β Ο y v)=(β« y,u y*fderiv β Ο y v) := | |
| integral_congr_ae (hu.mono fun _ he β¦ by dsimp only; rw [he]) | |
| rw [ha,hb] | |
| exact h v Ο hΟ hc hs | |
| lemma compact_C1_weak_gradient {f : Plane β β} (hf : ContDiff β 1 f) | |
| (_hc : HasCompactSupport f) (S : Set Plane) : PlaneWeakGradient S f (gradient f) := by | |
| intro v Ο hΟ hc _hs | |
| have hiβ : Integrable (fun y β¦ fderiv β f y v*Ο y) := | |
| (((hf.continuous_fderiv (by simp)).clm_apply continuous_const).mul hΟ.continuous).integrable_of_hasCompactSupport | |
| hc.mul_left | |
| have hiβ : Integrable (fun y β¦ f y*fderiv β Ο y v) := | |
| (hf.continuous.mul ((hΟ.continuous_fderiv (by simp)).clm_apply continuous_const)).integrable_of_hasCompactSupport | |
| (hc.fderiv_apply β v).mul_left | |
| have hiβ : Integrable (fun y β¦ f y*Ο y) := | |
| (hf.continuous.mul hΟ.continuous).integrable_of_hasCompactSupport hc.mul_left | |
| have hh := integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable hiβ hiβ hiβ | |
| (fun _ _ β¦ (hf.differentiable (by simp)).differentiableAt) | |
| (fun _ _ β¦ (hΟ.differentiable (by simp)).differentiableAt) | |
| simpa only [inner_gradient_left,neg_neg] using congrArg Neg.neg hh.symm | |
| lemma L2_pair_scalar_test {u : Lp β 2 (volume : Measure Plane)} {Ο : Plane β β} | |
| (hΟ : MemLp Ο 2 volume) : βͺu,hΟ.toLp Οβ«=(β« y,u y*Ο y) := by | |
| rw [L2.inner_def] | |
| apply integral_congr_ae | |
| filter_upwards [hΟ.coeFn_toLp] with y hy | |
| simp only [hy,RCLike.inner_apply,conj_trivial] | |
| ring | |
| lemma L2_pair_vector_test {G : Lp Plane 2 (volume : Measure Plane)} {Ο : Plane β β} | |
| (hΟ : Continuous Ο) (hc : HasCompactSupport Ο) (v : Plane) : | |
| let hm : MemLp (fun y β¦ Ο y β’ v) 2 volume := | |
| (hΟ.smul continuous_const).memLp_of_hasCompactSupport hc.smul_right | |
| βͺG,hm.toLp (fun y β¦ Ο y β’ v)β«=(β« y,βͺG y,vβ«*Ο y) := by | |
| dsimp only | |
| rw [L2.inner_def] | |
| apply integral_congr_ae | |
| filter_upwards [((hΟ.smul continuous_const).memLp_of_hasCompactSupport hc.smul_right : | |
| MemLp (fun y β¦ Ο y β’ v) 2 volume).coeFn_toLp] with y hy | |
| simp only [Pi.smul_def'] at hy | |
| rw [hy,inner_smul_right,mul_comm] | |
| lemma PlaneWeakGradient.L2_limit {S : Set Plane} | |
| {u : β β Lp β 2 (volume : Measure Plane)} {G : β β Lp Plane 2 (volume : Measure Plane)} | |
| {uβ : Lp β 2 (volume : Measure Plane)} {Gβ : Lp Plane 2 (volume : Measure Plane)} | |
| (hu : Tendsto u atTop (π uβ)) (hG : Tendsto G atTop (π Gβ)) | |
| (hweak : β i,PlaneWeakGradient S (u i) (G i)) : PlaneWeakGradient S uβ Gβ := by | |
| intro v Ο hΟ hc hs | |
| let a : Plane β Plane := fun y β¦ Ο y β’ v | |
| have ha : MemLp a 2 volume := (hΟ.continuous.smul continuous_const).memLp_of_hasCompactSupport hc.smul_right | |
| let A := ha.toLp a | |
| let b : Plane β β := fun y β¦ fderiv β Ο y v | |
| have hb : MemLp b 2 volume := ((hΟ.continuous_fderiv (by simp)).clm_apply continuous_const).memLp_of_hasCompactSupport | |
| (hc.fderiv_apply β v) | |
| let B := hb.toLp b | |
| have he (i : β) : βͺG i,Aβ«= -βͺu i,Bβ« := by | |
| rw [L2_pair_vector_test hΟ.continuous hc v,L2_pair_scalar_test hb] | |
| exact hweak i v Ο hΟ hc hs | |
| have hleft := hG.inner (π := β) (tendsto_const_nhds (x := A)) | |
| have hright := (hu.inner (π := β) (tendsto_const_nhds (x := B))).neg | |
| have hh := tendsto_nhds_unique (hleft.congr' (Eventually.of_forall he)) hright | |
| rw [L2_pair_vector_test hΟ.continuous hc v,L2_pair_scalar_test hb] at hh | |
| exact hh | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma continuous_local_scalar_product {f Ξ· : Plane β β} {S : Set Plane} | |
| (hS : IsOpen S) (hf : ContinuousOn f S) (hΞ· : Continuous Ξ·) | |
| (hs : tsupport Ξ·βS) : Continuous (fun y β¦ f y*Ξ· y) := by | |
| rw [continuous_iff_continuousAt] | |
| intro y | |
| by_cases hy : yβtsupport Ξ· | |
| Β· exact ((hf y (hs hy)).continuousAt (hS.mem_nhds (hs hy))).mul hΞ·.continuousAt | |
| Β· apply (continuousAt_const (y := (0:β))).congr_of_eventuallyEq | |
| filter_upwards [notMem_tsupport_iff_eventuallyEq.mp hy] with z hz | |
| simp [hz] | |
| lemma C1_local_integration_by_parts {g Ο : Plane β β} {S : Set Plane} | |
| (hS : IsOpen S) (hg : Continuous g) (hgc : ContDiffOn β 1 g S) | |
| (hΟ : ContDiff β 1 Ο) (hc : HasCompactSupport Ο) (hs : tsupport ΟβS) (v : Plane) : | |
| (β« y, fderiv β g y v*Ο y)= -(β« y,g y*fderiv β Ο y v) := by | |
| have hdf : ContinuousOn (fun y β¦ fderiv β g y v) S := | |
| (hgc.continuousOn_fderiv_of_isOpen hS (by simp)).clm_apply continuousOn_const | |
| have hiβ : Integrable (fun y β¦ fderiv β g y v*Ο y) := | |
| (continuous_local_scalar_product hS hdf hΟ.continuous hs).integrable_of_hasCompactSupport hc.mul_left | |
| have hiβ : Integrable (fun y β¦ g y*fderiv β Ο y v) := | |
| (hg.mul ((hΟ.continuous_fderiv (by simp)).clm_apply continuous_const)).integrable_of_hasCompactSupport | |
| (hc.fderiv_apply β v).mul_left | |
| have hiβ : Integrable (fun y β¦ g y*Ο y) := | |
| (hg.mul hΟ.continuous).integrable_of_hasCompactSupport hc.mul_left | |
| have hh := integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable hiβ hiβ hiβ | |
| (fun y hy β¦ ((hgc y (hs hy)).contDiffAt (hS.mem_nhds (hs hy))).differentiableAt (by simp)) | |
| (fun _ _ β¦ (hΟ.differentiable (by simp)).differentiableAt) | |
| simpa only [neg_neg] using congrArg Neg.neg hh.symm | |
| lemma C1_mixed_test_identity {g Ο : Plane β β} {S : Set Plane} | |
| (hS : IsOpen S) (hg : Continuous g) (hgc : ContDiffOn β 1 g S) | |
| (hΟ : ContDiff β (β€ : ββ) Ο) (hc : HasCompactSupport Ο) (hs : tsupport ΟβS) | |
| (v w : Plane) : | |
| (β« y, βͺgradient g y,wβ«*fderiv β Ο y v)= | |
| (β« y, βͺgradient g y,vβ«*fderiv β Ο y w) := by | |
| have hv : ContDiff β (β€ : ββ) (fun y β¦ fderiv β Ο y v) := | |
| (hΟ.fderiv_right (by simp)).clm_apply contDiff_const | |
| have hw : ContDiff β (β€ : ββ) (fun y β¦ fderiv β Ο y w) := | |
| (hΟ.fderiv_right (by simp)).clm_apply contDiff_const | |
| simp only [inner_gradient_left] | |
| rw [C1_local_integration_by_parts hS hg hgc (hv.of_le (by simp)) | |
| (hc.fderiv_apply β v) ((tsupport_fderiv_apply_subset (f := Ο) β v).trans hs) w, | |
| C1_local_integration_by_parts hS hg hgc (hw.of_le (by simp)) | |
| (hc.fderiv_apply β w) ((tsupport_fderiv_apply_subset (f := Ο) β w).trans hs) v] | |
| congr 1 | |
| apply integral_congr_ae | |
| filter_upwards [] with y | |
| congr 1 | |
| rw [fderiv_fderiv_apply hΟ,fderiv_fderiv_apply hΟ] | |
| exact (hΟ.contDiffAt.isSymmSndFDerivAt (by simp only [minSmoothness_of_isRCLikeNormedField]; exact WithTop.coe_le_coe.mpr le_top)) w v | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma indicator_inner_test_integral {S : Set Plane} (hS : MeasurableSet S) | |
| (U : Plane β Plane) (v : Plane) (Ο : Plane β β) : | |
| (β« y,βͺS.indicator U y,vβ«*Ο y)=(β« y in S,βͺU y,vβ«*Ο y) := by | |
| rw [β integral_indicator hS] | |
| apply integral_congr_ae | |
| filter_upwards [] with y | |
| by_cases hy : yβS <;> simp [hy] | |
| lemma indicator_differential_integral {S : Set Plane} (hS : MeasurableSet S) | |
| (U : Plane β Plane) (A : Plane β Plane βL[β] Plane) (Ο : Plane β β) : | |
| (β« y,fderiv β Ο y (A y (S.indicator U y)))= | |
| (β« y in S,fderiv β Ο y (A y (U y))) := by | |
| rw [β integral_indicator hS] | |
| apply integral_congr_ae | |
| filter_upwards [] with y | |
| by_cases hy : yβS <;> simp [hy] | |
| theorem WeakCMCGraph.scalar_linearized_equation {g : Plane β β} {K : ββ₯0} | |
| (hg : LipschitzWith K g) (hK : (K:β)β€1) {H R : β} (hR : 0<R) | |
| (hgc : ContDiffOn β 1 g (Metric.ball 0 R)) | |
| (hcmc : WeakCMCGraph g H (Metric.ball 0 R)) (v : Plane) (hv : βvββ€1) : | |
| β (u : Lp β 2 (volume : Measure Plane)) (U : Lp Plane 2 (volume : Measure Plane)), | |
| (u : Plane β β)=α΅[volume.restrict (Metric.ball 0 (R/4))] | |
| (fun y β¦ fderiv β g y v) β§ | |
| PlaneWeakGradient (Metric.ball 0 (R/4)) u U β§ | |
| (β Ο : Plane β β, ContDiff β (β€ : ββ) Ο β HasCompactSupport Ο β | |
| tsupport ΟβMetric.ball 0 (R/4) β | |
| (β« y,fderiv β Ο y (cmcJacobian (gradient g y) (U y)))=0) := by | |
| let S : Set Plane := Metric.ball 0 (R/4) | |
| obtain β¨F,hF,hlinβ© := hcmc.linearized_equation hg hK hR hgc v hv | |
| have hFmem : MemLp (S.indicator (F : Plane β Plane)) 2 volume := | |
| (memLp_indicator_iff_restrict measurableSet_ball).mpr (Lp.memLp F) | |
| let U := hFmem.toLp (S.indicator (F : Plane β Plane)) | |
| let b : ContDiffBump (0 : Plane) := β¨R/4,R/2,by linarith,by linarithβ© | |
| let f : Plane β β := fun y β¦ fderiv β g y v*b y | |
| have hbs : tsupport bβMetric.ball 0 R := by | |
| rw [b.tsupport_eq] | |
| exact Metric.closedBall_subset_ball (by dsimp [b]; linarith) | |
| have hfc : Continuous f := continuous_local_scalar_product Metric.isOpen_ball | |
| ((hgc.continuousOn_fderiv_of_isOpen Metric.isOpen_ball (by simp)).clm_apply continuousOn_const) | |
| b.continuous hbs | |
| have hfs : HasCompactSupport f := b.hasCompactSupport.mul_left | |
| have hfmem : MemLp f 2 volume := hfc.memLp_of_hasCompactSupport hfs | |
| let u := hfmem.toLp f | |
| have hfe (y : Plane) (hy : yβS) : f y=fderiv β g y v := by | |
| dsimp only [f] | |
| rw [b.one_of_mem_closedBall (Metric.ball_subset_closedBall hy),mul_one] | |
| refine β¨u,U,?_,?_,?_β© | |
| Β· filter_upwards [ae_restrict_of_ae hfmem.coeFn_toLp,ae_restrict_mem (measurableSet_ball : MeasurableSet S)] with y hy hs | |
| exact hy.trans (hfe y hs) | |
| Β· intro w Ο hΟ hc hs | |
| have hΟs : tsupport ΟβMetric.ball 0 R := hs.trans (Metric.ball_subset_ball (by linarith)) | |
| calc | |
| _ = β« y,βͺS.indicator (F : Plane β Plane) y,wβ«*Ο y := by | |
| apply integral_congr_ae | |
| filter_upwards [hFmem.coeFn_toLp] with y hy | |
| rw [hy] | |
| _ = β« y in S,βͺF y,wβ«*Ο y := indicator_inner_test_integral measurableSet_ball _ _ _ | |
| _ = -(β« y,βͺgradient g y,wβ«*fderiv β Ο y v) := hF w Ο (hΟ.of_le (by simp)) hc hs | |
| _ = -(β« y,βͺgradient g y,vβ«*fderiv β Ο y w) := by | |
| rw [C1_mixed_test_identity Metric.isOpen_ball hg.continuous hgc hΟ hc hΟs v w] | |
| _ = -(β« y,u y*fderiv β Ο y w) := by | |
| congr 1 | |
| apply integral_congr_ae | |
| filter_upwards [hfmem.coeFn_toLp] with y hy | |
| rw [hy,inner_gradient_left] | |
| by_cases hyS : yβS | |
| Β· rw [hfe y hyS] | |
| Β· rw [fderiv_of_notMem_tsupport β (fun h β¦ hyS (hs h)),zero_apply,mul_zero,mul_zero] | |
| Β· intro Ο hΟ hc hs | |
| calc | |
| _ = β« y,fderiv β Ο y (cmcJacobian (gradient g y) (S.indicator (F : Plane β Plane) y)) := by | |
| apply integral_congr_ae | |
| filter_upwards [hFmem.coeFn_toLp] with y hy | |
| rw [hy] | |
| _ = β« y in S,fderiv β Ο y (cmcJacobian (gradient g y) (F y)) := | |
| indicator_differential_integral measurableSet_ball _ _ _ | |
| _ = 0 := hlin Ο (hΟ.of_le (by simp)) hc hs | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| theorem LinearCMCEquation.scalar_derivative {g : Plane β β} {K : ββ₯0} | |
| (hg : LipschitzWith K g) {p B : Plane β Plane} (hp : Continuous p) (hpb : β y,βp yββ€1) | |
| {LA LB : ββ₯0} (hA : LipschitzWith LA (fun y β¦ cmcJacobian (p y))) (hB : LipschitzWith LB B) | |
| (hAc : ContDiff β 1 (fun y β¦ cmcJacobian (p y))) (hBc : ContDiff β 1 B) | |
| {M R : β} (hBb : β y,βB yββ€M) (hR : 0<R) | |
| (hgc : ContDiffOn β 1 g (Metric.ball 0 R)) | |
| (hw : LinearCMCEquation g p B (Metric.ball 0 R)) (v : Plane) (hv : βvββ€1) : | |
| β (u : Lp β 2 (volume : Measure Plane)) (U : Lp Plane 2 (volume : Measure Plane)), | |
| (u : Plane β β)=α΅[volume.restrict (Metric.ball 0 (R/4))] | |
| (fun y β¦ fderiv β g y v) β§ | |
| PlaneWeakGradient (Metric.ball 0 (R/4)) u U β§ | |
| (β Ο : Plane β β, ContDiff β (β€ : ββ) Ο β HasCompactSupport Ο β | |
| tsupport ΟβMetric.ball 0 (R/4) β | |
| (β« y,fderiv β Ο y (cmcJacobian (p y) (U y)- | |
| (fderiv β B y v-fderiv β (fun z β¦ cmcJacobian (p z)) y v (gradient g y))))=0) := by | |
| let S : Set Plane := Metric.ball 0 (R/4) | |
| obtain β¨F,hF,hlinβ© := hw.weak_derivative hg hp hpb hA hB hAc hBc hBb hR hgc v hv | |
| have hFmem : MemLp (S.indicator (F : Plane β Plane)) 2 volume := | |
| (memLp_indicator_iff_restrict measurableSet_ball).mpr (Lp.memLp F) | |
| let U := hFmem.toLp (S.indicator (F : Plane β Plane)) | |
| let b : ContDiffBump (0 : Plane) := β¨R/4,R/2,by linarith,by linarithβ© | |
| let f : Plane β β := fun y β¦ fderiv β g y v*b y | |
| have hbs : tsupport bβMetric.ball 0 R := by | |
| rw [b.tsupport_eq] | |
| exact Metric.closedBall_subset_ball (by dsimp [b]; linarith) | |
| have hfc : Continuous f := continuous_local_scalar_product Metric.isOpen_ball | |
| ((hgc.continuousOn_fderiv_of_isOpen Metric.isOpen_ball (by simp)).clm_apply continuousOn_const) | |
| b.continuous hbs | |
| have hfs : HasCompactSupport f := b.hasCompactSupport.mul_left | |
| have hfmem : MemLp f 2 volume := hfc.memLp_of_hasCompactSupport hfs | |
| let u := hfmem.toLp f | |
| have hfe (y : Plane) (hy : yβS) : f y=fderiv β g y v := by | |
| dsimp only [f] | |
| rw [b.one_of_mem_closedBall (Metric.ball_subset_closedBall hy),mul_one] | |
| refine β¨u,U,?_,?_,?_β© | |
| Β· filter_upwards [ae_restrict_of_ae hfmem.coeFn_toLp,ae_restrict_mem (measurableSet_ball : MeasurableSet S)] with y hy hs | |
| exact hy.trans (hfe y hs) | |
| Β· intro w Ο hΟ hc hs | |
| have hΟs : tsupport ΟβMetric.ball 0 R := hs.trans (Metric.ball_subset_ball (by linarith)) | |
| calc | |
| _ = β« y,βͺS.indicator (F : Plane β Plane) y,wβ«*Ο y := by | |
| apply integral_congr_ae | |
| filter_upwards [hFmem.coeFn_toLp] with y hy | |
| rw [hy] | |
| _ = β« y in S,βͺF y,wβ«*Ο y := indicator_inner_test_integral measurableSet_ball _ _ _ | |
| _ = -(β« y,βͺgradient g y,wβ«*fderiv β Ο y v) := hF w Ο (hΟ.of_le (by simp)) hc hs | |
| _ = -(β« y,βͺgradient g y,vβ«*fderiv β Ο y w) := by | |
| rw [C1_mixed_test_identity Metric.isOpen_ball hg.continuous hgc hΟ hc hΟs v w] | |
| _ = -(β« y,u y*fderiv β Ο y w) := by | |
| congr 1 | |
| apply integral_congr_ae | |
| filter_upwards [hfmem.coeFn_toLp] with y hy | |
| rw [hy,inner_gradient_left] | |
| by_cases hyS : yβS | |
| Β· rw [hfe y hyS] | |
| Β· rw [fderiv_of_notMem_tsupport β (fun h β¦ hyS (hs h)),zero_apply,mul_zero,mul_zero] | |
| Β· intro Ο hΟ hc hs | |
| calc | |
| _ = β« y in S,fderiv β Ο y (cmcJacobian (p y) (U y)- | |
| (fderiv β B y v-fderiv β (fun z β¦ cmcJacobian (p z)) y v (gradient g y))) := | |
| (differential_integral_restrict hs _).symm | |
| _ = β« y in S,fderiv β Ο y (cmcJacobian (p y) (F y)- | |
| (fderiv β B y v-fderiv β (fun z β¦ cmcJacobian (p z)) y v (gradient g y))) := by | |
| apply integral_congr_ae | |
| filter_upwards [ae_restrict_of_ae hFmem.coeFn_toLp, | |
| ae_restrict_mem (measurableSet_ball : MeasurableSet S)] with y hy hyS | |
| rw [hy,Set.indicator_of_mem hyS] | |
| _ = 0 := hlin Ο (hΟ.of_le (by simp)) hc hs | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma C1_gradient_add {f g : Plane β β} (hf : ContDiff β 1 f) (hg : ContDiff β 1 g) : | |
| gradient (f+g)=gradient f+gradient g := by | |
| funext x | |
| simp only [gradient,fderiv_add ((hf.differentiable (by simp)).differentiableAt) | |
| ((hg.differentiable (by simp)).differentiableAt),map_add,Pi.add_apply] | |
| lemma C1_gradient_smul {f : Plane β β} (hf : ContDiff β 1 f) (a : β) : | |
| gradient (a β’ f)=a β’ gradient f := by | |
| funext x | |
| simp only [gradient,fderiv_const_smul ((hf.differentiable (by simp)).differentiableAt), | |
| map_smul,Pi.smul_apply] | |
| lemma C1_gradient_sub {f g : Plane β β} (hf : ContDiff β 1 f) (hg : ContDiff β 1 g) : | |
| gradient (f-g)=gradient f-gradient g := by | |
| funext x | |
| simp only [gradient,fderiv_sub ((hf.differentiable (by simp)).differentiableAt) | |
| ((hg.differentiable (by simp)).differentiableAt),map_sub,Pi.sub_apply] | |
| def smoothGradientSpace (S : Set Plane) : Submodule β (Lp Plane 2 (volume : Measure Plane)) where | |
| carrier := {G | β f : Plane β β, β hf : ContDiff β (β€ : ββ) f, | |
| β hc : HasCompactSupport f, tsupport fβS β§ | |
| G=(compact_C1_gradient_memLp (hf.of_le (by simp)) hc).toLp (gradient f)} | |
| zero_mem' := by | |
| refine β¨0,contDiff_const,HasCompactSupport.zero,by simp,?_β© | |
| apply Lp.ext | |
| filter_upwards [Lp.coeFn_zero (E := Plane) (p := 2) (ΞΌ := (volume : Measure Plane)), | |
| (compact_C1_gradient_memLp (f := 0) contDiff_const HasCompactSupport.zero).coeFn_toLp] | |
| with x hz hx | |
| rw [hz,hx] | |
| simp [gradient] | |
| add_mem' := by | |
| rintro G K β¨f,hf,hc,hs,rflβ© β¨g,hg,hgc,hgs,rflβ© | |
| refine β¨f+g,hf.add hg,hc.add hgc,(tsupport_add f g).trans (union_subset hs hgs),?_β© | |
| have he := C1_gradient_add (hf.of_le (by simp)) (hg.of_le (by simp)) | |
| apply Lp.ext | |
| filter_upwards [Lp.coeFn_add | |
| ((compact_C1_gradient_memLp (hf.of_le (by simp)) hc).toLp (gradient f)) | |
| ((compact_C1_gradient_memLp (hg.of_le (by simp)) hgc).toLp (gradient g)), | |
| (compact_C1_gradient_memLp (hf.of_le (by simp)) hc).coeFn_toLp, | |
| (compact_C1_gradient_memLp (hg.of_le (by simp)) hgc).coeFn_toLp, | |
| (compact_C1_gradient_memLp ((hf.add hg).of_le (by simp)) (hc.add hgc)).coeFn_toLp] | |
| with x hx hfx hgx hfgx | |
| rw [hx] | |
| simp only [Pi.add_def] at hfgx β’ | |
| rw [hfgx] | |
| change _ + _ = gradient (f+g) x | |
| rw [hfx,hgx,he] | |
| rfl | |
| smul_mem' := by | |
| rintro a G β¨f,hf,hc,hs,rflβ© | |
| have hcf : HasCompactSupport (a β’ f) := hc.smul_left | |
| refine β¨a β’ f,contDiff_const.smul hf,hcf, | |
| (tsupport_smul_subset_right (fun _ β¦ a) f).trans hs,?_β© | |
| apply Lp.ext | |
| filter_upwards [Lp.coeFn_smul a | |
| ((compact_C1_gradient_memLp (hf.of_le (by simp)) hc).toLp (gradient f)), | |
| (compact_C1_gradient_memLp (hf.of_le (by simp)) hc).coeFn_toLp, | |
| (compact_C1_gradient_memLp ((contDiff_const.smul hf).of_le (by simp)) hcf).coeFn_toLp] | |
| with x hx hfx hax | |
| rw [hx] | |
| simp only [Pi.smul_def,Pi.smul_def'] at hax β’ | |
| rw [hax] | |
| change a β’ _ = gradient (a β’ f) x | |
| rw [hfx,C1_gradient_smul (hf.of_le (by simp)) a] | |
| rfl | |
| def zeroBoundaryGradientSpace (S : Set Plane) : Submodule β (Lp Plane 2 (volume : Measure Plane)) := | |
| (smoothGradientSpace S).topologicalClosure | |
| lemma zeroBoundaryGradientSpace_isClosed (S : Set Plane) : | |
| IsClosed (zeroBoundaryGradientSpace S : Set (Lp Plane 2 (volume : Measure Plane))) := | |
| (smoothGradientSpace S).isClosed_topologicalClosure | |
| lemma zeroBoundaryGradientSpace_approximation {S : Set Plane} | |
| {G : Lp Plane 2 (volume : Measure Plane)} (hG : GβzeroBoundaryGradientSpace S) : | |
| β f : β β Plane β β, β hf : β i, ContDiff β (β€ : ββ) (f i), | |
| β hc : β i, HasCompactSupport (f i), | |
| (β i,tsupport (f i)βS) β§ | |
| Tendsto (fun i β¦ (compact_C1_gradient_memLp ((hf i).of_le (by simp)) (hc i)).toLp | |
| (gradient (f i))) atTop (π G) := by | |
| obtain β¨F,hF,hlimβ© := mem_closure_iff_seq_limit.mp hG | |
| choose f hf hc hs he using hF | |
| refine β¨f,hf,hc,hs,?_β© | |
| convert hlim using 1 | |
| funext i | |
| exact (he i).symm | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma compact_test_poincare_difference {R C : β} | |
| (hP : β f : Plane β β, β hf : ContDiff β 1 f, β hc : HasCompactSupport f, | |
| tsupport fβMetric.ball 0 R β | |
| β(hf.continuous.memLp_of_hasCompactSupport hc : MemLp f 2).toLp fββ€ | |
| C*β(compact_C1_gradient_memLp hf hc).toLp (gradient f)β) | |
| {f g : Plane β β} (hf : ContDiff β 1 f) (hg : ContDiff β 1 g) | |
| (hc : HasCompactSupport f) (hgc : HasCompactSupport g) | |
| (hs : tsupport fβMetric.ball 0 R) (hgs : tsupport gβMetric.ball 0 R) : | |
| dist ((hf.continuous.memLp_of_hasCompactSupport hc : MemLp f 2).toLp f) | |
| ((hg.continuous.memLp_of_hasCompactSupport hgc : MemLp g 2).toLp g)β€ | |
| C*dist ((compact_C1_gradient_memLp hf hc).toLp (gradient f)) | |
| ((compact_C1_gradient_memLp hg hgc).toLp (gradient g)) := by | |
| have hp := hP (f-g) (hf.sub hg) (hc.sub hgc) | |
| ((tsupport_sub f g).trans (union_subset hs hgs)) | |
| rw [Lp.norm_toLp,Lp.norm_toLp,C1_gradient_sub hf hg] at hp | |
| simpa only [Lp.dist_edist,Lp.edist_toLp_toLp] using hp | |
| lemma cauchySeq_of_distance_comparison {X Y : Type*} [PseudoMetricSpace X] [PseudoMetricSpace Y] | |
| {f : β β X} {g : β β Y} {C : β} (hC : 0β€C) | |
| (hg : CauchySeq g) (hbound : β i j,dist (f i) (f j)β€C*dist (g i) (g j)) : | |
| CauchySeq f := by | |
| rw [Metric.cauchySeq_iff] at hg β’ | |
| intro Ξ΅ hΞ΅ | |
| have hCp : 0<C+1 := by linarith | |
| obtain β¨N,hNβ© := hg (Ξ΅/(C+1)) (div_pos hΞ΅ hCp) | |
| refine β¨N,fun i hi j hj β¦ ?_β© | |
| calc | |
| dist (f i) (f j) β€ C*dist (g i) (g j) := hbound i j | |
| _ β€ (C+1)*dist (g i) (g j) := by nlinarith [(dist_nonneg : 0β€dist (g i) (g j))] | |
| _ < Ξ΅ := (lt_div_iffβ' hCp).mp (hN i hi j hj) | |
| theorem zeroBoundaryGradientSpace_primitive {R : β} | |
| {G : Lp Plane 2 (volume : Measure Plane)} | |
| (hG : GβzeroBoundaryGradientSpace (Metric.ball 0 R)) : | |
| β u : Lp β 2 (volume : Measure Plane), PlaneWeakGradient univ u G β§ | |
| β f : β β Plane β β, β hf : β i,ContDiff β (β€ : ββ) (f i), | |
| β hc : β i,HasCompactSupport (f i), (β i,tsupport (f i)βMetric.ball 0 R) β§ | |
| Tendsto (fun i β¦ ((hf i).continuous.memLp_of_hasCompactSupport (hc i) : | |
| MemLp (f i) 2 volume).toLp (f i)) atTop (π u) β§ | |
| Tendsto (fun i β¦ (compact_C1_gradient_memLp ((hf i).of_le (by simp)) (hc i)).toLp | |
| (gradient (f i))) atTop (π G) := by | |
| obtain β¨C,hC,hPβ© := compact_test_poincare R | |
| obtain β¨f,hf,hc,hs,hlimβ© := zeroBoundaryGradientSpace_approximation hG | |
| let U (i : β) : Lp β 2 (volume : Measure Plane) := | |
| ((hf i).continuous.memLp_of_hasCompactSupport (hc i) : MemLp (f i) 2 volume).toLp (f i) | |
| let F (i : β) : Lp Plane 2 (volume : Measure Plane) := | |
| (compact_C1_gradient_memLp ((hf i).of_le (by simp)) (hc i)).toLp (gradient (f i)) | |
| have hbound (i j : β) : dist (U i) (U j)β€C*dist (F i) (F j) := | |
| compact_test_poincare_difference hP ((hf i).of_le (by simp)) ((hf j).of_le (by simp)) | |
| (hc i) (hc j) (hs i) (hs j) | |
| obtain β¨u,huβ© := cauchySeq_tendsto_of_complete | |
| (cauchySeq_of_distance_comparison hC hlim.cauchySeq hbound) | |
| refine β¨u,?_,f,hf,hc,hs,hu,hlimβ© | |
| apply PlaneWeakGradient.L2_limit hu hlim | |
| intro i | |
| apply (compact_C1_weak_gradient ((hf i).of_le (by simp)) (hc i) univ).congr | |
| Β· exact ((hf i).continuous.memLp_of_hasCompactSupport (hc i) : MemLp (f i) 2 volume).coeFn_toLp | |
| Β· exact (compact_C1_gradient_memLp ((hf i).of_le (by simp)) (hc i)).coeFn_toLp | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| theorem plane_harmonic_replacement (R : β) | |
| (G : Lp Plane 2 (volume : Measure Plane)) : | |
| β W : Lp Plane 2 (volume : Measure Plane), | |
| WβzeroBoundaryGradientSpace (Metric.ball 0 R) β§ | |
| βWββ€βGβ β§ | |
| (β FβzeroBoundaryGradientSpace (Metric.ball 0 R), βͺG-W,Fβ«=0) β§ | |
| β w : Lp β 2 (volume : Measure Plane), PlaneWeakGradient univ w W := by | |
| let K := zeroBoundaryGradientSpace (Metric.ball (0 : Plane) R) | |
| let : IsClosed (K : Set (Lp Plane 2 (volume : Measure Plane))) := | |
| zeroBoundaryGradientSpace_isClosed _ | |
| let W := K.starProjection G | |
| have hW : WβK := K.starProjection_apply_mem G | |
| obtain β¨w,hw,_β© := zeroBoundaryGradientSpace_primitive hW | |
| exact β¨W,hW,K.norm_starProjection_apply_le G, | |
| fun F hF β¦ K.starProjection_inner_eq_zero G F hF,w,hwβ© | |
| lemma L2_pair_gradient_test {G : Lp Plane 2 (volume : Measure Plane)} | |
| {Ο : Plane β β} (hΟ : ContDiff β 1 Ο) (hc : HasCompactSupport Ο) : | |
| βͺG,(compact_C1_gradient_memLp hΟ hc).toLp (gradient Ο)β«= | |
| β« y, fderiv β Ο y (G y) := by | |
| rw [L2.inner_def] | |
| apply integral_congr_ae | |
| filter_upwards [(compact_C1_gradient_memLp hΟ hc).coeFn_toLp] with y hy | |
| simp only [hy,inner_gradient_right,conj_trivial] | |
| lemma harmonic_replacement_test {R : β} {G W : Lp Plane 2 (volume : Measure Plane)} | |
| (ho : β FβzeroBoundaryGradientSpace (Metric.ball 0 R), βͺG-W,Fβ«=0) | |
| {Ο : Plane β β} (hΟ : ContDiff β (β€ : ββ) Ο) (hc : HasCompactSupport Ο) | |
| (hs : tsupport ΟβMetric.ball 0 R) : | |
| (β« y, fderiv β Ο y ((G-W) y))=0 := by | |
| rw [β L2_pair_gradient_test (hΟ.of_le (by simp)) hc] | |
| apply ho | |
| exact (smoothGradientSpace (Metric.ball 0 R)).le_topologicalClosure | |
| β¨Ο,hΟ,hc,hs,rflβ© | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| open Laplacian | |
| namespace CubicTorus | |
| lemma L2_scalar_test_integrable (u : Lp β 2 (volume : Measure Plane)) | |
| {Ο : Plane β β} (hΟ : MemLp Ο 2 volume) : Integrable (fun y β¦ u y*Ο y) := by | |
| apply (L2.integrable_inner (π := β) u (hΟ.toLp Ο)).congr | |
| filter_upwards [hΟ.coeFn_toLp] with y hy | |
| simp only [hy,RCLike.inner_apply,conj_trivial] | |
| ring | |
| lemma L2_vector_test_integrable (G : Lp Plane 2 (volume : Measure Plane)) | |
| {F : Plane β Plane} (hF : MemLp F 2 volume) : Integrable (fun y β¦ βͺG y,F yβ«) := by | |
| apply (L2.integrable_inner (π := β) G (hF.toLp F)).congr | |
| filter_upwards [hF.coeFn_toLp] with y hy | |
| exact congrArg (inner β (G y)) hy | |
| lemma PlaneWeakGradient.Lp_sub {S : Set Plane} | |
| {u w : Lp β 2 (volume : Measure Plane)} {G W : Lp Plane 2 (volume : Measure Plane)} | |
| (hu : PlaneWeakGradient S u G) (hw : PlaneWeakGradient S w W) : | |
| PlaneWeakGradient S ((u-w : Lp β 2 volume) : Plane β β) | |
| ((G-W : Lp Plane 2 volume) : Plane β Plane) := by | |
| intro v Ο hΟ hc hs | |
| let a : Plane β Plane := fun y β¦ Ο y β’ v | |
| have ha : MemLp a 2 volume := (hΟ.continuous.smul continuous_const).memLp_of_hasCompactSupport hc.smul_right | |
| let A := ha.toLp a | |
| let b : Plane β β := fun y β¦ fderiv β Ο y v | |
| have hb : MemLp b 2 volume := ((hΟ.continuous_fderiv (by simp)).clm_apply continuous_const).memLp_of_hasCompactSupport | |
| (hc.fderiv_apply β v) | |
| let B := hb.toLp b | |
| have hβ : βͺG,Aβ«= -βͺu,Bβ« := by | |
| rw [L2_pair_vector_test hΟ.continuous hc v,L2_pair_scalar_test hb] | |
| exact hu v Ο hΟ hc hs | |
| have hβ : βͺW,Aβ«= -βͺw,Bβ« := by | |
| rw [L2_pair_vector_test hΟ.continuous hc v,L2_pair_scalar_test hb] | |
| exact hw v Ο hΟ hc hs | |
| rw [β L2_pair_vector_test hΟ.continuous hc v,β L2_pair_scalar_test hb] | |
| change βͺG-W,Aβ«= -βͺu-w,Bβ« | |
| rw [inner_sub_left,inner_sub_left,hβ,hβ] | |
| ring | |
| end CubicTorus | |
| end | |
| end | |
| end | |
| end OAI | |