Exact Lean source
CloningValueExpansionTarget
formalization/Cloning/CloningValueExpansionTarget.lean
Source hash: 8870cc54f5b6630f6ac369f6ef2d017becf1be25515d73e418c7f001ecb4103b
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.scaled_infidelity_tendstotheorem Cloning.ValueExpansion.fidelity_target_bracketstheorem Cloning.ValueExpansion.universal_target_bracketstheorem Cloning.ValueExpansion.pct_target_bracketstheorem Cloning.ValueExpansion.knownCoefficient_postheorem Cloning.ValueExpansion.known_target_brackets1import Cloning.CloningValueExpansionThreshold
2
3/-! Concrete small-error gains straddle the actual scalar fidelity target.
4These brackets do not assume an inverse branch or a target-attainment premise. -/
5noncomputable section
6open scoped Topology BigOperators
7open Filter Asymptotics
8namespace Cloning.ValueExpansion
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 500000
11
12theorem scaled_infidelity_tendsto {f : ℝ→ℝ} {a c : ℝ} (ha : 0<a) (hc : 0<c)
13 (hlim : Tendsto (fun x=>(1-f x)/x^2) (𝓝[>] (0:ℝ)) (𝓝 a)) :
14 Tendsto (fun ε=>(1-f (c*Real.sqrt (ε/a)))/ε) (𝓝[>] (0:ℝ)) (𝓝 (c^2)) := by
15 let delta : ℝ→ℝ := fun ε=>c*Real.sqrt (ε/a)
16 have hd : Tendsto delta (𝓝[>] (0:ℝ)) (𝓝[>] (0:ℝ)) := by
17 apply tendsto_nhdsWithin_iff.mpr
18 constructor
19 · have hid : Tendsto (fun ε : ℝ=>ε) (𝓝[>] (0:ℝ)) (𝓝 0) := nhdsWithin_le_nhds
20 simpa only [delta,zero_div,Real.sqrt_zero,mul_zero] using
21 ((hid.div_const a).sqrt.const_mul c)
22 · filter_upwards [self_mem_nhdsWithin] with ε hε
23 exact mul_pos hc (Real.sqrt_pos.mpr (div_pos hε ha))
24 have ht := (hlim.comp hd).mul_const (c^2/a)
25 rw [mul_div_cancel₀ _ ha.ne'] at ht
26 apply ht.congr' ?_
27 filter_upwards [self_mem_nhdsWithin] with ε hε
28 have hε0 : 0<ε := hε
29 dsimp only [Function.comp_apply,delta]
30 rw [mul_pow,Real.sq_sqrt (div_pos hε0 ha).le]
31 field_simp [ha.ne',hc.ne',hε0.ne']
32 <;> ring
33
34/-- Gains just below and above the predicted leading scale give actual
35squared fidelities respectively above and below `1-ε`. -/
36theorem fidelity_target_brackets {f : ℝ→ℝ} {a eta : ℝ}
37 (ha : 0<a) (heta : 0<eta) (heta1 : eta<1)
38 (hlim : Tendsto (fun x=>(1-f x)/x^2) (𝓝[>] (0:ℝ)) (𝓝 a)) :
39 ∀ᶠε in 𝓝[>] (0:ℝ),
40 1-ε<f ((1-eta)*Real.sqrt (ε/a)) ∧
41 f ((1+eta)*Real.sqrt (ε/a))<1-ε := by
42 have hl := scaled_infidelity_tendsto ha (sub_pos.mpr heta1) hlim
43 have hu := scaled_infidelity_tendsto ha (show 0<1+eta by linarith) hlim
44 have hcl : (1-eta)^2<1 := by nlinarith
45 have hcu : 1<(1+eta)^2 := by nlinarith
46 filter_upwards [self_mem_nhdsWithin,hl.eventually_lt_const hcl,
47 hu.eventually_const_lt hcu] with ε hε hL hU
48 have hε0 : 0<ε := hε
49 constructor
50 · have h := (div_lt_one hε0).mp hL
51 linarith
52 · have h := (one_lt_div hε0).mp hU
53 linarith
54
55theorem universal_target_brackets {d : ℕ} (hd : 2≤d) (p : SimpleSpectrum d)
56 {eta : ℝ} (heta : 0<eta) (heta1 : eta<1) :
57 ∀ᶠε in 𝓝[>] (0:ℝ),
58 1-ε<universalValue (1+(1-eta)*Real.sqrt (ε/universalCoefficient p)) p^2 ∧
59 universalValue (1+(1+eta)*Real.sqrt (ε/universalCoefficient p)) p^2<1-ε :=
60 fidelity_target_brackets (universalCoefficient_pos hd p) heta heta1
61 (universal_infidelity_div_sq_tendsto p)
62
63theorem pct_target_brackets {d : ℕ} (hd : 2≤d) (p : SimpleSpectrum d)
64 {eta : ℝ} (heta : 0<eta) (heta1 : eta<1) :
65 ∀ᶠε in 𝓝[>] (0:ℝ),
66 1-ε<pctValue (1+(1-eta)*Real.sqrt (ε/pctCoefficient p)) p^2 ∧
67 pctValue (1+(1+eta)*Real.sqrt (ε/pctCoefficient p)) p^2<1-ε :=
68 fidelity_target_brackets (pctCoefficient_pos hd p) heta heta1
69 (pct_infidelity_div_sq_tendsto p)
70
71theorem knownCoefficient_pos {d : ℕ} (hd : 2≤d) (p : SimpleSpectrum d) :
72 0<knownCoefficient p := by
73 let ij : PairIndex d := ⟨(⟨0,by omega⟩,⟨1,by omega⟩),by change (0:ℕ)<1; omega⟩
74 apply Finset.sum_pos
75 · intro a _
76 exact div_pos (by norm_num) (mul_pos (by norm_num) (p.ratio_pos a))
77 · exact ⟨ij,Finset.mem_univ ij⟩
78
79theorem known_target_brackets {d : ℕ} (hd : 2≤d) (p : SimpleSpectrum d)
80 {eta : ℝ} (heta : 0<eta) (heta1 : eta<1) :
81 ∀ᶠε in 𝓝[>] (0:ℝ),
82 1-ε<orbitalValue (1+(1-eta)*Real.sqrt (ε/knownCoefficient p)) p^2 ∧
83 orbitalValue (1+(1+eta)*Real.sqrt (ε/knownCoefficient p)) p^2<1-ε :=
84 fidelity_target_brackets (knownCoefficient_pos hd p) heta heta1
85 (known_infidelity_div_sq_tendsto p)
86
87end Cloning.ValueExpansion