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