OctoInform Beta

OpenAI preprint, September 2026 · §8. Independent hierarchical messages and the cavity comparison

Lemma 8.1: Matching prescribed-tree overlaps, conditional log power means, and finitely branching realizations in HrH_r

Encoding kernel towers as nested probability hierarchies.

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 cavity analysis of diluted spin glasses, finite-volume expectations over a perturbed reservoir are compared against deterministic trial laws in the nested hierarchy of probability measures HrH_r. To bridge finite-state hierarchical kernels and trial laws, one encodes a finite kernel tower recursively into an element of HrH_r, either by applying the inverse hyperbolic tangent to terminal spin expectations or by pushing forward literal real-valued leaf observables.

Lemma 8.1 establishes three compatibility properties of these recursive encodings. First, pushing forward the spin-terminal encoding of a tilted heterogeneous-mark root tower over a random disorder root state and a uniform reservoir site produces a law in HL+1H_{L+1} whose branching spin label moments match the disorder-averaged prescribed-tree overlaps of the reservoir. Second, the backward recursive log-mean of a product of finite kernel towers agrees with the conditional log power mean of their literal-leaf encodings. Third, every finitely branching element of HrH_r is realized as the literal-leaf encoding of a kernel tower on a finite state space.

Kernel towers and prescribed trees

A finite probability law PP on a finite state space Ω\Omega is a function P:Ω→ℝP : \Omega \to \mathbb{R} with P(x)≥0P(x) \ge 0 for all x∈Ωx \in \Omega and ∑x∈ΩP(x)=1\sum_{x \in \Omega} P(x) = 1.✦ The expectation of a real-valued function f:Ω→ℝf : \Omega \to \mathbb{R} under PP is EP[f]=∑x∈ΩP(x)f(x).E_P[f] = \sum_{x \in \Omega} P(x) f(x).(1)✦ For a state space Ω\Omega and a natural number rr, the finite path space Ωr\Omega^r is the singleton {()}\{()\} when r=0r = 0 and the Cartesian product Ω×Ωr−1\Omega \times \Omega^{r-1} when r≥1r \ge 1.✦ Given an index set ι\iota and a family of state spaces (αi)i∈ι(\alpha_i)_{i \in \iota}, the coordinate path projection maps a joint path y∈(∏i∈ιαi)ry \in (\prod_{i \in \iota} \alpha_i)^r to the family (πi(y))i∈ι(\pi_i(y))_{i \in \iota} with πi(y)∈αir\pi_i(y) \in \alpha_i^r, defined recursively by πi(())=()\pi_i(()) = () for r=0r = 0 and πi(x,y′)=(xi,πi(y′))\pi_i(x, y') = (x_i, \pi_i(y')) for r≥1r \ge 1.✦

A tower of finite kernels TT of depth rr on a finite state space Ω\Omega is trivial for r=0r = 0, and for depth r+1r + 1 consists of an initial finite probability law T(0)T^{(0)} on Ω\Omega together with a depth-rr continuation tower TxT_x on Ω\Omega for each x∈Ωx \in \Omega.✦ Given a finite index set ι\iota, finite state spaces (αi)i∈ι(\alpha_i)_{i \in \iota}, and depth-rr kernel towers TiT_i on αi\alpha_i, their product kernel tower ⨂i∈ιTi\bigotimes_{i \in \iota} T_i of depth rr on ∏i∈ιαi\prod_{i \in \iota} \alpha_i is trivial for r=0r = 0, and for depth r+1r + 1 has initial law ⨂i∈ιTi(0)\bigotimes_{i \in \iota} T_i^{(0)} and continuation at x=(xi)i∈ιx = (x_i)_{i \in \iota} given by ⨂i∈ι(Ti)xi\bigotimes_{i \in \iota} (T_i)_{x_i}.✦

