Datatype laws without signatures
- 1 February 1996
- journal article
- research article
- Published by Cambridge University Press (CUP) in Mathematical Structures in Computer Science
- Vol. 6 (1) , 1-32
- https://doi.org/10.1017/s0960129500000852
Abstract
Using the well-known categorical notion of ‘functor’, one may define the concept of datatype (algebra) without being forced to introduce a signature (that is, names and typings for the individual sorts (types) and operations involved). This has proved to be advantageous for those theory developments where one is not interested in the syntactic appearance of an algebra. The categorical notion of ‘transformer’ developed in this paper allows the same approach to laws: without using signatures one can define the concept of law for datatypes (lawful algebras), and investigate the equational specification of datatypes in a syntax-free manner. A transformer is a special kind of functor and also a natural transformation on the level of dialgebras. Transformers are quite expressive, satisfy several closure properties, and are related to naturality and Wadler'' Theorems For Free Theorem. In fact, any colimit is an initial lawful algebra.Keywords
This publication has 1 reference indexed in Scilit:
- Theorems for free!Published by Association for Computing Machinery (ACM) ,1989