Commit a94f931e authored by MARCHE Claude's avatar MARCHE Claude
Browse files

doc: gettings started, continued

parent e83e0109
......@@ -4,16 +4,26 @@
== Documentation ==
1 Introduction (TODO: a finir)
2 Syntax, tutorial: JCF + Andrei3
3 IDE (Claude)
4 Standard lib of theories: TODO
* semantics:
* tutorial for API:
2 getting started (TODO: finir why3 batch)
3 Syntax, tutorial (TODO: JCF + Andrei)
4 tutorial for API:
** build a task (done)
** call a prover (done)
** apply a transformation (TODO)
** develop a new transformation (TODO)
* API: Andrei + Francois
** apply a transformation (TODO ?)
** develop a new transformation (TODO ?)
5 syntax reference (TODO)
6 Standard lib of theories: TODO
7 Manpages
7.1 done
7.2 done
7.3 todo ?
7.4 todo
7.5 todo ?
7.6 IDE (TODO, Claude)
7.7 why.conf (TODO ?)
7.8 drivers (TODO ?)
7.9 transformations (TODO)
8 API: Andrei + Francois
== IDE ==
......@@ -28,8 +38,8 @@
implemented accordingly
* add transf "inline goal" (TODO)
** not urgent
* add button "remove" (TODO)
* add button "replay" (TODO)
* add button "remove" (TODO: implement)
* add button "replay" (TODO: implement)
** semantics: replay obsolete proofs
== Misc ==

80.4 KB | W: | H:


33.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
......@@ -22,7 +22,7 @@ We don't give more details here about the syntax and refer to
Chapter~\ref{chap:syntax} for detailed explanations. In the following,
we show how this file is handled in the Why3 GUI
(Section~\ref{sec:gui}) then in batch mode using the \texttt{why3}
executable (Section~\ref{sec:batch}) .
executable (Section~\ref{sec:batch}).
\section{Getting Started with the GUI}
......@@ -72,6 +72,8 @@ button in the ``provers'' section of the left toolbar. In that case,
detected provers are Alt-Ergo~\cite{ergo}, Coq~\cite{CoqArt} and
\subsection{Calling provers on goals}
You are now ready to call these provers on the goals. Whenever you
click on a prover button, this prover is called on the goal selected
in the tree view. You can even select several goals at a time, either
......@@ -87,6 +89,80 @@ get the display of Figure~\ref{fig:gui3}.
The row corresponding to goal $G_1$ is now closed, and marked with
green ``checked'' icon in the status column. This means that the goal
is proved by the Simplify prover. On the contrary, the two other goals
are not proved, they are mark with an orange question mark.
You can immediately attempt to prove the remaining goals using another
prover, {\eg} Alt-Ergo, by clicking on the corresponding button. The
goal $G_3$ should be proved now, but not $G_2$.
\subsection{Applying transformations}
Instead of calling a prover on a goal, you can apply a transformation
to it. Since $G_2$ is a conjunction, a possibility is to split it
into subgoals. You can do that by clicking on the \textsf{Split}
button of section ``Transformations'' of the left toolbar. Now you
have two subgoals, and you can try again a prover in them, for example
Simplify. Assuming we expand everything again, you should see now what
is displayed on Figure~\ref{fig:gui4}.
\caption{The GUI after splitting goal $G_2$}
The first part of goal $G_2$ is still unproved. As a last resort, we
can try to call the Coq proof assistant. The first step is to click on
the \textsf{Coq} button. A new sub-row appear for coq, and
unsurprisingly the goal is not proved by Coq either. What can be done
now is editing the proof: select that row and then click on the
\textsf{Edit} button in section ``Tools'' of the toolbar. This should
launch the Coq proof editor, which is \texttt{coqide} by default (see
Section~\ref{sec:ideref} for details on how to configure this). You get
now a regular Coq file fo fill in, as shown on Figure~\ref{fig:coqide}.
Please take care of the comments of this file. Only the part between
the two last comments can be modified. Moreover, these comments
themselves should not be modified at all, they are use to mark the
part you modify, in order to regenerate the file if the goal is
\caption{CoqIDE on subgoal 1 of $G_2$}
Of course, in that particular case, the goal cannot be proved since it
is not valid. The only thing to do is to fix the input file, as
explained below.
\subsection{Modifying the input}
Currently, the GUI does not allow to modify the input file. You must
exit the GUI and modify the file by some editor of your choice. Let's assume we change the goal $G_2$ into
goal G2 : (false -> false) and (true or false)
Starting the IDE on the modified file and expanding everything with
\textsf{Ctrl-E}, we get the tree view shown on Figure~\ref{fig:gui5}.
\caption{The GUI restarted after modifying goal $G_2$}
The important feature to notice first is that all the previous proof
attempts and transformations where saved in some database. Then, for
all the goals that remain unchanged, the previous proofs are shown
again. For the parts that changed, the previous proofs attempts are
shown but marked with "(obsolete)" so that you know the results are
not accurate. You can now retry to prove all what remains unproved
using any of the provers.
\section{Getting Started with the Why3 Command}
......@@ -96,6 +172,7 @@ provers, in batch mode. This section presents the basic use of this
tool. Refer to Section~\ref{sec:why3ref} for a more complete
Supports Markdown
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