Next Article in Journal
Stochastic Optimal Energy Management of a Shore-Side Renewable Hydrogen Supply System for Hydrogen-Based Marine Vessels
Previous Article in Journal
Ensemble Artificial Intelligence for Dermoscopic Decision Support: Development and External Validation of the HAM20000 Dataset
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Reachability Analysis Method Using Abstraction and Refinement of Priced Probabilistic Timed Automaton and Its Application for Design Verification of Wireless Sensor Networks

Department of Data Science, School of Data Science, Shimonoseki City University, Daigakumachi 2-1-1, Shimonoseki 751-8510, Yamaguchi, Japan
Electronics 2026, 15(11), 2366; https://doi.org/10.3390/electronics15112366
Submission received: 2 April 2026 / Revised: 12 May 2026 / Accepted: 27 May 2026 / Published: 31 May 2026
(This article belongs to the Section Computer Science & Engineering)

Abstract

The design and reliability assurance of embedded systems is a complex issue, since they need to handle not only digital behavior but also physical quantities such as time, cost, and sometimes randomness. In addition, since many embedded systems, such as networks and automobiles, have systems in which errors can be fatal, design verification for reliability assurance is an important research topic. Considering the above background, we adopt the approach of specifying and verifying embedded systems using formal models. Specifically, we focus on a priced probabilistic timed automaton as a specification description language and propose a reachability analysis method based on counterexample-guided abstraction refinement (CEGAR) to reduce the state explosion. To demonstrate the effectiveness of the proposed method, we attempt to verify the design of important wireless sensor networks (WSNs). In this paper, we model WSNs via a priced probabilistic timed automaton that can express their power characteristics in terms of cost, uncertainty in terms of probability, real time in terms of time, and attribute WSNs’ characteristics to the cost bound probabilistic reachability problem. To the best of our knowledge, this paper is the first CEGAR development and implementation of a priced probabilistic timed automaton. We have developed a prototype of the verifier and confirmed that it is verifiable. The model of verification is a WSN with four sensor nodes and three point hops and the verification problem is ( l e r r o r , λ = 0.3 , κ = 32 ) . The experimental result shows that the verification was completed with 22 CEGAR loops and 66 states. This paper is innovative and significant as a milestone in the development of an extension of CEGAR to priced probabilistic timed automata.

1. Introduction

The design and reliability assurance of embedded systems is a complex issue, since they need to deal not only with digital behavior but also with physical quantities such as time and cost, and sometimes with probabilistic behavior [1,2]. In addition, since many embedded systems, such as networks and automobiles, have systems in which errors can be fatal, design verification for reliability assurance is an important research topic. With the above background, we adopt the approach of specifying and verifying embedded systems by formal models. Specifically, we focus on priced probabilistic timed automaton [3] as a specification description language and propose a reachability analysis method based on counterexample-guided abstraction refinement (CEGAR) [4,5] in order to reduce the state explosion.
Related research on model checking for sensor networks can be broadly categorized into three main areas: “verification of communication protocol correctness,” “analysis of real-time performance and resource constraints,” and “security verification.” This paper focuses on the analysis of real-time requirements and resource constraints. In real-time, power-efficient analysis, the periodic sensing, packet transmission, and sleep schedules of sensor networks are critical; therefore, model checking using Timed Automata or TCTL [6,7] is commonly employed. In this approach, we detect communication delays, scheduling violations, and failures in node coordination and search for configurations that meet battery life and responsiveness requirements. In other words, the key feature is that we rigorously examine not just whether the system “works,” but whether it can “continue to operate within the constraints.” A major challenge is the state explosion, where the search space grows exponentially as the number of nodes increases. For this reason, techniques such as abstraction, symmetry reduction, modular partitioning, and partial network modeling are often used in combination. Furthermore, since real-world sensor networks are significantly affected by the physical environment and wireless errors, it is important to avoid overly idealized modeling.
Meanwhile, recent research on WSN architectures has addressed the problem of maximizing total throughput in WPCNs, where mobile hybrid access points (HAPs) support wireless power transfer and communication while on the move [8]. The key point of this research is that by using mobile HAPs, power can be supplied and communication established even with distant terminals, thereby mitigating the significant inequities observed with fixed HAPs. As a result, power reception and transmission conditions for each terminal are improved, making it easier to increase the total throughput of the entire network. This paper focuses on WSNs in which the access points do not move. We model WSNs by a priced probabilistic timed automaton that can express their power characteristics in terms of cost, uncertainty in terms of probability, real time in terms of time, and attribute WSNs’ characteristics to the cost bound probabilistic reachability problem. Also, in this research, focusing on simplifying and verifying complex costed stochastic temporal automata, we achieve rigorous verification of reachability for costed probabilistic timed automata using a model checking method that extends symbolic model checking with abstraction refinement.
Using a wireless sensor network [9] with time, cost, and probabilistic behavior as a case study, we propose and show the effectiveness of a reachability analysis method using counterexample-guided abstraction refinement (CEGAR) to reduce the state explosion by using a priced probabilistic timed automaton. For sensor nodes, which are the components of WSNs, there are physical quantities such as time and cost, as well as probabilistic behaviors, which can be described and verified using a priced probabilistic timed automaton. However, when the nodes operate in parallel and constitute a network that covers a wide area, the number of nodes becomes enormous, and the state explosion phenomenon is induced in the model of the entire network, making the verification of WSNs as a whole difficult. For this reason, despite its paramount importance, there are few examples of studies on model checking of priced probabilistic timed automata such as WSNs.
In model checking that includes reachability analysis, the expressive power of the model and state reduction techniques are crucial [10].
  • Regarding the expressive power of the model, there are differential equations that include time, probability, and cost, as well as combinations thereof; costed probabilistic timed automata possess the strongest expressive power but are complex.
  • State reduction techniques include partial order reduction, symmetry reduction, and compositional methods that capture the structural characteristics of the system, as well as general-purpose symbolic model checking, abstraction refinement, bisimulation minimization, and approximation methods. In this research, focusing on simplifying and verifying complex costed stochastic temporal automata, we achieve rigorous verification of reachability for costed probabilistic timed automata using a model checking method that extends symbolic model checking with abstraction refinement.
A comparison of existing tools with this study is as follows.
  • APMC (Approximate Probabilistic Model Checker) is a distributed model checker for fully probabilistic systems that uses a client/server computation model to distribute path generation and formula verification on a cluster of workstations [11]. The APMC approach uses an efficient Monte-Carlo method to approximate satisfaction probabilities of monotone properties over fully probabilistic transitions systems. The properties to be checked are expressed in LTL (Linear Temporal Logic). This study offers greater model expressiveness and verification capabilities than APMC; however, while it verifies reachability, its verification capabilities regarding temporal properties are inferior to those of APMC. Nevertheless, this study can verify reachability that incorporates temporal constraints, probability, and cost.
  • Fortuna is the first and only tool for model checking priced probabilistic timed automata (PPTAs) [12]. Fortuna can handle the combination of real time, probabilistic and cost features. This is required to address key design trade-offs that arise in many practical applications such as the Zeroconf, Bluetooth, IEEE802.11 and Firewire protocols, protocols for sensor networks, and scheduling problems with failures. PPTAs are an extension of probabilistic timed automata (PTAs) with cost-rates and discrete cost increments on states [13]. Fortuna is able to compute the maximal probability by which a state can be reached under a certain cost-bound (and time-bound). This study presents an evolution of Fortuna using CEGAR to reduce the number of states.
  • CEGAR is the leading method for reducing the number of states in model checking by simplifying complex models, and in recent years, it has also been studied in the context of model checking for extensions of finite-state timed automata [14] and assembly programs [15].
In this paper, we propose cost-bounded maximal reachability using CEGAR of a priced probabilistic timed automaton aiming at reducing the state explosion. In particular, the following aspects are important and very new:
  • We perform predicate abstraction on both cost and time constraints simultaneously.
  • Using the counterexample analysis method, we determine whether the counterexamples obtained by cost-bounded maximal probability reachability analysis on the abstract structure exist on the concrete structure or not. A counterexample analysis consists of two parts: path counterexample analysis and simultaneous execution counterexample analysis. A path counterexample analysis is performed to check whether the extracted counterexamples are executable on the corresponding real systems. On the other hand, a simultaneous execution counterexample analysis is performed to check whether the elements of those counterexamples can be executed according to the same adversary.
