From b4fb4fa6c17945b70d821e2b31e6aca727bcf9d5 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Fri, 26 May 2006 13:41:55 +0000 Subject: [PATCH] More documentation. --- helm/software/matita/help/C/matita.xml | 4 +- helm/software/matita/help/C/sec_tactics.xml | 34 ++-- helm/software/matita/help/C/sec_terms.xml | 166 +++++++++++++++----- 3 files changed, 143 insertions(+), 61 deletions(-) diff --git a/helm/software/matita/help/C/matita.xml b/helm/software/matita/help/C/matita.xml index 14411ad71..1120cb4ec 100644 --- a/helm/software/matita/help/C/matita.xml +++ b/helm/software/matita/help/C/matita.xml @@ -24,7 +24,9 @@ uri"> nat"> term"> - term_pattern"> + match_pattern"> + args"> + sterm"> ]> diff --git a/helm/software/matita/help/C/sec_tactics.xml b/helm/software/matita/help/C/sec_tactics.xml index fb695879f..96e56494c 100644 --- a/helm/software/matita/help/C/sec_tactics.xml +++ b/helm/software/matita/help/C/sec_tactics.xml @@ -4,7 +4,7 @@ Tactics - absurd &term; + absurd &sterm; absurd absurd P @@ -33,7 +33,7 @@ - apply &term; + apply &sterm; apply apply t @@ -188,7 +188,7 @@ - change <pattern> with &term; + change <pattern> with &sterm; change change patt with t @@ -281,7 +281,7 @@ - cut &term; [as &id;] + cut &sterm; [as &id;] cut cut P as H @@ -339,7 +339,7 @@ - discriminate &term; + discriminate &sterm; discriminate discriminate p @@ -368,7 +368,7 @@ its constructor takes no arguments. - elim &term; [using &term;] [<intros_spec>] + elim &sterm; [using &sterm;] [<intros_spec>] elim elim t using th hyps @@ -405,7 +405,7 @@ its constructor takes no arguments. - elimType &term; [using &term;] [<intros_spec>] + elimType &sterm; [using &sterm;] [<intros_spec>] elimType elimType T using th hyps @@ -432,7 +432,7 @@ its constructor takes no arguments. - exact &term; + exact &sterm; exact exact p @@ -518,7 +518,7 @@ its constructor takes no arguments. - fold <reduction_kind> &term; <pattern> + fold <reduction_kind> &sterm; <pattern> fold fold red t patt @@ -670,7 +670,7 @@ its constructor takes no arguments. - injection &term; + injection &sterm; injection injection p @@ -771,7 +771,7 @@ its constructor takes no arguments. - inversion &term; + inversion &sterm; inversion inversion t @@ -806,7 +806,7 @@ its constructor takes no arguments. - lapply [depth=&nat;] &term; [to <term list>] [using &id;] + lapply [depth=&nat;] &sterm; [to <term list>] [using &id;] lapply lapply ??? @@ -864,7 +864,7 @@ its constructor takes no arguments. - letin &id; ≝ &term; + letin &id; ≝ &sterm; letin letin x ≝ t @@ -1004,7 +1004,7 @@ its constructor takes no arguments. - replace <pattern> with &term; + replace <pattern> with &sterm; change change patt with t @@ -1036,7 +1036,7 @@ its constructor takes no arguments. - rewrite [<|>] &term; <pattern> + rewrite [<|>] &sterm; <pattern> rewrite rewrite dir p patt @@ -1221,7 +1221,7 @@ its constructor takes no arguments. - transitivity &term; + transitivity &sterm; transitivity transitivity t @@ -1250,7 +1250,7 @@ the current sequent to prove. - unfold [&term;] <pattern> + unfold [&sterm;] <pattern> unfold unfold t patt diff --git a/helm/software/matita/help/C/sec_terms.xml b/helm/software/matita/help/C/sec_terms.xml index 3171544a2..45459572b 100644 --- a/helm/software/matita/help/C/sec_terms.xml +++ b/helm/software/matita/help/C/sec_terms.xml @@ -65,68 +65,143 @@ &term; ::= - &id; - identifier + &sterm; + simple or delimited term | - &uri; - a qualified reference + &term; &term; + application | - Prop - the impredicative sort of propositions + λ&args;.&term; + λ-abstraction | - Set - the impredicate sort of datatypes + Π&args;.&term; + dependent product meant to define a datatype | - Type - one predicative sort of datatypes + ∀&args;.&term; + dependent product meant to define a proposition | - &term; &term; - application + &term; → &term; + non-dependent product (logical implication or function space) | - λ&id;[: &term;].&term; - λ-abstraction + let [&id;|(&id;: &term;)] ≝ &term; in &term; + local definition | - Π&id;[: &term;].&term; - dependent product meant to define a datatype + let + [co]rec + &id; [&id;|(&id;[,&term;]… :&term;)]… [on &nat;] + [: &term;] + ≝ &term; + + (co)recursive definitions + + + + + + [and + [&id;|(&id;[,&term;]… :&term;)]… [on &nat;] + [: &term;] + ≝ &term;]… + + + + + + + + in &term; + + | - ∀&id;[: &term;].&term; - dependent product meant to define a proposition + … + user provided notation + + + + + + + + + + + &sterm; + ::= + (&term;) + | - &term; → &term; - non-dependent product (logical implication or function space) + &id;[\subst[ + &id;≝&term; + [;&id;≝&term;]… + ]] + + identifier with optional explicit named substitution | - let [&id;|(&id;: &term;)] ≝ &term; in &term; - local definition + &uri; + a qualified reference + + + + | + Prop + the impredicative sort of propositions + + + + | + Set + the impredicate sort of datatypes + + + + | + Type + one predicative sort of datatypes + + + + | + ? + implicit argument + + + + | + ?n + [[ + [_|&term;]… + ]] + metavariable @@ -143,42 +218,46 @@ [ - &term_pattern; ⇒ &term; + &match_pattern; ⇒ &term; [ | - &term_pattern; ⇒ &term; + &match_pattern; ⇒ &term; ]…] | - let - [co]rec - &id; [&id;]… [on &nat;] - [: &term;] - ≝ &term; - - (co)recursive definitions + (&term;:&term;) + cast - - - [and - &id; [&id;]… [on &nat;] - [: &term;] - ≝ &term;]… - - + | + … + user provided notation at precedence 90 + + +
+ + + + + - - + &args; + ::= - in &term; + [(]_[: &term;][)] + ignored argument + + + | + [(]&id;[,&id;]…[: &term;][)] + @@ -189,7 +268,7 @@ - &term_pattern; + &match_pattern; ::= &id; 0-ary constructor @@ -203,6 +282,7 @@
+
-- 2.39.2