OctoInform Beta

OpenAI preprint, September 2026 · §2. The model and the variational principle

§2 (setting): Definitions of the Ising spin space, finite-volume pressure FNF_N, local spin law qq, and rr-level cavity functional Br(ζ,m)B_r(\zeta, m)

The diluted spin glass model and trial functional.

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 a diluted even-pp spin glass model with interaction arity p≥2p \ge 2 and Poisson interaction density α>0\alpha > 0, NN Ising spins interact through a Poisson(αN\alpha N) number of random pp-spin couplings θk\theta_k placed on uniformly sampled pp-tuples of sites, together with independent random external fields hih_i at each site. The central thermodynamic observable is the finite-volume pressure FNF_N, defined as 1/N1/N times the expected logarithm of the partition function.

The Mézard-Parisi variational principle expresses the thermodynamic limit of FNF_N through a family of rr-level cavity trial functionals Br(ζ,m)B_r(\zeta, m) evaluated on nested probability laws ζ\zeta of depth r+1r + 1 and real power-mean exponents m=(m1,…,mr)m = (m_1, \dots, m_r). Each trial functional combines a site cavity contribution averaged over a Poisson(αp\alpha p) degree with an edge cavity subtraction weighted by α(p−1)\alpha(p - 1), both aggregated recursively by conditional log power means.

Nested laws and log power means

The spaces ℋr\mathcal{H}_r of nested probability laws are defined recursively for r∈ℕr \in \mathbb{N} by setting ℋ0=ℝ\mathcal{H}_0 = \mathbb{R} with the Euclidean topology and letting ℋr+1=𝒫(ℋr)\mathcal{H}_{r+1} = \mathcal{P}(\mathcal{H}_r) be the space of Borel probability measures on ℋr\mathcal{H}_r equipped with the weak topology.✦ Each topological space ℋr\mathcal{H}_r is endowed with its Borel σ\sigma-algebra.✦

