diff -r 619531d87ce4 -r 4e2ee88276d2 doc-src/TutorialI/document/ABexpr.tex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc-src/TutorialI/document/ABexpr.tex Thu Jul 26 19:59:06 2012 +0200 @@ -0,0 +1,199 @@ +% +\begin{isabellebody}% +\def\isabellecontext{ABexpr}% +% +\isadelimtheory +% +\endisadelimtheory +% +\isatagtheory +% +\endisatagtheory +{\isafoldtheory}% +% +\isadelimtheory +% +\endisadelimtheory +% +\begin{isamarkuptext}% +\index{datatypes!mutually recursive}% +Sometimes it is necessary to define two datatypes that depend on each +other. This is called \textbf{mutual recursion}. As an example consider a +language of arithmetic and boolean expressions where +\begin{itemize} +\item arithmetic expressions contain boolean expressions because there are + conditional expressions like ``if $m