Download data/lean/OAI/Geometry/Cannon/CirclePacking/Radius.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.72 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Cannon/CirclePacking/Radius.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Cannon/CirclePacking/Radius.lean
-
curl -L -o Radius.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Cannon/CirclePacking/Radius.lean
3.72 kB
| import Mathlib | |
| namespace OAI | |
| section | |
| section | |
| section | |
| noncomputable section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| open Filter Topology | |
| namespace CannonNode | |
| def radius (ell : β) (k : β) : β := Real.exp (-ell*k) | |
| lemma radius_pos (ell : β) (k : β) : 0 < radius ell k := Real.exp_pos _ | |
| lemma radius_add (ell : β) (k d : β) : radius ell (k+d) = radius ell d*radius ell k := by | |
| simp only [radius,Nat.cast_add, mul_add,Real.exp_add] | |
| ring | |
| lemma radius_ratio (ell : β) (k d : β) : radius ell k/radius ell (k+d) = Real.exp (ell*d) := by | |
| simp only [radius, β Real.exp_sub, Nat.cast_add] | |
| congr 1 | |
| ring | |
| lemma radius_sub_ratio (ell : β) (k d e : β) (hed : e β€ d) : | |
| radius ell (k+d)/radius ell (k+e) = radius ell (d-e) := by | |
| simp only [radius,β Real.exp_sub,Nat.cast_add,Nat.cast_sub hed] | |
| congr 1 | |
| ring | |
| lemma radius_antitone {ell : β} (hell : 0 β€ ell) : Antitone (radius ell) := by | |
| intro i j hij | |
| apply Real.exp_le_exp.mpr | |
| have hh : (i:β) β€ j := by exact_mod_cast hij | |
| exact mul_le_mul_of_nonpos_left hh (neg_nonpos.mpr hell) | |
| lemma radius_eq_power (ell : β) (k : β) : radius ell k = (Real.exp ell^k)β»ΒΉ := by | |
| rw [β Real.exp_nat_mul,β Real.exp_neg] | |
| unfold radius | |
| congr 1 | |
| ring | |
| lemma radius_tendsto {ell : β} (hell : 0 < ell) : Tendsto (radius ell) atTop (π 0) := by | |
| have he : Real.exp (-ell) < 1 := Real.exp_lt_one_iff.mpr (neg_neg_of_pos hell) | |
| have ht := tendsto_pow_atTop_nhds_zero_of_lt_one (Real.exp_pos (-ell)).le he | |
| change Tendsto (fun n : β => Real.exp (-ell*n)) atTop (π 0) | |
| simpa only [radius,β Real.exp_nat_mul, mul_comm] using ht | |
| lemma nat_mul_tendsto {d : β} (hd : 0 < d) : | |
| Tendsto (fun n : β => d*n) atTop atTop := by | |
| apply tendsto_atTop_mono (f := fun n : β => n) | |
| Β· intro n | |
| exact Nat.le_mul_of_pos_left n hd | |
| Β· exact tendsto_id | |
| theorem eventually_flow_scales (qdim : β) (ell cβ H C : β) (hell : 0 < ell) : | |
| βαΆ n : β in atTop, | |
| 0 < n β§ radius ell (160*(qdim+1)*n) < 1/4 β§ | |
| cβ*radius ell (160*(qdim+1)*n) β€ 1 β§ | |
| 2*(H+3)*radius ell (160*(qdim+1)*n) β€ 1 β§ | |
| radius ell (2*n) β€ 1/4 β§ | |
| C*radius ell ((160*(qdim+1)-2)*n) β€ 1 := by | |
| have hd : 0 < 160*(qdim+1) := by omega | |
| have he : 0 < 160*(qdim+1)-2 := by omega | |
| have hdl : Tendsto (fun n : β => radius ell (160*(qdim+1)*n)) atTop (π 0) := | |
| (radius_tendsto hell).comp (nat_mul_tendsto hd) | |
| have hel : Tendsto (fun n : β => radius ell ((160*(qdim+1)-2)*n)) atTop (π 0) := | |
| (radius_tendsto hell).comp (nat_mul_tendsto he) | |
| have hβl : Tendsto (fun n : β => radius ell (2*n)) atTop (π 0) := | |
| (radius_tendsto hell).comp (nat_mul_tendsto (by norm_num : 0 < (2:β))) | |
| have hcl : Tendsto (fun n : β => cβ*radius ell (160*(qdim+1)*n)) atTop (π 0) := by | |
| simpa only [mul_zero] using hdl.const_mul cβ | |
| have hHl : Tendsto (fun n : β => 2*(H+3)*radius ell (160*(qdim+1)*n)) atTop (π 0) := by | |
| simpa only [mul_zero] using hdl.const_mul (2*(H+3)) | |
| have hCl : Tendsto (fun n : β => C*radius ell ((160*(qdim+1)-2)*n)) atTop (π 0) := by | |
| simpa only [mul_zero] using hel.const_mul C | |
| filter_upwards [eventually_gt_atTop (0:β), | |
| hdl.eventually (gt_mem_nhds (by norm_num : (0:β) < 1/4)), | |
| hcl.eventually (gt_mem_nhds (by norm_num : (0:β) < 1)), | |
| hHl.eventually (gt_mem_nhds (by norm_num : (0:β) < 1)), | |
| hβl.eventually (gt_mem_nhds (by norm_num : (0:β) < 1/4)), | |
| hCl.eventually (gt_mem_nhds (by norm_num : (0:β) < 1))] with n hn hdn hcn hHn hβn hCn | |
| exact β¨hn,hdn,hcn.le,hHn.le,hβn.le,hCn.leβ© | |
| end CannonNode | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end OAI | |