Buckets:
| import Mathlib | |
| import OAI.Geometry.BallPacking.Projective.AnnularChartHelpers | |
| import OAI.Geometry.BallPacking.SurfaceArea.SurfaceIntegralIndependence | |
| namespace OAI | |
| noncomputable section | |
| namespace PackingSufficiencySupport.Hamiltonian | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold MeasureTheory | |
| open scoped BigOperators | |
| section | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold π(β,Plane) β M] [T2Space M] [MeasurableSpace M] [BorelSpace M] | |
| {I J : Type*} [Fintype I] [Fintype J] {K : Set M} | |
| theorem restrictedPartitionFormMass_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) : | |
| restrictedPartitionFormMass B Ο K Ξ©=restrictedPartitionFormMass C Ξ½ K Ξ© := by | |
| classical | |
| let : MulActionWithZero β (Plane βL[β] Plane βL[β] β) := | |
| .toMulActionWithZero β (Plane βL[β] Plane βL[β] β) inferInstance inferInstance inferInstance | |
| let L : I β J β Set M := fun i j => tsupport (Ο i) β© tsupport (Ξ½ j) | |
| have hL (i : I) (j : J) : IsCompact (L i j) := | |
| ((B i).isCompact_compactCarrier.of_isClosed_subset (isClosed_tsupport _) | |
| ((hΟ i).trans (B i).carrier_subset_compactCarrier)).inter_right (isClosed_tsupport _) | |
| have hLB (i : I) (j : J) : L i jβ(extChartAt π(β,Plane) (B i).center).source := | |
| fun _ hx => (hΟ i hx.1).1 | |
| have hLC (i : I) (j : J) : L i jβ(extChartAt π(β,Plane) (C j).center).source := | |
| fun _ hx => (hΞ½ j hx.2).1 | |
| have hint (i : I) (j : J) (c : M) (hc : L i jβ(extChartAt π(β,Plane) c).source) : | |
| Integrable (fun y => extendedChartCoefficient c | |
| (fun _ : β => fun x => Ο i x β’ (Ξ½ j x β’ K.indicator Ξ© x)) (0,y)) := by | |
| let D : ManifoldTwoForm Plane M := fun x => Ο i x β’ (Ξ½ j x β’ Ξ© x) | |
| have hDs : SmoothTwoForm D := | |
| (((SmoothTwoFormFamily.const (P := β) hΞ©).spatial_smul (Ξ½ j).contMDiff).spatial_smul | |
| (Ο i).contMDiff).eval 0 | |
| have hDz : β x,xβL i j β D x=0 := by | |
| intro x hx | |
| by_cases hi : xβtsupport (Ο i) | |
| Β· have hj : xβtsupport (Ξ½ j) := fun hj => hx β¨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] | |
| have he : (fun x => Ο i x β’ (Ξ½ j x β’ K.indicator Ξ© x))=K.indicator D := by | |
| funext x | |
| by_cases hx : xβK <;> simp only [Set.indicator,hx,βreduceIte,D,smul_zero] | |
| rw [he] | |
| exact extendedChartCoefficient_indicator_integrable c hK.measurableSet | |
| (hDs.coefficient_integrable c (hL i j) hc hDz) | |
| rw [restrictedPartitionFormMass_eq_indicator B Ο hK.measurableSet, | |
| restrictedPartitionFormMass_eq_indicator C Ξ½ hK.measurableSet] | |
| apply partitionFormMass_independent_integrable hpos hK B C Ο Ξ½ hΟ hΞ½ | |
| Β· intro x u v | |
| by_cases hx : xβK | |
| Β· simpa only [Set.indicator_of_mem hx] using hskew x u v | |
| Β· simp only [Set.indicator_of_notMem hx,zero_apply,neg_zero] | |
| Β· exact fun x hx => Set.indicator_of_notMem hx Ξ© | |
| Β· exact fun i j => hint i j (B i).center (hLB i j) | |
| Β· exact fun i j => hint i j (C j).center (hLC i j) | |
| end | |
| section | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold π(β,Plane) β M] [T2Space M] [SigmaCompactSpace M] | |
| def compactSurfaceBoxes {D : Set M} (hD : IsCompact D) : Finset (SurfaceCoordinateBox M) := | |
| Classical.choose (SurfaceCoordinateBox.finite_partition hD) | |
| def compactSurfacePartition {D : Set M} (hD : IsCompact D) : | |
| SmoothPartitionOfUnity (compactSurfaceBoxes hD) π(β,Plane) M D := | |
| Classical.choose (Classical.choose_spec (SurfaceCoordinateBox.finite_partition hD)) | |
| theorem compactSurfacePartition_subordinate {D : Set M} (hD : IsCompact D) : | |
| (compactSurfacePartition hD).IsSubordinate | |
| (fun B : compactSurfaceBoxes hD => B.1.carrier) := | |
| Classical.choose_spec (Classical.choose_spec (SurfaceCoordinateBox.finite_partition hD)) | |
| def compactSurfaceFormIntegral {D : Set M} (hD : IsCompact D) | |
| (Ξ© : ManifoldTwoForm Plane M) : β := | |
| restrictedPartitionFormMass (fun B : compactSurfaceBoxes hD => B.1) | |
| (compactSurfacePartition hD) D Ξ© | |
| variable [MeasurableSpace M] [BorelSpace M] | |
| theorem compactSurfaceFormIntegral_eq {I : Type*} [Fintype I] {D : Set M} | |
| (hD : IsCompact D) (hor : PositivePlaneTransitions M) | |
| (B : I β SurfaceCoordinateBox M) (Ο : SmoothPartitionOfUnity I π(β,Plane) M D) | |
| (hΟ : Ο.IsSubordinate (fun i => (B i).carrier)) | |
| {Ξ© : ManifoldTwoForm Plane M} (hΞ© : SmoothTwoForm Ξ©) | |
| (hskew : β x u v,Ξ© x u v= -Ξ© x v u) : | |
| compactSurfaceFormIntegral hD Ξ©=restrictedPartitionFormMass B Ο D Ξ© := | |
| restrictedPartitionFormMass_independent hor hD _ B _ Ο | |
| (compactSurfacePartition_subordinate hD) hΟ hΞ© hskew | |
| theorem compactSurfaceFormIntegral_congr {D : Set M} (hD : IsCompact D) | |
| {Ξ© Ξ : ManifoldTwoForm Plane M} (h : EqOn Ξ© Ξ D) : | |
| compactSurfaceFormIntegral hD Ξ©=compactSurfaceFormIntegral hD Ξ := by | |
| unfold compactSurfaceFormIntegral | |
| rw [restrictedPartitionFormMass_eq_indicator _ _ hD.isClosed.measurableSet, | |
| restrictedPartitionFormMass_eq_indicator _ _ hD.isClosed.measurableSet] | |
| congr 1 | |
| exact Set.indicator_congr h | |
| end | |
| section | |
| section FormOperations | |
| variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace β P] | |
| [NormedAddCommGroup E] [NormedSpace β E] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace E M] | |
| theorem SmoothOneFormFamily.zero : | |
| SmoothOneFormFamily (fun _ : P => (0 : ManifoldOneForm E M)) := by | |
| intro c | |
| simpa only [chartOneForm_zero] using | |
| (contDiffOn_const : ContDiffOn β β (fun _ : P Γ E => (0 : E βL[β] β)) _) | |
| theorem SmoothOneFormFamily.sum {I : Type*} (s : Finset I) | |
| {Ξ± : I β P β ManifoldOneForm E M} (hΞ± : β i β s, SmoothOneFormFamily (Ξ± i)) : | |
| SmoothOneFormFamily (fun p => β i β s, Ξ± i p) := by | |
| classical | |
| induction s using Finset.induction_on with | |
| | empty => simpa only [Finset.sum_empty] using SmoothOneFormFamily.zero (P := P) | |
| | i s hi ih => | |
| simp only [Finset.sum_insert hi] | |
| exact (hΞ± i (Finset.mem_insert_self i s)).add | |
| (ih (fun j hj => hΞ± j (Finset.mem_insert_of_mem hj))) | |
| theorem manifoldExteriorOneForm_sum {I : Type*} (s : Finset I) | |
| {Ξ± : I β P β ManifoldOneForm E M} (hΞ± : β i β s, SmoothOneFormFamily (Ξ± i)) | |
| (p : P) (x : M) : | |
| manifoldExteriorOneForm (β i β s,Ξ± i p) x = | |
| β i β s,manifoldExteriorOneForm (Ξ± i p) x := by | |
| classical | |
| induction s using Finset.induction_on with | |
| | empty => simp only [Finset.sum_empty,manifoldExteriorOneForm_zero] | |
| | i s hi ih => | |
| have hx : extChartAt π(β,E) x x β (extChartAt π(β,E) x).target := | |
| (extChartAt π(β,E) x).map_source (mem_extChartAt_source x) | |
| have hs := fun j hj => hΞ± j (Finset.mem_insert_of_mem hj) | |
| simp only [Finset.sum_insert hi] | |
| rw [manifoldExteriorOneForm_add_at | |
| ((hΞ± i (Finset.mem_insert_self i s)).spatial_smooth p x hx) | |
| ((SmoothOneFormFamily.sum s hs).spatial_smooth p x hx), ih hs] | |
| end FormOperations | |
| section Integral | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| theorem restrictedPartitionFormMass_smul {I : Type*} [Fintype I] {K : Set M} | |
| (B : I β SurfaceCoordinateBox M) (Ο : SmoothPartitionOfUnity I π(β,Plane) M K) | |
| (D : Set M) (a : β) (Ξ© : ManifoldTwoForm Plane M) : | |
| restrictedPartitionFormMass B Ο D (a β’ Ξ©) = a * restrictedPartitionFormMass B Ο D Ξ© := by | |
| unfold restrictedPartitionFormMass | |
| simp_rw [show a β’ Ξ© = fun x => a β’ Ξ© x from rfl, | |
| partitionChartDensity_spatial_smul B Ο Ξ© (fun _ => a)] | |
| simp_rw [integral_mul_const] | |
| rw [β Finset.sum_mul, mul_comm] | |
| variable [IsManifold π(β,Plane) β M] [T2Space M] [SigmaCompactSpace M] | |
| theorem compactSurfaceFormIntegral_smul {D : Set M} (hD : IsCompact D) | |
| (a : β) (Ξ© : ManifoldTwoForm Plane M) : | |
| compactSurfaceFormIntegral hD (a β’ Ξ©)=a * compactSurfaceFormIntegral hD Ξ© := | |
| restrictedPartitionFormMass_smul _ _ _ _ _ | |
| end Integral | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold π(β,Plane) β M] [T2Space M] [PreconnectedSpace M] | |
| [NormalSpace M] [SigmaCompactSpace M] | |
| def equalNormalCoefficient (m : β) (b : β) (p : Fin m β β) : β := | |
| 1-b*β j,p j | |
| theorem equalNormalCoefficient_smooth (m : β) (b : β) : | |
| ContDiff β β (equalNormalCoefficient m b) := by | |
| unfold equalNormalCoefficient | |
| exact contDiff_const.sub (contDiff_const.mul (ContDiff.sum (fun j _ => contDiff_apply β β j))) | |
| theorem exists_base_primitive_near_compact {K : Set M} (hK : IsCompact K) | |
| (hproper : KαΆ.Nonempty) (hor : PositivePlaneTransitions M) | |
| {Ο : ManifoldTwoForm Plane M} (hΟ : SmoothTwoForm Ο) | |
| (hskew : β x u v,Ο x u v= -Ο x v u) : | |
| β (Ξ³ : ManifoldOneForm Plane M) (L : Set M), IsCompact L β§ | |
| SmoothOneFormFamily (fun _ : β => Ξ³) β§ | |
| (β x,xβL β Ξ³ x=0) β§ | |
| βαΆ x in πΛ’ K,manifoldExteriorOneForm Ξ³ x=Ο x := by | |
| obtain β¨Ξ±,L,hL,hΞ±,hΞ±z,hdΞ±β© := exists_primitive_near_proper_compact hK hproper hor | |
| (SmoothTwoFormFamily.const (P := β) hΟ) (fun _ x u v => hskew x u v) | |
| refine β¨Ξ± 0,L,hL,?_,hΞ±z 0,hdΞ±.mono (fun _ hx => hx 0)β© | |
| exact hΞ±.comp (f := fun _ : β => (0 : β)) contDiff_const | |
| def equalNormalPrimitive {m : β} (Ξ³ : ManifoldOneForm Plane M) | |
| (A : Fin m β ManifoldOneForm Plane M) (p : Fin m β β) : ManifoldOneForm Plane M := | |
| Ξ³+β j,p j β’ A j | |
| omit [IsManifold π(β,Plane) β M] [T2Space M] [PreconnectedSpace M] | |
| [NormalSpace M] [SigmaCompactSpace M] in | |
| theorem equalNormalPrimitive_smooth {m : β} {Ξ³ : ManifoldOneForm Plane M} | |
| {A : Fin m β ManifoldOneForm Plane M} | |
| (hΞ³ : SmoothOneFormFamily (fun _ : β => Ξ³)) | |
| (hA : β j,SmoothOneFormFamily (fun _ : β => A j)) : | |
| SmoothOneFormFamily (equalNormalPrimitive Ξ³ A) := by | |
| apply (hΞ³.comp (f := fun _ : Fin m β β => (0 : β)) contDiff_const).add | |
| exact SmoothOneFormFamily.sum Finset.univ (fun j _ => | |
| ((hA j).comp (f := fun _ : Fin m β β => (0 : β)) contDiff_const).smul | |
| (contDiff_apply β β j)) | |
| omit [IsManifold π(β,Plane) β M] [T2Space M] [PreconnectedSpace M] | |
| [NormalSpace M] [SigmaCompactSpace M] in | |
| theorem equalNormalPrimitive_exterior {m : β} {Ξ³ : ManifoldOneForm Plane M} | |
| {A : Fin m β ManifoldOneForm Plane M} | |
| (hΞ³ : SmoothOneFormFamily (fun _ : β => Ξ³)) | |
| (hA : β j,SmoothOneFormFamily (fun _ : β => A j)) | |
| (b : β) (Ο : ManifoldTwoForm Plane M) {x : M} | |
| (hdΞ³ : manifoldExteriorOneForm Ξ³ x=Ο x) | |
| (hdA : β j,manifoldExteriorOneForm (A j) x=(-b) β’ Ο x) | |
| (p : Fin m β β) : | |
| manifoldExteriorOneForm (equalNormalPrimitive Ξ³ A p) x = | |
| equalNormalCoefficient m b p β’ Ο x := by | |
| have hx : extChartAt π(β,Plane) x x β (extChartAt π(β,Plane) x).target := | |
| (extChartAt π(β,Plane) x).map_source (mem_extChartAt_source x) | |
| have hs j : SmoothOneFormFamily (fun _ : β => p j β’ A j) := | |
| (hA j).smul contDiff_const | |
| unfold equalNormalPrimitive | |
| rw [manifoldExteriorOneForm_add_at (hΞ³.spatial_smooth 0 x hx) | |
| ((SmoothOneFormFamily.sum Finset.univ (fun j _ => hs j)).spatial_smooth 0 x hx),hdΞ³, | |
| manifoldExteriorOneForm_sum Finset.univ (fun j _ => hs j) 0 x] | |
| simp_rw [manifoldExteriorOneForm_smul_at (Ξ± := A _) _ ((hA _).spatial_smooth 0 x hx),hdA, | |
| smul_smul] | |
| rw [β Finset.sum_smul] | |
| calc | |
| Ο x+(β j,p j * -b) β’ Ο x = (1+β j,p j * -b) β’ Ο x := by | |
| apply ContinuousLinearMap.ext | |
| intro u | |
| apply ContinuousLinearMap.ext | |
| intro v | |
| change Ο x u v+(β j,p j * -b)*Ο x u v = (1+β j,p j * -b)*Ο x u v | |
| ring | |
| _ = equalNormalCoefficient m b p β’ Ο x := ?_ | |
| congr 1 | |
| unfold equalNormalCoefficient | |
| rw [β Finset.sum_mul] | |
| ring | |
| end | |
| section | |
| variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace β P] | |
| [NormedAddCommGroup E] [NormedSpace β E] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| def familySpatialExterior (Ξ : P Γ E β E βL[β] β) (p : P Γ E) : E βL[β] E βL[β] β := | |
| (fderiv β Ξ p).comp (ContinuousLinearMap.inr β P E) - | |
| ((fderiv β Ξ p).comp (ContinuousLinearMap.inr β P E)).flip | |
| theorem familySpatialExterior_smoothAt {Ξ : P Γ E β E βL[β] β} | |
| {p : P Γ E} (hΞ : ContDiffAt β β Ξ p) : ContDiffAt β β (familySpatialExterior Ξ) p := by | |
| have hd : ContDiffAt β β (fun q => (fderiv β Ξ q).comp (ContinuousLinearMap.inr β P E)) p := | |
| (hΞ.fderiv_right (by simp)).clm_comp contDiffAt_const | |
| have hflip : ContDiff β β (fun L : E βL[β] E βL[β] β => L.flip) := | |
| LinearIsometryEquiv.contDiff (π := β) (n := β) (E := E βL[β] E βL[β] β) | |
| (F := E βL[β] E βL[β] β) (ContinuousLinearMap.flipβα΅’ β E E β) | |
| exact hd.sub (hflip.contDiffAt.comp p hd) | |
| theorem familySpatialExterior_eq_slice {Ξ : P Γ E β E βL[β] β} | |
| {p : P Γ E} (hΞ : DifferentiableAt β Ξ p) : | |
| familySpatialExterior Ξ p=euclideanExteriorOneForm (fun x => Ξ (p.1,x)) p.2 := by | |
| have hi : HasFDerivAt (fun y : E => (p.1,y)) | |
| ((0 : E βL[β] P).prod (ContinuousLinearMap.id β E)) p.2 := | |
| (hasFDerivAt_const p.1 p.2).prodMk (hasFDerivAt_id p.2) | |
| have hh : HasFDerivAt Ξ (fderiv β Ξ p) (p.1,p.2) := hΞ.hasFDerivAt | |
| have hs := (hh.comp p.2 hi).fderiv | |
| change fderiv β (fun y => Ξ (p.1,y)) p.2 = _ at hs | |
| unfold familySpatialExterior euclideanExteriorOneForm | |
| rw [hs] | |
| rfl | |
| theorem manifoldExteriorOneForm_family_smooth {Ξ : P β ManifoldOneForm E M} | |
| (hΞ : SmoothOneFormFamily Ξ) : SmoothTwoFormFamily (fun p => manifoldExteriorOneForm (Ξ p)) := by | |
| intro c p hp | |
| have hn := (isOpen_univ.prod (isOpen_extChartAt_target (I := π(β,E)) c)).mem_nhds hp | |
| apply ((familySpatialExterior_smoothAt ((hΞ c).contDiffAt hn)).congr_of_eventuallyEq ?_).contDiffWithinAt | |
| filter_upwards [hn] with q hq | |
| rw [manifoldExteriorOneForm_chart (fun b y hy => (hΞ.spatial_smooth q.1 b hy).contDiffWithinAt) hq.2] | |
| exact (familySpatialExterior_eq_slice (((hΞ c).contDiffAt | |
| ((isOpen_univ.prod (isOpen_extChartAt_target c)).mem_nhds hq)).differentiableAt (by simp))).symm | |
| end | |
| section | |
| variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace β P] | |
| [NormedAddCommGroup E] [NormedSpace β E] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace E M] | |
| omit [NormedAddCommGroup P] [NormedSpace β P] in | |
| theorem chartOneForm_spatial_smul (Ο : M β β) (Ξ± : ManifoldOneForm E M) (c : M) (y : E) : | |
| chartOneForm (fun x => Ο x β’ Ξ± x) c y= | |
| Ο ((extChartAt π(β,E) c).symm y) β’ chartOneForm Ξ± c y := by | |
| ext u | |
| rfl | |
| theorem SmoothOneFormFamily.spatial_smul [IsManifold π(β,E) β M] | |
| {Ξ± : P β ManifoldOneForm E M} (hΞ± : SmoothOneFormFamily Ξ±) {Ο : M β β} | |
| (hΟ : ContMDiff π(β,E) π(β,β) β Ο) : | |
| SmoothOneFormFamily (fun p x => Ο x β’ Ξ± p x) := by | |
| intro c q hq | |
| have hi := (contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) c).contMDiffAt | |
| ((isOpen_extChartAt_target c).mem_nhds hq.2) | |
| have hrs := (hΟ.contMDiffAt.comp q.2 hi).contDiffAt.comp q contDiffAt_snd | |
| have hfs := (hΞ± c).contDiffAt ((isOpen_univ.prod (isOpen_extChartAt_target c)).mem_nhds hq) | |
| simpa only [chartOneForm_spatial_smul,Pi.smul_def',Function.comp_apply] using (hrs.smul hfs).contDiffWithinAt | |
| omit [NormedAddCommGroup P] [NormedSpace β P] in | |
| theorem manifoldExteriorOneForm_zero_off [IsManifold π(β,E) β M] | |
| {L : Set M} (hL : IsClosed L) {Ξ± : ManifoldOneForm E M} | |
| (hz : β x,xβLβΞ± x=0) {x : M} (hx : xβL) : manifoldExteriorOneForm Ξ± x=0 := by | |
| have he : Ξ± =αΆ [π x] (0 : ManifoldOneForm E M) := by | |
| filter_upwards [hL.isOpen_compl.mem_nhds hx] with y hy | |
| exact hz y hy | |
| rw [manifoldExteriorOneForm_congr_of_eventuallyEq he,manifoldExteriorOneForm_zero] | |
| end | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| theorem manifoldExteriorOneForm_path_closed {Ξ : β β ManifoldOneForm E M} | |
| (hΞ : SmoothOneFormFamily Ξ) (t : β) (c : M) (y : E) | |
| (hy : y β (extChartAt π(β,E) c).target) (u v w : E) : | |
| fderiv β (fun q : β Γ E => chartTwoForm (manifoldExteriorOneForm (Ξ q.1)) c q.2) (t,y) (0,u) v w - | |
| fderiv β (fun q : β Γ E => chartTwoForm (manifoldExteriorOneForm (Ξ q.1)) c q.2) (t,y) (0,v) u w + | |
| fderiv β (fun q : β Γ E => chartTwoForm (manifoldExteriorOneForm (Ξ q.1)) c q.2) (t,y) (0,w) u v=0 := by | |
| have hn := (isOpen_univ.prod (isOpen_extChartAt_target (I := π(β,E)) c)).mem_nhds | |
| (show (t,y) β univ ΓΛ’ (extChartAt π(β,E) c).target from β¨mem_univ _,hyβ©) | |
| have he : (fun q : β Γ E => chartTwoForm (manifoldExteriorOneForm (Ξ q.1)) c q.2) =αΆ [π (t,y)] | |
| pathSpatialExterior (fun q : β Γ E => chartOneForm (Ξ q.1) c q.2) := by | |
| filter_upwards [hn] with q hq | |
| exact manifoldExteriorOneForm_path_chart hΞ hq.2 | |
| rw [he.fderiv_eq] | |
| exact exact_path_closedAt ((hΞ c).contDiffAt hn) u v w | |
| theorem manifoldExteriorOneForm_path_time {Ξ : β β ManifoldOneForm E M} | |
| (hΞ : SmoothOneFormFamily Ξ) (t : β) (c : M) (y : E) | |
| (hy : y β (extChartAt π(β,E) c).target) (v w : E) : | |
| fderiv β (fun q : β Γ E => chartTwoForm (manifoldExteriorOneForm (Ξ q.1)) c q.2) (t,y) (1,0) v w = | |
| fderiv β (fun q : β Γ E => chartOneForm (manifoldTimePrimitive Ξ q.1) c q.2) (t,y) (0,v) w - | |
| fderiv β (fun q : β Γ E => chartOneForm (manifoldTimePrimitive Ξ q.1) c q.2) (t,y) (0,w) v := by | |
| have hn := (isOpen_univ.prod (isOpen_extChartAt_target (I := π(β,E)) c)).mem_nhds | |
| (show (t,y) β univ ΓΛ’ (extChartAt π(β,E) c).target from β¨mem_univ _,hyβ©) | |
| have he : (fun q : β Γ E => chartTwoForm (manifoldExteriorOneForm (Ξ q.1)) c q.2) =αΆ [π (t,y)] | |
| pathSpatialExterior (fun q : β Γ E => chartOneForm (Ξ q.1) c q.2) := by | |
| filter_upwards [hn] with q hq | |
| exact manifoldExteriorOneForm_path_chart hΞ hq.2 | |
| have ha : (fun q : β Γ E => chartOneForm (manifoldTimePrimitive Ξ q.1) c q.2) =αΆ [π (t,y)] | |
| pathTimePrimitive (fun q : β Γ E => chartOneForm (Ξ q.1) c q.2) := by | |
| filter_upwards [hn] with q hq | |
| exact manifoldTimePrimitive_chart hΞ hq.2 | |
| rw [he.fderiv_eq,ha.fderiv_eq] | |
| exact exact_path_time_equationAt ((hΞ c).contDiffAt hn) v w | |
| theorem SmoothOneFormFamily.time_contDiffAt {Ξ : β β ManifoldOneForm E M} | |
| (hΞ : SmoothOneFormFamily Ξ) (t : β) (x : M) : ContDiffAt β β (fun s => Ξ s x) t := by | |
| have hx : x β (extChartAt π(β,E) x).source := mem_extChartAt_source x | |
| have hxt := (extChartAt π(β,E) x).map_source hx | |
| have hcam := ((hΞ x).contDiffAt ((isOpen_univ.prod | |
| (isOpen_extChartAt_target (I := π(β,E)) x)).mem_nhds | |
| (show (t,extChartAt π(β,E) x x) β univ ΓΛ’ (extChartAt π(β,E) x).target from β¨mem_univ t,hxtβ©))).comp t (contDiffAt_id.prodMk contDiffAt_const) | |
| have hsm := hcam.clm_comp (contDiffAt_const (c := chartDifferential x x)) | |
| apply hsm.congr_of_eventuallyEq | |
| exact Filter.Eventually.of_forall (fun s => by | |
| simpa only [(extChartAt π(β,E) x).left_inv hx,Function.comp_def,id_eq] using (chartOneForm_reconstruct_target | |
| (Ξ± := Ξ s) hxt).symm) | |
| theorem manifoldTimePrimitive_annihilates {Ξ : β β ManifoldOneForm E M} | |
| (hΞ : SmoothOneFormFamily Ξ) {x : M} {Z : E} (hz : β t, Ξ t x Z=0) (t : β) : | |
| manifoldTimePrimitive Ξ t x Z=0 := by | |
| have hd := (((hΞ.time_contDiffAt t x).differentiableAt (by simp)).hasDerivAt).clm_apply | |
| (hasDerivAt_const t Z) | |
| have he : (fun s => Ξ s x Z) = fun _ : β => (0:β) := funext hz | |
| change HasDerivAt (fun s => Ξ s x Z) _ t at hd | |
| rw [he] at hd | |
| have hh := hd.unique (hasDerivAt_const t (0:β)) | |
| simpa only [manifoldTimePrimitive,ContinuousLinearMap.map_zero,add_zero] using hh | |
| theorem manifoldTimePrimitive_eval_constant {Ξ : β β ManifoldOneForm E M} | |
| (hΞ : SmoothOneFormFamily Ξ) {x : M} {Z : E} | |
| (hz : β t, Ξ t x Z=Ξ 0 x Z) (t : β) : manifoldTimePrimitive Ξ t x Z=0 := by | |
| have hd := (((hΞ.time_contDiffAt t x).differentiableAt (by simp)).hasDerivAt).clm_apply | |
| (hasDerivAt_const t Z) | |
| have he : (fun s => Ξ s x Z) = fun _ : β => Ξ 0 x Z := funext hz | |
| change HasDerivAt (fun s => Ξ s x Z) _ t at hd | |
| rw [he] at hd | |
| have hh := hd.unique (hasDerivAt_const t (Ξ 0 x Z)) | |
| simpa only [manifoldTimePrimitive,ContinuousLinearMap.map_zero,add_zero] using hh | |
| omit [TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M] in | |
| theorem manifoldTimePrimitive_stationary {Ξ : β β ManifoldOneForm E M} | |
| {x : M} (hz : β t, Ξ t x=Ξ 0 x) (t : β) : manifoldTimePrimitive Ξ t x=0 := by | |
| unfold manifoldTimePrimitive | |
| rw [show (fun s => Ξ s x)=fun _ : β => Ξ 0 x from funext hz] | |
| exact deriv_const t (Ξ 0 x) | |
| omit [IsManifold π(β,E) β M] in | |
| theorem manifoldExteriorOneForm_skew (Ξ± : ManifoldOneForm E M) (x : M) (v w : E) : | |
| manifoldExteriorOneForm Ξ± x v w = -manifoldExteriorOneForm Ξ± x w v := by | |
| change fderiv β (chartOneForm Ξ± x) (extChartAt π(β,E) x x) | |
| (chartDifferential x x v) (chartDifferential x x w) - | |
| fderiv β (chartOneForm Ξ± x) (extChartAt π(β,E) x x) | |
| (chartDifferential x x w) (chartDifferential x x v) = -_ | |
| change _ = -(fderiv β (chartOneForm Ξ± x) (extChartAt π(β,E) x x) | |
| (chartDifferential x x w) (chartDifferential x x v) - | |
| fderiv β (chartOneForm Ξ± x) (extChartAt π(β,E) x x) | |
| (chartDifferential x x v) (chartDifferential x x w)) | |
| ring | |
| end PackingSufficiencySupport.Hamiltonian | |
| namespace PackingSufficiencySupport.CubicModel | |
| open scoped ContDiff Manifold Topology BigOperators | |
| open Set Function Filter Manifold | |
| open DiagonalQuadrics DiagonalQuadrics.Explicit Hamiltonian FiniteMoment | |
| variable {ΞΉ : Type*} [Fintype ΞΉ] [Nonempty ΞΉ] | |
| def coefficientNorm (D m : β) (x : BaseCurve) : β := | |
| 1+phaseSq (weightedPhaseInclusion D m x) | |
| theorem coefficientNorm_pos (D m : β) (x : BaseCurve) : 0<coefficientNorm D m x := by | |
| dsimp [coefficientNorm] | |
| linarith [phaseSq_nonneg (weightedPhaseInclusion D m x)] | |
| theorem coefficientNorm_smooth (D m : β) : | |
| ContMDiff π(β,RealModel) π(β,β) β (coefficientNorm D m) := | |
| contMDiff_const.add (phaseSq_smooth.contMDiff.comp (weightedPhaseInclusion_smooth D m)) | |
| def reducedProbability (w : ΞΉ β MomentPlane) (D m : ΞΉ β β) (p : MomentPlane) | |
| (x : BaseCurve) (i : ΞΉ) : β := selected w (fun j => coefficientNorm (D j) (m j) x) p i | |
| theorem reducedProbability_pos (w : ΞΉ β MomentPlane) (D m : ΞΉ β β) (p : MomentPlane) | |
| (x : BaseCurve) (i : ΞΉ) : 0<reducedProbability w D m p x i := | |
| selected_pos (fun j => coefficientNorm_pos (D j) (m j) x) _ _ | |
| theorem reducedProbability_sum (w : ΞΉ β MomentPlane) (D m : ΞΉ β β) (p : MomentPlane) | |
| (x : BaseCurve) : β i,reducedProbability w D m p x i=1 := | |
| selected_sum (fun j => coefficientNorm_pos (D j) (m j) x) _ | |
| theorem reducedProbability_mean {w : ΞΉ β MomentPlane} (D m : ΞΉ β β) {p : MomentPlane} | |
| (hp : Surrounds w p) (x : BaseCurve) : β i,reducedProbability w D m p x i β’ w i=p := | |
| selected_mean (fun j => coefficientNorm_pos (D j) (m j) x) hp | |
| theorem reducedProbability_smooth {w : ΞΉ β MomentPlane} (D m : ΞΉ β β) {p : MomentPlane} | |
| (hp : Surrounds w p) (i : ΞΉ) : | |
| ContMDiff π(β,RealModel) π(β,β) β (fun x => reducedProbability w D m p x i) := by | |
| have ha : ContMDiff π(β,RealModel) π(β,ΞΉ β β) β | |
| (fun x : BaseCurve => fun j => coefficientNorm (D j) (m j) x) := | |
| contMDiff_pi_space.mpr (fun j => coefficientNorm_smooth _ _) | |
| intro x | |
| exact (selected_contDiffAt (fun j => coefficientNorm_pos (D j) (m j) x) hp i).contMDiffAt.comp x | |
| ((ha.prodMk_space contMDiff_const).contMDiffAt) | |
| def reducedPrimitive (w : ΞΉ β MomentPlane) (D m : ΞΉ β β) (c : β) (p : MomentPlane) : | |
| ManifoldOneForm RealModel BaseCurve := | |
| fun x => β i,reducedProbability w D m p x i β’ weightedFSPrimitive (D i) (m i) c x | |
| def reducedForm (w : ΞΉ β MomentPlane) (D m : ΞΉ β β) (c : β) (p : MomentPlane) : | |
| ManifoldTwoForm RealModel BaseCurve := manifoldExteriorOneForm (reducedPrimitive w D m c p) | |
| theorem reducedPrimitive_smooth {w : ΞΉ β MomentPlane} (D m : ΞΉ β β) (c : β) {p : MomentPlane} | |
| (hp : Surrounds w p) : SmoothOneFormFamily (fun _ : β => reducedPrimitive w D m c p) := by | |
| have hs := SmoothOneFormFamily.sum Finset.univ (fun i _ => | |
| (weightedFSPrimitive_smooth (D i) (m i) c).spatial_smul (reducedProbability_smooth D m hp i)) | |
| convert hs using 1 | |
| funext t x | |
| simp only [reducedPrimitive,Finset.sum_apply] | |
| theorem reducedForm_smooth {w : ΞΉ β MomentPlane} (D m : ΞΉ β β) (c : β) {p : MomentPlane} | |
| (hp : Surrounds w p) : SmoothTwoForm (reducedForm w D m c p) := | |
| (manifoldExteriorOneForm_family_smooth (reducedPrimitive_smooth D m c hp)).eval 0 | |
| omit [Nonempty ΞΉ] in | |
| theorem reducedForm_skew (w : ΞΉ β MomentPlane) (D m : ΞΉ β β) (c : β) (p : MomentPlane) | |
| (x : BaseCurve) (v u : RealModel) : reducedForm w D m c p x v u= -reducedForm w D m c p x u v := | |
| manifoldExteriorOneForm_skew _ _ _ _ | |
| end PackingSufficiencySupport.CubicModel | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 25.9 kB
- Xet hash:
- cdd8bc40f0260111ffcbad3ab2a0871ebdc4b8de36e0faddba8f8d9d64a5bb57
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.