Home

About

Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network
FAQHELPSITE MAPCONTACT US


  Advanced Search  

 
Type-Based Termination of Generic Programs Andreas Abel
 

Summary: Type-Based Termination of Generic Programs
Andreas Abel
Institut für Informatik
Ludwig-Maximilians-Universität München
Oettingenstr. 67, D-80538 München, GERMANY
Abstract
Instances of a polytypic or generic program for a concrete recursive type often exhibit
a recursion scheme that is derived from the recursion scheme of the instantiation type.
In practice, the programs obtained from a generic program are usually terminating, but
the proof of termination cannot be carried out with traditional methods as term orderings
alone, since termination often crucially relies on the program type. In this article, it is
demonstrated that type-based termination using sized types handles such programs very
well. A framework for sized polytypic programming is developed which ensures (type-
based) termination of all instances.
1 Introduction
In the last decade, polytypic or generic programming has been explored for func-
tional programming languages [26,19,22,23]. With polytypic programming, repeti-
tive tasks, like writing a size-function for data structures of type A, can be mech-
anized by writing a generic size-function which then can be instantiated to all
sorts of types A. Over the years, many useful examples of generic programs have

  

Source: Abel, Andreas - Theoretische Informatik, Ludwig-Maximilians-Universität München

 

Collections: Computer Technologies and Information Sciences