doc-src/Tutorial/Misc/Fib.thy
author wenzelm
Thu, 08 Aug 2002 23:51:24 +0200
changeset 13486 54464ea94d6f
parent 5377 efb799c5ed3c
permissions -rw-r--r--
exception SIMPROC_FAIL: solid error reporting of simprocs;

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