doc-src/TutorialI/Recdef/document/examples.tex
changeset 11160 e0ab13bec5c8
parent 10654 458068404143
child 11231 30d96882f915
--- a/doc-src/TutorialI/Recdef/document/examples.tex	Tue Feb 20 10:37:12 2001 +0100
+++ b/doc-src/TutorialI/Recdef/document/examples.tex	Tue Feb 20 11:27:04 2001 +0100
@@ -52,8 +52,11 @@
 \ \ {\isachardoublequote}sep{\isadigit{1}}{\isacharparenleft}a{\isacharcomma}\ xs{\isacharparenright}\ \ \ \ \ {\isacharequal}\ xs{\isachardoublequote}%
 \begin{isamarkuptext}%
 \noindent
-This defines exactly the same function as \isa{sep} above, i.e.\
-\isa{sep{\isadigit{1}}\ {\isacharequal}\ sep}.
+To guarantee that the second equation can only be applied if the first
+one does not match, Isabelle internally replaces the second equation
+by the two possibilities that are left: \isa{sep{\isadigit{1}}\ {\isacharparenleft}a{\isacharcomma}\ {\isacharbrackleft}{\isacharbrackright}{\isacharparenright}\ {\isacharequal}\ {\isacharbrackleft}{\isacharbrackright}} and
+\isa{sep{\isadigit{1}}\ {\isacharparenleft}a{\isacharcomma}\ {\isacharbrackleft}x{\isacharbrackright}{\isacharparenright}\ {\isacharequal}\ {\isacharbrackleft}x{\isacharbrackright}}.  Thus the functions \isa{sep} and
+\isa{sep{\isadigit{1}}} are identical.
 
 \begin{warn}
   \isacommand{recdef} only takes the first argument of a (curried)