doc-src/TutorialI/Misc/fakenat.thy
author wenzelm
Mon, 16 Mar 2009 23:52:30 +0100
changeset 30554 73f8bd5f0af8
parent 16417 9bc16273c2d4
permissions -rw-r--r--
substantial speedup of assumption and elim-resolution: Logic.assum_problems refrains from eager application of parameters, discriminate via Term.could_unify before invoking full unification (assumes terms in beta-normal form, as do higher term net operations anyway);

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

text{*\noindent
The type \tydx{nat} of natural
numbers is predefined to have the constructors \cdx{0} and~\cdx{Suc}.  It  behaves as if it were declared like this:
*}

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