From: Claudio Sacerdoti Coen Date: Wed, 12 Jul 2006 15:00:41 +0000 (+0000) Subject: More commands documented. X-Git-Tag: make_still_working~7080 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=65317d14f32bc24b3e9ed4ea144833dd8517773a;p=helm.git More commands documented. --- diff --git a/helm/software/matita/help/C/sec_commands.xml b/helm/software/matita/help/C/sec_commands.xml index 7141d0ddf..636eac8dc 100644 --- a/helm/software/matita/help/C/sec_commands.xml +++ b/helm/software/matita/help/C/sec_commands.xml @@ -9,7 +9,7 @@ alias num (instance n) = "def" - + Synopsis: alias @@ -57,7 +57,7 @@ check t - + Synopsis: check &term; @@ -79,7 +79,7 @@ coercion u - + Synopsis: coercion &uri; @@ -110,20 +110,82 @@ default - + default "s" u1 … un - + Synopsis: default + &qstring; &uri; [&uri;]… Action: - &TODO; + It registers a cluster of related definitions and + theorems to be used by tactics and the rendering engine. + Some functionalities of Matita are not available when some + clusters have not been registered. Overloading a cluster + registration is possible: the last registration will be the + default one, but the previous ones are still in effect. + + s is an identifier of the cluster and + u1 … un + are the URIs of the definitions and theorems of the cluster. + The number n of required URIs depends on the + cluster. The following clusters are supported. + + + clusters + + + + name + expected object for 1st URI + expected object for 2nd URI + expected object for 3rd URI + expected object for 4th URI + expected object for 5th URI + + + + + equality + an inductive type (say, of type eq) of type ∀A:Type.A → Prop with one family parameter and one constructor of type ∀x:A.eq A x + a theorem of type ∀A.∀x,y:A.eq A x y → eq A y x + a theorem of type ∀A.∀x,y,z:A.eq A x y → eq A y z → eq A x z + ∀A.∀a.∀ P:A → Prop.P x → ∀y.eq A x y → P y + ∀A.∀a.∀ P:A → Prop.P x → ∀y.eq A y x → P y + + + true + an inductive type of type Prop with only one constructor that has no arguments + + + + + + + false + an inductive type of type Prop without constructors + + + + + + + absurd + a theorem of type ∀A:Prop.∀B:Prop.A → Not A → B + + + + + + + +
@@ -134,7 +196,7 @@ hint - + Synopsis: hint @@ -160,7 +222,7 @@ include "s" - + Synopsis: include &qstring; @@ -193,7 +255,7 @@ - + Synopsis: include' &qstring; @@ -213,7 +275,7 @@ set "baseuri" "s" - + Synopsis: set &qstring; &qstring; @@ -240,20 +302,33 @@
whelp - + whelp locate "s" + whelp hint t + whelp elim t + whelp match t + whelp instance t - + Synopsis: whelp + [locate &qstring; + | hint &term; + | elim &term; + | match &term; + | instance &term; + ] Action: - &TODO; + Performs the corresponding query, + showing the result in the CIC browser. The command is removed + from the script. + @@ -264,7 +339,7 @@ - + Synopsis: qed diff --git a/helm/software/matita/help/C/sec_tactics.xml b/helm/software/matita/help/C/sec_tactics.xml index e9f156723..53a20ac6a 100644 --- a/helm/software/matita/help/C/sec_tactics.xml +++ b/helm/software/matita/help/C/sec_tactics.xml @@ -86,6 +86,59 @@ + + applyS + applyS + applyS t + + + + Synopsis: + + applyS &sterm; + + + + Pre-conditions: + + t must have type + T1 → ... → + Tn → G. + + + + Action: + + applyS is useful when + apply fails because the current goal + and the conclusion of the applied theorems are extensionally + equivalent up to instantiation of metavariables, but cannot + be unified. E.g. the goal is P(n*O+m) and + the theorem to be applied proves ∀m.P(m+O). + + + It tries to automatically rewrite the current goal using + auto paramodulation + to make it unifiable with G. + Then it closes the current sequent by applying + t to n + implicit arguments (that become new sequents). + + + + + New sequents to prove: + + It opens a new sequent for each premise + Ti that is not + instantiated by unification. Ti is + the conclusion of the i-th new sequent to + prove. + + + + + assumption assumption diff --git a/helm/software/matita/help/C/tactic_quickref.xml b/helm/software/matita/help/C/tactic_quickref.xml index 17a031308..e44a53068 100644 --- a/helm/software/matita/help/C/tactic_quickref.xml +++ b/helm/software/matita/help/C/tactic_quickref.xml @@ -12,6 +12,11 @@ | apply sterm + + + | + applyS sterm + |