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