doc-src/TutorialI/Misc/fakenat.thy
author wenzelm
Tue, 19 Jul 2005 17:21:49 +0200
changeset 16877 e92cba1d4842
parent 16417 9bc16273c2d4
permissions -rw-r--r--
tuned interfaces declare, define, finalize, merge: canonical argument order, produce errors; tuned checkT';

(*<*)
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
(*>*)