src/Doc/Tutorial/Misc/fakenat.thy
author wenzelm
Mon, 21 Sep 2015 16:55:37 +0200
changeset 61214 a00bee2dfbd1
parent 58860 fee7cfa69c50
child 67406 23307fd33906
permissions -rw-r--r--
tuned priority (like other query operations, e.g. "find_theorems");

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