18537
|
1 |
|
|
2 |
(* $Id$ *)
|
|
3 |
|
|
4 |
theory "proof" imports base begin
|
|
5 |
|
|
6 |
chapter {* Structured reasoning *}
|
|
7 |
|
|
8 |
section {* Proof context *}
|
|
9 |
|
20026
|
10 |
subsection {* Local variables *}
|
|
11 |
|
|
12 |
text %mlref {*
|
|
13 |
\begin{mldecls}
|
|
14 |
@{index_ML Variable.declare_term: "term -> Proof.context -> Proof.context"} \\
|
|
15 |
@{index_ML Variable.import: "bool -> thm list -> Proof.context -> thm list * Proof.context"} \\
|
|
16 |
@{index_ML Variable.export: "Proof.context -> Proof.context -> thm list -> thm list"} \\
|
|
17 |
@{index_ML Variable.trade: "Proof.context -> (thm list -> thm list) -> thm list -> thm list"} \\
|
|
18 |
@{index_ML Variable.monomorphic: "Proof.context -> term list -> term list"} \\
|
|
19 |
@{index_ML Variable.polymorphic: "Proof.context -> term list -> term list"} \\
|
|
20 |
\end{mldecls}
|
|
21 |
|
|
22 |
\begin{description}
|
|
23 |
|
20041
|
24 |
\item @{ML Variable.declare_term} declares a term as belonging to
|
|
25 |
the current context. This fixes free type variables, but not term
|
|
26 |
variables; constraints for type and term variables are declared
|
|
27 |
uniformly.
|
20026
|
28 |
|
20041
|
29 |
\item @{ML Variable.import} introduces new fixes for schematic type
|
|
30 |
and term variables occurring in given facts. The effect may be
|
|
31 |
reversed (up to renaming) via @{ML Variable.export}.
|
20026
|
32 |
|
20041
|
33 |
\item @{ML Variable.export} generalizes fixed type and term
|
|
34 |
variables according to the difference of the two contexts. Note
|
|
35 |
that type variables occurring in term variables are still fixed,
|
|
36 |
even though they got introduced later (e.g.\ by type-inference).
|
20026
|
37 |
|
|
38 |
\item @{ML Variable.trade} composes @{ML Variable.import} and @{ML
|
20041
|
39 |
Variable.export}, i.e.\ it provides a view on facts with all
|
|
40 |
variables being fixed in the current context.
|
20026
|
41 |
|
20041
|
42 |
\item @{ML Variable.monomorphic} introduces fixed type variables for
|
|
43 |
the schematic of the given facts.
|
20026
|
44 |
|
20041
|
45 |
\item @{ML Variable.polymorphic} generalizes type variables as far
|
|
46 |
as possible, even those occurring in fixed term variables. This
|
|
47 |
operation essentially reverses the default policy of type-inference
|
|
48 |
to introduce local polymorphism entities in fixed form.
|
20026
|
49 |
|
|
50 |
\end{description}
|
|
51 |
*}
|
|
52 |
|
18537
|
53 |
text FIXME
|
|
54 |
|
|
55 |
section {* Proof state *}
|
|
56 |
|
|
57 |
text {*
|
|
58 |
FIXME
|
|
59 |
|
|
60 |
\glossary{Proof state}{The whole configuration of a structured proof,
|
|
61 |
consisting of a \seeglossary{proof context} and an optional
|
|
62 |
\seeglossary{structured goal}. Internally, an Isar proof state is
|
|
63 |
organized as a stack to accomodate block structure of proof texts.
|
|
64 |
For historical reasons, a low-level \seeglossary{tactical goal} is
|
|
65 |
occasionally called ``proof state'' as well.}
|
|
66 |
|
|
67 |
\glossary{Structured goal}{FIXME}
|
|
68 |
|
|
69 |
\glossary{Goal}{See \seeglossary{tactical goal} or \seeglossary{structured goal}. \norefpage}
|
|
70 |
|
|
71 |
|
|
72 |
*}
|
|
73 |
|
|
74 |
section {* Methods *}
|
|
75 |
|
|
76 |
text FIXME
|
|
77 |
|
|
78 |
section {* Attributes *}
|
|
79 |
|
|
80 |
text FIXME
|
|
81 |
|
|
82 |
end
|