Exact Lean source
WeylNumberDerivative
formalization/Cloning/WeylNumberDerivative.lean
Source hash: 3ffe81c0bf72d203e86ab95d9e52f884af5fb5e663707d325cd64714054fd158
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.numberLaddertheorem Cloning.MultimodeCoherent.prod_numberKernel_updatetheorem Cloning.MultimodeCoherent.inner_coherent_displacement_number_hasDerivAttheorem Cloning.MultimodeCoherent.hasDerivAt_of_coherent_innertheorem Cloning.MultimodeCoherent.displacement_number_hasDerivAt1import Cloning.WeylNumberKernelDerivative
2import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus
3
4/-! Strong derivatives of actual multimode Weyl orbits on number vectors. -/
5noncomputable section
6open scoped InnerProductSpace Topology BigOperators
7open MeasureTheory
8namespace Cloning.MultimodeCoherent
9open Cloning.MultimodeCoherentGaussianMixture
10set_option maxHeartbeats 1000000
11set_option backward.isDefEq.respectTransparency false
12variable {d : ℕ}
13
14/-- The literal finite ladder sum on a number state. -/
15def numberLadder (a : Fin d → ℂ) (k : Fin d → ℕ) : Fock d :=
16 ∑ i, ((a i * (Real.sqrt (k i+1 : ℝ) : ℂ)) •
17 numberBasis d (Function.update k i (k i+1)) -
18 (starRingEnd ℂ (a i) * (Real.sqrt (k i : ℝ) : ℂ)) •
19 numberBasis d (Function.update k i (k i-1)))
20
21theorem prod_numberKernel_update (a z : Fin d → ℂ) (k : Fin d → ℕ)
22 (i : Fin d) (l : ℕ) :
23 (∏ j, numberKernel (a j) (z j) (Function.update k i l j)) =
24 (∏ j ∈ Finset.univ.erase i, numberKernel (a j) (z j) (k j)) *
25 numberKernel (a i) (z i) l := by
26 rw [← Finset.prod_erase_mul _ _ (Finset.mem_univ i)]
27 rw [Function.update_self]
28 congr 1
29 apply Finset.prod_congr rfl
30 intro j hj
31 rw [Function.update_of_ne (Finset.ne_of_mem_erase hj)]
32
33theorem inner_coherent_displacement_number_hasDerivAt
34 (a z : Fin d → ℂ) (k : Fin d → ℕ) (t : ℝ) :
35 HasDerivAt (fun s : ℝ => ⟪coherentVector z, displacement (s • a) (numberBasis d k)⟫_ℂ)
36 ⟪coherentVector z, displacement (t • a) (numberLadder a k)⟫_ℂ t := by
37 simp_rw [inner_coherent_displacement_number]
38 have h := HasDerivAt.fun_finset_prod (u := Finset.univ)
39 (fun i _ => numberKernel_ray_hasDerivAt (a i) (z i) (k i) t)
40 convert h using 1
41 simp only [numberLadder, map_sum, map_sub, map_smul, inner_sum, inner_sub_right,
42 inner_smul_right, inner_coherent_displacement_number, smul_eq_mul]
43 apply Finset.sum_congr rfl
44 intro i _
45 rw [prod_numberKernel_update, prod_numberKernel_update]
46 simp only [Pi.smul_apply]
47 ring
48
49/-- A continuous vector-valued derivative is determined by the total coherent
50family. Scalar FTC gives the vector integral, so no weak/strong derivative
51identification or unbounded-generator domain is assumed. -/
52theorem hasDerivAt_of_coherent_inner
53 (f g : ℝ → Fock d) (hg : Continuous g)
54 (h : ∀ z t, HasDerivAt (fun s => ⟪coherentVector z, f s⟫_ℂ)
55 ⟪coherentVector z, g t⟫_ℂ t) (t : ℝ) : HasDerivAt f (g t) t := by
56 have he (u : ℝ) : f u = f 0 + ∫ s in (0 : ℝ)..u, g s := by
57 apply sub_eq_zero.mp
58 apply coherentVector_total
59 intro z
60 have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt
61 (fun s _ => h z s) ((continuous_const.inner hg).intervalIntegrable 0 u)
62 have hc := (innerSL ℂ (coherentVector z)).intervalIntegral_comp_comm (μ := volume)
63 (hg.intervalIntegrable 0 u)
64 change (∫ s in (0 : ℝ)..u, ⟪coherentVector z, g s⟫_ℂ) =
65 ⟪coherentVector z, ∫ s in (0 : ℝ)..u, g s⟫_ℂ at hc
66 rw [hc] at hi
67 simp only [inner_sub_right, inner_add_right]
68 rw [hi]
69 ring
70 have hi := intervalIntegral.integral_hasDerivAt_right (hg.intervalIntegrable 0 t)
71 hg.stronglyMeasurable.stronglyMeasurableAtFilter hg.continuousAt
72 convert (hasDerivAt_const t (f 0)).add hi using 1
73 · exact funext he
74 · simp
75
76theorem displacement_number_hasDerivAt (a : Fin d → ℂ) (k : Fin d → ℕ) (t : ℝ) :
77 HasDerivAt (fun s : ℝ => displacement (s • a) (numberBasis d k))
78 (displacement (t • a) (numberLadder a k)) t := by
79 apply hasDerivAt_of_coherent_inner _ (fun s : ℝ => displacement (s • a) (numberLadder a k))
80 · exact (continuous_displacement (numberLadder a k)).comp
81 (continuous_id.smul continuous_const)
82 · exact fun z t => inner_coherent_displacement_number_hasDerivAt a z k t
83
84end Cloning.MultimodeCoherent