<!--******************************************************************-->
<!-- Basic Logic -->
<!-- First draft: April 3 2000 -->
-<!-- HELM Group: Asperti, Padovani, Sacerdoti, Schena -->
+<!-- HELM Group: Asperti, Padovani, Sacerdoti, Schena, Guidi -->
<!--******************************************************************-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
</xsl:template>
<!-- IFF -->
-<!--
+<!--
<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Logic/Equivalence/iff.ind'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:iff definitionURL="{CONST/@uri}" helm:xref="{CONST/@id}"/>
<xsl:choose>
<xsl:when test="name(*[3]) = 'LAMBDA'">
<m:bvar>
- <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="LAMBDA/target/@binder"/></xsl:with-param></xsl:call-template></m:ci>
+ <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[3]/target/@binder"/></xsl:with-param></xsl:call-template></m:ci>
</m:bvar>
+ <m:condition>
+ <xsl:apply-templates select="*[2]" mode="pure"/>
+ </m:condition>
<xsl:apply-templates select="LAMBDA/target" mode="noannot"/>
</xsl:when>
<xsl:otherwise>
<m:bvar>
<m:ci>$x</m:ci>
</m:bvar>
+ <m:condition>
+ <xsl:apply-templates select="*[2]" mode="pure"/>
+ </m:condition>
<m:apply>
<m:csymbol>app</m:csymbol>
<xsl:apply-templates select="*[3]" mode="noannot"/>
</m:apply>
</xsl:template>
-<!-- EQUALITY -->
+<!-- EQUALITY and TYPE EQUALITY -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic/Equality/eq.ind'] and (count(child::*) = 4)]" mode="pure">
- <m:apply helm:xref="{@id}">
- <m:eq definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
- <xsl:apply-templates select="*[3]" mode="noannot"/>
- <xsl:apply-templates select="*[4]" mode="noannot"/>
- </m:apply>
+<xsl:template match="APPLY[MUTIND/@uri='cic:/Coq/Init/Logic/Equality/eq.ind']" mode="pure">
+ <xsl:call-template name="mk-mml-op-noannot">
+ <xsl:with-param name="hide" select="1"/>
+ <xsl:with-param name="c-tag" select="MUTIND"/>
+ <xsl:with-param name="m-tag" select="'eq'"/>
+ </xsl:call-template>
</xsl:template>
-
-<!-- TYPE EQUALITY -->
-
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic_Type/eqT.ind'] and (count(child::*) = 4)]" mode="pure">
- <m:apply helm:xref="{@id}">
- <m:eq definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
- <xsl:apply-templates select="*[3]" mode="noannot"/>
- <xsl:apply-templates select="*[4]" mode="noannot"/>
- </m:apply>
+<xsl:template match="APPLY[MUTIND/@uri='cic:/Coq/Init/Logic_Type/eqT.ind']" mode="pure">
+ <xsl:call-template name="mk-mml-op-noannot">
+ <xsl:with-param name="hide" select="1"/>
+ <xsl:with-param name="c-tag" select="MUTIND"/>
+ <xsl:with-param name="m-tag" select="'eq'"/>
+ </xsl:call-template>
</xsl:template>
<!-- NOT-EQ -->
<!-- no datatypes in MathML content -->
+<!-- ************************** PEANO ********************************* -->
-<!-- *************************** PEANO ********************************* -->
-
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Peano/le.ind'] and (count(child::*) = 3)]" mode="pure">
- <m:apply helm:xref="{@id}">
- <m:leq definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
- <xsl:apply-templates select="*[2]" mode="noannot"/>
- <xsl:apply-templates select="*[3]" mode="noannot"/>
- </m:apply>
-</xsl:template>
-
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Peano/lt.con'] and (count(child::*) = 3)]" mode="pure">
- <m:apply helm:xref="{@id}">
- <m:lt definitionURL="{CONST/@uri}" helm:xref="{CONST/@id}"/>
- <xsl:apply-templates select="*[2]" mode="noannot"/>
- <xsl:apply-templates select="*[3]" mode="noannot"/>
- </m:apply>
-</xsl:template>
-
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Peano/ge.con'] and (count(child::*) = 3)]" mode="pure">
- <m:apply helm:xref="{@id}">
- <m:geq definitionURL="{CONST/@uri}" helm:xref="{CONST/@id}"/>
- <xsl:apply-templates select="*[2]" mode="noannot"/>
- <xsl:apply-templates select="*[3]" mode="noannot"/>
- </m:apply>
-</xsl:template>
-
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Peano/gt.con'] and (count(child::*) = 3)]" mode="pure">
- <m:apply helm:xref="{@id}">
- <m:gt definitionURL="{CONST/@uri}" helm:xref="{CONST/@id}"/>
- <xsl:apply-templates select="*[2]" mode="noannot"/>
- <xsl:apply-templates select="*[3]" mode="noannot"/>
- </m:apply>
-</xsl:template>
+<!-- see arith.xsl --> <!-- FG -->
</xsl:stylesheet>
-
-
-
-
-
-