Download data/lean/OAI/GroupTheory/SimpleAmenable/PolygonGeometry/FarClippingGeometry.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.92 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/GroupTheory/SimpleAmenable/PolygonGeometry/FarClippingGeometry.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/GroupTheory/SimpleAmenable/PolygonGeometry/FarClippingGeometry.lean
-
curl -L -o FarClippingGeometry.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/GroupTheory/SimpleAmenable/PolygonGeometry/FarClippingGeometry.lean
5.92 kB
Lean 4 Β· 5
declarations fullstatements
| import Mathlib | |
| import OAI.GroupTheory.SimpleAmenable.PolygonGeometry.FinePatchAtlas | |
| namespace OAI | |
| section | |
| section | |
| open scoped symmDiff | |
| namespace SimpleAmenable | |
| open scoped commutatorElement | |
| open scoped commutatorElement | |
| section FarClippingGeometry | |
| theorem windowRectangle_clipping_chart_at_lift {a : β} (r : CutRing) | |
| (n : β) (hn : 201β€n) (q : Fin 2 β β€) (cell : Fin 2 β Fin n) | |
| (hb : β d, q dβ€endpointLabel (-r) β§ endpointLabel (-r)<q d+n) | |
| (he : β d, q dβ€endpointLabel r β§ endpointLabel r<q d+n) | |
| (p : GenericSquare a) (hp : p β (windowRectangle a n q cell).val) | |
| (z : β Γ β) (hz : p.val=(Int.fract z.1,Int.fract z.2)) | |
| (hclip : β d, -ordinary rβ€realCoordinate z d β§ realCoordinate z d<ordinary r) : | |
| β k : Fin 2 β β€, | |
| (β d, -ordinary rβ€ordinary (windowCut n (q d) (cell d).castSucc)+(k d:β) β§ | |
| ordinary (windowCut n (q d) (cell d).succ)+(k d:β)β€ordinary r) β§ | |
| windowPlanarLift q p+((k 0:β),(k 1:β))=z := by | |
| have hs := windowPlanarLift_spec q p | |
| have hd (d : Fin 2) : β k : β€, realCoordinate z d-realCoordinate (windowPlanarLift q p) d=(k:β) := by | |
| apply Int.fract_eq_fract.mp | |
| fin_cases d | |
| Β· exact (congrArg Prod.fst hz).symm.trans (congrArg Prod.fst hs) | |
| Β· exact (congrArg Prod.snd hz).symm.trans (congrArg Prod.snd hs) | |
| choose k hk using hd | |
| refine β¨k,?_,?_β© | |
| Β· intro d | |
| have h := window_cell_enclosure n (q d) (cell d) (-r) r (hb d) (he d) | |
| (realCoordinate (windowPlanarLift q p) d) (k d) | |
| ((windowRectangle_mem n hn q cell p).mp hp d) | |
| (by simp only [map_neg]; constructor <;> linarith [(hk d),(hclip d).1,(hclip d).2]) | |
| simpa only [map_neg] using h | |
| Β· apply Prod.ext | |
| Β· change (windowPlanarLift q p).1+(k 0:β)=z.1 | |
| have h := hk 0 | |
| change z.1-(windowPlanarLift q p).1=(k 0:β) at h | |
| linarith | |
| Β· change (windowPlanarLift q p).2+(k 1:β)=z.2 | |
| have h := hk 1 | |
| change z.2-(windowPlanarLift q p).2=(k 1:β) at h | |
| linarith | |
| theorem far_cut_neighborhood (a : β) (j : Fin 4) (z : β Γ β) (c R E : β) | |
| (hR : 0<R) (hE : E<R/4) (hfar : Rβ€|cutForm a j z-c|) : | |
| β Ξ΄ : β, 0<Ξ΄ β§ β p : β Γ β, dist p z<Ξ΄ β | |
| E < |cutForm a j p-c| β§ (0β€cutForm a j p-c β c<cutForm a j z) := by | |
| let K := 1+|ordinary (cutTau^a)| | |
| have hK : 0<K := by dsimp [K]; positivity | |
| refine β¨R/(4*K),by positivity,?_β© | |
| intro p hp | |
| have hdist : K*dist p z<R/4 := by | |
| have hh := (lt_div_iffβ (by positivity : 0<4*K)).mp hp | |
| nlinarith | |
| have hd : |cutForm a j p-cutForm a j z|<R/4 := | |
| (cutForm_dist_bound a j p z).trans_lt hdist | |
| rcases le_total c (cutForm a j z) with hz | hz | |
| Β· rw [abs_of_nonneg (sub_nonneg.mpr hz)] at hfar | |
| have hs : 0<cutForm a j p-c := by linarith [(abs_lt.mp hd).1] | |
| refine β¨?_,iff_of_true hs.le (by linarith)β© | |
| rw [abs_of_pos hs] | |
| linarith [(abs_lt.mp hd).1] | |
| Β· rw [abs_of_nonpos (sub_nonpos.mpr hz)] at hfar | |
| have hs : cutForm a j p-c<0 := by linarith [(abs_lt.mp hd).2] | |
| refine β¨?_,iff_of_false (not_le_of_gt hs) (not_lt_of_ge hz)β© | |
| rw [abs_of_neg hs] | |
| linarith [(abs_lt.mp hd).2] | |
| end FarClippingGeometry | |
| section WindowBoxDichotomy | |
| theorem windowRectangle_le_clipping_box {a : β} (r : CutRing) | |
| (hr : 0<ordinary r β§ ordinary r<1/2) | |
| (n : β) (hn : 201β€n) (q : Fin 2 β β€) (cell : Fin 2 β Fin n) | |
| (k : Fin 2 β β€) | |
| (hk : β d, -ordinary rβ€ordinary (windowCut n (q d) (cell d).castSucc)+(k d:β) β§ | |
| ordinary (windowCut n (q d) (cell d).succ)+(k d:β)β€ordinary r) : | |
| windowRectangle a n q cell β€ coordinateRectangle a (fun _ => -r) (fun _ => r) := by | |
| intro p hp | |
| have hb (d : Fin 2) : p β coordinateBetween a d (-r) r := by | |
| apply (mem_coordinateBetween_iff d (-r) r (by rw [map_neg]; linarith [hr.1]) | |
| (by rw [map_neg]; linarith [hr.2]) p).mpr | |
| refine β¨k d-βcoordinate d p-ordinary ((q d:CutRing)*cutTau)β,?_β© | |
| have hh := (windowRectangle_mem n hn q cell p).mp hp d | |
| simp only [windowPlanarLift_coordinate,liftedCoordinate] at hh | |
| simp only [map_neg,Int.cast_sub] | |
| constructor <;> linarith [(hk d).1,(hk d).2,hh.1,hh.2] | |
| exact β¨hb 0,hb 1β© | |
| theorem windowRectangle_clipping_dichotomy {a : β} (r : CutRing) | |
| (hr : 0<ordinary r β§ ordinary r<1/2) | |
| (n : β) (hn : 201β€n) (q : Fin 2 β β€) (cell : Fin 2 β Fin n) | |
| (hb : β d, q dβ€endpointLabel (-r) β§ endpointLabel (-r)<q d+n) | |
| (he : β d, q dβ€endpointLabel r β§ endpointLabel r<q d+n) : | |
| Disjoint (windowRectangle a n q cell) (coordinateRectangle a (fun _ => -r) (fun _ => r)) β¨ | |
| windowRectangle a n q cell β€ coordinateRectangle a (fun _ => -r) (fun _ => r) := by | |
| classical | |
| by_cases h : β p : GenericSquare a, p β (windowRectangle a n q cell).val β§ | |
| p β (coordinateRectangle a (fun _ => -r) (fun _ => r)).val | |
| Β· obtain β¨p,hp,hboxβ© := h | |
| obtain β¨k,hkβ© := windowRectangle_clipping_chart r hr n hn q cell hb he p hp hbox | |
| exact Or.inr (windowRectangle_le_clipping_box r hr n hn q cell k hk) | |
| Β· left | |
| rw [disjoint_iff_inf_le] | |
| exact fun p hp => h β¨p,hp.1,hp.2β© | |
| theorem windowRectangle_exterior_of_point {a : β} (r : CutRing) | |
| (hr : 0<ordinary r β§ ordinary r<1/2) | |
| (n : β) (hn : 201β€n) (q : Fin 2 β β€) (cell : Fin 2 β Fin n) | |
| (hb : β d, q dβ€endpointLabel (-r) β§ endpointLabel (-r)<q d+n) | |
| (he : β d, q dβ€endpointLabel r β§ endpointLabel r<q d+n) | |
| (p : GenericSquare a) (hp : p β (windowRectangle a n q cell).val) | |
| (hout : p β (coordinateRectangle a (fun _ => -r) (fun _ => r)).val) : | |
| Disjoint (windowRectangle a n q cell) (coordinateRectangle a (fun _ => -r) (fun _ => r)) := by | |
| rcases windowRectangle_clipping_dichotomy r hr n hn q cell hb he with h | h | |
| Β· exact h | |
| Β· exact False.elim (hout (h hp)) | |
| end WindowBoxDichotomy | |
| end SimpleAmenable | |
| end | |
| end | |
| end OAI | |
Outline