src/Doc/Tutorial/Misc/fakenat.thy
author wenzelm
Tue, 16 May 2017 15:37:07 +0200
changeset 65843 d547173212d2
parent 58860 fee7cfa69c50
child 67406 23307fd33906
permissions -rw-r--r--
proper init_settings for init_component (before generated ML_OPTIONS etc.); fresh start for "Poly/ML 5.7 Linux", suppressing old builds with ML_OPTIONS="-H 500";

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