Fragments of ML Decidable by Nested Data Class Memory Automata

The call-by-value language RML may be viewed as a canonical restriction of Standard ML to ground-type references, augmented by a “bad variable” construct in the sense of Reynolds. We consider the fragment of (finitary) RML terms of order at most 1 with free variables of order at most 2, and identify two subfragments of this for which we show observational equivalence to be decidable. The first subfragment, RML\(^{\rm P-Str}_{2\vdash 1}\), consists of those terms in which the P-pointers in the game semantic representation are determined by the underlying sequence of moves. The second subfragment consists of terms in which the O-pointers of moves corresponding to free variables in the game semantic representation are determined by the underlying moves. These results are shown using a reduction to a form of automata over data words in which the data values have a tree-structure, reflecting the tree-structure of the threads in the game semantic plays. In addition we show that observational equivalence is undecidable at every third- or higher-order type, every second-order type which takes at least two first-order arguments, and every second-order type (of arity greater than one) that has a first-order argument which is not the final argument.

[1]  Andrzej S. Murawski,et al.  Algorithmic Nominal Game Semantics , 2011, ESOP.

[2]  Samson Abramsky,et al.  Linearity, Sharing and State: a fully abstract game semantics for Idealized Algol with active expressions , 1996, Electron. Notes Theor. Comput. Sci..

[3]  Martin Leucker,et al.  Ordered Navigation on Multi-attributed Data Words , 2014, CONCUR.

[4]  Andrzej S. Murawski,et al.  Weak and Nested Class Memory Automata , 2015, LATA.

[5]  Andrzej S. Murawski Functions with local state: Regularity and undecidability , 2005, Theor. Comput. Sci..

[6]  Ursula Dresdner,et al.  Computation Finite And Infinite Machines , 2016 .

[7]  Dan R. Ghica,et al.  The regular-language semantics of second-order idealized ALGOL , 2003, Theor. Comput. Sci..

[8]  Andrzej S. Murawski,et al.  Idealized Algol with Ground Recursion, and DPDA Equivalence , 2005, ICALP.

[9]  C.-H. Luke Ong An approach to deciding the observational equivalence of Algol-like languages , 2004, Ann. Pure Appl. Log..

[10]  Thomas Schwentick,et al.  On Notions of Regularity for Data Languages , 2007, FCT.

[11]  David G. B. Hopkins Game semantics based equivalence checking of higher-order programs , 2012 .

[12]  I. Stark,et al.  Operational reasoning for functions with local state , 1999 .

[13]  Emil L. Post Formal Reductions of the General Combinatorial Decision Problem , 1943 .

[14]  Samson Abramsky,et al.  Call-by-Value Games , 1997, CSL.

[15]  Nobuko Yoshida,et al.  Game-Theoretic Analysis of Call-by-Value Computation , 1997, Theor. Comput. Sci..

[16]  Andrzej S. Murawski On program equivalence in languages with ground-type references , 2003, 18th Annual IEEE Symposium of Logic in Computer Science, 2003. Proceedings..

[17]  Andrew M. Pitts,et al.  Higher order operational techniques in semantics , 1999 .

[18]  Andrzej S. Murawski,et al.  A Fragment of ML Decidable by Visibly Pushdown Automata , 2011, ICALP.

[19]  C.-H. Luke Ong,et al.  On Full Abstraction for PCF: I, II, and III , 2000, Inf. Comput..