Exact Lean source
WeylNumberKernelDerivative
formalization/Cloning/WeylNumberKernelDerivative.lean
Source hash: e04e1e13b6fc47291bf758d0b2f072de50e7ec8c0801144fee75c91095d6ca8f
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.rayNumberKerneltheorem Cloning.MultimodeCoherent.numberKernel_real_smultheorem Cloning.MultimodeCoherent.sqrt_factorial_succ_complextheorem Cloning.MultimodeCoherent.sqrt_factorial_complex_ne_zerotheorem Cloning.MultimodeCoherent.rayNumberKernel_hasDerivAt_rawtheorem Cloning.MultimodeCoherent.sqrt_succ_factorial_ratiotheorem Cloning.MultimodeCoherent.sqrt_pred_factorial_ratiotheorem Cloning.MultimodeCoherent.rayNumberKernel_hasDerivAttheorem Cloning.MultimodeCoherent.numberKernel_ray_hasDerivAt1import Cloning.WeylNumberKernel
2
3/-! The exact ladder recurrence for derivatives of the physical Weyl kernel. -/
4noncomputable section
5open scoped InnerProductSpace Topology BigOperators
6namespace Cloning.MultimodeCoherent
7set_option maxHeartbeats 1000000
8set_option backward.isDefEq.respectTransparency false
9
10def rayNumberKernel (a z : ℂ) (k : ℕ) (t : ℂ) : ℂ :=
11 Complex.exp (-(starRingEnd ℂ z * z) / 2 - t ^ 2 * (starRingEnd ℂ a * a) / 2 +
12 t * (starRingEnd ℂ z * a)) * (starRingEnd ℂ z - t * starRingEnd ℂ a) ^ k /
13 (Real.sqrt (k.factorial : ℝ) : ℂ)
14
15theorem numberKernel_real_smul (a z : ℂ) (k : ℕ) (t : ℝ) :
16 numberKernel (t • a) z k = rayNumberKernel a z k (t : ℂ) := by
17 simp only [numberKernel, rayNumberKernel, Complex.real_smul, map_mul, Complex.conj_ofReal]
18 congr 2
19 ring
20
21theorem sqrt_factorial_succ_complex (k : ℕ) :
22 (Real.sqrt ((k+1).factorial : ℝ) : ℂ) =
23 (Real.sqrt (k+1 : ℝ) : ℂ) * (Real.sqrt (k.factorial : ℝ) : ℂ) := by
24 rw [Nat.factorial_succ, Nat.cast_mul, Real.sqrt_mul (by positivity), Complex.ofReal_mul]
25 norm_cast
26
27theorem sqrt_factorial_complex_ne_zero (k : ℕ) :
28 (Real.sqrt (k.factorial : ℝ) : ℂ) ≠ 0 := by
29 exact_mod_cast (ne_of_gt (Real.sqrt_pos.mpr (by positivity : (0 : ℝ) < k.factorial)))
30
31theorem rayNumberKernel_hasDerivAt_raw (a z t : ℂ) (k : ℕ) :
32 HasDerivAt (rayNumberKernel a z k)
33 ((Complex.exp (-(starRingEnd ℂ z * z) / 2 - t ^ 2 * (starRingEnd ℂ a * a) / 2 +
34 t * (starRingEnd ℂ z * a)) *
35 (a * (starRingEnd ℂ z - t * starRingEnd ℂ a) *
36 (starRingEnd ℂ z - t * starRingEnd ℂ a) ^ k -
37 (k : ℂ) * (starRingEnd ℂ z - t * starRingEnd ℂ a) ^ (k-1) * starRingEnd ℂ a)) /
38 (Real.sqrt (k.factorial : ℝ) : ℂ)) t := by
39 have he := (((hasDerivAt_const t (-(starRingEnd ℂ z * z) / 2)).sub
40 ((((hasDerivAt_id t).pow 2).mul_const (starRingEnd ℂ a * a)).div_const 2)).add
41 ((hasDerivAt_id t).mul_const (starRingEnd ℂ z * a))).cexp
42 have hp := ((hasDerivAt_const t (starRingEnd ℂ z)).sub
43 ((hasDerivAt_id t).mul_const (starRingEnd ℂ a))).pow k
44 convert (he.mul hp).div_const (Real.sqrt (k.factorial : ℝ) : ℂ) using 1 <;>
45 simp only [rayNumberKernel, id_eq, Pi.sub_apply, Pi.add_apply, Pi.pow_apply] <;> ring
46
47theorem sqrt_succ_factorial_ratio (k : ℕ) :
48 (Real.sqrt (k+1 : ℝ) : ℂ) / (Real.sqrt ((k+1).factorial : ℝ) : ℂ) =
49 1 / (Real.sqrt (k.factorial : ℝ) : ℂ) := by
50 rw [sqrt_factorial_succ_complex]
51 have h : (Real.sqrt (k+1 : ℝ) : ℂ) ≠ 0 := by
52 exact_mod_cast (ne_of_gt (Real.sqrt_pos.mpr (by positivity : (0 : ℝ) < k+1)))
53 field_simp
54
55theorem sqrt_pred_factorial_ratio (k : ℕ) :
56 (Real.sqrt (k : ℝ) : ℂ) / (Real.sqrt ((k-1).factorial : ℝ) : ℂ) =
57 (k : ℂ) / (Real.sqrt (k.factorial : ℝ) : ℂ) := by
58 cases k with
59 | zero => simp
60 | succ k =>
61 simp only [Nat.succ_eq_add_one, Nat.add_sub_cancel]
62 rw [sqrt_factorial_succ_complex]
63 have hs : (Real.sqrt (k+1 : ℝ) : ℂ)^2 = (k+1 : ℂ) := by
64 rw [← Complex.ofReal_pow, Real.sq_sqrt (by positivity)]
65 push_cast
66 rfl
67 have hp : (Real.sqrt (k+1 : ℝ) : ℂ) ≠ 0 := by
68 exact_mod_cast (ne_of_gt (Real.sqrt_pos.mpr (by positivity : (0 : ℝ) < k+1)))
69 apply (div_eq_div_iff (sqrt_factorial_complex_ne_zero k)
70 (mul_ne_zero hp (sqrt_factorial_complex_ne_zero k))).mpr
71 push_cast
72 linear_combination (Real.sqrt (k.factorial : ℝ) : ℂ) * hs
73
74theorem rayNumberKernel_hasDerivAt (a z t : ℂ) (k : ℕ) :
75 HasDerivAt (rayNumberKernel a z k)
76 (a * (Real.sqrt (k+1 : ℝ) : ℂ) * rayNumberKernel a z (k+1) t -
77 starRingEnd ℂ a * (Real.sqrt (k : ℝ) : ℂ) * rayNumberKernel a z (k-1) t) t := by
78 convert rayNumberKernel_hasDerivAt_raw a z t k using 1
79 simp only [rayNumberKernel]
80 generalize Complex.exp (-(starRingEnd ℂ z * z) / 2 - t ^ 2 * (starRingEnd ℂ a * a) / 2 +
81 t * (starRingEnd ℂ z * a)) = E
82 generalize starRingEnd ℂ z - t * starRingEnd ℂ a = b
83 have hu := sqrt_succ_factorial_ratio k
84 have hl := sqrt_pred_factorial_ratio k
85 simp only [div_eq_mul_inv] at hu hl ⊢
86 rw [pow_succ]
87 linear_combination (a * E * b^(k+1)) * hu - (starRingEnd ℂ a * E * b^(k-1)) * hl
88
89theorem numberKernel_ray_hasDerivAt (a z : ℂ) (k : ℕ) (t : ℝ) :
90 HasDerivAt (fun s : ℝ => numberKernel (s • a) z k)
91 (a * (Real.sqrt (k+1 : ℝ) : ℂ) * numberKernel (t • a) z (k+1) -
92 starRingEnd ℂ a * (Real.sqrt (k : ℝ) : ℂ) * numberKernel (t • a) z (k-1)) t := by
93 simp_rw [numberKernel_real_smul]
94 exact (rayNumberKernel_hasDerivAt a z (t : ℂ) k).comp_ofReal
95
96end Cloning.MultimodeCoherent