Back to search

Oxford University, UK

Verification of asynchronous concurrency and the shaped stack constraint

Abstract

dc:description.abstract

<p>In this dissertation, we study the verification of concurrent programs written in the programming language Erlang using infinite-state model-checking. Erlang is a widely used, higher order, dynamically typed, call-by-value functional language with algebraic data types and pattern-matching. It is further augmented with support for <em>actor concurrency</em>, i.e. asynchronous message passing and dynamic process creation.</p> <p>With decidable model-checking in mind, we identify <em>actor communicating systems</em> (ACS) as a suitable target model for an abstract interpretation of Erlang. ACS model a dynamic network of finite-state processes that communicate over a fixed, finite number of unordered, unbounded channels. Thanks to being equivalent to Petri nets, ACS enjoy good algorithmic properties. We develop a verification procedure that extracts a sound abstract model, in the form of an ACS, from a given Erlang program; the resulting ACS simulates the operational semantics of the input. Using this abstract model, we can conservatively verify <em>coverability</em> properties of the input program, i.e. a weak form of safety properties, with a Petri net model-checker. We have implemented this procedure in our tool Soter, which is the first sound verification tool for Erlang programs using infinite-state model-checking. In our experiments, we find that Soter is accurate enough to verify a range of interesting and non-trivial benchmarks. Even though ACS coverability is Expspace-complete, Soter's analysis of these verification problems is surprisingly quick.</p> <p>In order to improve the precision of our verification procedure with respect to recursion, we investigate an extension of ACS that allows <em>pushdown</em> processes: <em>asynchronously communicating pushdown systems</em> (ACPS). ACPS that satisfy the empty-stack constraint (a pushdown process may receive only when its stack is empty) are a popular subclass of ACPS with good decision and complexity properties. In the context of Erlang, the empty stack constraint is unfortunately not realistic. We introduce a relaxation of the empty-stack constraint for ACPS called the <em>shaped stack</em> constraint. Stacks that fit the shape constraint may reach arbitrary heights. Further, a process may execute any communication action (be it process creation, message send or retrieval) whether or not its stack is empty. We prove that coverability for shaped ACPS, i.e. ACPS that satisfy the shaped constraint, reduces to the decidable coverability problem for <em>well-structured transition systems</em> (WSTS). Thus, shaped ACPS enable the modelling and verification of a larger class of message passing programs.</p> <p>We establish a close connection between shaped ACPS and a novel extension of Petri nets: <em>nets with nested coloured tokens</em> (NNCT). Tokens in NNCT are of two types: <em>simple</em> and <em>complex</em>. Complex tokens carry an arbitrary number of coloured tokens. The rules of a NNCT can synchronise complex and simple tokens, inject coloured tokens into a complex token, and eject all tokens of a specified set of <em>active</em> colours to predefined places. We show that the coverability problem for NNCT is Tower-complete, a new complexity class for non-elementary decision problems introduced by Schmitz. To prove Tower-membership, we devise a geometrically inspired version of the <em>Rackoff technique</em>, and we obtain Tower-hardness by adapting <em>Stockmeyer's ruler construction</em> to NNCT. To our knowledge, NNCT is the first extension of Petri nets (belonging to the class of nets with an infinite set of token <em>types</em>) that is proven to have primitive recursive coverability. This result implies Tower-completeness of coverability for ACPS that satisfy the shaped stack constraint.</p>

Degree

thesis:*
Name dc:type.qualificationname
DPhil
Level dc:type.qualificationlevel
Doctoral
Grantor dc:publisher.institution
Oxford University, UK
Year dc:date.issued
2014

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Kochems, Jonathan Antonius
Advisor dc:contributor.advisor
  • Ong, Luke

Subjects

dc:subject × 4

Rights

dc:rights
Statement dc:rights
  • Other
Language dc:language.dcterms_iso639_2
eng

Identifiers

dc:identifier.*
Identifier
uuid:cd487639-0e7f-4248-9405-e05e8a8383d5

Chain of custody

source
Harvested from
Oxford University
Base URL
ora.ox.ac.uk/oai2
Last updated
2026-11-25
Source record
OAI-PMH GetRecord
citation

Kochems, Jonathan Antonius. Verification of asynchronous concurrency and the shaped stack constraint. Doctoral thesis, Oxford University, UK, 2014. http://ora.ox.ac.uk/objects/uuid:cd487639-0e7f-4248-9405-e05e8a8383d5