To demonstrate the proposed method, we model WSN as a case study by expressing power characteristics in terms of cost, uncertainty in terms of probability, and real-time performance in terms of time, using a priced probabilistic timed automaton. Then, the properties of WSNs are attributed to the cost-bounded maximal probability reachability problem, and the reachability analysis by CEGAR is performed. To the best of our knowledge, this paper is the first CEGAR development and implementation of a priced probabilistic timed automaton. We have developed a prototype verifier to demonstrate the effectiveness of the proposed method. This paper is innovative and significant as a milestone in the development of an extension of CEGAR to priced probabilistic timed automata. The proposal in this paper has been prototyped in Mathematica to understand its characteristics. Fortuna [12], the only existing symbolic model checker, is implemented in C++ and uses high-performance libraries. Developing a full-fledged tool such as the symbolic model checker Fortuna remains a challenge for future work and will be described in the paper.
This paper is organized as follows. In Section 2, we define a priced probabilistic timed automaton. Section 3 defines the verification problem, Section 4 describes the verification method of predicate abstraction and refinement, and Section 5 proposes priced probabilistic timed CEGAR and its examples. Finally, a summary is given in Section 6.

2. Priced Probabilistic Timed Automaton

In this section, we define the syntax and semantics of a priced probabilistic timed automaton [3]. In the following subsections, we begin by laying the groundwork and then define the syntax and semantics of priced probabilistic timed automaton.

2.1. Preliminaries of Priced Probabilistic Timed Automaton

First, as a preliminary step, we define discrete probability distributions to express probabilities, clock variables to express real-time characteristics, and cost variables to express power characteristics, and also define MP zones to treat clock variables and cost variables as a set.
Definition 1
(Discrete probability distribution [16]). The set of discrete probability distributions on the countable state set S is denoted by D i s t ( S ) . μ D i s t ( S ) is a function μ : S [ 0 , 1 ] . However, s S μ ( s ) = 1 and s s S a n d μ ( s ) > 0 is a finite set.
Next, we define the clock variables representing the passage of time, the valuation of the clock variables, and the constraints on the clocks.
Definition 2
(Clock variable [3]). The clock variables are non-negative real-valued variables. All clocks increase at the same rate and can be reset to 0 during the transition. Let X denote the set of clock variables on R 0 .
Definition 3
(Clock valuation [3]). The clock valuation is a function ν : X R 0 . The set of all clock valuations of X is denoted by R 0 X . We use ν [ X : = 0 ] to denote the clock valuation obtained from ν by resetting all the clocks in X X to 0 and leaving the values of all other clocks unchanged. For all t that are t R 0 , ν + t is a clock valuation giving ν ( x ) + t for all x X .
Definition 4
(Zone [3]). The zone ζ on X is defined inductively as a convex subset of the set R 0 X of clock valuations with the following syntax.
ζ : : = x c | x < c | x d | x > c | x y d | x y < d | ζ ζ | t r u e ,
where x , y X and c , d N . Let Z o n e s ( X ) denote the set of zones ζ on X .
The clock valuation ν satisfies the zone ζ if and only if after replacing each clock variable X X in the zone by the corresponding clock value ν ( x ) by ν , the zone’s Boolean value ζ ν { t r u e , f a l s e } for the clock valuation is t r u e . We write this as ν ζ .
In the operation of a priced probabilistic timed automaton, the state cannot be described by the usual zone because of the accumulated cost from the beginning of the operation. Therefore, we begin by defining a cost variable that represents the accumulated cost from the start of operation and a cost valuation. Next, we define the set of clock and cost valuations that appear in the behavior of a priced probabilistic timed automaton as a conjunction of zones and the possible inequalities of the cost variable on those zones.
Definition 5
(Cost variable [3]). The cost variable z is a non-negative real variable, and z increases with the slope of the cost when the clock increases at a certain rate.
Definition 6
(Cost valuation [3]). The cost valuation is a function c : z R 0 . For a cost variable z and a cost slope n, let c + n t for all t R 0 be a cost valuation giving a valuation of c ( z ) + n · t .
Next, we define multi-priced zones, which are zones augmented with a conjunction of linear inequalities that define an upper bound on the cost that can be associated with each valuation in the zone.
Definition 7
(Multi-Priced zone [3]). Multi-Priced zones (MP zones) are defined by M = ζ ϕ . ζ is a zone and ϕ is defined inductively by the following syntax.
ϕ : : = a z b 1 x 1 + + b n x n + b 0 | ϕ ϕ | t r u e ,
where Z is a cost variable, { < , , , > } , x 1 , , x n are all clocks that make up ζ, a , b 0 , , b n Z and a > 0 . Let Φ ( Z o n e s ( X ) ) be the set of cost expressions on ζ Z o n e s ( X ) , where ϕ Φ ( Z o n e s ( X ) ) .
When the pair ( ν , c ) of clock and cost valuations satisfies the MP zone M = ζ ϕ , we write ( ν , c ) ζ ϕ . ( ν , c ) ζ ϕ holds t r u e if and if only after replacing each clock variable x X in ζ by the corresponding clock value ν ( x ) by ν , the zone Boolean value ζ ν { t r u e , f a l s e } for the clock valuation is t r u e , and after replacing each clock variable x X and cost variable z in ϕ by the corresponding clock and cost values ν ( x ) , c ( z ) by the pair ( ν , c ) respectively, the true value of the zone regarding clock valuation and cost valuation ϕ ( n u , c ) { t r u e , f a l s e } is t r u e .
Definition 8
(MP zone operations [3]). The operation to deform the MP zone is defined as follows.
time _ succ [ M , n ] = { ( ν , c ) | t R . ( ν t , c n d ) ζ ϕ } time _ pre [ M , n ] = { ( ν , c ) | t R . ( ν + t , c + n d ) ζ ϕ } reset [ M , X ] = { ( ν [ X : = 0 ] , c ) | ( ν , c ) ζ ϕ } free [ M , X ] = { ( ν , c ) | ( ν [ X : = 0 ] , c ) ζ ϕ } shift [ M , h ] = { ( ν , c ) | ( ν , c + h ) ζ ϕ }
If the input zone is an MP zone, the result of the operation is also an MP zone.

2.2. Syntax of a Priced Probabilistic Timed Automaton

Next we define the syntax of a priced probabilistic timed automaton [3] using the subsection mentioned above.
Definition 9
(Priced probabilistic timed automaton [3]). The priced probabilistic timed automaton P 2 T A is defined by the pair ( L , l ¯ , X , i n v , p r o b , $ ˙ ) .
  • L is a finite set of locations.
  • l ¯ L is the initial location.
  • X is a finite set of clocks.
  • i n v : L Z o n e s ( X ) is a function that assigns an invariant condition to each location.
  • p r o b L × Z o n e s ( X ) × N × D i s t ( L × 2 X ) is a finite set of probabilistic transition relation.
  • $ ˙ : L N is s function that assigns a cost slope to each location.
The edge of a priced probabilistic timed automaton is generated by ( l , g , h , μ ) p r o b , and takes the form of a pair ( l , g , h , μ , X , l ) such that μ ( l , X ) > 0 . Let edgess ( l , g , h , μ ) be the set of edges generated by ( l , g , h , μ ) , and  edgess ( l , g , h , μ ) = { ( l , g , h , μ , X , l ) | ( l , g , h , μ ) p r o b a n d μ ( l , X ) > 0 } , where l L , g Z o n e s ( X ) , h N , μ Dist ( L × 2 X ) .
Example 1
(Example of automaton behavior in Figure 1). An example of a priced probabilistic timed automaton is shown in Figure 1. First, the behavior starts from the initial location l 0 with clock t = 0 and cost z = 0 . Then, after a time elapses until ( t = 1 , c = 1 ) , a discrete transition is made. A discrete transition is made to location l 1 with probability 1 p and to location l 2 with probability p. If it transitions to location l 1 , time elapses until c > 2 , and then it makes a discrete transition to location l e r r o r with probability 1. If a transition is made to location l 2 , a discrete transition is made to location l t a r g e t after a time elapses to ( t 1 , c 2 ) or to location l e r r o r after a time elapses to ( t > 1 , c > 2 ) . Since the invariance condition is t r u e at location l t a r g e t and location l e r r o r , arbitrary time elapses or arbitrary discrete transitions are performed, since there is a self-loop.

