src/Doc/Isar_Ref/Preface.thy
author wenzelm
Mon, 25 Mar 2019 17:21:26 +0100
changeset 69981 3dced198b9ec
parent 63531 847eefdca90d
child 76987 4c275405faae
permissions -rw-r--r--
more strict AFP properties;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
61656
cfabbc083977 more uniform jEdit properties;
wenzelm
parents: 61493
diff changeset
     1
(*:maxLineLen=78:*)
cfabbc083977 more uniform jEdit properties;
wenzelm
parents: 61493
diff changeset
     2
42915
f35aae36cad0 turned "Overview" into "Preface" (similar to doc-src/Intro/intro.tex);
wenzelm
parents: 42651
diff changeset
     3
theory Preface
63531
847eefdca90d clarified imports;
wenzelm
parents: 61656
diff changeset
     4
  imports Main Base
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     5
begin
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
     6
58618
782f0b662cae more cartouches;
wenzelm
parents: 58552
diff changeset
     7
text \<open>
61477
e467ae7aa808 more control symbols;
wenzelm
parents: 61421
diff changeset
     8
  The \<^emph>\<open>Isabelle\<close> system essentially provides a generic
27035
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
  
61477
e467ae7aa808 more control symbols;
wenzelm
parents: 61421
diff changeset
    15
  In contrast \<^emph>\<open>Isar\<close> provides an interpreted language environment
27035
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
51058
98c48d023136 some updates concerning Proof General;
wenzelm
parents: 50109
diff changeset
    20
  transactions with unlimited undo etc.
98c48d023136 some updates concerning Proof General;
wenzelm
parents: 50109
diff changeset
    21
98c48d023136 some updates concerning Proof General;
wenzelm
parents: 50109
diff changeset
    22
  In its pioneering times, the Isabelle/Isar version of the
61477
e467ae7aa808 more control symbols;
wenzelm
parents: 61421
diff changeset
    23
  \<^emph>\<open>Proof~General\<close> user interface @{cite proofgeneral and
58552
66fed99e874f prefer @{cite} antiquotation;
wenzelm
parents: 56451
diff changeset
    24
  "Aspinall:TACAS:2000"} has contributed to the
51058
98c48d023136 some updates concerning Proof General;
wenzelm
parents: 50109
diff changeset
    25
  success of for interactive theory and proof development in this
98c48d023136 some updates concerning Proof General;
wenzelm
parents: 50109
diff changeset
    26
  advanced theorem proving environment, even though it was somewhat
98c48d023136 some updates concerning Proof General;
wenzelm
parents: 50109
diff changeset
    27
  biased towards old-style proof scripts.  The more recent
58552
66fed99e874f prefer @{cite} antiquotation;
wenzelm
parents: 56451
diff changeset
    28
  Isabelle/jEdit Prover IDE @{cite "Wenzel:2012"} emphasizes the
51058
98c48d023136 some updates concerning Proof General;
wenzelm
parents: 50109
diff changeset
    29
  document-oriented approach of Isabelle/Isar again more explicitly.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    30
61421
e0825405d398 more symbols;
wenzelm
parents: 60286
diff changeset
    31
  \<^medskip>
e0825405d398 more symbols;
wenzelm
parents: 60286
diff changeset
    32
  Apart from the technical advances over bare-bones ML
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    33
  programming, the main purpose of the Isar language is to provide a
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    34
  conceptually different view on machine-checked proofs
61477
e467ae7aa808 more control symbols;
wenzelm
parents: 61421
diff changeset
    35
  @{cite "Wenzel:1999:TPHOL" and "Wenzel-PhD"}.  \<^emph>\<open>Isar\<close> stands for
