Region (model checking)

In model checking, a field of computer science, a region is a convex polytope in ℝd for some dimension d, and more precisely a zone, satisfying some minimality property. The regions partition ℝd.

The set of zones depends on a set K of constraints of the form x≤c, x≥c, x1≤x2+c and x1≥x2+c, with x1 and x2 some variables, and c a constant. The regions are defined such that if two vectors x→ and x→′ belong to the same region, then they satisfy the same constraints of K. Furthermore, when those vectors are considered as a tuple of clocks, both vectors have the same set of possible futures. Intuitively, it means that any timed propositional temporal logic-formula, or timed automaton or signal automaton using only the constraints of K can not distinguish both vectors.

The set of region allows to create the region automaton, which is a directed graph in which each node is a region, and each edge r->r′ ensure that r′ is a possible future of r. Taking a product of this region automaton and of a timed automaton 𝒜 which accepts a language L creates a finite automaton or a Büchi automaton which accepts untimed L. In particular, it allows to reduce the emptiness problem for 𝒜 to the emptiness problem for a finite or Büchi automaton. This technique is used for example by the software UPPAAL.[1]

## Contents

* 1 Definition
* 1.1 Equivalence of clocks assignment
* 1.2 Explicit definition of a region
* 1.3 Timed bisimulation
* 2 Operation on regions
* 2.1 Resetting clocks
* 2.2 Time-successor
* 2.2.1 Definition
* 2.2.2 Computable definition
* 3 Properties
* 4 Region automaton
* 4.1 Region graph
* 4.2 Region automaton
* 5 References

## Definition

Let C={x1,…,xd} a set of clocks. For each x∈ℕ let cx∈ℕ. Intuitively, this number represents an upper bound on the values to which the clock x can be compared. The definition of a region over the clocks of C uses those numbers cx's. Three equivalent definitions are now given.

Given a clock assignment ν, [ν] denotes the region in which ν belongs. The set of regions is denoted by ℛ.

### Equivalence of clocks assignment

The first definition allow to easily test whether two assignments belong to the same region.

A region may be defined as an equivalence class for some equivalence relation. Two clocks assignments ν1 and ν2 are equivalent if they satisfy the following constraints:[2]: 202

* ν1(x)∼c iff ν2(x)∼c, for each x∈C and 0≤c≤cx an integer, and ~ being one of the following relation =, < or ≤.
* {ν1(x)}∼{ν1(y)} iff {ν2(x)}∼{ν2(y)}, for each x,y∈C, ν1(x)≤cx, ν1(y)≤cy, {r} being the fractional part of the real r, and ~ being one of the following relation =, < or ≤.

The first kind of constraints ensures that ν1 and ν2 satisfies the same constraints. Indeed, if ν1(x)=0.5 and ν2(x)=1, then only the second assignment satisfies x=1. On the other hand, if ν1(x)=0.5 and ν2(x)=0.6, both assignment satisfies exactly the same set of constraint, since the constraints use only integral constants.

The second kind of constraints ensures that the future of two assignments satisfy the same constraints. For example, let ν1={x↦0.5,y↦0.6} and ν2={x↦0.5,y↦0.4}. Then, the constraint y=1∧x<1 is eventually satisfied by the future of ν1 without clock reset, but not by the future of ν2 without clock reset.

### Explicit definition of a region

While the previous definition allow to test whether two assignments belong to the same region, it does not allow to easily represents a region as a data structure. The third definition given below allow to give a canonical encoding of a region.

A region can be explicitly defined as a zone, using a set S of equations and inequations satisfying the following constraints:

* for each x∈C, S contains either:
* x=c for some integer 0≤c≤cx
* x∈(c,c+1) for some integer 0≤c<cx,
* x>cx,
* furthermore, for each pair of clocks x,y∈C, where S contains constraints of the form x∈(c,c+1) and y∈(c′,c′+1), then S contains an (in) equality of the form {x}∼{y} with ∼ being either =, < or ≤.

Since, when c and c′ are fixed, the last constraint is equivalent to x∼y+c−c′.

This definition allow to encode a region as a data structure. It suffices, for each clock, to state to which interval it belongs and to recall the order of the fractional part of the clocks which belong in an open interval of length 1. It follows that the size of this structure is O(∑log⁡(ck)+|C|log⁡(|C|)) with |C| the number of clocks.

### Timed bisimulation

Let us now give a third definition of regions. While this definition is more abstract, it is also the reason why regions are used in model checking. Intuitively, this definition states that two clock assignments belong to the same region if the differences between them are such that no timed automaton can notice them. Given any run r starting with a clock assignment ν, for any other assignment ν′ in the same region, there is a run r′, going through the same locations, reading the same letters, where the only difference is that the time waited between two successive transition may be different, and thus the successive clock variations are different.

The formal definition is now given. Given a set of clock C, two assignments two clocks assignments ν1 and ν2 belongs to the same region if for each timed automaton 𝒜 in which the guards never compare a clock x to a number greater than cx, given any location ℓ of 𝒜, there is a timed bisimulation between the extended states (ℓ,ν1) and (ℓ,ν2). More precisely, this bisimulation preserves letters and locations but not the exact clock assignments.[1]: 7

## Operation on regions

