arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Author

Adam Bakewell

16 papers · 2000–2014

2000: 32001: 12002: 02003: 02004: 22005: 22006: 02007: 32008: 02009: 12010: 12011: 02012: 12013: 02014: 2
2000peak 3 in 20002014

Frequent co-authors

Papers

showing 1–16 of 16 RSS

A model for comparing the space usage of lazy evaluators

Adam Bakewell, Colin Runciman

Artificial Intelligence · · cited 12× · DOI ↗ · more like this ·

Identifying the source of space faults in functional programs is hard. The problem is compounded as space usage can vary enormously from one implementation to another. We use a term-graph rewriting model to describe evaluators with explicit space usage. Given descriptions for two evaluators E1 and E2, if E1 never has asymptotically worse space usage than E2, we can use a bisimulation-like proof method to prove it. Conversely, if E1 is leakier than E2, we characterise a class of computations that expose the difference between them.

A Space Semantics for Core Haskell

Adam Bakewell, Runciman Colin

Artificial Intelligence · Electronic Notes in Theoretical Computer Science · · cited 7× · DOI ↗ · more like this ·

Haskell currently lacks a standard operational semantics. We argue that such a semantics should be provided to enable reasoning about operational properties of programs, to ensure that implementations guarantee certain space and time behaviour and to help determine the source of space faults. We present a small-step deterministic semantics for the sequential evaluation of Core Haskell programs and show that it is an accurate model of asymptotic space and time usage. The semantics is a formalisation of a graphical notation so it provides a useful mental model as well as a precise mathematical notation. We discuss its implications for education, programming and implementation. The basic semantics is extended with a monadic IO mechanism so that all the space under the control of an implementation is included.

Clipping: A Semantics-Directed Syntactic Approximation

Dan R. Ghica, Adam Bakewell

Artificial Intelligence · University of Birmingham Research Portal (University of Birmingham) · · cited 5× · DOI ↗ · more like this ·

In this paper we introduce "clipping,'' a new method of syntactic approximation which is motivated by and works in conjunction with a sound and decidable denotational model for a given programming language. Like slicing, clipping reduces the size of the source code in preparation for automatic verification; but unlike slicing it is an imprecise but computationally inexpensive algorithm which does not require a whole-program analysis. The technique of clipping can be framed into an iterated refinement cycle to arbitrarily improve its precision. We first present this rather simple idea intuitively with some examples, then work out the technical details in the case of an Algol-like programming language and a decidable approximation of its game-semantic model inspired by Hankin and Malacaria's "lax functor'' approach. We conclude by presenting an experimental model checking tool based on…

Using Term-Graph Rewriting Models to Analyse Relative Space Efficiency

Adam Bakewell

Artificial Intelligence · Electronic Notes in Theoretical Computer Science · · cited 3× · DOI ↗ · more like this ·

Space leaks are a common operational problem in programming languages with automated memory man-agement. Graph rewriting is a natural model of operational behaviour. This paper summarises a PhD thesis which gives a graph-rewriting framework suitable for modelling language implementations and proof techniques for determining the presence or absence of leaks. The approach is to model implementations as graph evaluators with garbage collectors. An evaluator may leak relative to another evaluator, with respect to a translation between their states. Leaks are classified according to their cause and the behaviour which exposes them. Graphs naturally model state size, but we argue that this is too concrete. Accurate evaluators are introduced which allow for a more abstract model in which initial program size is ignored. Evaluators are compared by defining a translation between graphs.…

Game-based safety checking with Mage

Adam Bakewell, Dan R. Ghica

Computational Theory and Mathematics · University of Birmingham Research Portal (University of Birmingham) · · cited 3× · DOI ↗ · more like this ·

Mage is a new experimental model checker based on game semantics. It adapts several techniques including lazy (on-the-fly) modelling, symbolic modelling, C.E.G.A.R. and approximated counterexample certification to game models. It demonstrates the potential for truly compositional verification of real software.

The space usage problem: An evaluation kit for graph reduction semantics

Adam Bakewell, Runciman Colin

Artificial Intelligence · · cited 3× · OpenAlex ↗ · more like this ·

