3 <!-- Copyright (C) 2000, HELM Team -->
5 <!-- This file is part of HELM, an Hypertextual, Electronic -->
6 <!-- Library of Mathematics, developed at the Computer Science -->
7 <!-- Department, University of Bologna, Italy. -->
9 <!-- HELM is free software; you can redistribute it and/or -->
10 <!-- modify it under the terms of the GNU General Public License -->
11 <!-- as published by the Free Software Foundation; either version 2 -->
12 <!-- of the License, or (at your option) any later version. -->
14 <!-- HELM is distributed in the hope that it will be useful, -->
15 <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
16 <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
17 <!-- GNU General Public License for more details. -->
19 <!-- You should have received a copy of the GNU General Public License -->
20 <!-- along with HELM; if not, write to the Free Software -->
21 <!-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, -->
22 <!-- MA 02111-1307, USA. -->
24 <!-- For details, see the HELM World-Wide-Web page, -->
25 <!-- http://cs.unibo.it/helm/. -->
27 <!--******************************************************************-->
29 <!-- (completely) Revisited: november 2002, Andrea Asperti -->
30 <!-- HELM Group: Asperti, Padovani, Sacerdoti, Schena -->
31 <!--******************************************************************-->
33 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
34 xmlns:m="http://www.w3.org/1998/Math/MathML"
35 xmlns:helm="http://www.cs.unibo.it/helm">
37 <xsl:template mode="proof_transform" match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Logic/False_ind.con'] and count(child::*) = 3]">
38 <xsl:variable name="id" select="@id"/>
39 <m:apply helm:xref="{@id}">
40 <m:csymbol>false_ind</m:csymbol>
41 <m:ci>cic:/Coq/Init/Logic/False_ind.con</m:ci>
42 <xsl:apply-templates mode="noannot" select="*[3]"/>
47 <xsl:template mode="proof_transform" match="APPLY[CONST[
48 attribute::uri='cic:/Coq/Init/Logic/and_ind.con'] and
49 count(child::*) = 6 and name(*[5])='LAMBDA' and
50 count(*[5]/decl) = 2]">
51 <xsl:variable name="id" select="@id"/>
52 <m:apply helm:xref="{@id}">
53 <m:csymbol>and_ind</m:csymbol>
54 <xsl:apply-templates mode="noannot" select="*[6]"/>
55 <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[5]/*[1]/@binder"/></xsl:with-param></xsl:call-template></m:ci>
56 <xsl:apply-templates mode="pure" select="*[5]/*[1]/*"/>
57 <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[5]/*[2]/@binder"/></xsl:with-param></xsl:call-template></m:ci>
58 <xsl:apply-templates mode="pure" select="*[5]/*[2]/*"/>
59 <xsl:apply-templates mode="noannot" select="*[5]/target/*"/>
63 <xsl:template mode="proof_transform" match="APPLY[CONST[
64 attribute::uri='cic:/Coq/Init/Logic/or_ind.con']
65 and count(child::*) = 7 and
66 name(*[5])='LAMBDA' and count(*[5]/decl) = 1 and
67 name(*[6])='LAMBDA' and count(*[6]/decl) = 1 ]">
68 <xsl:variable name="id" select="@id"/>
69 <xsl:variable name="definition_url"
70 select="'cic:/Coq/Init/Logic/Disjunction/or.ind'"/>
71 <m:apply helm:xref="{@id}">
72 <m:csymbol>full_or_ind</m:csymbol>
73 <xsl:apply-templates mode="noannot" select="*[7]"/>
74 <xsl:for-each select="$InnerTypes">
75 <xsl:apply-templates mode="pure" select="key('typeid',$id)/*[1]"/>
78 <m:csymbol>left_case</m:csymbol>
81 <xsl:value-of select="*[5]/*[1]/@binder"/>
84 <xsl:apply-templates mode="pure" select="*[5]/*[1]/*"/>
87 <xsl:apply-templates mode="noannot" select="*[5]/target/*"/>
90 <m:csymbol>right_case</m:csymbol>
93 <xsl:apply-templates mode="pure" select="*[6]/*[1]/@binder"/>
96 <xsl:apply-templates mode="pure" select="*[6]/*[1]/*"/>
99 <xsl:apply-templates mode="noannot" select="*[6]/target"/>
106 <m:apply helm:xref="{@id}">
107 <m:csymbol>or_ind</m:csymbol>
108 <xsl:apply-templates mode="noannot" select="*[7]"/>
109 <xsl:for-each select="$InnerTypes">
110 <xsl:apply-templates mode="pure" select="key('typeid',$id)/*[1]"/>
112 <xsl:apply-templates mode="pure" select="*[5]"/>
113 <xsl:apply-templates mode="pure" select="*[6]"/>
120 <xsl:template mode="proof_transform" match="APPLY[CONST[
121 attribute::uri='cic:/Coq/Init/Logic_Type/exT_ind.con' or
122 attribute::uri='cic:/Coq/Init/Logic/First_order_quantifiers/ex_ind.con'] and
123 count(child::*) = 6 and
124 name(*[5])='LAMBDA' and count(*[5]/decl) = 2 ]">
125 <xsl:variable name="id" select="@id"/>
126 <m:apply helm:xref="{@id}">
127 <m:csymbol>ex_ind</m:csymbol>
128 <xsl:apply-templates mode="noannot" select="*[6]"/>
129 <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[5]/*[1]/@binder"/></xsl:with-param></xsl:call-template></m:ci>
130 <xsl:apply-templates mode="pure" select="*[5]/*[1]/*"/>
131 <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="*[5]/*[2]/@binder"/></xsl:with-param></xsl:call-template></m:ci>
132 <xsl:apply-templates mode="pure" select="*[5]/*[2]/*"/>
133 <xsl:apply-templates mode="proof_transform" select="*[5]/target/*"/>