src/Doc/Tutorial/Misc/fakenat.thy
author blanchet
Mon, 15 Sep 2014 10:49:07 +0200
changeset 58335 a5a3b576fcfb
parent 56260 3d79c132e657
child 58860 fee7cfa69c50
permissions -rw-r--r--
generate 'code' attribute only if 'code' plugin is enabled

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