2.3. Semantics of a Priced Probabilistic Timed Automaton

The state of the priced probabilistic timed automaton P 2 T A is expressed as the ordered pair ( l , ( ν , c ) ) L × R 0 X × R 0 , where ν satisfies i n v ( l ) . That is, ν is an element of the set of clock valuations of the zone represented by i n v ( l ) . In addition, c represents the cumulative cost valuation from the initial state. The P 2 T A behaves from the initial state ( l ¯ , ( ν 0 , c 0 ) ) , where ν 0 denotes the initial clock valuation with all clock values set to 0 and c 0 denotes the initial cost valuation of 0. In a state ( l , ( ν , c ) ) at some point in time, P 2 T A nondeterministically chooses a timed transition or a discrete transition. Discrete transitions are made by a feasible probabilistic transition relation ( l , g , h , μ ) p r o b for the transition source location l, where the MP zone g satisfies the current clock valuation and cost valuation pair ( ν , c ) . The probability that the location of P 2 T A transitions to l and all clocks on the set X are reset to zero is denoted by μ ( l , X ) .
We define the semantics of a priced probabilistic timed automaton as a timed probabilistic system [16]. Timed probabilistic systems take the form of Markov decision processes (MDPs) and perform nondeterministic transitions.
Definition 10
(Timed probabilistic system [3]). The timed probabilistic system M defining the meaning of the priced probabilistic timed automaton P 2 T A = ( L , l ¯ , X , i n v , p r o b , $ ˙ ) is a Markov decision process ( Q , q 0 , S t e p s ) .
  • Q L × R 0 X × R 0 is a set of states,
  • q 0 = ( l 0 , ( ν 0 , c 0 ) ) is the initial state,
  • S t e p s Q × R 0 × N × D i s t ( Q × 2 X ) is a timed probabilistic transition relation.
All states ( l , ( ν , c ) ) are ν I n v ( l ) . The probabilistic transition relation S t e p s consists of timed transitions and discrete transitions, and among the probability distributions paired with the state ( l , ( ν , c ) ) , the one due to timed transitions is denoted as μ . Let ( l , g , h , μ P ) p r o b of P 2 T A be ( ( l , ( ν , c ) ) , t , h , μ ) as follows.
  • Timed transition from state ( l , ( ν , c ) ) to t unit time: ( l , ( ν , c ) ) t , 0 , μ ( ( l , ( ν , c ) ) , ) ( l , ( ν , c ) )
    μ ( ( l , ( ν , c ) ) , ) = 1 i f l = l ν = ν + t c = c + $ ˙ ( l ) t ν i n v ( l ) t > 0 0 o t h e r w i s e
  • Discrete transition from state ( l , ( ν , c ) ) by probabilistic transition relation ( l , g , h , μ P ) to: ( l , ( ν , c ) ) 0 , h , μ ( ( l , ( ν , c ) ) , X ) ( l , ( ν , c ) )
    μ ( ( l , ( ν , c ) ) , X ) = μ P ( l , X ) i f ν g ν = ν [ X : = 0 ] c = c + h 0 o t h e r w i s e
