Manuscript Offprint
arXiv:2610.26206PSPACE-Completeness of the Reachability Relation of Robust Dynamical Systems
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Dynamical systems are a widely used model of computation and an intuitive representation of many natural phenomena in many applied fields. The last decades have seen an impressive use of computers in studying and analysing them, with several visible theoretical breakthroughs. The question of reachability for dynamical systems is central: given two points, is there a trajectory between them in the dynamical system? Reachability, in particular over the reals, is undecidable in the general case: it is only computably enumerable, even under reasonable hypotheses, e.g. for a computable dynamics in general. But it is known to become decidable, and even lies in PSPACE, under suitably quantified robustness assumptions.
In this paper, we focus on PSPACE-completeness results over the reals, in the sense of computable analysis, regarding discrete-time and continuous-time robust dynamical systems. We prove that, under some additional and rather reasonable hypotheses, the reachability relation becomes even PSPACE-complete for both classical and second-order complexity second-order complexity, for an adapted notion of reduction. As a side-effect, we also prove an improvement of an algebraic Ordinary Differential Equations-based characterisation of PSPACE, removing one of the base functions of the algebra.
By doing so, we link results from dynamical systems and complexity over the reals, including the models of computable analysis and second-order complexity.
NB: This is an updated version (update: September 2026). The first version was made available on my personal webpage in January 2026. The free version Grammarly was used as a grammatical checker in the introduction. The writing, the statements and their proofs are my own, and checked by me.
Acknowledgments: I thank Olivier Bournez for rereading this paper and pointing out the typos and imprecisions.
Manon BLANC
1 Introduction
Dynamical systems are a model of computation widely used in many areas of fundamental and applied science. Their interactions with computations over the reals have various motivations (generalised shifts [39], low-dimensional dynamical systems [38], control theory [9], analogue computing [17]). Given a fixed dynamical system, a common computational problem is reachability (Reach): deciding whether there is a path in the dynamical system reaching some given point y starting from a given x. This decision problem is well-known to be computably enumerable (c.e.), but not decidable in the general case, even when the underlying dynamics is computable. It can be proven by embedding a Turing machine into a dynamical system; the machine stops if and only if the reachability relation holds.
However, with a proper notion of robustness, as defined in Definition 3, Reach becomes decidable. Intuitively, this involved definition can be understood as insensitivity to an arbitrarily small perturbation. Instead of sending one point to one solution point, the perturbed dynamic function sends one point to an open set, in the topological sense. A system is robust if and only if each of those open sets intersects the (non-perturbed) solution point. For example, in game theory or in verification, even if Reach is not decidable in the general case, we can still certify that a subclass of dynamical systems can reach or not reach some subset of states. The authors of [1] and [25] apply this concept mainly to decidability questions. Considering dynamical systems stable under an infinitesimal perturbation is an old idea, rediscovered several times under different names. Among them, we mention the concept of “chain reachability” ([22], [21]). In verification, the concept of infinitesimally perturbed dynamics has been explored to provide alternative semantics for certain models of computation; e.g. [41] for timed automata. The authors of [5] proved it is also possible to deal with complexity questions, and not only computability. With the proper quantification over the allowed perturbation, namely the radius of the open sets a polynomial and related to some notion of size), they prove that Reach is in PSPACE. This paper studies similar premises to those of [5] where they mainly use the computable analysis’ model to define computability and complexity theory over the reals, since they handle general dynamical systems described by Ordinary Differential Equations (ODEs).
The main results of this paper are PSPACE-completeness over the reals results. But many different models of computation exist for real numbers, and the proper definitions of complexity classes vary, depending on the model. For discrete-time models of computations over the reals, the most famous approaches are computable analysis, based on Turing machines (TMs) ([46], [49]) and algebraic models such as the Blum Shub Smale (BSS) model ([11], [10]). For the latter model, an extensive list of decision problems -complete has been recently given: see [42]. It includes problems coming from evolutionary game theory, such as properties of Nash equilibria, which are also usually described by dynamical systems. Other completeness results regarding the reachability of some equilibria higher in the complexity hierarchy exist: see, for example, [23] and [8]. Both models were tailored for very different applications, and we cannot unify existing models with the equivalent of a Church-Turing thesis. For example, computable functions in a computable analysis model are necessarily continuous (see e.g. [49]), while the BSS model intends to consider functions and problems over the polynomials that are not necessarily continuous. It is also explained by the fact that some models have not been introduced with the idea of corresponding to actual physical machines, but also to discuss abstract complexity (lower and upper bounds) for the associated problems. Using TMs, in a discrete-time framework, the authors of [4] prove it is possible to have algebraic characterisations of PSPACE, relying on discrete Ordinary Differential Equations (ODEs) (also called finite difference ODEs). For continuous-time models, one of the first machines was the Differential Analysers [48], mathematically formalised by the General Purpose Analog Computer (GPAC) ([43]). There are also various recent approaches and models from deep learning, such as Neural ODEs [20, 36]. Each model corresponds to a particular class of ODEs. E.g., the GPAC corresponds to polynomial ODEs [27] and Neural ODEs are made by selecting the best
Manon BLANC
solution among a parameterised class of ODEs (e.g. [36]). With TMs, the authors of [6] prove it is possible to have algebraic characterisations of PSPACE, relying on continuous ODEs. In [32], the authors have PSPACE-completeness results by restricting themselves to compact domains.
Our contributions In the general case, both in computable analysis and in second-order complexity over the reals, the problem of reachability is not decidable. We consider these frameworks so we can describe what polynomial space means more precisely in models of computation closer to the analogue world.
-
We prove, in Section 3, the PSPACE-hardness of Reach in a robust dynamical system of a rational domain (included in ) (Definition 3) (“Reach Robust ” in Proposition 19 and Corollary 25). The usual notion of reduction is used here. The PSPACE-membership is proved in [5, 7]. Thus, it is PSPACE-complete: we prove the necessary complexity lower-bound.
-
We show that, with robust oracle TMs (Definition 6), and second-order reductions over real functions (Definition 10), we have the -hardness (see Definition 11) of Reach, for both discrete-time (“DRRL” in Lemma 30 and Corollary 32) and continuous-time dynamics (“CRRL” in Theorem 42 and Corollary 43). With the membership results of [5, 7], it implies that both problems are -complete. Up to our knowledge, such questions within the frameworks of [32], [4] and [6], were open. To sum-up the two previous items, we prove:
| Usual reduction | Second-order reduction | ||
|---|---|---|---|
| Reach Robust | DRRL | CRRL | |
| -Completeness | PSPACE (Cor. 25) | (Cor. 32) | (Cor. 43) |
All these results are presented here on or but are valid on and , for : vectors can be projected on each of their coordinates.
- As a side-effect, we prove that we can remove the cosine as a base function from the algebra of [6], which gives a characterisation of FPSPACE over the reals (Theorem 41) with an algebra with a smaller basis. Thus, we are converging toward a minimal algebra for characterising polynomial space with ODEs.
Organisation of the paper In Section 2, we introduce several tools and existing results that we rely on later. First, it includes some notion of dynamical systems and their computability properties, and the notion of robustness we consider here. Then we introduce second-order complexity and previous results regarding complexity classes over the reals and hardness results. Then, in Section 3, we prove that the reachability relation is PSPACE-complete, considering the framework of [4], with the usual reduction between decision problems for this. In Section 4, we prove our main results about -completeness of the reachability relation for robust discrete- and continuous-time dynamical systems, with a stronger notion of reduction, dealing with functions over the reals in second-order complexity ([32]). We also prove that the base of the algebra of [6] characterising FPSPACE can be minimised.
Notation. For , means , for the sup-norm. For two sets, some function, means . We define an algebra as the set of functions containing the functions , closed under the operators .
The following notations for Reach are used throughout the paper:
Manon BLANC
| Meaning | |
|---|---|
| Reachability relation on | |
| Reachability relation on with an perturbation | |
| Reachability relation on with an perturbation, with a polynomial | |
2.1 Discrete-Time Dynamical Systems
As dynamical systems are widely used in fundamental and applied science, the relations between dynamical systems over the reals and computations have been the source of many works, such as [39], [2], [17]. For now, we are interested in discrete-time dynamical systems:
Definition 1 (Discrete-Time Dynamical System [30]). A discrete-time dynamical system is a tuple , with a set, called the domain of , written , and such that for all , the dynamic starting from is defined by the sequence and . In other words, .
The main problems we consider here are the problems of point-to-point reachability and point-to-set reachability in a discrete-time dynamical system. The reachability problem determines whether there exists such that or . We write and for the corresponding relations in the dynamical system .
Reach(): Input: A dynamical system , Output:
Reach(): Input: A dynamical system , , Output:
We notice that restricting to be a PAM, instead of just computable, does not improve the computability, where PAM stands for “Piecewise Affine Map”, a map of the form , , , where are rational -matrices, and are convex rational polyhedral sets. There exist some classical complexity results for time- and space-bounded dynamical systems.
Assuming preserves the rationals , we have:
| Reach() | c.e.-complete | c.e.-complete |
| Reach() | c.e.-complete | c.e.-complete |
To prove those hardness results, it is sufficient to reduce from the Halting problem. See e.g. [39, 29, 40] for the proofs.
Notice that the complexity of the problem crucially depends on the dynamical systems we consider:
| Reach() | PTIME-complete | PSPACE-complete |
| Reach() | PTIME-complete | PSPACE-complete |
Manon BLANC
where we assume time to be given in unary and Reach to be time-bounded, meaning the computation time does not exceed some given . To prove those results, it is sufficient to reduce from the time-bounded Halting Problem.
2.2 Robustness for dynamical systems
We give more details on the notion of robustness for a dynamical system of [1], so the reachability problem becomes decidable. The idea is to apply the paradigm of small perturbations. Let be discrete-time dynamical system. For any , defines the -perturbed system. Its trajectories are defined as sequences satisfying for all , and a distance. This non-deterministic system is considered as subjected to a noise of magnitude . For convenience, we write as a synonym for . The reachability in the system is denoted by and the (open) ball of radius centered on . Thus, we give the definition of the robust reachability problem:
Definition 2 (Robust Reach [5, 7]). With a discrete-time dynamical system , we associate the relation , such that for two points , for , if there exists a finite trajectory in from to .
Definition 3 (Discrete-Time Robust Dynamical System [5, 7]). Define iff , . Without loss of generality, we assume that is of the form , . We consider a discrete-time dynamical system robust iff for all , .
All trajectories of a non-perturbed system are also trajectories of the -perturbed system . If then any trajectory of the -perturbed system is also a trajectory of the -perturbed system. By [5], Reach for robust discrete-time dynamical systems is co-c.e. It is c.e. by definition. We deduce that Reach for robust discrete-time dynamical systems is decidable.
Definition 4 (Polynomially robust system). A discrete-time dynamical system is polynomially robust if there is a polynomial , with , such that for all of size at most .
Theorem 5 ([5, 7]). Let , with locally Lipschitz, a closed rational box (, ). Then, .
A function is Lipschitz if there exists such that for all , , and locally Lipschitz if every has a neighbourhood such that restricted on is Lipschitz. The existing results regarding those systems are summed up here:
| non-robust | robust | poly. robust, | |
|---|---|---|---|
| Reach | Undecidable | Decidable [1] |
2.3 Reductions in continuous settings and second-order
To talk about computable analysis within our framework of second-order, we could consider a variant of Turing machines in this context, namely Type-2 machines: machines with input and working tapes together with a type specification with , giving the type (finite or infinite) for each input tape and output tape. These machines contain some read-only input tapes, containing the inputs, which can be either finite or infinite words, a read-write working tape and one write-only output tape. The only difference with classical Turing machines is that we allow it to output an infinite word written forever on its (or one of its) write-only infinite output tape(s). However, Type-2 machines are not appropriate for general second-order complexity theory. For example, taking , then for of length , the associated machine has to go through at most possible solutions for , enforcing directly an exponential upper-bound. Further discussions about it are in [32]. Thus, in the rest of the paper, we consider the definition through oracle machines:
Manon BLANC
Definition 6 (Oracle TM [37]). A real function is computable if there is a function-oracle TM such that for each and each (the set of all Cauchy sequences binary converging to ), the function computed by with oracle (i.e. ) is in .
Intuitively, an oracle Turing machine computes a function over , if, for any , for any , with oracle , the following: given the output precision , given in the form of integer , eventually outputs with . Computability and complexity classes over the reals depend on the model of computation we consider, and also the representations of the reals: some complexity results hold for some representation (of the reals) but not for another (see [49]): a representation of a set is a surjective function ([49], [32]), with the set of regular functions (Definition 7). Here, we consider only equivalent representations (see Definition 55 in Appendix A). We could represent real numbers with infinite sequences (in ). The problem with such representation is that there is no robust measure of size for space complexity. Following [32], we use (Definition 7) as a naming system for real numbers, sets and functions. Hence, the complexity is defined as the length of the word representing the real number, plus the size of the underlying oracle, also represented by a word. The size of a regular function , also denoted by , is and denotes the length of the string .
Definition 7 (Regular Functions [32]). A function is regular iff, for all such that , then .
The usual notion of reduction only deals with sets of languages as inputs. Here, we have functions as inputs; thus, we do reductions for the complexity with pseudofunctors. In this context, we say that complexity classes are defined in second-order. More precisely, second-order polynomials ([32]) are defined inductively as follows: a positive integer and a variable are a second-order polynomial. If , are second-order polynomials, then so are , , where is a type-1 (a total or partial map from to ) variable. A second-order polynomial is in .
Definition 8 (Second-order polynomials [32]). A ((non-)deterministic) TM M runs in second-order polynomial time if there is a second-order polynomial P such that, given any oracle , any input , M halts within steps. Define second-order polynomial space analogously by counting the number of visited cells on all tapes.
Definition 9 (Complexity Classes over ). (resp. ) is the class of decision problems decidable in second-order polynomial space (resp. time) by an oracle TM. (resp. ) is the class of functions computable in second-order polynomial space (resp. time) by an oracle TM.
We now define an adapted notion of reduction, with respect to oracle TMs (Definition 6). Following [32], the reductions work on the set of regular functions . For decision problems, we assume that the represented set is . We denote by the set of -valued regular functions, as in [32]:
Definition 10 (Type-2 reductions [32]). Let A and B be decision problems, or multi-functions from Reg to Pred. We write if there exists such that for any , we have and for the function .
Intuitively, for and two problems, we have that is the set of functions, which are inputs of the problem , and . The function transforms the functional instances, and does the “pre-treatment” at each step of the computation.
Definition 11 (PSPACE - -completeness). A problem is PSPACE - -complete iff and is PSPACE - -hard: for all , .
Manon BLANC
This construction seems somewhat artificial, but it is invariant under replacing representations with equivalent ones, and strong enough to capture various classical problems ([32]), including:
Basic PSPACE :
Input: , with an oracle TM, such that where a non-decreasing polynomial bounding the space of , ; a string .
Output: Does , with an oracle , accept ?
where, for s a string, is the string with s repeated k times.
Proposition 12 ([32]). Basic PSPACE is PSPACE - -complete.
2.4 Previous results on complexity over the reals
The discrete derivative is denoted by , defined as , and the (continuous) derivative by . A discrete ODE is an ODE generated by a discrete derivative. We introduce algebraic characterisations of FPTIME and FPSPACE, given in [4]. They allow us to have a proper equational representation for the execution of a TM. The main model of discrete ODEs to characterise FPTIME are Linear Length ODEs. A length ODE is a particular case of a discrete ODE, where instead of having a derivative step of size 1, the derivative steps is of size the binary length of . The length function maps some integer to the length of its binary representation. Thus, the derivative steps are of size the successive powers of 2. A more detailed definition is in Appendix B. The size of the solution of a linear length ODE can never exceed a polynomial, as proven in [3], ensuring the FPTIME-membership of solving such ODEs.
Also, FPTIME and FPSPACE are not stable under the general notion of limit. It means that the limit of a sequence of functions computable in polynomial time (resp. space) is not necessarily computable in polynomial time (resp. space). Thus, the notion of limit must be restricted by imposing that the constructed approximations converge exponentially quickly to a solution:
Theorem 13 (Characterisation of FPTIME, [4]). Let composition, Linear Length ODE, ELim], where outputs the coordinate of a vector of size , is the hyperbolic tangent function, divides by 2 its argument (similarly for ). The operator ELim is the effective limit: given such that for all , , , then ELim( ) is the (uniquely defined) corresponding function . We have: .
The effective limit of a sequence of polynomial-time (resp. -space) functions is computable in polynomial time (resp. space) ([3, 4]). All other basic functions are defined as usual, considered here as functions in .
A characterisation of FPSPACE based on continuous ODEs also exists:
Definition 14 (Robust (continuous) ODE, [6]). A function is robustly ODE definable (from , , and dynamic ) if:
-
it corresponds to the solution of: and ;
-
there is some rational , and some polynomial such that the previous schema is (polynomially) numerically stable on : for all integer , considering we can compute by working with precision . Considering any solution of and , and and then when ;
Manon BLANC
- for , we can compute by computing some approximation of at precision , i.e. we can compute , by computing some approximation of , working at precision .
Theorem 15 (FPSPACE [6]). \overline{\mathbb{RCD}} \cap \mathbb{R}^{\mathbb{N}^d \times \mathbb{R}^d'} = \text{FPSPACE} \cap \mathbb{R}^{\mathbb{N}^d \times \mathbb{R}^d}, where ; composition, robust continuous ODE, ELim].
2.5 Properly encoding real numbers into a TM
A configuration of an oracle TM is such that are words over , denotes the internal state of . The configuration of a bi-infinite tape TM is encoded by real numbers using radix 4 encoding, but using only digits 1, 3. Write: for the function mapping a word to the dyadic . For a configuration , we write for . The proof of the following lemma is direct from the definition of :
Lemma 16. For , for , is computable in polynomial time in .
Lemma 17 ([4]). We can construct some function in simulating one step of : given a configuration , writing for the next one, for all integer , , for , where and .
We assume that halts on every input within steps (a machine working in space can be clocked within space ), and that it erases its tape before halting, so that it has exactly two halting configurations, and , encoded by and . On a halting state , we let , the branch being selected by -if (the continuous approximation of an if) on the state component. The function remains in and Lipschitz, and Lemma 17 still holds. A proof of Lemma 17 is in Appendix C. Note that the construction of involves discontinuous functions such as the floor function such that . But, since we are in the framework of computable analysis, we must deal only with continuous functions. The main motivation behind the (cryptic) use of only symbols 1 and 3 in the base 4 is that it guarantees an expression like , either equals 0 (the specific case where there remain only blanks in ) or is in the interval [1, 2] or in [3, 4]. From Theorem 13 and Lemma 17, we can deduce:
Corollary 18. An oracle TM's transition function is computable in second-order polynomial time.
3 PSPACE-completeness for the robust Reach with “classical” TMs
Reach, in the case where the underlying dynamical system is robust and the dynamic function is Lipschitz polynomial-time computable, is in PSPACE. Now, it is interesting to prove that this decision problem is even PSPACE-complete, hence has a lower-bound result. We consider here the framework of [4], which gives a simple description of polynomial space with discrete ODEs. Here, we use the usual reduction between decision problems for this: if there is a computable in polynomial time function such that on every , is equivalent to , as defined in [44]. It is sufficient, since rationals can be represented by tuples of integers. The algebra allows us to talk about PTIME and PSPACE with smooth, even analytic, functions. We consider dynamic functions preserving the rationals on a rational domain. Let us define
Manon BLANC
[0, 1, , +, -, tanh, , ; composition]. The algebra allows us to construct smooth approximations of the sigmoid, the transition and the if functions (C-5, C-send, C-if) only by composition (see [4] and Appendix C).
We first prove the PSPACE-completeness of the following problem:
Reach Robust :
Input: A discrete-time polynomially robust dynamical system , a closed rational box, , a closed rational box, and given in unary Output:
Proposition 19. Reach Robust is PSPACE-hard.
We reduce from the problem of knowing whether a polynomial space TM reaches an accepting state. The reduction maps the set of possible configurations to the domain of the dynamical system and the transition function into the dynamic.
Proof of Proposition 19. Let be a PSPACE TM (working in space ), working on the rationals, and . We construct a discrete-time dynamical system such that:
-
, a closed rational box containing the encodings of all configurations of ;
-
, the function of Lemma 17 with parameter and our convention on the halting states;
• , the initial configuration of on the word ;
• , a closed rational box for the sup norm;
• in unary, the polynomial of Corollary 24 and .
Next is total and Lipschitz on X. By Lemma 23, the trajectory never visits non reachable configurations, thus, invalid points are never reached.
By Lemma 17, and the reduction is computable in polynomial time. By Corollary 24, is polynomially robust and iff accepts . We conclude.
The lower polynomial complexity bound remains true under robustness hypothesis, while undecidability does not. It comes from the two following lemmas and Corollary 24. We use them in the proofs of Proposition 19, Lemma 30 and Theorem 42.
Lemma 20 (Gap). Let be a Turing machine in space . Let and be two distinct configurations of . Then, .
NB 21. Lemma 20 guarantees that dictinct configurations, for a machine in space S, lie on the grid and are always separated in this grid.
Proof of Lemma 20. Let and be two distinct configurations. Assume and, without loss of generality, we assume the first index where they differ is position .
We have .
If and are both not , the blank symbol, then, by definition of the encoding, they are in , so . Since the numbers are all at most 3, we have that . Hence, .
If (or ) is the blank symbol, then, for all , , thus, . The proof is the same for .
Manon BLANC
NB 22. The proof only uses that the blank occurs at the end of words and that the two other digits are 1 and 3. It would fail if all four digits were allowed, since in base 4. Other pairs of digits would work as well, with a smaller constant: the choice of 1 and 3 is dictated by the width of the plateaus of in Subsection 2.5, not by this lemma.
Lemma 23 (Auto-correction). Let be a Turing machine in space , halting in time , its states' set, and the configurations' space. There exists a constant , independent from the input, such that, for all valid configuration , for all such that , we have:
-
(one step) Next selects at the same branch as at (same state, scanned symbol, written symbol and move), and ;
-
(along the run and after halting) For . If , and if , for all -perturbed trajectory starting from , . If , .
Proof of Lemma 23. 1. Write and . As , we have , so lies in the same plateau of as , and is within of the integer . Every , -send and -if in the expression of Next therefore takes the same branch at as at , up to (with the internal precision of Lemma 16). On that branch, by Equation (7), and are affine in with coefficients or 4, plus terms which are exact digits up to . Hence , and Lemma 16 concludes.
- Write and for the errors on the two tape components, and for the position of the head at time , so that . By Equations (7), a right move divides by 4 and multiplies by 4; a left move does the opposite; each step adds at most to both. By induction on , as long as the bound stays below so that item 1 applies,
both at most . The state component is reset within of an integer at every step by C-send.
For , the convention gives , and maps into itself as soon as .
Note that, if is an oracle machine, the step at is a query on a word , and , then the oracle component of is exactly
Hence, the perturbed trajectory, which remains close to the sequence of configurations of , never approaches invalid points. Intuitively, the error at each step is absorbed by the gap between the encodings, making the system robust:

Corollary 24 (Polynomial robustness of ). Take and . For , so, by Lemma 23, every -perturbed trajectory from stays, at all times, within of the encoding of the current configuration of . Since distinct configurations are at distance at least (Lemma 20), and , a perturbed trajectory enters iff accepts. Hence, : is polynomially robust.
Manon BLANC
Proof of Corollary 24. Since and , the choice of gives . Lemma 23 bounds the distance to the encoding of the current configuration by at all times. If accepts, the unperturbed trajectory ends within of ; if not, every perturbed trajectory stays within of configurations distinct from , hence at distance more than from it since .
The consequence of these lemmas is that, in unbounded space , converges to 0: undecidability does not survive under robustness hypothesis, while the lower complexity bound does. It marks the border between the main complexity results of this paper and classical undecidability theory. As this problem is in PSPACE ([7]):
Corollary 25. Reach Robust is PSPACE-complete.
We have a first PSPACE-completeness result, using the classical notion of reduction. If we had considered , we would be in the situation where the dynamic function is a PAM. The proof of Proposition 19 also covers this case. We now prove this property but with a stronger notion of reduction and for more general domains, using oracle TMs.
4 PSPACE - -completeness for the robust Reach with oracle TMs
We impose our dynamic functions to be Lipschitz. We are going to use the notion of reduction given in Definition 10.
Definition 26 (Oracle as a real function). Let and . The function is the piecewise affine function which is constant, equal to , on the interval for every word of length at most , and affine between two consecutive such intervals.
Thus, one oracle step is also auto-correcting (see Lemma 31). We write PAM for the algebra of PAMs and the operators under which it is closed. We denote by the algebra where is an algebra and is added as a base function. It gives us a strong stability result, avoiding too chaotic systems. We define the problem DRRL:
Discrete Reach Robust Lipschitz (DRRL):
Input: A discrete-time polynomially robust dynamical system , a closed rational box, , Lipschitz, given in unary,
Output:
The main difference with the problems considered in [32] is that we do not bound the time: there is no fixed number of iterations of g in H in the input.
4.1 Transition functions for oracle machines
Many authors have embedded TMs in various classes of dynamical systems to get undecidability or several hardness results. We present in this section how this is usually done, to point out where (intuitively) (non-)robustness issues appear.
Theorem 27 ([3, 4]). Let be a TM. Then, we can construct a dynamical system , a PAM with rational coefficients, simulating one transition of .
11
❤️♣♢♣
Manon BLANC
A proof is in Appendix D. The transition function of a TM can be seen as a PAM (Theorem 27). Note that, the transition function in a(-n oracle) TM is Lipschitz, a feature the proof relies on. It comes from the fact that, from the encoding we consider, applying one transition implies that the encoded real is at most multiplied by 4 and at least divided by . We extend Theorem 27 to deal with real numbers. We prove we can simulate an oracle since we are dealing with an oracle TM.
Proposition 28. Let be an oracle TM. We denote by the transition function of with oracle . We have that is in .
Since , it is computable in second-order polynomial time. Hence, with Theorem 5 and Corollary 18, we have that .
4.2 Discrete-time systems
As in [5], we restrain our dynamic functions to be Lipschitz.
Theorem 29 ([5], [7, Theorem 45]). DRRL ∈ PSPACE .
The proof of Theorem 29 uses the same idea as the proof of Savitch's theorem [44], where we reason on the reachability in a graph. We properly discretise the domain of the dynamical system, using the error we allow, and see the “cubes” as the vertices of a graph.
Technical Lemma: Completeness result
Lemma 30. DRRL is PSPACE - -hard.
The proof consists in reducing (Definition 10) Basic PSPACE to DRRL: The function t maps the initial configuration of to the starting point of the trajectory. And the function s encodes in the dynamical system the execution of the machine. More formally, we first state and use the following lemma:
Lemma 31. Let and . Then:
• (i) is Lipschitz, with constant at most ;
• (ii) is computable in second-order polynomial time;
• whenever and .
Proof of Lemma 31. (iii) is the definition. For (i), by Lemma 20 two plateaus are separated by an interval of length at least , on which varies by at most 1. For (ii), knowing at precision determines the one or two words whose plateaus surround ; query on them and interpolate.
Proof of Lemma 30. We reduce Basic PSPACE to DRRL. Let and be the inputs of Basic PSPACE . Without loss of generality, we assume has a unique accepting state with being the content of the tape. We construct the inputs of DRRL from the inputs of Basic PSPACE and define the functions and from Definition 10:
• For the initial configuration of on , we define .
• For the (unique) final accepting configuration of , .
- , where is the set of all the real numbers encoded by possible configurations of , is the space bound, with the polynomial of Corollary 24, and is with parameter , so that the drift of itself along the run, at most , stays below the radius of the target ball.
Manon BLANC
• t sends the input u to .
The function builds the DRRL instance; its dynamic is Lipschitz and computable in second-order polynomial time by Lemma 17 and Corollary 18 and it is Lipschitz The function maps the input to the starting point of the trajectory in . It is computable in polynomial time by Lemma 16. The system is polynomially robust by Corollary 24, and we have corresponds to “ accept ”. Thus, we have DRRL is hard.
Corollary 32. DRRL is PSPACE - -complete.
4.3 Continuous-time systems
The goal of this subsection is to extend Lemma 30. It relies on previous results from [6]. The main new results here are Lemma 35 and Theorem 42.
Definition 33 (Continuous-time Dynamical Systems). A continuous-time dynamical system is a tuple , with a set and such that is the solution of (some initial condition depending only on ) and .
Kawamura has shown in [31] that solving Lipschitz ODEs is PSPACE-complete. Our results differ in three respects. First, we decide a reachability relation rather than compute a solution, with no time bound given as part of the input. Second, we do not restrict ourselves to compact domains. Third, our systems are assumed to be robust, an assumption under which decidability is already non trivial [1, 5], and our lower bound holds for the second-order reductions of [32].
We can extend our previous result to continuous-time dynamical systems:
Continuous Reach Robust Lipschitz (CRRL):
Input: A continuous-time polynomially robust dynamical system , with a closed rational box, , Lipschitz, in unary,
Output:
The Simulation Trick: a Polynomial Improvement To prove the PSPACE -hardness of this problem, we reduce from DRRL. We first prove that we can simulate a discrete ODE with a continuous ODE. We rely on a simulation of a discrete dynamic by a continuous ODE attributed to Branicky ([18]). The core idea of this method is, starting from a discrete dynamic, to construct a continuous ODE whose (smooth) dynamic goes through all the points of the discrete dynamic. We improve this method for our context (Lemma 35).
Definition 34 (Ideal iteration trick [18]). Consider the following discrete ODE, given by functions and : ; . Then, let , and consider the (continuous) ODE:
where , is a constant, if and if . Here, is a rounding function: we mean, by construction, preserves the integers, and is a function that maps a real value close to some integer to this integer: assume, say, that for , , for any integer .
We write for applying the function componentwise on the vector . We do not need to specify what values for a outside such interval: the following reasoning remains correct, whatever it is. The solution of the continuous ODE in Definition 34 emulates continuously the associated discrete ODE. Intuitively, for the solution of the discrete ODE
Manon BLANC
and the solution of the constructed continuous ODE, for any , if then . More details about this proposition and an improvement (from [6]) are in Appendix E. We actually improve the latter result, by expressing the system (1) without using a sine. The point is to replace by function such that:
where and . This is a polynomial system of ODEs, their solutions are 1-periodic. It enables us to avoid the (direct) use of sine and cosine functions in the simulation, and still have an expression for periodic functions. It also simplifies the algebra : the cosine as a base function is no longer necessary. The main point is to make sure the errors remain additive, so the simulation stays in polynomial time.
Lemma 35. Suppose that, in (1), we replace function and function by some suitable approximations: we take , , such that and , take constant big enough, and replacing by Equation 2, the solution of the obtained ODE continuously simulates the associated discrete ODE, with error at most if is taken sufficiently small.
The proof is an induction on the intervals of the domain. The main difficulty of the proof is to ensure that the computation errors remain additive (not multiplicative), to guarantee polynomial space.
As in Proposition 71, to guarantee an error of , it is sufficient to take and for some polynomial . Note that Equation (2) is a robust continuous ODE (see Definition 14). To prove this lemma, we first state the following one:
Lemma 36 (Improved error analysis of ODE (9), [26, Lemma 4.5] [14, 5.2]). Consider a point , some some reals , and a function with the property that for all and . Let and let be functions such that that and for all . Then the IVP defined by
with the initial condition , where and satisfies
-
, independently of the initial condition
-
for all .
We notice that is never exactly 0, because tanh is never exactly 0: it is precisely what the function E in Equation 3 implies. The function corresponds to a continuous approximation (at precision ) of a simple function. An explicit construction can be found in [14].
Lemma 37 (Step-by-step reinitialisation). As is almost constant on , for all , every error smaller than is adjusted back to at the next step.
Proof of Lemma 37. By definition of in Proposition 71, for , if , then .
NB 38. By Lemma 20, Remark 21, the condition becomes , which is exactly the condition needed for in the proof of Lemma 23 and Corollary 24.
Manon BLANC
Proof of Lemma 35. The proof is similar to the proof of Proposition 71, except we have to take into account the additional error of the computation of Equation (2). The key here is also to make sure the errors propagate additively (and not multiplicatively): rounding function corrects errors or order whenever its argument is at a distance less than of some (Lemma 37). We introduce some error at every step; but the latter is corrected at the next step). The involved constant is of order , but it only multiplies in Equation 3 and enters the bound of Lemma 36 through . A larger makes converge faster to and leaves the error terms , and unchanged. Since the cubic term is contracting towards , a large damps perturbations rather than amplifying them, so the numerical stability of Definition 14 depends on only, and is written with doublings, so Lemma 39 is unaffected. We use the notations of Definition 34.
We prove, by induction, the following property: for all , and . Also, for all , we have and .
By Lemma 37, the induction is not on the sum of errors. The number of steps does not influence the analysis. Only the preservation of the error at each step does.
Initialisation:
For , .
- For , is kept close to a constant value , when an error less than , if we choose . Meanwhile, is also at a value close to with an error lesser than . We have , 0, thus , 0, then remains close to on this interval. Here the hypothesis that is almost constant around means that its value is guaranteed to be at from on the .
By Lemma 36, approach on this interval, with an error of order . Thus, , if we choose .
- At , will hence have simulated one step of the associated discrete ODE, with an error less than , and will be close to with an error less than .
• For the roles of and are inverted, and the analysis is analogous.
Induction:
-
For , we have , 0, and hence , 0, so is kept almost fixed (with an error less than ). In the same time approaches by Lemma 36, with some new error of order less than .
-
For the roles of and are exchanged: , 0, so is kept almost fixed, with a new error less than . In the same time approaches by Lemma 36, with some new error of order less than .
Consequently, we get the property at rank .
Since polynomials are stable under composition, we have:
Lemma 39. The simulation of Lemma 35 is computable in polynomial time.
Hence, by Theorem 29 and Lemma 39:
Corollary 40. CRRL ∈ PSPACE .
A side-effect of Lemma 35 is that the cosine function is no longer necessary in the basis of the algebra , as it can be expressed with the other components of the algebra:
Theorem 41 (Main theorem I). \overline{\mathbb{RCD}} \cap \mathbb{R}^{\mathbb{N}^d \times \mathbb{R}^d'} = \text{FPSPACE} \cap \mathbb{R}^{\mathbb{N}^d \times \mathbb{R}^d}, where ; composition, robust continuous ODE, ELim].
Manon BLANC
Completeness result. We can now state and prove the following theorem:
Theorem 42 (Main theorem II). CRRL is -hard.
We reduce DRRL to CRRL, where encodes the simulation of Lemma 35 and t the successor function (for the discrete ODE):
Proof of Theorem 42. We reduce from DRRL:
- doing the adaptation of the Branicky trick described by Proposition 71: with and such that:
where is a constant; and such that ; and are defined in Proposition 71. The function has the value of a memory equation, as in the Definition 34. It is computable in polynomial time by Lemma 39.
- where is the successor of in the discrete ODE.
is robust by Lemma 23 and Corollary 24. The equivalence is direct from Lemma 35.
Corollary 43. CRRL is -complete.
5 Conclusion
We proved PSPACE-completeness for Reach, under the framework of existing algebraic characterisations of PSPACE, defined in [4]. The proof only required the classic notion of reduction and is about classical complexity.
We then proposed a stronger property: we managed to prove that the reachability relation is -complete for robust discrete-time dynamical systems in second-order complexity. We provide those completeness results in a more general framework than in [32], as we use a stronger notion of reduction on more general domains. So now, we have:
| Reach Robust | DRRL | CRRL | |
|---|---|---|---|
| -Completeness | PSPACE (Cor. 25) | (Cor. 32) | (Cor. 43) |
Having such completeness results allows us to have a better understanding of those complexity classes over the reals.
An interesting side-effect is also that we managed to remove the cosine function from the algebra , characterising polynomial space for functions over the reals (Theorem 41), getting us closer to a minimal algebra to characterise polynomial space over the reals.
Many further works are possible. For example, reasoning on broader definitions of perturbations and noisy dynamical systems to include real-world systems would be interesting. More precisely, having completeness results for classical properties (reachability, existence of an attractor, etc.) for more general types of systems would allow a deeper understanding of the upper and lower complexity bounds. For the reduction of the base of , the same construction suggests that could also be removed from the basis by rescaling time, we also leave this for future work.
Manon BLANC
References
[1] Eugene Asarin and Ahmed Bouajjani. Perturbed Turing machines and hybrid systems. In Proceedings of the 16th Annual IEEE Symposium on Logic in Computer Science (LICS-01), pages 269–278, Los Alamitos, CA, June 16–19 2001. IEEE Computer Society Press.
[2] Eugene Asarin, Oded Maler, and Amir Pnueli. Reachability analysis of dynamical systems having piecewise-constant derivatives. Theoretical Computer Science, 138(1):35–65, February 1995.
[3] Manon Blanc and Olivier Bournez. A characterization of polynomial time computable functions from the integers to the reals using discrete ordinary differential equations. In Jérôme Durand-Lose and György Vaszil, editors, Machines, Computations, and Universality - 9th International Conference, MCU 2022, Debrecen, Hungary, August 31 - September 2, 2022, Proceedings, volume 13419 of Lecture Notes in Computer Science, pages 58–74. Springer, 2022. URL: https://doi.org/10.1007/978-3-031-13502-6_4, doi:10.1007/978-3-031-13502-6_4.
[4] Manon Blanc and Olivier Bournez. A characterisation of functions computable in polynomial time and space over the reals with discrete ordinary differential equations: Simulation of turing machines with analytic discrete odes. In Jérôme Leroux, Sylvain Lombardy, and David Peleg, editors, 48th International Symposium on Mathematical Foundations of Computer Science, MFCS 2023, August 28 to September 1, 2023, Bordeaux, France, volume 272 of LIPIcs, pages 21:1–21:15. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.MFCS.2023.21.
[5] Manon Blanc and Olivier Bournez. Quantifying the Robustness of Dynamical Systems. Relating Time and Space to Length and Precision. In Aniello Murano and Alexandra Silva, editors, 32nd EACSL Annual Conference on Computer Science Logic (CSL 2024), volume 288 of Leibniz International Proceedings in Informatics (LIPIcs), pages 17:1–17:20, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CSL.2024.17, doi:10.4230/LIPIcs.CSL.2024.17.
[6] Manon Blanc and Olivier Bournez. The Complexity of Computing in Continuous Time: Space Complexity Is Precision. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297 of Leibniz International Proceedings in Informatics (LIPIcs), pages 129:1–129:22, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2024.129, doi:10.4230/LIPIcs.ICALP.2024.129.
[7] Manon Blanc and Olivier Bournez. Quantifying the robustness of dynamical systems. relating time and space to length and precision. Journal of Complexity, 96:102055, 2026. URL: https://www.sciencedirect.com/science/article/pii/S0885064X26000403, doi:https://doi.org/10.1016/j.jco.2026.102055.
[8] Manon Blanc and Kristoffer Arnsfelt Hansen. Computational complexity of multi-player evolutionarily stable strategies. In Rahul Santhanam and Daniil Musatov, editors, Computer Science – Theory and Applications, pages 1–17, Cham, 2021. Springer International Publishing.
[9] Vincent Blondel and John Tsitsiklis. A survey of computational complexity results in systems and control. Automatica, 36(9):1249–1274, 2000.
[10] Lenore Blum, Felipe Cucker, Michael Shub, and Steve Smale. Complexity and real computation. Springer, 1998. URL: https://www.worldcat.org/oclc/37004484.
Manon BLANC
[11] Lenore Blum, Mike Shub, and Steve Smale. On a theory of computation and complexity over the real numbers; NP completeness, recursive functions and universal machines. Bulletin of the American Mathematical Society, 21(1):1–46, jul 1989.
[12] Olivier Bournez and Arnaud Durand. Recursion schemes, discrete differential equations and characterization of polynomial time computation. In Peter Rossmanith, Pinar Heggernes, and Joost-Pieter Katoen, editors, 44th Int Symposium on Mathematical Foundations of Computer Science, MFCS, volume 138 of LIPIcs, pages 23:1–23:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.MFCS.2019.23.
[13] Olivier Bournez and Arnaud Durand. A characterization of functions over the integers computable in polynomial time using discrete ordinary differential equations. Computational Complexity, 32(2):7, 2023. doi:10.1007/s00037-023-00240-1.
[14] Olivier Bournez, Riccardo Gozzi, Daniel S Graça, and Amaury Pouly. A continuous characterization of PSPACE using polynomial ordinary differential equations. Journal of Complexity, 77:101755, august 2023. URL: https://www.sciencedirect.com/science/article/pii/S0885064X23000249?dgcid=author, doi:10.1016/j.jco.2023.101755.
[15] Olivier Bournez, Daniel Silva Graça, and Amaury Pouly. Polynomial time corresponds to solutions of polynomial ordinary differential equations of polynomial length: The general purpose analog computer and computable analysis are two efficiently equivalent models of computations. In Ioannis Chatzigiannakis, Michael Mitzenmacher, Yuval Rabani, and Davide Sangiorgi, editors, 43rd International Colloquium on Automata, Languages, and Programming, ICALP 2016, July 11-15, 2016, Rome, Italy, volume 55 of LIPIcs, pages 109:1–109:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.ICALP.2016.109.
[16] Olivier Bournez and Amaury Pouly. A universal ordinary differential equation. In Ioannis Chatzigiannakis, Piotr Indyk, Fabian Kuhn, and Anca Muscholl, editors, 44th International Colloquium on Automata, Languages, and Programming, ICALP 2017, July 10-14, 2017, Warsaw, Poland, volume 80 of LIPIcs, pages 116:1–116:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2017. doi:10.4230/LIPIcs.ICALP.2017.116.
[17] Olivier Bournez and Amaury Pouly. A survey on analog models of computation. In Handbook of Computability and Complexity in Analysis, pages 173–226. Springer, 2021.
[18] M. S. Branicky. Universal computation and other capabilities of hybrid and continuous dynamical systems. Theoretical Computer Science, 138(1):67–100, 6 feb 1995. doi:10.1016/0304-3975(94)00147-B.
[19] Vasco Brattka, Peter Hertling, and Klaus Weihrauch. A tutorial on computable analysis. In New computational paradigms, pages 425–491. Springer, 2008.
[20] Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. In Advances in Neural Information Processing Systems, pages 6571–6583, 2018. URL: https://proceedings.neurips.cc/paper/2018/hash/69386f6bb1dfed68692a24c8686939b9-Abstract.html.
[21] Pieter Collins. Continuity and computability of reachable sets. Theoretical Computer Science, 341(1):162–195, 2005. URL: https://www.sciencedirect.com/science/article/pii/S0304397505003038, doi:https://doi.org/10.1016/j.tcs.2005.05.001.
[22] C.C. Conley and Conference Board of the Mathematical Sciences. Isolated Invariant Sets and the Morse Index. Regional conference series in mathematics. Conference Board of the Mathematical Sciences, 1978. URL: https://books.google.fr/books?id=7u9KAQAACAAJ.
Manon BLANC
[23] K. Etessami and A. Lochbihler. The computational complexity of evolutionarily stable strategies. International Journal of Game Theory, 37:93–113, 2007. URL: https://link.springer.com/article/10.1007/s00182-007-0095-0#citeas.
[24] François Fages, Guillaume Le Guludec, Olivier Bournez, and Amaury Pouly. Strong turing completeness of continuous chemical reaction networks and compilation of mixed analog-digital programs. In Jérôme Feret and Heinz Koepp, editors, Computational Methods in Systems Biology - 15th International Conference, CMSB 2017, Darmstadt, Germany, September 27-29, 2017, Proceedings, volume 10545 of Lecture Notes in Computer Science, pages 108–127. Springer, 2017. CMSB'2017 Best Paper Award. URL: https://doi.org/10.1007/978-3-319-67471-1_7, doi:10.1007/978-3-319-67471-1_7.
[25] Sicun Gao, Jeremy Avigad, and Edmund M Clarke. Delta-decidability over the reals. In Logic in Computer Science (LICS), 2012 27th Annual IEEE Symposium on, pages 305–314. IEEE, 2012.
[26] Riccardo Gozzi. Analog Characterization of Complexity Classes. PhD thesis, Instituto Superior Técnico, Lisbon, Portugal and University of Algarve, Faro, Portugal, 2022.
[27] Daniel S. Graça and José Félix Costa. Analog computers and recursive functions over the reals. jcomp, 19(5):644–664, 2003. doi:10.1016/S0885-064X(03)00034-7.
[28] Daniel S. Graça and Ning Zhong. Handbook of Computability and Complexity in Analysis, chapter Computability of Differential Equations. Springer., 2018.
[29] Thomas A. Henzinger, Peter W. Kopke, Anuj Puri, and Pravin Varaiya. What's decidable about hybrid automata? Journal of Computer and System Sciences, 57(1):94–124, August 1998.
[30] Morris W. Hirsch, Stephen Smale, and Robert Devaney. Differential Equations, Dynamical Systems, and an Introduction to Chaos. Elsevier Academic Press, 2003.
[31] Akitoshi Kawamura. Lipschitz continuous ordinary differential equations are polynomial-space complete. In 2009 24th Annual IEEE Conference on Computational Complexity, pages 149–160. IEEE, 2009. doi:10.1109/CCC.2009.34.
[32] Akitoshi Kawamura and Stephen A. Cook. Complexity theory for operators in analysis. ACM Trans. Comput. Theory, 4(2):5:1–5:24, 2012. doi:10.1145/2189778.2189780.
[33] Akitoshi Kawamura, Norbert Müller, Carsten Rösnick, and Martin Ziegler. Computational benefit of smoothness: Parameterized bit-complexity of numerical operators on analytic functions and gevrey's hierarchy. Journal of Complexity, 31(5):689–714, 2015.
[34] Akitoshi Kawamura, Hiroyuki Ota, Carsten Rösnick, and Martin Ziegler. Computational complexity of smooth differential equations. Logical Methods in Computer Science, 10, 2014. doi:10.2168/LMCS-10(1:6)2014.
[35] Akitoshi Kawamura, Florian Steinberg, and Holger Thies. Parameterized complexity for uniform operators on multidimensional analytic functions and ode solving. In International Workshop on Logic, Language, Information, and Computation, pages 223–236. Springer, 2018.
[36] Patrick Kidger. On neural differential equations. CoRR, abs/2202.02435, 2022. URL: https://arxiv.org/abs/2202.02435, arXiv:2202.02435, doi:10.48550/arXiv.2202.02435.
[37] Ker-I Ko. Complexity theory of real functions, volume 3 of Progress in theoretical computer science. Birkhäuser, Boston, 1991.
Manon BLANC
[38] Pascal Koiran, Michel Cosnard, and Max Garzon. Computability with low-dimensional dynamical systems. Theoretical Computer Science, 132(1-2):113–128, September 1994.
[39] Cristopher Moore. Generalized shifts: unpredictability and undecidability in dynamical systems. Nonlinearity, 4(3):199–230, 1991.
[40] Amaury Pouly. Continuous models of computation: from computability to complexity. Theses, Ecole Doctorale Polytechnique ; Universidad do Algarve, July 2015. URL: https://pastel.hal.science/tel-01223284.
[41] Anuj Puri. Dynamical properties of timed automata. Discrete Event Dynamic Systems, 10:87–113, 2000.
[42] Marcus Schaefer, Jean Cardinal, and Tillmann Miltzow. The existential theory of the reals as a complexity class: A compendium. CoRR, abs/2407.18006, 2024. URL: https://doi.org/10.48550/arXiv.2407.18006, arXiv:2407.18006, doi:10.48550/ARXIV.2407.18006.
[43] Claude E. Shannon. Mathematical theory of the differential analyser. Journal of Mathematics and Physics MIT, 20:337–354, 1941.
[44] Michael Sipser. Introduction to the Theory of Computation. PWS Publishing Company, 1997.
[45] Izumi Takeuti. Effective fixed point theorem over a non-computably separable metric space. In Jens Blanck, Vasco Brattka, and Peter Hertling, editors, Computability and Complexity in Analysis, pages 310–322, Berlin, Heidelberg, 2001. Springer Berlin Heidelberg.
[46] Alan M. Turing. On computable numbers, with an application to the entscheidungsproblem. Proceedings of the London Mathematical Society, s2-42(1):230–265, 1937. Reprinted in Martin Davis. The Undecidable: Basic Papers on Undecidable Propositions, Unsolvable Problems and Computable Functions. Raven Press, 1965. doi:10.1112/plms/s2-42.1.230.
[47] Bernd Ulmann. Analog computing. Walter de Gruyter, 2013.
[48] Bernd Ulmann. Analog and hybrid computer programming. De Gruyter Oldenbourg, 2020.
[49] Klaus Weihrauch. Computable Analysis - An Introduction. Texts in Theoretical Computer Science. An EATCS Series. Springer, 2000. doi:10.1007/978-3-642-56999-9.
A Little course of computable analysis
A.1 Notions of computable analysis
In classical models of computation, we usually consider an input of finite size, e.g. integers or graphs, and work on some representation on a finite alphabet. Such objects are said to be computable when there exists some Turing machine producing their representations.
The main idea behind computable analysis is to be able to talk about objects which usually do not have a finite representation, such as real numbers, functions over the reals, compact sets, etc. A reason why we cannot use classical models is that the set of words on a finite alphabet is countable, while is not.
However, they can be represented by some infinite words over a finite alphabet and the idea is to fix such representations for these various objects, called names, with suitable computable properties. In particular, in all the following proposed representations, it was proved that an object is computable iff it has some computable representation. We denote by the machine
Manon BLANC
alphabet, denotes the finite words on this alphabet (they can be arbitrarily long) and the infinite words on .
For discrete-time models of computations over the reals, the most famous models are computable analysis, based on the Turing machine model (see [46], [49]), and algebraic models such as the Blum Shub Smale (BSS) model of computation [11], [10]. The class corresponds to the (constant-free, equivalently uniform) non-deterministic time of the BSS model of computation. Numerous decision problems have been proved recently in this class [42]. Both models were tailored for different applications, and it is well known that we cannot unify existing models with the equivalent of a Church-Turing thesis. For example, computable functions in a computable analysis model must be continuous, whereas the BSS model aims to consider functions and problems over polynomials that are not. The former model has not been introduced to be associated with actual physical machines. Among models of computation over the reals, we can highlight continuous-time models. This includes models of old, first-ever-built computers, such as the Differential Analysers [48]. A famous mathematical model of such machines is the General Purpose Analog Computer model of Claude Shannon [43]. It covers many historical machines and today's analogue devices [47] too. It also includes various recent approaches and models from deep learning, such as Neural ODEs [20, 36] with many variants.
In the context of continuous-time, the situation is clearer than with discrete-time models, as there is a unifying way to describe these models, provided by Ordinary Differential Equations (ODEs). Each model corresponds to a particular class of ODEs. For example, the GPAC corresponds to polynomial ODEs [27], and Neural ODEs are made by selecting the best solution among a parameterised class of ODEs: see, e.g. [36].
When we say that a function , for all , is (respectively: polynomial-time) computable, it will always be in the sense of computable analysis. We recall here the basic concepts and definitions, mostly following the book [37] on complexity theory in computable analysis. Alternative presentations include [19, 49].
NB 44. The monograph [37] formulates explicitly most of the statements only for functions over the reals. Since we talk about functions in , we need to mix complexity issues dealing with integer and real arguments. Hence, we extend some of the statements to these more general settings (in the spirit of [37, 31, 34, 33, 35]).
We present here a formalisation equivalent to [45] but with our own words. This will be used to fix the framework and the notations.
Definition 45 (Computable String Function [49]). The initial tape configuration for input is as follows: for each input tape , the (finite or infinite) sequence is placed on the tape immediately to the right of the head, all other tape cells contain the symbol B. For all , , , we define:
-
iff the associated Type-2 Turing machine halts on input with written on the output tape.
-
iff computes forever on input and writes on the output tape.
We can now define a proper notion of computable enumerability in that context:
Definition 46 (C.e. sets [49]). A closed set is c.e. if there exists a Turing machine that enumerates all the open rational cubes intersecting .
We can also consider oracle Turing machines to represent functions in , as we will see in Definition 51.
We approximate real numbers with dyadics. A dyadic number is a rational number with a finite binary expansion. That is to say for some integers , , . Let be the set of all dyadic rational numbers.
We denote by the set of all dyadic rationals with a representation of precision : that is, .
Manon BLANC
NB 47. D is dense in R.
Thus, we can approximate any real number with a sequence of dyadics converging to . is a set of Cauchy sequences converging to :
Definition 48 (Cauchy representation of a real number). Define the Cauchy representation by iff there are words such that , for and .
It leads us to the definition of computable real numbers:
Definition 49 ([37]). For each real number , a function is said to binary converge to if for all , and .
Thus, we deduce:
Definition 50 (Computable real number [37]). A real number is computable iff contains a computable function: there exists a TM such that, on input , computes the first digits of .
There exist many more non-computable than computable real numbers. One intuition is to notice that, according to the previous definition, there is an injection between the set of Turing machines and computable reals: the set of computable real numbers is countable, whereas is not. However, the set of computable reals being dense in , any non-computable real can be approximated by a sequence of computable reals. A name of is a sequence of nested open rational balls with for all and Such a name can be encoded as an infinite sequence of symbols.
In [4] and [6], the authors are interested in having characterisations of functions computable in FPTIME and FPSPACE. So, we have to formally define what a computable function is in the framework of computable analysis:
Definition 51 ([37]). A real function is computable if there is a function-oracle TM such that for each and each , the function computed by with oracle (i.e. ) is in . We say the function is computable on the interval if the above condition holds for all .
We call a real function computable, iff some Type-2 Turing machine maps any name of any to a name of . For real functions we consider machines reading names in parallel. A computable function is necessarily continuous: see [49] for all details.
The intuition is that an oracle Turing machine computes a function over the real, if we have, for any real in the domain of , for any , with oracle , the following: given the output precision , given in the form of integer , eventually output with . During this computation, asks necessarily finitely many questions to its oracle . From the considered oracles, any such question can be seen as follows: for some queried precision , asks the oracle to provide some , such that .
We notice that, in computable analysis, we only deal with continuous functions:
Theorem 52 ([49]). Every computable real function is continuous.
NB 53. From the model of computable analysis, given the name of , it is impossible in general to tell effectively if .
For closed sets, the notion of computability can be interpreted as the possibility of being plotted with an arbitrarily chosen precision: corresponds to a pixel at precision , 1 is black (the pixel is plotted black), 0 is white (the pixel is plotted white).
Manon BLANC
Theorem 54 ([19]). For a closed set , is computable iff it can be plotted: there exists a computable function and such that for all and
Computability and complexity classes over the reals depend on the model of computation we consider, and also the representations of the reals: some complexity results hold for some representation (of the reals) but not for another (see [49]). Here, we consider only equivalent, with respect to the following definition, representations.
Definition 55 (Translation and equivalence, from [49]). For arbitrary functions , with we have: , computable, translates to iff, for all , ; and is equivalent to iff some computable function translates to and some computable function translates to .
A.2 On computable analysis: Complexity
Assume that M is an oracle machine which computes f on the domain .
For simplicity, we may assume in our discussion that is some closed interval or . For any oracle , with , let be the number of steps for to halt on input with oracle , and .
We define the time complexity of f as follows:
Definition 56 (From [37]). Let be bounded closed interval . Let be a computable function. Then, we say that the time complexity of on is bounded by a function if there exists an oracle TM which computes such that for all and all , .
In other words, as mentioned in [37], the idea is to measure the time complexity of a function over the reals based on the input and the output precision . However, it is usually more convenient to simplify the complexity measure and make it depend only on the output precision. They define the uniform time complexity of on with a bound function .
However, if we do so, it is critical to realise that if we took in previous definition, for unbounded functions , [37] observes that “the uniform time complexity does not exist, because the number of moves required to write down the integral part of grows as approaches or ”.
Therefore, the approach of [37] is to do as follows (the bounds and are somewhat arbitrary, but are chosen here because the binary expansion of any has bits in the integral part):
Definition 57 (Adapted from [37]). For functions whose domain is , we say that the (non-uniform) time complexity of is bounded by a function if the time complexity of on is bounded by a function such that for all .
We extend the approach to more general functions. When and , we write as short for .
For , we denote by the number of bits of the binary representation of .
Definition 58 (Complexity for real functions: general case, from [37]). Consider a function whose domain is . We say that the (non-uniform) time complexity of is bounded by a function if the time complexity of
Manon BLANC
on is bounded by a function:
such that whenever . We say that is polynomial time computable if can be chosen as a polynomial. We say that a vectorial function is polynomial time computable iff all its components are.
The motivation behind those previous definitions is similar to the one in [40] and [15]: we want this measure of complexity to extend the usual complexity for functions over the integers, where the complexity of integers is measured with respect to their lengths, and over the reals, where complexity is measured with respect to their approximation.
In particular, in the specific case of a function , it means there is some polynomial such that the time complexity of producing some dyadic approximating at precision is bounded by , writing .
A key observation is the stability of polynomial time under composition:
Lemma 59 ([37]). The class of polynomial time computable functions is stable under composition.
There exist various characterisations of functions computable in polynomial time over the reals. For example, the following is proved in [37] for functions from . It could be extended to more general functions.
Theorem 60 (Alternative characterisation [37]). A function is computable in polynomial time iff there exist polynomial functions and and a function such that
-
m is a polynomial modulus function for f on : implies for every and every integer ;
-
for any and all , ;
-
is computable in time .
B Length ODEs
Length ODEs are a scheme of discrete ODEs, where the derivative is not with steps of 1, as for classical discrete ODEs, but of the successive powers of 2. More comprehensive definitions can also be found in [12].
Definition 61 (Length-ODE [12, 13]). A function , , is length-ODE definable if it corresponds to the solution of
Equation 4 can be formally rewritten as:
So when for some . The latter is a change of variable on the former: we differentiate with respect to the binary length of an integer (its number of bits), instead of itself. It crucially links the size of a given representation for real numbers and the complexity class its computation is in.
For polynomial time we consider Linear length-ODE, for the following notion of linearity:
Manon BLANC
Definition 62 (Essential linearity). is essentially linear in if it is of the form: where and depend on some sigmoid on .
Thus, a length ODE is linear when (in Equation 4) is essentially linear in , \mathbf{g} : \mathbb{R}^d \to \mathbb{R}^d' and \mathbf{h} : \mathbb{N} \times \mathbb{R}^d \to \mathbb{R}^d'.
A fundamental fact is that the derivative with respect to the length provides a way to make a change of variables:
Lemma 63 ([12, 13]). Assume that (4) holds. Then is given by where is the solution of the initial value problem
This means depends only on the length of its first argument: . Then (5) can be seen as defining a function (with this latter property) by a recurrence of type
for essentially linear in . As recurrence (5) is equivalent to (4):
Corollary 64 (Linear length ODE presented with powers of 2). A function is linear length ODE definable iff the value of depends only on the length of its first argument and satisfies (6), for some and , and , essentially linear in .
C Proof of Lemma 17, from [4]
Before giving the proof of the lemma, we admit the following:
Lemma 65 ([4]). Let , , pairwise distinct, and, for and , let be some constants. Then there exists some function
in , such as, for all , , it maps any and any to a real number at a distance at most of .
Proof of Lemma 17 from [4]. We can write and , respectively the left part of the tape with respect to the head and the right part of the tape, where and are the first letters of and , and and corresponding to the (possibly infinite) word and respectively. Notice that is written in reverse order on the tape.
| ... | ... | ||||
|---|---|---|---|---|---|
Consider the transition function working over the representation of the configurations as reals, considering :
-
in the first case “”: and
-
in the second case “”: and
(7)
Manon BLANC
We introduce the following functions, corresponding respectively to the head moves to the right and to the head moves to the left:
We can rewrite as and , and, using notation of Lemma 65, .
Then, following the intuition of having continuous approximations of discontinuous functions, we can replace by if we take as some continuous function that would be affine and values respectively 0, 1 and 3 on (that is to say matches on this domain). A possible candidate is , with the sigmoid valuing 0 before and 1 after . Then considering , then would be the same as : that is, considering , replacing in the above expression every by , and every by , and get something that would still work the same, but using only continuous functions.
Now, we would like to use analytic functions, and not only continuous functions. It is well-known that an analytic function that equals some affine function on some interval (e.g. on ) must be affine, and hence cannot be 3 on . We introduce such that for all integer ,
The function allows us to tolerate errors by replacing by in the expressions above for and , taking such that . This would just introduce some error at most .
We can also replace every in above expressions for and by
for a suitable error bound , and symmetrically for . However, if we do so, we still might have some multiplications in the above expressions. To avoid that, we give a continuous approximation in -if of the conditional sigmoid function
• if we take , then ,
• and if we take , then .
We can then also write the above expressions as
and still have the same bound on the error.
Manon BLANC
D Proof of Theorem 27, from [3, 4]
Proof from [3, 4]. We consider a Turing machine . Up to renaming, we assume . Let
denote the content of the tape of the Turing machine . In this representation, the head is in front of symbol , and for all . Furthermore, if the blank symbol appears at some letter then it appears at letter for all ; if the blank symbol appears at some letter then it appears at letter for all .
The idea is that such a configuration can also be encoded by some element , by considering and .
Denoting the image of by , this even lives in .
NB 66. Notice that is a Cantor-like set: it corresponds to the rational numbers that can be written using only 1 and 3 in base 4. We write for those with at most digits after the point (i.e. of the form for some integer ).
We denote by the transition function: given some control state , and some symbol , indicates the new control state , the symbol to be written, and some movement , corresponding to shifting left or right. For practical reasons, we assume that when reaches a final state, it stays in the same configuration.
A configuration C of such TM can be denoted by , where
are words over alphabet and where denotes the internal state of . Notice that , the right part, is written from left to right (in the usual way), while , the left part, is written from right to left (in a mirror way). We work with infinite words, but as expected, this covers the case of finite words. Namely, given a finite word on the tape, in control state , with the head in front of symbol , corresponds to the configuration , that is to say, with eventually the blank symbol .
The idea is that such a configuration can also be encoded by some element , by considering
In other words, we encode the configuration of a bi-infinite tape Turing machine by real numbers using their radix 4 encoding, but using only digits . As digit 0 is used only at the end of the words, this corresponds to some rational numbers for a finite word, while for an infinite word, this corresponds to some real numbers, possibly irrational. If we write: for the function that maps word to
we can also write: .
Here, the transition function leads naturally to a function that maps a configuration to a configuration after one step in . Via the above encoding, this can be seen as a function .
Notice that takes its values in and it is a piecewise affine map. Actually, if we denote the image of by , it even takes its values in .
Manon BLANC
It remains to prove that f is a PAM:
The function f is basically of the form
defined as a definition by case of type:
This rewrites as a function which is similar, working over the representation of the configurations as reals, considering
where and
• in the first case “→” : and
• in the second case “←” : and
(8)
We introduce the following functions:
corresponding to the head moving to the right, and
corresponding to the head moving to the left.
Hence, we can rewrite, as
and
And and are PAMs.
The embedding of configurations of TM into reals is . But, without loss of generality, we could have taken with taken as:
- the encoding mapping the word to the integer whose binary expression is ,
• or mapping w to the real number of whose binary expansion is w,
• or more generally, or , using base instead of base for ,
Manon BLANC
• or mapping to .
In any case, we can then consider a function such that for any configuration , denoting by the next configuration, : one step of the TM corresponds to one step in the dynamical system with respect to . Then, we have that the diagram of the execution commutes for any number of steps:
We can write and , respectively the left part of the tape with respect to the head and the right part of the tape, where and are the first letters of and , and and corresponding to the (possibly infinite) word and respectively. Notice that is written in reverse order on the tape. The questions related to the existence of trajectories
| ... | ... | ||||
|---|---|---|---|---|---|
in the dynamical system associated with the TM lead to questions about the existence of suitable trajectories in the TM. Specifically, it provides c.e.-hardness of reachability for various classes of dynamical systems. Call such a situation a step-by-step emulation. However, encodings such as , whose image is compact, or on as above, map intrinsically distinct configurations to points arbitrarily close to each other (a sequence over a compact must have some accumulation point). Encodings like do not have a compact image but involve emulations with arbitrarily large integers, which is another issue. These observations led to the already mentioned (informal) conjecture that undecidability/hardness may hold only for non-robust systems. This leads to formally discussing robustness issues for general dynamical systems over , for some . These statements and underlying constructions, which allow the simulation of Turing machines, led to solving several open problems: the existence of a universal ODE [16], the proof of the Turing-completeness of chemical reactions [24], or statements about the hardness of several dynamical systems problems [28].
E Details, proofs and improvement about the construction of Definition 34
Proposition 67 ([6]). The solution of the continuous ODE in Definition 34 emulates continuously the associated discrete ODE.
Proof. The idea is that corresponds to the actual computation of the iterates of (and hence computes the successive values of ) and acts as a “memory” equation. Let us detail how it works.
NB 68. We describe here an “ideal” computation, as is exactly 0 when , and is exactly some integer on suitable domains.
Initially, . For , we have
Manon BLANC
and hence , so is fixed and kept at value for . Consequently, for , is also fixed and kept at value , and is also fixed and kept at value 0. Consequently, on this interval, if we write , then the dynamics of is given by
Then, a key is to analyse such an ODE:
Lemma 69 (Analysis of ODE (9) [6]). The solution of ODE (9) is converging to for any initial condition. Furthermore, for any initial condition , we have .
For any , we can select constant such that for any initial condition ,
Consequently, will approach on this interval. Thus, and , for some , that we can consider less than , by selecting a big enough constant (just taking above). At , will hence have simulated one step of the discrete ODE.
Now, for the roles of and are exchanged: , so is kept fixed, approaches , thus .
By induction, from the same reasoning, we obtain that, for all , , and actually, we also have, for all , for any integer :
To implement such continuous ODEs, we must fix a function with the above property. Taking would satisfy it, but it is not differentiable, and hence would not lead to an ODE. We could take for , for . The point is that such a function is not real analytic. The base functions considered in are all real analytic, and real analytic functions are preserved by composition, so we cannot get such a function by composition from our base functions. Thus, we consider the following continuous approximation on ([4, Lemma 19]):
Lemma 70 ([4]). We set . For all integer , for all , , where .
Having yields a function in with the same property: we avoid the computation of by a substitution of a variable, and using a multiplication. We write for : we have . Furthermore, a real analytic function constant on some interval (we assumed it is 0 for ) is constant. Hence, the above-considered function cannot be real analytic: implementing this trick cannot be done directly using our base functions and only compositions. In Proposition 71, we do a similar construction, but we improve it to deal with errors and not exact functions and . Furthermore, the purpose of the function is to correct errors around integers, i.e. around : it is possibly around other for some . Then, we assume that, for , , for any integer , to have a similar reasoning as the one above, where .
Manon BLANC
Proposition 71 (Simulating a discrete ODE by a continuous ODE [6]). Suppose that, in (1), we replace function and function by some suitable approximations: we take , , such that and , and take constant big enough. Then the solution of the obtained ODE continuously simulates the discrete ODE, with error at most if is taken sufficiently small. To guarantee , it is sufficient to take and for some polynomial .
The main idea is that the constructions always replace every function with another not changing much locally (i.e. changes with an error we control). This is the key that provides a robust ODE as in Definition 14, leading to polynomial space complexity. Whenever there is a discrete ODE defining some function , one can construct some continuous ODE, using only functions from , such that one of its projections provides , where whenever , for some . The simulation of Proposition 71 is computable in polynomial time. The sine function is computable in polynomial time (adapting [31]), so is (consider the Taylor expansion) and the other functions of . FPTIME is closed under composition.