The setting
In the cavity analysis of diluted spin glasses on finite hierarchical trees, one compares a tilted tree expectation with an uncanceled factor at a designated anchor leaf against a perturbative expansion in the tilting parameter. When a path function is perturbed linearly by around the constant function , differentiating the tilted expectation of at produces a signed sum over sequential extensions of the underlying tree. At each step, the differentiation rule either marks an unused old leaf other than the anchor leaf with weight , or attaches a fresh branch at an internal vertex of the current tree with a branching weight determined by the power-mean exponents.
This page states the three results that make up the canceled-anchor expansion in the Lean library: the diagonal Fréchet derivative formula in terms of ordered extension iterates, the identification of the colored extension calculus at with a signed sum over labeled extension histories, and a uniform Taylor remainder bound on controlled by a depth-independent combinatorial factor.
Kernel towers and prescribed trees
Let be a finite state space. A finite probability law on is a function satisfying for all and .✦ The expectation of a real-valued function under is (1)✦
For a natural number , the finite path space of length over is a singleton when and the Cartesian product when .✦ A tower of finite kernels of depth on is trivial for , and for consists of an initial finite probability law on together with a continuation tower of depth for each .✦
Given a tower of finite kernels of depth on , a tuple of real exponents , and a potential , the tilted kernel tower of depth is defined recursively on . At depth it is trivial. At depth , its top law is obtained by exponentially tilting by times the backward logarithmic potential of the continuation tower at each first-step state , while its continuation at is the recursively tilted subtower for the tail potential .
A prescribed finite tree of height is either a single leaf when , or an internal root of height with a positive integer of ordered children , each a prescribed finite tree of height .✦ The set of leaves and the number of leaves are defined recursively: at a single leaf, is a singleton and ; at a node with children , consists of pairs with and , and (2)
The space of prescribed tree samples in indexed by is a singleton at a leaf, and at a node with children consists of tuples with and .✦ Given a tower of finite kernels of depth on , the prescribed tree sample law is the finite probability law on defined recursively as the unit law at a leaf, and at a node with children as the product law over where each factor samples from the top law and then draws from .✦ Write for expectation under .
For a leaf and a sample , the path to is the unique empty path at a leaf, and at a node when .✦ For a path function , the sum of leaf marks is defined recursively as evaluated at the empty path when is a leaf, and at a node with children by (3)✦ where .
Canceled-anchor expectations and tree extensions
Fix a natural number , a tower of finite kernels of depth on , a prescribed finite tree of height , and real exponents . Write for the shifted tuple of exponents. For and , the protected-leaf expectation is (4)✦ Given a finite set of indices in a type and a family of path maps with , the partially canceled anchor expectation is (5) For a single anchor leaf , the canceled-anchor insertion is (6)✦
Let denote the set of internal vertices of . For each , growing a fresh branch from produces a prescribed finite tree of height with branching weight , given by when lies at depth (with the root at depth ) and has children (equivalently, at the root with children, and at an internal vertex in the -th child subtree ). Every sample restricts to an old sample and determines a fresh path along the added branch. Each leaf embeds as a leaf , and the added branch ends at a new leaf .
Given a direction , the anchor ordered-history iterate for and is defined recursively on . At , it evaluates the partially canceled anchor expectation at , namely . At , it is given by (7)✦ where and . For an anchor leaf , let and write for the family . The -th anchor Taylor coefficient is (8)✦
Differentiating a tilted tree expectation with an uncanceled anchor leaf produces a signed sum over sequential extensions that either mark an unused old leaf or graft a fresh branch at an internal vertex of the current tree.
For a finite list of path functions on , the colored extension calculus is defined recursively on . On the empty list , it equals . On a nonempty list , it is given by (9)✦ with and as in (7).
Let be a set of colors, and let be a functional assigning a real number to each prescribed tree of height , color placement , and sample function . Given a list of colors in , a finite set of indices in with a leaf map , a placement , and , the signed labeled-history sum is defined recursively on . On the empty list , it equals . On , it is given by (10)✦ where agrees with except at , where it takes value , and .
Finally, the depth-independent derivative bound for is defined recursively by (11)✦
The claim
Lemma 3.3. Let be a finite state space, let , let be a tower of finite kernels of depth on , and let satisfy for all . Let be a prescribed finite tree of height .
Suppose and . For any , any path function , any finite index set with path maps , and any , the -th iterated Fréchet derivative of at the constant function along the diagonal direction satisfies (12)✦
Let be a finite set of colors with path functions for , let be a list of distinct elements of , and let be disjoint from with . For any finite set of indices in a type with leaf map , any placement , and any , write , , and . Then (13)✦ where .
Suppose is nondecreasing and nonnegative with and . Let satisfy for all , let be an anchor leaf, and let and satisfy for all . Then for every and every , setting , (14)✦
What is checked
Lemma 3.3 is stated in the Lean library over finite state spaces , towers of finite kernels of depth , prescribed finite trees of height , and real exponent tuples with nonzero entries : (12) further assumes and for the diagonal Fréchet derivatives of the partially canceled anchor expectation, (13) relates the colored extension calculus at to the signed labeled-history sum over any partition of a finite color set into a set and a duplicate-free list , and (14) additionally assumes is nondecreasing and nonnegative, , with , and for the uniform Taylor remainder bound on the canceled-anchor insertion.