source: papers/FDL2012/framework.tex @ 81

Last change on this file since 81 was 81, checked in by cecile, 12 years ago

typos et texte un peu allégé

File size: 12.9 KB
Line 
1The model-checking technique we propose is based on the Counterexample-guided
2Abstraction Refinement (CEGAR) methodology \cite{clarke00cegar}. The overall
3description of our methodology is shown in figure \ref{cegar}.
4We take into account the structure of the system as a set of synchronous components,
5each of which has been previously verified and a set of CTL properties is attached to each component. This set refers to the specification of the component. We would like to verify whether a concrete model, $M$ presumably huge sized and composed of several components, satisfies a global ACTL property $\Phi$.
6%Due to state space combinatorial explosion phenomenon that occurs when verifying huge and complex systems, an abstraction or approximation of the concrete model has to be done in order to be able to verify the system with model-checking techniques.
7Instead of building the product of the concrete components, we replace each concrete component by an abstraction of its behavior derived from a subset of the CTL properties it satisfies. Each abstract component represents an over-approximation of the set of behaviors of its related concrete component \cite{braunstein07ctl_abstraction}.
8
9%\subsection{Overall Description of our methodology}
10%In CEGAR loop methodology, in order to verify a global property $\Phi$ on a
11%concrete model $M$, an abstraction of the concrete model $\widehat{M}$ is
12%generated and tested in the model-checker. As the abstract model is an
13%over-approximation of the concrete model and the global property $\Phi$ is in the ACTL fragment,
14As show in \cite{clarke94model} for over-approximation abstraction, if $\Phi$
15holds on the the abstract model then it holds in the concrete model as well.
16However, if $\Phi$ does not hold in the abstract model then one cannot conclude anything regarding the concrete model until the counterexample has been analyzed.
17The test of spurious counter-example is then translated into a
18SAT problem as in \cite{clarke00cegar}. When a counterexample is proven to be spurious, the refinement phase occurs, injecting more preciseness into the (abstract) model to be analyzed.
19
20%\bigskip
21%\begin{definition}
22%The property to be verified, $\Phi$ is an ACTL formula. ACTL formulas
23%are CTL formulas with only universal path quantifiers: AX, AF, AG and AU.
24%\end{definition}
25
26%\begin{definition}
27%Given $\widehat{M} = (\widehat{AP}, \widehat{S}, \widehat{S}_0, \widehat{L}, \widehat{R}, \widehat{F})$ an abstract model of a concrete model, $M$ and $\Phi$, a global property to be verified on $M$, the model-checking result can be interpreted as follows:
28%
29%\begin{itemize}
30%\item{$\widehat{M} \vDash \Phi \Rightarrow M \vDash \Phi$ : verification completed }
31%\item{$\widehat{M} \nvDash \Phi$  and  $\exists \sigma$ : counterexample analysis required in order to determine whether $M \nvDash \Phi$ or $\widehat{M}$ is too coarse. }
32%\end{itemize}
33%\end{definition}
34
35%\bigskip
36%We can conclude that the property $\Phi$ doesn't hold in the concrete model $M$ if the counterexample path is possible in M. Otherwise the abstract model at step $i : \widehat{M}_i$, has to be refined if $\widehat{M}_i \nvDash \Phi$ and the counterexample obtained during model-checking was proven to be \emph{spurious}.
37
38\begin{figure}[h!]
39%   \centering
40%   \includegraphics[width=1.2\textwidth]{our_CEGAR_Loop_Enhanced_2S_PNG}
41%     \hspace*{-5mm}
42     \includegraphics{our_CEGAR_Loop_Enhanced_2S_PNG}
43   \caption{\label{cegar} Verification Process }
44\end{figure}
45
46\subsection{Concrete system definition}
47As mention earlier, our concrete model consists of several components and each
48component comes with its specification.
49The concrete system is a synchronous composition of components, each of which
50described as a Moore machine.
51\begin{definition}
52A \emph{Moore machine} $C$ is defined by a tuple $\langle I, O, R,$ $\delta, \lambda, \mathbf{R}_0 \rangle$, where,
53\begin{itemize}
54\item $I$ is a finite set of Boolean inputs signals.
55\item $O$ is a finite set of Boolean outputs signals.
56\item $R$ is a finite set of Boolean sequential elements (registers).
57\item $\delta : 2^I \times 2^R \rightarrow 2^R$ is the transition function.
58\item $\lambda : 2^R \rightarrow 2^O$ is the output function.
59\item $\mathbf{R}_0 \subseteq 2^R$ is the set of initial states.
60\end{itemize}
61\end{definition}
62
63\emph{States} (or configurations) of the circuit correspond to Boolean configurations of all the sequential elements.
64
65\begin{definition}
66A \emph{Concrete system} $M$ is obtained by synchronous composition of the
67component.\\
68$M = C_1 \parallel C_2 \parallel \ldots \parallel C_n$,where each $C_i$ is a
69Moore machine with a specification associated $\varphi_i = \{\varphi_i^1 \ldots
70\varphi_i^k\}$ Each $\varphi_i^j$ is a CTL$\setminus$X formula whose
71propositions $AP$ belong to $\{I_i\cup O_i\cup R_i\}$ .
72\end{definition}
73
74\subsection{Abstraction definition}
75
76Our abstraction reduces the size of the representation model by
77letting free some of its variables. The point is to determine the good set of variable
78to be freed and when to free them. We take advantage of the CTL specification
79of each component: a CTL property may be seen as a partial view of the tree of
80behaviors of its variables. All the variables not specified by the property
81can be freed. We introduced the Abstract Kripke Structure (AKS for short) which exactly
82specifies when the variable of the property can be freed.
83The abstraction of a component is represented by an AKS,
84derived from a subset of the CTL properties the component satisfies.
85Roughly speaking, AKS($\varphi$), the AKS derived from a CTL property
86$\varphi$, simulates all execution trees whose initial state satisfies
87$\varphi$. In AKS($\varphi$), states are tagged with the truth values of
88$\varphi$'s atomic propositions, among the four truth values of Belnap's logic \cite{belnap77}: inconsistent ($\bot$),
89false ($\mathbf{f}$), true ($\mathbf{t}$) and unknown ($\top$)).
90States with inconsistent truth values are not represented since they refer to non possible
91assignments of the atomic propositions. A set of fairness constraints eliminates non-progress cycles.
92
93
94%Assume that we have an abstract Kripke structure (AKS) representing the abstract model $\widehat{M}$ of the concrete model of the system M with regard to the property to be verified, $\Phi$. The abstraction method is based on the work described in \cite{ braunstein07ctl_abstraction}.
95
96\begin{definition}{\label{def-aks}}
97Given a CTL$\setminus$X property $\varphi$ whose set of atomic propositions is
98$AP$, An \emph{Abstract Kripke Structure}, $AKS(\varphi) =(AP, \widehat{S}, \widehat{S}_0, \widehat{L}, \widehat{R}, \widehat{F})$ is a 6-tuple consisting of:
99
100\begin{itemize}
101\item { $AP$ : The finite set of atomic propositions of property $\varphi$ }   
102\item { $\widehat{S}$ : a finite set of states}
103\item { $\widehat{S}_0 \subseteq \widehat{S}$ : a set of initial states}
104\item { $\widehat{L} : \widehat{S} \rightarrow \cal{B}^{\mid AP \mid}$ with $\cal{B} = \{\bot, \mathbf{f}, \mathbf{t},\top\}$: a labeling function which labels each state with configuration of current value of each atomic proposition.}
105\item { $\widehat{R} \subseteq \widehat{S} \times \widehat{S}$ : a transition relation where $ \forall s \in \widehat{S}, \exists s' \in \widehat{S}$ such that $(s,s') \in \widehat{R}$ }
106\item { $\widehat{F}$ : a set of fairness constraints (generalized B\"uchi
107acceptance condition)}
108\end{itemize}
109\end{definition}
110%\bigskip
111
112We denote by $\widehat{L}(s)$ the configuration of atomic propositions in state $s$ and by $\widehat{L}(s)[p]$ the projection of configuration $\widehat{L}(s)$ according to atomic proposition $p$.
113
114
115As the abstract model $\widehat{M}$ is generated from the conjunction of verified properties of the components in the concrete model $M$, it can be seen as the composition of the AKS of each property.
116The AKS composition has been defined in \cite{braunstein_phd07}; it extends
117the classical synchronous composition of Moore machine to deal with
118four-valued variables.
119%\bigskip
120
121\begin{definition} An \emph{Abstract model} $\widehat{M}$ is obtained by
122synchronous composition of components abstractions. Let $n$ be the number of components in the model and $m$ be the number of selected verified properties of a component;
123let $C_j$ be a component of the concrete model $M$ and $\varphi_{j}^k$ is a CTL formula describing a satisfied property of component $C_j$. Let $AKS (\varphi_{C_j^k})$ the AKS generated from $\varphi_j^k$. We have $\forall j \in [1,n]$ and $\forall k \in [1,m]$:
124
125\begin{itemize}
126\item{$ \widehat{C}_j = AKS (\varphi_{C_j^1}) ~||~ AKS (\varphi_{C_j^2} ) ~||~...~||~ AKS (\varphi_{C_j^k}) ~||$\\ $ ...~||~ AKS (\varphi_{C_j^m}) $}
127\item{$ \widehat{M} = \widehat{C}_1 ~||~ \widehat{C}_2 ~||~ ... ~||~ \widehat{C}_j ~||~... ~||~ \widehat{C}_n $}
128\end{itemize}
129
130\end{definition}
131
132
133The generation of an abstract model in the form of AKS from CTL formulas is described in \cite{braunstein07ctl_abstraction} and has been implemented (\cite{bara08abs_composant}).
134
135
136%\subsection{Characterization of AKS}
137
138In an AKS a state where a variable $p$ is {\it unknown}
139can simulate all states in which $p$ is either true or false. It
140is a concise representation of the set of more concrete states in which $p$
141is either true or false.  A state $s$ is said to be an \emph{abstract state}
142if one its variable $p$ is {\it unknown}.
143
144%\begin{definition}
145%A state $s$ is an {\emph abstract state} if one its variable $p$ is {\it unknown}.
146%\end{definition}
147
148\begin{definition}[]
149The \emph {concretization} of an abstract state $s$ with respect to the variable $p$
150({\it unknown} in that state), assigns either true or false to $p$.
151
152The \emph {abstraction} of a state $s$ with respect to the variable $p$
153(either true or false in that state), assigns  {\it unknown} to $p$.
154\end{definition}
155
156\begin{property}[Concretization]
157\label{prop:concrete}
158Let $A_i$ and $A_j$ two abstractions such that $A_j$ is obtained by
159concretizing one abstract variable of $A_i$ (resp. $A_i$ is obtained by
160abstracting one variable in $A_j$). Then $A_i$ simulates $A_j$ and $A_j$
161concretizes $A_i$ , denoted by
162$A_j \sqsubseteq A_i$.
163\end{property}
164\begin{proof}
165As the concretization of state reduces the set of concrete configuration the
166abstract state represents but does not affect the transition relation of the
167AKS. The unroll execution tree of $A_j$ is a sub-tree of the one of $A_i$. Then
168$A_i$ simulates $A_j$.
169\end{proof}
170
171\begin{property}[Composition and Concretization]
172\label{prop:concrete_compose}
173Let $\widehat{M_i}$ be an abstract model of $M$ and $\varphi_j^k$ be a property
174of a component $C_j$ of M,  $\widehat{M}_{i+1} = \widehat{M_i}\parallel
175AKS(\varphi_j^k) $ is more concrete that $ \widehat{M_i}$, $\widehat{M_{i+1}}
176\sqsubseteq \widehat{M}_i$.
177\end{property}
178
179\begin{proof}
180Let $s = (s_i,s_{\varphi_j^k})$ be a state in $S_{i+1}$, such that $s_i\in S_i$ 
181and $s_{\varphi_j^k} \in S_{\varphi_j^k}$.
182The label of $s_{i+1}$ respects the Belnap logic operator. For all $p \in
183AP_i \cup AP_{\varphi_j^k}$ we have the following label~:
184\begin{itemize}
185\topsep -.5em
186\itemsep -0.5em
187\item  $\widehat{L}_{i+1}[p] = \top$ iff  p is {\it unknown} in both states or
188does not belong to the set of atomic proposition.
189\item  $\widehat{L}_{i+1}[p] = \mathbf{t}$ (or $\mathbf{f}$) iff $p$ is true
190(or false) in $s_{\varphi_j^k}$ (resp. $s_i$)  and {\it unknown} in $s_i$
191(resp. $s_{\varphi_j^k}$).
192\end{itemize}
193By property \ref{prop:concrete}, $M_{i+1}$ is more concrete than $M_i$ and by
194the property of parallel composition,
195$\widehat{M_i} \sqsubseteq \widehat{M}_{i} \parallel AKS(\varphi_j^k$).
196\end{proof}
197
198\subsection{Initial abstraction}
199Given a global property $\Phi$, the property to be verified by the composition of the concrete components model, an abstract model is generated by selecting some of the properties of the components which are relevant to $\Phi$.
200%We suppose that our concrete model is a composition of several components and
201%each component has been previously verified. Hence, we have a set of verified
202%properties for each component of the concrete model. The main idea of this
203%technique is that we would like to make use of these properties to generate a
204%better abstract model. Properties of the components that appear to be related
205%to the global property to be verified, $\Phi$ are selected to generate the
206%abstract model $\widehat{M}_i$. This method is particularly interesting as it
207%gives a possibility to converge quicker to an abstract model that is
208%sufficient to satisfy the global property $\Phi$.
209%In the following, we will name primary variables the set of variable that
210%appears in the global property.
211In the initial abstraction generation, all variables that appear int $\Phi$ have to be
212represented. Therefore the properties in the specification of each component
213where these variables are present will be used to generate the initial
214abstraction, $\widehat{M}_0$ and we will verify the satisfiability of the
215global property $\Phi$ on this abstract model. If the model-checking failed and the counterexample given is found to be spurious, we will then proceed with the refinement process.
216
217
Note: See TracBrowser for help on using the repository browser.