13305
|
1 |
%
|
|
2 |
\begin{isabellebody}%
|
|
3 |
\def\isabellecontext{Plus}%
|
17056
|
4 |
%
|
|
5 |
\isadelimtheory
|
|
6 |
%
|
|
7 |
\endisadelimtheory
|
|
8 |
%
|
|
9 |
\isatagtheory
|
|
10 |
%
|
|
11 |
\endisatagtheory
|
|
12 |
{\isafoldtheory}%
|
|
13 |
%
|
|
14 |
\isadelimtheory
|
|
15 |
%
|
|
16 |
\endisadelimtheory
|
13305
|
17 |
%
|
|
18 |
\begin{isamarkuptext}%
|
|
19 |
\noindent Define the following addition function%
|
|
20 |
\end{isamarkuptext}%
|
17175
|
21 |
\isamarkuptrue%
|
|
22 |
\isacommand{consts}\isamarkupfalse%
|
|
23 |
\ plus\ {\isacharcolon}{\isacharcolon}\ {\isachardoublequoteopen}nat\ {\isasymRightarrow}\ nat\ {\isasymRightarrow}\ nat{\isachardoublequoteclose}\isanewline
|
|
24 |
\isacommand{primrec}\isamarkupfalse%
|
|
25 |
\isanewline
|
|
26 |
{\isachardoublequoteopen}plus\ m\ {\isadigit{0}}\ {\isacharequal}\ m{\isachardoublequoteclose}\isanewline
|
|
27 |
{\isachardoublequoteopen}plus\ m\ {\isacharparenleft}Suc\ n{\isacharparenright}\ {\isacharequal}\ plus\ {\isacharparenleft}Suc\ m{\isacharparenright}\ n{\isachardoublequoteclose}%
|
13305
|
28 |
\begin{isamarkuptext}%
|
|
29 |
\noindent and prove%
|
|
30 |
\end{isamarkuptext}%
|
17175
|
31 |
\isamarkuptrue%
|
17056
|
32 |
%
|
|
33 |
\isadelimproof
|
|
34 |
%
|
|
35 |
\endisadelimproof
|
|
36 |
%
|
|
37 |
\isatagproof
|
|
38 |
%
|
|
39 |
\endisatagproof
|
|
40 |
{\isafoldproof}%
|
|
41 |
%
|
|
42 |
\isadelimproof
|
|
43 |
%
|
|
44 |
\endisadelimproof
|
17175
|
45 |
\isacommand{lemma}\isamarkupfalse%
|
|
46 |
\ {\isachardoublequoteopen}plus\ m\ n\ {\isacharequal}\ m{\isacharplus}n{\isachardoublequoteclose}%
|
17056
|
47 |
\isadelimproof
|
|
48 |
%
|
|
49 |
\endisadelimproof
|
|
50 |
%
|
|
51 |
\isatagproof
|
|
52 |
%
|
|
53 |
\endisatagproof
|
|
54 |
{\isafoldproof}%
|
|
55 |
%
|
|
56 |
\isadelimproof
|
|
57 |
%
|
|
58 |
\endisadelimproof
|
|
59 |
%
|
|
60 |
\isadelimtheory
|
|
61 |
%
|
|
62 |
\endisadelimtheory
|
|
63 |
%
|
|
64 |
\isatagtheory
|
|
65 |
%
|
|
66 |
\endisatagtheory
|
|
67 |
{\isafoldtheory}%
|
|
68 |
%
|
|
69 |
\isadelimtheory
|
|
70 |
%
|
|
71 |
\endisadelimtheory
|
13305
|
72 |
\end{isabellebody}%
|
|
73 |
%%% Local Variables:
|
|
74 |
%%% mode: latex
|
|
75 |
%%% TeX-master: "root"
|
|
76 |
%%% End:
|