doc-src/System/Thy/document/Basics.tex
changeset 48602 342ca8f3197b
parent 47823 4fad76e6f4ba
child 48813 b0c39fd53c0e
equal deleted inserted replaced
48601:655b08c2cd89 48602:342ca8f3197b
    98   been run.
    98   been run.
    99   
    99   
   100   You should not try to set \hyperlink{setting.ISABELLE-HOME}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}HOME}}}} manually. Also
   100   You should not try to set \hyperlink{setting.ISABELLE-HOME}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}HOME}}}} manually. Also
   101   note that the Isabelle executables either have to be run from their
   101   note that the Isabelle executables either have to be run from their
   102   original location in the distribution directory, or via the
   102   original location in the distribution directory, or via the
   103   executable objects created by the \hyperlink{tool.install}{\mbox{\isa{\isatt{install}}}} utility.  Symbolic
   103   executable objects created by the \hyperlink{tool.install}{\mbox{\isa{\isatool{install}}}} tool.  Symbolic
   104   links are admissible, but a plain copy of the \verb|$ISABELLE_HOME/bin| files will not work!
   104   links are admissible, but a plain copy of the \verb|$ISABELLE_HOME/bin| files will not work!
   105 
   105 
   106   \item The file \verb|$ISABELLE_HOME/etc/settings| is run as a
   106   \item The file \verb|$ISABELLE_HOME/etc/settings| is run as a
   107   \indexref{}{executable}{bash}\hyperlink{executable.bash}{\mbox{\isa{\isatt{bash}}}} shell script with the auto-export option for
   107   \indexref{}{executable}{bash}\hyperlink{executable.bash}{\mbox{\isa{\isatt{bash}}}} shell script with the auto-export option for
   108   variables enabled.
   108   variables enabled.
   151   to its value.
   151   to its value.
   152 
   152 
   153   \end{itemize}
   153   \end{itemize}
   154 
   154 
   155   \medskip Note that the settings environment may be inspected with
   155   \medskip Note that the settings environment may be inspected with
   156   the Isabelle tool \hyperlink{tool.getenv}{\mbox{\isa{\isatt{getenv}}}}.  This might help to figure out the
   156   the \hyperlink{tool.getenv}{\mbox{\isa{\isatool{getenv}}}} tool.  This might help to figure out the effect
   157   effect of complex settings scripts.%
   157   of complex settings scripts.%
   158 \end{isamarkuptext}%
   158 \end{isamarkuptext}%
   159 \isamarkuptrue%
   159 \isamarkuptrue%
   160 %
   160 %
   161 \isamarkupsubsection{Common variables%
   161 \isamarkupsubsection{Common variables%
   162 }
   162 }
   249   \item[\indexdef{}{setting}{ISABELLE\_LOGIC}\hypertarget{setting.ISABELLE-LOGIC}{\hyperlink{setting.ISABELLE-LOGIC}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}LOGIC}}}}}] specifies the default logic to
   249   \item[\indexdef{}{setting}{ISABELLE\_LOGIC}\hypertarget{setting.ISABELLE-LOGIC}{\hyperlink{setting.ISABELLE-LOGIC}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}LOGIC}}}}}] specifies the default logic to
   250   load if none is given explicitely by the user.  The default value is
   250   load if none is given explicitely by the user.  The default value is
   251   \verb|HOL|.
   251   \verb|HOL|.
   252   
   252   
   253   \item[\indexdef{}{setting}{ISABELLE\_LINE\_EDITOR}\hypertarget{setting.ISABELLE-LINE-EDITOR}{\hyperlink{setting.ISABELLE-LINE-EDITOR}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}LINE{\isaliteral{5F}{\isacharunderscore}}EDITOR}}}}}] specifies the default
   253   \item[\indexdef{}{setting}{ISABELLE\_LINE\_EDITOR}\hypertarget{setting.ISABELLE-LINE-EDITOR}{\hyperlink{setting.ISABELLE-LINE-EDITOR}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}LINE{\isaliteral{5F}{\isacharunderscore}}EDITOR}}}}}] specifies the default
   254   line editor for the \indexref{}{tool}{tty}\hyperlink{tool.tty}{\mbox{\isa{\isatt{tty}}}} interface.
   254   line editor for the \indexref{}{tool}{tty}\hyperlink{tool.tty}{\mbox{\isa{\isatool{tty}}}} interface.
   255 
   255 
   256   \item[\indexdef{}{setting}{ISABELLE\_USEDIR\_OPTIONS}\hypertarget{setting.ISABELLE-USEDIR-OPTIONS}{\hyperlink{setting.ISABELLE-USEDIR-OPTIONS}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}USEDIR{\isaliteral{5F}{\isacharunderscore}}OPTIONS}}}}}] is implicitly prefixed
   256   \item[\indexdef{}{setting}{ISABELLE\_USEDIR\_OPTIONS}\hypertarget{setting.ISABELLE-USEDIR-OPTIONS}{\hyperlink{setting.ISABELLE-USEDIR-OPTIONS}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}USEDIR{\isaliteral{5F}{\isacharunderscore}}OPTIONS}}}}}] is implicitly prefixed
   257   to the command line of any \indexref{}{tool}{usedir}\hyperlink{tool.usedir}{\mbox{\isa{\isatt{usedir}}}} invocation. This
   257   to the command line of any \indexref{}{tool}{usedir}\hyperlink{tool.usedir}{\mbox{\isa{\isatool{usedir}}}} invocation. This
   258   typically contains compilation options for object-logics --- \hyperlink{tool.usedir}{\mbox{\isa{\isatt{usedir}}}} is the basic utility for managing logic sessions (cf.\ the
   258   typically contains compilation options for object-logics --- \hyperlink{tool.usedir}{\mbox{\isa{\isatool{usedir}}}} is the basic tool for managing logic sessions (cf.\ the
   259   \verb|IsaMakefile|s in the distribution).
   259   \verb|IsaMakefile|s in the distribution).
   260 
   260 
   261   \item[\indexdef{}{setting}{ISABELLE\_LATEX}\hypertarget{setting.ISABELLE-LATEX}{\hyperlink{setting.ISABELLE-LATEX}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}LATEX}}}}}, \indexdef{}{setting}{ISABELLE\_PDFLATEX}\hypertarget{setting.ISABELLE-PDFLATEX}{\hyperlink{setting.ISABELLE-PDFLATEX}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}PDFLATEX}}}}}, \indexdef{}{setting}{ISABELLE\_BIBTEX}\hypertarget{setting.ISABELLE-BIBTEX}{\hyperlink{setting.ISABELLE-BIBTEX}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}BIBTEX}}}}}, \indexdef{}{setting}{ISABELLE\_DVIPS}\hypertarget{setting.ISABELLE-DVIPS}{\hyperlink{setting.ISABELLE-DVIPS}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}DVIPS}}}}}] refer to {\LaTeX} related tools for Isabelle
   261   \item[\indexdef{}{setting}{ISABELLE\_LATEX}\hypertarget{setting.ISABELLE-LATEX}{\hyperlink{setting.ISABELLE-LATEX}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}LATEX}}}}}, \indexdef{}{setting}{ISABELLE\_PDFLATEX}\hypertarget{setting.ISABELLE-PDFLATEX}{\hyperlink{setting.ISABELLE-PDFLATEX}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}PDFLATEX}}}}}, \indexdef{}{setting}{ISABELLE\_BIBTEX}\hypertarget{setting.ISABELLE-BIBTEX}{\hyperlink{setting.ISABELLE-BIBTEX}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}BIBTEX}}}}}, \indexdef{}{setting}{ISABELLE\_DVIPS}\hypertarget{setting.ISABELLE-DVIPS}{\hyperlink{setting.ISABELLE-DVIPS}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}DVIPS}}}}}] refer to {\LaTeX} related tools for Isabelle
   262   document preparation (see also \secref{sec:tool-latex}).
   262   document preparation (see also \secref{sec:tool-latex}).
   263   
   263   
   487 isabelle-process -r Test
   487 isabelle-process -r Test
   488 \end{ttbox}
   488 \end{ttbox}
   489 
   489 
   490   \medskip Note that manual session management like this does
   490   \medskip Note that manual session management like this does
   491   \emph{not} provide proper setup for theory presentation.  This would
   491   \emph{not} provide proper setup for theory presentation.  This would
   492   require the \hyperlink{tool.usedir}{\mbox{\isa{\isatt{usedir}}}} utility.
   492   require \hyperlink{tool.usedir}{\mbox{\isa{\isatool{usedir}}}}.
   493 
   493 
   494   \bigskip The next example demonstrates batch execution of Isabelle.
   494   \bigskip The next example demonstrates batch execution of Isabelle.
   495   We retrieve the \verb|Main| theory value from the theory loader
   495   We retrieve the \verb|Main| theory value from the theory loader
   496   within ML (observe the delicate quoting rules for the Bash shell
   496   within ML (observe the delicate quoting rules for the Bash shell
   497   vs.\ ML):
   497   vs.\ ML):