OctoInform Beta

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

Lemma 8.2: Bounding pattern replacement by replica-subset moment deviations, rewriting uniform tree means via empirical patterns, and factorizing independent root site patterns

Empirical spin pattern comparison and independent factorization.

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 on finite replica hierarchies, bounded observables of aa spin sites are evaluated along the leaves of a prescribed finite tree. When the aa sites are drawn uniformly from the same configuration, their leaf spin patterns are correlated through the shared empirical pattern law on the tree. Replacing these aa correlated draws by aa independent draws from the averaged pattern law changes any observable bounded by 11 by at most aa times the sum of mean absolute deviations of the nonempty replica-subset spin moments.

To apply this comparison in the cavity step, the same framework expresses uniform site averages of prescribed tree conditional means in terms of empirical leaf spin patterns and factorizes expectations over aa independent root-and-site draws into products of averaged root pattern masses.

Spin patterns and moment deviations

The Ising spin space Σ\Sigma is a two-element set representing the two spin orientations, equipped with the spin sign sign⁡:Σ→{−1,1}\operatorname{sign} : \Sigma \to \{-1, 1\} taking the two elements of Σ\Sigma to +1+1 and −1-1. A finite probability law PP on a finite state space Ω\Omega is a real-valued weight function on Ω\Omega satisfying P(x)≥0P(x) \ge 0 for every x∈Ωx \in \Omega and ∑x∈ΩP(x)=1\sum_{x \in \Omega} P(x) = 1.✦ The expectation of a function g:Ω→ℝg : \Omega \to \mathbb{R} under PP is 𝔼P[g]=∑x∈ΩP(x)g(x)\mathbb{E}_P[g] = \sum_{x \in \Omega} P(x) g(x).✦ When Ω\Omega is nonempty, the uniform finite law on Ω\Omega assigns weight |Ω|−1|\Omega|^{-1} to each element of Ω\Omega.✦

Given a measure μ\mu on a measurable space ZZ, a family of finite state spaces (Ωz)z∈Z(\Omega_z)_{z \in Z} equipped with finite probability laws (Pz)z∈Z(P_z)_{z \in Z}, and a family of real-valued functions Fz:Ωz→ℝF_z : \Omega_z \to \mathbb{R}, the mixed-law mean deviation 𝒟μ,P(F)\mathcal{D}_{\mu, P}(F) is defined by (1): 𝒟μ,P(F)=∫Z𝔼Pz[|Fz(w)−∫Z𝔼Py[Fy]dμ(y)|]dμ(z).\mathcal{D}_{\mu, P}(F) = \int_Z \mathbb{E}_{P_z}\!\left[ \left|F_z(w) - \int_Z \mathbb{E}_{P_y}[F_y]\,d\mu(y)\right| \right] d\mu(z).(1)✦

Fix a finite index set ι\iota. A spin pattern on ι\iota is a map e∈Σιe \in \Sigma^\iota. For a subset S⊆ιS \subseteq \iota and a function P:Σι→ℝP : \Sigma^\iota \to \mathbb{R}, the spin pattern character χS(e)\chi_S(e) and the replica-subset spin moment RS(P)R_S(P) are given by (2): χS(e)=∏u∈Ssign⁡(e(u)),RS(P)=∑e∈ΣιP(e)χS(e).\begin{aligned} \chi_S(e) &= \prod_{u \in S} \operatorname{sign}(e(u)), \\ R_S(P) &= \sum_{e \in \Sigma^\iota} P(e)\,\chi_S(e). \end{aligned}(2) For a natural number NN and a family σ:{1,…,N}→Σι\sigma : \{1, \dots, N\} \to \Sigma^\iota of spin patterns, the empirical replica-pattern law Pˆσ:Σι→ℝ\hat{P}_\sigma : \Sigma^\iota \to \mathbb{R} is the empirical distribution of σ\sigma, assigning to each pattern e∈Σιe \in \Sigma^\iota the fraction of indices i∈{1,…,N}i \in \{1, \dots, N\} with σ(i)=e\sigma(i) = e.✦

