From: Claudio Sacerdoti Coen Date: Thu, 25 May 2006 17:13:58 +0000 (+0000) Subject: More documentation. X-Git-Tag: make_still_working~7328 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=ebd137ecfde1fe0b10e32a939d2abd65d482a4c1;p=helm.git More documentation. --- diff --git a/helm/software/matita/help/C/matita.xml b/helm/software/matita/help/C/matita.xml index 05e0a8212..357727961 100644 --- a/helm/software/matita/help/C/matita.xml +++ b/helm/software/matita/help/C/matita.xml @@ -17,6 +17,13 @@ TODO"> MySQL "> + + + id"> + uri"> + nat"> + term"> + term_pattern"> ]> diff --git a/helm/software/matita/help/C/sec_tactics.xml b/helm/software/matita/help/C/sec_tactics.xml index 4bba23eb6..fb695879f 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 &term; absurd absurd P @@ -33,7 +33,7 @@ - apply <term> + apply &term; apply apply t @@ -96,7 +96,7 @@ - auto [depth=<int>] [width=<int>] [paramodulation] [full] + auto [depth=&nat;] [width=&nat;] [paramodulation] [full] auto auto depth=d width=w paramodulation full @@ -130,7 +130,7 @@ - clear <id> + clear &id; clear clear H @@ -159,7 +159,7 @@ - clearbody <id> + clearbody &id; clearbody clearbody H @@ -188,7 +188,7 @@ - change <pattern> with <term> + change <pattern> with &term; change change patt with t @@ -220,7 +220,7 @@ - constructor <int> + constructor &nat; constructor constructor n @@ -281,7 +281,7 @@ - cut <term> [as <id>] + cut &term; [as &id;] cut cut P as H @@ -312,7 +312,7 @@ - decompose [<ident list>] <ident> [<intros_spec>] + decompose &id; [&id;]… [<intros_spec>] decompose decompose ??? @@ -339,7 +339,7 @@ - discriminate <term> + discriminate &term; discriminate discriminate p @@ -368,7 +368,7 @@ its constructor takes no arguments. - elim <term> [using <term>] [<intros_spec>] + elim &term; [using &term;] [<intros_spec>] elim elim t using th hyps @@ -405,7 +405,7 @@ its constructor takes no arguments. - elimType <term> [using <term>] [<intros_spec>] + elimType &term; [using &term;] [<intros_spec>] elimType elimType T using th hyps @@ -432,7 +432,7 @@ its constructor takes no arguments. - exact <term> + exact &term; exact exact p @@ -518,7 +518,7 @@ its constructor takes no arguments. - fold <reduction_kind> <term> <pattern> + fold <reduction_kind> &term; <pattern> fold fold red t patt @@ -580,7 +580,7 @@ its constructor takes no arguments. - fwd <ident> [<ident list>] + fwd &id; [<ident list>] fwd fwd ...TODO @@ -607,7 +607,7 @@ its constructor takes no arguments. - generalize <pattern> [as <id>] + generalize <pattern> [as &id;] generalize generalize patt as H @@ -670,7 +670,7 @@ its constructor takes no arguments. - injection <term> + injection &term; injection injection p @@ -701,7 +701,7 @@ its constructor takes no arguments. - intro [<ident>] + intro [&id;] intro intro H @@ -771,7 +771,7 @@ its constructor takes no arguments. - inversion <term> + inversion &term; inversion inversion t @@ -806,7 +806,7 @@ its constructor takes no arguments. - lapply [depth=<int>] <term> [to <term list] [using <ident>] + lapply [depth=&nat;] &term; [to <term list>] [using &id;] lapply lapply ??? @@ -864,7 +864,7 @@ its constructor takes no arguments. - letin <ident> ≝ <term> + letin &id; ≝ &term; letin letin x ≝ t @@ -1004,7 +1004,7 @@ its constructor takes no arguments. - replace <pattern> with <term> + replace <pattern> with &term; change change patt with t @@ -1036,7 +1036,7 @@ its constructor takes no arguments. - rewrite {<|>} <term> <pattern> + rewrite [<|>] &term; <pattern> rewrite rewrite dir p patt @@ -1221,7 +1221,7 @@ its constructor takes no arguments. - transitivity <term> + transitivity &term; transitivity transitivity t @@ -1250,7 +1250,7 @@ the current sequent to prove. - unfold [<term>] <pattern> + unfold [&term;] <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 e9402f237..93dd12bef 100644 --- a/helm/software/matita/help/C/sec_terms.xml +++ b/helm/software/matita/help/C/sec_terms.xml @@ -5,89 +5,199 @@ Terms, axioms, definitions, declarations and proofs - Terms - - - - - - - <term> - ::= - <id> - identifier - - - - | - <term> <term> - application - - - - | - λ<id>[: <term>].<term> - λ-abstraction - - - - | - Π<id>[: <term>].<term> - dependent product meant to define a datatype - - - - | - ∀<id>[: <term>].<term> - dependent product meant to define a proposition - - - - | - <term> → <term> - non-dependent product (logical implication or function space) - - - - | - let [<id>|(<id>: <term>)] ≝ <term> in <term> - local definition - - - - | - let [co]rec <id> ≝ <term> in <term> - local definition - - - - | - ... - &TODO; - - - -
+ Terms + + + + + + &id; + ::= + 〈〈&TODO;〉〉 + + + +
+ + + + + + &nat; + ::= + 〈〈&TODO;〉〉 + + + +
+ + + + + + &uri; + ::= + 〈〈&TODO;〉〉 + + + +
+ + + + + + &term; + ::= + &id; + identifier + + + + | + &uri; + a qualified reference + + + + | + Prop + the impredicative sort of propositions + + + + | + Set + the impredicate sort of datatypes + + + + | + Type + one predicatie sort of datatypes + + + + | + &term; &term; + application + + + + | + λ&id;[: &term;].&term; + λ-abstraction + + + + | + Π&id;[: &term;].&term; + dependent product meant to define a datatype + + + + | + ∀&id;[: &term;].&term; + dependent product meant to define a proposition + + + + | + &term; → &term; + non-dependent product (logical implication or function space) + + + + | + let [&id;|(&id;: &term;)] ≝ &term; in &term; + local definition + + + + | + match &term; + [ in &term; ] + [ return &term; ] + with + + case analysis + + + + + + [ + &term_pattern; ⇒ &term; + [ + | + &term_pattern; ⇒ &term; + ]…] + + + + + | + let + [co]rec + &id; [&id;]… [on &nat;] + [: &term;] + ≝ &term; + + (co)recursive definitions + + + + + + [and + &id; [&id;]… [on &nat;] + [: &term;] + ≝ &term;]… + + + + + + + + in &term; + + + + + +
+ + + + + + + &term_pattern; + ::= + &id; + 0-ary constructor + + + + | + (&id; &id; [&id;]…) + n-ary constructor (binds the n arguments) + + + +
- axiom <id>: <term> + axiom &id;: &term; axiom axiom H: P H is declared as an axiom that states P - definition <id>[: <term>] [≝ <term>] + definition &id;[: &term;] [≝ &term;] definition definition f: T ≝ t f is defined as t; @@ -102,7 +212,7 @@ - [co]inductive <id> (of inductive types) + [co]inductive &id; (of inductive types) (co)inductive types declaration &TODO; @@ -110,7 +220,7 @@ Proofs - theorem <id>[: <term>] [≝ <term>] + theorem &id;[: &term;] [≝ &term;] theorem theorem f: P ≝ p Proves a new theorem f whose thesis is @@ -127,7 +237,7 @@ Notice that the command is equivalent to definition f: T ≝ t. - variant <id>[: <term>] [≝ <term>] + variant &id;[: &term;] [≝ &term;] variant variant f: T ≝ t Same as theorem f: T ≝ t, but it does not @@ -135,19 +245,19 @@ an alternative name or proof to a theorem. - lemma <id>[: <term>] [≝ <term>] + lemma &id;[: &term;] [≝ &term;] lemma lemma f: T ≝ t Same as theorem f: T ≝ t - fact <id>[: <term>] [≝ <term>] + fact &id;[: &term;] [≝ &term;] fact fact f: T ≝ t Same as theorem f: T ≝ t - remark <id>[: <term>] [≝ <term>] + remark &id;[: &term;] [≝ &term;] remark remark f: T ≝ t Same as theorem f: T ≝ t