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