Third-order idealized Algol with iteration is decidable
The problems of contextual equivalence and approximation are studied for the third-order fragment of Idealized Algol with iteration (IA(3)*). They are approached via a combination of game semantics and language theory. It is shown that for each IA(3)*-term one can construct a pushdown automaton recognizing a representation of the strategy induced by the term. The automata have some additional properties ensuring that the associated equivalence and inclusion problems are solvable in PTIME. This gives an EXPTIME decision procedure for the problems of contextual equivalence and approximation for beta-normal terms. EXPTIME-hardness of the problems, even for terms without iteration, is also shown. (C) 2007 Elsevier B.V. All rights reserved.
game semantics computational complexity program analysis