We describe a software tool for specifying operational semantics as a term-graph reduction system. The semantics are guaranteed to model the asymptotic space and time usage of an implementation accurately yet are abstract enough to support reasoning at the program level. Term graphs make all the aspects of reduction relating to space usage explicit as they naturally encode size and address information. The semantics are constrained to be small-step, deterministic rules and each rewrite step uses bounded resources. The result is a system suitable for describing and analysing the space behaviour of functional programming languages. 1

Inferring Intersection Typings that are Equivalent to Call-by-Name and Call-by-Value Evaluations

Adam Bakewell, Sébastien Carlier, A. J. Kfoury +1 more

Artificial Intelligence · OpenBU/Boston University Institutional Repository (Boston University) · · cited 2× · OpenAlex ↗ · more like this ·

Abstract. We present a procedure to infer a typing for an arbitrary λ-term M in an intersection-type system that translates into exactly the call-by-name (resp., call-by-value) evaluation of M. Our framework is the recently developed System E which augments intersection types with expansion variables. The inferred typing for M is obtained by setting up a unification problem involving both type variables and expansion variables, which we solve with a confluent rewrite system. The inference procedure is compositional in the sense that typings for different program components can be inferred in any order, and without knowledge of the definition of other program components. 3 Using expansion variables lets us achieve a compositional inference procedure easily. Termination of the procedure is generally undecidable. The procedure terminates and returns a typing iff the input M is normalizing…

Towards Game-Based Predicate Abstraction

Adam Bakewell

Computational Theory and Mathematics · · cited 0× · OpenAlex ↗ · more like this ·

Abstract. We propose an approach to formalising predicate abstraction (PA) as a game semantics to provide the foundations for a compositional model checker. Predicate Abstraction. PA [4] is a very powerful approach to model checking that has been developed over the past decade and realized in tools such as Magic [2] and Blast [3]. The P-abstraction of a program model, where P is a sequence of predicates, is an abstract interpretation. It is typically formulated as an automaton whose states are #P-tuples giving a value to each predicate, with a transition wherever a program state satisfying the source valuation can be followed by a program state satisfying the target valuation. The essence of PA-based model checking is to: derive the P; construct the PA; and model check. Success depends on having a good scheme for P deriva-tion. Advanced research on PA offers various approaches to…

Automatic generalisation of function definitions

Adam Bakewell, Colin Runciman

Artificial Intelligence · · cited 0× · OpenAlex ↗ · more like this ·

Abstract. We address the problem of finding the common generalisation of a set of Haskell function definitions so that each function can be defined by partial application of the generalisation. By analogy with unification, which derives the most general common specialisation of two terms, we aim to infer the least general common generalisation. This problem has a unique solution in a first-order setting, but not in a higher-order language. We define a smallest minimal common generalisation which is unique and consider how it might be used for automated program improvement. The same function can have many definitions; we risk over-generalisation if equality is not recognised. A normalising rewrite system is used before generalisation, so many equivalent definitions become identical. The generalisation system we describe has been implemented in Haskell. 1

On-the-fly techniques for games-based software model checking

Adam Bakewell, Dan R. Ghica

Computational Theory and Mathematics · · cited 0× · OpenAlex ↗ · more like this ·

Abstract. We introduce on-the-fly composition, symbolic modelling and lazy iterated approximation refinement for game-semantic models. We present Mage, a model checker implementing this new technology, discuss several typical examples and compare Mage with GameChecker, the existing state-of-the-art in games-semantics based model checking. 1 Introduction and

Software Tools for Technology Transfer manuscript No. (will be inserted by the editor) Data-Abstraction Refinement: A Game Semantic Approach

Adam Bakewell, Ar Dimovski, Dan R. Ghica +1 more

Computational Theory and Mathematics · · cited 0× · OpenAlex ↗ · more like this ·

Abstract. This paper presents a semantic framework for data abstraction and refinement for verifying safety properties of open programs with integer types. The presentation is focused on an Algol-like programming language that incorporates data abstraction in its type system. We use a fully abstract game semantics in the style of Hyland and Ong and a more intensional ver-sion of the model that tracks nondeterminism introduced by abstraction in order to detect false counterexamples. These theoretical developments are incorporated in a new model-checking tool, Mage, which implements effi-ciently the data-abstraction refinement procedure using symbolic and on-the-fly techniques.

