Exact Lean source
CloningValueExpansionThreshold
formalization/Cloning/CloningValueExpansionThreshold.lean
Source hash: 8ccf4dc766aeaf2a0e6f8da0c32b691d8a1ec737c6fdb9a7fb5d1b5f0abfb412
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.
In the dependency map: Small errors
Declarations in this module
theorem
Cloning.ValueExpansion.infidelity_div_sq_tendstotheorem Cloning.ValueExpansion.universal_infidelity_div_sq_tendstotheorem Cloning.ValueExpansion.known_infidelity_div_sq_tendstotheorem Cloning.ValueExpansion.pct_infidelity_div_sq_tendstotheorem Cloning.ValueExpansion.universalCoefficient_postheorem Cloning.ValueExpansion.pctCoefficient_postheorem Cloning.ValueExpansion.inverse_target_branch_tendstotheorem Cloning.ValueExpansion.universal_inverse_target_branchtheorem Cloning.ValueExpansion.pct_inverse_target_branch1import Cloning.CloningValueExpansion
2
3/-! Leading squared-infidelity coefficients and inversion along every genuine
4small-error target branch. The statement keeps the iterated fixed-spectrum
5limit separate from finite-sample errors. -/
6noncomputable section
7open scoped Topology BigOperators
8open Filter Asymptotics
9namespace Cloning.ValueExpansion
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 500000
12
13theorem infidelity_div_sq_tendsto {f : ℝ→ℝ} {a : ℝ}
14 (h : (fun x=>f x-(1-a*x^2)) =O[𝓝[>] (0:ℝ)] (fun x=>x^3)) :
15 Tendsto (fun x=>(1-f x)/x^2) (𝓝[>] (0:ℝ)) (𝓝 a) := by
16 have hh := (h.trans_isLittleO
17 ((isLittleO_pow_pow (by decide : 2<3) (𝕜:=ℝ)).mono nhdsWithin_le_nhds)).tendsto_div_nhds_zero
18 have ht := (tendsto_const_nhds : Tendsto (fun _ : ℝ=>a) (𝓝[>] (0:ℝ)) (𝓝 a)).sub hh
19 simp only [sub_zero] at ht
20 apply ht.congr' ?_
21 filter_upwards [self_mem_nhdsWithin] with x hx
22 have hx0 : x≠0 := ne_of_gt hx
23 field_simp [hx0]
24 <;> ring
25
26theorem universal_infidelity_div_sq_tendsto {d : ℕ} (p : SimpleSpectrum d) :
27 Tendsto (fun x=>(1-universalValue (1+x) p^2)/x^2)
28 (𝓝[>] (0:ℝ)) (𝓝 (universalCoefficient p)) :=
29 infidelity_div_sq_tendsto (universal_squared_remainder p)
30
31theorem known_infidelity_div_sq_tendsto {d : ℕ} (p : SimpleSpectrum d) :
32 Tendsto (fun x=>(1-orbitalValue (1+x) p^2)/x^2)
33 (𝓝[>] (0:ℝ)) (𝓝 (knownCoefficient p)) :=
34 infidelity_div_sq_tendsto (orbital_squared_remainder p)
35
36theorem pct_infidelity_div_sq_tendsto {d : ℕ} (p : SimpleSpectrum d) :
37 Tendsto (fun x=>(1-pctValue (1+x) p^2)/x^2)
38 (𝓝[>] (0:ℝ)) (𝓝 (pctCoefficient p)) :=
39 infidelity_div_sq_tendsto ((pct_squared_remainder p).mono nhdsWithin_le_nhds)
40
41theorem universalCoefficient_pos {d : ℕ} (hd : 2≤d) (p : SimpleSpectrum d) :
42 0<universalCoefficient p := by
43 have hs : 0≤knownCoefficient p := Finset.sum_nonneg (fun ij _=>by
44 exact div_nonneg (by norm_num) (mul_nonneg (by norm_num) (p.ratio_pos ij).le))
45 have hd' : (2:ℝ)≤d := by exact_mod_cast hd
46 dsimp only [universalCoefficient]
47 linarith
48
49theorem pctCoefficient_pos {d : ℕ} (hd : 2≤d) (p : SimpleSpectrum d) :
50 0<pctCoefficient p :=
51 (universalCoefficient_pos hd p).trans (universalCoefficient_lt_pctCoefficient hd p)
52
53/-- Any positive small-error branch attaining the actual scalar target has
54the asserted inverse square-root leading sample ratio. -/
55theorem inverse_target_branch_tendsto {f delta : ℝ→ℝ} {a : ℝ} (ha : 0<a)
56 (hlim : Tendsto (fun x=>(1-f x)/x^2) (𝓝[>] (0:ℝ)) (𝓝 a))
57 (hd : Tendsto delta (𝓝[>] (0:ℝ)) (𝓝[>] (0:ℝ)))
58 (htarget : ∀ᶠε in 𝓝[>] (0:ℝ), f (delta ε)=1-ε) :
59 Tendsto (fun ε=>(delta ε)⁻¹/Real.sqrt (a/ε)) (𝓝[>] (0:ℝ)) (𝓝 1) := by
60 have hr : Tendsto (fun ε=>ε/(delta ε)^2) (𝓝[>] (0:ℝ)) (𝓝 a) := by
61 apply (hlim.comp hd).congr'
62 filter_upwards [htarget] with ε hε
63 simp only [Function.comp_apply,hε,sub_sub_cancel]
64 have hs := hr.sqrt.div_const (Real.sqrt a)
65 rw [div_self (ne_of_gt (Real.sqrt_pos.mpr ha))] at hs
66 apply hs.congr' ?_
67 filter_upwards [self_mem_nhdsWithin,hd.eventually self_mem_nhdsWithin] with ε hε hδ
68 have hε0 : 0<ε := hε
69 have hδ0 : 0<delta ε := hδ
70 rw [Real.sqrt_div hε0.le,Real.sqrt_sq hδ0.le,Real.sqrt_div ha.le]
71 field_simp [hδ0.ne',ne_of_gt (Real.sqrt_pos.mpr hε0),ne_of_gt (Real.sqrt_pos.mpr ha)]
72
73theorem universal_inverse_target_branch {d : ℕ} (hd : 2≤d) (p : SimpleSpectrum d)
74 (delta : ℝ→ℝ) (hdelta : Tendsto delta (𝓝[>] (0:ℝ)) (𝓝[>] (0:ℝ)))
75 (htarget : ∀ᶠε in 𝓝[>] (0:ℝ),universalValue (1+delta ε) p^2=1-ε) :
76 Tendsto (fun ε=>(delta ε)⁻¹/Real.sqrt (universalCoefficient p/ε))
77 (𝓝[>] (0:ℝ)) (𝓝 1) :=
78 inverse_target_branch_tendsto (universalCoefficient_pos hd p)
79 (universal_infidelity_div_sq_tendsto p) hdelta htarget
80
81theorem pct_inverse_target_branch {d : ℕ} (hd : 2≤d) (p : SimpleSpectrum d)
82 (delta : ℝ→ℝ) (hdelta : Tendsto delta (𝓝[>] (0:ℝ)) (𝓝[>] (0:ℝ)))
83 (htarget : ∀ᶠε in 𝓝[>] (0:ℝ),pctValue (1+delta ε) p^2=1-ε) :
84 Tendsto (fun ε=>(delta ε)⁻¹/Real.sqrt (pctCoefficient p/ε))
85 (𝓝[>] (0:ℝ)) (𝓝 1) :=
86 inverse_target_branch_tendsto (pctCoefficient_pos hd p)
87 (pct_infidelity_div_sq_tendsto p) hdelta htarget
88
89end Cloning.ValueExpansion