WorksComputer Science
Division of Explicit Finite Dynamical Systems Is NP-Complete
Abstract
Given the successor tables of two finite dynamical systems and , can we find a system whose synchronous product with is isomorphic to ? We prove that deciding whether such an exists is NP-complete even when and are permutations. This answers a question of Naquin and Gadouleau. Different cycle lengths in can contribute to the same cycle length in . We use their multiplicities to encode a 3-SAT formula so that its satisfying assignments correspond bijectively to quotient isomorphism classes. Counting these classes for permutation inputs is -complete under parsimonious reductions. Hardness holds with distinct, pairwise coprime, squarefree cycle lengths in and squarefree cycle lengths in . For a formula with variables and clauses, the two output tables can be constructed with states in total.
The division problem
A finite dynamical system is a nonempty finite set with a map to itself. Given systems and , can we label the states of by pairs so that the first coordinate follows and the second follows a single map ? We write if a bijection identifies the transition of with , and call a quotient. Its isomorphism class is a quotient class. The input lists the successor of every state in and . The quotient may have any number of connected components.
Even a four-state permutation can have two different quotients. Write for one -cycle and for disjoint union. Take and . If , the product has one 2-cycle above each fixed point of . If , label both factors by 0 and 1. The product swaps with and with . Both quotients therefore give .
More generally, a pair of states on cycles of lengths first returns to its starting position after steps. The pairs therefore split into cycles of this length, giving
A permutation is determined up to isomorphism by the number of its cycles of each length.
Naquin and Gadouleau asked whether division is NP-complete for general systems and raised the question even “on cycles” [11 §7, p. 17]. Doré et al. recorded the exact complexity of division as unknown [6 §1]. After solving division for connected quotients, they identified removing the connectivity assumption as a main research direction [6 §6].
Theorem 1. Deciding whether for some finite system is NP-complete under polynomial-time many-one reductions for explicitly listed successor tables. NP-hardness holds when and are permutations, the cycles of have distinct, squarefree, pairwise coprime lengths, and every cycle length of is squarefree.
Proof idea. Suppose . Multiplication by sends all three lengths to 105, with multiplicities . Thus one entry of the product reads the weighted sum . We choose cycle lengths so that several such sums read overlapping parts of an array. Section 2 encodes intervals on these sums by a single division equation. Section 3 uses sums of two bits to copy a truth value and sums of three bits to test clauses. Each satisfying assignment gives one quotient up to isomorphism. Reading its cycle multiplicities recovers the assignment.
Membership in NP. Dennunzio et al. established membership in NP for polynomial equations with a constant side [4 Thm. 2]. For division, if divides , guess a successor table on states and a bijection from its product with to . Bijectivity and commutation with the two maps can be checked entry by entry. If does not divide , reject. If is a permutation, surjectivity of the product also forces to be a permutation.
Related work
Why one unknown matters. Porreca reported NP-completeness for a single linear equation with a constant right-hand side and a variable number of unknowns, crediting joint work with Bridoux and Naquin-Touileb [13]. Ascone, Porreca and Rolland proved NP-hardness for linear permutation equations with three unknowns and asked how many unknowns suffice [1 p. 2]. Porreca and Rolland singled out as unclassified [14 §1]. Gadouleau and Johnson also recorded the problem as open for permutations [8 §1]. Theorem 1 answers the variable-count question for these linear equations. One unknown suffices even when every input state is listed. The same instances establish hardness for permutations specified by cycle lengths and multiplicities in binary, since traversing the successor tables gives those lists in polynomial time.
Where polynomial algorithms apply. The algorithms for restricted cases depend on what we know about the divisor or the quotient in advance. Doré et al. find a connected quotient, when one exists, in polynomial time [6 Thm. 3.13]. Their final question asks for two unknown connected factors when only the target is given [6 §6].
For permutation inputs, let be the least common multiple of the cycle lengths of , and let count its positive divisors. After the size check , Bridoux et al. count quotient classes in time [2 Thm. 1, eq. (2)]. This gives one polynomial bound for every family on which has a constant upper bound, including the case of a fixed . They also decide division in polynomial time when every cycle length of greater than one is prime, however many such lengths occur. In that case they can list all solutions in polynomial time when every cycle length of divides [2 §§4–6]. Dennunzio et al. decide in polynomial time even when are encoded in binary [5 Thm. 4].
Porreca and Rolland solve division in polynomial time when the shortest divisor cycle length divides all the others [14 §1], as part of their treatment of pseudo-injective equations [15 Thm. 6]. A fixed point in the divisor guarantees uniqueness whenever a solution exists [11 Thm. 34]. Polynomial algorithms are also known for pure permutation roots [16, 12, 15]. Gadouleau et al. relate polynomial-time division for partial and total systems [9].
Rolland gives a fixed-parameter algorithm for division, parameterized jointly by the number of distinct connected component types of and the shortest cycle length of [17 Thm. 4.43, p. 159]. In our reduction the shortest divisor cycle has length two, while the number of distinct target cycle lengths grows with the formula. The divisor has cycles, where .
After the reduction, § 4 bounds its cost in states, § 5 checks small instances, and § 6 treats scalar polynomials and uniqueness.
Realizing intervals by permutation division
Give each of three literal bits a positive weight. The interval from the smallest weight to the sum of all three accepts exactly the triples with at least one true bit. How can one product equation enforce both endpoints?
Write for the coefficient of in a finite sum . We extend the cycle product bilinearly to rational coefficients while constructing the target. A sum represents an actual nonempty permutation when its coefficients are nonnegative integers and at least one is positive.
Think of a rectangular array, with one prime labelling each position along an axis. We use different primes on different axes so that a site can be identified from the product of its labels alone. Take pairwise disjoint finite sets of primes , each with at least two elements. Write and choose a prime outside all the groups. A site is a full tuple and a face is a partly or fully specified tuple. Their respective sets are
The label 1 leaves a coordinate unspecified. A face with just one unspecified coordinate is a line. For , put and let count its unspecified coordinates. Write when agrees with all specified coordinates of . Because the are coprime, the factors can be read back from .
We store an entry at each site , with integral capacity . A site is active if its capacity is positive. On a face , the weight of an entry is the product of its labels in the unspecified coordinates. The weighted sum and its maximum are therefore
Give each an integral interval . At a site require . A feasible array satisfies for every .
A one-bit example. Take the prime groups and , with . Give the site capacity one and every other site capacity zero. There is just one entry to choose, . At the weighted sum is , since . Give every other face its full interval . The interval at then makes the following choices possible.
The last column explains the rational feasibility assumption in the next lemma. Neither bit works, yet gives . As the lemma shows, we can still construct a target permutation for this interval. The resulting equation then has no quotient. Figure 1 shows the entry and the line that reads it.

