arXiv:2610.03021cs.NEOct 2026

Manuscript Offprint

arXiv:2610.03021

Small universal multiset reaction systems

Andrei Paun, Annemarie-Beatrix Messner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Annemarie-Beatrix Messner 1^{1} and Andrei Păun 1,2,3^{1,2,3}

1^{1} Faculty of Mathematics and Computer Science, University of Bucharest, Bucharest, Romania

annemarie-beatrix.messner@s.unibuc.ro, apaun@fmi.unibuc.ro

2^{2} National Institute of Research and Development for Biological Sciences, 296 Independentei Bd. District 6, 060031, Bucharest. Romania andrei.paun@incdsb.ro

3^{3} Research Institute for Artificial Intelligence (ICIA), Romanian Academy, Bucharest, Romania.

apaun@racai.ro

Abstract. This paper presents a construction of a small universal machine within the framework of Multi-set Reaction Systems. We encode the machine state using elements that represent registers and instruction labels, and we enforce sequential execution by ensuring that reaction chains for a given instruction can only activate after the corresponding label element appears. We implement a universal register machine with 8 registers and 23 instructions, showing that the priority-based model requires 87 distinct elements. The results demonstrate that multiset reaction systems are capable of simulating universal computation.

Keywords: Reaction · Reaction system · Interactive process · multiset reaction system · P systems

1 Introduction

Reaction Systems (RS), introduced by Andrzej Ehrenfeucht and Grzegorz Rozenberg [1, 2], provide a qualitative framework for modeling biochemical and regulatory processes based on the fundamental mechanisms of facilitation and inhibition. In this formalism, the state of the system is represented as a set of entities, and reactions are enabled solely by the presence or absence of these entities. While this abstraction successfully captures the logical structure of regulatory interactions, it deliberately neglects quantitative aspects such as molecular concentrations, multiplicities, and reaction rates. In living cells, molecular species are typically present in multiple copies, and their abundance plays a decisive role in determining whether reactions occur and at what rate. The assumption that an entity is either present or absent ignores the influence of concentration.

∗^{*} This study was partially supported by Core Program within the National Research, Development and Innovation Plan 2022-2027, carried out with the support of ANC, project no. 23020101(SIA-PRO), contract no 7N/2022

A. Messner and A. Păun

on system dynamics and prevents the description of many important biological phenomena, including threshold effects, competition for limited resources, and stochastic fluctuations arising from finite molecular populations.

Introducing multisets into the framework naturally overcomes this limitation. A multiset associates each entity with a multiplicity, allowing the state of the system to represent molecular counts rather than mere existence. Reactions can then consume and produce specified numbers of molecules, providing a more faithful representation of biochemical transformations while preserving the structural simplicity of the reaction-system paradigm. This extension bridges the gap between purely qualitative models and quantitative models based on molecular populations.

A further step toward realism consists in enriching reactions with kinetic information. Classical Reaction Systems treat all enabled reactions as occurring simultaneously and without regard to their relative speeds. In contrast, chemical and biochemical reactions proceed at rates determined by intrinsic kinetic constants and by the concentrations of the reacting species. Associating a kinetic parameter with each reaction allows the evolution of the system to reflect not only the logical conditions for reaction occurrence but also the temporal scale on which reactions take place.

This quantitative extension naturally connects the framework to the law of mass action, one of the cornerstones of chemical kinetics. According to the law of mass action, the rate of an elementary reaction is proportional to the product of the concentrations (or molecular counts in a discrete setting) of its reactants, each raised to the power of its stoichiometric coefficient. By combining multisets with reaction kinetics, the enabling of reactions remains governed by the presence of reactants and the absence of inhibitors, as in the original Reaction Systems framework, while the frequency or probability of reaction execution becomes proportional to the corresponding mass-action rate. Consequently, the resulting formalism preserves the regulatory semantics that characterize Reaction Systems while incorporating the quantitative behavior that governs real biochemical processes.

This enriched framework therefore provides a natural bridge between qualitative regulatory models and quantitative kinetic models. It retains the conceptual elegance and compositional nature of Reaction Systems while extending their expressive power to describe concentration-dependent dynamics, stoichiometric constraints, and time-dependent behavior. Such an approach enables the study of biological systems at a level of abstraction that remains mathematically tractable yet is substantially closer to the mechanisms underlying real chemical and biochemical reactions.

We provide in the following a step in this direction by considering the multiset RS and changing the behaviour of the system in the sense that the reaction with most reactants will fire next in a sequential manner.

Multiset reaction systems, formally defined in [3], introduce the use of multisets instead of sets to represent the reactants, inhibitors and products of a reaction. This allows the model to be quantitative, as it can now take into ac-count the quantity of a resource. The permanency principle is modified to allow substances that are not consumed to persist to the next state. This results in a model that is inherently nondeterministic as the reactions will have to compete for the available resources in a state. To model a specific multiset reaction system, we need to define the background set of elements and the set of possible reactions.

Small universal register machines were described in [4] and have been used as a standard model of computation to show the Turing completeness of various computational models in the membrane systems area, such as spiking neural P systems [5] and [6] or other connected research topics such as [7], [8], [9]. In the following we will use similar ideas from the aforementioned papers to the area of reaction systems. In this paper we will show the implementation of a small universal register machine with 23 instructions using multiset reactions systems using max-spiking manner. This involves the modelling of the ADD, SUB and HALT instructions using reactions, as well as encoding the instruction labels and registers as elements in the background set. We prove that this approach is universal and give an upper bound for the number of components of the system.