kirancodes.me
To Proof Maintenance & Beyond!

916 papers · page 34 of 46

Manufacturing datatypes

Ralf Hinze

This article describes a general framework for designing purely functional datatypes that automatically satisfy given size or structural constraints. Using the framework we develop implementations of different matrix types (for example, square matrices) and implementations of sev…

Weaving a web

Ralf Hinze, Johan Jeuring

Suppose, you want to implement a structured editor for some term type, so that the user can navigate through a given term and perform edit actions on subterms. In this case you are immediately faced with the problem of how to keep track of the cursor movements and the user's edit…

Red-black trees with types

Stefan Kahrs

Chris Okasaki showed how to implement red-black trees in a functional programming language. Ralf Hinze incorporated even the invariants of such data structures into their types, using higher-order nested datatypes. We show how one can achieve something very similar without the us…