doc-src/Tutorial/Misc/Fib.thy
author paulson
Fri, 05 Nov 1999 12:45:37 +0100
changeset 7999 7acf6eb8eec1
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Algebra and Polynomial theories, by Clemens Ballarin

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