src/CCL/ex/Stream.thy
author clasohm
Tue, 22 Mar 1994 12:43:51 +0100
changeset 290 37d580c16af5
parent 0 a5a9c433f639
child 1474 3f7d67927fe2
permissions -rw-r--r--
changed "." to "$" and added parentheses to eliminate ambiguity

(*  Title: 	CCL/ex/stream.thy
    ID:         $Id$
    Author: 	Martin Coen, Cambridge University Computer Laboratory
    Copyright   1993  University of Cambridge

Programs defined over streams.
*)

Stream = List + 

consts

  iter1,iter2   ::  "[i=>i,i]=>i"

rules 

  iter1_def   "iter1(f,a) == letrec iter x be x$iter(f(x)) in iter(a)"
  iter2_def   "iter2(f,a) == letrec iter x be x$map(f,iter(x)) in iter(a)"

end