doc-src/Tutorial/Misc/Fib.thy
author paulson
Fri, 23 Jul 1999 17:49:35 +0200
changeset 7080 b551a5a8966c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
new simprocs assoc_fold and combine_coeff

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