For a family of pattern weights Pω:Σι→ℝP_\omega : \Sigma^\iota \to \mathbb{R} indexed by ω\omega in a measure space (Ω,μ)(\Omega, \mu), the mean pattern mass P‾(e)\bar{P}(e) is the μ\mu-integral of Pω(e)P_\omega(e).✦ Similarly, for a measure μ\mu on ZZ, finite probability laws PzP_z on finite spaces Ωz\Omega_z, and pattern weights qz,w:Σι→ℝq_{z,w} : \Sigma^\iota \to \mathbb{R} indexed by z∈Zz \in Z and w∈Ωzw \in \Omega_z, the mixed-law pattern mass q‾(e)\bar{q}(e) is the mixed expectation of qz,w(e)q_{z,w}(e).✦ Both are given by (3): P‾(e)=∫ΩPω(e)dμ(ω),q‾(e)=∫Z𝔼Pz[qz,⋅(e)]dμ(z).\begin{aligned} \bar{P}(e) &= \int_\Omega P_\omega(e)\,d\mu(\omega), \\ \bar{q}(e) &= \int_Z \mathbb{E}_{P_z}[q_{z,\cdot}(e)]\,d\mu(z). \end{aligned}(3)

Prescribed trees and kernel towers

For a state space Ω\Omega and a natural number nn, the finite path space Ω(n)\Omega^{(n)} of length nn is a singleton when n=0n = 0 and the Cartesian product Ω×Ω(n−1)\Omega \times \Omega^{(n-1)} when n≥1n \ge 1.✦ When Ω\Omega is finite, a tower of finite kernels KK of depth nn on Ω\Omega is trivial for n=0n = 0, and for n≥1n \ge 1 consists of an initial finite probability law K1K_1 on Ω\Omega together with a continuation tower KxK_x of depth n−1n - 1 for each outcome x∈Ωx \in \Omega.✦ Given real exponents m=(m1,…,mn)∈ℝnm = (m_1, \dots, m_n) \in \mathbb{R}^n and a potential Φ:Ω(n)→ℝ\Phi : \Omega^{(n)} \to \mathbb{R}, the tilted kernel tower K(m,Φ)K^{(m, \Phi)} of depth nn is defined recursively: it is trivial at depth 00, and at depth n≥1n \ge 1 its top kernel is exponentially tilted by m1m_1 times the backward logarithmic potential of the remaining subtower at each first-step state xx, while its continuation at xx is the recursively tilted subtower of KxK_x for the remaining exponents (m2,…,mn)(m_2, \dots, m_n) and tail potential y↦Φ(x,y)y \mapsto \Phi(x, y).✦

