27.03.2014 Views

SEKE 2012 Proceedings - Knowledge Systems Institute

SEKE 2012 Proceedings - Knowledge Systems Institute

SEKE 2012 Proceedings - Knowledge Systems Institute

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

HybridUML Based Verification of CPS Using<br />

Differential Dynamic Logic<br />

Min Zhu, Bixin Li, Jiakai Li, Qiaoqiao Chen,Xiaoxiang Zhai, Shunhui Ji<br />

School of Computer Science and Engineering, Southeast University, Nanjing, China<br />

{kong, bx.li}@seu.edu.cn<br />

Abstract—CPS (Cyber-Physical <strong>Systems</strong>) which are characterized<br />

by the combination of computation, communication and control<br />

are applied in many safety-critical domains. For the successful<br />

application of CPS, it is very important to ensure the correctness<br />

of CPS. Many researchers are concerned about using formal<br />

verification to verify the correctness of CPS since it has played a<br />

key role in improving the security and reliability of systems. In<br />

this paper, we demonstrated the feasibility of our CPS modeling<br />

and verification framework through a case study. We first<br />

introduced HybridUML, an extension of UML, to model CPS,<br />

then we presented a model transformation method mapping<br />

HybridUML model to Hybrid Program, and finally verified the<br />

properties of the resulting model with KeYmaera.<br />

verification of CPS [7] and the operating model of a DDL<br />

formula is named Hybrid Programs(HP). Transforming generic<br />

model into a formal model for verification is a h ot research<br />

field of software engineering [8] . In addition, HybridUML [9] , an<br />

extension of UML, is introduced since UML has no precise<br />

semantics [10] and cannot model continuous states. This p aper<br />

introduces HybridUML as a generic model to model CPS,<br />

presents a method based on model transformation mapping<br />

HybridUML to Hybrid Programs, and ve rifies the resulting<br />

model finally.<br />

Keywords-CPS; differential dynamic logic; HybridUML; model<br />

transformation; verification<br />

I. INTRODUCTION<br />

Cyber-Physical <strong>Systems</strong> (CPS) integrate computation with<br />

physical processes. Embedded computers and networks<br />

monitor and control the p hysical processes, usually with<br />

feedback loops where physical processes affect computations<br />

and vice versa [1] . CPS have brought many opportunities and<br />

challenges to various industries, such as intelligent<br />

transportation, industrial automation, smart medical, agriculture<br />

and national defense. It is crucial that the designed CPS work<br />

as expected. A growi ng number of researchers are concerned<br />

about the property verification of CPS since ver ification<br />

technique has played a key role in improving the security and<br />

reliability of CPS. Howe ver, traditional model checking<br />

techniques which are designed for finite state systems do n ot<br />

work well in verifying CPS as there are an infinite number of<br />

states in CPS d ue to the dis crete and cont inuous behaviors.<br />

Although model checking has been extended for infinite state<br />

systems in many studies [2-4] , it still could not do w ell in<br />

verifying large-scale CPS si nce the restriction of reachability<br />

problem. Zhou [5] extended duration calculus [6] by introducing<br />

mathematical expression to the derivative of state variable.<br />

However, the reasoning m ethod is n ot appropriate for<br />

automatic verification, especially for derivative and continuity.<br />

A theorem proving method based on differential dynamic logic<br />

(DDL) proposed by A.Platzer has b een well applie d in the<br />

This work is supported partially by National Natural Science Fou ndation of<br />

China under Grant No. 60 973149, partially by the Open Funds of State Key<br />

Laboratory of Computer Science of Chinese Academy of Sciences under Grant<br />

No.SYSKF1110, partially by Doctoral Fund of Ministry of Education of China<br />

under Grant No. 20100092110022, and partially by the College Industrialization<br />

Project of Jiangsu Province under Grant No.JHB2011-3.<br />

Figure 1. Dynamic movemnett authorities of ETCS<br />

This paper demonstrates our DDL based framework for<br />

CPS modeling and verification by a case s tudy. A simplified<br />

European Train Control System (ETCS) is shown in Fi gure<br />

1 [11] . Trains are guided by moving block principle and they are<br />

only allowed to move in the specified MA (Movement<br />

Authority). The RBCs (Radio Block Controller) update the MA<br />

dynamically based on the current track situation by wireless<br />

communication. The speed of a train can be regulated freely in<br />

the far mode, and the train can switch to the neg (negotiation)<br />

mode for MA extensions from ST (start taking). If there is no<br />

new MA updated after SB point, it starts braking in cor<br />

(correcting) mode.<br />

Our verification architecture works as follows. First, the<br />

transformation from HybridUML to HP Model is accomplished<br />

through executing model transformation rules and rule template;<br />

second, KeYmaera in put code generation from the resulting<br />

Model generated in the first step is fulfilled. KeYmaera is an<br />

automated and interactive theorem prover for a natural<br />

specification and verification logic for hybrid systems that<br />

combines deductive, real algebraic, and c omputer algebraic<br />

prover technologies [12] . The transformation rules in the paper<br />

are defined according to th e relation between source metamodel<br />

and target meta-model on the basis o f model<br />

235

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!