Return-Path: <John.Harrison-request@cl.cam.ac.uk>
Delivery-Date: 
Received: from ted.cs.uidaho.edu (no rfc931) by swan.cl.cam.ac.uk 
          with SMTP (PP-6.5) outside ac.uk; Fri, 4 Jun 1993 11:54:34 +0100
Received: by ted.cs.uidaho.edu (16.6/1.34) id AA11290;
          Fri, 4 Jun 93 03:46:21 -0700
Sender: info-hol-request@ted.cs.uidaho.edu
Errors-To: info-hol-request@ted.cs.uidaho.edu
Precedence: bulk
Received: from swan.cl.cam.ac.uk by ted.cs.uidaho.edu (16.6/1.34) id AA11285;
          Fri, 4 Jun 93 03:46:09 -0700
Received: from albatross.cl.cam.ac.uk (user sk (rfc931)) by swan.cl.cam.ac.uk 
          with SMTP (PP-6.5) to cl; Fri, 4 Jun 1993 11:45:46 +0100
To: Wishnu Prasetya <wishnu@cs.ruu.nl>
Cc: info-hol@ted.cs.uidaho.edu (hol mailing list), Sara.Kalvala@cl.cam.ac.uk
Subject: Re: REWRITING 2nd argument, how?
In-Reply-To: Your message of "Fri, 04 Jun 93 12:05:20 BST." <199306041005.AA11765@infix.cs.ruu.nl>
Date: Fri, 04 Jun 93 11:45:41 +0100
From: Sara Kalvala <Sara.Kalvala@cl.cam.ac.uk>
Message-Id: <"swan.cl.cam.:033900:930604104549"@cl.cam.ac.uk>


> Can anybody help me to write a tactic that does the following rewriting:
> ...
> the problem is that trm2 may be a subterm of trm1, so naive rewriting
> will also rewrite trm1.


Check out the help information for GEN_REWRITE_TAC, which provides a
method for selecting a subterm to rewrite:

>> GEN_REWRITE_TAC : ((conv -> conv) -> thm list -> thm list -> tactic)
>>
>> SYNOPSIS
>>
>> Rewrites a goal, selecting terms according to a user-specified strategy.


								- Sara

