doc-src/Intro/intro.tex
author wenzelm
Fri, 16 Jul 1999 22:24:42 +0200
changeset 7024 44bd3c094fd6
parent 6611 08dfd050b373
child 7827 c9c615d970db
permissions -rw-r--r--
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3096
ccc2c92bb232 Updated to LaTeX 2e
berghofe
parents: 2976
diff changeset
     1
\documentclass[12pt]{article}
5165
ac83801ab294 added pdfsetup and isabelle logo;
wenzelm
parents: 4239
diff changeset
     2
\usepackage{graphicx,a4,../iman,../extra,../proof,../pdfsetup}
2656
71097a167f0b made a bit more robust;
wenzelm
parents: 1878
diff changeset
     3
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     4
%% $Id$
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     5
%% run    bibtex intro         to prepare bibliography
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     6
%% run    ../sedindex intro    to prepare index file
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     7
%prth *(\(.*\));          \1;      
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     8
%{\\out \(.*\)}          {\\out val it = "\1" : thm}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     9
6611
08dfd050b373 pdf setup;
wenzelm
parents: 6592
diff changeset
    10
\title{\includegraphics[scale=0.5]{isabelle} \\[4ex] Introduction to Isabelle}   
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    11
\author{{\em Lawrence C. Paulson}\\
3127
4cc2fe62f7c3 New acknowledgements; no Fast_tac
paulson
parents: 3096
diff changeset
    12
        Computer Laboratory \\ University of Cambridge \\
4cc2fe62f7c3 New acknowledgements; no Fast_tac
paulson
parents: 3096
diff changeset
    13
        \texttt{lcp@cl.cam.ac.uk}\\[3ex] 
4cc2fe62f7c3 New acknowledgements; no Fast_tac
paulson
parents: 3096
diff changeset
    14
        With Contributions by Tobias Nipkow and Markus Wenzel
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    15
}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    16
\makeindex
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    17
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    18
\underscoreoff
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    19
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    20
\setcounter{secnumdepth}{2} \setcounter{tocdepth}{2}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    21
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    22
\sloppy
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    23
\binperiod     %%%treat . like a binary operator
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    24
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    25
\newcommand\qeq{\stackrel{?}{\equiv}}  %for disagreement pairs in unification
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    26
\newcommand{\nand}{\mathbin{\lnot\&}} 
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    27
\newcommand{\xor}{\mathbin{\#}}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    28
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    29
\pagenumbering{roman} 
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    30
\begin{document}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    31
\pagestyle{empty}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    32
\begin{titlepage}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    33
\maketitle 
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    34
\thispagestyle{empty}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    35
\vfill
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    36
{\small Copyright \copyright{} \number\year{} by Lawrence C. Paulson}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    37
\end{titlepage}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    38
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    39
\pagestyle{headings}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    40
\part*{Preface}
1878
ac8e534b4834 Updated BibTeX identifiers
paulson
parents: 1866
diff changeset
    41
\index{Isabelle!overview} \index{Isabelle!object-logics supported}
ac8e534b4834 Updated BibTeX identifiers
paulson
parents: 1866
diff changeset
    42
Isabelle~\cite{paulson-natural,paulson-found,paulson700} is a generic theorem
ac8e534b4834 Updated BibTeX identifiers
paulson
parents: 1866
diff changeset
    43
prover.  It has been instantiated to support reasoning in several
ac8e534b4834 Updated BibTeX identifiers
paulson
parents: 1866
diff changeset
    44
object-logics:
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    45
\begin{itemize}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    46
\item first-order logic, constructive and classical versions
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    47
\item higher-order logic, similar to that of Gordon's {\sc
348
1f5a94209c97 post-CRC corrections
lcp
parents: 311
diff changeset
    48
hol}~\cite{mgordon-hol}
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    49
\item Zermelo-Fraenkel set theory~\cite{suppes72}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    50
\item an extensional version of Martin-L\"of's Type Theory~\cite{nordstrom90}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    51
\item the classical first-order sequent calculus, {\sc lk}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    52
\item the modal logics $T$, $S4$, and $S43$
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    53
\item the Logic for Computable Functions~\cite{paulson87}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    54
\end{itemize}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    55
A logic's syntax and inference rules are specified declaratively; this
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    56
allows single-step proof construction.  Isabelle provides control
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    57
structures for expressing search procedures.  Isabelle also provides
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    58
several generic tools, such as simplifiers and classical theorem provers,
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    59
which can be applied to object-logics.
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    60
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    61
\index{ML}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    62
Isabelle is a large system, but beginners can get by with a small
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    63
repertoire of commands and a basic knowledge of how Isabelle works.  Some
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    64
knowledge of Standard~\ML{} is essential, because \ML{} is Isabelle's user
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    65
interface.  Advanced Isabelle theorem proving can involve writing \ML{}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    66
code, possibly with Isabelle's sources at hand.  My book
6592
c120262044b6 Now uses manual.bib; some references updated
paulson
parents: 5170
diff changeset
    67
on~\ML{}~\cite{paulson-ml2} covers much material connected with Isabelle,
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    68
including a simple theorem prover.  Users must be familiar with logic as
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    69
used in computer science; there are many good
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    70
texts~\cite{galton90,reeves90}.
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    71
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    72
\index{LCF}
348
1f5a94209c97 post-CRC corrections
lcp
parents: 311
diff changeset
    73
{\sc lcf}, developed by Robin Milner and colleagues~\cite{mgordon79}, is an
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    74
ancestor of {\sc hol}, Nuprl, and several other systems.  Isabelle borrows
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    75
ideas from {\sc lcf}: formulae are~\ML{} values; theorems belong to an
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    76
abstract type; tactics and tacticals support backward proof.  But {\sc lcf}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    77
represents object-level rules by functions, while Isabelle represents them
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    78
by terms.  You may find my other writings~\cite{paulson87,paulson-handbook}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    79
helpful in understanding the relationship between {\sc lcf} and Isabelle.
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    80
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    81
\index{Isabelle!release history} Isabelle was first distributed in 1986.
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    82
The 1987 version introduced a higher-order meta-logic with an improved
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    83
treatment of quantifiers.  The 1988 version added limited polymorphism and
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    84
support for natural deduction.  The 1989 version included a parser and
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    85
pretty printer generator.  The 1992 version introduced type classes, to
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    86
support many-sorted and higher-order logics.  The current version provides
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    87
greater support for theories and is much faster.  Isabelle is still under
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    88
development and will continue to change.
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    89
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    90
\subsubsection*{Overview} 
296
e1f6cd9f682e revisions to first Springer draft
lcp
parents: 184
diff changeset
    91
This manual consists of three parts.  Part~I discusses the Isabelle's
e1f6cd9f682e revisions to first Springer draft
lcp
parents: 184
diff changeset
    92
foundations.  Part~II, presents simple on-line sessions, starting with
e1f6cd9f682e revisions to first Springer draft
lcp
parents: 184
diff changeset
    93
forward proof.  It also covers basic tactics and tacticals, and some
e1f6cd9f682e revisions to first Springer draft
lcp
parents: 184
diff changeset
    94
commands for invoking them.  Part~III contains further examples for users
e1f6cd9f682e revisions to first Springer draft
lcp
parents: 184
diff changeset
    95
with a bit of experience.  It explains how to derive rules define theories,
e1f6cd9f682e revisions to first Springer draft
lcp
parents: 184
diff changeset
    96
and concludes with an extended example: a Prolog interpreter.
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    97
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    98
Isabelle's Reference Manual and Object-Logics manual contain more details.
216d6ed87399 Initial revision
lcp
parents:
diff changeset
    99
They assume familiarity with the concepts presented here.
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   100
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   101
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   102
\subsubsection*{Acknowledgements} 
311
3fb8cdb32e10 penultimate Springer draft
lcp
parents: 296
diff changeset
   103
Tobias Nipkow contributed most of the section on defining theories.
3127
4cc2fe62f7c3 New acknowledgements; no Fast_tac
paulson
parents: 3096
diff changeset
   104
Stefan Berghofer and Sara Kalvala suggested improvements.
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   106
Tobias Nipkow has made immense contributions to Isabelle, including the
184
236b655114a1 Changed Acknowledgements
lcp
parents: 105
diff changeset
   107
parser generator, type classes, and the simplifier.  Carsten Clasohm and
236b655114a1 Changed Acknowledgements
lcp
parents: 105
diff changeset
   108
Markus Wenzel made major contributions; Sonia Mahjoub and Karin Nimmermann
236b655114a1 Changed Acknowledgements
lcp
parents: 105
diff changeset
   109
also helped.  Isabelle was developed using Dave Matthews's Standard~{\sc
236b655114a1 Changed Acknowledgements
lcp
parents: 105
diff changeset
   110
  ml} compiler, Poly/{\sc ml}.  Many people have contributed to Isabelle's