Figure 1. The four sites of the one-bit example. The shaded site has capacity , and the other three have capacity zero. On the top row the first label supplies the weight, giving . On the whole array both labels supply weights, so the shaded site’s contribution is .
The construction. The interval at holds exactly when its two signed distances, and , are nonnegative. Their sum is the known width . We put one distance at cycle length , and times the other at . Multiplying by sends both entries to length . Since , the cycle rule gives and . Each distance thus contributes times its value, for a total of .
Which distance should go at the longer length? A face sum is a weighted sum of the face sums obtained by specifying one more coordinate. To make their changes cancel in the product, reverse the choice of distance each time a coordinate is left unspecified. For any rational array , put
All displayed lengths are distinct, so has nonnegative coefficients exactly when is feasible. Set and compute in signed integer arithmetic. This computation uses only the capacities and intervals.
Lemma 2. Suppose that some and that a feasible rational array exists.
(a) For every rational array , . The target is a nonempty permutation.
(b) The map is a bijection from feasible integral arrays to quotient isomorphism classes for . Its inverse reads at each site .
(c) The number of states in satisfies
Proof. Independence of the array. In the one-bit example let be the upper bound on . Keep the other three site entries at zero. The multiplicities of and in are and . Multiplication by sends both to length 210. The two contributions are and , giving in all. The third possible length on this line, 70, has multiplicity zero because the site has capacity zero.
For the general calculation fix a coordinate and all the other labels, allowing those labels to be 1. Let be their product. Write for the face leaving coordinate unspecified and for the face specifying there. The sites above split according to their th label. A site with label has weight times its weight on , giving
Use subscripts for the corresponding values of . Multiplication by gives and , since . Both identities also apply with in place of . Thus
Each has one fewer unspecified coordinate than , so their 's use opposite signs for the face sums. Writing for the common value of , substitution gives
Both product coefficients are therefore independent of . These are all the lengths contributed by this line, and each determines . The remaining divisor cycle gives
We have proved . Evaluating at zero gives integer coefficients, even if zero violates an interval. Evaluating at a feasible rational array shows that the same coefficients are nonnegative. At a site with , the product with makes a positive contribution, so is nonempty. This proves (a).
Ruling out other cycle lengths. So far every feasible integral array gives a quotient. To reverse the construction, first consider any cycle in a putative quotient. We can rule it out if multiplying it by even one cycle of would produce a cycle length absent from . For instance, in the one-bit example a quotient cycle of length would give a cycle of length on multiplication by . That cycle length uses both prime groups in full. To see why it is absent, examine the terms of before cancellation.
All cycle lengths divide the squarefree number . In each cycle length, at most one group contributes more than one prime. Indeed uses at most one label from each group. Every cycle length of contains all primes of and at most one from each other group. Cancellation only removes cycle lengths from this list.
If , then is a permutation since is surjective. Let be any cycle in . Every cycle contributed by a pair of cycles from and occurs in their product with positive multiplicity. In particular, the length occurs in , so divides . If used two primes from , choose . Then would give a positive term of using at least two primes from each of , which we have just ruled out. This step uses a second group and at least two primes in it. Hence or for some .
Reading the entries back. For with this support, the cycle lengths contributed to by its different divisor summands are disjoint. A cycle length in contains no full group because every group has at least two primes, and one in contains exactly in full. The same separation holds for for every . Looking at which prime groups occur in full therefore tells us which summand of contributed each cycle length of the product. In particular we can read the product separately. By (4) its coefficient at is . Put . Equation (4) now gives , including at tuples with . At a site we have and the interval is , so . Set . These entries are nonnegative integers, being cycle multiplicities in .
It remains to identify the coefficients at the faces with unspecified coordinates. Use the notation from (a). Only contributes to length , and dividing by recovers and hence the fixed labels. The cycle rule on this line gives
Each face on the right has one more specified coordinate. Starting at the sites and proceeding in order of increasing , the recurrence determines every . Part (a) gives for every rational array, so it applies to the integer array just recovered. The coefficients of therefore satisfy the same recurrence, and they agree with at the sites by the definition of . Induction gives everywhere. The coefficients at both lengths now agree, so . The nonnegativity of forces for every face, including faces of zero width. Hence is feasible. Conversely, each feasible integral gives a quotient by (a), and its site coefficients recover it uniquely. This proves (b).
Counting the states. Finally the two terms for in have total size . Summing and multiplying by gives the exact size in (3). For the upper bound replace each by . In a site contributes . Each of the coordinates of may be kept or left unspecified, so this contribution occurs exactly times in the sum over . □
De Loera and Onn proved that feasibility of a nonnegative integer table with prescribed two-dimensional marginals is NP-complete [3 Thm. 1.1]. Their marginal sums have unit coefficients. Here the coefficients come from cycle multiplication.
From a Boolean formula to two successor tables
How can an interval test a Boolean condition? Suppose two sites on a line carry bits with weights 3 and 5. The possible sums are 0, 3, 5 and 8, so the interval [3, 5] makes the bits opposite. Along a path of two such tests the original bit reappears at the other end. On a line with three bits, the weighted sum is at least the smallest of its three positive weights exactly when at least one bit is 1. Now imagine testing a clause such as . We want one line with three active sites, one for each literal in its clause position. Give each clause position its own plane. On each plane, copying lines carry a literal’s bit to every address where a clause asks for it. A second kind of line links the planes so that every occurrence of agrees and every occurrence of reads its complement. The clause line can then test the three bits with a single interval. The construction below gives each of these lines precisely the sites it needs.
Take a conjunction of clauses with at most three literals each [10]. If its variables are given by an explicit list, first add for every listed but unused variable. This preserves both choices for when we count assignments. Otherwise the variables are those occurring in the formula. Set aside the empty cases until the end of the construction. In every remaining short clause, repeat a literal until the clause has three positions. Relabel the variables. A literal may occur in any position in many clauses. We give it a copy on each of three planes, one plane for each clause position. There are identifiers, one for each signed literal and one padding identifier . Padding will let us test just two planes while giving all three positions a definite address.
Assigning addresses. Choose the least with , and the least with . The two choices balance the cost of an address. At a site, uses one prime per coordinate, whereas the divisor cycle for a coordinate uses all its primes. Taking and will keep both lengths polynomial in (§ 3.3). Assign distinct words in to the identifiers. The address of an identifier is its word with each digit duplicated. A site has three slots of coordinates each and one plane coordinate with three values. Fixing the three slots and varying the plane gives a line through the three clause positions. Each address coordinate has labels. Assign a distinct prime to every label of every coordinate using consecutive primes starting at 3, taking one address coordinate at a time and the plane last. A label’s weight is the prime assigned to it in its own coordinate. For example, the digit 0 has positive weight. Since all label primes are odd, we may take the guard prime .
Connecting the addresses of one literal. To copy a bit we need to travel between duplicated words by changing one coordinate at a time. Let be the path of digit pairs obtained by listing $(a,a) and inserting between successive diagonal pairs. For $u = 3 it is
A slot ranges through , the Cartesian product of such paths. Why use a pair of coordinates for one digit? Fix either member of a pair and at most two points of remain. This is what lets a copying line isolate two sites even when the alphabet is large.
On plane , for each signed literal fix slot to and allow the other two slots to range through . Give these sites capacity one and all other sites capacity zero. Each plane thus has one disjoint copy of per literal. The padding address can be visited in either varying slot because every duplicated word belongs to . On plane , a site with padding in its own slot has capacity zero.
Copying a bit. In each copy we need only enough edges to reach every site. Take a spanning tree of its Cartesian product graph. For every tree edge impose a condition on the face leaving only its varying coordinate unspecified. Exactly the two active endpoints lie on this line. The plane and its literal are fixed, as is the partner coordinate of the varying digit. If the two endpoint bits are and the two labels are , the face sum is . The interval imposes .
Number the positions in starting at zero. A graph edge reverses the parity of the sum of the positions in the varying slots. Every site where all digit pairs are diagonal has even parity. Consequently, all such sites in the copy for carry one bit . Either value of this bit extends uniquely to the copy by assigning its complement at sites of odd parity. Figure 2 shows one choice of the tree and the sites where the construction reads the bit.