For a depth-rr kernel tower TT on a finite state space Ω\Omega, real exponents m=(m1,…,mr)∈ℝrm = (m_1, \dots, m_r) \in \mathbb{R}^r, and a real-valued observable f:Ωr→ℝf : \Omega^r \to \mathbb{R}, the backward recursive log-mean Λr(T,m,f)\Lambda_r(T, m, f) is defined recursively by Λ0(T,m,f)=f(())\Lambda_0(T, m, f) = f(()) at depth 00 and, at depth r+1r + 1 with shifted tail m≥2=(m2,…,mr+1)m_{\ge 2} = (m_2, \dots, m_{r+1}), by Λr+1(T,m,f)=1m1log⁡∑x∈ΩT(0)(x)exp⁡(m1Λr(Tx,m≥2,f(x,⋅))).\begin{aligned} \Lambda_{r+1}(T, m, f) = \frac{1}{m_1} \log \sum_{x \in \Omega} T^{(0)}(x) \exp\Bigl(m_1 \Lambda_r\bigl(T_x, m_{\ge 2}, f(x, \cdot)\bigr)\Bigr). \end{aligned}(2)✦ The tilted kernel tower Tm,fT^{m, f} of depth rr is trivial at depth 00, and at depth r+1r + 1 its initial law is the exponential tilt of T(0)T^{(0)} by m1m_1 times the potential x↦Λr(Tx,m≥2,f(x,⋅))x \mapsto \Lambda_r(T_x, m_{\ge 2}, f(x, \cdot)), assigning weight proportional to T(0)(x)exp⁡(m1Λr(Tx,m≥2,f(x,⋅)))T^{(0)}(x) \exp\bigl(m_1 \Lambda_r(T_x, m_{\ge 2}, f(x, \cdot))\bigr), while its continuation at x∈Ωx \in \Omega is the recursively tilted depth-rr subtower (Tx)m≥2,f(x,⋅)(T_x)^{m_{\ge 2}, f(x, \cdot)}.✦

A prescribed finite tree SS of height rr is a single leaf when r=0r = 0, and when r≥1r \ge 1 is an internal vertex with a positive integer number kk of ordered children C1,…,CkC_1, \dots, C_k, each a prescribed finite tree of height r−1r - 1.✦ A prescribed tree sample ww in Ω\Omega indexed by SS is ()() when SS is a leaf, and at an internal vertex with children C1,…,CkC_1, \dots, C_k is a kk-tuple w=((x1,w1),…,(xk,wk))w = ((x_1, w_1), \dots, (x_k, w_k)) with xj∈Ωx_j \in \Omega and wjw_j a prescribed tree sample for CjC_j.✦ For a depth-rr kernel tower TT on a finite state space Ω\Omega, the prescribed tree sample law PS,TP_{S, T} is the unit law on {()}\{()\} at a leaf, and at an internal vertex with children C1,…,CkC_1, \dots, C_k is the product law over j∈{1,…,k}j \in \{1, \dots, k\} under which each xjx_j is drawn from T(0)T^{(0)} and then wjw_j is drawn from PCj,TxjP_{C_j, T_{x_j}}.✦

Given a height-rr prescribed finite tree SS and f:Ωr→ℝf : \Omega^r \to \mathbb{R}, the leaf product observable ΠS(f)\Pi_S(f) on a prescribed tree sample ww is f(())f(()) at a leaf, and at an internal vertex with children C1,…,CkC_1, \dots, C_k and sample w=((x1,w1),…,(xk,wk))w = ((x_1, w_1), \dots, (x_k, w_k)) is ΠS(f)(w)=∏j=1kΠCj(f(xj,⋅))(wj).\Pi_S(f)(w) = \prod_{j=1}^k \Pi_{C_j}\bigl(f(x_j, \cdot)\bigr)(w_j).(3)✦ For a natural number NN and an NN-component observable f:Ωr→ℝNf : \Omega^r \to \mathbb{R}^N, the prescribed-tree overlap RS(f)R_S(f) on a tree sample ww is RS(f)(w)=1N∑i=1NΠS(f(⋅)i)(w).R_S(f)(w) = \frac{1}{N} \sum_{i=1}^N \Pi_S\bigl(f(\cdot)_i\bigr)(w).(4)✦

Nested law hierarchies and encodings

The nested law spaces HrH_r are topological spaces defined recursively by H0=ℝH_0 = \mathbb{R} and letting Hr+1H_{r+1} be the space of Borel probability measures on HrH_r equipped with the weak topology.✦ Each topological space, and in particular each HrH_r, is equipped with the Borel sigma-field generated by its topology.✦

For a natural number rr, a prescribed finite tree SS of height r+1r + 1, and η∈Hr\eta \in H_r, the branching spin label moment Mr(S,η)M_r(S, \eta) is defined recursively as follows. When r=0r = 0, SS has kk leaf children, and x∈H0=ℝx \in H_0 = \mathbb{R}, M0(S,x)=(tanh⁡x)k.M_0(S, x) = (\tanh x)^k.(5) When SS has height r+2r + 2 with children C1,…,CkC_1, \dots, C_k and η∈Hr+1\eta \in H_{r+1}, Mr+1(S,η)=∏j=1k∫HrMr(Cj,x)η(dx).M_{r+1}(S, \eta) = \prod_{j=1}^k \int_{H_r} M_r(C_j, x)\, \eta(dx).(6)

