doc-src/IsarRef/Thy/Preface.thy
author wenzelm
Tue, 31 May 2011 22:15:39 +0200
changeset 42915 f35aae36cad0
parent 42651 doc-src/IsarRef/Thy/Introduction.thy@e3fdb7c96be5
child 48957 c04001b3a753
permissions -rw-r--r--
turned "Overview" into "Preface" (similar to doc-src/Intro/intro.tex);
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42915
f35aae36cad0 turned "Overview" into "Preface" (similar to doc-src/Intro/intro.tex);
wenzelm
parents: 42651
diff changeset
     1
theory Preface
42651
e3fdb7c96be5 formal Base theory;
wenzelm
parents: 30242
diff changeset
     2
imports Base Main
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     3
begin
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     4
42915
f35aae36cad0 turned "Overview" into "Preface" (similar to doc-src/Intro/intro.tex);
wenzelm
parents: 42651
diff changeset
     5
chapter {* Preface *}
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     6
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     7
text {*
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     8
  The \emph{Isabelle} system essentially provides a generic
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     9
  infrastructure for building deductive systems (programmed in
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    10
  Standard ML), with a special focus on interactive theorem proving in
29743
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    11
  higher-order logics.  Many years ago, even end-users would refer to
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    12
  certain ML functions (goal commands, tactics, tacticals etc.) to
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    13
  pursue their everyday theorem proving tasks.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    14
  
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    15
  In contrast \emph{Isar} provides an interpreted language environment
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    16
  of its own, which has been specifically tailored for the needs of
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    17
  theory and proof development.  Compared to raw ML, the Isabelle/Isar
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    18
  top-level provides a more robust and comfortable development
29743
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    19
  platform, with proper support for theory development graphs, managed
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    20
  transactions with unlimited undo etc.  The Isabelle/Isar version of
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    21
  the \emph{Proof~General} user interface
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    22
  \cite{proofgeneral,Aspinall:TACAS:2000} provides a decent front-end
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    23
  for interactive theory and proof development in this advanced
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    24
  theorem proving environment, even though it is somewhat biased
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    25
  towards old-style proof scripts.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    26
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    27
  \medskip Apart from the technical advances over bare-bones ML
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    28
  programming, the main purpose of the Isar language is to provide a
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    29
  conceptually different view on machine-checked proofs
29743
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    30
  \cite{Wenzel:1999:TPHOL,Wenzel-PhD}.  \emph{Isar} stands for
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    31
  \emph{Intelligible semi-automated reasoning}.  Drawing from both the
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    32
  traditions of informal mathematical proof texts and high-level
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    33
  programming languages, Isar offers a versatile environment for
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    34
  structured formal proof documents.  Thus properly written Isar
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    35
  proofs become accessible to a broader audience than unstructured
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    36
  tactic scripts (which typically only provide operational information
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    37
  for the machine).  Writing human-readable proof texts certainly
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    38
  requires some additional efforts by the writer to achieve a good
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    39
  presentation, both of formal and informal parts of the text.  On the
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    40
  other hand, human-readable formal texts gain some value in their own
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    41
  right, independently of the mechanic proof-checking process.
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    42
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    43
  Despite its grand design of structured proof texts, Isar is able to
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    44
  assimilate the old tactical style as an ``improper'' sub-language.
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    45
  This provides an easy upgrade path for existing tactic scripts, as
29743
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    46
  well as some means for interactive experimentation and debugging of
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    47
  structured proofs.  Isabelle/Isar supports a broad range of proof
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    48
  styles, both readable and unreadable ones.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    49
29716
b6266c4c68fe basic setup for chapter "The Isabelle/Isar Framework";
wenzelm
parents: 28504
diff changeset
    50
  \medskip The generic Isabelle/Isar framework (see
29743
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    51
  \chref{ch:isar-framework}) works reasonably well for any Isabelle
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    52
  object-logic that conforms to the natural deduction view of the
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    53
  Isabelle/Pure framework.  Specific language elements introduced by
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    54
  the major object-logics are described in \chref{ch:hol}
27058
3dcd890b0bf2 \cite{Wenzel:2006:Festschrift};
wenzelm
parents: 27050
diff changeset
    55
  (Isabelle/HOL), \chref{ch:holcf} (Isabelle/HOLCF), and \chref{ch:zf}
3dcd890b0bf2 \cite{Wenzel:2006:Festschrift};
wenzelm
parents: 27050
diff changeset
    56
  (Isabelle/ZF).  The main language elements are already provided by
3dcd890b0bf2 \cite{Wenzel:2006:Festschrift};
wenzelm
parents: 27050
diff changeset
    57
  the Isabelle/Pure framework. Nevertheless, examples given in the
3dcd890b0bf2 \cite{Wenzel:2006:Festschrift};
wenzelm
parents: 27050
diff changeset
    58
  generic parts will usually refer to Isabelle/HOL as well.
27040
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    59
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    60
  \medskip Isar commands may be either \emph{proper} document
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    61
  constructors, or \emph{improper commands}.  Some proof methods and
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    62
  attributes introduced later are classified as improper as well.
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    63
  Improper Isar language elements, which are marked by ``@{text
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    64
  "\<^sup>*"}'' in the subsequent chapters; they are often helpful
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    65
  when developing proof documents, but their use is discouraged for
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    66
  the final human-readable outcome.  Typical examples are diagnostic
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    67
  commands that print terms or theorems according to the current
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    68
  context; other commands emulate old-style tactical theorem proving.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    69
*}
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    70
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    71
end