\documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern,amsmath,amssymb,amsthm,geometry,hyperref} \geometry{margin=24.5mm} \hypersetup{hidelinks, pdftitle={Finding Two Connected Factors of a Finite Dynamical System in Quasipolynomial Time}, pdfauthor={Nuutti Kuosa}} \raggedbottom \setlength{\emergencystretch}{2em} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{auxlemma}{Lemma} \renewcommand{\theauxlemma}{\Alph{auxlemma}} \newtheorem*{corollary}{Corollary} \newcommand{\supp}{\operatorname{supp}} \newcommand{\QQ}{\mathbb Q} \newcommand{\CC}{\mathbb C} \newcommand{\mass}{\operatorname{mass}} \title{Finding Two Connected Factors of a Finite Dynamical System in Quasipolynomial Time} \author{Nuutti Kuosa} \date{22 November 2026} \begin{document} \maketitle \begin{abstract} Doré, Perrot, Porreca, Riva and Rolland asked whether their tree methods could be used to find two nontrivial connected factors of a given finite dynamical system. We give a deterministic algorithm for this problem. Given the successor table of an \(N\)-state system \(B\), the algorithm constructs connected systems \(X\) and \(Y\), each with at least two states, such that \(X\times Y\cong B\), or determines that no such pair exists. Its bit complexity is \(\exp(O((\log(2N))^3\log\log(4N)))\), even when \(B\) is disconnected. All ordered pairs of factor isomorphism types can be listed within the same total bound. The proof uses two predecessor paths to control branching across tree levels and bounds the arithmetic search at each level. Whether one factorization can be found in polynomial time remains open. \end{abstract} \section{Problem and result} Doré et al.\ give a polynomial-time algorithm for division by a specified finite dynamical system when the quotient is connected \cite[Algorithm~3.12 and Theorem~3.13]{dore}. They close their paper by asking whether their tree methods can find a nontrivial solution of \(X\times Y\cong B\) when both \(X\) and \(Y\) are unknown and connected \cite[Sec.~6, p.~14]{dore}. Trying all connected systems on at most \(\sqrt{N}\) states as the smaller factor already gives a \(2^{O(\sqrt N)}\operatorname{poly}(N)\)-time search on an \(N\)-state input, as shown below. To obtain a quasipolynomial bound, we search for both factors along two predecessor paths in \(B\). Mahler measure and residues of differential forms control the number of arithmetic trials required at each extension. Write \(B=(V,f)\), where \(f:V\to V\) is given explicitly and \(N=|V|\ge1\). The synchronous product advances both coordinates by one step. Connectedness refers to the underlying undirected graph. \begin{theorem}\label{main} Given \(B\), one can deterministically construct successor tables of connected \(X,Y\) with \(|X|,|Y|\ge2\) and \(X\times Y\cong B\), or decide that no such pair exists, in \[ \exp\!\bigl(O((\log(2N))^3\log\log(4N))\bigr) \] bit operations. All ordered pairs of isomorphism types can be listed within the same total time. \end{theorem} \begin{corollary}[Reducibility of a connected target] For every explicit connected \(B\), the same bound decides whether \(B\) is a product of two systems of at least two states, and constructs a pair whenever one exists. For \(B\) a dendron, both factors are dendrons. \end{corollary} \begin{proof} The coordinate projections of a nonempty product are surjective graph homomorphisms. Each sends a weakly connected graph onto a weakly connected graph, so connectedness of the target forces connectedness of both factors \cite[pp.~39, 185]{rolland}. Theorem~\ref{main} now applies to every nontrivial factorisation. If every product state eventually reaches the same fixed pair, projecting the orbit of any pair shows that each coordinate reaches the corresponding fixed point. \end{proof} \paragraph{Comparison with known division.} To derive the elementary search bound, take a smaller factor on \(m\le\sqrt N\) states. Delete its cycle edges, order the resulting rooted trees in cycle order, and choose an order on the children of every vertex. This plane forest has a balanced-parenthesis encoding of length \(2m\), with one opening and one closing parenthesis per vertex. Conversely, the roots of each nonempty decoded forest can be linked in cyclic order. Try all words for \(2\le m\le\sqrt N\) with \(m\mid N\), discard invalid words, and use the connected-quotient algorithm on each decoded factor. There are at most \(4^m\) words at size \(m\), and \(N/m\ge2\) for these trials. Theorem~\ref{main} improves this elementary consequence of known division to a quasipolynomial bound and also bounds the total time to list all pairs. \paragraph{Related work.} Dennunzio et al.\ formulated decomposition questions in the semiring of finite dynamical systems \cite{ddfmp}. Unrolling was developed in work on transient trees and division by a specified system \cite{dfpr,ng,dore}. Naquin and Gadouleau give a polynomial division algorithm for dendrons and prove unique factorisation in certain submonoids; their Figure~7 exhibits nonunique factorisation for dendrons in general \cite[Theorems~39 and~56]{ng}. For permutations, Bridoux et al.\ study division and give an \(\exp(O(\sqrt N))\) test for unrestricted irreducibility of sums of cycles \cite[author version, Sec.~6, p.~19 and Appendix~C, Prop.~3, p.~22]{bcpr}. With connected factors a permutation target forces both factors to be single cycles, so their lengths can be tried directly. Crespelle, Phan and Richard study division and polynomial equations on the cycle part using the greatest-common-divisor and least-common-multiple rule for cycle products \cite{cpr}. Porreca and Rolland obtain polynomial algorithms for injective and pseudo-injective univariate equations and identify the complexity of general reducibility as open \cite[Sec.~7]{pr}. Ascone, Porreca and Rolland prove NP-hardness for linear equations with a constant side and three variables \cite{apr}; their reduction concerns a different family of equations from the single product studied here. For undirected graphs, Imrich gives a polynomial factorisation algorithm for connected nonbipartite graphs \cite{imrich}, and Calderoni et al.\ reduce graph isomorphism to direct-product compositeness for general undirected graphs \cite{cmm}. The directed polynomial algorithm of Imrich and Klöckl uses stronger connectivity conditions and thinness conditions on successive quotients \cite[Theorem~3.6 and Corollary~3.7, p.~473]{ik}. For instance, distinct vertices of a directed cycle have neither a common successor nor a common predecessor, although the cycle is connected as a dynamical system. Among the works compared here we found no earlier quasipolynomial bound for two unknown connected factors on arbitrary explicit targets. The input occupies \(\Theta(N\log(2N))\) bits in the usual fixed-width encoding. For \(N<4\) the answer is negative. All logarithms below are natural. The search has three parts. A polynomial list describes how the periodic states could fit into a product grid. Two paths in the observed system then reduce every extension to factoring a multiset of whole sibling trees. Section~\ref{account} counts the resulting search tree, including every failed trial. Sections~\ref{encoding}--\ref{multiplicities} prove the local arithmetic estimate used in that count. \section{Periodic states and predecessor paths} Let \(h\) be the largest distance of a state of \(B\) to its cycle. Write \(T_j(B,v)\) for the rooted tree of predecessor walks of length at most \(j\) ending at \(v\). Its width at depth \(j\) is \(w_j(B,v)=|(f^j)^{-1}(v)|\). The root of the tree is the walk of length zero. Each state determines at most one walk of a given length, so the tree has at most \((j+1)N\) vertices. Trees multiply by pairing vertices at equal depth. In particular \(T_j(X\times Y,(u,v))=T_j(X,u)T_j(Y,v)\), up to rooted isomorphism. A forest here is a multiset of rooted trees. Products distribute over multiplicities. Nonempty forests all of whose trees have height \(j\) admit cancellation and polynomial-time division by a specified forest of that height. Adjoin a single root over all the trees in each forest, apply finite tree division, remove the added root, and verify the product \cite[Sec.~4]{ng}. We use this operation only with the specified height and verify each division by multiplication. \subsection*{A polynomial list of possible phase grids} Two connected factors of cycle lengths $p,q$ give $g=\gcd(p,q)$ components with the same cycle length $\lambda=\operatorname{lcm}(p,q)$. Count \(g\) from the target. Reject unequal observed cycle lengths. The cyclic states form a $p\times q$ grid whose transition increases both indices by one. Enumerate the ordered divisors \(p,q\mid \lambda\) with \(\operatorname{lcm}(p,q)=\lambda\) and \(pq=g\lambda\). When $g=1$, the grid is determined by forward iteration from any chosen cyclic state. The following construction handles unbounded $g$. \begin{auxlemma}[Anchored phase reconstruction]\label{phasegrid} For fixed periods, choose a physical cyclic state \(b_*\) as cell \((0,0)\). The two rooted types \(P_{-1}Q_0,P_0Q_{-1}\) defined below determine at most one array of cell types. Any two placements of this array that respect the dynamics and anchor differ by an automorphism of the target fixing \(b_*\). \end{auxlemma} \begin{proof} Choose a cyclic state $b_*$, put $J=h+\lambda+2$, and form the multiset $\mathcal U$ containing $e_b=T_J(B,b)$ once for each physical cyclic state. Write $e_0=e_{b_*}$. In a true product index $b_*=(x_0,y_0)$, and write $P_i=T_J(X,x_i), Q_l=T_J(Y,y_l)$. The two genuine axes are the sequences with terms $u_i=P_iQ_0$ and $v_l=P_0Q_l$. Every such term belongs to the support of $\mathcal U$ because the whole grid occurs in $B$. For cyclic profiles $e$ let $\kappa(e)$ be the cut at $J-1$ and $\pi(e)$ its unique child reaching that height, the cycle predecessor. Both operations preserve products on these profiles. Furthermore $\kappa$ separates distinct types in $\mathcal U$: tracing the cycle predecessor for $\lambda-1$ steps displays the complete off-cycle decorations of all $\lambda$ phases: after at most \(\lambda-1\) steps the remaining depth of the cut is at least \(J-1-(\lambda-1)=h+2\). All transient branches at that phase have height at most \(h-1\) and the cyclic predecessor is recognizable. Explicitly, \[ \pi(P_iQ_l)=\kappa(P_{i-1})\,\kappa(Q_{l-1}). \] Guess the single term $u_-=P_{-1}Q_0$ directly from $\mathcal U$. The predecessor $u'$ of a term $u$ must satisfy \[ \kappa(u')\pi(e_0)=\pi(u)\kappa(u_-). \] Indeed for $u=P_iQ_0$ both sides are the product of the two cuts at the preceding $X$ phase $i-1$ and the preceding $X$ phase $-1$, and the two $Y$ phases $0,-1$. Cancellation and injectivity of $\kappa$ give at most one $u'$ in the entire dictionary $\mathcal U$. Trace $p$ steps from $e_0$, checking the return. Recover the second axis by guessing $P_0Q_{-1}$ from $\mathcal U$ and applying the analogous $q$-step test. Use $e_{i,l}e_0=u_i v_l$ to read off all cell types. For each diagonal orbit match its word of types, up to rotation, to an unused physical component, respecting $b_*$ on its orbit. Match the anchored orbit first. Each orbit uses one entire cycle of length \(\lambda\). Matching within the remaining word classes succeeds exactly when their multiplicities agree. A placement is then a type-preserving bijection from the \(pq=g\lambda\) cells to the cyclic states that commutes with the transition and sends \((0,0)\) to \(b_*\). For two placements \(\sigma,\sigma'\), the permutation \(\sigma'\sigma^{-1}\) commutes with the transition and fixes \(b_*\). At each cyclic state, the cyclic predecessor is the only child of \(T_J\) reaching height \(J-1>h-1\). Its other children give all the attached transient branches. Equal \(T_J\)-types therefore give an isomorphism between the attached rooted trees. These trees are disjoint at distinct cyclic states, so the isomorphisms extend the permutation to an automorphism of \(B\). It commutes with the successor map and therefore carries possible guide endpoints and their predecessor levels to corresponding endpoints and levels of the same widths. Each feasible ordered guess thus needs only one greedy placement. There are at most \((g\lambda)^2\) guesses per period pair, and reconstruction takes polynomial time per guess. \end{proof} \subsection*{One extension on a fixed grid} Fix a grid and a cyclic cell \(b_*\). Put \(H=h+1\). Each factor in a true product has transient depth at most \(h\), by pairing each of its states with a cyclic state in the other factor. Enumerate two ordered endpoints \(z_1,z_2\) satisfying \(f^H(z_i)=b_*\). They determine two paths \(v_{i,j}=f^j(z_i)\), \(0\le j\le H\), in the physical input. Ties in any choice of a minimum below require no further enumeration, because every endpoint is already tried. In a true product choose guide 1 by following the cycle backwards in \(X\), while in \(Y\) choosing, at every step, a child with minimum positive width at the remaining bottom level. Guide 2 interchanges the two roles. For the step \(j\to j+1\), start at the \((H-j-1)\)-st cyclic predecessor of \(b_*\), say \((x_a,y_b)\). By induction the radius-\(j\) marks \(T_j\) at every factor phase are known. An active child is a predecessor whose tree reaches level \(j\); we retain its whole tree cut at that level. Let \(\mathcal O_0,\mathcal O_1,\mathcal O_2\) be the observed active child forests at the cyclic cell, at \(v_{1,j+1}\), and at \(v_{2,j+1}\), respectively. For the true guides, \[ \mathcal O_0=A V,\qquad \mathcal O_1=A C,\qquad \mathcal O_2=V D . \] Here \(A,V\) are the active child forests of \(x_a,y_b\). \(C,D\) come from the moving \(Y,X\) coordinates of the respective guides. A designated member \(c_0\in C\) is obtained by dividing \(T_j(B,v_{1,j})\) by the known mark at \(x_{a-1}\). Likewise dividing \(T_j(B,v_{2,j})\) by the mark at \(y_{b-1}\) gives \(d_0\in D\). These are tree types, so repeated copies require no choice of their identities. Compute \[ E=(\mathcal O_1\mathcal O_2)/\mathcal O_0 . \] In a true product \(E=CD\). Reject if the anchored product tree \(c_0d_0\) does not occur in \(E\). Its mass \(m=\mass(E)\) counts trees with multiplicity. Each possible continuation is obtained by finding an ordered split \(E=CD\) containing the specified members, then computing \(A=\mathcal O_1/C,\ V=\mathcal O_2/D\). Failed divisions, missing members, and inconsistent products are rejected. For a fixed grid, endpoint pair and level, all three observed forests come from specified states of \(B\). Thus \(E\), when it exists, and its mass can be computed once for the entire level. The anchors supplied to the local splitter and the subsequent mark checks depend on the node. To build \(T_{j+1}(X,x_a)\), subtract the \((j-1)\)-cuts of \(A\) from the children of the old \(j\)-mark. The remainder consists of complete shorter branches. Attach these and the trees of \(A\) to a new root. At \(j=0\) all children are active and there is no subtraction. Apply the same rule to \(V\). The resulting marks of the distinguished cell determine every other mark by division along its row and column. Check the product at every cell, consistency with the preceding cuts, and the inclusion of the appropriate cyclic predecessor marks. All these operations are deterministic given one local split. Reject any prospective radius-\(k\) factor mark exceeding \((k+1)N\) vertices or maximum degree \(N\); this also controls the cost of false partial paths. Initially the \(0\)-marks are single vertices. At radius \(H\) remove the cyclic predecessor child at each factor phase. It is the unique child reaching height \(h\) in a true factor mark. The remaining children are complete transient branches. Close the two cycles, check connectedness, sizes and the product against the original table. The last test uses the cyclic word of the canonically encoded attached trees in each component, up to rotation, and compares multisets of component types. These tests prove soundness. The grid, the two endpoints and the local split along every true factorization occur in the search, proving completeness once the local enumeration is established. Stopping at the first success gives one witness. Exhaustion certifies a negative answer. \section{From local choices to the whole search tree}\label{account} The following calculation is for a fixed grid and one fixed pair of physical endpoints. It applies before any choices of factor marks. \begin{lemma}[Observable level budgets]\label{budget} Set \(W_{i,j}=w_j(B,v_{i,j})\) and \[ \beta_j=\prod_{i=1}^2 \left\lfloor W_{i,j+1}/W_{i,j}\right\rfloor , \qquad 0\le j\beta_j\), \emph{before} calling the local splitting algorithm. This check preserves a minimum-width witness for every genuine factorization. An arbitrary endpoint need not itself satisfy the minimum-width rule. One can also use the slightly weaker integer cap \(\widehat{\beta}_j=\lfloor\prod_i(W_{i,j+1}/W_{i,j})\rfloor\). The same proof applies with \(\widehat{\beta}_j\) throughout, since \(\beta_j\le\widehat{\beta}_j\le\prod_i(W_{i,j+1}/W_{i,j})\). \begin{proposition}[Local trial count]\label{local} In the pivot enumeration, a complete trial specifies a pivot tuple, a dictionary shift and a positive integer content. A pivot tuple or a shift rejected before the next choice counts as one trial ending there. If \(m>1\) and \(E\) has only one tree type, a trial tests one multiplicity. For \(m=1\) there is at most one trial, the product test for the two designated trees. For \(m\ge2\) the number of trials is at most \[ m^{K_0}(1+K_1\ell)^{\,K_1\ell^2\log(2m)},\qquad \ell=\log(2N). \] Here \(K_0,K_1\) are absolute constants. Setup and testing one trial each cost \(N^{O(1)}\) bit operations, including a trial rejected after exact forest division. All genuine anchored splits are returned. \end{proposition} The proof is given below. Every forest in its input has polynomial size: each \(\mathcal O_i\) is observed in \(B\), and \(\mathcal O_1\mathcal O_2\) is an explicit product. Its maximum number of children is at most \(N^2\), since numbers of children multiply. Whenever local enumeration is reached, division has verified \(\mathcal O_0 E=\mathcal O_1\mathcal O_2\), with nonempty \(\mathcal O_0\) of the prescribed height \(j\). Fix a length-\(j\) path in one tree of \(\mathcal O_0\). Pair every vertex of \(E\) with the vertex at the same depth on this path. This embeds the forest vertices into the dividend. Every vertex of \(E\) with children is paired with a path vertex having at least one child. Its degree is therefore at most the degree of the paired product vertex. Consequently \(\Delta(E)\le N^2\) and the total size is bounded by that of the dividend, also on an incorrect grid or guide. \begin{proposition}[Whole-tree bound]\label{count} The complete computation on one grid and one endpoint pair, including unsuccessful guesses, takes \(\exp(O(\ell^3\log\log(4N)))\) bit operations. \end{proposition} \begin{proof} Let \(b_j=1\) if \(\beta_j=1\), and otherwise set \(b_j=\beta_j^{K_0}(1+K_1\ell)^{K_1\ell^2\log(2\beta_j)}\). By the rejection rule and Proposition~\ref{local}, every node at level \(j\) makes at most \(b_j\) trials. A complete trial decodes at most one left forest. Exact division determines its partner, and the subsequent mark checks are deterministic. Each trial therefore creates at most one successor. Write \(Q_j\) for the number of nodes and \(A_j\) for the number of trials at depth \(j\). Then \(Q_0=1\) and \[ Q_{j+1}\le A_j\le Q_j b_j\le\prod_{u=0}^{j} b_u . \] If a trial yields an exact quotient and fails only at the right anchor, it contributes one to \(A_j\) and zero to \(Q_{j+1}\). A node pruned before enumeration pays for setup. For a common polynomial \(P\) bounding setup, one trial with its mark checks, and verification at a leaf, the total time is at most \[ P(N)\left(\sum_{j=0}^H Q_j+\sum_{j=0}^{H-1} A_j\right) \le P(N)(2H+1)\prod_{j=0}^{H-1} b_j . \] In particular a run of unit budgets costs at most its length times the polynomial cost per node for each path entering the run. By Lemma~\ref{budget}, \[ \sum_j\log \beta_j\le 2\log N,\qquad \sum_{j:\beta_j\ge2}\log(2\beta_j)\le2\sum_j\log \beta_j\le4\log N . \] Taking logarithms gives \[ \log\prod_j b_j\le 2K_0\log N+ 4K_1\ell^2\log N\,\log(1+K_1\ell) = O(\ell^3\log\log(4N)). \] Since \(H\le N\), the extra polynomial factor is absorbed. There are at most \(N^2\) endpoint pairs per grid and polynomially many grids. This proves the time bound in Theorem~\ref{main} once Proposition~\ref{local} is proved. For enumeration, canonicalize the two output tables and remove duplicates by sorting their strings; the additional logarithm of the number of records preserves the time bound. \end{proof} \paragraph{Dependencies of the decision procedure.} The final product test certifies every returned pair. Exhaustion certifies a negative answer because Lemma~\ref{phasegrid} preserves a placement for each true pair, Lemma~\ref{budget} preserves suitable guides, and the anchored enumeration recovers each genuine local split by Lemma~\ref{dictionary}, cancellation and exact division. In Section~\ref{multiplicities}, for any fixed positive integer \(\tau\) and separating grade \(\gamma\), a genuine split supplies a solution within the actual specialized multiplicities; the dictionary shift and integer content recover the forest. In particular \(\tau=1\) suffices for exhaustive search with those ranges. The norm gap, the factor and dimension bounds, and the choice of a slice with short ranges give the stated running time. Section~\ref{weighted} also proves that the bounded search for such a slice always succeeds. \section{A finite additive encoding with a uniform gap}\label{encoding} In the local forest \(E\), let \(\Delta\) denote the maximum number of children at a vertex. We construct labels for its observed tree types and prove the identities needed to encode a product of two unknown forests. \begin{auxlemma}[Uniform gap for rational-function coordinates] Put \(\mathcal H=\QQ(z)^\times/\{\pm z^k:k\in\mathbb Z\}\). Represent a class by \(A/B\) with nonzero integral Laurent polynomials coprime over \(\QQ\) and jointly primitive over \(\mathbb Z\). With \(\mu_{\mathbb T}\) the normalized Haar measure of the unit circle, \[ \mathfrak h([A/B])=\int_{\mathbb T}\log\max(|A(z)|,|B(z)|)\,d\mu_{\mathbb T}(z) \] is a symmetric, subadditive length, homogeneous under integer powers. Every nonidentity class has length at least \(\delta=\log\theta\), where \(\theta>1\) is the real root of \(t^3-t-1\). \end{auxlemma} \begin{proof} Changing representatives multiplies numerator or denominator by signed monomials of modulus one. Inversion interchanges them and reduced positive powers remain reduced. For multiplication, the pointwise maximum of the product pair is at most the product of the maxima. Cancelling a common integral factor subtracts its nonnegative logarithmic Mahler measure, including any common integer content. This proves subadditivity. Write \(m_{\mathbb T}(P)\) for the mean of \(\log|P|\) on the appropriate torus. Jensen's formula in \(y\) gives \(\mathfrak h([A/B])=m_{\mathbb T}(A(z)+yB(z))\). Call a Laurent polynomial reciprocal if simultaneous inversion of its variables reproduces it up to a signed monomial. A nonreciprocal univariate integer Laurent polynomial has logarithmic measure at least \(\delta\): some primitive irreducible factor is nonreciprocal. After stripping off powers of \(z\), a leading coefficient of absolute value at least two already gives this bound; otherwise Smyth's theorem applies to the monic associate \cite{smyth}. All remaining integer factors have nonnegative logarithmic measure. The multivariate nonreciprocal bound is due to Boyd \cite{boyd}. We give the specialization argument for the bivariate case used here. For bivariate nonreciprocal \(P\) with support \(S_0\), the maps \(\lambda_n(i,j)=i+nj\) are injective on both \(S_0\) and \(S_0+S_0\) for all sufficiently large \(n\). Reciprocity of \(P(t,t^n)\) would pair its support points by reflection in the midpoint of its extreme exponents, with a common coefficient sign. Let \(p,q\in S_0\) lift those extremes. Every reflected pair \(u,v\) satisfies \(\lambda_n(u+v)=\lambda_n(p+q)\), hence \(u+v=p+q\). This would give reciprocity of \(P\) with the same sign. Consequently \(m_{\mathbb T}(P(t,t^n))\ge\delta\) for large \(n\). Lawton's specialization theorem \cite{lawton} gives convergence to \(m_{\mathbb T}(P)\), since the shortest nonzero integral relation for \((1,n)\) has sup norm \(n\). For reciprocal \(P=A+yB\), its \(y\)-support \(\{0,1\}\) forces \(B(z)=\pm z^k A(z^{-1})\). Since the coefficients are real, \(\mathfrak h([A/B])=m_{\mathbb T}(A)\). If \(A\) is nonreciprocal, the univariate result applies. If \(A\) is reciprocal then \(A/B\) is a signed monomial. The identity has length zero. Finally, a polynomial with nonnegative integer coefficients of sum \(d\ge1\) represents a class of length at most \(\log d\) by the pointwise bound on the circle. \end{proof} \begin{auxlemma}[Encoding finite dictionaries of equal-height trees]\label{dictionary} For a finite family of explicitly given height-\(k\) tree types there is a deterministic polynomial-bit construction of integer coordinates for their labels with the following properties. The ideal label map is a monoid homomorphism on all trees of the given height. It is injective on the observed dictionary. Its norm on observed labels is at most \(\log\max(2,\Delta)\), and every nonzero element of the subgroup generated by them has norm at least \(\delta\). The computed coordinates are global homomorphisms and are faithful on this subgroup, where they carry the transported norm. \end{auxlemma} \begin{proof} For each \(j\le k\), let \(\mathcal T_j\) consist of the height-\(j\) cuts at all input vertices whose subtrees reach that height. A cut keeps every vertex within its radius, including leaves on shorter branches. Every iterated subtree and cut so obtained is specified by an original vertex and a remaining radius. The dictionaries have polynomial total size. Put \(G_0=\{0\}\), with the unique label at height zero. Inductively, at each previously constructed height \(j\) fix an integral homomorphism \(g_j:G_j\to\mathbb Z\) distinguishing the labels of \(\mathcal T_j\), as constructed below. Order \(G_j\) first by \(g_j\) and resolve ties by a fixed translation-invariant total order. For example, coordinates in \(\mathcal H\) are the prime valuations of the absolute leading scalar and the multiplicities of the monic irreducibles over \(\QQ\) other than \(z\). Lexicographic comparison in a fixed enumeration, iterated for finite products, gives such an order. Write \(\phi_j\) for the ideal height-\(j\) label. For a tree \(T\) of height \(d>0\), let \(S_j(T)\) be the nonempty multiset of height-\(j\) cuts of its children that reach height \(j\), for \(j0\) for which \(\mathcal B(t,\tau)\) has all nonmonomial multiplicities at most \(\mu\). Write \(d_t,d_y\) for the two degrees. The extreme \(t\)-coefficients are monomials in \(y\), so the \(t\)-degree is preserved at each positive specialization and every common vertical factor is a Laurent monomial. Let \(\mathcal B_{\mathrm{red}}\) be the primitive squarefree part in \(t\) over \(\CC(y)\), chosen as the product of the distinct positive-\(t\)-degree polynomial factors over \(\CC[t,y]\). Put \(a=\deg_t\mathcal B_{\mathrm{red}}\ge1\). Its extreme \(t\)-coefficients divide the corresponding monomials of \(\mathcal B\), so its degree stays \(a\) at every positive \(\tau\). Its resultant with \(\partial_t\mathcal B_{\mathrm{red}}\) is nonzero by squarefreeness over \(\CC(y)\). The Sylvester matrix has \(2a-1\) rows with entries of \(y\)-degree at most \(d_y\), giving a degree bound of \((2a-1)d_y\le(2d_t-1)d_y\). Try the integers \(\tau=1,\ldots,2d_td_y+1\), testing the actual multiplicities in \(\mathcal B(t,\tau)\) by univariate gcds. Some trial avoids the resultant's roots. There the reduced slice is squarefree of full degree, so the specialized factors stay pairwise coprime and each multiplicity is at most \(\mu\). When \(d_y=0\), after the monomial shift the support is horizontal and the entire segment is the face. Its edge polynomial gives the slice itself in the primitive horizontal variable. If the exponents are compressed by their difference gcd \(g\), the substitution \(u=t^g\) preserves nonzero root multiplicities because \(g t^{g-1}\ne0\) there. Thus \(\tau=1\) is accepted even when \(\mu>1\). All degrees and bit lengths are polynomial. The resultant itself is not needed. Factor the chosen slice, compute its projected space and enumerate only its pivot tuples, solving linearly for all other \(z_\nu\). After clearing denominators, Hadamard's bound gives polynomial bit length for the minors in elimination and hence for the rational basis in pivot coordinates. Its product with any trial tuple therefore has polynomial bit length, including a vector that fails the following test. Before taking any polynomial power, reject unless every coordinate is integral and \(0\le z_\nu\le\min(m_\nu,m-1)\). Take the candidate univariate product up to scalar and monomial. Try its least support point \(v_0\in\mathcal D\), translate its exponents by the shift determined by \(\gamma(v_0)\), and look up their unique dictionary preimages \(v\); reject if any is absent. Divide the coefficient at \(v\) by \(\tau^{\sigma(v)}\), clear denominators, check the common sign and normalize to a positive primitive integer vector. Now try the original forest's integer content \(1,\ldots,m\). Reject a vector of total mass exceeding \(m\) before expanding copies as trees. For the resulting left forest \(C\), check \(c_0\in C\), compute \(D=E/C\) by exact forest division, and check \(d_0\in D\) and \(CD=E\). The weights \(\sigma(v)\), degrees and \(\log\tau\) are polynomially bounded, so undoing the weighting and taking gcds has polynomial bit cost, even for a rejected vector. Let \(P_*\) be the primitive integral specialization with its monomial removed. Every bounded subproduct has a primitive integral representative \(Q\mid P_*\). Gauss's lemma and multiplicativity of Mahler measure give \(\|Q\|_\infty\le 2^{\deg P_*}M(Q)\le 2^{\deg P_*}\|P_*\|_1\). This controls partial products as well. Monic representatives introduce a denominator no larger than the leading coefficient of their primitive representative. There are \(O(\ell^2\log(2m))\) coordinate pivots by Lemma~\ref{width} and Proposition~\ref{linear}, since \(s\le m\) and \(\Delta=N^{O(1)}\). Each pivot has at most \(1+\mu=1+O(\ell)\) choices. For each pivot tuple there are at most \(|\mathcal D|m\le m^2\) terminal trials. Indeed, a rejected prefix stands for all its completions among the dictionary shifts and the contents \(1,\ldots,m\). Distinct terminal trials have disjoint sets of formal completions, and \(\mathcal D\) contains the point for \(c_0\) because \(c_0d_0\) was checked in \(E\). The work on the at most three choice steps of one trial has polynomial bit cost. Write \(|F|\) for the number of vertices in a forest \(F\). Pairing a dictionary tree with a full-height path in \(d_0\) embeds it in its observed product tree, so it has at most \(|E|\) vertices. Thus \(|C|\le m|E|\), and any exact quotient has \(|D|\le |E|\) by the same path argument in \(C\). Exact division, the right-anchor test and remultiplication all have polynomial bit cost even when the trial fails. Every true split supplies a closed form \(dV/V\), so its pivot tuple is tried. Its least dictionary point and original content are among the choices, and exact division returns its partner. Each output has passed multiplication of the actual forests. This proves Proposition~\ref{local}. \subsection*{A sharper count for continuations that pass the product test} Let \(k\) be the number of nonmonomial absolute factors of the local Laurent polynomial, counted with multiplicity. In \(\CC[\Lambda]\), unique factorization gives at most \(\prod_i(e_i+1)\le2^{\sum_i e_i}=2^k\) divisors modulo scalar and monomial units. For an admissible divisor, the least support point under the separating grade belongs to a dictionary of at most \(m\) points. This fixes the monomial shift once one support point of the divisor is aligned. Primitive integral normalization followed by an integer content between \(1\) and \(m\) fixes its scale. Conversely, a verified \(C\) fixes its specialized multiplicity vector, least support point and content, so it is reached by a unique complete trial. Verified division determines \(D\). Thus the number of genuine anchored children is at most \(m^2 2^k\) when \(m\ge2\), and at most one when \(m=1\). Lemma~\ref{width} and the same level-budget sum give \(\exp(O(\ell^3))\) nodes in the tree of verified local continuations per grid and endpoint pair. This gives a second cost calculation. Multiply this node bound by the largest one-node cost in Proposition~\ref{local}, using \(m\le N^2\). The product again gives Theorem~\ref{main}, including failed trials. The sharper node count thus gives no faster algorithm without a corresponding improvement in local enumeration. \section{Scope and reproducibility} The bounds concern explicitly written successor tables. In particular the argument allows both factor depths, the number of sibling types, and the number of target components to grow. For an arbitrary disconnected input, a negative answer rules out precisely the pairs of connected factors. The complexity of unrestricted reducibility is posed as open in \cite[Sec.~7]{pr} and \cite[pp.~185--186]{rolland}. A uniform polynomial bound for constructing one connected pair would require a further argument for choosing a continuing local split or for finding all candidate splits efficiently. For example, a local procedure with polynomial-bit setup and testing, a single trial at \(m=1\), and at most \(m^c\) trials otherwise for one absolute constant \(c\), would give a polynomial bound even for the full search: \(\prod_j\beta_j^c\le N^{2c}\). This is a sufficient condition. The number of local splits alone gives no lower bound for finding one complete pair. The representation matters even for a single cycle \(C_n\), \(n\ge2\). If \(C_n=XY\), both factor maps are surjective and both factors are connected, hence both are cycles. The product \(C_aC_b\) consists of \(\gcd(a,b)\) cycles of length \(\operatorname{lcm}(a,b)\). Thus a nontrivial split exists exactly when \(n\) has at least two distinct prime divisors \cite[author version, Appendix~A, p.~19]{bcpr}. For \(n\) given in binary this decision takes polynomial time in \(\log n\): test whether \(n=p^k\) using exact integer roots for \(1\le k\le\lfloor\log_2 n\rfloor\) and deterministic primality testing \cite{aks}. Constructing the two \emph{lengths} already recovers \(p,q\) when \(n=pq\) for distinct primes. Gaze-Maillot and Porreca establish a related search reduction for binary-encoded profiles, which record only the state counts at each distance from a cycle \cite[author version, Theorem~20, p.~8 and encoding on p.~10]{gmp}. \paragraph{Common anchors and short branches.} We tested the product identity used in Lemma~\ref{dictionary} and in the fixed-anchor argument of Section~\ref{multiplicities} on all 9,633 ordered pairs of equal positive height with at most eight vertices per rooted tree. There were 108,748 nonempty groups of active siblings at a given radius, including groups with one child. At every group the common anchor cut had the required height, all the paired cuts occurred in the observed product, and different sibling types had different products with this anchor. At radius two, 136 groups contained distinct types. For a concrete example, take a root whose two child trees are a two-edge path and the same path with an additional leaf attached to its root. The three-edge path is an anchor. The ordinary radius-two cut distinguishes the siblings by that leaf, which belongs to a branch ending before the cut radius. \paragraph{Guide budgets and complete pairs.} For all 3,413 labelled functions on one through five states, direct calculation checked the budgets of Lemma~\ref{budget} on 45,233 ordered endpoint pairs with a common \(H\)-step image, giving 139,777 level budgets. Separately, direct product generation gave a catalogue of all 203 targets on at most 12 states admitting two nontrivial connected factors. The global search with exhaustive local splitting recovered all 428 ordered pairs. At its 17,343 local calls of mass at least two (206 distinct target-and-anchor triples), the weighted splitter of Section~\ref{weighted} agreed with the exhaustive local splitter. At each extension the global search checks the cyclic predecessor marks and the size and degree bounds. It verifies complete pairs by multiplying their successor tables. The catalogue search enumerates its local splits exhaustively and compares them with the weighted splitter. The bit-complexity estimate in Proposition~\ref{count} uses the weighted enumeration of Proposition~\ref{local}. \paragraph{Local splitting and specialized multiplicities.} An independent oracle directly multiplies rooted trees and enumerates admissible ordered forest pairs. Across 407 calls (347 distinct triples), it agreed with the weighted splitter on every set of ordered splits. Of these calls, 153 had no split. The examples include unequal branch lengths at heights two through five and a projected space of rank three. On 106 further anchored star-forest instances of mass at most ten (103 distinct targets), fixing \(\tau=1\) and using the actual specialized multiplicities again recovered every split found by direct enumeration. Seven instances had maximum multiplicity two at \(\tau=1\) and edge bound \(\mu=1\). The bounded search chose \(\tau=2\) in all seven. In six instances two coprime factors acquired a common root. In the other instance the factor \(1+2x^2+x^2y\) specialized to \((1+t^2)^2\) under \((x,y)=(t,t^2)\), coprime to the other specialized factor \(1+t^3\). The four ordered forest splits in this example were recovered at both \(\tau=1\) and \(\tau=2\). The residue formula in Proposition~\ref{linear} counts both sources of multiplicity. \paragraph{A trial rejected after exact division.} On a 420-state target we followed one node with anchors \(S_1,S_2\), where \(S_d\) is the rooted star with \(d\) children. Its local mass was \(16\) and its level budget was \(595\). At projected rank four and \(\tau=2\), the pivot tuple \((1,0,0,0)\) decoded to \(C=S_1+S_2\) at one shift and content. Exact forest division returned \[ D=S_1+S_3+S_4+S_6+S_{12}+S_{18}+S_{24}+S_{72}. \] Independent remultiplication gave \(CD=E\). The missing right anchor \(S_2\) rejected this trial. Another trial at the same node extended to factors of 21 and 20 states. The supplemental scripts also checked selected nodes on targets of 60, 360, 2,880 and 34,560 states, finding respectively 2, 4, 8 and 16 distinct candidate left forests with exact positive quotients missing the right anchor. These are targeted tests of the trials counted in \(A_j\) in Proposition~\ref{count}. \paragraph{Reproducibility.} The \href{https://github.com/nuuttikuosa/mathematics-research-artifacts}{companion repository} contains input generators, independent enumerators and expected outputs. From its \texttt{finite-dynamics-factorisation} directory, run \texttt{python -B reproduce.py} to repeat the checks. The experiments compare outputs on finite inputs. The bit-complexity bound in Theorem~\ref{main} uses deterministic polynomial-bit factorization over \(\QQ\). \small \begin{thebibliography}{99} \setlength{\itemsep}{2pt} \bibitem{dore} F. Doré, K. Perrot, A. E. Porreca, S. Riva and M. Rolland. Infinite trees for division and roots over finite discrete-time dynamical systems. \emph{Natural Computing} 25 (2026), article 16. \href{https://doi.org/10.1007/s11047-026-10068-7}{DOI}; \href{https://aeporreca.org/papers/infinite-trees-for-division-and-roots-over-finite-discrete-time-dynamical-systems.pdf}{author version}. \bibitem{ng} É. Naquin and M. Gadouleau. Factorisation in the semiring of finite dynamical systems. \emph{Theoretical Computer Science} 998 (2024), 114509. \href{https://doi.org/10.1016/j.tcs.2024.114509}{DOI}. \bibitem{rolland} M. Rolland. \emph{Des unrolls aux systèmes dynamiques totaux et partiels: algorithmes de résolution et énumérations des (in)équations polynomiales}. Doctoral thesis, Aix-Marseille Université, 2026, NNT 2026AIXM0179. \href{https://rollandmarius1.github.io/these.pdf}{Thesis}. \bibitem{ddfmp} A. Dennunzio, V. Dorigatti, E. Formenti, L. Manzoni and A. E. Porreca. Polynomial equations over finite, discrete-time dynamical systems. \emph{ACRI 2018}, LNCS 11115, 298--306. \href{https://doi.org/10.1007/978-3-319-99813-8_27}{DOI}. \bibitem{dfpr} F. Doré, E. Formenti, A. E. Porreca and S. Riva. Decomposition and factorisation of transients in functional graphs. \emph{Theoretical Computer Science} 999 (2024), 114514. \href{https://arxiv.org/abs/2208.08310}{Author version}. \bibitem{bcpr} F. Bridoux, C. Crespelle, T. H. D. Phan and A. Richard. Dividing sum of cycles in the semiring of functional digraphs. \emph{Natural Computing} 25 (2026), article 11. \href{https://doi.org/10.1007/s11047-026-10065-w}{DOI}; \href{https://arxiv.org/abs/2504.11943v2}{author version}. \bibitem{cpr} C. Crespelle, T. H. D. Phan and A. Richard. Tensor product of functional graphs: algorithms for factorization and polynomial root-finding restricted to the cycle part. Preprint (2025). \href{https://hal.science/hal-05392325v1}{HAL}. \bibitem{pr} A. E. Porreca and M. Rolland. Injective and pseudo-injective polynomial equations: from permutations to dynamical systems. Preprint (2026). \href{https://arxiv.org/abs/2604.04065}{arXiv}. \bibitem{apr} R. Ascone, A. E. Porreca and M. Rolland. Polynomial equations over bijective dynamical systems and their semiring extensions. Extended abstract, Workshop on Cellular Automata and Boolean Automata Networks, UCNC 2026. \href{https://doi.org/10.5281/zenodo.20431157}{DOI}. \bibitem{imrich} W. Imrich. Factoring cardinal product graphs in polynomial time. \emph{Discrete Math.} 192 (1998), 119--144. \href{https://doi.org/10.1016/S0012-365X(98)00069-7}{DOI}. \bibitem{cmm} L. Calderoni, L. Margara and M. Marzolla. Direct product primality testing of graphs is GI-hard. \emph{Theoretical Computer Science} 860 (2021), 72--83. \href{https://doi.org/10.1016/j.tcs.2021.01.029}{DOI}. \bibitem{ik} W. Imrich and W. Klöckl. Factoring directed graphs with respect to the cardinal product in polynomial time II. \emph{Discuss. Math. Graph Theory} 30 (2010), 461--474. \href{https://doi.org/10.7151/dmgt.1507}{DOI}. \bibitem{smyth} C. J. Smyth. On the product of the conjugates outside the unit circle of an algebraic integer. \emph{Bull. London Math. Soc.} 3 (1971), 169--175. \href{https://doi.org/10.1112/blms/3.2.169}{DOI}. \bibitem{boyd} D. W. Boyd. Kronecker's theorem and Lehmer's problem for polynomials in several variables. \emph{J. Number Theory} 13 (1981), 116--121. \href{https://doi.org/10.1016/0022-314X(81)90033-0}{DOI}. \bibitem{lawton} W. M. Lawton. A problem of Boyd concerning geometric means of polynomials. \emph{J. Number Theory} 16 (1983), 356--362. \href{https://doi.org/10.1016/0022-314X(83)90063-X}{DOI}. \bibitem{ruppert} W. Ruppert. Reduzibilität ebener Kurven. \emph{J. Reine Angew. Math.} 369 (1986), 167--191. \href{https://doi.org/10.1515/crll.1986.369.167}{DOI}. \bibitem{gao} S. Gao. Factoring multivariate polynomials via partial differential equations. \emph{Math. Comp.} 72 (2003), 801--822. \href{https://doi.org/10.1090/S0025-5718-02-01428-X}{DOI}. \bibitem{shaker} H. Shaker. Topology and factorization of polynomials. \emph{Math. Scand.} 104 (2009), 51--59. \href{https://doi.org/10.7146/math.scand.a-15084}{DOI}. \bibitem{bs} P. Bürgisser and P. Scheiblechner. Differential forms in computational algebraic geometry. \emph{ISSAC 2007}, 61--68, Theorem 5.3. \href{https://www3.math.tu-berlin.de/algebra/work/2diff-forms.pdf}{Author PDF}. \bibitem{scheiblechner} P. Scheiblechner. \emph{On the Complexity of Counting Irreducible Components and Computing Betti Numbers of Algebraic Varieties}. Doctoral thesis, Universität Paderborn, 2007. \href{https://digital.ub.uni-paderborn.de/hsmig/download/pdf/4704}{Thesis}. \bibitem{lll} A. K. Lenstra, H. W. Lenstra, Jr., and L. Lovász. Factoring polynomials with rational coefficients. \emph{Math. Ann.} 261 (1982), 515--534. \href{https://doi.org/10.1007/BF01457454}{DOI}. \bibitem{aks} M. Agrawal, N. Kayal and N. Saxena. PRIMES is in P. \emph{Ann. of Math.} 160 (2004), 781--793. \href{https://doi.org/10.4007/annals.2004.160.781}{DOI}. \bibitem{gmp} C. Gaze-Maillot and A. E. Porreca. Profiles of dynamical systems and their algebra. Preprint (2020). \href{https://arxiv.org/abs/2008.00843v3}{arXiv}. \end{thebibliography} \end{document}