X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fhelp%2FC%2Fsec_tactics.xml;h=53a20ac6a78e3c07404d442cb8b7a0de17c7b661;hb=f27b26f3f3d2300b11aa4d68dbe823e15ffbdf1c;hp=cc0043724f57c33fa32f0e7bec60dfff326c8098;hpb=e6cc7d4297352151b0fefe44cbe57cbe63a1c579;p=helm.git diff --git a/matita/help/C/sec_tactics.xml b/matita/help/C/sec_tactics.xml index cc0043724..53a20ac6a 100644 --- a/matita/help/C/sec_tactics.xml +++ b/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: @@ -67,12 +86,71 @@ + + 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. + + + + + - <emphasis role="bold">assumption</emphasis> + assumption assumption assumption + + Synopsis: + + assumption + + Pre-conditions: @@ -96,11 +174,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,23 +214,42 @@ - <emphasis role="bold">clear</emphasis> &id; + clear clear - clear H + + clear H1 ... Hm + + + Synopsis: + + + clear + &id; [&id;…] + + + Pre-conditions: - H must be an hypothesis of the - current sequent to prove. + + + H1 ... Hm + must be hypotheses of the + current sequent to prove. + Action: - It hides the hypothesis H from the - current sequent. + + It hides the hypotheses + + H1 ... Hm + from the current sequent. + @@ -159,11 +262,17 @@ - <emphasis role="bold">clearbody</emphasis> &id; + clearbody clearbody clearbody H + + Synopsis: + + clearbody &id; + + Pre-conditions: @@ -188,11 +297,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 +335,17 @@ - <emphasis role="bold">constructor</emphasis> &nat; + constructor constructor constructor n + + Synopsis: + + constructor &nat; + + Pre-conditions: @@ -252,11 +373,17 @@ - <emphasis role="bold">contradiction</emphasis> + contradiction contradiction contradiction + + Synopsis: + + contradiction + + Pre-conditions: @@ -281,11 +408,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 +445,27 @@ - <emphasis role="bold">decompose</emphasis> &id; [&id;]… &intros-spec; + decompose decompose - decompose (T1 ... Tn) H hips + decompose (T1 ... Tn) + H as H1 ... Hm + + Synopsis: + + + decompose + [( + &id;… + )] + [&id;] + [as &id;…] + + + Pre-conditions: @@ -335,9 +482,13 @@ Action: - Runs elim H hyps, clears H and tries to run - itself recursively on each new identifier introduced by - elim in the opened sequents. + Runs + elim H H1 ... Hm + , clears H and tries to run itself + recursively on each new identifier introduced by + elim in the opened sequents. + If H is not provided tries this operation on + each premise in the current context. @@ -352,12 +503,18 @@ - - <emphasis role="bold">demodulation</emphasis> &pattern; - demodulation - demodulation patt + + demodulate + demodulate + demodulate + + Synopsis: + + demodulate + + Pre-conditions: @@ -380,11 +537,17 @@ - <emphasis role="bold">discriminate</emphasis> &sterm; + discriminate discriminate discriminate p + + Synopsis: + + discriminate &sterm; + + Pre-conditions: @@ -409,11 +572,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 +615,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 +648,17 @@ its constructor takes no arguments. - <emphasis role="bold">exact</emphasis> &sterm; + exact exact exact p + + Synopsis: + + exact &sterm; + + Pre-conditions: @@ -501,11 +682,17 @@ its constructor takes no arguments. - <emphasis role="bold">exists</emphasis> + exists exists exists + + Synopsis: + + exists + + Pre-conditions: @@ -532,11 +719,17 @@ its constructor takes no arguments. - <emphasis role="bold">fail</emphasis> + fail fail fail + + Synopsis: + + fail + + Pre-conditions: @@ -559,11 +752,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 +790,17 @@ its constructor takes no arguments. - <emphasis role="bold">fourier</emphasis> + fourier fourier fourier + + Synopsis: + + fourier + + Pre-conditions: @@ -621,38 +826,67 @@ its constructor takes no arguments. - <emphasis role="bold">fwd</emphasis> &id; [<emphasis role="bold">(</emphasis>[&id;]…<emphasis role="bold">)</emphasis>] + fwd fwd - fwd ...TODO + fwd H as H0 ... Hn + + Synopsis: + + fwd &id; [as &id; [&id;]…] + + Pre-conditions: - TODO. + + The type of H must be the premise of a + forward simplification theorem. + Action: - TODO. + + This tactic is under development. + It simplifies the current context by removing + H using the following methods: + forward application (by lapply) of a suitable + simplification theorem, chosen automatically, of which the type + of H is a premise, + decomposition (by decompose), + rewriting (by rewrite). + H0 ... Hn + are passed to the tactics fwd invokes, as + names for the premise they introduce. + New sequents to prove: - TODO. + + The ones opened by the tactics fwd invokes. + - <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 +918,17 @@ its constructor takes no arguments. - <emphasis role="bold">id</emphasis> + id id id + + Synopsis: + + id + + Pre-conditions: @@ -711,11 +951,17 @@ its constructor takes no arguments. - <emphasis role="bold">injection</emphasis> &sterm; - injection + injection + injection injection p + + Synopsis: + + injection &sterm; + + Pre-conditions: @@ -742,11 +988,17 @@ its constructor takes no arguments. - <emphasis role="bold">intro</emphasis> [&id;] + intro intro intro H + + Synopsis: + + intro [&id;] + + Pre-conditions: @@ -775,11 +1027,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 +1070,17 @@ its constructor takes no arguments. - <emphasis role="bold">inversion</emphasis> &sterm; + inversion inversion inversion t + + Synopsis: + + inversion &sterm; + + Pre-conditions: @@ -847,41 +1111,87 @@ 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 + lapply linear depth=d t to t1, ..., tn as H + + Synopsis: + + + lapply + [linear] + [depth=&nat;] + &sterm; + [to + &sterm; + [,&sterm;…] + ] + [as &id;] + + + Pre-conditions: - TODO. + + t must have at least d + independent premises and n must not be + greater than d. + Action: - TODO. + + Invokes letin H ≝ (t ? ... ?) + with enough ?'s to reach the + d-th independent premise of + t + (d is maximum if unspecified). + Then istantiates (by apply) with + t1, ..., tn + the ?'s corresponding to the first + n independent premises of + t. + Usually the other ?'s preceding the + n-th independent premise of + t are istantiated as a consequence. + If the linear flag is specified and if + t, t1, ..., tn + are (applications of) premises in the current context, they are + cleared. + New sequents to prove: - TODO. + + The ones opened by the tactics lapply invokes. + - <emphasis role="bold">left</emphasis> + left left left + + Synopsis: + + left + + Pre-conditions: @@ -908,11 +1218,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 +1252,17 @@ its constructor takes no arguments. - <emphasis role="bold">normalize</emphasis> &pattern; + normalize normalize normalize patt + + Synopsis: + + normalize &pattern; + + Pre-conditions: @@ -963,39 +1285,18 @@ its constructor takes no arguments. - - <emphasis role="bold">paramodulation</emphasis> &pattern; - paramodulation - paramodulation patt - - - - Pre-conditions: - - TODO. - - - - Action: - - TODO. - - - - New sequents to prove: - - TODO. - - - - - - <emphasis role="bold">reduce</emphasis> &pattern; + reduce reduce reduce patt + + Synopsis: + + reduce &pattern; + + Pre-conditions: @@ -1019,11 +1320,17 @@ its constructor takes no arguments. - <emphasis role="bold">reflexivity</emphasis> + reflexivity reflexivity reflexivity + + Synopsis: + + reflexivity + + Pre-conditions: @@ -1048,11 +1355,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 +1393,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 +1434,17 @@ its constructor takes no arguments. - <emphasis role="bold">right</emphasis> + right right right + + Synopsis: + + right + + Pre-conditions: @@ -1146,11 +1471,17 @@ its constructor takes no arguments. - <emphasis role="bold">ring</emphasis> + ring ring ring + + Synopsis: + + ring + + Pre-conditions: @@ -1177,11 +1508,17 @@ its constructor takes no arguments. - <emphasis role="bold">simplify</emphasis> &pattern; + simplify simplify simplify patt + + Synopsis: + + simplify &pattern; + + Pre-conditions: @@ -1205,11 +1542,17 @@ its constructor takes no arguments. - <emphasis role="bold">split</emphasis> + split split split + + Synopsis: + + split + + Pre-conditions: @@ -1236,12 +1579,18 @@ its constructor takes no arguments. - <emphasis role="bold">symmetry</emphasis> + symmetry symmetry The tactic symmetry symmetry + + Synopsis: + + symmetry + + Pre-conditions: @@ -1265,11 +1614,17 @@ its constructor takes no arguments. - <emphasis role="bold">transitivity</emphasis> &sterm; + transitivity transitivity transitivity t + + Synopsis: + + transitivity &sterm; + + Pre-conditions: @@ -1294,11 +1649,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 +1687,17 @@ the current sequent to prove. - <emphasis role="bold">whd</emphasis> &pattern; + whd whd whd patt + + Synopsis: + + whd &pattern; + + Pre-conditions: