doc-src/Tutorial/Misc/Fib.thy
author berghofe
Thu, 20 Dec 2001 14:57:15 +0100
changeset 12555 e6d7f040fdc7
parent 5377 efb799c5ed3c
permissions -rw-r--r--
"code" attribute is now managed by basic code generator module.

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