<!-- ************************* LOGIC *********************************-->
-
<xsl:template match="*" mode="set">
<xsl:choose>
<xsl:when test="name() = 'LAMBDA'">
<m:set>
<m:bvar>
<m:ci>
- <xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="target/@binder"/></xsl:with-param></xsl:call-template>
+ <xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[1]/@binder"/></xsl:with-param></xsl:call-template>
</m:ci>
<m:type>
- <xsl:apply-templates select="source" mode="noannot"/>
+ <xsl:apply-templates select="*[1]" mode="noannot"/>
</m:type>
</m:bvar>
<m:condition>
- <xsl:apply-templates select="target" mode="noannot"/>
+ <xsl:apply-templates select="*[2]" mode="lambda"/>
</m:condition>
</m:set>
</xsl:when>
</xsl:choose>
</xsl:template>
-
<!-- IN -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/In.con']]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/In.con']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- NOT-IN -->
<!-- NOT ha no parameters -->
<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Logic/not.con']
-and (count(child::*) = 2) and APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/In.con']]]" mode="pure">
+and (count(child::*) = 2) and APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/In.con']]]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- EMPTY SET -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Empty_set.ind']]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Empty_set.ind']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
</xsl:when>
<xsl:when test="(count(child::*) - number($no_params)) = 2">
<m:apply helm:xref="{@id}">
- <m:in definitionURL="cic:/Coq/Sets/Ensembles/Ensembles/In.con"/>
+ <m:in definitionURL="cic:/Coq/Sets/Ensembles/In.con"/>
<xsl:apply-templates select="*[2+$no_params]" mode="noannot"/>
<m:set definitionURL="{MUTIND/@uri}" helm:xref="{@id}">
</m:set>
<!-- SINGLETON -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Singleton.ind']]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Singleton.ind']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
</xsl:when>
<xsl:when test="(count(child::*) - number($no_params)) = 3">
<m:apply helm:xref="{@id}">
- <m:in definitionURL="cic:/Coq/Sets/Ensembles/Ensembles/In.con"/>
+ <m:in definitionURL="cic:/Coq/Sets/Ensembles/In.con"/>
<xsl:apply-templates select="*[3+$no_params]" mode="noannot"/>
<m:set definitionURL="{MUTIND/@uri}">
<xsl:apply-templates select="*[2+$no_params]" mode="noannot"/>
<!-- COUPLE -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Couple.ind']]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Couple.ind']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
</xsl:when>
<xsl:when test="(count(child::*) - number($no_params)) = 4">
<m:apply helm:xref="{@id}">
- <m:in definitionURL="cic:/Coq/Sets/Ensembles/Ensembles/In.con"/>
+ <m:in definitionURL="cic:/Coq/Sets/Ensembles/In.con"/>
<xsl:apply-templates select="*[4+$no_params]" mode="noannot"/>
<m:set definitionURL="{MUTIND/@uri}">
<xsl:apply-templates select="*[2+$no_params]" mode="noannot"/>
<!-- TRIPLE -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Triple.ind'] and (count(child::*) = 5)]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Triple.ind'] and (count(child::*) = 5)]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
</xsl:when>
<xsl:when test="(count(child::*) - number($no_params)) = 5">
<m:apply helm:xref="{@id}">
- <m:in definitionURL="cic:/Coq/Sets/Ensembles/Ensembles/In.con"/>
+ <m:in definitionURL="cic:/Coq/Sets/Ensembles/In.con"/>
<xsl:apply-templates select="*[5+$no_params]" mode="noannot"/>
<m:set definitionURL="{MUTIND/@uri}">
<xsl:apply-templates select="*[2+$no_params]" mode="noannot"/>
<!-- INTERSECTION -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Intersection.ind']]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Intersection.ind']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- UNION -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Union.ind']]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Ensembles/Union.ind']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- INCLUDED -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Included.con']]" mode="pure">
- <xsl:variable name="no_params">
- <xsl:call-template name="get_no_params">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Included.con']]" mode="pure">
+ <xsl:variable name="no_params"> <xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<xsl:with-param name="second_uri" select="CONST/@uri"/>
</xsl:call-template>
<!-- STRICTLY INCLUDED -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Strict_Included.con']]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Strict_Included.con']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- SET-DIFF -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Setminus.con']]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Setminus.con']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- ADD-ELEM -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Add.con']]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Add.con']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- SUBTRACT-ELEM -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Ensembles/Subtract.con']]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Sets/Ensembles/Subtract.con']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- CARD -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Finite_sets/Ensembles_finis/cardinal.ind']]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Sets/Finite_sets/cardinal.ind']]" mode="pure">
<xsl:variable name="no_params">
<xsl:call-template name="get_no_params">
<xsl:with-param name="first_uri" select="$CICURI"/>
<!-- ******************* SIGMA TYPES **************************** -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Specif/Subsets/sig.ind']]" mode="pure">
+
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Specif/sig.ind']]" mode="pure">
<xsl:choose>
<xsl:when test="count(child::*) = 3">
<xsl:choose>
<m:set>
<m:bvar>
<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>
+ <xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[3]/*[1]/@binder"/></xsl:with-param></xsl:call-template>
</m:ci>
<m:type>
- <xsl:apply-templates select="*[3]/source/*[1]" mode="noannot"/>
+ <xsl:apply-templates select="*[3]/*[1]/*[1]" mode="noannot"/>
</m:type>
</m:bvar>
<m:condition>
- <xsl:apply-templates select="*[3]/target/*[1]" mode="noannot"/>
+ <xsl:apply-templates select="*[3]/*[2]" mode="lambda"/>
</m:condition>
</m:set>
</xsl:when>
</xsl:template>
+
</xsl:stylesheet>