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