Download data/lean/OAI/Geometry/BallPacking/Moser/ParametricMoser.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 31.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Moser/ParametricMoser.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BallPacking/Moser/ParametricMoser.lean
-
curl -L -o ParametricMoser.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Moser/ParametricMoser.lean
31.8 kB
Lean 4 Β· 47
declarations fullstatements
| import Mathlib | |
| import OAI.Geometry.BallPacking.Moser.ManifoldMoserField | |
| namespace OAI | |
| noncomputable section | |
| namespace PackingSufficiencySupport.Hamiltonian | |
| open scoped ContDiff Topology NNReal | |
| open Set Function MeasureTheory | |
| section | |
| variable {P : Type} [NormedAddCommGroup P] [NormedSpace β P] [FiniteDimensional β P] | |
| theorem exists_parametric_relative_primitive {ΞΉ : Type*} [Fintype ΞΉ] | |
| {f : P Γ Plane β β} (hf : ContDiff β β f) (hfc : HasCompactSupport f) | |
| (hf0 : β y, (β« p, f (y,p)) = 0) | |
| (R : ΞΉ β β) (hR : β i, 0 < R i) (hRi : Injective R) | |
| (hz : β i y, (β« p in roundDisk (R i), f (y,p)) = 0) : | |
| β U V : P Γ Plane β β, ContDiff β β U β§ ContDiff β β V β§ | |
| HasCompactSupport U β§ HasCompactSupport V β§ | |
| (β y p, deriv (fun x => V (y,(x,p.2))) p.1 - | |
| deriv (fun t => U (y,(p.1,t))) p.2 = f (y,p)) β§ | |
| (β i y p, radiusSq p = (R i)^2 β -p.2*U (y,p)+p.1*V (y,p) = 0) β§ | |
| β y, (β x, f (y,x) = 0) β β x, U (y,x) = 0 β§ V (y,x) = 0 := by | |
| obtain β¨U,V,hU,hV,hUc,hVc,hcurl,huvzeroβ© := exists_parametric_compact_primitive hf hfc hf0 | |
| let alpha : P Γ Plane β Plane βL[β] β := fun p => | |
| coordinateForm (fun x => U (p.1,x)) (fun x => V (p.1,x)) p.2 | |
| have has : ContDiff β β alpha := | |
| (hU.smul contDiff_const).add (hV.smul contDiff_const) | |
| have hac : HasCompactSupport alpha := by | |
| apply HasCompactSupport.intro (hUc.union hVc) | |
| intro p hp | |
| have hu : U p = 0 := image_eq_zero_of_notMem_tsupport (fun h => hp (Or.inl h)) | |
| have hv : V p = 0 := image_eq_zero_of_notMem_tsupport (fun h => hp (Or.inr h)) | |
| change U p β’ _ + V p β’ _ = 0 | |
| rw [hu,hv,zero_smul,zero_smul,zero_add] | |
| have hc (y : P) (p : Plane) : planarCurl (fun x => alpha (y,x)) p = f (y,p) := | |
| (coordinateForm_curl (hU.comp (contDiff_const.prodMk contDiff_id)) | |
| (hV.comp (contDiff_const.prodMk contDiff_id)) p).trans (hcurl y p) | |
| have hz' (i : ΞΉ) (y : P) : (β« p in roundDisk (R i), planarCurl (fun x => alpha (y,x)) p) = 0 := by | |
| simp_rw [hc] | |
| exact hz i y | |
| obtain β¨beta,hbs,hbc,hcurlb,hbt,hbzeroβ© := | |
| exists_parametric_finite_circle_correction has hac R hR hRi hz' | |
| let U' : P Γ Plane β β := fun p => beta p (1,0) | |
| let V' : P Γ Plane β β := fun p => beta p (0,1) | |
| have hUs : ContDiff β β U' := hbs.clm_apply contDiff_const | |
| have hVs : ContDiff β β V' := hbs.clm_apply contDiff_const | |
| have hU'c : HasCompactSupport U' := by | |
| apply HasCompactSupport.intro hbc | |
| intro p hp | |
| simp only [U',image_eq_zero_of_notMem_tsupport hp,zero_apply] | |
| have hV'c : HasCompactSupport V' := by | |
| apply HasCompactSupport.intro hbc | |
| intro p hp | |
| simp only [V',image_eq_zero_of_notMem_tsupport hp,zero_apply] | |
| have hUy (y : P) : ContDiff β β (fun x => U' (y,x)) := hUs.comp (contDiff_const.prodMk contDiff_id) | |
| have hVy (y : P) : ContDiff β β (fun x => V' (y,x)) := hVs.comp (contDiff_const.prodMk contDiff_id) | |
| have hby (y : P) : ContDiff β β (fun x => beta (y,x)) := hbs.comp (contDiff_const.prodMk contDiff_id) | |
| refine β¨U',V',hUs,hVs,hU'c,hV'c,?_,?_,?_β© | |
| Β· intro y p | |
| rw [plane_deriv_first ((hVy y).differentiable (by simp)), | |
| plane_deriv_second ((hUy y).differentiable (by simp))] | |
| change fderiv β (fun q => beta (y,q) (0,1)) p (1,0) - | |
| fderiv β (fun q => beta (y,q) (1,0)) p (0,1) = f (y,p) | |
| rw [form_eval_fderiv (hby y),form_eval_fderiv (hby y)] | |
| exact (hcurlb y p).trans (hc y p) | |
| Β· intro i y p hp | |
| have he : (-p.2,p.1) = (-p.2) β’ ((1:β),(0:β)) + p.1 β’ ((0:β),(1:β)) := by | |
| ext <;> simp | |
| have ht := hbt i y p hp | |
| rw [he,map_add,map_smul,map_smul] at ht | |
| exact ht | |
| Β· intro y hy x | |
| have ha0 (q : Plane) : alpha (y,q) = 0 := by | |
| obtain β¨hu,hvβ© := huvzero y hy q | |
| simp only [alpha,coordinateForm,hu,hv,zero_smul,zero_add] | |
| have hb0 := hbzero y ha0 x | |
| simp only [U',V',hb0,zero_apply,and_self] | |
| omit [FiniteDimensional β P] in | |
| theorem parametric_backgroundField_smooth {g f U V : P Γ Plane β β} | |
| (hg : ContDiff β β g) (hf : ContDiff β β f) | |
| (hU : ContDiff β β U) (hV : ContDiff β β V) | |
| (hgpos : β p, 0 < g p) (hpos : β p, 0 < g p+f p) : | |
| ContDiff β β (fun p : β Γ (P Γ Plane) => | |
| backgroundField (fun x => g (p.2.1,x)) (fun x => f (p.2.1,x)) | |
| (fun x => U (p.2.1,x)) (fun x => V (p.2.1,x)) (p.1,p.2.2)) := by | |
| have hb : ContDiff β β Real.smoothTransition := Real.smoothTransition.contDiff | |
| have hΞ² : ContDiff β β (deriv Real.smoothTransition) := (contDiff_infty_iff_deriv.mp hb).2 | |
| have hd : ContDiff β β (fun p : β Γ (P Γ Plane) => | |
| g p.2 + Real.smoothTransition p.1 * f p.2) := | |
| (hg.comp contDiff_snd).add ((hb.comp contDiff_fst).mul (hf.comp contDiff_snd)) | |
| have hdpos (p : β Γ (P Γ Plane)) : 0 < g p.2 + Real.smoothTransition p.1 * f p.2 := | |
| backgroundDensity_positive (fun x => hgpos (p.2.1,x)) (fun x => hpos (p.2.1,x)) (p.1,p.2.2) | |
| exact (((hΞ².comp contDiff_fst).neg.mul (hV.comp contDiff_snd)).div hd (fun p => (hdpos p).ne')).prodMk | |
| (((hΞ².comp contDiff_fst).mul (hU.comp contDiff_snd)).div hd (fun p => (hdpos p).ne')) | |
| omit [NormedSpace β P] [FiniteDimensional β P] in | |
| theorem parametric_backgroundField_compact {g f U V : P Γ Plane β β} | |
| (hU : HasCompactSupport U) (hV : HasCompactSupport V) : | |
| HasCompactSupport (fun p : β Γ (P Γ Plane) => | |
| backgroundField (fun x => g (p.2.1,x)) (fun x => f (p.2.1,x)) | |
| (fun x => U (p.2.1,x)) (fun x => V (p.2.1,x)) (p.1,p.2.2)) := by | |
| apply HasCompactSupport.intro (smoothTransition_deriv_compact.prod (hU.union hV)) | |
| intro p hp | |
| have hn : p.1 β tsupport (deriv Real.smoothTransition) β¨ p.2 β tsupport U βͺ tsupport V := by | |
| simpa only [mem_prod,not_and_or] using hp | |
| rcases hn with ht | hx | |
| Β· simp [backgroundField,image_eq_zero_of_notMem_tsupport ht] | |
| Β· have hu : U p.2 = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (Or.inl h)) | |
| have hv : V p.2 = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (Or.inr h)) | |
| simp [backgroundField,hu,hv] | |
| theorem exists_parametric_relative_background_moser {ΞΉ : Type*} [Fintype ΞΉ] | |
| {g f : P Γ Plane β β} (hg : ContDiff β β g) (hf : ContDiff β β f) | |
| (hfc : HasCompactSupport f) (hf0 : β y, (β« p, f (y,p)) = 0) | |
| (hgpos : β p, 0 < g p) (hpos : β p, 0 < g p+f p) | |
| (R : ΞΉ β β) (hR : β i, 0 < R i) (hRi : Injective R) | |
| (hz : β i y, (β« p in roundDisk (R i), f (y,p)) = 0) : | |
| β Ξ¦ : P β Plane ββ Plane, | |
| ContDiff β β (fun p : P Γ Plane => Ξ¦ p.1 p.2) β§ | |
| ContDiff β β (fun p : P Γ Plane => (Ξ¦ p.1).symm p.2) β§ | |
| HasCompactSupport (fun p : P Γ Plane => Ξ¦ p.1 p.2-p.2) β§ | |
| (β y x v w, (g (y,Ξ¦ y x)+f (y,Ξ¦ y x)) * | |
| planarArea (fderiv β (Ξ¦ y) x v) (fderiv β (Ξ¦ y) x w) = g (y,x)*planarArea v w) β§ | |
| (β i y, Ξ¦ y '' closedRoundDisk (R i) = closedRoundDisk (R i)) β§ | |
| β y, (β x, f (y,x) = 0) β β x, Ξ¦ y x = x := by | |
| obtain β¨U,V,hU,hV,hUc,hVc,hcurl,htan,huvzeroβ© := | |
| exists_parametric_relative_primitive hf hfc hf0 R hR hRi hz | |
| let field : β Γ (P Γ Plane) β Plane := fun p => | |
| backgroundField (fun x => g (p.2.1,x)) (fun x => f (p.2.1,x)) | |
| (fun x => U (p.2.1,x)) (fun x => V (p.2.1,x)) (p.1,p.2.2) | |
| have hXs : ContDiff β β field := parametric_backgroundField_smooth hg hf hU hV hgpos hpos | |
| have hXc : HasCompactSupport field := parametric_backgroundField_compact hUc hVc | |
| obtain β¨L,hLβ© := ContDiff.lipschitzWith_of_hasCompactSupport hXc hXs (by simp) | |
| let X : C(β Γ (P Γ Plane),Plane) := β¨field,hXs.continuousβ© | |
| have hgy (y : P) : ContDiff β β (fun x => g (y,x)) := hg.comp (contDiff_const.prodMk contDiff_id) | |
| have hfy (y : P) : ContDiff β β (fun x => f (y,x)) := hf.comp (contDiff_const.prodMk contDiff_id) | |
| have hUy (y : P) : ContDiff β β (fun x => U (y,x)) := hU.comp (contDiff_const.prodMk contDiff_id) | |
| have hVy (y : P) : ContDiff β β (fun x => V (y,x)) := hV.comp (contDiff_const.prodMk contDiff_id) | |
| obtain β¨Ξ¦,hΞ¦,hΞ¦i,hΞ¦c,hΞ¦area,hΞ¦disk,hΞ¦fixβ© := exists_parametric_density_transport X hL hXs hXc | |
| (fun y => backgroundDensity (fun x => g (y,x)) (fun x => f (y,x))) | |
| (fun y => backgroundDensity_smooth (hgy y) (hfy y)) planarArea | |
| (fun y => backgroundField_transport (hgy y) (hfy y) (hUy y) (hVy y) | |
| (fun x => hgpos (y,x)) (fun x => hpos (y,x)) (hcurl y)) R hR | |
| (fun i y => backgroundField_tangent (g := fun x => g (y,x)) | |
| (f := fun x => f (y,x)) (htan i y)) 0 1 | |
| refine β¨Ξ¦,hΞ¦,hΞ¦i,hΞ¦c,?_,hΞ¦disk,?_β© | |
| Β· intro y x v w | |
| simpa only [zero_add,backgroundDensity,Real.smoothTransition.one,Real.smoothTransition.zero, | |
| one_mul,zero_mul,add_zero] using hΦarea y x v w | |
| Β· intro y hy x | |
| apply hΦfix y _ x | |
| intro t q | |
| obtain β¨hu,hvβ© := huvzero y hy q | |
| change backgroundField (fun x => g (y,x)) (fun x => f (y,x)) | |
| (fun x => U (y,x)) (fun x => V (y,x)) (t,q) = 0 | |
| simp only [backgroundField,hu,hv,mul_zero,zero_div] | |
| rfl | |
| end | |
| def radialDiskChart (R : β) : OpenPartialHomeomorph Plane Plane := | |
| (Complex.equivRealProdCLM.symm.toHomeomorph.toOpenPartialHomeomorph.trans | |
| (OpenPartialHomeomorph.univBall (0:β) R)).trans | |
| Complex.equivRealProdCLM.toHomeomorph.toOpenPartialHomeomorph | |
| theorem radialDiskChart_source (R : β) : (radialDiskChart R).source = univ := by | |
| simp only [radialDiskChart,OpenPartialHomeomorph.trans_source, | |
| Homeomorph.toOpenPartialHomeomorph_source,OpenPartialHomeomorph.univBall_source, | |
| preimage_univ,inter_self] | |
| theorem radialDiskChart_target {R : β} (hR : 0 < R) : | |
| (radialDiskChart R).target = roundDisk R := by | |
| simp only [radialDiskChart,OpenPartialHomeomorph.trans_target, | |
| Homeomorph.toOpenPartialHomeomorph_target,OpenPartialHomeomorph.univBall_target _ hR, | |
| preimage_univ,inter_univ,univ_inter] | |
| ext p | |
| simp only [mem_preimage,Metric.mem_ball,dist_zero_right] | |
| change βComplex.equivRealProdCLM.symm pβ < R β radiusSq p < R^2 | |
| rw [β complex_normSq_plane] | |
| exact (sq_lt_sqβ (norm_nonneg _) hR.le).symm | |
| theorem radialDiskChart_apply {R : β} (hR : 0 < R) (p : Plane) : | |
| radialDiskChart R p = (R / Real.sqrt (1+radiusSq p)) β’ p := by | |
| change Complex.equivRealProdCLM | |
| (OpenPartialHomeomorph.univBall (0:β) R (Complex.equivRealProdCLM.symm p)) = _ | |
| simp only [OpenPartialHomeomorph.univBall,dite_eq_left hR] | |
| change Complex.equivRealProdCLM | |
| (R β’ ((Real.sqrt (1+βComplex.equivRealProdCLM.symm pβ^2))β»ΒΉ β’ | |
| Complex.equivRealProdCLM.symm p) + 0) = _ | |
| rw [add_zero,map_smul,map_smul,ContinuousLinearEquiv.apply_symm_apply, | |
| complex_normSq_plane,smul_smul,div_eq_mul_inv] | |
| theorem radialDiskChart_smooth (R : β) : ContDiff β β (radialDiskChart R) := | |
| Complex.equivRealProdCLM.contDiff.comp | |
| (OpenPartialHomeomorph.contDiff_univBall.comp Complex.equivRealProdCLM.symm.contDiff) | |
| theorem radialDiskChart_symm_smooth {R : β} (hR : 0 < R) : | |
| ContDiffOn β β (radialDiskChart R).symm (roundDisk R) := by | |
| apply Complex.equivRealProdCLM.contDiff.comp_contDiffOn | |
| apply OpenPartialHomeomorph.contDiffOn_univBall_symm.comp | |
| Complex.equivRealProdCLM.symm.contDiff.contDiffOn | |
| intro p hp | |
| rw [Metric.mem_ball,dist_zero_right] | |
| have hs : βComplex.equivRealProdCLM.symm pβ^2 < R^2 := by | |
| rw [complex_normSq_plane] | |
| exact hp | |
| exact (sq_lt_sqβ (norm_nonneg _) hR.le).mp hs | |
| theorem radiusSq_nonneg (p : Plane) : 0 β€ radiusSq p := | |
| add_nonneg (sq_nonneg _) (sq_nonneg _) | |
| theorem radialDiskChart_fderiv {R : β} (hR : 0 < R) (p v : Plane) : | |
| fderiv β (radialDiskChart R) p v = | |
| (R / Real.sqrt (1+radiusSq p)) β’ v - | |
| (R / (Real.sqrt (1+radiusSq p))^3 * (p.1*v.1+p.2*v.2)) β’ p := by | |
| have hp : 0 < 1+radiusSq p := by have := radiusSq_nonneg p; linarith | |
| have hs : Real.sqrt (1+radiusSq p) β 0 := (Real.sqrt_pos.mpr hp).ne' | |
| have hq := (hasFDerivAt_fst (π := β) (p := p)).pow 2 | |
| have hr := (hasFDerivAt_snd (π := β) (p := p)).pow 2 | |
| have hd := HasFDerivAt.const_add 1 (hq.add hr) | |
| have hds := hd.sqrt hp.ne' | |
| have hdi := (hasDerivAt_inv hs).comp_hasFDerivAt p hds | |
| have hdc := hdi.const_mul R | |
| have he := hdc.smul (hasFDerivAt_id p) | |
| have hfun : (fun q : Plane => (R * (Real.sqrt (1+(q.1^2+q.2^2)))β»ΒΉ) β’ q) = | |
| radialDiskChart R := by | |
| funext q | |
| rw [radialDiskChart_apply hR] | |
| rfl | |
| change HasFDerivAt (fun q : Plane => (R * (Real.sqrt (1+(q.1^2+q.2^2)))β»ΒΉ) β’ q) _ p at he | |
| rw [hfun] at he | |
| rw [he.fderiv] | |
| ext <;> simp [add_apply,smul_apply,ContinuousLinearMap.smulRight_apply, | |
| Prod.smul_def,smul_eq_mul,radiusSq] <;> field_simp <;> ring | |
| def radialDiskDensity (R : β) (p : Plane) : β := R^2/(1+radiusSq p)^2 | |
| theorem radialDiskDensity_pos {R : β} (hR : 0 < R) (p : Plane) : | |
| 0 < radialDiskDensity R p := by | |
| exact div_pos (sq_pos_of_pos hR) (sq_pos_of_pos (by have := radiusSq_nonneg p; linarith)) | |
| theorem radialDiskDensity_smooth (R : β) : ContDiff β β (radialDiskDensity R) := by | |
| apply contDiff_const.div ((contDiff_const.add radiusSq_smooth).pow 2) | |
| intro p | |
| exact pow_ne_zero _ (by have := radiusSq_nonneg p; positivity) | |
| theorem planarArea_radial_rank_one (a b : β) (p v w : Plane) : | |
| planarArea (a β’ v - (b * (p.1*v.1+p.2*v.2)) β’ p) | |
| (a β’ w - (b * (p.1*w.1+p.2*w.2)) β’ p) = | |
| (a^2-a*b*radiusSq p)*planarArea v w := by | |
| change (a*v.1-b*(p.1*v.1+p.2*v.2)*p.1)*(a*w.2-b*(p.1*w.1+p.2*w.2)*p.2) - | |
| (a*v.2-b*(p.1*v.1+p.2*v.2)*p.2)*(a*w.1-b*(p.1*w.1+p.2*w.2)*p.1) = | |
| (a^2-a*b*(p.1^2+p.2^2))*(v.1*w.2-v.2*w.1) | |
| ring | |
| theorem radialDiskChart_area {R : β} (hR : 0 < R) (p v w : Plane) : | |
| planarArea (fderiv β (radialDiskChart R) p v) | |
| (fderiv β (radialDiskChart R) p w) = radialDiskDensity R p * planarArea v w := by | |
| rw [radialDiskChart_fderiv hR,radialDiskChart_fderiv hR,planarArea_radial_rank_one] | |
| congr 1 | |
| have hp : 0 < 1+radiusSq p := by have := radiusSq_nonneg p; linarith | |
| have hs : Real.sqrt (1+radiusSq p) β 0 := (Real.sqrt_pos.mpr hp).ne' | |
| have hs2 := Real.sq_sqrt hp.le | |
| unfold radialDiskDensity | |
| generalize Real.sqrt (1+radiusSq p) = s at * | |
| rw [show radiusSq p = s^2-1 by linarith] | |
| field_simp | |
| ring | |
| theorem radiusSq_smul (a : β) (p : Plane) : radiusSq (a β’ p) = a^2*radiusSq p := by | |
| change (a*p.1)^2+(a*p.2)^2 = a^2*(p.1^2+p.2^2) | |
| ring | |
| theorem radialDiskChart_radiusSq {R : β} (hR : 0 < R) (p : Plane) : | |
| radiusSq (radialDiskChart R p) = R^2*radiusSq p/(1+radiusSq p) := by | |
| rw [radialDiskChart_apply hR,radiusSq_smul,div_pow,Real.sq_sqrt] | |
| Β· ring | |
| Β· have := radiusSq_nonneg p | |
| linarith | |
| def diskChartRadius (R r : β) : β := r / Real.sqrt (R^2-r^2) | |
| theorem diskChartRadius_pos {R r : β} (hr : 0 < r) (hrR : r < R) : | |
| 0 < diskChartRadius R r := by | |
| apply div_pos hr | |
| apply Real.sqrt_pos.mpr | |
| nlinarith | |
| theorem radialDiskChart_closed_iff {R r : β} (hR : 0 < R) (hr : 0 β€ r) (hrR : r < R) | |
| (p : Plane) : radialDiskChart R p β closedRoundDisk r β | |
| p β closedRoundDisk (diskChartRadius R r) := by | |
| change radiusSq (radialDiskChart R p) β€ r^2 β radiusSq p β€ _ | |
| have hd : 0 < R^2-r^2 := by nlinarith | |
| have hp : 0 < 1+radiusSq p := by have := radiusSq_nonneg p; linarith | |
| rw [radialDiskChart_radiusSq hR,div_le_iffβ hp] | |
| change _ β radiusSq p β€ (r/Real.sqrt (R^2-r^2))^2 | |
| rw [div_pow,Real.sq_sqrt hd.le,le_div_iffβ hd] | |
| constructor <;> intro h <;> nlinarith | |
| theorem radialDiskChart_open_iff {R r : β} (hR : 0 < R) (hr : 0 β€ r) (hrR : r < R) | |
| (p : Plane) : radialDiskChart R p β roundDisk r β | |
| p β roundDisk (diskChartRadius R r) := by | |
| change radiusSq (radialDiskChart R p) < r^2 β radiusSq p < _ | |
| have hd : 0 < R^2-r^2 := by nlinarith | |
| have hp : 0 < 1+radiusSq p := by have := radiusSq_nonneg p; linarith | |
| rw [radialDiskChart_radiusSq hR,div_lt_iffβ hp] | |
| change _ β radiusSq p < (r/Real.sqrt (R^2-r^2))^2 | |
| rw [div_pow,Real.sq_sqrt hd.le,lt_div_iffβ hd] | |
| constructor <;> intro h <;> nlinarith | |
| theorem radialDiskChart_image_closed {R r : β} (hR : 0 < R) (hr : 0 β€ r) (hrR : r < R) : | |
| radialDiskChart R '' closedRoundDisk (diskChartRadius R r) = closedRoundDisk r := by | |
| ext p | |
| constructor | |
| Β· rintro β¨q,hq,rflβ© | |
| exact (radialDiskChart_closed_iff hR hr hrR q).mpr hq | |
| Β· intro hp | |
| have ht : p β (radialDiskChart R).target := by | |
| rw [radialDiskChart_target hR] | |
| change radiusSq p < R^2 | |
| change radiusSq p β€ r^2 at hp | |
| nlinarith | |
| refine β¨(radialDiskChart R).symm p,?_,(radialDiskChart R).right_inv htβ© | |
| apply (radialDiskChart_closed_iff hR hr hrR _).mp | |
| rw [(radialDiskChart R).right_inv ht] | |
| exact hp | |
| theorem radialDiskChart_image_open {R r : β} (hR : 0 < R) (hr : 0 β€ r) (hrR : r < R) : | |
| radialDiskChart R '' roundDisk (diskChartRadius R r) = roundDisk r := by | |
| ext p | |
| constructor | |
| Β· rintro β¨q,hq,rflβ© | |
| exact (radialDiskChart_open_iff hR hr hrR q).mpr hq | |
| Β· intro hp | |
| have ht : p β (radialDiskChart R).target := by | |
| rw [radialDiskChart_target hR] | |
| change radiusSq p < R^2 | |
| change radiusSq p < r^2 at hp | |
| nlinarith | |
| refine β¨(radialDiskChart R).symm p,?_,(radialDiskChart R).right_inv htβ© | |
| apply (radialDiskChart_open_iff hR hr hrR _).mp | |
| rw [(radialDiskChart R).right_inv ht] | |
| exact hp | |
| theorem diskChartRadius_strictMonoOn {R : β} (hR : 0 < R) : | |
| StrictMonoOn (diskChartRadius R) (Ico 0 R) := by | |
| intro r hr s hs hrs | |
| have hdr : 0 < R^2-r^2 := by nlinarith [hr.1,hr.2] | |
| have hds : 0 < R^2-s^2 := by nlinarith [hs.1,hs.2] | |
| have hnr : 0 β€ diskChartRadius R r := div_nonneg hr.1 (Real.sqrt_nonneg _) | |
| have hns : 0 β€ diskChartRadius R s := div_nonneg hs.1 (Real.sqrt_nonneg _) | |
| apply (sq_lt_sqβ hnr hns).mp | |
| change (r/Real.sqrt (R^2-r^2))^2 < (s/Real.sqrt (R^2-s^2))^2 | |
| rw [div_pow,div_pow,Real.sq_sqrt hdr.le,Real.sq_sqrt hds.le,div_lt_div_iffβ hdr hds] | |
| nlinarith [mul_pos (sq_pos_of_pos hR) (show 0 < s^2-r^2 by nlinarith [hr.1])] | |
| theorem planar_det (A : Plane βL[β] Plane) : | |
| A.det = planarArea (A (1,0)) (A (0,1)) := by | |
| let b : Module.Basis (Fin 2) β Plane := | |
| Module.Basis.ofEquivFun (LinearEquiv.finTwoArrow β β).symm | |
| change LinearMap.det A.toLinearMap = _ | |
| rw [β LinearMap.det_toMatrix b,Matrix.det_fin_two] | |
| simp [LinearMap.toMatrix_apply,b,Module.Basis.coe_ofEquivFun, | |
| LinearEquiv.finTwoArrow,planarArea_apply] | |
| ring | |
| theorem radialDiskChart_det {R : β} (hR : 0 < R) (p : Plane) : | |
| (fderiv β (radialDiskChart R) p).det = radialDiskDensity R p := by | |
| rw [planar_det,radialDiskChart_area hR] | |
| simp [planarArea_apply] | |
| theorem radialDiskChart_integral {R : β} (hR : 0 < R) (f : Plane β β) : | |
| (β« x in roundDisk R, f x) = β« x, radialDiskDensity R x*f (radialDiskChart R x) := by | |
| have he := integral_target_eq_integral_abs_det_fderiv_smul volume | |
| (f := radialDiskChart R) (f' := fderiv β (radialDiskChart R)) | |
| (fun x _ => (((radialDiskChart_smooth R).differentiable (by simp)) x).hasFDerivAt) f | |
| simpa only [radialDiskChart_target hR,radialDiskChart_source,setIntegral_univ, | |
| radialDiskChart_det hR,abs_of_pos (radialDiskDensity_pos hR _),smul_eq_mul] using he | |
| theorem radialDiskChart_integral_inner {R r : β} (hR : 0 < R) | |
| (hr : 0 β€ r) (hrR : r < R) (f : Plane β β) : | |
| (β« x in roundDisk r, f x) = β« x in roundDisk (diskChartRadius R r), | |
| radialDiskDensity R x*f (radialDiskChart R x) := by | |
| have hm : MeasurableSet (roundDisk (diskChartRadius R r)) := | |
| (isOpen_lt radiusSq_smooth.continuous continuous_const).measurableSet | |
| have hinj : InjOn (radialDiskChart R) (roundDisk (diskChartRadius R r)) := | |
| (radialDiskChart R).injOn.mono (by rw [radialDiskChart_source]; exact subset_univ _) | |
| have he := integral_image_eq_integral_abs_det_fderiv_smul volume hm | |
| (f' := fderiv β (radialDiskChart R)) | |
| (fun x _ => (((radialDiskChart_smooth R).differentiable (by simp)) x).hasFDerivAt.hasFDerivWithinAt) | |
| hinj f | |
| simpa only [radialDiskChart_image_open hR hr hrR,radialDiskChart_det hR, | |
| abs_of_pos (radialDiskDensity_pos hR _),smul_eq_mul] using he | |
| end PackingSufficiencySupport.Hamiltonian | |
| namespace PackingSufficiencySupport.Chart | |
| open scoped ContDiff Topology | |
| open Set Function | |
| variable {E F P : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| [NormedAddCommGroup P] [NormedSpace β P] | |
| def conjugate (c : OpenPartialHomeomorph E F) (Ο : E β E) (x : F) : F := by | |
| classical | |
| exact if x β c.target then c (Ο (c.symm x)) else x | |
| omit [NormedSpace β E] [NormedSpace β F] in | |
| theorem conjugate_of_mem (c : OpenPartialHomeomorph E F) (Ο : E β E) | |
| {x : F} (hx : x β c.target) : conjugate c Ο x = c (Ο (c.symm x)) := by | |
| simp [conjugate,hx] | |
| omit [NormedSpace β E] [NormedSpace β F] in | |
| theorem conjugate_of_notMem (c : OpenPartialHomeomorph E F) (Ο : E β E) | |
| {x : F} (hx : x β c.target) : conjugate c Ο x = x := by | |
| simp [conjugate,hx] | |
| omit [NormedSpace β E] [NormedSpace β F] in | |
| theorem conjugate_apply (c : OpenPartialHomeomorph E F) (hc : c.source = univ) | |
| (Ο : E β E) (x : E) : conjugate c Ο (c x) = c (Ο x) := by | |
| have hx : x β c.source := by rw [hc]; trivial | |
| rw [conjugate_of_mem c Ο (c.map_source hx),c.left_inv hx] | |
| omit [NormedSpace β E] [NormedSpace β F] in | |
| theorem conjugate_comp (c : OpenPartialHomeomorph E F) (hc : c.source = univ) | |
| (Ο Ο : E β E) (x : F) : | |
| conjugate c Ο (conjugate c Ο x) = conjugate c (Ο β Ο) x := by | |
| by_cases hx : x β c.target | |
| Β· rw [conjugate_of_mem c Ο hx,conjugate_apply c hc, | |
| conjugate_of_mem c (Ο β Ο) hx] | |
| rfl | |
| Β· simp only [conjugate_of_notMem c _ hx] | |
| omit [NormedSpace β E] [NormedSpace β F] in | |
| theorem conjugate_id (c : OpenPartialHomeomorph E F) (x : F) : | |
| conjugate c id x = x := by | |
| by_cases hx : x β c.target | |
| Β· rw [conjugate_of_mem c id hx] | |
| exact c.right_inv hx | |
| Β· exact conjugate_of_notMem c id hx | |
| def conjugateEquiv (c : OpenPartialHomeomorph E F) (hc : c.source = univ) | |
| (Ο : E β E) : F β F where | |
| toFun := conjugate c Ο | |
| invFun := conjugate c Ο.symm | |
| left_inv x := by | |
| rw [conjugate_comp c hc] | |
| have he : ((Ο.symm : E β E) β (Ο : E β E)) = id := funext Ο.symm_apply_apply | |
| rw [he,conjugate_id] | |
| right_inv x := by | |
| rw [conjugate_comp c hc] | |
| have he : ((Ο : E β E) β (Ο.symm : E β E)) = id := funext Ο.apply_symm_apply | |
| rw [he,conjugate_id] | |
| omit [NormedSpace β E] [NormedSpace β F] [NormedAddCommGroup P] [NormedSpace β P] in | |
| theorem conjugate_eq_of_notMem_image (c : OpenPartialHomeomorph E F) | |
| (Ο : P β E β E) {K : Set (P Γ E)} | |
| (hK : β p : P Γ E, p β K β Ο p.1 p.2 = p.2) | |
| {p : P Γ F} (hp : p β (fun q : P Γ E => (q.1,c q.2)) '' K) : | |
| conjugate c (Ο p.1) p.2 = p.2 := by | |
| by_cases hx : p.2 β c.target | |
| Β· rw [conjugate_of_mem c _ hx] | |
| have hq : (p.1,c.symm p.2) β K := by | |
| intro h | |
| apply hp | |
| exact β¨(p.1,c.symm p.2),h,by simp only [c.right_inv hx]β© | |
| rw [hK _ hq,c.right_inv hx] | |
| Β· exact conjugate_of_notMem c _ hx | |
| theorem conjugate_smooth_compact (c : OpenPartialHomeomorph E F) | |
| (hcs : c.source = univ) (hc : ContDiff β β c) | |
| (hci : ContDiffOn β β c.symm c.target) | |
| (Ο : P β E β E) (hΟ : ContDiff β β (fun p : P Γ E => Ο p.1 p.2)) | |
| (hΟc : HasCompactSupport (fun p : P Γ E => Ο p.1 p.2-p.2)) : | |
| ContDiff β β (fun p : P Γ F => conjugate c (Ο p.1) p.2) β§ | |
| HasCompactSupport (fun p : P Γ F => conjugate c (Ο p.1) p.2-p.2) β§ | |
| tsupport (fun p : P Γ F => conjugate c (Ο p.1) p.2-p.2) β | |
| (fun q : P Γ E => (q.1,c q.2)) '' tsupport (fun p : P Γ E => Ο p.1 p.2-p.2) := by | |
| let K : Set (P Γ F) := (fun q : P Γ E => (q.1,c q.2)) '' | |
| tsupport (fun p : P Γ E => Ο p.1 p.2-p.2) | |
| have hK : IsCompact K := hΟc.image (continuous_fst.prodMk (hc.continuous.comp continuous_snd)) | |
| have he (p : P Γ F) (hp : p β K) : conjugate c (Ο p.1) p.2 = p.2 := by | |
| apply conjugate_eq_of_notMem_image c Ο (K := tsupport (fun p : P Γ E => Ο p.1 p.2-p.2)) _ hp | |
| intro q hq | |
| exact sub_eq_zero.mp (image_eq_zero_of_notMem_tsupport (f := fun p : P Γ E => Ο p.1 p.2-p.2) hq) | |
| have hsupport : tsupport (fun p : P Γ F => conjugate c (Ο p.1) p.2-p.2) β K := by | |
| apply closure_minimal _ hK.isClosed | |
| intro p hp | |
| by_contra h | |
| exact hp (sub_eq_zero.mpr (he p h)) | |
| refine β¨?_,hK.of_isClosed_subset (isClosed_tsupport _) hsupport,hsupportβ© | |
| rw [contDiff_iff_contDiffAt] | |
| intro p | |
| by_cases hp : p.2 β c.target | |
| Β· have hi := (hci p.2 hp).contDiffAt (c.open_target.mem_nhds hp) | |
| have hd := hc.contDiffAt.comp p (hΟ.contDiffAt.comp p | |
| (contDiffAt_fst.prodMk (hi.comp p contDiffAt_snd))) | |
| apply hd.congr_of_eventuallyEq | |
| filter_upwards [(c.open_target.preimage continuous_snd).mem_nhds hp] with q hq | |
| exact conjugate_of_mem c _ hq | |
| Β· have hn : p β K := by | |
| rintro β¨q,hq,rflβ© | |
| exact hp (c.map_source (by rw [hcs]; trivial)) | |
| apply contDiffAt_snd.congr_of_eventuallyEq | |
| filter_upwards [hK.isClosed.isOpen_compl.mem_nhds hn] with q hq | |
| exact he q hq | |
| omit [NormedSpace β E] [NormedSpace β P] in | |
| theorem inverse_displacement_compact (Ο : P β E ββ E) | |
| (hΟ : HasCompactSupport (fun p : P Γ E => Ο p.1 p.2-p.2)) : | |
| HasCompactSupport (fun p : P Γ E => (Ο p.1).symm p.2-p.2) := by | |
| apply HasCompactSupport.intro hΟ | |
| intro p hp | |
| have he : Ο p.1 p.2 = p.2 := sub_eq_zero.mp (image_eq_zero_of_notMem_tsupport (f := fun p : P Γ E => Ο p.1 p.2-p.2) hp) | |
| rw [sub_eq_zero] | |
| apply (Ο p.1).injective | |
| rw [(Ο p.1).apply_symm_apply,he] | |
| def conjugateHomeomorph (c : OpenPartialHomeomorph E F) | |
| (hcs : c.source = univ) (hc : ContDiff β β c) | |
| (hci : ContDiffOn β β c.symm c.target) | |
| (Ο : E ββ E) (hΟ : ContDiff β β Ο) (hΟi : ContDiff β β Ο.symm) | |
| (hΟc : HasCompactSupport (fun p : E => Ο p-p)) : F ββ F where | |
| toEquiv := conjugateEquiv c hcs Ο.toEquiv | |
| continuous_toFun := by | |
| have hj : ContDiff β β (fun p : (Fin 0 β β) Γ E => Ο p.2) := hΟ.comp contDiff_snd | |
| have hk : HasCompactSupport (fun p : (Fin 0 β β) Γ E => Ο p.2-p.2) := by | |
| apply HasCompactSupport.intro ((isCompact_univ : IsCompact (univ : Set (Fin 0 β β))).prod hΟc) | |
| intro p hp | |
| exact image_eq_zero_of_notMem_tsupport (f := fun q : E => Ο q-q) | |
| (fun h => hp β¨mem_univ _,hβ©) | |
| have hs := (conjugate_smooth_compact c hcs hc hci (fun _ : Fin 0 β β => Ο) hj hk).1 | |
| exact (hs.comp ((contDiff_const (c := (0 : Fin 0 β β))).prodMk contDiff_id)).continuous | |
| continuous_invFun := by | |
| have hj : ContDiff β β (fun p : (Fin 0 β β) Γ E => Ο.symm p.2) := hΟi.comp contDiff_snd | |
| have hk : HasCompactSupport (fun p : (Fin 0 β β) Γ E => Ο p.2-p.2) := by | |
| apply HasCompactSupport.intro ((isCompact_univ : IsCompact (univ : Set (Fin 0 β β))).prod hΟc) | |
| intro p hp | |
| exact image_eq_zero_of_notMem_tsupport (f := fun q : E => Ο q-q) | |
| (fun h => hp β¨mem_univ _,hβ©) | |
| have hki := inverse_displacement_compact (fun _ : Fin 0 β β => Ο) hk | |
| have hs := (conjugate_smooth_compact c hcs hc hci (fun _ : Fin 0 β β => Ο.symm) hj hki).1 | |
| exact (hs.comp ((contDiff_const (c := (0 : Fin 0 β β))).prodMk contDiff_id)).continuous | |
| omit [NormedSpace β E] [NormedSpace β F] in | |
| theorem conjugate_image (c : OpenPartialHomeomorph E F) (hc : c.source = univ) | |
| (Ο : E β E) (A : Set E) : conjugate c Ο '' (c '' A) = c '' (Ο '' A) := by | |
| rw [image_image,image_image] | |
| apply image_congr | |
| intro x _ | |
| exact conjugate_apply c hc Ο x | |
| theorem conjugate_contDiffAt_of_mem (c : OpenPartialHomeomorph E F) | |
| (hc : ContDiff β β c) (hci : ContDiffOn β β c.symm c.target) | |
| (Ο : E β E) (hΟ : ContDiff β β Ο) {x : F} (hx : x β c.target) : | |
| ContDiffAt β β (conjugate c Ο) x := by | |
| have hi := (hci x hx).contDiffAt (c.open_target.mem_nhds hx) | |
| have hd := hc.contDiffAt.comp x (hΟ.contDiffAt.comp x hi) | |
| apply hd.congr_of_eventuallyEq | |
| filter_upwards [c.open_target.mem_nhds hx] with q hq | |
| exact conjugate_of_mem c Ο hq | |
| theorem chart_fderiv_right_inverse (c : OpenPartialHomeomorph E F) | |
| (hc : ContDiff β β c) (hci : ContDiffOn β β c.symm c.target) | |
| {x : F} (hx : x β c.target) (v : F) : | |
| fderiv β c (c.symm x) (fderiv β c.symm x v) = v := by | |
| have hi := ((hci x hx).contDiffAt (c.open_target.mem_nhds hx)).differentiableAt (by simp) | |
| have hd := ((hc.differentiable (by simp)) _).hasFDerivAt.comp x hi.hasFDerivAt | |
| have he : (id : F β F) =αΆ [π x] (c β c.symm) := by | |
| filter_upwards [c.open_target.mem_nhds hx] with q hq | |
| exact (c.right_inv hq).symm | |
| have hder := (hd.congr_of_eventuallyEq he).fderiv | |
| have hv := congrArg (fun L : F βL[β] F => L v) hder | |
| simpa only [fderiv_id,ContinuousLinearMap.id_apply,ContinuousLinearMap.comp_apply] using hv.symm | |
| theorem conjugate_fderiv_chart (c : OpenPartialHomeomorph E F) | |
| (hcs : c.source = univ) (hc : ContDiff β β c) | |
| (hci : ContDiffOn β β c.symm c.target) | |
| (Ο : E β E) (hΟ : ContDiff β β Ο) (x v : E) : | |
| fderiv β (conjugate c Ο) (c x) (fderiv β c x v) = | |
| fderiv β c (Ο x) (fderiv β Ο x v) := by | |
| have hx : c x β c.target := c.map_source (by rw [hcs]; trivial) | |
| have hd := (conjugate_contDiffAt_of_mem c hc hci Ο hΟ hx).differentiableAt (by simp) | |
| have hl := hd.hasFDerivAt.comp x (((hc.differentiable (by simp)) x).hasFDerivAt) | |
| have hr := (((hc.differentiable (by simp)) (Ο x)).hasFDerivAt).comp x | |
| (((hΟ.differentiable (by simp)) x).hasFDerivAt) | |
| have he : (conjugate c Ο β c) = (c β Ο) := funext (conjugate_apply c hcs Ο) | |
| rw [he] at hl | |
| have hder := hl.unique hr | |
| exact congrArg (fun L : E βL[β] F => L v) hder | |
| omit [NormedSpace β E] [NormedSpace β P] in | |
| theorem fiber_displacement_compact (Ο : P β E β E) | |
| (hΟ : HasCompactSupport (fun p : P Γ E => Ο p.1 p.2-p.2)) (y : P) : | |
| HasCompactSupport (fun p : E => Ο y p-p) := by | |
| apply HasCompactSupport.intro (hΟ.image continuous_snd) | |
| intro x hx | |
| exact image_eq_zero_of_notMem_tsupport (f := fun p : P Γ E => Ο p.1 p.2-p.2) | |
| (fun h => hx β¨(y,x),h,rflβ©) | |
| theorem exists_conjugate_family (c : OpenPartialHomeomorph E F) | |
| (hcs : c.source = univ) (hc : ContDiff β β c) | |
| (hci : ContDiffOn β β c.symm c.target) | |
| (Ξ¦ : P β E ββ E) (hΞ¦ : ContDiff β β (fun p : P Γ E => Ξ¦ p.1 p.2)) | |
| (hΞ¦i : ContDiff β β (fun p : P Γ E => (Ξ¦ p.1).symm p.2)) | |
| (hΦc : HasCompactSupport (fun p : P à E => Φ p.1 p.2-p.2)) : | |
| β Ξ¨ : P β F ββ F, | |
| (β y x, Ξ¨ y x = conjugate c (Ξ¦ y) x) β§ | |
| ContDiff β β (fun p : P Γ F => Ξ¨ p.1 p.2) β§ | |
| ContDiff β β (fun p : P Γ F => (Ξ¨ p.1).symm p.2) β§ | |
| HasCompactSupport (fun p : P Γ F => Ξ¨ p.1 p.2-p.2) β§ | |
| tsupport (fun p : P Γ F => Ξ¨ p.1 p.2-p.2) β | |
| univ ΓΛ’ c.target := by | |
| let Ξ¨ : P β F ββ F := fun y => conjugateHomeomorph c hcs hc hci (Ξ¦ y) | |
| (hΦ.comp (contDiff_const.prodMk contDiff_id)) | |
| (hΦi.comp (contDiff_const.prodMk contDiff_id)) | |
| (fiber_displacement_compact (fun y => Φ y) hΦc y) | |
| have hs := conjugate_smooth_compact c hcs hc hci (fun y => Φ y) hΦ hΦc | |
| have hsi := conjugate_smooth_compact c hcs hc hci (fun y => (Φ y).symm) hΦi | |
| (inverse_displacement_compact Φ hΦc) | |
| refine β¨Ξ¨,fun _ _ => rfl,hs.1,hsi.1,hs.2.1,?_β© | |
| intro p hp | |
| obtain β¨q,_,rflβ© := hs.2.2 hp | |
| exact β¨mem_univ _,c.map_source (by rw [hcs]; trivial)β© | |
| end PackingSufficiencySupport.Chart | |
| end | |
| end OAI | |
Outline
- theorem
exists_parametric_relative_primitive14 - theorem
parametric_backgroundField_smooth84 - theorem
parametric_backgroundField_compact102 - theorem
exists_parametric_relative_background_moser117 - def
radialDiskChart166 - theorem
radialDiskChart_source171 - theorem
radialDiskChart_target176 - theorem
radialDiskChart_apply187 - theorem
radialDiskChart_smooth198 - theorem
radialDiskChart_symm_smooth202 - theorem
radiusSq_nonneg214 - theorem
radialDiskChart_fderiv217 - def
radialDiskDensity241 - theorem
radialDiskDensity_pos243 - theorem
radialDiskDensity_smooth247 - theorem
planarArea_radial_rank_one252 - theorem
radialDiskChart_area261 - theorem
radiusSq_smul275 - theorem
radialDiskChart_radiusSq279 - def
diskChartRadius286 - theorem
diskChartRadius_pos288 - theorem
radialDiskChart_closed_iff294 - theorem
radialDiskChart_open_iff305 - theorem
radialDiskChart_image_closed316 - theorem
radialDiskChart_image_open333 - theorem
diskChartRadius_strictMonoOn350 - theorem
planar_det362 - theorem
radialDiskChart_det372 - theorem
radialDiskChart_integral377 - theorem
radialDiskChart_integral_inner385 - def
conjugate410 - theorem
conjugate_of_mem415 - theorem
conjugate_of_notMem420 - theorem
conjugate_apply425 - theorem
conjugate_comp431 - theorem
conjugate_id441 - def
conjugateEquiv448 - theorem
conjugate_eq_of_notMem_image463 - theorem
conjugate_smooth_compact477 - theorem
inverse_displacement_compact516 - def
conjugateHomeomorph526 - theorem
conjugate_image553 - theorem
conjugate_contDiffAt_of_mem560 - theorem
chart_fderiv_right_inverse570 - theorem
conjugate_fderiv_chart583 - theorem
fiber_displacement_compact600 - theorem
exists_conjugate_family608