src/Doc/Tutorial/Misc/fakenat.thy
author Thomas Lindae <thomas.lindae@in.tum.de>
Wed, 17 Jul 2024 21:02:30 +0200
changeset 81077 664c1a6cc8c1
parent 80983 2cc651d3ce8e
permissions -rw-r--r--
vscode: removed README because its content is outdated;

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