Throughout this page, division by zero in ℝ\mathbb{R} evaluates to 00. Let ι\iota be a finite index set, r∈ℕr \in \mathbb{N}, g:ℝι→ℝg : \mathbb{R}^\iota \to \mathbb{R}, m=(m1,…,mr)∈ℝrm = (m_1, \dots, m_r) \in \mathbb{R}^r, and η=(ηi)i∈ι∈ℋrι\eta = (\eta_i)_{i \in \iota} \in \mathcal{H}_r^\iota. The conditional log power mean Lr(g,m,η)∈ℝL_r(g, m, \eta) \in \mathbb{R} is defined recursively on rr by L0(g,(),x)=g(x),Lr+1(g,m,η)=1m1log⁡∫ℋrιexp⁡(m1Lr(g,m′,x))d(⨂i∈ιηi)(x),\begin{aligned} L_0(g, (), x) &= g(x), \\ L_{r+1}(g, m, \eta) &= \frac{1}{m_1} \log \int_{\mathcal{H}_r^\iota} \exp\bigl(m_1 L_r(g, m', x)\bigr) \,\mathrm{d}\Bigl(\bigotimes_{i \in \iota} \eta_i\Bigr)(x), \end{aligned}(1)✦ where x∈ℝιx \in \mathbb{R}^\iota in the base case r=0r = 0, and m′=(m2,…,mr+1)m' = (m_2, \dots, m_{r+1}) is the tail of m=(m1,…,mr+1)m = (m_1, \dots, m_{r+1}) in the recursive step. For a nested law ζ∈ℋr+1\zeta \in \mathcal{H}_{r+1}, exponents m∈ℝrm \in \mathbb{R}^r, and a function g:ℝι→ℝg : \mathbb{R}^\iota \to \mathbb{R}, the averaged log power mean Tr(ζ,m;g)∈ℝT_r(\zeta, m; g) \in \mathbb{R} is Tr(ζ,m;g)=∫ℋrιLr(g,m,η)dζ⊗ι(η).T_r(\zeta, m; g) = \int_{\mathcal{H}_r^\iota} L_r(g, m, \eta) \,\mathrm{d}\zeta^{\otimes \iota}(\eta).(2)✦

The definition

Definition. The Ising spin space Σ\Sigma is the two-element set Σ={false,true},\Sigma = \{\text{false}, \text{true}\},(3)✦ and the real spin value map χ:Σ→ℝ\chi : \Sigma \to \mathbb{R} is given by χ(s)={1,s=true,−1,s=false.\chi(s) = \begin{cases} 1, & s = \text{true}, \\ -1, & s = \text{false}. \end{cases}(4)✦

Fix an arity p∈ℕp \in \mathbb{N}. A pp-spin interaction function is a map θ:Σp→ℝ\theta : \Sigma^p \to \mathbb{R}, and the space of such functions is denoted Θp=ℝΣp\Theta_p = \mathbb{R}^{\Sigma^p}.✦ The space of factorized interaction samples is the product Θ̃p=Θp×ℝ×ℝ×(ℝΣ)p,\widetilde{\Theta}_p = \Theta_p \times \mathbb{R} \times \mathbb{R} \times (\mathbb{R}^{\Sigma})^p,(5)✦ and the first component of a sample θ̃∈Θ̃p\tilde{\theta} \in \widetilde{\Theta}_p is written θ∈Θp\theta \in \Theta_p. A diluted pp-spin glass model M=(α,μdis,μfld)M = (\alpha, \mu_{\mathrm{dis}}, \mu_{\mathrm{fld}}) consists of a nonnegative interaction density α≥0\alpha \ge 0, a Borel probability measure μdis\mu_{\mathrm{dis}} on Θ̃p\widetilde{\Theta}_p, and a Borel probability measure μfld\mu_{\mathrm{fld}} on ℝ\mathbb{R}.

For N,k∈ℕN, k \in \mathbb{N}, interaction samples θ̃=(θ̃1,…,θ̃k)∈Θ̃pk\tilde{\theta} = (\tilde{\theta}_1, \dots, \tilde{\theta}_k) \in \widetilde{\Theta}_p^k with first components θ1,…,θk∈Θp\theta_1, \dots, \theta_k \in \Theta_p, external fields h=(h1,…,hN)∈ℝNh = (h_1, \dots, h_N) \in \mathbb{R}^N, an index array I=(Ij,ℓ)∈{1,…,N}k×pI = (I_{j,\ell}) \in \{1, \dots, N\}^{k \times p}, and a spin configuration σ=(σ1,…,σN)∈ΣN\sigma = (\sigma_1, \dots, \sigma_N) \in \Sigma^N, the negative Hamiltonian −HN(θ̃,h,I;σ)-H_N(\tilde{\theta}, h, I; \sigma) and the log partition function log⁡ZN(θ̃,h,I)\log Z_N(\tilde{\theta}, h, I) are defined by −HN(θ̃,h,I;σ)=∑j=1kθj(σIj,1,…,σIj,p)+∑i=1Nhiχ(σi)-H_N(\tilde{\theta}, h, I; \sigma) = \sum_{j=1}^k \theta_j(\sigma_{I_{j,1}}, \dots, \sigma_{I_{j,p}}) + \sum_{i=1}^N h_i \chi(\sigma_i)(6)✦ and log⁡ZN(θ̃,h,I)=log⁡∑σ∈ΣNexp⁡(−HN(θ̃,h,I;σ)).\log Z_N(\tilde{\theta}, h, I) = \log \sum_{\sigma \in \Sigma^N} \exp\bigl(-H_N(\tilde{\theta}, h, I; \sigma)\bigr).(7)✦ Writing Pois(λ)\mathrm{Pois}(\lambda) for the Poisson probability measure on ℕ\mathbb{N} with parameter λ≥0\lambda \ge 0 (the point mass at 00 when λ=0\lambda = 0), the finite-volume pressure FNF_N of MM at system size N∈ℕN \in \mathbb{N} is FN=1N∫ℕ∫Θ̃pk∫ℝN1Nkp∑I∈{1,…,N}k×plog⁡ZN(θ̃,h,I)dμfld⊗N(h)dμdis⊗k(θ̃)dPois(αN)(k).\begin{aligned} F_N = \frac{1}{N} \int_{\mathbb{N}} \int_{\widetilde{\Theta}_p^k} \int_{\mathbb{R}^N} \frac{1}{N^{kp}} \sum_{I \in \{1,\dots,N\}^{k \times p}} &\log Z_N(\tilde{\theta}, h, I) \\ &\,\mathrm{d}\mu_{\mathrm{fld}}^{\otimes N}(h) \,\mathrm{d}\mu_{\mathrm{dis}}^{\otimes k}(\tilde{\theta}) \,\mathrm{d}\mathrm{Pois}(\alpha N)(k). \end{aligned}(8)✦

For a cavity field x∈ℝx \in \mathbb{R} and a spin s∈Σs \in \Sigma, the local spin law q(x,s)q(x, s) is q(x,s)=exχ(s)2cosh⁡x.q(x, s) = \frac{e^{x \chi(s)}}{2 \cosh x}.(9)✦ With p−1p - 1 denoting truncated subtraction on ℕ\mathbb{N} (so 0−1=00 - 1 = 0), appending a cavity spin ε∈Σ\varepsilon \in \Sigma to a tuple s=(s1,…,sp−1)∈Σp−1s = (s_1, \dots, s_{p-1}) \in \Sigma^{p-1} produces the tuple (s,ε)∈Σp(s, \varepsilon) \in \Sigma^p with coordinates (s,ε)ℓ={sℓ,1≤ℓ≤p−1,ε,ℓ=p,(s, \varepsilon)_\ell = \begin{cases} s_\ell, & 1 \le \ell \le p - 1, \\ \varepsilon, & \ell = p, \end{cases}(10) which is the unique empty tuple when p=0p = 0. For an interaction θ∈Θp\theta \in \Theta_p, field vectors x=(x1,…,xp)∈ℝpx = (x_1, \dots, x_p) \in \mathbb{R}^p and y=(y1,…,yp−1)∈ℝp−1y = (y_1, \dots, y_{p-1}) \in \mathbb{R}^{p-1}, and a spin ε∈Σ\varepsilon \in \Sigma, the edge cavity weight wedge(θ,x)w_{\mathrm{edge}}(\theta, x) and the cavity message u(θ,y,ε)u(\theta, y, \varepsilon) are defined by wedge(θ,x)=∑s∈Σpeθ(s)∏ℓ=1pq(xℓ,sℓ)w_{\mathrm{edge}}(\theta, x) = \sum_{s \in \Sigma^p} e^{\theta(s)} \prod_{\ell=1}^p q(x_\ell, s_\ell)(11)✦ and u(θ,y,ε)=log⁡∑s∈Σp−1eθ(s,ε)∏ℓ=1p−1q(yℓ,sℓ).u(\theta, y, \varepsilon) = \log \sum_{s \in \Sigma^{p-1}} e^{\theta(s, \varepsilon)} \prod_{\ell=1}^{p-1} q(y_\ell, s_\ell).(12)✦ For k∈ℕk \in \mathbb{N}, samples θ̃=(θ̃1,…,θ̃k)∈Θ̃pk\tilde{\theta} = (\tilde{\theta}_1, \dots, \tilde{\theta}_k) \in \widetilde{\Theta}_p^k with first components θ1,…,θk\theta_1, \dots, \theta_k, a field h∈ℝh \in \mathbb{R}, and an array x=(xj,ℓ)∈ℝk×(p−1)x = (x_{j,\ell}) \in \mathbb{R}^{k \times (p-1)} with rows xj=(xj,1,…,xj,p−1)x_j = (x_{j,1}, \dots, x_{j,p-1}), the site cavity log weight gsite(θ̃,h;x)g_{\mathrm{site}}(\tilde{\theta}, h; x) is gsite(θ̃,h;x)=log⁡(12∑ε∈Σexp(hχ(ε)+∑j=1ku(θj,xj,ε))).g_{\mathrm{site}}(\tilde{\theta}, h; x) = \log \left( \frac{1}{2} \sum_{\varepsilon \in \Sigma} \exp \left( h \chi(\varepsilon) + \sum_{j=1}^k u(\theta_j, x_j, \varepsilon) \right) \right).(13)✦ Finally, for a hierarchy level r∈ℕr \in \mathbb{N}, a nested law ζ∈ℋr+1\zeta \in \mathcal{H}_{r+1}, and exponents m∈ℝrm \in \mathbb{R}^r, the rr-level trial functional Br(ζ,m)B_r(\zeta, m) of MM is Br(ζ,m)=log⁡2+∫ℕ∫Θ̃pk∫ℝTr(ζ,m;gsite(θ̃,h;⋅))dμfld(h)dμdis⊗k(θ̃)dPois(αp)(k)−α(p−1)∫Θ̃pTr(ζ,m;log⁡wedge(θ,⋅))dμdis(θ̃).\begin{aligned} B_r(\zeta, m) &= \log 2 + \int_{\mathbb{N}} \int_{\widetilde{\Theta}_p^k} \int_{\mathbb{R}} T_r\bigl(\zeta, m; g_{\mathrm{site}}(\tilde{\theta}, h; \cdot)\bigr) \\ &\qquad \,\mathrm{d}\mu_{\mathrm{fld}}(h) \,\mathrm{d}\mu_{\mathrm{dis}}^{\otimes k}(\tilde{\theta}) \,\mathrm{d}\mathrm{Pois}(\alpha p)(k) \\ &\quad - \alpha (p - 1) \int_{\widetilde{\Theta}_p} T_r\bigl(\zeta, m; \log w_{\mathrm{edge}}(\theta, \cdot)\bigr) \\ &\qquad \,\mathrm{d}\mu_{\mathrm{dis}}(\tilde{\theta}). \end{aligned}(14)✦

What is checked

In the Lean library, the definitions (3), (4), (8), (9), and (14) are formulated for any natural number arity p∈ℕp \in \mathbb{N}, any nonnegative density α≥0\alpha \ge 0, arbitrary Borel probability measures μdis\mu_{\mathrm{dis}} on factorized interaction samples and μfld\mu_{\mathrm{fld}} on ℝ\mathbb{R}, any hierarchy level r∈ℕr \in \mathbb{N} over the weak-topology Borel spaces ℋr\mathcal{H}_r, and arbitrary real exponent tuples m∈ℝrm \in \mathbb{R}^r, with no parity, integrability, or monotonicity restrictions imposed at the level of these definitions.