Reachability with Restricted Reactions in Inhibitory Chemical Reaction Networks
Abstract
Chemical Reaction Networks (CRNs) are a well-established model of distributed computing characterized by quantities of molecular species that can transform or change through applications of reactions. A fundamental problem in CRNs is the reachability problem, which asks if an initial configuration of species can transition to a target configuration through an applicable sequence of reactions. It is well-known that the reachability problem in general CRNs was recently proven to be Ackermann-complete. However, if the CRN’s reactions are restricted in both power, such as only deleting species (deletion-only rules) or consuming and producing an equal number of species (volume-preserving rules), and size (unimolecular or bimolecular rules), then reachability falls below Ackermann-completeness, and is even solvable in polynomial time for deletion-only systems.
In this paper, we investigate reachability under this set of restricted unimolecular and bimolecular reactions, but in the Priority-Inhibitory CRN and Inhibitory CRN models. These models extend a traditional CRN by allowing some reactions to be inhibited from firing in a configuration if certain species are present; the exact inhibition behavior varies between the models. We first show that reachability with Priority iCRNs mostly remains in P for deletion-only systems, but becomes NP-complete for one case. We then show that reachability with deletion-only reactions for iCRNs is mostly NP-complete, and PSPACE-complete even for -size (general) reactions. We also provide FPT algorithms for solving most of the reachability problems for the iCRN model. Finally, we show reachability for CRNs with states is already NP-hard for the simplest deletion-only systems, and is PSPACE-complete even for (general) -size reactions.
Keywords and phrases:
Chemical Reaction Networks, Vector Addition Systems, Petri-nets, Reachability, Inhibitors, Void ReactionsCopyright and License:
2012 ACM Subject Classification:
Theory of computation Models of computation ; Theory of computation Complexity classesFunding:
This research was supported in part by National Science Foundation Grant CCF-2329918.Editor:
Pierre FraigniaudSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Chemical Reaction Networks (CRNs) [4, 5] are an abstract model of molecular computation in which molecular species can evolve through applications of reactions. Although initially motivated by modeling natural chemical interactions, CRNs have been recently explored for developing artificial chemical systems [23], computations of semilinear functions [8], digital logic [7, 16, 17], and neural networks [16], along with successful implementations in DNA Strand Displacement (DSD) systems [28].
CRNs are computationally equivalent to two classical models of infinite-state systems: Petri-nets [25] and Vector Addition Systems (VAS) [18, 19]. This equivalence connects molecular computation with decades of complexity-theoretic results concerning reachability [9, 14]. In all three models, the reachability problem asks whether a target configuration can be reached from a given initial configuration via a sequence of rule applications. Although certain characteristics of reachability in general CRNs (and equivalently, Petri-nets and VAS) were well-known for decades, such as EXPSPACE-hardness [21] and decidability [22], only recently has the problem been proven to be Ackermann-complete [10, 20].
A crucial limitation of the classical models is the absence of zero-checking. To address this, a natural and well-studied extension across all three models is to allow inhibition, which allows certain reactions to be disabled by the presence of designated species. Petri-nets with inhibitor arcs [15, 26], Priority Vector Addition Systems [13], and Inhibitory Chemical Reaction Networks [6] all explore this idea. Because inhibition enables zero-checking, these inhibitory extensions gain substantial power, achieving Turing Universality [6, 24]. However, due to the Turing-universal power of zero-checking, the reachability problem becomes undecidable in general for such systems with inhibition. For this reason, and to better understand the boundaries between decidable/tractable and undecidable/intractable, we limit our study to restricted classes of CRNs with inhibition that use only deletion-only or volume-preserving rules.
For CRNs, deletion-only (void) reactions never create any new species in the system (e.g., , or ), and volume-preserving reactions contain an equal number of reactants and products, ensuring that the system’s volume never changes (e.g., ). These restrictions are well-motivated: unlike general CRN systems, which can exhibit complex and error-prone behaviors that are challenging to implement [29], deletion-only and volume-preserving systems are potentially simpler to realize and analyze [1, 12]. Moreover, in the absence of inhibition, such restrictions significantly reduce computational power: deletion-only systems cannot compute even simple functions [2], reachability with bimolecular void reactions is solvable in polynomial time [1, 12], and reachability with -size reactions is solvable in polynomial time [1]. These observations raise a central question: to what extent do inhibitory extensions increase the computational power of CRNs when restricted to these small-sized restricted reactions?
Under these structural restrictions, we consider two types of inhibitory CRN systems. The general Inhibitory CRN (iCRN) [6] model simply allows reaction execution to be inhibited by the presence of some subset of species in the configuration. The Priority-Inhibitory CRN (P-iCRN) model establishes a priority for each reaction, in which a reaction with priority is inhibited from firing unless the first species are absent from the system. Here, the order of species is used to determine the inhibitors for each reaction. In this paper, we study the reachability problem under deletion-only and volume-preserving reactions for both of these models.
Our Results
For the restricted reaction types studied in this paper, we use the notation to denote reactions with reactants and products (e.g., (2,0) is a bimolecular void reaction and (1,1) is a volume-preserving unimolecular reaction). For reference, in a traditional CRN model, reachability is in P for all of our considered void reactions [1, 12], NL-hard for -size reactions [1], PSPACE-complete for -size reactions [11], and Ackermann-complete for general systems [10, 20].
As for organization, we first provide formal descriptions of all CRN models studied in this paper and some additional preliminaries in Section 2. We then study reachability under the Priority iCRN model in Section 3. Here, we prove that reachability with our considered void reactions is mostly in P, but becomes NP-complete for -size reactions. Section 4 looks at reachability for iCRNs. We show that reachability becomes NP-complete for all void reactions except for size , and PSPACE-complete for and -size reactions. We additionally provide FPT algorithms for solving reachability with void reactions of sizes , and . The complete scope of our reachability results is shown in Table 1. Finally, in Section 5, we conclude with a discussion on some open problems for resolving complexity gaps of Table 1 and future potential work concerning CRNs using states as an unconventional yet powerful form of inhibition.
| Reachability under Inhibition | |||||||
|---|---|---|---|---|---|---|---|
| Rule Size | CRN | Ref. | P-iCRN | Ref. | iCRN | Ref. | |
| Deletion-Only Systems | |||||||
| P | - | P | Obs. 7 | P | Obs. 23 | ||
| P | [1] | P | Thm. 15 | NPC | FPT | Thm. 24, 30 | |
| P | [12] | P | Thm. 17 | NPC | FPT | Thm. 31, 33 | |
| P | [12] | P | Thm. 17 | NPC | FPT | Thm. 32, 33 | |
| P | [12] | NPC | Thm. 20 | NPC | Thm. 34 | ||
| General Systems | |||||||
| P, NL-hard | [1] | Open | PSPACE-c | Thm. 35 | |||
| PSPACE-c | [11] | PSPACE-c | Obs. 22 | PSPACE-c | Obs. 37 | ||
| General | Ack-c | [10, 20] | Decidable | [13, 26] | Undecidable | [6, 26] | |
2 Preliminaries
We define the three chemical reaction network models considered in this paper: the basic CRN model (Section 2.1), the Inhibitory CRN model (Section 2.1.1), and the Priority iCRN model (Section 2.2.1).
2.1 Chemical Reaction Networks
A chemical reaction network (CRN) is defined by a finite set of species , and a finite set of reactions where each reaction is a pair , sometimes written , that denotes the reactant species consumed by the reaction and the product species generated by the reaction. For instance, given , the reaction represents ; 2 species are removed, and 1 new and species are created. See Figure 1(a) for an example.
A configuration of a CRN assigns integer counts to every species , and we use notation to denote that count. For a species , we denote the configuration consisting of a single copy of and no other species as . It is often useful to reference the set of species whose counts are not zero in a given configuration. In such cases, the notation is used. Formally, , and when convenient and clear from the context, we further use to denote the configuration (vector) representation in which each element has a single copy. Finally, let denote the total number of copies of all species in a configuration, sometimes referred to as the volume of .
A reaction is said to be applicable in configuration if ; in other words, a reaction is applicable if has at least as many copies of each species as . If the reaction is applicable, it results in configuration if it occurs, and we write , or simply when the model and CRN are clear from context.
A void reaction is any rule that does not create any new copies of any species type, and can only delete or preserve existing species copies. Thus, a void reaction either has no products or has products that are a subset of its reactants (in which case these products are termed catalysts).
Definition 1 (Discrete Chemical Reaction Network).
A discrete chemical reaction network (CRN) is an ordered pair where is an ordered alphabet of species, and is a set of rules over .
Definition 2 (Basic CRN Dynamics).
For a CRN and configurations and , we say that if there exists a rule such that , and .
If there exists a finite sequence of configurations such that , then we say that is reachable from and we write . A configuration is said to be terminal if no reactions are applicable. We also define an initial configuration for a CRN as its starting configuration. A CRN System is then defined as a pair of a CRN model and its initial configuration.
The following sections define extensions of the basic CRN model by way of defining modified dynamics. For each model, assume the concepts of reachability and terminality are derived from the dynamics in the same manner as for the basic CRN model.
2.1.1 Inhibitory CRNs
A reaction is said to be inhibited by a species when the reaction may only be applied if is absent in the system. We define an inhibitor mapping that maps a reaction to a subset of species that inhibit the reaction. An Inhibitory CRN as defined by [6] is then a basic CRN along with the mapping . See Figure 1(b) for an example.
Definition 3 (Inhibitory Dynamics).
For a Inhibitory CRN and configurations and , we say that if there exists a rule such that , , and .
2.2 Vector Addition Systems
A -dimensional Vector Addition System (VAS) is defined by [19] as an initial configuration vector , and a finite set of transitions .
Definition 4 (VAS Dynamics).
For a VAS and configurations and , we say if there exists a transition such that .
The concept of priority on transitions in a Vector Addition System is defined in [13]. Each transition in a -dimensional Priority Vector Addition System (PVAS) is mapped to an integer in . For a system in configuration , a transition with priority is applicable iff and .
The correspondence between Vector Addition Systems and Chemical Reaction Networks is direct, especially in the absence of catalysts. A transition vector in a VAS can be written as a reaction in CRN where
Since PVAS are essentially VAS with prioritized inhibition on transitions, it is natural to compare this model to iCRNs, which have unprioritized inhibition on reactions. While Vector Addition Systems are not capable of catalytic transitions, it is known that a catalytic reaction in a CRN can be replaced by two non-catalytic reactions that use a unique intermediate species. Therefore, Vector Addition Systems are equivalent to Chemical Reaction Networks in general. However, this equivalence may break down under restricted settings such as deletion-only or small-size rules. This observation motivates a reformulation of PVAS as Priority iCRN in order to compare these results to inhibitory CRNs without priority.
2.2.1 Priority iCRN
We define a priority mapping that maps a reaction to an integer in . A Priority iCRN is defined as a basic CRN along with mapping . Because the priority relies on the ordering of species, we make our set of species in a Priority iCRN an ordered set. See Figure 1(c) for an example.
Definition 5 (Priority Inhibitory Dynamics).
For a Priority iCRN and configurations and , we say that if there exists a rule such that , , and .
2.3 Reachability
Definition 6 (Reachability Problem).
Given any CRN System with a species set and a reaction set , an initial configuration and a destination (target) configuration : is reachable from following the dynamics of the model.
We also consider a special variant of reachability referred to as the empty configuration reachability problem. Here, the destination configuration is always the empty configuration , where all species have a count of zero. Thus, the problem can be re-interpreted as asking if there exists a sequence of reactions that can delete all present species in .
3 Priority Inhibitory CRNs
We start our analysis of reachability in inhibitory systems with Priority iCRNs. We first show that the problem does not leave P with size or reactions. However, when considering systems with both and size rules, we show that the problem becomes NP-complete, even with a maximum priority of 1.
Priority iCRNs with Only Void Rules
We state the following observation for completeness.
Observation 7.
Given a Priority with only void rules of size , the reachability problem is solvable in time.
Proof.
Given a Priority iCRN, start configuration and target configuration :
-
1.
For any species , if then remove all reactions such that . Since we only consider void rules, such reactions will never be applicable in any configuration along any path from through .
-
2.
For to , if there exists a reaction of form :
-
(a)
then apply the reaction times.
-
(b)
else, skip to step .
-
(a)
-
3.
If the final configuration is reached, return “yes”, otherwise return “no”.
Void Rules of Size .
We now show that the reachability problem in Priority iCRNs with reactions is also solvable in polynomial time. To do so, we start by showing that the general reachability problem for a given Priority iCRN with void rules can be reduced to the empty reachability problem in the given CRN in Lemmas 8, 9, and 10. We then reduce the empty configuration reachability problem in the Priority iCRN to the known maximum -matching problem, which is solvable in polynomial time [3], in Lemma 12.
Given a void Priority iCRN system such that . We can partition the set of species into set of inhibiting species and set of non-inhibiting species .
Lemma 8.
Given two configurations and in a void Priority iCRN , , if .
Proof.
Given that , . Therefore, all inhibited reactions will be applicable at some point.
Since void rules only delete species, and do not add new counts for species, for all non-inhibiting species with , if is reachable from , then is reachable from .
Lemma 9.
Given two configurations and in a void Priority iCRN , , if .
Proof.
We modify the given Priority iCRN system as follows. We remove all reactions such that , if . This is because such reactions will never be applicable as they will always be inhibited. Due to this modification, the species no longer permanently act as inhibitors. The new reaction set contains the remaining inhibited reactions with priority greater than . We now compute over as . We partition the set again into set of inhibiting species and set of non-inhibiting species . From Lemma 8, in a Priority iCRN .
Lemma 10.
Given two configurations and in a void Priority iCRN , .
Proof.
Definition 11 (-matching).
Given a graph and some edge capacity function , a -value function , and a function that returns the set of incident edges of vertex , find a maximum assignment s.t. for all and for all . We call it a perfect -matching if for all .
The runtime of the maximum -matching problem is strictly polynomial and runs in [3]. We use this runtime to solve the reachability problem for Priority iCRNs with only -size reactions in polynomial time.
Lemma 12.
Given a Priority with only void rules of size , the empty reachability problem is decidable in time.
Proof.
To solve the empty-configuration reachability problem in void Priority iCRN, we reduce it to an instance of the maximum -matching problem.
Given a Priority iCRN with starting configuration , we construct a -matching instance by building a graph as follows. Here we assume that the given Priority iCRN only includes reactions where ; any self-inhibiting reactions that exist ( or is less than the priority) are ignored. We turn every species into a vertex and set the -values for each of the vertices . For each in such that , add an undirected edge in . For any reaction of the form , add vertices to the set and set the b-values . We also add undirected edges in .
From the rules above, we have the graph well defined. We now present the following claims regarding .
Claim 13.
If can reach the empty configuration, then there exists a perfect -matching in the graph .
This is straightforward for the case when applying a reaction of the form such that . The reaction application results in the removal of one copy of species and . This corresponds to an edge matching of on the graph according to the construction above. We reduce the values of and by one, and the pair form a perfect matching. For the case when applying a reaction of form , two copies of are deleted from the configuration. This rule application corresponds to selecting edges and . We reduce the counts of and by one, and that of by two. The remaining -values of vertices and are reduced by selecting edge . And the pairs , , and form a perfect matching.
Claim 14.
If there exists a perfect -matching in the graph , then can reach the empty configuration.
If there exists a perfect -matching for the graph , there exists an assignment such that for all . From the construction of the graph, all edges such that correspond to a reaction in in the Priority iCRN. And, edges of the form correspond to a reaction in . We argue that, given any perfect -matching, we can apply a corresponding set of reactions in a rearranged order based on their priority to reach the empty configuration.
Let contain the set of edges to be a perfect -matching for . We apply reactions in Priority iCRN corresponding to the edges in as follows.
-
1.
Apply all reactions corresponding to edges , times, if , and . All such reactions are uninhibited and can be applied.
-
2.
Apply all reactions corresponding to edges and , times, if and . The vertices and are only connected to each other and to vertex . To achieve perfect b-matching for vertices and , assigned values and must be exactly equal, where . Applying such a reaction will delete copies of species .
-
3.
For all in through :
-
(a)
apply all reactions corresponding to edges , times, if , and .
-
(b)
apply all reactions corresponding to edges and , times, if , and .
-
(a)
Furthermore, the reactions applied in each iteration in Step are guaranteed to be applicable (absence of inhibitors and sufficient count of reactants) because all species count go to zero; no reaction that uses a reactant has a priority ; and each reaction is only applied times. If multiple reactions use a species , the total applications of all those reactions will be exactly . Therefore, rearranging applications of each of those reactions will not affect the availability of reactants in later applications.
Theorem 15.
Given a Priority with only void rules of size , the reachability problem is decidable in time.
Proof.
Given a Priority iCRN with starting configurations and target configuration , create the configuration . From Lemma 12, empty configuration reachability is decidable from in polynomial time. Finally, from Lemma 10, empty configuration reachability in Priority iCRN implies reachability.
Lemma 16.
Given a with only void rules of size , the reachability problem is decidable in time (Complete proof in [12]).
Proof (Sketch).
The dynamic programming algorithm uses a table of boolean entries, where each row represents a different species. Since each catalytic void reaction reduces the count of exactly one species, only one of the reactions need to be applied at most times to reduce the count of a species . Hence, only distinct reactions need to be considered to reach the target configurations, if possible. The total number of rule applications, however, will be polynomial in the volume of the system.
A bottom-up approach is used to determine the ordering of the species in which their count needs to be reduced. This is essential since a species shouldn’t go to zero before it is used as a catalyst in other reactions that need to be applicable. The algorithm starts by filling first column of with for species who have reached their target count. It then progresses column-by-column, applying reactions based on the ordering on species. If the last column has all s, then the configuration is reached.
Theorem 17.
Given a Priority with only void rules of size , the reachability problem is decidable in time.
Proof.
This follows as a modification of the dynamic programming algorithm for general CRNs with only void rules of size from Lemma 16. Let denote the target configuration, with denoting the order assigned to the species. Remove all rules of the form , where . The rest of the system remains the same.
Start with a counter . Construct an table of boolean entries, where each row represents a different species. Reduce the count of each species to , where represents the final count of species , if there exists a rule that can do so. Starting from the first column , place a if the respective species is already in its final count. Then, for each entry , place a if is a , or if there exists a reaction for that reduces to its final count such that 1) or 2) , where all the reactants of have either reached their final counts or will not prevent the reaction from occurring once they do. Any time species has found a reaction to reach a final count , set . If column contains all 1’s, then reachability is possible. Otherwise, it is not.
The algorithm follows the same bottom-up approach as for general CRNs. The main difference is that now there exists a predetermined ordering that species must go to zero for other rules to be applicable. Thus, any species such that is not considered until species has found a suitable reaction and reaches a count of zero. The proof then follows from general CRNs.
Lemma 18 (Rearrangement Lemma for Void (Priority) iCRNs).
For any sequence of applicable void rules in a given iCRN, there exists a sequence that is a permutation of such that all applications of a given rule type occur contiguously.
Proof.
Consider a sequence of applicable void rules for a given (Priority) iCRN that is not contiguous. We construct a contiguous sequence as described in the Rearrangement Lemma in [12]. For the given sequence , suppose rule occurs at positions and such that , and there is at least one non- rule in between and . Construct a sequence by shifting the rule at position up to position , and shifting all rules in between down one position.
This new sequence must be applicable as the only rule that moved to a higher index in the sequence is of type , and we know that is applicable at position since it is applicable at position , and because, in a system with just void rules, species are only deleted and not produced. Therefore, all rules that occur between positions and must not be inhibited by the reactants of (since the reactants of are present until position ); therefore, such rules can be applied before all occurrences of .
Since this swapping preserves the applicability of the sequence while reducing the number of non-contiguous blocks of one rule type in the sequence, we can repeat this process of swapping rule positions until the sequence is contiguous.
Lemma 19.
The reachability problem for (Priority) iCRNs with only void reactions is in NP.
Proof.
Given a sequence of applicable void rules in a given iCRN, we encode this sequence with a sequence of rule types accompanied by a count on the number of applications of each rule type, which must exist by Lemma 18. Although the original sequence is potentially exponential in length, the result of the contiguous sequence can be computed in polynomial time. Therefore, we utilize a contiguous sequence of applicable rules as a certificate for the reachability problem.
Theorem 20.
The reachability problem in Priority iCRN with only and void rules with maximum priority is NP-complete.
Proof.
Due to space constraints, we provide a proof sketch here, while the complete proof can be found in the full version of the paper on arxiv.
From Lemma 19, we have that the reachability problem for Priority iCRNs with purely void rules is in NP. To show hardness, we reduce from Vertex Cover. Given an instance of VC where , we construct a Priority iCRN . We create one copy of for all and one copy of for all . We also add two new species to the system. In the initial configuration, we add copies of a species , used to eliminate vertices, and copies of a species , used to remove the remaining vertices. Denote this configuration the starting configuration . We also order our species set as: .
For all , we create the assignment reaction and the clean-up reaction . For all edges , for all vertices where is incident to , we create the covering reaction . Each of the clean-up and covering reactions have priority .
The target configuration is the empty configuration . A vertex cover of size can only exist in iff all the species copies can be completely deleted.
Lemma 21.
The reachability problem in (Priority) iCRNs with only reactions of size is in PSPACE.
Proof.
Given that the system is volume-preserving, the reachability problem is solvable by a non-deterministic Turing machine using only polynomial space, where the tape of the machine stores a configuration (counts of species). Therefore, the problem is in NPSPACE, and hence in PSPACE [27].
Observation 22.
The reachability problem in Priority iCRNs with only reactions of size is PSPACE-complete.
Proof.
4 Inhibitory CRNs
We now shift our focus to the reachability problem in the iCRN model. Specifically, we prove that reachability of iCRNs with void rules of size , + , and more generally are all NP-complete. Alongside these hardness results, we present FPT algorithms for each of these reachability problems. To conclude, we examine iCRN systems with rules of size and show that the reachability problem is PSPACE-complete.
4.1 iCRNs with Only Void Rules
For completeness, we include the following observation.
Observation 23.
Given an with only void rules of size , the reachability problem is decidable in time.
Proof.
Run any applicable rule in the system, reducing the corresponding species to its final count. If the final configuration is reached, then reachability is possible. Otherwise, if no more rules can be applied, reachability is not possible.
Theorem 24.
The reachability problem in iCRNs with only rules of size is NP-complete.
Proof.
Due to space constraints, we provide a proof sketch here, while the complete proof can be found in full version of the paper on arxiv.
Lemma 19 shows reachability in void iCRNs is in NP. To show hardness, we reduce from the Hamiltonian path problem. Given a HAMPATH instance , we transform it into an instance of reachability with an iCRN . For each vertex , we create the species and . We also add an extra species . For each directed edge , we create the choosing reaction . We also create the starting reaction . Let the initial configuration be a single copy of each species and the target configuration be a single copy of . A Hamiltonian path from to can only exist in iff the system can delete all copies except for . An example reachability instance is illustrated in Figure 2.
We now explore the reachability problem for a void iCRN with a constant number of inhibiting species. We follow the same format as in Priority iCRN section to show that the reachbility problem is polynomial time solvable for a constant number of inhibitors. To do so we show that reachability problem in such an iCRN can be reduced to the empty reachability problem in Lemmas 25, 26, and 27. Finally, we reduce the empty reachability problem in the given iCRN to the empty reachability problem in Priority iCRN with reactions.
Given a void iCRN , where the set of species is partitioned into the set of inhibiting species and the set of remaining species . We use to denote an empty configuration where all species have a count of zero.
Lemma 25.
Given two configurations and in a (2,0) void iCRN , , if .
Proof.
Follows from Lemma 8 because the proof does not rely on any ordering of inhibitors.
Lemma 26.
Given two configurations and in a (2,0) void iCRN , , if .
Proof.
The proof is similar to that of Lemma 9. Here we remove any reactions inhibited by species . Now is no longer an inhibitor. The remaining set of reactions is . From Lemma 25, in a iCRN .
Lemma 27.
Given two configurations and in a (2,0) void iCRN , .
Proof.
Lemma 28.
Given any iCRN system and an ordering on inhibitors, we can construct a Priority iCRN system that contains the same inhibitors in the given ordering. This construction takes where and are the set of species and reactions in the given iCRN.
Proof (Sketch).
We construct an ordered species set containing all species from the given iCRN. The species are arranged such that all the inhibitors (in order) appear first in the set. The configuration and reactions are also rearranged to match the ordering of species in . For each reaction, the priority is set to be the maximum index of all inhibitors. Finally, we remove any reactions that are self-inhibiting, i.e., the priority of the reaction is greater or equal to the index of at least one of the reactants. The complete proof can be found in full version of the paper on arxiv.
Lemma 29.
Given an with only void rules of size , the empty configuration reachability problem is decidable in time where is the number of inhibitors and .
Proof.
Given an iCRN with void rules and some start configuration . Given that the iCRN has at most inhibitors, there exist at most different orderings in which the inhibitors are removed.
To solve the empty configuration reachability problem in iCRN, we reduce it to instances of the empty configuration reachability problem in Priority iCRN. From Lemma 12 we know that this problem is solvable in . For each ordering where is some species that acts as an inhibitor, we construct a Priority iCRN as described in Lemma 28. We now show that the empty configuration is reachable in the given iCRN iff the empty configuration is reachable in at least one of the Priority iCRNs.
Claim 1.
If the empty configuration is reachable in iCRN, then it is also reachable in at least one of the constructed Priority iCRNs.
This is true simply by construction of the Priority iCRNs. If the iCRN reaches the empty configuration, then all species, including inhibitor species, go to zero. Therefore, there must exist an ordering in which these inhibitors are deleted. Since we consider every possible ordering, at least one of the Priority iCRNs orderings will reach the empty configuration.
Claim 2.
If the empty configuration is reachable in at least one of the constructed Priority iCRNs, then the iCRN reaches the empty configuration.
Let the ordering corresponding to the Priority iCRN for which the empty configuration is reachable be . Modify the reaction set of the given iCRN by removing all reactions of the form or if they are inhibited by species since is deleted before . For the remaining reactions, apply the reactions in the same order in which their corresponding reactions in are applied. If none of the Priority iCRNs reach the empty configuration, then the given iCRN will also not reach the empty configuration.
Theorem 30.
Given an with only void rules of size , the reachability problem is decidable in time where is the number of inhibitors and .
Proof.
Theorem 31.
The reachability problem in (2,1) void iCRN is NP-complete.
Proof.
Due to space constraints, we provide a proof sketch here, while the complete proof can be found in full version of the paper on arxiv.
From Lemma 19, we have that the reachability problem in void iCRNs is in NP. To show hardness, we reduce from the 3-satisfiability problem. Given an instance of 3SAT , we create a new iCRN . For each variable , we create the species and . Additionally, for each clause , we create the species . Finally, we create the species . For each variable , we also create the assignment reactions and . For each clause and a variable of , we create the clause reaction if assigning true to satisfies , or if the false assignment satisfies instead. Finally, for each variable, we create the clean-up reaction and . The initial configuration is a single copy of each species and the target configuration is a single copy of . can only be satisfied iff the system can delete all copies except for . An example reachability instance is illustrated in Figure 3.
Theorem 32.
The reachability problem in void iCRN is NP-complete.
Proof.
Follows from Theorem 31. Given an iCRN , we modify it by adding a species and modifying each reaction to include copies of for both reactants and products (i.e., for ). We include copies of for and . Since acts as a catalyst species for all reactions, its count will never change, and it does not affect the behavior of . Thus, the forward and reverse directions from Lemma 31 follow here.
Theorem 33.
Given an with only void rules of size , the reachability problem is decidable in time, where is the number of inhibitors.
Proof.
This follows by using the algorithm for Priority iCRN void systems with size rules from Theorem 17 as a subroutine. Denote this algorithm . Consider an arbitrary ordering of the inhibitors . Run algorithm with this ordering. If a solution is found, then reachability is possible. Otherwise, consider another ordering until all are considered. The algorithm then runs in time.
We show that reachability is NP-complete with and reactions, even if only one species is used to inhibit reactions.
Theorem 34.
The reachability problem in (2,0) and (2,1) void iCRNs is NP-complete, even with a single inhibitor species.
Proof.
From Lemma 19, we have that the reachability for iCRNs with purely void rules is in NP. We now show hardness with a similar reduction as in Theorem 20. We construct our iCRN in a similar manner, where our species set is now unordered. Here, the species set . Our reaction set contains assignment reactions , clean-up reactions , and covering reactions . The initial and target configurations remain the same.
4.2 iCRNs with General rules
Theorem 35.
The reachability problem in iCRNs with rules is PSPACE-complete.
Proof.
PSPACE membership follows from Lemma 21. We now show hardness. Given a Turing machine with bounded tape length , we create an iCRN . The set consists of the helper species , , and , the tape symbols for each tape cell , and the following sets of species: , and . Table 2 shows the reactions created.
The initial configuration of the system consists of one instance of or for each tape cell , according to the initial tape of . Given the start state , we also add a single copy of . If the tape head starts at cell , we include one instance of each species for all , i.e., . Finally, we include one copy each of the helper species and . The target configuration is volume copies of .
| No. | Notation | Reaction | Intuition |
| 1.1 | Read the tape can | ||
| 1.2 | combine with state, | ||
| 1.3 | unless state is halt. | ||
| 2 | Prepare to change | ||
| into the appropriate | |||
| according to . | |||
| 3.1 | Mark read as done by | ||
| 3.2 | producing . | ||
| 4 | Finish changing state | ||
| after producing . | |||
| 5 | Move+write based on | ||
| state and value read . | |||
| 6 | Once moved, replace . | ||
| 7.1 | If halts, delete , | ||
| 7.2 | and go to term config. |
Forward Direction.
Assume we are given a Turing Machine that will reach a halt state by applying a series of transitions from , each according to the tape value at head and the state. The corresponding iCRN will likewise reach target configuration by applying a series of reactions representing those transitions, according to the current configuration . When a single is present in , maps to the Turing Machine. indicates is in state . The Tape head is at tape cell where is absent. The data for tape celli is saved in the presence of a copy of , or one of . All reactions shown in Table 2 except 1.3, 7.1 and 7.2 handle normal transitions, updating the given configuration to map to the result of the next transition. In this order, the reactions: (1) read the tape, (2) determine the next state, (3) mark the tape head ready to move, (4) change the state, (5) write and move the tape head, and (6) indicate ready for next transition. If the current state is a halt state, reaction 1.3 is applied, than (7) is repeatedly applied until we reach a terminal configuration. The final terminal configuration will only be if the TM’s tape and state input deterministically transitions to according to .
Reverse Direction.
To reach the target configuration of iCRN which was designed to simulate bounded length TM , reaction 7.2 must run times. This can only happen if was present, preventing reactions 1.1 and 1.2, and not being , which would also prevent the reactions, but could not be removed by 7.2. For to be present, it either was in , or was produced by a type 4 reaction. To have produced by a type 4 reaction, the most recent type 2 reaction must have produced . For any reaction of type 2 to be applicable, D cannot be present, so before this reaction could occur, a reaction of type 1.1 or 1.2 must have been run. It produced a copy of where represents the state the system was in before , and is the symbol at our tape head. prevents all type 2 reactions except , so we could only have reached if = . For our configuration to have included a or and which would lead to , they either must have been in , or were produced by repetitions of the same process. This process also includes one reaction of type 3 and one of type 5, which together update the tape. Thus we could only have reached the target configuration if the initial tape values and State deterministically Halt in an accept state.
Theorem 36.
The reachability problem in iCRN with rules and at most 1 inhibitor per rule is NP-Hard.
Proof.
We show this by a reduction from 3SAT. Consider a 3SAT instance of variables and clauses , and assume no clause contains both and . From this instance, we create the following iCRN system and start and end configurations for the Reachability problem.
For each variable , we create the species , , , and . For each clause , we create the species ,,, ,,, and . Additionally, for each variable, we create the reactions , , (no inhibitor for ), and (no inhibitor for ). For each clause, we create the reactions , either if satisfies the literal of clause or if satisfies the literal of clause , and . Finally, let the initial configuration be one copy for each of , , and , , , and the target configuration be one copy for each of , , , and copies of .
Forward Direction.
Suppose the 3SAT formula is satisfiable. We can then reach the destination configuration by first transitioning each species into the appropriate true/false species / that matches the satisfying assignment for the 3SAT formula. Next, convert exactly one of the three species from each clause into (based on which literal was satisfied by the satisfying variable assignment), and the remaining two into copies of species . Finally, convert each into the opposite truth value taken on by (to ensure there is exactly one and for each ).
Reverse Direction.
Suppose we can reach the destination configuration, which specifically requires creating each species . Each can only be created by the absence of some where the clause contains literal , or the absence of a where the clause contains . Since the to transformation must precede the creation of , we know that each must be converted to a or before the ’s can be created. Therefore, the only possible way to create each is for each to select a truth assignment that corresponds to a satisfying assignment of the given 3SAT formula.
Observation 37.
The reachability problem for iCRNs with rule size is PSPACE-complete.
Proof.
The proof is analogous to the proof of Observation 22.
5 Conclusion
This paper provides a thorough treatment of reachability in restricted CRNs with inhibition. Our results (Table 1) show a clear boundary between tractable / intractable cases under prioritized and unprioritized inhibition. For Priority iCRNs, reachability remains solvable in polynomial time for most unimolecular, bimolecular, and mostly catalytic void rules, but becomes NP-complete with combined and void rules. For general iCRNs, nearly all cases become NP-complete (except ), and we give FPT algorithms for the , , and cases. For volume-preserving reactions, reachability – polynomial-time solvable for basic CRNs – drastically increases to PSPACE-complete for general iCRNs.
While many of our complexity classifications are tight, several gaps remain in Table 1. For inhibitory systems with and void rules, we establish NP-completeness with even one inhibitor, but it remains open whether alternative parameters (e.g., the number of inhibited rules) yield FPT algorithms or whether the problem is instead W[1]-hard. It may be possible to improve our existing FPT algorithms with some pruning method that avoids exhaustively trying all inhibitor permutations. Another key question is the complexity of Priority iCRNs: the problem is in P for basic CRNs and PSPACE-complete for general inhibition, but it is unclear where prioritized inhibition falls. Lastly, we consider CRNs with States, analogous to VASS, where reactions are conditioned on a global state; this model can be viewed as a form of inhibition and motivates studying its reachability complexity. In the full version of this paper, we formalize CRNs with States and provide preliminary results that show reachability is NP-hard for rules and PSPACE-complete for rules.
References
- [1] Robert M. Alaniz, Bin Fu, Timothy Gomez, Elise Grizzell, Andrew Rodriguez, Marco Rodriguez, Robert Schweller, and Tim Wylie. Reachability in restricted chemical reaction networks. Theoretical Computer Science, 1056:115514, 2025. doi:10.1016/j.tcs.2025.115514.
- [2] Rachel Anderson, Alberto Avila, Bin Fu, Timothy Gomez, Elise Grizzell, Aiden Massie, Gourab Mukhopadhyay, Adrian Salinas, Robert Schweller, Evan Tomai, and Tim Wylie. Computing threshold circuits with void reactions in step chemical reaction networks. In 10th conference on Machines, Computations and Universality (MCU 2024), 2024.
- [3] Richard P. Anstee. A polynomial algorithm for b-matchings: An alternative approach. Information Processing Letters, 24(3):153–157, 1987. doi:10.1016/0020-0190(87)90178-5.
- [4] Rutherford Aris. Prolegomena to the rational analysis of systems of chemical reactions. Archive for Rational Mechanics and Analysis, 19(2):81–99, January 1965. doi:10.1007/BF00282276.
- [5] Rutherford Aris. Prolegomena to the rational analysis of systems of chemical reactions ii. some addenda. Archive for Rational Mechanics and Analysis, 27(5):356–364, January 1968. doi:10.1007/BF00251438.
- [6] Kim Calabrese and David Doty. Rate-independent continuous inhibitory chemical reaction networks are turing-universal. In International Conference on Unconventional Computation and Natural Computation, pages 104–118. Springer, 2024. doi:10.1007/978-3-031-63742-1_8.
- [7] Luca Cardelli, Marta Kwiatkowska, and Max Whitby. Chemical reaction network designs for asynchronous logic circuits. Natural computing, 17:109–130, 2018. doi:10.1007/S11047-017-9665-7.
- [8] Ho-Lin Chen, David Doty, and David Soloveichik. Deterministic function computation with chemical reaction networks. Natural computing, 13:517–534, 2014. doi:10.1007/S11047-013-9393-6.
- [9] Matthew Cook, David Soloveichik, Erik Winfree, and Jehoshua Bruck. Programmability of chemical reaction networks. In Algorithmic bioprocesses, pages 543–584. Springer, 2009. doi:10.1007/978-3-540-88869-7_27.
- [10] Wojciech Czerwiński and Łukasz Orlikowski. Reachability in vector addition systems is ackermann-complete. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 1229–1240. IEEE, 2022.
- [11] Javier Esparza, Mikhail Raskin, and Chana Weil-Kennedy. Parameterized analysis of immediate observation petri nets. In Susanna Donatelli and Stefan Haar, editors, Application and Theory of Petri Nets and Concurrency, pages 365–385, Cham, 2019. Springer International Publishing. doi:10.1007/978-3-030-21571-2_20.
- [12] Bin Fu, Timothy Gomez, Ryan Knobel, Austin Luchsinger, Aiden Massie, Marco Rodriguez, Adrian Salinas, Robert Schweller, and Tim Wylie. Reachability in deletion-only chemical reaction networks. In Proc. of the International Conference on DNA Computing and Molecular Programming, DNA, 2025.
- [13] Roland Guttenberg. Flattability of priority vector addition systems. arXiv preprint arXiv:2402.09185, 2024. doi:10.48550/arXiv.2402.09185.
- [14] Michel Henri Théodore Hack. Decidability questions for Petri Nets. PhD thesis, Massachusetts Institute of Technology, 1976.
- [15] Michel Henri Theódore Hack. Petri net language. Technical report, Massachusetts Institute of Technology, 1976.
- [16] Allen Hjelmfelt, Edward D Weinberger, and John Ross. Chemical implementation of neural networks and turing machines. Proc. of the National Academy of Sciences, 88(24):10983–10987, 1991.
- [17] Hua Jiang, Marc D Riedel, and Keshab K Parhi. Digital logic with molecular reactions. In 2013 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), pages 721–727. IEEE, 2013. doi:10.1109/ICCAD.2013.6691194.
- [18] Richard M Karp and Raymond E Miller. Parallel program schemata: A mathematical model for parallel computation. In 8th Annual Symposium on Switching and Automata Theory (SWAT 1967), pages 55–61. IEEE, 1967. doi:10.1109/FOCS.1967.27.
- [19] Richard M Karp and Raymond E Miller. Parallel program schemata. Journal of Computer and system Sciences, 3(2):147–195, 1969. doi:10.1016/S0022-0000(69)80011-5.
- [20] Jérôme Leroux. The reachability problem for Petri nets is not primitive recursive. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 1241–1252. IEEE, 2022.
- [21] Richard Lipton. The reachability problem requires exponential space. Research Report 62. Department of Computer Science, Yale University, 1976.
- [22] Ernst W Mayr. An algorithm for the general petri net reachability problem. In Proceedings of the thirteenth annual ACM symposium on Theory of computing, pages 238–246, 1981. doi:10.1145/800076.802477.
- [23] Rajiv Teja Nagipogu and John H. Reif. Neural crns: A natural implementation of learning in chemical reaction networks. ACS Synthetic Biology, 14(10):3899–3912, 2025. doi:10.1021/acssynbio.5c00099.
- [24] James Lyle Peterson. Petri net theory and the modeling of systems, 1981.
- [25] Carl Adam Petri. Communication with automata. PhD thesis, Technische Universitat Darmstadt, 1966.
- [26] Klaus Reinhardt. Reachability in petri nets with inhibitor arcs. Electronic Notes in Theoretical Computer Science, 223:239–264, 2008. Proceedings of the Second Workshop on Reachability Problems in Computational Models (RP 2008). doi:10.1016/j.entcs.2008.12.042.
- [27] Walter J. Savitch. Relationships between nondeterministic and deterministic tape complexities. Journal of Computer and System Sciences, 4(2):177–192, 1970. doi:10.1016/S0022-0000(70)80006-X.
- [28] David Soloveichik, Georg Seelig, and Erik Winfree. Dna as a universal substrate for chemical kinetics. Proc. of the National Academy of Sciences, 107(12):5393–5398, 2010.
- [29] Boya Wang, Chris Thachuk, Andrew D Ellington, Erik Winfree, and David Soloveichik. Effective design principles for leakless strand displacement systems. Proceedings of the National Academy of Sciences, 115(52):E12182–E12191, 2018.