]> matita.cs.unibo.it Git - helm.git/blob - matita/help/C/sec_tactics.xml
Some fixes in the documentation of the tactics.
[helm.git] / matita / help / C / sec_tactics.xml
1
2 <!-- ============ Tactics ====================== -->
3 <chapter id="sec_tactics">
4  <title>Tactics</title>
5
6   <sect1 id="tac_absurd">
7     <title>absurd &lt;term&gt;</title>
8     <titleabbrev>absurd</titleabbrev>
9     <para><userinput>absurd P</userinput></para>
10      <para>
11       <variablelist>
12         <varlistentry>
13           <term>Pre-conditions:</term>
14           <listitem>
15             <para><command>P</command> must have type <command>Prop</command>.</para>
16           </listitem>
17         </varlistentry>
18         <varlistentry>
19           <term>Action:</term>
20           <listitem>
21             <para>it closes the current sequent by eliminating an
22              absurd term.</para>
23           </listitem>
24         </varlistentry>
25         <varlistentry>
26           <term>New sequents to prove:</term>
27           <listitem>
28             <para>it opens two new sequents of conclusion <command>P</command>
29              and <command>¬P</command>.</para>
30           </listitem>
31         </varlistentry>
32       </variablelist>
33      </para>
34   </sect1>
35   <sect1 id="tac_apply">
36     <title>apply &lt;term&gt;</title>
37     <titleabbrev>apply</titleabbrev>
38     <para><userinput>apply t</userinput></para>
39     <para>
40       <variablelist>
41         <varlistentry>
42           <term>Pre-conditions:</term>
43           <listitem>
44             <para><command>t</command> must have type
45              <command>T<subscript>1</subscript> → ... →
46               T<subscript>n</subscript> → G</command>
47              where <command>G</command> can be unified with the conclusion
48              of the current sequent.</para>
49           </listitem>
50         </varlistentry>
51         <varlistentry>
52           <term>Action:</term>
53           <listitem>
54             <para>it closes the current sequent by applying <command>t</command> to <command>n</command> implicit arguments (that become new sequents).</para>
55           </listitem>
56         </varlistentry>
57         <varlistentry>
58           <term>New sequents to prove:</term>
59           <listitem>
60             <para>it opens a new sequent for each premise 
61              <command>T<subscript>i</subscript></command> that is not
62              instantiated by unification. <command>T<subscript>i</subscript></command> is
63              the conclusion of the <command>i</command>-th new sequent to
64              prove.</para>
65           </listitem>
66         </varlistentry>
67       </variablelist>
68     </para>
69   </sect1>
70   <sect1 id="tac_assumption">
71     <title>assumption</title>
72     <titleabbrev>assumption</titleabbrev>
73     <para><userinput>assumption </userinput></para>
74     <para>
75       <variablelist>
76         <varlistentry>
77           <term>Pre-conditions:</term>
78           <listitem>
79             <para>there must exist an hypothesis whose type can be unified with
80              the conclusion of the current sequent.</para>
81           </listitem>
82         </varlistentry>
83         <varlistentry>
84           <term>Action:</term>
85           <listitem>
86             <para>it closes the current sequent exploiting an hypothesis.</para>
87           </listitem>
88         </varlistentry>
89         <varlistentry>
90           <term>New sequents to prove:</term>
91           <listitem>
92             <para>none</para>
93           </listitem>
94         </varlistentry>
95       </variablelist>
96     </para>
97   </sect1>
98   <sect1 id="tac_auto">
99     <title>auto [depth=&lt;int&gt;] [width=&lt;int&gt;] [paramodulation] [full]</title>
100     <titleabbrev>auto</titleabbrev>
101     <para><userinput>auto depth=d width=w paramodulation full</userinput></para>
102     <para>
103       <variablelist>
104         <varlistentry>
105           <term>Pre-conditions:</term>
106           <listitem>
107             <para>none, but the tactic may fail finding a proof if every
108              proof is in the search space that is pruned away. Pruning is
109              controlled by <command>d</command> and <command>w</command>.
110              Moreover, only lemmas whose type signature is a subset of the
111              signature of the current sequent are considered. The signature of
112              a sequent is ...TODO</para>
113           </listitem>
114         </varlistentry>
115         <varlistentry>
116           <term>Action:</term>
117           <listitem>
118             <para>it closes the current sequent by repeated application of
119              rewriting steps (unless <command>paramodulation</command> is
120              omitted), hypothesis and lemmas in the library.</para>
121           </listitem>
122         </varlistentry>
123         <varlistentry>
124           <term>New sequents to prove:</term>
125           <listitem>
126             <para>none</para>
127           </listitem>
128         </varlistentry>
129       </variablelist>
130     </para>
131   </sect1>
132   <sect1 id="tac_clear">
133     <title>clear &lt;id&gt;</title>
134     <titleabbrev>clear</titleabbrev>
135     <para><userinput>clear H</userinput></para>
136     <para>
137       <variablelist>
138         <varlistentry>
139           <term>Pre-conditions:</term>
140           <listitem>
141             <para><command>H</command> must be an hypothesis of the
142              current sequent to prove.</para>
143           </listitem>
144         </varlistentry>
145         <varlistentry>
146           <term>Action:</term>
147           <listitem>
148             <para>it hides the hypothesis <command>H</command> from the
149              current sequent.</para>
150           </listitem>
151         </varlistentry>
152         <varlistentry>
153           <term>New sequents to prove:</term>
154           <listitem>
155             <para>none</para>
156           </listitem>
157         </varlistentry>
158       </variablelist>
159     </para>
160   </sect1>
161   <sect1 id="tac_clearbody">
162     <title>clearbody &lt;id&gt;</title>
163     <titleabbrev>clearbody</titleabbrev>
164     <para><userinput>clearbody H</userinput></para>
165     <para>
166       <variablelist>
167         <varlistentry>
168           <term>Pre-conditions:</term>
169           <listitem>
170             <para><command>H</command> must be an hypothesis of the
171              current sequent to prove.</para>
172           </listitem>
173         </varlistentry>
174         <varlistentry>
175           <term>Action:</term>
176           <listitem>
177             <para>it hides the definiens of a definition in the current
178              sequent context. Thus the definition becomes an hypothesis.</para>
179           </listitem>
180         </varlistentry>
181         <varlistentry>
182           <term>New sequents to prove:</term>
183           <listitem>
184             <para>none.</para>
185           </listitem>
186         </varlistentry>
187       </variablelist>
188     </para>
189   </sect1>
190   <sect1 id="tac_change">
191     <title>change &lt;pattern&gt; with &lt;term&gt;</title>
192     <titleabbrev>change</titleabbrev>
193     <para><userinput>change patt with t</userinput></para>
194     <para>
195       <variablelist>
196         <varlistentry>
197           <term>Pre-conditions:</term>
198           <listitem>
199             <para>each subterm matched by the pattern must be convertible
200              with the term <command>t</command> disambiguated in the context
201              of the matched subterm.</para>
202           </listitem>
203         </varlistentry>
204         <varlistentry>
205           <term>Action:</term>
206           <listitem>
207             <para>it replaces the subterms of the current sequent matched by
208              <command>patt</command> with the new term <command>t</command>.
209              For each subterm matched by the pattern, <command>t</command> is
210              disambiguated in the context of the subterm.</para>
211           </listitem>
212         </varlistentry>
213         <varlistentry>
214           <term>New sequents to prove:</term>
215           <listitem>
216             <para>none.</para>
217           </listitem>
218         </varlistentry>
219       </variablelist>
220     </para>
221   </sect1>
222   <sect1 id="tac_constructor">
223     <title>constructor &lt;int&gt;</title>
224     <titleabbrev>constructor</titleabbrev>
225     <para><userinput>constructor n</userinput></para>
226     <para>
227       <variablelist>
228         <varlistentry>
229           <term>Pre-conditions:</term>
230           <listitem>
231             <para>the conclusion of the current sequent must be
232              an inductive type or the application of an inductive type with
233              at least <command>n</command> constructors.</para>
234           </listitem>
235         </varlistentry>
236         <varlistentry>
237           <term>Action:</term>
238           <listitem>
239             <para>it applies the <command>n</command>-th constructor of the
240              inductive type of the conclusion of the current sequent.</para>
241           </listitem>
242         </varlistentry>
243         <varlistentry>
244           <term>New sequents to prove:</term>
245           <listitem>
246             <para>it opens a new sequent for each premise of the constructor
247              that can not be inferred by unification. For more details,
248              see the <command>apply</command> tactic.</para>
249           </listitem>
250         </varlistentry>
251       </variablelist>
252     </para>
253   </sect1>
254   <sect1 id="tac_contradiction">
255     <title>contradiction</title>
256     <titleabbrev>contradiction</titleabbrev>
257     <para><userinput>contradiction </userinput></para>
258     <para>
259       <variablelist>
260         <varlistentry>
261           <term>Pre-conditions:</term>
262           <listitem>
263             <para>there must be in the current context an hypothesis of type
264              <command>False</command>.</para>
265           </listitem>
266         </varlistentry>
267         <varlistentry>
268           <term>Action:</term>
269           <listitem>
270             <para>it closes the current sequent by applying an hypothesis of
271              type <command>False</command>.</para>
272           </listitem>
273         </varlistentry>
274         <varlistentry>
275           <term>New sequents to prove:</term>
276           <listitem>
277             <para>none</para>
278           </listitem>
279         </varlistentry>
280       </variablelist>
281     </para>
282   </sect1>
283   <sect1 id="tac_cut">
284     <title>cut &lt;term&gt; [as &lt;id&gt;]</title>
285     <titleabbrev>cut</titleabbrev>
286     <para><userinput>cut P as H</userinput></para>
287     <para>
288       <variablelist>
289         <varlistentry>
290           <term>Pre-conditions:</term>
291           <listitem>
292             <para><command>P</command> must have type <command>Prop</command>.</para>
293           </listitem>
294         </varlistentry>
295         <varlistentry>
296           <term>Action:</term>
297           <listitem>
298             <para>it closes the current sequent.</para>
299           </listitem>
300         </varlistentry>
301         <varlistentry>
302           <term>New sequents to prove:</term>
303           <listitem>
304             <para>it opens two new sequents. The first one has an extra
305              hypothesis <command>H:P</command>. If <command>H</command> is
306              omitted, the name of the hypothesis is automatically generated.
307              The second sequent has conclusion <command>P</command> and
308              hypotheses the hypotheses of the current sequent to prove.</para>
309           </listitem>
310         </varlistentry>
311       </variablelist>
312     </para>
313   </sect1>
314   <sect1 id="tac_decompose">
315     <title>decompose [&lt;ident list&gt;] &lt;ident&gt; [&lt;intros_spec&gt;]</title>
316     <titleabbrev>decompose</titleabbrev>
317     <para><userinput>decompose ???</userinput></para>
318     <para>
319       <variablelist>
320         <varlistentry>
321           <term>Pre-conditions:</term>
322           <listitem>
323             <para>TODO.</para>
324           </listitem>
325         </varlistentry>
326         <varlistentry>
327           <term>Action:</term>
328           <listitem>
329             <para>TODO.</para>
330           </listitem>
331         </varlistentry>
332         <varlistentry>
333           <term>New sequents to prove:</term>
334           <listitem>
335             <para>TODO.</para>
336           </listitem>
337         </varlistentry>
338       </variablelist>
339     </para>
340   </sect1>
341   <sect1 id="tac_discriminate">
342     <title>discriminate &lt;term&gt;</title>
343     <titleabbrev>discriminate</titleabbrev>
344     <para><userinput>discriminate p</userinput></para>
345     <para>
346       <variablelist>
347         <varlistentry>
348           <term>Pre-conditions:</term>
349           <listitem>
350             <para><command>p</command> must have type <command>K t<subscript>1</subscript> ... t<subscript>n</subscript> = K' t'<subscript>1</subscript> ... t'<subscript>m</subscript></command> where <command>K</command> and <command>K'</command> must be different constructors of the same inductive type and each argument list can be empty if
351 its constructor takes no arguments.</para>
352           </listitem>
353         </varlistentry>
354         <varlistentry>
355           <term>Action:</term>
356           <listitem>
357             <para>it closes the current sequent by proving the absurdity of
358              <command>p</command>.</para>
359           </listitem>
360         </varlistentry>
361         <varlistentry>
362           <term>New sequents to prove:</term>
363           <listitem>
364             <para>none.</para>
365           </listitem>
366         </varlistentry>
367       </variablelist>
368     </para>
369   </sect1>
370   <sect1 id="tac_elim">
371     <title>elim &lt;term&gt; [using &lt;term&gt;] [&lt;intros_spec&gt;]</title>
372     <titleabbrev>elim</titleabbrev>
373     <para><userinput>elim t using th hyps</userinput></para>
374     <para>
375       <variablelist>
376         <varlistentry>
377           <term>Pre-conditions:</term>
378           <listitem>
379             <para><command>t</command> must inhabit an inductive type and
380              <command>th</command> must be an elimination principle for that
381              inductive type. If <command>th</command> is omitted the appropriate
382              standard elimination principle is chosen.</para>
383           </listitem>
384         </varlistentry>
385         <varlistentry>
386           <term>Action:</term>
387           <listitem>
388             <para>it proceeds by cases on the values of <command>t</command>,
389              according to the elimination principle <command>th</command>.
390             </para>
391           </listitem>
392         </varlistentry>
393         <varlistentry>
394           <term>New sequents to prove:</term>
395           <listitem>
396             <para>it opens one new sequent for each case. The names of
397              the new hypotheses are picked by <command>hyps</command>, if
398              provided. If hyps specifies also a number of hypotheses that
399              is less than the number of new hypotheses for a new sequent,
400              then the exceeding hypothesis will be kept as implications in
401              the conclusion of the sequent.</para>
402           </listitem>
403         </varlistentry>
404       </variablelist>
405     </para>
406   </sect1>
407   <sect1 id="tac_elimType">
408     <title>elimType &lt;term&gt; [using &lt;term&gt;] [&lt;intros_spec&gt;]</title>
409     <titleabbrev>elimType</titleabbrev>
410     <para><userinput>elimType T using th hyps</userinput></para>
411     <para>
412       <variablelist>
413         <varlistentry>
414           <term>Pre-conditions:</term>
415           <listitem>
416             <para><command>T</command> must be an inductive type.</para>
417           </listitem>
418         </varlistentry>
419         <varlistentry>
420           <term>Action:</term>
421           <listitem>
422             <para>TODO (severely bugged now).</para>
423           </listitem>
424         </varlistentry>
425         <varlistentry>
426           <term>New sequents to prove:</term>
427           <listitem>
428             <para>TODO</para>
429           </listitem>
430         </varlistentry>
431       </variablelist>
432     </para>
433   </sect1>
434   <sect1 id="tac_exact">
435     <title>exact &lt;term&gt;</title>
436     <titleabbrev>exact</titleabbrev>
437     <para><userinput>exact p</userinput></para>
438     <para>
439       <variablelist>
440         <varlistentry>
441           <term>Pre-conditions:</term>
442           <listitem>
443             <para>the type of <command>p</command> must be convertible
444              with the conclusion of the current sequent.</para>
445           </listitem>
446         </varlistentry>
447         <varlistentry>
448           <term>Action:</term>
449           <listitem>
450             <para>it closes the current sequent using <command>p</command>.</para>
451           </listitem>
452         </varlistentry>
453         <varlistentry>
454           <term>New sequents to prove:</term>
455           <listitem>
456             <para>none.</para>
457           </listitem>
458         </varlistentry>
459       </variablelist>
460     </para>
461   </sect1>
462   <sect1 id="tac_exists">
463     <title>exists</title>
464     <titleabbrev>exists</titleabbrev>
465     <para><userinput>exists </userinput></para>
466     <para>
467       <variablelist>
468         <varlistentry>
469           <term>Pre-conditions:</term>
470           <listitem>
471             <para>the conclusion of the current sequent must be
472              an inductive type or the application of an inductive type
473              with at least one constructor.</para>
474           </listitem>
475         </varlistentry>
476         <varlistentry>
477           <term>Action:</term>
478           <listitem>
479             <para>equivalent to <command>constructor 1</command>.</para>
480           </listitem>
481         </varlistentry>
482         <varlistentry>
483           <term>New sequents to prove:</term>
484           <listitem>
485             <para>it opens a new sequent for each premise of the first
486              constructor of the inductive type that is the conclusion of the
487              current sequent. For more details, see the <command>constructor</command> tactic.</para>
488           </listitem>
489         </varlistentry>
490       </variablelist>
491     </para>
492   </sect1>
493   <sect1 id="tac_fail">
494     <title>fail </title>
495     <titleabbrev>failt</titleabbrev>
496     <para><userinput>fail</userinput></para>
497     <para>
498       <variablelist>
499         <varlistentry>
500           <term>Pre-conditions:</term>
501           <listitem>
502             <para>none.</para>
503           </listitem>
504         </varlistentry>
505         <varlistentry>
506           <term>Action:</term>
507           <listitem>
508             <para>this tactic always fail.</para>
509           </listitem>
510         </varlistentry>
511         <varlistentry>
512           <term>New sequents to prove:</term>
513           <listitem>
514             <para>N.A.</para>
515           </listitem>
516         </varlistentry>
517       </variablelist>
518     </para>
519   </sect1>
520   <sect1 id="tac_fold">
521     <title>fold &lt;reduction_kind&gt; &lt;term&gt; &lt;pattern&gt;</title>
522     <titleabbrev>fold</titleabbrev>
523     <para><userinput>fold red t patt</userinput></para>
524     <para>
525       <variablelist>
526         <varlistentry>
527           <term>Pre-conditions:</term>
528           <listitem>
529             <para>the pattern must not specify the wanted term.</para>
530           </listitem>
531         </varlistentry>
532         <varlistentry>
533           <term>Action:</term>
534           <listitem>
535             <para>first of all it locates all the subterms matched by
536              <command>patt</command>. In the context of each matched subterm
537              it disambiguates the term <command>t</command> and reduces it
538              to its <command>red</command> normal form; then it replaces with
539              <command>t</command> every occurrence of the normal form in the
540              matched subterm.</para>
541           </listitem>
542         </varlistentry>
543         <varlistentry>
544           <term>New sequents to prove:</term>
545           <listitem>
546             <para>none.</para>
547           </listitem>
548         </varlistentry>
549       </variablelist>
550     </para>
551   </sect1>
552   <sect1 id="tac_fourier">
553     <title>fourier</title>
554     <titleabbrev>fourier</titleabbrev>
555     <para><userinput>fourier </userinput></para>
556     <para>
557       <variablelist>
558         <varlistentry>
559           <term>Pre-conditions:</term>
560           <listitem>
561             <para>the conclusion of the current sequent must be a linear
562              inequation over real numbers taken from standard library of
563              Coq. Moreover the inequations in the hypotheses must imply the
564              inequation in the conclusion of the current sequent.</para>
565           </listitem>
566         </varlistentry>
567         <varlistentry>
568           <term>Action:</term>
569           <listitem>
570             <para>it closes the current sequent by applying the Fourier method.</para>
571           </listitem>
572         </varlistentry>
573         <varlistentry>
574           <term>New sequents to prove:</term>
575           <listitem>
576             <para>none.</para>
577           </listitem>
578         </varlistentry>
579       </variablelist>
580     </para>
581   </sect1>
582   <sect1 id="tac_fwd">
583     <title>fwd &lt;ident&gt; [&lt;ident list&gt;]</title>
584     <titleabbrev>fwd</titleabbrev>
585     <para><userinput>fwd ...TODO</userinput></para>
586     <para>
587       <variablelist>
588         <varlistentry>
589           <term>Pre-conditions:</term>
590           <listitem>
591             <para>TODO.</para>
592           </listitem>
593         </varlistentry>
594         <varlistentry>
595           <term>Action:</term>
596           <listitem>
597             <para>TODO.</para>
598           </listitem>
599         </varlistentry>
600         <varlistentry>
601           <term>New sequents to prove:</term>
602           <listitem>
603             <para>TODO.</para>
604           </listitem>
605         </varlistentry>
606       </variablelist>
607     </para>
608   </sect1>
609   <sect1 id="tac_generalize">
610     <title>generalize &lt;pattern&gt; [as &lt;id&gt;]</title>
611     <titleabbrev>generalize</titleabbrev>
612     <para><userinput>generalize patt as H</userinput></para>
613     <para>
614       <variablelist>
615         <varlistentry>
616           <term>Pre-conditions:</term>
617           <listitem>
618             <para>all the terms matched by <command>patt</command> must be
619              convertible and close in the context of the current sequent.</para>
620           </listitem>
621         </varlistentry>
622         <varlistentry>
623           <term>Action:</term>
624           <listitem>
625             <para>it closes the current sequent by applying a stronger
626              lemma that is proved using the new generated sequent.</para>
627           </listitem>
628         </varlistentry>
629         <varlistentry>
630           <term>New sequents to prove:</term>
631           <listitem>
632             <para>it opens a new sequent where the current sequent conclusion
633              <command>G</command> is generalized to
634              <command>∀x.G{x/t}</command> where <command>{x/t}</command>
635              is a notation for the replacement with <command>x</command> of all
636              the occurrences of the term <command>t</command> matched by
637              <command>patt</command>. If <command>patt</command> matches no
638              subterm then <command>t</command> is defined as the
639              <command>wanted</command> part of the pattern.</para>
640           </listitem>
641         </varlistentry>
642       </variablelist>
643     </para>
644   </sect1>
645   <sect1 id="tac_id">
646     <title>id</title>
647     <titleabbrev>id</titleabbrev>
648     <para><userinput>id </userinput></para>
649     <para>
650       <variablelist>
651         <varlistentry>
652           <term>Pre-conditions:</term>
653           <listitem>
654             <para>none.</para>
655           </listitem>
656         </varlistentry>
657         <varlistentry>
658           <term>Action:</term>
659           <listitem>
660             <para>this identity tactic does nothing without failing.</para>
661           </listitem>
662         </varlistentry>
663         <varlistentry>
664           <term>New sequents to prove:</term>
665           <listitem>
666             <para>none.</para>
667           </listitem>
668         </varlistentry>
669       </variablelist>
670     </para>
671   </sect1>
672   <sect1 id="tac_injection">
673     <title>injection &lt;term&gt;</title>
674     <titleabbrev>injection</titleabbrev>
675     <para><userinput>injection p</userinput></para>
676     <para>
677       <variablelist>
678         <varlistentry>
679           <term>Pre-conditions:</term>
680           <listitem>
681             <para><command>p</command> must have type <command>K t<subscript>1</subscript> ... t<subscript>n</subscript> = K t'<subscript>1</subscript> ... t'<subscript>n</subscript></command> where both argument lists are empty if
682 <command>K</command> takes no arguments.</para>
683           </listitem>
684         </varlistentry>
685         <varlistentry>
686           <term>Action:</term>
687           <listitem>
688             <para>it derives new hypotheses by injectivity of
689              <command>K</command>.</para>
690           </listitem>
691         </varlistentry>
692         <varlistentry>
693           <term>New sequents to prove:</term>
694           <listitem>
695             <para>the new sequent to prove is equal to the current sequent
696              with the additional hypotheses
697              <command>t<subscript>1</subscript>=t'<subscript>1</subscript></command> ... <command>t<subscript>n</subscript>=t'<subscript>n</subscript></command>.</para>
698           </listitem>
699         </varlistentry>
700       </variablelist>
701     </para>
702   </sect1>
703   <sect1 id="tac_intro">
704     <title>intro [&lt;ident&gt;]</title>
705     <titleabbrev>intro</titleabbrev>
706     <para><userinput>intro H</userinput></para>
707     <para>
708       <variablelist>
709         <varlistentry>
710           <term>Pre-conditions:</term>
711           <listitem>
712             <para>the conclusion of the sequent to prove must be an implication
713              or a universal quantification.</para>
714           </listitem>
715         </varlistentry>
716         <varlistentry>
717           <term>Action:</term>
718           <listitem>
719             <para>it applies the right introduction rule for implication,
720              closing the current sequent.</para>
721           </listitem>
722         </varlistentry>
723         <varlistentry>
724           <term>New sequents to prove:</term>
725           <listitem>
726             <para>it opens a new sequent to prove adding to the hypothesis
727              the antecedent of the implication and setting the conclusion
728              to the consequent of the implicaiton. The name of the new
729              hypothesis is <command>H</command> if provided; otherwise it
730              is automatically generated.</para>
731           </listitem>
732         </varlistentry>
733       </variablelist>
734     </para>
735   </sect1>
736   <sect1 id="tac_intros">
737     <title>intros &lt;intros_spec&gt;</title>
738     <titleabbrev>intros</titleabbrev>
739     <para><userinput>intros hyps</userinput></para>
740     <para>
741       <variablelist>
742         <varlistentry>
743           <term>Pre-conditions:</term>
744           <listitem>
745             <para>If <command>hyps</command> specifies a number of hypotheses
746              to introduce, then the conclusion of the current sequent must
747              be formed by at least that number of imbricated implications
748              or universal quantifications.</para>
749           </listitem>
750         </varlistentry>
751         <varlistentry>
752           <term>Action:</term>
753           <listitem>
754             <para>it applies several times the right introduction rule for
755              implication, closing the current sequent.</para>
756           </listitem>
757         </varlistentry>
758         <varlistentry>
759           <term>New sequents to prove:</term>
760           <listitem>
761             <para>it opens a new sequent to prove adding a number of new
762              hypotheses equal to the number of new hypotheses requested.
763              If the user does not request a precise number of new hypotheses,
764              it adds as many hypotheses as possible.
765              The name of each new hypothesis is either popped from the
766              user provided list of names, or it is automatically generated when
767              the list is (or becomes) empty.</para>
768           </listitem>
769         </varlistentry>
770       </variablelist>
771     </para>
772   </sect1>
773   <sect1 id="tac_inversion">
774     <title>inversion &lt;term&gt;</title>
775     <titleabbrev>inversion</titleabbrev>
776     <para><userinput>inversion t</userinput></para>
777     <para>
778       <variablelist>
779         <varlistentry>
780           <term>Pre-conditions:</term>
781           <listitem>
782             <para>the type of the term <command>t</command> must be an inductive
783              type or the application of an inductive type.</para>
784           </listitem>
785         </varlistentry>
786         <varlistentry>
787           <term>Action:</term>
788           <listitem>
789             <para>it proceeds by cases on <command>t</command> paying attention
790              to the constraints imposed by the actual &quot;right arguments&quot;
791              of the inductive type.</para>
792           </listitem>
793         </varlistentry>
794         <varlistentry>
795           <term>New sequents to prove:</term>
796           <listitem>
797             <para>it opens one new sequent to prove for each case in the
798              definition of the type of <command>t</command>. With respect to
799              a simple elimination, each new sequent has additional hypotheses
800              that states the equalities of the &quot;right parameters&quot;
801              of the inductive type with terms originally present in the
802              sequent to prove.</para>
803           </listitem>
804         </varlistentry>
805       </variablelist>
806     </para>
807   </sect1>
808   <sect1 id="tac_lapply">
809     <title>lapply [depth=&lt;int&gt;] &lt;term&gt; [to &lt;term list] [using &lt;ident&gt;]</title>
810     <titleabbrev>lapply</titleabbrev>
811     <para><userinput>lapply ???</userinput></para>
812     <para>
813       <variablelist>
814         <varlistentry>
815           <term>Pre-conditions:</term>
816           <listitem>
817             <para>TODO.</para>
818           </listitem>
819         </varlistentry>
820         <varlistentry>
821           <term>Action:</term>
822           <listitem>
823             <para>TODO.</para>
824           </listitem>
825         </varlistentry>
826         <varlistentry>
827           <term>New sequents to prove:</term>
828           <listitem>
829             <para>TODO.</para>
830           </listitem>
831         </varlistentry>
832       </variablelist>
833     </para>
834   </sect1>
835   <sect1 id="tac_left">
836     <title>left</title>
837     <titleabbrev>left</titleabbrev>
838     <para><userinput>left </userinput></para>
839     <para>
840       <variablelist>
841         <varlistentry>
842           <term>Pre-conditions:</term>
843           <listitem>
844             <para>the conclusion of the current sequent must be
845              an inductive type or the application of an inductive type
846              with at least one constructor.</para>
847           </listitem>
848         </varlistentry>
849         <varlistentry>
850           <term>Action:</term>
851           <listitem>
852             <para>equivalent to <command>constructor 1</command>.</para>
853           </listitem>
854         </varlistentry>
855         <varlistentry>
856           <term>New sequents to prove:</term>
857           <listitem>
858             <para>it opens a new sequent for each premise of the first
859              constructor of the inductive type that is the conclusion of the
860              current sequent. For more details, see the <command>constructor</command> tactic.</para>
861           </listitem>
862         </varlistentry>
863       </variablelist>
864     </para>
865   </sect1>
866   <sect1 id="tac_letin">
867     <title>letin &lt;ident&gt; ≝ &lt;term&gt;</title>
868     <titleabbrev>letin</titleabbrev>
869     <para><userinput>letin x ≝ t</userinput></para>
870     <para>
871       <variablelist>
872         <varlistentry>
873           <term>Pre-conditions:</term>
874           <listitem>
875             <para>none.</para>
876           </listitem>
877         </varlistentry>
878         <varlistentry>
879           <term>Action:</term>
880           <listitem>
881             <para>it adds to the context of the current sequent to prove a new
882              definition <command>x ≝ t</command>.</para>
883           </listitem>
884         </varlistentry>
885         <varlistentry>
886           <term>New sequents to prove:</term>
887           <listitem>
888             <para>none.</para>
889           </listitem>
890         </varlistentry>
891       </variablelist>
892     </para>
893   </sect1>
894   <sect1 id="tac_normalize">
895     <title>normalize &lt;pattern&gt;</title>
896     <titleabbrev>normalize</titleabbrev>
897     <para><userinput>normalize patt</userinput></para>
898     <para>
899       <variablelist>
900         <varlistentry>
901           <term>Pre-conditions:</term>
902           <listitem>
903             <para>none.</para>
904           </listitem>
905         </varlistentry>
906         <varlistentry>
907           <term>Action:</term>
908           <listitem>
909             <para>it replaces all the terms matched by <command>patt</command>
910              with their βδιζ-normal form.</para>
911           </listitem>
912         </varlistentry>
913         <varlistentry>
914           <term>New sequents to prove:</term>
915           <listitem>
916             <para>none.</para>
917           </listitem>
918         </varlistentry>
919       </variablelist>
920     </para>
921   </sect1>
922   <sect1 id="tac_paramodulation">
923     <title>paramodulation &lt;pattern&gt;</title>
924     <titleabbrev>paramodulation</titleabbrev>
925     <para><userinput>paramodulation patt</userinput></para>
926     <para>
927       <variablelist>
928         <varlistentry>
929           <term>Pre-conditions:</term>
930           <listitem>
931             <para>TODO.</para>
932           </listitem>
933         </varlistentry>
934         <varlistentry>
935           <term>Action:</term>
936           <listitem>
937             <para>TODO.</para>
938           </listitem>
939         </varlistentry>
940         <varlistentry>
941           <term>New sequents to prove:</term>
942           <listitem>
943             <para>TODO.</para>
944           </listitem>
945         </varlistentry>
946       </variablelist>
947     </para>
948   </sect1>
949   <sect1 id="tac_reduce">
950     <title>reduce &lt;pattern&gt;</title>
951     <titleabbrev>reduce</titleabbrev>
952     <para><userinput>reduce patt</userinput></para>
953     <para>
954       <variablelist>
955         <varlistentry>
956           <term>Pre-conditions:</term>
957           <listitem>
958             <para>none.</para>
959           </listitem>
960         </varlistentry>
961         <varlistentry>
962           <term>Action:</term>
963           <listitem>
964             <para>it replaces all the terms matched by <command>patt</command>
965              with their βδιζ-normal form.</para>
966           </listitem>
967         </varlistentry>
968         <varlistentry>
969           <term>New sequents to prove:</term>
970           <listitem>
971             <para>none.</para>
972           </listitem>
973         </varlistentry>
974       </variablelist>
975     </para>
976   </sect1>
977   <sect1 id="tac_reflexivity">
978     <title>reflexivity</title>
979     <titleabbrev>reflexivity</titleabbrev>
980     <para><userinput>reflexivity </userinput></para>
981     <para>
982       <variablelist>
983         <varlistentry>
984           <term>Pre-conditions:</term>
985           <listitem>
986             <para>the conclusion of the current sequent must be
987              <command>t=t</command> for some term <command>t</command></para>
988           </listitem>
989         </varlistentry>
990         <varlistentry>
991           <term>Action:</term>
992           <listitem>
993             <para>it closes the current sequent by reflexivity
994              of equality.</para>
995           </listitem>
996         </varlistentry>
997         <varlistentry>
998           <term>New sequents to prove:</term>
999           <listitem>
1000             <para>none.</para>
1001           </listitem>
1002         </varlistentry>
1003       </variablelist>
1004     </para>
1005   </sect1>
1006   <sect1 id="tac_replace">
1007     <title>replace &lt;pattern&gt; with &lt;term&gt;</title>
1008     <titleabbrev>change</titleabbrev>
1009     <para><userinput>change patt with t</userinput></para>
1010     <para>
1011       <variablelist>
1012         <varlistentry>
1013           <term>Pre-conditions:</term>
1014           <listitem>
1015             <para>none.</para>
1016           </listitem>
1017         </varlistentry>
1018         <varlistentry>
1019           <term>Action:</term>
1020           <listitem>
1021             <para>it replaces the subterms of the current sequent matched by
1022              <command>patt</command> with the new term <command>t</command>.
1023              For each subterm matched by the pattern, <command>t</command> is
1024              disambiguated in the context of the subterm.</para>
1025           </listitem>
1026         </varlistentry>
1027         <varlistentry>
1028           <term>New sequents to prove:</term>
1029           <listitem>
1030             <para>for each matched term <command>t'</command> it opens
1031              a new sequent to prove whose conclusion is
1032              <command>t'=t</command>.</para>
1033           </listitem>
1034         </varlistentry>
1035       </variablelist>
1036     </para>
1037   </sect1>
1038   <sect1 id="tac_rewrite">
1039     <title>rewrite {&lt;|&gt;} &lt;term&gt; &lt;pattern&gt;</title>
1040     <titleabbrev>rewrite</titleabbrev>
1041     <para><userinput>rewrite dir p patt</userinput></para>
1042     <para>
1043       <variablelist>
1044         <varlistentry>
1045           <term>Pre-conditions:</term>
1046           <listitem>
1047             <para><command>p</command> must be the proof of an equality,
1048              possibly under some hypotheses.</para>
1049           </listitem>
1050         </varlistentry>
1051         <varlistentry>
1052           <term>Action:</term>
1053           <listitem>
1054             <para>it looks in every term matched by <command>patt</command>
1055              for all the occurrences of the
1056              left hand side of the equality that <command>p</command> proves
1057              (resp. the right hand side if <command>dir</command> is
1058              <command>&lt;</command>). Every occurence found is replaced with
1059              the opposite side of the equality.</para>
1060           </listitem>
1061         </varlistentry>
1062         <varlistentry>
1063           <term>New sequents to prove:</term>
1064           <listitem>
1065             <para>it opens one new sequent for each hypothesis of the
1066              equality proved by <command>p</command> that is not closed
1067              by unification.</para>
1068           </listitem>
1069         </varlistentry>
1070       </variablelist>
1071     </para>
1072   </sect1>
1073   <sect1 id="tac_right">
1074     <title>right</title>
1075     <titleabbrev>right</titleabbrev>
1076     <para><userinput>right </userinput></para>
1077     <para>
1078       <variablelist>
1079         <varlistentry>
1080           <term>Pre-conditions:</term>
1081           <listitem>
1082             <para>the conclusion of the current sequent must be
1083              an inductive type or the application of an inductive type with
1084              at least two constructors.</para>
1085           </listitem>
1086         </varlistentry>
1087         <varlistentry>
1088           <term>Action:</term>
1089           <listitem>
1090             <para>equivalent to <command>constructor 2</command>.</para>
1091           </listitem>
1092         </varlistentry>
1093         <varlistentry>
1094           <term>New sequents to prove:</term>
1095           <listitem>
1096             <para>it opens a new sequent for each premise of the second
1097              constructor of the inductive type that is the conclusion of the
1098              current sequent. For more details, see the <command>constructor</command> tactic.</para>
1099           </listitem>
1100         </varlistentry>
1101       </variablelist>
1102     </para>
1103   </sect1>
1104   <sect1 id="tac_ring">
1105     <title>ring</title>
1106     <titleabbrev>ring</titleabbrev>
1107     <para><userinput>ring </userinput></para>
1108     <para>
1109       <variablelist>
1110         <varlistentry>
1111           <term>Pre-conditions:</term>
1112           <listitem>
1113             <para>the conclusion of the current sequent must be an
1114              equality over Coq's real numbers that can be proved using
1115              the ring properties of the real numbers only.</para>
1116           </listitem>
1117         </varlistentry>
1118         <varlistentry>
1119           <term>Action:</term>
1120           <listitem>
1121             <para>it closes the current sequent veryfying the equality by
1122              means of computation (i.e. this is a reflexive tactic, implemented
1123              exploiting the &quot;two level reasoning&quot; technique).</para>
1124           </listitem>
1125         </varlistentry>
1126         <varlistentry>
1127           <term>New sequents to prove:</term>
1128           <listitem>
1129             <para>none.</para>
1130           </listitem>
1131         </varlistentry>
1132       </variablelist>
1133     </para>
1134   </sect1>
1135   <sect1 id="tac_simplify">
1136     <title>simplify &lt;pattern&gt;</title>
1137     <titleabbrev>simplify</titleabbrev>
1138     <para><userinput>simplify patt</userinput></para>
1139     <para>
1140       <variablelist>
1141         <varlistentry>
1142           <term>Pre-conditions:</term>
1143           <listitem>
1144             <para>none.</para>
1145           </listitem>
1146         </varlistentry>
1147         <varlistentry>
1148           <term>Action:</term>
1149           <listitem>
1150             <para>it replaces all the terms matched by <command>patt</command>
1151              with other convertible terms that are supposed to be simpler.</para>
1152           </listitem>
1153         </varlistentry>
1154         <varlistentry>
1155           <term>New sequents to prove:</term>
1156           <listitem>
1157             <para>none.</para>
1158           </listitem>
1159         </varlistentry>
1160       </variablelist>
1161     </para>
1162   </sect1>
1163   <sect1 id="tac_split">
1164     <title>split</title>
1165     <titleabbrev>split</titleabbrev>
1166     <para><userinput>split </userinput></para>
1167     <para>
1168       <variablelist>
1169         <varlistentry>
1170           <term>Pre-conditions:</term>
1171           <listitem>
1172             <para>the conclusion of the current sequent must be
1173              an inductive type or the application of an inductive type with
1174              at least one constructor.</para>
1175           </listitem>
1176         </varlistentry>
1177         <varlistentry>
1178           <term>Action:</term>
1179           <listitem>
1180             <para>equivalent to <command>constructor 1</command>.</para>
1181           </listitem>
1182         </varlistentry>
1183         <varlistentry>
1184           <term>New sequents to prove:</term>
1185           <listitem>
1186             <para>it opens a new sequent for each premise of the first
1187              constructor of the inductive type that is the conclusion of the
1188              current sequent. For more details, see the <command>constructor</command> tactic.</para>
1189           </listitem>
1190         </varlistentry>
1191       </variablelist>
1192     </para>
1193   </sect1>
1194   <sect1 id="tac_symmetry">
1195     <title>symmetry</title>
1196     <titleabbrev>symmetry</titleabbrev>
1197     <para>The tactic <command>symmetry</command> </para>
1198     <para><userinput>symmetry </userinput></para>
1199     <para>
1200       <variablelist>
1201         <varlistentry>
1202           <term>Pre-conditions:</term>
1203           <listitem>
1204             <para>the conclusion of the current proof must be an equality.</para>
1205           </listitem>
1206         </varlistentry>
1207         <varlistentry>
1208           <term>Action:</term>
1209           <listitem>
1210             <para>it swaps the two sides of the equalityusing the symmetric
1211              property.</para>
1212           </listitem>
1213         </varlistentry>
1214         <varlistentry>
1215           <term>New sequents to prove:</term>
1216           <listitem>
1217             <para>none.</para>
1218           </listitem>
1219         </varlistentry>
1220       </variablelist>
1221     </para>
1222   </sect1>
1223   <sect1 id="tac_transitivity">
1224     <title>transitivity &lt;term&gt;</title>
1225     <titleabbrev>transitivity</titleabbrev>
1226     <para><userinput>transitivity t</userinput></para>
1227     <para>
1228       <variablelist>
1229         <varlistentry>
1230           <term>Pre-conditions:</term>
1231           <listitem>
1232             <para>the conclusion of the current proof must be an equality.</para>
1233           </listitem>
1234         </varlistentry>
1235         <varlistentry>
1236           <term>Action:</term>
1237           <listitem>
1238             <para>it closes the current sequent by transitivity of the equality.</para>
1239           </listitem>
1240         </varlistentry>
1241         <varlistentry>
1242           <term>New sequents to prove:</term>
1243           <listitem>
1244             <para>it opens two new sequents <command>l=t</command> and
1245              <command>t=r</command> where <command>l</command> and <command>r</command> are the left and right hand side of the equality in the conclusion of
1246 the current sequent to prove.</para>
1247           </listitem>
1248         </varlistentry>
1249       </variablelist>
1250     </para>
1251   </sect1>
1252   <sect1 id="tac_unfold">
1253     <title>unfold [&lt;term&gt;] &lt;pattern&gt;</title>
1254     <titleabbrev>unfold</titleabbrev>
1255     <para><userinput>unfold t patt</userinput></para>
1256     <para>
1257       <variablelist>
1258         <varlistentry>
1259           <term>Pre-conditions:</term>
1260           <listitem>
1261             <para>none.</para>
1262           </listitem>
1263         </varlistentry>
1264         <varlistentry>
1265           <term>Action:</term>
1266           <listitem>
1267             <para>it finds all the occurrences of <command>t</command>
1268              (possibly applied to arguments) in the subterms matched by
1269              <command>patt</command>. Then it δ-expands each occurrence,
1270              also performing β-reduction of the obtained term. If
1271              <command>t</command> is omitted it defaults to each
1272              subterm matched by <command>patt</command>.</para>
1273           </listitem>
1274         </varlistentry>
1275         <varlistentry>
1276           <term>New sequents to prove:</term>
1277           <listitem>
1278             <para>none.</para>
1279           </listitem>
1280         </varlistentry>
1281       </variablelist>
1282     </para>
1283   </sect1>
1284   <sect1 id="tac_whd">
1285     <title>whd &lt;pattern&gt;</title>
1286     <titleabbrev>whd</titleabbrev>
1287     <para><userinput>whd patt</userinput></para>
1288     <para>
1289       <variablelist>
1290         <varlistentry>
1291           <term>Pre-conditions:</term>
1292           <listitem>
1293             <para>none.</para>
1294           </listitem>
1295         </varlistentry>
1296         <varlistentry>
1297           <term>Action:</term>
1298           <listitem>
1299             <para>it replaces all the terms matched by <command>patt</command>
1300              with their βδιζ-weak-head normal form.</para>
1301           </listitem>
1302         </varlistentry>
1303         <varlistentry>
1304           <term>New sequents to prove:</term>
1305           <listitem>
1306             <para>none.</para>
1307           </listitem>
1308         </varlistentry>
1309       </variablelist>
1310     </para>
1311   </sect1>
1312
1313 </chapter>
1314