Section SE · From the algorithm to the deterministic dynamics
Proved in Lean
Lemma SE.9 (Residual derivatives)
In the setting of Lemma SB.4, let \(\mathsf h=\varpi d\) with \(\varpi\in[0,1]\), and regard the coefficients (SB.13) as functions of \(d\) with \(M_0,\mathsf u,\mathsf v\) fixed. Then
\begin{equation}\tag{SE.20}
\partial_d\alpha_1=\frac{\varpi\big[(1+\mathsf h\mathsf C)^2-s\mathsf h^2\mathsf U\mathsf V\big]}{\Lambda^2},\qquad
\partial_d\alpha_2=\frac{2\varpi\mathsf h\mathsf U(1+\mathsf h\mathsf C)}{\Lambda^2},\qquad
\partial_d\alpha_3=-\frac{2s\varpi\mathsf h\mathsf V(1+\mathsf h\mathsf C)}{\Lambda^2}.
\end{equation}
Let \(N=N'+\varpi\sum_{a\le B}d_a\,\mathsf u_a\tensor\mathsf v_a\), where \(N'\) and the vectors \(\mathsf u_a,\mathsf v_a\) do not depend on the scalars \(d_a\), and for each \(a\) let the quantities of Lemma SB.4 be computed with \((M_0,\mathsf h,\mathsf u,\mathsf v)=(N-\varpi d_a\mathsf u_a\tensor\mathsf v_a,\varpi d_a,\mathsf u_a,\mathsf v_a)\), with a superscript \((a)\). Then for real \((e_a)_{a\le B}\),
\begin{equation}\tag{SE.21}
\begin{aligned}
&\frac{\dif}{\dif\vartheta}\mathsf X_s\Big(N+\vartheta\varpi\sum_ae_a\mathsf u_a\tensor\mathsf v_a\Big)\Big|_{\vartheta=0}\\
&\qquad=\sum_ae_a\Big[\partial_d\alpha_3^{(a)}R_0^{(a)}(\mathsf u_a\tensor\mathsf u_a)\mathsf X_0^{(a)}+s\,\partial_d\alpha_1^{(a)}R_0^{(a)}(\mathsf u_a\tensor\mathsf v_a)\widetilde R_0^{(a)}\\
&\qquad\qquad-\partial_d\alpha_1^{(a)}\mathsf X_0^{(a)}(\mathsf v_a\tensor\mathsf u_a)\mathsf X_0^{(a)}-s\,\partial_d\alpha_2^{(a)}\mathsf X_0^{(a)}(\mathsf v_a\tensor\mathsf v_a)\widetilde R_0^{(a)}\Big].
\end{aligned}
\end{equation}
Proof.
With \(\partial_d\Lambda=2\varpi\mathsf C(1+\mathsf h\mathsf C)+2s\varpi\mathsf h\mathsf U\mathsf V\), the quotient rule applied to \(\alpha_1=\mathsf h(1+\mathsf h\mathsf C)/\Lambda\) gives the numerator
\[
\varpi\big[(1+2\mathsf h\mathsf C)\Lambda-\mathsf h(1+\mathsf h\mathsf C)\big(2\mathsf C(1+\mathsf h\mathsf C)+2s\mathsf h\mathsf U\mathsf V\big)\big]
=\varpi\big[(1+\mathsf h\mathsf C)^2-s\mathsf h^2\mathsf U\mathsf V\big],
\]
after inserting \(\Lambda=(1+\mathsf h\mathsf C)^2+s\mathsf h^2\mathsf U\mathsf V\) and collecting the terms in \((1+\mathsf h\mathsf C)^2\) and in \(s\mathsf h^2\mathsf U\mathsf V\). For \(\alpha_2=\mathsf h^2\mathsf U/\Lambda\) the numerator is \(\varpi\mathsf U[2\mathsf h\Lambda-\mathsf h^2\partial_d\Lambda/\varpi]=2\varpi\mathsf h\mathsf U(1+\mathsf h\mathsf C)\) by the same insertion, and \(\alpha_3\) is identical with \(-s\mathsf V\) in place of \(\mathsf U\).
The directional derivative is the sum of the partial derivatives in the scalars \(d_a\). For each \(a\), the minor \(N-\varpi d_a\mathsf u_a\tensor\mathsf v_a\) does not depend on \(d_a\), and (SC.18) writes \(\mathsf X_s(N)\) as \(\mathsf X_0^{(a)}\) plus the four rank-one terms with coefficients \(\alpha_i^{(a)}\). Differentiating in \(d_a\) replaces each coefficient by its derivative, and the chain rule multiplies by \(e_a\).
Uses
- Lemma SC.1 Deletion identities for the mixed resolvent
- Lemma SB.4 Rank-two deletion
Used by
- Lemma SE.10 Derivative coefficients
- Proposition SE.2 Causal resolvent reduction
Lean
Proved in Lean
Muon.Dynamics.lem_app_dyn_derivative_i source
theorem lem_app_dyn_derivative_i {m n : ℕ} (M0 : Mat m n) (ϖ s : ℝ) (u : Vec m) (v : Vec n)
(hs : 0 < s) (hϖ : ϖ ∈ Icc (0 : ℝ) 1) (d : ℝ) :
HasDerivAt (fun y : ℝ => alpha1 M0 (ϖ * y) u v s)
(ϖ * ((1 + (ϖ * d) * delC M0 u v s) ^ 2 - s * (ϖ * d) ^ 2 * delU M0 u s * delV M0 v s)
/ (delLambda M0 (ϖ * d) u v s) ^ 2) d ∧
HasDerivAt (fun y : ℝ => alpha2 M0 (ϖ * y) u v s)
(2 * ϖ * (ϖ * d) * delU M0 u s * (1 + (ϖ * d) * delC M0 u v s)
/ (delLambda M0 (ϖ * d) u v s) ^ 2) d ∧
HasDerivAt (fun y : ℝ => alpha3 M0 (ϖ * y) u v s)
(-(2 * s * ϖ * (ϖ * d) * delV M0 v s * (1 + (ϖ * d) * delC M0 u v s))
/ (delLambda M0 (ϖ * d) u v s) ^ 2) d := byMuon.Dynamics.lem_app_dyn_derivative_ii source
theorem lem_app_dyn_derivative_ii {m n B : ℕ} (Np N : Mat m n) (ϖ s : ℝ) (u : Fin B → Vec m)
(v : Fin B → Vec n) (d e : Fin B → ℝ) (hs : 0 < s) (hϖ : ϖ ∈ Icc (0 : ℝ) 1)
(hN : N = Np + ϖ • ∑ a, d a • outer (u a) (v a)) :
∀ i j, HasDerivAt (fun θ : ℝ => Xs (N + (θ * ϖ) • ∑ a, e a • outer (u a) (v a)) s i j)
(dXExpr N ϖ s d e u v i j) 0 := by