13 \begin{ttbox} |
13 \begin{ttbox} |
14 Usage: isatool doc [DOC] |
14 Usage: isatool doc [DOC] |
15 |
15 |
16 View Isabelle documentation DOC, or show list of available documents. |
16 View Isabelle documentation DOC, or show list of available documents. |
17 \end{ttbox} |
17 \end{ttbox} |
18 If called without arguments, it lists all available documents. Each |
18 If called without arguments, it lists all available documents. Each line |
19 line starts with an identifier, followed by some comment. Any of these |
19 starts with an identifier, followed by a short description. Any of these |
20 identifiers may be specified as the first argument in order to have |
20 identifiers may be specified as the first argument in order to have the |
21 the corresponding document displayed. |
21 corresponding document displayed. |
22 |
22 |
23 \medskip The \texttt{ISABELLE_DOCS} setting specifies the list of |
23 \medskip The \texttt{ISABELLE_DOCS} setting specifies the list of directories |
24 directories (separated by colons) to be scanned for documentations. |
24 (separated by colons) to be scanned for documentations. The program for |
25 The program for viewing \texttt{dvi} files is determined by the |
25 viewing \texttt{dvi} files is determined by the \texttt{DVI_VIEWER} setting. |
26 \texttt{DVI_VIEWER} setting. |
|
27 |
26 |
28 |
27 |
29 \section{Tuning proof scripts --- \texttt{isatool expandshort}} |
28 \section{Tuning proof scripts --- \texttt{isatool expandshort}} |
30 |
29 |
31 The \tooldx{expandshort} utility tunes {\ML} proof scripts to enhance |
30 The \tooldx{expandshort} utility tunes {\ML} proof scripts to enhance |
38 forward_tac, rewrite_goals_tac on 1-element lists; furthermore expands |
37 forward_tac, rewrite_goals_tac on 1-element lists; furthermore expands |
39 tabs, which are forbidden in SML string constants. |
38 tabs, which are forbidden in SML string constants. |
40 |
39 |
41 Renames old versions of files by appending "~~". |
40 Renames old versions of files by appending "~~". |
42 \end{ttbox} |
41 \end{ttbox} |
43 In the files or directories supplied as arguments, all occurrences of |
42 In the files or directories supplied as arguments, all occurrences of the |
44 the shorthand commands \texttt{br}, \texttt{be} etc.\ in proof scripts |
43 shorthand commands \texttt{br}, \texttt{be} etc.\ in proof scripts are |
45 are replaced with the corresponding full commands. The old versions |
44 replaced with the corresponding full commands. The old versions of the files |
46 of the files are renamed to have the suffix~\verb'~~'. |
45 are renamed to have the suffix``~\verb'~~'''. |
47 |
46 |
48 |
47 |
49 \section{Getting logic images --- \texttt{isatool findlogics}} |
48 \section{Getting logic images --- \texttt{isatool findlogics}} |
50 |
49 |
51 The \tooldx{findlogics} utility traverses all directories specified in |
50 The \tooldx{findlogics} utility traverses all directories specified in |
52 \texttt{ISABELLE_PATH}, looking for Isabelle logic images. Its usage |
51 \texttt{ISABELLE_PATH}, looking for Isabelle logic images. Its usage is: |
53 is: |
|
54 \begin{ttbox} |
52 \begin{ttbox} |
55 Usage: isatool findlogics |
53 Usage: isatool findlogics |
56 |
54 |
57 Collect heap file names from ISABELLE_PATH. |
55 Collect heap file names from ISABELLE_PATH. |
58 \end{ttbox} |
56 \end{ttbox} |
63 |
61 |
64 |
62 |
65 \section{Inspecting the settings environment -- \texttt{isatool getenv}} |
63 \section{Inspecting the settings environment -- \texttt{isatool getenv}} |
66 \label{sec:tool-getenv} |
64 \label{sec:tool-getenv} |
67 |
65 |
68 The Isabelle settings environment --- as provided by the site-default |
66 The Isabelle settings environment --- as provided by the site-default and |
69 and user-specific settings files --- can be inspected with the |
67 user-specific settings files --- can be inspected with the \tooldx{getenv} |
70 \tooldx{getenv} utility: |
68 utility: |
71 \begin{ttbox} |
69 \begin{ttbox} |
72 Usage: isatool getenv [OPTIONS] [VARNAMES ...] |
70 Usage: isatool getenv [OPTIONS] [VARNAMES ...] |
73 |
71 |
74 Options are: |
72 Options are: |
75 -a display complete environment |
73 -a display complete environment |
76 -b print values only (doesn't work for -a) |
74 -b print values only (doesn't work for -a) |
77 |
75 |
78 Get value of VARNAMES from the Isabelle settings. |
76 Get value of VARNAMES from the Isabelle settings. |
79 \end{ttbox} |
77 \end{ttbox} |
80 |
78 |
81 With the \texttt{-a} option, one may inspect the full process |
79 With the \texttt{-a} option, one may inspect the full process environment that |
82 environment that Isabelle related programs are run in. This usually |
80 Isabelle related programs are run in. This usually contains much more |
83 contains much more variables than are actually Isabelle settings. |
81 variables than are actually Isabelle settings. Normally, output is a list of |
84 Normally, output is a list of lines of the form |
82 lines of the form \mbox{$name$\texttt{=}$value$}. The \texttt{-b} option |
85 \mbox{$name$\texttt{=}$value$}. The \texttt{-b} option causes only the |
83 causes only the values to be printed. |
86 values to be printed. |
|
87 |
84 |
88 |
85 |
89 \subsection*{Examples} |
86 \subsection*{Examples} |
90 |
87 |
91 Get the {\ML} system identifier and the location where the compiler |
88 Get the {\ML} system identifier and the location where the compiler binaries |
92 binaries are supposed to reside as follows: |
89 are supposed to reside as follows: |
93 \begin{ttbox} |
90 \begin{ttbox} |
94 isatool getenv ML_SYSTEM ML_HOME |
91 isatool getenv ML_SYSTEM ML_HOME |
95 {\out ML_SYSTEM=smlnj-110} |
92 {\out ML_SYSTEM=smlnj-110} |
96 {\out ML_HOME=/usr/local/smlnj-110/bin} |
93 {\out ML_HOME=/usr/local/smlnj-110/bin} |
97 \end{ttbox} |
94 \end{ttbox} |
98 |
95 |
99 The next one peeks at the search path that \texttt{isabelle} uses to |
96 The next one peeks at the search path that \texttt{isabelle} uses to locate |
100 locate logic images: |
97 logic images: |
101 \begin{ttbox} |
98 \begin{ttbox} |
102 isatool getenv -b ISABELLE_PATH |
99 isatool getenv -b ISABELLE_PATH |
103 {\out /home/me/isabelle/heaps/smlnj-110:/usr/local/isabelle/heaps/smlnj-110} |
100 {\out /home/me/isabelle/heaps/smlnj-110:/usr/local/isabelle/heaps/smlnj-110} |
104 \end{ttbox} |
101 \end{ttbox} |
105 Here we have used the \texttt{-b} option to suppress the |
102 Here we have used the \texttt{-b} option to suppress the |
106 \texttt{ISABELLE_PATH=} prefix. The value above is what became of the |
103 \texttt{ISABELLE_PATH=} prefix. The value above is what became of the |
107 following assignment in the default settings file: |
104 following assignment in the default settings file: |
108 \begin{ttbox} |
105 \begin{ttbox} |
109 ISABELLE_PATH=\$ISABELLE_HOME_USER/heaps:\$ISABELLE_HOME/heaps |
106 ISABELLE_PATH=\$ISABELLE_HOME_USER/heaps:\$ISABELLE_HOME/heaps |
110 \end{ttbox} |
107 \end{ttbox} |
111 Note how the \texttt{ML_SYSTEM} value got appended automatically to |
108 Note how the \texttt{ML_SYSTEM} value got appended automatically to each path |
112 each path component. This is a special feature of |
109 component. This is a special feature of \texttt{ISABELLE_PATH} (and also of |
113 \texttt{ISABELLE_PATH} (and also of \texttt{ISABELLE_OUTPUT}). |
110 \texttt{ISABELLE_OUTPUT}). |
114 |
111 |
115 |
112 |
116 \section{Installing standalone Isabelle executables -- \texttt{isatool install}} |
113 \section{Installing standalone Isabelle executables -- \texttt{isatool install}} |
117 |
114 \label{sec:tool-install} |
118 Usually, the Isabelle binaries (\texttt{isabelle}, \texttt{isatool} etc.) are |
115 |
119 just run from their location within the distribution directory, probably |
116 By default, the Isabelle binaries (\texttt{isabelle}, \texttt{isatool} etc.) |
|
117 are just run from their location within the distribution directory, probably |
120 indirectly by the shell through its \texttt{PATH}. Other schemes of |
118 indirectly by the shell through its \texttt{PATH}. Other schemes of |
121 installation are supported by the \tooldx{install} utility: |
119 installation are supported by the \tooldx{install} utility: |
122 \begin{ttbox} |
120 \begin{ttbox} |
123 Usage: install [OPTIONS] |
121 Usage: install [OPTIONS] |
124 |
122 |