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 |
%
|
20063
|
34 |
\begin{isamarkuptext}%
|
|
35 |
FIXME%
|
|
36 |
\end{isamarkuptext}%
|
|
37 |
\isamarkuptrue%
|
|
38 |
%
|
20027
|
39 |
\isadelimmlref
|
|
40 |
%
|
|
41 |
\endisadelimmlref
|
|
42 |
%
|
|
43 |
\isatagmlref
|
|
44 |
%
|
|
45 |
\begin{isamarkuptext}%
|
|
46 |
\begin{mldecls}
|
|
47 |
\indexml{Variable.declare-term}\verb|Variable.declare_term: term -> Proof.context -> Proof.context| \\
|
20063
|
48 |
\indexml{Variable.add-fixes}\verb|Variable.add_fixes: string list -> Proof.context -> string list * Proof.context| \\
|
20221
|
49 |
\indexml{Variable.import}\verb|Variable.import: bool -> thm list -> Proof.context -> ((ctyp list * cterm list) * thm list) * Proof.context| \\
|
20027
|
50 |
\indexml{Variable.export}\verb|Variable.export: Proof.context -> Proof.context -> thm list -> thm list| \\
|
|
51 |
\indexml{Variable.trade}\verb|Variable.trade: Proof.context -> (thm list -> thm list) -> thm list -> thm list| \\
|
|
52 |
\indexml{Variable.polymorphic}\verb|Variable.polymorphic: Proof.context -> term list -> term list| \\
|
|
53 |
\end{mldecls}
|
|
54 |
|
|
55 |
\begin{description}
|
|
56 |
|
20063
|
57 |
\item \verb|Variable.declare_term|~\isa{t\ ctxt} declares term
|
|
58 |
\isa{t} to belong to the context. This fixes free type
|
|
59 |
variables, but not term variables. Constraints for type and term
|
|
60 |
variables are declared uniformly.
|
|
61 |
|
|
62 |
\item \verb|Variable.add_fixes|~\isa{xs\ ctxt} fixes term
|
|
63 |
variables \isa{xs} and returns the internal names of the
|
|
64 |
resulting Skolem constants. Note that term fixes refer to
|
|
65 |
\emph{all} type instances that may occur in the future.
|
|
66 |
|
|
67 |
\item \verb|Variable.invent_fixes| is similar to \verb|Variable.add_fixes|, but the given names merely act as hints for
|
|
68 |
internal fixes produced here.
|
20027
|
69 |
|
20063
|
70 |
\item \verb|Variable.import|~\isa{open\ ths\ ctxt} augments the
|
|
71 |
context by new fixes for the schematic type and term variables
|
|
72 |
occurring in \isa{ths}. The \isa{open} flag indicates
|
|
73 |
whether the fixed names should be accessible to the user, otherwise
|
|
74 |
internal names are chosen.
|
20027
|
75 |
|
20063
|
76 |
\item \verb|Variable.export|~\isa{inner\ outer\ ths} generalizes
|
|
77 |
fixed type and term variables in \isa{ths} according to the
|
|
78 |
difference of the \isa{inner} and \isa{outer} context. Note
|
|
79 |
that type variables occurring in term variables are still fixed.
|
|
80 |
|
|
81 |
\verb|Variable.export| essentially reverses the effect of \verb|Variable.import| (up to renaming of schematic variables.
|
20043
|
82 |
|
|
83 |
\item \verb|Variable.trade| composes \verb|Variable.import| and \verb|Variable.export|, i.e.\ it provides a view on facts with all
|
|
84 |
variables being fixed in the current context.
|
20027
|
85 |
|
20063
|
86 |
\item \verb|Variable.polymorphic|~\isa{ctxt\ ts} generalizes type
|
|
87 |
variables in \isa{ts} as far as possible, even those occurring
|
|
88 |
in fixed term variables. This operation essentially reverses the
|
|
89 |
default policy of type-inference to introduce local polymorphism as
|
|
90 |
fixed types.
|
20027
|
91 |
|
|
92 |
\end{description}%
|
|
93 |
\end{isamarkuptext}%
|
|
94 |
\isamarkuptrue%
|
|
95 |
%
|
|
96 |
\endisatagmlref
|
|
97 |
{\isafoldmlref}%
|
|
98 |
%
|
|
99 |
\isadelimmlref
|
|
100 |
%
|
|
101 |
\endisadelimmlref
|
|
102 |
%
|
18537
|
103 |
\begin{isamarkuptext}%
|
|
104 |
FIXME%
|
|
105 |
\end{isamarkuptext}%
|
|
106 |
\isamarkuptrue%
|
|
107 |
%
|
|
108 |
\isamarkupsection{Proof state%
|
|
109 |
}
|
|
110 |
\isamarkuptrue%
|
|
111 |
%
|
|
112 |
\begin{isamarkuptext}%
|
|
113 |
FIXME
|
|
114 |
|
|
115 |
\glossary{Proof state}{The whole configuration of a structured proof,
|
|
116 |
consisting of a \seeglossary{proof context} and an optional
|
|
117 |
\seeglossary{structured goal}. Internally, an Isar proof state is
|
|
118 |
organized as a stack to accomodate block structure of proof texts.
|
|
119 |
For historical reasons, a low-level \seeglossary{tactical goal} is
|
|
120 |
occasionally called ``proof state'' as well.}
|
|
121 |
|
|
122 |
\glossary{Structured goal}{FIXME}
|
|
123 |
|
|
124 |
\glossary{Goal}{See \seeglossary{tactical goal} or \seeglossary{structured goal}. \norefpage}%
|
|
125 |
\end{isamarkuptext}%
|
|
126 |
\isamarkuptrue%
|
|
127 |
%
|
|
128 |
\isamarkupsection{Methods%
|
|
129 |
}
|
|
130 |
\isamarkuptrue%
|
|
131 |
%
|
|
132 |
\begin{isamarkuptext}%
|
|
133 |
FIXME%
|
|
134 |
\end{isamarkuptext}%
|
|
135 |
\isamarkuptrue%
|
|
136 |
%
|
|
137 |
\isamarkupsection{Attributes%
|
|
138 |
}
|
|
139 |
\isamarkuptrue%
|
|
140 |
%
|
|
141 |
\begin{isamarkuptext}%
|
|
142 |
FIXME%
|
|
143 |
\end{isamarkuptext}%
|
|
144 |
\isamarkuptrue%
|
|
145 |
%
|
|
146 |
\isadelimtheory
|
|
147 |
%
|
|
148 |
\endisadelimtheory
|
|
149 |
%
|
|
150 |
\isatagtheory
|
|
151 |
\isacommand{end}\isamarkupfalse%
|
|
152 |
%
|
|
153 |
\endisatagtheory
|
|
154 |
{\isafoldtheory}%
|
|
155 |
%
|
|
156 |
\isadelimtheory
|
|
157 |
%
|
|
158 |
\endisadelimtheory
|
|
159 |
\isanewline
|
|
160 |
\end{isabellebody}%
|
|
161 |
%%% Local Variables:
|
|
162 |
%%% mode: latex
|
|
163 |
%%% TeX-master: "root"
|
|
164 |
%%% End:
|