**RZ** is a tool for automatic generation of program specifications from definitions of mathematical theories. It was written by Chris Stone and Andrej Bauer. The purpose of RZ is to help programmers and mathematicians design data structures which properly implement mathematical structures (algebras, real numbers, Hilbert spaces, etc.)

## Download

- Source code and examples: rz.tar.gz
- Binary executables:
- Browse the download directory.

## Documentation

- A good starting point to learn about RZ is the paper “RZ: a Tool for Bringing Constructive and Computable Mathematics Closer to Programming Practice”.
- You may also browse RZ related blog posts.

There is something I don’t understand here: a mathematical theory

isa specification.So I gather this is an automated translation step from one very rich formalism (mathematical theories) to a simpler one (signatures in this case). Very useful indeed, since this is a rather boring thing to do by hand, basically

becauseit can be automated!Is the back-end generator easily replaceable? It might make sense to be able to target other languages than just ocaml, in the long run.