OctoInform Beta

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

§3 (setting): Product laws, iterated path laws, product kernel towers, and unary stems on finite prescribed trees

Finite probability laws, kernel towers, and prescribed trees.

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 calculus for diluted spin glasses, power-mean insertions are expanded directly along finite sequences of arbitrary probability kernels on finite state spaces. Formulating the resulting tree laws, independent products across sibling branches, and depth shifts requires four basic objects: finite probability laws, finite path spaces, towers of finite kernels, and prescribed finite trees.

Kernel towers

On a finite set Ω\Omega, a finite probability law is a function P:Ω→ℝP : \Omega \to \mathbb{R} 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.✦

For any set Ω\Omega and any nonnegative integer nn, the finite path space 𝒫n(Ω)\mathcal{P}_n(\Omega) of depth nn is defined recursively by taking 𝒫0(Ω)={*}\mathcal{P}_0(\Omega) = \{\ast\} to be a one-point set and setting 𝒫n+1(Ω)=Ω×𝒫n(Ω)\mathcal{P}_{n+1}(\Omega) = \Omega \times \mathcal{P}_n(\Omega).✦

A kernel tower collects a finite sequence of arbitrary probability kernels so that power-mean tree identities can be derived without assuming an infinite hierarchy.

For a finite set Ω\Omega and a nonnegative integer nn, the set 𝒦n(Ω)\mathcal{K}_n(\Omega) of kernel towers of depth nn on Ω\Omega is defined recursively. At depth 00, the set 𝒦0(Ω)\mathcal{K}_0(\Omega) is the one-point set {*}\{\ast\}. At depth n+1n + 1, a kernel tower T∈𝒦n+1(Ω)T \in \mathcal{K}_{n+1}(\Omega) is a pair T=(P,T′)T = (P, T') consisting of a finite probability law PP on Ω\Omega and a map T′T' assigning to each x∈Ωx \in \Omega a kernel tower T′(x)∈𝒦n(Ω)T'(x) \in \mathcal{K}_n(\Omega).

Prescribed finite trees

For each nonnegative integer nn, a prescribed finite tree of depth nn is defined inductively: at depth 00, it is a single leaf; at depth n+1n + 1, it consists of a positive integer branching factor k≥1k \ge 1 together with an ordered kk-tuple of prescribed finite trees of depth nn attached as its children.✦ For any prescribed finite tree SS of depth nn, let node1(S)\mathrm{node}_1(S) denote the prescribed finite tree of depth n+1n + 1 whose root has branching factor 11 and single child SS.

The definition

Definition. Let II be a finite index set, let (Ωi)i∈I(\Omega_i)_{i \in I} be a family of finite sets, and let (Pi)i∈I(P_i)_{i \in I} be a family of finite probability laws with each PiP_i on Ωi\Omega_i. The product law ⨂i∈IPi\bigotimes_{i \in I} P_i is the finite probability law on ∏i∈IΩi\prod_{i \in I} \Omega_i whose weight at x=(xi)i∈Ix = (x_i)_{i \in I} is (⨂i∈IPi)(x)=∏i∈IPi(xi).\Bigl(\bigotimes_{i \in I} P_i\Bigr)(x) = \prod_{i \in I} P_i(x_i).(1)✦

Given a finite set Ω\Omega, a nonnegative integer nn, and a kernel tower T∈𝒦n(Ω)T \in \mathcal{K}_n(\Omega), the path law μn(T)\mu_n(T) is the finite probability law on 𝒫n(Ω)\mathcal{P}_n(\Omega) defined recursively at depth 00 and at depth n+1n + 1 for T=(P,T′)T = (P, T'), x∈Ωx \in \Omega, and ω∈𝒫n(Ω)\omega \in \mathcal{P}_n(\Omega) by μ0(*)(*)=1,μn+1(P,T′)(x,ω)=P(x)μn(T′(x))(ω).\begin{aligned} \mu_0(\ast)(\ast) &= 1, \\ \mu_{n+1}(P, T')(x, \omega) &= P(x)\,\mu_n(T'(x))(\omega). \end{aligned}(2)✦

For a finite index set II, a family of finite sets (Ωi)i∈I(\Omega_i)_{i \in I}, a nonnegative integer nn, and a family of kernel towers T=(Ti)i∈IT = (T_i)_{i \in I} with each Ti∈𝒦n(Ωi)T_i \in \mathcal{K}_n(\Omega_i), the product kernel tower Πn(T)∈𝒦n(∏i∈IΩi)\Pi_n(T) \in \mathcal{K}_n\bigl(\prod_{i \in I} \Omega_i\bigr) is defined recursively at depth 00 and at depth n+1n + 1 for Ti=(Pi,Ti′)T_i = (P_i, T'_i) by Π0(T)=*,Πn+1(T)=(⨂i∈IPi,x↦Πn((Ti′(xi))i∈I)),\begin{aligned} \Pi_0(T) &= \ast, \\ \Pi_{n+1}(T) &= \Bigl(\bigotimes_{i \in I} P_i,\; x \mapsto \Pi_n\bigl((T'_i(x_i))_{i \in I}\bigr)\Bigr), \end{aligned}(3)✦ where x=(xi)i∈Ix = (x_i)_{i \in I} ranges over ∏i∈IΩi\prod_{i \in I} \Omega_i.

When SS is a prescribed finite tree of depth nn and rr is a nonnegative integer, the unary initial stem stemr(S)\mathrm{stem}_r(S) is the prescribed finite tree of depth n+rn + r defined recursively by stem0(S)=S,stemr+1(S)=node1(stemr(S)).\begin{aligned} \mathrm{stem}_0(S) &= S, \\ \mathrm{stem}_{r+1}(S) &= \mathrm{node}_1(\mathrm{stem}_r(S)). \end{aligned}(4)✦

What is checked

The Lean library defines the product law (1), the path law (2), the product kernel tower (3), and the unary initial stem (4) over arbitrary finite index sets, finite state spaces, finite probability laws, finite path spaces, kernel towers of arbitrary nonnegative integer depth, and prescribed finite trees of arbitrary nonnegative integer depth.