9722
|
1 |
%
|
|
2 |
\begin{isabellebody}%
|
8749
|
3 |
%
|
|
4 |
\begin{isamarkuptext}%
|
|
5 |
\noindent
|
9541
|
6 |
In particular, there are \isa{case}-expressions, for example
|
|
7 |
\begin{quote}
|
|
8 |
|
|
9 |
\begin{isabelle}%
|
9792
|
10 |
case\ n\ of\ \isadigit{0}\ {\isasymRightarrow}\ \isadigit{0}\ {\isacharbar}\ Suc\ m\ {\isasymRightarrow}\ m
|
9541
|
11 |
\end{isabelle}%
|
|
12 |
|
|
13 |
\end{quote}
|
8749
|
14 |
primitive recursion, for example%
|
|
15 |
\end{isamarkuptext}%
|
9673
|
16 |
\isacommand{consts}\ sum\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequote}nat\ {\isasymRightarrow}\ nat{\isachardoublequote}\isanewline
|
|
17 |
\isacommand{primrec}\ {\isachardoublequote}sum\ \isadigit{0}\ {\isacharequal}\ \isadigit{0}{\isachardoublequote}\isanewline
|
|
18 |
\ \ \ \ \ \ \ \ {\isachardoublequote}sum\ {\isacharparenleft}Suc\ n{\isacharparenright}\ {\isacharequal}\ Suc\ n\ {\isacharplus}\ sum\ n{\isachardoublequote}%
|
8749
|
19 |
\begin{isamarkuptext}%
|
|
20 |
\noindent
|
|
21 |
and induction, for example%
|
|
22 |
\end{isamarkuptext}%
|
9673
|
23 |
\isacommand{lemma}\ {\isachardoublequote}sum\ n\ {\isacharplus}\ sum\ n\ {\isacharequal}\ n{\isacharasterisk}{\isacharparenleft}Suc\ n{\isacharparenright}{\isachardoublequote}\isanewline
|
|
24 |
\isacommand{apply}{\isacharparenleft}induct{\isacharunderscore}tac\ n{\isacharparenright}\isanewline
|
|
25 |
\isacommand{by}{\isacharparenleft}auto{\isacharparenright}\isanewline
|
9722
|
26 |
\end{isabellebody}%
|
9145
|
27 |
%%% Local Variables:
|
|
28 |
%%% mode: latex
|
|
29 |
%%% TeX-master: "root"
|
|
30 |
%%% End:
|