src/Doc/Tutorial/Misc/fakenat.thy
author wenzelm
Fri, 03 Jan 2025 22:35:28 +0100
changeset 81711 a55b236f9e1d
parent 80983 2cc651d3ce8e
permissions -rw-r--r--
rebuild E 3.1 on Windows/Cygwin, with patch for proper interrupts;

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