doc-src/TutorialI/Misc/document/cases.tex
author wenzelm
Thu, 27 Jul 2000 18:25:01 +0200
changeset 9451 5c25ed3c10a0
parent 9145 9f7b8de5bfaf
child 9458 c613cd06d5cf
permissions -rw-r--r--
begin_theory: store *copy* of initial theory;

\begin{isabelle}%
\isanewline
\isacommand{lemma}~{"}(case~xs~of~[]~{\isasymRightarrow}~[]~|~y\#ys~{\isasymRightarrow}~xs)~=~xs{"}\isanewline
\isacommand{apply}(case\_tac~xs)%
\begin{isamarkuptxt}%
\noindent
results in the proof state
\begin{isabellepar}%
~1.~xs~=~[]~{\isasymLongrightarrow}~(case~xs~of~[]~{\isasymRightarrow}~[]~|~y~\#~ys~{\isasymRightarrow}~xs)~=~xs\isanewline
~2.~{\isasymAnd}a~list.~xs=a\#list~{\isasymLongrightarrow}~(case~xs~of~[]~{\isasymRightarrow}~[]~|~y\#ys~{\isasymRightarrow}~xs)~=~xs%
\end{isabellepar}%
which is solved automatically:%
\end{isamarkuptxt}%
\isacommand{apply}(auto)\isacommand{.}\isanewline
\end{isabelle}%
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "root"
%%% End: