doc-src/TutorialI/Types/document/Overloading0.tex
changeset 10457 dd669bda2b0c
parent 10397 e2d0dda41f2c
child 10538 d1bf9ca9008d
--- a/doc-src/TutorialI/Types/document/Overloading0.tex	Sun Nov 12 14:48:25 2000 +0100
+++ b/doc-src/TutorialI/Types/document/Overloading0.tex	Sun Nov 12 14:48:47 2000 +0100
@@ -29,13 +29,13 @@
 Isabelle will not complain because the three definitions do not overlap: no
 two of the three types \isa{bool}, \isa{{\isacharprime}a\ set} and \isa{{\isacharprime}a\ {\isasymtimes}\ {\isacharprime}b} have a
 common instance. What is more, the recursion in \isa{inverse{\isacharunderscore}pair} is
-benign because the type of \isa{inverse} becomes smaller: on the left it is
+benign because the type of \isa{Overloading{\isadigit{0}}{\isachardot}inverse} becomes smaller: on the left it is
 \isa{{\isacharprime}a\ {\isasymtimes}\ {\isacharprime}b\ {\isasymRightarrow}\ {\isacharprime}a\ {\isasymtimes}\ {\isacharprime}b} but on the right \isa{{\isacharprime}a\ {\isasymRightarrow}\ {\isacharprime}a} and \isa{{\isacharprime}b\ {\isasymRightarrow}\ {\isacharprime}b}. The annotation \isa{{\isacharparenleft}overloaded{\isacharparenright}} tells Isabelle that the definitions do
-intentionally define \isa{inverse} only at instances of its declared type
+intentionally define \isa{Overloading{\isadigit{0}}{\isachardot}inverse} only at instances of its declared type
 \isa{{\isacharprime}a\ {\isasymRightarrow}\ {\isacharprime}a} --- this merely supresses warnings to that effect.
 
 However, there is nothing to prevent the user from forming terms such as
-\isa{inverse\ {\isacharbrackleft}{\isacharbrackright}} and proving theorems as \isa{inverse\ {\isacharbrackleft}{\isacharbrackright}\ {\isacharequal}\ inverse\ {\isacharbrackleft}{\isacharbrackright}},
+\isa{Overloading{\isadigit{0}}{\isachardot}inverse\ {\isacharbrackleft}{\isacharbrackright}} and proving theorems as \isa{Overloading{\isadigit{0}}{\isachardot}inverse\ {\isacharbrackleft}{\isacharbrackright}\ {\isacharequal}\ Overloading{\isadigit{0}}{\isachardot}inverse\ {\isacharbrackleft}{\isacharbrackright}},
 although we never defined inverse on lists. We hasten to say that there is
 nothing wrong with such terms and theorems. But it would be nice if we could
 prevent their formation, simply because it is very likely that the user did