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