Tjark Weber. Master's thesis, University of Wyoming, Laramie, WY, August 2002.

This thesis presents a formalization of program transformations and their general categorical framework in Nuprl. It gives formal definitions of catamorphisms and anamorphisms and formal, constructive proofs for when an arrow is a catamorphism or anamorphism. Necessary and sufficient conditions for when a function is a catamorphism are proved constructively, and a program transformation is extracted from the proofs. An instance of Bird's fusion theorem for binary trees is verified in Nuprl, and applied to the Quicksort algorithm to formally prove the algorithm correct.

- DVI (456 kB)
- Postscript (966 kB)
- PDF (721 kB)

The theory files were developed with Nuprl Version 4.2. The Nuprl system can be downloaded from http://www.nuprl.org/.

- Nuprl Theory Files (.zip, 63 kB)

@mastersthesis{weber02program, author = {Tjark Weber}, title = {Program Transformations in {Nuprl}}, school = {University of Wyoming}, address = {Laramie, WY}, month = aug, year = {2002} }

- Page 50: replace "with $f(choice(b))=b$ for all $b \in B$" by "with $f(choice(b))=b$ for all $b \in \{b \in B | \exists a \in A. b=f(a)\}$".
- Page 73: replace "bal(n+1) = node(n+1, f(n), f(n))" by "bal(n+1) = node(n+1, bal(n), bal(n))".

Last modified: 2011-07-05