18537
|
1 |
%
|
|
2 |
\begin{isabellebody}%
|
|
3 |
\def\isabellecontext{logic}%
|
|
4 |
%
|
|
5 |
\isadelimtheory
|
|
6 |
\isanewline
|
|
7 |
\isanewline
|
|
8 |
\isanewline
|
|
9 |
%
|
|
10 |
\endisadelimtheory
|
|
11 |
%
|
|
12 |
\isatagtheory
|
|
13 |
\isacommand{theory}\isamarkupfalse%
|
|
14 |
\ logic\ \isakeyword{imports}\ base\ \isakeyword{begin}%
|
|
15 |
\endisatagtheory
|
|
16 |
{\isafoldtheory}%
|
|
17 |
%
|
|
18 |
\isadelimtheory
|
|
19 |
%
|
|
20 |
\endisadelimtheory
|
|
21 |
%
|
|
22 |
\isamarkupchapter{Pure logic%
|
|
23 |
}
|
|
24 |
\isamarkuptrue%
|
|
25 |
%
|
|
26 |
\isamarkupsection{Syntax%
|
|
27 |
}
|
|
28 |
\isamarkuptrue%
|
|
29 |
%
|
20438
|
30 |
\isamarkupsubsection{Variable names%
|
|
31 |
}
|
|
32 |
\isamarkuptrue%
|
|
33 |
%
|
|
34 |
\begin{isamarkuptext}%
|
|
35 |
FIXME%
|
|
36 |
\end{isamarkuptext}%
|
|
37 |
\isamarkuptrue%
|
|
38 |
%
|
18537
|
39 |
\isamarkupsubsection{Simply-typed lambda calculus%
|
|
40 |
}
|
|
41 |
\isamarkuptrue%
|
|
42 |
%
|
|
43 |
\begin{isamarkuptext}%
|
|
44 |
FIXME
|
|
45 |
|
|
46 |
\glossary{Type}{FIXME}
|
|
47 |
\glossary{Term}{FIXME}%
|
|
48 |
\end{isamarkuptext}%
|
|
49 |
\isamarkuptrue%
|
|
50 |
%
|
|
51 |
\isamarkupsubsection{The order-sorted algebra of types%
|
|
52 |
}
|
|
53 |
\isamarkuptrue%
|
|
54 |
%
|
|
55 |
\begin{isamarkuptext}%
|
|
56 |
FIXME
|
|
57 |
|
|
58 |
\glossary{Type constructor}{FIXME}
|
|
59 |
|
|
60 |
\glossary{Type class}{FIXME}
|
|
61 |
|
|
62 |
\glossary{Type arity}{FIXME}
|
|
63 |
|
|
64 |
\glossary{Sort}{FIXME}%
|
|
65 |
\end{isamarkuptext}%
|
|
66 |
\isamarkuptrue%
|
|
67 |
%
|
|
68 |
\isamarkupsubsection{Type-inference and schematic polymorphism%
|
|
69 |
}
|
|
70 |
\isamarkuptrue%
|
|
71 |
%
|
|
72 |
\begin{isamarkuptext}%
|
|
73 |
FIXME
|
|
74 |
|
|
75 |
\glossary{Schematic polymorphism}{FIXME}
|
|
76 |
|
|
77 |
\glossary{Type variable}{FIXME}%
|
|
78 |
\end{isamarkuptext}%
|
|
79 |
\isamarkuptrue%
|
|
80 |
%
|
|
81 |
\isamarkupsection{Theory%
|
|
82 |
}
|
|
83 |
\isamarkuptrue%
|
|
84 |
%
|
|
85 |
\begin{isamarkuptext}%
|
|
86 |
FIXME
|
|
87 |
|
|
88 |
\glossary{Constant}{Essentially a \seeglossary{fixed variable} of the
|
|
89 |
theory context, but slightly more flexible since it may be used at
|
|
90 |
different type-instances, due to \seeglossary{schematic
|
|
91 |
polymorphism.}}%
|
|
92 |
\end{isamarkuptext}%
|
|
93 |
\isamarkuptrue%
|
|
94 |
%
|
|
95 |
\isamarkupsection{Deduction%
|
|
96 |
}
|
|
97 |
\isamarkuptrue%
|
|
98 |
%
|
|
99 |
\begin{isamarkuptext}%
|
|
100 |
FIXME
|
|
101 |
|
|
102 |
\glossary{Proposition}{A \seeglossary{term} of \seeglossary{type}
|
|
103 |
\isa{prop}. Internally, there is nothing special about
|
|
104 |
propositions apart from their type, but the concrete syntax enforces a
|
|
105 |
clear distinction. Propositions are structured via implication \isa{A\ {\isasymLongrightarrow}\ B} or universal quantification \isa{{\isasymAnd}x{\isachardot}\ B\ x} --- anything
|
|
106 |
else is considered atomic. The canonical form for propositions is
|
|
107 |
that of a \seeglossary{Hereditary Harrop Formula}.}
|
|
108 |
|
|
109 |
\glossary{Theorem}{A proven proposition within a certain theory and
|
|
110 |
proof context, formally \isa{{\isasymGamma}\ {\isasymturnstile}\isactrlsub {\isasymTheta}\ {\isasymphi}}; both contexts are
|
|
111 |
rarely spelled out explicitly. Theorems are usually normalized
|
|
112 |
according to the \seeglossary{HHF} format.}
|
|
113 |
|
|
114 |
\glossary{Fact}{Sometimes used interchangably for
|
|
115 |
\seeglossary{theorem}. Strictly speaking, a list of theorems,
|
|
116 |
essentially an extra-logical conjunction. Facts emerge either as
|
|
117 |
local assumptions, or as results of local goal statements --- both may
|
|
118 |
be simultaneous, hence the list representation.}
|
|
119 |
|
|
120 |
\glossary{Schematic variable}{FIXME}
|
|
121 |
|
|
122 |
\glossary{Fixed variable}{A variable that is bound within a certain
|
|
123 |
proof context; an arbitrary-but-fixed entity within a portion of proof
|
|
124 |
text.}
|
|
125 |
|
|
126 |
\glossary{Free variable}{Synonymous for \seeglossary{fixed variable}.}
|
|
127 |
|
|
128 |
\glossary{Bound variable}{FIXME}
|
|
129 |
|
|
130 |
\glossary{Variable}{See \seeglossary{schematic variable},
|
|
131 |
\seeglossary{fixed variable}, \seeglossary{bound variable}, or
|
|
132 |
\seeglossary{type variable}. The distinguishing feature of different
|
|
133 |
variables is their binding scope.}%
|
|
134 |
\end{isamarkuptext}%
|
|
135 |
\isamarkuptrue%
|
|
136 |
%
|
|
137 |
\isamarkupsubsection{Primitive inferences%
|
|
138 |
}
|
|
139 |
\isamarkuptrue%
|
|
140 |
%
|
|
141 |
\begin{isamarkuptext}%
|
|
142 |
FIXME%
|
|
143 |
\end{isamarkuptext}%
|
|
144 |
\isamarkuptrue%
|
|
145 |
%
|
|
146 |
\isamarkupsubsection{Higher-order resolution%
|
|
147 |
}
|
|
148 |
\isamarkuptrue%
|
|
149 |
%
|
|
150 |
\begin{isamarkuptext}%
|
|
151 |
FIXME
|
|
152 |
|
|
153 |
\glossary{Hereditary Harrop Formula}{The set of propositions in HHF
|
|
154 |
format is defined inductively as \isa{H\ {\isacharequal}\ {\isacharparenleft}{\isasymAnd}x\isactrlsup {\isacharasterisk}{\isachardot}\ H\isactrlsup {\isacharasterisk}\ {\isasymLongrightarrow}\ A{\isacharparenright}}, for variables \isa{x} and atomic propositions \isa{A}.
|
|
155 |
Any proposition may be put into HHF form by normalizing with the rule
|
|
156 |
\isa{{\isacharparenleft}A\ {\isasymLongrightarrow}\ {\isacharparenleft}{\isasymAnd}x{\isachardot}\ B\ x{\isacharparenright}{\isacharparenright}\ {\isasymequiv}\ {\isacharparenleft}{\isasymAnd}x{\isachardot}\ A\ {\isasymLongrightarrow}\ B\ x{\isacharparenright}}. In Isabelle, the outermost
|
|
157 |
quantifier prefix is represented via \seeglossary{schematic
|
|
158 |
variables}, such that the top-level structure is merely that of a
|
|
159 |
\seeglossary{Horn Clause}}.
|
|
160 |
|
|
161 |
\glossary{HHF}{See \seeglossary{Hereditary Harrop Formula}.}%
|
|
162 |
\end{isamarkuptext}%
|
|
163 |
\isamarkuptrue%
|
|
164 |
%
|
|
165 |
\isamarkupsubsection{Equational reasoning%
|
|
166 |
}
|
|
167 |
\isamarkuptrue%
|
|
168 |
%
|
|
169 |
\begin{isamarkuptext}%
|
|
170 |
FIXME%
|
|
171 |
\end{isamarkuptext}%
|
|
172 |
\isamarkuptrue%
|
|
173 |
%
|
|
174 |
\isamarkupsection{Proof terms%
|
|
175 |
}
|
|
176 |
\isamarkuptrue%
|
|
177 |
%
|
|
178 |
\begin{isamarkuptext}%
|
|
179 |
FIXME%
|
|
180 |
\end{isamarkuptext}%
|
|
181 |
\isamarkuptrue%
|
|
182 |
%
|
|
183 |
\isadelimtheory
|
|
184 |
%
|
|
185 |
\endisadelimtheory
|
|
186 |
%
|
|
187 |
\isatagtheory
|
|
188 |
\isacommand{end}\isamarkupfalse%
|
|
189 |
%
|
|
190 |
\endisatagtheory
|
|
191 |
{\isafoldtheory}%
|
|
192 |
%
|
|
193 |
\isadelimtheory
|
|
194 |
%
|
|
195 |
\endisadelimtheory
|
|
196 |
\isanewline
|
|
197 |
\end{isabellebody}%
|
|
198 |
%%% Local Variables:
|
|
199 |
%%% mode: latex
|
|
200 |
%%% TeX-master: "root"
|
|
201 |
%%% End:
|