author | lcp |
Tue, 25 Apr 1995 11:14:03 +0200 | |
changeset 1072 | 0140ff702b23 |
parent 935 | a94ef3eed456 |
child 1401 | 0c439768f45c |
permissions | -rw-r--r-- |
(* Title: ZF/ex/Data.thy ID: $Id$ Author: Lawrence C Paulson, Cambridge University Computer Laboratory Copyright 1994 University of Cambridge Sample datatype definition. It has four contructors, of arities 0-3, and two parameters A and B. *) Data = Datatype + consts data :: "[i,i] => i" datatype "data(A,B)" = Con0 | Con1 ("a: A") | Con2 ("a: A", "b: B") | Con3 ("a: A", "b: B", "d: data(A,B)") end