doc-src/Tutorial/Misc/Fib.thy
author paulson
Thu, 17 Oct 2002 10:56:00 +0200
changeset 13652 172600c40793
parent 5377 efb799c5ed3c
permissions -rw-r--r--
fixed comments and types

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