doc-src/IsarImplementation/Thy/logic.thy
author wenzelm
Thu Aug 31 18:27:40 2006 +0200 (2006-08-31)
changeset 20450 725a91601ed1
parent 20437 0eb5e30fd620
child 20451 27ea2ba48fa3
permissions -rw-r--r--
tuned;
wenzelm@18537
     1
wenzelm@18537
     2
(* $Id$ *)
wenzelm@18537
     3
wenzelm@18537
     4
theory logic imports base begin
wenzelm@18537
     5
wenzelm@20450
     6
chapter {* Primitive logic *}
wenzelm@18537
     7
wenzelm@18537
     8
section {* Syntax *}
wenzelm@18537
     9
wenzelm@20437
    10
subsection {* Variable names *}
wenzelm@20437
    11
wenzelm@20437
    12
text {*
wenzelm@20437
    13
  FIXME
wenzelm@20437
    14
*}
wenzelm@20437
    15
wenzelm@20437
    16
wenzelm@18537
    17
subsection {* Simply-typed lambda calculus *}
wenzelm@18537
    18
wenzelm@18537
    19
text {*
wenzelm@18537
    20
wenzelm@18537
    21
FIXME
wenzelm@18537
    22
wenzelm@18537
    23
\glossary{Type}{FIXME}
wenzelm@18537
    24
\glossary{Term}{FIXME}
wenzelm@18537
    25
wenzelm@18537
    26
*}
wenzelm@18537
    27
wenzelm@18537
    28
subsection {* The order-sorted algebra of types *}
wenzelm@18537
    29
wenzelm@18537
    30
text {*
wenzelm@18537
    31
wenzelm@18537
    32
FIXME
wenzelm@18537
    33
wenzelm@18537
    34
\glossary{Type constructor}{FIXME}
wenzelm@18537
    35
wenzelm@18537
    36
\glossary{Type class}{FIXME}
wenzelm@18537
    37
wenzelm@18537
    38
\glossary{Type arity}{FIXME}
wenzelm@18537
    39
wenzelm@18537
    40
\glossary{Sort}{FIXME}
wenzelm@18537
    41
wenzelm@18537
    42
*}
wenzelm@18537
    43
wenzelm@18537
    44
wenzelm@18537
    45
subsection {* Type-inference and schematic polymorphism *}
wenzelm@18537
    46
wenzelm@18537
    47
text {*
wenzelm@18537
    48
wenzelm@18537
    49
FIXME
wenzelm@18537
    50
wenzelm@18537
    51
\glossary{Schematic polymorphism}{FIXME}
wenzelm@18537
    52
wenzelm@18537
    53
\glossary{Type variable}{FIXME}
wenzelm@18537
    54
wenzelm@18537
    55
*}
wenzelm@18537
    56
wenzelm@18537
    57
wenzelm@18537
    58
section {* Theory *}
wenzelm@18537
    59
wenzelm@18537
    60
text {*
wenzelm@18537
    61
wenzelm@18537
    62
FIXME
wenzelm@18537
    63
wenzelm@18537
    64
\glossary{Constant}{Essentially a \seeglossary{fixed variable} of the
wenzelm@18537
    65
theory context, but slightly more flexible since it may be used at
wenzelm@18537
    66
different type-instances, due to \seeglossary{schematic
wenzelm@18537
    67
polymorphism.}}
wenzelm@18537
    68
wenzelm@18537
    69
*}
wenzelm@18537
    70
wenzelm@18537
    71
wenzelm@18537
    72
section {* Deduction *}
wenzelm@18537
    73
wenzelm@18537
    74
