doc-src/TutorialI/Misc/fakenat.thy
author wenzelm
Sat, 07 Oct 2006 01:31:15 +0200
changeset 20887 ec9a1bb086da
parent 16417 9bc16273c2d4
permissions -rw-r--r--
replaced add_def by more elaborate add_defs; added find_def (based on educated guesses);

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