doc-src/TutorialI/Misc/fakenat.thy
author haftmann
Mon, 26 May 2008 17:55:36 +0200
changeset 26995 2511a72dd73c
parent 16417 9bc16273c2d4
permissions -rw-r--r--
check for illegal merge of class parameters

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