A Behavioural Theory for Reflective Sequential Algorithms

We develop a behavioural theory of reflective sequential algorithms (RSAs), i.e. algorithms that can modify their own behaviour. The theory comprises a set of language-independent postulates characterising the class of RSAs, an abstract machine model that provably satisfies the postulates, and a proof that all RSAs are captured by this machine model. As in Gurevich’s thesis for sequential algorithms RSAs are sequential-time, bounded parallel algorithms, where the bound depends on the algorithm only and not on the input. Different from the class of sequential algorithms every state of an RSA includes a representation of the algorithm in that state, thus enabling linguistic reflection. The model of reflective Abstract State Machines (rASMs) extends sequential ASMs using extended states that include an updatable representation of the main ASM rule to be executed by the machine in that state.

[1]  Richard C. H. Connor,et al.  Type-Safe Linguistic Reflection: A Generator Technology , 2000 .

[2]  Klaus-Dieter Schewe,et al.  A Complete Logic for Non-Deterministic Database Transformations , 2016, ArXiv.

[3]  Andreas Blass,et al.  Abstract state machines capture parallel algorithms , 2003, TOCL.

[4]  José Maria Turull Torres,et al.  Towards an ASM thesis for reflective sequential algorithms , 2016, ABZ.

[5]  Egon Börger,et al.  Abstract State Machines , 2003 .

[6]  Brian Cantwell Smith,et al.  Reflection and semantics in LISP , 1984, POPL.

[7]  Andreas Blass,et al.  Abstract state machines capture parallel algorithms: Correction and extension , 2006, TOCL.

[8]  Klaus-Dieter Schewe,et al.  Concurrent abstract state machines , 2016, Acta Informatica.

[9]  Gottfried Vossen,et al.  Reflective Programming in the Relational Algebra , 1996, J. Comput. Syst. Sci..

[10]  Elvinia Riccobene,et al.  Towards ASM-Based Formal Specification of Self-Adaptive Systems , 2014, ABZ.

[11]  Klaus-Dieter Schewe,et al.  A new thesis concerning synchronised parallel computing - simplified parallel ASM thesis , 2015, Theor. Comput. Sci..

[12]  Gottfried Vossen,et al.  Reflective Programming in the Relational Algebra , 1996, J. Comput. Syst. Sci..

[13]  Yuri Gurevich,et al.  Sequential abstract-state machines capture sequential algorithms , 2000, TOCL.

[14]  Klaus-Dieter Schewe,et al.  A Customised ASM Thesis for Database Transformations , 2010, Acta Cybern..

[15]  Egon Börger,et al.  The ASM Refinement Method , 2003, Formal Aspects of Computing.