INS - Ingénierie Numérique & Sécurité

Combining Analyses for the Study of Numerical Invariants – CAFEIN

Combining formal analyses for the study of numerical invariants

Towards the combination of methods for the analysis of critical Cyber-Physical Systems: from design to implementation

Numerous issues along the development cycle

The development of critical embedded systems enables today the use of formal methods in order to guaranty the good behavior of the final system. <br /> <br />These formal methods are nevertheless mainly used locally in an isolated fashion and are not the principal mean of V&V. CAFEIN's project identified issues centered around the notion of methods collaboration. Their use in cooperation could sustain their applicability or efficiency and support their use in industrial practices. More specifically objectives are the definition of new analysis means at model level, the precise understanding of hybrid semantics and the issue raised because of numerical imprecision in the computation. <br /> <br />A specific care has been given to enable the evaluation of methods on representative industrial use cases. These use cases should be also open-source to ease the collaboration within and outside the CAFEIN project. We studied the following use cases: the Triplex Voter (Rockwell Collins), the use case Research Open­Source Avionics and Control Engineering (ROSACE) and the NASA Transport Class Model (TCM).

Activities were structured around three work-packages depending on their relative impact in the development cycle. The first one focuses on the collaboration of methods at model level (eg. synchronous languages) and the validation of properties after compilation into source code. The second work-package studies the more general setting in which the dynamic of the controlled object is concerned: the closed loop system with an hybrid semantics. Last, the third work-package focuses more specifically on numerical imprecision.

The first activity allowed us to propose new methods capable of automatically synthesizing invariants; for example using quantifier elimination or through the use of convex optimization. Methods have been proposed to enable the revalidation of proved properties along the development cycle.

Concerning hybrid systems, we proposed set-based simulation techniques using affine arithmetics and zonotopes. We also proposed SMT extension to support the description of hybrid systems and enabling the study of inductive properties over such systems.

Last, concerning numerical accuracy, more precise techniques such as the quadratic extension of affine arithmetics have been used to perform such analyses. Floating point aware methods have also been introduced in the compilation chain in order to increase the numerical accuracy of the final code.

The project identified numerous perspectives, for each task: new collaborations between methods in order to synthesize more expressive invariants, the extension of induction based reasoning to hybrid systems thanks to the hybrid extension of SMT solvers, and last the impact of considering floating point computation as early as possible in the development cycle.

42 papers including 19 in collaboration between partners, prototypes and a fruitful interaction with the twin US NSF CrAVES project.

This project addresses the formal verification of functional properties at specification level, for safety critical reactive systems. In particular, we focus on command and control systems interacting with a physical environment, specified using the synchronous language Lustre. Over the last 30 years, safety critical embedded software has known a steady exponential growth in both size and functional complexity. This increase of complexity is led by technical and safety requirements, but also to a large extent by economic requirements and environmental regulation. Furthermore, these systems are subject to hard certification constraints. The traditional process and test based approach to certification starts showing its limits, and formal methods, formal verification in particular, have emerged as a promising means of mastering this overwhelming complexity, both from the safety and from the economic point of view. The upcoming DO-178C acknowledges this evolution by recommending the use of model based techniques and formal verification techniques in the design, verification, validation and certification processes.

Despite the growing enthusiasm of industrial users, formal verification has not yet reached its full deployment potential. Costly human intervention is still needed in order to obtain expected results in real world applications. This project gathers a collective of experts in formal methods, hybrid systems modeling, tool providers and industrial partners, all active in the field of safety critical systems design, development and validation. The team will work on the design, implementation and evaluation of innovative cooperations of formal techniques, with the goal to increase the level of automation, scalability and robustness of formal verification at model level, widen its scope of application, and hopefully improve its economic
efficiency. Automatic generation of faithful implementations from models will also be addressed.

A first goal of the project is to improve the level of automation of formal verification, by adapting and combining existing verification techniques such as SMT-based temporal induction, and abstract interpretation for invariant discovery. Indeed, the complexity of formal verification is due to the superposition of two sources of complexity. First, the discrete and combinatorial control-flow, which in most of today's systems is based on the notion of clock (some portions of the computation are activated depending on logical conditions over the program's inputs or internal state). Second, the numerical complexity of the system's data-flow computation, which can in addition condition the activation of clocks, while being subject to non linear state invariants.

A second goal is to study how knowledge of the mathematical theory of hybrid command and control systems can help the analysis at the controller's specification level. The project will compute numerical invariants on control-command systems made of a synchronous controller (the Lustre program) and a Simulink description of the continuous environment. We will study how these invariants can be used both at the model level, in Lustre, as well as in the analysis of the generated software.


Third, the project addresses the issue of implementing real valued specifications in Lustre using floating point arithmetic. The difference in behavior between real and floats can introduce bugs that do not exist at specification level (overflows for example). Tools such as Fluctuat allow to evaluate formally this semantic distance. In this project, we propose to design code generation algorithms that are optimized for dealing with floating point issues. We will develop the tool Sardana in order to evaluate and minimize this semantic distance, and to some extent guarantee the preservation of properties already proved a specification level.

Project coordinator

Monsieur Pierre-loic Garoche (ONERA DTIM) – pierre-loic.garoche@enac.fr

The author of this summary is the project coordinator, who is responsible for the content of this summary. The ANR declines any responsibility as for its contents.

Partner

RCF Rockwell collins France
Prover Prover Technology
UPVD Université de Perpignan Via Dormitia
INRIA Saclay-Île de France / EPI MAXPLUS Institut national de Recherche en Informatique et Automatique - Saclay-Île de France / EPI MAXPLUS
CEA LIST CEA LIST
ENSTA ParisTech École Nationale Supérieure de Techniques Avancées - Paritech
ONERA ONERA DTIM

Help of the ANR 809,839 euros
Beginning and duration of the scientific project: January 2012 - 36 Months

Useful links

Explorez notre base de projets financés

 

 

ANR makes available its datasets on funded projects, click here to find more.

Sign up for the latest news:
Subscribe to our newsletter