15133
|
1 |
<!-- Title: Pure/pgip_isar.xml
|
|
2 |
ID: $Id$
|
|
3 |
Author: David Aspinall, University of Edinburgh
|
|
4 |
Christoph Lüth, University of Bremen
|
|
5 |
|
|
6 |
This file contains the configuration messages which configure
|
|
7 |
PGIP interfaces for Isabelle/Isar, in particular, explaining
|
|
8 |
internal types of objects and operations available on them.
|
|
9 |
|
|
10 |
See http://proofgeneral.inf.ed.ac.uk/kit for more details.
|
|
11 |
|
|
12 |
This file is a contributed part of the Isabelle Distribution.
|
|
13 |
|
|
14 |
STATUS: incomplete and experimental.
|
|
15 |
-->
|
|
16 |
|
|
17 |
<guiconfig>
|
|
18 |
<!-- objtypes -->
|
|
19 |
<objtype name="toplevel" descr="top-level context (PGIP internal)">
|
|
20 |
<contains objtype="theory"/>
|
|
21 |
</objtype>
|
|
22 |
<objtype name="theory" descr="Isabelle theory">
|
|
23 |
<contains objtype="theorem"/>
|
|
24 |
<contains objtype="theory"/>
|
|
25 |
</objtype>
|
|
26 |
<objtype name="theorem" descr="Isabelle theorem">
|
|
27 |
<hasprefs prefcategory="Theorem attributes">
|
|
28 |
<haspref name="thm-kind" descr="Theorem kind">
|
|
29 |
<pgipchoice>
|
15193
|
30 |
<pgipconst name="Theorem">theorem</pgipconst>
|
|
31 |
<pgipconst name="Lemma">lemma</pgipconst>
|
|
32 |
<pgipconst name="Corollary">corollary</pgipconst>
|
15133
|
33 |
</pgipchoice>
|
|
34 |
</haspref>
|
|
35 |
<haspref name="thm-simp" descr="Include in simplifier set">
|
|
36 |
<pgipbool/>
|
|
37 |
</haspref>
|
|
38 |
<haspref name="thm-intro" descr="Flag as introduction rule">
|
|
39 |
<pgipbool/>
|
|
40 |
</haspref>
|
|
41 |
<haspref name="thm-elim" descr="Flag as elimination rule">
|
|
42 |
<pgipbool/>
|
|
43 |
</haspref>
|
|
44 |
<haspref name="thm-dest" descr="Flag as destruction rule">
|
|
45 |
<pgipbool/>
|
|
46 |
</haspref>
|
|
47 |
</hasprefs>
|
|
48 |
</objtype>
|
|
49 |
<objtype name="term" descr="Isabelle term">
|
|
50 |
<icon>
|
|
51 |
R0lGODlhJgAgAIQAAP////r6+uDg4Nra2tnZ2fn5+WFhYUJCQkFBQWBgYMnO
|
|
52 |
91xq6K208wsg3XiD7OTm+0FR5CY54Pb29t3d3dfX119fX/T09NbW1tjY2AAA
|
|
53 |
AAAAAAAAAAAAAAAAAAAAAAAAACH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh
|
|
54 |
+QQBCgAfACwAAAAAJgAgAAAFnCAgjmRpnqgYCAPhvnAsz7BQAIJxIHzv/8Cg
|
|
55 |
LyHA6YTI5I8IWLVo0Gjtlqpar9istqRYLBTbMIDRaDDEW7IZrVWf2VYGw1F2
|
|
56 |
yBkP+KnM77/1Jm6AcWV/gyeChyiJioGFjYiPkCWMkyKVlpiTmpBqEJYlEWUR
|
|
57 |
XgugDBCjDnmgrZMSExQUUrQ0NgADFUq7SUy5vMBATBYDFxi1yFMAIQA7
|
|
58 |
</icon>
|
|
59 |
</objtype>
|
|
60 |
<objtype name="type" descr="Isabelle type">
|
|
61 |
<icon>
|
|
62 |
R0lGODlhJgAgAIQAAP////r6+uDg4Nra2tnZ2fn5+WFhYUJCQkFBQWBgYOTm
|
|
63 |
+62080FR5Asg3SY54Fxq6MnO95Kc73iD7Pb29t3d3dfX119fX/T09NbW1tjY
|
|
64 |
2AAAAAAAAAAAAAAAAAAAAAAAACH+FUNyZWF0ZWQgd2l0aCBUaGUgR0lNUAAh
|
|
65 |
+QQBCgAfACwAAAAAJgAgAAAFsyAgjmRpnqgYCAPhvnAsz7BQAIJxIHzv/8Cg
|
|
66 |
LyHA6YTI5I8IWLVo0Gjtlqpar9istqRYeL9exbaqYDTOaPRijFI40vDGmm16
|
|
67 |
NB74NwOPh9C5DWIidn9VERIkb4UpEYIiZ4tZkJFWEA0MlFYLd5lVmw+dKZ8k
|
|
68 |
fqEim4GnoKYAlndiDIisAG9ppawSaauzALkNsrzBwsPEIxMUFRVSyzQ2AAMW
|
|
69 |
StJJTNDT10BMFwMYGczfUwAhADs=
|
|
70 |
</icon>
|
|
71 |
</objtype>
|
|
72 |
<objtype name="thmset" descr="Set of Isabelle theorems">
|
|
73 |
<contains objtype="theorem"/>
|
|
74 |
</objtype>
|
|
75 |
<!-- possible objtypes not yet supported:
|
|
76 |
<objtype name="oopsgoal" descr="Abandoned proof"></objtype>
|
|
77 |
<objtype name="sorrygoal" descr="Postponed proof"></objtype>
|
|
78 |
<objtype name="proof" descr="Completed proof"></objtype>
|
|
79 |
<objtype name="method" descr="Isar method or proof step"></objtype>
|
|
80 |
-->
|
|
81 |
|
|
82 |
<!-- object operations -->
|
|
83 |
|
|
84 |
<opn name="add to simpset">
|
|
85 |
<opsrc>theorem</opsrc>
|
|
86 |
<optrg></optrg>
|
|
87 |
<opcmd>declare %1 [simp]</opcmd>
|
|
88 |
</opn>
|
|
89 |
|
|
90 |
<opn name="remove from simpset">
|
|
91 |
<opsrc>theorem</opsrc>
|
|
92 |
<optrg></optrg>
|
|
93 |
<opcmd>declare %1 [simp del]</opcmd>
|
|
94 |
</opn>
|
|
95 |
|
|
96 |
<opn name="instantiatevar">
|
|
97 |
<opsrc>theorem term</opsrc>
|
|
98 |
<optrg>theorem</optrg>
|
|
99 |
<opcmd>%1 [OF %2]</opcmd>
|
|
100 |
</opn>
|
|
101 |
|
|
102 |
<!-- interactive operations -->
|
|
103 |
<!-- da: this isn't really a good example.
|
|
104 |
Isar doesn't have cterms, the "term" command just checks & prints
|
|
105 |
a term in the current context. -->
|
|
106 |
<opn name="checkterm">
|
|
107 |
<inputform>
|
|
108 |
<field name="term"><pgipstring/><prompt>Input a term:</prompt></field>
|
|
109 |
</inputform>
|
|
110 |
<opsrc></opsrc>
|
|
111 |
<optrg>term</optrg>
|
|
112 |
<opcmd>term %term</opcmd>
|
|
113 |
</opn>
|
|
114 |
|
|
115 |
<!-- proof operations -->
|
|
116 |
<opn name="applyrule">
|
|
117 |
<opsrc>ruleset</opsrc>
|
|
118 |
<opcmd>apply (rule %1)</opcmd>
|
|
119 |
</opn>
|
|
120 |
<opn name="applyerule">
|
|
121 |
<opsrc>ruleset</opsrc>
|
|
122 |
<opcmd>apply (erule %1)</opcmd>
|
|
123 |
</opn>
|
|
124 |
<opn name="applydrule">
|
|
125 |
<opsrc>ruleset</opsrc>
|
|
126 |
<opcmd>apply (drule %1)</opcmd>
|
|
127 |
</opn>
|
|
128 |
|
|
129 |
<!-- introduce new goal -->
|
|
130 |
<!-- [FIXME: ideally need to generalise substitution for options? in pgipchoice -->
|
|
131 |
<opn name="openlemma">
|
|
132 |
<inputform>
|
|
133 |
<field name="name"><pgipstring/><prompt>Input a name:</prompt></field>
|
|
134 |
<field name="term"><pgipstring/><prompt>Input a term:</prompt></field>
|
|
135 |
<field name="attributes">
|
|
136 |
<pgipchoice>
|
15193
|
137 |
<pgipconst name="none"></pgipconst>
|
|
138 |
<pgipconst name="use in global simplifier context">[simp]</pgipconst>
|
15133
|
139 |
</pgipchoice>
|
|
140 |
<prompt>Attributes:</prompt></field>
|
|
141 |
</inputform>
|
|
142 |
<opsrc></opsrc>
|
|
143 |
<opcmd>lemma %attributes %name : "%term"</opcmd>
|
|
144 |
</opn>
|
|
145 |
|
|
146 |
</guiconfig>
|
|
147 |
|