18537
|
1 |
%
|
|
2 |
\begin{isabellebody}%
|
|
3 |
\def\isabellecontext{proof}%
|
|
4 |
%
|
|
5 |
\isadelimtheory
|
|
6 |
\isanewline
|
|
7 |
\isanewline
|
|
8 |
\isanewline
|
|
9 |
%
|
|
10 |
\endisadelimtheory
|
|
11 |
%
|
|
12 |
\isatagtheory
|
|
13 |
\isacommand{theory}\isamarkupfalse%
|
|
14 |
\ {\isachardoublequoteopen}proof{\isachardoublequoteclose}\ \isakeyword{imports}\ base\ \isakeyword{begin}%
|
|
15 |
\endisatagtheory
|
|
16 |
{\isafoldtheory}%
|
|
17 |
%
|
|
18 |
\isadelimtheory
|
|
19 |
%
|
|
20 |
\endisadelimtheory
|
|
21 |
%
|
|
22 |
\isamarkupchapter{Structured reasoning%
|
|
23 |
}
|
|
24 |
\isamarkuptrue%
|
|
25 |
%
|
|
26 |
\isamarkupsection{Proof context%
|
|
27 |
}
|
|
28 |
\isamarkuptrue%
|
|
29 |
%
|
20027
|
30 |
\isamarkupsubsection{Local variables%
|
|
31 |
}
|
|
32 |
\isamarkuptrue%
|
|
33 |
%
|
|
34 |
\isadelimmlref
|
|
35 |
%
|
|
36 |
\endisadelimmlref
|
|
37 |
%
|
|
38 |
\isatagmlref
|
|
39 |
%
|
|
40 |
\begin{isamarkuptext}%
|
|
41 |
\begin{mldecls}
|
|
42 |
\indexml{Variable.declare-term}\verb|Variable.declare_term: term -> Proof.context -> Proof.context| \\
|
|
43 |
\indexml{Variable.import}\verb|Variable.import: bool -> thm list -> Proof.context -> thm list * Proof.context| \\
|
|
44 |
\indexml{Variable.export}\verb|Variable.export: Proof.context -> Proof.context -> thm list -> thm list| \\
|
|
45 |
\indexml{Variable.trade}\verb|Variable.trade: Proof.context -> (thm list -> thm list) -> thm list -> thm list| \\
|
|
46 |
\indexml{Variable.monomorphic}\verb|Variable.monomorphic: Proof.context -> term list -> term list| \\
|
|
47 |
\indexml{Variable.polymorphic}\verb|Variable.polymorphic: Proof.context -> term list -> term list| \\
|
|
48 |
\end{mldecls}
|
|
49 |
|
|
50 |
\begin{description}
|
|
51 |
|
20043
|
52 |
\item \verb|Variable.declare_term| declares a term as belonging to
|
|
53 |
the current context. This fixes free type variables, but not term
|
|
54 |
variables; constraints for type and term variables are declared
|
|
55 |
uniformly.
|
20027
|
56 |
|
20043
|
57 |
\item \verb|Variable.import| introduces new fixes for schematic type
|
|
58 |
and term variables occurring in given facts. The effect may be
|
|
59 |
reversed (up to renaming) via \verb|Variable.export|.
|
20027
|
60 |
|
20043
|
61 |
\item \verb|Variable.export| generalizes fixed type and term
|
|
62 |
variables according to the difference of the two contexts. Note
|
|
63 |
that type variables occurring in term variables are still fixed,
|
|
64 |
even though they got introduced later (e.g.\ by type-inference).
|
|
65 |
|
|
66 |
\item \verb|Variable.trade| composes \verb|Variable.import| and \verb|Variable.export|, i.e.\ it provides a view on facts with all
|
|
67 |
variables being fixed in the current context.
|
20027
|
68 |
|
20043
|
69 |
\item \verb|Variable.monomorphic| introduces fixed type variables for
|
|
70 |
the schematic of the given facts.
|
20027
|
71 |
|
20043
|
72 |
\item \verb|Variable.polymorphic| generalizes type variables as far
|
|
73 |
as possible, even those occurring in fixed term variables. This
|
|
74 |
operation essentially reverses the default policy of type-inference
|
|
75 |
to introduce local polymorphism entities in fixed form.
|
20027
|
76 |
|
|
77 |
\end{description}%
|
|
78 |
\end{isamarkuptext}%
|
|
79 |
\isamarkuptrue%
|
|
80 |
%
|
|
81 |
\endisatagmlref
|
|
82 |
{\isafoldmlref}%
|
|
83 |
%
|
|
84 |
\isadelimmlref
|
|
85 |
%
|
|
86 |
\endisadelimmlref
|
|
87 |
%
|
18537
|
88 |
\begin{isamarkuptext}%
|
|
89 |
FIXME%
|
|
90 |
\end{isamarkuptext}%
|
|
91 |
\isamarkuptrue%
|
|
92 |
%
|
|
93 |
\isamarkupsection{Proof state%
|
|
94 |
}
|
|
95 |
\isamarkuptrue%
|
|
96 |
%
|
|
97 |
\begin{isamarkuptext}%
|
|
98 |
FIXME
|
|
99 |
|
|
100 |
\glossary{Proof state}{The whole configuration of a structured proof,
|
|
101 |
consisting of a \seeglossary{proof context} and an optional
|
|
102 |
\seeglossary{structured goal}. Internally, an Isar proof state is
|
|
103 |
organized as a stack to accomodate block structure of proof texts.
|
|
104 |
For historical reasons, a low-level \seeglossary{tactical goal} is
|
|
105 |
occasionally called ``proof state'' as well.}
|
|
106 |
|
|
107 |
\glossary{Structured goal}{FIXME}
|
|
108 |
|
|
109 |
\glossary{Goal}{See \seeglossary{tactical goal} or \seeglossary{structured goal}. \norefpage}%
|
|
110 |
\end{isamarkuptext}%
|
|
111 |
\isamarkuptrue%
|
|
112 |
%
|
|
113 |
\isamarkupsection{Methods%
|
|
114 |
}
|
|
115 |
\isamarkuptrue%
|
|
116 |
%
|
|
117 |
\begin{isamarkuptext}%
|
|
118 |
FIXME%
|
|
119 |
\end{isamarkuptext}%
|
|
120 |
\isamarkuptrue%
|
|
121 |
%
|
|
122 |
\isamarkupsection{Attributes%
|
|
123 |
}
|
|
124 |
\isamarkuptrue%
|
|
125 |
%
|
|
126 |
\begin{isamarkuptext}%
|
|
127 |
FIXME%
|
|
128 |
\end{isamarkuptext}%
|
|
129 |
\isamarkuptrue%
|
|
130 |
%
|
|
131 |
\isadelimtheory
|
|
132 |
%
|
|
133 |
\endisadelimtheory
|
|
134 |
%
|
|
135 |
\isatagtheory
|
|
136 |
\isacommand{end}\isamarkupfalse%
|
|
137 |
%
|
|
138 |
\endisatagtheory
|
|
139 |
{\isafoldtheory}%
|
|
140 |
%
|
|
141 |
\isadelimtheory
|
|
142 |
%
|
|
143 |
\endisadelimtheory
|
|
144 |
\isanewline
|
|
145 |
\end{isabellebody}%
|
|
146 |
%%% Local Variables:
|
|
147 |
%%% mode: latex
|
|
148 |
%%% TeX-master: "root"
|
|
149 |
%%% End:
|