---
title: Tree Factorials on Rooted Metric Trees
url: https://www.emergentmind.com/topics/tree-factorial
type: topic
---

# Tree Factorials on Rooted Metric Trees

Tree factorial usually denotes the sequence of logarithmic factorials associated to a rooted tree, defined by a greedy minimization procedure on the boundary or, equivalently, by a local edge-weighting process. In this formulation, introduced for rooted metric trees, the sequence generalizes Bhargava’s factorials from subsets of local fields to arbitrary rooted trees and connects combinatorics on trees to random walks, unit flows, harmonic measure, and branching number [1611.02142]. A distinct usage of closely related terminology appears in automata theory, where decision-tree complexity is studied for regular factorial languages; there, “tree” refers to decision trees rather than factorials of rooted trees [2201.01952].

## 1. Definition on rooted metric trees

Let $T$ be a rooted tree with root $t$, oriented away from $t$, and let $l:E(T)\to\mathbb{R}_+$ be a length function assigning each oriented edge $e$ its length $l(e)=l_e$. The metric realization of $(T,l)$ is the rooted metric tree $I_T$ obtained by gluing to each edge $e$ an open interval of length $l_e$ and identifying endpoints with vertices. The boundary $\partial T$ is the set of infinite oriented paths starting at $t$, while the extended boundary $\widetilde{\partial T}$ consists of $\partial T$ together with all finite oriented paths $[t,v]$ from $t$ to leaves $v\in L(T)$ [1611.02142].

For $p,q\in\widetilde{\partial T}$, the intersection pairing is
$$
(p,q):=\sum_{e\in E(p)\cap E(q)} l(e).
$$
Fix any $p_0\in\widetilde{\partial T}$. Inductively, given $p_0,\dots,p_{n-1}$, choose $p_n$ arbitrarily among the unused elements of $\widetilde{\partial T}$ that minimize
$$
\sum_{j=0}^{n-1} (p,p_j),
$$
and define
$$
a_n:=\sum_{j=0}^{n-1} (p_n,p_j).
$$
The resulting sequence $\{a_n\}$ depends only on the metric realization $I_T$ of $(T,l)$, not on the specific choices made during the greedy procedure. These numbers are called the $(T,l)$-factorials, written $n!(T,l)=n!_{I_T}$; when $l$ is the standard length function, one writes $n!_T$ [1611.02142].

For locally finite trees one may incorporate a capacity function $\chi:L(T)\to\mathbb{N}\cup\{0,\infty\}$, constraining how many times a leaf may appear in the defining sequence. The factorials $n!(T,l,\chi)$ again depend only on the metric realization and the capacity function. A factorial-defining sequence is any sequence of boundary paths realizing the greedy construction [1611.02142].

## 2. Local weighting process and structural formulas

The greedy boundary definition admits an equivalent constructive formulation through a local weighting process on edges. A weighted tree is a pair $(T,w)$ with $w:E(T)\to\mathbb{N}\cup\{0\}$ such that the edges of positive weight form a connected subtree $T_w$. A vertex is clear if all pending edges at that vertex are unweighted, and a vertex of $T_w$ is unsaturated if either it is an internal vertex of $T_w$ with at least one incident edge outside $T_w$, or it is a leaf of $T$ whose incident edge has weight strictly below its capacity bound [1611.02142].

For a path $P$, the weighted length is
$$
l_w(P):=\sum_{e\in E(P)} w(e)\,l(e).
$$
The process starts with $w^{(0)}\equiv 0$, $a_0=0$, and then iteratively selects an unsaturated vertex $v_n$ minimizing $l_{w^{(n)}}([t,v])$, sets
$$
a_n:=l_{w^{(n)}}([t,v_n]),
$$
and updates weights along $[t,v_n]$ and one or two strict descendant paths according to whether $v_n$ is not clear, clear and branching, or a leaf with residual capacity. Theorem 2.1 states that the resulting sequence again depends only on $(T,l,\chi)$ and the metric tree, so the local weighting process is equivalent to the boundary greedy procedure [1611.02142].

The sequence terminates at the stopping index
$$
N_{T,\chi}=1+\sum_{v\in B(T)}(\mathrm{br}(v)-1)+\sum_{u\in L(T)}(\chi(u)-1),
$$
where $B(T)$ is the set of branching vertices and $\mathrm{br}(v)$ is the number of children of $v$. For a rooted locally finite tree with standard length, the integers $a_n$ for $0\le n<N_T$ are the $T$-factorials [1611.02142].

A central structural formula is the recursive min–max relation. If the root has children $u_1,\dots,u_d$, with induced subtrees $T_{u_j}$, restricted length functions $l_j$, restricted capacities $\chi_j$, and stopping indices $N_j$, then for all $0\le n<N_{T,\chi}$,
$$
n!(T,l,\chi)=\min_{\substack{(n_1,\dots,n_d)\in\mathbb{N}^d\\0\le n_j<N_j,\; n_1+\cdots+n_d=n+1}}
\max_{1\le j\le d}\Bigl((n_j-1)!(T_{u_j},l_j,\chi_j)+(n_j-1)\,l(tu_j)\Bigr).
$$
This formula makes explicit how the factorials of a tree are assembled from the factorials of its rooted subtrees [1611.02142].