On-the-Fly Techniques for Game-Based Software Model Checking (extended report

Adam Bakewell, Dan R. Ghica

Computational Theory and Mathematics · · cited 0× · OpenAlex ↗ · more like this ·

Abstract. We introduce on-the-fly composition, symbolic modelling and lazy iterated approximation refinement for game-semantic models. We present Mage, an experimental model checker implementing this new technology. We discuss several typical examples and compare Mage with Blast and GameChecker, which are the state-of-the-art tools in onthe-fly software model checking, and game-based model checking. 1 Introduction and

Properties of a rewrite system for unification with expansion variables

Adam Bakewell, Assaf J. Kfoury

Artificial Intelligence · · cited 0× · OpenAlex ↗ · more like this ·

Abstract. A study of properties of a rewrite system for solving constraint sets that are instances of the unification with expansion variables problem. The terms in the constraints are built from the intersection type constructors plus type variables and applied expansion variables. We show that: • Constraint set rewriting is confluent (modulo isomorphism). • There is a set of well-named constraint sets which is closed under reduction and normalisation of well-named sets always produces a unifier. • The rewrite system partitions naturally such that all reductions of wellnamed constraint sets are finite (terminating) with each part. • The subset of acyclic well-named constraint sets is preserved by reduction the occur check may be omitted for reduction of such sets. • The acyclic well-named constraint sets include those necessary for intersection typing inference, therefore the above…

Exact Intersection Typing Inference and Call-by-Name Evaluation

Adam Bakewell Sebastien, Sébastien Carlier, A. J. Kfoury +1 more

Artificial Intelligence · · cited 0× · OpenAlex ↗ · more like this ·

It is known that inferring an exact intersection typing for a #-term (i.e., a typing where the intersection operator is not idempotent) is equivalent to strong #-normalisation of that term. Intersection typing derivations can provide very precise information about program behaviour, making them --- in principle --- an attractive framework for program analysis. The recent innovation of expansion variables greatly simplifies the production of such typing derivations, allows their production for all #-normalising terms and allows inference to be done in a truly compositional way --- a big advantage for programs where components are updated frequently and separately. We present a new, truly compositional, exact intersection typing inference procedure for the recent, expansion variable-based, System E framework. Inference uses a confluent rewrite system to solve instances of a unification…

Exact intersection typing inference and call-by-name evaluation

Adam Bakewell, Sébastien Carlier, A. J. Kfoury +1 more

Artificial Intelligence · · cited 0× · OpenAlex ↗ · more like this ·

Abstract. It is known that inferring an exact intersection typing for a λ-term (i.e., a typing where the intersection operator is not idempotent) is equivalent to strong β-normalisation of that term. Intersection typing derivations can provide very precise information about program behaviour, making them — in principle — an attractive framework for program analysis. The recent innovation of expansion variables greatly simplifies the production of such typing derivations, allows their production for all β-normalising terms and allows inference to be done in a truly compositional 3 way — a big advantage for programs where components are updated frequently and separately. We present a new, truly compositional, exact intersection typing inference procedure for the recent, expansion variable-based, System E framework. Inference uses a confluent rewrite system to solve instances of a…

A Space Semantics for Core Haskell

Adam Bakewell And, Adam Bakewell, Colin Runciman

Artificial Intelligence · · cited 0× · OpenAlex ↗ · more like this ·

Haskell currently lacks a standard operational semantics. We argue that such a semantics should be provided to enable reasoning about operational properties of programs, to ensure that implementations guarantee certain space and time behaviour and to help determine the source of space faults. We present a small-step deterministic semantics for the sequential evaluation of Core Haskell programs and show that it is an accurate model of asymptotic space and time usage. The semantics is a formalisation of a graphical notation so it provides a useful mental model as well as a precise mathematical notation. We discuss its implications for education, programming and implementation. The basic semantics is extended with a monadic IO mechanism so that all the space under the control of an implementation is included. 1