The setting
In hierarchical trial laws for diluted spin glasses, free-energy comparisons and perturbation identities rely on inserting a multiplicative factor into the leaf weights of a finite-depth iterated power-mean recursion with exponents , tilted kernels , and terminal Gibbs kernel . Multiplying leaf weights by shifts the root logarithm by a backward power-mean recursion, updates each conditional kernel by exponential tilting, and induces an explicit conditional joint density on any finite tree sampled from the kernels. Differentiating the resulting tilted expectations and logarithmic tree densities with respect to a scalar parameter yields the first- and second-order variational identities used in cavity expansions on finite trees.
One-level power means and tilting
Let be a measurable space equipped with a probability measure on . For a function , the exponentially tilted measure is the probability measure on with density proportional to with respect to : (1) For a real exponent and a function , the logarithmic power mean is defined by (2)
Finite kernel towers
Let be a finite set. A finite probability law on is a weight function satisfying for all and .✦ The expectation of a function under is (3)✦ and its variance is . For , the exponentially tilted finite law on assigns to each the normalized weight .
For a depth , the finite path space is the singleton when and the product when .✦
A kernel tower of depth on is trivial when , and for consists of a root finite probability law on together with a family of depth- kernel towers indexed by the first step.✦ The tower path law is the finite probability law on given by the point mass on when , and for by drawing from and the remaining path from .✦
Given a depth- kernel tower , exponents , and a path function , the backward logarithmic power mean is defined recursively from the terminal value by taking the one-level logarithmic power mean at each step: for depth , with , (4) The tilted kernel tower of depth is trivial when , and for is defined recursively as the pair consisting of the tilted root law with and the family of tilted subtowers .✦
The weighted martingale energy of a path function is defined recursively by and, for depth with , (5)✦
Prescribed trees and vertex potentials
A prescribed finite tree of depth is a single leaf when , and for is an internal root vertex with a positive integer branching number and an ordered tuple of child prescribed trees of depth .✦ A sample on with state space is the trivial element when is a leaf, and for an internal node with children is a tuple where each labels the -th outgoing edge and is a sample on .✦
The tree vertex potential is the logarithm of the conditional joint density of the updated tree law when leaf weights are multiplied by an exponential insertion factor.
Given a prescribed tree of depth , a depth- kernel tower on , exponents , a path function , and a sample on , the tree vertex potential is defined recursively by when is a leaf and, for an internal node of depth with children and sample , (6) where . For a second path function , the tree vertex score is defined recursively by when is a leaf and, for an internal node of depth with children and sample , (7)✦
The claim
Lemma 3.1. Let be a finite set, let , let be a depth- kernel tower on , let , and let . Then sequential tilting of the kernel tower is additive: (8)✦
Let be a measurable space equipped with a probability measure on . For any with and any measurable functions satisfying and for all and some real constants , (9)✦ Under the same measure on , for any , any measurable function satisfying for all and some , and any function , (10)✦
Return to a finite set , a depth , a depth- kernel tower on , and exponents with for every . Let , let , and let be such that for every path , the map has derivative at and the map has derivative at . Then the map is differentiable at with derivative (11)✦
Finally, let be a prescribed finite tree of depth , let be a depth- kernel tower on , and let satisfy for every . Let , let , and let be such that for every path , the map has derivative at . Then for every sample on , the map is differentiable at with derivative (12)✦
In the paper, the result reads: for a single unified iterated power-mean recursion with exponents , tilted kernels , and terminal Gibbs kernel , multiplying spin weights by a positive path function shifts the iterated root logarithm by , updates the kernels by exponential tilting, and yields the conditional joint density of the updated tree law on any prescribed tree. The Lean library splits this unified calculus between general measure-valued hierarchies for the one-level shift and tilting identities and finite-state kernel towers for tower tilting, path-score variation, and vertex-potential differentiation.
What is checked
In the Lean library, Lemma 3.1 is stated over two settings: a measurable space equipped with a probability measure for the one-level logarithmic power-mean shift (9) and one-level tilting additivity (10), and a finite state space equipped with a depth- kernel tower and a prescribed finite tree for tower tilting additivity (8), the path-score derivative (11), and the tree vertex-potential derivative (12). The one-level insertion identity assumes a nonzero real exponent and bounded measurable potentials, whereas one-level tilting additivity assumes only boundedness and measurability of the first potential; on finite kernel towers, tilting additivity requires no nonzero assumption on the exponents, while the two differentiation identities assume nonzero level exponents and pointwise differentiability of the path potentials.