## 3. Relation to Bhargava’s factorials

Tree factorials were introduced as a combinatorial generalization of Bhargava’s logarithmic factorials. Let $K$ be a local field with discrete valuation $\mathrm{val}$, valuation ring $R$, maximal ideal $\mathfrak{m}$, and residue field $\kappa=R/\mathfrak{m}$. For a subset $S\subset R$, Bhargava’s logarithmic factorials are defined by choosing $s_0\in S$ and then choosing $s_n\in S$ minimizing
$$
\mathrm{val}\Bigl(\prod_{j=0}^{n-1}(s-s_j)\Bigr),
$$
with
$$
n!_S:=\mathrm{val}\Bigl(\prod_{j=0}^{n-1}(s_n-s_j)\Bigr).
$$
To such an $S$ one associates its adelic tree $T_S$: the vertices at height $h$ are the images $\pi_h(S)\subset R/\mathfrak{m}^h$, with edges induced by the quotient maps $R/\mathfrak{m}^{h+1}\to R/\mathfrak{m}^h$ [1611.02142].

The basic identification is Proposition 1.2:
$$
n!_S=n!_{T_S}.
$$
Thus Bhargava’s factorials are exactly tree factorials of the adelic tree with standard lengths. This places ultrametric valuation geometry into the language of rooted trees and turns the valuation $\mathrm{val}(x-y)$ into the tree intersection pairing $(p,q)$ [1611.02142].

The capacity formalism extends this correspondence. For the ball $T_{S,h}$ of radius $h$ about the root in $T_S$, define a capacity $\chi_h$ on leaves by letting $\chi_h(v)$ be the cardinality of the extended boundary of the descendant subtree rooted at $v$. Then
$$
n!(T_S,\chi_h)=n!_{S,h},
$$
the factorials of order $h$ of $S$. This shows that capacity-constrained tree factorials recover truncated arithmetic variants of Bhargava’s construction [1611.02142].

A plausible implication is that tree factorials serve as a common language for valuation-theoretic and purely combinatorial phenomena: the same greedy minimization principle can be interpreted either on a rooted tree boundary or on an infinite subset of a local field.

## 4. Asymptotic theory: random walk, harmonic measure, and branching number

The asymptotic behavior of normalized tree factorials is governed by potential theory on the tree. For an edge $uv\in E(T)$, define the conductance
$$
c(u,v):=\frac{1}{l(uv)}.
$$
The random walk $RW(T,l)$ started at the root moves from $u$ to a neighbor $v$ with probability
$$
P_{uv}=\frac{c(u,v)}{\sum_{w\sim u}c(u,w)}.
$$
The pair $(T,l)$ is weakly complete if any infinite strict path consisting of degree-$2$ vertices has infinite $l$-length [1611.02142].

For an infinite locally finite rooted tree with weak completeness, Theorem 1.6 gives an exact criterion:
- $RW(T,l)$ is transient;
- the limit
$$
H(T,l):=\lim_{n\to\infty}\frac{n!_{I_T}}{n}
$$
is finite.

Equivalently, recurrence holds if and only if $H(T,l)=+\infty$. The key analytic object is the unit current flow $\eta$, the unique bounded-energy unit flow minimizing
$$
\|f\|^2:=\sum_{e\in E(T)} f(e)^2\,l(e).
$$
When the random walk is transient, the associated harmonic measure $\mu_{\mathrm{har}}$ on $\partial T$ satisfies
$$
\mu_{\mathrm{har}}(B_v)=\eta(T_v),
$$
where $B_v$ is the cylinder set of rays passing through $v$ [1611.02142].

Theorem 1.7 identifies the normalized factorial growth with the energy of the unit current flow:
$$
H(T,l)=\|\eta\|^2.
$$
It also states that any factorial-defining sequence on $\widetilde{\partial T}$ is equidistributed in $\partial T$ with respect to $\mu_{\mathrm{har}}$. Thus the greedy combinatorial procedure asymptotically samples the boundary according to harmonic measure, and its linear growth rate is the electrical energy of the network [1611.02142].

The same theory yields a factorial characterization of branching number. For $\lambda>0$, let
$$
l_\lambda(uv):=\lambda^{|u|}.
$$
Using Lyons’ criterion for transience of $RW(T,l_\lambda)$ and Theorem 1.6, Theorem 1.11 states
$$
\operatorname{br}(T)=\sup\left\{\lambda>0:\ \lim_{n\to\infty}\frac{n!_{(T,l_\lambda)}}{n}<\infty\right\}.
$$
This expresses branching number entirely in terms of finiteness of normalized factorial limits under an exponential deformation of the edge lengths [1611.02142].

