Skip to main content
Top
Published in: Formal Methods in System Design 2/2022

25-03-2023

Assumption-based Runtime Verification

Authors: Alessandro Cimatti, Chun Tian, Stefano Tonetta

Published in: Formal Methods in System Design | Issue 2/2022

Log in

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Runtime Verification is a lightweight automatic verification technique. We introduce Assumption-Based Runtime Verification framework, which is capable for monitoring partially observable systems. The framework leverages assumptions on the behaviors of the systems under scrutiny for reasoning on their the non-observable or future behaviors. The specification is expressed in Propositional Linear Temporal Logic (LTL) with both future and past temporal operators, while assumptions are described in Fair Kripke Structures. Static or dynamic sets of observables are supported. The monitors are also resettable, i.e. being able to evaluate the specification at arbitrary positions of the input trace. We present the formalism of the framework and a series of monitoring algorithms which can be efficiently implemented by Binary Decision Diagrams. As a by-product, we also present a new automata-based monitor construction for Past-time LTL, an LTL variant with only past temporal operators. We give proofs for the correctness of all involved algorithms. The framework is implemented in NuRV, an extension of the nuXmv model checker. It synthesizes implicit or explicit monitors which can be deployed in online or offline modes. The explicit monitors are embeddable code in programming languages including C, C++, Java and Common Lisp. In particular, monitors can be generated as SMV models, whose correctness and other properties can be verified in nuXmv . Using a benchmark from Dwyer’s LTL patterns, we show the efficiency of the symbolic approach and the generated monitors, and the feasibility and effectiveness of the approach. Some monitors are shown to be predictive under certain assumptions.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Appendix
Available only for authorised users
Footnotes
1
Bauer et al. report that 44% of the formulas they consider in their experiments are not monitorable [57].
 
2
We omit compassion requirements as they are not used in our approach.
 
3
The ptLTL plugin of RV-Monitor comes from JavaMOP.
 
4
Actually in this case the monitor outputs \(\bot ^\textrm{a}\) one step after the fault happens. It did not immediately outputs \(\bot ^\textrm{a}\) at the moment when the fault happens because, according to the model, the bottle may get filled again before the belt moves.
 
5
See factory_example/trace3.xml in the artifact for the contents of this trace.
 
6
The latest version (55 in total) is available at https://​matthewbdwyer.​github.​io/​psp/​patterns/​ltl.​html. We call them Pattern \(0,1, \ldots , 54\) in the same order.
 
7
The error message is “violation is not a supported state in this logic, ltl”.
 
