src/Doc/Tutorial/Misc/fakenat.thy
author desharna
Wed, 01 Oct 2025 11:27:58 +0000
changeset 83239 0da2f7981483
parent 80983 2cc651d3ce8e
permissions -rw-r--r--
proper SMT file names in Mirabelle

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