For a finite index set ι\iota, a depth rr, a function F:ℝι→ℝF : \mathbb{R}^\iota \to \mathbb{R}, real exponents m=(m1,…,mr)∈ℝrm = (m_1, \dots, m_r) \in \mathbb{R}^r, and a family η=(ηi)i∈ι\eta = (\eta_i)_{i \in \iota} in HrH_r, the conditional log power mean ℒr(F,m,η)\mathcal{L}_r(F, m, \eta) is defined recursively by ℒ0(F,m,η)=F(η)\mathcal{L}_0(F, m, \eta) = F(\eta) at r=0r = 0 and, at depth r+1r + 1, by ℒr+1(F,m,η)=1m1log⁡∫Hrιexp⁡(m1ℒr(F,m≥2,x))⨂i∈ιηi(dxi).\begin{aligned} \mathcal{L}_{r+1}(F, m, \eta) = \frac{1}{m_1} \log \int_{H_r^\iota} \exp\Bigl(m_1 \mathcal{L}_r(F, m_{\ge 2}, x)\Bigr) \, \bigotimes_{i \in \iota} \eta_i(dx_i). \end{aligned}(7)✦

An element ζ∈Hr\zeta \in H_r is a finitely branching measure hierarchy if either r=0r = 0, or r≥1r \ge 1 and there exist a natural number nn, finitely branching elements x1,…,xn∈Hr−1x_1, \dots, x_n \in H_{r-1}, and nonnegative weights w1,…,wnw_1, \dots, w_n summing to 11 such that ζ=∑j=1nwjδxj\zeta = \sum_{j=1}^n w_j \delta_{x_j}.✦

For a depth-(r+1)(r+1) kernel tower TT on a finite state space Ω\Omega and an observable V:Ωr+1→ℝV : \Omega^{r+1} \to \mathbb{R}, the terminal interior condition at depth rr holds when ET(0)[V(⋅,())]∈(−1,1)E_{T^{(0)}}[V(\cdot, ())] \in (-1, 1) for r=0r = 0, and for r≥1r \ge 1 when every continuation TaT_a with shifted observable y↦V(a,y)y \mapsto V(a, y) satisfies the terminal interior condition at depth r−1r - 1.✦ The spin-terminal hierarchy encoding enc⁡r(T,V)∈Hr\operatorname{enc}_r(T, V) \in H_r is defined recursively by enc⁡0(T,V)=artanh⁡(ET(0)[V(⋅,())]),enc⁡r+1(T,V)=∑a∈ΩT(0)(a)δenc⁡r(Ta,V(a,⋅)).\begin{aligned} \operatorname{enc}_0(T, V) &= \operatorname{artanh}\bigl(E_{T^{(0)}}[V(\cdot, ())]\bigr), \\ \operatorname{enc}_{r+1}(T, V) &= \sum_{a \in \Omega} T^{(0)}(a)\, \delta_{\operatorname{enc}_r(T_a, V(a, \cdot))}. \end{aligned}(8)✦ For a depth-rr kernel tower TT on Ω\Omega and V:Ωr→ℝV : \Omega^r \to \mathbb{R}, the literal-leaf hierarchy encoding renc⁡r(T,V)∈Hr\operatorname{renc}_r(T, V) \in H_r is defined recursively by renc⁡0(T,V)=V(())\operatorname{renc}_0(T, V) = V(()) and renc⁡r+1(T,V)=∑a∈ΩT(0)(a)δrenc⁡r(Ta,V(a,⋅)).\operatorname{renc}_{r+1}(T, V) = \sum_{a \in \Omega} T^{(0)}(a)\, \delta_{\operatorname{renc}_r(T_a, V(a, \cdot))}.(9)✦

The root encoding law

For a system size N∈ℕN \in \mathbb{N}, the spin site index set is ℐN={1,…,max⁡(N,1)}\mathcal{I}_N = \{1, \dots, \max(N, 1)\}✦, and the uniform site law νN\nu_N is the uniform probability measure on ℐN\mathcal{I}_N.✦ For any space UU and natural number qq, a finite root block sequence of length qq in UU is an element of the qq-fold product UqU^q (a singleton when q=0q = 0)✦, and the indexed root array of a length-qq sequence in IqI^q is the corresponding qq-tuple (τ1,…,τq)(\tau_1, \dots, \tau_q) indexed by {1,…,q}\{1, \dots, q\}.✦

