doc-src/Tutorial/Misc/Fib.thy
author paulson
Wed, 24 May 2000 18:49:05 +0200
changeset 8962 633e1682455c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
setsum is now overloaded on plus_ac0

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