Manuscript Offprint
arXiv:2608.25139Path Abstraction for Markov Reward Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Arnd Hartmanns and Robert Modderman (✉)
University of Twente, Enschede, The Netherlands · r.modderman@utwente.nl
Abstract. Path abstraction originated as a technique for counterexample refinement in probabilistic model checking. Given a discrete-time Markov chain, it summarises the probabilities passing through a subset of the states onto new transitions of a smaller chain. In earlier work, we proved its correctness and that it is monotonically absorbing. In this paper, we extend path abstraction from reachability probabilities on discrete-time Markov chains to expected rewards on Markov reward models. Working in a novel free monoid view of Markov chains throughout, we prove that path abstraction preserves the Markov reward model structure when abstracting over arbitrary sets of states, and that it remains monotonically absorbing. Finally, we give a numerical recipe, accompanied by a reference implementation in PARI/GP, that computes path abstraction by solving linear equation systems. Its correctness rests on the relationship between expected rewards and expected visiting times of transitions.
1 Introduction
Probabilistic model checking (PMC) [4] automatically verifies quantitative properties of systems that exhibit stochastic behaviour, such as randomised algorithms, communication protocols, and fault-tolerant or energy-aware systems. The most basic formalism that PMC can work on are finite-state discrete-time Markov chains (DTMCs) that step from a state into a discrete probability distribution over successor states. The most basic PMC query on a DTMC model is for reachability probabilities: the probability of eventually reaching a set of goal states from the initial state. Annotating the transitions of a DTMC with real-valued rewards yields a Markov reward model (MRM). On MRMs, we can check expected-reward properties, for example the expected time to termination, the expected number of messages sent successfully, or the system's expected energy consumption. Properties can come as queries, asking for the value, or specifications bounding the value by a threshold from above or below.
Counterexamples are a long-standing and important topic in PMC [2, 8]: when a model violates a specification, a counterexample explains why, which is essential for debugging and for building trust in the verdict. One technique in this area is path abstraction, introduced by Ábrahám et al. [1], which reroutes the
This work was supported by the EU’s Horizon 2020 research and innovation programme under MSCA grant agreement 101008233 (MISSION), by the Interreg North Sea project STORM_SAFE, and by NWO VIDI grant VI.Vidi.223.110 (TruSTy).
A. Hartmanns, R. Modderman
probability mass of all paths through a chosen set of states onto new transitions of a smaller chain. While created for counterexample refinement [2], it also offers an alternative to state elimination [6,7] for solving a DTMC locally, one set of states at a time. Whereas state elimination can blow up the number of transitions, path abstraction never increases it—at the cost of the smallest sub-problems remaining linear equation systems, which can however be much smaller than for the full DTMC and may therefore be solved quickly, even with exact solvers.
Ábrahám et al. [1] apply path abstraction recursively over the strongly connected components (SCCs) of the DTMC. Their paper left some properties that may seem obvious but are crucial for the technique's correctness unproven, in particular that the result of path abstraction is again a DTMC. In earlier work [11], we supplied these proofs, and introduced and proved monotonic absorption: abstracting over a subset first and then over a superset gives the same result as abstracting over the superset directly. In the process, we also generalised the technique from abstracting over SCCs to arbitrary sets of non-absorbing states. A key ingredient of our work was a novel view of DTMCs as structures on the free monoid over their state space, which shortened the definitions and made them more intuitive, and simplified the proofs. All work on path abstraction, however, was so far confined to unbounded reachability probabilities.
Contributions. In this paper, we extend path abstraction from reachability probabilities to expected rewards (ERs): concretely, to the expected accumulated reward to reach a goal, one of the standard PMC queries [10]. We prove that path abstraction over arbitrary abstraction sets preserves the MRM structure and satisfies monotonic absorption. Throughout, we work in the free monoid view, for which we introduce a free monoid definition of MRMs.
Finally, we give a numerical recipe for computing the path abstraction of an MRM over a given abstraction set, with a high-level reference implementation in the computer algebra system PARI/GP [16]. It translates the abstract formulation into concrete matrix problems—solving linear equation systems, as in PMC for DTMCs. Closely related to ERs are the expected visiting times (EVTs) [15] of transitions: the ER of an MRM equals the sum of each transition's EVT multiplied by its reward. Using this connection, we are able to prove that the recipe's concrete computation matches the abstract formulation of path abstraction.
This part of the background is based on [11, Sect. 2], with small updates to the notation for clarity. Notably, we use to indicate the prefix-minimal part of a language (instead of ), and we use red to indicate the function that takes a set of letters and a word and outputs a reduced version of its second argument with respect to its first, which was introduced in [11] with the notation of a minus sign.
Throughout, the set of natural numbers including 0 is and excluding 0 is . For a set , we write for its power set. Given function and , we write for the image .
2.1 Languages and Combinatorics on Words
We first give a recap on languages and combinatorics on words, with some notions we need for our reasoning with path abstraction for MRMs. For the definitions, we use terminology from [14], a standard work on combinatorics on words and theory of languages. Throughout, let be a non-empty set.
Definition 1. The set of all finite sequences with symbols in is denoted by and is called the free monoid on . Any subset of is called a language over alphabet . Elements of are called words over . The symbols of a word as elements of are called the letters of . The empty word of , i.e. the empty sequence, is denoted by . A word can be seen as the singleton language . Words of length 1 can and will be identified with letters.
Given two words , we denote the concatenation of with by . Given two languages , we can form the concatenation of and as . The length of a word is denoted by .
Definition 2. For , let tail( ) denote its tail, i.e. we set tail( ) and for and , we set tail(ax) . Given , we define and call the path concatenation of with .
The reason why is called path concatenation is because of its relation to graph theory: if e.g. in a graph , and are two paths with and , then we obtain their path concatenation as .
Definition 3. Let . Then, is a prefix of , denoted by , if there exists such that . If but , then is a strict prefix of , which is denoted by . The order on , which is a partial order, is the prefix order on .
Definition 4. Given and , we can define its -th power as the -fold concatenation of with itself, where . We let denote the Kleene-Star or Kleene closure of , defined by ; and we define .
Definition 5. Given a language , we can form its prefix-minimal part . We say that a language is a prefix code if it coincides with its prefix-minimal part; i.e. is a prefix code if .
Definition 6. Let . Then, is a factor of , denoted by , if there exist such that .
Definition 7. Let . Then, we let denote the number of factor occurrences in : .
Note that as is finite, , and .
A. Hartmanns, R. Modderman
Example 1. We have , , , , and .
Now, we define a function red, which we call the reduction operator, that takes a word and a set of letters and outputs a “reduced” version of relative to . In [11], was written as .
Definition 8. We define red: inductively with respect to its second argument with two base cases. Given , we set , for all , and for all and we set
We write for the function in . For we write for the inverse image of .
Given , takes all factors of in that are maximal in length and replaces these with their respective first letters. In particular, reduces any non-empty to its first letter and leaves unchanged. Note furthermore that does not contain two consecutive symbols of .
Example 2. Over , we have , , and for all .
Example 3. We can characterise for the case is a word of length 2. Let . Then, we have if ; if ; if ; and if .
We restate two key results on the function red from [11], namely (a slight extension of) [11, Thm. 1.2] and [11, Thm. 1.4].
Theorem 1. Let , , and . Then, we have
Proof. We note that (2) is immediate from [11, Thm. 1.2], and (3) is established straightforwardly using the definitions of red and .
Theorem 2. Let . Then, for all we have
The proofs also hold for the case is infinite: the assumption in [11, Thm 1.2 & 1.4] that should be finite was never used and thus is superfluous.
2.2 Discrete-Time Markov Chains and Markov Reward Models
We start with a standard automata-based definition of discrete-time Markov chains. Throughout, we let S be a finite, non-empty set.
Definition 9. A discrete-time Markov chain (DTMC) with state space is a triple where is called the initial state of , and is a function satisfying for all , called the transition probability function of .
Within PMC, the requirement that holds for all is often too strict, and is in many cases relaxed to , which yields the definition of substochastic DTMC. In this paper, we also do this and henceforth use the term Markov chain to refer to substochastic DTMCs.
Definition 10. For a Markov chain , a pair is a transition in if . A finite sequence of transitions is a path in . The probability of in is defined as the product of the probabilities of its transitions, namely .
It would be useful if we could denote the probability of path simply by . By identifying a path in of the form with the sequence in of the form , we can assign the probability of the path to the corresponding sequence (and probability 0 to sequences that are not paths) and so extend to . To extend to , we also set for all . For all and we then have , but also that with this rule one can show by induction on that for all .
With this alternative notation for transition probability functions, i.e. those that map sequences contained in the free monoid on the state space S to directly, we can define Markov chains in the free monoid setting.
Definition 11. A Markov chain on state space is a triple where is called the initial state of , and is a function satisfying and for all , and for all and , called the transition probability function of .
A function qualifying as a transition probability function in Definition 11 can be extended to by setting, for all ,
which we call the probability mass of L with respect to
The reason why we do not distinguish between languages with coinciding prefix-minimal parts is that the event is implied by the event whenever .
A. Hartmanns, R. Modderman
Definition 12. A Markov reward model (MRM) is a tuple where is a Markov chain as in Definition 11 and is a function satisfying for all for which or , and for all and for which . The function is called a reward function for the Markov chain .
This free-monoid definition of MRMs is new. As path abstraction works on transitions, we w.l.o.g. associate rewards to transitions, not states, here.
Remark 1. A Markov chain or MRM in the free monoid setting corresponds to exactly one in the classical setting—i.e. where has signature and . This is due to the fact that in the free monoid setting, we let and carry the inherent structure that its values on (where and ) can be expressed in terms of those on and —multiplicatively and additively, respectively.
2.3 Probabilistic Model Checking
Given a set of goal states , we are interested in the probability of reaching from , and in the expected reward accumulated before reaching [5, Sect. 10]. We w.l.o.g. assume that , i.e. the goal states are exactly the absorbing states. Let . Then
is the reachability probability of t, and
is the expected reward (ER) to reach t. Note that paths not reaching t are not considered in the sum, so they effectively contribute reward 0 to the ER. Solving or (fully) model checking an MRM means calculating the reachability probability and ER for all paths from to any absorbing state.
3 Path Abstraction
We recall path abstraction as defined in [11, Def. 6], then we extend it to MRMs.
3.1 Path Abstraction for Markov chains and MRMs
Let us first reformulate [11, Def. 6] using our slightly updated notation.
Definition 13. Given and a Markov chain , we define the path abstraction of with respect to as follows. We set which we call the input states of with respect to —i.e. those states of that are reachable from outside in
There are three common ways to handle paths that do not reach the goal in PMC: assign reward 0, reward , or the infinite path’s cumulative reward [17, Sect. 4.1].
one step, including if . Then, we set where we define by
Intuitively, path abstraction removes all transitions that come from or lead to a non-input state in A, and instead adds new transitions that summarise the behaviour inside A directly connecting the input states to the output states of A (i.e. those outside A that had an incoming transition from A). Now for MRMs:
Definition 14. Given and an MRM , we define the path abstraction of with respect to as follows. Writing for the underlying Markov chain of and for the path abstraction of with respect to as defined in Definition 13, we set where we define through
On an MRM, path abstraction takes the expected reward (i.e. rewards multiplied by probabilities, summed) corresponding to passing through the abstraction set from an input to an output state, normalises it by dividing by the (internal) probability of this set of paths, and uses the result as the reward for the new transition. Moving these normalised ERs, instead of the full ERs, onto the new transitions is the key ingredient as to why our new path abstraction works for ERs and satisfies the desired monotonic absorption property.
Example 4. Consider MRM in Fig. 1 on state space . A transition's probability and reward are written as . Let us abstract over . The single input state is , and the output states are and . Effectively, to perform the path abstraction is then to locally model-check the sub-chain with state space indicated with dashed lines in Fig. 1. The result is the (smaller) chain with state space embedded in in Fig. 2. We further abstract over to obtain of Fig. 3, and then over to end up with of Fig. 4. Here, we can directly read off the probability of reaching , or the ER to reach .
3.2 Path Abstraction as Probabilistic Model Checking
Recall the PMC problem of Sect. 2.3: Given the absorbing states as goal states, compute or for all such states . Thus, to perform PMC via path abstraction, we only take abstraction sets not containing absorbing states. Path abstraction for MRMs then stores exactly these quantities in the (fully) path-abstracted MRM . Indeed: by Definitions 13 and 14, for every absorbing with we store as a probability and as a reward onto the transition in .
A. Hartmanns, R. Modderman

