import Mathlib import OAI.Geometry.BallPacking.Annuli.QuadricCylinderChart namespace OAI noncomputable section namespace PackingSufficiencySupport.DiagonalQuadrics.Explicit open scoped ContDiff Manifold Topology open Set Function Manifold MeasureTheory open Hamiltonian variable (m : β„•) def unitTransverseCycle (t : ℝ) : Surface m := transverseCycle m (2*Real.pi*t-Real.pi/2) theorem unitTransverseCycle_smooth : ContMDiff π“˜(ℝ,ℝ) π“˜(ℝ,RealModel) ∞ (unitTransverseCycle m) := (transverseCycle_smooth m).comp ((contDiff_const.mul contDiff_id).sub contDiff_const).contMDiff theorem unitTransverseCycle_periodic : Periodic (unitTransverseCycle m) 1 := by intro t change transverseCycle m (2*Real.pi*(t+1)-Real.pi/2)=_ rw [show 2*Real.pi*(t+1)-Real.pi/2=(2*Real.pi*t-Real.pi/2)+2*Real.pi by ring] exact transverseCycle_periodic m _ theorem unitTransverseCycle_pullback (t : ℝ) : curveOneForm (compactDualForm m) (unitTransverseCycle m) t= (2*Real.pi)*dualAlongCycle m (2*Real.pi*t-Real.pi/2) := by let h : ℝ β†’ ℝ := fun t => 2*Real.pi*t-Real.pi/2 have hd : HasDerivAt h (2*Real.pi) t := by simpa only [h,id_eq,mul_one] using ((hasDerivAt_id t).const_mul (2*Real.pi)).sub_const (Real.pi/2) have he := mfderiv_comp t ((transverseCycle_smooth m).mdifferentiableAt (by simp)) (hasMFDerivAt_iff_hasFDerivAt.mpr hd.hasFDerivAt).mdifferentiableAt have he' := congrArg (fun D : ℝ β†’L[ℝ] RealModel => D 1) he have hh : mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,ℝ) h t 1=2*Real.pi := by have hh := congrArg (fun D : ℝ β†’L[ℝ] ℝ => D 1) (mfderiv_eq_fderiv (f := h) (x := t)) have hh' : fderiv ℝ h t 1=2*Real.pi := by rw [hd.hasFDerivAt.fderiv] simp exact hh.trans hh' change mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,RealModel) (transverseCycle m ∘ h) t 1= mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,RealModel) (transverseCycle m) (h t) (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,ℝ) h t 1) at he' rw [hh] at he' change (compactDualForm m (transverseCycle m (h t))) ((mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,RealModel) (transverseCycle m ∘ h) t) 1)=_ rw [he'] let L : ℝ β†’L[ℝ] ℝ := (compactDualForm m (transverseCycle m (h t))).comp (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,RealModel) (transverseCycle m) (h t)) change L (2*Real.pi) = (2*Real.pi)*L 1 simpa only [smul_eq_mul, mul_one] using L.map_smul (2*Real.pi) (1:ℝ) theorem compactDualForm_unit_period : ∫ t in (0:ℝ)..1,curveOneForm (compactDualForm m) (unitTransverseCycle m) t=1 := by simp_rw [unitTransverseCycle_pullback,sub_eq_add_neg] rw [intervalIntegral.integral_const_mul] change (2*Real.pi) β€’ (∫ t in (0:ℝ)..1,dualAlongCycle m (2*Real.pi*t+ -(Real.pi/2)))=1 rw [intervalIntegral.smul_integral_comp_mul_add] simpa only [dualAlongCycle,mul_zero,zero_add,mul_one, show 2*Real.pi+ -(Real.pi/2)=Real.pi+Real.pi/2 by ring] using compactDualForm_period m theorem compactDualForm_not_exact : Β¬βˆƒ f : Surface m β†’ ℝ, ContMDiff π“˜(ℝ,RealModel) π“˜(ℝ,ℝ) ∞ f ∧ manifoldScalarDifferential (E := RealModel) f=compactDualForm m := by rintro ⟨f,hf,he⟩ have hs := (hf.comp (unitTransverseCycle_smooth m)).contDiff have hd : βˆ€ t,HasDerivAt (f ∘ unitTransverseCycle m) (curveOneForm (compactDualForm m) (unitTransverseCycle m) t) t := by intro t rw [← he,curveOneForm_scalar hf (unitTransverseCycle_smooth m)] exact (hs.differentiable (by simp) t).hasDerivAt have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt (fun t _ => hd t) ((curveOneForm_smooth (compactDualForm_smooth m) (unitTransverseCycle_smooth m)).continuous.intervalIntegrable 0 1) rw [compactDualForm_unit_period] at hi have hp := unitTransverseCycle_periodic m 0 simp only [zero_add] at hp simp only [Function.comp_apply,hp,sub_self] at hi exact one_ne_zero hi end PackingSufficiencySupport.DiagonalQuadrics.Explicit namespace PackingSufficiencySupport.Hamiltonian open scoped ContDiff Manifold Topology open Set Function Manifold MeasureTheory section variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {M : Type*} [TopologicalSpace M] [ChartedSpace E M] theorem curveOneForm_affine {Ξ± : ManifoldOneForm E M} {q : ℝ β†’ M} (hq : ContMDiff π“˜(ℝ,ℝ) π“˜(ℝ,E) ∞ q) (a b t : ℝ) : curveOneForm Ξ± (fun s => q (a*s+b)) t=a*curveOneForm Ξ± q (a*t+b) := by let h : ℝ β†’ ℝ := fun s => a*s+b have hd : HasDerivAt h a t := by simpa only [h,id_eq,mul_one] using ((hasDerivAt_id t).const_mul a).add_const b have he := mfderiv_comp t (hq.mdifferentiableAt (by simp)) (hasMFDerivAt_iff_hasFDerivAt.mpr hd.hasFDerivAt).mdifferentiableAt have he' := congrArg (fun D : ℝ β†’L[ℝ] E => D 1) he have hh : mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,ℝ) h t 1=a := by have hh := congrArg (fun D : ℝ β†’L[ℝ] ℝ => D 1) (mfderiv_eq_fderiv (f := h) (x := t)) have hh' : fderiv ℝ h t 1=a := by rw [hd.hasFDerivAt.fderiv] simp exact hh.trans hh' change mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,E) (q ∘ h) t 1= mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,E) q (h t) (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,ℝ) h t 1) at he' rw [hh] at he' change Ξ± (q (h t)) (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,E) (q ∘ h) t 1)=_ rw [he'] let L : ℝ β†’L[ℝ] ℝ := (Ξ± (q (h t))).comp (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,E) q (h t)) change L a = a * L 1 simpa only [smul_eq_mul, mul_one] using L.map_smul a (1:ℝ) theorem curveOneForm_periodic {Ξ± : ManifoldOneForm E M} {q : ℝ β†’ M} (hq : ContMDiff π“˜(ℝ,ℝ) π“˜(ℝ,E) ∞ q) {T : ℝ} (hp : Periodic q T) : Periodic (curveOneForm Ξ± q) T := by have he : (fun s => q (1*s+T))=q := by ext s; simp only [one_mul,hp s] intro t have hd := curveOneForm_affine (Ξ± := Ξ±) hq 1 T t rw [he,one_mul,one_mul] at hd exact hd.symm theorem curveOneForm_period_integral {Ξ± : ManifoldOneForm E M} {q : ℝ β†’ M} (hq : ContMDiff π“˜(ℝ,ℝ) π“˜(ℝ,E) ∞ q) {T : ℝ} (hp : Periodic q T) (b c : ℝ) : (∫ t in b..b+T,curveOneForm Ξ± q t)=(∫ t in c..c+T,curveOneForm Ξ± q t) := by exact (curveOneForm_periodic hq hp).intervalIntegral_add_eq _ _ end theorem cylinderFormB_curve (Ξ± : ℝ β†’ ManifoldOneForm CylinderModel HandleCylinder) (p a t : ℝ) : cylinderFormB Ξ± (p,(a,t))= curveOneForm (Ξ± p) (fun s => (a,circleTurn s)) t := by let j : ℝ β†’ Plane := fun s => (a,s) have hj : HasFDerivAt j (ContinuousLinearMap.inr ℝ ℝ ℝ) t := (hasFDerivAt_const a t).prodMk (hasFDerivAt_id t) have hg := ((cylinderCover_smooth.mdifferentiableAt (by simp)).hasMFDerivAt.comp t (hasMFDerivAt_iff_hasFDerivAt.mpr hj)).mfderiv change Ξ± p (a,circleTurn t) (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover (a,t) (0,1))= Ξ± p (a,circleTurn t) (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,CylinderModel) (cylinderCover ∘ j) t 1) rw [hg] rfl variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {M N : Type} [TopologicalSpace M] [ChartedSpace E M] [TopologicalSpace N] [ChartedSpace F N] theorem curveOneForm_parameter_pullback (Ξ± : ℝ β†’ ManifoldOneForm E M) {g : N β†’ M} {q : ℝ β†’ N} {t p : ℝ} (hg : MDifferentiableAt π“˜(ℝ,F) π“˜(ℝ,E) g (q t)) (hq : MDifferentiableAt π“˜(ℝ,ℝ) π“˜(ℝ,F) q t) : curveOneForm (parameterManifoldPullbackOneForm (E := E) (F := F) Ξ± g p) q t= curveOneForm (Ξ± p) (g ∘ q) t := by have hd := mfderiv_comp t hg hq change Ξ± p (g (q t)) (mfderiv π“˜(ℝ,F) π“˜(ℝ,E) g (q t) (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,F) q t 1))= Ξ± p (g (q t)) (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,E) (g ∘ q) t 1) rw [hd] rfl end PackingSufficiencySupport.Hamiltonian namespace PackingSufficiencySupport.DiagonalQuadrics.Explicit open scoped ContDiff Manifold Topology open Set Function Manifold MeasureTheory open Hamiltonian variable (m : β„•) theorem transverseCycle_Acoordinate (ΞΈ : ℝ) : transverseCoordinate m (transverseCycle m ΞΈ).val=(Circle.exp ΞΈ : β„‚) := by change (Real.cos ΞΈ : β„‚)+Complex.I*(Real.sin ΞΈ : β„‚)=_ rw [Circle.coe_exp,Complex.exp_mul_I] rw [← Complex.ofReal_cos,← Complex.ofReal_sin,mul_comm Complex.I] theorem transverseCycle_transverseBranch (ΞΈ : ℝ) : transverseCycle m θ∈transverseBranch m := by refine ⟨?_,?_⟩ Β· rw [transverseCycle_Acoordinate] exact unitCircle_subset_transverseDomain m (Circle.norm_coe _) Β· intro j hj change 0<(if j=0 then Complex.I*(Real.sin ΞΈ : β„‚) else Complex.I*(Real.sqrt ((j.val : ℝ)+1-Real.cos ΞΈ^2) : β„‚)).im simp only [ite_eq_right hj,Complex.mul_im,Complex.I_re,Complex.I_im, zero_mul,one_mul,zero_add,Complex.ofReal_re] apply Real.sqrt_pos.mpr have hjp : 0<(j.val : ℝ) := by exact_mod_cast Fin.pos_iff_ne_zero.mpr hj nlinarith [Real.cos_sq_le_one ΞΈ] theorem transverseCylinder_core_cycle (t : ℝ) : transverseCylinder m (0,circleTurn t)=transverseCycle m (2*Real.pi*t) := by have he := (transverseAnnulusChart m).left_inv (transverseCycle_transverseBranch m (2*Real.pi*t)) change transverseAnnulusInverse m (transverseCoordinate m (transverseCycle m (2*Real.pi*t)).val)=_ at he rw [transverseCycle_Acoordinate] at he simpa only [transverseCylinder_apply,cylinderComplexMap,Real.exp_zero, Complex.ofReal_one,one_mul,circleTurn] using he def cylinderDualForm : ℝ β†’ ManifoldOneForm CylinderModel HandleCylinder := parameterManifoldPullbackOneForm (fun _ : ℝ => compactDualForm m) (transverseCylinder m) theorem cylinderDualForm_B (p t : ℝ) : cylinderFormB (cylinderDualForm m) (p,(0,t))= curveOneForm (compactDualForm m) (fun s => transverseCylinder m (0,circleTurn s)) t := by rw [cylinderFormB_curve] exact curveOneForm_parameter_pullback (fun _ : ℝ => compactDualForm m) ((transverseCylinder m).mdifferentiableAt (by simp) (transverseCylinder_core m _)) ((cylinderCover_smooth.comp ((contDiff_const.prodMk contDiff_id).contMDiff)).mdifferentiableAt (by simp)) theorem cylinderDualForm_period (p : ℝ) : cylinderFormPeriod 0 (cylinderDualForm m) p=1 := by unfold cylinderFormPeriod annularMean simp_rw [cylinderDualForm_B] have he : (fun s => transverseCylinder m (0,circleTurn s))= (fun s => transverseCycle m (2*Real.pi*s+0)) := by funext s rw [add_zero] exact transverseCylinder_core_cycle m s rw [he] simp_rw [curveOneForm_affine (transverseCycle_smooth m),add_zero] rw [intervalIntegral.integral_const_mul] change (2*Real.pi) β€’ (∫ t in (0:ℝ)..1, curveOneForm (compactDualForm m) (transverseCycle m) (2*Real.pi*t))=1 rw [intervalIntegral.smul_integral_comp_mul_left] simp only [mul_zero,mul_one] have hp := curveOneForm_period_integral (Ξ± := compactDualForm m) (transverseCycle_smooth m) (transverseCycle_periodic m) 0 (-(Real.pi/2)) rw [zero_add,show -(Real.pi/2)+2*Real.pi=Real.pi+Real.pi/2 by ring] at hp rw [hp] exact compactDualForm_period m end PackingSufficiencySupport.DiagonalQuadrics.Explicit namespace PackingSufficiencySupport.Hamiltonian open scoped ContDiff Manifold Topology open Set Function Manifold open MeasureTheory section variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] theorem annularCylinderScalar_joint_smoothOn {V : Set P} {I : Set ℝ} (hV : IsOpen V) (hI : IsOpen I) {F : P Γ— Plane β†’ ℝ} (hF : ContDiffOn ℝ ∞ F (V Γ—Λ’ (I Γ—Λ’ univ))) (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => F (p,(s,t))) 1) : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,CylinderModel)) π“˜(ℝ,ℝ) ∞ (fun q : P Γ— HandleCylinder => annularCylinderScalar F q.1 q.2) (V Γ—Λ’ (I Γ—Λ’ univ)) := by have hfst : ContMDiff π“˜(ℝ,CylinderModel) π“˜(ℝ,ℝ) ∞ (Prod.fst : HandleCylinder β†’ ℝ) := by rw [show π“˜(ℝ,CylinderModel) = (π“˜(ℝ,ℝ)).prod π“˜(ℝ,CircleModel) from modelWithCornersSelf_prod] exact contMDiff_fst have hparam : ContMDiff ((π“˜(ℝ,P)).prod π“˜(ℝ,CylinderModel)) π“˜(ℝ,P) ∞ (Prod.fst : P Γ— HandleCylinder β†’ P) := contMDiff_fst have hbase : ContMDiff ((π“˜(ℝ,P)).prod π“˜(ℝ,CylinderModel)) π“˜(ℝ,CylinderModel) ∞ (Prod.snd : P Γ— HandleCylinder β†’ HandleCylinder) := contMDiff_snd have hpair : ContMDiff ((π“˜(ℝ,P)).prod π“˜(ℝ,CylinderModel)) π“˜(ℝ,P Γ— ℝ) ∞ (fun q : P Γ— HandleCylinder => (q.1,q.2.1)) := by exact (contMDiff_prod_module_iff _).2 ⟨hparam,hfst.comp hbase⟩ have hmap : ContMDiff ((π“˜(ℝ,P)).prod π“˜(ℝ,CylinderModel)) ((π“˜(ℝ,P Γ— ℝ)).prod π“˜(ℝ,CircleModel)) ∞ (fun q : P Γ— HandleCylinder => ((q.1,q.2.1),q.2.2)) := hpair.prodMk (cylinder_snd_smooth.comp hbase) exact (annularScalarDescent_smoothOn hV hI hF hper).comp hmap.contMDiffOn (fun _ hq => ⟨⟨hq.1,hq.2.1⟩,hq.2.2⟩) variable [FiniteDimensional ℝ P] theorem normalizedAnnularPrimitive_cylinder_joint_smoothOn {V : Set P} {I : Set ℝ} (hV : IsOpen V) (hI : IsOpen I) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I) {A B : P Γ— Plane β†’ ℝ} {Ξ² : ℝ β†’ ℝ} (hA : ContDiffOn ℝ ∞ A (V Γ—Λ’ (I Γ—Λ’ univ))) (hB : ContDiffOn ℝ ∞ B (V Γ—Λ’ (I Γ—Λ’ univ))) (hΞ² : ContDiff ℝ ∞ Ξ²) (hpΞ² : Periodic Ξ² 1) (hΞ²int : (∫ t in (0:ℝ)..1,Ξ² t)=1) (hpA : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => A (p,(s,t))) 1) (hpB : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => B (p,(s,t))) 1) (hclosed : βˆ€ p∈V,βˆ€ s∈I,βˆ€ t, fderiv ℝ (fun z => A (p,z)) (s,t) (0,1)= fderiv ℝ (fun z => B (p,z)) (s,t) (1,0)) : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,CylinderModel)) π“˜(ℝ,ℝ) ∞ (fun q : P Γ— HandleCylinder => annularCylinderScalar (normalizedAnnularPrimitive a A B Ξ²) q.1 q.2) (V Γ—Λ’ (I Γ—Λ’ univ)) := by obtain ⟨hF,hper,_⟩ := annular_normalization hV hI hc ha hA hB hΞ² hpΞ² hΞ²int hpA hpB hclosed exact annularCylinderScalar_joint_smoothOn hV hI hF hper end section variable {P : Type} {E G : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup G] [NormedSpace ℝ G] {M N : Type*} [TopologicalSpace M] [ChartedSpace E M] [TopologicalSpace N] [ChartedSpace G N] theorem manifoldScalarDifferential_comp_at {f : N β†’ ℝ} {e : M β†’ N} {x : M} (hf : ContMDiffAt π“˜(ℝ,G) π“˜(ℝ,ℝ) ∞ f (e x)) (he : ContMDiffAt π“˜(ℝ,E) π“˜(ℝ,G) ∞ e x) : manifoldScalarDifferential (E := E) (f ∘ e) x= (manifoldScalarDifferential (E := G) f (e x)).comp (mfderiv π“˜(ℝ,E) π“˜(ℝ,G) e x) := mfderiv_comp x (hf.mdifferentiableAt (by simp)) (he.mdifferentiableAt (by simp)) theorem annularCylinderScalar_family_pullback_smoothOn {V : Set P} {I : Set ℝ} {U : Set M} (hV : IsOpen V) (hI : IsOpen I) {F : P Γ— Plane β†’ ℝ} (hF : ContDiffOn ℝ ∞ F (V Γ—Λ’ (I Γ—Λ’ univ))) (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => F (p,(s,t))) 1) {e : M β†’ HandleCylinder} (he : ContMDiffOn π“˜(ℝ,E) π“˜(ℝ,CylinderModel) ∞ e U) (hmem : βˆ€ x∈U,(e x).1∈I) : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ (fun q : P Γ— M => annularCylinderScalar F q.1 (e q.2)) (V Γ—Λ’ U) := by have hg : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) ((π“˜(ℝ,P)).prod π“˜(ℝ,CylinderModel)) ∞ (fun q : P Γ— M => (q.1,e q.2)) (V Γ—Λ’ U) := contMDiffOn_fst.prodMk (he.comp contMDiffOn_snd (fun _ hq => hq.2)) exact (annularCylinderScalar_joint_smoothOn hV hI hF hper).comp hg (fun q hq => ⟨hq.1,hmem q.2 hq.2,mem_univ _⟩) theorem annularCylinderScalar_pullback_differential {V : Set P} {I : Set ℝ} (hV : IsOpen V) (hI : IsOpen I) {F : P Γ— Plane β†’ ℝ} (hF : ContDiffOn ℝ ∞ F (V Γ—Λ’ (I Γ—Λ’ univ))) (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => F (p,(s,t))) 1) {e : M β†’ HandleCylinder} {x : M} (he : ContMDiffAt π“˜(ℝ,E) π“˜(ℝ,CylinderModel) ∞ e x) {p : P} (hp : p∈V) (hx : (e x).1∈I) (v : E) : manifoldScalarDifferential (E := E) (fun y => annularCylinderScalar F p (e y)) x v= fderiv ℝ (fun z => F (p,z)) ((e x).1,shortCircleArgument (e x).2) ((mfderiv π“˜(ℝ,E) π“˜(ℝ,CylinderModel) e x v).1, circleAngular (e x).2 (mfderiv π“˜(ℝ,E) π“˜(ℝ,CylinderModel) e x v).2) := by have hd := manifoldScalarDifferential_comp_at (E := E) (G := CylinderModel) (f := annularCylinderScalar F p) (e := e) (annularCylinderScalar_smoothAt hV hI hF hper hp (z := e x) hx) he change (manifoldScalarDifferential (E := E) (annularCylinderScalar F p ∘ e) x) v=_ rw [hd] let q : Plane := ((e x).1,shortCircleArgument (e x).2) let w : CylinderModel := mfderiv π“˜(ℝ,E) π“˜(ℝ,CylinderModel) e x v have hq : cylinderCover q=e x := by apply Prod.ext Β· rfl Β· exact circleTurn_shortCircleArgument (e x).2 let u : Plane := (w.1,circleAngular (circleTurn q.2) w.2) have hL : mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover q u=w := cylinderCover_derivative_right_inverse q w have hc := annularCylinderScalar_differential_cover hV hI hF hper hp (q := q) hx u rw [hL,hq] at hc have ht : circleTurn q.2=(e x).2 := congrArg Prod.snd hq dsimp only [u] at hc rw [ht] at hc convert hc using 1 rfl end variable {P E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] [FiniteDimensional ℝ P] [NormedAddCommGroup E] [NormedSpace ℝ E] {M : Type} [TopologicalSpace M] [ChartedSpace E M] theorem exists_closed_annular_coordinate_potential {V : Set P} {I : Set ℝ} {U : Set M} (hV : IsOpen V) (hI : IsOpen I) (hU : IsOpen U) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I) {Ξ± : P β†’ ManifoldOneForm CylinderModel HandleCylinder} {A B : P Γ— Plane β†’ ℝ} {Ξ² : ℝ β†’ ℝ} (hA : ContDiffOn ℝ ∞ A (V Γ—Λ’ (I Γ—Λ’ univ))) (hB : ContDiffOn ℝ ∞ B (V Γ—Λ’ (I Γ—Λ’ univ))) (hΞ² : ContDiff ℝ ∞ Ξ²) (hpΞ² : Periodic Ξ² 1) (hΞ²int : (∫ t in (0:ℝ)..1,Ξ² t)=1) (hpA : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => A (p,(s,t))) 1) (hpB : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => B (p,(s,t))) 1) (hΞ± : βˆ€ p∈V,βˆ€ q : Plane,q.1∈I β†’ ContDiffAt ℝ ∞ (chartOneForm (Ξ± p) (cylinderCover q)) (extChartAt π“˜(ℝ,CylinderModel) (cylinderCover q) (cylinderCover q))) (hclosed : βˆ€ p∈V,βˆ€ z : HandleCylinder,z.1∈I β†’ manifoldExteriorOneForm (Ξ± p) z=0) (hrep : βˆ€ p∈V,βˆ€ q : Plane,q.1∈I β†’ euclideanPullbackOneForm (fun _ => Ξ± p) cylinderCover (0,q)= planarCovector (A (p,q)) (B (p,q))) {e : M β†’ HandleCylinder} (he : ContMDiffOn π“˜(ℝ,E) π“˜(ℝ,CylinderModel) ∞ e U) (hmem : βˆ€ x∈U,(e x).1∈I) : βˆƒ F : P Γ— M β†’ ℝ, ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ F (V Γ—Λ’ U) ∧ βˆ€ p∈V,βˆ€ x∈U,βˆ€ v : E, manifoldScalarDifferential (E := E) (fun y => F (p,y)) x v= Ξ± p (e x) (mfderiv π“˜(ℝ,E) π“˜(ℝ,CylinderModel) e x v)- annularMean a B p*circlePeriodicDescent Ξ² (e x).2* circleAngular (e x).2 (mfderiv π“˜(ℝ,E) π“˜(ℝ,CylinderModel) e x v).2 := by have hcurl : βˆ€ p∈V,βˆ€ s∈I,βˆ€ t, fderiv ℝ (fun z => A (p,z)) (s,t) (0,1)= fderiv ℝ (fun z => B (p,z)) (s,t) (1,0) := by intro p hp s hs t exact closed_cylinder_cover_equation hI (hA.comp (contDiff_const.prodMk contDiff_id).contDiffOn (fun _ hz => ⟨hp,hz⟩)) (hB.comp (contDiff_const.prodMk contDiff_id).contDiffOn (fun _ hz => ⟨hp,hz⟩)) (hΞ± p hp) (hclosed p hp) (hrep p hp) hs obtain ⟨hF,hper,_⟩ := annular_normalization hV hI hc ha hA hB hΞ² hpΞ² hΞ²int hpA hpB hcurl obtain ⟨_,hFd⟩ := closed_cylinder_normalized_potential hV hI hc ha hA hB hΞ² hpΞ² hΞ²int hpA hpB hΞ± hclosed hrep refine ⟨fun q => annularCylinderScalar (normalizedAnnularPrimitive a A B Ξ²) q.1 (e q.2), annularCylinderScalar_family_pullback_smoothOn hV hI hF hper he hmem,?_⟩ intro p hp x hx v have hd := manifoldScalarDifferential_comp_at (annularCylinderScalar_smoothAt hV hI hF hper hp (hmem x hx)) (he.contMDiffAt (hU.mem_nhds hx)) change (manifoldScalarDifferential (E := E) (annularCylinderScalar (normalizedAnnularPrimitive a A B Ξ²) p ∘ e) x) v=_ rw [hd] exact hFd p hp (e x) (hmem x hx) _ theorem exists_intrinsic_annular_coordinate_potential {V : Set P} {I : Set ℝ} {U : Set M} (hV : IsOpen V) (hI : IsOpen I) (hU : IsOpen U) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I) {Ξ± : P β†’ ManifoldOneForm CylinderModel HandleCylinder} (hΞ± : βˆ€ p∈V,βˆ€ z : HandleCylinder,z.1∈I β†’ ContDiffAt ℝ ∞ (fun q : P Γ— CylinderModel => chartOneForm (Ξ± q.1) z q.2) (p,extChartAt π“˜(ℝ,CylinderModel) z z)) (hclosed : βˆ€ p∈V,βˆ€ z : HandleCylinder,z.1∈I β†’ manifoldExteriorOneForm (Ξ± p) z=0) {f : Circle β†’ ℝ} (hf : ContMDiff π“˜(ℝ,CircleModel) π“˜(ℝ,ℝ) ∞ f) (hfint : (∫ t in (0:ℝ)..1,f (circleTurn t))=1) {e : M β†’ HandleCylinder} (he : ContMDiffOn π“˜(ℝ,E) π“˜(ℝ,CylinderModel) ∞ e U) (hmem : βˆ€ x∈U,(e x).1∈I) : βˆƒ F : P Γ— M β†’ ℝ, ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ F (V Γ—Λ’ U) ∧ βˆ€ p∈V,βˆ€ x∈U,βˆ€ v : E, manifoldScalarDifferential (E := E) (fun y => F (p,y)) x v= Ξ± p (e x) (mfderiv π“˜(ℝ,E) π“˜(ℝ,CylinderModel) e x v)- cylinderFormPeriod a Ξ± p*f (e x).2* circleAngular (e x).2 (mfderiv π“˜(ℝ,E) π“˜(ℝ,CylinderModel) e x v).2 := by have hΞ² : ContDiff ℝ ∞ (f ∘ circleTurn) := (hf.comp circleTurn_smooth).contDiff have hpΞ² : Periodic (f ∘ circleTurn) 1 := fun t => congrArg f (circleTurn_period_one t) have hΞ±' : βˆ€ p∈V,βˆ€ q : Plane,q.1∈I β†’ ContDiffAt ℝ ∞ (chartOneForm (Ξ± p) (cylinderCover q)) (extChartAt π“˜(ℝ,CylinderModel) (cylinderCover q) (cylinderCover q)) := by intro p hp q hq exact (hΞ± p hp (cylinderCover q) hq).comp _ (contDiffAt_const.prodMk contDiffAt_id) obtain ⟨F,hF,hd⟩ := exists_closed_annular_coordinate_potential hV hI hU hc ha (cylinderForm_coefficients_smooth hΞ±).1 (cylinderForm_coefficients_smooth hΞ±).2 hΞ² hpΞ² hfint (fun p _ s _ => (cylinderForm_coefficients_periodic Ξ± p s).1) (fun p _ s _ => (cylinderForm_coefficients_periodic Ξ± p s).2) hΞ±' hclosed (fun p _ q _ => cylinderForm_rep Ξ± p q) he hmem refine ⟨F,hF,?_⟩ intro p hp x hx v simpa only [cylinderFormPeriod,circlePeriodicDescent,Function.comp_apply, circleTurn_shortCircleArgument] using hd p hp x hx v end PackingSufficiencySupport.Hamiltonian end end OAI