author | wenzelm |
Sat, 28 Nov 2020 16:25:29 +0100 | |
changeset 72759 | bd5ee3148132 |
parent 72592 | b6b6248d4719 |
child 73436 | e92f2e44e4d8 |
permissions | -rw-r--r-- |
36926 | 1 |
\documentclass[a4paper,12pt]{article} |
2 |
\usepackage[T1]{fontenc} |
|
3 |
\usepackage{amsmath} |
|
4 |
\usepackage{amssymb} |
|
53091 | 5 |
\usepackage[english]{babel} |
36926 | 6 |
\usepackage{color} |
7 |
\usepackage{footmisc} |
|
8 |
\usepackage{graphicx} |
|
9 |
%\usepackage{mathpazo} |
|
10 |
\usepackage{multicol} |
|
11 |
\usepackage{stmaryrd} |
|
12 |
%\usepackage[scaled=.85]{beramono} |
|
48962
a1acc1cb0271
more standard document preparation within session context;
wenzelm
parents:
48803
diff
changeset
|
13 |
\usepackage{isabelle,iman,pdfsetup} |
36926 | 14 |
|
68649 | 15 |
\newcommand\download{\url{https://isabelle.in.tum.de/components/}} |
46242 | 16 |
|
57040 | 17 |
\let\oldS=\S |
18 |
\def\S{\oldS\,} |
|
19 |
||
43216 | 20 |
\def\qty#1{\ensuremath{\left<\mathit{#1\/}\right>}} |
21 |
\def\qtybf#1{$\mathbf{\left<\textbf{\textit{#1\/}}\right>}$} |
|
22 |
||
45516 | 23 |
\newcommand\const[1]{\textsf{#1}} |
24 |
||
36926 | 25 |
%\oddsidemargin=4.6mm |
26 |
%\evensidemargin=4.6mm |
|
27 |
%\textwidth=150mm |
|
28 |
%\topmargin=4.6mm |
|
29 |
%\headheight=0mm |
|
30 |
%\headsep=0mm |
|
31 |
%\textheight=234mm |
|
32 |
||
33 |
\def\Colon{\mathord{:\mkern-1.5mu:}} |
|
34 |
%\def\lbrakk{\mathopen{\lbrack\mkern-3.25mu\lbrack}} |
|
35 |
%\def\rbrakk{\mathclose{\rbrack\mkern-3.255mu\rbrack}} |
|
36 |
\def\lparr{\mathopen{(\mkern-4mu\mid}} |
|
37 |
\def\rparr{\mathclose{\mid\mkern-4mu)}} |
|
38 |
||
39 |
\def\unk{{?}} |
|
40 |
\def\undef{(\lambda x.\; \unk)} |
|
41 |
%\def\unr{\textit{others}} |
|
42 |
\def\unr{\ldots} |
|
43 |
\def\Abs#1{\hbox{\rm{\flqq}}{\,#1\,}\hbox{\rm{\frqq}}} |
|
44 |
\def\Q{{\smash{\lower.2ex\hbox{$\scriptstyle?$}}}} |
|
45 |
||
46 |
\urlstyle{tt} |
|
47 |
||
55290 | 48 |
\renewcommand\_{\hbox{\textunderscore\kern-.05ex}} |
49 |
||
72589 | 50 |
\hyphenation{Isa-belle super-posi-tion zipper-posi-tion} |
51 |
||
36926 | 52 |
\begin{document} |
53 |
||
45516 | 54 |
%%% TYPESETTING |
55 |
%\renewcommand\labelitemi{$\bullet$} |
|
56 |
\renewcommand\labelitemi{\raise.065ex\hbox{\small\textbullet}} |
|
57 |
||
36926 | 58 |
\title{\includegraphics[scale=0.5]{isabelle_sledgehammer} \\[4ex] |
59 |
Hammering Away \\[\smallskipamount] |
|
60 |
\Large A User's Guide to Sledgehammer for Isabelle/HOL} |
|
61 |
\author{\hbox{} \\ |
|
70818
13d6b561b0ea
added para constrasting 'primrec' and 'fun' -- and removed my middle name
blanchet
parents:
68649
diff
changeset
|
62 |
Jasmin Blanchette \\ |
43002
e88fde86e4c2
mention contributions from LCP and explain metis and metisFT encodings
blanchet
parents:
42996
diff
changeset
|
63 |
{\normalsize Institut f\"ur Informatik, Technische Universit\"at M\"unchen} \\[4\smallskipamount] |
e88fde86e4c2
mention contributions from LCP and explain metis and metisFT encodings
blanchet
parents:
42996
diff
changeset
|
64 |
{\normalsize with contributions from} \\[4\smallskipamount] |
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
65 |
Martin Desharnais \\ |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
66 |
{\normalsize Forschungsinstitut CODE, Universit\"at der Bundeswehr M\"unchen} \\[4\smallskipamount] |
43002
e88fde86e4c2
mention contributions from LCP and explain metis and metisFT encodings
blanchet
parents:
42996
diff
changeset
|
67 |
Lawrence C. Paulson \\ |
e88fde86e4c2
mention contributions from LCP and explain metis and metisFT encodings
blanchet
parents:
42996
diff
changeset
|
68 |
{\normalsize Computer Laboratory, University of Cambridge} \\ |
36926 | 69 |
\hbox{}} |
70 |
||
71 |
\maketitle |
|
72 |
||
73 |
\tableofcontents |
|
74 |
||
75 |
\setlength{\parskip}{.7em plus .2em minus .1em} |
|
76 |
\setlength{\parindent}{0pt} |
|
77 |
\setlength{\abovedisplayskip}{\parskip} |
|
78 |
\setlength{\abovedisplayshortskip}{.9\parskip} |
|
79 |
\setlength{\belowdisplayskip}{\parskip} |
|
80 |
\setlength{\belowdisplayshortskip}{.9\parskip} |
|
81 |
||
52078 | 82 |
% general-purpose enum environment with correct spacing |
36926 | 83 |
\newenvironment{enum}% |
84 |
{\begin{list}{}{% |
|
85 |
\setlength{\topsep}{.1\parskip}% |
|
86 |
\setlength{\partopsep}{.1\parskip}% |
|
87 |
\setlength{\itemsep}{\parskip}% |
|
88 |
\advance\itemsep by-\parsep}} |
|
89 |
{\end{list}} |
|
90 |
||
91 |
\def\pre{\begingroup\vskip0pt plus1ex\advance\leftskip by\leftmargin |
|
92 |
\advance\rightskip by\leftmargin} |
|
93 |
\def\post{\vskip0pt plus1ex\endgroup} |
|
94 |
||
95 |
\def\prew{\pre\advance\rightskip by-\leftmargin} |
|
96 |
\def\postw{\post} |
|
97 |
||
68565 | 98 |
|
36926 | 99 |
\section{Introduction} |
100 |
\label{introduction} |
|
101 |
||
42964
bf45fd2488a2
document primitive support for LEO-II and Satallax
blanchet
parents:
42945
diff
changeset
|
102 |
Sledgehammer is a tool that applies automatic theorem provers (ATPs) |
47561
92d88c89efff
update documentation (mostly based on feedback by Makarius)
blanchet
parents:
47530
diff
changeset
|
103 |
and satisfiability-modulo-theories (SMT) solvers on the current goal.% |
92d88c89efff
update documentation (mostly based on feedback by Makarius)
blanchet
parents:
47530
diff
changeset
|
104 |
\footnote{The distinction between ATPs and SMT solvers is convenient but mostly |
68565 | 105 |
historical.} |
47561
92d88c89efff
update documentation (mostly based on feedback by Makarius)
blanchet
parents:
47530
diff
changeset
|
106 |
% |
72403
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
107 |
The supported ATPs include agsyHOL \cite{agsyHOL}, Alt-Ergo \cite{alt-ergo}, E |
72592 | 108 |
\cite{schulz-2019}, iProver \cite{korovin-2009}, LEO-II \cite{leo2}, Leo-III |
72403
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
109 |
\cite{leo3}, Satallax \cite{satallax}, SPASS \cite{weidenbach-et-al-2009}, |
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
110 |
Vampire \cite{riazanov-voronkov-2002}, Waldmeister \cite{waldmeister}, and |
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
111 |
Zipperposition \cite{cruanes-2014}. The ATPs are run either locally or remotely |
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
112 |
via the System\-On\-TPTP web service \cite{sutcliffe-2000}. The supported SMT |
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
113 |
solvers are CVC3 \cite{cvc3}, CVC4 \cite{cvc4}, veriT \cite{bouton-et-al-2009}, |
72592 | 114 |
and Z3 \cite{de-moura-2008}. These are always run locally. |
36926 | 115 |
|
57241 | 116 |
The problem passed to the external provers (or solvers) consists of your current |
117 |
goal together with a heuristic selection of hundreds of facts (theorems) from the |
|
52078 | 118 |
current theory context, filtered by relevance. |
37517
19ba7ec5f1e3
steal some of http://isabelle.in.tum.de/sledgehammer.html and add it to the docs
blanchet
parents:
37498
diff
changeset
|
119 |
|
72403
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
120 |
The result of a successful proof search is some source text that typically |
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
121 |
reconstructs the proof within Isabelle. For ATPs, the reconstructed proof |
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
122 |
typically relies on the general-purpose \textit{metis} proof method, which |
45380 | 123 |
integrates the Metis ATP in Isabelle/HOL with explicit inferences going through |
124 |
the kernel. Thus its results are correct by construction. |
|
36926 | 125 |
|
53760
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
126 |
For Isabelle/jEdit users, Sledgehammer provides an automatic mode that can be |
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
127 |
enabled via the ``Auto Sledgehammer'' option under ``Plugins > Plugin Options > |
54114 | 128 |
Isabelle > General.'' In this mode, a reduced version of Sledgehammer is run on |
129 |
every newly entered theorem for a few seconds. |
|
39320 | 130 |
|
36926 | 131 |
\newbox\boxA |
46298 | 132 |
\setbox\boxA=\hbox{\texttt{NOSPAM}} |
36926 | 133 |
|
72589 | 134 |
\newcommand\authoremail{\texttt{jasmin.blan{\color{white}NOSPAM}\kern-\wd\boxA{}chette@\allowbreak |
135 |
google.\allowbreak com}} |
|
42763 | 136 |
|
40689 | 137 |
To run Sledgehammer, you must make sure that the theory \textit{Sledgehammer} is |
138 |
imported---this is rarely a problem in practice since it is part of |
|
72589 | 139 |
\textit{Main}. Examples of Sledgehammer use can be found in the |
140 |
\texttt{src/HOL/Metis\_Examples} directory. Comments and bug reports |
|
141 |
concerning Sledgehammer or this manual should be directed to the author at |
|
142 |
\authoremail. |
|
36926 | 143 |
|
144 |
||
145 |
\section{Installation} |
|
146 |
\label{installation} |
|
147 |
||
48387 | 148 |
Sledgehammer is part of Isabelle, so you do not need to install it. However, it |
46242 | 149 |
relies on third-party automatic provers (ATPs and SMT solvers). |
42763 | 150 |
|
70937 | 151 |
Among the ATPs, agsyHOL, Alt-Ergo, E, LEO-II, Leo-III, Satallax, SPASS, |
152 |
Vampire, and Zipperposition can be run locally; in addition, agsyHOL, |
|
72403
4a3169d8885c
removed support for obsolete prover SNARK and underperforming prover E-Par
blanchet
parents:
72402
diff
changeset
|
153 |
Alt-Ergo, E, iProver, LEO-II, Leo-III, Satallax, Vampire, Waldmeister, |
70940
ce3a05ad07b7
added support for Zipperposition on SystemOnTPTP
blanchet
parents:
70938
diff
changeset
|
154 |
and Zipperposition are available remotely via System\-On\-TPTP |
ce3a05ad07b7
added support for Zipperposition on SystemOnTPTP
blanchet
parents:
70938
diff
changeset
|
155 |
\cite{sutcliffe-2000}. The SMT solvers CVC3, CVC4, veriT, and Z3 can be run |
ce3a05ad07b7
added support for Zipperposition on SystemOnTPTP
blanchet
parents:
70938
diff
changeset
|
156 |
locally. |
36926 | 157 |
|
46242 | 158 |
There are three main ways to install automatic provers on your machine: |
36926 | 159 |
|
46242 | 160 |
\begin{sloppy} |
161 |
\begin{enum} |
|
162 |
\item[\labelitemi] If you installed an official Isabelle package, it should |
|
72592 | 163 |
already include properly set up executables for CVC4, E, SPASS, Vampire, veriT, |
164 |
and Z3, ready to use. To use Vampire, you must confirm that you are a |
|
165 |
noncommercial user, as indicated by the message that is displayed when |
|
166 |
Sledgehammer is invoked the first time. |
|
46242 | 167 |
|
59510 | 168 |
\item[\labelitemi] Alternatively, you can download the Isabelle-aware CVC3, |
72592 | 169 |
CVC4, E, SPASS, Vampire, veriT, and Z3 binary packages from \download. Extract |
170 |
the archives, then add a line to your \texttt{\$ISABELLE\_HOME\_USER\slash |
|
171 |
etc\slash components}% |
|
41747
f58d4d202924
fix path to etc/settings and etc/components in doc
blanchet
parents:
41740
diff
changeset
|
172 |
\footnote{The variable \texttt{\$ISABELLE\_HOME\_USER} is set by Isabelle at |
46242 | 173 |
startup. Its value can be retrieved by executing \texttt{isabelle} |
41747
f58d4d202924
fix path to etc/settings and etc/components in doc
blanchet
parents:
41740
diff
changeset
|
174 |
\texttt{getenv} \texttt{ISABELLE\_HOME\_USER} on the command line.} |
72592 | 175 |
file with the absolute path to the prover. For example, if the |
176 |
\texttt{components} file does not exist yet and you extracted SPASS to |
|
177 |
\texttt{/usr/local/spass-3.8ds}, create it with the single line |
|
36926 | 178 |
|
179 |
\prew |
|
47577 | 180 |
\texttt{/usr/local/spass-3.8ds} |
36926 | 181 |
\postw |
182 |
||
47561
92d88c89efff
update documentation (mostly based on feedback by Makarius)
blanchet
parents:
47530
diff
changeset
|
183 |
in it. |
38043 | 184 |
|
70937 | 185 |
\item[\labelitemi] If you prefer to build agsyHOL, Alt-Ergo, E, LEO-II, |
68565 | 186 |
Leo-III, or Satallax manually, set the environment variable |
52078 | 187 |
\texttt{AGSYHOL\_HOME}, \texttt{E\_HOME}, \texttt{LEO2\_HOME}, |
68565 | 188 |
\texttt{LEO3\_HOME}, or \texttt{SATALLAX\_HOME} |
189 |
to the directory that contains the \texttt{agsyHOL}, |
|
52757 | 190 |
\texttt{eprover} (and/or \texttt{eproof} or \texttt{eproof\_ram}), |
68565 | 191 |
\texttt{leo}, \texttt{leo3}, or \texttt{satallax} executable; |
192 |
for Alt-Ergo, set the environment variable \texttt{WHY3\_HOME} to the |
|
193 |
directory that contains the \texttt{why3} executable. Sledgehammer has been |
|
70937 | 194 |
tested with agsyHOL 1.0, Alt-Ergo 0.95.2, E 1.6 to 2.0, LEO-II 1.3.4, Leo-III |
70929 | 195 |
1.1, and Satallax 2.7. Since the ATPs' output formats are neither documented |
196 |
nor stable, other versions might not work well with Sledgehammer. Ideally, you |
|
197 |
should also set \texttt{E\_VERSION}, \texttt{LEO2\_VERSION}, |
|
68565 | 198 |
\texttt{LEO3\_VERSION}, or \texttt{SATALLAX\_VERSION} to the prover's version |
70929 | 199 |
number (e.g., ``2.7''); this might help Sledgehammer invoke the prover |
200 |
optimally. |
|
36926 | 201 |
|
58497
20aaa307c0ff
updated docs with two provers: veriT and Zipperposition
blanchet
parents:
58090
diff
changeset
|
202 |
Similarly, if you want to install CVC3, CVC4, veriT, or Z3, set the environment |
20aaa307c0ff
updated docs with two provers: veriT and Zipperposition
blanchet
parents:
58090
diff
changeset
|
203 |
variable \texttt{CVC3\_\allowbreak SOLVER}, \texttt{CVC4\_\allowbreak SOLVER}, |
20aaa307c0ff
updated docs with two provers: veriT and Zipperposition
blanchet
parents:
58090
diff
changeset
|
204 |
\texttt{VERIT\_\allowbreak SOLVER}, or \texttt{Z3\_SOLVER} to the complete path |
57241 | 205 |
of the executable, \emph{including the file name}. Sledgehammer has been tested |
72592 | 206 |
with CVC3 2.2 and 2.4.1, CVC4 1.5-prerelease, veriT 2020.10-rmx, and Z3 4.3.2. |
59034 | 207 |
Since Z3's output format is somewhat unstable, other versions of the solver |
208 |
might not work well with Sledgehammer. Ideally, also set |
|
58497
20aaa307c0ff
updated docs with two provers: veriT and Zipperposition
blanchet
parents:
58090
diff
changeset
|
209 |
\texttt{CVC3\_VERSION}, \texttt{CVC4\_VERSION}, \texttt{VERIT\_VERSION}, or |
59961 | 210 |
\texttt{Z3\_VERSION} to the solver's version number (e.g., ``4.4.0''). |
46242 | 211 |
\end{enum} |
212 |
\end{sloppy} |
|
36926 | 213 |
|
66735 | 214 |
To check whether the provers are successfully installed, try out the example |
215 |
in \S\ref{first-steps}. If the remote versions of any of these provers is used |
|
216 |
(identified by the prefix ``\textit{remote\_\/}''), or if the local versions |
|
217 |
fail to solve the easy goal presented there, something must be wrong with the |
|
218 |
installation. |
|
46242 | 219 |
|
220 |
Remote prover invocation requires Perl with the World Wide Web Library |
|
221 |
(\texttt{libwww-perl}) installed. If you must use a proxy server to access the |
|
222 |
Internet, set the \texttt{http\_proxy} environment variable to the proxy, either |
|
223 |
in the environment in which Isabelle is launched or in your |
|
72589 | 224 |
\texttt{\$ISABELLE\_HOME\_USER/etc/\allowbreak settings} file. Here are a few |
46242 | 225 |
examples: |
39152
f09b378cb252
make remote ATP invocation work for those people who need to go through a proxy;
blanchet
parents:
38997
diff
changeset
|
226 |
|
f09b378cb252
make remote ATP invocation work for those people who need to go through a proxy;
blanchet
parents:
38997
diff
changeset
|
227 |
\prew |
39153 | 228 |
\texttt{http\_proxy=http://proxy.example.org} \\ |
229 |
\texttt{http\_proxy=http://proxy.example.org:8080} \\ |
|
230 |
\texttt{http\_proxy=http://joeblow:pAsSwRd@proxy.example.org} |
|
39152
f09b378cb252
make remote ATP invocation work for those people who need to go through a proxy;
blanchet
parents:
38997
diff
changeset
|
231 |
\postw |
37517
19ba7ec5f1e3
steal some of http://isabelle.in.tum.de/sledgehammer.html and add it to the docs
blanchet
parents:
37498
diff
changeset
|
232 |
|
68565 | 233 |
|
36926 | 234 |
\section{First Steps} |
235 |
\label{first-steps} |
|
236 |
||
237 |
To illustrate Sledgehammer in context, let us start a theory file and |
|
238 |
attempt to prove a simple lemma: |
|
239 |
||
240 |
\prew |
|
241 |
\textbf{theory}~\textit{Scratch} \\ |
|
242 |
\textbf{imports}~\textit{Main} \\ |
|
243 |
\textbf{begin} \\[2\smallskipamount] |
|
244 |
% |
|
42945 | 245 |
\textbf{lemma} ``$[a] = [b] \,\Longrightarrow\, a = b$'' \\ |
36926 | 246 |
\textbf{sledgehammer} |
247 |
\postw |
|
248 |
||
53760
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
249 |
Instead of issuing the \textbf{sledgehammer} command, you can also use the |
72592 | 250 |
Sledgehammer panel in Isabelle/jEdit. Sledgehammer might produce something like |
251 |
the following output after a few seconds: |
|
36926 | 252 |
|
253 |
\prew |
|
254 |
\slshape |
|
62737 | 255 |
Proof found\ldots \\ |
63729 | 256 |
``\textit{e\/}'': Try this: \textbf{by} \textit{simp} (0.3 ms) \\ |
42945 | 257 |
% |
63729 | 258 |
``\textit{cvc4\/}'': Try this: \textbf{by} \textit{simp} (0.4 ms) \\ |
46242 | 259 |
% |
63729 | 260 |
``\textit{z3\/}'': Try this: \textbf{by} \textit{simp} (0.5 ms) \\ |
60568
a9b71c82647b
put E before (typically remote, hence less reliable) Vampire
blanchet
parents:
60306
diff
changeset
|
261 |
% |
63729 | 262 |
``\textit{spass\/}'': Try this: \textbf{by} \textit{simp} (0.3 ms) |
62737 | 263 |
% |
36926 | 264 |
\postw |
265 |
||
60568
a9b71c82647b
put E before (typically remote, hence less reliable) Vampire
blanchet
parents:
60306
diff
changeset
|
266 |
Sledgehammer ran CVC4, E, SPASS, and Z3 in parallel. Depending on which |
59963 | 267 |
provers are installed and how many processor cores are available, some of the |
268 |
provers might be missing or present with a \textit{remote\_} prefix. |
|
36926 | 269 |
|
72592 | 270 |
For each successful prover, Sledgehammer gives a one-line Isabelle proof. Rough |
271 |
timings are shown in parentheses, indicating how fast the call is. You can |
|
272 |
click the proof to insert it into the theory text. |
|
36926 | 273 |
|
51190
2654b3965c8d
made "isar_proofs" a 3-way option, to provide a way to totally disable isar_proofs if desired
blanchet
parents:
51189
diff
changeset
|
274 |
In addition, you can ask Sledgehammer for an Isar text proof by enabling the |
49919 | 275 |
\textit{isar\_proofs} option (\S\ref{output-format}): |
36926 | 276 |
|
277 |
\prew |
|
49919 | 278 |
\textbf{sledgehammer} [\textit{isar\_proofs}] |
36926 | 279 |
\postw |
280 |
||
281 |
When Isar proof construction is successful, it can yield proofs that are more |
|
72592 | 282 |
readable and also faster than \textit{metis} or \textit{smt} one-line |
283 |
proofs. This feature is experimental. |
|
36926 | 284 |
|
68565 | 285 |
|
37517
19ba7ec5f1e3
steal some of http://isabelle.in.tum.de/sledgehammer.html and add it to the docs
blanchet
parents:
37498
diff
changeset
|
286 |
\section{Hints} |
19ba7ec5f1e3
steal some of http://isabelle.in.tum.de/sledgehammer.html and add it to the docs
blanchet
parents:
37498
diff
changeset
|
287 |
\label{hints} |
19ba7ec5f1e3
steal some of http://isabelle.in.tum.de/sledgehammer.html and add it to the docs
blanchet
parents:
37498
diff
changeset
|
288 |
|
42884 | 289 |
This section presents a few hints that should help you get the most out of |
46643
a88bccd2b567
added support for Alt-Ergo through Why3 (mostly for experimental purposes, e.g. polymorphism vs. monomorphization)
blanchet
parents:
46640
diff
changeset
|
290 |
Sledgehammer. Frequently asked questions are answered in |
45380 | 291 |
\S\ref{frequently-asked-questions}. |
42884 | 292 |
|
46242 | 293 |
%\newcommand\point[1]{\medskip\par{\sl\bfseries#1}\par\nopagebreak} |
294 |
\newcommand\point[1]{\subsection{\emph{#1}}} |
|
42763 | 295 |
|
68565 | 296 |
|
42763 | 297 |
\point{Presimplify the goal} |
298 |
||
37517
19ba7ec5f1e3
steal some of http://isabelle.in.tum.de/sledgehammer.html and add it to the docs
blanchet
parents:
37498
diff
changeset
|
299 |
For best results, first simplify your problem by calling \textit{auto} or at |
42945 | 300 |
least \textit{safe} followed by \textit{simp\_all}. The SMT solvers provide |
301 |
arithmetic decision procedures, but the ATPs typically do not (or if they do, |
|
302 |
Sledgehammer does not use it yet). Apart from Waldmeister, they are not |
|
53759
a198ce71de11
took out Waldmeister from list of default provers -- it's usually just visual noise, and its integration in Sledgehammer leaves much to be desired
blanchet
parents:
53757
diff
changeset
|
303 |
particularly good at heavy rewriting, but because they regard equations as |
42945 | 304 |
undirected, they often prove theorems that require the reverse orientation of a |
305 |
\textit{simp} rule. Higher-order problems can be tackled, but the success rate |
|
306 |
is better for first-order problems. Hence, you may get better results if you |
|
307 |
first simplify the problem to remove higher-order features. |
|
37517
19ba7ec5f1e3
steal some of http://isabelle.in.tum.de/sledgehammer.html and add it to the docs
blanchet
parents:
37498
diff
changeset
|
308 |
|
68565 | 309 |
|
53760
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
310 |
\point{Familiarize yourself with the main options} |
42763 | 311 |
|
312 |
Sledgehammer's options are fully documented in \S\ref{command-syntax}. Many of |
|
313 |
the options are very specialized, but serious users of the tool should at least |
|
314 |
familiarize themselves with the following options: |
|
315 |
||
316 |
\begin{enum} |
|
45516 | 317 |
\item[\labelitemi] \textbf{\textit{provers}} (\S\ref{mode-of-operation}) specifies |
42884 | 318 |
the automatic provers (ATPs and SMT solvers) that should be run whenever |
68565 | 319 |
Sledgehammer is invoked (e.g., ``\textit{provers}~= \textit{cvc4 e spass |
320 |
vampire\/}''). For convenience, you can omit ``\textit{provers}~='' |
|
321 |
and simply write the prover names as a space-separated list (e.g., ``\textit{cvc4 e |
|
322 |
spass vampire\/}''). |
|
42763 | 323 |
|
48294 | 324 |
\item[\labelitemi] \textbf{\textit{max\_facts}} (\S\ref{relevance-filter}) |
42884 | 325 |
specifies the maximum number of facts that should be passed to the provers. By |
48294 | 326 |
default, the value is prover-dependent but varies between about 50 and 1000. If |
327 |
the provers time out, you can try lowering this value to, say, 25 or 50 and see |
|
42884 | 328 |
if that helps. |
42763 | 329 |
|
49919 | 330 |
\item[\labelitemi] \textbf{\textit{isar\_proofs}} (\S\ref{output-format}) specifies |
55297
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
331 |
that Isar proofs should be generated, in addition to one-line \textit{metis} or |
61283 | 332 |
\textit{smt} proofs. The length of the Isar proofs can be controlled by setting |
57245 | 333 |
\textit{compress} (\S\ref{output-format}). |
43038 | 334 |
|
45516 | 335 |
\item[\labelitemi] \textbf{\textit{timeout}} (\S\ref{timeouts}) controls the |
61317 | 336 |
provers' time limit. It is set to 30 seconds by default. |
42763 | 337 |
\end{enum} |
338 |
||
42884 | 339 |
Options can be set globally using \textbf{sledgehammer\_params} |
43010
a14cf580a5a5
readded Waldmeister as default to the documentation and other minor changes
blanchet
parents:
43008
diff
changeset
|
340 |
(\S\ref{command-syntax}). The command also prints the list of all available |
a14cf580a5a5
readded Waldmeister as default to the documentation and other minor changes
blanchet
parents:
43008
diff
changeset
|
341 |
options with their current value. Fact selection can be influenced by specifying |
a14cf580a5a5
readded Waldmeister as default to the documentation and other minor changes
blanchet
parents:
43008
diff
changeset
|
342 |
``$(\textit{add}{:}~\textit{my\_facts})$'' after the \textbf{sledgehammer} call |
a14cf580a5a5
readded Waldmeister as default to the documentation and other minor changes
blanchet
parents:
43008
diff
changeset
|
343 |
to ensure that certain facts are included, or simply ``$(\textit{my\_facts})$'' |
58090 | 344 |
to force Sledgehammer to run only with $\textit{my\_facts}$ (and any facts |
345 |
chained into the goal). |
|
42763 | 346 |
|
68565 | 347 |
|
42763 | 348 |
\section{Frequently Asked Questions} |
349 |
\label{frequently-asked-questions} |
|
350 |
||
42945 | 351 |
This sections answers frequently (and infrequently) asked questions about |
48387 | 352 |
Sledgehammer. It is a good idea to skim over it now even if you do not have any |
42945 | 353 |
questions at this stage. And if you have any further questions not listed here, |
354 |
send them to the author at \authoremail. |
|
355 |
||
68565 | 356 |
|
43008
bb212c2ad238
renamed "minimize" to "min" to make Sledgehammer output a little bit more concise
blanchet
parents:
43007
diff
changeset
|
357 |
\point{Which facts are passed to the automatic provers?} |
42883 | 358 |
|
48387 | 359 |
Sledgehammer heuristically selects a few hundred relevant lemmas from the |
360 |
currently loaded libraries. The component that performs this selection is |
|
61043 | 361 |
called \emph{relevance filter} (\S\ref{relevance-filter}). |
48387 | 362 |
|
363 |
\begin{enum} |
|
364 |
\item[\labelitemi] |
|
72589 | 365 |
The traditional relevance filter, \emph{MePo} |
366 |
(\underline{Me}ng--\underline{Pau}lson), assigns a score to every available |
|
367 |
fact (lemma, theorem, definition, or axiom) based upon how many constants that |
|
368 |
fact shares with the conjecture. This process iterates to include facts |
|
369 |
relevant to those just accepted. The constants are weighted to give unusual |
|
370 |
ones greater significance. MePo copes best when the conjecture contains some |
|
371 |
unusual constants; if all the constants are common, it is unable to |
|
372 |
discriminate among the hundreds of facts that are picked up. The filter is also |
|
373 |
memoryless: It has no information about how many times a particular fact has |
|
374 |
been used in a proof, and it cannot learn. |
|
48387 | 375 |
|
376 |
\item[\labelitemi] |
|
57272
fd539459a112
enabled MaSh by default -- set 'MaSh' to 'none' in Isabelle Plugin Options to disable
blanchet
parents:
57245
diff
changeset
|
377 |
An alternative to MePo is \emph{MaSh} (\underline{Ma}chine Learner for |
fd539459a112
enabled MaSh by default -- set 'MaSh' to 'none' in Isabelle Plugin Options to disable
blanchet
parents:
57245
diff
changeset
|
378 |
\underline{S}ledge\underline{h}ammer). It applies machine learning to the |
fd539459a112
enabled MaSh by default -- set 'MaSh' to 'none' in Isabelle Plugin Options to disable
blanchet
parents:
57245
diff
changeset
|
379 |
problem of finding relevant facts. |
48387 | 380 |
|
61043 | 381 |
\item[\labelitemi] The \emph{MeSh} filter combines MePo and MaSh. This is |
382 |
the default. |
|
48387 | 383 |
\end{enum} |
384 |
||
42883 | 385 |
The number of facts included in a problem varies from prover to prover, since |
43008
bb212c2ad238
renamed "minimize" to "min" to make Sledgehammer output a little bit more concise
blanchet
parents:
43007
diff
changeset
|
386 |
some provers get overwhelmed more easily than others. You can show the number of |
42883 | 387 |
facts given using the \textit{verbose} option (\S\ref{output-format}) and the |
388 |
actual facts using \textit{debug} (\S\ref{output-format}). |
|
389 |
||
390 |
Sledgehammer is good at finding short proofs combining a handful of existing |
|
391 |
lemmas. If you are looking for longer proofs, you must typically restrict the |
|
48294 | 392 |
number of facts, by setting the \textit{max\_facts} option |
43574 | 393 |
(\S\ref{relevance-filter}) to, say, 25 or 50. |
42883 | 394 |
|
42996 | 395 |
You can also influence which facts are actually selected in a number of ways. If |
396 |
you simply want to ensure that a fact is included, you can specify it using the |
|
397 |
``$(\textit{add}{:}~\textit{my\_facts})$'' syntax. For example: |
|
398 |
% |
|
399 |
\prew |
|
400 |
\textbf{sledgehammer} (\textit{add}: \textit{hd.simps} \textit{tl.simps}) |
|
401 |
\postw |
|
402 |
% |
|
403 |
The specified facts then replace the least relevant facts that would otherwise be |
|
404 |
included; the other selected facts remain the same. |
|
405 |
If you want to direct the selection in a particular direction, you can specify |
|
406 |
the facts via \textbf{using}: |
|
407 |
% |
|
408 |
\prew |
|
409 |
\textbf{using} \textit{hd.simps} \textit{tl.simps} \\ |
|
410 |
\textbf{sledgehammer} |
|
411 |
\postw |
|
412 |
% |
|
413 |
The facts are then more likely to be selected than otherwise, and if they are |
|
414 |
selected at iteration $j$ they also influence which facts are selected at |
|
415 |
iterations $j + 1$, $j + 2$, etc. To give them even more weight, try |
|
416 |
% |
|
417 |
\prew |
|
418 |
\textbf{using} \textit{hd.simps} \textit{tl.simps} \\ |
|
419 |
\textbf{apply}~\textbf{--} \\ |
|
420 |
\textbf{sledgehammer} |
|
421 |
\postw |
|
422 |
||
68565 | 423 |
|
46300 | 424 |
\point{Why does Metis fail to reconstruct the proof?} |
425 |
||
426 |
There are many reasons. If Metis runs seemingly forever, that is a sign that the |
|
57736
5f37ef22f9af
update documentation after removal of 'min' subcommand
blanchet
parents:
57733
diff
changeset
|
427 |
proof is too difficult for it. Metis's search is complete for first-order logic |
68565 | 428 |
with equality, so if the proof was found by a superposition-based ATP such as |
429 |
E, SPASS, or Vampire, Metis should eventually find it, but that is little |
|
430 |
consolation. |
|
46300 | 431 |
|
432 |
In some rare cases, \textit{metis} fails fairly quickly, and you get the error |
|
57736
5f37ef22f9af
update documentation after removal of 'min' subcommand
blanchet
parents:
57733
diff
changeset
|
433 |
message ``One-line proof reconstruction failed.'' This indicates that |
5f37ef22f9af
update documentation after removal of 'min' subcommand
blanchet
parents:
57733
diff
changeset
|
434 |
Sledgehammer determined that the goal is provable, but the proof is, for |
5f37ef22f9af
update documentation after removal of 'min' subcommand
blanchet
parents:
57733
diff
changeset
|
435 |
technical reasons, beyond \textit{metis}'s power. You can then try again with |
5f37ef22f9af
update documentation after removal of 'min' subcommand
blanchet
parents:
57733
diff
changeset
|
436 |
the \textit{strict} option (\S\ref{problem-encoding}). |
46300 | 437 |
|
46640 | 438 |
If the goal is actually unprovable and you did not specify an unsound encoding |
46300 | 439 |
using \textit{type\_enc} (\S\ref{problem-encoding}), this is a bug, and you are |
440 |
strongly encouraged to report this to the author at \authoremail. |
|
441 |
||
68565 | 442 |
|
72589 | 443 |
\point{What are the \textit{full\_types}, \textit{no\_types}, and \\ |
46298 | 444 |
\textit{mono\_tags} arguments to Metis?} |
42883 | 445 |
|
46298 | 446 |
The \textit{metis}~(\textit{full\_types}) proof method |
447 |
and its cousin \textit{metis}~(\textit{mono\_tags}) are fully-typed |
|
53760
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
448 |
versions of Metis. It is somewhat slower than \textit{metis}, but the proof |
43228
2ed2f092e990
obsoleted "metisFT", and added "no_types" version of Metis as fallback to Sledgehammer after noticing how useful it can be
blanchet
parents:
43217
diff
changeset
|
449 |
search is fully typed, and it also includes more powerful rules such as the |
45516 | 450 |
axiom ``$x = \const{True} \mathrel{\lor} x = \const{False}$'' for reasoning in |
72592 | 451 |
higher-order places (e.g., in set comprehensions). The method is tried as a |
452 |
fallback when \textit{metis} fails, and it is sometimes generated by |
|
453 |
Sledgehammer instead of \textit{metis} if the proof obviously requires type |
|
454 |
information or if \textit{metis} failed when Sledgehammer preplayed the proof. |
|
46298 | 455 |
% |
43229 | 456 |
At the other end of the soundness spectrum, \textit{metis} (\textit{no\_types}) |
457 |
uses no type information at all during the proof search, which is more efficient |
|
458 |
but often fails. Calls to \textit{metis} (\textit{no\_types}) are occasionally |
|
459 |
generated by Sledgehammer. |
|
46298 | 460 |
% |
461 |
See the \textit{type\_enc} option (\S\ref{problem-encoding}) for details. |
|
43229 | 462 |
|
46298 | 463 |
Incidentally, if you ever see warnings such as |
42883 | 464 |
|
465 |
\prew |
|
43007 | 466 |
\slshape |
63729 | 467 |
Metis: Falling back on ``\textit{metis} (\textit{full\_types})'' |
42883 | 468 |
\postw |
469 |
||
45380 | 470 |
for a successful \textit{metis} proof, you can advantageously pass the |
43228
2ed2f092e990
obsoleted "metisFT", and added "no_types" version of Metis as fallback to Sledgehammer after noticing how useful it can be
blanchet
parents:
43217
diff
changeset
|
471 |
\textit{full\_types} option to \textit{metis} directly. |
2ed2f092e990
obsoleted "metisFT", and added "no_types" version of Metis as fallback to Sledgehammer after noticing how useful it can be
blanchet
parents:
43217
diff
changeset
|
472 |
|
68565 | 473 |
|
72589 | 474 |
\point{And what are the \textit{lifting} and \textit{hide\_lams} \\ arguments |
46298 | 475 |
to Metis?} |
476 |
||
477 |
Orthogonally to the encoding of types, it is important to choose an appropriate |
|
72592 | 478 |
translation of $\lambda$-abstractions. Metis supports three translation |
479 |
schemes, in decreasing order of power: Curry combinators (the default), |
|
46298 | 480 |
$\lambda$-lifting, and a ``hiding'' scheme that disables all reasoning under |
481 |
$\lambda$-abstractions. The more powerful schemes also give the automatic |
|
72592 | 482 |
provers more rope to hang themselves. See the \textit{lam\_trans} option |
483 |
(\S\ref{problem-encoding}) for details. |
|
46298 | 484 |
|
68565 | 485 |
|
486 |
\point{Are the generated proofs minimal?} |
|
43036 | 487 |
|
43054 | 488 |
Automatic provers frequently use many more facts than are necessary. |
72592 | 489 |
Sledgehammer includes a proof minimization tool that takes a set of facts returned by |
57722 | 490 |
a given prover and repeatedly calls a prover or proof method with subsets of |
491 |
those facts to find a minimal set. Reducing the number of facts typically helps |
|
72589 | 492 |
reconstruction, while decluttering the proof scripts. |
43036 | 493 |
|
68565 | 494 |
|
43008
bb212c2ad238
renamed "minimize" to "min" to make Sledgehammer output a little bit more concise
blanchet
parents:
43007
diff
changeset
|
495 |
\point{A strange error occurred---what should I do?} |
42763 | 496 |
|
497 |
Sledgehammer tries to give informative error messages. Please report any strange |
|
63729 | 498 |
error to the author at \authoremail. |
42763 | 499 |
|
68565 | 500 |
|
42763 | 501 |
\point{Auto can solve it---why not Sledgehammer?} |
502 |
||
503 |
Problems can be easy for \textit{auto} and difficult for automatic provers, but |
|
48387 | 504 |
the reverse is also true, so do not be discouraged if your first attempts fail. |
39320 | 505 |
Because the system refers to all theorems known to Isabelle, it is particularly |
57040 | 506 |
suitable when your goal has a short proof but requires lemmas that you do not |
507 |
know about. |
|
37517
19ba7ec5f1e3
steal some of http://isabelle.in.tum.de/sledgehammer.html and add it to the docs
blanchet
parents:
37498
diff
changeset
|
508 |
|
68565 | 509 |
|
42883 | 510 |
\point{Why are there so many options?} |
511 |
||
72589 | 512 |
Sledgehammer's philosophy is that it should work out of the box, without user |
513 |
guidance. Most of the options are meant to be used by the Sledgehammer |
|
514 |
developers for experiments. |
|
42883 | 515 |
|
68565 | 516 |
|
36926 | 517 |
\section{Command Syntax} |
518 |
\label{command-syntax} |
|
519 |
||
46242 | 520 |
\subsection{Sledgehammer} |
57040 | 521 |
\label{sledgehammer} |
46242 | 522 |
|
36926 | 523 |
Sledgehammer can be invoked at any point when there is an open goal by entering |
524 |
the \textbf{sledgehammer} command in the theory file. Its general syntax is as |
|
525 |
follows: |
|
526 |
||
527 |
\prew |
|
43216 | 528 |
\textbf{sledgehammer} \qty{subcommand}$^?$ \qty{options}$^?$ \qty{facts\_override}$^?$ \qty{num}$^?$ |
36926 | 529 |
\postw |
530 |
||
43216 | 531 |
In the general syntax, the \qty{subcommand} may be any of the following: |
36926 | 532 |
|
533 |
\begin{enum} |
|
45516 | 534 |
\item[\labelitemi] \textbf{\textit{run} (the default):} Runs Sledgehammer on |
43216 | 535 |
subgoal number \qty{num} (1 by default), with the given options and facts. |
36926 | 536 |
|
45516 | 537 |
\item[\labelitemi] \textbf{\textit{supported\_provers}:} Prints the list of |
41724 | 538 |
automatic provers supported by Sledgehammer. See \S\ref{installation} and |
539 |
\S\ref{mode-of-operation} for more information on how to install automatic |
|
540 |
provers. |
|
36926 | 541 |
|
48393 | 542 |
\item[\labelitemi] \textbf{\textit{refresh\_tptp}:} Refreshes the list of remote |
543 |
ATPs available at System\-On\-TPTP \cite{sutcliffe-2000}. |
|
544 |
\end{enum} |
|
545 |
||
49365 | 546 |
In addition, the following subcommands provide finer control over machine |
48393 | 547 |
learning with MaSh: |
548 |
||
549 |
\begin{enum} |
|
550 |
\item[\labelitemi] \textbf{\textit{unlearn}:} Resets MaSh, erasing any |
|
551 |
persistent state. |
|
48387 | 552 |
|
48393 | 553 |
\item[\labelitemi] \textbf{\textit{learn\_isar}:} Invokes MaSh on the current |
554 |
theory to process all the available facts, learning from their Isabelle/Isar |
|
555 |
proofs. This happens automatically at Sledgehammer invocations if the |
|
556 |
\textit{learn} option (\S\ref{relevance-filter}) is enabled. |
|
48387 | 557 |
|
50484
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50459
diff
changeset
|
558 |
\item[\labelitemi] \textbf{\textit{learn\_prover}:} Invokes MaSh on the current |
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50459
diff
changeset
|
559 |
theory to process all the available facts, learning from proofs generated by |
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50459
diff
changeset
|
560 |
automatic provers. The prover to use and its timeout can be set using the |
48393 | 561 |
\textit{prover} (\S\ref{mode-of-operation}) and \textit{timeout} |
66735 | 562 |
(\S\ref{timeouts}) options. It is recommended to perform learning using a |
563 |
first-order ATP (such as E, SPASS, and Vampire) as opposed to a |
|
48393 | 564 |
higher-order ATP or an SMT solver. |
565 |
||
566 |
\item[\labelitemi] \textbf{\textit{relearn\_isar}:} Same as \textit{unlearn} |
|
567 |
followed by \textit{learn\_isar}. |
|
568 |
||
50484
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50459
diff
changeset
|
569 |
\item[\labelitemi] \textbf{\textit{relearn\_prover}:} Same as \textit{unlearn} |
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50459
diff
changeset
|
570 |
followed by \textit{learn\_prover}. |
36926 | 571 |
\end{enum} |
572 |
||
43216 | 573 |
Sledgehammer's behavior can be influenced by various \qty{options}, which can be |
574 |
specified in brackets after the \textbf{sledgehammer} command. The |
|
575 |
\qty{options} are a list of key--value pairs of the form ``[$k_1 = v_1, |
|
50484
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50459
diff
changeset
|
576 |
\ldots, k_n = v_n$]''. For Boolean options, ``= \textit{true\/}'' is optional. |
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50459
diff
changeset
|
577 |
For example: |
36926 | 578 |
|
579 |
\prew |
|
49919 | 580 |
\textbf{sledgehammer} [\textit{isar\_proofs}, \,\textit{timeout} = 120] |
36926 | 581 |
\postw |
582 |
||
583 |
Default values can be set using \textbf{sledgehammer\_\allowbreak params}: |
|
584 |
||
585 |
\prew |
|
43216 | 586 |
\textbf{sledgehammer\_params} \qty{options} |
36926 | 587 |
\postw |
588 |
||
589 |
The supported options are described in \S\ref{option-reference}. |
|
590 |
||
43216 | 591 |
The \qty{facts\_override} argument lets you alter the set of facts that go |
592 |
through the relevance filter. It may be of the form ``(\qty{facts})'', where |
|
593 |
\qty{facts} is a space-separated list of Isabelle facts (theorems, local |
|
36926 | 594 |
assumptions, etc.), in which case the relevance filter is bypassed and the given |
43216 | 595 |
facts are used. It may also be of the form ``(\textit{add}:\ \qty{facts\/_{\mathrm{1}}})'', |
596 |
``(\textit{del}:\ \qty{facts\/_{\mathrm{2}}})'', or ``(\textit{add}:\ \qty{facts\/_{\mathrm{1}}}\ |
|
597 |
\textit{del}:\ \qty{facts\/_{\mathrm{2}}})'', where the relevance filter is instructed to |
|
598 |
proceed as usual except that it should consider \qty{facts\/_{\mathrm{1}}} |
|
599 |
highly-relevant and \qty{facts\/_{\mathrm{2}}} fully irrelevant. |
|
36926 | 600 |
|
53760
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
601 |
If you use Isabelle/jEdit, Sledgehammer also provides an automatic mode that can |
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
602 |
be enabled via the ``Auto Sledgehammer'' option under ``Plugins > Plugin Options |
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
603 |
> Isabelle > General.'' For automatic runs, only the first prover set using |
54114 | 604 |
\textit{provers} (\S\ref{mode-of-operation}) is considered (typically E), |
605 |
\textit{slice} (\S\ref{mode-of-operation}) is disabled, |
|
60306
6b7c64ab8bd2
made Auto Sledgehammer behave more like the real thing
blanchet
parents:
60185
diff
changeset
|
606 |
fewer facts are |
54114 | 607 |
passed to the prover, \textit{fact\_filter} (\S\ref{relevance-filter}) is set to |
608 |
\textit{mepo}, \textit{strict} (\S\ref{problem-encoding}) is enabled, |
|
609 |
\textit{verbose} (\S\ref{output-format}) and \textit{debug} |
|
60306
6b7c64ab8bd2
made Auto Sledgehammer behave more like the real thing
blanchet
parents:
60185
diff
changeset
|
610 |
(\S\ref{output-format}) are disabled, and \textit{timeout} (\S\ref{timeouts}) is |
54114 | 611 |
superseded by the ``Auto Time Limit'' option in jEdit. Sledgehammer's output is |
612 |
also more concise. |
|
39320 | 613 |
|
68565 | 614 |
|
46242 | 615 |
\subsection{Metis} |
57040 | 616 |
\label{metis} |
46242 | 617 |
|
43216 | 618 |
The \textit{metis} proof method has the syntax |
619 |
||
620 |
\prew |
|
45518 | 621 |
\textbf{\textit{metis}}~(\qty{options})${}^?$~\qty{facts}${}^?$ |
43216 | 622 |
\postw |
623 |
||
45518 | 624 |
where \qty{facts} is a list of arbitrary facts and \qty{options} is a |
625 |
comma-separated list consisting of at most one $\lambda$ translation scheme |
|
626 |
specification with the same semantics as Sledgehammer's \textit{lam\_trans} |
|
627 |
option (\S\ref{problem-encoding}) and at most one type encoding specification |
|
628 |
with the same semantics as Sledgehammer's \textit{type\_enc} option |
|
629 |
(\S\ref{problem-encoding}). |
|
630 |
% |
|
631 |
The supported $\lambda$ translation schemes are \textit{hide\_lams}, |
|
46366 | 632 |
\textit{lifting}, and \textit{combs} (the default). |
45518 | 633 |
% |
634 |
All the untyped type encodings listed in \S\ref{problem-encoding} are supported. |
|
635 |
For convenience, the following aliases are provided: |
|
636 |
\begin{enum} |
|
48393 | 637 |
\item[\labelitemi] \textbf{\textit{full\_types}:} Alias for \textit{poly\_guards\_query}. |
638 |
\item[\labelitemi] \textbf{\textit{partial\_types}:} Alias for \textit{poly\_args}. |
|
639 |
\item[\labelitemi] \textbf{\textit{no\_types}:} Alias for \textit{erased}. |
|
45518 | 640 |
\end{enum} |
43216 | 641 |
|
68565 | 642 |
|
36926 | 643 |
\section{Option Reference} |
644 |
\label{option-reference} |
|
645 |
||
43014 | 646 |
\def\defl{\{} |
647 |
\def\defr{\}} |
|
648 |
||
36926 | 649 |
\def\flushitem#1{\item[]\noindent\kern-\leftmargin \textbf{#1}} |
47036 | 650 |
\def\optrueonly#1{\flushitem{\textit{#1} $\bigl[$= \textit{true}$\bigr]$\enskip}\nopagebreak\\[\parskip]} |
43014 | 651 |
\def\optrue#1#2{\flushitem{\textit{#1} $\bigl[$= \qtybf{bool}$\bigr]$\enskip \defl\textit{true}\defr\hfill (neg.: \textit{#2})}\nopagebreak\\[\parskip]} |
652 |
\def\opfalse#1#2{\flushitem{\textit{#1} $\bigl[$= \qtybf{bool}$\bigr]$\enskip \defl\textit{false}\defr\hfill (neg.: \textit{#2})}\nopagebreak\\[\parskip]} |
|
653 |
\def\opsmart#1#2{\flushitem{\textit{#1} $\bigl[$= \qtybf{smart\_bool}$\bigr]$\enskip \defl\textit{smart}\defr\hfill (neg.: \textit{#2})}\nopagebreak\\[\parskip]} |
|
46409
d4754183ccce
made option available to users (mostly for experiments)
blanchet
parents:
46366
diff
changeset
|
654 |
\def\opsmartx#1#2{\flushitem{\textit{#1} $\bigl[$= \qtybf{smart\_bool}$\bigr]$\enskip \defl\textit{smart}\defr\\\hbox{}\hfill (neg.: \textit{#2})}\nopagebreak\\[\parskip]} |
36926 | 655 |
\def\opnodefault#1#2{\flushitem{\textit{#1} = \qtybf{#2}} \nopagebreak\\[\parskip]} |
43014 | 656 |
\def\opnodefaultbrk#1#2{\flushitem{$\bigl[$\textit{#1} =$\bigr]$ \qtybf{#2}} \nopagebreak\\[\parskip]} |
657 |
\def\opdefault#1#2#3{\flushitem{\textit{#1} = \qtybf{#2}\enskip \defl\textit{#3}\defr} \nopagebreak\\[\parskip]} |
|
36926 | 658 |
\def\oparg#1#2#3{\flushitem{\textit{#1} \qtybf{#2} = \qtybf{#3}} \nopagebreak\\[\parskip]} |
659 |
\def\opargbool#1#2#3{\flushitem{\textit{#1} \qtybf{#2} $\bigl[$= \qtybf{bool}$\bigr]$\hfill (neg.: \textit{#3})}\nopagebreak\\[\parskip]} |
|
43014 | 660 |
\def\opargboolorsmart#1#2#3{\flushitem{\textit{#1} \qtybf{#2} $\bigl[$= \qtybf{smart\_bool}$\bigr]$\hfill (neg.: \textit{#3})}\nopagebreak\\[\parskip]} |
36926 | 661 |
|
662 |
Sledgehammer's options are categorized as follows:\ mode of operation |
|
38984 | 663 |
(\S\ref{mode-of-operation}), problem encoding (\S\ref{problem-encoding}), |
664 |
relevance filter (\S\ref{relevance-filter}), output format |
|
57241 | 665 |
(\S\ref{output-format}), regression testing (\S\ref{regression-testing}), |
666 |
and timeouts (\S\ref{timeouts}). |
|
36926 | 667 |
|
668 |
The descriptions below refer to the following syntactic quantities: |
|
669 |
||
670 |
\begin{enum} |
|
45516 | 671 |
\item[\labelitemi] \qtybf{string}: A string. |
672 |
\item[\labelitemi] \qtybf{bool\/}: \textit{true} or \textit{false}. |
|
673 |
\item[\labelitemi] \qtybf{smart\_bool\/}: \textit{true}, \textit{false}, or |
|
40203 | 674 |
\textit{smart}. |
45516 | 675 |
\item[\labelitemi] \qtybf{int\/}: An integer. |
54816
10d48c2a3e32
made timeouts in Sledgehammer not be 'option's -- simplified lots of code
blanchet
parents:
54788
diff
changeset
|
676 |
\item[\labelitemi] \qtybf{float}: A floating-point number (e.g., 2.5 or 60) |
10d48c2a3e32
made timeouts in Sledgehammer not be 'option's -- simplified lots of code
blanchet
parents:
54788
diff
changeset
|
677 |
expressing a number of seconds. |
45516 | 678 |
\item[\labelitemi] \qtybf{float\_pair\/}: A pair of floating-point numbers |
40343
4521d56aef63
use floating-point numbers for Sledgehammer's "thresholds" option rather than percentages;
blanchet
parents:
40341
diff
changeset
|
679 |
(e.g., 0.6 0.95). |
45516 | 680 |
\item[\labelitemi] \qtybf{smart\_int\/}: An integer or \textit{smart}. |
36926 | 681 |
\end{enum} |
682 |
||
43217 | 683 |
Default values are indicated in curly brackets (\textrm{\{\}}). Boolean options |
61317 | 684 |
have a negative counterpart (e.g., \textit{minimize} vs.\ |
685 |
\textit{dont\_minimize}). When setting Boolean options or their negative |
|
47963 | 686 |
counterparts, ``= \textit{true\/}'' may be omitted. |
36926 | 687 |
|
68565 | 688 |
|
36926 | 689 |
\subsection{Mode of Operation} |
690 |
\label{mode-of-operation} |
|
691 |
||
692 |
\begin{enum} |
|
43014 | 693 |
\opnodefaultbrk{provers}{string} |
40059
6ad9081665db
use consistent terminology in Sledgehammer: "prover = ATP or SMT solver or ..."
blanchet
parents:
39335
diff
changeset
|
694 |
Specifies the automatic provers to use as a space-separated list (e.g., |
68565 | 695 |
``\textit{cvc4}~\textit{e}~\textit{spass}~\textit{vampire\/}''). |
46299 | 696 |
Provers can be run locally or remotely; see \S\ref{installation} for |
697 |
installation instructions. |
|
698 |
||
699 |
The following local provers are supported: |
|
36926 | 700 |
|
48701 | 701 |
\begin{sloppy} |
36926 | 702 |
\begin{enum} |
70937 | 703 |
\item[\labelitemi] \textbf{\textit{agsyhol}:} agsyHOL is an automatic |
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
704 |
higher-order prover developed by Fredrik Lindblad \cite{agsyHOL}. To use |
70937 | 705 |
agsyHOL, set the environment variable \texttt{AGSYHOL\_HOME} to the directory |
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
706 |
that contains the \texttt{agsyHOL} executable. Sledgehammer has been tested |
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
707 |
with version 1.0. |
52078 | 708 |
|
46643
a88bccd2b567
added support for Alt-Ergo through Why3 (mostly for experimental purposes, e.g. polymorphism vs. monomorphization)
blanchet
parents:
46640
diff
changeset
|
709 |
\item[\labelitemi] \textbf{\textit{alt\_ergo}:} Alt-Ergo is a polymorphic |
52078 | 710 |
ATP developed by Bobot et al.\ \cite{alt-ergo}. |
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
711 |
It supports the TPTP polymorphic typed first-order format (TF1) via Why3 |
53102 | 712 |
\cite{why3}. To use Alt-Ergo, set the environment variable \texttt{WHY3\_HOME} |
56379
d8ecce5d51cd
use Alt-Ergo 0.95.2, the latest and greatest version
blanchet
parents:
56378
diff
changeset
|
713 |
to the directory that contains the \texttt{why3} executable. Sledgehammer |
d8ecce5d51cd
use Alt-Ergo 0.95.2, the latest and greatest version
blanchet
parents:
56378
diff
changeset
|
714 |
requires Alt-Ergo 0.95.2 and Why3 0.83. |
46643
a88bccd2b567
added support for Alt-Ergo through Why3 (mostly for experimental purposes, e.g. polymorphism vs. monomorphization)
blanchet
parents:
46640
diff
changeset
|
715 |
|
45516 | 716 |
\item[\labelitemi] \textbf{\textit{cvc3}:} CVC3 is an SMT solver developed by |
42945 | 717 |
Clark Barrett, Cesare Tinelli, and their colleagues \cite{cvc3}. To use CVC3, |
718 |
set the environment variable \texttt{CVC3\_SOLVER} to the complete path of the |
|
46242 | 719 |
executable, including the file name, or install the prebuilt CVC3 package from |
57241 | 720 |
\download. Sledgehammer has been tested with versions 2.2 and 2.4.1. |
721 |
||
722 |
\item[\labelitemi] \textbf{\textit{cvc4}:} CVC4 \cite{cvc4} is the successor to |
|
723 |
CVC3. To use CVC4, set the environment variable \texttt{CVC4\_SOLVER} to the |
|
724 |
complete path of the executable, including the file name, or install the |
|
725 |
prebuilt CVC4 package from \download. Sledgehammer has been tested with version |
|
59034 | 726 |
1.5-prerelease. |
42945 | 727 |
|
45516 | 728 |
\item[\labelitemi] \textbf{\textit{e}:} E is a first-order resolution prover |
72592 | 729 |
developed by Stephan Schulz \cite{schulz-2019}. To use E, set the environment |
42964
bf45fd2488a2
document primitive support for LEO-II and Satallax
blanchet
parents:
42945
diff
changeset
|
730 |
variable \texttt{E\_HOME} to the directory that contains the \texttt{eproof} |
52757 | 731 |
executable and \texttt{E\_VERSION} to the version number (e.g., ``1.8''), or |
47056 | 732 |
install the prebuilt E package from \download. Sledgehammer has been tested with |
57636
3ab503b04bdb
stick to external proofs when invoking E, because they are more detailed and do not merge steps
blanchet
parents:
57566
diff
changeset
|
733 |
versions 1.6 to 1.8. |
48652 | 734 |
|
48701 | 735 |
\item[\labelitemi] \textbf{\textit{iprover}:} iProver is a pure |
70932
a35618d00d29
updated iProver setup and tuned other ATP setups
blanchet
parents:
70930
diff
changeset
|
736 |
instantiation-based prover developed by Konstantin Korovin |
a35618d00d29
updated iProver setup and tuned other ATP setups
blanchet
parents:
70930
diff
changeset
|
737 |
\cite{korovin-2009}. To use iProver, set the environment variable |
a35618d00d29
updated iProver setup and tuned other ATP setups
blanchet
parents:
70930
diff
changeset
|
738 |
\texttt{IPROVER\_HOME} to the directory that contains the \texttt{iproveropt} |
a35618d00d29
updated iProver setup and tuned other ATP setups
blanchet
parents:
70930
diff
changeset
|
739 |
executable. Sledgehammer has been tested with version 2.8. iProver depends on |
a35618d00d29
updated iProver setup and tuned other ATP setups
blanchet
parents:
70930
diff
changeset
|
740 |
E to clausify problems, so make sure that E is installed as well. |
48701 | 741 |
|
45516 | 742 |
\item[\labelitemi] \textbf{\textit{leo2}:} LEO-II is an automatic |
44098 | 743 |
higher-order prover developed by Christoph Benzm\"uller et al.\ \cite{leo2}, |
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
744 |
with support for the TPTP typed higher-order syntax (TH0). To use LEO-II, set |
46242 | 745 |
the environment variable \texttt{LEO2\_HOME} to the directory that contains the |
72592 | 746 |
\texttt{leo} executable. Sledgehammer has been tested with version 1.3.4. |
44098 | 747 |
|
67021
41f1f8c4259b
integrated Leo-III in Sledgehammer (thanks to Alexander Steen for the patch)
blanchet
parents:
66735
diff
changeset
|
748 |
\item[\labelitemi] \textbf{\textit{leo3}:} Leo-III is an automatic |
41f1f8c4259b
integrated Leo-III in Sledgehammer (thanks to Alexander Steen for the patch)
blanchet
parents:
66735
diff
changeset
|
749 |
higher-order prover developed by Alexander Steen, Max Wisniewski, Christoph |
41f1f8c4259b
integrated Leo-III in Sledgehammer (thanks to Alexander Steen for the patch)
blanchet
parents:
66735
diff
changeset
|
750 |
Benzm\"uller et al.\ \cite{leo3}, |
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
751 |
with support for the TPTP typed higher-order syntax (TH0). To use Leo-III, set |
67021
41f1f8c4259b
integrated Leo-III in Sledgehammer (thanks to Alexander Steen for the patch)
blanchet
parents:
66735
diff
changeset
|
752 |
the environment variable \texttt{LEO3\_HOME} to the directory that contains the |
72592 | 753 |
\texttt{leo3} executable. Sledgehammer has been tested with version 1.1. |
67021
41f1f8c4259b
integrated Leo-III in Sledgehammer (thanks to Alexander Steen for the patch)
blanchet
parents:
66735
diff
changeset
|
754 |
|
45516 | 755 |
\item[\labelitemi] \textbf{\textit{satallax}:} Satallax is an automatic |
44098 | 756 |
higher-order prover developed by Chad Brown et al.\ \cite{satallax}, with |
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
757 |
support for the TPTP typed higher-order syntax (TH0). To use Satallax, set the |
46242 | 758 |
environment variable \texttt{SATALLAX\_HOME} to the directory that contains the |
72592 | 759 |
\texttt{satallax} executable. Sledgehammer has been tested with version 2.2. |
44098 | 760 |
|
45516 | 761 |
\item[\labelitemi] \textbf{\textit{spass}:} SPASS is a first-order resolution |
42964
bf45fd2488a2
document primitive support for LEO-II and Satallax
blanchet
parents:
42945
diff
changeset
|
762 |
prover developed by Christoph Weidenbach et al.\ \cite{weidenbach-et-al-2009}. |
bf45fd2488a2
document primitive support for LEO-II and Satallax
blanchet
parents:
42945
diff
changeset
|
763 |
To use SPASS, set the environment variable \texttt{SPASS\_HOME} to the directory |
47056 | 764 |
that contains the \texttt{SPASS} executable and \texttt{SPASS\_VERSION} to the |
47577 | 765 |
version number (e.g., ``3.8ds''), or install the prebuilt SPASS package from |
72592 | 766 |
\download. Sledgehammer has been tested with version 3.8ds. |
36926 | 767 |
|
48652 | 768 |
\item[\labelitemi] \textbf{\textit{vampire}:} Vampire is a first-order |
769 |
resolution prover developed by Andrei Voronkov and his colleagues |
|
42964
bf45fd2488a2
document primitive support for LEO-II and Satallax
blanchet
parents:
42945
diff
changeset
|
770 |
\cite{riazanov-voronkov-2002}. To use Vampire, set the environment variable |
bf45fd2488a2
document primitive support for LEO-II and Satallax
blanchet
parents:
42945
diff
changeset
|
771 |
\texttt{VAMPIRE\_HOME} to the directory that contains the \texttt{vampire} |
48006 | 772 |
executable and \texttt{VAMPIRE\_VERSION} to the version number (e.g., |
68565 | 773 |
``4.2.2''). Sledgehammer has been tested with versions 1.8 to 4.2.2 (in the |
774 |
post-2010 numbering scheme). |
|
40942 | 775 |
|
59035
3a2153676705
renamed 'veriT' to 'verit', to stick to all-lowercase rule for prover names
blanchet
parents:
59034
diff
changeset
|
776 |
\item[\labelitemi] \textbf{\textit{verit}:} veriT \cite{bouton-et-al-2009} is an |
65516 | 777 |
SMT solver developed by David D\'eharbe, Pascal Fontaine, and their colleagues. |
72592 | 778 |
It is designed to produce detailed proofs for reconstruction in proof |
779 |
assistants. To use veriT, set the environment variable \texttt{VERIT\_SOLVER} |
|
780 |
to the complete path of the executable, including the file name. Sledgehammer |
|
781 |
has been tested with version 2020.10-rmx. |
|
58497
20aaa307c0ff
updated docs with two provers: veriT and Zipperposition
blanchet
parents:
58090
diff
changeset
|
782 |
|
45516 | 783 |
\item[\labelitemi] \textbf{\textit{z3}:} Z3 is an SMT solver developed at |
72592 | 784 |
Microsoft Research \cite{de-moura-2008}. To use Z3, set the environment variable |
59961 | 785 |
\texttt{Z3\_SOLVER} to the complete path of the executable, including the |
786 |
file name. Sledgehammer has been tested with a pre-release version of 4.4.0. |
|
56378 | 787 |
|
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
788 |
\item[\labelitemi] \textbf{\textit{z3\_tptp}:} This version of Z3 pretends to |
72592 | 789 |
be an ATP, exploiting Z3's support for the TPTP typed first-order format (TF0). |
790 |
It is included for experimental purposes. Sledgehammer has been tested with |
|
791 |
version 4.3.1. To use it, set the environment variable \texttt{Z3\_TPTP\_HOME} |
|
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
792 |
to the directory that contains the \texttt{z3\_tptp} executable. |
58497
20aaa307c0ff
updated docs with two provers: veriT and Zipperposition
blanchet
parents:
58090
diff
changeset
|
793 |
|
20aaa307c0ff
updated docs with two provers: veriT and Zipperposition
blanchet
parents:
58090
diff
changeset
|
794 |
\item[\labelitemi] \textbf{\textit{zipperposition}:} Zipperposition |
72174 | 795 |
\cite{cruanes-2014} is a higher-order superposition prover developed by Simon |
72589 | 796 |
Cruanes, Petar Vukmirovi\'c, and colleagues. To use Zipperposition, set the |
797 |
environment variable \texttt{ZIPPERPOSITION\_HOME} to the directory that |
|
798 |
contains the \texttt{zipperposition} executable and |
|
799 |
\texttt{ZIPPERPOSITION\_VERSION} to the version number (e.g., ``2.0.1''). |
|
800 |
Sledgehammer has been tested with version 2.0.1. |
|
57536 | 801 |
\end{enum} |
56378 | 802 |
|
48701 | 803 |
\end{sloppy} |
42945 | 804 |
|
57536 | 805 |
Moreover, the following remote provers are supported: |
42945 | 806 |
|
807 |
\begin{enum} |
|
52078 | 808 |
\item[\labelitemi] \textbf{\textit{remote\_agsyhol}:} The remote version of |
70937 | 809 |
agsyHOL runs on Geoff Sutcliffe's Miami servers \cite{sutcliffe-2000}. |
810 |
||
811 |
\item[\labelitemi] \textbf{\textit{remote\_alt\_ergo}:} The remote version of |
|
812 |
Alt-Ergo runs on Geoff Sutcliffe's Miami servers \cite{sutcliffe-2000}. |
|
52078 | 813 |
|
45516 | 814 |
\item[\labelitemi] \textbf{\textit{remote\_e}:} The remote version of E runs |
36926 | 815 |
on Geoff Sutcliffe's Miami servers \cite{sutcliffe-2000}. |
816 |
||
48701 | 817 |
\item[\labelitemi] \textbf{\textit{remote\_iprover}:} The |
45339 | 818 |
remote version of iProver runs on Geoff Sutcliffe's Miami servers |
819 |
\cite{sutcliffe-2000}. |
|
820 |
||
45516 | 821 |
\item[\labelitemi] \textbf{\textit{remote\_leo2}:} The remote version of LEO-II |
44098 | 822 |
runs on Geoff Sutcliffe's Miami servers \cite{sutcliffe-2000}. |
42964
bf45fd2488a2
document primitive support for LEO-II and Satallax
blanchet
parents:
42945
diff
changeset
|
823 |
|
67021
41f1f8c4259b
integrated Leo-III in Sledgehammer (thanks to Alexander Steen for the patch)
blanchet
parents:
66735
diff
changeset
|
824 |
\item[\labelitemi] \textbf{\textit{remote\_leo3}:} The remote version of Leo-III |
41f1f8c4259b
integrated Leo-III in Sledgehammer (thanks to Alexander Steen for the patch)
blanchet
parents:
66735
diff
changeset
|
825 |
runs on Geoff Sutcliffe's Miami servers \cite{sutcliffe-2000}. |
41f1f8c4259b
integrated Leo-III in Sledgehammer (thanks to Alexander Steen for the patch)
blanchet
parents:
66735
diff
changeset
|
826 |
|
45516 | 827 |
\item[\labelitemi] \textbf{\textit{remote\_vampire}:} The remote version of |
48006 | 828 |
Vampire runs on Geoff Sutcliffe's Miami servers. |
42945 | 829 |
|
45516 | 830 |
\item[\labelitemi] \textbf{\textit{remote\_waldmeister}:} Waldmeister is a unit |
42945 | 831 |
equality prover developed by Hillenbrand et al.\ \cite{waldmeister}. It can be |
43625 | 832 |
used to prove universally quantified equations using unconditional equations, |
833 |
corresponding to the TPTP CNF UEQ division. The remote version of Waldmeister |
|
834 |
runs on Geoff Sutcliffe's Miami servers. |
|
70940
ce3a05ad07b7
added support for Zipperposition on SystemOnTPTP
blanchet
parents:
70938
diff
changeset
|
835 |
|
ce3a05ad07b7
added support for Zipperposition on SystemOnTPTP
blanchet
parents:
70938
diff
changeset
|
836 |
\item[\labelitemi] \textbf{\textit{remote\_zipperposition}:} The remote |
ce3a05ad07b7
added support for Zipperposition on SystemOnTPTP
blanchet
parents:
70938
diff
changeset
|
837 |
version of Zipperposition runs on Geoff Sutcliffe's Miami servers. |
36926 | 838 |
\end{enum} |
839 |
||
70934
25c1ff13dbdb
removed E-SInE, a very old system by now (and SInE has been incorporated in many provers in the past decade)
blanchet
parents:
70933
diff
changeset
|
840 |
By default, Sledgehammer runs a subset of CVC4, E, SPASS, Vampire, veriT, and |
25c1ff13dbdb
removed E-SInE, a very old system by now (and SInE has been incorporated in many provers in the past decade)
blanchet
parents:
70933
diff
changeset
|
841 |
Z3 in parallel, either locally or remotely---depending on the number of |
25c1ff13dbdb
removed E-SInE, a very old system by now (and SInE has been incorporated in many provers in the past decade)
blanchet
parents:
70933
diff
changeset
|
842 |
processor cores available and on which provers are actually installed. It is |
70940
ce3a05ad07b7
added support for Zipperposition on SystemOnTPTP
blanchet
parents:
70938
diff
changeset
|
843 |
generally desirable to run several provers in parallel. |
40059
6ad9081665db
use consistent terminology in Sledgehammer: "prover = ATP or SMT solver or ..."
blanchet
parents:
39335
diff
changeset
|
844 |
|
6ad9081665db
use consistent terminology in Sledgehammer: "prover = ATP or SMT solver or ..."
blanchet
parents:
39335
diff
changeset
|
845 |
\opnodefault{prover}{string} |
6ad9081665db
use consistent terminology in Sledgehammer: "prover = ATP or SMT solver or ..."
blanchet
parents:
39335
diff
changeset
|
846 |
Alias for \textit{provers}. |
6ad9081665db
use consistent terminology in Sledgehammer: "prover = ATP or SMT solver or ..."
blanchet
parents:
39335
diff
changeset
|
847 |
|
45708
7c8bed80301f
updated Sledgehammer docs with new/renamed options
blanchet
parents:
45555
diff
changeset
|
848 |
\optrue{slice}{dont\_slice} |
42443
724e612ba248
implemented general slicing for ATPs, especially E 1.2w and above
blanchet
parents:
42442
diff
changeset
|
849 |
Specifies whether the time allocated to a prover should be sliced into several |
724e612ba248
implemented general slicing for ATPs, especially E 1.2w and above
blanchet
parents:
42442
diff
changeset
|
850 |
segments, each of which has its own set of possibly prover-dependent options. |
42446 | 851 |
For SPASS and Vampire, the first slice tries the fast but incomplete |
42443
724e612ba248
implemented general slicing for ATPs, especially E 1.2w and above
blanchet
parents:
42442
diff
changeset
|
852 |
set-of-support (SOS) strategy, whereas the second slice runs without it. For E, |
42446 | 853 |
up to three slices are tried, with different weighted search strategies and |
42443
724e612ba248
implemented general slicing for ATPs, especially E 1.2w and above
blanchet
parents:
42442
diff
changeset
|
854 |
number of facts. For SMT solvers, several slices are tried with the same options |
42446 | 855 |
each time but fewer and fewer facts. According to benchmarks with a timeout of |
856 |
30 seconds, slicing is a valuable optimization, and you should probably leave it |
|
54114 | 857 |
enabled unless you are conducting experiments. |
42443
724e612ba248
implemented general slicing for ATPs, especially E 1.2w and above
blanchet
parents:
42442
diff
changeset
|
858 |
|
724e612ba248
implemented general slicing for ATPs, especially E 1.2w and above
blanchet
parents:
42442
diff
changeset
|
859 |
\nopagebreak |
724e612ba248
implemented general slicing for ATPs, especially E 1.2w and above
blanchet
parents:
42442
diff
changeset
|
860 |
{\small See also \textit{verbose} (\S\ref{output-format}).} |
724e612ba248
implemented general slicing for ATPs, especially E 1.2w and above
blanchet
parents:
42442
diff
changeset
|
861 |
|
57722 | 862 |
\optrue{minimize}{dont\_minimize} |
72592 | 863 |
Specifies whether the proof minimization tool should be invoked automatically |
864 |
after proof search. |
|
45708
7c8bed80301f
updated Sledgehammer docs with new/renamed options
blanchet
parents:
45555
diff
changeset
|
865 |
|
7c8bed80301f
updated Sledgehammer docs with new/renamed options
blanchet
parents:
45555
diff
changeset
|
866 |
\nopagebreak |
47036 | 867 |
{\small See also \textit{preplay\_timeout} (\S\ref{timeouts}) |
868 |
and \textit{dont\_preplay} (\S\ref{timeouts}).} |
|
45708
7c8bed80301f
updated Sledgehammer docs with new/renamed options
blanchet
parents:
45555
diff
changeset
|
869 |
|
53801 | 870 |
\opfalse{spy}{dont\_spy} |
871 |
Specifies whether Sledgehammer should record statistics in |
|
872 |
\texttt{\$ISA\-BELLE\_\allowbreak HOME\_\allowbreak USER/\allowbreak spy\_\allowbreak sledgehammer}. |
|
873 |
These statistics can be useful to the developers of Sledgehammer. If you are willing to have your |
|
874 |
interactions recorded in the name of science, please enable this feature and send the statistics |
|
875 |
file every now and then to the author of this manual (\authoremail). |
|
876 |
To change the default value of this option globally, set the environment variable |
|
57107
2d502370ee99
changed MaSh to use SML version instead of Python version of naive Bayes by default (i.e. if MASH=yes in the settings, or 'fact_filter=mash' with no other explicit setting)
blanchet
parents:
57095
diff
changeset
|
877 |
\texttt{SLEDGEHAMMER\_SPY} to \textit{yes}. |
53801 | 878 |
|
879 |
\nopagebreak |
|
880 |
{\small See also \textit{debug} (\S\ref{output-format}).} |
|
881 |
||
36926 | 882 |
\opfalse{overlord}{no\_overlord} |
883 |
Specifies whether Sledgehammer should put its temporary files in |
|
884 |
\texttt{\$ISA\-BELLE\_\allowbreak HOME\_\allowbreak USER}, which is useful for |
|
885 |
debugging Sledgehammer but also unsafe if several instances of the tool are run |
|
48390
4147f2bc4442
add versioning to MaSh state + cleanup dead code
blanchet
parents:
48388
diff
changeset
|
886 |
simultaneously. The files are identified by the prefixes \texttt{prob\_} and |
4147f2bc4442
add versioning to MaSh state + cleanup dead code
blanchet
parents:
48388
diff
changeset
|
887 |
\texttt{mash\_}; you may safely remove them after Sledgehammer has run. |
36926 | 888 |
|
54139 | 889 |
\textbf{Warning:} This option is not thread-safe. Use at your own risks. |
890 |
||
36926 | 891 |
\nopagebreak |
892 |
{\small See also \textit{debug} (\S\ref{output-format}).} |
|
893 |
\end{enum} |
|
894 |
||
68565 | 895 |
|
48387 | 896 |
\subsection{Relevance Filter} |
897 |
\label{relevance-filter} |
|
898 |
||
899 |
\begin{enum} |
|
48388 | 900 |
\opdefault{fact\_filter}{string}{smart} |
901 |
Specifies the relevance filter to use. The following filters are available: |
|
902 |
||
903 |
\begin{enum} |
|
904 |
\item[\labelitemi] \textbf{\textit{mepo}:} |
|
905 |
The traditional memoryless MePo relevance filter. |
|
906 |
||
907 |
\item[\labelitemi] \textbf{\textit{mash}:} |
|
57532 | 908 |
The MaSh machine learner. Three learning algorithms are provided: |
57019 | 909 |
|
910 |
\begin{enum} |
|
57463 | 911 |
\item[\labelitemi] \textbf{\textit{nb}} is an implementation of naive Bayes. |
57019 | 912 |
|
57463 | 913 |
\item[\labelitemi] \textbf{\textit{knn}} is an implementation of $k$-nearest |
914 |
neighbors. |
|
915 |
||
57659
b246943b3aa3
reenabled MaSh for Isabelle2014 release (hopefully)
blanchet
parents:
57636
diff
changeset
|
916 |
\item[\labelitemi] \textbf{\textit{nb\_knn}} (also called \textbf{\textit{yes}} |
b246943b3aa3
reenabled MaSh for Isabelle2014 release (hopefully)
blanchet
parents:
57636
diff
changeset
|
917 |
and \textbf{\textit{sml}}) is a combination of naive Bayes and $k$-nearest |
b246943b3aa3
reenabled MaSh for Isabelle2014 release (hopefully)
blanchet
parents:
57636
diff
changeset
|
918 |
neighbors. |
57019 | 919 |
\end{enum} |
920 |
||
57272
fd539459a112
enabled MaSh by default -- set 'MaSh' to 'none' in Isabelle Plugin Options to disable
blanchet
parents:
57245
diff
changeset
|
921 |
In addition, the special value \textit{none} is used to disable machine learning by |
fd539459a112
enabled MaSh by default -- set 'MaSh' to 'none' in Isabelle Plugin Options to disable
blanchet
parents:
57245
diff
changeset
|
922 |
default (cf.\ \textit{smart} below). |
fd539459a112
enabled MaSh by default -- set 'MaSh' to 'none' in Isabelle Plugin Options to disable
blanchet
parents:
57245
diff
changeset
|
923 |
|
57659
b246943b3aa3
reenabled MaSh for Isabelle2014 release (hopefully)
blanchet
parents:
57636
diff
changeset
|
924 |
The default algorithm is \textit{nb\_knn}. The algorithm can be selected by |
61043 | 925 |
setting the ``MaSh'' option under ``Plugins > Plugin Options > Isabelle > |
57532 | 926 |
General'' in Isabelle/jEdit. Persistent data for both algorithms is stored in |
927 |
the directory \texttt{\$ISABELLE\_\allowbreak HOME\_\allowbreak USER/\allowbreak |
|
928 |
mash}. |
|
48388 | 929 |
|
51024
98fb341d32e3
distinguish MeSh and smart -- with smart, allow combinations of MaSh, MeSh, and MePo in different slices -- and use MaSh also with SMT solvers, based on evaluation
blanchet
parents:
50929
diff
changeset
|
930 |
\item[\labelitemi] \textbf{\textit{mesh}:} The MeSh filter, which combines the |
98fb341d32e3
distinguish MeSh and smart -- with smart, allow combinations of MaSh, MeSh, and MePo in different slices -- and use MaSh also with SMT solvers, based on evaluation
blanchet
parents:
50929
diff
changeset
|
931 |
rankings from MePo and MaSh. |
48388 | 932 |
|
57659
b246943b3aa3
reenabled MaSh for Isabelle2014 release (hopefully)
blanchet
parents:
57636
diff
changeset
|
933 |
\item[\labelitemi] \textbf{\textit{smart}:} A combination of MePo, MaSh, and |
b246943b3aa3
reenabled MaSh for Isabelle2014 release (hopefully)
blanchet
parents:
57636
diff
changeset
|
934 |
MeSh. If the learning algorithm is set to be \textit{none}, \textit{smart} |
b246943b3aa3
reenabled MaSh for Isabelle2014 release (hopefully)
blanchet
parents:
57636
diff
changeset
|
935 |
behaves like MePo. |
48388 | 936 |
\end{enum} |
937 |
||
48387 | 938 |
\opdefault{max\_facts}{smart\_int}{smart} |
939 |
Specifies the maximum number of facts that may be returned by the relevance |
|
55297
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
940 |
filter. If the option is set to \textit{smart} (the default), it effectively |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
941 |
takes a value that was empirically found to be appropriate for the prover. |
57107
2d502370ee99
changed MaSh to use SML version instead of Python version of naive Bayes by default (i.e. if MASH=yes in the settings, or 'fact_filter=mash' with no other explicit setting)
blanchet
parents:
57095
diff
changeset
|
942 |
Typical values lie between 50 and 1000. |
53757
8d1a059ebcdb
reduce the number of emitted MaSh commands (among others to facilitate debugging)
blanchet
parents:
53518
diff
changeset
|
943 |
|
48387 | 944 |
\opdefault{fact\_thresholds}{float\_pair}{\upshape 0.45~0.85} |
945 |
Specifies the thresholds above which facts are considered relevant by the |
|
946 |
relevance filter. The first threshold is used for the first iteration of the |
|
947 |
relevance filter and the second threshold is used for the last iteration (if it |
|
948 |
is reached). The effective threshold is quadratically interpolated for the other |
|
949 |
iterations. Each threshold ranges from 0 to 1, where 0 means that all theorems |
|
950 |
are relevant and 1 only theorems that refer to previously seen constants. |
|
951 |
||
48388 | 952 |
\optrue{learn}{dont\_learn} |
72592 | 953 |
Specifies whether Sledgehammer invocations should run MaSh to learn the |
53760
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
954 |
available theories (and hence provide more accurate results). Learning takes |
cf37f4b84824
moved focus to Isabell/jEdit and away from Proof General
blanchet
parents:
53759
diff
changeset
|
955 |
place only if MaSh is enabled. |
48388 | 956 |
|
48387 | 957 |
\opdefault{max\_new\_mono\_instances}{int}{smart} |
958 |
Specifies the maximum number of monomorphic instances to generate beyond |
|
959 |
\textit{max\_facts}. The higher this limit is, the more monomorphic instances |
|
960 |
are potentially generated. Whether monomorphization takes place depends on the |
|
55297
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
961 |
type encoding used. If the option is set to \textit{smart} (the default), it |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
962 |
takes a value that was empirically found to be appropriate for the prover. For |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
963 |
most provers, this value is 100. |
48387 | 964 |
|
965 |
\nopagebreak |
|
966 |
{\small See also \textit{type\_enc} (\S\ref{problem-encoding}).} |
|
967 |
||
968 |
\opdefault{max\_mono\_iters}{int}{smart} |
|
969 |
Specifies the maximum number of iterations for the monomorphization fixpoint |
|
970 |
construction. The higher this limit is, the more monomorphic instances are |
|
971 |
potentially generated. Whether monomorphization takes place depends on the |
|
55297
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
972 |
type encoding used. If the option is set to \textit{smart} (the default), it |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
973 |
takes a value that was empirically found to be appropriate for the prover. |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
974 |
For most provers, this value is 3. |
48387 | 975 |
|
976 |
\nopagebreak |
|
977 |
{\small See also \textit{type\_enc} (\S\ref{problem-encoding}).} |
|
978 |
\end{enum} |
|
979 |
||
68565 | 980 |
|
36926 | 981 |
\subsection{Problem Encoding} |
982 |
\label{problem-encoding} |
|
983 |
||
45516 | 984 |
\newcommand\comb[1]{\const{#1}} |
985 |
||
36926 | 986 |
\begin{enum} |
45516 | 987 |
\opdefault{lam\_trans}{string}{smart} |
988 |
Specifies the $\lambda$ translation scheme to use in ATP problems. The supported |
|
989 |
translation schemes are listed below: |
|
990 |
||
991 |
\begin{enum} |
|
992 |
\item[\labelitemi] \textbf{\textit{hide\_lams}:} Hide the $\lambda$-abstractions |
|
993 |
by replacing them by unspecified fresh constants, effectively disabling all |
|
994 |
reasoning under $\lambda$-abstractions. |
|
995 |
||
46366 | 996 |
\item[\labelitemi] \textbf{\textit{lifting}:} Introduce a new |
45516 | 997 |
supercombinator \const{c} for each cluster of $n$~$\lambda$-abstractions, |
998 |
defined using an equation $\const{c}~x_1~\ldots~x_n = t$ ($\lambda$-lifting). |
|
999 |
||
46366 | 1000 |
\item[\labelitemi] \textbf{\textit{combs}:} Rewrite lambdas to the Curry |
45516 | 1001 |
combinators (\comb{I}, \comb{K}, \comb{S}, \comb{B}, \comb{C}). Combinators |
1002 |
enable the ATPs to synthesize $\lambda$-terms but tend to yield bulkier formulas |
|
1003 |
than $\lambda$-lifting: The translation is quadratic in the worst case, and the |
|
1004 |
equational definitions of the combinators are very prolific in the context of |
|
1005 |
resolution. |
|
1006 |
||
46366 | 1007 |
\item[\labelitemi] \textbf{\textit{combs\_and\_lifting}:} Introduce a new |
45516 | 1008 |
supercombinator \const{c} for each cluster of $\lambda$-abstractions and characterize it both using a |
1009 |
lifted equation $\const{c}~x_1~\ldots~x_n = t$ and via Curry combinators. |
|
1010 |
||
46366 | 1011 |
\item[\labelitemi] \textbf{\textit{combs\_or\_lifting}:} For each cluster of |
1012 |
$\lambda$-abstractions, heuristically choose between $\lambda$-lifting and Curry |
|
1013 |
combinators. |
|
1014 |
||
45516 | 1015 |
\item[\labelitemi] \textbf{\textit{keep\_lams}:} |
1016 |
Keep the $\lambda$-abstractions in the generated problems. This is available |
|
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
1017 |
only with provers that support the TH0 syntax. |
45516 | 1018 |
|
1019 |
\item[\labelitemi] \textbf{\textit{smart}:} The actual translation scheme used |
|
1020 |
depends on the ATP and should be the most efficient scheme for that ATP. |
|
1021 |
\end{enum} |
|
1022 |
||
46366 | 1023 |
For SMT solvers, the $\lambda$ translation scheme is always \textit{lifting}, |
1024 |
irrespective of the value of this option. |
|
45516 | 1025 |
|
46409
d4754183ccce
made option available to users (mostly for experiments)
blanchet
parents:
46366
diff
changeset
|
1026 |
\opsmartx{uncurried\_aliases}{no\_uncurried\_aliases} |
46411 | 1027 |
Specifies whether fresh function symbols should be generated as aliases for |
1028 |
applications of curried functions in ATP problems. |
|
46409
d4754183ccce
made option available to users (mostly for experiments)
blanchet
parents:
46366
diff
changeset
|
1029 |
|
43627
ecd4bb7a8bc0
update documentation after "type_enc" renaming + fixed a few other out-of-date factlets
blanchet
parents:
43625
diff
changeset
|
1030 |
\opdefault{type\_enc}{string}{smart} |
ecd4bb7a8bc0
update documentation after "type_enc" renaming + fixed a few other out-of-date factlets
blanchet
parents:
43625
diff
changeset
|
1031 |
Specifies the type encoding to use in ATP problems. Some of the type encodings |
ecd4bb7a8bc0
update documentation after "type_enc" renaming + fixed a few other out-of-date factlets
blanchet
parents:
43625
diff
changeset
|
1032 |
are unsound, meaning that they can give rise to spurious proofs |
48093 | 1033 |
(unreconstructible using \textit{metis}). The type encodings are |
46300 | 1034 |
listed below, with an indication of their soundness in parentheses. |
48093 | 1035 |
An asterisk (*) indicates that the encoding is slightly incomplete for |
56120
04c37dfef684
updated Sledgehammer docs w.r.t. 'smt2' and 'z3_new'
blanchet
parents:
56119
diff
changeset
|
1036 |
reconstruction with \textit{metis}, unless the \textit{strict} option (described |
46302 | 1037 |
below) is enabled. |
42228 | 1038 |
|
1039 |
\begin{enum} |
|
48090 | 1040 |
\item[\labelitemi] \textbf{\textit{erased} (unsound):} No type information is |
46300 | 1041 |
supplied to the ATP, not even to resolve overloading. Types are simply erased. |
42582 | 1042 |
|
45516 | 1043 |
\item[\labelitemi] \textbf{\textit{poly\_guards} (sound):} Types are encoded using |
46300 | 1044 |
a predicate \const{g}$(\tau, t)$ that guards bound |
48090 | 1045 |
variables. Constants are annotated with their types, supplied as extra |
42887
771be1dcfef6
document new type system and soundness properties of the different systems
blanchet
parents:
42884
diff
changeset
|
1046 |
arguments, to resolve overloading. |
42685 | 1047 |
|
45516 | 1048 |
\item[\labelitemi] \textbf{\textit{poly\_tags} (sound):} Each term and subterm is |
46300 | 1049 |
tagged with its type using a function $\const{t\/}(\tau, t)$. |
42887
771be1dcfef6
document new type system and soundness properties of the different systems
blanchet
parents:
42884
diff
changeset
|
1050 |
|
45516 | 1051 |
\item[\labelitemi] \textbf{\textit{poly\_args} (unsound):} |
43990 | 1052 |
Like for \textit{poly\_guards} constants are annotated with their types to |
43002
e88fde86e4c2
mention contributions from LCP and explain metis and metisFT encodings
blanchet
parents:
42996
diff
changeset
|
1053 |
resolve overloading, but otherwise no type information is encoded. This |
57040 | 1054 |
is the default encoding used by the \textit{metis} proof method. |
42685 | 1055 |
|
45516 | 1056 |
\item[\labelitemi] |
42722 | 1057 |
\textbf{% |
44494
a77901b3774e
rationalized option names -- mono becomes raw_mono and mangled becomes mono
blanchet
parents:
44423
diff
changeset
|
1058 |
\textit{raw\_mono\_guards}, \textit{raw\_mono\_tags} (sound); \\ |
a77901b3774e
rationalized option names -- mono becomes raw_mono and mangled becomes mono
blanchet
parents:
44423
diff
changeset
|
1059 |
\textit{raw\_mono\_args} (unsound):} \\ |
43990 | 1060 |
Similar to \textit{poly\_guards}, \textit{poly\_tags}, and \textit{poly\_args}, |
42722 | 1061 |
respectively, but the problem is additionally monomorphized, meaning that type |
1062 |
variables are instantiated with heuristically chosen ground types. |
|
1063 |
Monomorphization can simplify reasoning but also leads to larger fact bases, |
|
1064 |
which can slow down the ATPs. |
|
42582 | 1065 |
|
45516 | 1066 |
\item[\labelitemi] |
42722 | 1067 |
\textbf{% |
44494
a77901b3774e
rationalized option names -- mono becomes raw_mono and mangled becomes mono
blanchet
parents:
44423
diff
changeset
|
1068 |
\textit{mono\_guards}, \textit{mono\_tags} (sound); |
72589 | 1069 |
\textit{mono\_args} \\ (unsound):} \\ |
42722 | 1070 |
Similar to |
44494
a77901b3774e
rationalized option names -- mono becomes raw_mono and mangled becomes mono
blanchet
parents:
44423
diff
changeset
|
1071 |
\textit{raw\_mono\_guards}, \textit{raw\_mono\_tags}, and |
72589 | 1072 |
\textit{raw\_mono\_\allowbreak args}, respectively but types are mangled in constant names |
44494
a77901b3774e
rationalized option names -- mono becomes raw_mono and mangled becomes mono
blanchet
parents:
44423
diff
changeset
|
1073 |
instead of being supplied as ground term arguments. The binary predicate |
46300 | 1074 |
$\const{g}(\tau, t)$ becomes a unary predicate |
1075 |
$\const{g\_}\tau(t)$, and the binary function |
|
1076 |
$\const{t}(\tau, t)$ becomes a unary function |
|
1077 |
$\const{t\_}\tau(t)$. |
|
42589
9f7c48463645
restructured type systems some more -- the old naming schemes had "argshg diff |less" and "tagshg diff |less" as equivalent and didn't support a monomorphic version of "tags"
blanchet
parents:
42582
diff
changeset
|
1078 |
|
46435 | 1079 |
\item[\labelitemi] \textbf{\textit{mono\_native} (sound):} Exploits native |
70936
646651bcf261
updated nomenclature for TPTP languages to use modern three-symbol abbreviations (e.g. TF1)
blanchet
parents:
70935
diff
changeset
|
1080 |
first-order types if the prover supports the TF0, TF1, TH0, or TH1 syntax; |
46643
a88bccd2b567
added support for Alt-Ergo through Why3 (mostly for experimental purposes, e.g. polymorphism vs. monomorphization)
blanchet
parents:
46640
diff
changeset
|
1081 |
otherwise, falls back on \textit{mono\_guards}. The problem is monomorphized. |
43625 | 1082 |
|
72589 | 1083 |
\item[\labelitemi] \textbf{\textit{mono\_native\_fool} (sound):} Exploits native |
1084 |
first-order types, including Booleans, if the prover supports the TFX0, TFX1, |
|
1085 |
TH0, or TH1 syntax; otherwise, falls back on \textit{mono\_native}. The problem |
|
1086 |
is monomorphized. |
|
42681 | 1087 |
|
72589 | 1088 |
\item[\labelitemi] \textbf{\textit{mono\_native\_higher}, |
1089 |
\textit{mono\_native\_higher\_fool} \\ (sound):} Exploits native higher-order |
|
1090 |
types, including Booleans if ending with ``\textit{\_fool}'', if the prover |
|
1091 |
supports the TH0 syntax; otherwise, falls back on \textit{mono\_native} or |
|
1092 |
\textit{mono\_native\_fool}. The problem is monomorphized. |
|
1093 |
||
1094 |
\item[\labelitemi] \textbf{\textit{poly\_native}, \textit{poly\_native\_fool}, |
|
1095 |
\textit{poly\_native\_higher}, \\ \textit{poly\_native\_higher\_fool} (sound):} |
|
1096 |
Exploits native first-order polymorphic types if the prover supports the TF1, |
|
1097 |
TFX1, or TH1 syntax; otherwise, falls back on \textit{mono\_native}, |
|
1098 |
\textit{mono\_native\_fool}, \textit{mono\_native\_higher}, or |
|
1099 |
\textit{mono\_native\_higher\_fool}. |
|
46643
a88bccd2b567
added support for Alt-Ergo through Why3 (mostly for experimental purposes, e.g. polymorphism vs. monomorphization)
blanchet
parents:
46640
diff
changeset
|
1100 |
|
45516 | 1101 |
\item[\labelitemi] |
42681 | 1102 |
\textbf{% |
44494
a77901b3774e
rationalized option names -- mono becomes raw_mono and mangled becomes mono
blanchet
parents:
44423
diff
changeset
|
1103 |
\textit{poly\_guards}?, \textit{poly\_tags}?, \textit{raw\_mono\_guards}?, \\ |
a77901b3774e
rationalized option names -- mono becomes raw_mono and mangled becomes mono
blanchet
parents:
44423
diff
changeset
|
1104 |
\textit{raw\_mono\_tags}?, \textit{mono\_guards}?, \textit{mono\_tags}?, \\ |
46435 | 1105 |
\textit{mono\_native}? (sound*):} \\ |
43990 | 1106 |
The type encodings \textit{poly\_guards}, \textit{poly\_tags}, |
44494
a77901b3774e
rationalized option names -- mono becomes raw_mono and mangled becomes mono
blanchet
parents:
44423
diff
changeset
|
1107 |
\textit{raw\_mono\_guards}, \textit{raw\_mono\_tags}, \textit{mono\_guards}, |
47036 | 1108 |
\textit{mono\_tags}, and \textit{mono\_native} are fully typed and sound. For |
1109 |
each of these, Sledgehammer also provides a lighter variant identified by a |
|
1110 |
question mark (`\hbox{?}')\ that detects and erases monotonic types, notably |
|
1111 |
infinite types. (For \textit{mono\_native}, the types are not actually erased |
|
1112 |
but rather replaced by a shared uniform type of individuals.) As argument to the |
|
1113 |
\textit{metis} proof method, the question mark is replaced by a |
|
1114 |
\hbox{``\textit{\_query\/}''} suffix. |
|
42582 | 1115 |
|
45516 | 1116 |
\item[\labelitemi] |
42887
771be1dcfef6
document new type system and soundness properties of the different systems
blanchet
parents:
42884
diff
changeset
|
1117 |
\textbf{% |
44769 | 1118 |
\textit{poly\_guards}??, \textit{poly\_tags}??, \textit{raw\_mono\_guards}??, \\ |
1119 |
\textit{raw\_mono\_tags}??, \textit{mono\_guards}??, \textit{mono\_tags}?? \\ |
|
46300 | 1120 |
(sound*):} \\ |
44816 | 1121 |
Even lighter versions of the `\hbox{?}' encodings. As argument to the |
1122 |
\textit{metis} proof method, the `\hbox{??}' suffix is replaced by |
|
46242 | 1123 |
\hbox{``\textit{\_query\_query\/}''}. |
44816 | 1124 |
|
45516 | 1125 |
\item[\labelitemi] |
44816 | 1126 |
\textbf{% |
48184 | 1127 |
\textit{poly\_guards}@, \textit{poly\_tags}@, \textit{raw\_mono\_guards}@, \\ |
1128 |
\textit{raw\_mono\_tags}@ (sound*):} \\ |
|
44816 | 1129 |
Alternative versions of the `\hbox{??}' encodings. As argument to the |
48184 | 1130 |
\textit{metis} proof method, the `\hbox{@}' suffix is replaced by |
1131 |
\hbox{``\textit{\_at\/}''}. |
|
44769 | 1132 |
|
48093 | 1133 |
\item[\labelitemi] \textbf{\textit{poly\_args}?, \textit{raw\_mono\_args}? (unsound):} \\ |
1134 |
Lighter versions of \textit{poly\_args} and \textit{raw\_mono\_args}. |
|
1135 |
||
45516 | 1136 |
\item[\labelitemi] \textbf{\textit{smart}:} The actual encoding used depends on |
47036 | 1137 |
the ATP and should be the most efficient sound encoding for that ATP. |
42228 | 1138 |
\end{enum} |
1139 |
||
46435 | 1140 |
For SMT solvers, the type encoding is always \textit{mono\_native}, irrespective |
44743 | 1141 |
of the value of this option. |
42888 | 1142 |
|
1143 |
\nopagebreak |
|
1144 |
{\small See also \textit{max\_new\_mono\_instances} (\S\ref{relevance-filter}) |
|
1145 |
and \textit{max\_mono\_iters} (\S\ref{relevance-filter}).} |
|
43574 | 1146 |
|
46302 | 1147 |
\opfalse{strict}{non\_strict} |
46300 | 1148 |
Specifies whether Sledgehammer should run in its strict mode. In that mode, |
46302 | 1149 |
sound type encodings marked with an asterisk (*) above are made complete |
46300 | 1150 |
for reconstruction with \textit{metis}, at the cost of some clutter in the |
1151 |
generated problems. This option has no effect if \textit{type\_enc} is |
|
1152 |
deliberately set to an unsound encoding. |
|
38591 | 1153 |
\end{enum} |
36926 | 1154 |
|
68565 | 1155 |
|
36926 | 1156 |
\subsection{Output Format} |
1157 |
\label{output-format} |
|
1158 |
||
1159 |
\begin{enum} |
|
1160 |
||
1161 |
\opfalse{verbose}{quiet} |
|
1162 |
Specifies whether the \textbf{sledgehammer} command should explain what it does. |
|
1163 |
||
1164 |
\opfalse{debug}{no\_debug} |
|
40203 | 1165 |
Specifies whether Sledgehammer should display additional debugging information |
1166 |
beyond what \textit{verbose} already displays. Enabling \textit{debug} also |
|
61317 | 1167 |
enables \textit{verbose} behind the scenes. |
36926 | 1168 |
|
1169 |
\nopagebreak |
|
53801 | 1170 |
{\small See also \textit{spy} (\S\ref{mode-of-operation}) and |
1171 |
\textit{overlord} (\S\ref{mode-of-operation}).} |
|
36926 | 1172 |
|
51190
2654b3965c8d
made "isar_proofs" a 3-way option, to provide a way to totally disable isar_proofs if desired
blanchet
parents:
51189
diff
changeset
|
1173 |
\opsmart{isar\_proofs}{no\_isar\_proofs} |
55297
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1174 |
Specifies whether Isar proofs should be output in addition to one-line proofs. |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1175 |
The construction of Isar proof is still experimental and may sometimes fail; |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1176 |
however, when they succeed they are usually faster and more intelligible than |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1177 |
one-line proofs. If the option is set to \textit{smart} (the default), Isar |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1178 |
proofs are only generated when no working one-line proof is available. |
36926 | 1179 |
|
57784 | 1180 |
\opdefault{compress}{int}{smart} |
49919 | 1181 |
Specifies the granularity of the generated Isar proofs if \textit{isar\_proofs} |
51190
2654b3965c8d
made "isar_proofs" a 3-way option, to provide a way to totally disable isar_proofs if desired
blanchet
parents:
51189
diff
changeset
|
1182 |
is explicitly enabled. A value of $n$ indicates that each Isar proof step should |
57784 | 1183 |
correspond to a group of up to $n$ consecutive proof steps in the ATP proof. If |
1184 |
the option is set to \textit{smart} (the default), the compression factor is 10 |
|
1185 |
if the \textit{isar\_proofs} option is explicitly enabled; otherwise, it is |
|
1186 |
$\infty$. |
|
51189 | 1187 |
|
57245 | 1188 |
\optrueonly{dont\_compress} |
57784 | 1189 |
Alias for ``\textit{compress} = 1''. |
51189 | 1190 |
|
57245 | 1191 |
\optrue{try0}{dont\_try0} |
53765 | 1192 |
Specifies whether standard proof methods such as \textit{auto} and |
55289 | 1193 |
\textit{blast} should be tried as alternatives to \textit{metis} in Isar proofs. |
1194 |
The collection of methods is roughly the same as for the \textbf{try0} command. |
|
1195 |
||
71931
0c8a9c028304
simplified 'smt_proofs' option to be a binary option (instead of ternary), now that SMT proofs are accepted in the AFP (done with Martin Desharnais)
blanchet
parents:
70940
diff
changeset
|
1196 |
\optrue{smt\_proofs}{no\_smt\_proofs} |
61283 | 1197 |
Specifies whether the \textit{smt} proof method should be tried in addition to |
71931
0c8a9c028304
simplified 'smt_proofs' option to be a binary option (instead of ternary), now that SMT proofs are accepted in the AFP (done with Martin Desharnais)
blanchet
parents:
70940
diff
changeset
|
1198 |
Isabelle's built-in proof methods. |
36926 | 1199 |
\end{enum} |
1200 |
||
68565 | 1201 |
|
57241 | 1202 |
\subsection{Regression Testing} |
1203 |
\label{regression-testing} |
|
38984 | 1204 |
|
1205 |
\begin{enum} |
|
1206 |
\opnodefault{expect}{string} |
|
1207 |
Specifies the expected outcome, which must be one of the following: |
|
36926 | 1208 |
|
1209 |
\begin{enum} |
|
46300 | 1210 |
\item[\labelitemi] \textbf{\textit{some}:} Sledgehammer found a proof. |
45516 | 1211 |
\item[\labelitemi] \textbf{\textit{none}:} Sledgehammer found no proof. |
1212 |
\item[\labelitemi] \textbf{\textit{timeout}:} Sledgehammer timed out. |
|
1213 |
\item[\labelitemi] \textbf{\textit{unknown}:} Sledgehammer encountered some |
|
40203 | 1214 |
problem. |
38984 | 1215 |
\end{enum} |
1216 |
||
61317 | 1217 |
Sledgehammer emits an error if the actual outcome differs from the expected outcome. This option is |
1218 |
useful for regression testing. |
|
38984 | 1219 |
|
1220 |
\nopagebreak |
|
61317 | 1221 |
{\small See also \textit{timeout} (\S\ref{timeouts}).} |
43038 | 1222 |
\end{enum} |
1223 |
||
68565 | 1224 |
|
43038 | 1225 |
\subsection{Timeouts} |
1226 |
\label{timeouts} |
|
1227 |
||
1228 |
\begin{enum} |
|
54816
10d48c2a3e32
made timeouts in Sledgehammer not be 'option's -- simplified lots of code
blanchet
parents:
54788
diff
changeset
|
1229 |
\opdefault{timeout}{float}{\upshape 30} |
43038 | 1230 |
Specifies the maximum number of seconds that the automatic provers should spend |
1231 |
searching for a proof. This excludes problem preparation and is a soft limit. |
|
1232 |
||
57719 | 1233 |
\opdefault{preplay\_timeout}{float}{\upshape 1} |
55297
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1234 |
Specifies the maximum number of seconds that \textit{metis} or other proof |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1235 |
methods should spend trying to ``preplay'' the found proof. If this option |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1236 |
is set to 0, no preplaying takes place, and no timing information is displayed |
1dfcd49f5dcb
renamed 'smt' option 'smt_proofs' to avoid clash with 'smt' prover
blanchet
parents:
55290
diff
changeset
|
1237 |
next to the suggested proof method calls. |
45708
7c8bed80301f
updated Sledgehammer docs with new/renamed options
blanchet
parents:
45555
diff
changeset
|
1238 |
|
7c8bed80301f
updated Sledgehammer docs with new/renamed options
blanchet
parents:
45555
diff
changeset
|
1239 |
\nopagebreak |
7c8bed80301f
updated Sledgehammer docs with new/renamed options
blanchet
parents:
45555
diff
changeset
|
1240 |
{\small See also \textit{minimize} (\S\ref{mode-of-operation}).} |
47036 | 1241 |
|
1242 |
\optrueonly{dont\_preplay} |
|
1243 |
Alias for ``\textit{preplay\_timeout} = 0''. |
|
1244 |
||
36926 | 1245 |
\end{enum} |
1246 |
||
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1247 |
\section{Mirabelle Testing Tool} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1248 |
\label{mirabelle} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1249 |
|
72404 | 1250 |
The \texttt{isabelle mirabelle} tool executes Sledgehammer or other advisory |
1251 |
tools (e.g., Nitpick) or tactics (e.g., \textit{auto}) on all subgoals emering |
|
1252 |
in a theory. It is typically used to measure the success rate of a proof tool |
|
1253 |
on some benchmark. Its command-line usage is as follows: |
|
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1254 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1255 |
{\small |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1256 |
\begin{verbatim} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1257 |
isabelle mirabelle [OPTIONS] ACTIONS FILES |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1258 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1259 |
Options are: |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1260 |
-L LOGIC parent logic to use (default HOL) |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1261 |
-O DIR output directory for test data (default None) |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1262 |
-S FILE user-provided setup file (no actions required) |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1263 |
-T THEORY parent theory to use (default Main) |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1264 |
-d DIR include session directory |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1265 |
-q be quiet (suppress output of Isabelle process) |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1266 |
-t TIMEOUT timeout for each action in seconds (default 30) |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1267 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1268 |
Apply the given actions at all proof steps in the given theory |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1269 |
files. |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1270 |
\end{verbatim} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1271 |
} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1272 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1273 |
Option \texttt{-L LOGIC} specifies the parent session to use. This is often a |
72404 | 1274 |
logic (e.g., \texttt{Pure}, \texttt{HOL}) but may be any session (e.g., from |
1275 |
the AFP). Using multiple sessions is not supported. If a theory A needs to |
|
1276 |
import theories from multiple sessions, this limitation can be overcome as |
|
1277 |
follows: |
|
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1278 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1279 |
\begin{enumerate} |
72404 | 1280 |
\item Define a custom session \texttt{S} with a single theory \texttt{B}. |
1281 |
\item Move all imports from \texttt{A} to \texttt{B}. |
|
1282 |
\item Build the heap image of \texttt{S}. |
|
1283 |
\item Import \texttt{S.B} from theory \texttt{A}. |
|
1284 |
\item Execute Mirabelle with \texttt{C} as parent logic (i.e., with |
|
1285 |
\texttt{-L S}). |
|
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1286 |
\end{enumerate} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1287 |
|
72404 | 1288 |
Option \texttt{-O DIR} specifies the output directory, which is created if |
1289 |
needed. In this directory, one log file per theory records the position of each |
|
1290 |
tested subgoal and the result of executing the action. |
|
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1291 |
|
72404 | 1292 |
Option \texttt{-t TIMEOUT} specifies a generic timeout that the actions may |
1293 |
interpret differently. |
|
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1294 |
|
72404 | 1295 |
More specific documentation about the \texttt{ACTIONS} and \texttt{FILES} |
1296 |
parameters and their corresponding options can be found in the Isabelle tool |
|
1297 |
usage by entering \texttt{isabelle mirabelle -?} on the command line. |
|
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1298 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1299 |
\subsection{Example of Benchmarking Sledgehammer} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1300 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1301 |
\begin{verbatim} |
72404 | 1302 |
isabelle mirabelle -O output/ \ |
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1303 |
sledgehammer[prover=e,prover_timeout=10] Huffman.thy |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1304 |
\end{verbatim} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1305 |
|
72592 | 1306 |
This command specifies Sledgehammer as the action, using the E prover with a |
72589 | 1307 |
timeout of 10 seconds. The results are written to \texttt{output/Huffman.log}. |
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1308 |
|
72404 | 1309 |
\subsection{Example of Benchmarking Another Tool} |
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1310 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1311 |
\begin{verbatim} |
72404 | 1312 |
isabelle mirabelle -O output/ -t 10 try0 Huffman.thy |
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1313 |
\end{verbatim} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1314 |
|
72404 | 1315 |
This command specifies the \textbf{try0} command as the action, with a timeout |
72589 | 1316 |
of 10 seconds. The results are written to \texttt{output/Huffman.log}. |
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1317 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1318 |
\subsection{Example of Generating TPTP Files} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1319 |
|
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1320 |
\begin{verbatim} |
72404 | 1321 |
isabelle mirabelle -O output/ \ |
1322 |
sledgehammer[prover=e,prover_timeout=1,keep=/tptp/files/] \ |
|
1323 |
Huffman.thy |
|
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1324 |
\end{verbatim} |
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1325 |
|
72404 | 1326 |
This command generates TPTP files using Sledgehammer. Since the file is |
1327 |
generated at the very beginning of every Sledgehammer invocation, a timeout of |
|
1328 |
one second making the prover fail faster speeds up processing the theory. The |
|
1329 |
results are written in the specified directory (\texttt{/tptp/files/}), |
|
1330 |
which must exist beforehand. A TPTP file is generated for each subgoal. |
|
72342
4195e75a92ef
[mirabelle] add initial documentation in Sledgehammer's doc
desharna
parents:
72319
diff
changeset
|
1331 |
|
36926 | 1332 |
\let\em=\sl |
48962
a1acc1cb0271
more standard document preparation within session context;
wenzelm
parents:
48803
diff
changeset
|
1333 |
\bibliography{manual}{} |
36926 | 1334 |
\bibliographystyle{abbrv} |
1335 |
||
1336 |
\end{document} |