8749
|
1 |
\begin{isabelle}%
|
|
2 |
%
|
|
3 |
\begin{isamarkuptext}%
|
|
4 |
\noindent
|
|
5 |
Define the datatype of binary trees%
|
|
6 |
\end{isamarkuptext}%
|
|
7 |
\isacommand{datatype}~'a~tree~=~Tip~|~Node~{"}'a~tree{"}~'a~{"}'a~tree{"}%
|
|
8 |
\begin{isamarkuptext}%
|
|
9 |
\noindent
|
|
10 |
and a function \isa{mirror} that mirrors a binary tree
|
|
11 |
by swapping subtrees (recursively). Prove%
|
|
12 |
\end{isamarkuptext}%
|
|
13 |
\isacommand{lemma}~mirror\_mirror:~{"}mirror(mirror~t)~=~t{"}\end{isabelle}%
|
9145
|
14 |
%%% Local Variables:
|
|
15 |
%%% mode: latex
|
|
16 |
%%% TeX-master: "root"
|
|
17 |
%%% End:
|