author | aspinall |
Fri, 30 Sep 2005 10:58:11 +0200 | |
changeset 17730 | 643f0f4293ae |
parent 15193 | 4ed712d3551f |
child 17738 | 9c7fc0d5cf84 |
permissions | -rw-r--r-- |
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 |
||
17730
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
17 |
<displayconfig> |
15133 | 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"> |
|
17730
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
27 |
<hasprefs prefcategory="Theorem attributes"> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
28 |
<haspref name="thm-kind" descr="Theorem kind"> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
29 |
<pgipchoice> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
30 |
<pgipconst name="Theorem">theorem</pgipconst> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
31 |
<pgipconst name="Lemma">lemma</pgipconst> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
32 |
<pgipconst name="Corollary">corollary</pgipconst> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
33 |
</pgipchoice> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
34 |
</haspref> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
35 |
<haspref name="thm-simp" descr="Include in simplifier set"> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
36 |
<pgipbool/> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
37 |
</haspref> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
38 |
<haspref name="thm-intro" descr="Flag as introduction rule"> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
39 |
<pgipbool/> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
40 |
</haspref> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
41 |
<haspref name="thm-elim" descr="Flag as elimination rule"> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
42 |
<pgipbool/> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
43 |
</haspref> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
44 |
<haspref name="thm-dest" descr="Flag as destruction rule"> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
45 |
<pgipbool/> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
46 |
</haspref> |
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
47 |
</hasprefs> |
15133 | 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 --> |
|
17730
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
130 |
<!-- [FIXME: ideally need to generalise substitution for options? in pgipchoice] --> |
15133 | 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 |
||
17730
643f0f4293ae
Fix for guiconfig -> displayconfig element rename
aspinall
parents:
15193
diff
changeset
|
146 |
</displayconfig> |
15133 | 147 |