Figure 2. Copying one bit when and . On the left the five positions on are numbered in path order. On the right only the solid edges of the grid are used as copying lines. They form a spanning tree. If the bit at is , filled sites carry and open sites carry . At the nine boxed sites both slots contain duplicated digits. All nine have even parity and carry . The tests that compare literal signs or check clauses read the bit only at boxed sites.
Identifying a literal across the three planes
Write for the line that fixes the three slots to their respective diagonal words and leaves the plane unspecified. On it, plane has an active endpoint precisely when is a literal. Its bit there is . For example, exposes the bit for on the first plane and the bit for on the third. The second plane contributes zero. Let be the plane primes.
For each variable and every ordered pair , place in slot , in slot and in the remaining slot. We call these six lines the sign tests of . On each line impose the interval . It forces exactly one of to be one. The six conditions form the cycle
Thus the three positive copies agree and the three negative copies are their complements. A truth value for satisfies all six conditions and determines all six bits.
Enforcing a clause
For each clause impose on its line the interval
All three planes are active, also when literals repeat. This interval excludes exactly the all-zero triple.
Could two instructions give the same line incompatible intervals? A copying line fixes its plane and the address of its owning literal. It therefore belongs to one copy, and its two active endpoints determine a single tree edge. Both other kinds of line vary the plane. A sign test has one padding slot, which identifies the remaining pair of positions. A clause has three literal addresses. Repeating an ordered clause simply repeats its interval. This accounts for every marked line. Give each remaining face its full interval .
An integral feasible array now yields a truth assignment from for each variable. The six-cycle gives the value of every literal on every plane, and (5) makes every clause true. Conversely, assign the truth values at diagonal words and extend by parity in each copy. This gives a feasible integral array for every satisfying assignment. At all inactive sites the entry is zero.
A feasible rational array exists even if the formula has no satisfying assignment. Give every active site value and every unused one zero. On a two-endpoint line the weighted sum is , which is between its two labels. On a clause line it is . All other faces have their default intervals. Lemma 2 therefore constructs a nonempty integral target on satisfiable and unsatisfiable inputs alike, and supplies the converse for arbitrary candidate quotients.
The half assignment gives a further check on the construction. All entries of at this point are nonnegative half-integers. Doubling their multiplicities gives a genuine quotient of by , even when the original formula is unsatisfiable.
Empty cases. After accounting for unused variables, an empty conjunction has one assignment and gives with unique quotient . A formula containing an empty clause has no satisfying assignment. For this case take . A fixed point of a quotient would give a 3-cycle in upon multiplication by . Since has no such cycle, the only possible contributions to its 2-cycles come from . Yet has just one 2-cycle. This fixed instance also satisfies .
Writing the successor tables
At this point a formula has determined two lists of cycles. A short list can describe a very large permutation. To finish the reduction in the explicit input model we must bound the number of states in the cycles, including all their copies. The divisor has address cycles, one plane cycle and . Every coordinate cycle length is a product of distinct primes assigned only to that coordinate. Thus the lengths of are squarefree and pairwise coprime. Every length in is the least common multiple of squarefree lengths and is also squarefree. By (4), each active site contributes a distinct length to . Their number grows with the number of variables.
For , minimality gives , hence , including after changing the constant. Also . The address and plane primes have largest value by the bound on the th prime [18 p. 69, (3.13)]. They can be found by deterministic sieving. An address cycle length is at most , and the plane cycle length is at most . Each site length uses one label from each coordinate, hence is at most . Each of these bounds is .
There are coordinates and faces. Since all capacities are at most one, (3) gives
This counts all copies of all cycles of . The algorithm enumerates the tuples, constructs the copying trees, marks the lines of the input formula, computes (2) and multiplies by the cycle rule (1). All loops take time polynomial in the input size, including the number of clauses. In particular, bounds the signed intermediate coefficients before multiplication. Writing a cycle of length uses consecutive states with cyclic successors. Both successor tables together require bits for . This proves Theorem 1.
The three one-bit intervals of Section 2 also admit a direct check. Building their successor tables and recovering the quotients gives two classes for , one for and none for . Section 5 gives the table sizes and describes the independent decoder.
Counting quotient classes
Corollary 3. For explicitly given permutations, counting the isomorphism classes of satisfying is #P-complete under parsimonious polynomial-time reductions. The hardness holds with all the cycle restrictions of Theorem 1. All instances produced by the reduction also satisfy .
Proof. Counting satisfying assignments to clauses of width at most three is #P-complete under count-preserving reductions [19 §3, Facts 1–2]. In the bounded-fan-in circuit encoding, fields for internal gate values have a unique assignment given the inputs. Each gate relation uses at most three variables, and a unit clause requires the output to be true. Our input convention explicitly accounts for every variable counted. The tautology preprocessing and clause padding preserve all assignments, including those of an initially empty conjunction. The fixed empty-conjunction instance has one quotient class, and the empty-clause instance has none. Otherwise each satisfying assignment has exactly one parity extension to the copying trees. Conversely the bits recover the assignment, and Lemma 2 gives exactly one quotient class for each feasible array. Doubling the half assignment, or using the displayed products in the fixed cases, gives .
To count quotient classes, each class must have exactly one accepting certificate. Guessing a labelled successor table could count the same permutation many times. Its list of cycle multiplicities is unique. If is not integral, reject. Otherwise set and guess the multiplicity of each cycle length , using exactly bits per entry. Check that the total size is , and use the cycle rule to compare the product with the cycle histogram of . This is polynomial in the explicit table sizes. Every quotient class yields exactly one accepting string.
A procedure that halts in polynomial time on every input and returns a quotient on every yes-instance would decide 3-SAT in polynomial time. For the constructed permutation instances, an output can be checked by testing bijectivity and comparing the cycle multiplicities of and .
The cost in states
How many states do we pay for each bit in the reduction? Consider a nontrivial formula. We use the guard prime 2, and each active site has capacity one and interval . Put . Keeping just the terms for these sites in the exact state count (3) gives the lower bound below. The upper bound from the same lemma includes all faces.
In each construction grows more slowly than any fixed positive power of the input scale. It therefore suffices to count the divisor states, the length at an active site, and the active sites. For example, the first row of Table 2 gives for the exponent of .
| Interval for | |||
| Feasible bits | none |
Table 2.
Size of the duplicated-digit construction
Let count the identifiers. For the construction in Section 3, minimality of and gives and , so . There are address
| Construction | Scale | ||||
| Duplicated digits | 2 | 12 | 3 | 17 | |
| One checksum | 0 | 6 | 3 | 9 | |
| Test and literal addresses | 0 | 4 | 1 | 5 |
caption: State counts for variables and padded clauses. In the last four columns, an entry means the quantity is as grows. The estimate for holds uniformly at all active sites. In particular, a zero allows subpolynomial growth.
coordinates. The largest prime is at most by the prime bound in § 3.3. The groups receive consecutive primes in coordinate order. Thus every prime in group is at least . The last address cycle alone has length at least . Each address cycle has length at most , and hence . At every site the same ordering gives
by Stirling’s formula. There are exactly active sites. Since gives , the two bounds on yield , uniformly over the clauses and the choice of copying trees.
A shorter address with one checksum
Can we still isolate two endpoints on a copying line with fewer coordinates? Duplicating every digit used coordinates for a word of length . We will use just one extra digit to record a checksum, bringing the cost down to .
We also shrink the alphabet. A group with labels costs up to states in a single divisor cycle. We would like that cost to be , while retaining enough words to name all identifiers. Let be the least integer with , set , and take the least with . Dividing the alphabet size by a logarithmic factor makes , yet . Thus the required word length still satisfies .
For a word , put . A varying slot can occupy any of the sites
Think of as a stable address and as the intermediate site on a move to the next address. In base three, for instance, a move from to visits . Give every identifier a distinct word, including the padding identifier. Its address is the corresponding site. On plane fix slot to the stable address of its literal and let the other two slots vary independently. Sign and clause tests still take place at stable addresses.
Join to . From one can move to whenever is obtained by increasing one digit of by one modulo . This second edge keeps the checksum fixed, even when the digit wraps around. Why do we see exactly two possible sites on each coordinate line? If a digit varies, the other digits and the checksum determine it uniquely for each of the two types. If the checksum varies, the word fixes its two possible values. Hence an edge line in one copy isolates its two endpoints.
These edges form a connected bipartite graph on the slot, since a path of length two increments any digit of a stable site and each edge joins an site to an site. In the product of the two varying slots, the parity of the number of slots changes along every edge. In particular, all pairs of stable addresses have even parity. As in § 3, impose complementary bits along a spanning tree. Each literal bit extends uniquely, the six sign tests still identify the copies of a variable, and every clause still reads its three literal bits. Assigning at every active site remains feasible. Lemma 2 therefore gives the same assignment–quotient bijection and cycle restrictions.
For the state count, put , so . We have . Assign consecutive primes in coordinate order as before. The largest prime has index , so . The address groups each cost at most states and the plane group at most . Since , this gives as intended. At every site we again have
By Stirling’s formula the logarithms of the two bounds are both . The literal copies each have active sites, giving in total. Since , we obtain , uniformly over formulas and copying trees. Enumerating the faces and writing the tables as in § 3.3 takes polynomial time in the formula length. The estimates count states. Writing their successors in binary adds at most a logarithmic factor.
Routing by test and literal
In the checksum construction a literal occupies an entire product of two slot graphs on a plane, although a test of that literal on the plane reads it at just one site. To reduce the cost further, we give separate addresses to tests and literals. A test is a clause or one of the six sign tests of a variable. At stage zero a test keeps its address fixed and follows a path from padding to the literal it reads. At stage one the literal keeps its address fixed, and a tree joins the tests that read it. A single edge between the two stages at each such meeting point makes all occurrences of that literal on the plane read the same bit. Only the paths and trees needed to deliver those bits have to be activated. Figure 3 follows two tests that request the same literal.

