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