Download data/lean/OAI/Geometry/BallPacking/SurfaceArea/SurfaceIntegralIndependence.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 28.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/SurfaceArea/SurfaceIntegralIndependence.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BallPacking/SurfaceArea/SurfaceIntegralIndependence.lean
-
curl -L -o SurfaceIntegralIndependence.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/SurfaceArea/SurfaceIntegralIndependence.lean
28.8 kB
| import Mathlib | |
| import OAI.Geometry.BallPacking.Moments.ConvexWeights | |
| namespace OAI | |
| noncomputable section | |
| namespace PackingSufficiencySupport.Hamiltonian | |
| open Set Function Manifold MeasureTheory Classical | |
| open scoped ContDiff Manifold Topology ENNReal | |
| section | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold π(β,Plane) β M] [T2Space M] | |
| {I J : Type*} [Fintype I] [Fintype J] {K : Set M} | |
| omit [T2Space M] in | |
| theorem partitionFormMass_independent (hpos : PositivePlaneTransitions M) | |
| (hK : IsCompact K) (B : I β SurfaceCoordinateBox M) (C : J β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) (Ξ½ : SmoothPartitionOfUnity J π(β,Plane) M K) | |
| (hΟ : Ο.IsSubordinate (fun i => (B i).carrier)) | |
| (hΞ½ : Ξ½.IsSubordinate (fun j => (C j).carrier)) | |
| {Ξ© : ManifoldTwoForm Plane M} (hΞ© : SmoothTwoForm Ξ©) | |
| (hskew : β x u v, Ξ© x u v = -Ξ© x v u) (hz : β x, x β K β Ξ© x=0) : | |
| partitionFormMass B Ο Ξ© = partitionFormMass C Ξ½ Ξ© := by | |
| classical | |
| let : MulActionWithZero β (Plane βL[β] Plane βL[β] β) := | |
| .toMulActionWithZero β (Plane βL[β] Plane βL[β] β) inferInstance inferInstance inferInstance | |
| let D : I β J β ManifoldTwoForm Plane M := fun i j x => Ο i x β’ (Ξ½ j x β’ Ξ© x) | |
| let L : I β J β Set M := fun i j => K β© tsupport (Ο i) β© tsupport (Ξ½ j) | |
| have hL (i : I) (j : J) : IsCompact (L i j) := | |
| (hK.inter_right (isClosed_tsupport (Ο i))).inter_right (isClosed_tsupport (Ξ½ j)) | |
| have hLB (i : I) (j : J) : L i j β (extChartAt π(β,Plane) (B i).center).source := | |
| fun _ hx => (hΟ i hx.1.2).1 | |
| have hLC (i : I) (j : J) : L i j β (extChartAt π(β,Plane) (C j).center).source := | |
| fun _ hx => (hΞ½ j hx.2).1 | |
| have hDz (i : I) (j : J) (x : M) (hx : x β L i j) : D i j x=0 := by | |
| by_cases hk : x β K | |
| Β· by_cases hi : x β tsupport (Ο i) | |
| Β· have hj : x β tsupport (Ξ½ j) := fun hj => hx β¨β¨hk,hiβ©,hjβ© | |
| simp only [D,image_eq_zero_of_notMem_tsupport hj,zero_smul,smul_zero] | |
| Β· simp only [D,image_eq_zero_of_notMem_tsupport hi,zero_smul] | |
| Β· simp only [D,hz x hk,smul_zero] | |
| have hDs (i : I) (j : J) : SmoothTwoForm (D i j) := | |
| (((SmoothTwoFormFamily.const (P := β) hΞ©).spatial_smul (Ξ½ j).contMDiff).spatial_smul | |
| (Ο i).contMDiff).eval 0 | |
| have hDa (i : I) (j : J) (x : M) (u v : Plane) : D i j x u v = -D i j x v u := by | |
| change Ο i x * (Ξ½ j x * Ξ© x u v) = -(Ο i x * (Ξ½ j x * Ξ© x v u)) | |
| rw [hskew x u v]; ring | |
| have hsumJ (i : I) : (β j, D i j) = fun x => Ο i x β’ Ξ© x := by | |
| funext x | |
| apply ContinuousLinearMap.ext | |
| intro firstVector | |
| apply ContinuousLinearMap.ext | |
| intro secondVector | |
| simp only [Finset.sum_apply,D,sum_apply,smul_apply,smul_eq_mul] | |
| rw [β Finset.mul_sum,β Finset.sum_mul] | |
| by_cases hx : x β K | |
| Β· have hh : (β j, Ξ½ j x)=1 := by simpa only [finsum_eq_sum_of_fintype] using Ξ½.sum_eq_one hx | |
| rw [hh,one_mul] | |
| Β· simp only [hz x hx,zero_apply,mul_zero] | |
| have hsumI (j : J) : (β i, D i j) = fun x => Ξ½ j x β’ Ξ© x := by | |
| funext x | |
| apply ContinuousLinearMap.ext | |
| intro firstVector | |
| apply ContinuousLinearMap.ext | |
| intro secondVector | |
| simp only [Finset.sum_apply,D,sum_apply,smul_apply,smul_eq_mul] | |
| rw [β Finset.sum_mul] | |
| by_cases hx : x β K | |
| Β· have hh : (β i, Ο i x)=1 := by simpa only [finsum_eq_sum_of_fintype] using Ο.sum_eq_one hx | |
| rw [hh,one_mul] | |
| Β· simp only [hz x hx,zero_apply,mul_zero] | |
| have hchange (i : I) (j : J) : chartMass (B i).center (D i j)=chartMass (C j).center (D i j) := by | |
| apply chartMass_change (hDa i j) (hL i j) (hLB i j) (hLC i j) (hDz i j) | |
| rintro y β¨x,hx,rflβ© | |
| apply hpos (B i).center (C j).center _ ((extChartAt π(β,Plane) (B i).center).map_source (hLB i j hx)) | |
| simpa only [(extChartAt π(β,Plane) (B i).center).left_inv (hLB i j hx)] using hLC i j hx | |
| unfold partitionFormMass | |
| calc | |
| (β i, chartMass (B i).center (fun x => Ο i x β’ Ξ© x)) = | |
| β i, β j, chartMass (B i).center (D i j) := by | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| rw [β hsumJ i] | |
| exact chartMass_sum Finset.univ (B i).center (D i) | |
| (fun j _ => (hDs i j).coefficient_integrable _ (hL i j) (hLB i j) (hDz i j)) | |
| _ = β i, β j, chartMass (C j).center (D i j) := by | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| exact Finset.sum_congr rfl (fun j _ => hchange i j) | |
| _ = β j, β i, chartMass (C j).center (D i j) := Finset.sum_comm | |
| _ = β j, chartMass (C j).center (fun x => Ξ½ j x β’ Ξ© x) := by | |
| apply Finset.sum_congr rfl | |
| intro j _ | |
| rw [β hsumI j] | |
| exact (chartMass_sum Finset.univ (C j).center (fun i => D i j) | |
| (fun i _ => (hDs i j).coefficient_integrable _ (hL i j) (hLC i j) (hDz i j))).symm | |
| end | |
| section | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [MeasurableSpace M] [BorelSpace M] | |
| def chartInverseExtension (c : M) (y : Plane) : M := | |
| if y β (extChartAt π(β,Plane) c).target then (extChartAt π(β,Plane) c).symm y else c | |
| theorem chartInverseExtension_measurable (c : M) : Measurable (chartInverseExtension c) := by | |
| classical | |
| exact (continuousOn_extChartAt_symm (I := π(β,Plane)) c).measurable_piecewise | |
| continuousOn_const (isOpen_extChartAt_target c).measurableSet | |
| omit [MeasurableSpace M] [BorelSpace M] in | |
| theorem chartInverseExtension_eq {c : M} {y : Plane} | |
| (hy : yβ(extChartAt π(β,Plane) c).target) : | |
| chartInverseExtension c y=(extChartAt π(β,Plane) c).symm y := ite_eq_left hy | |
| def chartAreaMeasure (c : M) (w : Plane β β) : Measure M := | |
| Measure.map (chartInverseExtension c) (volume.withDensity (fun y => ENNReal.ofReal (w y))) | |
| omit [BorelSpace M] in | |
| theorem chartAreaMeasure_finite (c : M) {w : Plane β β} (hw : Integrable w) : | |
| IsFiniteMeasure (chartAreaMeasure c w) := by | |
| have hl : (β«β» y, ENNReal.ofReal (w y)) < (β€ : ββ₯0β) := by | |
| apply lt_of_le_of_lt (lintegral_mono (fun y => ENNReal.ofReal_le_ofReal (le_abs_self (w y)))) | |
| simpa only [Real.norm_eq_abs] using (hasFiniteIntegral_iff_norm w).mp hw.hasFiniteIntegral | |
| let := isFiniteMeasure_withDensity hl.ne | |
| exact inferInstanceAs (IsFiniteMeasure (Measure.map _ _)) | |
| theorem integral_chartAreaMeasure (c : M) {w : Plane β β} | |
| (hw : Measurable w) (hpos : β y,0β€w y) | |
| (hz : β y,yβ(extChartAt π(β,Plane) c).targetβw y=0) | |
| {f : M β β} (hf : Measurable f) : | |
| (β« x, f x βchartAreaMeasure c w)= | |
| β« y, w y*f ((extChartAt π(β,Plane) c).symm y) := by | |
| rw [chartAreaMeasure,integral_map (chartInverseExtension_measurable c).aemeasurable | |
| hf.aestronglyMeasurable] | |
| rw [integral_withDensity_eq_integral_toReal_smul (hw.ennreal_ofReal) | |
| (Filter.Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top))] | |
| apply integral_congr_ae | |
| filter_upwards [] with y | |
| rw [ENNReal.toReal_ofReal (hpos y)] | |
| change w y*f (chartInverseExtension c y)=_ | |
| by_cases hy : yβ(extChartAt π(β,Plane) c).target | |
| Β· rw [chartInverseExtension_eq hy] | |
| Β· rw [hz y hy,zero_mul,zero_mul] | |
| theorem integrable_chartAreaMeasure (c : M) {w : Plane β β} | |
| (hw : Measurable w) (hpos : β y,0β€w y) | |
| (hz : β y,yβ(extChartAt π(β,Plane) c).targetβw y=0) | |
| {f : M β β} (hf : Measurable f) : | |
| Integrable f (chartAreaMeasure c w) β | |
| Integrable (fun y => w y*f ((extChartAt π(β,Plane) c).symm y)) := by | |
| rw [chartAreaMeasure,integrable_map_measure hf.aestronglyMeasurable | |
| (chartInverseExtension_measurable c).aemeasurable, | |
| integrable_withDensity_iff_integrable_smul' hw.ennreal_ofReal | |
| (Filter.Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top))] | |
| apply integrable_congr | |
| filter_upwards [] with y | |
| rw [ENNReal.toReal_ofReal (hpos y)] | |
| change w y*f (chartInverseExtension c y)=_ | |
| by_cases hy : yβ(extChartAt π(β,Plane) c).target | |
| Β· rw [chartInverseExtension_eq hy] | |
| Β· rw [hz y hy,zero_mul,zero_mul] | |
| theorem chartAreaMeasure_null (c : M) {w : Plane β β} | |
| (hz : β y,yβ(extChartAt π(β,Plane) c).targetβw y=0) | |
| {C : Set M} (hC : MeasurableSet C) | |
| (hnull : volume ((extChartAt π(β,Plane) c).target β© | |
| (extChartAt π(β,Plane) c).symm β»ΒΉ' C)=0) : | |
| chartAreaMeasure c w C=0 := by | |
| rw [chartAreaMeasure,Measure.map_apply (chartInverseExtension_measurable c) hC, | |
| withDensity_apply _ ((chartInverseExtension_measurable c) hC)] | |
| apply lintegral_eq_zero_of_ae_eq_zero | |
| filter_upwards [ae_restrict_mem ((chartInverseExtension_measurable c) hC), | |
| (ae_restrict_of_ae (measure_eq_zero_iff_ae_notMem.mp hnull))] with y hy hn | |
| have hyt : yβ(extChartAt π(β,Plane) c).target := by | |
| intro ht | |
| apply hn | |
| refine β¨ht,?_β© | |
| simpa only [mem_preimage,chartInverseExtension_eq ht] using hy | |
| rw [hz y hyt,ENNReal.ofReal_zero] | |
| rfl | |
| end | |
| section | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| {I : Type*} {K : Set M} | |
| def partitionChartDensity (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (Ξ : ManifoldTwoForm Plane M) (i : I) (y : Plane) : β := | |
| extendedChartCoefficient (B i).center (fun _ : β => fun x => Ο i x β’ Ξ x) (0,y) | |
| theorem partitionChartDensity_off_target (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (Ξ : ManifoldTwoForm Plane M) (i : I) {y : Plane} | |
| (hy : yβ(extChartAt π(β,Plane) (B i).center).target) : | |
| partitionChartDensity B Ο Ξ i y=0 := ite_eq_right hy | |
| theorem partitionChartDensity_nonneg (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| {Ξ : ManifoldTwoForm Plane M} | |
| (hΞ : β c y,yβ(extChartAt π(β,Plane) c).targetβ | |
| 0β€chartTwoForm Ξ c y (1,0) (0,1)) (i : I) (y : Plane) : | |
| 0β€partitionChartDensity B Ο Ξ i y := by | |
| by_cases hy : yβ(extChartAt π(β,Plane) (B i).center).target | |
| Β· unfold partitionChartDensity extendedChartCoefficient spatialZeroExtension | |
| rw [ite_eq_left hy] | |
| change 0 β€ chartTwoForm (fun x => Ο i x β’ Ξ x) (B i).center y (1,0) (0,1) | |
| rw [chartTwoForm_spatial_smul] | |
| exact mul_nonneg (Ο.nonneg i _) (hΞ _ _ hy) | |
| Β· rw [partitionChartDensity_off_target B Ο Ξ i hy] | |
| theorem partitionChartDensity_spatial_smul (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (Ξ : ManifoldTwoForm Plane M) (f : M β β) (i : I) (y : Plane) : | |
| partitionChartDensity B Ο (fun x => f x β’ Ξ x) i y= | |
| partitionChartDensity B Ο Ξ i y * f ((extChartAt π(β,Plane) (B i).center).symm y) := by | |
| unfold partitionChartDensity extendedChartCoefficient spatialZeroExtension | |
| split_ifs | |
| Β· change chartTwoForm (fun x => Ο i x β’ (f x β’ Ξ x)) (B i).center y (1,0) (0,1) = | |
| chartTwoForm (fun x => Ο i x β’ Ξ x) (B i).center y (1,0) (0,1) * _ | |
| rw [chartTwoForm_spatial_smul,chartTwoForm_spatial_smul,chartTwoForm_spatial_smul] | |
| simp only [smul_apply, smul_eq_mul] | |
| ring | |
| Β· exact (zero_mul _).symm | |
| variable [IsManifold π(β,Plane) β M] | |
| theorem partitionChartDensity_properties (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (hΟ : Ο.IsSubordinate (fun i => (B i).carrier)) | |
| {Ξ : ManifoldTwoForm Plane M} (hΞ : SmoothTwoForm Ξ) (i : I) : | |
| ContDiff β β (partitionChartDensity B Ο Ξ i) β§ | |
| HasCompactSupport (partitionChartDensity B Ο Ξ i) β§ | |
| Integrable (partitionChartDensity B Ο Ξ i) := by | |
| let L := tsupport (Ο i) | |
| have hL : IsCompact L := (B i).isCompact_compactCarrier.of_isClosed_subset | |
| (isClosed_tsupport _) ((hΟ i).trans (B i).carrier_subset_compactCarrier) | |
| have hLc : Lβ(extChartAt π(β,Plane) (B i).center).source := fun _ hx => (hΟ i hx).1 | |
| have hs : SmoothTwoFormFamily (fun _ : β => fun x => Ο i x β’ Ξ x) := | |
| (SmoothTwoFormFamily.const hΞ).spatial_smul (Ο i).contMDiff | |
| have hz : β (p : β) x,xβLβΟ i x β’ Ξ x=0 := by | |
| intro _ x hx | |
| rw [image_eq_zero_of_notMem_tsupport hx] | |
| apply ContinuousLinearMap.ext | |
| intro u | |
| apply ContinuousLinearMap.ext | |
| intro v | |
| change (0:β) * _ = 0 | |
| exact zero_mul _ | |
| have hfull : ContDiff β β (extendedChartCoefficient (B i).center | |
| (fun _ : β => fun x => Ο i x β’ Ξ x)) := | |
| extendedChartCoefficient_smooth (Ξ© := fun _ : β => fun x => Ο i x β’ Ξ x) | |
| (c := (B i).center) (hs (B i).center) hL hLc hz | |
| have hsm : ContDiff β β (partitionChartDensity B Ο Ξ i) := | |
| hfull.comp (f := fun y : Plane => ((0 : β),y)) | |
| (contDiff_const.prodMk contDiff_id) | |
| have hc : HasCompactSupport (partitionChartDensity B Ο Ξ i) := by | |
| apply HasCompactSupport.intro (hL.image_of_continuousOn | |
| ((continuousOn_extChartAt (I := π(β,Plane)) (B i).center).mono hLc)) | |
| exact fun _ hy => extendedChartCoefficient_zero hz 0 hy | |
| exact β¨hsm,hc,hsm.continuous.integrable_of_hasCompactSupport hcβ© | |
| variable [Fintype I] [MeasurableSpace M] [BorelSpace M] | |
| def partitionAreaMeasure (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) (Ξ : ManifoldTwoForm Plane M) : Measure M := | |
| β i, chartAreaMeasure (B i).center (partitionChartDensity B Ο Ξ i) | |
| omit [BorelSpace M] in | |
| theorem partitionAreaMeasure_finite (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (hΟ : Ο.IsSubordinate (fun i => (B i).carrier)) | |
| {Ξ : ManifoldTwoForm Plane M} (hΞ : SmoothTwoForm Ξ) : | |
| IsFiniteMeasure (partitionAreaMeasure B Ο Ξ) := by | |
| have (i : I) : IsFiniteMeasure (chartAreaMeasure (B i).center (partitionChartDensity B Ο Ξ i)) := | |
| chartAreaMeasure_finite _ (partitionChartDensity_properties B Ο hΟ hΞ i).2.2 | |
| exact inferInstanceAs (IsFiniteMeasure (β i, chartAreaMeasure (B i).center (partitionChartDensity B Ο Ξ i))) | |
| theorem integral_partitionAreaMeasure (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (hΟ : Ο.IsSubordinate (fun i => (B i).carrier)) | |
| {Ξ : ManifoldTwoForm Plane M} (hΞ : SmoothTwoForm Ξ) | |
| (hpos : β c y,yβ(extChartAt π(β,Plane) c).targetβ | |
| 0β€chartTwoForm Ξ c y (1,0) (0,1)) | |
| {f : M β β} (hf : ContMDiff π(β,Plane) π(β,β) β f) : | |
| (β« x, f x βpartitionAreaMeasure B Ο Ξ)= | |
| partitionFormMass B Ο (fun x => f x β’ Ξ x) := by | |
| have hfp : SmoothTwoForm (fun x => f x β’ Ξ x) := | |
| ((SmoothTwoFormFamily.const (P := β) hΞ).spatial_smul hf).eval 0 | |
| have hmeas (i : I) : Measurable (partitionChartDensity B Ο Ξ i) := | |
| (partitionChartDensity_properties B Ο hΟ hΞ i).1.continuous.measurable | |
| have hint (i : I) : Integrable f | |
| (chartAreaMeasure (B i).center (partitionChartDensity B Ο Ξ i)) := by | |
| rw [integrable_chartAreaMeasure _ (hmeas i) (partitionChartDensity_nonneg B Ο hpos i) | |
| (fun _ hy => partitionChartDensity_off_target B Ο Ξ i hy) hf.continuous.measurable] | |
| simpa only [β partitionChartDensity_spatial_smul] using | |
| (partitionChartDensity_properties B Ο hΟ hfp i).2.2 | |
| rw [partitionAreaMeasure,integral_finsetSum_measure (fun i _ => hint i)] | |
| unfold partitionFormMass chartMass | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| rw [integral_chartAreaMeasure _ (hmeas i) (partitionChartDensity_nonneg B Ο hpos i) | |
| (fun _ hy => partitionChartDensity_off_target B Ο Ξ i hy) hf.continuous.measurable] | |
| apply integral_congr_ae | |
| exact Filter.Eventually.of_forall (fun y => (partitionChartDensity_spatial_smul B Ο Ξ f i y).symm) | |
| end | |
| section | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [MeasurableSpace M] [BorelSpace M] | |
| theorem integral_chartAreaMeasure_restrict (c : M) {w : Plane β β} | |
| (hw : Measurable w) (hpos : β y,0β€w y) | |
| (hz : β y,yβ(extChartAt π(β,Plane) c).targetβw y=0) | |
| {C : Set M} (hC : MeasurableSet C) {f : M β β} (hf : Measurable f) : | |
| (β« x in C, f x βchartAreaMeasure c w)= | |
| β« y in (extChartAt π(β,Plane) c).target β© | |
| (extChartAt π(β,Plane) c).symm β»ΒΉ' C, | |
| w y*f ((extChartAt π(β,Plane) c).symm y) := by | |
| rw [β integral_indicator hC, integral_chartAreaMeasure c hw hpos hz (hf.indicator hC)] | |
| have hD : MeasurableSet ((extChartAt π(β,Plane) c).target β© | |
| (extChartAt π(β,Plane) c).symm β»ΒΉ' C) := | |
| by | |
| have he : (extChartAt π(β,Plane) c).target β© | |
| (extChartAt π(β,Plane) c).symm β»ΒΉ' C = | |
| (extChartAt π(β,Plane) c).target β© chartInverseExtension c β»ΒΉ' C := by | |
| ext y | |
| by_cases hy : yβ(extChartAt π(β,Plane) c).target | |
| Β· simp only [mem_inter_iff,mem_preimage,hy,true_and,chartInverseExtension_eq hy] | |
| Β· simp only [mem_inter_iff,hy,false_and] | |
| rw [he] | |
| exact (isOpen_extChartAt_target c).measurableSet.inter | |
| (chartInverseExtension_measurable c hC) | |
| rw [β integral_indicator hD] | |
| apply integral_congr_ae | |
| filter_upwards [] with y | |
| by_cases hy : yβ(extChartAt π(β,Plane) c).target | |
| Β· by_cases hc : (extChartAt π(β,Plane) c).symm yβC | |
| Β· simp only [Set.indicator,mem_inter_iff,mem_preimage,hy,hc,and_self,βreduceIte] | |
| Β· simp only [Set.indicator,mem_inter_iff,mem_preimage,hy,hc,and_false,βreduceIte,mul_zero] | |
| Β· simp only [Set.indicator,mem_inter_iff,mem_preimage,hy,false_and,βreduceIte,hz y hy,zero_mul] | |
| variable {I : Type*} [Fintype I] {K : Set M} | |
| def restrictedPartitionFormMass (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) (C : Set M) | |
| (Ξ© : ManifoldTwoForm Plane M) : β := | |
| β i, β« y in (extChartAt π(β,Plane) (B i).center).target β© | |
| (extChartAt π(β,Plane) (B i).center).symm β»ΒΉ' C, | |
| partitionChartDensity B Ο Ξ© i y | |
| variable [IsManifold π(β,Plane) β M] | |
| theorem smooth_integrable_partitionAreaMeasure (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (hΟ : Ο.IsSubordinate (fun i => (B i).carrier)) | |
| {Ξ : ManifoldTwoForm Plane M} (hΞ : SmoothTwoForm Ξ) | |
| (hpos : β c y,yβ(extChartAt π(β,Plane) c).targetβ | |
| 0β€chartTwoForm Ξ c y (1,0) (0,1)) | |
| {f : M β β} (hf : ContMDiff π(β,Plane) π(β,β) β f) : | |
| Integrable f (partitionAreaMeasure B Ο Ξ) := by | |
| have hfp : SmoothTwoForm (fun x => f x β’ Ξ x) := | |
| ((SmoothTwoFormFamily.const (P := β) hΞ).spatial_smul hf).eval 0 | |
| apply integrable_finsetSum_measure.mpr | |
| intro i _ | |
| rw [integrable_chartAreaMeasure _ | |
| (partitionChartDensity_properties B Ο hΟ hΞ i).1.continuous.measurable | |
| (partitionChartDensity_nonneg B Ο hpos i) | |
| (fun _ hy => partitionChartDensity_off_target B Ο Ξ i hy) hf.continuous.measurable] | |
| simpa only [β partitionChartDensity_spatial_smul] using | |
| (partitionChartDensity_properties B Ο hΟ hfp i).2.2 | |
| theorem integral_partitionAreaMeasure_restrict (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (hΟ : Ο.IsSubordinate (fun i => (B i).carrier)) | |
| {Ξ : ManifoldTwoForm Plane M} (hΞ : SmoothTwoForm Ξ) | |
| (hpos : β c y,yβ(extChartAt π(β,Plane) c).targetβ | |
| 0β€chartTwoForm Ξ c y (1,0) (0,1)) | |
| {C : Set M} (hC : MeasurableSet C) | |
| {f : M β β} (hf : ContMDiff π(β,Plane) π(β,β) β f) : | |
| (β« x in C, f x βpartitionAreaMeasure B Ο Ξ)= | |
| restrictedPartitionFormMass B Ο C (fun x => f x β’ Ξ x) := by | |
| have hh := (smooth_integrable_partitionAreaMeasure B Ο hΟ hΞ hpos hf).indicator hC | |
| have hint : β i β (Finset.univ : Finset I), Integrable (C.indicator f) | |
| (chartAreaMeasure (B i).center (partitionChartDensity B Ο Ξ i)) := | |
| integrable_finsetSum_measure.mp hh | |
| rw [β integral_indicator hC,partitionAreaMeasure, | |
| integral_finsetSum_measure hint] | |
| unfold restrictedPartitionFormMass | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| rw [integral_indicator hC, integral_chartAreaMeasure_restrict _ | |
| (partitionChartDensity_properties B Ο hΟ hΞ i).1.continuous.measurable | |
| (partitionChartDensity_nonneg B Ο hpos i) | |
| (fun _ hy => partitionChartDensity_off_target B Ο Ξ i hy) hC hf.continuous.measurable] | |
| apply integral_congr_ae | |
| exact Filter.Eventually.of_forall (fun y => (partitionChartDensity_spatial_smul B Ο Ξ f i y).symm) | |
| omit [IsManifold π(β,Plane) β M] in | |
| theorem partitionAreaMeasure_null (B : I β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) (Ξ : ManifoldTwoForm Plane M) | |
| {C : Set M} (hC : MeasurableSet C) | |
| (hnull : β i,volume ((extChartAt π(β,Plane) (B i).center).target β© | |
| (extChartAt π(β,Plane) (B i).center).symm β»ΒΉ' C)=0) : | |
| partitionAreaMeasure B Ο Ξ C=0 := by | |
| rw [partitionAreaMeasure,Measure.finsetSum_apply] | |
| apply Finset.sum_eq_zero | |
| intro i _ | |
| exact chartAreaMeasure_null _ (fun _ hy => partitionChartDensity_off_target B Ο Ξ i hy) | |
| hC (hnull i) | |
| omit [IsManifold π(β,Plane) β M] | |
| theorem chartRegion_measurable (c : M) {C : Set M} (hC : MeasurableSet C) : | |
| MeasurableSet ((extChartAt π(β,Plane) c).target β© | |
| (extChartAt π(β,Plane) c).symm β»ΒΉ' C) := by | |
| have he : (extChartAt π(β,Plane) c).target β© | |
| (extChartAt π(β,Plane) c).symm β»ΒΉ' C = | |
| (extChartAt π(β,Plane) c).target β© chartInverseExtension c β»ΒΉ' C := by | |
| ext y | |
| by_cases hy : yβ(extChartAt π(β,Plane) c).target | |
| Β· simp only [mem_inter_iff,mem_preimage,hy,true_and,chartInverseExtension_eq hy] | |
| Β· simp only [mem_inter_iff,hy,false_and] | |
| rw [he] | |
| exact (isOpen_extChartAt_target c).measurableSet.inter (chartInverseExtension_measurable c hC) | |
| omit [MeasurableSpace M] [BorelSpace M] in | |
| theorem extendedChartCoefficient_indicator (c : M) (C : Set M) | |
| (Ξ© : ManifoldTwoForm Plane M) (y : Plane) : | |
| extendedChartCoefficient c (fun _ : β => C.indicator Ξ©) (0,y)= | |
| ((extChartAt π(β,Plane) c).target β© (extChartAt π(β,Plane) c).symm β»ΒΉ' C).indicator | |
| (fun y => extendedChartCoefficient c (fun _ : β => Ξ©) (0,y)) y := by | |
| classical | |
| unfold extendedChartCoefficient spatialZeroExtension chartTwoForm | |
| by_cases hy : yβ(extChartAt π(β,Plane) c).target | |
| Β· by_cases hc : (extChartAt π(β,Plane) c).symm yβC | |
| Β· simp only [Set.indicator,hy,hc,mem_inter_iff,mem_preimage,and_self,βreduceIte] | |
| Β· simp only [Set.indicator,hy,hc,mem_inter_iff,mem_preimage,and_false,βreduceIte] | |
| simp only [ContinuousLinearMap.bilinearComp_apply,zero_apply] | |
| Β· simp only [Set.indicator,hy,mem_inter_iff,false_and,βreduceIte] | |
| theorem extendedChartCoefficient_indicator_integrable (c : M) {C : Set M} | |
| (hC : MeasurableSet C) {Ξ© : ManifoldTwoForm Plane M} | |
| (hΞ© : Integrable (fun y => extendedChartCoefficient c (fun _ : β => Ξ©) (0,y))) : | |
| Integrable (fun y => extendedChartCoefficient c (fun _ : β => C.indicator Ξ©) (0,y)) := by | |
| simpa only [extendedChartCoefficient_indicator] using hΞ©.indicator (chartRegion_measurable c hC) | |
| theorem restrictedPartitionFormMass_eq_indicator {I : Type*} [Fintype I] {K : Set M} | |
| (B : I β SurfaceCoordinateBox M) (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| {C : Set M} (hC : MeasurableSet C) (Ξ© : ManifoldTwoForm Plane M) : | |
| restrictedPartitionFormMass B Ο C Ξ©=partitionFormMass B Ο (C.indicator Ξ©) := by | |
| classical | |
| let : MulActionWithZero β (Plane βL[β] Plane βL[β] β) := | |
| .toMulActionWithZero β (Plane βL[β] Plane βL[β] β) inferInstance inferInstance inferInstance | |
| unfold restrictedPartitionFormMass partitionFormMass chartMass | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| have he : (fun x => Ο i x β’ C.indicator Ξ© x)=C.indicator (fun x => Ο i x β’ Ξ© x) := by | |
| funext x | |
| by_cases hx : xβC <;> simp only [Set.indicator,hx,βreduceIte,smul_zero] | |
| rw [he] | |
| simp_rw [extendedChartCoefficient_indicator] | |
| rw [integral_indicator (chartRegion_measurable (B i).center hC)] | |
| rfl | |
| end | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold π(β,Plane) β M] [T2Space M] | |
| {I J : Type*} [Fintype I] [Fintype J] {K : Set M} | |
| omit [T2Space M] in | |
| theorem partitionFormMass_independent_integrable (hpos : PositivePlaneTransitions M) | |
| (hK : IsCompact K) (B : I β SurfaceCoordinateBox M) (C : J β SurfaceCoordinateBox M) | |
| (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) (Ξ½ : SmoothPartitionOfUnity J π(β,Plane) M K) | |
| (hΟ : Ο.IsSubordinate (fun i => (B i).carrier)) | |
| (hΞ½ : Ξ½.IsSubordinate (fun j => (C j).carrier)) | |
| {Ξ© : ManifoldTwoForm Plane M} | |
| (hskew : β x u v, Ξ© x u v = -Ξ© x v u) (hz : β x, x β K β Ξ© x=0) | |
| (hB : β i j,Integrable (fun y => extendedChartCoefficient (B i).center | |
| (fun _ : β => fun x => Ο i x β’ (Ξ½ j x β’ Ξ© x)) (0,y))) | |
| (hC : β i j,Integrable (fun y => extendedChartCoefficient (C j).center | |
| (fun _ : β => fun x => Ο i x β’ (Ξ½ j x β’ Ξ© x)) (0,y))) : | |
| partitionFormMass B Ο Ξ© = partitionFormMass C Ξ½ Ξ© := by | |
| classical | |
| let : MulActionWithZero β (Plane βL[β] Plane βL[β] β) := | |
| .toMulActionWithZero β (Plane βL[β] Plane βL[β] β) inferInstance inferInstance inferInstance | |
| let D : I β J β ManifoldTwoForm Plane M := fun i j x => Ο i x β’ (Ξ½ j x β’ Ξ© x) | |
| let L : I β J β Set M := fun i j => K β© tsupport (Ο i) β© tsupport (Ξ½ j) | |
| have hL (i : I) (j : J) : IsCompact (L i j) := | |
| (hK.inter_right (isClosed_tsupport (Ο i))).inter_right (isClosed_tsupport (Ξ½ j)) | |
| have hLB (i : I) (j : J) : L i j β (extChartAt π(β,Plane) (B i).center).source := | |
| fun _ hx => (hΟ i hx.1.2).1 | |
| have hLC (i : I) (j : J) : L i j β (extChartAt π(β,Plane) (C j).center).source := | |
| fun _ hx => (hΞ½ j hx.2).1 | |
| have hDz (i : I) (j : J) (x : M) (hx : x β L i j) : D i j x=0 := by | |
| by_cases hk : x β K | |
| Β· by_cases hi : x β tsupport (Ο i) | |
| Β· have hj : x β tsupport (Ξ½ j) := fun hj => hx β¨β¨hk,hiβ©,hjβ© | |
| simp only [D,image_eq_zero_of_notMem_tsupport hj,zero_smul,smul_zero] | |
| Β· simp only [D,image_eq_zero_of_notMem_tsupport hi,zero_smul] | |
| Β· simp only [D,hz x hk,smul_zero] | |
| have hDa (i : I) (j : J) (x : M) (u v : Plane) : D i j x u v = -D i j x v u := by | |
| change Ο i x * (Ξ½ j x * Ξ© x u v) = -(Ο i x * (Ξ½ j x * Ξ© x v u)) | |
| rw [hskew x u v]; ring | |
| have hsumJ (i : I) : (β j, D i j) = fun x => Ο i x β’ Ξ© x := by | |
| funext x | |
| apply ContinuousLinearMap.ext | |
| intro firstVector | |
| apply ContinuousLinearMap.ext | |
| intro secondVector | |
| simp only [Finset.sum_apply,D,sum_apply,smul_apply,smul_eq_mul] | |
| rw [β Finset.mul_sum,β Finset.sum_mul] | |
| by_cases hx : x β K | |
| Β· have hh : (β j, Ξ½ j x)=1 := by simpa only [finsum_eq_sum_of_fintype] using Ξ½.sum_eq_one hx | |
| rw [hh,one_mul] | |
| Β· simp only [hz x hx,zero_apply,mul_zero] | |
| have hsumI (j : J) : (β i, D i j) = fun x => Ξ½ j x β’ Ξ© x := by | |
| funext x | |
| apply ContinuousLinearMap.ext | |
| intro firstVector | |
| apply ContinuousLinearMap.ext | |
| intro secondVector | |
| simp only [Finset.sum_apply,D,sum_apply,smul_apply,smul_eq_mul] | |
| rw [β Finset.sum_mul] | |
| by_cases hx : x β K | |
| Β· have hh : (β i, Ο i x)=1 := by simpa only [finsum_eq_sum_of_fintype] using Ο.sum_eq_one hx | |
| rw [hh,one_mul] | |
| Β· simp only [hz x hx,zero_apply,mul_zero] | |
| have hchange (i : I) (j : J) : chartMass (B i).center (D i j)=chartMass (C j).center (D i j) := by | |
| apply chartMass_change (hDa i j) (hL i j) (hLB i j) (hLC i j) (hDz i j) | |
| rintro y β¨x,hx,rflβ© | |
| apply hpos (B i).center (C j).center _ ((extChartAt π(β,Plane) (B i).center).map_source (hLB i j hx)) | |
| simpa only [(extChartAt π(β,Plane) (B i).center).left_inv (hLB i j hx)] using hLC i j hx | |
| unfold partitionFormMass | |
| calc | |
| (β i, chartMass (B i).center (fun x => Ο i x β’ Ξ© x)) = | |
| β i, β j, chartMass (B i).center (D i j) := by | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| rw [β hsumJ i] | |
| exact chartMass_sum Finset.univ (B i).center (D i) | |
| (fun j _ => hB i j) | |
| _ = β i, β j, chartMass (C j).center (D i j) := by | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| exact Finset.sum_congr rfl (fun j _ => hchange i j) | |
| _ = β j, β i, chartMass (C j).center (D i j) := Finset.sum_comm | |
| _ = β j, chartMass (C j).center (fun x => Ξ½ j x β’ Ξ© x) := by | |
| apply Finset.sum_congr rfl | |
| intro j _ | |
| rw [β hsumI j] | |
| exact (chartMass_sum Finset.univ (C j).center (fun i => D i j) | |
| (fun i _ => hC i j)).symm | |
| end PackingSufficiencySupport.Hamiltonian | |
| end | |
| end OAI | |