OctoInform Beta

OpenAI preprint, September 2026 · §3. Calculus on finite trees

Lemma 3.2: Series expansion of the averaged log-insertion functional in prescribed-tree moments with geometric tail error and uniform bound for bounded interactions

Logarithmic insertion expansion and bound on kernel towers.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

In the finite-tree cavity calculus for diluted spin glasses, one evaluates the logarithmic response of a hierarchical recursion when a multiplicative perturbation 1+tD1 + t D is inserted at the leaves of a depth-nn tower of finite probability kernels. Expanding this log-insertion functional in powers of tt yields a series whose coefficients are averages of leaf products over prescribed finite trees grown according to the power-mean exponents m0,…,mnm_0, \dots, m_n. Lemma 3.2 controls the truncation error of this expansion after averaging over a random kernel tower and bounds the centered log-insertion functional uniformly for perturbations factored from a bounded interaction θ\theta.

Kernel towers

Let Ω\Omega be a finite set. A finite probability law PP on Ω\Omega is a weight function wP:Ω→[0,∞)w_P : \Omega \to [0, \infty) satisfying ∑x∈ΩwP(x)=1\sum_{x \in \Omega} w_P(x) = 1.✦ The expectation 𝔼P[f]\mathbb{E}_P[f] of a function f:Ω→ℝf : \Omega \to \mathbb{R} under PP is 𝔼P[f]=∑x∈ΩwP(x)f(x).\mathbb{E}_P[f] = \sum_{x \in \Omega} w_P(x) f(x).(1)✦

