doc-src/Tutorial/Misc/Fib.thy
author wenzelm
Mon, 04 Oct 1999 21:48:23 +0200
changeset 7707 1f4b67fdfdae
parent 5377 efb799c5ed3c
permissions -rw-r--r--
simprocs now in IntArith;

Fib = WF_Rel +
consts fib  :: nat => nat
recdef fib "measure(%n. n)"
    "fib 0 = 0"
    "fib 1 = 1"
    "fib (Suc(Suc x)) = fib x + fib (Suc x)"
end