236b655114a1 Changed Acknowledgements
lcp
parents: 105
diff changeset
   111
standard object-logics, including Martin Coen, Philippe de Groote, Philippe
3127
4cc2fe62f7c3 New acknowledgements; no Fast_tac
paulson
parents: 3096
diff changeset
   112
No\"el.  The research has been funded by the EPSRC (grants
4cc2fe62f7c3 New acknowledgements; no Fast_tac
paulson
parents: 3096
diff changeset
   113
GR/G53279, GR/H40570, GR/K57381, GR/K77051)
4cc2fe62f7c3 New acknowledgements; no Fast_tac
paulson
parents: 3096
diff changeset
   114
and by ESPRIT (projects 3245: Logical Frameworks, and 6453: Types).
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   115
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   116
\newpage
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   117
\pagestyle{plain} \tableofcontents 
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   118
\newpage
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   119
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   120
\newfont{\sanssi}{cmssi12}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   121
\vspace*{2.5cm}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   122
\begin{quote}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   123
\raggedleft
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   124
{\sanssi
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   125
You can only find truth with logic\\
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   126
if you have already found truth without it.}\\
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   127
\bigskip
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   128
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   129
G.K. Chesterton, {\em The Man who was Orthodox}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   130
\end{quote}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   131
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   132
\clearfirst  \pagestyle{headings}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   133
\include{foundations}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   134
\include{getting}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   135
\include{advanced}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   136
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   137
\bibliographystyle{plain} \small\raggedright\frenchspacing
6592
c120262044b6 Now uses manual.bib; some references updated
paulson
parents: 5170
diff changeset
   138
\bibliography{../manual}
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   139
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   140
\input{intro.ind}
216d6ed87399 Initial revision
lcp
parents:
diff changeset
   141
\end{document}