doc-src/Tutorial/Misc/Fib.thy
author wenzelm
Tue, 10 Oct 2000 23:44:44 +0200
changeset 10184 4a7a1091cf65
parent 5377 efb799c5ed3c
permissions -rw-r--r--
fully enclose "\isadigit{...}"; \<^foo> produces "\isactrlfoo ";

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