doc-src/Tutorial/Misc/Fib.thy
author wenzelm
Tue, 27 Aug 2002 11:03:02 +0200
changeset 13523 079af5c90d1c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
avoid duplicate fact bindings;

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