doc-src/Tutorial/Misc/Fib.thy
author oheimb
Wed, 31 Jan 2001 10:15:55 +0100
changeset 11008 f7333f055ef6
parent 5377 efb799c5ed3c
permissions -rw-r--r--
improved theory reference in comment

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