src/Doc/Tutorial/Misc/fakenat.thy
author wenzelm
Sun, 23 Mar 2025 17:07:55 +0100
changeset 82322 94fd80f0107d
parent 80983 2cc651d3ce8e
permissions -rw-r--r--
remove junk (amending 0811cfce1f5b);

(*<*)
theory fakenat imports Main begin
(*>*)

text\<open>\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:
\<close>

datatype nat = zero ("0") | Suc nat
(*<*)
end
(*>*)