Literature
2.
go back to reference Arafat O, Bauer A, Leucker M, Schallhart C (2005) Runtime Verification revisited. Technical Report TUM-I0518, Technische Universität München, München Arafat O, Bauer A, Leucker M, Schallhart C (2005) Runtime Verification revisited. Technical Report TUM-I0518, Technische Universität München, München
3.
go back to reference Azzopardi S, Colombo C, Pace GJ (2016) A model-based approach to combining static and dynamic verification techniques. In: Margaria T, BernhardS (ed) LNCS 9952—leveraging applications of formal methods, verification and validation (ISoLA 2016, Part I). Springer, pp 416–430. https://doi.org/10.1007/978-3-319-47166-2_29 Azzopardi S, Colombo C, Pace GJ (2016) A model-based approach to combining static and dynamic verification techniques. In: Margaria T, BernhardS (ed) LNCS 9952—leveraging applications of formal methods, verification and validation (ISoLA 2016, Part I). Springer, pp 416–430. https://​doi.​org/​10.​1007/​978-3-319-47166-2_​29
10.
13.
go back to reference Bozzano M, Cimatti A, Gario M, Tonetta S (2014) Formal design of fault detection and identification components using temporal epistemic logic. In: LNCS 8413—tools and algorithms for the construction and analysis of systems (TACAS 2014). Springer, Berlin, pp 326–340. https://doi.org/10.1007/978-3-642-54862-8_22 Bozzano M, Cimatti A, Gario M, Tonetta S (2014) Formal design of fault detection and identification components using temporal epistemic logic. In: LNCS 8413—tools and algorithms for the construction and analysis of systems (TACAS 2014). Springer, Berlin, pp 326–340. https://​doi.​org/​10.​1007/​978-3-642-54862-8_​22
19.
29.
33.
go back to reference Fauri D, dos Santos DR, Costante E, den Hartog J, Etalle S, Tonetta S (2017) From system specification to anomaly detection (and back). In: Proceedings of the 2017 workshop on cyber-physical systems security and PrivaCy. ACM Press, New York, pp 13–24. https://doi.org/10.1145/3140241.3140250 Fauri D, dos Santos DR, Costante E, den Hartog J, Etalle S, Tonetta S (2017) From system specification to anomaly detection (and back). In: Proceedings of the 2017 workshop on cyber-physical systems security and PrivaCy. ACM Press, New York, pp 13–24. https://​doi.​org/​10.​1145/​3140241.​3140250
37.
go back to reference Gordon MJC, Melham TF (1993) Introduction to HOL. Cambridge University Press, New York, A theorem proving environment for higher order logicMATH Gordon MJC, Melham TF (1993) Introduction to HOL. Cambridge University Press, New York, A theorem proving environment for higher order logicMATH
41.
47.
48.
go back to reference Kaufmann M, Manolios P, Strother MJ (2000) Computer-aided reasoning: an approach, volume 3 of advances in formal methods. Springer, Boston Kaufmann M, Manolios P, Strother MJ (2000) Computer-aided reasoning: an approach, volume 3 of advances in formal methods. Springer, Boston
49.
go back to reference Kesten Y, Pnueli A, Raviv L (1998) Algorithmic verification of linear temporal logic specifications. In: Larsen KG, Skyum S, Winskel G (eds) LNCS 1443—automata, languages and programming (ICALP 1998). Springer, Berlin, pp 1–16. https://doi.org/10.1007/BFb0055036 Kesten Y, Pnueli A, Raviv L (1998) Algorithmic verification of linear temporal logic specifications. In: Larsen KG, Skyum S, Winskel G (eds) LNCS 1443—automata, languages and programming (ICALP 1998). Springer, Berlin, pp 1–16. https://​doi.​org/​10.​1007/​BFb0055036
50.
go back to reference Kleene SC (1971) Introduction to metamathematics. Wolthers-Noordhoff, New YorkMATH Kleene SC (1971) Introduction to metamathematics. Wolthers-Noordhoff, New YorkMATH
54.
go back to reference Luo Q, Zhang Y, Lee C, Jin D, O’Neil MP, Serbanuta T-F, Roşu G (2014) RV-Monitor: efficient parametric Runtime Verification with simultaneous properties. In: Bonakdarpour B, Smolka SA (eds) LNCS 8734—Runtime Verification (RV 2014). Springer, Cham, pp 285–300. https://doi.org/10.1007/978-3-319-11164-3_24 Luo Q, Zhang Y, Lee C, Jin D, O’Neil MP, Serbanuta T-F, Roşu G (2014) RV-Monitor: efficient parametric Runtime Verification with simultaneous properties. In: Bonakdarpour B, Smolka SA (eds) LNCS 8734—Runtime Verification (RV 2014). Springer, Cham, pp 285–300. https://​doi.​org/​10.​1007/​978-3-319-11164-3_​24
57.
64.
go back to reference Schneider K (2001) Improving automata generation for Linear Temporal Logic by considering the automaton hierarchy. In: Nieuwenhuis R, Voronkov A (eds) LNAI 2250—logic for programming, artificial intelligence, and reasoning (LPAR 2001). Springer, Berlin, pp 39–54. https://doi.org/10.1007/3-540-45653-8_3 Schneider K (2001) Improving automata generation for Linear Temporal Logic by considering the automaton hierarchy. In: Nieuwenhuis R, Voronkov A (eds) LNAI 2250—logic for programming, artificial intelligence, and reasoning (LPAR 2001). Springer, Berlin, pp 39–54. https://​doi.​org/​10.​1007/​3-540-45653-8_​3
66.
go back to reference Selyunin K, Jaksic S, Nguyen T, Reidl C, Hafner U, Bartocci E, Nickovic D, Grosu R (2017) Runtime monitoring with recovery of the SENT communication protocol. In: Majumdar R, Kunčak V (eds) LNCS 10426—computer aided verification (CAV 2017, Part I). Springer. https://doi.org/10.1007/978-3-319-63387-9_17 Selyunin K, Jaksic S, Nguyen T, Reidl C, Hafner U, Bartocci E, Nickovic D, Grosu R (2017) Runtime monitoring with recovery of the SENT communication protocol. In: Majumdar R, Kunčak V (eds) LNCS 10426—computer aided verification (CAV 2017, Part I). Springer. https://​doi.​org/​10.​1007/​978-3-319-63387-9_​17
67.
go back to reference Sistla AP, Zhou M, Zuck LD (2006) Monitoring off-the-shelf components. In: Emerson EA, Namjoshi KS (eds) LNCS 3855—verification, model checking, and abstract interpretation (VMCAI 2006). Springer, Berlin, pp 222–236. https://doi.org/10.1007/11609773_15 Sistla AP, Zhou M, Zuck LD (2006) Monitoring off-the-shelf components. In: Emerson EA, Namjoshi KS (eds) LNCS 3855—verification, model checking, and abstract interpretation (VMCAI 2006). Springer, Berlin, pp 222–236. https://​doi.​org/​10.​1007/​11609773_​15
68.
go back to reference Sistla AP, Zefran M, Feng Y (2011) Monitorability of stochastic dynamical systems. In: CAV, pp 720–736 Sistla AP, Zefran M, Feng Y (2011) Monitorability of stochastic dynamical systems. In: CAV, pp 720–736
Metadata
Title
Assumption-based Runtime Verification
Authors
Alessandro Cimatti
Chun Tian
Stefano Tonetta
Publication date
25-03-2023
Publisher
Springer US
Published in
Formal Methods in System Design / Issue 2/2022
Print ISSN: 0925-9856
Electronic ISSN: 1572-8102
DOI
https://doi.org/10.1007/s10703-023-00416-z

Other articles of this Issue 2/2022

Formal Methods in System Design 2/2022 Go to the issue

Premium Partner