e467ae7aa808 more control symbols;
wenzelm
parents: 61421
diff changeset
    36
  \<^emph>\<open>Intelligible semi-automated reasoning\<close>.  Drawing from both the
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    37
  traditions of informal mathematical proof texts and high-level
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    38
  programming languages, Isar offers a versatile environment for
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    39
  structured formal proof documents.  Thus properly written Isar
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    40
  proofs become accessible to a broader audience than unstructured
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    41
  tactic scripts (which typically only provide operational information
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    42
  for the machine).  Writing human-readable proof texts certainly
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    43
  requires some additional efforts by the writer to achieve a good
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    44
  presentation, both of formal and informal parts of the text.  On the
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    45
  other hand, human-readable formal texts gain some value in their own
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    46
  right, independently of the mechanic proof-checking process.
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    47
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    48
  Despite its grand design of structured proof texts, Isar is able to
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    49
  assimilate the old tactical style as an ``improper'' sub-language.
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    50
  This provides an easy upgrade path for existing tactic scripts, as
29743
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    51
  well as some means for interactive experimentation and debugging of
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    52
  structured proofs.  Isabelle/Isar supports a broad range of proof
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    53
  styles, both readable and unreadable ones.
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    54
61421
e0825405d398 more symbols;
wenzelm
parents: 60286
diff changeset
    55
  \<^medskip>
e0825405d398 more symbols;
wenzelm
parents: 60286
diff changeset
    56
  The generic Isabelle/Isar framework (see
29743
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    57
  \chref{ch:isar-framework}) works reasonably well for any Isabelle
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    58
  object-logic that conforms to the natural deduction view of the
86c57ef80ba3 removed obsolete section "User interfaces";
wenzelm
parents: 29716
diff changeset
    59
  Isabelle/Pure framework.  Specific language elements introduced by
50109
c13dc0b1841c tuned structure of Isabelle/HOL;
wenzelm
parents: 48985
diff changeset
    60
  Isabelle/HOL are described in \partref{part:hol}.  Although the main
48957
c04001b3a753 removed outdated IsarRef/Thy/HOLCF_Specific.thy -- make IsarRef depend on HOL only;
wenzelm
parents: 42915
diff changeset
    61
  language elements are already provided by the Isabelle/Pure
c04001b3a753 removed outdated IsarRef/Thy/HOLCF_Specific.thy -- make IsarRef depend on HOL only;
wenzelm
parents: 42915
diff changeset
    62
  framework, examples given in the generic parts will usually refer to
c04001b3a753 removed outdated IsarRef/Thy/HOLCF_Specific.thy -- make IsarRef depend on HOL only;
wenzelm
parents: 42915
diff changeset
    63
  Isabelle/HOL.
27040
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    64
61421
e0825405d398 more symbols;
wenzelm
parents: 60286
diff changeset
    65
  \<^medskip>
61477
e467ae7aa808 more control symbols;
wenzelm
parents: 61421
diff changeset
    66
  Isar commands may be either \<^emph>\<open>proper\<close> document
e467ae7aa808 more control symbols;
wenzelm
parents: 61421
diff changeset
    67
  constructors, or \<^emph>\<open>improper commands\<close>.  Some proof methods and
27040
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    68
  attributes introduced later are classified as improper as well.
61493
0debd22f0c0e isabelle update_cartouches -t;
wenzelm
parents: 61477
diff changeset
    69
  Improper Isar language elements, which are marked by ``\<open>\<^sup>*\<close>'' in the subsequent chapters; they are often helpful
27040
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    70
  when developing proof documents, but their use is discouraged for
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    71
  the final human-readable outcome.  Typical examples are diagnostic
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    72
  commands that print terms or theorems according to the current
3d3e6e07b931 major reorganization of document structure;
wenzelm
parents: 27036
diff changeset
    73
  context; other commands emulate old-style tactical theorem proving.
58618
782f0b662cae more cartouches;
wenzelm
parents: 58552
diff changeset
    74
\<close>
27035
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    75
d038a2ba87f6 renamed theory "intro" to "Introduction";
wenzelm
parents:
diff changeset
    76
end