src/HOL/ex/Fib.thy
author nipkow
Thu, 26 Jun 1997 13:20:50 +0200
changeset 3465 e85c24717cad
parent 3375 d9b30c300f1e
child 3494 f7ac2d1e2051
permissions -rw-r--r--
set_of_list -> set

(*  Title:      ex/Fib
    ID:         $Id$
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
    Copyright   1997  University of Cambridge

Fibonacci numbers and other simple examples of recursive definitions
	(the TFL package)
*)

Fib = WF_Rel + Divides +

consts fib  :: "nat => nat"
recdef fib "less_than"
    "fib 0 = 0"
    "fib 1 = 1"
    "fib (Suc(Suc x)) = (fib x + fib (Suc x))"

end