author | wenzelm |
Wed, 26 Sep 2001 22:24:55 +0200 | |
changeset 11572 | 93da54c8a687 |
parent 10835 | f4745d77e620 |
child 12035 | f2ee4b5d02f2 |
permissions | -rw-r--r-- |
2570 | 1 |
(* Title: HOLCF/Dnat.thy |
2 |
ID: $Id$ |
|
3 |
Author: Franz Regensburger |
|
4 |
Copyright 1993 Technische Universitaet Muenchen |
|
5 |
||
6 |
Theory for the domain of natural numbers dnat = one ++ dnat |
|
7 |
*) |
|
8 |
||
9 |
Dnat = HOLCF + |
|
10 |
||
11 |
domain dnat = dzero | dsucc (dpred :: dnat) |
|
12 |
||
13 |
constdefs |
|
14 |
||
15 |
iterator :: "dnat -> ('a -> 'a) -> 'a -> 'a" |
|
10835 | 16 |
"iterator == fix$(LAM h n f x . case n of dzero => x |
17 |
| dsucc$m => f$(h$m$f$x))" |
|
2570 | 18 |
|
19 |
end |