]> matita.cs.unibo.it Git - helm.git/blob - helm/www/matita/docs/manual/tac_rewrite.html
manual regenerated
[helm.git] / helm / www / matita / docs / manual / tac_rewrite.html
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>rewrite [&lt;|&gt;] sterm &lt;pattern&gt;</title><link rel="stylesheet" href="docbook.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.68.1" /><link rel="start" href="index.html" title="Matita V0.1.0&#10; User Manual (rev. 1α)" /><link rel="up" href="sec_tactics.html" title="Chapter 6. Tactics" /><link rel="prev" href="tac_replace.html" title="replace &lt;pattern&gt; with sterm" /><link rel="next" href="tac_right.html" title="right" /></head><body><a xmlns="" href="../../"><div class="matita_logo"><img src="../../images/matita-tiny.png" alt="Tiny Matita logo" /><span>Matita Home</span></div></a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">rewrite [&lt;|&gt;] sterm &lt;pattern&gt;</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="tac_replace.html">Prev</a> </td><th width="60%" align="center">Chapter 6. Tactics</th><td width="20%" align="right"> <a accesskey="n" href="tac_right.html">Next</a></td></tr></table><hr /></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="tac_rewrite"></a>rewrite [&lt;|&gt;] <span class="emphasis"><em><a href="sec_terms.html#sterm">sterm</a></em></span> &lt;pattern&gt;</h2></div></div></div><p><strong class="userinput"><code>rewrite dir p patt</code></strong></p><p>
4       </p><div class="variablelist"><dl><dt><span class="term">Pre-conditions:</span></dt><dd><p><span><strong class="command">p</strong></span> must be the proof of an equality,
5              possibly under some hypotheses.</p></dd><dt><span class="term">Action:</span></dt><dd><p>It looks in every term matched by <span><strong class="command">patt</strong></span>
6              for all the occurrences of the
7              left hand side of the equality that <span><strong class="command">p</strong></span> proves
8              (resp. the right hand side if <span><strong class="command">dir</strong></span> is
9              <span><strong class="command">&lt;</strong></span>). Every occurence found is replaced with
10              the opposite side of the equality.</p></dd><dt><span class="term">New sequents to prove:</span></dt><dd><p>It opens one new sequent for each hypothesis of the
11              equality proved by <span><strong class="command">p</strong></span> that is not closed
12              by unification.</p></dd></dl></div><p>
13     </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="tac_replace.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="sec_tactics.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="tac_right.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">replace &lt;pattern&gt; with sterm </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> right</td></tr></table></div></body></html>