Some operations are now defined over regions: Resetting some of its clock, and letting time pass.

### Resetting clocks

Given a region α defined by a set of (in)equations S, and a set of clocks C′⊆C, the region similar to α in which the clocks of C′ are restarted is now defined. This region is denoted by α[C′↦0], it is defined by the following constraints:

* each constraints of S not containing the clock x,
* the constraints x=0 for x∈C′.

The set of assignments defined by α[C′↦0] is exactly the set of assignments ν[C′↦0] for ν∈α.

### Time-successor

Given a region α, the regions which can be attained without resetting a clock are called the time-successors of α. Two equivalent definitions are now given.

#### Definition

A clock region α′ is a time-successor of another clock region α if for each assignment ν∈α, there exists some positive real tν,α′>0 such that ν+tν,α′∈α′.

Note that it does not mean that α+tν,α′=α′. For example, the region α defined by the set of constraint {0<x<1,0<y<1,x<y} has the time-successor α′ defined by the set of constraint {0<x<1,y=1}. Indeed, for each ν∈α, it suffices to take tν,α′=1−ν(y). However, there exists no real t such that α+t=α′ or even such that α+t⊆α′; indeed, α defines a triangle while α′ defines a segment.

#### Computable definition

The second definition now given allow to explicitly compute the set of time-successor of a region, given by its set of constraints.

Given a region α defined as a set of constraints S, let us define its set of time-successors. In order to do so, the following variables are required. Let T⊆S the set of constraints of S of the form xi=ci. Let Y⊆C the set of clocks y such that S contains the constraint y>cy. Let Z⊆C∖Y the set of clocks {z} such that there are no constraints of the form {x}<{z} in S.

If T is empty, α is its own time successor. If Y=C, then α is the only time-successor of α. Otherwise, there is a least time-successor of α not equal to α. The least time-successor, if T is non-empty, contains:

* the constraints of S∖T
* xi>ci,
* {xi}={xj}, and
* for each y such that y>cy does not belong to S, the constraint xi<y.

If T is empty, the least time-successor is defined by the following constraints:

* the constraints of S not using the clocks of Z,
* the constraint z=c+1, for each constraint c<z<c+1 in S, with z∈Z.

## Properties

There are at most |C|!2|C|∏x∈C(2cx+2) regions, where |C| is the number of clocks.[2]: 203

## Region automaton

Given a timed automaton 𝒜, its region automaton is a finite automaton or a Büchi automaton which accepts untimed L. This automaton is similar to 𝒜, where clocks are replaced by region. Intuitively, the region automaton is contructude as a product of 𝒜 and of the region graph. This region graph is defined first.

### Region graph

The region graph is a rooted directed graph which models the set of possible clock valuations during a run of a timed-autoamton. It is defined as follows:

* its nodes are regions,
* its root is the initial region α0, defined by the set of constraints {x=0∣x∈C},
* the set of edges are (α,α′[C′↦0]), for α′ a time-successor of α.

### Region automaton

Let 𝒜=⟨Σ,L,L0,C,F,E⟩ a timed automaton. For each clock x∈C, let cx the greatest number c such that there exists a guard of the form x∼c in 𝒜. The region automaton of 𝒜, denoted by R(𝒜) is a finite or Büchi automaton which is essentially a product of 𝒜 and of the region graph defined above. That is, each state of the region automaton is a pair containing a location of 𝒜 and a region. Since two clocks assignment belonging to the same region satisfies the same guard, each region contains enough information to decide which transitions can be taken.

Formally, the region automaton is defined as follows:

* its alphabet is Σ,
* its set of states is L×ℛ,
* its set of states is L0×{α0} with α0 the initial region,
* its set of accepting states is F×ℛ,
* its transition relation δ contains ((ℓ,α),a,(ℓ′,α′[C′↦0])), for (ℓ,a,g,C′,ℓ′)∈E, such that γ⊨α′ and α′ is a time-successor of α.

Given any run r=(ℓ0,ν0)→t1σ1(ℓ1,ν1)… of 𝒜, the sequence (ℓ0,[ν0])→σ1(ℓ1,[ν1])… is denoted [r], it is a run of R(𝒜) and is accepting if and only if r is accepting[2]: 207 . It follows that L(R(𝒜))=Untime⁡(L(𝒜)). In particular, 𝒜 accepts a timed-word if and only if R(𝒜) accepts a word. Furthermore, an accepting run of 𝒜 can be computed from an accepting run of R(𝒜).

## References

1. ↑ 1.0 1.1 Bengtsson, Johan; Yi, Wang L (2004). "Timed Automata: Semantics, Algorithms and Tools". Lectures on Concurrency and Petri Nets. Lecture Notes in Computer Science. 3098. pp. 87–124. doi:10.1007/978-3-540-27755-2_3. ISBN 978-3-540-22261-3. http://www.it.uu.se/research/group/darts/papers/texts/by-lncs04.ps.
2. ↑ 2.0 2.1 2.2 Alur, Rajeev; Dill, David L (April 25, 1994). "A theory of timed automata". Theoretical Computer Science 126 (2): 183–235. doi:10.1016/0304-3975(94)90010-8. https://www.cis.upenn.edu/~alur/TCS94.pdf.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Region (model checking). Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Region_(model_checking)&oldid=212360"