doc-src/Tutorial/Misc/Fib.thy
author ballarin
Wed, 10 Dec 2003 14:29:44 +0100
changeset 14287 f630017ed01c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Isar: where attribute supports instantiation of type variables.

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