[email protected] 22institutetext: Centre for Quantum Software and Information, University of Technology Sydney, Sydney, Australia.
[email protected]
A Probabilistic Logic for Verifying Continuous-time Markov Chains
Abstract
A continuous-time Markov chain (CTMC) execution is a continuous class of probability distributions over states. This paper proposes a probabilistic linear-time temporal logic, namely continuous-time linear logic (CLL), to reason about the probability distribution execution of CTMCs. We define the syntax of CLL on the space of probability distributions. The syntax of CLL includes multiphase timed until formulas, and the semantics of CLL allows time reset to study relatively temporal properties. We derive a corresponding model-checking algorithm for CLL formulas. The correctness of the model-checking algorithm depends on Schanuel’s conjecture, a central open problem in transcendental number theory. Furthermore, we provide a running example of CTMCs to illustrate our method.
1 Introduction
As a popular model of probabilistic continuous-time systems, continuous-time Markov chains (CTMCs) have been extensively studied since Kolmogorov [1]. In the recent 20 years, probabilistic continuous-time model checking receives much attention. Adopting probabilistic computational tree logic (PCTL) [2] to this context with extra multiphase timed until formulas , for state formula and time interval , Aziz et al. proposed continuous stochastic logic (CSL) to specify the branching-time properties of CTMCs and the model-checking problem for CSL is decidable [3]. After that, efficient model-checking algorithms were developed by transient analysis of CTMCs using uniformization [4] and stratification [5] for a restricted version (path formulas are restricted to single until formulas ) and a full version of CSL, respectively. These algorithms have been practically implemented in model checkers PRISM [6], MRMC [7] and STORM [8]. Further details can be found in an excellent survey [9].
There are also different ways to specify the linear-time properties of CTMCs. Timed automata were first used to achieve this task [10, 11, 12, 13, 14], and then metric temporal logic (MTL) [15] was also considered in this context. Subsequently, the probability of “the system being in state within five-time units after having continuously remained in state ” can be computed. However, some statements cannot be specified and verified because of the lack of a probabilistic linear-time temporal logic, for instance “the system being in state with high probability () within five-time units after having continuously remained in state with low probability ()”. Furthermore, this probabilistic property cannot be expressed by CSL because CSL cannot express properties that are defined across several state transitions of the same time length in the execution of a CTMC.
In this paper, targeting to express the mentioned probabilistic linear-time properties, we introduce continuous-time linear logic (CLL). In particular, we adopt the viewpoint used in [16] by regarding CTMCs as transformers of probability distributions over states. CLL studies the properties of the probability distribution execution generated by a given initial probability distribution over time. By the fundamental difference between the views of state executions and probability distribution executions of CTMCs, CLL and CSL are incomparable and complementary, as the relation between probabilistic linear-time temporal logic (PLTL) and PCTL in model checking discrete-time Markov chains [16, Section 3.3].
The atomic propositions of CLL are explained on the space of probability distributions over states of CTMCs. We apply the method of symbolic dynamics to the probability distributions of CTMCs. To be specific, we symbolize the probability value space into a finite set of intervals . A probability distribution over its set of states is then represented symbolically as a set of symbols
where each symbol asserts , i.e., the probability of state in distribution falls in interval . For example, means the system is in state with a probability in to . The symbolization idea of distributions has been considered in [16]: choosing a disjoint cover of :
Here, we remove this restriction and enrich the expressiveness of . A crucial fact about this symbolization is that the set is finite. Consequently, the (probability distribution) execution path generated by an initial probability distribution induces a sequence of symbols in over time. Therefore, the dynamics of CTMCs can be studied in terms of a (real-time) language over the alphabet , which is the set of atomic propositions of CLL.
Different from non-probabilistic linear-time temporal logics — linear-time temporal logic (LTL) and MTL, CLL has two types of formulas: state formulas and path formulas. The state formulas are constructed using propositional connectives. The path formulas are obtained by propositional connectives and a temporal modal operator timed until for a bounded time interval , as in MTL and CSL. The standard next-step temporal operator in LTL is meaningless in continuous-time systems since the time domain (real numbers) is uncountable. As a result, CLL can express the above mentioned probabilistic property “the system is at state with high probability () within 5 time units after having continuously remained at state with low probability ()” in a path formula:
In this single until formula, there is a time instant at which state with low probability transits to state with high probability. Then we illustrate this on the following timeline.
Furthermore, CLL allows multiphase timed until formulas. The semantics of the formulas focuses on relative time intervals, i.e., time can be reset as in timed automata [17, 18], while those of CSL [3] are for absolute time intervals. Subsequently, CLL can express not only relatively but also absolutely temporal properties of CTMCs.
We illustrate the significant difference between relatively temporal properties and absolutely temporal properties of CTMCs. For instance, “before probability distributions transition happening in 3 to 7 time units, the system always stays at state with a high probability ” can be formalized in path formulae
As we can see, there are two time instants, namely and , happening distribution transitions. Time is reset to 0 after the first distribution transition happens and thus is relative to . More clearly, we depict this on the following timeline.
An absolute version is “probability distribution transition happens and the system always stays at state with a high probability ( 0.9) in 3 to 7 time units”
We can get a clear timeline representation by simply adding to that of . Assume that ,
Time reset enriches the expressiveness of CLL but introduces more difficulties to model checking CLL than CSL. We cross this by translating relative time to the absolute one. As a result, we develop an algorithm to model check CTMCs against CLL formulas. More precisely, we reduce the model-checking problem to a reachability problem of absolute time intervals. The reachability problem corresponds to the real root isolation problem of real polynomial-exponential functions (PEFs) over the field of algebraic numbers, an extensively studied question in recent symbolic and algebraic computation community (e.g. [19, 20, 21]). By developing a state-of-the-art real root isolation algorithm, we resolve the latter problem under the assumption of the validity of Schanuel’s conjecture, a central open question in transcendental number theory [22]. This conjecture has also been the footstone of the correctness of many recent model-checking algorithms, including the decidability of continuous-time Markov decision processes [23], the synthesizing inductive invariants for continuous linear dynamical systems [24], the termination analysis for probabilistic programs with delays [25], and reachability analysis for dynamical systems [20].
In summary, the main contributions of this paper are as follows.
-
•
Introducing a probabilistic logic, namely continuous-time linear logic (CLL), for reasoning about CTMCs;
-
•
Developing a state-of-the-art real root isolation algorithm for PEFs over the field of algebraic numbers for checking atomic propositions of CLL;
-
•
Proving that model checking CTMCs against CLL formulas is decidable subject to Schanuel’s conjecture.
Organization of this paper. In the next section, we give the mathematical preliminaries used in this paper. In Section 3, we recall the view of CTMCs as distribution transformers. After that, the symbolic dynamics of CTMCs are introduced by symbolizing distributions over states of CTMCs in Section 4. In the subsequent section, we present our continuous-time probabilistic temporal logic CLL. In Section 6, we develop an algorithm to solve the CLL model checking problem. A case study and related works are shown in Sections 7 and 8, respectively. We summarize our results and point out future research directions in the final section.
2 Preliminaries
For the convenience of the readers, we review basic definitions and notations of number theory, particularly Schanuel’s conjecture.
Throughout this paper, we write and for the fields of all complex, real, rational and algebraic numbers, respectively. In addition, denotes the set of all integer numbers. For , we use and to denote the set of polynomials in with coefficients in and -by- matrices with every entry in , respectively. Furthermore, for , we use to denote the set of positive elements (including 0) of .
A bounded (time) interval is a subset of , which may be open, half-open or closed with one of the following forms:
where and ( is only allowed in the case of ). Here, and are called the left and right endpoints of , respectively. Conveniently, we use and to denote and , respectively. In this paper, we only consider bounded intervals.
For reasoning about the temporal properties, we further define the addition and subtraction of (time) intervals. The expression or , for , denotes the interval . Similarly, stands for the interval if . Furthermore, for two intervals and ,
Two intervals and are disjoint if their intersection is an empty set, i.e., . Let us see some concrete examples: , , and are disjoint. It is obvious that all calculations of time intervals in the above are easy to be computed.
An algebraic number is a complex number that is a root of a non-zero polynomial in one variable with rational coefficients (or equivalent to integer coefficients, by eliminating denominators). An algebraic number is represented by where is the minimal polynomial of , and is an approximation of such that and is the only root of in the open ball . The minimal polynomial of is the polynomial with the smallest degree in such that is a root of the polynomial and the coefficient of the highest-degree term is 1. Any root of is algebraic. Moreover, given the representations of , the representations of and can be computed in polynomial time, so does the equality checking [26].
Furthermore, a complex number is called transcendental if it is not an algebraic number. In general, it is challenging to verify relationships between transcendental numbers [27]. On the other hand, one can use the Lindemann-Weierstrass theorem to compare some transcendental numbers. The transcendence of and are direct corollaries of this theorem.
Theorem 2.1 (Lindemann-Weierstrass theorem)
Let be pairwise distinct algebraic complex numbers. Then for non-zero algebraic numbers .
The following concepts are introduced to study the general relation between transcendental numbers.
Definition 1 (Algebraic independence)
A set of complex numbers is algebraically independent over if the elements of do not satisfy any nontrivial (non-constant) polynomial equation with coefficients in .
By the above definition, for any transcendental number , is algebraically independent over , while for any algebraic number is not. Thus, a set of complex numbers that is algebraically independent over must consist of transcendental numbers. is also algebraically independent over for any positive integer [28]. Checking the algebraic independence is challenging. For example, it is still widely open whether is algebraically independent over .
Definition 2 (Extension field)
Given two fields , is an extension field of , denoted by , if the operations of are those of restricted to .
For example, under the usual notions of addition and multiplication, the field of complex numbers is an extension field of real numbers.
Definition 3 (Transcendence degree)
Let be an extension field of , the transcendence degree of over is defined as the largest cardinality of an algebraically independent subset of over .
For instance, let and be two extension fields of . Then the transcendence degree of them are and , respectively, by noting that is a transcendental number and is an algebraic number.
Now, Schanuel’s conjecture is ready to be presented.
Conjecture 1 (Schanuel’s conjecture)
Given any complex numbers that are linearly independent over , the extension field has transcendence degree of at least over .
Stephen Schanuel proposed this conjecture during a course given by Serge Lang at Columbia in the 1960s [22]. Schanuel’s conjecture concerns the transcendence degree of certain field extensions of the rational numbers. The conjecture, if proven, would generalize the most well-known results in transcendental number theory significantly [29, 30]. For example, the algebraical independence of would simply follow by setting and , and using Euler’s identity .
3 Continuous-time Markov Chains as Distributions Transformers
We begin with the definition of continuous-time Markov chains (CTMCs). A CTMC is a Markovian (memoryless) stochastic process that takes values on a finite state set () and evolves in continuous-time . Formally,
Definition 4
A CTMC is a pair , where () is a finite state set and is a transition rate matrix.
A transition rate matrix is a matrix whose off-diagonal entries are nonnegative rational numbers, representing the transition rate from state to state , while the diagonal entries are constrained to be for all . Consequently, the column summations of are all zero.
The evolution of a CTMC can be regarded as a distribution transformer. Given initial distribution , the distribution at time is:
where is denoted as the set of all probability distributions over . We call the probability distribution space of CTMCs. An execution path of CTMCs is a continuous function indexed by initial distribution :
(1) |
Example 1
We recall the illustrating example of CTMC in [3, Figure 1] as the running example in our work. In particular, is a 5-dimensional CTMC with initial distribution , where and
4 Symbolic Dynamics of CTMCs
In this section, we introduce symbolic dynamics to characterize the properties of the probability distribution space of CTMCs.
First, we fix a finite set of intervals , where the endpoints of each are rational numbers. With the states , we define the symbolization of distributions as a function:
(2) |
where denotes the Cartesian product, and is the power set of . asserts that the probability of state s in distribution is in the interval . The symbolization of distributions is a generalization of the discretization of distributions with for all which was studied in [16]. This generalization increases the expressiveness of our continuous linear-time logic introduced in the next section. Now, we can represent any given probability distribution by finite symbols from . For example, suppose
(3) |
and then the initial distribution in Example 1 is symbolized as
(4) | ||||
As we can see from the above example, the symbolization of distributions on states considers the exact probabilities (singleton intervals) of the states and the range of their possibilities.
Next, we introduce the symbolization to CTMCs,
Definition 5
A symbolized CTMC is a tuple , where is a CTMC and is a finite set of intervals in .
As we can see, the set of intervals is picked depending on CTMCs. Then, we extend this symbolization to the path :
(5) |
Definition 6
Given a symbolized CTMC , is a symbolic execution path of .
Given a symbolized CTMC , the path of CTMC over real numbers generated by probability distribution induces a symbolic execution path over finite symbols . Subsequently, the dynamics of CTMCs can be studied in terms of a language over . In other words, we can study the temporal properties of CTMCs in the context of symbolized CTMCs.
5 Continuous Linear-time Logic
In this section, we introduce continuous linear-time logic (CLL), a probabilistic linear-time temporal logic, to specify the temporal properties of a symbolized CTMC .
CLL has two types of formulas: state formulas and path formulas. The state formulas are constructed using propositional connectives. The path formulas are obtained by propositional connectives and a temporal modal operator timed until for a bounded time interval , as in MTL and CSL. Furthermore, multiphase timed until formulas are allowed to enrich the expressiveness of CLL. More importantly, time reset is involved in these multiphase formulas. Thus absolutely and relatively temporal properties of CTMCs can be studied.
Definition 7
The state formulas of CLL are described according to the following syntax:
where denotes as the set of atomic propositions.
The path formulas of CLL are constructed by the following syntax:
where is a positive integer, for all , is a state formula, and ’s are time intervals with the endpoints in , i.e., each is one of the following forms:
The semantics of CLL state formulas is defined on the set of probability distributions over with the symbolized function in Eq.(2) of Section 4.
-
(1)
for all probability distributions ;
-
(2)
iff ;
-
(3)
iff it is not the case that (or written );
-
(4)
iff and .
The semantics of CLL path formulas is defined on execution paths of CTMC .
-
(1)
for all probability distributions ;
-
(2)
iff there is a time instant such that , and for any , , where iff , and is the distribution of the chain at time instant , i.e., ;
-
(3)
iff it is not the case that (written );
-
(4)
iff and .
Not surprisingly, other Boolean connectives are derived in the standard way, i.e., , and and the path formula follows the same way. Furthermore, we generalize temporal operators (“eventually”) and (“always”) of discrete-time systems into their timed variant and , respectively, in the following:
For in multiphase timed until formulas, the until operator is a timed variant of the until operator of LTL; the path formula asserts that is satisfied at some time instant in the interval and that at all preceding time instants in , holds. For example,
as mentioned in introduction section.
For general , the CLL path formula is explained over the induction on . We first mention that is right-associative, e.g., stands for . This makes time reset, i.e., and do not have to be disjoint, and the starting time point of is based on some time instant in . Recall the multiphase timed until formula in introduction section and this formula expresses a relative time property:
which is different to the following CLL path formula representing an absolutely temporal property of CTMCs:
As an example, we clarify the semantics of CLL by comparing the above two path formulas in general forms:
-
(1)
asserts that there are time instants such that and for any and , and , where This is more clear in the following timeline.
-
(2)
asserts that there are time instants such that and , and for any and , and , where .
Before solving the model-checking problem of CTMCs against CLL formulas in the next section, we shall first discuss what can be specified in our logic CLL.
Given a CTMC , CLL path formula expresses a liveness property that state is eventually reached with probability one before time instant . In terms of safety properties, formula represents that state is never reached (reached with probability zero) between time instants and . Furthermore, setting the intervals nontrivial (neither or ), liveness and safety properties can be asserted with probabilities, such as and . For multiphase timed until formula where the number of is 100, asserts that the probability of state is beyond in every time instant to , and this happens at least 100 times.
Next, we can classify members of as representing “low” and “high” probabilities. For example, if contains 3 intervals , we can declare the first interval as “low” and the last interval as “high”. In this case says that, in time interval , whenever the probability of state is low, the probability of state will be high.
6 CLL Model Checking
In this section, we provide an algorithm to model check CTMCs against CLL formulas, i.e., the following CLL model-checking problem — Problem 1 is decidable.
Problem 1 (CLL Model-checking Problem)
Given a symbolized CTMC with an initial distribution and a CLL path formula on , the goal is to decide whether , where is an execution path defined in Eq.(1).
In particular, we show that
Theorem 6.1
Under the condition that Schanuel’s conjecture holds, the CLL model-checking problem in Problem 1 is decidable.
In the following, we prove the above theorem from checking basic formulas — atomic propositions to the most complex one — nontrivial multiphase timed until formulas. For readability, we put the proofs of all results in Appendix 0.A.
We start with the simplest case of atomic proposition . By the semantics of CLL, if and only if . To check this, we first observe that the execution path of CTMCs is a system of polynomial exponential functions (PEFs).
Definition 8
A function is a polynomial-exponential function (PEF) if has the following form:
(6) |
where for all , and are fields. Without loss of generality, we assume that ’s are distinct.
Generally, for a PEF with the range in complex numbers , is a PEF with the range in real numbers , where is the complex conjugate of . The factor is omitted whenever convenient, i.e., . is called a root of a function if . PEFs often appear in transcendental number theory as auxiliary functions in the proofs involving the exponential function [31].
Lemma 1
Given a CTMC with , , and an initial distribution , for any , , the -th entry of , can be expressed as a PEF as in Eq.(6) with .
By the above lemma, for a given in some bounded time interval (to be specific in the latter discussion), is determined by the algebraic structure of PEF in . That is all maximum intervals such that for all , where interval is called maximum for if no sub-intervals such that the property holds, i.e., for all . Then if and only if for some maximum interval . So, we aim to compute the set of all maximum intervals. By the continuity of PEF , this can be done by identifying a real root isolation of the following PEF in :
A (real) root isolation of function in interval is a set of mutually disjoint intervals, denoted by for such that
-
•
for any , there is one and only one root of in ;
-
•
for any root of , for some .
Furthermore, if has no any root in , then .
Although there are infinite kinds of real root isolations of in , the number of isolation intervals equals to the number of distinct roots of in .
Finding real root isolations of PEFs is a long-standing problem and can be at least backtracked to Ritt’s paper [32] in 1929. Some following results were obtained since the last century (e.g. [33, 34]). This problem is essential in the reachability analysis of dynamical systems, one active field of symbolic and algebraic computation. In the case of and in [19], an algorithm named ISOL was proposed to isolate all real roots of . Later, this algorithm has been extended to the case of and [20]. A variant of the problem has also been studied in [21]. The correctness of these algorithms is based on Schanuel’s conjecture. Other works are using Schanuel’s conjecture to do the root isolation of other functions, such as exp-log functions [35] and tame elementary functions [36].
By Lemma 1, we pursue this problem in the context of CTMCs. The distinct feature of solving real root isolations of PEFs in our paper is to deal with complex numbers , more specifically algebraic numbers , i.e., . At the same time, to the best of our knowledge, all the previous works can only handle the case over . Here, we develop a state-of-the-art real root isolation algorithm for PEFs over algebraic numbers. Thus from now on, we always assume that PEFs are over , i.e., in Eq.(6). In this case, it is worth noting that whether a PEF has a root in a given interval, is decidable subject to Schanuel’s Conjecture if is bounded [37], which falls in the situation we consider in this paper.
Theorem 6.2 ([37])
Under the condition that Schanuel’s conjecture holds, there is an algorithm to check whether a PEF has a root in interval , i.e., whether .
In this paper, we extend the above checking to computing of PEF .
Theorem 6.3
Under the condition that Schanuel’s conjecture holds, there is an algorithm to find real root isolation for any PEF and interval . Furthermore, the number of real roots is finite, i.e., .
We can compute the set of all maximum intervals with the above theorem to check atomic propositions. Furthermore, we can compare the values of any real roots of PEFs, which is important in model checking general multiphase timed until formulas at the end of this section.
Lemma 2
Let and be two PEFs with the domains in and , and and are roots of them, respectively. Under the condition that Schanuel’s conjecture holds, there is an efficient way to check whether or not for any given rational number .
For model checking general state formula , we can also use real root isolation of some PEF to obtain the set of all maximum intervals such that for all . The reason is that admits conjunctive normal form consisting of atomic propositions. See the proof of the following lemma in Appendix 0.A.
Lemma 3
Under the condition that Schanuel’s conjecture holds, given a time interval , the set of all maximum intervals in satisfying can be computed, where is a state formula of CLL. Furthermore, the number of all intervals in is finite; the left and right endpoints of each interval in are roots of PEFs.
At last, we characterize the multiphase timed until formulas by the reachability analysis of time intervals (instants).
Lemma 4
if and only if there exist time intervals with such that
-
•
The satisfaction of intervals: for all , for all , and , where and ;
-
•
The order of intervals: for all , and .
By the above lemma, the problem of checking multiphase timed until formulas is reduced to verify the existence of a sequence of time intervals.
Now we can show the proof of Theorem 6.1.
Proof
Recall that the nontrivial step is to model check multiphase timed until formula where is a set of bounded rational intervals in , and for , is a state formula.
By Lemma 4, for model checking the above formula, we only need to check the existence of time intervals illustrated in the lemma. The following procedure can construct such a set of intervals if it exists:
-
•
(1) Let ;
-
•
(2) For each , obtaining the set in of all maximum intervals such that for all of , where ; this can be done by Lemma 3. Noting that can be the empty set, i.e., ;
-
•
(3) Let from to . First, updating :
(7) The above updates can be finished by Lemma 2. If , then the formula is not satisfied;
-
•
(4) Updating : for each , we replace with for some constant if there is an with such that where ; Otherwise, remove this element from . Again, this can be done by Lemma 3. If , then the formula is not satisfied;
-
•
(5) Finally, let from to , updating :
Thus after the above procedure, we have non-empty sets with the following properties.
-
•
for each , for all and , and , where ;
-
•
for each , , there exists at least one such that and .
Therefore, we can get a set of intervals satisfying the two conditions in Lemma 4 if it exists. On the other hand, it is easy to check that all such must be in , i.e., for each , for some . This ensures the correctness of the above procedure.
By the above constructive analysis, we give an algorithm for model checking CTMCs against CLL formulas. Focusing on the decidability problem, we do not provide the pseudocode of the algorithm. Alternatively, we implement a numerical experiment to illustrate the checking procedure in the next section.
7 Numerical Implementation
In this section, we implement a case study of checking CTMCs against CLL formulas. Here, we consider a symbolized CTMC , where is the CTMC in Example 1 and finite set is the one considered in Eq.(3). We check the properties of given by the following two CLL path formulas mentioned in the introduction for different initial distributions.
By Jordan decomposition, we have where
Then, we consider an initial distribution as the same as the one in Example 1. Then we have that the value of is as follows:
As we only consider states and in formulas and , we focus on the following PEFs: and .
Next, we initialize the model checking procedures introduced in the proof of Theorem 6.1. First, we compute the set of all maximum intervals such that for , i.e., for . We obtain by the real root isolation algorithm mentioned in Theorem 6.3, and this indicates that where is the path induced by and defined in Eq.(1).
To check whether , we compute the set of all maximum intervals such that for , i.e., for . Again, we obtain by the real root isolation algorithm in Theorem 6.3. Therefore, .
In the following, we consider a different initial distribution as follows:
The key PEFs are: and
Again, we initialize the model checking procedures introduced in the proof of Theorem 6.1. We first compute the set of all maximum intervals such that for , i.e., for . This can be done by finding a real root isolation of the following PEF:
8 Related Works
Agrawal et al. [16] introduced probabilistic linear-time temporal logic (PLTL) to reason about discrete-time Markov chains in the context of distribution transformers as we did for CTMCs in this paper. Interestingly, the Skolem Problem can be reduced to the model checking problem for the logic PLTL [38]. The Skolem Problem asks whether a given linear recurrence sequence has a zero term and plays a vital role in the reachability analysis of linear dynamical systems. Unfortunately, the decidability of the problem remains open [39]. Recently, the Continuous Skolem Problem has been proposed with good behavior (the problem is decidable) and forms a fundamental decision problem concerning reachability in continuous-time linear dynamical systems [37]. Not surprisingly, the Continuous Skolem Problem can be reduced to model-checking CLL. The primary step of verifying CLL formulas is to find a real root isolation of a PEF in a given interval. Chonev, Ouaknine and Worrell reformulated the Continuous Skolem Problem in terms of whether a PEF has a root in a given interval, which is decidable subject to Schanuel’s conjecture [37]. An algorithm for finding root isolation can also answer the problem of checking the existence of the roots of a PEF. However, the reverse does not work in general. Therefore, the decidability of the Continuous Skolem Problem cannot be applied to establish that of our CLL model checking.
Remark 1
By adopting the method in this paper, we established the decidability of model checking quantum CTMCs against signal temporal logic [40]. Again, we need Schanuel’s conjecture to guarantee the correctness. A Lindblad’s master equation governs a quantum CTMC and a more general real-time probabilistic Markov model than a CTMC, i.e., a CTMC is an instance of quantum CTMCs. We converted the evolution of Lindblad’s master equation into a distribution transformer that preserves the laws of quantum mechanics. We reduced the model-checking problem of quantum CTMCs to the real root isolation problem, which we considered in this paper, and thus our method could be applied to it.
9 Conclusion
This paper revisited the study of temporal properties of finite-state CTMCs by symbolizing the probability value space into a finite set of intervals. To specify relatively and absolutely temporal properties, we propose a probabilistic logic for CTMCs, namely continuous linear-time logic (CLL). We have considered the model checking problem in this setting. Our main result is that a state-of-the-art real root isolation algorithm over the field of algebraic numbers was proposed to establish the decidability of the model checking problem under the condition that Schanuel’s conjecture holds.
This paper aims to show decidability in as simple a fashion as possible without paying much attention to complexity issues. Faster algorithms on our current constructions would significantly improve from a practical standpoint.
Acknowledgments
We want to thank Professor Joost-Pieter Katoen for his invaluable feedback and for pointing out the references [12, 13, 23]. This work is supported by the National Key RD Program of China (Grant No: 2018YFA0306701), the National Natural Science Foundation of China (Grant No: 61832015), ARC Discovery Program (#DP210102449) and ARC DECRA (#DE180100156).
References
- [1] Andrei Kolmogoroff. Über die analytischen methoden in der wahrscheinlichkeitsrechnung. Mathematische Annalen, 104(1):415–458, 1931.
- [2] Hans Hansson and Bengt Jonsson. A logic for reasoning about time and reliability. Formal Aspects of Computing, 6(5):512–535, 1994.
- [3] Adnan Aziz, Kumud Sanwal, Vigyan Singhal, and Robert Brayton. Model-checking continuous-time Markov chains. ACM Transactions on Computational Logic, 1(1):162–170, 2000.
- [4] Christel Baier, Boudewijn Haverkort, Holger Hermanns, and J-P Katoen. Model-checking algorithms for continuous-time Markov chains. IEEE Transactions on Software Engineering, 29(6):524–541, 2003.
- [5] Lijun Zhang, David N Jansen, Flemming Nielson, and Holger Hermanns. Automata-based CSL model checking. In International Colloquium on Automata, Languages, and Programming, pages 271–282. Springer, 2011.
- [6] Marta Kwiatkowska, Gethin Norman, and David Parker. PRISM: Probabilistic symbolic model checker. In International Conference on Modelling Techniques and Tools for Computer Performance Evaluation, pages 200–204. Springer, 2002.
- [7] Joost-Pieter Katoen, Ivan S Zapreev, Ernst Moritz Hahn, Holger Hermanns, and David N Jansen. The ins and outs of the probabilistic model checker MRMC. Performance Evaluation, 68(2):90–104, 2011.
- [8] Christian Dehnert, Sebastian Junges, Joost-Pieter Katoen, and Matthias Volk. A storm is coming: A modern probabilistic model checker. In International Conference on Computer Aided Verification, pages 592–600. Springer, 2017.
- [9] Joost-Pieter Katoen. The probabilistic model checking landscape. In Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, pages 31–45. ACM, 2016.
- [10] Benot Barbot, Taolue Chen, Tingting Han, Joost-Pieter Katoen, and Alexandru Mereacre. Efficient CTMC model checking of linear real-time objectives. In International Conference on Tools and Algorithms for the Construction and Analysis of Systems, pages 128–142. Springer, 2011.
- [11] Taolue Chen, Tingting Han, Joost-Pieter Katoen, and Alexandru Mereacre. Quantitative model checking of continuous-time Markov chains against timed automata specifications. In 2009 24th Annual IEEE Symposium on Logic In Computer Science, pages 309–318. IEEE, 2009.
- [12] Taolue Chen, Tingting Han, Joost-Pieter Katoen, and Alexandru Mereacre. Model checking of continuous-time Markov chains against timed automata specifications. Logical Methods in Computer Science, 7(1), Mar 2011.
- [13] Taolue Chen, Tingting Han, Joost-Pieter Katoen, and Alexandru Mereacre. Observing continuous-time mdps by 1-clock timed automata. In International Workshop on Reachability Problems, pages 2–25. Springer, 2011.
- [14] Yijun Feng, Joost-Pieter Katoen, Haokun Li, Bican Xia, and Naijun Zhan. Monitoring CTMCs by multi-clock timed automata. In International Conference on Computer Aided Verification, pages 507–526. Springer, 2018.
- [15] Taolue Chen, Marco Diciolla, Marta Kwiatkowska, and Alexandru Mereacre. Time-bounded verification of CTMCs against real-time specifications. In International Conference on Formal Modeling and Analysis of Timed Systems, pages 26–42. Springer, 2011.
- [16] Manindra Agrawal, Sundararaman Akshay, Blaise Genest, and PS Thiagarajan. Approximate verification of the symbolic dynamics of Markov chains. Journal of the ACM (JACM), 62(1):2, 2015.
- [17] Rajeev Alur and David L. Dill. A theory of timed automata. Theoretical Computer Science, 126:183–235, 1994.
- [18] Rajeev Alur, Thomas A Henzinger, and Moshe Y Vardi. Parametric real-time reasoning. In Proceedings of the Twenty-fifth Annual ACM Symposium on Theory of Computing, pages 592–601, 1993.
- [19] Melanie Achatz, Scott McCallum, and Volker Weispfenning. Deciding polynomial-exponential problems. In Proceedings of the Twenty-first International Symposium on Symbolic and Algebraic Computation, pages 215–222. ACM, 2008.
- [20] Ting Gan, Mingshuai Chen, Yangjia Li, Bican Xia, and Naijun Zhan. Reachability analysis for solvable dynamical systems. IEEE Transactions on Automatic Control, 63(7):2003–2018, 2017.
- [21] Jing-Cao Li, Cheng-Chao Huang, Ming Xu, and Zhi-Bin Li. Positive root isolation for poly-powers. In Proceedings of the ACM on International Symposium on Symbolic and Algebraic Computation, pages 325–332. ACM, 2016.
- [22] Serge Lang. Introduction to transcendental numbers. Addison-Wesley Pub. Co., 1966.
- [23] Rupak Majumdar, Mahmoud Salamati, and Sadegh Soudjani. On Decidability of Time-Bounded Reachability in CTMDPs. In Artur Czumaj, Anuj Dawar, and Emanuela Merelli, editors, 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), volume 168 of Leibniz International Proceedings in Informatics (LIPIcs), pages 133:1–133:19, Dagstuhl, Germany, 2020. Schloss Dagstuhl–Leibniz-Zentrum für Informatik.
- [24] Shaull Almagor, Edon Kelmendi, Joël Ouaknine, and James Worrell. Invariants for continuous linear dynamical systems. arXiv preprint arXiv:2004.11661, 2020.
- [25] Ming Xu and Yuxin Deng. Time-bounded termination analysis for probabilistic programs with delays. Information and Computation, 275:104634, 2020.
- [26] Henri Cohen. A course in computational algebraic number theory, volume 138. Springer Science & Business Media, 2013.
- [27] Daniel Richardson. How to recognize zero. Journal of Symbolic Computation, 24(6):627–645, 1997.
- [28] Yu Nesterenko. Modular functions and transcendence problems. Comptes rendus de l’Académie des sciences. Série 1, Mathématique, 322(10):909–914, 1996.
- [29] Angus Macintyre and Alex J Wilkie. On the decidability of the real exponential field. 1996.
- [30] Giuseppina Terzo. Some consequences of Schanuel’s conjecture in exponential rings. Communications in Algebra®, 36(3):1171–1189, 2008.
- [31] Alan Baker. Transcendental number theory. Cambridge university press, 1990.
- [32] Joseph Fels Ritt. On the zeros of exponential polynomials. Transactions of the American Mathematical Society, 31(4):680–686, 1929.
- [33] Cerino E Avellar and Jack K Hale. On the zeros of exponential polynomials. Journal of Mathematical Analysis and Applications, 73(2):434–452, 1980.
- [34] Robert Tijdeman. On the number of zeros of general exponential polynomials. In Indagationes Mathematicae (Proceedings), volume 74, pages 1–7. North-Holland, 1971.
- [35] Adam Strzebonski. Real root isolation for exp-log functions. In Proceedings of the Twenty-first International Symposium on Symbolic and Algebraic Computation, pages 303–314, 2008.
- [36] Adam Strzebonski. Real root isolation for tame elementary functions. In Proceedings of the 2009 International Symposium on Symbolic and Algebraic Computation, pages 341–350, 2009.
- [37] Ventsislav Chonev, Joël Ouaknine, and James Worrell. On the Skolem Problem for Continuous Linear Dynamical Systems. In Ioannis Chatzigiannakis, Michael Mitzenmacher, Yuval Rabani, and Davide Sangiorgi, editors, 43rd International Colloquium on Automata, Languages, and Programming (ICALP 2016), volume 55 of Leibniz International Proceedings in Informatics (LIPIcs), pages 100:1–100:13, Dagstuhl, Germany, 2016. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik.
- [38] S. Akshay, Timos Antonopoulos, Joël Ouaknine, and James Worrell. Reachability problems for Markov chains. Information Processing Letters, 115(2):155–158, 2015.
- [39] Joël Ouaknine and James Worrell. Decision problems for linear recurrence sequences. In International Workshop on Reachability Problems, pages 21–28. Springer, 2012.
- [40] Ming Xu, Jingyi Mei, Ji Guan, and Nengkun Yu. Model Checking Quantum Continuous-Time Markov Chains. In Serge Haddad and Daniele Varacca, editors, 32nd International Conference on Concurrency Theory (CONCUR 2021), volume 203 of Leibniz International Proceedings in Informatics (LIPIcs), pages 13:1–13:17, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.
- [41] Taolue Chen, Nengkun Yu, and Tingting Han. Continuous-time orbit problems are decidable in polynomial-time. Information Processing Letters, 115(1):11–14, 2015.
- [42] Christel Baier and Joost-Pieter Katoen. Principles of model checking. MIT press, 2008.
- [43] Rüdiger Loos. Computing in algebraic extensions. In Computer Algebra, pages 173–187. Springer, 1982.
- [44] Cheng-Chao Huang, Jing-Cao Li, Ming Xu, and Zhi-Bin Li. Positive root isolation for poly-powers by exclusion and differentiation. Journal of Symbolic Computation, 85:148–169, 2018.
- [45] Michael Trott. The Mathematica guidebook for symbolics. Springer Science & Business Media, 2007.
Appendix 0.A Appendices: Proofs
0.A.1 Proof of Lemma 1
We need to use the Jordan decomposition to prove Lemma 1.
Definition 9
A Jordan block is a square matrix of the following form.
A square matrix is in Jordan norm form if
where is a Jordan block for each .
Because is algebraic closed, we know that
Proposition 1 ([41])
Any matrix is algebraically similar to a matrix in Jordan normal form over the algebraic number field . Namely, there exists some invertible and in Jordan form such that , where is the set of all -by- matrices with every entry being algebraic numbers.
Now we can give the proof of Lemma 1.
Proof
As the elements of are rational, we only need to prove that any entry of can be expressed as a finite sum of for and .
By Proposition 1, we have that there is a such that such that
where is an eigenvalue of and , so is algebraic. Furthermore, , where is the dimension of .
Therefore, . We complete the proof by proving that for each , any entry of can be expressed as a finite sum of for and . Computing , we obtain that
0.A.2 Proof of Lemma 2
Before proving, we need the following fact observed in [3] according to the Lindemann-Weierstrass theorem.
Observation 1
Given a real number of the form where and are algebraic complex numbers, and the are pairwise distinct, there is an effective procedure to compare the values of and for any .
According to Lindemann-Weierstrass theorem, we know that if and only if or for some with . Otherwise, we can compute a good approximation of . For each , can be approximated with an error, the norm of the difference between and the approximation, of less than (for any ) by taking the first terms of the Maclaurin expansion for . This leads to an approximation of within . Since the individual terms in the Maclaurin expansion are algebraic functions of the ’s, it follows that the approximations are algebraic. Then we can check if by the comparision between the approximations and . See [3] for more details.
Proof
First, by Theorem 6.3, isolating the real roots of and , we have and for . Then we first check if . Note that if and only if has a root in . is still a PEF, then we can check whether or not there is a root of it in by Theorem 6.2.
If , we answer whether or not by narrowing and and maintaining the roots of and in the intervals. This can be done as we can arbitrarily narrow the interval by comparing the signs (, or ) of and , and the same way works for narrowing . The sign of for any can be obtained by Observation 1 and Theorem 2.1. Moreover, there is a gap between and , and we can compare and by continuously narrowing and , and comparing and ( and ).
0.A.3 Proof of Lemma 3
Proof
Recall that state formulas of CLL are given by the following grammar:
By the semantics of CLL state formulas, is a formula of propositional logics. So admits conjunctive normal form (CNF) [42, Appendix A.3], i.e.,
where is a literal of or , and and are both finite sets. Furthermore, we observe that is (semantically equivalent to) either an atomic proposition or a disjunction of two atomic propositions. To prove this, let for some interval . We deal with the case of for , and the other situations of can be done by the similar way. In this case, for any distribution , if and only if , i.e. , where and . Therefore,
for some finite sets , for , .
From , by the semantic of CLL, we have that for all , for some . As and all are finite sets, we can check one by one whether or not . Let be the set of all the maximum intervals such that for each , for all . Then
where
and
The left problem is to handle and , and by the continuity of PEFs, the left and right endpoints of and are all the roots of PEFs. It is equivalent to compare the values of two real roots of two (different) PEFs. This can be done by Lemma 2.
0.A.4 Proof of Lemma 4
Proof
We first prove the sufficient direction. Let
Then the above formula is . By the semantic of CLL, we have that there is a time such that , and for any , . Then let
and we get . In the similar way, we have that there is a time such that , and for any , . Iteratively, we get a set of time instants with . For all , let
Then it is easy to check that with are the desired intervals satisfying the above two conditions.
Considering the necessary direction, by the above proof, we only need to identify throughout intervals . Let for all .
0.A.5 Proof of Theorem 6.3
Before presenting the proof of Theorem 6.3, we recall one useful technique from previous works — factoring PEFs.
0.A.5.1 Factoring PEFs
An essential step of finding a real root isolation of a PEF is factoring it into a set of PEFs, such that the resulting PEFs have no multiple roots except for zero. In the following, we introduce a technique to implement this. Before that, we recall some concepts.
Given a root of a function , i.e., , the multiplicity of is the maximum number such that is a factor of , i.e., there exists a function such that . In particular, if , then we call that is a single root; otherwise is a multiple root.
Recall a PEF has the following form:
(8) |
where for all , , . Without loss of generality, we assume ’s are distinct, and use to denote the set of exponent of , i.e., .
Let be a linearly independent basis over of the exponents appearing in such that is a multivariate polynomial with respect to , denoted by
This basis can be obtained by computing a simple extension (e.g. [43], [44, Algorithm 1])
Next, we replace by the indeterminate , and each exponential term by for . Then, we have a multivariate polynomial representation of in the . By the factorization of polynomials, we have
whose greatest square free part is denoted by
Via switching back by and , we have a PEF
(9) |
It is worth noting that the set of roots of is the same to the one of . In the latter, we will prove only has single roots.
At last, a corollary of Schanuel’s conjecture is also needed to prove Theorem 6.3.
Corollary 1
[20, Corollary 3] Let be algebraic numbers that are linearly independent over . Under the condition that Schanuel’s conjecture holds, the transcendence degree of the extension field is at least if .
0.A.5.2 Main Proof
In this subsection, we prove Theorem 6.3 with the help of the exclusion algorithm in [44, Algorithm 2] which can compute a real root isolation for a given simple PEF and interval . Here, a PEF is simple if all roots of are single.
In particular, if has only single roots in (there is no such that ), then we can get a real root isolation by [44, Algorithm 2]. Otherwise, has at least one multiple root, and thus the exclusion algorithm in [44] cannot be used to compute a real root isolation of directly. This can be dealt with by employing factoring PEFs in the last section and the following fact.
Lemma 5
Let be a PEF with respect to , and thus a polynomial with respect to , where is linearly independent over . If the multivariate polynomial representation of is square free, then, assuming that Schanuel’s conjecture holds, has no multiple real root except .
Proof
Since is square free, we may write
where for any , , is irreducible, and and are coprime, i.e., they do not share a polynomial as a factor.
By contradiction, we first prove that
have no nonzero common real root with respect to . Assume that is a common real root of and . By Corollary 1, we have that the transcendence degree of is at least . Thus there must exist elements in that are algebraically independent. Without loss of generality, let be the elements that are algebraically independent. Considering the multivariate polynomial representation, let be the resultant [45, Page 26] of and with respect to . Then is a root of , which is a nontrivial polynomial as
are coprime. Therefore, is a root of some nontrivial polynomial. This contradicts that are algebraically independent.
Next, we prove that has no multiple real root. Suppose
where are nontrivial polynomials and for and . Then we have
Moreover, considering the corresponding multivariate polynomial representation,
From the degree of in the above two polynomials, it is evident to see that is not a factor of . Then, and are coprime, since is irreducible. For the same reason as above, and have no common real roots. Therefore, has no multiple real root.
By the above lemma, for finding a real root isolation of a PEF in some time interval , we first implement the method of factoring PEFs in the last section to get a simple PEF , which shares the same roots with . Then we can implement the exclusion algorithm in [44] to achieve this goal. Finally, we complete the proof of Theorem 6.3 by noting that the number of obtained real root isolations by the algorithm is finite (see the correctness analysis of [44, Algorithm 2]), i.e., .