Download data/lean/OAI/Geometry/BallPacking/BallMaps/SixCubicInnerNormalPacking.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 27.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/BallMaps/SixCubicInnerNormalPacking.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BallPacking/BallMaps/SixCubicInnerNormalPacking.lean
-
curl -L -o SixCubicInnerNormalPacking.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/BallMaps/SixCubicInnerNormalPacking.lean
27.8 kB
| import Mathlib | |
| import OAI.Geometry.BallPacking.BallMaps.SphereCartesianDescent | |
| namespace OAI | |
| noncomputable section | |
| namespace PackingSufficiencySupport.CubicModel | |
| open scoped ContDiff Manifold Topology BigOperators Pointwise | |
| open Set Function Filter Manifold MeasureTheory | |
| open DiagonalQuadrics DiagonalQuadrics.Explicit Hamiltonian FiniteMoment MomentPolytope | |
| open FiniteMoment.Radial | |
| theorem actual_six_cubic_inner_normal_packing {N : β} [Nonempty (Fin N)] | |
| (r r' : Fin N β β) (hr : β i,0<r i) (hr' : β i,0β€r' i) | |
| (hrr : β i,r' i<r i) {a : β} (ha : (1:β)/2<a) (ha1 : a<1) | |
| (hrs : β i,r i<1-(a:β)) (hvol : β i,r i^3<1-(a:β)^3) : | |
| β L A B D S : β,0<L β§ 0<A β§ 0<S β§ A<S β§ Aβ€B β§ Sβ€B β§ 3*B<D β§ 3*S<D β§ | |
| (D:β)=(L:β)*(2-(a:β)) β§ (S:β)=(L:β)*(1-(a:β)) β§ | |
| β hβ hβ : β, (β i,r i<hβ) β§ hβ<hβ β§ | |
| (hβ:β)<(A:β)/L β§ (hβ:β)<(B:β)/L β§ | |
| β β,β Ο : Fin N β Ambient 3 β BaseCurve Γ PlanePhase (Fin 2), | |
| (β i,FormNeighborhoodEmbedding (closedBall 3 (r' i)) (fun _ => successorStandardForm 2) | |
| (globalHorizontalCoupling phaseArea | |
| (physicalPrimitive (A := A) (B := B) D S (1/((L:β)*Real.pi)) L β planeMoments)) (Ο i)) β§ | |
| (β i,MapsTo (Ο i) (closedBall 3 (r' i)) | |
| (interior (cubicExhaustion β ΓΛ’ planeRegion sixModelBounds ![hβ,hβ]))) β§ | |
| Pairwise (fun i j => Disjoint (Ο i '' closedBall 3 (r' i)) (Ο j '' closedBall 3 (r' j))) := by | |
| have ha' : (1:β)/2<(a:β) := by | |
| have hh : (((1:β)/2:β):β)<(a:β) := Rat.cast_lt.mpr ha | |
| norm_num at hh β’ | |
| exact hh | |
| have ha1' : (a:β)<1 := by exact_mod_cast ha1 | |
| obtain β¨hβ,e,dβ,hβ,dβ,Ο,Ξ΅,hrh,hhe,hes,hsd,hdh,hhd,hdβ,hhβ,hhβ,hΟ,hΟ1,hΞ΅, | |
| _hcap,hconc,hmean,houterβ© := exists_six_model_comparison_data r hr ha' ha1' hrs hvol | |
| have hsd' : 1-a<dβ := by exact_mod_cast hsd | |
| have hdβ' : dβ<(2-a)/3 := by exact_mod_cast hdβ | |
| obtain β¨L,A,B,D,S,hL,hA,hS0,hAS,hAB,hSB,hB,hS,heA,heB,heD,heSβ© := | |
| exists_six_cubic_inner_weights ha ha1 | |
| (show 0<e by exact_mod_cast (hhβ.trans (show (hβ:β)<e by exact_mod_cast hhe))) | |
| (show e<1-a by exact_mod_cast hes) | |
| (hsd'.trans (hdh.trans hhd)) hdβ' | |
| have hLr : 0<(L:β) := Nat.cast_pos.mpr hL | |
| have hhβd : (hβ:β)<dβ := (show (hβ:β)<e by exact_mod_cast hhe).trans (hes.trans hsd) | |
| have hhβd : (hβ:β)<dβ := by exact_mod_cast hhd | |
| have hhββ : hβ<hβ := by | |
| have hh : (hβ:β)<hβ := hhβd.trans (show (dβ:β)<hβ by exact_mod_cast hdh) | |
| exact_mod_cast hh | |
| have hhββ' : (hβ:β)<hβ := by exact_mod_cast hhββ | |
| have hPS := physicalParameter_maps_six_region hL (show (hβ:β)<e by exact_mod_cast hhe) hhβd heA heB | |
| have harea := physicalArea_eq_sixModelDensity hL heD heS | |
| have hsimp i p (hp : β j,0β€p j) (ht : (β j,p j)β€r i) : | |
| pβregion sixModelBounds ![(hβ:β),(hβ:β)] := | |
| sixModelRegion_contains_cap (hrh i).le ((hrh i).trans hhββ').le β¨hp,htβ© | |
| have hface (i : Fin N) (p : Moments 2) (hp : β j,0β€p j) (ht : (β j,p j)β€r i) Ξ½ : | |
| (β j,sixModelBounds Ξ½ j*p j)β ![(hβ:β),(hβ:β)] Ξ½ := by | |
| have hs : p 0+p 1β€r i := by simpa only [Fin.sum_univ_two] using ht | |
| fin_cases Ξ½ | |
| Β· simp only [sixModelBounds,Fin.sum_univ_two] | |
| change 1*p 0+0*p 1β (hβ:β) | |
| exact ne_of_lt (by linarith [hp 1,hrh i]) | |
| Β· simp only [sixModelBounds,Fin.sum_univ_two] | |
| change 1*p 0+1*p 1β (hβ:β) | |
| exact ne_of_lt (by simpa only [one_mul] using hs.trans_lt ((hrh i).trans hhββ')) | |
| obtain β¨β,Ξ,_hΞ,he,Ο,hΟ,hm,hdβ© := actual_cubic_representative_packing hA hS0 hAB hSB hB hS | |
| (one_div_pos.mpr (mul_pos hLr Real.pi_pos)) sixModelBounds ![(hβ:β),(hβ:β)] | |
| sixModelBounds_nonneg (by intro Ξ½; fin_cases Ξ½; exact hhβ; exact hhβ) | |
| (sixModelRegion_isCompact hβ hβ) hPS r r' hr' hrr hsimp hface | |
| (by rw [harea]; exact hconc) | |
| (by rw [harea]; exact hmean) hΟ hΟ1 hΞ΅ | |
| (by rw [harea]; exact houter) | |
| refine β¨L,A,B,D,S,hL,hA,hS0,hAS,hAB,hSB,hB,hS,heD,heS,hβ,hβ,hrh,hhββ,?_,?_,β,Ο,?_,hm,hdβ© | |
| Β· rw [heA,mul_div_cancel_leftβ _ hLr.ne'] | |
| exact_mod_cast hhe | |
| Β· rw [heB,mul_div_cancel_leftβ _ hLr.ne'] | |
| exact hhβd | |
| Β· intro i | |
| exact (hΟ i).congr_target_near (fun x hx => interior_subset (hm i hx)) | |
| (physicalCoupling_representative_near hLr.le hPS he) | |
| theorem actual_six_cubic_inner_polynomial_packing_avoid_axes {N : β} [Nonempty (Fin N)] | |
| (r r' : Fin N β β) (hr : β i,0<r i) (hr' : β i,0β€r' i) | |
| (hrr : β i,r' i<r i) {a : β} (ha : (1:β)/2<a) (ha1 : a<1) | |
| (hrs : β i,r i<1-(a:β)) (hvol : β i,r i^3<1-(a:β)^3) : | |
| β L A B D S : β,0<L β§ 0<A β§ 0<S β§ A<S β§ Aβ€B β§ Sβ€B β§ 3*B<D β§ 3*S<D β§ | |
| (D:β)=(L:β)*(2-(a:β)) β§ (S:β)=(L:β)*(1-(a:β)) β§ | |
| β t : β,0<t β§ β f : Fin N β Ambient 3 β CubicAmbient, | |
| (β i,FormNeighborhoodEmbedding (closedBall 3 (r' i)) (fun _ => successorStandardForm 2) | |
| (cubicAmbientForm (A := A) (B := B) D S (1/((L:β)*Real.pi)) t) (f i)) β§ | |
| (β i,MapsTo (f i) (closedBall 3 (r' i)) cubicAffineDomain) β§ | |
| Pairwise (fun i j => Disjoint (f i '' closedBall 3 (r' i)) (f j '' closedBall 3 (r' j))) := by | |
| classical | |
| obtain β¨L,A,B,D,S,hL,hA,hS0,hAS,hAB,hSB,hB,hS,heD,heS,hβ,hβ,_hrh,_hhββ,hhβ,hhβ,β,Ο,hΟ,hm,hdβ© := | |
| actual_six_cubic_inner_normal_packing r r' hr hr' hrr ha ha1 hrs hvol | |
| have hLr : 0<(L:β) := Nat.cast_pos.mpr hL | |
| let K : Set CubicPhysicalSpace := β i,Ο i '' closedBall 3 (r' i) | |
| have hK : IsCompact K := by | |
| apply isCompact_iUnion | |
| intro i | |
| obtain β¨U,_hU,hKU,hs,_he,_hfβ© := hΟ i | |
| exact (closedBall_isCompact 3 (r' i)).image_of_continuousOn (hs.continuousOn.mono hKU) | |
| have hPS := physicalParameter_maps_six_region hL hhβ hhβ | |
| (show (A:β)=(L:β)*((A:β)/L) by field_simp) | |
| (show (B:β)=(L:β)*((B:β)/L) by field_simp) | |
| have hKd (p : CubicPhysicalSpace) (hp : pβK) : | |
| physicalParameter L (planeMoments p.2)βRadial.lowerTrapezoid A B := by | |
| obtain β¨i,x,hx,rflβ© := mem_iUnion.mp hp | |
| exact hPS (interior_subset (hm i hx)).2 | |
| have hinv (p : CubicPhysicalSpace) (hp : pβK) : | |
| (cubicPhysicalForm (A := A) (B := B) D S L p).IsInvertible := by | |
| obtain β¨i,x,hx,rflβ© := mem_iUnion.mp hp | |
| exact (hΟ i).target_invertible (complexSplitPhase 2).toLinearEquiv.finrank_eq hx | |
| (successorStandardForm_isInvertible 2) | |
| obtain β¨t,ht,g,W,hW,hKW,hg,hgemb,hgT,hgformβ© := | |
| exists_actual_cubic_normal_transfer_into hA hAB D S hLr hK hKd hinv | |
| cubicAffineDomain_isOpen inclusion_mem_cubicAffineDomain | |
| obtain β¨hf,hdjβ© := postcompose_form_packing (fun i => closedBall 3 (r' i)) | |
| (fun _ => successorStandardForm 2) (cubicPhysicalForm (A := A) (B := B) D S L) | |
| (cubicAmbientForm (A := A) (B := B) D S (1/((L:β)*Real.pi)) t) | |
| hW g hg.contMDiffOn hgemb hgform Ο hΟ | |
| (fun i x hx => hKW (mem_iUnion.mpr β¨i,x,hx,rflβ©)) hd | |
| exact β¨L,A,B,D,S,hL,hA,hS0,hAS,hAB,hSB,hB,hS,heD,heS,t,ht,fun i => g β Ο i,hf,fun i x hx => hgT (hKW (mem_iUnion.mpr β¨i,x,hx,rflβ©)),hdjβ© | |
| theorem actual_six_cubic_inner_polynomial_packing {N : β} [Nonempty (Fin N)] | |
| (r r' : Fin N β β) (hr : β i,0<r i) (hr' : β i,0β€r' i) | |
| (hrr : β i,r' i<r i) {a : β} (ha : (1:β)/2<a) (ha1 : a<1) | |
| (hrs : β i,r i<1-(a:β)) (hvol : β i,r i^3<1-(a:β)^3) : | |
| β L A B D S : β,0<L β§ 0<A β§ 0<S β§ A<S β§ Aβ€B β§ Sβ€B β§ 3*B<D β§ 3*S<D β§ | |
| (D:β)=(L:β)*(2-(a:β)) β§ (S:β)=(L:β)*(1-(a:β)) β§ | |
| β t : β,0<t β§ β f : Fin N β Ambient 3 β CubicAmbient, | |
| (β i,FormNeighborhoodEmbedding (closedBall 3 (r' i)) (fun _ => successorStandardForm 2) | |
| (cubicAmbientForm (A := A) (B := B) D S (1/((L:β)*Real.pi)) t) (f i)) β§ | |
| Pairwise (fun i j => Disjoint (f i '' closedBall 3 (r' i)) (f j '' closedBall 3 (r' j))) := by | |
| obtain β¨L,A,B,D,S,hL,hA,hS0,hAS,hAB,hSB,hB,hS,heD,heS,t,ht,f,hf,_hinto,hdβ© := | |
| actual_six_cubic_inner_polynomial_packing_avoid_axes r r' hr hr' hrr ha ha1 hrs hvol | |
| exact β¨L,A,B,D,S,hL,hA,hS0,hAS,hAB,hSB,hB,hS,heD,heS,t,ht,f,hf,hdβ© | |
| theorem actual_six_quadric_polynomial_packing {N : β} [Nonempty (Fin N)] | |
| (r r' : Fin N β β) (hr : β i,0<r i) (hr' : β i,0β€r' i) | |
| (hrr : β i,r' i<r i) {a : β} (ha : (1:β)/2<a) (ha1 : a<1) | |
| (hrs : β i,r i<1-(a:β)) (hvol : β i,r i^3<1-(a:β)^3) : | |
| β L A B S : β,0<L β§ 0<A β§ 0<S β§ A<S β§ Aβ€B β§ Sβ€B β§ 3*B<L+S β§ 2*S<L β§ | |
| (S:β)=(L:β)*(1-(a:β)) β§ | |
| β t Ξ΄ : β,0<t β§ 0<Ξ΄ β§ β f : Fin N β Ambient 3 β CubicAmbient, | |
| (β i,FormNeighborhoodEmbedding (closedBall 3 (r' i)) (fun _ => successorStandardForm 2) | |
| (outerAmbientForm (A := A) (B := B) L S (1/((L:β)*Real.pi)) t Ξ΄) (f i)) β§ | |
| (β i,β xβclosedBall 3 (r' i),(f i x).2β 0) β§ | |
| Pairwise (fun i j => Disjoint (f i '' closedBall 3 (r' i)) (f j '' closedBall 3 (r' j))) := by | |
| classical | |
| obtain β¨L,A,B,D,S,hL,hA,hS0,hAS,hAB,hSB,hB,_hS,heD,heS,t,ht,f,hf,hinto,hdβ© := | |
| actual_six_cubic_inner_polynomial_packing_avoid_axes r r' hr hr' hrr ha ha1 hrs hvol | |
| have hLr : 0<(L:β) := Nat.cast_pos.mpr hL | |
| have hDL : D=L+S := by | |
| apply Nat.cast_injective (R := β) | |
| push_cast | |
| rw [heD,heS] | |
| ring | |
| subst D | |
| have hSL : 2*S<L := by | |
| have har : (1:β)/2<(a:β) := by | |
| have hh : (((1:β)/2:β):β)<(a:β) := Rat.cast_lt.mpr ha | |
| norm_num at hh β’ | |
| exact hh | |
| have hrS : 2*(S:β)<(L:β) := by rw [heS]; nlinarith | |
| exact_mod_cast hrS | |
| let K : Set CubicAmbient := β i,f i '' closedBall 3 (r' i) | |
| have hK : IsCompact K := by | |
| apply isCompact_iUnion | |
| intro i | |
| obtain β¨U,_hU,hKU,hs,_he,_hfβ© := hf i | |
| exact (closedBall_isCompact 3 (r' i)).image_of_continuousOn (hs.continuousOn.mono hKU) | |
| have hKd : KβcubicAffineDomain := by | |
| intro p hp | |
| obtain β¨i,x,hx,rflβ© := mem_iUnion.mp hp | |
| exact hinto i hx | |
| have hdim : Module.finrank β (Ambient 3)=Module.finrank β CubicAmbient := by | |
| simp [Ambient,CubicAmbient,PlaneBase,Module.finrank_pi_fintype,Complex.finrank_real_complex] | |
| have hinv (p : CubicAmbient) (hp : pβK) : | |
| (cubicAmbientForm (A := A) (B := B) (L+S) S (1/((L:β)*Real.pi)) t p).IsInvertible := by | |
| obtain β¨i,x,hx,rflβ© := mem_iUnion.mp hp | |
| exact (hf i).target_invertible hdim hx (successorStandardForm_isInvertible 2) | |
| obtain β¨Ξ΄,hΞ΄,g,W,hW,hKW,hg,he,hgT,hgformβ© := | |
| exists_actual_outer_normal_transfer hAS hSL hB (1/((L:β)*Real.pi)) t hK hKd hinv | |
| obtain β¨hgΟ,hdjβ© := postcompose_form_packing (fun i => closedBall 3 (r' i)) | |
| (fun _ => successorStandardForm 2) | |
| (cubicAmbientForm (A := A) (B := B) (L+S) S (1/((L:β)*Real.pi)) t) | |
| (outerAmbientForm (A := A) (B := B) L S (1/((L:β)*Real.pi)) t Ξ΄) | |
| hW g hg.contMDiff.contMDiffOn he (by | |
| intro x hx v w | |
| have hh := hgform x hx v w | |
| simp only [mfderiv_eq_fderiv] | |
| convert! hh using 1) f hf | |
| (fun i x hx => hKW (mem_iUnion.mpr β¨i,x,hx,rflβ©)) hd | |
| exact β¨L,A,B,S,hL,hA,hS0,hAS,hAB,hSB,hB,hSL,heS,t,Ξ΄,ht,hΞ΄,fun i => g β f i, | |
| hgΟ,fun i x hx => hgT (f i x) (hKW (mem_iUnion.mpr β¨i,x,hx,rflβ©)),hdjβ© | |
| def cubicOuterBubbleForm {A B : β} (L S m p N : β) (t Ξ΄ c : β) (D : β β β) (Ξ΅ : β) := | |
| euclideanExteriorOneForm (cubicOuterBubblePrimitive (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅) | |
| theorem exists_uniform_outer_bubble_transfer {A B L S m p N : β} (hmp : m<p) (hN : 0<N) | |
| (t Ξ΄ c : β) {D : β β β} (hD : ContDiff β β D) (hD0 : (L:β)*D 0=1) | |
| {K : Set CubicAmbient} (hK : IsCompact K) | |
| (hinv : β xβK,(outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄ x).IsInvertible) | |
| {T : Set CubicAmbient} (hT : IsOpen T) (hKT : KβT) {Ξ· : β} (hΞ· : 0<Ξ·) : | |
| β Ο>0,Οβ€Ξ· β§ β Ξ΅βIoc (0:β) Ο,β g : CubicAmbient β CubicAmbient,β W, | |
| IsOpen W β§ KβW β§ ContDiff β β g β§ Topology.IsEmbedding (fun x : W => g x.val) β§ | |
| MapsTo g W T β§ β xβW,β v w, | |
| cubicOuterBubbleForm (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅ | |
| (g x) (fderiv β g x v) (fderiv β g x w)= | |
| outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄ x v w := by | |
| let Ξ := cubicOuterBubblePrimitive (A := A) (B := B) L S m p N t Ξ΄ c D | |
| have he0 (x : CubicAmbient) : manifoldExteriorOneForm (Ξ 0) x= | |
| outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄ x := by | |
| change manifoldExteriorOneForm (cubicOuterBubblePrimitive (A := A) (B := B) L S m p N t Ξ΄ c D 0) x=_ | |
| rw [cubicOuterBubblePrimitive_zero hmp hN t Ξ΄ c hD0,vector_exteriorOneForm] | |
| rfl | |
| have hid : ContMDiff ((π(β,β)).prod π(β,CubicAmbient)) π(β,CubicAmbient) β | |
| (fun a : βΓCubicAmbient => a.2) := contMDiff_snd | |
| obtain β¨Ο,hΟ,hΟΞ·,hallβ© := exists_uniform_compact_exact_fibre_embedding_central_into | |
| (cubicOuterBubblePrimitive_smooth_family (A := A) (B := B) L S m p N t Ξ΄ c hD) hK | |
| (by intro x hx; rw [he0]; exact hinv x hx) isOpen_univ (subset_univ K) hΞ· hid | |
| (fun _ _ => Topology.IsEmbedding.subtypeVal) hT hKT | |
| (fun Ξ΅ => cubicOuterBubbleForm (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅) (by | |
| intro Ξ΅ _ x _ | |
| apply ContinuousLinearMap.ext | |
| intro v | |
| apply ContinuousLinearMap.ext | |
| intro w | |
| simp only [manifoldMapDifferential,mfderiv_eq_fderiv,fderiv_fun_id, | |
| vector_exteriorOneForm,ContinuousLinearMap.bilinearComp_apply,ContinuousLinearMap.id_apply] | |
| rfl) | |
| refine β¨Ο,hΟ,hΟΞ·,?_β© | |
| intro Ξ΅ hΞ΅ | |
| obtain β¨g,W,hW,hKW,hg,he,hgT,hgfβ© := hall Ξ΅ hΞ΅ | |
| refine β¨g,W,hW,hKW,hg.contDiff,he,hgT,?_β© | |
| intro x hx v w | |
| have hh := hgf x hx v w | |
| rw [he0] at hh | |
| simp only [mfderiv_eq_fderiv] at hh | |
| convert! hh using 1 | |
| theorem outer_packing_uniform_bubble {A B L S m p N k : β} (hmp : m<p) (hN : 0<N) | |
| (t Ξ΄ c : β) {D : β β β} (hD : ContDiff β β D) (hD0 : (L:β)*D 0=1) | |
| (r : Fin k β β) (f : Fin k β Ambient 3 β CubicAmbient) | |
| (hf : β i,FormNeighborhoodEmbedding (closedBall 3 (r i)) (fun _ => successorStandardForm 2) | |
| (outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄) (f i)) | |
| (hinto : β i,β xβclosedBall 3 (r i),(f i x).2β 0) | |
| (hd : Pairwise (fun i j => Disjoint (f i '' closedBall 3 (r i)) (f j '' closedBall 3 (r j)))) | |
| {Ξ· : β} (hΞ· : 0<Ξ·) : | |
| β Ο>0,Οβ€Ξ· β§ β Ξ΅βIoc (0:β) Ο,β g : Fin k β Ambient 3 β CubicAmbient, | |
| (β i,FormNeighborhoodEmbedding (closedBall 3 (r i)) (fun _ => successorStandardForm 2) | |
| (cubicOuterBubbleForm (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅) (g i)) β§ | |
| (β i,β xβclosedBall 3 (r i),(g i x).2β 0) β§ | |
| Pairwise (fun i j => Disjoint (g i '' closedBall 3 (r i)) (g j '' closedBall 3 (r j))) := by | |
| let K : Set CubicAmbient := β i,f i '' closedBall 3 (r i) | |
| have hK : IsCompact K := by | |
| apply isCompact_iUnion | |
| intro i | |
| obtain β¨U,_hU,hKU,hs,_he,_hfβ© := hf i | |
| exact (closedBall_isCompact 3 (r i)).image_of_continuousOn (hs.continuousOn.mono hKU) | |
| have hKT : Kβ{x : CubicAmbient | x.2β 0} := by | |
| intro x hx | |
| obtain β¨i,y,hy,rflβ© := mem_iUnion.mp hx | |
| exact hinto i y hy | |
| have hdim : Module.finrank β (Ambient 3)=Module.finrank β CubicAmbient := by | |
| simp [Ambient,CubicAmbient,PlaneBase,Module.finrank_pi_fintype,Complex.finrank_real_complex] | |
| have hinv (x : CubicAmbient) (hx : xβK) : | |
| (outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄ x).IsInvertible := by | |
| obtain β¨i,y,hy,rflβ© := mem_iUnion.mp hx | |
| exact (hf i).target_invertible hdim hy (successorStandardForm_isInvertible 2) | |
| obtain β¨Ο,hΟ,hΟΞ·,hallβ© := exists_uniform_outer_bubble_transfer hmp hN t Ξ΄ c hD hD0 hK hinv | |
| (isOpen_ne_fun continuous_snd continuous_const) hKT hΞ· | |
| refine β¨Ο,hΟ,hΟΞ·,?_β© | |
| intro Ξ΅ hΞ΅ | |
| obtain β¨g,W,hW,hKW,hg,he,hgT,hgfβ© := hall Ξ΅ hΞ΅ | |
| obtain β¨hcomp,hdjβ© := postcompose_form_packing (fun i => closedBall 3 (r i)) | |
| (fun _ => successorStandardForm 2) | |
| (outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄) | |
| (cubicOuterBubbleForm (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅) | |
| hW g hg.contMDiff.contMDiffOn he (by | |
| intro x hx v w | |
| simp only [mfderiv_eq_fderiv] | |
| convert! hgf x hx v w using 1) f hf | |
| (fun i x hx => hKW (mem_iUnion.mpr β¨i,x,hx,rflβ©)) hd | |
| exact β¨fun i => g β f i,hcomp, | |
| fun i x hx => hgT (hKW (mem_iUnion.mpr β¨i,x,hx,rflβ©)),hdjβ© | |
| theorem outer_packing_uniform_bubble_into {A B L S m p N k : β} (hmp : m<p) (hN : 0<N) | |
| (t Ξ΄ c : β) {D : β β β} (hD : ContDiff β β D) (hD0 : (L:β)*D 0=1) | |
| {T : Set CubicAmbient} (hT : IsOpen T) | |
| (r : Fin k β β) (f : Fin k β Ambient 3 β CubicAmbient) | |
| (hf : β i,FormNeighborhoodEmbedding (closedBall 3 (r i)) (fun _ => successorStandardForm 2) | |
| (outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄) (f i)) | |
| (hinto : β i,MapsTo (f i) (closedBall 3 (r i)) T) | |
| (hd : Pairwise (fun i j => Disjoint (f i '' closedBall 3 (r i)) (f j '' closedBall 3 (r j)))) | |
| {Ξ· : β} (hΞ· : 0<Ξ·) : | |
| β Ο>0,Οβ€Ξ· β§ β Ξ΅βIoc (0:β) Ο,β g : Fin k β Ambient 3 β CubicAmbient, | |
| (β i,FormNeighborhoodEmbedding (closedBall 3 (r i)) (fun _ => successorStandardForm 2) | |
| (cubicOuterBubbleForm (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅) (g i)) β§ | |
| (β i,MapsTo (g i) (closedBall 3 (r i)) T) β§ | |
| Pairwise (fun i j => Disjoint (g i '' closedBall 3 (r i)) (g j '' closedBall 3 (r j))) := by | |
| let K : Set CubicAmbient := β i,f i '' closedBall 3 (r i) | |
| have hK : IsCompact K := by | |
| apply isCompact_iUnion | |
| intro i | |
| obtain β¨U,_hU,hKU,hs,_he,_hfβ© := hf i | |
| exact (closedBall_isCompact 3 (r i)).image_of_continuousOn (hs.continuousOn.mono hKU) | |
| have hKT : KβT := by | |
| intro x hx | |
| obtain β¨i,y,hy,rflβ© := mem_iUnion.mp hx | |
| exact hinto i hy | |
| have hdim : Module.finrank β (Ambient 3)=Module.finrank β CubicAmbient := by | |
| simp [Ambient,CubicAmbient,PlaneBase,Module.finrank_pi_fintype,Complex.finrank_real_complex] | |
| have hinv (x : CubicAmbient) (hx : xβK) : | |
| (outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄ x).IsInvertible := by | |
| obtain β¨i,y,hy,rflβ© := mem_iUnion.mp hx | |
| exact (hf i).target_invertible hdim hy (successorStandardForm_isInvertible 2) | |
| obtain β¨Ο,hΟ,hΟΞ·,hallβ© := exists_uniform_outer_bubble_transfer hmp hN t Ξ΄ c hD hD0 hK hinv | |
| hT hKT hΞ· | |
| refine β¨Ο,hΟ,hΟΞ·,?_β© | |
| intro Ξ΅ hΞ΅ | |
| obtain β¨g,W,hW,hKW,hg,he,hgT,hgfβ© := hall Ξ΅ hΞ΅ | |
| obtain β¨hcomp,hdjβ© := postcompose_form_packing (fun i => closedBall 3 (r i)) | |
| (fun _ => successorStandardForm 2) | |
| (outerAmbientForm (A := A) (B := B) L S (D 0*c) t Ξ΄) | |
| (cubicOuterBubbleForm (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅) | |
| hW g hg.contMDiff.contMDiffOn he (by | |
| intro x hx v w | |
| simp only [mfderiv_eq_fderiv] | |
| convert! hgf x hx v w using 1) f hf | |
| (fun i x hx => hKW (mem_iUnion.mpr β¨i,x,hx,rflβ©)) hd | |
| exact β¨fun i => g β f i,hcomp, | |
| fun i x hx => hgT (hKW (mem_iUnion.mpr β¨i,x,hx,rflβ©)),hdjβ© | |
| def firstToDistinguished (z : CubicAmbient) : Fin 3 β β := | |
| ![z.2β»ΒΉ,z.1.1/z.2,z.1.2/z.2] | |
| def distinguishedToFirst (z : Fin 3 β β) : CubicAmbient := | |
| ((z 1/z 0,z 2/z 0),(z 0)β»ΒΉ) | |
| theorem firstToDistinguished_smoothAt {z : CubicAmbient} (hz : z.2β 0) : | |
| ContDiffAt β β firstToDistinguished z := by | |
| have hC : ContDiffAt β β firstToDistinguished z := by | |
| apply contDiffAt_pi.mpr | |
| intro i | |
| fin_cases i | |
| Β· exact contDiffAt_snd.inv hz | |
| Β· exact contDiffAt_fst.fst.div contDiffAt_snd hz | |
| Β· exact contDiffAt_fst.snd.div contDiffAt_snd hz | |
| exact hC.restrict_scalars β | |
| theorem distinguishedToFirst_smoothAt {z : Fin 3 β β} (hz : z 0β 0) : | |
| ContDiffAt β β distinguishedToFirst z := by | |
| have h (i : Fin 3) : ContDiffAt β β (fun y : Fin 3 β β => y i) z := | |
| (contDiff_apply β β i).contDiffAt | |
| have hC : ContDiffAt β β distinguishedToFirst z := | |
| ((h 1 |>.div (h 0) hz).prodMk (h 2 |>.div (h 0) hz)).prodMk ((h 0).inv hz) | |
| exact hC.restrict_scalars β | |
| theorem distinguishedToFirst_first {z : CubicAmbient} (hz : z.2β 0) : | |
| distinguishedToFirst (firstToDistinguished z)=z := by | |
| rcases z with β¨β¨u,vβ©,wβ© | |
| change ((u/w/wβ»ΒΉ,v/w/wβ»ΒΉ),wβ»ΒΉβ»ΒΉ)=((u,v),w) | |
| simp [div_inv_eq_mul,hz] | |
| theorem firstToDistinguished_first {z : Fin 3 β β} (hz : z 0β 0) : | |
| firstToDistinguished (distinguishedToFirst z)=z := by | |
| ext i | |
| fin_cases i <;> simp [firstToDistinguished,distinguishedToFirst,div_inv_eq_mul,hz] | |
| def firstDistinguishedHomeomorph : | |
| {z : CubicAmbient // z.2β 0} ββ {z : Fin 3 β β // z 0β 0} where | |
| toFun z := β¨firstToDistinguished z.val,inv_ne_zero z.propertyβ© | |
| invFun z := β¨distinguishedToFirst z.val,inv_ne_zero z.propertyβ© | |
| left_inv z := Subtype.ext (distinguishedToFirst_first z.property) | |
| right_inv z := Subtype.ext (firstToDistinguished_first z.property) | |
| continuous_toFun := by | |
| apply Continuous.subtype_mk | |
| apply continuous_iff_continuousAt.mpr | |
| intro z | |
| exact (firstToDistinguished_smoothAt z.property).continuousAt.comp continuous_subtype_val.continuousAt | |
| continuous_invFun := by | |
| apply Continuous.subtype_mk | |
| apply continuous_iff_continuousAt.mpr | |
| intro z | |
| exact (distinguishedToFirst_smoothAt z.property).continuousAt.comp continuous_subtype_val.continuousAt | |
| theorem firstToDistinguished_isEmbedding : | |
| Topology.IsEmbedding (fun z : {z : CubicAmbient // z.2β 0} => firstToDistinguished z.val) := | |
| Topology.IsEmbedding.subtypeVal.comp firstDistinguishedHomeomorph.isEmbedding | |
| theorem firstToDistinguished_lift {z : CubicAmbient} (hz : z.2β 0) : | |
| complexAffineLift (firstToDistinguished z)=z.2β»ΒΉβ’firstBubbleLift z := by | |
| ext i | |
| rcases i with (_|i) | |
| Β· simp [complexAffineLift,firstBubbleLift,Pi.smul_apply,smul_eq_mul,hz] | |
| Β· fin_cases i <;> simp [complexAffineLift,firstBubbleLift,firstToDistinguished, | |
| Pi.smul_apply,smul_eq_mul,div_eq_mul_inv,mul_comm] | |
| theorem firstToDistinguished_lift_near {z : CubicAmbient} (hz : z.2β 0) : | |
| (fun y => complexAffineLift (firstToDistinguished y))=αΆ [π z] | |
| (fun y : CubicAmbient => y.2β»ΒΉβ’firstBubbleLift y) := by | |
| filter_upwards [(isOpen_ne_fun continuous_snd continuous_const).mem_nhds hz] with y hy | |
| exact firstToDistinguished_lift hy | |
| end PackingSufficiencySupport.CubicModel | |
| namespace PackingSufficiencySupport.Hamiltonian | |
| open scoped ContDiff Topology | |
| open Filter | |
| variable {ΞΉ ΞΊ : Type*} [Fintype ΞΉ] [Fintype ΞΊ] | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| theorem hopfCurvaturePullback_congr_near {F G : E β (ΞΉ β β)} {x : E} | |
| (h : F=αΆ [π x]G) (c : β) (v w : E) : | |
| hopfCurvaturePullback c F x v w=hopfCurvaturePullback c G x v w := by | |
| have hc : (fun y => complexCartesian (F y))=αΆ [π x](fun y => complexCartesian (G y)) := | |
| h.fun_comp complexCartesian | |
| unfold hopfCurvaturePullback | |
| rw [h.eq_of_nhds,hc.fderiv_eq] | |
| theorem degreeHopfCurvaturePullback_congr_near {P : (ΞΉ β β) β (ΞΊ β β)} | |
| {F G : E β (ΞΉ β β)} {x : E} (h : F=αΆ [π x]G) (q c d : β) (v w : E) : | |
| degreeHopfCurvaturePullback q P c d F x v w=degreeHopfCurvaturePullback q P c d G x v w := by | |
| unfold degreeHopfCurvaturePullback | |
| rw [hopfCurvaturePullback_congr_near h] | |
| exact congrArg (fun u : β => (1-q*d)*hopfCurvaturePullback c G x v w+d*u) | |
| (hopfCurvaturePullback_congr_near (h.fun_comp P) c v w) | |
| theorem homogeneousMixedPrimitive_exterior {P : (ΞΉ β β) β (ΞΊ β β)} | |
| (hP : ContDiff β β P) {F : E β (ΞΉ β β)} (hF : ContDiff β β F) | |
| {x : E} (hx : complexCartesian (F x)β 0) (hPx : complexCartesian (P (F x))β 0) | |
| (q c d : β) (v w : E) : | |
| euclideanExteriorOneForm ((1-q*d)β’primitivePullback (hopfPrimitive c) (complexCartesian β F)+ | |
| dβ’primitivePullback (hopfPrimitive c) (complexCartesian β P β F)) x v w= | |
| degreeHopfCurvaturePullback q P c d F x v w := by | |
| have hFC := complexCartesian.contDiff.comp hF | |
| have hPC := complexCartesian.contDiff.comp (hP.comp hF) | |
| have hΞ± := primitivePullback_smoothAt (g := complexCartesian β F) (hopfPrimitive_smoothAt c hx) hFC.contDiffAt | |
| have hΞ² := primitivePullback_smoothAt (g := complexCartesian β P β F) (hopfPrimitive_smoothAt c hPx) hPC.contDiffAt | |
| erw [euclideanExteriorOneForm_add ((hΞ±.differentiableAt (by simp)).const_smul (1-q*d)) | |
| ((hΞ².differentiableAt (by simp)).const_smul d), | |
| euclideanExteriorOneForm_smul (1-q*d) (hΞ±.differentiableAt (by simp)), | |
| euclideanExteriorOneForm_smul d (hΞ².differentiableAt (by simp)), | |
| primitivePullback_exteriorAt (g := complexCartesian β F) (hopfPrimitive_smoothAt c hx) hFC.contDiffAt, | |
| primitivePullback_exteriorAt (g := complexCartesian β P β F) (hopfPrimitive_smoothAt c hPx) hPC.contDiffAt] | |
| rfl | |
| end PackingSufficiencySupport.Hamiltonian | |
| namespace PackingSufficiencySupport.CubicModel | |
| open scoped ContDiff Topology | |
| open DiagonalQuadrics DiagonalQuadrics.Explicit Hamiltonian FiniteMoment FiniteMoment.Radial | |
| theorem cubicOuterBubbleForm_homogeneous {A B : β} (L S m p N : β) (t Ξ΄ c : β) | |
| (D : β β β) (Ξ΅ : β) (z v w : CubicAmbient) : | |
| cubicOuterBubbleForm (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅ z v w= | |
| degreeHopfCurvaturePullback (L:β) | |
| (cubicBubblePolynomial (A := A) (B := B) L S m p N t Ξ΄ Ξ΅) c (D Ξ΅) firstBubbleLift z v w := by | |
| have hzn : complexCartesian (firstBubbleLift z)β 0 := by | |
| intro h | |
| exact firstBubbleLift_nonzero z (complexCartesian.injective (h.trans (map_zero _).symm)) | |
| exact homogeneousMixedPrimitive_exterior (cubicBubblePolynomial_real_smooth t Ξ΄ Ξ΅) | |
| (firstBubbleLift_smooth.restrict_scalars β) hzn | |
| (cubicOuterBubble_nonzero L S m p N t Ξ΄ Ξ΅ z) (L:β) c (D Ξ΅) v w | |
| theorem firstToDistinguished_curvature {L S A B m p N : β} | |
| (hAS : A<S) (hS : 2*S<L) (hB : 3*B<L+S) (hm : mβ€L) (t Ξ΄ c : β) | |
| (D : β β β) {Ξ΅ : β} (hΞ΅ : Ξ΅β 0) {z : CubicAmbient} (hz : z.2β 0) (v w : CubicAmbient) : | |
| degreeAffineForm (L:β) (cubicBubblePolynomial (A := A) (B := B) L S m p N t Ξ΄ Ξ΅) c (D Ξ΅) | |
| (firstToDistinguished z) (fderiv β firstToDistinguished z v) (fderiv β firstToDistinguished z w)= | |
| cubicOuterBubbleForm (A := A) (B := B) L S m p N t Ξ΄ c D Ξ΅ z v w := by | |
| have hP := cubicBubblePolynomial_real_smooth (L := L) (S := S) (A := A) (B := B) (m := m) (p := p) (N := N) t Ξ΄ Ξ΅ | |
| rw [degreeAffineForm_pullback hP ((firstToDistinguished_smoothAt hz).differentiableAt (by simp)), | |
| cubicOuterBubbleForm_homogeneous] | |
| have hlocal := degreeHopfCurvaturePullback_congr_near | |
| (P := cubicBubblePolynomial (A := A) (B := B) L S m p N t Ξ΄ Ξ΅) | |
| (firstToDistinguished_lift_near hz) (L:β) c (D Ξ΅) v w | |
| exact hlocal.trans (degreeHopfCurvaturePullback_gauge hP | |
| (fun x hx => cubicBubblePolynomial_nonzero L S m p N t Ξ΄ (Complex.ofReal_ne_zero.mpr hΞ΅) hx) | |
| (cubicBubblePolynomial_homogeneous hAS hS hB hm p N t Ξ΄ Ξ΅) | |
| ((differentiableAt_snd (π := β)).inv hz) | |
| ((firstBubbleLift_smooth.restrict_scalars β).differentiable (by simp) z) | |
| (inv_ne_zero hz) (firstBubbleLift_nonzero z) c (D Ξ΅) v w) | |
| end PackingSufficiencySupport.CubicModel | |
| end | |
| end OAI | |