src/CCL/ex/Stream.thy
author paulson
Mon Dec 07 18:26:25 1998 +0100 (1998-12-07)
changeset 6019 0e55c2fb2ebb
parent 1474 3f7d67927fe2
child 17456 bcf7544875b2
permissions -rw-r--r--
tidying
clasohm@1474
     1
(*  Title:      CCL/ex/stream.thy
clasohm@0
     2
    ID:         $Id$
clasohm@1474
     3
    Author:     Martin Coen, Cambridge University Computer Laboratory
clasohm@0
     4
    Copyright   1993  University of Cambridge
clasohm@0
     5
clasohm@0
     6
Programs defined over streams.
clasohm@0
     7
*)
clasohm@0
     8
clasohm@0
     9
Stream = List + 
clasohm@0
    10
clasohm@0
    11
consts
clasohm@0
    12
clasohm@0
    13
  iter1,iter2   ::  "[i=>i,i]=>i"
clasohm@0
    14
clasohm@0
    15
rules 
clasohm@0
    16
clasohm@290
    17
  iter1_def   "iter1(f,a) == letrec iter x be x$iter(f(x)) in iter(a)"
clasohm@290
    18
  iter2_def   "iter2(f,a) == letrec iter x be x$map(f,iter(x)) in iter(a)"
clasohm@0
    19
clasohm@0
    20
end