For a finite probability law PP on Ω\Omega, an exponent r∈ℝr \in \mathbb{R}, and a function f:Ω→ℝf : \Omega \to \mathbb{R}, the one-level log-mean operator ℒP,r(f)\mathcal{L}_{P, r}(f) is defined by ℒP,r(f)={𝔼P[f],r=0,1rlog⁡𝔼P[erf],r≠0.\mathcal{L}_{P, r}(f) = \begin{cases} \mathbb{E}_P[f], & r = 0, \\ \dfrac{1}{r} \log \mathbb{E}_P\bigl[e^{r f}\bigr], & r \neq 0. \end{cases}(2)

For any set Ω\Omega and any natural number nn, the space Ωn\Omega^n of length-nn paths in Ω\Omega is defined recursively as a singleton containing the empty path ∅\emptyset for n=0n = 0, and as the product Ω×Ωn\Omega \times \Omega^n for n+1n + 1.✦ A depth-nn kernel tower TT on a finite set Ω\Omega is defined recursively: for n=0n = 0 it is the unique element of a singleton, and for n+1n + 1 it is a pair (PT,(Tx)x∈Ω)(P_T, (T_x)_{x \in \Omega}) consisting of a finite probability law PTP_T on Ω\Omega and a family of depth-nn kernel towers TxT_x on Ω\Omega indexed by x∈Ωx \in \Omega.✦

Given a depth-nn kernel tower TT on Ω\Omega, a tuple of real exponents r=(r1,…,rn)∈ℝnr = (r_1, \dots, r_n) \in \mathbb{R}^n, and a path function f:Ωn→ℝf : \Omega^n \to \mathbb{R}, the backward recursive log-mean ℬn(T,r,f)\mathcal{B}_n(T, r, f) is defined recursively by ℬ0(T,r,f)=f(∅),ℬn+1(T,r,f)=ℒPT,r1(x↦ℬn(Tx,(r2,…,rn+1),y↦f(x,y))).\begin{aligned} \mathcal{B}_0(T, r, f) &= f(\emptyset), \\ \mathcal{B}_{n+1}(T, r, f) &= \mathcal{L}_{P_T, r_1}\Bigl(x \mapsto \mathcal{B}_n\bigl(T_x, (r_2, \dots, r_{n+1}),\, y \mapsto f(x, y)\bigr)\Bigr). \end{aligned}(3)✦

For a depth-nn kernel tower TT on Ω\Omega, exponents m=(m0,…,mn)∈ℝn+1m = (m_0, \dots, m_n) \in \mathbb{R}^{n+1}, a path observable D:Ωn→ℝD : \Omega^n \to \mathbb{R}, and a real parameter tt, the log-insertion functional Λn(T,m,D,t)\Lambda_n(T, m, D, t) applies the backward recursive log-mean (3) with exponents (m1,…,mn)(m_1, \dots, m_n) to the path function y↦log⁡(1+tD(y))y \mapsto \log(1 + t D(y)): Λn(T,m,D,t)=ℬn(T,(m1,…,mn),y↦log⁡(1+tD(y))).\Lambda_n(T, m, D, t) = \mathcal{B}_n\bigl(T, (m_1, \dots, m_n),\, y \mapsto \log(1 + t D(y))\bigr).(4)✦

Prescribed tree moments

A prescribed tree SS of height n∈ℕn \in \mathbb{N} is a rooted ordered tree in which every leaf lies at depth nn and every internal vertex has a positive finite number of children: for n=0n = 0 it is a single leaf ℓ\ell, and for n+1n + 1 it consists of a positive integer k≥1k \ge 1 together with an ordered tuple (C1,…,Ck)(C_1, \dots, C_k) of prescribed trees of height nn.✦ The unary tree τn\tau_n of height nn is ℓ\ell for n=0n = 0, and for n+1n + 1 is the node with one child equal to τn\tau_n.✦

For a set Ω\Omega and a prescribed tree SS of height nn, the tree sample space 𝒮(Ω,S)\mathcal{S}(\Omega, S) is a singleton containing the trivial sample ⋆\star when S=ℓS = \ell, and is the product ∏i=1k(Ω×𝒮(Ω,Ci))\prod_{i=1}^k (\Omega \times \mathcal{S}(\Omega, C_i)) when SS has children (C1,…,Ck)(C_1, \dots, C_k).✦ Given a depth-nn kernel tower TT on a finite set Ω\Omega, the prescribed tree sample law νS,T\nu_{S, T} is the finite probability law on 𝒮(Ω,S)\mathcal{S}(\Omega, S) defined recursively as the unique probability law on the singleton for n=0n = 0, and for SS with children (C1,…,Ck)(C_1, \dots, C_k) and T=(PT,(Tx)x∈Ω)T = (P_T, (T_x)_{x \in \Omega}) as the product over i∈{1,…,k}i \in \{1, \dots, k\} of the joint law on Ω×𝒮(Ω,Ci)\Omega \times \mathcal{S}(\Omega, C_i) that draws xi∈Ωx_i \in \Omega from PTP_T and conditionally draws ziz_i from νCi,Txi\nu_{C_i, T_{x_i}}.✦

For a path function f:Ωn→ℝf : \Omega^n \to \mathbb{R}, the leaf product observable ΠS(f):𝒮(Ω,S)→ℝ\Pi_S(f) : \mathcal{S}(\Omega, S) \to \mathbb{R} is defined recursively by Πℓ(f)(⋆)=f(∅),ΠS(f)((xi,zi)i=1k)=∏i=1kΠCi(y↦f(xi,y))(zi)\begin{aligned} \Pi_{\ell}(f)(\star) &= f(\emptyset), \\ \Pi_S(f)\bigl((x_i, z_i)_{i=1}^k\bigr) &= \prod_{i=1}^k \Pi_{C_i}\bigl(y \mapsto f(x_i, y)\bigr)(z_i) \end{aligned}(5)✦ when SS has children (C1,…,Ck)(C_1, \dots, C_k).

For a prescribed tree SS of height nn, let Int(S)\mathrm{Int}(S) denote its set of internal vertices and let |L(S)||L(S)| denote its number of leaves: when S=ℓS = \ell, Int(ℓ)=∅\mathrm{Int}(\ell) = \emptyset and |L(ℓ)|=1|L(\ell)| = 1; when SS has height n+1n + 1 with children (C1,…,Ck)(C_1, \dots, C_k), Int(S)\mathrm{Int}(S) consists of the root of SS together with the internal vertices of each CiC_i, and |L(S)|=∑i=1k|L(Ci)||L(S)| = \sum_{i=1}^k |L(C_i)|. Given exponents m=(m0,…,mn+1)∈ℝn+2m = (m_0, \dots, m_{n+1}) \in \mathbb{R}^{n+2} and an internal vertex v∈Int(S)v \in \mathrm{Int}(S) of a height-(n+1)(n + 1) tree SS with children (C1,…,Ck)(C_1, \dots, C_k), the vertex weight γ(S,m,v)\gamma(S, m, v) and the grown height-(n+1)(n + 1) tree grow(S,v)\mathrm{grow}(S, v) are defined recursively: if vv is the root of SS, then γ(S,m,v)=m0−km1\gamma(S, m, v) = m_0 - k m_1 and grow(S,v)\mathrm{grow}(S, v) is the tree with children (τn,C1,…,Ck)(\tau_n, C_1, \dots, C_k) obtained by prepending a unary tree τn\tau_n to the root’s children; if vv is an internal vertex v′∈Int(Ci)v' \in \mathrm{Int}(C_i), then γ(S,m,v)=γ(Ci,(m1,…,mn+1),v′)\gamma(S, m, v) = \gamma\bigl(C_i, (m_1, \dots, m_{n+1}), v'\bigr) and grow(S,v)\mathrm{grow}(S, v) is obtained from SS by replacing CiC_i with grow(Ci,v′)\mathrm{grow}(C_i, v').

Given exponents m=(m0,…,mn)∈ℝn+1m = (m_0, \dots, m_n) \in \mathbb{R}^{n+1} and a real-valued functional FF on height-nn prescribed trees, the kk-step iterated tree-growth expectation 𝒬m,k(F,S)\mathcal{Q}_{m, k}(F, S) starting from a height-nn prescribed tree SS is defined recursively in k∈ℕk \in \mathbb{N} by 𝒬m,0(F,S)=F(S),𝒬m,k+1(F,S)=∑v∈Int(S)−γ(S,m,v)|L(S)|𝒬m,k(F,grow(S,v)).\begin{aligned} \mathcal{Q}_{m, 0}(F, S) &= F(S), \\ \mathcal{Q}_{m, k+1}(F, S) &= \sum_{v \in \mathrm{Int}(S)} \frac{-\gamma(S, m, v)}{|L(S)|}\, \mathcal{Q}_{m, k}\bigl(F, \mathrm{grow}(S, v)\bigr). \end{aligned}(6)✦ For a depth-nn kernel tower TT on a finite set Ω\Omega and a path observable D:Ωn→ℝD : \Omega^n \to \mathbb{R}, the tree-growth leaf moment of order k∈ℕk \in \mathbb{N} starting from SS applies (6) to the expectation (1) of the leaf product (5) under νR,T\nu_{R, T}: Mk(m,T,D,S)=𝒬m,k(R↦𝔼νR,T[ΠR(D)],S).M_k(m, T, D, S) = \mathcal{Q}_{m, k}\Bigl(R \mapsto \mathbb{E}_{\nu_{R, T}}\bigl[\Pi_R(D)\bigr],\, S\Bigr).(7)

The claim

Lemma 3.2. First, let n∈ℕn \in \mathbb{N}, let (Z,μ)(Z, \mu) be a probability space, and for each z∈Zz \in Z let Ω(z)\Omega(z) be a finite set, T(z)T(z) a depth-nn kernel tower on Ω(z)\Omega(z), and D(z):Ω(z)n→ℝD(z) : \Omega(z)^n \to \mathbb{R} a path observable satisfying |D(z)(y)|≤1|D(z)(y)| \le 1 for all y∈Ω(z)ny \in \Omega(z)^n. Let m=(m0,…,mn)∈ℝn+1m = (m_0, \dots, m_n) \in \mathbb{R}^{n+1} be nondecreasing and nonnegative with m0=0m_0 = 0, mn=1m_n = 1, and mj≠0m_j \neq 0 for every j∈{1,…,n}j \in \{1, \dots, n\}, and let t∈ℝt \in \mathbb{R} satisfy |t|<1|t| < 1. Assume that z↦Λn(T(z),m,D(z),t)z \mapsto \Lambda_n(T(z), m, D(z), t) is measurable and that z↦Mk(m,T(z),D(z),τn)z \mapsto M_k(m, T(z), D(z), \tau_n) is measurable for every k∈ℕk \in \mathbb{N}. Then for every K∈ℕK \in \mathbb{N}, |∫ZΛn(T(z),m,D(z),t)dμ(z)−∑k=0K−1(−1)kk+1tk+1∫ZMk(m,T(z),D(z),τn)dμ(z)|≤∑k=0∞|t|k+K+1k+K+1.\begin{aligned} \Biggl| \int_Z \Lambda_n\bigl(T(z), m, D(z), t\bigr)\, d\mu(z) &- \sum_{k=0}^{K-1} \frac{(-1)^k}{k+1} t^{k+1} \int_Z M_k\bigl(m, T(z), D(z), \tau_n\bigr)\, d\mu(z) \Biggr| \\ &\le \sum_{k=0}^{\infty} \frac{|t|^{k+K+1}}{k+K+1}. \end{aligned}(8)✦

Second, let n∈ℕn \in \mathbb{N}, let Ω\Omega and AA be finite sets, let TT be a depth-nn kernel tower on Ω\Omega, and let m=(m0,…,mn)∈ℝn+1m = (m_0, \dots, m_n) \in \mathbb{R}^{n+1} satisfy mj>0m_j > 0 for every j∈{1,…,n}j \in \{1, \dots, n\}. Let (Py)y∈Ωn(P_y)_{y \in \Omega^n} be a family of finite probability laws on AA, let θ,D:A→ℝ\theta, D : A \to \mathbb{R} and a>0a > 0 satisfy eθ(s)=a(1+D(s))e^{\theta(s)} = a(1 + D(s)) and |D(s)|<1|D(s)| < 1 for every s∈As \in A, and let s0∈As_0 \in A. If B≥0B \ge 0 satisfies |θ(s)|≤B|\theta(s)| \le B for every s∈As \in A and 0≤t<10 \le t < 1, then, setting D‾(y)=𝔼Py[D]\bar{D}(y) = \mathbb{E}_{P_y}[D] for y∈Ωny \in \Omega^n, |Λn(T,m,D‾,t)−log⁡(1+tD(s0))|≤2B.\bigl| \Lambda_n(T, m, \bar{D}, t) - \log\bigl(1 + t D(s_0)\bigr) \bigr| \le 2 B.(9)✦

What is checked

The Lean library states both parts of Lemma 3.2 over depth-nn kernel towers on finite state spaces, the log-insertion functional (4), prescribed finite trees, their induced sample laws, leaf product observables, and tree-growth leaf moments (7): the averaged series remainder bound (8) for measurable families of kernel towers with bounded observables and normalized nondecreasing exponents, and the uniform bound (9) for positive exponents and path-averaged perturbations factored from a bounded interaction.