doc-src/TutorialI/Misc/fakenat.thy
author huffman
Thu, 10 May 2007 03:00:15 +0200
changeset 22912 c477862c566d
parent 16417 9bc16273c2d4
permissions -rw-r--r--
instance real_algebra_1 < ring_char_0

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