The transition by probability μ ( ( l , ( ν , c ) ) of a probabilistic transition relation on M is a transition that resets the clock variable X and reaches state ( l , ( ν , c ) ) . Since the sample space of the probability distribution μ of the probabilistic transition relation is not only Q but also the product of Q and 2 X , one transition μ P ( ( l , ( ν , c ) ) , X ) > 0 on P 2 T A corresponds equally to one transition μ ( ( l , ( ν , c ) ) , X ) > 0 on M .
The path of a timed probabilistic system is expressed as the resolution of nondeterministic and probabilistic choices.
ω = q 0 t 0 , h 0 , μ 0 ( q 1 , X 0 ) q 1 t 1 , h 1 , μ 1 ( q 2 , X 1 ) ,
where 0 i | ω | , q i Q , ( q i , t i , μ i ) S t e p s , μ i ( q i ) > 0 . Let ω ( i ) denote the i-th state of the path ω , let s t e p ( ω , i ) denote the i-th transition, and if ω is a finite sequence, denote its length | ω | and its last state l a s t ( ω ) . The set of all finite or infinite paths starting from a state q is denoted by P a t h f i n ( q ) , P a t h f u l ( q ) respectively.
Here, we introduce an adversary of the timed probabilistic system as a representation that resolves only nondeterminism.
Definition 11
(Adversary [3]). The adversary A of the timed probabilistic system M = ( Q , q 0 , S t e p s ) is a function that maps all finite paths ω f i n of M to a discrete probability distribution ( l a s t ( ω f i n ) , μ ) S t e p s , where there exist ( l a s t ( ω f i n ) , μ ) S t e p s exists.
For any adversary A and state q, let P a t h f u l A ( q ) , P a t h f i n A ( q ) denote the subsets of P a t h f u l ( q ) , P a t h f i n ( q ) generated by A, respectively, and let A d v M be the set of adversaries of the timed probabilistic system M . We also distinguish simple adversaries A s i m p l e as adversaries that all return the same probability distribution regardless of the path if the last states of the paths are equal. Hereafter, when we simply write “adversary”, we refer to a simple adversary. An adversary represents a particular resolution of the nondeterminism of a timed probabilistic system. Here, for a timed probabilistic system M = ( Q , q 0 , S t e p s ) , the behavior under a given simple adversary A s i m p l e can be described by a Markov chain ( M C ) [16].
Definition 12
(Markov chain [3]). For a timed probabilistic system M = ( Q , q 0 , S t e p s ) , the behavior of M under a given adversary A can be described by a Markov chain M C A , denoted by the pair ( Q A , q 0 A , P A ) , where, for any state q , q Q A , we have
P A ( q , q ) = μ ( q ) i f ω . l a s t ( ω ) = q A ( ω ) = μ 0 o t h e r w i s e .
Next, we define the probability of occurrence of paths appearing in the Markov chain and timed probabilistic system associated with the adversary.
Definition 13
(Probability of path [3]). Let A be the adversary of the timed probabilistic system M . In this case, we define the probability P r o b f i n A : P a t h f i n A [ 0 , 1 ] of path occurrence as follows.
P r o b f i n A ( ω ) = P A ( ω ( 0 ) , ω ( 1 ) ) P A ( ω ( n 1 ) , ω ( n ) ) i f | ω | 0 1 o t h e r w i s e .
Since priced probabilistic timed automata are a subclass of probabilistic linear hybrid automata, their behavior may include the zeno behavior [10]. A zeno behavior is one in which an infinite number of discrete transitions occur in finite time. The problem of determining whether a model described by a hybrid automaton has zeno behavior is known to be undecidable [10]. However, since the modeling language in this paper is a priced probabilistic timed automaton, it can be considered as a probabilistic timed automaton by excluding the price. It is known from the literature [17] that the problem of determining whether a model described by a probabilistic timed automaton has zeno behavior is decidable, and we shall avoid zeno behavior in this paper accordingly.

3. Cost-Bounded Maximal Probability Reachability Analysis

When we specify embedded systems using a priced probabilistic timed automaton, it is very meaningful to be able to verify the property that the desired state can be reached with a certain probability or more and at a certain cost or less for every behavior [9]. An example is the mountain fire alarm system by WSNs. In this system, the above characteristics include “can you report a fire in the entire area with a probability of more than 99.9 % before running out of battery power?” In this study, we consider the verification of significant properties in priced probabilistic timed automata by means of a cost-bounded probability reachability problem. By the way, Fortune calls this problem cost-bounded maximal reachability (CBMR) [13]. In the behavior of a priced probabilistic timed automaton, when there exists a self-loop that transitions to the same state, it is difficult to solve a cost-bounded maximal probability reachability problem that requires the behavior to be investigated, since there may be an infinite number of paths that can be followed to reach the target state. It is known that the probability reachability problem can be verified by examining a finite number of paths by restricting the problem of reachability from ≤ to the form > [18]. Therefore, in this study, we define a cost-bounded probability reachability problem that can be verified with finite numbers by adding a cost bound.
The following is the definition of the cost boundary maximal probability reachability problem.
Definition 14
(Cost-bounded probability reachability problem [3]). For the priced probabilistic timed automaton P 2 T A = ( L , l ¯ , X , i n v , p r o b , $ ˙ ) , the cost-bound probability reachability problem is defined by the pair P R P = ( l e r r o r , λ , κ ) , where l e r r o r is the target location, λ [ 0 , 1 ] is the probability of reaching the target state, and κ N is the upper bound of cumulative cost. Also, when ( ν , c ) satisfies the MP zone i n v ( l e r r o r ) z > κ , ( l e r r o r , ( ν , c ) ) is called the objective state.
The answer to the cost bound probability reachability problem for P 2 T A is “Yes, Reachable" iff in some adversary A A d v M of M defined by P 2 T A , there exists one or more paths starting from the initial state ( l ¯ , ( ν 0 , c 0 ) ) of P 2 T A such that l a s t ( ω ) = ( l t a r g e t , ( ν , c ) ) and the total occurrence probability P m a x of the paths satisfy the condition P m a x > λ .
However, since there is no guarantee that the state space is finite, in general, the cost-boundary probability reachability problem is undecidable [10]. However, it is generally known that there are many verifiable models in realistic systems [13].

4. Predicate Abstraction and Refinement

The behavior of the entire WSNs can be modeled by synthesizing the behavior models of the nodes that make up the entire network through parallel composition. In general, the number of nodes in practical WSNs is said to be approximately several tens, and even if the behavior of the entire synthesized network is described, the number of states is very large and verification is very difficult. Therefore, it is necessary to suppress the number of states to a realistically verifiable number on the computer’s memory. We define this section in preparation for proposing priced probabilistic timed CEGAR in the next section. In this paper, we propose cost-bounded maximal reachability using CEGAR of a priced probabilistic timed automaton aiming at reducing the state explosion. In this section, we propose the following aspects, which are important and very new:
  • We perform predicate abstraction on both cost and time constraints simultaneously.
  • Using the counterexample analysis method, we determine whether the counterexamples obtained by cost-bounded maximal probability reachability analysis on the abstract structure exist on the concrete structure or not. A counterexample analysis consists of two parts: path counterexample analysis and simultaneous execution counterexample analysis. A path counterexample analysis is performed to check whether the extracted counterexamples are executable on the corresponding real systems. On the other hand, a simultaneous execution counterexample analysis is performed to check whether the elements of those counterexamples can be executed according to the same adversary.

4.1. Predicate Abstraction

Predicate abstraction is used to obtain a finite approximation of an infinite state transition system [4]. This method performs abstraction based on a set of abstraction predicates. We extend the paper [17] with cost and propose the new abstraction predicates as follows.
Definition 15
(Abstraction predicates). For a set of clock variables X and a cost variable z, the predicate ψ is defined as follows.
ψ : : = ψ c l ψ c o ψ c l : : = x 1 e | x 1 < e | x 1 x 2 d | t r u e ψ c o : : = a z b 1 x 1 + + b n x n + b 0 | t r u e ,
where x 1 , x 2 , , x n X ,z are cost variables, e N , a , b 1 , , b n , d Z and a > 0 . In the clock valuation ν, cost valuation c, and abstraction predicate ψ = ψ c l ψ c o , the true value of the predicate ψ on ( ν , c ) is ψ ( ( ν , c ) ) { t r u e , f a l s e } .
Let ( ν , c ) satisfy the predicate ψ and write ( ν , c ) ψ iff the result of substituting the value ν ( x ) corresponding to the clock x X appearing in ψ c l is true and the result of substituting the value c ( z ) corresponding to the cost z appearing in ψ c o is true.
Also, for any clock valuation ν V X and any cost valuation c V z , ( ν , c ) t r u e , where V X is the set of clock valuations, and V z is the set of cost valuations.
The set of abstract predicates Ψ l = { ψ 1 l , , ψ n l } at location l is a mapping from a valuation pair ( ν , c ) to a bit vector b l of length n. Let Ψ a l l = { Ψ l 0 Ψ l k } be the set of abstraction predicates at all locations, then Ψ a l l determines the abstraction function α . The i-th element of b l is true if and only if ψ l p ( ν , c ) is true at location l. Let us assume that bit vectors of length n in l are elements of the set B n l and that B n l is a function with domain { 0 , , n 1 } and variational domain { 0 , 1 } . Also, let B be the set of bit vectors at all locations. The inverse image of α is the concretization function γ , which maps a bit vector b l to all clock evaluations such that ψ i l is satisfied whenever the i-th element of the bit vector b l is true. Thus, the set of concrete states ( l , ( ν , c ) ) is mapped to the abstract state α ( ( l , ( ν , c ) ) ) by the abstraction function α , and the abstract state ( l , b l ) is mapped to the set of concrete states γ ( ( l , b l ) ) by the concretization function γ .
Abstraction and concretization are defined as follows.
Definition 16
(Abstraction and concretization). Let X be a set of clocks, V X be a set of corresponding clock valuations, and  V c o s t be a set of cost valuations. Given a finite set of predicates Ψ a l l = { Ψ l 0 Ψ l k } , the abstraction function α : L × V X × V Z L × B is defined as follows.
α ( ( l , ( ν , c ) ) ) ( i ) = ( l , ψ i ( ν , c ) )
In short, an abstraction function takes a concrete state and returns an abstract state that is an overapproximation of it.
Also, the concretization function γ : L × B L × 2 V X × 2 V Z is defined as follows.
γ ( ( l , b l ) ) = { ( l , ( ν , c ) ) L × V X × V c o s t i n v ( l ) i = 0 n 1 ψ i l ( ν , c ) b l ( i ) }
In short, a concretization function takes an abstract state and returns a concrete state, which is an underapproximation of the abstract state.
With respect to α , γ , the notation α ( Q ) = { α ( ( l , ( ν , c ) ) ) ( l , ( ν , c ) ) Q } , γ ( Q ) = { γ ( ( l , b l ) ) ( l , b l ) Q } is used. Here, the pair ( α , γ ) of the abstraction function and concretization function forms a Galois connection. Also, ( l , b l ) Q is a set of abstract states.
Definition 17
(Abstract structure). We construct an abstract structure M = ( Q , q 0 , S t e p s ) which is an overapproximation of the concrete structure M = ( Q , q 0 , S t e p s ) . The abstract structure M consists of the following elements.
  • Q = L × B
  • q 0 = α ( q 0 )
  • S t e p s Q × D i s t ( Q )
( ( l , b ) , μ ) S t e p s is constructed on an abstract structure if and only if ( ( l , ( ν , c ) ) γ ( ( l , b ) ) such that ( ( l , ( ν , c ) ) , μ ) S t e p s is on the concrete structure.
Here, let μ be a probability distribution such that μ ( ( l , b ) ) = μ ( ( l , ( ν , c ) ) ) .
Unlike S t e p s , there is no definition of timed transition quantity in S t e p s to indicate that it is a timed transition. However, the probability distribution of S t e p s derived from the probability distribution μ of showing timed transitions in S t e p s is also noted as μ to distinguish it.
Also, the path of M is the following as well as the path of M .
ω = q 0 μ 0 ( q 1 , X 0 ) q 1 μ 1 ( q 2 , X 1 )

4.2. Cost-Bounded Maximal Probability Reachability Analysis on Abstract Structure

The cost bound probability reachability analysis outputs “Not Reachable” if the system cannot reach the target state ( l t a r g e t , ( ν , c ) ) with a probability greater than λ . If the system can reach the target state ( l t a r g e t , ( ν , c ) ) with a probability greater than λ , the cost bound probability reachability analysis outputs “Reachable” and the path to that state (counterexample) is also output. The counterexample is given as the set ω of paths from the initial state to the target state on the abstract structure.
From Definition 17, since transitions on abstract structures are overapproximations of transitions on concrete structures, all counterexamples on concrete structures are included in counterexamples on abstract structures, but the reverse is not necessarily true. In other words, it can happen that the behavior according to the counterexample Ω is not feasible on the concrete structure. Therefore, using the counterexample analysis method, we must determine whether the counterexamples obtained by cost-bounded maximal probability reachability analysis on the abstract structure exist on the concrete structure or not.

4.3. Counterexample Analysis Method

4.3.1. Preliminaries

In this subsection, we define the operation of the MP zone that computes the conditions for possible state transitions used in the counterexample analysis. This is an MP zone operation on M which, when making a timed transition or a discrete transition in a state contained in an MP zone, obtains an MP zone containing reachable states, or vice versa.
  • time _ pre / succ operation: timed transition operation
    The time _ pre operation calculates the MP zones that are available for timed transitions to a given MP zone. The time _ succ operation calculates the MP zones from which timed transitions are possible from a given MP zone. Note that the time _ pre / succ operation is defined in Definition 8.
  • discrete _ pre / succ operation: discrete transition operation
    The discrete _ pre operation calculates the MP zones that can be transitioned to by discrete transitions to a certain MP zone. The discrete _ succ operation calculates the MP zones that can be transitioned from a given MP zone by discrete transitions.
The discrete _ pre / succ operation on the probability transition relation ( l , g , h , μ ( l , X ) ) p r o b of P 2 T A is defined as follows using the Definition 8.
discrete _ succ [ M , g , X , h ] = shift [ free [ M , X ] , h ] g discrete _ pre [ M , g , X , h ] = reset [ shift [ M , h ] g , X ]

4.3.2. Counterexample Analysis

Using the counterexample analysis method, we determine whether the counterexamples obtained by cost-bounded maximal probability reachability analysis on the abstract structure exist on the concrete structure or not. In the counterexample analysis, we first extract one element ω of the counterexample Ω . Next, a path counterexample analysis is performed to check whether the extracted counterexamples are executable on the corresponding real systems. This is repeated until Ω is empty, and then simultaneous execution counterexample analysis is performed to check whether the elements of those counterexamples can be executed according to the same adversary. In other words, a counterexample analysis consists of two parts: path counterexample analysis and simultaneous execution counterexample analysis.
Next, we explain path counterexample analysis.
(Path Counterexample Analysis)
First, we briefly explain the algorithm used in Path counterexample analysis as follows: This algorithm finds the target state by the time / discrete _ pre operation on the path ω , which is an element of the path set Ω . Here, from  l a s t ( ω ) to the forward state, the starting condition M i , ω r e a and the arrival condition M i , ω d e p are obtained. We consider this path to be a counterexample if the starting condition M i , ω r e a is false.
First of all, we take one element ω from the counterexample Ω , and check whether the element of the counterexample is actually feasible on the corresponding model. Figure 2 is an overview of path counterexample analysis, where ω ( i ) is the i-th abstract state of the counterexample, M i , ω r e a and M i , ω d e p are the starting and reaching conditions in the i-th abstract state, and q and q are the concrete states corresponding to the starting and reaching conditions in the i-th abstract state, respectively. We verify that each path ω obtained on the abstract structure M is feasible on the corresponding concrete structure M . Specifically, using the backward counterexample analysis method, the starting and arrival conditions that can reach the target state from the end of the abstract path are obtained and verified by MP zone operations.
The algorithm for path counterexample analysis (Backward counterexample analysis) is shown in Algorithm 1.
Algorithm 1 Path counterexample analysis (Backward counterexample analysis)
  1:
 Input P 2 T A , Ω
  2:
 for  ω Ω  do
  3:
      M | ω | , ω r e a Inv ( l | ω | , ω )
  4:
     for  i = | ω | 1 , , 0  do
  5:
         if  ω ( i ) μ is a timed transition then
  6:
              M i , ω d e p time _ pre [ M i + 1 , ω r e a , $ ˙ ( l i , ω ) ] Inv ( l i , ω ) b i , ω Ψ l i , ω
  7:
             if  M i , ω d e p = false then
  8:
                return spurious l i + 1 , ω , M i + 1 , ω r e a ,
                  time _ pre [ Inv ( l i , ω ) b i , ω Ψ l i , ω , $ ˙ ( l i , ω ) ] Inv ( l i + 1 , ω ) b i + 1 , ω Ψ l i + 1 , ω
  9:
             end if
             /* discrete transition */
10:
         else
11:
              M i , ω d e p discrete _ pre [ M i + 1 , ω r e a , g i , ω , X i , ω , h i , ω ] Inv ( l i , ω ) b i , ω Ψ l i , ω
12:
             if  M i , ω d e p = false then
13:
                 return spurious l i + 1 , ω , M i + 1 , ω r e a ,
                  discrete _ pre [ Inv ( l i , ω ) b i , ω Ψ l i , ω , g i , ω , X i , ω ,
                  h i , ω ] Inv ( l i + 1 , ω ) b i + 1 , ω Ψ l i + 1 , ω
14:
             end if
15:
         end if
16:
         M i , ω r e a time _ pre [ M i , ω d e p , $ ˙ ( l i , ω ) ] Inv ( l i , ω ) b i , ω Ψ l i , ω
17:
     end for
18:
     if  M 0 , ω r e a M 0 = false then
19:
         return spurious l 0 , M 0 , ω r e a , M 0
20:
     end if
21:
 end for
22:
 return exists, M ω r e a , M ω d e p
This algorithm finds the target state by the time / discrete _ pre operation on the path ω (line 2), which is an element of the path set Ω (line 1). Here, from  l a s t ( ω ) (line 3) to the forward state (line 4), the starting condition M i , ω r e a (line 3) and the arrival condition M i , ω d e p (line 6) are obtained. Note that the starting condition M i , ω r e a uses different MP zone operations depending on whether the transition from the previous state is a timed transition or a discrete transition (line 5–15).
(1)
If the starting condition M i , ω d e p is f a l s e (line 7), we consider this path to be a false counterexample (line 8) and divide M i + 1 , ω r e a and the MP zone that can transition from ω ( i ) to ω ( i + 1 ) .
(2)
Next, since it is considered that there are abstract and hidden timed transitions on the abstract state, we obtain the arrival condition M i , ω r e p (line 16) by the time _ pre operation.
Repeat (1) and (2) until the first state ω ( 0 ) is obtained, and then check whether the arrival condition M 0 , ω r e p includes the initial state M 0 (line 18). If it is not included, it is judged as a false counterexample and outputs a predicate that separates the attainment condition M 0 , ω r e p and the initial state M 0 (line 19). If it is confirmed that the initial state is reached on any path, output the arrival and departure conditions M ω r e a , M ω d e p for each state that exists and all ω Ω (line 22).
Next, we proceed to simultaneous execution of the counterexample analysis.
(Simultaneous Execution Counterexample Analysis)
First, we briefly explain the algorithm used in simultaneous execution counterexample analysis as follows: This algorithm takes as input the set of arrival conditions M ω r e a and the set of departure conditions M ω d e p for each element ω in the path set obtained in Algorithm 1 and finds the MP zones that can be reached by these paths simultaneously via a forward search from the initial state.
If the counterexample Ω is empty in Path Counterexample Analysis, we verify whether the analyzed counterexamples can be executed simultaneously under the same adversary condition. For a given state on the concrete structure, the choice between timed transitions and discrete transitions is non-deterministic. In this case, the nondeterminism is resolved by providing an adversary, resulting in a path that is a sequence-of-state transition. On the other hand, since time is abstracted on the abstract structure, abstract paths included in the abstract counterexamples obtained by the reachability analysis may not be executed simultaneously on the concrete structure. Therefore, in this stage of simultaneous execution counterexample analysis, we check that the adversaries are identical for the obtained counterexamples. Figure 3 is an overview of the procedure for obtaining arrival and departure conditions in simultaneous execution counterexample analysis, where ω , ω are elements of different counterexamples. When the common part of these paths up to the i-th path is equal, by the product of the arrival condition M i , ω r e a , M i , ω r e a and the departure condition M i , ω d e p , M i , ω d e p and the starting condition M i , ω d e p , we obtain the set of states that can be executed simultaneously from the forward.
The algorithm for simultaneous execution counterexample analysis (forward counterexample analysis) is shown in Algorithm 2.
This algorithm takes as input the set of arrival conditions M ω r e a and the set of departure conditions M ω d e p for each element ω in the path set obtained in Algorithm 1 (line 1), and finds the MP zones that can be reached by these paths simultaneously via a forward search from the initial state.
(1)
First, we take one path P a t h ω from the set P a t h f i n that has the common part of all paths and perform assignments true to its starting condition M ω d e p and reaching condition M ω r e a , which are initialized by assigning true (line 2–4). Let M 0 be the initial condition of arrival (line 6).
(2)
Next, starting from the one with the smallest length of the common part C Ω m a x (line 7), the arrival and departure conditions are sequentially obtained.
(a)
In the reachability condition, for each path ω of the candidate counterexamples (line 8), we take the product of the reachability condition of the common part M ω i - t h r e a and the reachability condition of that path M i , ω r e a , which is the arrival condition of the path (line 10).
(a-1)
If the product is false, it is a false counterexample because it indicates that there is no common path on the timed probability system and outputs a predicate that splits M ω i t h r e a and M i , ω r e a (line 11).
(a-2)
If the products not false, this product is newly set as the arrival condition of the common part M ω i t h r e a (line 13), and then the time-transferable starting condition is obtained from this arrival condition (line 14).
(b)
Next, for each path ω of the candidate counterexamples (line 17), we similarly take the product of the starting condition of the common part M ω i - t h d e p and the starting condition of that path M i , ω M d e p , which is the starting condition of the path (line 19).
(b-1)
If the product is false, we similarly judge it to be a false counterexample and output the predicate that splits M ω i - t h d e p and M i , ω d e p (line 20).
(b-2)
If the product is not false, this product is the new starting condition for the common part M ω i - t h d e p (line 22). Furthermore, from these starting conditions, we obtain the arrival conditions under which timed transitions and discrete transitions are possible (line 23–26). If the arrival and departure conditions are not false for all common parts, we can say that all paths can be executed by at least one adversary. In other words, we can say that the counterexample exists, so the “Reachable”, which is the solution of exists and verification, is output (line 31), and the verification is terminated.

4.4. Refinement

When a false counterexample is determined by the counterexample analysis, the abstract state is refined by adding a predicate so that the counterexample does not exist. The information necessary for the refinement is obtained from the result of the previous stage of the counterexample analysis.

4.4.1. Path Counterexample Analysis

In the path counterexample analysis, a counterexample is a false counterexample if the path ω that is an element of the counterexample Ω is not executable on the concrete structure M . In other words, this means that there is no path corresponding to the abstract path ω on the concrete structure. In this case, the transition q q on the concrete structure corresponding to at least one transition q i q i + 1 in ω is non-transitionable because the transistibility or invariance condition in q is not transitive because it does not satisfy either the transitivity condition or the invariance condition on q . However, on the abstract structure, it is feasible from the reachability analysis. This happens because the transitionable and non-transitionable states of a location are equated by abstraction. Therefore, by splitting the abstract state into two states that are transitive and non-transitive by predicates, the counterexample becomes infeasible. The predicate that divides this state is chosen from the zone at q, and the transitivity condition, or the invariance condition at q . An overview of refinement by path counterexample analysis is shown in Figure 4, where q i , q i + 1 are abstract states with transitions that cannot be executed by real operation obtained by path counterexample analysis, discrete / time _ succ ( b i , ω Ψ l i , ω ) are the reachable states on the abstract state and the starting and reaching conditions obtained by path counterexample analysis, respectively, ψ is the predicate that divides them.
Algorithm 2 Simultaneous execution counterexample analysis (forward counterexample analysis)
  1:
 Input P 2 T A , Ω , P a t h f i n , M Ω r e a , M Ω d e p
  2:
 for  ω Path f i n  do
  3:
      M ω r e a true
  4:
      M ω d e p true
  5:
 end for
  6:
  M ω = q 0 d e p M 0
  7:
 for  ( i = 0 , , C Ω m a x )  do
  8:
     for  ω Ω  do
  9:
         if  | ω | > i  then
10:
             if  M ω i t h r e a M i , ω r e a = false then
11:
                 return spurious l i , ω , M ω i t h r e a , M i , ω r e a
12:
             end if
13:
              M ω i t h r e a M ω i t h r e a M i , ω r e a
14:
              M ω i t h d e p time _ pre [ M ω i t h d e p ] Inv ( l i + 1 , ω ) b i + 1 , ω Ψ l i + 1 , ω
15:
         end if
16:
    end for
17:
    for  ω Ω  do
18:
        if  | ω | > i  then
19:
            if  M ω i t h d e p M i , ω d e p = false then
20:
                return spurious l i , ω , M ω i t h d e p , M i , ω d e p
21:
            end if
22:
             M ω i t h d e p M ω i t h d e p M i , ω d e p
23:
            if  ω ( i ) μ is a timed transition then
24:
                 M ω ( i + 1 ) t h r e a time _ pre [ M ω i t h d e p ] Inv ( l i + 1 , ω ) b i + 1 , ω Ψ l i + 1 , ω
25:
            else
26:
                 M ω ( i + 1 ) t h r e a discrete _ pre [ M ω i t h d e p , ζ i , ω g , X i , ω ] Inv ( l i + 1 , ω ) b i + 1 , ω Ψ l i + 1 , ω
27:
            end if
28:
         end if
29:
     end for
30:
 end for
31:
 return exists, “Reachable”

4.4.2. Simultaneous Execution Counterexample Analysis

When a false counterexample is found in simultaneous execution counterexample analysis, it means that a different destination is chosen for an abstract state q with arbitrary simultaneous executed paths. In other words, different timed and discrete transitions are taking place in a given state. Thus, splitting q into two parts with respect to timed transitions makes timed transitions and discrete transitions noncompetitive. Therefore, we add a time condition indicating this boundary as a predicate. An overview of refinement by simultaneous execution counterexample analysis is shown in Figure 5, where ω , ω is any simultaneous execution path, q is the abstract state shown to be incapable of simultaneous execution in simultaneous execution counterexample analysis, ψ is a predicate that can split them, and q , q are the states divided by the predicate ψ .
In the new abstract structure with the added predicate, the previous false counterexample becomes infeasible. Thus, by repeating this process, we can finally construct an abstract structure that can compute the correct probability.

5. Priced Probabilistic Timed CEGAR

5.1. Overview

The CEGAR framework [4,5] automatically adapts predicate abstraction and refinement by counterexample. In this section, we describe the operation of priced probabilistic timed CEGAR, which is an extension of CEGAR for the purpose of verifying a priced probabilistic timed automaton. Reachability analysis by priced probabilistic timed CEGAR building on the work of the previous section is shown in Figure 6.
  • Initial Abstraction:
    From a priced probabilistic timed automaton P 2 T A and a verification problem Problem , we construct a timed probabilistic system M and an initial predicate set Ψ i n i t , from which we construct an initial abstract structure M Ψ i n i t P s i i n i t from them.
  • Reachability Analysis:
    Compute the maximum reachability probability to the target state on M Ψ .
  • Counterexample Analysis:
    For each element of the counterexample Ω s m a l l e s t that has reached the target state by 2. reachability analysis, analyze whether it is reachable on the concrete structure M by path counterexample analysis and simultaneous execution counterexample analysis.
  • Refinement:
    From the results of 3. Counterexample Analysis, we obtain a set of predicates Ψ n e w that partitions the abstract state so that there are no counterexamples obtained by 2. Reachability Analysis.
  • Abstraction:
    From the set of predicates Ψ = Ψ Ψ n e w to which the predicate is added, we obtain a new abstract structure M Ψ .
  • Return to 2. Reachability Analysis.
By repeating this loop, the system determines whether it will “Reach” or “Not Reach” the target state. In the case of “Reach,” a concrete path to the target state is provided, and this information can be used to modify and improve the system specification.
As shown in Figure 6, CEGAR stands for counterexample-guided abstraction refinement, and it operates in a loop consisting of abstraction, reachability analysis, counterexample checking, and refinement. When a property fails on the abstract model, if the counterexample is executable on the concrete model, we know there is a real bug; if it is not executable, we conclude that the abstraction is too coarse. In other words, if there are no counterexamples, the error metric is reached; if there are counterexamples, the model is refined and the reachability analysis is performed. This process is repeated until the model is ultimately refined back to its original form.

5.2. Verification Example by Priced Probabilistic Timed CEGAR

In WSNs, from a practical standpoint, the cost of reaching the target location and the probability of doing so are critical. We model a sensor node M n o d e i shown in Figure 7. The following is an example of verification in the WSNs model M for n = 3 shown in Figure 8. We will verify whether the target location can be reached with a probability greater than a certain threshold cost within three hops. Here, the verification problem is ( l 5 , λ = 0.01 , κ = 30 ) . Using the verification problem, we verify whether there will be no path in the abstract structure that reaches the target location L 5 with a probability greater than κ = 30 and a probability greater than λ = 0.01 of reaching the target.
In this subsection, we show the verification procedure of priced probabilistic timed CEGAR through an example. The verification example is an n-point hop wireless sensor network composed of n sensor nodes M n o d e i shown in Figure 7. The behavior of this WSN is as follows: In normal operation, it is active and senses the surrounding environment. When it receives an external event, it moves to the sending state, which notifies surrounding sensor nodes of the detection of the event. At this time, sensor nodes communicate wirelessly. Wireless communication is probabilistic, and communication succeeds with probability p. Also, regardless of the outcome of the communication, the cumulative cost increases by d α as the transmission cost, where d is the Euclidean distance between nodes and α is the communication channel characteristic, which is between one and six [9]. If the communication is successful, the node is put into a dormant sleep state, and if it fails, the node loops back to the sending state and retransmits the message. If the accumulated cost since startup in any of the non-sleep states becomes larger than κ , the system moves to the exhaust state, indicating that the system is down.
Example 2
(Verification example). First of all, locations in the set of target locations are initially abstracted by the predicate z > κ , which consists of the target cost κ. Otherwise, initial abstraction is performed according to the initial predicate set Ψ i n i t whose origin is all t r u e . Next, for the obtained abstract structure M , we perform a probability reachability analysis with target probability λ. As a result, we obtain ( A , ω ) as a candidate counterexample. We select the smallest counterexample Ω s m a l l e s t from this candidate counterexample. The element of Ω s m a l l e s t consists only of ω = l 0 l 5 . A counterexample analysis is performed for this counterexample. This is judged to be infeasible on the concrete structure because it cannot return to the initial state ( l 0 , ( ν 0 , c 0 ) ) in path counterexample analysis. Therefore, we refine abstract structure M by splitting the abstract state l 0 using the predicate ψ l 0 = z 28 + 4 x 1 , and again construct abstract structure M in Figure 9. As a result, the abstract state L 5 is unreachable on this counterexample, so this counterexample is excluded from the candidate counterexamples.
As described above, by following the verification procedure according to the costed probability time CEGAR, there will be no path in the abstract structure that reaches the target location L 5 with a probability greater than κ = 30 and a probability greater than λ = 0.01 of reaching the target. In other words, the result is “Not Reachable”. Therefore, this model is “Yes Reachable” for the Cost-bounded probability reachability problem ( l 4 , 1 λ = 0.99 , κ = 30 ) .

5.3. Empirical Experiments and Discussions

In this subsection, we present the results and discussion on the empirical experiments conducted by implementing the priced probabilistic timed CEGAR verification algorithm.
The verification prototype program was implemented by Mathematica 6. The properties of the verification machine are as follows: 32-bit Microsoft Windows Vista Business Service Pack 1 OS, Intel Xeon CPU 5160 3.00 GHz and 2.99 GHz processors. The memory is 4.00 GB.
The model of verification is a WSN with four sensor nodes and three point hops and the verification problem is ( l e r r o r , λ = 0.3 , κ = 32 ) . The experimental result shows that the verification was completed with 22 CEGAR loops and 66 states in Figure 10 and Figure 11.
  • From Figure 10, it can be seen that the computation time and the memory used for verification increase exponentially with the number of CEGAR verification loops. The exponential increase may be due to the effect of the quantifier elimination ([19]) used in the implementation of the state set operation.
  • Also, from Figure 11, the number of states shows a linear increase. Considering that the number of states of the finite state graph equivalent to the priced-removed probabilistic timed automaton is 4 3 = 64 , which is multiplied by the number of states of the priced-added probabilistic timed automaton, the effect of state reduction is considered sufficient.
On the other hand, the Fortuna Model Checker is the first tool for model checking priced probabilistic timed automata [12]. Fortuna is able to compute the maximal probability by which a state can be reached under a certain cost-bound and time-bound. Fortuna uses a number of crucial optimizations on that algorithm. Fortuna depends on a number of external libraries. The external libraries are the following:
  • The BOOST C++ Libraries. Fortuna only depends on header files from BOOST.
  • The Parma Polyhedra Library (PPL version 0.10). A pre-compiled version is available for Linux.
  • The GNU Multiple Precision Arithmetic Library, libraries gmp and gmpxx. These libraries are already installed on standard Linux distributions. They are needed only by PPL.
  • The lp solve library version 5.5.
The Fortuna Model Checker is expected to be more efficient than our priced probabilistic timed CEGAR, since the verification prototype program was implemented by Mathematica 6. But our priced probabilistic timed CEGAR is a milestone for the CEGAR model checking for priced probabilistic timed automata, and the future is promising.

5.4. Discussion of Theoretical Aspects

In the behavior of a priced probabilistic timed automaton, when there is a self-loop that transitions to the same state, it is difficult to solve a cost-bounded maximal probability reachability problem that requires the behavior to be investigated, since there may be an infinite number of paths that can be used to reach the target state [13]. It is known that the probability reachability problem can be verified by examining a finite number of paths by restricting the problem of reachability from ≤ to the form > [18]. In this paper, we define a cost-bounded probability reachability problem that can be verified with finite numbers by adding a cost bound such as >. By repeating these loops from 1 to 6 in Section 5.1, the verification system can determine whether it is able to “Reach” or “Not Reach” the target state, and the verification halts within a finite amount of time. In the case of “Reach,” a concrete path to the target state is given, and this information can be used to modify and improve the system specification.

6. Conclusions

In this paper, we focus on priced probabilistic timed automaton [3] as a specification description language and propose priced probabilistic timed CEGAR using abstraction refinement [4,5] in order to reduce the state explosion. To the best of our knowledge, this paper is the first CEGAR development and implementation of a priced probabilistic timed automaton. The verification prototype program was implemented by Mathematica 6.
Although a priced probabilistic timed automaton is an important model for representing cost, probability, and time, it is also a complex model, and reducing the number of states through model checking is challenging; to the best of our knowledge, no such solution exists. To reduce the number of states, we focus on CEGAR—a framework that simplifies complex models to enable model checking—and develop an innovative model-checking method to verify that the prototype functions correctly on a computer. However, although we were unable to demonstrate its performance due to the mathematics-based prototype, we were able to grasp the characteristics of model checking using CEGAR, a priced probabilistic timed automaton.
Using a wireless sensor network [9] with time, cost, and probabilistic behavior as a case study, we propose and demonstrate the effectiveness of a reachability analysis method using priced probabilistic timed CEGAR to reduce the state explosion. For sensor nodes, which are the components of WSNs, there are physical quantities such as time and cost, as well as probabilistic behaviors, which can be described and verified using a priced probabilistic timed automaton. Through verification experiments, we found that the computation time and the memory used for verification increased exponentially with the number of CEGAR verification loops, and the number of states showed a linear increase. The exponential increase may be due to the effect of the quantifier elimination ([19]) used in the implementation of the state set operation. As for the linear increase in the number of states, the effect of state reduction is considered sufficient.
Due to the limitations of Mathematica 6, further experimentation was not possible, so an implementation of priced probabilistic timed CEGAR in the c language is underway as an ongoing study. This paper is innovative and significant as a milestone in the development of an extension of CEGAR to priced probabilistic timed automata. The proposal in this paper has been prototyped in Mathematica to understand its characteristics. Fortuna, the only existing symbolic model checker, is implemented in C++ and uses high-performance libraries. Developing a full-fledged tool such as the symbolic model checker Fortuna remains an unaddressed challenge and will be described in a future paper.

Funding

The APC was funded by Shimonoseki City University.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Please contact the author for data related to the research findings.

Acknowledgments

I thank the graduate students of the Computer Software Laboratory of Kanazawa University for their help in implementing the CEGAR prototype program.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Bohnenkamp, H.; van der Stok, P.; Hermanns, H.; Vaandrager, F. Cost-optimization of the ipv4 zeroconf protocol. In Proceedings of the International Conference on Dependable Systems and Networks, San Francisco, CA, USA, 22–25 June 2003; pp. 531–540. [Google Scholar]
  2. Berendsen, J.; Gebremichael, B.; Vaandrager, F.W.; Zhang, M. Formal specification and analysis of zeroconf using uppaalS. ACM Trans. Embed. Comput. Syst. 2011, 10, 34. [Google Scholar] [CrossRef]
  3. Katoen, J.P.; Jansen, D.N.; Berendsen, J. Probably on time and within budget on reachability in priced probabilistic timed automata. In Proceedings of the Third International Conference on the Quantitative Evaluation of Systems—(QEST’06), Riverside, CA, USA, 11–14 September 2006; pp. 311–320. [Google Scholar]
  4. Clarke, E.M.; Grumberg, O.; Jha, S.; Lu, Y.; Veith, H. Counterexample-guided abstraction refinement for symbolic model checking. J. ACM 2003, 50, 752–794. [Google Scholar] [CrossRef]
  5. Yamane, S.; Shimizu, T. Development of probabilistic timed CEGAR. In Proceedings of the 2014 2nd International Conference on Systems and Informatics (ICSAI 2014), Shanghai, China, 15–17 November 2014; pp. 482–491. [Google Scholar]
  6. Mouradian, A.; Auge-Blum, I. Modeling local broadcast behavior of wireless sensor networks with timed automata for model checking of WCTT. In Proceedings of the 2nd International Workshop on Worst-Case Traversal Time, San Juan, PR, USA, 4 December 2012; pp. 23–30. [Google Scholar]
  7. Zhang, F.; Bu, L.; Wang, L.; Zhao, J.; Chen, X.; Zhang, T.; Li, X. Modeling and Evaluation of Wireless Sensor Network Protocols by Stochastic Timed Automata. Electron. Notes Theor. Comput. Sci. 2013, 296, 261–277. [Google Scholar] [CrossRef]
  8. Ju, H.; Zhang, R. Throughput Maximization in Wireless Powered Communication Networks. IEEE Trans. Wirel. Commun. 2013, 13, 418–428. [Google Scholar] [CrossRef]
  9. Santi, P. Topology Control in Wireless Ad Hoc and Sensor Networks. ACM Comput. Surv. 2005, 37, 164–194. [Google Scholar] [CrossRef]
  10. Clarke, E.M.; Henzinger, T.A.; Veith, H.; Bloem, R. Handbook of Model Checking; Springer: Berlin/Heidelberg, Germany, 2018. [Google Scholar]
  11. APMC: Approximate Probabilistic Model Checker. Available online: https://github.com/ix-labs/apmc (accessed on 9 May 2026).
  12. The Fortuna Model Checker. Available online: https://www.cs.ru.nl/J.Berendsen/fortuna/ (accessed on 10 May 2026).
  13. Berendsen, J.; Jansen, D.N.; Vaandrager, F.W. Fortuna: Model Checking Priced Probabilistic Timed Automata. In Proceedings of the 2010 Seventh International Conference on the Quantitative Evaluation of Systems, Williamsburg, VA, USA, 15–18 September 2010; pp. 273–281. [Google Scholar]
  14. Yamane, S. Specification and Verification Method of Parallel Hierarchical Timed Automata by Predicate Abstraction and Refinement. IEEE Access 2025, 13, 90017–90033. [Google Scholar] [CrossRef]
  15. Yamane, S.; Kamide, H.; Wu, Y. Verifying Reachability with Real-Time Properties of Embedded Assembly Programs Based on Lazy Abstraction and Refinement. IEEE Access 2025, 13, 207987–208006. [Google Scholar] [CrossRef]
  16. Kwiatkowska, M.; Norman, G.; Sproston, J.; Wang, F. Symbolic model checking for probabilistic timed automata. Inf. Comput. 2007, 205, 1027–1077. [Google Scholar] [CrossRef]
  17. Moller, M.O.; Rues, H.; Sorea, M. Predicate Abstraction for Dense Real-Time Systems. Electron. Notes Theor. Comput. Sci. 2002, 65, 1–30. [Google Scholar] [CrossRef]
  18. Han, T.; Katoen, T.J.P. Counterexamples in probabilistic model checking. In LNCS 4424; Springer: Berlin/Heidelberg, Germany, 2007; pp. 72–86. [Google Scholar]
  19. Quantifier Elimination. Available online: https://mathworld.wolfram.com/QuantifierElimination.html (accessed on 10 May 2026).
Figure 1. Example of priced probabilistic timed automaton.
Figure 1. Example of priced probabilistic timed automaton.
Electronics 15 02366 g001
Figure 2. Path counterexample analysis.
Figure 2. Path counterexample analysis.
Electronics 15 02366 g002
Figure 3. Simultaneous execution counterexample analysis.
Figure 3. Simultaneous execution counterexample analysis.
Electronics 15 02366 g003
Figure 4. Refinement by path counterexample analysis.
Figure 4. Refinement by path counterexample analysis.
Electronics 15 02366 g004
Figure 5. Refinement by simultaneous execution counterexample analysis.
Figure 5. Refinement by simultaneous execution counterexample analysis.
Electronics 15 02366 g005
Figure 6. Configuration of Priced probabilistic timed CEGAR.
Figure 6. Configuration of Priced probabilistic timed CEGAR.
Electronics 15 02366 g006
Figure 7. P 2 T A model of sensor node M n o d e i .
Figure 7. P 2 T A model of sensor node M n o d e i .
Electronics 15 02366 g007
Figure 8. P 2 T A model of WSNs such that M n o d e 1 × × M n o d e 3 .
Figure 8. P 2 T A model of WSNs such that M n o d e 1 × × M n o d e 3 .
Electronics 15 02366 g008
Figure 9. Abstract structure after refinement.
Figure 9. Abstract structure after refinement.
Electronics 15 02366 g009
Figure 10. Experimental result: verification loop—execution time.
Figure 10. Experimental result: verification loop—execution time.
Electronics 15 02366 g010
Figure 11. Experimental result: verification loop—number of states, memory consumption.
Figure 11. Experimental result: verification loop—number of states, memory consumption.
Electronics 15 02366 g011
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yamane, S. Reachability Analysis Method Using Abstraction and Refinement of Priced Probabilistic Timed Automaton and Its Application for Design Verification of Wireless Sensor Networks. Electronics 2026, 15, 2366. https://doi.org/10.3390/electronics15112366

AMA Style

Yamane S. Reachability Analysis Method Using Abstraction and Refinement of Priced Probabilistic Timed Automaton and Its Application for Design Verification of Wireless Sensor Networks. Electronics. 2026; 15(11):2366. https://doi.org/10.3390/electronics15112366

Chicago/Turabian Style

Yamane, Satoshi. 2026. "Reachability Analysis Method Using Abstraction and Refinement of Priced Probabilistic Timed Automaton and Its Application for Design Verification of Wireless Sensor Networks" Electronics 15, no. 11: 2366. https://doi.org/10.3390/electronics15112366

APA Style

Yamane, S. (2026). Reachability Analysis Method Using Abstraction and Refinement of Priced Probabilistic Timed Automaton and Its Application for Design Verification of Wireless Sensor Networks. Electronics, 15(11), 2366. https://doi.org/10.3390/electronics15112366

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop