Mathematica 9 is now available

Wolfram Library Archive


Courseware Demos MathSource Technical Notes
All Collections Articles Books Conference Proceedings
Title

Automated complexity analysis of Nuprl extracted programs
Author

R. Benzinger
Journal / Anthology

Journal of Functional Programming
Year: 2001
Volume: 11
Issue: 1
Page range: 3-31
Description

This paper decribes the Automated Complexity Analysis prototype (ACAp) system for autmated complexity analysis of functional programs synthesized with the Nuprl proof development system. We define a simple abstract cost model for Nuprl's term language based on the current call-by-name evaluator. The framework uses abstract functions and abstract lists to facilitate reasoning about primitive recursive programs with first-order functions, lazy lists, and a subclass of higher-order functions. The ACAp system automatically derives upper bounds on the time complexity of Nuprl extracts relative to a given profiling semantics. Analysis proceeds by abstract interpretation of the extract, where symbolic evaluation rules extend standard evaluation to terms with free variables. Symbolic evaluation of recursive programs generates systems of multi-variable difference equations, which are solved using the Mathematica computer algebra system. The use of the system is exemplified by analyzing a proof extract that computes the maximum segment sum of a list and a functional program that determines the minimum of a list via sorting. For both results, we compare call-by-name to call-by-value evaluation.
Subject

*Applied Mathematics > Computer Science