Polynomial size analysis of first-order functions

  • Authors:
  • Olha Shkaravska;Ron van Kesteren;Marko van Eekelen

  • Affiliations:
  • Institute for Computing and Information Sciences, Radboud University Nijmegen;Institute for Computing and Information Sciences, Radboud University Nijmegen;Institute for Computing and Information Sciences, Radboud University Nijmegen

  • Venue:
  • TLCA'07 Proceedings of the 8th international conference on Typed lambda calculi and applications
  • Year:
  • 2007

Quantified Score

Hi-index 0.02

Visualization

Abstract

We present a size-aware type system for first-order shapely function definitions. Here, a function definition is called shapely when the size of the result is determined exactly by a polynomial in the sizes of the arguments. Examples of shapely function definitions may be matrix multiplication and the Cartesian product of two lists. The type checking problem for the type system is shown to be undecidable in general. We define a natural syntactic restriction such that the type checking becomes decidable, even though size polynomials are not necessarily linear or monotonic. Furthermore, a method that infers polynomial size dependencies for a non-trivial class of function definitions is suggested.