\chapter{The cavity interpolation and its tree laws}\label{sec:c7} This section and the next two prove \cref{prop:c7-closure}. Suppose that at a minimizing profile, the scalar response operator $J^{\scal}_{a,d}$ of \cref{sec:scalar-stability} satisfies $J^{\scal}_{a,d}\preceq(1+\eps_N)I$ with $\eps_N\le\rho/4$. The proposition states that the self-overlap variance $V=\int\Var(S_q)\,\nu(\dd q)$ then obeys $(3\rho/4)V\le C_{\rm cav}[N^{-1}+A+J+H_3]$, where $C_{\rm cav}$ depends only on $\beta$. In \cref{cor:c7-defect}, we deduce from it the bound on the defect $\calD_N(\rho)$ that is used in \cref{sec:b7}. The argument is a cavity interpolation on one site. We single out the last spin and move the variance of its couplings to the other $n=N-1$ spins into its auxiliary field. At the end of the interpolation, the last spin is independent of the others. By exchangeability, $V$ equals $n/N$ times the integrated covariance between the squared conditional magnetization of the last spin and the self-overlap of the remaining spins, up to an error of order $N^{-1}$. This covariance vanishes at the independent endpoint, and its value for the full system is its derivative there plus a Taylor remainder. In \cref{sec:c7-endpoint}, we show that this derivative is a multiple of the scalar response operator applied to the covariance of the self-overlap of the remaining spins, plus a nonpositive term and explicit errors (\cref{lem:linear}). We also bound the errors by $A$ and $J$ there (\cref{lem:cl-response}). In \cref{sec:c7-closure}, we compare the variance of this self-overlap at the independent endpoint with $V$, with coefficient one (\cref{lem:cl-star}). We then express $V$ through the expansion (\cref{lem:cav-trace}), bound the cubic moment that controls the remainder by $A$, $J$, and $H_3$ (\cref{lem:c7-thermal}), and close the resulting inequality. In this section, we set up the interpolation and the calculus that the next two sections use. In \cref{subsec:c7-row}, we define the cavity law $\Pp_u$, $0\le u\le1$, identify its two endpoints, and record a variance bound \eqref{eq:cl-BL} for the remaining spins. In \cref{subsec:c7-tree}, we represent products of conditional expectations by laws of finitely many descendants on marked trees. We show that the solution of the Parisi equation depends smoothly on the incident row and on the variance of the last field (\cref{lem:tree-regularity}). We compute the density of the tree laws (\cref{lem:tree-density}) and the responses \eqref{eq:nodeTheta} and \eqref{eq:nodeb} to these two parameters (\cref{lem:tree-responses}). From them, we derive an exact formula for the derivative of a tree moment in $u$ (\cref{lem:streaming}) and a comparison of tree moments at different values of $u$ (\cref{cor:comparison}). In \cref{subsec:c7-three}, we bound integrated products of three overlap defects by a cubic moment $\mathcal M_3(u)$ (\cref{lem:cav-threeproducts}), and deduce a bound on the Taylor remainder (\cref{lem:remainder}). We use the generalized law of \cref{sec:gauss}, with its variance bound (\cref{lem:fnd-posterior}) and its heat identity (\cref{lem:fnd-path-heat}). We also use the scalar law \eqref{eq:sc-pde} with \cref{lem:cl-scalar}, and the differentiation and approximation arguments of \cite[Sections~2.1, 2.3, and~2.6]{AL}. The results of this section are used as follows. The identity \eqref{eq:nodeTheta} and the density \eqref{eq:treedensity} with one leaf enter the proof of \cref{lem:linear}. The bound \eqref{eq:cl-BL} and \cref{cor:comparison} enter the proofs of \cref{lem:cl-response,lem:c7-thermal}. The bound of \cref{lem:cav-threeproducts} enters the proof of \cref{lem:cl-star}, and \cref{lem:remainder} enters the proofs of \cref{lem:cav-trace} and \cref{prop:c7-closure}. The cavity method originates in the physics literature \cite{MezardParisiVirasoro1986,MezardParisiVirasoro1987}. We use its rigorous form on one site, the framework of differentiation, comparison, and contraction in \cite[Section~1.6]{TalagrandVolI2011} (see Lemmas~1.6.3--1.6.4 and Propositions~1.6.5--1.6.6 there). An expansion on one site for hierarchical Gaussian laws appears in \cite[Lemma~2.2]{OpenAILimitingLaw}. There, a site is chosen by exchangeability and deleted, and its Gaussian kernels are interpolated to those of an independent scalar model on one site. The linear cavity kernel is half of a connected correlation of four spins of the removed site \cite[(A8)]{OpenAILimitingLaw}, and a linear equation with this kernel is inverted under a gap condition on the scalar response in \cite[Proposition~5.1]{OpenAILimitingLaw}. The tree laws of \cref{subsec:c7-tree} and their calculus are adapted from \cite[Section~2]{OpenAIFluctuationScale}; we give the precise references there. \paragraph{Standing assumptions.} Throughout \cref{part:cavity}, we fix $N\ge2$ and write $n=N-1$. We also fix $0<\rho\le1$, $t=1-\rho$, $c=\beta^2\rho$, and $00$ for every $u$. For $x\in\R^n$ and $y\in\R$, let \begin{gather*} \mathcal E(\sigma;x,y)=\mathcal E^-(\tau) +\sqrt{\frac{\alpha u}{n}}\;\epsilon\sum_{i=1}^ng_{iN}\tau_i +x\cdot\tau+y\epsilon, \\ \mathcal E^-(\tau)=\frac{\beta\sqrt t}{\sqrt N} \sum_{1\le i0$ and $b(u)\ge c$. The coefficient $(\alpha u/n)^{1/2}$ vanishes at $u=0$, which the generalized law allows. We use \cref{lem:fnd-posterior} for this law, with the first $n$ coordinates selected. It implies that $M_q=\nabla_xU(q,X_q,Y_q)$ and $m_N(q)=\partial_yU(q,X_q,Y_q)$. Since principal submatrices preserve the order $a(q)C_q\preceq H_q\preceq C_q$, it also implies that $a(q)C_q^-\preceq H_q^-\preceq C_q^-$, and in particular that $0\preceq H_q^-\preceq C_q^-$. Taking $k=\psi$ in the two inequalities in \eqref{eq:fnd-posterior}, we find that for every $u\in[0,1]$ and every deterministic $\psi\in L^2(\nu)$, \begin{equation}\label{eq:cl-BL} \Var_u\Bigl(\int\psi(q)A_q^-\,\nu(\dd q)\Bigr) \le4\int\psi(q)^2j_q^-(u)\,\nu(\dd q). \end{equation} \section{Laws of finitely many descendants}\label{subsec:c7-tree} Derivatives in $u$ produce products of conditional expectations at several levels. We represent them by additional terminal spins, called leaves, under a joint law in which deleting a leaf does not change the law of the others. The hierarchical background of such laws is Ruelle's probability cascades \cite{Ruelle1987}; see \cite[Chapter~2]{Panchenko2013Book}. An earlier hierarchical Gaussian change of measure appears in \cite[Theorem~4.3, (4.25)--(4.26)]{BolthausenSznitman1998}. Normalized finite replica trees of the present kind were developed in \cite[Section~2]{OpenAIFluctuationScale}, together with the differentiation of their moments by attaching new leaves and the resulting Taylor and comparison bounds. They are also used in \cite[Sections~2.1--2.3]{OpenAILimitingLaw}. In \cite{OpenAIFluctuationScale}, the covariance differentiation formula is Proposition~2.5, the attachment rules and their uniform variation bounds are Lemma~2.6, the bounds on the levels at which new pairs split are Lemma~2.8, and the Taylor and comparison bounds are Lemma~2.9. We derive below the versions that we need for the cavity law, with its root tilt and an arbitrary profile, including its atoms. \subsection{Marked trees} \begin{definition}[Marked trees and tree laws]\label{def:tree-marked} A \emph{marked tree} $\mathcal T$ with $k\ge1$ leaves is a finite rooted tree whose vertices $v$ carry deterministic levels $q_v\in[0,1]$, with the following properties. The root has level $0$, and levels increase strictly along every edge. Every vertex at a level in $(0,1)$ has at least two outgoing edges. The vertices at level $1$ have no outgoing edges; we call them terminal points. Finally, $k$ labeled leaves $\mathsf a=1,\ldots,k$ are attached to the terminal points, and every terminal point carries at least one leaf. Given $u\in[0,1]$, the \emph{tree law} $\Pp_{\mathcal T,u}$, with expectation $\E_{\mathcal T,u}$, is constructed as follows. The couplings are drawn once from their tilted law under $\Pp_u$. Given the couplings, the field starts at the origin at the root and follows the diffusion of \cref{subsec:c7-row} along each edge. At each vertex, it continues along the outgoing edges in conditionally independent ways. Given the couplings and the field, the leaves carry conditionally independent spins $\sigma^{\mathsf a}=(\tau^{\mathsf a},\epsilon_{\mathsf a})$. The spin $\sigma^{\mathsf a}$ is drawn with probabilities proportional to $e^{\mathcal E(\sigma;X^{\mathsf a}_1,Y^{\mathsf a}_1)}$, where $(X^{\mathsf a}_1,Y^{\mathsf a}_1)$ is the field at the terminal point of $\mathsf a$. We write $\E_{k,q,u}$ for the tree law of $k$ leaves that all split at the level $q$. \end{definition} The field is defined at every point $v$ of $\mathcal T$, that is, at every vertex and at every point of an edge. We write $(X_v,Y_v)$ for it and $q_v$ for the level of $v$. Two points on different branches at the same level are different points, with different fields. If $k\ge2$ and $00$. We write $\Lambda_b=\operatorname{diag}(cI_n,b)$. We keep the other couplings $g_{ij}$, $i0$. Then $U$ has derivatives of every order in $(\theta,x,y)$. Each derivative of positive order is bounded by a constant depending only on $N$ and its order. This bound is uniform in the couplings, $\theta$, $b$, $(q,x,y)$, and the profile, and each first derivative is bounded by one in absolute value. The function $U$ and all these derivatives are jointly continuous in $(b,q,\theta,x,y)\in(0,\infty)\times[0,1]\times\R^n\times\R^n\times\R$. Finally, writing $\nabla$ for the gradient in $(x,y)$, we have for $0\le r\le h\le1$ that \begin{equation}\label{eq:tree-integrated-pde} U(r,x,y)-U(h,x,y)=\frac12\int_r^h\bigl[\Tr(\Lambda_b\nabla^2U) +a(q)\,\nabla U^T\Lambda_b\nabla U\bigr](q,x,y)\dd q. \end{equation} \end{lemma} \begin{proof} The proof has three steps. We first prove the bounds for step profiles, using the density of the future of the field. We then pass to arbitrary profiles with the approximation of \cite[Section~2.6]{AL}, and finally we prove the continuity in $q$ and $b$. \paragraph{Step 1: step profiles.} Let $\mu$ be a step profile. The coefficients of \eqref{eq:cavityPDE} do not depend on $(x,y)$. Translating the starting point of the field by $(x',y')$ has the same effect as adding $x'\cdot\tau+y'\epsilon$ to the terminal exponent. It follows that every derivative in $(\theta,x,y)$ is a derivative at $z=0$ with respect to parameters $z_j$ of the terminal exponent \[ \mathcal E_z(\sigma;x,y)=\mathcal E(\sigma;x,y)+\sum_jz_j\eta_j(\sigma), \] where the features $\eta_j$ range over $\tau_i\epsilon$, $\tau_i$ ($i\le n$), and $\epsilon$. Note that $|\eta_j|\le1$. Let $U_z$ be the corresponding solution. We fix a level $q$, refine the grid of the profile so that it contains $q$, and fix the field $(x,y)$ at level $q$. On a grid interval $[q_\ell,q_{\ell+1})$ with $a=a_\ell>0$, the Hopf--Cole form of the equation is $e^{a_\ell U_z(q_\ell)}=\E e^{a_\ell U_z(q_{\ell+1})}$, where the expectation is over a Gaussian increment of covariance $(q_{\ell+1}-q_\ell)\Lambda_b$. The transition of the diffusion is this Gaussian transition tilted by $e^{a_\ell(U_z(q_{\ell+1})-U_z(q_\ell))}$. If $a_\ell=0$, it is the Gaussian transition. We multiply these factors and the Gibbs probability $e^{\mathcal E_z(\sigma)-U_z(1)}$, as in \cite[Section~2.1, (2.1)]{AL}. The coefficient of $U_z$ at a grid point $q_\ell>q$ is $a_{\ell-1}-a_\ell=-\nu(\{q_\ell\})$, and at level $1$ it is $a(1-)-1=-\nu(\{1\})$. We find that given the field at level $q$, the future increments of the field and the spin have the density \begin{equation}\label{eq:tree-future-density} L_z=\exp\Bigl\{\mathcal E_z(\sigma;Z_1)-a(q)U_z(q,Z_q) -\int_{(q,1]}U_z(r,Z_r)\,\nu(\dd r)\Bigr\} \end{equation} with respect to driftless Gaussian increments of covariance $\Lambda_b$ and counting measure on $\sigma$. Here $Z_r$ is the field at level $r$. We write $\E_z$ for the expectation under this density and $\ell_z=\log L_z$. On a grid interval with $a_\ell>0$, we differentiate $e^{a_\ell U_z(q_\ell)}=\E e^{a_\ell U_z(q_{\ell+1})}$. This shows that $\partial_{z_j}U_z(q_\ell)$ is the expectation of $\partial_{z_j}U_z(q_{\ell+1})$ under the transition of the diffusion, and the same holds if $a_\ell=0$. At level $1$, $\partial_{z_j}U_z(1)$ is the Gibbs mean of $\eta_j$. Iterating, we obtain \begin{equation}\label{eq:tree-first-derivative} \partial_{z_j}U_z(q)=\E_z\eta_j,\qquad\text{so that}\qquad |\partial_{z_j}U_z|\le1 . \end{equation} Since $a(q)+\nu((q,1])=1$, this implies that $|\partial_{z_j}\ell_z|\le2$. Further, if all derivatives of $U_z$ of some order $m'\ge2$ are bounded by $C_{m'}$, then all derivatives of $\ell_z$ of order $m'$ are bounded by $C_{m'}$. Since the reference law in \eqref{eq:tree-future-density} does not depend on $z$, we may differentiate \eqref{eq:tree-first-derivative} under the expectation. For directions $j,j_1,\ldots,j_m$, we have \[ \partial_{z_{j_1}}\cdots\partial_{z_{j_m}}\partial_{z_j}U_z(q) =\E_z\Bigl[\eta_j\sum_\pi\prod_{B\in\pi}\partial_B\ell_z\Bigr], \] where $\pi$ runs over the partitions of $\{1,\ldots,m\}$ and $\partial_B$ is the derivative in the directions $j_i$, $i\in B$. By induction on $m$, we find that every derivative of order $m+1$ in the coordinates $z_j$ is bounded by a constant depending only on $m$. There are $2n+1$ coordinates, and this proves the bounds of the lemma for step profiles. \paragraph{Step 2: arbitrary profiles.} As in \cite[Section~2.6.2]{AL}, we approximate $\mu$ by step profiles $\mu_m=s\delta_0+\nu_m$ that converge weakly to $\mu$ and whose cumulative functions $a_m$ converge to $a$ in $L^1(0,1)$. Let $U_m$ be the corresponding solutions. Following the proof of \cite[(2.19)]{AL}, with $cI_N$ replaced by $\Lambda_b$ and with the first derivatives bounded by one, we obtain \[ \sup|U_m-U|\le\frac{\Tr\Lambda_b}2\,\|a_m-a\|_{L^1(0,1)}, \] where the supremum is over $q,x,y$, the couplings, and $\theta$. For a function $f$ of one real variable and every $h>0$, we have $\|f'\|_\infty\le2\|f\|_\infty/h+(h/2)\|f''\|_\infty$. Using this inequality in one direction at a time for $U_m-U_{m'}$ and then for its derivatives, together with the bounds of Step 1, we find that every derivative of $U_m$ in $(\theta,x,y)$ converges uniformly. This implies that $U$ has derivatives of every order in $(\theta,x,y)$, that they are the uniform limits of those of $U_m$, and that they satisfy the same bounds. Each $U_m$ satisfies \eqref{eq:tree-integrated-pde} with $a_m$ in place of $a$. As $a_m\to a$ in $L^1$, the identity passes to the limit. \paragraph{Step 3: continuity.} For a step profile, the derivatives of $U$ in $(\theta,x,y)$ satisfy, on each grid interval, the equations obtained by differentiating \eqref{eq:cavityPDE}. By Step 1, their right sides are bounded by constants depending only on $N$, $c$, $b$, and the order. More precisely, for every multi-index $\kappa$ in $(\theta,x,y)$, including $\kappa=0$, differentiation and the product rule give \[ \sup\bigl|\partial_qD^\kappa U_m\bigr|\le C_{N,|\kappa|}\,(nc+b) \] on each grid interval, where $C_{N,|\kappa|}$ depends only on $N$ and $|\kappa|$. The derivatives are continuous across the grid points, so the same Lipschitz bound in $q$ holds on $[0,1]$, independently of the step approximation, and it passes to the limit. We also find that $U$ and its derivatives in $(\theta,x,y)$ are Lipschitz in $q$, with constants depending only on $N$, the order, and $nc+b$. For the continuity in $b$, let $U_b$ and $U_{b'}$ be the solutions for $b,b'>0$ and the same profile. The difference $U_b-U_{b'}$ vanishes at $q=1$, because both solutions have the same terminal value. Subtracting their equations, we see that it satisfies a linear backward equation with diffusion matrix $\Lambda_{b'}$, a bounded drift, and the source term $\frac12(b-b')\bigl[\partial_{yy}U_b+a(\partial_yU_b)^2\bigr]$. By Step 1, we have $|\partial_{yy}U_b|\le2$ and $|\partial_yU_b|\le1$. The backward representation then gives $\sup|U_b-U_{b'}|\le\frac32|b-b'|$, first for step profiles and then, by Step 2, for $\mu$. Using the interpolation inequality of Step 2 again, we find that every derivative in $(\theta,x,y)$ is continuous in $b$, uniformly in the other variables. These derivatives are also Lipschitz in $(\theta,x,y)$ and in $q$, so they are jointly continuous. \end{proof} \subsection{The density of a tree law} Let $\mathcal T$ be a marked tree. For a vertex $v$, let $l_v$ be the number of its outgoing edges if $q_v<1$, and the number of leaves at $v$ if $v$ is a terminal point. We define the measure $\omega$ on the points of $\mathcal T$ as follows. On the interior of an edge whose endpoints have levels $r0$, as in \cref{lem:tree-regularity}. We then take the density with respect to the Gaussian law of the couplings $g_{ij}$, $i0$. Then for every $q\in[0,1]$ and $i\le n$, \begin{equation}\label{eq:nodeTheta} \partial_{\theta_i}U(q)=\pi_i(q),\qquad \partial_{\theta_i}^2U(q) =1-a(q)\pi_i(q)^2-\int_{(q,1]}\E[\pi_i(r)^2\mid\calG_q]\,\nu(\dd r), \end{equation} \begin{equation}\label{eq:tree-node-y} \partial_yU(q)=m_N(q),\qquad \partial_{yy}U(q) =1-a(q)m_N(q)^2-\int_{(q,1]}\E[m_N(r)^2\mid\calG_q]\,\nu(\dd r). \end{equation} Further, the derivative of $U$ in $b$ exists and, for each fixed $q$, is jointly continuous in $(b,\theta,x,y)$. It satisfies \begin{equation}\label{eq:nodeb} \partial_bU(q)=\frac12\Bigl[(1-q)-\int_{(q,1]}(r-q) \E[m_N(r)^2\mid\calG_q]\,\nu(\dd r)\Bigr]. \end{equation} In particular, $0\le\partial_bU(q)\le(1-q)/2$. \end{lemma} For a single row, \eqref{eq:nodeTheta} and \eqref{eq:tree-node-y} are the conditional form of \cite[(2.10)]{AL}. The identity \eqref{eq:nodeb} is the conditional, one-coordinate form of the field-variance computation following \cite[(2.11)]{AL}. Under $\Pp_u$ and the tree laws, the identities hold with $\calG_q$ generated by the couplings and the field, with $\theta=(\alpha u/n)^{1/2}(g_{1N},\ldots,g_{nN})$ and $b=b(u)$. \begin{proof} The proof has four steps. We prove \eqref{eq:nodeTheta} and \eqref{eq:tree-node-y} for step profiles with the density \eqref{eq:tree-future-density}, and we pass to arbitrary profiles with the exact density of \cref{lem:tree-density}. We then treat the derivative in $b$ in the same two stages. \paragraph{Step 1: step profiles.} Let $\mu$ be a step profile, and let $\eta$ be one of the features $\tau_i\epsilon$ and $\epsilon$, with parameter $z$. By \eqref{eq:tree-first-derivative}, we have $\partial_zU(r)=\E[\eta\mid\calG_r]$ for every $r$, and we write $\varpi(r)$ for this conditional expectation. Differentiating \eqref{eq:tree-first-derivative} once more under the density \eqref{eq:tree-future-density}, we find \[ \partial_z^2U(q)=\E\bigl[\eta\,\partial_z\ell_z\bigm|\calG_q\bigr] =\E[\eta^2\mid\calG_q]-a(q)\varpi(q)^2 -\int_{(q,1]}\E\bigl[\eta\,\partial_zU(r)\bigm|\calG_q\bigr]\nu(\dd r). \] For $r\ge q$, by the tower property, we have $\E[\eta\,\partial_zU(r)\mid\calG_q]=\E[\varpi(r)\E[\eta\mid\calG_r]\mid\calG_q] =\E[\varpi(r)^2\mid\calG_q]$. Since $\eta^2=1$, this proves \eqref{eq:nodeTheta} for $\eta=\tau_i\epsilon$ and \eqref{eq:tree-node-y} for $\eta=\epsilon$. Note that $\mu([0,q])=a(q)$ and $\mu=\nu$ on $(q,1]$. We record the result in the form \begin{equation}\label{eq:tree-atom-safe} \partial_z^2U(q)=1-\int_{[0,1]}\E\bigl[\varpi(q\vee r)^2\bigm|\calG_q\bigr] \,\mu(\dd r). \end{equation} \paragraph{Step 2: arbitrary profiles.} Let $\mu_m\Rightarrow\mu$ be the step profiles of the proof of \cref{lem:tree-regularity}. Applying the proof of \cref{lem:tree-density} to the single edge from $q$ to $1$ followed by the Gibbs probability, we see that \eqref{eq:tree-future-density} with $z=0$ is the density of the future given the field at $q$ for every profile. Its exponent equals $\mathcal E(\sigma;Z_1)-\int_{[0,1]}U(q\vee r,Z_{q\vee r})\,\mu(\dd r)$, and the integrand is continuous in $r$. The reference law does not depend on the profile, $U_m\to U$ uniformly, and $\mu_m\Rightarrow\mu$. Then the densities for $\mu_m$ converge pointwise to the density for $\mu$. Writing $L_m$ for the density for $\mu_m$, we have \[ \log L_m=\mathcal E(\sigma;Z_1)-U_m(1,Z_1) +\int_{[0,1]}\bigl[U_m(1,Z_1)-U_m(q\vee r,Z_{q\vee r})\bigr]\, \mu_m(\dd r), \] since $\mu_m([0,1])=1$. The first term is nonpositive, because $U_m(1,\cdot)$ is the logarithm of a sum that contains $e^{\mathcal E(\sigma;\cdot)}$. Using this, the bounds on the first derivatives in \cref{lem:tree-regularity}, and the Lipschitz bound in $q$ from Step~3 of its proof, we find \[ \log L_m\le C_N\Bigl(nc+b+\sup_{q\le r\le1}|Z_r|\Bigr), \] where $C_N$ depends only on $N$. The same bound holds for the density for $\mu$, and the densities have a common Gaussian integrable envelope. They therefore converge in $L^1$ of the reference law, and expectations of bounded functions converge. The left side of \eqref{eq:tree-first-derivative} converges by \cref{lem:tree-regularity}, so $\partial_zU(r)=\E[\eta\mid\calG_r]$ also for $\mu$. Next, we consider the integrand $r\mapsto\E[\varpi(q\vee r)^2\mid\calG_q]$ in \eqref{eq:tree-atom-safe}. Its value for $\mu_m$ differs from its value for $\mu$ by at most the $L^1$ distance of the two densities plus twice the supremum of the difference of the first derivatives. It therefore converges uniformly in $r$. The limit is continuous in $r$, because the first derivatives are jointly continuous by \cref{lem:tree-regularity}. Together with the weak convergence of $\mu_m$, this proves \eqref{eq:tree-atom-safe}, and hence \eqref{eq:nodeTheta} and \eqref{eq:tree-node-y}, for $\mu$. In these identities, an atom of $\nu$ at $q$ is counted in $a(q)$, and an atom at $1$ is counted in the integral. \paragraph{Step 3: the derivative in $b$ for step profiles.} Let $\mu$ be a step profile and $q_\ell\le q0$, and let $\phi=e^{a_\ell U}$. On this interval, $\phi$ solves the backward heat equation $\partial_q\phi+\frac12\Tr(\Lambda_b\nabla^2\phi)=0$. In particular, $\phi(q)$ is the Gaussian average of $\phi(q_{\ell+1})$ over an increment of covariance $(q_{\ell+1}-q)\Lambda_b$. We differentiate in $b$, using the Gaussian heat identity in the last coordinate, and divide by $a_\ell\phi(q)$. We obtain \[ \partial_bU(q)=\E\bigl[\partial_bU(q_{\ell+1})\bigm|\calG_q\bigr] +\frac{q_{\ell+1}-q}2\, \E\bigl[(\partial_{yy}U+a_\ell(\partial_yU)^2)(q_{\ell+1})\bigm|\calG_q\bigr]. \] The function $\partial_{yy}\phi=a_\ell(\partial_{yy}U+a_\ell(\partial_yU)^2)\phi$ also solves the backward heat equation. Further, the transition of the field from $q$ to $r\le q_{\ell+1}$ is the Gaussian transition tilted by $\phi(r)/\phi(q)$. It follows that $\E[(\partial_{yy}U+a_\ell(\partial_yU)^2)(r)\mid\calG_q]$ does not depend on $r\in[q,q_{\ell+1}]$, and that the last term equals $\frac12\int_q^{q_{\ell+1}}\E[(\partial_{yy}U+a(\partial_yU)^2)(r)\mid\calG_q]\dd r$. The case $a_\ell=0$ is the same with $\phi=U$. Iterating over the grid intervals and using $\partial_bU(1)=0$, we find \begin{equation}\label{eq:tree-b-response} \partial_bU(q)=\frac12\int_q^1 \E\bigl[\partial_{yy}U(r)+a(r)\,m_N(r)^2\bigm|\calG_q\bigr]\dd r, \end{equation} where we used that $\partial_yU(r)=m_N(r)$. \paragraph{Step 4: the derivative in $b$ for arbitrary profiles.} By \eqref{eq:tree-node-y}, the integrand in \eqref{eq:tree-b-response} lies in $[0,1]$. Let $R(b)$ be the right side of \eqref{eq:tree-b-response} for $\mu$. For the step profiles $\mu_m$, the right side of \eqref{eq:tree-b-response} converges to $R(b)$ at each fixed $b$. Indeed, the densities converge as in Step 2, the derivatives converge uniformly, and $a_m\to a$ in $L^1(0,1)$. These expressions are bounded by $1/2$. By dominated convergence in the identity $U_m(b_2)-U_m(b_1)=\int_{b_1}^{b_2}\partial_bU_m\dd b$, we obtain $U(b_2)-U(b_1)=\int_{b_1}^{b_2}R(b)\dd b$. We write the last-field increments of the reference law as $\sqrt b$ times a fixed Brownian motion. Using \cref{lem:tree-regularity} and dominated convergence, we then see that, for each fixed $q$, $R$ is jointly continuous in $(b,\theta,x,y)$. It follows that $\partial_bU$ exists, equals $R$, and satisfies \eqref{eq:tree-b-response} for $\mu$. Inserting \eqref{eq:tree-node-y} at level $r$ and using the tower property, we have \[ \partial_bU(q)=\frac12\int_q^1\Bigl(1-\int_{(r,1]} \E[m_N(\ell)^2\mid\calG_q]\,\nu(\dd\ell)\Bigr)\dd r . \] By Fubini's theorem, we have $\int_q^1\dd r\int_{(r,1]}F(\ell)\,\nu(\dd\ell) =\int_{(q,1]}(\ell-q)F(\ell)\,\nu(\dd\ell)$ for bounded $F\ge0$, and \eqref{eq:nodeb} follows. Finally, the integral in \eqref{eq:nodeb} lies between $0$ and $(1-q)\nu((q,1])\le1-q$, which gives $0\le\partial_bU(q)\le(1-q)/2$. \end{proof} \subsection{Differentiation in the interpolation parameter} For a point $v$ of $\mathcal T$, we write $\hat v$ and $\check v$ for new leaves whose paths leave the path through $v$ at the level $q_v$. If $v$ is an interior point of an edge, the extended tree has a new vertex at $v$. If $v$ is a vertex, the new edge starts at $v$, and if $v$ is a terminal point, the new leaf is attached there. Distinct new leaves are conditionally independent, also when they are attached at the same point. For $r>q_v$, we write $\hat r$ and $\check r$ for two new leaves that follow a common new branch from $v$ to the level $r$ and split there. Given the couplings and the field of $\mathcal T$, a new branch from $v$ is a continuation of the diffusion from the field at $v$, and it is independent of everything else. Let $F$ be a bounded function of the spins of $\mathcal T$, and let $G,G'$ be bounded functions of one spin. Then \begin{equation}\label{eq:tree-replacement} \begin{aligned} \E\bigl[F\,G(\sigma^{\hat v})\bigr] &=\E_{\mathcal T,u}\bigl[F\,\E[G(\sigma)\mid\calG_{q_v}](v)\bigr],\\ \E\bigl[F\,G(\sigma^{\hat r})G'(\sigma^{\check r})\bigr] &=\E_{\mathcal T,u}\Bigl[F\,\E\bigl[\E[G(\sigma)\mid\calG_r]\, \E[G'(\sigma)\mid\calG_r]\bigm|\calG_{q_v}\bigr](v)\Bigr]. \end{aligned} \end{equation} Here the left sides are taken under the extended trees. A conditional expectation under $\Pp_u$ given $\calG_{q_v}$ is a function of the couplings and of the field at level $q_v$, and $(v)$ means that it is evaluated at the couplings and at the field at $v$. In the same way, two new leaves $\hat v$ and $\check w$ attached at $v$ and $w$ represent the product of the two conditional expectations, evaluated at $v$ and at $w$. Let $\varphi_{\mathsf{ab}}$ be a quantity attached to each pair of distinct leaves of an extended tree. For a bounded function $F$ of the spins of $\mathcal T$, we define the five-pattern sum \[ \begin{aligned} \mathfrak S_\varphi(F)={}& \sum_{\mathsf a\ne\mathsf b}\E(F\epsilon_{\mathsf a}\epsilon_{\mathsf b} \varphi_{\mathsf{ab}}) -2\sum_{\mathsf a,v}\omega_v\E(F\epsilon_{\mathsf a}\epsilon_{\hat v} \varphi_{\mathsf a\hat v}) +\sum_{v,w}\omega_v\omega_w\E(F\epsilon_{\hat v}\epsilon_{\check w} \varphi_{\hat v\check w})\\ &+\sum_v\omega_va(q_v)\E(F\epsilon_{\hat v}\epsilon_{\check v} \varphi_{\hat v\check v}) +\sum_v\omega_v\int_{(q_v,1]}\E(F\epsilon_{\hat r}\epsilon_{\check r} \varphi_{\hat r\check r})\,\nu(\dd r). \end{aligned} \] The sums run over leaves $\mathsf a,\mathsf b$ of $\mathcal T$ and points $v,w$ of $\mathcal T$, and the weights $\omega$ are those of $\mathcal T$. We take each expectation under the extended tree that contains the leaves involved. We use this sum with $\varphi_{\mathsf{ab}}=R^-_{\mathsf{ab}}$, with $\varphi_{\mathsf{ab}}=q_{\mathsf{ab}}$, and with $\varphi_{\mathsf{ab}}=\Delta_{\mathsf{ab}}$. Then $\mathfrak S_\Delta=\mathfrak S_{R^-}-\mathfrak S_q$, and $\epsilon_{\mathsf a}\epsilon_{\mathsf b}\Delta_{\mathsf{ab}}=D_{\mathsf{ab}}$. The following table lists the five patterns. Its last column gives the level $q_{\mathsf{ab}}$ of the pair. \begin{center} \small \begin{tabular}{@{}llll@{}} \toprule pair of leaves & new leaves & coefficient & level of the pair\\ \midrule two leaves $\mathsf a\ne\mathsf b$ of $\mathcal T$ & none & $1$ & $q_{\mathsf{ab}}$\\ a leaf $\mathsf a$ and a leaf attached at $v$ & $\hat v$ & $-2\,\omega_v$ & $q_{\mathsf a\hat v}$\\ leaves attached at $v$ and at $w$ & $\hat v,\check w$ & $\omega_v\omega_w$ & $q_{\hat v\check w}$\\ two leaves attached at $v$ & $\hat v,\check v$ & $a(q_v)\,\omega_v$ & $q_v$\\ two leaves splitting at $r>q_v$ & $\hat r,\check r$ & $\omega_v\,\nu(\dd r)$ & $r$\\ \bottomrule \end{tabular} \end{center} \begin{lemma}[Differentiation under the tree law]\label{lem:streaming} Let $\mu$ be a deterministic profile, $\mathcal T$ a marked tree with $k$ leaves, and $F$ a bounded function of the spins of its leaves. Then $u\mapsto\E_{\mathcal T,u}F$ belongs to $C^2([0,1])$, with one-sided derivatives at the endpoints, and \begin{align} \frac{\dd}{\dd u}\E_{\mathcal T,u}F=\frac\alpha2\bigg[& \sum_{\mathsf a\ne\mathsf b}\E(FD_{\mathsf{ab}}) -2\sum_{\mathsf a,v}\omega_v\E(FD_{\mathsf a\hat v}) +\sum_{v,w}\omega_v\omega_w\E(FD_{\hat v\check w})\nonumber\\ &+\sum_v\omega_va(q_v)\E(FD_{\hat v\check v}) +\sum_v\omega_v\int_{(q_v,1]}\E(FD_{\hat r\check r})\,\nu(\dd r) \nonumber\\ &+s\,\E_{\mathcal T,u}F\int\E_{2,r,u}D_{12}\,\nu(\dd r)\bigg]. \label{eq:streaming} \end{align} The sums run over leaves $\mathsf a,\mathsf b$ and points $v,w$ of $\mathcal T$, with the weighted sums interpreted as integrals against $\omega$ as above. The first five expectations are taken under extended trees, and the last term is a product of expectations over independent copies. The absolute coefficients in the bracket sum to at most $4k^2+2k+1$. The second derivative is obtained by applying the same formula to each tree moment on its right side, and the product rule to independent products of moments. \end{lemma} In the notation above, \eqref{eq:streaming} reads $\frac{\dd}{\dd u}\E_{\mathcal T,u}F=\frac\alpha2[\mathfrak S_\Delta(F) +s\,\E_{\mathcal T,u}F\int\E_{2,r,u}D_{12}\,\nu(\dd r)]$. \begin{proof} If $\alpha=0$, the law does not depend on $u$, and both sides vanish. Let $\alpha>0$. The proof has five steps. We check that \cref{lem:fnd-path-heat} applies, and we compute the contributions of the row and of the last field to the derivative of the unnormalized moment. We then compute the derivative of the normalizer. Finally, we bound the coefficients and prove the $C^2$ regularity. \paragraph{Step 1: the heat identity.} By \cref{lem:tree-density}, we have $\E_{\mathcal T,u}F=Z_s(u)^{-1}\E_{\rm ref}[F\mathscr D_{\mathcal T}]$, where $\E_{\rm ref}$ denotes integration against the reference measure of that lemma. We write the row as $\theta=(\alpha u/n)^{1/2}(g_{iN})_{i\le n}$, and we use \cref{lem:fnd-path-heat} on $I=[0,1]$ with the following data. The finite coordinates are the entries of $\theta$, with variances $\alpha u/n$. The field paths are the $n+1$ coordinates of the driftless field on the edges of $\mathcal T$. For an edge $e$ with endpoint levels $r_e0$. The clocks are affine in $u$, and they are strictly increasing in $v$, because $c>0$, $b(u)\ge c$, and every edge has positive length. \item \textup{(A2)}: the covariance of the last component at two field points $v,w$ is $b(u)h(v,w)$, where $h(v,w)$ is the level of the last common point of the paths from the root to $v$ and to $w$. For the other components, it is $c\,h(v,w)$. Hence $K$ is affine in $u$, with $\dot K=(\alpha/n)I_n$ on the row block, $\dot K=-\alpha h$ on the last-field block, and $\dot K=0$ elsewhere. These kernels are continuous. \item \textup{(A3)}: $\Phi=F$ is bounded and $\dot\Phi=0$. The explicit derivative of $\ell$ comes from $b(u)$ in $U$, so that $\dot\ell=-b'(u)\sum_v\omega_v\partial_bU(v)=\alpha\sum_v\omega_v \partial_bU(v)$. The levels $q_v$ and the finite measure $\omega$ are fixed. Using the fixed-level continuity and uniform bound of \cref{lem:tree-responses}, together with dominated convergence against $\omega$, we see that $\dot\ell$ is continuous in $(u,G)$; it is bounded by $\alpha k/2$. If we treat each rest coupling $g_{ij}$ as an additional source parameter with bounded feature $\beta\sqrt{t/N}\,\tau_i\tau_j$ in Step~1 of the proof of \cref{lem:tree-regularity}, we obtain joint continuity of $U$ and its spatial derivatives also in the rest couplings. The fixed-level response formula of \cref{lem:tree-responses} then gives joint continuity of $\partial_bU$ in those couplings by dominated convergence, using the uniform bound of that lemma. Thus $\ell$ and $\dot\ell$ are jointly continuous in $(u,G,g)$, as required by \textup{(A3)}. The first derivatives of $U$ in the row and in the field are bounded by one. Its derivative in $g_{ij}$, $iq_v$ only decrease these measures. For every Borel set $B$, the marginal of the level $r_{\rm new}$ of a new mark therefore satisfies \[ \mathfrak m_{i+1}(r_{\rm new}\in B) \le C\Bigl[\mathfrak m_i(1)\,\nu(B)+\sum_{r'}\mathfrak m_i(r'\in B)\Bigr] \le C_{i+1}\,\nu(B), \] where $C$ depends only on $k_0$ and $i$. This completes the induction. \paragraph{Step 2: levels of pairs.} In a tree of such a term, every vertex with at least two outgoing edges or leaves lies at the level of a mark. This level is the original split level $p$, a level $q_v$ at which leaves were attached, a level $r$ at which a new branch split, or the split level of an independent tree. For two leaves $\mathsf a,\mathsf b$ of one tree, $q_{\mathsf{ab}}$ is the level of such a vertex. In particular, $\chi(q_{\mathsf{ab}})\le\sum_{r'}\chi(r')$ for every $\chi\ge0$, where $r'$ runs over the levels of the marks. By Step 1, this implies that \[ \int\chi(q_{\mathsf{ab}})\,\dd\mathfrak m\le C\int\chi\,\dd\nu . \] \paragraph{Step 3: Hölder's inequality.} As in \cite[Remark~2.4]{OpenAIFluctuationScale}, we apply Hölder's inequality unconditionally under the positive tree laws, and we bound each factor after deleting all leaves except one pair. On the product of the probability space of the term and the mark space with $\mathfrak m$, we have \[ \int\E|\Delta_1\Delta_2\Delta_3|\,\dd\mathfrak m \le\prod_{i=1}^3\Bigl(\int\E|\Delta_i|^3\,\dd\mathfrak m\Bigr)^{1/3}. \] If we delete all leaves except the two leaves of $\Delta_i$, two descendants remain, splitting at their common level $q_i$. By deletion, we have $\E|\Delta_i|^3=\E_{2,q_i,u}|R^-_{12}-q_i|^3$; for a product over independent trees, the other trees integrate to one. We use Step 2 with $\chi(q)=\E_{2,q,u}|R^-_{12}-q|^3$, and we find that each factor is at most $(C\mathcal M_3(u))^{1/3}$. This proves \eqref{eq:threeproducts}. \end{proof} The same proof applies to products of finitely many independent initial tree moments whose leaves split at $p$, integrated against $\nu(\dd p)$. The constant then depends on the total number of their initial leaves and on the number of differentiations. Indeed, the initial mark measure is still $\nu(\dd p)$, the number of factors to which the product rule applies is at most the total number of initial leaves plus the number of differentiations, and Steps~2 and~3 are unchanged. \paragraph{The cavity covariance.} In particular, \cref{lem:cav-threeproducts} applies to the covariance between the squared conditional magnetization of the last spin and the rest self-overlap, and to its Taylor remainder, \[ \mathcal C_{pp}(u)=\Cov_u\bigl(m_N(p)^2,A_p^-\bigr),\qquad \mathcal R_{\rm cav}=\int\nu(\dd p)\int_0^1(1-u) \mathcal C_{pp}''(u)\dd u . \] Representing conditional expectations by leaves, we can write $\mathcal C_{pp}=\Psi_p-\Psi^\epsilon_p\Psi^\tau_p$, where \[ \Psi_p(u)=\E_{4,p,u}[\epsilon_1\epsilon_2(R^-_{34}-p)],\qquad \Psi^\epsilon_p(u)=\E_{2,p,u}\epsilon_1\epsilon_2,\qquad \Psi^\tau_p(u)=\E_{2,p,u}(R^-_{12}-p). \] Indeed, by conditional independence given $\calG_p$, we have $\Psi_p=\E_u[m_N(p)^2(A_p^--p)]$, $\Psi^\epsilon_p=\E_um_N(p)^2$, and $\Psi^\tau_p=\E_u(A_p^--p)$. The constant $p$ does not change the covariance. Note that the observables in these tree moments, including the center $p$, do not depend on $u$. They are bounded by $2$, and the trees have at most four leaves. By \cref{lem:streaming}, each of the three moments belongs to $C^2([0,1])$, with first and second derivatives bounded by $C\alpha$ and $C\alpha^2$. Then $\mathcal C_{pp}\in C^2([0,1])$ for every deterministic profile, and $|\mathcal C_{pp}''|$ is bounded by a constant depending only on $\beta$, uniformly in $p$. In particular, $\mathcal R_{\rm cav}$ is well defined, and by Taylor's formula with integral remainder, we have \[ \mathcal R_{\rm cav}=\int\bigl[\mathcal C_{pp}(1)-\mathcal C_{pp}(0) -\mathcal C_{pp}'(0)\bigr]\,\nu(\dd p). \] \begin{lemma}[Taylor remainder]\label{lem:remainder} For every deterministic profile and every $u\in[0,1]$, \begin{equation}\label{eq:C2derivative} \int|\mathcal C_{pp}''(u)|\,\nu(\dd p)\le C_\beta\mathcal M_3(u), \qquad |\mathcal R_{\rm cav}|\le C_\beta\sup_{0\le w\le1}\mathcal M_3(w). \end{equation} \end{lemma} \begin{proof} We have \[ \mathcal C_{pp}''=\Psi_p''-(\Psi^\epsilon_p)''\Psi^\tau_p -2(\Psi^\epsilon_p)'(\Psi^\tau_p)'-\Psi^\epsilon_p(\Psi^\tau_p)''. \] Each application of \eqref{eq:streaming} adds a factor $\alpha/2\le\beta^2/2$ and one overlap defect, either inside a factor $D$ or in the independent tree of its last term. The spin factors have absolute value one. The moments $\Psi_p$ and $\Psi^\tau_p$ contain one defect, and $\Psi^\epsilon_p$ contains none. We count the defects before differentiation and those added by the two differentiations. \begin{center} \small \begin{tabular}{@{}lccc@{}} \toprule term & defects before & added & total\\ \midrule $\Psi_p''$ & $1$ & $2$ & $3$\\ $(\Psi^\epsilon_p)''\Psi^\tau_p$ & $0+1$ & $2+0$ & $3$\\ $(\Psi^\epsilon_p)'(\Psi^\tau_p)'$ & $0+1$ & $1+1$ & $3$\\ $\Psi^\epsilon_p(\Psi^\tau_p)''$ & $0+1$ & $0+2$ & $3$\\ \bottomrule \end{tabular} \end{center} Products of moments, and the last term of \eqref{eq:streaming}, are products over independent trees. Every term of $\mathcal C_{pp}''$ is therefore $(\alpha/2)^2$ times a term of the kind treated in \cref{lem:cav-threeproducts}, or in its extension to products of independent initial moments stated after its proof, with at most four initial leaves and $j=2$. It is multiplied by a bounded multiplicity and by factors of absolute value at most one. Integrating $p$ against $\nu$ and using \cref{lem:cav-threeproducts} and this extension, we obtain the first bound in \eqref{eq:C2derivative} with $C_\beta=C\beta^4$. We integrate it against $(1-u)\dd u$ and use Tonelli's theorem. This gives $|\mathcal R_{\rm cav}|\le C\beta^4\int_0^1(1-u)\mathcal M_3(u)\dd u \le C\beta^4\sup_w\mathcal M_3(w)$, which is the second bound. \end{proof}