doc-src/TutorialI/Misc/fakenat.thy
author wenzelm
Sun, 19 Jul 2009 14:14:25 +0200
changeset 32055 6a46898aa805
parent 16417 9bc16273c2d4
permissions -rw-r--r--
recovered a version of dequeue_towards (cf. bb7b5a5942c7); join_results: work only towards explicit dependencies -- otherwise could produce dynamic cycle (not recorded in queue);

(*<*)
theory fakenat imports Main begin;
(*>*)

text{*\noindent
The type \tydx{nat} of natural
numbers is predefined to have the constructors \cdx{0} and~\cdx{Suc}.  It  behaves as if it were declared like this:
*}

datatype nat = 0 | Suc nat
(*<*)
end
(*>*)