Exact Lean source
CloningValueExpansion
formalization/Cloning/CloningValueExpansion.lean
Source hash: 2df8683e8ad70b5e0552c04d1055cb87845489279da2a22127c5c3efb3154c5c
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
definition
Cloning.ValueExpansion.knownCoefficientdefinition Cloning.ValueExpansion.universalCoefficientdefinition Cloning.ValueExpansion.pctCoefficienttheorem Cloning.ValueExpansion.knownCoefficient_eqtheorem Cloning.ValueExpansion.universalCoefficient_eqtheorem Cloning.ValueExpansion.pctCoefficient_eqtheorem Cloning.ValueExpansion.orbital_squared_remaindertheorem Cloning.ValueExpansion.universal_squared_remaindertheorem Cloning.ValueExpansion.pct_squared_remaindertheorem Cloning.ValueExpansion.universalCoefficient_lt_pctCoefficient1import Cloning.CloningValueExpansionClassical
2
3/-! The manuscript's fixed-spectrum high-fidelity expansions, with cubic errors. -/
4noncomputable section
5open scoped Topology BigOperators
6open Filter Asymptotics
7namespace Cloning.ValueExpansion
8set_option backward.isDefEq.respectTransparency false
9set_option maxHeartbeats 500000
10
11def knownCoefficient {d : ℕ} (p : SimpleSpectrum d) : ℝ :=
12 ∑ij : PairIndex d,1/(4*p.ratio ij)
13
14def universalCoefficient {d : ℕ} (p : SimpleSpectrum d) : ℝ :=
15 ((d:ℝ)-1)/8+knownCoefficient p
16
17def pctCoefficient {d : ℕ} (p : SimpleSpectrum d) : ℝ :=
18 ((d:ℝ)-1)/2+∑ij : PairIndex d,(1+p.ratio ij)^2/(4*p.ratio ij)
19
20theorem knownCoefficient_eq {d : ℕ} (p : SimpleSpectrum d) :
21 knownCoefficient p=(1/4)*∑ij : PairIndex d,p.eigenvalue ij.val.1/p.eigenvalue ij.val.2 := by
22 rw [knownCoefficient,Finset.mul_sum]
23 apply Finset.sum_congr rfl
24 intro ij _
25 dsimp only [SimpleSpectrum.ratio]
26 field_simp [(p.positive ij.val.1).ne',(p.positive ij.val.2).ne']
27
28theorem universalCoefficient_eq {d : ℕ} (p : SimpleSpectrum d) :
29 universalCoefficient p=((d:ℝ)-1)/8+
30 (1/4)*∑ij : PairIndex d,p.eigenvalue ij.val.1/p.eigenvalue ij.val.2 := by
31 rw [universalCoefficient,knownCoefficient_eq]
32
33theorem pctCoefficient_eq {d : ℕ} (p : SimpleSpectrum d) :
34 pctCoefficient p=((d:ℝ)-1)/2+
35 (1/4)*∑ij : PairIndex d,(p.eigenvalue ij.val.1+p.eigenvalue ij.val.2)^2/
36 (p.eigenvalue ij.val.1*p.eigenvalue ij.val.2) := by
37 rw [pctCoefficient,Finset.mul_sum]
38 congr 1
39 apply Finset.sum_congr rfl
40 intro ij _
41 dsimp only [SimpleSpectrum.ratio]
42 field_simp [(p.positive ij.val.1).ne',(p.positive ij.val.2).ne']
43 <;> ring
44
45theorem orbital_squared_remainder {d : ℕ} (p : SimpleSpectrum d) :
46 (fun x=>orbitalValue (1+x) p^2-(1-knownCoefficient p*x^2))
47 =O[𝓝[>] (0:ℝ)] (fun x=>x^3) := by
48 have h := HasQuadraticExpansion.prod Finset.univ
49 (fun ij : PairIndex d=>fun x=>Thermal.fidelity (p.ratio ij)
50 (Thermal.amplified (1+x) (p.ratio ij))^2)
51 (fun ij=>1/(4*p.ratio ij))
52 (fun ij _=>amplified_fidelity_expansion (p.ratio_pos ij) (p.ratio_lt_one ij))
53 have hh := h.mono (nhdsWithin_le_nhds (s:=Set.Ioi (0:ℝ)))
54 apply hh.congr' ?_ (Eventually.of_forall (fun _=>rfl))
55 filter_upwards [self_mem_nhdsWithin] with x hx
56 dsimp only [HasQuadraticExpansion,knownCoefficient,orbitalValue]
57 have he (ij : PairIndex d) : Thermal.fidelity (p.ratio ij)
58 (Thermal.amplified (1+x) (p.ratio ij))=Thermal.modeFactor (1+x) (p.ratio ij) :=
59 Thermal.fidelity_amplified_eq_modeFactor (by change 0<x at hx; linarith)
60 (p.ratio_pos ij).le (p.ratio_lt_one ij)
61 simp_rw [he]
62 rw [Finset.prod_pow]
63
64theorem universal_squared_remainder {d : ℕ} (p : SimpleSpectrum d) :
65 (fun x=>universalValue (1+x) p^2-(1-universalCoefficient p*x^2))
66 =O[𝓝[>] (0:ℝ)] (fun x=>x^3) := by
67 have hprod := HasQuadraticExpansion.prod Finset.univ
68 (fun ij : PairIndex d=>fun x=>Thermal.fidelity (p.ratio ij)
69 (Thermal.amplified (1+x) (p.ratio ij))^2)
70 (fun ij=>1/(4*p.ratio ij))
71 (fun ij _=>amplified_fidelity_expansion (p.ratio_pos ij) (p.ratio_lt_one ij))
72 have hc : HasQuadraticExpansion (fun x=>classicalValue (1+x) d^2) (((d:ℝ)-1)/8) := by
73 simpa using classicalValue_squared_expansion 1 d
74 have hh := (hc.mul hprod).mono (nhdsWithin_le_nhds (s:=Set.Ioi (0:ℝ)))
75 apply hh.congr' ?_ (Eventually.of_forall (fun _=>rfl))
76 filter_upwards [self_mem_nhdsWithin] with x hx
77 dsimp only [HasQuadraticExpansion,universalCoefficient,knownCoefficient,universalValue,orbitalValue]
78 have he (ij : PairIndex d) : Thermal.fidelity (p.ratio ij)
79 (Thermal.amplified (1+x) (p.ratio ij))=Thermal.modeFactor (1+x) (p.ratio ij) :=
80 Thermal.fidelity_amplified_eq_modeFactor (by change 0<x at hx; linarith)
81 (p.ratio_pos ij).le (p.ratio_lt_one ij)
82 simp_rw [he]
83 rw [Finset.prod_pow,mul_pow]
84
85theorem pct_squared_remainder {d : ℕ} (p : SimpleSpectrum d) :
86 (fun x=>pctValue (1+x) p^2-(1-pctCoefficient p*x^2))
87 =O[𝓝 (0:ℝ)] (fun x=>x^3) := by
88 have hprod := HasQuadraticExpansion.prod Finset.univ
89 (fun ij : PairIndex d=>fun x=>Thermal.fidelity (p.ratio ij)
90 (Thermal.pct (1+x) (p.ratio ij))^2)
91 (fun ij=>(1+p.ratio ij)^2/(4*p.ratio ij))
92 (fun ij _=>pct_fidelity_expansion (p.ratio_pos ij) (p.ratio_lt_one ij))
93 have hc : HasQuadraticExpansion (fun x=>classicalValue (1+2*x) d^2) (((d:ℝ)-1)/2) := by
94 convert classicalValue_squared_expansion 2 d using 1
95 ring
96 have hh := hc.mul hprod
97 dsimp only [HasQuadraticExpansion] at hh
98 convert hh using 1
99 ext x
100 dsimp only [HasQuadraticExpansion,pctCoefficient,pctValue]
101 rw [show 2*(1+x)-1=1+2*x by ring,Finset.prod_pow,mul_pow]
102
103theorem universalCoefficient_lt_pctCoefficient {d : ℕ} (hd : 2≤d)
104 (p : SimpleSpectrum d) : universalCoefficient p<pctCoefficient p := by
105 have hs : knownCoefficient p≤∑ij : PairIndex d,(1+p.ratio ij)^2/(4*p.ratio ij) := by
106 apply Finset.sum_le_sum
107 intro ij _
108 apply div_le_div_of_nonneg_right _ (mul_nonneg (by norm_num) (p.ratio_pos ij).le)
109 nlinarith [p.ratio_pos ij,sq_nonneg (p.ratio ij)]
110 have hd' : (2:ℝ)≤d := by exact_mod_cast hd
111 dsimp only [universalCoefficient,pctCoefficient]
112 linarith
113
114end Cloning.ValueExpansion