A high-level language for modeling algorithms and their properties

  • Authors:
  • Sabina Akhtar;Stephan Merz;Martin Quinson

  • Affiliations:
  • LORIA - INRIA Nancy Grand Est and Nancy University, Nancy, France;LORIA - INRIA Nancy Grand Est and Nancy University, Nancy, France;LORIA - INRIA Nancy Grand Est and Nancy University, Nancy, France

  • Venue:
  • SBMF'10 Proceedings of the 13th Brazilian conference on Formal methods: foundations and applications
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Designers of concurrent and distributed algorithms usually express them using pseudo-code. In contrast, most verification techniques are based on more mathematically-oriented formalisms such as state transition systems. This conceptual gap contributes to hinder the use of formal verification techniques. Leslie Lamport introduced PlusCal, a high-level algorithmic language that has the "look and feel" of pseudocode, but is equipped with a precise semantics and includes a high-level expression language based on set theory. PlusCal models can be compiled to TLA+ and verified using the model checker TLC. However, in practice, the use of PlusCal requires good knowledge of TLA+ and of the translation from PlusCal to TLA+. In particular, the user needs to annotate the generated TLA+ model in order to define the properties to be verified and to introduce fairness hypotheses. Moreover, the PlusCal language enforces certain restrictions that often make it difficult to express distributed algorithms in a natural way. We propose a new version of PlusCal with the aim of overcoming these limitations, and of providing a language in which algorithms and their properties can be expressed naturally. We have implemented a compiler of our language to TLA+, supporting the verification of algorithms by finite-state model checking.