doc-src/TutorialI/Misc/document/natsum.tex
author wenzelm
Tue, 27 Jun 2000 20:35:31 +0200
changeset 9155 adfa40218e06
parent 9145 9f7b8de5bfaf
child 9458 c613cd06d5cf
permissions -rw-r--r--
OuterLex.name_of: include val;

\begin{isabelle}%
%
\begin{isamarkuptext}%
\noindent
In particular, there are \isa{case}-expressions, for example%
\end{isamarkuptext}%
~{"}case~n~of~0~{\isasymRightarrow}~0~|~Suc~m~{\isasymRightarrow}~m{"}%
\begin{isamarkuptext}%
\noindent
primitive recursion, for example%
\end{isamarkuptext}%
\isacommand{consts}~sum~::~{"}nat~{\isasymRightarrow}~nat{"}\isanewline
\isacommand{primrec}~{"}sum~0~=~0{"}\isanewline
~~~~~~~~{"}sum~(Suc~n)~=~Suc~n~+~sum~n{"}%
\begin{isamarkuptext}%
\noindent
and induction, for example%
\end{isamarkuptext}%
\isacommand{lemma}~{"}sum~n~+~sum~n~=~n*(Suc~n){"}\isanewline
\isacommand{apply}(induct\_tac~n)\isanewline
\isacommand{apply}(auto)\isacommand{.}\isanewline
\end{isabelle}%
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "root"
%%% End: