Download data/lean/OAI/Geometry/BallPacking/Forms/FixedSpatialIntegral.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 25 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Forms/FixedSpatialIntegral.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BallPacking/Forms/FixedSpatialIntegral.lean
-
curl -L -o FixedSpatialIntegral.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Forms/FixedSpatialIntegral.lean
25 kB
| import Mathlib | |
| import OAI.Geometry.BallPacking.Forms.SpatialOneForm | |
| namespace OAI | |
| noncomputable section | |
| namespace PackingSufficiencySupport.Hamiltonian | |
| section | |
| open scoped ContDiff | |
| open MeasureTheory Set Function | |
| variable {P : Type} [NormedAddCommGroup P] [NormedSpace β P] [FiniteDimensional β P] | |
| theorem planar_fixed_support_integral_smooth {A : β} {f : P Γ Plane β β} | |
| (hf : ContDiff β β f) | |
| (hzero : β p x y, A β€ |x| β¨ A β€ |y| β f (p,(x,y))=0) : | |
| ContDiff β β (fun p => β« z, f (p,z)) := by | |
| have hff : ContDiff β β (fun q : (P Γ β) Γ β => f (q.1.1,(q.2,q.1.2))) := | |
| hf.comp ((contDiff_fst.comp contDiff_fst).prodMk | |
| (contDiff_snd.prodMk (contDiff_snd.comp contDiff_fst))) | |
| have hg : ContDiff β β (fun q : P Γ β => planarMarginal A (fun z => f (q.1,z)) q.2) := | |
| (contDiff_parameter_segment_integral hff (-A)).comp (contDiff_id.prodMk contDiff_const) | |
| have hh : ContDiff β β (fun p => β« y in -A..A, planarMarginal A (fun z => f (p,z)) y) := | |
| (contDiff_parameter_segment_integral hg (-A)).comp (contDiff_id.prodMk contDiff_const) | |
| have he : (fun p => β« y in -A..A, planarMarginal A (fun z => f (p,z)) y) = | |
| (fun p => β« z, f (p,z)) := by | |
| funext p | |
| have hfp : Continuous (fun z => f (p,z)) := | |
| hf.continuous.comp (continuous_const.prodMk continuous_id) | |
| have hfc : HasCompactSupport (fun z => f (p,z)) := by | |
| apply HasCompactSupport.intro (isCompact_closedBall (0:Plane) (max A 0)) | |
| intro z hz | |
| have hh : max A 0 < max |z.1| |z.2| := by | |
| simpa only [Metric.mem_closedBall,dist_zero_right,Prod.norm_def,Real.norm_eq_abs,not_le] using hz | |
| exact hzero p z.1 z.2 ((lt_max_iff.mp ((le_max_left A 0).trans_lt hh)).imp le_of_lt le_of_lt) | |
| have hgm (y : β) : planarMarginal A (fun z => f (p,z)) y = β« x, f (p,(x,y)) := | |
| integral_eq_full_of_box_support (fun x hx => hzero p x y (Or.inl hx)) | |
| have hgy (y : β) (hy : A β€ |y|) : planarMarginal A (fun z => f (p,z)) y=0 := by | |
| unfold planarMarginal | |
| have he : (fun x => f (p,(x,y))) = fun _ => (0:β) := funext fun x => hzero p x y (Or.inr hy) | |
| rw [he,intervalIntegral.integral_zero] | |
| rw [integral_eq_full_of_box_support hgy] | |
| simp_rw [hgm] | |
| change (β« y, β« x, f (p,(x,y))) = β« z : β Γ β, f (p,z) | |
| rw [Measure.volume_eq_prod β β] | |
| exact (integral_prod_symm (ΞΌ := (volume : Measure β)) (Ξ½ := (volume : Measure β)) (fun z => f (p,z)) (hfp.integrable_of_hasCompactSupport hfc)).symm | |
| rw [he] at hh | |
| exact hh | |
| theorem exists_planar_unit_bump {A : β} (hA : 0<A) : | |
| β Ο : Plane β β, ContDiff β β Ο β§ | |
| (β z, 0 β€ Ο z) β§ HasCompactSupport Ο β§ | |
| (β x y, A β€ |x| β¨ A β€ |y| β Ο (x,y)=0) β§ (β« z, Ο z)=1 := by | |
| let b : ContDiffBump (0:β) := β¨A/2,A,by positivity,by linarithβ© | |
| let r := b.normed volume | |
| have hrs : ContDiff β β r := b.contDiff_normed | |
| have hr0 (x : β) (hx : A β€ |x|) : r x=0 := by | |
| by_contra hn | |
| have hb : x β support (b.normed volume) := hn | |
| rw [b.support_normed_eq] at hb | |
| have hh : |x|<A := by simpa only [Metric.mem_ball,dist_zero_right,Real.norm_eq_abs] using hb | |
| exact (not_lt_of_ge hx) hh | |
| let Ο : Plane β β := fun z => r z.1*r z.2 | |
| have hs : ContDiff β β Ο := (hrs.comp contDiff_fst).mul (hrs.comp contDiff_snd) | |
| have hz (x y : β) (hxy : A β€ |x| β¨ A β€ |y|) : Ο (x,y)=0 := by | |
| rcases hxy with hx|hy | |
| Β· exact mul_eq_zero_of_left (hr0 x hx) _ | |
| Β· exact mul_eq_zero_of_right _ (hr0 y hy) | |
| have hc : HasCompactSupport Ο := by | |
| apply HasCompactSupport.intro (isCompact_closedBall (0:Plane) A) | |
| intro z hn | |
| have hh : A < max |z.1| |z.2| := by | |
| simpa only [Metric.mem_closedBall,dist_zero_right,Prod.norm_def,Real.norm_eq_abs,not_le] using hn | |
| exact hz z.1 z.2 ((lt_max_iff.mp hh).imp le_of_lt le_of_lt) | |
| refine β¨Ο,hs,fun z => mul_nonneg (b.nonneg_normed (ΞΌ := volume) _) (b.nonneg_normed (ΞΌ := volume) _),hc,hz,?_β© | |
| have hi := integral_prod (ΞΌ := (volume : Measure β)) (Ξ½ := (volume : Measure β)) Ο (hs.continuous.integrable_of_hasCompactSupport hc) | |
| change (β« z : β Γ β, Ο z)=1 | |
| rw [Measure.volume_eq_prod β β,hi] | |
| change (β« x, β« y, r x*r y)=1 | |
| simp_rw [integral_const_mul] | |
| rw [show (β« y, r y)=1 from b.integral_normed] | |
| simp only [mul_one] | |
| exact b.integral_normed | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold MeasureTheory | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| structure SurfaceCoordinateBox (M : Type*) [TopologicalSpace M] [ChartedSpace Plane M] where | |
| center : M | |
| point : Plane | |
| radius : β | |
| radius_pos : 0 < radius | |
| closed_subset : Metric.closedBall point radius β (extChartAt π(β,Plane) center).target | |
| namespace SurfaceCoordinateBox | |
| def carrier (B : SurfaceCoordinateBox M) : Set M := | |
| (extChartAt π(β,Plane) B.center).source β© | |
| extChartAt π(β,Plane) B.center β»ΒΉ' Metric.ball B.point B.radius | |
| def compactCarrier (B : SurfaceCoordinateBox M) : Set M := | |
| (extChartAt π(β,Plane) B.center).symm '' Metric.closedBall B.point B.radius | |
| theorem isOpen_carrier (B : SurfaceCoordinateBox M) : IsOpen B.carrier := by | |
| exact (continuousOn_extChartAt B.center).isOpen_inter_preimage | |
| (isOpen_extChartAt_source B.center) Metric.isOpen_ball | |
| theorem isCompact_compactCarrier (B : SurfaceCoordinateBox M) : IsCompact B.compactCarrier := by | |
| exact (isCompact_closedBall B.point B.radius).image_of_continuousOn | |
| ((continuousOn_extChartAt_symm (I := π(β,Plane)) B.center).mono B.closed_subset) | |
| theorem compactCarrier_subset (B : SurfaceCoordinateBox M) : | |
| B.compactCarrier β (extChartAt π(β,Plane) B.center).source := by | |
| rintro x β¨y,hy,rflβ© | |
| exact (extChartAt π(β,Plane) B.center).map_target (B.closed_subset hy) | |
| theorem carrier_subset_compactCarrier (B : SurfaceCoordinateBox M) : | |
| B.carrier β B.compactCarrier := by | |
| intro x hx | |
| exact β¨extChartAt π(β,Plane) B.center x,Metric.ball_subset_closedBall hx.2, | |
| (extChartAt π(β,Plane) B.center).left_inv hx.1β© | |
| theorem nonempty_carrier (B : SurfaceCoordinateBox M) : B.carrier.Nonempty := by | |
| have hp : B.point β (extChartAt π(β,Plane) B.center).target := | |
| B.closed_subset (Metric.mem_closedBall_self B.radius_pos.le) | |
| refine β¨(extChartAt π(β,Plane) B.center).symm B.point, | |
| (extChartAt π(β,Plane) B.center).map_target hp,?_β© | |
| change extChartAt π(β,Plane) B.center ((extChartAt π(β,Plane) B.center).symm B.point) β Metric.ball B.point B.radius | |
| rw [(extChartAt π(β,Plane) B.center).right_inv hp] | |
| exact Metric.mem_ball_self B.radius_pos | |
| theorem exists_mem (x : M) : β B : SurfaceCoordinateBox M, x β B.carrier := by | |
| have hx := mem_extChartAt_source (I := π(β,Plane)) x | |
| have hy := (extChartAt π(β,Plane) x).map_source hx | |
| obtain β¨r,hr,hrsubβ© := Metric.isOpen_iff.mp (isOpen_extChartAt_target (I := π(β,Plane)) x) | |
| _ hy | |
| have hs : Metric.closedBall (extChartAt π(β,Plane) x x) (r/2) β | |
| (extChartAt π(β,Plane) x).target := by | |
| apply Subset.trans (Metric.closedBall_subset_ball (by linarith)) hrsub | |
| refine β¨β¨x,extChartAt π(β,Plane) x x,r/2,by positivity,hsβ©,hx,?_β© | |
| exact Metric.mem_ball_self (by positivity) | |
| theorem exists_compactCarrier_subset {U : Set M} (hU : IsOpen U) {x : M} (hxU : x β U) : | |
| β B : SurfaceCoordinateBox M, x β B.carrier β§ B.compactCarrier β U := by | |
| have hx := mem_extChartAt_source (I := π(β,Plane)) x | |
| have hy := (extChartAt π(β,Plane) x).map_source hx | |
| have hS : IsOpen ((extChartAt π(β,Plane) x).target β© | |
| (extChartAt π(β,Plane) x).symm β»ΒΉ' U) := | |
| (continuousOn_extChartAt_symm x).isOpen_inter_preimage (isOpen_extChartAt_target x) hU | |
| have hxy : extChartAt π(β,Plane) x x β | |
| (extChartAt π(β,Plane) x).target β© (extChartAt π(β,Plane) x).symm β»ΒΉ' U := by | |
| refine β¨hy,?_β© | |
| simpa only [mem_preimage,(extChartAt π(β,Plane) x).left_inv hx] using hxU | |
| obtain β¨r,hr,hrsubβ© := Metric.isOpen_iff.mp hS _ hxy | |
| have hs := (Metric.closedBall_subset_ball (x := extChartAt π(β,Plane) x x) | |
| (show r/2<r by linarith)).trans hrsub | |
| let B : SurfaceCoordinateBox M := | |
| β¨x,extChartAt π(β,Plane) x x,r/2,by positivity,hs.trans inter_subset_leftβ© | |
| refine β¨B,β¨hx,Metric.mem_ball_self (by dsimp [B]; positivity)β©,?_β© | |
| rintro z β¨y,hy,rflβ© | |
| exact (hs hy).2 | |
| theorem finite_partition [IsManifold π(β,Plane) β M] [T2Space M] [SigmaCompactSpace M] | |
| {K : Set M} (hK : IsCompact K) : | |
| β (s : Finset (SurfaceCoordinateBox M)) | |
| (Ο : SmoothPartitionOfUnity s π(β,Plane) M K), | |
| Ο.IsSubordinate (fun B => B.1.carrier) := by | |
| classical | |
| obtain β¨s,hsβ© := hK.elim_finite_subcover (fun B : SurfaceCoordinateBox M => B.carrier) | |
| isOpen_carrier (fun x _ => mem_iUnion.mpr (exists_mem x)) | |
| obtain β¨Ο,hΟβ© := SmoothPartitionOfUnity.exists_isSubordinate π(β,Plane) hK.isClosed | |
| (fun B : s => B.1.carrier) (fun B => B.1.isOpen_carrier) (by | |
| intro x hx | |
| obtain β¨B,hBs,hxBβ© := mem_iUnionβ.mp (hs hx) | |
| exact mem_iUnion.mpr β¨β¨B,hBsβ©,hxBβ©) | |
| exact β¨s,Ο,hΟβ© | |
| end SurfaceCoordinateBox | |
| end | |
| section | |
| open scoped ContDiff Topology | |
| open Set | |
| variable {P E F : Type*} [NormedAddCommGroup P] [NormedSpace β P] | |
| [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| def spatialZeroExtension (S : Set E) (f : P Γ E β F) (q : P Γ E) : F := by | |
| classical | |
| exact if q.2 β S then f q else 0 | |
| theorem spatialZeroExtension_smooth {S K : Set E} (hS : IsOpen S) (hK : IsClosed K) | |
| (hKS : K β S) {f : P Γ E β F} (hf : ContDiffOn β β f (univ ΓΛ’ S)) | |
| (hz : β p x, x β S β x β K β f (p,x)=0) : | |
| ContDiff β β (spatialZeroExtension S f) := by | |
| apply contDiff_iff_contDiffAt.mpr | |
| intro p | |
| by_cases hp : p.2 β S | |
| Β· have hs := hf.contDiffAt ((isOpen_univ.prod hS).mem_nhds β¨mem_univ _,hpβ©) | |
| apply hs.congr_of_eventuallyEq | |
| filter_upwards [continuousAt_snd.preimage_mem_nhds (hS.mem_nhds hp)] with q hq | |
| exact ite_eq_left hq | |
| Β· have hpk : p.2 β K := fun hk => hp (hKS hk) | |
| apply (contDiffAt_const (c := (0:F))).congr_of_eventuallyEq | |
| filter_upwards [continuousAt_snd.preimage_mem_nhds (hK.isOpen_compl.mem_nhds hpk)] with q hq | |
| unfold spatialZeroExtension | |
| split_ifs with hqS | |
| Β· exact hz q.1 q.2 hqS hq | |
| Β· rfl | |
| omit [NormedAddCommGroup P] [NormedSpace β P] [NormedAddCommGroup E] [NormedSpace β E] [NormedSpace β F] in | |
| theorem spatialZeroExtension_zero {S K : Set E} {f : P Γ E β F} | |
| (hz : β p x, x β S β x β K β f (p,x)=0) (p : P) {x : E} (hx : x β K) : | |
| spatialZeroExtension S f (p,x)=0 := by | |
| unfold spatialZeroExtension | |
| split_ifs with hxS | |
| Β· exact hz p x hxS hx | |
| Β· rfl | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold MeasureTheory | |
| theorem planar_skew_coefficient (B : Plane βL[β] Plane βL[β] β) | |
| (hB : β u v, B u v = -B v u) (u v : Plane) : | |
| B u v = B (1,0) (0,1)*planarArea u v := by | |
| have he := bilinear_skew_plane B u v | |
| rw [hB v u,hB (0,1) (1,0)] at he | |
| linarith | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold π(β,Plane) β M] | |
| theorem chartTwoForm_change {Ξ© : ManifoldTwoForm Plane M} {c b : M} {y : Plane} | |
| (hy : y β (extChartAt π(β,Plane) b).target) | |
| (hc : (extChartAt π(β,Plane) b).symm y β (extChartAt π(β,Plane) c).source) : | |
| chartTwoForm Ξ© b y = | |
| (chartTwoForm Ξ© c (extChartAt π(β,Plane) c ((extChartAt π(β,Plane) b).symm y))).bilinearComp | |
| (fderiv β (extChartAt π(β,Plane) c β (extChartAt π(β,Plane) b).symm) y) | |
| (fderiv β (extChartAt π(β,Plane) c β (extChartAt π(β,Plane) b).symm) y) := by | |
| have hi := ((contMDiffOn_extChartAt_symm (I := π(β,Plane)) (n := β) b).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,Plane)) b).mem_nhds hy)).mdifferentiableAt (by simp) | |
| have he := euclideanPullbackTwoForm_chart (Ξ© := fun _ => Ξ©) (p := (0,y)) hi hc | |
| simpa only [euclideanPullbackTwoForm,chartTwoForm,chartDifferential_inverse hy] using he | |
| omit [IsManifold π(β,Plane) β M] in | |
| theorem chartTwoForm_skew {Ξ© : ManifoldTwoForm Plane M} | |
| (hΞ© : β x u v, Ξ© x u v = -Ξ© x v u) (c : M) (y u v : Plane) : | |
| chartTwoForm Ξ© c y u v = -chartTwoForm Ξ© c y v u := by | |
| exact hΞ© _ _ _ | |
| theorem chartTwoForm_density_change {Ξ© : ManifoldTwoForm Plane M} | |
| (hΞ© : β x u v, Ξ© x u v = -Ξ© x v u) {c b : M} {y : Plane} | |
| (hy : y β (extChartAt π(β,Plane) b).target) | |
| (hc : (extChartAt π(β,Plane) b).symm y β (extChartAt π(β,Plane) c).source) : | |
| chartTwoForm Ξ© b y (1,0) (0,1) = | |
| (fderiv β (extChartAt π(β,Plane) c β (extChartAt π(β,Plane) b).symm) y).det * | |
| chartTwoForm Ξ© c (extChartAt π(β,Plane) c ((extChartAt π(β,Plane) b).symm y)) (1,0) (0,1) := by | |
| rw [chartTwoForm_change hy hc,ContinuousLinearMap.bilinearComp_apply, | |
| planar_skew_coefficient _ (chartTwoForm_skew hΞ© _ _), β planar_det,mul_comm] | |
| theorem chart_area_integral_change {Ξ© : ManifoldTwoForm Plane M} | |
| (hΞ© : β x u v, Ξ© x u v = -Ξ© x v u) {c b : M} {K : Set M} | |
| (hK : IsCompact K) | |
| (hKb : K β (extChartAt π(β,Plane) b).source) | |
| (hKc : K β (extChartAt π(β,Plane) c).source) | |
| (hpos : β y β extChartAt π(β,Plane) b '' K, | |
| 0 < (fderiv β (extChartAt π(β,Plane) c β (extChartAt π(β,Plane) b).symm) y).det) : | |
| (β« y in extChartAt π(β,Plane) b '' K, chartTwoForm Ξ© b y (1,0) (0,1)) = | |
| β« y in extChartAt π(β,Plane) c '' K, chartTwoForm Ξ© c y (1,0) (0,1) := by | |
| let g : Plane β Plane := extChartAt π(β,Plane) c β (extChartAt π(β,Plane) b).symm | |
| have hyb {y : Plane} (hy : y β extChartAt π(β,Plane) b '' K) : | |
| y β (extChartAt π(β,Plane) b).target := by | |
| obtain β¨x,hx,rflβ© := hy | |
| exact (extChartAt π(β,Plane) b).map_source (hKb hx) | |
| have hyK {y : Plane} (hy : y β extChartAt π(β,Plane) b '' K) : | |
| (extChartAt π(β,Plane) b).symm y β K := by | |
| obtain β¨x,hx,rflβ© := hy | |
| simpa only [(extChartAt π(β,Plane) b).left_inv (hKb hx)] using hx | |
| have hgs : β y β extChartAt π(β,Plane) b '' K, ContDiffAt β β g y := by | |
| intro y hy | |
| have hi := (contMDiffOn_extChartAt_symm (I := π(β,Plane)) (n := β) b).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,Plane)) b).mem_nhds (hyb hy)) | |
| have ho := contMDiffAt_extChartAt' (I := π(β,Plane)) (n := β) (x := c) | |
| (by simpa only [extChartAt_source] using hKc (hyK hy)) | |
| exact (ho.comp y hi).contDiffAt | |
| have hgi : InjOn g (extChartAt π(β,Plane) b '' K) := by | |
| intro y hy z hz he | |
| apply (extChartAt π(β,Plane) b).symm.injOn (hyb hy) (hyb hz) | |
| exact (extChartAt π(β,Plane) c).injOn (hKc (hyK hy)) (hKc (hyK hz)) he | |
| have him : g '' (extChartAt π(β,Plane) b '' K) = extChartAt π(β,Plane) c '' K := by | |
| ext y | |
| constructor | |
| Β· rintro β¨z,hz,rflβ© | |
| exact β¨(extChartAt π(β,Plane) b).symm z,hyK hz,rflβ© | |
| Β· rintro β¨x,hx,rflβ© | |
| refine β¨extChartAt π(β,Plane) b x,β¨x,hx,rflβ©,?_β© | |
| exact congrArg (extChartAt π(β,Plane) c) ((extChartAt π(β,Plane) b).left_inv (hKb hx)) | |
| have hi := integral_image_eq_integral_abs_det_fderiv_smul volume | |
| (hK.image_of_continuousOn ((continuousOn_extChartAt (I := π(β,Plane)) b).mono hKb)).measurableSet | |
| (f' := fderiv β g) | |
| (fun y hy => ((hgs y hy).differentiableAt (by simp)).hasFDerivAt.hasFDerivWithinAt) | |
| hgi (fun y => chartTwoForm Ξ© c y (1,0) (0,1)) | |
| rw [him] at hi | |
| rw [hi] | |
| apply setIntegral_congr_fun | |
| (hK.image_of_continuousOn ((continuousOn_extChartAt (I := π(β,Plane)) b).mono hKb)).measurableSet | |
| intro y hy | |
| dsimp only | |
| change chartTwoForm Ξ© b y (1,0) (0,1) = | |
| |(fderiv β (extChartAt π(β,Plane) c β (extChartAt π(β,Plane) b).symm) y).det| β’ | |
| chartTwoForm Ξ© c (extChartAt π(β,Plane) c ((extChartAt π(β,Plane) b).symm y)) (1,0) (0,1) | |
| rw [chartTwoForm_density_change hΞ© (hyb hy) (hKc (hyK hy)),abs_of_pos (hpos y hy)] | |
| rfl | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold MeasureTheory | |
| variable {P : Type*} [NormedAddCommGroup P] [NormedSpace β P] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold π(β,Plane) β M] | |
| def extendedChartCoefficient (c : M) (Ξ© : P β ManifoldTwoForm Plane M) : P Γ Plane β β := | |
| spatialZeroExtension (extChartAt π(β,Plane) c).target | |
| (fun q => chartTwoForm (Ξ© q.1) c q.2 (1,0) (0,1)) | |
| omit [IsManifold π(β,Plane) β M] [NormedAddCommGroup P] [NormedSpace β P] in | |
| theorem chartCoefficient_zero {c : M} {Ξ© : P β ManifoldTwoForm Plane M} {K : Set M} | |
| (hz : β p x, x β K β Ξ© p x=0) (p : P) {y : Plane} | |
| (hy : y β (extChartAt π(β,Plane) c).target) | |
| (hyk : y β extChartAt π(β,Plane) c '' K) : | |
| chartTwoForm (Ξ© p) c y (1,0) (0,1)=0 := by | |
| have hx : (extChartAt π(β,Plane) c).symm y β K := by | |
| intro hk | |
| exact hyk β¨_,hk,(extChartAt π(β,Plane) c).right_inv hyβ© | |
| simp only [chartTwoForm,hz p _ hx,ContinuousLinearMap.bilinearComp_apply, | |
| zero_apply] | |
| omit [IsManifold π(β,Plane) β M] [NormedAddCommGroup P] [NormedSpace β P] in | |
| theorem extendedChartCoefficient_zero {c : M} {Ξ© : P β ManifoldTwoForm Plane M} {K : Set M} | |
| (hz : β p x, x β K β Ξ© p x=0) (p : P) {y : Plane} | |
| (hy : y β extChartAt π(β,Plane) c '' K) : extendedChartCoefficient c Ξ© (p,y)=0 := by | |
| exact spatialZeroExtension_zero (fun p y hy hk => chartCoefficient_zero hz p hy hk) p hy | |
| omit [IsManifold π(β,Plane) β M] in | |
| theorem extendedChartCoefficient_smooth {c : M} {Ξ© : P β ManifoldTwoForm Plane M} | |
| (hΞ© : ContDiffOn β β (fun q : P Γ Plane => chartTwoForm (Ξ© q.1) c q.2) | |
| (univ ΓΛ’ (extChartAt π(β,Plane) c).target)) | |
| {K : Set M} (hK : IsCompact K) (hKc : K β (extChartAt π(β,Plane) c).source) | |
| (hz : β p x, x β K β Ξ© p x=0) : ContDiff β β (extendedChartCoefficient c Ξ©) := by | |
| have hcK := hK.image_of_continuousOn | |
| ((continuousOn_extChartAt (I := π(β,Plane)) c).mono hKc) | |
| apply spatialZeroExtension_smooth (isOpen_extChartAt_target c) hcK.isClosed | |
| Β· rintro y β¨x,hx,rflβ© | |
| exact (extChartAt π(β,Plane) c).map_source (hKc hx) | |
| Β· exact (hΞ©.clm_apply contDiffOn_const).clm_apply contDiffOn_const | |
| Β· intro p y hy hk | |
| exact chartCoefficient_zero hz p hy hk | |
| omit [NormedAddCommGroup P] [NormedSpace β P] in | |
| theorem chartSupported_extendedCoefficient {c : M} {Ξ© : P β ManifoldTwoForm Plane M} | |
| (hskew : β p x u v, Ξ© p x u v = -Ξ© p x v u) | |
| {K : Set M} (hKc : K β (extChartAt π(β,Plane) c).source) | |
| (hz : β p x, x β K β Ξ© p x=0) (p : P) : | |
| chartSupportedTwoForm c (fun y => extendedChartCoefficient c Ξ© (p,y) β’ planarArea) = Ξ© p := by | |
| funext x | |
| by_cases hx : x β (extChartAt π(β,Plane) c).source | |
| Β· have hy := (extChartAt π(β,Plane) c).map_source hx | |
| unfold chartSupportedTwoForm extendedChartCoefficient spatialZeroExtension | |
| simp only [ite_eq_left hx,ite_eq_left hy] | |
| apply ContinuousLinearMap.ext | |
| intro u | |
| apply ContinuousLinearMap.ext | |
| intro v | |
| simp only [ContinuousLinearMap.bilinearComp_apply,smul_apply, | |
| smul_eq_mul] | |
| rw [β planar_skew_coefficient _ (chartTwoForm_skew (hskew p) c _) ] | |
| exact chartTwoForm_apply_chart hx u v | |
| Β· unfold chartSupportedTwoForm | |
| rw [ite_eq_right hx,hz p x (fun hk => hx (hKc hk))] | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold MeasureTheory | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| def chartMass (c : M) (Ξ© : ManifoldTwoForm Plane M) : β := | |
| β« y, extendedChartCoefficient c (fun _ : β => Ξ©) (0,y) | |
| theorem chartMass_eq_setIntegral {c : M} {Ξ© : ManifoldTwoForm Plane M} {K : Set M} | |
| (hK : IsCompact K) (hKc : K β (extChartAt π(β,Plane) c).source) | |
| (hz : β x, x β K β Ξ© x=0) : | |
| chartMass c Ξ© = β« y in extChartAt π(β,Plane) c '' K, chartTwoForm Ξ© c y (1,0) (0,1) := by | |
| unfold chartMass | |
| rw [β setIntegral_eq_integral_of_forall_compl_eq_zero | |
| (fun y hy => extendedChartCoefficient_zero (fun _ x hx => hz x hx) (0:β) hy)] | |
| apply setIntegral_congr_fun | |
| (hK.image_of_continuousOn ((continuousOn_extChartAt (I := π(β,Plane)) c).mono hKc)).measurableSet | |
| rintro y β¨x,hx,rflβ© | |
| exact ite_eq_left ((extChartAt π(β,Plane) c).map_source (hKc hx)) | |
| variable [IsManifold π(β,Plane) β M] | |
| theorem chartMass_change {Ξ© : ManifoldTwoForm Plane M} | |
| (hΞ© : β x u v, Ξ© x u v = -Ξ© x v u) {c b : M} {K : Set M} | |
| (hK : IsCompact K) (hKb : K β (extChartAt π(β,Plane) b).source) | |
| (hKc : K β (extChartAt π(β,Plane) c).source) | |
| (hz : β x, x β K β Ξ© x=0) | |
| (hpos : β y β extChartAt π(β,Plane) b '' K, | |
| 0 < (fderiv β (extChartAt π(β,Plane) c β (extChartAt π(β,Plane) b).symm) y).det) : | |
| chartMass b Ξ© = chartMass c Ξ© := by | |
| rw [chartMass_eq_setIntegral hK hKb hz,chartMass_eq_setIntegral hK hKc hz] | |
| exact chart_area_integral_change hΞ© hK hKb hKc hpos | |
| omit [IsManifold π(β,Plane) β M] in | |
| theorem chartMass_smooth {P : Type} [NormedAddCommGroup P] [NormedSpace β P] | |
| [FiniteDimensional β P] {c : M} {Ξ© : P β ManifoldTwoForm Plane M} | |
| (hΞ© : ContDiffOn β β (fun q : P Γ Plane => chartTwoForm (Ξ© q.1) c q.2) | |
| (univ ΓΛ’ (extChartAt π(β,Plane) c).target)) | |
| {K : Set M} (hK : IsCompact K) (hKc : K β (extChartAt π(β,Plane) c).source) | |
| (hz : β p x, x β K β Ξ© p x=0) : ContDiff β β (fun p => chartMass c (Ξ© p)) := by | |
| have hcK := hK.image_of_continuousOn | |
| ((continuousOn_extChartAt (I := π(β,Plane)) c).mono hKc) | |
| obtain β¨R,hRβ© := hcK.isBounded.subset_closedBall (0:Plane) | |
| have hf := extendedChartCoefficient_smooth hΞ© hK hKc hz | |
| change ContDiff β β (fun p => β« y, extendedChartCoefficient c Ξ© (p,y)) | |
| apply planar_fixed_support_integral_smooth (A := max R 0+1) hf | |
| intro p x y hxy | |
| apply extendedChartCoefficient_zero hz p | |
| intro hxyK | |
| have hn : max |x| |y| β€ R := by | |
| simpa only [Metric.mem_closedBall,dist_zero_right,Prod.norm_def,Real.norm_eq_abs] using hR hxyK | |
| rcases hxy with hx|hy | |
| Β· have := (le_max_left |x| |y|).trans hn | |
| linarith [le_max_left R 0] | |
| Β· have := (le_max_right |x| |y|).trans hn | |
| linarith [le_max_left R 0] | |
| end | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace E M] | |
| @[simp] theorem chartOneForm_add (Ξ± Ξ² : ManifoldOneForm E M) (c : M) (y : E) : | |
| chartOneForm (Ξ±+Ξ²) c y = chartOneForm Ξ± c y + chartOneForm Ξ² c y := by | |
| apply ContinuousLinearMap.ext | |
| intro u | |
| rfl | |
| @[simp] theorem chartOneForm_smul (a : β) (Ξ± : ManifoldOneForm E M) (c : M) (y : E) : | |
| chartOneForm (a β’ Ξ±) c y = a β’ chartOneForm Ξ± c y := by | |
| apply ContinuousLinearMap.ext | |
| intro u | |
| rfl | |
| @[simp] theorem chartOneForm_zero (c : M) (y : E) : chartOneForm (0 : ManifoldOneForm E M) c y=0 := rfl | |
| @[simp] theorem chartTwoForm_add (Ξ© Ξ : ManifoldTwoForm E M) (c : M) (y : E) : | |
| chartTwoForm (Ξ©+Ξ) c y = chartTwoForm Ξ© c y + chartTwoForm Ξ c y := by | |
| apply ContinuousLinearMap.ext | |
| intro u | |
| apply ContinuousLinearMap.ext | |
| intro v | |
| rfl | |
| @[simp] theorem chartTwoForm_smul (a : β) (Ξ© : ManifoldTwoForm E M) (c : M) (y : E) : | |
| chartTwoForm (a β’ Ξ©) c y = a β’ chartTwoForm Ξ© c y := by | |
| apply ContinuousLinearMap.ext | |
| intro u | |
| apply ContinuousLinearMap.ext | |
| intro v | |
| rfl | |
| @[simp] theorem chartTwoForm_zero (c : M) (y : E) : chartTwoForm (0 : ManifoldTwoForm E M) c y=0 := rfl | |
| theorem euclideanExteriorOneForm_add {Ξ± Ξ² : E β E βL[β] β} {x : E} | |
| (hΞ± : DifferentiableAt β Ξ± x) (hΞ² : DifferentiableAt β Ξ² x) : | |
| euclideanExteriorOneForm (Ξ±+Ξ²) x = | |
| euclideanExteriorOneForm Ξ± x + euclideanExteriorOneForm Ξ² x := by | |
| rw [euclideanExteriorOneForm,fderiv_add hΞ± hΞ²] | |
| ext u v | |
| simp only [euclideanExteriorOneForm,sub_apply,ContinuousLinearMap.flip_apply,add_apply] | |
| ring | |
| theorem euclideanExteriorOneForm_smul (a : β) {Ξ± : E β E βL[β] β} {x : E} | |
| (hΞ± : DifferentiableAt β Ξ± x) : | |
| euclideanExteriorOneForm (a β’ Ξ±) x = a β’ euclideanExteriorOneForm Ξ± x := by | |
| rw [euclideanExteriorOneForm,fderiv_const_smul hΞ±] | |
| ext u v | |
| simp only [euclideanExteriorOneForm,sub_apply,ContinuousLinearMap.flip_apply,smul_apply, | |
| smul_eq_mul] | |
| ring | |
| end PackingSufficiencySupport.Hamiltonian | |
| end | |
| end OAI | |