Download data/lean/OAI/Geometry/Cannon/Energy/SquareMap.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.58 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Cannon/Energy/SquareMap.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Cannon/Energy/SquareMap.lean
-
curl -L -o SquareMap.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Cannon/Energy/SquareMap.lean
5.58 kB
| import Mathlib | |
| import OAI.Geometry.Cannon.Energy.RawFunction | |
| import OAI.Geometry.Cannon.Energy.StripCrossing | |
| import OAI.Geometry.Cannon.Modulus.ModulusEnergy | |
| namespace OAI | |
| section | |
| section | |
| section | |
| noncomputable section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| open Set Topology | |
| open Set Topology Filter Metric unitInterval | |
| open scoped InnerProductSpace | |
| open Set unitInterval | |
| open Set Metric Topology | |
| open Set Topology unitInterval | |
| namespace CannonCharts | |
| open CannonCells | |
| theorem rectangle_modulus_localization {X : Type*} [MetricSpace X] [CompactSpace X] | |
| (Ο : X ββ SphereTwo) (d : β) (hd : 0 < d) | |
| (ΞΉ : β β Type*) [β n, Fintype (ΞΉ n)] | |
| (C : (n : β) β ΞΉ n β Set X) (hC : β n x, β i, x β C n i) : | |
| β e : Plane β X, IsOpenEmbedding e β§ diam (e '' box 8) < d β§ | |
| β c : β, 0 < c β§ β N : β β β, StrictMono N β§ β n, | |
| c * modulus (C (N n)) (macroFamily (X := X) d) β€ | |
| modulus (C (N n)) (stripFamily e) := by | |
| classical | |
| obtain β¨J,e,hJ,he,hdiam,hsubβ© := finite_strip_localization Ο d hd | |
| let : Nonempty J := hJ.coe_sort | |
| let H := fun j : J Γ Fin 4 => stripFamily (e j) | |
| let K : β := (Fintype.card (J Γ Fin 4) : β)^2 | |
| have hK : 0 < K := pow_pos (by exact_mod_cast Fintype.card_pos) _ | |
| have hlocal (n : β) : β j : J Γ Fin 4, | |
| modulus (C n) (macroFamily (X := X) d) β€ K*modulus (C n) (H j) := by | |
| exact exists_modulus_localization (C n) (hC n) (macroFamily d) H | |
| (fun j => stripFamily_nonempty (e j)) | |
| (fun _ _ h => stripFamily_member_nonempty h) hsub | |
| obtain β¨j,N,hN,hNjβ© := fixed_localization_subsequence | |
| (fun n => modulus (C n) (macroFamily (X := X) d)) | |
| (fun j n => modulus (C n) (H j)) K hlocal | |
| refine β¨e j,he j,hdiam j,Kβ»ΒΉ,inv_pos.mpr hK,N,hN,?_β© | |
| intro n | |
| calc | |
| Kβ»ΒΉ * modulus (C (N n)) (macroFamily d) β€ | |
| Kβ»ΒΉ * (K * modulus (C (N n)) (H j)) := | |
| mul_le_mul_of_nonneg_left (hNj n) (inv_nonneg.mpr hK.le) | |
| _ = modulus (C (N n)) (stripFamily (e j)) := by rw [β mul_assoc,inv_mul_cancelβ hK.ne',one_mul] | |
| end CannonCharts | |
| namespace CannonCharts | |
| def squareMap (z : CannonGrid.Square) : Plane := (1+(z.1:β),12*(z.2:β)-6) | |
| lemma continuous_squareMap : Continuous squareMap := by | |
| unfold squareMap | |
| fun_prop | |
| lemma squareMap_injective : Function.Injective squareMap := by | |
| intro z w h | |
| have hx := congrArg Prod.fst h | |
| have hy := congrArg Prod.snd h | |
| apply Prod.ext | |
| Β· apply Subtype.ext | |
| dsimp [squareMap] at hx | |
| linarith | |
| Β· apply Subtype.ext | |
| dsimp [squareMap] at hy | |
| linarith | |
| lemma squareMap_embedding : IsEmbedding squareMap := | |
| (continuous_squareMap.isClosedEmbedding squareMap_injective).isEmbedding | |
| lemma squareMap_in_box (z : CannonGrid.Square) : | |
| squareMap z β Metric.closedBall 0 8 := by | |
| simp only [Metric.mem_closedBall,dist_zero_right,Prod.norm_def,Real.norm_eq_abs, | |
| max_le_iff,abs_le,squareMap] | |
| constructor <;> constructor <;> nlinarith [z.1.property.1,z.1.property.2,z.2.property.1,z.2.property.2] | |
| theorem lift_strip_crossing (q : I β Plane) (hq : StripCrossing q) : | |
| β u v : CannonRectangle.Middle, u.val.1 = 0 β§ v.val.1 = 1 β§ | |
| β p : Path u v, β t, squareMap (p t).val = q t := by | |
| let m : I β CannonRectangle.Middle := fun t => | |
| β¨(β¨(q t).1-1,by constructor <;> linarith [(hq.2.2.2 t).1.1,(hq.2.2.2 t).1.2]β©, | |
| β¨((q t).2+6)/12,by | |
| have hy := abs_le.mp (hq.2.2.2 t).2 | |
| constructor <;> linarith [hy.1,hy.2]β©),by | |
| have hy := abs_le.mp (hq.2.2.2 t).2 | |
| change ((q t).2+6)/12 β Icc (1/3:β) (2/3) | |
| constructor <;> linarith [hy.1,hy.2]β© | |
| have hqc : Continuous q := hq.1 | |
| have hm : Continuous m := by dsimp [m]; fun_prop | |
| let p : Path (m 0) (m 1) := β¨β¨m,hmβ©,rfl,rflβ© | |
| refine β¨m 0,m 1,?_,?_,p,?_β© | |
| Β· apply Subtype.ext | |
| change (q 0).1-1 = 0 | |
| rw [hq.2.1]; norm_num | |
| Β· apply Subtype.ext | |
| change (q 1).1-1 = 1 | |
| rw [hq.2.2.1]; norm_num | |
| Β· intro t | |
| apply Prod.ext <;> dsimp [squareMap,p,m] <;> ring | |
| theorem stripFamily_eq_image {X : Type*} (e : Plane β X) : | |
| stripFamily e = {A | β B β CannonRectangle.leftRight, A = (e β squareMap) '' B} := by | |
| ext A | |
| constructor | |
| Β· rintro β¨q,hq,rflβ© | |
| obtain β¨u,v,hu,hv,p,hpβ© := lift_strip_crossing q hq | |
| refine β¨Subtype.val '' range p,β¨u,v,hu,hv,p,rflβ©,?_β© | |
| ext x | |
| constructor | |
| Β· rintro β¨t,rflβ© | |
| exact β¨(p t).val,β¨p t,β¨t,rflβ©,rflβ©,by dsimp; rw [hp]β© | |
| Β· rintro β¨z,β¨m,β¨t,rflβ©,rflβ©,rflβ© | |
| exact β¨t,by dsimp; rw [hp]β© | |
| Β· rintro β¨B,β¨u,v,hu,hv,p,rflβ©,rflβ© | |
| let q : I β Plane := fun t => squareMap (p t).val | |
| have hq : Continuous q := continuous_squareMap.comp (continuous_subtype_val.comp p.continuous) | |
| refine β¨q,β¨hq,?_,?_,?_β©,?_β© | |
| Β· change 1+((p 0).val.1:β) = 1 | |
| rw [p.source,hu] | |
| norm_num | |
| Β· change 1+((p 1).val.1:β) = 2 | |
| rw [p.target,hv] | |
| norm_num | |
| Β· intro t | |
| have hy := (p t).property | |
| change ((p t).val.2:β) β Icc (1/3:β) (2/3) at hy | |
| change 1+((p t).val.1:β) β Icc 1 2 β§ |12*((p t).val.2:β)-6| β€ 2 | |
| constructor | |
| Β· constructor <;> nlinarith [(p t).val.1.property.1,(p t).val.1.property.2] | |
| Β· rw [abs_le] | |
| constructor <;> linarith [hy.1,hy.2] | |
| Β· ext x | |
| constructor | |
| Β· rintro β¨_,β¨_,β¨t,rflβ©,rflβ©,rflβ© | |
| exact β¨t,rflβ© | |
| Β· rintro β¨t,rflβ© | |
| exact β¨(p t).val,β¨p t,β¨t,rflβ©,rflβ©,rflβ© | |
| end CannonCharts | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end OAI | |