General Recursion in Type Theory
Paper i proceeding, 2003

In this work, a method to formalise general recursive algorithms in constructive type theory is presented throughout examples. The method separates the computational and logical parts of the definitions. As a consequence, the resulting type-theoretic algorithms are clear, compact and easy to understand. They are as simple as their equivalents in a functional programming language, where there is no restriction on recursive calls. Given a general recursive algorithm, the method consists in defining an inductive special-purpose accessibility predicate that characterises the inputs on which the algorithm terminates. The type-theoretic version of the algorithm can then be defined by structural recursion on the proof that the input values satisfy this predicate. When formalising nested algorithms, the special-purpose accessibility predicate and the type-theoretic version of the algorithm must be defined simultaneously because they depend on each other. Since the method separates the computational part from the logical part of a definition, formalising partial functions becomes also possible.

partial functions

type theory

general recursion

Författare

Ana Bove

Chalmers, Institutionen för datavetenskap, Programmeringslogik

Lecture Notes in Computer Science

0302-9743 (ISSN)

Vol. 2646 39-58

Ämneskategorier

Datavetenskap (datalogi)

DOI

10.1007/3-540-39185-1_3

ISBN

978-3-540-14031-3

Mer information

Skapat

2017-10-08