src/Doc/Tutorial/Misc/fakenat.thy
author wenzelm
Fri, 16 May 2014 17:11:56 +0200
changeset 56980 9c5220e05e04
parent 56260 3d79c132e657
child 58860 fee7cfa69c50
permissions -rw-r--r--
proper priority for error over warning, which got mixed up in 0546e036d1c0 and 4df2727a0b5f;

(*<*)
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 approximately as if it were declared like this:
*}

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