doc-src/Tutorial/Misc/Fib.thy
author wenzelm
Fri, 21 Dec 2001 23:16:17 +0100
changeset 12587 3f3d2ffb5df5
parent 5377 efb799c5ed3c
permissions -rw-r--r--
HOL/record: shared operations ("more", "fields", etc.) now need to be always qualified;

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