doc-src/Tutorial/Misc/Fib.thy
author paulson
Fri, 18 Sep 1998 16:04:44 +0200
changeset 5509 c38cc427976c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Now defines "int" as a linear order; basic derivations moved to IntDef

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