doc-src/IsarRef/Thy/intro.thy
author wenzelm
Wed, 23 Apr 2008 12:13:08 +0200
changeset 26741 eb15fd4cd1ad
child 26760 2de4ba348f06
permissions -rw-r--r--
converted intro.tex to Thy/intro.thy;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26741
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     1
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     2
theory intro
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     3
imports CPure
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     4
begin
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     5
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     6
chapter {* Introduction *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     7
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     8
section {* Overview *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
     9
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    10
text {*
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    11
  The \emph{Isabelle} system essentially provides a generic
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    12
  infrastructure for building deductive systems (programmed in
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    13
  Standard ML), with a special focus on interactive theorem proving in
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    14
  higher-order logics.  In the olden days even end-users would refer
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    15
  to certain ML functions (goal commands, tactics, tacticals etc.) to
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    16
  pursue their everyday theorem proving tasks
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    17
  \cite{isabelle-intro,isabelle-ref}.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    18
  
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    19
  In contrast \emph{Isar} provides an interpreted language environment
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    20
  of its own, which has been specifically tailored for the needs of
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    21
  theory and proof development.  Compared to raw ML, the Isabelle/Isar
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    22
  top-level provides a more robust and comfortable development
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    23
  platform, with proper support for theory development graphs,
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    24
  single-step transactions with unlimited undo, etc.  The
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    25
  Isabelle/Isar version of the \emph{Proof~General} user interface
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    26
  \cite{proofgeneral,Aspinall:TACAS:2000} provides an adequate
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    27
  front-end for interactive theory and proof development in this
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    28
  advanced theorem proving environment.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    29
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    30
  \medskip Apart from the technical advances over bare-bones ML
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    31
  programming, the main purpose of the Isar language is to provide a
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    32
  conceptually different view on machine-checked proofs
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    33
  \cite{Wenzel:1999:TPHOL,Wenzel-PhD}.  ``Isar'' stands for
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    34
  ``Intelligible semi-automated reasoning''.  Drawing from both the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    35
  traditions of informal mathematical proof texts and high-level
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    36
  programming languages, Isar offers a versatile environment for
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    37
  structured formal proof documents.  Thus properly written Isar
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    38
  proofs become accessible to a broader audience than unstructured
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    39
  tactic scripts (which typically only provide operational information
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    40
  for the machine).  Writing human-readable proof texts certainly
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    41
  requires some additional efforts by the writer to achieve a good
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    42
  presentation, both of formal and informal parts of the text.  On the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    43
  other hand, human-readable formal texts gain some value in their own
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    44
  right, independently of the mechanic proof-checking process.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    45
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    46
  Despite its grand design of structured proof texts, Isar is able to
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    47
  assimilate the old tactical style as an ``improper'' sub-language.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    48
  This provides an easy upgrade path for existing tactic scripts, as
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    49
  well as additional means for interactive experimentation and
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    50
  debugging of structured proofs.  Isabelle/Isar supports a broad
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    51
  range of proof styles, both readable and unreadable ones.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    52
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    53
  \medskip The Isabelle/Isar framework is generic and should work
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    54
  reasonably well for any Isabelle object-logic that conforms to the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    55
  natural deduction view of the Isabelle/Pure framework.  Major
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    56
  Isabelle logics like HOL \cite{isabelle-HOL}, HOLCF
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    57
  \cite{MuellerNvOS99}, FOL \cite{isabelle-logics}, and ZF
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    58
  \cite{isabelle-ZF} have already been set up for end-users.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    59
*}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    60
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    61
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    62
section {* Quick start *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    63
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    64
subsection {* Terminal sessions *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    65
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    66
text {*
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    67
  Isar is already part of Isabelle.  The low-level \texttt{isabelle} binary
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    68
  provides option \texttt{-I} to run the Isabelle/Isar interaction loop at
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    69
  startup, rather than the raw ML top-level.  So the most basic way to do
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    70
  anything with Isabelle/Isar is as follows:
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    71
\begin{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    72
isabelle -I HOL\medskip
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    73
\out{> Welcome to Isabelle/HOL (Isabelle2005)}\medskip
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    74
theory Foo imports Main begin;
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    75
definition foo :: nat where "foo == 1";
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    76
lemma "0 < foo" by (simp add: foo_def);
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    77
end;
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    78
\end{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    79
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    80
  Note that any Isabelle/Isar command may be retracted by
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    81
  \texttt{undo}.  See the Isabelle/Isar Quick Reference
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    82
  (appendix~\ref{ap:refcard}) for a comprehensive overview of
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    83
  available commands and other language elements.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    84
*}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    85
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    86
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    87
subsection {* Proof General *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    88
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    89
text {*
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    90
  Plain TTY-based interaction as above used to be quite feasible with
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    91
  traditional tactic based theorem proving, but developing Isar
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    92
  documents really demands some better user-interface support.  The
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    93
  Proof~General environment by David Aspinall
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    94
  \cite{proofgeneral,Aspinall:TACAS:2000} offers a generic Emacs
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    95
  interface for interactive theorem provers that organizes all the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    96
  cut-and-paste and forward-backward walk through the text in a very
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    97
  neat way.  In Isabelle/Isar, the current position within a partial
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    98
  proof document is equally important than the actual proof state.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
    99
  Thus Proof~General provides the canonical working environment for
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   100
  Isabelle/Isar, both for getting acquainted (e.g.\ by replaying
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   101
  existing Isar documents) and for production work.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   102
*}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   103
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   104
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   105
subsubsection{* Proof~General as default Isabelle interface *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   106
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   107
text {*
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   108
  The Isabelle interface wrapper script provides an easy way to invoke
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   109
  Proof~General (including XEmacs or GNU Emacs).  The default
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   110
  configuration of Isabelle is smart enough to detect the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   111
  Proof~General distribution in several canonical places (e.g.\
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   112
  \texttt{\$ISABELLE_HOME/contrib/ProofGeneral}).  Thus the capital
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   113
  \texttt{Isabelle} executable would already refer to the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   114
  \texttt{ProofGeneral/isar} interface without further ado.  The
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   115
  Isabelle interface script provides several options; pass \verb,-?,
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   116
  to see its usage.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   117
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   118
  With the proper Isabelle interface setup, Isar documents may now be edited by
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   119
  visiting appropriate theory files, e.g.\ 
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   120
\begin{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   121
Isabelle \({\langle}isabellehome{\rangle}\)/src/HOL/Isar_examples/Summation.thy
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   122
\end{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   123
  Beginners may note the tool bar for navigating forward and backward
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   124
  through the text (this depends on the local Emacs installation).
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   125
  Consult the Proof~General documentation \cite{proofgeneral} for
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   126
  further basic command sequences, in particular ``\texttt{C-c
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   127
  C-return}'' and ``\texttt{C-c u}''.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   128
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   129
  \medskip Proof~General may be also configured manually by giving
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   130
  Isabelle settings like this (see also \cite{isabelle-sys}):
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   131
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   132
\begin{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   133
ISABELLE_INTERFACE=\$ISABELLE_HOME/contrib/ProofGeneral/isar/interface
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   134
PROOFGENERAL_OPTIONS=""
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   135
\end{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   136
  You may have to change \texttt{\$ISABELLE_HOME/contrib/ProofGeneral}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   137
  to the actual installation directory of Proof~General.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   138
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   139
  \medskip Apart from the Isabelle command line, defaults for
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   140
  interface options may be given by the \texttt{PROOFGENERAL_OPTIONS}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   141
  setting.  For example, the Emacs executable to be used may be
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   142
  configured in Isabelle's settings like this:
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   143
\begin{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   144
PROOFGENERAL_OPTIONS="-p xemacs-mule"  
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   145
\end{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   146
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   147
  Occasionally, a user's \verb,~/.emacs, file contains code that is
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   148
  incompatible with the (X)Emacs version used by Proof~General,
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   149
  causing the interface startup to fail prematurely.  Here the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   150
  \texttt{-u false} option helps to get the interface process up and
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   151
  running.  Note that additional Lisp customization code may reside in
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   152
  \texttt{proofgeneral-settings.el} of \texttt{\$ISABELLE_HOME/etc} or
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   153
  \texttt{\$ISABELLE_HOME_USER/etc}.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   154
*}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   155
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   156
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   157
subsubsection {* The X-Symbol package *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   158
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   159
text {*
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   160
  Proof~General incorporates a version of the Emacs X-Symbol package
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   161
  \cite{x-symbol}, which handles proper mathematical symbols displayed
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   162
  on screen.  Pass option \texttt{-x true} to the Isabelle interface
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   163
  script, or check the appropriate Proof~General menu setting by hand.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   164
  The main challenge of getting X-Symbol to work properly is the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   165
  underlying (semi-automated) X11 font setup.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   166
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   167
  \medskip Using proper mathematical symbols in Isabelle theories can
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   168
  be very convenient for readability of large formulas.  On the other
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   169
  hand, the plain ASCII sources easily become somewhat unintelligible.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   170
  For example, $\Longrightarrow$ would appear as \verb,\<Longrightarrow>, according
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   171
  the default set of Isabelle symbols.  Nevertheless, the Isabelle
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   172
  document preparation system (see \S\ref{sec:document-prep}) will be
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   173
  happy to print non-ASCII symbols properly.  It is even possible to
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   174
  invent additional notation beyond the display capabilities of Emacs
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   175
  and X-Symbol.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   176
*}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   177
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   178
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   179
section {* Isabelle/Isar theories *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   180
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   181
text {*
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   182
  Isabelle/Isar offers the following main improvements over classic
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   183
  Isabelle.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   184
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   185
  \begin{enumerate}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   186
  
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   187
  \item A \emph{theory format} that integrates specifications and
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   188
  proofs, supporting interactive development and unlimited undo
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   189
  operation.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   190
  
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   191
  \item A \emph{formal proof document language} designed to support
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   192
  intelligible semi-automated reasoning.  Instead of putting together
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   193
  unreadable tactic scripts, the author is enabled to express the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   194
  reasoning in way that is close to usual mathematical practice.  The
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   195
  old tactical style has been assimilated as ``improper'' language
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   196
  elements.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   197
  
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   198
  \item A simple document preparation system, for typesetting formal
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   199
  developments together with informal text.  The resulting
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   200
  hyper-linked PDF documents are equally well suited for WWW
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   201
  presentation and as printed copies.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   202
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   203
  \end{enumerate}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   204
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   205
  The Isar proof language is embedded into the new theory format as a
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   206
  proper sub-language.  Proof mode is entered by stating some
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   207
  $\THEOREMNAME$ or $\LEMMANAME$ at the theory level, and left again
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   208
  with the final conclusion (e.g.\ via $\QEDNAME$).  A few theory
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   209
  specification mechanisms also require some proof, such as HOL's
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   210
  $\isarkeyword{typedef}$ which demands non-emptiness of the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   211
  representing sets.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   212
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   213
  New-style theory files may still be associated with separate ML
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   214
  files consisting of plain old tactic scripts.  There is no longer
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   215
  any ML binding generated for the theory and theorems, though.  ML
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   216
  functions \texttt{theory}, \texttt{thm}, and \texttt{thms} retrieve
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   217
  this information from the context \cite{isabelle-ref}.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   218
  Nevertheless, migration between classic Isabelle and Isabelle/Isar
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   219
  is relatively easy.  Thus users may start to benefit from
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   220
  interactive theory development and document preparation, even before
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   221
  they have any idea of the Isar proof language at all.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   222
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   223
  Manual conversion of existing tactic scripts may be done by running
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   224
  two separate Proof~General sessions, one for replaying the old
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   225
  script and the other for the emerging Isabelle/Isar document.  Also
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   226
  note that Isar supports emulation commands and methods that support
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   227
  traditional tactic scripts within new-style theories, see
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   228
  appendix~\ref{ap:conv} for more information.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   229
*}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   230
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   231
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   232
subsection {* Document preparation \label{sec:document-prep} *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   233
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   234
text {*
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   235
  Isabelle/Isar provides a simple document preparation system based on
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   236
  existing {PDF-\LaTeX} technology, with full support of hyper-links
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   237
  (both local references and URLs), bookmarks, and thumbnails.  Thus
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   238
  the results are equally well suited for WWW browsing and as printed
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   239
  copies.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   240
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   241
  \medskip
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   242
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   243
  Isabelle generates {\LaTeX} output as part of the run of a
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   244
  \emph{logic session} (see also \cite{isabelle-sys}).  Getting
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   245
  started with a working configuration for common situations is quite
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   246
  easy by using the Isabelle \texttt{mkdir} and \texttt{make} tools.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   247
  First invoke
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   248
\begin{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   249
  isatool mkdir Foo
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   250
\end{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   251
  to initialize a separate directory for session \texttt{Foo} --- it
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   252
  is safe to experiment, since \texttt{isatool mkdir} never overwrites
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   253
  existing files.  Ensure that \texttt{Foo/ROOT.ML} holds ML commands
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   254
  to load all theories required for this session; furthermore
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   255
  \texttt{Foo/document/root.tex} should include any special {\LaTeX}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   256
  macro packages required for your document (the default is usually
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   257
  sufficient as a start).
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   258
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   259
  The session is controlled by a separate \texttt{IsaMakefile} (with
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   260
  crude source dependencies by default).  This file is located one
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   261
  level up from the \texttt{Foo} directory location.  Now invoke
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   262
\begin{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   263
  isatool make Foo
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   264
\end{ttbox}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   265
  to run the \texttt{Foo} session, with browser information and
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   266
  document preparation enabled.  Unless any errors are reported by
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   267
  Isabelle or {\LaTeX}, the output will appear inside the directory
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   268
  \texttt{ISABELLE_BROWSER_INFO}, as reported by the batch job in
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   269
  verbose mode.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   270
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   271
  \medskip You may also consider to tune the \texttt{usedir} options
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   272
  in \texttt{IsaMakefile}, for example to change the output format
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   273
  from \texttt{pdf} to \texttt{dvi}, or activate the \texttt{-D}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   274
  option to retain a second copy of the generated {\LaTeX} sources.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   275
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   276
  \medskip See \emph{The Isabelle System Manual} \cite{isabelle-sys}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   277
  for further details on Isabelle logic sessions and theory
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   278
  presentation.  The Isabelle/HOL tutorial \cite{isabelle-hol-book}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   279
  also covers theory presentation issues.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   280
*}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   281
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   282
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   283
subsection {* How to write Isar proofs anyway? \label{sec:isar-howto} *}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   284
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   285
text {*
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   286
  This is one of the key questions, of course.  First of all, the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   287
  tactic script emulation of Isabelle/Isar essentially provides a
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   288
  clarified version of the very same unstructured proof style of
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   289
  classic Isabelle.  Old-time users should quickly become acquainted
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   290
  with that (slightly degenerative) view of Isar.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   291
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   292
  Writing \emph{proper} Isar proof texts targeted at human readers is
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   293
  quite different, though.  Experienced users of the unstructured
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   294
  style may even have to unlearn some of their habits to master proof
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   295
  composition in Isar.  In contrast, new users with less experience in
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   296
  old-style tactical proving, but a good understanding of mathematical
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   297
  proof in general, often get started easier.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   298
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   299
  \medskip The present text really is only a reference manual on
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   300
  Isabelle/Isar, not a tutorial.  Nevertheless, we will attempt to
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   301
  give some clues of how the concepts introduced here may be put into
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   302
  practice.  Appendix~\ref{ap:refcard} provides a quick reference card
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   303
  of the most common Isabelle/Isar language elements.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   304
  Appendix~\ref{ap:conv} offers some practical hints on converting
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   305
  existing Isabelle theories and proof scripts to the new format
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   306
  (without restructuring proofs).
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   307
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   308
  Further issues concerning the Isar concepts are covered in the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   309
  literature
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   310
  \cite{Wenzel:1999:TPHOL,Wiedijk:2000:MV,Bauer-Wenzel:2000:HB,Bauer-Wenzel:2001}.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   311
  The author's PhD thesis \cite{Wenzel-PhD} presently provides the
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   312
  most complete exposition of Isar foundations, techniques, and
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   313
  applications.  A number of example applications are distributed with
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   314
  Isabelle, and available via the Isabelle WWW library (e.g.\
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   315
  \url{http://isabelle.in.tum.de/library/}).  The ``Archive of Formal
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   316
  Proofs'' \url{http://afp.sourceforge.net/} also provides plenty of
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   317
  examples, both in proper Isar proof style and unstructured tactic
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   318
  scripts.
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   319
*}
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   320
eb15fd4cd1ad converted intro.tex to Thy/intro.thy;
wenzelm
parents:
diff changeset
   321
end