## 5. Growth properties, examples, and computation

Tree factorials are superadditive:
$$
n!(T,l,\chi)\ge (n-m)!(T,l,\chi)+m!(T,l,\chi)\qquad\text{for all }n\ge m\ge 0.
$$
Consequently,
$$
H(T,l,\chi):=\lim_{n\to\infty}\frac{n!_{I_T,\chi}}{n}
$$
exists in $(0,+\infty]$. In the transient weakly complete case one moreover has flow-based bounds
$$
\limsup_{n\to\infty}\frac{n!_{I_T}}{n}\le \|f\|^2
$$
for any bounded-energy unit flow $f$, with equality for the unit current flow $\eta$ [1611.02142].

Several examples illustrate the range of behaviors. For an infinite path, the extended boundary contains only a single infinite ray, so the greedy selection produces $p_0$ and stops; hence $N_T=1$ and only $a_0=0$ is defined. If the path is finite and ends at a leaf $v$ of total length $|P|$, then for capacity $\chi(v)$ one has $N_{T,\chi}=\chi(v)$ and
$$
a_i=i\,|P|\qquad (0\le i<\chi(v)).
$$
At the opposite extreme, for the regular $d$-ary tree with standard lengths and $d\ge 2$, the simple random walk is transient, the current along an edge from level $k$ to $k+1$ is $d^{-(k+1)}$, and the energy is
$$
\|\eta\|^2=\frac{1}{d-1}.
$$
Therefore
$$
H(T,1)=\lim_{n\to\infty}\frac{n!_T}{n}=\frac{1}{d-1},
$$
so asymptotically $a_n\sim \frac{n}{d-1}$ [1611.02142].

Finite rooted trees yield terminating sequences. If the root is adjacent to $d$ leaves and $\chi\equiv 1$, then $N_T=d$ and
$$
a_0=a_1=\cdots=a_{d-1}=0.
$$
If the tree has two levels, with a root $t$, one child $u$, edge length $l(tu)=1$, and two leaf children of $u$ with $\chi\equiv 1$, then $N_T=2$ and
$$
a_0=0,\qquad a_1=1.
$$
These examples show that the factorial sequence can detect both branching and metric depth, but not uniquely determine the tree in general: different trees, including non-isomorphic metric trees, can share the same factorial sequence [1611.02142].

From an algorithmic perspective, the local weighting process supplies an explicit procedure for computing $a_0,\dots,a_{N_{T,\chi}-1}$. Each iteration selects an unsaturated vertex minimizing weighted path length and updates weights along the root path and one or two strict descendant paths. The total number of iterations is $N_{T,\chi}$, and a natural optimization is to maintain a priority structure keyed by the values $l_{w^{(n)}}([t,v])$ on unsaturated vertices [1611.02142].

## 6. Distinct automata-theoretic usage: decision trees for regular factorial languages

A separate line of work uses related terminology in a different sense. For a regular factorial language $L\subseteq\Sigma^*$, one studies the depth of deterministic and nondeterministic decision trees whose queries reveal letters at positions of a word. Here a language is factorial if it is closed under taking factors, and the relevant objects are the layers
$$
L(n):=L\cap \Sigma^n.
$$
Two tasks are considered: recognition, where the input is promised to belong to $L(n)$ and the objective is to identify the exact word, and membership, where the input is an arbitrary word of length $n$ and the objective is to decide whether it belongs to $L(n)$ [2201.01952].

Rather than the minimum depth $h(n)$, the analysis uses the smoothed minimum depth
$$
H(n)=\max\{h(m):m\le n\},
$$
which suppresses oscillations in $h(n)$ arising from parity or modular effects. For regular factorial languages, the asymptotic behavior is completely classified. In deterministic recognition, the smoothed depth is either $O(1)$, $\Theta(\log n)$, or $\Theta(n)$; in nondeterministic recognition and in deterministic and nondeterministic membership, it is either $O(1)$ or $\Theta(n)$ [2201.01952].

The classification is phrased in terms of the $t$-reduced source generating $L$, especially the properties of simplicity, independence, and cyclic length. If the source is independent and simple with cyclic length at most $1$, deterministic recognition has constant smoothed depth; if it is independent and simple with cyclic length at least $2$, deterministic recognition has logarithmic smoothed depth; otherwise deterministic recognition is linear. Nondeterministic recognition is constant exactly in the independent simple case and linear otherwise. Membership is linear exactly when $L$ is infinite and its complement is nonempty; otherwise it is constant [2201.01952].

This automata-theoretic notion is not a factorial sequence attached to a rooted tree. The shared vocabulary arises from factorial languages and decision trees, not from logarithmic factorials of tree boundaries. Distinguishing these two meanings avoids a common misconception: “tree factorial” in the sense of rooted-tree factorials concerns greedy intersection minimization, while the decision-tree literature concerns query complexity for regular factorial languages [2201.01952].

Source: https://www.emergentmind.com/topics/tree-factorial