doc-src/TutorialI/Misc/document/prime_def.tex
author oheimb
Fri, 02 Jun 2000 20:38:28 +0200
changeset 9028 8a1ec8f05f14
parent 8749 2665170f104a
child 9145 9f7b8de5bfaf
permissions -rw-r--r--
added HOL/Prolog

\begin{isabelle}%
\isanewline
~~~~{"}prime(p)~{\isasymequiv}~1~<~p~{\isasymand}~((m~dvd~p)~{\isasymlongrightarrow}~(m=1~{\isasymor}~m=p)){"}%
\begin{isamarkuptext}%
\noindent\small
where \isa{dvd} means ``divides''.
Isabelle rejects this ``definition'' because of the extra \isa{m} on the
right-hand side, which would introduce an inconsistency. (Why?) What you
should have written is%
\end{isamarkuptext}%
~{"}prime(p)~{\isasymequiv}~1~<~p~{\isasymand}~({\isasymforall}m.~(m~dvd~p)~{\isasymlongrightarrow}~(m=1~{\isasymor}~m=p)){"}\end{isabelle}%