cfahlgren1/math / lean /OAI /Geometry /BallPacking /Toric /RestrictedMassIndependence.lean
cfahlgren1's picture
download
raw
25.9 kB
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[ℝ] ℝ) :=
@Module.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)
| @insert 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]
| @insert 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.