src/Doc/Tutorial/Misc/fakenat.thy
author wenzelm
Tue, 17 Dec 2024 14:56:13 +0100
changeset 81618 eede0cf38a63
parent 80983 2cc651d3ce8e
permissions -rw-r--r--
tuned GUI: trim text as in org.gjt.sp.jedit.search.HyperSearchResult;

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