Fix an external field space YY, a bond space XX, a mark-type space II, and a field count M∈ℕM \in \mathbb{N}. The full disorder root state space is 𝒵=YM×(⨆u≥0Xu)×(⨆q≥0Iq).\mathcal{Z} = Y^M \times \biggl(\bigsqcup_{u \ge 0} X^u\biggr) \times \biggl(\bigsqcup_{q \ge 0} I^q\biggr).(10)✦ For a full disorder root state z=(yext,(u,xbond),(q,τ))z = (y_{\mathrm{ext}}, (u, x_{\mathrm{bond}}), (q, \tau)) in 𝒵\mathcal{Z}, write τ(z)=(τ1,…,τq)\tau(z) = (\tau_1, \dots, \tau_q) for the indexed root array of its mark types. Given finite mark alphabets (At)t∈I(A_t)_{t \in I}, a realized mark row for τ=(τ1,…,τq)\tau = (\tau_1, \dots, \tau_q) is an element of Row⁡(τ)=∏j=1qAτj\operatorname{Row}(\tau) = \prod_{j=1}^q A_{\tau_j}✦, and the realized root state alphabet at zz is Ωz=Ω×Row⁡(τ(z))\Omega_z = \Omega \times \operatorname{Row}(\tau(z)).✦

For a length-rr joint path y∈(Ω×Row⁡(τ))ry \in (\Omega \times \operatorname{Row}(\tau))^r, the physical path projection phys⁡(y)∈Ωr\operatorname{phys}(y) \in \Omega^r extracts the Ω\Omega coordinate at each step✦, and for each j∈{1,…,q}j \in \{1, \dots, q\}, the jj-th realized mark path mark⁡j(y)∈Aτjr\operatorname{mark}_j(y) \in A_{\tau_j}^r extracts the jj-th mark coordinate at each step.✦ Given a depth-rr kernel tower TT on Ω\Omega and levelwise finite probability laws Qt(ℓ)Q_t^{(\ell)} on AtA_t for t∈It \in I and ℓ∈{1,…,r}\ell \in \{1, \dots, r\}, the product-prior mark tower Tmark(τ)T^{\mathrm{mark}}(\tau) of depth rr on Ω×Row⁡(τ)\Omega \times \operatorname{Row}(\tau) adjoins at each level ℓ\ell, independently of the physical step, the product law ⨂j=1qQτj(ℓ)\bigotimes_{j=1}^q Q_{\tau_j}^{(\ell)} on Row⁡(τ)\operatorname{Row}(\tau).✦

Given a base energy b(yext,u,xbond,⋅):Ωr→ℝb(y_{\mathrm{ext}}, u, x_{\mathrm{bond}}, \cdot) : \Omega^r \to \mathbb{R} and perturbation factors φt:Ωr×Atr→ℝ\varphi_t : \Omega^r \times A_t^r \to \mathbb{R} for t∈It \in I, the perturbed log Boltzmann weight of a joint path y∈Ωzry \in \Omega_z^r at z=(yext,(u,xbond),(q,τ))z = (y_{\mathrm{ext}}, (u, x_{\mathrm{bond}}), (q, \tau)) is Wz(y)=b(yext,u,xbond,phys⁡(y))+∑j=1qlog⁡φτj(phys⁡(y),mark⁡j(y)).\begin{aligned} W_z(y) &= b\bigl(y_{\mathrm{ext}}, u, x_{\mathrm{bond}}, \operatorname{phys}(y)\bigr) \\ &\quad + \sum_{j=1}^q \log \varphi_{\tau_j}\bigl(\operatorname{phys}(y), \operatorname{mark}_j(y)\bigr). \end{aligned}(11)✦ For exponents m∈ℝrm \in \mathbb{R}^r, the tilted root kernel tower TzT_z at z∈𝒵z \in \mathcal{Z} is the depth-rr kernel tower on Ωz\Omega_z obtained by tilting Tmark(τ(z))T^{\mathrm{mark}}(\tau(z)) with exponents mm by WzW_z.✦ Given an NN-component spin readout V:Ωr→ℝNV : \Omega^r \to \mathbb{R}^N, the root lifted spin vector Vz:Ωzr→ℝNV_z : \Omega_z^r \to \mathbb{R}^N is defined by Vz(w)=V(phys⁡(w))V_z(w) = V(\operatorname{phys}(w)).✦

At depth r=L+1r = L + 1, the root hierarchical encoding at z∈𝒵z \in \mathcal{Z} and i∈ℐNi \in \mathcal{I}_N is ηz,i=enc⁡L(Tz,(Vz)i)∈HL.\eta_{z, i} = \operatorname{enc}_L\bigl(T_z, (V_z)_i\bigr) \in H_L.(12)✦ Given a probability measure μ\mu on the measurable space 𝒵\mathcal{Z}, the root encoding law ζL,N∈HL+1\zeta_{L, N} \in H_{L+1} is the pushforward of the product measure μ⊗νN\mu \otimes \nu_N on 𝒵×ℐN\mathcal{Z} \times \mathcal{I}_N under the map (z,i)↦ηz,i(z, i) \mapsto \eta_{z, i}.✦

