3108
|
1 |
|
39838
|
2 |
\chapter{Basic Use of Isabelle}
|
104
|
3 |
|
|
4 |
\section{Ending a session}
|
|
5 |
\begin{ttbox}
|
3108
|
6 |
quit : unit -> unit
|
|
7 |
exit : int -> unit
|
6067
|
8 |
commit : unit -> bool
|
104
|
9 |
\end{ttbox}
|
322
|
10 |
\begin{ttdescription}
|
3108
|
11 |
\item[\ttindexbold{quit}();] ends the Isabelle session, without saving
|
|
12 |
the state.
|
4317
|
13 |
|
|
14 |
\item[\ttindexbold{exit} \(i\);] similar to {\tt quit}, passing return
|
|
15 |
code \(i\) to the operating system.
|
104
|
16 |
|
3108
|
17 |
\item[\ttindexbold{commit}();] saves the current state without ending
|
6067
|
18 |
the session, provided that the logic image is opened read-write;
|
|
19 |
return value {\tt false} indicates an error.
|
322
|
20 |
\end{ttdescription}
|
104
|
21 |
|
3108
|
22 |
Typing control-D also finishes the session in essentially the same way
|
|
23 |
as the sequence {\tt commit(); quit();} would.
|
104
|
24 |
|
5371
|
25 |
%%% Local Variables:
|
|
26 |
%%% mode: latex
|
|
27 |
%%% TeX-master: "ref"
|
|
28 |
%%% End:
|