doc-src/IsarRef/Thy/document/Preface.tex
author blanchet
Fri, 24 Feb 2012 11:23:34 +0100
changeset 46641 8801a24f9e9a
parent 42915 f35aae36cad0
child 48957 c04001b3a753
permissions -rw-r--r--
renamed 'try_methods' to 'try0'
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     1
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     2
\begin{isabellebody}%
42915
f35aae36cad0 turned "Overview" into "Preface" (similar to doc-src/Intro/intro.tex);
wenzelm
parents: 42651
diff changeset
     3
\def\isabellecontext{Preface}%
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     4
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     5
\isadelimtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     6
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     7
\endisadelimtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     8
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     9
\isatagtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    10
\isacommand{theory}\isamarkupfalse%
42915
f35aae36cad0 turned "Overview" into "Preface" (similar to doc-src/Intro/intro.tex);
wenzelm
parents: 42651
diff changeset
    11
\ Preface\isanewline
42651
e3fdb7c96be5 formal Base theory;
wenzelm
parents: 40406
diff changeset
    12
\isakeyword{imports}\ Base\ Main\isanewline
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    13
\isakeyword{begin}%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    14
\endisatagtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    15
{\isafoldtheory}%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    16
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    17
\isadelimtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    18
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    19
\endisadelimtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    20
%
42915
f35aae36cad0 turned "Overview" into "Preface" (similar to doc-src/Intro/intro.tex);
wenzelm
parents: 42651
diff changeset
    21
\isamarkupchapter{Preface%
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    22
}
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    23
\isamarkuptrue%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    24
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    25
\begin{isamarkuptext}%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    26
The \emph{Isabelle} system essentially provides a generic
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    27
  infrastructure for building deductive systems (programmed in
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    28
  Standard ML), with a special focus on interactive theorem proving in
29746
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    29
  higher-order logics.  Many years ago, even end-users would refer to
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    30
  certain ML functions (goal commands, tactics, tacticals etc.) to
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    31
  pursue their everyday theorem proving tasks.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    32
  
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    33
  In contrast \emph{Isar} provides an interpreted language environment
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    34
  of its own, which has been specifically tailored for the needs of
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    35
  theory and proof development.  Compared to raw ML, the Isabelle/Isar
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    36
  top-level provides a more robust and comfortable development
29746
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    37
  platform, with proper support for theory development graphs, managed
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    38
  transactions with unlimited undo etc.  The Isabelle/Isar version of
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    39
  the \emph{Proof~General} user interface
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    40
  \cite{proofgeneral,Aspinall:TACAS:2000} provides a decent front-end
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    41
  for interactive theory and proof development in this advanced
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    42
  theorem proving environment, even though it is somewhat biased
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    43
  towards old-style proof scripts.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    44
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    45
  \medskip Apart from the technical advances over bare-bones ML
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    46
  programming, the main purpose of the Isar language is to provide a
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    47
  conceptually different view on machine-checked proofs
29746
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    48
  \cite{Wenzel:1999:TPHOL,Wenzel-PhD}.  \emph{Isar} stands for
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    49
  \emph{Intelligible semi-automated reasoning}.  Drawing from both the
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    50
  traditions of informal mathematical proof texts and high-level
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    51
  programming languages, Isar offers a versatile environment for
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    52
  structured formal proof documents.  Thus properly written Isar
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    53
  proofs become accessible to a broader audience than unstructured
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    54
  tactic scripts (which typically only provide operational information
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    55
  for the machine).  Writing human-readable proof texts certainly
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    56
  requires some additional efforts by the writer to achieve a good
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    57
  presentation, both of formal and informal parts of the text.  On the
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    58
  other hand, human-readable formal texts gain some value in their own
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    59
  right, independently of the mechanic proof-checking process.
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    60
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    61
  Despite its grand design of structured proof texts, Isar is able to
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    62
  assimilate the old tactical style as an ``improper'' sub-language.
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    63
  This provides an easy upgrade path for existing tactic scripts, as
29746
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    64
  well as some means for interactive experimentation and debugging of
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    65
  structured proofs.  Isabelle/Isar supports a broad range of proof
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    66
  styles, both readable and unreadable ones.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    67
29717
51ed69c9422b updated generated files;
wenzelm
parents: 28505
diff changeset
    68
  \medskip The generic Isabelle/Isar framework (see
29746
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    69
  \chref{ch:isar-framework}) works reasonably well for any Isabelle
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    70
  object-logic that conforms to the natural deduction view of the
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    71
  Isabelle/Pure framework.  Specific language elements introduced by
533c27b43ee1 updated generated files;
wenzelm
parents: 29717
diff changeset
    72
  the major object-logics are described in \chref{ch:hol}
27057
ecbe1afe800b updated generated file;
wenzelm
parents: 27052
diff changeset
    73
  (Isabelle/HOL), \chref{ch:holcf} (Isabelle/HOLCF), and \chref{ch:zf}
ecbe1afe800b updated generated file;
wenzelm
parents: 27052
diff changeset
    74
  (Isabelle/ZF).  The main language elements are already provided by
ecbe1afe800b updated generated file;
wenzelm
parents: 27052
diff changeset
    75
  the Isabelle/Pure framework. Nevertheless, examples given in the
ecbe1afe800b updated generated file;
wenzelm
parents: 27052
diff changeset
    76
  generic parts will usually refer to Isabelle/HOL as well.
27042
8fcf19f2168b updated generated file;
wenzelm
parents: 27036
diff changeset
    77
8fcf19f2168b updated generated file;
wenzelm
parents: 27036
diff changeset
    78
  \medskip Isar commands may be either \emph{proper} document
8fcf19f2168b updated generated file;
wenzelm
parents: 27036
diff changeset
    79
  constructors, or \emph{improper commands}.  Some proof methods and
8fcf19f2168b updated generated file;
wenzelm
parents: 27036
diff changeset
    80
  attributes introduced later are classified as improper as well.
40406
313a24b66a8d updated generated files;
wenzelm
parents: 30242
diff changeset
    81
  Improper Isar language elements, which are marked by ``\isa{{\isaliteral{22}{\isachardoublequote}}\isaliteral{5C3C5E7375703E}{}\isactrlsup {\isaliteral{2A}{\isacharasterisk}}{\isaliteral{22}{\isachardoublequote}}}'' in the subsequent chapters; they are often helpful
27042
8fcf19f2168b updated generated file;
wenzelm
parents: 27036
diff changeset
    82
  when developing proof documents, but their use is discouraged for
8fcf19f2168b updated generated file;
wenzelm
parents: 27036
diff changeset
    83
  the final human-readable outcome.  Typical examples are diagnostic
8fcf19f2168b updated generated file;
wenzelm
parents: 27036
diff changeset
    84
  commands that print terms or theorems according to the current
8fcf19f2168b updated generated file;
wenzelm
parents: 27036
diff changeset
    85
  context; other commands emulate old-style tactical theorem proving.%
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    86
\end{isamarkuptext}%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    87
\isamarkuptrue%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    88
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    89
\isadelimtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    90
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    91
\endisadelimtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    92
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    93
\isatagtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    94
\isacommand{end}\isamarkupfalse%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    95
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    96
\endisatagtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    97
{\isafoldtheory}%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    98
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    99
\isadelimtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
   100
%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
   101
\endisadelimtheory
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
   102
\isanewline
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
   103
\end{isabellebody}%
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
   104
%%% Local Variables:
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
   105
%%% mode: latex
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
   106
%%% TeX-master: "root"
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
   107
%%% End: