doc-src/Tutorial/Misc/Fib.thy
author paulson
Tue, 19 Jan 1999 11:16:07 +0100
changeset 6139 26abad27b03c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
simplified thanks to the arithmetic prover

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