A prescribed finite tree 𝒯\mathcal{T} of height nn is either a single leaf when n=0n = 0, or an internal vertex of height n≥1n \ge 1 having a positive integer number kk of ordered children 𝒯1,…,𝒯k\mathcal{T}_1, \dots, \mathcal{T}_k, each a prescribed finite tree of height n−1n - 1.✦ The set of tree leaf vertices ℒ(𝒯)\mathcal{L}(\mathcal{T}) consists of a unique vertex when 𝒯\mathcal{T} is a leaf, and of pairs (i,b)(i, b) with i∈{1,…,k}i \in \{1, \dots, k\} and b∈ℒ(𝒯i)b \in \mathcal{L}(\mathcal{T}_i) at an internal node.✦ A prescribed tree sample ww in Ω\Omega indexed by 𝒯\mathcal{T} is the unique element of a singleton at a leaf, and at an internal node with children 𝒯1,…,𝒯k\mathcal{T}_1, \dots, \mathcal{T}_k is a tuple assigning to each child index ii a state xi∈Ωx_i \in \Omega paired with a prescribed tree sample wiw_i for 𝒯i\mathcal{T}_i.✦ For each leaf b∈ℒ(𝒯)b \in \mathcal{L}(\mathcal{T}), the path to a leaf πb(w)∈Ω(n)\pi_b(w) \in \Omega^{(n)} is the empty path when n=0n = 0, and at an internal node pairs xix_i with the recursive path in 𝒯i\mathcal{T}_i when b=(i,b′)b = (i, b').✦

For a prescribed finite tree 𝒯\mathcal{T} of height nn and a tower of finite kernels KK of depth nn on Ω\Omega, the prescribed tree sample law ℚ𝒯,K\mathbb{Q}_{\mathcal{T}, K} is the finite probability law on prescribed tree samples defined recursively as the unique law on the singleton at a leaf, and at an internal node with children 𝒯1,…,𝒯k\mathcal{T}_1, \dots, \mathcal{T}_k as the product law over i∈{1,…,k}i \in \{1, \dots, k\} of drawing xix_i from the top kernel K1K_1 and then drawing wiw_i from ℚ𝒯i,Kxi\mathbb{Q}_{\mathcal{T}_i, K_{x_i}}.✦ The prescribed tree conditional mean ℰ𝒯,K(g)\mathcal{E}_{\mathcal{T}, K}(g) of a function g:Ω(n)→ℝg : \Omega^{(n)} \to \mathbb{R} is defined recursively by ℰ𝒯,K(g)=g(∅)\mathcal{E}_{\mathcal{T}, K}(g) = g(\emptyset) at a leaf and, at an internal node with children 𝒯1,…,𝒯k\mathcal{T}_1, \dots, \mathcal{T}_k, by ∏i=1k𝔼K1[x↦ℰ𝒯i,Kx(y↦g(x,y))]\prod_{i=1}^k \mathbb{E}_{K_1}\bigl[x \mapsto \mathcal{E}_{\mathcal{T}_i, K_x}(y \mapsto g(x, y))\bigr].✦

Root states and heterogeneous marks

For a system size N∈ℕN \in \mathbb{N}, the spin site index set is 𝒮N={1,…,max⁡(N,1)}\mathcal{S}_N = \{1, \dots, \max(N, 1)\}, and the uniform site law νN\nu_N is the uniform probability measure on 𝒮N\mathcal{S}_N. For any space EE and natural number nn, the finite root block sequence space of length nn is a singleton for n=0n = 0 and the iterated product EnE^n for n≥1n \ge 1.✦ Given 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 ℛ=ℛ(Y,X,I,M)\mathcal{R} = \mathcal{R}(Y, X, I, M) consists of triples (h,(k,x),(r,y))(h, (k, x), (r, y)) where hh is a length-MM sequence in YY, k∈ℕk \in \mathbb{N} with xx a length-kk sequence in XX, and r∈ℕr \in \mathbb{N} with yy a length-rr sequence in II.✦

Assign to each mark type i∈Ii \in I a finite alphabet AiA_i. A length-rr root sequence yy in II determines an indexed tuple ρ:{1,…,r}→I\rho : \{1, \dots, r\} \to I of mark types, and a realized mark row for ρ\rho is an element of ∏q=1rAρ(q)\prod_{q=1}^r A_{\rho(q)}. From a joint length-LL path uu in Ω×∏q=1rAρ(q)\Omega \times \prod_{q=1}^r A_{\rho(q)}, the physical path projection phys(u)∈Ω(L)\mathrm{phys}(u) \in \Omega^{(L)} retains the Ω\Omega-coordinates at each step, and for each q∈{1,…,r}q \in \{1, \dots, r\} the realized mark path markq(u)∈Aρ(q)(L)\mathrm{mark}_q(u) \in A_{\rho(q)}^{(L)} extracts the qq-th mark coordinate at each step. Given a depth-LL kernel tower KK on Ω\Omega and levelwise finite probability laws Qi,ℓQ_{i, \ell} on AiA_i for i∈Ii \in I and ℓ∈{1,…,L}\ell \in \{1, \dots, L\}, the product-prior mark tower Kρ,QK^{\rho, Q} on Ω×∏q=1rAρ(q)\Omega \times \prod_{q=1}^r A_{\rho(q)} adjoins at each level ℓ\ell the product law ⨂q=1rQρ(q),ℓ\bigotimes_{q=1}^r Q_{\rho(q), \ell} independently of the physical step.✦ Given a base energy Φbase:Ω(L)→ℝ\Phi_{\mathrm{base}} : \Omega^{(L)} \to \mathbb{R} and perturbation factors ψi:Ω(L)×Ai(L)→ℝ\psi_i : \Omega^{(L)} \times A_i^{(L)} \to \mathbb{R}, the perturbed log Boltzmann weight ΨΦbase,ρ,ψ(u)\Psi_{\Phi_{\mathrm{base}}, \rho, \psi}(u) of a joint length-LL path uu is given by (4): ΨΦbase,ρ,ψ(u)=Φbase(phys(u))+∑q=1rlog⁡ψρ(q)(phys(u),markq(u)).\Psi_{\Phi_{\mathrm{base}}, \rho, \psi}(u) = \Phi_{\mathrm{base}}(\mathrm{phys}(u)) + \sum_{q=1}^r \log \psi_{\rho(q)}\bigl(\mathrm{phys}(u), \mathrm{mark}_q(u)\bigr).(4)✦

Now fix a prescribed finite tree 𝒯\mathcal{T} of height LL, a depth-LL kernel tower KK on Ω\Omega, levelwise mark laws QQ, real exponents m∈ℝLm \in \mathbb{R}^L, a base weight Φbase(h,k,x,⋅):Ω(L)→ℝ\Phi_{\mathrm{base}}(h, k, x, \cdot) : \Omega^{(L)} \to \mathbb{R} depending on the external fields and bonds, and perturbation factors ψ\psi. For an observable F:(Ω(L))ℒ(𝒯)→ℝF : (\Omega^{(L)})^{\mathcal{L}(\mathcal{T})} \to \mathbb{R} and a full disorder root state z=(h,(k,x),(r,y))∈ℛz = (h, (k, x), (r, y)) \in \mathcal{R} with indexed mark-type tuple ρ\rho, the root-packed tree mean ℳ𝒯(F;z)\mathcal{M}_{\mathcal{T}}(F; z) is the expectation, under the prescribed tree sample law ℚ𝒯,K̃\mathbb{Q}_{\mathcal{T}, \widetilde{K}} of the tilted product-prior mark tower K̃=(Kρ,Q)(m,ΨΦbase(h,k,x,⋅),ρ,ψ)\widetilde{K} = (K^{\rho, Q})^{(m, \Psi_{\Phi_{\mathrm{base}}(h, k, x, \cdot), \rho, \psi})}, of F(b↦phys(πb(w)))F\bigl(b \mapsto \mathrm{phys}(\pi_b(w))\bigr).✦ Given a spin readout V:Ω(L)×𝒮N→ΣV : \Omega^{(L)} \times \mathcal{S}_N \to \Sigma and a measure μ\mu on ℛ\mathcal{R}, the root site pattern probability psite(e;z,s)p_{\mathrm{site}}(e; z, s) for e∈Σℒ(𝒯)e \in \Sigma^{\mathcal{L}(\mathcal{T})}, z∈ℛz \in \mathcal{R}, and s∈𝒮Ns \in \mathcal{S}_N, and the averaged root pattern mass p‾(e)\bar{p}(e) are given by (5): psite(e;z,s)=ℳ𝒯(y↦𝟏{b↦V(yb,s)=e};z),p‾(e)=∫ℛℳ𝒯(y↦Pˆ(s,b)↦V(yb,s)(e);z)dμ(z).\begin{aligned} p_{\mathrm{site}}(e; z, s) &= \mathcal{M}_{\mathcal{T}}\bigl( y \mapsto \mathbf{1}_{\{b \mapsto V(y_b, s) = e\}}; z \bigr), \\ \bar{p}(e) &= \int_{\mathcal{R}} \mathcal{M}_{\mathcal{T}}\bigl( y \mapsto \hat{P}_{(s, b) \mapsto V(y_b, s)}(e); z \bigr)\,d\mu(z). \end{aligned}(5)

The claim

Lemma 8.2. Let ι\iota be a finite index set, and let (Ω,μ)(\Omega, \mu) be a probability space. Let P:Ω×Σι→ℝP : \Omega \times \Sigma^\iota \to \mathbb{R} be such that ω↦Pω(e)\omega \mapsto P_\omega(e) is measurable for every e∈Σιe \in \Sigma^\iota, and for every ω∈Ω\omega \in \Omega, Pω(e)≥0P_\omega(e) \ge 0 for all e∈Σιe \in \Sigma^\iota and ∑e∈ΣιPω(e)=1\sum_{e \in \Sigma^\iota} P_\omega(e) = 1. Then for every a∈ℕa \in \mathbb{N} and every f:(Σι)a→ℝf : (\Sigma^\iota)^a \to \mathbb{R} with |f(e)|≤1|f(e)| \le 1 for all e∈(Σι)ae \in (\Sigma^\iota)^a, |∫Ω∑e∈(Σι)a(∏j=1aPω(ej))f(e)dμ(ω)−∑e∈(Σι)a(∏j=1aP‾(ej))f(e)|≤a∑∅≠S⊆ι∫Ω|RS(Pω)−∫ΩRS(Pω′)dμ(ω′)|dμ(ω).\begin{aligned} &\left|\int_\Omega \sum_{e \in (\Sigma^\iota)^a} \Bigl(\prod_{j=1}^a P_\omega(e_j)\Bigr) f(e)\,d\mu(\omega) - \sum_{e \in (\Sigma^\iota)^a} \Bigl(\prod_{j=1}^a \bar{P}(e_j)\Bigr) f(e)\right| \\ &\qquad \le a \sum_{\emptyset \ne S \subseteq \iota} \int_\Omega \left|R_S(P_\omega) - \int_\Omega R_S(P_{\omega'})\,d\mu(\omega')\right| d\mu(\omega). \end{aligned}(6)✦

Next, let (Z,μ)(Z, \mu) be a probability space, let (Ωz)z∈Z(\Omega_z)_{z \in Z} be a family of finite state spaces with finite probability laws (Pz)z∈Z(P_z)_{z \in Z}, let ι\iota be a finite index set, and for each z∈Zz \in Z and w∈Ωzw \in \Omega_z let qz,wq_{z,w} be a probability law on Σι\Sigma^\iota such that z↦𝔼Pz[qz,⋅(e)]z \mapsto \mathbb{E}_{P_z}[q_{z,\cdot}(e)] is measurable for every e∈Σιe \in \Sigma^\iota. Let a∈ℕa \in \mathbb{N} and f:(Σι)a→ℝf : (\Sigma^\iota)^a \to \mathbb{R} satisfy |f(e)|≤1|f(e)| \le 1 for all e∈(Σι)ae \in (\Sigma^\iota)^a. Assume that z↦𝔼Pz[∑e∈(Σι)a(∏j=1aqz,w(ej))f(e)]z \mapsto \mathbb{E}_{P_z}\bigl[\sum_{e \in (\Sigma^\iota)^a} (\prod_{j=1}^a q_{z,w}(e_j)) f(e)\bigr] is measurable and that for every subset S⊆ιS \subseteq \iota, z↦𝔼Pz[|RS(qz,w)−RS(q‾)|]z \mapsto \mathbb{E}_{P_z}\bigl[|R_S(q_{z,w}) - R_S(\bar{q})|\bigr] is measurable. Then |∫Z𝔼Pz[∑e∈(Σι)a(∏j=1aqz,w(ej))f(e)]dμ(z)−∑e∈(Σι)a(∏j=1aq‾(ej))f(e)|≤a∑∅≠S⊆ι𝒟μ,P((z,w)↦RS(qz,w)).\begin{aligned} &\left|\int_Z \mathbb{E}_{P_z}\!\left[\sum_{e \in (\Sigma^\iota)^a} \Bigl(\prod_{j=1}^a q_{z,w}(e_j)\Bigr) f(e)\right] d\mu(z) - \sum_{e \in (\Sigma^\iota)^a} \Bigl(\prod_{j=1}^a \bar{q}(e_j)\Bigr) f(e)\right| \\ &\qquad \le a \sum_{\emptyset \ne S \subseteq \iota} \mathcal{D}_{\mu, P}\bigl((z, w) \mapsto R_S(q_{z,w})\bigr). \end{aligned}(7)✦

For any natural number nn, finite state space Ω\Omega, prescribed finite tree 𝒯\mathcal{T} of height nn, depth-nn tower of finite kernels KK on Ω\Omega, natural number NN with N≥1N \ge 1, spin map V:Ω(n)×{1,…,N}→ΣV : \Omega^{(n)} \times \{1, \dots, N\} \to \Sigma, natural number aa, and function f:Σa→ℝf : \Sigma^a \to \mathbb{R}, writing σw(i)(b)=V(πb(w),i)\sigma_w(i)(b) = V(\pi_b(w), i) for each tree sample ww and writing 𝔼unif\mathbb{E}_{\mathrm{unif}} for expectation over (i1,…,ia)(i_1, \dots, i_a) under the uniform finite law on {1,…,N}a\{1, \dots, N\}^a, 𝔼unif[ℰ𝒯,K(y↦f(V(y,i1),…,V(y,ia)))]=𝔼ℚ𝒯,K[∑e∈(Σℒ(𝒯))a(∏j=1aPˆσw(ej))(∏b∈ℒ(𝒯)f(e1(b),…,ea(b)))].\begin{aligned} &\mathbb{E}_{\mathrm{unif}}\!\left[ \mathcal{E}_{\mathcal{T}, K}\bigl(y \mapsto f(V(y, i_1), \dots, V(y, i_a))\bigr) \right] \\ &\qquad = \mathbb{E}_{\mathbb{Q}_{\mathcal{T}, K}}\!\left[ \sum_{e \in (\Sigma^{\mathcal{L}(\mathcal{T})})^a} \Bigl(\prod_{j=1}^a \hat{P}_{\sigma_w}(e_j)\Bigr) \Bigl(\prod_{b \in \mathcal{L}(\mathcal{T})} f(e_1(b), \dots, e_a(b))\Bigr) \right]. \end{aligned}(8)✦

Finally, for measurable spaces YY, XX, and II with II countable and having measurable singletons, a finite state space Ω\Omega, finite mark alphabets (Ai)i∈I(A_i)_{i \in I}, natural numbers LL, MM, and NN, a prescribed finite tree 𝒯\mathcal{T} of height LL, a depth-LL tower of finite kernels KK on Ω\Omega, levelwise mark laws QQ, real exponents m∈ℝLm \in \mathbb{R}^L, a base weight Φbase\Phi_{\mathrm{base}} such that for every k∈ℕk \in \mathbb{N} and every path y∈Ω(L)y \in \Omega^{(L)} the map (h,x)↦Φbase(h,k,x,y)(h, x) \mapsto \Phi_{\mathrm{base}}(h, k, x, y) from YM×XkY^M \times X^k to ℝ\mathbb{R} is measurable, perturbation factors ψ\psi, a spin readout V:Ω(L)×𝒮N→ΣV : \Omega^{(L)} \times \mathcal{S}_N \to \Sigma, and a probability measure μ\mu on ℛ=ℛ(Y,X,I,M)\mathcal{R} = \mathcal{R}(Y, X, I, M), for every a∈ℕa \in \mathbb{N} and every f:(Σℒ(𝒯))a→ℝf : (\Sigma^{\mathcal{L}(\mathcal{T})})^a \to \mathbb{R}, ∫(ℛ×𝒮N)a∑e∈(Σℒ(𝒯))a(∏j=1apsite(ej;zj))f(e)d(μ⊗νN)⊗a(z)=∑e∈(Σℒ(𝒯))a(∏j=1ap‾(ej))f(e).\begin{aligned} &\int_{(\mathcal{R} \times \mathcal{S}_N)^a} \sum_{e \in (\Sigma^{\mathcal{L}(\mathcal{T})})^a} \Bigl(\prod_{j=1}^a p_{\mathrm{site}}(e_j; z_j)\Bigr) f(e) \,d(\mu \otimes \nu_N)^{\otimes a}(z) \\ &\qquad = \sum_{e \in (\Sigma^{\mathcal{L}(\mathcal{T})})^a} \Bigl(\prod_{j=1}^a \bar{p}(e_j)\Bigr) f(e). \end{aligned}(9)✦

What is checked

The Lean library states the pattern-replacement bounds (6) and (7) over measurable random spin-pattern laws and mixed finite-law pattern families on finite index sets for observables bounded by 11 on aa-tuples of spin patterns, the uniform-site tree mean identity (8) over arbitrary prescribed finite trees and finite kernel towers, and the independent factorization identity (9) over aa-fold product measures of full disorder root states and uniform spin site indices under tilted product-prior mark towers.