Exact Lean source
SampleRatioLimit
formalization/Cloning/SampleRatioLimit.lean
Source hash: 602de03d11b038fc82688b0680cec9b4e46e22059ca9999b9bb621ee68860367
Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.
The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.
Declarations in this module
1import Cloning.SampleRatioExpansion
2
3/-! The leading sample-ratio asymptotic from the exact threshold. -/
4noncomputable section
5open scoped Topology
6open Filter
7namespace Cloning.SampleRatio
8
9theorem threshold_scaled_tendsto {a : ℝ} (ha : 0<a) :
10 Tendsto (fun ε => ε*threshold a ε) (𝓝[≠] (0:ℝ)) (𝓝 a) := by
11 have hf : HasDerivAt (fun x : ℝ => (1-x)^(-1/a)-1) (1/a) 0 := by
12 have hh := (ScalarTaylor.hasDerivAt_one_sub_rpow (-1/a) 0 (by norm_num)).sub_const 1
13 convert hh using 1 <;> simp [div_eq_mul_inv]
14 have hq : Tendsto (fun x : ℝ => ((1-x)^(-1/a)-1)/x) (𝓝[≠] (0:ℝ)) (𝓝 (1/a)) := by
15 simpa [smul_eq_mul,div_eq_mul_inv,mul_comm] using hf.tendsto_slope_zero
16 have hh := hq.inv₀ (one_div_ne_zero ha.ne')
17 simpa [threshold,div_eq_mul_inv,mul_comm] using hh
18
19theorem threshold_relative_tendsto {a : ℝ} (ha : 0<a) :
20 Tendsto (fun ε => threshold a ε/(a/ε)) (𝓝[≠] (0:ℝ)) (𝓝 (1:ℝ)) := by
21 have hh := (threshold_scaled_tendsto ha).div_const a
22 simpa [div_eq_mul_inv,ha.ne',mul_comm,mul_left_comm,mul_assoc] using hh
23
24end Cloning.SampleRatio