7046
|
1 |
|
7297
|
2 |
\chapter{Basic Concepts}\label{ch:basics}
|
|
3 |
|
|
4 |
Isabelle/Isar offers two main improvements over classic Isabelle:
|
|
5 |
\begin{enumerate}
|
7466
|
6 |
\item A new \emph{theory format}, occasionally referred to as ``new-style
|
|
7 |
theories'', supporting interactive development with unlimited undo
|
|
8 |
operation.
|
7315
|
9 |
\item A \emph{formal proof language} designed to support intelligible
|
|
10 |
semi-automated reasoning. Rather than putting together tactic scripts, the
|
|
11 |
author is enabled to express the reasoning in way that is close to
|
|
12 |
mathematical practice.
|
7297
|
13 |
\end{enumerate}
|
7046
|
14 |
|
7297
|
15 |
The Isar proof language is embedded into the new theory format as a proper
|
|
16 |
sub-language. Proof mode is entered by stating some $\THEOREMNAME$ or
|
7466
|
17 |
$\LEMMANAME$ at the theory level, and left with the conclusion of the proof
|
|
18 |
(via $\QEDNAME$ etc.). Some theory extension mechanisms require proof as
|
|
19 |
well, such as the HOL $\isarkeyword{typedef}$ which demands non-emptiness of
|
|
20 |
the representing sets.
|
7297
|
21 |
|
|
22 |
New-style theory files may still be associated with an ML file consisting of
|
7315
|
23 |
plain old tactic scripts. There is no longer any ML binding generated for the
|
7466
|
24 |
theory and theorems, though. ML functions \texttt{theory}, \texttt{thm}, and
|
|
25 |
\texttt{thms} retrieve this information \cite{isabelle-ref}. Nevertheless,
|
|
26 |
migration between classic Isabelle and Isabelle/Isar is relatively easy. Thus
|
|
27 |
users may start to benefit from interactive theory development even before
|
|
28 |
they have any idea of the Isar proof language.
|
7315
|
29 |
|
|
30 |
\begin{warn}
|
7466
|
31 |
Currently Proof~General does \emph{not} support mixed interactive
|
|
32 |
development of classic Isabelle theory files and tactic scripts together
|
|
33 |
with Isar documents at the same time. The ``\texttt{isa}'' and
|
|
34 |
``\texttt{isar}'' versions of Proof~General are handled as two different
|
|
35 |
theorem proving systems, only one may be active at the same time.
|
7315
|
36 |
\end{warn}
|
7297
|
37 |
|
7466
|
38 |
Porting of existing tactic scripts is best done by running two separate
|
|
39 |
Proof~General sessions, one for replaying the old script and the other for the
|
|
40 |
emerging Isabelle/Isar document.
|
|
41 |
|
7046
|
42 |
|
|
43 |
\section{The Isar proof language}
|
|
44 |
|
7466
|
45 |
Sorry, this important section has not been written yet! Refer to
|
7297
|
46 |
\cite{Wenzel:1999:TPHOL} for the time being.
|
|
47 |
|
|
48 |
\subsection{Commands}
|
|
49 |
|
|
50 |
\subsubsection{Isar primitives}
|
|
51 |
|
|
52 |
\subsubsection{Derived elements}
|
|
53 |
|
7135
|
54 |
|
|
55 |
\subsection{Methods}
|
7046
|
56 |
|
|
57 |
\subsection{Attributes}
|
|
58 |
|
|
59 |
|
|
60 |
%%% Local Variables:
|
|
61 |
%%% mode: latex
|
|
62 |
%%% TeX-master: "isar-ref"
|
|
63 |
%%% End:
|