Exact Lean source
WeylNumberTaylor
formalization/Cloning/WeylNumberTaylor.lean
Source hash: 8da036aeb2af749d583fcfd3aa8bdda9abbc39442a7234bd880fdb87f85f0746
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.MultimodeCoherent.NumberCoefficientsdefinition Cloning.MultimodeCoherent.numberVectortheorem Cloning.MultimodeCoherent.numberVector_singledefinition Cloning.MultimodeCoherent.numberLadderCoefficientstheorem Cloning.MultimodeCoherent.numberVector_ladderCoefficientsdefinition Cloning.MultimodeCoherent.numberGeneratortheorem Cloning.MultimodeCoherent.numberGenerator_singletheorem Cloning.MultimodeCoherent.numberVector_generatordefinition Cloning.MultimodeCoherent.numberOrbittheorem Cloning.MultimodeCoherent.numberOrbit_hasDerivAtdefinition Cloning.MultimodeCoherent.numberIteratetheorem Cloning.MultimodeCoherent.numberIterate_zerotheorem Cloning.MultimodeCoherent.numberIterate_succtheorem Cloning.MultimodeCoherent.numberOrbit_iteratedDerivtheorem Cloning.MultimodeCoherent.numberOrbit_contDifftheorem Cloning.MultimodeCoherent.numberOrbit_normtheorem Cloning.MultimodeCoherent.displacement_taylor_vector_remainder1import Cloning.WeylNumberDerivative
2import Mathlib.Analysis.Calculus.Taylor
3
4/-! Actual Weyl Taylor polynomials on the finite number-state domain. -/
5noncomputable section
6open scoped InnerProductSpace Topology BigOperators
7namespace Cloning.MultimodeCoherent
8open Cloning.MultimodeCoherentGaussianMixture
9set_option maxHeartbeats 1000000
10set_option backward.isDefEq.respectTransparency false
11variable {d : ℕ}
12
13abbrev NumberCoefficients (d : ℕ) := (Fin d → ℕ) →₀ ℂ
14
15def numberVector : NumberCoefficients d →ₗ[ℂ] Fock d :=
16 Finsupp.linearCombination ℂ (numberBasis d)
17
18@[simp] theorem numberVector_single (k : Fin d → ℕ) (c : ℂ) :
19 numberVector (Finsupp.single k c) = c • numberBasis d k := by
20 simp [numberVector]
21
22def numberLadderCoefficients (a : Fin d → ℂ) (k : Fin d → ℕ) : NumberCoefficients d :=
23 ∑ i, (Finsupp.single (Function.update k i (k i+1))
24 (a i * (Real.sqrt (k i+1 : ℝ) : ℂ)) -
25 Finsupp.single (Function.update k i (k i-1))
26 (starRingEnd ℂ (a i) * (Real.sqrt (k i : ℝ) : ℂ)))
27
28theorem numberVector_ladderCoefficients (a : Fin d → ℂ) (k : Fin d → ℕ) :
29 numberVector (numberLadderCoefficients a k) = numberLadder a k := by
30 simp [numberLadderCoefficients, numberLadder]
31
32/-- The unbounded oscillator generator is used only on its invariant algebraic
33finite-support domain, where every iterate is an actual finite sum. -/
34def numberGenerator (a : Fin d → ℂ) : NumberCoefficients d →ₗ[ℂ] NumberCoefficients d :=
35 Finsupp.linearCombination ℂ (numberLadderCoefficients a)
36
37@[simp] theorem numberGenerator_single (a : Fin d → ℂ) (k : Fin d → ℕ) (c : ℂ) :
38 numberGenerator a (Finsupp.single k c) = c • numberLadderCoefficients a k := by
39 simp [numberGenerator]
40
41theorem numberVector_generator (a : Fin d → ℂ) (c : NumberCoefficients d) :
42 numberVector (numberGenerator a c) = ∑ k ∈ c.support, c k • numberLadder a k := by
43 simp only [numberGenerator, Finsupp.linearCombination_apply, Finsupp.sum,
44 map_sum, map_smul, numberVector_ladderCoefficients]
45
46def numberOrbit (a : Fin d → ℂ) (c : NumberCoefficients d) (t : ℝ) : Fock d :=
47 displacement (t • a) (numberVector c)
48
49theorem numberOrbit_hasDerivAt (a : Fin d → ℂ) (c : NumberCoefficients d) (t : ℝ) :
50 HasDerivAt (numberOrbit a c) (numberOrbit a (numberGenerator a c) t) t := by
51 have h := HasDerivAt.fun_sum (u := c.support)
52 (fun k _ => (displacement_number_hasDerivAt a k t).const_smul (c k))
53 unfold numberOrbit
54 rw [numberVector_generator]
55 simpa only [numberVector, Finsupp.linearCombination_apply, Finsupp.sum,
56 map_sum, map_smul, Pi.smul_apply] using h
57
58noncomputable def numberIterate (a : Fin d → ℂ) (c : NumberCoefficients d) : ℕ → NumberCoefficients d
59 | 0 => c
60 | m+1 => numberGenerator a (numberIterate a c m)
61
62@[simp] theorem numberIterate_zero (a : Fin d → ℂ) (c : NumberCoefficients d) :
63 numberIterate a c 0 = c := rfl
64
65@[simp] theorem numberIterate_succ (a : Fin d → ℂ) (c : NumberCoefficients d) (m : ℕ) :
66 numberIterate a c (m+1) = numberGenerator a (numberIterate a c m) := rfl
67
68theorem numberOrbit_iteratedDeriv (a : Fin d → ℂ) (c : NumberCoefficients d) (m : ℕ) :
69 iteratedDeriv m (numberOrbit a c) = numberOrbit a (numberIterate a c m) := by
70 induction m with
71 | zero => rfl
72 | succ m ih =>
73 rw [iteratedDeriv_succ, ih]
74 funext t
75 exact (numberOrbit_hasDerivAt a (numberIterate a c m) t).deriv
76
77theorem numberOrbit_contDiff (a : Fin d → ℂ) (c : NumberCoefficients d) (m : ℕ) :
78 ContDiff ℝ m (numberOrbit a c) := by
79 apply contDiff_nat_iff_iteratedDeriv.mpr
80 constructor
81 · intro j _
82 rw [numberOrbit_iteratedDeriv]
83 exact (show Differentiable ℝ (numberOrbit a (numberIterate a c j)) from
84 fun t => (numberOrbit_hasDerivAt a (numberIterate a c j) t).differentiableAt).continuous
85 · intro j _
86 rw [numberOrbit_iteratedDeriv]
87 exact fun t => (numberOrbit_hasDerivAt a (numberIterate a c j) t).differentiableAt
88
89theorem numberOrbit_norm (a : Fin d → ℂ) (c : NumberCoefficients d) (t : ℝ) :
90 ‖numberOrbit a c t‖ = ‖numberVector c‖ := displacement_norm _ _
91
92/-- A Taylor remainder for the actual constructed Weyl operator, with no
93operator-norm boundedness assumption on the number-state generator. -/
94theorem displacement_taylor_vector_remainder
95 (a : Fin d → ℂ) (c : NumberCoefficients d) (m : ℕ) :
96 ‖displacement a (numberVector c) -
97 ∑ j ∈ Finset.range (m+1), ((j.factorial : ℝ)⁻¹) • numberVector (numberIterate a c j)‖ ≤
98 ‖numberVector (numberIterate a c (m+1))‖ / m.factorial := by
99 have hderiv (j : ℕ) (t : ℝ) (ht : t ∈ Set.Icc (0 : ℝ) 1) :
100 iteratedDerivWithin j (numberOrbit a c) (Set.Icc (0 : ℝ) 1) t =
101 numberOrbit a (numberIterate a c j) t := by
102 rw [iteratedDerivWithin_eq_iteratedDeriv (uniqueDiffOn_Icc zero_lt_one)
103 (numberOrbit_contDiff a c j).contDiffAt ht, numberOrbit_iteratedDeriv]
104 have h := taylor_mean_remainder_bound (f := numberOrbit a c) (a := 0) (b := 1) (x := 1)
105 (n := m) zero_le_one (numberOrbit_contDiff a c (m+1)).contDiffOn
106 (by simp) (C := ‖numberVector (numberIterate a c (m+1))‖) (by
107 intro t ht
108 rw [hderiv (m+1) t ht, numberOrbit_norm])
109 have hpoly : taylorWithinEval (numberOrbit a c) m (Set.Icc (0 : ℝ) 1) 0 1 =
110 ∑ j ∈ Finset.range (m+1), ((j.factorial : ℝ)⁻¹) • numberVector (numberIterate a c j) := by
111 rw [taylor_within_apply]
112 apply Finset.sum_congr rfl
113 intro j hj
114 rw [hderiv j 0 (by simp)]
115 simp only [numberOrbit, zero_smul, displacement_zero, ContinuousLinearMap.id_apply,
116 sub_zero, one_pow, mul_one]
117 rw [hpoly] at h
118 simpa only [numberOrbit, one_smul, sub_zero, one_pow, mul_one] using h
119
120end Cloning.MultimodeCoherent