OctoInform Beta

OpenAI preprint, September 2026 · §2. Posterior experiments and reductions · §2

Proposition 2.3 [Density evolution]: Testing continuous functions for −1/2≤λ≤1-1/2 \le \lambda \le 1, and matching regular and ordered tree laws for 0≤λ<10 \le \lambda < 1

One-generation density evolution and depth-ℓ\ell tree message laws.

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

Send a uniformly chosen spin from the root of a tree down its edges through a symmetric three-state channel with parameter λ\lambda, and observe the spins at depth ℓ\ell. The root posterior given the depth-ℓ\ell observation defines a likelihood message, three times the posterior, and passing from depth ℓ\ell to depth ℓ+1\ell+1 transforms the law of this message by combining independent child messages transmitted across one edge. The library, the OpenAI (OAI) results, develops this recursion in two separate parts, OAI.ThreeState and OAI.ThreeState.TreeClauses: the first part tests the density evolution operator against continuous functions for every noise parameter λ\lambda in the admissible range −1/2≤λ≤1-1/2 \le \lambda \le 1, while the second part iterates a version of the operator that preserves balanced symmetric laws of messages (defined below) for 0≤λ<10 \le \lambda < 1 to obtain the depth-ℓ\ell message laws of regular and ordered trees.

Posterior messages

