doc-src/Tutorial/Misc/Fib.thy
author wenzelm
Fri, 08 Oct 1999 16:16:51 +0200
changeset 7805 0ae9ddc36fe0
parent 5377 efb799c5ed3c
permissions -rw-r--r--
theorem database now also indexes constants "Trueprop", "all", "==>", "=="; thus thms_containing, findI etc. may retrieve more rules;

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