text {*
wenzelm@18537
    75
wenzelm@18537
    76
  FIXME
wenzelm@18537
    77
wenzelm@18537
    78
\glossary{Proposition}{A \seeglossary{term} of \seeglossary{type}
wenzelm@18537
    79
@{text "prop"}.  Internally, there is nothing special about
wenzelm@18537
    80
propositions apart from their type, but the concrete syntax enforces a
wenzelm@18537
    81
clear distinction.  Propositions are structured via implication @{text
wenzelm@18537
    82
"A \<Longrightarrow> B"} or universal quantification @{text "\<And>x. B x"} --- anything
wenzelm@18537
    83
else is considered atomic.  The canonical form for propositions is
wenzelm@18537
    84
that of a \seeglossary{Hereditary Harrop Formula}.}
wenzelm@18537
    85
wenzelm@18537
    86
\glossary{Theorem}{A proven proposition within a certain theory and
wenzelm@18537
    87
proof context, formally @{text "\<Gamma> \<turnstile>\<^sub>\<Theta> \<phi>"}; both contexts are
wenzelm@18537
    88
rarely spelled out explicitly.  Theorems are usually normalized
wenzelm@18537
    89
according to the \seeglossary{HHF} format.}
wenzelm@18537
    90
wenzelm@18537
    91
\glossary{Fact}{Sometimes used interchangably for
wenzelm@18537
    92
\seeglossary{theorem}.  Strictly speaking, a list of theorems,
wenzelm@18537
    93
essentially an extra-logical conjunction.  Facts emerge either as
wenzelm@18537
    94
local assumptions, or as results of local goal statements --- both may
wenzelm@18537
    95
be simultaneous, hence the list representation.}
wenzelm@18537
    96
wenzelm@18537
    97
\glossary{Schematic variable}{FIXME}
wenzelm@18537
    98
wenzelm@18537
    99
\glossary{Fixed variable}{A variable that is bound within a certain
wenzelm@18537
   100
proof context; an arbitrary-but-fixed entity within a portion of proof
wenzelm@18537
   101
text.}
wenzelm@18537
   102
wenzelm@18537
   103
\glossary{Free variable}{Synonymous for \seeglossary{fixed variable}.}
wenzelm@18537
   104
wenzelm@18537
   105
\glossary{Bound variable}{FIXME}
wenzelm@18537
   106
wenzelm@18537
   107
\glossary{Variable}{See \seeglossary{schematic variable},
wenzelm@18537
   108
\seeglossary{fixed variable}, \seeglossary{bound variable}, or
wenzelm@18537
   109
\seeglossary{type variable}.  The distinguishing feature of different
wenzelm@18537
   110
variables is their binding scope.}
wenzelm@18537
   111
wenzelm@18537
   112
*}
wenzelm@18537
   113
wenzelm@18537
   114
subsection {* Primitive inferences *}
wenzelm@18537
   115
wenzelm@18537
   116
text FIXME
wenzelm@18537
   117
wenzelm@18537
   118
subsection {* Higher-order resolution *}
wenzelm@18537
   119
wenzelm@18537
   120
text {*
wenzelm@18537
   121
wenzelm@18537
   122
FIXME
wenzelm@18537
   123
wenzelm@18537
   124
\glossary{Hereditary Harrop Formula}{The set of propositions in HHF
wenzelm@18537
   125
format is defined inductively as @{text "H = (\<And>x\<^sup>*. H\<^sup>* \<Longrightarrow>
wenzelm@18537
   126
A)"}, for variables @{text "x"} and atomic propositions @{text "A"}.
wenzelm@18537
   127
Any proposition may be put into HHF form by normalizing with the rule
wenzelm@18537
   128
@{text "(A \<Longrightarrow> (\<And>x. B x)) \<equiv> (\<And>x. A \<Longrightarrow> B x)"}.  In Isabelle, the outermost
wenzelm@18537
   129
quantifier prefix is represented via \seeglossary{schematic
wenzelm@18537
   130
variables}, such that the top-level structure is merely that of a
wenzelm@18537
   131
\seeglossary{Horn Clause}}.
wenzelm@18537
   132
wenzelm@18537
   133
\glossary{HHF}{See \seeglossary{Hereditary Harrop Formula}.}
wenzelm@18537
   134
wenzelm@18537
   135
*}
wenzelm@18537
   136
wenzelm@18537
   137
subsection {* Equational reasoning *}
wenzelm@18537
   138
wenzelm@18537
   139
text FIXME
wenzelm@18537
   140
wenzelm@18537
   141
wenzelm@18537
   142
section {* Proof terms *}
wenzelm@18537
   143
wenzelm@18537
   144
text FIXME
wenzelm@18537
   145
wenzelm@18537
   146
end