doc-src/TutorialI/preface.tex
author paulson
Mon, 01 Sep 2003 15:07:43 +0200
changeset 14179 04f905c13502
parent 13141 f4ed10eaaff8
child 14296 bcba1d67f854
permissions -rw-r--r--
Corrections due to John Matthews
paulson@11408
     1
\chapter*{Preface}
paulson@11408
     2
\markboth{Preface}{Preface}
paulson@11408
     3
paulson@12539
     4
This volume is a self-contained introduction to interactive proof
paulson@12813
     5
in higher-order logic (HOL), using the proof assistant Isabelle 2002. 
paulson@12539
     6
Compared with existing Isabelle documentation,
paulson@12539
     7
it provides a direct route into higher-order logic, which most people
paulson@12539
     8
prefer these days. It bypasses first-order logic and minimizes
paulson@11408
     9
discussion of meta-theory.  It is written for potential users rather
paulson@11408
    10
than for our colleagues in the research world.
paulson@11408
    11
paulson@11450
    12
Another departure from previous documentation is that we describe Markus
paulson@11450
    13
Wenzel's proof script notation instead of ML tactic scripts.  The latter
paulson@11408
    14
make it easier to introduce new tactics on the fly, but hardly anybody
paulson@11408
    15
does that.  Wenzel's dedicated syntax is elegant, replacing for example
paulson@11408
    16
eight simplification tactics with a single method, namely \isa{simp},
paulson@11408
    17
with associated options.
paulson@11408
    18
paulson@12539
    19
The book has three parts.  
paulson@12539
    20
\begin{itemize}
paulson@12539
    21
\item 
wenzelm@12669
    22
The first part, \textbf{Elementary Techniques},
paulson@12539
    23
shows how to model functional programs in higher-order logic.  Early
paulson@12539
    24
examples involve lists and the natural numbers.  Most proofs
paulson@12539
    25
are two steps long, consisting of induction on a chosen variable
paulson@12539
    26
followed by the \isa{auto} tactic.  But even this elementary part
paulson@12539
    27
covers such advanced topics as nested and mutual recursion.
paulson@12539
    28
\item 
paulson@12539
    29
The second part, \textbf{Logic and Sets}, presents a collection of
paulson@12539
    30
lower-level tactics that you can use to apply rules selectively.  It
paulson@12539
    31
also describes Isabelle/HOL's treatment of sets, functions and
paulson@12539
    32
relations and explains how to define sets inductively.  One of the
paulson@12539
    33
examples concerns the theory of model checking, and another is drawn
paulson@12539
    34
from a classic textbook on formal languages.
paulson@12539
    35
\item 
paulson@12539
    36
The third part, \textbf{Advanced Material}, describes a variety of
paulson@12539
    37
other topics.  Among these are the real numbers, records and
paulson@12539
    38
overloading.  Esoteric techniques are described involving induction and
paulson@12539
    39
recursion.  A whole chapter is devoted to an extended example: the
paulson@12539
    40
verification of a security protocol.
paulson@12539
    41
\end{itemize}
paulson@12539
    42
nipkow@12327
    43
The typesetting relies on Wenzel's theory presentation tools.  An
nipkow@12327
    44
annotated source file is run, typesetting the theory
nipkow@12327
    45
% and any requested Isabelle responses
wenzelm@12646
    46
in the form of a \LaTeX\ source file.  This book is derived almost entirely
wenzelm@12646
    47
from output generated in this way.  The final chapter of Part~I explains how
wenzelm@12646
    48
users may produce their own formal documents in a similar fashion.
paulson@11408
    49
wenzelm@12641
    50
Isabelle's \hfootref{http://isabelle.in.tum.de/}{web site} contains links to
wenzelm@12641
    51
the download area and to documentation and other information.  Most Isabelle
wenzelm@12641
    52
sessions are now run from within David Aspinall's\index{Aspinall, David}
wenzelm@12641
    53
wonderful user interface, \hfootref{http://www.proofgeneral.org/}{Proof
wenzelm@12641
    54
  General}, even together with the
wenzelm@13141
    55
\hfootref{http://x-symbol.sourceforge.net}{X-Symbol} package for XEmacs.  This
wenzelm@13141
    56
book says very little about Proof General, which has its own documentation.
wenzelm@13141
    57
In order to run Isabelle, you will need a Standard ML compiler.  We recommend
wenzelm@13141
    58
\hfootref{http://www.polyml.org/}{Poly/ML}, which is free and gives the best
wenzelm@13141
    59
performance.  The other fully supported compiler is
wenzelm@12641
    60
\hfootref{http://cm.bell-labs.com/cm/cs/what/smlnj/index.html}{Standard ML of
wenzelm@12641
    61
  New Jersey}.
paulson@12539
    62
paulson@11408
    63
This tutorial owes a lot to the constant discussions with and the valuable
nipkow@11547
    64
feedback from the Isabelle group at Munich: Stefan Berghofer, Olaf
nipkow@11547
    65
M{\"u}ller, Wolfgang Naraschewski, David von Oheimb, Leonor Prensa Nieto,
paulson@12812
    66
Cornelia Pusch, Norbert Schirmer and Martin Strecker. Stephan
nipkow@11547
    67
Merz was also kind enough to read and comment on a draft version.  We
paulson@14179
    68
received comments from Stefano Bistarelli, Gergely Buday, John Matthews
paulson@14179
    69
and Tanja Vos.
paulson@11408
    70
nipkow@11547
    71
The research has been funded by many sources, including the {\sc dfg} grants
nipkow@11547
    72
Ni~491/2, Ni~491/3, Ni~491/4 and the {\sc epsrc} grants GR\slash K57381,
nipkow@11547
    73
GR\slash K77051, GR\slash M75440, GR\slash R01156\slash 01 and by the
nipkow@11547
    74
\textsc{esprit} working groups 21900 and IST-1999-29001 (the \emph{Types}
nipkow@11547
    75
project).