arXiv:2608.24240cs.FLAug 2026

Manuscript Offprint

arXiv:2608.24240

Inductive Inference of Cellular Automata

Martin Kutrib, Ian McQuillan, Priscilla Raucci, Matthias Wendlandt

Martin Kutrib

Institut für Informatik, Universität Giessen

Arndtstr. 2, 35392 Giessen, Germany

kutrib@uni-giessen.de

Priscilla Raucci

Institut für Informatik, Universität Giessen

Arndtstr. 2, 35392 Giessen, Germany

priscilla.raucci@uni-giessen.de

Ian McQuillan

Department of Computer Science, University of Saskatchewan

110 Science Place, Saskatoon, SK S7N 5C9, Canada

mcquillan@cs.usask.ca

Matthias Wendlandt

Institut für Informatik, Universität Giessen

Arndtstr. 2, 35392 Giessen, Germany

matthias.wendlandt@uni-giessen.de

Inductive inference of one- and two-way cellular automata (CA) is considered. This involves inferring a CA that is compatible with a finite amount of available data. In this paper, this information is provided in the form of a finite set of intervals, where each interval consists of two words w and w′w' over a state set alphabet, with a positive integer i. The goal is to infer a CA which is compatible with each interval (w,w′,i)(w, w', i), meaning that it can derive w′w' from w in i steps.

We consider three variations of this problem, 1) where the CA is completely known a priori, and the goal is therefore to verify compatibility, 2) where the CA is partially known a priori and the goal is to extend it to a full CA that is compatible, and 3) where the CA is completely unknown, and the goal is to fully construct one that is compatible if one exists. With all three variations, inference can be completed in polynomial time, and is in fact P-complete.

1 Introduction

In the past, the majority of research in automata and formal language theory has been studied in a bottom-up fashion, where researchers would build and study automata or grammars to accomplish desired tasks. Grammatical inference, or inductive inference, involves a more top-down approach, where the task is unknown but a finite amount of data is provided as input, and the goal is to learn or infer a grammar or automaton model, that is somehow compatible with the input.

Inductive inference has been studied especially for regular and context-free languages [7]. For other more complex families of languages, less work has been done. Lindenmayer systems (L-systems) are grammatical systems where all letters of a sentential form are rewritten in parallel somewhat similarly to cellular automata. Inductive inference of L-systems was studied for certain problems from the perspective of decidability already in the 1970's by Herman and Rozenberg [6]. Computational complexity has recently been studied for the problems of taking a sequence of strings as input, and to infer an L-system that initially generates the input sequence at the beginning of its developmental sequence. This problem is NP-complete already for deterministic context-free L-systems [3], but is in P for deterministic context-sensitive L-systems if alphabets and context sizes are fixed [12].

Here, we study inductive inference of one-dimensional two-way cellular automata (CA), and one-dimensional one-way cellular automata (OCA). Since the forties of the last century, cellular automata have been studied and investigated from many different perspectives. In particular, there are numerous results concerning their theoretical properties. Surveys on such aspects and detailed references are given

∗^{*}Supported, in part, by Natural Sciences and Engineering Research Council of Canada Grant 2022-05092 (Ian McQuillan).

M. Hospodár et al. (Eds.): 17th International Conference on Automata and Formal Languages (AFL 2026) EPTCS 451, 2026, pp. 230–244, doi:10.4204/EPTCS.451.16

© M. Kutrib, I. McQuillan, P. Raucci, M. Wendlandt in [1, 8, 14]. In particular, we refer to surveys concerning computational aspects [9], formal language aspects [10], and the descriptional complexity of cellular automata [11].

A cellular automaton is a linear array of identical deterministic finite automata, called cells. The total number of cells in the array is determined by the input data. All cells fetch their input symbol during a pre-initial step. Both CA and OCA are deterministic machines that employ a local and parallel state change function. Each cell except the two outermost ones of a CA is connected to both its nearest neighbors, thus, employing a two-way communication. Each cell of an OCA is connected to its nearest neighbor to the right. So, OCA employ a one-way communication from right to left.

In contrast to the aforementioned study with L-systems, we study inductive inference where the data includes a finite set of intervals. Each interval consists of a triple (w,w′,i)(w, w', i) where ww and w′w' are strings over some alphabet, and ii is a positive integer called the distance. A CA MM is compatible with such an interval if ww and w′w' are sequences of states of the CA, and MM can derive w′w' from ww in exactly ii steps. The goal is to output a CA that is compatible with every input interval, if one exists. Hence, we do not necessarily have consecutive strings derived, and they can have arbitrary distances between pairs of strings. This is a more general problem than the one considered with L-systems in [3, 12], as we can easily turn a sequence of initial words into a finite set of intervals where all distances are exactly one.

In this paper, we study variations of the problem. First, we consider a version where it is simply verifying correctness, and so there is a finite interval set and a CA M as input, and the goal is to determine if M is compatible with the set (Interval Verification Problem). We show this is in P (polynomial time), and is P-complete. Further, it is in L (logarithmic space) if all distances are fixed. A related problem studied in the literature is the prediction problem; that is, given a transition function of a cellular automaton, an initial configuration, a cell i, a state q, and a positive integer t in unary, is cell i in state q at time t? Neary and Woods showed the P-completeness of the problem [13]. Remarkably, they showed the result for a fixed transition function (called rule 110) of a two-way cellular automaton having only two states. This is the strongest result with respect to the prediction problem obtained. This prediction problem is related but different from the verification problem. The first difference is that the prediction problem is for cellular automata on unbounded configurations. Though, the time bound t and cell index i imply a finite range of the configuration, the boundary state and its impact are missing. So, for a verification problem with large t and small initial configuration, the space may be too small for a simulation. Another problem arises since the prediction problem concerns one cell i only. An ad-hoc application of the prediction problem for the solution of the verification problem would require exponentially many state intervals to verify each bit. A further difference is that here we also want to solve the problem for one-way cellular automata. Apart from that, the approaches are similar. The membership in P, for example, is shown by simulating the cellular automaton by a Turing machine more or less directly.

The next problem we consider is the inductive inference problem, where the input is only the interval set, and the goal is to determine if there is a CA M compatible with the set, and if so, to construct one. Similarly, we show here that this problem is in P, and is P-complete. Finally, we consider the problem where potentially a subset of transitions of a CA is provided as input along with an interval set, and the goal is to extend the transitions into a full CA that is compatible with the set if it exists. We again show that this problem is in P, and is P-complete.

References (13)