Buckets:
| import Mathlib | |
| namespace OAI | |
| namespace Balanced.LineOccupancy | |
| open Filter Topology | |
| theorem tendsto_vacant_fraction : | |
| Tendsto (fun q : โ => (1 - 1 / (q : โ)) ^ q) atTop (๐ (Real.exp (-1))) := by | |
| simpa [sub_eq_add_neg, div_eq_mul_inv] using Real.tendsto_one_add_div_pow_exp (-1) | |
| theorem one_quarter_lt_exp_neg_one : (1 / 4 : โ) < Real.exp (-1) := by | |
| rw [Real.exp_neg, โ one_div] | |
| apply (div_lt_div_iffโ (by norm_num : (0 : โ) < 4) (Real.exp_pos 1)).2 | |
| nlinarith [Real.exp_one_lt_three] | |
| theorem eventually_mean_gap : | |
| โแถ q : โ in atTop, | |
| (q : โ) * (1 - 1 / (q : โ)) ^ q - (q : โ) / 5 โฅ (q : โ) / 20 := by | |
| have h := tendsto_vacant_fraction.eventually | |
| (eventually_gt_nhds one_quarter_lt_exp_neg_one) | |
| filter_upwards [h] with q hq | |
| have hm := mul_le_mul_of_nonneg_left hq.le (Nat.cast_nonneg q : (0 : โ) โค q) | |
| nlinarith | |
| theorem occupancy_exponent (q : โ) (hq : 0 < q) : | |
| -(((q : โ) / 20) ^ 2) / (8 * (q : โ) * (1 : โ) ^ 2) = -(q : โ) / 3200 := by | |
| have hq0 : (q : โ) โ 0 := by exact_mod_cast (Nat.ne_of_gt hq) | |
| field_simp | |
| ring | |
| theorem tendsto_line_union_bound : | |
| Tendsto (fun q : โ => | |
| (q : โ) * ((q : โ) + 1) * (2 * Real.exp (-(q : โ) / 3200))) | |
| atTop (๐ 0) := by | |
| have hโ := (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero | |
| 1 (1 / 3200) (by norm_num)).comp tendsto_natCast_atTop_atTop | |
| have hโ := (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero | |
| 2 (1 / 3200) (by norm_num)).comp tendsto_natCast_atTop_atTop | |
| have h := (hโ.add hโ).const_mul 2 | |
| convert h using 1 | |
| ยท funext q | |
| simp only [Function.comp_apply, Real.rpow_one, Real.rpow_two] | |
| rw [show -(q : โ) / 3200 = -(1 / 3200) * (q : โ) by ring] | |
| ring | |
| ยท norm_num | |
| end Balanced.LineOccupancy | |
| end OAI | |
Xet Storage Details
- Size:
- 1.79 kB
- Xet hash:
- 6371209269d666f09c831352b6e7bc6e9f7da61a2f06e0c8d82cc94df41b7ab5
ยท
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.