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