From 522d835109b6df16e1c082ae128c0e08677cbb1b Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Tue, 13 Jun 2006 14:18:33 +0000 Subject: [PATCH] added generation of quick reference card of tactic syntax --- helm/software/matita/help/C/Makefile | 12 +- helm/software/matita/help/C/matita.xml | 2 + helm/software/matita/help/C/sec_tactics.xml | 361 +++++++++++++++--- .../matita/help/C/tactic_quickref.xml | 182 +++++++++ .../matita/help/C/{ => xsl}/matita-fo.xsl | 0 .../matita/help/C/{ => xsl}/matita-tex.xsl | 0 .../matita/help/C/{ => xsl}/matita-xhtml.xsl | 0 .../matita/help/C/xsl/tactic_quickref.xsl | 50 +++ 8 files changed, 558 insertions(+), 49 deletions(-) create mode 100644 helm/software/matita/help/C/tactic_quickref.xml rename helm/software/matita/help/C/{ => xsl}/matita-fo.xsl (100%) rename helm/software/matita/help/C/{ => xsl}/matita-tex.xsl (100%) rename helm/software/matita/help/C/{ => xsl}/matita-xhtml.xsl (100%) create mode 100644 helm/software/matita/help/C/xsl/tactic_quickref.xsl diff --git a/helm/software/matita/help/C/Makefile b/helm/software/matita/help/C/Makefile index dab6f2b4c..2a4287678 100644 --- a/helm/software/matita/help/C/Makefile +++ b/helm/software/matita/help/C/Makefile @@ -2,9 +2,9 @@ include ../../../Makefile.defs XSLTPROC=xsltproc -XHTML_XSL=matita-xhtml.xsl -FO_XSL=matita-fo.xsl -TEX_XSL=matita-tex.xsl +XHTML_XSL=xsl/matita-xhtml.xsl +FO_XSL=xsl/matita-fo.xsl +TEX_XSL=xsl/matita-tex.xsl TEX_UNICODE_PATH=$(SRCROOT)/share/texmf/unicode TEX_ENV=TEXINPUTS=.:$(TEX_UNICODE_PATH):$(TEX_UNICODE_PATH)/data: MAIN=matita.xml @@ -12,7 +12,11 @@ DEPS := $(wildcard *.xml) DESTDIR = /usr/local/share/doc/matita/ -all: html txt +all: quickref + +quickref: tactic_quickref.xml +tactic_quickref.xml: xsl/tactic_quickref.xsl sec_tactics.xml + $(XSLTPROC) $< matita.xml > tactic_quickref.xml # one of: "fop", "pdflatex" PDF_METHOD=pdflatex diff --git a/helm/software/matita/help/C/matita.xml b/helm/software/matita/help/C/matita.xml index 96e5aa44a..647ebb966 100644 --- a/helm/software/matita/help/C/matita.xml +++ b/helm/software/matita/help/C/matita.xml @@ -13,6 +13,8 @@ + + Matita"> diff --git a/helm/software/matita/help/C/sec_tactics.xml b/helm/software/matita/help/C/sec_tactics.xml index cc0043724..2e1f6f365 100644 --- a/helm/software/matita/help/C/sec_tactics.xml +++ b/helm/software/matita/help/C/sec_tactics.xml @@ -1,14 +1,27 @@ - Tactics + Tactics + + + Quick reference card + + &tacticref; + + - <emphasis role="bold">absurd</emphasis> &sterm; + absurd absurd absurd P + + Synopsis: + + absurd &sterm; + + Pre-conditions: @@ -33,11 +46,17 @@ - <emphasis role="bold">apply</emphasis> &sterm; + apply apply apply t + + Synopsis: + + apply &sterm; + + Pre-conditions: @@ -68,11 +87,17 @@ - <emphasis role="bold">assumption</emphasis> + assumption assumption assumption + + Synopsis: + + assumption + + Pre-conditions: @@ -96,11 +121,17 @@ - <emphasis role="bold">auto</emphasis> [<emphasis role="bold">depth=</emphasis>&nat;] [<emphasis role="bold">width=</emphasis>&nat;] [<emphasis role="bold">paramodulation</emphasis>] [<emphasis role="bold">full</emphasis>] + auto auto auto depth=d width=w paramodulation full + + Synopsis: + + auto [depth=&nat;] [width=&nat;] [paramodulation] [full] + + Pre-conditions: @@ -130,11 +161,17 @@ - <emphasis role="bold">clear</emphasis> &id; + clear clear clear H + + Synopsis: + + clear &id; + + Pre-conditions: @@ -159,11 +196,17 @@ - <emphasis role="bold">clearbody</emphasis> &id; + clearbody clearbody clearbody H + + Synopsis: + + clearbody &id; + + Pre-conditions: @@ -188,11 +231,17 @@ - <emphasis role="bold">change</emphasis> &pattern; <emphasis role="bold">with</emphasis> &sterm; + change change change patt with t + + Synopsis: + + change &pattern; with &sterm; + + Pre-conditions: @@ -220,11 +269,17 @@ - <emphasis role="bold">constructor</emphasis> &nat; + constructor constructor constructor n + + Synopsis: + + constructor &nat; + + Pre-conditions: @@ -252,11 +307,17 @@ - <emphasis role="bold">contradiction</emphasis> + contradiction contradiction contradiction + + Synopsis: + + contradiction + + Pre-conditions: @@ -281,11 +342,17 @@ - <emphasis role="bold">cut</emphasis> &sterm; [<emphasis role="bold">as</emphasis> &id;] + cut cut cut P as H + + Synopsis: + + cut &sterm; [as &id;] + + Pre-conditions: @@ -312,13 +379,19 @@ - <emphasis role="bold">decompose</emphasis> &id; [&id;]… &intros-spec; + decompose decompose decompose (T1 ... Tn) H hips + + Synopsis: + + decompose &id; [&id;]… &intros-spec; + + Pre-conditions: @@ -353,11 +426,17 @@ - <emphasis role="bold">demodulation</emphasis> &pattern; + demodulation demodulation demodulation patt + + Synopsis: + + demodulation &pattern; + + Pre-conditions: @@ -380,11 +459,17 @@ - <emphasis role="bold">discriminate</emphasis> &sterm; + discriminate discriminate discriminate p + + Synopsis: + + discriminate &sterm; + + Pre-conditions: @@ -409,11 +494,17 @@ its constructor takes no arguments. - <emphasis role="bold">elim</emphasis> &sterm; [<emphasis role="bold">using</emphasis> &sterm;] &intros-spec; + elim elim elim t using th hyps + + Synopsis: + + elim &sterm; [using &sterm;] &intros-spec; + + Pre-conditions: @@ -446,11 +537,17 @@ its constructor takes no arguments. - <emphasis role="bold">elimType</emphasis> &sterm; [<emphasis role="bold">using</emphasis> &sterm;] &intros-spec; + elimType elimType elimType T using th hyps + + Synopsis: + + elimType &sterm; [using &sterm;] &intros-spec; + + Pre-conditions: @@ -473,11 +570,17 @@ its constructor takes no arguments. - <emphasis role="bold">exact</emphasis> &sterm; + exact exact exact p + + Synopsis: + + exact &sterm; + + Pre-conditions: @@ -501,11 +604,17 @@ its constructor takes no arguments. - <emphasis role="bold">exists</emphasis> + exists exists exists + + Synopsis: + + exists + + Pre-conditions: @@ -532,11 +641,17 @@ its constructor takes no arguments. - <emphasis role="bold">fail</emphasis> + fail fail fail + + Synopsis: + + fail + + Pre-conditions: @@ -559,11 +674,17 @@ its constructor takes no arguments. - <emphasis role="bold">fold</emphasis> &reduction-kind; &sterm; &pattern; + fold fold fold red t patt + + Synopsis: + + fold &reduction-kind; &sterm; &pattern; + + Pre-conditions: @@ -591,11 +712,17 @@ its constructor takes no arguments. - <emphasis role="bold">fourier</emphasis> + fourier fourier fourier + + Synopsis: + + fourier + + Pre-conditions: @@ -621,11 +748,17 @@ its constructor takes no arguments. - <emphasis role="bold">fwd</emphasis> &id; [<emphasis role="bold">(</emphasis>[&id;]…<emphasis role="bold">)</emphasis>] + fwd fwd fwd ...TODO + + Synopsis: + + fwd &id; [([&id;]…)] + + Pre-conditions: @@ -648,11 +781,17 @@ its constructor takes no arguments. - <emphasis role="bold">generalize</emphasis> &pattern; [<emphasis role="bold">as</emphasis> &id;] + generalize generalize generalize patt as H + + Synopsis: + + generalize &pattern; [as &id;] + + Pre-conditions: @@ -684,11 +823,17 @@ its constructor takes no arguments. - <emphasis role="bold">id</emphasis> + id id id + + Synopsis: + + id + + Pre-conditions: @@ -711,11 +856,17 @@ its constructor takes no arguments. - <emphasis role="bold">injection</emphasis> &sterm; + injection injection injection p + + Synopsis: + + injection &sterm; + + Pre-conditions: @@ -742,11 +893,17 @@ its constructor takes no arguments. - <emphasis role="bold">intro</emphasis> [&id;] + intro intro intro H + + Synopsis: + + intro [&id;] + + Pre-conditions: @@ -775,11 +932,17 @@ its constructor takes no arguments. - <emphasis role="bold">intros</emphasis> &intros-spec; + intros intros intros hyps + + Synopsis: + + intros &intros-spec; + + Pre-conditions: @@ -812,11 +975,17 @@ its constructor takes no arguments. - <emphasis role="bold">inversion</emphasis> &sterm; + inversion inversion inversion t + + Synopsis: + + inversion &sterm; + + Pre-conditions: @@ -847,7 +1016,7 @@ its constructor takes no arguments. - <emphasis role="bold">lapply</emphasis> [<emphasis role="bold">depth=</emphasis>&nat;] &sterm; [<emphasis role="bold">to</emphasis> &sterm; [&sterm;]…] [<emphasis role="bold">as</emphasis> &id;] + lapply lapply lapply depth=d t @@ -855,6 +1024,12 @@ its constructor takes no arguments. + + Synopsis: + + lapply [depth=&nat;] &sterm; [to &sterm; [&sterm;]…] [as &id;] + + Pre-conditions: @@ -877,11 +1052,17 @@ its constructor takes no arguments. - <emphasis role="bold">left</emphasis> + left left left + + Synopsis: + + left + + Pre-conditions: @@ -908,11 +1089,17 @@ its constructor takes no arguments. - <emphasis role="bold">letin</emphasis> &id; <emphasis role="bold">≝</emphasis> &sterm; + letin letin letin x ≝ t + + Synopsis: + + letin &id; ≝ &sterm; + + Pre-conditions: @@ -936,11 +1123,17 @@ its constructor takes no arguments. - <emphasis role="bold">normalize</emphasis> &pattern; + normalize normalize normalize patt + + Synopsis: + + normalize &pattern; + + Pre-conditions: @@ -964,11 +1157,17 @@ its constructor takes no arguments. - <emphasis role="bold">paramodulation</emphasis> &pattern; + paramodulation paramodulation paramodulation patt + + Synopsis: + + paramodulation &pattern; + + Pre-conditions: @@ -991,11 +1190,17 @@ its constructor takes no arguments. - <emphasis role="bold">reduce</emphasis> &pattern; + reduce reduce reduce patt + + Synopsis: + + reduce &pattern; + + Pre-conditions: @@ -1019,11 +1224,17 @@ its constructor takes no arguments. - <emphasis role="bold">reflexivity</emphasis> + reflexivity reflexivity reflexivity + + Synopsis: + + reflexivity + + Pre-conditions: @@ -1048,11 +1259,17 @@ its constructor takes no arguments. - <emphasis role="bold">replace</emphasis> &pattern; <emphasis role="bold">with</emphasis> &sterm; + replace change change patt with t + + Synopsis: + + replace &pattern; with &sterm; + + Pre-conditions: @@ -1080,11 +1297,17 @@ its constructor takes no arguments. - <emphasis role="bold">rewrite</emphasis> [<emphasis role="bold"><</emphasis>|<emphasis role="bold">></emphasis>] &sterm; &pattern; + rewrite rewrite rewrite dir p patt + + Synopsis: + + rewrite [<|>] &sterm; &pattern; + + Pre-conditions: @@ -1115,11 +1338,17 @@ its constructor takes no arguments. - <emphasis role="bold">right</emphasis> + right right right + + Synopsis: + + right + + Pre-conditions: @@ -1146,11 +1375,17 @@ its constructor takes no arguments. - <emphasis role="bold">ring</emphasis> + ring ring ring + + Synopsis: + + ring + + Pre-conditions: @@ -1177,11 +1412,17 @@ its constructor takes no arguments. - <emphasis role="bold">simplify</emphasis> &pattern; + simplify simplify simplify patt + + Synopsis: + + simplify &pattern; + + Pre-conditions: @@ -1205,11 +1446,17 @@ its constructor takes no arguments. - <emphasis role="bold">split</emphasis> + split split split + + Synopsis: + + split + + Pre-conditions: @@ -1236,12 +1483,18 @@ its constructor takes no arguments. - <emphasis role="bold">symmetry</emphasis> + symmetry symmetry The tactic symmetry symmetry + + Synopsis: + + symmetry + + Pre-conditions: @@ -1265,11 +1518,17 @@ its constructor takes no arguments. - <emphasis role="bold">transitivity</emphasis> &sterm; + transitivity transitivity transitivity t + + Synopsis: + + transitivity &sterm; + + Pre-conditions: @@ -1294,11 +1553,17 @@ the current sequent to prove. - <emphasis role="bold">unfold</emphasis> [&sterm;] &pattern; + unfold unfold unfold t patt + + Synopsis: + + unfold [&sterm;] &pattern; + + Pre-conditions: @@ -1326,11 +1591,17 @@ the current sequent to prove. - <emphasis role="bold">whd</emphasis> &pattern; + whd whd whd patt + + Synopsis: + + whd &pattern; + + Pre-conditions: diff --git a/helm/software/matita/help/C/tactic_quickref.xml b/helm/software/matita/help/C/tactic_quickref.xml new file mode 100644 index 000000000..e1f7eb434 --- /dev/null +++ b/helm/software/matita/help/C/tactic_quickref.xml @@ -0,0 +1,182 @@ + + + absurd sterm + + + apply sterm + + + + + assumption + + + + + auto [depth=nat] [width=nat] [paramodulation] [full] + + + change pattern with sterm + + + clear id + + + clearbody id + + + constructor nat + + + + + contradiction + + + + + cut sterm [as id] + + + decompose id [id]… intros-spec + + + demodulation pattern + + + discriminate sterm + + + elim sterm [using sterm] intros-spec + + + elimType sterm [using sterm] intros-spec + + + exact sterm + + + + + exists + + + + + + + fail + + + + + fold reduction-kind sterm pattern + + + + + fourier + + + + + fwd id [([id]…)] + + + generalize pattern [as id] + + + + + id + + + + + injection sterm + + + intro [id] + + + intros intros-spec + + + inversion sterm + + + lapply [depth=nat] sterm [to sterm [sterm]…] [as id] + + + + + left + + + + + letin id ≝ sterm + + + normalize pattern + + + paramodulation pattern + + + reduce pattern + + + + + reflexivity + + + + + replace pattern with sterm + + + rewrite [<|>] sterm pattern + + + + + right + + + + + + + ring + + + + + simplify pattern + + + + + split + + + + + + + symmetry + + + + + transitivity sterm + + + unfold [sterm] pattern + + + whd pattern + + diff --git a/helm/software/matita/help/C/matita-fo.xsl b/helm/software/matita/help/C/xsl/matita-fo.xsl similarity index 100% rename from helm/software/matita/help/C/matita-fo.xsl rename to helm/software/matita/help/C/xsl/matita-fo.xsl diff --git a/helm/software/matita/help/C/matita-tex.xsl b/helm/software/matita/help/C/xsl/matita-tex.xsl similarity index 100% rename from helm/software/matita/help/C/matita-tex.xsl rename to helm/software/matita/help/C/xsl/matita-tex.xsl diff --git a/helm/software/matita/help/C/matita-xhtml.xsl b/helm/software/matita/help/C/xsl/matita-xhtml.xsl similarity index 100% rename from helm/software/matita/help/C/matita-xhtml.xsl rename to helm/software/matita/help/C/xsl/matita-xhtml.xsl diff --git a/helm/software/matita/help/C/xsl/tactic_quickref.xsl b/helm/software/matita/help/C/xsl/tactic_quickref.xsl new file mode 100644 index 000000000..fa9c034fc --- /dev/null +++ b/helm/software/matita/help/C/xsl/tactic_quickref.xsl @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + tac_ + + + + + + + + + + + + + + + + + + -- 2.39.2