Abstract
Consider the following imperative programming language. The programs operate on registers storing natural numbers, the input \(\vec{x}\) is stored in certain registers, and a number b, called the base, is fixed to \(\max(\vec{x},1)+1\) before the execution starts. The single primitive instruction \(\verb/X+/\) increases the number stored in the register \(\verb/X/\) by 1 modulo b. There are two control structures: the loop \(\verb+while X{P}+\) executing the program \(\verb+P+\) repeatedly as long as the content of the register \(\verb/X/\) is different from 0; the composition \(\verb+P+\texttt{;} \verb+Q+\) executing first the program \(\verb/P/\), then the program \(\verb/Q/\). This is the whole language. The language is natural, extremely simple, yet powerful. We will prove that it captures \(\mbox{\sc linspace}\), i.e. the numerical relations decidable by such programs are exactly those decidable by Turing machines working in linear space. Variations of the language capturing other important deterministic complexity classes, like e.g. \(\mbox{\sc logspace}\), \(\mbox{\sc p}\) and \(\mbox{\sc pspace}\) are possible (see Kristiansen and Voda [5]).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Avigad, J., Fererman, S.: Gödel’s functional interpretation. In: Buss (ed.) Handbook of Proof Theory, Elsevier, Amsterdam (1998)
Beckmann, A., Weiermann, A.: Characterizing the elementary recursive functions by a fragment of Gödel’s T. Arch. Math. Logic 39(7), 475–491 (2000)
Goerdt, A.: Characterizing complexity classes by higher type primitive recursive definitions. Theor. Comput. Sci. 100(1), 45–66 (1992)
Jones, N.D.: The expressive power of higher-order types or, life without CONS. J. Functional Programming 11, 55–94 (2001)
Kristiansen, L., Voda, P.J.: Complexity classes and fragments of C (submitted), Preprint available from http://www.iu.hio.no/~larskri/
Leivant, D.: Intrinsic theories and cpmputational complexity. In: Leivant, D. (ed.) LCC 1994. LNCS, vol. 960, pp. 177–194. Springer, Heidelberg (1995)
Ritchie, R.W.: Classes of predictably computable functions. Trans. Am. Math. Soc. 106, 139–173 (1963)
Schwichtenberg, H.: Finite notations for infinite terms. Ann. Pure Appl. Logic 94(1-3), 201–222 (1998)
Schwichtenberg, H., Bellantoni, S.J.: Feasible computation with higher types. Available from Schwichtenberg’s home page
Shoenfield, J.R.: Mathematical logic, vol. VII, p. 344. Addison-Wesley Publishing Company, Reading (1967)
Simmons, H.: Derivation and computation. Taking the Curry-Howard correspondenceseriously. Cambridge Tracts in Theoretical Computer Science, vol. 51. Cambridge University, Cambridge (2000)
Tiuryn, J.: Higher-order arrays and stacks in programming. An application of complexity theory to logics of programs. In: Wiedermann, J., Gruska, J., Rovan, B. (eds.) MFCS 1986. LNCS, vol. 233, pp. 177–198. Springer, Heidelberg (1986)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Kristiansen, L., Voda, P.J. (2003). The Surprising Power of Restricted Programs and Gödel’s Functionals. In: Baaz, M., Makowsky, J.A. (eds) Computer Science Logic. CSL 2003. Lecture Notes in Computer Science, vol 2803. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-45220-1_28
Download citation
DOI: https://doi.org/10.1007/978-3-540-45220-1_28
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-40801-7
Online ISBN: 978-3-540-45220-1
eBook Packages: Springer Book Archive