]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/proofs.xsl
ExT_ind implemented.
[helm.git] / helm / style / proofs.xsl
index 081711c5311ab6b63c445dbe5537ef1982104ea5..6c3375d97c873b42d3ed4612f5677bbe9f5837ab 100644 (file)
       <xsl:apply-templates mode="pure" select="*[6]"/>
      </m:apply>
     </xsl:when>
+    <!-- exT_ind -->
+    <xsl:when test="name()= 'APPLY' and CONST[
+ attribute::uri='cic:/Coq/Init/Logic_Type/exT_ind.con'] 
+ and count(child::*) = 6 
+ and name(*[5])='LAMBDA' 
+ and name(*[5]/target/*[1])='LAMBDA'"> 
+     <m:apply helm:xref="{@id}">
+      <m:csymbol>ex_ind</m:csymbol>
+      <xsl:apply-templates mode="noannot" select="*[6]"/>
+      <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[5]/target/@binder"/></xsl:with-param></xsl:call-template></m:ci>
+      <xsl:apply-templates mode="pure" select="*[5]/source/*"/>
+      <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[5]/target/LAMBDA/target/@binder"/></xsl:with-param></xsl:call-template></m:ci>
+      <xsl:apply-templates mode="pure" select="*[5]/target/LAMBDA/source/*"/>
+      <xsl:apply-templates mode="noannot" select="*[5]/target/LAMBDA/target/*"/>
+     </m:apply>
+    </xsl:when>
+    <!-- Threads -->
     <!-- <xsl:when test="count(*[@id = //InnerTypes/TYPE/@of]) = 1"> -->
     <xsl:when test="count(*[@sort='Prop' and (name(.)='LAMBDA' or name(.)='LETIN' or name(.)='APPLY' or name(.)='MUTCASE' or name(.)='FIX' or name(.)='COFIX')]) = 1">
      <m:apply helm:xref="{@id}">
      <xsl:apply-templates mode="thread" select="*[5]"/>
    </xsl:when>
 <!--**** Patch temporanea, per il problema dei threads ***-->
-<xsl:when test="(name()= 'APPLY' and CONST[
- attribute::uri='cic:/Coq/Init/Logic/Conjunction/and_ind.con'] 
+<xsl:when test="(name()= 'APPLY' and 
+ (CONST[attribute::uri='cic:/Coq/Init/Logic/Conjunction/and_ind.con']
+  or
+   CONST[attribute::uri='cic:/Coq/Init/Logic_Type/exT_ind.con'])
  and count(child::*) = 6 
  and name(*[5])='LAMBDA' 
  and name(*[5]/target/*[1])='LAMBDA')