Fig. 1. MRM M

Fig. 2.

Fig. 3.

Fig. 4.
To prove correctness of path abstraction as a means to fully model check an MRM with intermediate MRM, we thus wish to prove that path abstracting (1) an MRM outputs another MRM, and (2) preserves reachability probabilities and ERs. In Sect. 4 below, we establish (2) by proving in Theorem 4 that path abstraction for MRMs is monotonically absorbing, after establishing (1), the analogue of which for Markov chains was done in [11]. The fact that we can obtain intermediate MRMs then enables us to model check an MRM with counterexample refinement.
Example 5. A counterexample to the formula to reach in in Fig. 1 is given by the path in the intermediate , where is the resulting MRM of fully model checking . The probability of in is and has reward , and thus the ER to reach in is and hence the ER to reach in the original MRM is > 10 as well, as path abstraction preserves total expected accumulated rewards.
4 Correctness Properties
We prove that path abstraction is well-defined and monotonically absorbing.
4.1 Well-definedness
We first prove that path-abstracting an MRM over any subset of its state space yields another MRM. The idea of the proof is that we can break up the underlying language of the path according to its two fragments using Theorem 1, and make use of the fact that in Definition 14 we store normalised local ERs.
Theorem 3. Let be an MRM, and . Then, abstr( ) is also an MRM.
Proof. Write . Then, is a Markov chain by [11, Lemma 2]: We are thus left with establishing that satisfies the defining properties in Definition 12 of a reward function for the Markov chain .
Proof that for all with or : for all such , we are in the second case of (7) which automatically gives .
Proof that for all and for which : let and be such that . If then , and, by (7), , so . Similarly, one proves if . Thus, assume that . Then, , , and have lengths greater than 1, so for each of these three sequences we can use the first case of (7) to write their images under . Thus,
where (8a) follows from (7), (8b) follows from Theorem 1, (8c) follows from the fact that for all such and we have and because is an MRM and and by (3) (where and ), (8d) and (8e) follow from the fact that because is a Markov chain, and (8f) follows from (6)—as and —and (7).
4.2 Monotonic Absorption
Now, we prove that the monotonic absorption property of path abstraction, which was established to hold for Markov chains as proven in [11, Thm. 3], also holds for MRMs. We first repeat a smaller, technical lemma.
A. Hartmanns, R. Modderman
Lemma 1. Let be a Markov chain, and let . Let . Let and assume that and . Then we have .
Proof. This is proven in [12, App. B] in the proof of [12, Thm. 3].
Theorem 4. Let be an MRM, and let . Then, we have the monotonic absorption property
The idea of the proof is to exploit Theorem 2 just like was done for monotonic absorption for Markov chains as done in [11, Thm. 3], together with again the fact that in Definition 14 we store normalised local ERs.
Proof. Write , , and write . We have to show that and . However, follows directly from the monotonic absorption property of Markov chains as established in [11, Thm. 3]. What remains to show is that . To this end, let . If or , then by Definition 14 we obtain and and thus . We therefore assume that satisfies and . We prove that to show that . We have
Here, (10a) follows from Definition 14 for the abstraction of abstr(A, M) with respect to B. The fact that (10b) holds is seen as follows. Given we have so as (as red always outputs a word of length at most that of its second argument), meaning that if (in which case as is idempotent) but also if which follows directly from Definition 13. Then, (10c) holds because if is such that
we have . Indeed: if then this is immediate from Definition 14, but if then but we also have and , so could only have been the result from , which means that for all due to the definition of probability mass of languages as given in (5) and hence as well. Then, (10d) holds because of Lemma 1: if satisfies but , then by Lemma 1 which is applicable because as and —cf. Definition 13—meaning that for all so . Finally, (10e) follows directly from Theorem 2, and (10f) is by definition of (Definition 14).
Remark 2. Adding or removing isolated states to or from an abstraction set has no effect on the abstraction. Since we do not draw isolated states, Theorem 4 in practice implies that, whenever we abstract over a superset of states that have ever been coloured gray up to now, then we obtain the same MRM as if we immediately abstracted over the set of all states that will in the end have been coloured. In Figs. 1 to 4 this means that , thus that is the result of fully model checking , even though we never abstracted fully over to compute .
5 Numerical Recipe
We now provide a numerical recipe for computing path abstractions of MRMs in terms of solving sets of linear equations, which we turn into a high-level reference implementation in the computer algebra system PARI/GP [16] in Sect. 6.
Throughout, we fix an MRM and write for the underlying Markov chain of . Furthermore, we fix a set and consider the abstracted MRM . We determine for all , which gives the full function : if a reward function is known on all state sequences of length 2, then it is known on all (non-empty) state sequences—conforming to the second axiom in Definition 14.
First, in Sect. 5.1, we state the main results for the correctness of the reference implementation in Listing 1; then, we provide the proofs in Sect. 5.2.
5.1 Results
Throughout, we write for the set of input states of as in Definition 13, and for the set of states outside of that are reachable from in one step. Let be the set of all states in from which we can reach states outside of , and the set of all states
A state is called isolated if and have probability zero for all .
A. Hartmanns, R. Modderman
in A from which we can reach the outside of A in one step. Note that . Furthermore, can be computed efficiently by means of a standard reachability algorithm, as shown in [11, Lemma 3]. We now express fully in terms of the aforementioned state sets, on state sequences of length 2.
Lemma 2. Let . Then, we have
We are thus interested in the second case of (11). We provide a numerical recipe in terms of solving a system of linear equations to calculate in that case; the set of this system's unknowns is exactly and, upon solved, can be used for all choices of and simultaneously. We assume that is non-empty—otherwise, the computation of on 2-state sequences is trivial.
To this end, we let denote the matrix carrying the probabilities of the Markov chain between states in ; thus, . For , we let denote the matrix obtained from by if and otherwise—so, . Finally, since has spectral radius , as argued in (the proof of) [12, Thm. 5], we can sum all its powers and obtain the matrix by inverting the matrix . In other words, .
We now state the main result relating path abstraction to pure linear algebra.
Theorem 5. If and and , then we have
Before we prove Theorem 5, we establish two intermediate results. The first enables us to rewrite the sum in the second case of (11) as a linear combination of rewards of just transitions. Thus, fix and and suppose that . We set, for all and ,
where is the number of times ij appears as a factor in y, cf. Definition 7.
Lemma 3. We have
Here, is the EVT, the expected number of visits, of ij in the sub-MRM.
Now, for all and and , we set
and note that
To eliminate the factors in the summation in (15), we express each in terms of probability masses of (potentially) overlapping languages as follows.
Lemma 4. Let and . Then we have
5.2 Proofs
We need to prove Lemmas 2 to 4 and Theorem 5. First, Lemma 2 is easy to prove following its case distinction—see App. A. We then use it to prove Lemmas 3 and 4; ultimately, we use Lemmas 3 and 4 to prove Theorem 5.
Proof (of Lemma 3). In the context of Lemma 3, we had already fixed and and assumed . We are thus in the second case of (11) which we know holds because we just proved Lemma 2. We thus have
where (18a) follows from the second case of (11); (18b) follows from the definition of in Sect. 5.1; (18c) follows from the fact that, given , is the sum of the rewards on all 2-state factors contained in which can be calculated as the sum over all 2-state sequences of the reward times the number of times occurs as a factor in —cf. Definition 7—as all
A. Hartmanns, R. Modderman
possible 2-state factors of are in because ; (18d) follows from changing the summation order; and (18e) is by definition of in (13).
Proof (of Lemma 4). Let and .
We first prove (17a). Thus, let . Starting from (15), we obtain
because for all so no can contain as a factor more than times. Now, to the sum of (19), any contributes its probability mass exactly times and hence is in exactly of the sets where . Conclude that the right-hand side of (19) is equal to the right-hand side of (17a), and thus that (17a) holds.
Next, we prove (17b), of which we first handle the “hard” case . Since but , it follows that and (♣) for all integers we have using (17a). It follows that
where (20a) follows from (16) and the fact that ; (20b) follows from (♣); (20c) follows by definition of in Sect. 5.1; and (20d) holds by the substitution and a change of the summation order.
Finally, we verify the latter two cases of (17b). To this end, we notice that in both these cases we have so that each satisfies as , and thus that , which is the second case of (17b), we have , proving that case; in case , which is the third case of (17b), we have , proving that case as well.
Proof (of Theorem 5). Note that to prove Theorem 5 it is, by (14) and (17b), sufficient to prove that the three contributions in (12a), (12b), and (12c) correspond to summing the 's in the three cases of (17b), respectively.
Thus, first we prove that for all and . This is seen as , so given it suffices to show that . Clearly, as , is the probability mass of all sequences of length starting in , moving through , and ending in , which is classically given by the -th entry of , as was defined to encode the probability masses of transitions between states in via ; but now, we have to replace the -th matrix in the -fold product of with itself by —where we recall that if and zero otherwise—to calculate , as this is the probability mass of all sequences in whose -th 2-state factor is forced to be .
Then, we prove that . Since we have , which proves the claim.
Finally, we show that for , we have . We have , and we are done.
6 Reference Implementation
We include a high-level reference implementation of path abstraction for MRMs in the computer algebra system PARI/GP [16], extending [11, Sect. 5: Listing 1] from reachability probabilities for Markov chains to ERs for MRMs. MRMs are represented as a vector containing a probability matrix and a matrix carrying the transition rewards. The initial state is 1. Columns and rows corresponding to states that do not play a role (anymore) are fully zero.
The inner workings of Listing 1 are as follows, following the notation in Sect. 5. The “hard” case for the computation of in (11) and expressed in terms of linear algebra in Theorem 5 is implemented in Listing 1 in lines 22-33. All that the rest of the reference implementation is handling is the computation of the sets , , , and (II, OO, U, and U1) in lines 3-16, of the matrices and (PU and Q) in lines 17-18, and the handling of the easy cases for (cf. cases 1 and 3 in (11)) in lines 19-21. The remaining lines are 34-37 (ends of loops and output of the routine), and lines 1-2 (header of routine, plus initializing the probability- and reward matrices and ). Note that the hardest computational step, that of inverting the matrix on line 18, only has to be done once; then, we can simply iterate over all combinations of and with (lines 22-23) to compute while (re-)using the same .
7 Conclusion and Future Work
We extended path abstraction from reachability probabilities on DTMCs to expected rewards on MRMs. Working throughout in the free monoid view, we proved that path abstracting an MRM over an arbitrary set of states again yields an MRM and that it remains monotonically absorbing. We gave a numerical recipe that reduces one abstraction to solving one linear equation system, provided a reference implementation in PARI/GP, and proved it correct by way of the connection between expected rewards and visiting times.
A. Hartmanns, R. Modderman
pathAbstrMRM = A -> (MRM ->
P = MRM[1]; R = MRM[2]; n = matsize(P)[1];
II = vector(n, i, A[i] && (i == 1 ||
vecsum(vector(n, j, !A[j] * P[j, i])) != 0));
OO = vector(n, i, !A[i] &&
vecsum(vector(n, j, A[j] * P[j, i])) != 0);
Uvec = [OO]; Vvec = [OO];
i = 1;
while (Uvec[i] != vector(n),
Uvec = concat(Uvec, [vector(n, j, A[j] && !Vvec[i][j] &&
vecsum(vector(n, k, Uvec[i][k] * P[j, k])) != 0));
Vvec = concat(Vvec, [vector(n, j, Vvec[i][j] || Uvec[i+1][j])]);
i++;
);
U1 = Uvec[2]; U = vector(n, j, Vvec[i][j] && !OO[j]);
PU = matrix(n, n, i, j, (U[i] && U[j]) * P[i, j]);
Q = matadjoint(matid(n) - PU) / matdet(matid(n) - PU);
P_A = matrix(n, n, i, j, if(!A[i] && (!A[j] || II[j]),
P[i, j], if(II[i] && U[i] && OO[j], Q[i], * P[j, 0));
R_A = matrix(n, n, i, j, if(!A[i] && (!A[j] || II[j]), R[i, j], 0));
for (h = 1, n, if (II[h] && U[h],
for (j = 1, n, if (OO[j] && P_A[h, j] != 0,
R_A[h, j] = (1 / P_A[h, j]) * (sum(i = 1, n,
if(U1[i], sum(a = 1, n,
if(U[a], sum(b = 1, n,
if(U[b] && R[a, b] != 0,
(Q*matrix(n, n, i0, j0, i0 == a && j0 == a) \
- PU * matrix(n, n, i0, j0, i0 == b && j0 == b) * Q)[h, i] \
- P[i, j] * R[a, b], 0)), 0)), 0)) \
- Q[h, h] * P[h, j] * R[h, j] \
- sum(a = 1, n, if(U[a] && a != h && R[a, j] != 0,
(Q-matid(n))[h, a]*P[a, j]*R[a, j], 0));
));
));
[P_A, R_A];
);
Listing 1. An implementation in PARI/GP [16] of path abstraction for MRMs
Several directions remain for future work, the most immediate being an efficient implementation. This could be a standalone tool that reads a Markov chain in the UMB format [3] plus an abstraction set and writes the result back to a file, or a model checking engine inside an established tool such as MCSTA of the MODEST TOOLSET [9] that solves the arising linear equation systems with (possibly exact) methods. For the latter to be effective, we must find good heuristics for choosing abstraction sets, ideally improving on the SCC-based decomposition of Ábrahám et al. [1]. A second direction is to extend our work towards continuous-time Markov chains with time-bounded properties. Finally, we would like to formalise the free monoid view of Markov chains, path abstraction, and the theorems of this paper and [11] in an interactive theorem prover such as Isabelle/HOL, to machine-check our proofs and ultimately derive a correct-by-construction implementation, as recently done for interval iteration [13].
References
-
Ábrahám, E., Jansen, N., Wimmer, R., Katoen, J.P., Becker, B.: DTMC model checking by SCC reduction. In: 7th International Conference on the Quantitative Evaluation of Systems (QEST 2010). pp. 37–46. IEEE Computer Society (2010). https://doi.org/10.1109/QEST.2010.13
-
Andrés, M.E., D'Argenio, P.R., van Rossum, P.: Significant diagnostic counterexamples in probabilistic model checking. In: Chockler, H., Hu, A.J. (eds.) 4th International Haifa Verification Conference (HVC 2008). Lecture Notes in Computer Science, vol. 5394, pp. 129–148. Springer (2008). https://doi.org/10.1007/978-3-642-01702-5_15
-
Andriushchenko, R., Hartmanns, A., Jeppson, J., Junges, S., Meggendorfer, T., Parker, D., Quatmann, T., Weininger, M.: UMB: A unified Markov binary format for probabilistic model checking. CoRR abs/2606.17811 (2026). https://doi.org/10.48550/arXiv.2606.17811
-
Baier, C., de Alfaro, L., Forejt, V., Kwiatkowska, M.: Model checking probabilistic systems. In: Clarke, E.M., Henzinger, T.A., Veith, H., Bloem, R. (eds.) Handbook of Model Checking, pp. 963–999. Springer (2018). https://doi.org/10.1007/978-3-319-10575-8_28
-
Baier, C., Katoen, J.P.: Principles of model checking. MIT Press (2008)
-
Daws, C.: Symbolic and parametric model checking of discrete-time Markov chains. In: Liu, Z., Araki, K. (eds.) 1st International Colloquium on Theoretical Aspects of Computing (ICTAC 2004). Lecture Notes in Computer Science, vol. 3407, pp. 280–294. Springer (2004). https://doi.org/10.1007/978-3-540-31862-0_21
-
Hahn, E.M., Hermanns, H., Zhang, L.: Probabilistic reachability for parametric Markov models. Int. J. Softw. Tools Technol. Transf. 13(1), 3–19 (2011). https://doi.org/10.1007/S10009-010-0146-X
-
Han, T., Katoen, J.P., Damman, B.: Counterexample generation in probabilistic model checking. IEEE Trans. Software Eng. 35(2), 241–257 (2009). https://doi.org/10.1109/TSE.2009.5
-
Hartmanns, A., Hermanns, H.: The Modest Toolset: An integrated environment for quantitative modelling and verification. In: Ábrahám, E., Havelund, K. (eds.) 20th International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2014). Lecture Notes in Computer Science, vol. 8413, pp. 593–598. Springer (2014). https://doi.org/10.1007/978-3-642-54862-8_51
-
Hartmanns, A., Junges, S., Quatmann, T., Weininger, M.: The revised practitioner's guide to MDP model checking algorithms. Int. J. Softw. Tools Technol. Transf. (2026). https://doi.org/10.1007/s10009-026-00848-y
-
Hartmanns, A., Modderman, R.: DTMC model checking by path abstraction revisited. In: Ganty, P., Mansutti, A. (eds.) 19th International Conference on Reachability Problems (RP 2025). Lecture Notes in Computer Science, vol. 16230, pp. 186–201. Springer (2025). https://doi.org/10.1007/978-3-032-09524-4_13
-
Hartmanns, A., Modderman, R.: DTMC model checking by path abstraction revisited (extended version). CoRR abs/2509.02393 (2025). https://doi.org/10.48550/arXiv.2509.02393
-
Kohlen, B., Schäffeler, M., Abdulaziz, M., Hartmanns, A., Lammich, P.: A formally verified IEEE 754 floating-point implementation of interval iteration for MDPs. In: Piskac, R., Rakamaric, Z. (eds.) 37th International Conference on Computer Aided Verification (CAV 2025). Lecture Notes in Computer Science, vol. 15932, pp. 122–146. Springer (2025). https://doi.org/10.1007/978-3-031-98679-6_6
A. Hartmanns, R. Modderman
-
Lothaire, M.: Algebraic Combinatorics on Words. Encyclopedia of Mathematics and its Applications, Cambridge University Press, Cambridge (2002)
-
Mertens, H., Katoen, J., Quatmann, T., Winkler, T.: Accurately computing expected visiting times and stationary distributions in Markov chains. In: Finkbeiner, B., Kovács, L. (eds.) 30th International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2024). Lecture Notes in Computer Science, vol. 14571, pp. 237–257. Springer (2024). https://doi.org/10.1007/978-3-031-57249-4_12
-
The PARI Group, Univ. Bordeaux: PARI/GP version 2.11.0 (2018), available from http://pari.math.u-bordeaux.fr/
-
Simaitis, A.: Automatic verification of competitive stochastic systems. Ph.D. thesis, University of Oxford, UK (2014), http://ora.ox.ac.uk/objects/uuid:68b5e2d8-ba04-419f-8926-4cd542121e2d
A Additional Proofs
Proof (of Lemma 2). If and , then we have if and otherwise—cf. Ex. 3. In both cases, . Since , we are in the second case of (6) so . If then and because rewards are zero on state sequences with probability zero—cf. Definition 12—and if then by (7) we obtain directly as and .
Now, if and satisfy , then we are in the first case of (7). Note that here and because . It follows that .
In all other cases, it is straightforward to verify that .