Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

doc: updated chapter 4 (installation)

section 4.2.2 (session update after prover upgrade) will need to
be updated
parent b5aaf9d1
......@@ -3,20 +3,31 @@
In short, installation proceeds as follows.
\section{Installing Why3}
\subsection{Installation via \opam}
The simplest way to install Why3 is via \opam, the OCaml
package manager. It is as simple as
> opam install why3
Then jump to Sec.~\ref{provers} to install external provers.
\subsection{Installation Instructions from Source Distribution}
In short, installation from sources proceeds as follows.
make install \mbox{\rmfamily (as super-user)}
> ./configure\\
> make\\
> make install \mbox{\rmfamily (as super-user)}
\section{Installation Instructions from Source Distribution}
After unpacking the distribution, go to the newly created directory
\texttt{why3-\whyversion}. Compilation must start with a
configuration phase which is run as
> ./configure
This analyzes your current configuration and checks if requirements hold.
Compilation requires:
......@@ -74,26 +85,21 @@ make install
Installation can be tested as follows:
\item install some external provers (see~Section~\ref{provers} below)
\item install some external provers (see~Sec.~\ref{provers} below)
\item run \verb|why3 config --detect|
\item run some examples from the distribution, \eg you should
obtain the following:
obtain the following (provided the required provers are installed on
your machine):
$ cd examples
$ why3 replay logic/scottish-private-club
Opening session... done
Progress: 4/4
Everything OK.
$ why3 replay programs/same_fringe
Opening session... done
Progress: 12/12
Everything OK.
1/1 (replay OK)
$ why3 replay same_fringe
18/18 (replay OK)
\section{Local Use, Without Installation}
\subsubsection{Local Use, Without Installation}
It is not mandatory to install \why into system directories.
\why can be configured and compiled for local use as follows:
......@@ -104,7 +110,7 @@ make
The \why executables are then available in the subdirectory
\texttt{bin/}. This directory can be added in your \texttt{PATH}.
\section{Installation of the \why API}
\subsubsection{Installation of the \why API}
By default, the \why API is not installed. It can be installed using
......@@ -113,21 +119,27 @@ make byte opt \\
make install-lib \mbox{\rmfamily (as super-user)}
\section{Installation of External Provers}
\section{Installing External Provers}
\why can use a wide range of external theorem provers. These need to
be installed separately, and then \why needs to be configured to use
them. There is no need to install automatic provers, \eg SMT solvers,
before compiling and installing \why.
For installation of external provers, please refer to the specific
section about provers on the Web page \url{}.
section about provers from \url{}.
(If you have installed \why via \opam, note that you can install the
SMT solver Alt-Ergo via \opam as well.)
For configuring \why to use the provers, follow instructions given in
Once you have installed a prover, or a new version of a prover, you
have to run the following command:
> why3 config --detect
It scans your \texttt{PATH} for provers and updates your configuration
file (see Sec.~\ref{sec:why3config}) accordingly.
\section{Multiple Versions of the Same Prover}
\subsection{Multiple Versions of the Same Prover}
\why is able to use several versions of the same
prover, \eg it can use both CVC3 2.2 and CVC3 2.4.1 at the same time.
......@@ -135,27 +147,26 @@ The automatic detection of provers looks for typical names for their
executable command, \eg \texttt{cvc3} for CVC3. However, if you
install several version of the same prover it is likely that you would
use specialized executable names, such as \texttt{cvc3-2.2} or
\texttt{cvc3-2.4.1}. To allow the \why detection process to recognize
these, you can use the option \verb|--add-prover| with the
\texttt{config} command, \eg
\texttt{cvc3-2.4.1}. If needed, option \verb|--add-prover| can be
added to the \texttt{config} command to specify names of prover executables, \eg
why3 config --detect --add-prover cvc3-2.4 /usr/local/bin/cvc3-2.4.1
why3 config --add-prover cvc4 /usr/local/bin/cvc4-dev
the first argument (here \verb|cvc3-2.4|) must be one of the class of
the first argument (here \verb|cvc4|) must be one of the class of
provers known in the file \verb|provers-detection-data.conf| typically
located in \verb|/usr/local/share/why3| after installation. See
Appendix~\ref{sec:proverdetecttiondata} for details.
\section{Session Update after Prover Upgrade}
\subsection{Session Update after Prover Upgrade}
If you happen to upgrade a prover, \eg installing CVC3 2.4.1 in place
of CVC3 2.2, then the proof sessions formerly recorded will still
If you happen to upgrade a prover, \eg installing CVC4 1.5 in place
of CVC4 1.4, then the proof sessions formerly recorded will still
refer to the old version of the prover. If you open one such a session
with the GUI, and replay the proofs, you will be asked to choose
between 3 options:
between three options:
\item Keep the former proofs as they are. They will be marked as
......@@ -5,6 +5,7 @@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment