doc-src/Tutorial/Misc/Fib.thy
author berghofe
Tue, 05 Oct 1999 15:31:42 +0200
changeset 7721 cb353d802ade
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Tuned inductive definition.

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