The claim

Lemma 8.1. Let L,M,N∈ℕL, M, N \in \mathbb{N}, with spin site index set ℐN={1,…,max⁡(N,1)}\mathcal{I}_N = \{1, \dots, \max(N, 1)\}. Let the external field space YY and the bond space XX be measurable spaces, let the mark-type space II be a countable measurable space in which every singleton is measurable, and let Ω\Omega and (At)t∈I(A_t)_{t \in I} be finite state spaces. Let TT be a depth-(L+1)(L+1) kernel tower on Ω\Omega, let Q=(Qt(ℓ))Q = (Q_t^{(\ell)}) be levelwise finite probability laws on AtA_t, let m∈ℝL+1m \in \mathbb{R}^{L+1}, let bb be a base energy such that for every u∈ℕu \in \mathbb{N} and every physical path y∈ΩL+1y \in \Omega^{L+1}, the map (yext,xbond)↦b(yext,u,xbond,y)(y_{\mathrm{ext}}, x_{\mathrm{bond}}) \mapsto b(y_{\mathrm{ext}}, u, x_{\mathrm{bond}}, y) from YM×XuY^M \times X^u to ℝ\mathbb{R} is measurable, let φ=(φt)t∈I\varphi = (\varphi_t)_{t \in I} be perturbation factors, and let V:ΩL+1→ℝℐNV : \Omega^{L+1} \to \mathbb{R}^{\mathcal{I}_N}. Suppose μ\mu is a probability measure on the measurable space 𝒵\mathcal{Z} such that for every z∈𝒵z \in \mathcal{Z} and every i∈ℐNi \in \mathcal{I}_N, the tilted root kernel tower TzT_z and the observable (Vz)i(V_z)_i satisfy the terminal interior condition at depth LL. Then for every prescribed finite tree SS of height L+1L + 1, ∫HLML(S,η)ζL,N(dη)=∫𝒵EPS,Tz[RS(Vz)]μ(dz).\int_{H_L} M_L(S, \eta)\, \zeta_{L, N}(d\eta) = \int_{\mathcal{Z}} E_{P_{S, T_z}}\!\bigl[R_S(V_z)\bigr]\, \mu(dz).(13)✦

Let ι\iota be a finite index set, let (αi)i∈ι(\alpha_i)_{i \in \iota} be finite state spaces, let r∈ℕr \in \mathbb{N}, let TiT_i be a depth-rr kernel tower on αi\alpha_i and Vi:αir→ℝV_i : \alpha_i^r \to \mathbb{R} for each i∈ιi \in \iota, let F:ℝι→ℝF : \mathbb{R}^\iota \to \mathbb{R}, and let m∈ℝrm \in \mathbb{R}^r. Then Λr(⨂i∈ιTi,m,y↦F((Vi(πi(y)))i∈ι))=ℒr(F,m,(renc⁡r(Ti,Vi))i∈ι).\begin{aligned} \Lambda_r\Bigl(\bigotimes_{i \in \iota} T_i, m, y \mapsto F\bigl((V_i(\pi_i(y)))_{i \in \iota}\bigr)\Bigr) = \mathcal{L}_r\Bigl(F, m, \bigl(\operatorname{renc}_r(T_i, V_i)\bigr)_{i \in \iota}\Bigr). \end{aligned}(14)✦

Finally, for every r∈ℕr \in \mathbb{N} and every finitely branching measure hierarchy ζ∈Hr\zeta \in H_r, there exist a positive integer nn, a depth-rr kernel tower TT on {1,…,n}\{1, \dots, n\}, and a function V:{1,…,n}r→ℝV : \{1, \dots, n\}^r \to \mathbb{R} such that renc⁡r(T,V)=ζ.\operatorname{renc}_r(T, V) = \zeta.(15)✦

What is checked

In the Lean library, Lemma 8.1 is stated over finite probability laws, kernel towers, prescribed finite trees, nested Borel probability hierarchies HrH_r with the weak topology, and tilted heterogeneous-mark root towers: equation (13) equates the branching spin label moments of the root encoding law ζL,N\zeta_{L, N} under the terminal interior condition to the μ\mu-average of prescribed-tree overlaps, equation (14) identifies the backward recursive log-mean of a product kernel tower with the conditional log power mean of its literal-leaf encodings, and equation (15) realizes every finitely branching hierarchy in HrH_r as a literal-leaf encoding on a finite state space.