Figure 3. Two tests on one plane request the same literal . Each stage-zero path varies the literal address at a fixed test. A single stage edge then reverses the bit. The stage-one tree joins the two stable test addresses at fixed . Its path has even length because stable and intermediate sites alternate. Dashed lines stand for paths with their internal sites omitted. Both tests therefore read at padding.
Use two address slots, a stage coordinate with two labels and a plane coordinate with three labels. Give distinct identifiers to the clauses and the sign tests of § 3. A clause requests one literal on each of its three planes, even if it repeats a literal. A sign test requests a literal on two planes. There are test identifiers and literal or padding identifiers. Thus a common address space of capacity suffices for either slot. Choose as in the checksum construction with in place of . Each slot uses its own prime labels on the same abstract checksum graph with coordinates. Write for the stable address of identifier , including for padding in the literal slot.
On each plane give the following sites capacity one, and give every other site capacity zero.
At stage zero, fix the test slot to for each participating test . In the literal slot take a path from to , where is the literal requested on this plane. Mark its edges.
At stage one, fix the literal slot to for each requested literal . In the test slot choose one test requesting and join its stable address to those of all the others. Take a spanning tree of the union of the paths and mark its edges. If only one test requests , the tree is a single site.
For both stages we route between stable addresses by incrementing digits in coordinate order. There are at most increments per digit and two edges per increment, hence at most edges per route. Use a fixed vertex order to select each spanning tree.
Which active sites does each marked line read?
A stage-zero edge line fixes the plane, stage and test address, so only one path can meet it. Its two marked endpoints are active. The two-site property of the checksum graph excludes any further site.
A stage-one edge line fixes the plane, stage and literal address, so only one tree can meet it. The same two-site property isolates its endpoints.
For an occurrence , mark the stage line through on its plane. It meets the end of the test path and a site of the literal tree. These are its only two sites, since the stage takes just two values. A path or tree may visit another stable address along its route. We mark the stage line there only if the address pair is itself a requested occurrence.
The plane line through reads exactly the planes participating in . Only those planes have a stage-zero path for that test, and each such path starts at padding.
On the first three kinds of lines impose the complementary-bit interval for their two endpoint primes. On a plane line impose its sign or clause test. Every other face receives its default interval. Lines from different kinds free different coordinates or fix different stages. At a given stage, edge lines for different tests (at stage zero) or different literals (at stage one) have different fixed addresses. If two traversals use the same line, its two endpoints give the same interval.
For consistency, colour each active site by the parity of its stage plus the number of addresses in its two slots. Every address edge changes one address type, and a stage edge changes the stage. Each complementary-bit equation therefore joins opposite colours. All the stable test addresses in a stage-one literal tree carry the same bit. Crossing to stage zero complements that bit once. The remaining path to padding has even length because both ends are stable. Thus every occurrence of on plane reads the same bit , the complement of the tree’s stable bit. Conversely, specifying these readouts fills the trees and then the paths uniquely. Every literal is requested on each plane by the sign tests. They impose the same six-cycle as in Section 3, and the clause tests impose (5). We recover both the assignment–quotient correspondence and the feasible half array.
There are address groups followed by the stage and plane groups of sizes two and three. Assign consecutive odd primes in that order and retain the guard prime 2. Here and . As before, . At every site the bounds now give . The participating test–plane pairs give distinct stage-zero padding sites. Each pair needs at most one route in each stage, so both stages together use sites. Hence . Since , the state-count bounds yield . There are faces, and the construction takes polynomial time including the explicit output. In particular, when . For unrestricted clause density the three-slot construction gives the separate bound .
Computational checks
These computations illustrate the reduction on instances small enough to check independently. For the one-bit example in Section 2, we built the three target successor tables. In the order of the intervals , and , they contain respectively 15 792, 11 844 and 13 160 states. From their cycle types we recovered two, one and zero quotient classes. For each quotient we built its product table with and checked its cycle type against the target.
For the SAT constructions we stored each cycle length with its multiplicity. Equation (1) lets us multiply these lists exactly, even for the following targets built from the single clause .
| Construction | Distinct cycle lengths in | |
| Duplicated digits | 27 693 | 329 236 589 030 252 537 126 |
| Test and literal addresses | 58 868 | 42 733 726 046 144 284 221 840 |
Table 1 (PDF p. 13).
The clause is a tautology, so a decoder should find two quotient classes. Replacing it by leaves one assignment. Adding to that clause leaves none. A separate decoder receives just the cycle lists of and . It factors the lengths in to recover the prime groups and reads the coefficients in to reconstruct the interval constraints. It then enumerates the feasible bits without access to the formula. For the duplicated-digit construction, which uses 150 active sites for one variable, it reconstructed the constraints, found respectively two, one and zero quotient classes, and verified each quotient by multiplication. For the two-address construction in § 4.3, the decoder reconstructed all 49 152 faces on each of the three inputs and found the same counts.
For seven formulas with one to five variables we also compared the assignments obtained from the two-address interval constraints with direct Boolean enumeration. The two sets agreed for every formula. The formulas, scripts and per-instance counts are in the reproduction package (commit f7145d2).
Scalar polynomials and uniqueness
What can we learn about by observing after steps? A pair returns to its starting point exactly when both coordinates do. If counts the states fixed by the th iterate, then . On a -cycle all states return when , and none return otherwise. This gives the formula , which extends to every rational cycle sum . Multiplicativity extends to these sums by bilinearity. In the language of Burnside rings, this count is the mark of the subgroup generated by the th power of a generator of the infinite cyclic group acting by the permutation [7 §2, (2-6)]. The marks determine one cycle length at a time. Once the shorter lengths are known, subtracting their contributions from leaves .
Call visible when , that is, when some cycle length of divides . Division by then recovers the mark of . At every other index the product mark is zero for every . Thus exactly when agree in all visible marks. For the opening example , only the even indices are visible. Both candidate quotients and have two returning states at every even step. Their numbers of fixed points differ at the first step, which the product cannot detect.
Corollary 4. Fix a nonconstant scalar polynomial with nonnegative integral coefficients and . Interpret a coefficient as and write for this polynomial on systems. For explicit permutations , deciding is NP-complete and counting its quotient classes is #P-complete under parsimonious reductions. Hardness holds under the cycle restrictions of Theorem 1, with part of the input.
Proof. We will replace the target of each hard division instance by a target with exactly the same solutions . The reason this can work is that marks add under disjoint union and multiply under direct product. Hence , so we can apply to each visible mark separately.
For the constructed instance let and at the feasible half assignment. Then is signed integral, is nonnegative rational, and . In the constant yes branch use . In the constant no branch of Section 3 one may take $Y_0=
and , which have the same stated properties by (1). Form . On visible indices its marks are , and on other indices they vanish. Hence . Its cycle multiplicities are integral by the first construction and nonnegative by the second. Its size is . Its cycle lengths are squarefree, since direct products take least common multiples. For every permutation , strict increase of on the nonnegative reals gives
To compute we enumerate the ordered tuples of terms of in each signed product. There are polynomially many such tuples for fixed , and each coefficient and cycle length has polynomial bit length. The displayed size of is polynomial, so we can write out its successor table.
For membership, on a yes-instance. The summand in a permutation target forces to be a permutation, since a positive Cartesian power of a nonsurjective map is nonsurjective. One fixed-width guess for each entry of the cycle histogram up to gives one accepting path per solution. For a guessed histogram of total size , first check that and . Reject the guess if either check fails. For each with , the summand then has states. Evaluate the fixed polynomial using the cycle product rule and compare the cycle type of with that of .
Suppose now that we know there is at most one quotient. How hard is it to decide whether it exists? Another question starts with an arbitrary instance and asks whether it has at most one quotient. The bijection with satisfying assignments answers both.
Corollary 5. If a deterministic polynomial-time algorithm distinguishes zero quotient classes from exactly one on promised explicit permutation instances, then NP = RP. Deciding whether there is at most one quotient class is coNP-complete. Both statements hold under the divisor and target restrictions of Theorem 1.
Proof. Apply Valiant–Vazirani isolation to a SAT instance [20]. An unsatisfiable formula always stays unsatisfiable. A satisfiable one acquires exactly one solution with inverse-polynomial probability. Use bounded-fan-in Boolean gates and a biconditional for each gate when converting to clauses of width at most three. Each input assignment then has exactly one gate extension if it is accepted. The parsimonious reduction preserves the promise in the two cases just described. Polynomially many independent repetitions give RP success probability. Answers on multiple-solution outputs cannot cause a false acceptance on an unsatisfiable input.
For the second claim adjoin a fresh variable through a tautological clause. The number of quotient classes is twice the number of satisfying assignments. It is at most one exactly on unsatisfiable formulas. Two distinct verified cycle histograms certify the complement.
The promise here concerns a single pair . Global injectivity of the polynomial across all right-hand sides is a separate tractable condition [15].
How many divisor cycles suffice? Our reduction uses a growing number of divisor cycles. What happens with just two? For with and powers of distinct primes, has positive divisors. The counting bound of Bridoux et al. therefore applies with exponent four for two primes and nine for their squares, even as vary [2 Thm. 1]. Now allow arbitrary lengths with neither dividing the other. Can one polynomial-time algorithm decide whether divides an explicit permutation , even when may have arbitrarily many divisors? Our reduction leaves this question open.
References
- [1]R. Ascone, A. E. Porreca, and M. Rolland. Polynomial equations over bijective dynamical systems and their semirings extensions. Extended abstract, Workshop on Cellular Automata and Boolean Automata Networks, UCNC 2026. doi:10.5281/zenodo.20431158. Accompanying slides, nos. 17–21.DOI
- [2]F. Bridoux, C. Crespelle, T. H. D. Phan, and A. Richard. Dividing sum of cycles in the semiring of functional digraphs. Natural Computing 25, article 11, 2026. Publisher. arXiv:2504.11943v2.DOI
- [3]J. De Loera and S. Onn. The complexity of three-way statistical tables. SIAM Journal on Computing 33, 819–836, 2004. doi:10.1137/S0097539702043803.arxiv.org/abs/math/0207200
- [4]A. Dennunzio, V. Dorigatti, F. Formenti, L. Manzoni, and A. E. Porreca. Polynomial equations over finite, discrete-time dynamical systems. In Cellular Automata (ACRI 2018), LNCS 11115, 298–306, 2018. Publisher.DOI
- [5]A. Dennunzio, E. Formenti, L. Margara, and S. Riva. On solving basic equations over the semiring of functional digraphs. Discrete Mathematics & Theoretical Computer Science 27(3), article 6, 2025. doi:10.46298/dmtcs.14590.DOI
- [6]F. Doré, K. Perrot, A. E. Porreca, S. Riva, and M. Rolland. Infinite trees for division and roots over finite discrete-time dynamical systems. Natural Computing 25, article 16, 2026. doi:10.1007/s11047-026-10068-7.
- [7]A. W. M. Dress and C. Siebeneicher. The Burnside ring of the infinite cyclic group and its relations to the necklace algebra, λ-rings, and the universal ring of Witt vectors. Advances in Mathematics 78, 1–41, 1989. Publisher.DOI
- [8]M. Gadouleau and M. Johnson. Semirings of formal sums and injective partial transformations. arXiv:2603.26508, 2026.arxiv.org/abs/2603.26508
- [9]M. Gadouleau, S. Riva, M. Rolland, and M.-E. Voge. Solving polynomial equations over partial discrete dynamical systems. arXiv:2609.39724, 2026.arxiv.org/abs/2609.39724
- [10]R. M. Karp. Reducibility among combinatorial problems. In Complexity of Computer Computations, pp. 85–103, 1972. doi:10.1007/978-1-4684-2001-2_9.DOI
- [11]É. Naquin and M. Gadouleau. Factorisation in the semiring of finite dynamical systems. Theoretical Computer Science 998, 114509, 2024. Publisher. Preprint, 2022, §7, p. 20.
- [12]T. H. D. Phan, C. Crespelle, and A. Richard. Tensor product of functional graphs: algorithms for factorization and polynomial root-finding restricted to the cycle part. SSRN 5316210, 2025.
- [13]A. E. Porreca. The semiring of dynamical systems. Author’s account, 28 June 2020, and CANA seminar slides, 6 October 2020, PDF pp. 91–94.DOI
- [14]A. E. Porreca and M. Rolland. Solving pseudo-injective polynomial equations over finite dynamical systems. In AUTOMATA 2025, LNCS 15831, 171–187, 2025. Publisher. arXiv:2504.06986.arxiv.org/abs/2504.06986
- [15]A. E. Porreca and M. Rolland. Injective and pseudo-injective polynomial equations: from permutations to dynamical systems. arXiv:2604.04065v2, 2026. See also the CiE 2025 paper on injectivity.arxiv.org/abs/2604.04065
- [16]S. Riva. Factorisation de systèmes dynamiques discrets. Doctoral thesis, 2022. University repository.
- [17]M. Rolland. 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. Author’s copy.
- [18]J. B. Rosser and L. Schoenfeld. Approximate formulas for some functions of prime numbers. Illinois Journal of Mathematics 6, 64–94, 1962. doi:10.1215/ijm/1255631807.DOI
- [19]L. G. Valiant. The complexity of enumeration and reliability problems. SIAM Journal on Computing 8, 410–421, 1979. doi:10.1137/0208032.DOI
- [20]L. G. Valiant and V. V. Vazirani. NP is as easy as detecting unique solutions. Theoretical Computer Science 47, 85–93, 1986. Publisher.