In both parts, a spin is an element of 𝒮={0,1,2}\mathcal{S} = \{0, 1, 2\}, corresponding to the states 11, 22, 33 of the preprint, and a real noise parameter λ\lambda is admissible when −1/2≤λ≤1-1/2 \le \lambda \le 1. In the first part, for λ∈ℝ\lambda \in \mathbb{R} and spins i,j∈𝒮i, j \in \mathcal{S}, the channel matrix entry is Kλ(i,j)={(1+2λ)/3if i=j,(1−λ)/3if i≠j.K_\lambda(i, j) = \begin{cases} (1 + 2\lambda)/3 & \text{if } i = j, \\ (1 - \lambda)/3 & \text{if } i \neq j. \end{cases}(1)✦ When λ\lambda is admissible, the entries (1) are nonnegative and sum to 11 over j∈𝒮j \in \mathcal{S}, defining the channel kernel Kλ(i,⋅)K_\lambda(i, \cdot) on 𝒮\mathcal{S} from each spin ii.✦

The uniform spin prior Unif⁡(𝒮)\operatorname{Unif}(\mathcal{S}) assigns probability 1/31/3 to each spin in 𝒮\mathcal{S}. Given a family P=(Pi)i∈𝒮P = (P_i)_{i \in \mathcal{S}} of discrete probability distributions on an observation space α\alpha, the marginal observation law P¯\overline{P} is the mixture of PP under Unif⁡(𝒮)\operatorname{Unif}(\mathcal{S}), with mass P¯(y)=13∑i∈𝒮Pi(y)\overline{P}(y) = \frac{1}{3} \sum_{i \in \mathcal{S}} P_i(y) at y∈αy \in \alpha.✦ For an observation y∈αy \in \alpha, the posterior probability pi(y)p_i(y) of spin ii under PP is pi(y)={Pi(y)/(3P¯(y))if P¯(y)>0,1/3if P¯(y)=0.p_i(y) = \begin{cases} P_i(y) / \bigl(3 \overline{P}(y)\bigr) & \text{if } \overline{P}(y) > 0, \\ 1/3 & \text{if } \overline{P}(y) = 0. \end{cases}(2)✦

For a vector w∈ℝ3w \in \mathbb{R}^3 indexed by 𝒮\mathcal{S}, its coordinate average is ⟨w⟩=(w0+w1+w2)/3\langle w \rangle = (w_0 + w_1 + w_2)/3.✦ The message space ℳ\mathcal{M} is the set of vectors m∈ℝ3m \in \mathbb{R}^3 with mi≥0m_i \ge 0 for every i∈𝒮i \in \mathcal{S} and ∑i∈𝒮mi=3\sum_{i \in \mathcal{S}} m_i = 3, equivalently ⟨m⟩=1\langle m \rangle = 1; in the second part, this is the message set. The uninformative message is 𝟏=(1,1,1)∈ℳ\mathbf{1} = (1, 1, 1) \in \mathcal{M}.

In the first part, for a family PP of discrete distributions on α\alpha, the likelihood message of an observation y∈αy \in \alpha is the vector m(P,y)∈ℳm(P, y) \in \mathcal{M} with coordinates mi(P,y)=3pi(y)m_i(P, y) = 3 p_i(y) given by (2).✦ Pushing the marginal observation law P¯\overline{P} forward by y↦m(P,y)y \mapsto m(P, y) gives the likelihood message law ℒ(P)\mathcal{L}(P), a probability measure on ℳ\mathcal{M}. In the second part, for a family PP of discrete distributions on α\alpha, the discrete marginal law is likewise the mixture under the uniform spin law on 𝒮\mathcal{S}, giving each a∈αa \in \alpha the averaged discrete weight ⟨i↦Pi(a)⟩\langle i \mapsto P_i(a) \rangle, and pushing this marginal law forward by the map sending an observation to its likelihood message gives the discrete message law ℒdisc(P)\mathcal{L}_{\text{disc}}(P) on ℳ\mathcal{M}. In the second part, the message of a discrete observation a∈αa \in \alpha is its likelihood message: three times the posterior law of the spin given aa, when the spin is uniform and the observation given spin ii has law PiP_i. The coordinate ii of the likelihood message of aa is Pi(a)P_i(a) divided by the average of P0(a),P1(a),P2(a)P_0(a), P_1(a), P_2(a) whenever this average is positive.

The density evolution operator preserves balanced probability measures on ℳ\mathcal{M} together with permutation symmetry. A probability measure QQ on ℳ\mathcal{M} is balanced when ∫ℳmidQ(m)=1\int_{\mathcal{M}} m_i \, dQ(m) = 1 for every spin i∈𝒮i \in \mathcal{S}. For each permutation σ\sigma of 𝒮\mathcal{S}, permuting coordinates sends m∈ℳm \in \mathcal{M} to σ⋅m∈ℳ\sigma \cdot m \in \mathcal{M} with (σ⋅m)i=mσ(i)(\sigma \cdot m)_i = m_{\sigma(i)}. In the second part, a balanced symmetric law is a probability measure QQ on ℳ\mathcal{M} that is balanced and preserved by m↦σ⋅mm \mapsto \sigma \cdot m for every permutation σ\sigma of 𝒮\mathcal{S}.✦

Density evolution

For λ∈ℝ\lambda \in \mathbb{R}, the radial edge map is the map of ℝ3\mathbb{R}^3 to itself that sends a vector w∈ℝ3w \in \mathbb{R}^3 to the vector with coordinates 1+λ(wi−1)1 + \lambda(w_i - 1) for i∈𝒮i \in \mathcal{S}.✦ When λ\lambda is admissible, the radial edge map preserves ℳ\mathcal{M} and sends m∈ℳm \in \mathcal{M} to me(λ)∈ℳm^e(\lambda) \in \mathcal{M}. Given n∈ℕn \in \mathbb{N} messages m=(m(1),…,m(n))∈ℳnm = (m^{(1)}, \dots, m^{(n)}) \in \mathcal{M}^n, the product weight at spin i∈𝒮i \in \mathcal{S} and its normalizer are Wi(λ,m)=∏j=1n(1+λ(mi(j)−1)),Z(λ,m)=13∑i∈𝒮Wi(λ,m).W_i(\lambda, m) = \prod_{j=1}^n \bigl(1 + \lambda(m^{(j)}_i - 1)\bigr), \qquad Z(\lambda, m) = \frac{1}{3} \sum_{i \in \mathcal{S}} W_i(\lambda, m).(3) In the first part, for admissible λ\lambda, the combined message mout(λ,m)∈ℳm^{\text{out}}(\lambda, m) \in \mathcal{M} from (3) has coordinates Wi(λ,m)/Z(λ,m)W_i(\lambda, m) / Z(\lambda, m) when Z(λ,m)>0Z(\lambda, m) > 0, and equals 𝟏\mathbf{1} when Z(λ,m)=0Z(\lambda, m) = 0. In the second part, applying the radial edge map to nn child messages gives the edge messages whose coordinatewise product weight W(λ,m)W(\lambda, m) has normalizer Z(λ,m)=⟨W(λ,m)⟩Z(\lambda, m) = \langle W(\lambda, m) \rangle; dividing W(λ,m)W(\lambda, m) by Z(λ,m)Z(\lambda, m) gives the normalized product vector, which for 0≤λ<10 \le \lambda < 1 defines the branch output message mout(λ,m)∈ℳm^{\text{out}}(\lambda, m) \in \mathcal{M}.

For a probability measure QQ on ℳ\mathcal{M} and n∈ℕn \in \mathbb{N}, let Q⊗nQ^{\otimes n} denote the nn-fold product probability measure on ℳn\mathcal{M}^n.✦ In the first part, for admissible λ\lambda, the degree-nn input measure Q̃λ,n\widetilde{Q}_{\lambda, n} on ℳn\mathcal{M}^n has density Z(λ,⋅)Z(\lambda, \cdot) relative to Q⊗nQ^{\otimes n}✦, and its pushforward under m↦mout(λ,m)m \mapsto m^{\text{out}}(\lambda, m) is the degree-nn output measure 𝒟λ,n(Q)\mathcal{D}_{\lambda, n}(Q) on ℳ\mathcal{M}.✦ Given an offspring distribution ρ\rho on ℕ\mathbb{N}, the density evolution measure is ℛλ,ρ(Q)=∑n=0∞ρ(n)𝒟λ,n(Q).\mathcal{R}_{\lambda, \rho}(Q) = \sum_{n=0}^\infty \rho(n) \, \mathcal{D}_{\lambda, n}(Q).(4)✦ To test (4) against a continuous function f:ℳ→ℝf : \mathcal{M} \to \mathbb{R}, the weighted test function on ℳn\mathcal{M}^n is m↦Z(λ,m)f(mout(λ,m))m \mapsto Z(\lambda, m) f(m^{\text{out}}(\lambda, m)), and integrating it against Q⊗nQ^{\otimes n} gives the degree-nn test integral Tλ,n(f,Q)=∫ℳnZ(λ,m)f(mout(λ,m))dQ⊗n(m).T_{\lambda, n}(f, Q) = \int_{\mathcal{M}^n} Z(\lambda, m) f\bigl(m^{\text{out}}(\lambda, m)\bigr) \, dQ^{\otimes n}(m).(5)✦

In the second part, for a balanced symmetric law QQ, λ∈ℝ\lambda \in \mathbb{R}, and n∈ℕn \in \mathbb{N}, the degree-nn input measure Q̃λ,n\widetilde{Q}_{\lambda, n} on ℳn\mathcal{M}^n has the same density Z(λ,⋅)Z(\lambda, \cdot) relative to Q⊗nQ^{\otimes n} as in (5).✦ When 0≤λ<10 \le \lambda < 1, the fixed-degree-nn probability measure on ℳ\mathcal{M} of a balanced symmetric law QQ is the law of the message received by a vertex with nn children whose messages have law QQ: the branch output message of the nn child messages, under the degree-nn input measure Q̃λ,n\widetilde{Q}_{\lambda, n}, the product of nn copies of QQ tilted by the normalizer. The fixed-degree-nn law ℱλ,n(Q)\mathcal{F}_{\lambda, n}(Q) of QQ is this probability measure, which is a balanced symmetric law. For a balanced symmetric law QQ, write prob⁡(Q)\operatorname{prob}(Q) for the underlying probability measure on ℳ\mathcal{M}. For any distribution ρ\rho on ℕ\mathbb{N} and sequence (Qn)n∈ℕ(Q_n)_{n \in \mathbb{N}} of balanced symmetric laws, the mixture probability measure ∑n=0∞ρ(n)prob⁡(Qn)\sum_{n=0}^\infty \rho(n) \, \operatorname{prob}(Q_n) gives the balanced symmetric mixture law. For an offspring distribution ρ\rho on ℕ\mathbb{N}, a balanced symmetric law QQ, and 0≤λ<10 \le \lambda < 1, the offspring mixture law is ℛλ,ρsym(Q)=∑n=0∞ρ(n)ℱλ,n(Q).\mathcal{R}^{\text{sym}}_{\lambda, \rho}(Q) = \sum_{n=0}^\infty \rho(n) \, \mathcal{F}_{\lambda, n}(Q).(6)✦

Tree models

In the first part, given a family P=(Pi)i∈𝒮P = (P_i)_{i \in \mathcal{S}} of discrete distributions on α\alpha and an admissible λ\lambda, the edge law PλeP^e_\lambda at spin i∈𝒮i \in \mathcal{S} draws an intermediate spin k∼Kλ(i,⋅)k \sim K_\lambda(i, \cdot) and then an observation from PkP_k.✦ Given also an offspring distribution ρ\rho on ℕ\mathbb{N}, the composed offspring law Pλ,ρcompP^{\text{comp}}_{\lambda, \rho} at spin i∈𝒮i \in \mathcal{S} draws a degree n∼ρn \sim \rho and pairs it with an nn-tuple of independent draws from Pλe(i)P^e_\lambda(i).✦

In the second part, for a branching number b∈ℕb \in \mathbb{N}, a regular observation of depth 00 is a spin in 𝒮\mathcal{S}, and one of depth ℓ+1\ell + 1 is a bb-tuple of depth-ℓ\ell regular observations.✦ For admissible λ\lambda, the depth-00 regular tree law Pb,λ,0reg(i)P^{\text{reg}}_{b, \lambda, 0}(i) at root spin i∈𝒮i \in \mathcal{S} is the point mass δi\delta_i, and Pb,λ,ℓ+1reg(i)P^{\text{reg}}_{b, \lambda, \ell+1}(i) draws bb independent child observations, each by passing ii through Kλ(i,⋅)K_\lambda(i, \cdot) and drawing from Pb,λ,ℓregP^{\text{reg}}_{b, \lambda, \ell}.✦ Let 𝒆i\mathbf{e}_i be the ii-th coordinate unit vector of ℝ3\mathbb{R}^3. Iterating the fixed-degree-bb law ℱλ,b\mathcal{F}_{\lambda, b} from the depth-00 root law Q0=13∑i∈𝒮δ3𝒆iQ_0 = \frac{1}{3} \sum_{i \in \mathcal{S}} \delta_{3\mathbf{e}_i}, a balanced symmetric law, defines the regular posterior law Qb,λ,ℓregQ^{\text{reg}}_{b, \lambda, \ell} for 0≤λ<10 \le \lambda < 1, with Qb,λ,ℓ+1reg=ℱλ,b(Qb,λ,ℓreg)Q^{\text{reg}}_{b, \lambda, \ell+1} = \mathcal{F}_{\lambda, b}(Q^{\text{reg}}_{b, \lambda, \ell}).

An ordered observation of depth 00 is a spin in 𝒮\mathcal{S}, and one of depth ℓ+1\ell + 1 is a child count n∈ℕn \in \mathbb{N} paired with an nn-tuple of depth-ℓ\ell ordered observations, retaining sibling order.✦ Retaining sibling order in the depth observation leaves the distribution of the root posterior unchanged. Given an offspring distribution ρ\rho on ℕ\mathbb{N} and an admissible λ\lambda, the depth-00 ordered tree law Pρ,λ,0ord(i)P^{\text{ord}}_{\rho, \lambda, 0}(i) at root spin i∈𝒮i \in \mathcal{S} is δi\delta_i, and Pρ,λ,ℓ+1ord(i)P^{\text{ord}}_{\rho, \lambda, \ell+1}(i) draws n∼ρn \sim \rho and pairs it with nn independent child observations, each obtained by passing ii through Kλ(i,⋅)K_\lambda(i, \cdot) and drawing from Pρ,λ,ℓordP^{\text{ord}}_{\rho, \lambda, \ell}.✦ Iterating the offspring mixture law (6) from the same depth-00 root law defines the offspring posterior law Qρ,λ,ℓordQ^{\text{ord}}_{\rho, \lambda, \ell} for 0≤λ<10 \le \lambda < 1, with Qρ,λ,ℓ+1ord=ℛλ,ρsym(Qρ,λ,ℓord)Q^{\text{ord}}_{\rho, \lambda, \ell+1} = \mathcal{R}^{\text{sym}}_{\lambda, \rho}(Q^{\text{ord}}_{\rho, \lambda, \ell}).

The claim

Proposition. In the first part, let ρ\rho be an offspring distribution on ℕ\mathbb{N}, let PP be a family of discrete distributions on an observation space α\alpha indexed by 𝒮\mathcal{S}, let λ\lambda be an admissible noise parameter, and let f:ℳ→ℝf : \mathcal{M} \to \mathbb{R} be a continuous function. Then the likelihood message law of the composed offspring law satisfies ∫ℳf(m)dℒ(Pλ,ρcomp)(m)=∑n=0∞ρ(n)Tλ,n(f,ℒ(P)).\int_{\mathcal{M}} f(m) \, d\mathcal{L}\bigl(P^{\text{comp}}_{\lambda, \rho}\bigr)(m) = \sum_{n=0}^\infty \rho(n) \, T_{\lambda, n}\bigl(f, \mathcal{L}(P)\bigr).(7)✦ In the same part, for every balanced probability measure QQ on ℳ\mathcal{M} and any ρ\rho, admissible λ\lambda, and continuous f:ℳ→ℝf : \mathcal{M} \to \mathbb{R} as in (7), the density evolution measure satisfies ∫ℳf(m)dℛλ,ρ(Q)(m)=∑n=0∞ρ(n)Tλ,n(f,Q).\int_{\mathcal{M}} f(m) \, d\mathcal{R}_{\lambda, \rho}(Q)(m) = \sum_{n=0}^\infty \rho(n) \, T_{\lambda, n}(f, Q).(8)✦ In the second part, let 0≤λ<10 \le \lambda < 1, which is admissible, and let ℓ∈ℕ\ell \in \mathbb{N}. For every branching number b∈ℕb \in \mathbb{N}, the regular posterior law and the regular tree law satisfy prob⁡(Qb,λ,ℓreg)=ℒdisc(Pb,λ,ℓreg).\operatorname{prob}\bigl(Q^{\text{reg}}_{b, \lambda, \ell}\bigr) = \mathcal{L}_{\text{disc}}\bigl(P^{\text{reg}}_{b, \lambda, \ell}\bigr).(9)✦ For every offspring distribution ρ\rho on ℕ\mathbb{N}, the offspring posterior law and the ordered tree law satisfy prob⁡(Qρ,λ,ℓord)=ℒdisc(Pρ,λ,ℓord).\operatorname{prob}\bigl(Q^{\text{ord}}_{\rho, \lambda, \ell}\bigr) = \mathcal{L}_{\text{disc}}\bigl(P^{\text{ord}}_{\rho, \lambda, \ell}\bigr).(10)✦

In the paper, the result reads: for a random offspring count DD with law ρ\rho and coordinate unit vectors 𝒆i\mathbf{e}_i (i∈𝒮i \in \mathcal{S}), the marginal likelihood laws QℓQ_\ell satisfy Qℓ+1=ℛλ,D(Qℓ)Q_{\ell+1} = \mathcal{R}_{\lambda, D}(Q_\ell) starting from Q0=13∑i∈𝒮δ3𝒆iQ_0 = \frac{1}{3} \sum_{i \in \mathcal{S}} \delta_{3\mathbf{e}_i}, where ∫fdℛλ,D(Q)=∑n≥0ℙ(D=n)∫Zf(mout)dQ⊗n\int f \, d\mathcal{R}_{\lambda, D}(Q) = \sum_{n \ge 0} \mathbb{P}(D = n) \int Z f(m^{\text{out}}) \, dQ^{\otimes n} with the edge applied to each sample, each conditional integral has mass one, and the operator preserves balanced laws and permutation symmetry. The library states this recursion across its two parts: the first part establishes the one-step test identities (7) and (8) for continuous functions and every admissible λ\lambda, while the second part defines the balanced symmetric operator (6) for 0≤λ<10 \le \lambda < 1 and matches its depth-ℓ\ell iterates from the root law to the regular and ordered tree message laws in (9) and (10).

What is checked

In the first part (OAI.ThreeState), (7) and (8) are stated over an offspring distribution ρ\rho on ℕ\mathbb{N}, an admissible noise parameter −1/2≤λ≤1-1/2 \le \lambda \le 1, a continuous test function f:ℳ→ℝf : \mathcal{M} \to \mathbb{R}, and either a family PP of discrete distributions on an observation space α\alpha or a balanced probability measure QQ on ℳ\mathcal{M}. In the second part (OAI.ThreeState.TreeClauses), (6), (9), and (10) are stated over 0≤λ<10 \le \lambda < 1 (with λ\lambda admissible in (9) and (10)), a depth ℓ∈ℕ\ell \in \mathbb{N} in (9) and (10), and either a balanced symmetric law QQ with an offspring distribution ρ\rho on ℕ\mathbb{N} in (6), a branching number b∈ℕb \in \mathbb{N} in (9), or an offspring distribution ρ\rho on ℕ\mathbb{N} in (10).

Beyond the claim, the second part establishes properties of the underlying constructions: for any balanced symmetric law QQ, 0≤λ<10 \le \lambda < 1, and n∈ℕn \in \mathbb{N}, the degree-nn input measure Q̃λ,n\widetilde{Q}_{\lambda, n} is a probability measure, and the fixed-degree-nn probability measure is both balanced✦ and invariant under every coordinate permutation of 𝒮\mathcal{S}.