From 1898ffc8283cf32f9551c6cce80b43e6355a4579 Mon Sep 17 00:00:00 2001 From: Andrea Asperti Date: Thu, 5 Dec 2002 14:43:30 +0000 Subject: [PATCH] Notation for if then else. Other bug fixes. --- helm/style/content.xsl | 1 + helm/style/content_to_html.xsl | 38 +++++++++++++++++++++++++++ helm/style/html_init.xsl | 2 -- helm/style/inductive.xsl | 7 ++--- helm/style/ite.xsl | 48 ++++++++++++++++++++++++++++++++++ helm/style/logic.xsl | 25 +++++++++++++++--- helm/style/mmlextension.xsl | 43 ++++++++++++++++++++++++++++++ helm/style/proofs.xsl | 2 +- helm/style/xslt_index.txt | 1 + 9 files changed, 157 insertions(+), 10 deletions(-) create mode 100644 helm/style/ite.xsl diff --git a/helm/style/content.xsl b/helm/style/content.xsl index f2f7b713a..1be668bb0 100644 --- a/helm/style/content.xsl +++ b/helm/style/content.xsl @@ -37,6 +37,7 @@ xmlns:helm="http://www.cs.unibo.it/helm"> + diff --git a/helm/style/content_to_html.xsl b/helm/style/content_to_html.xsl index 21b663942..1a66b86dd 100644 --- a/helm/style/content_to_html.xsl +++ b/helm/style/content_to_html.xsl @@ -227,6 +227,12 @@ +   @@ -460,6 +466,15 @@ + + + if + + then + + else + + @@ -1187,6 +1202,29 @@ + + + if + + + +
+ + + + then + + + +
+ + + + else + + + +
diff --git a/helm/style/html_init.xsl b/helm/style/html_init.xsl index 46fc61b24..91d978f5c 100644 --- a/helm/style/html_init.xsl +++ b/helm/style/html_init.xsl @@ -481,8 +481,6 @@
- - + + select="count($arg_types[1]/decl)"/> + select="count($actual_args[1]/decl)"/> + select="($no_actual_abst_of_arg >= $no_expected_arg_of_arg)"/> diff --git a/helm/style/ite.xsl b/helm/style/ite.xsl new file mode 100644 index 000000000..1b0e14a72 --- /dev/null +++ b/helm/style/ite.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ite + + + + + + + + + diff --git a/helm/style/logic.xsl b/helm/style/logic.xsl index 0685f47b0..0a261260a 100644 --- a/helm/style/logic.xsl +++ b/helm/style/logic.xsl @@ -47,7 +47,7 @@ + count(*[5]/decl) >= 2]"> and_ind @@ -56,7 +56,14 @@ - + + + + + + + + @@ -117,11 +124,12 @@ --> + + name(*[5])='LAMBDA' and count(*[5]/decl) >= 2 ]"> ex_ind @@ -130,9 +138,18 @@ - + + + + + + + + + + diff --git a/helm/style/mmlextension.xsl b/helm/style/mmlextension.xsl index 31b8c766a..8757d0023 100644 --- a/helm/style/mmlextension.xsl +++ b/helm/style/mmlextension.xsl @@ -1121,6 +1121,49 @@ which generates the toplevel element (see for instance xlink) --> } + + + + + + + + + if + + + + + + + + then + + + + + + + + else + + + + + + + + + if + + then + + else + + + + + diff --git a/helm/style/proofs.xsl b/helm/style/proofs.xsl index 78efb9cb1..65de766d1 100644 --- a/helm/style/proofs.xsl +++ b/helm/style/proofs.xsl @@ -413,7 +413,7 @@ - + let diff --git a/helm/style/xslt_index.txt b/helm/style/xslt_index.txt index 9b3260cbf..84cd46836 100644 --- a/helm/style/xslt_index.txt +++ b/helm/style/xslt_index.txt @@ -13,6 +13,7 @@ html_init.xsl html_reals.xsl html_set.xsl inductive.xsl +ite.xsl lambda.xsl link.xsl links_library.xsl -- 2.39.2