Received: from leopard.cs.byu.edu (leopard.cs.byu.edu [128.187.2.182]) by ra.abo.fi (8.6.10/8.6.10) with ESMTP id SAA02037; Sun, 14 Jan 1996 18:35:59 +0200
Received: by leopard.cs.byu.edu
	(1.37.109.15/16.2) id AA272114269; Sun, 14 Jan 1996 08:44:29 -0700
Sender: info-hol-request@leopard.cs.byu.edu
Errors-To: info-hol-request@leopard.cs.byu.edu
Precedence: list
Received: from ra.abo.fi by leopard.cs.byu.edu with ESMTP
	(1.37.109.15/16.2) id AA272084267; Sun, 14 Jan 1996 08:44:27 -0700
Received: from tanichka.abo.fi (root@tanichka.abo.fi [130.232.209.102]) by ra.abo.fi (8.6.10/8.6.10) with ESMTP id RAA01053 for <info-hol@leopard.cs.byu.edu>; Sun, 14 Jan 1996 17:43:17 +0200
Received: from tanichka.abo.fi (jharriso@localhost [127.0.0.1]) by tanichka.abo.fi (8.6.10/8.6.10) with ESMTP id RAA03952 for <info-hol@leopard.cs.byu.edu>; Sun, 14 Jan 1996 17:44:16 +0200
Message-Id: <199601141544.RAA03952@tanichka.abo.fi>
To: info-hol@leopard.cs.byu.edu
Subject: Re: general renaming
In-Reply-To: Your message of "Fri, 12 Jan 1996 14:53:01 EET."
             <199601122153.AA175523581@jaguar.cs.byu.edu>
Date: Sun, 14 Jan 1996 17:44:12 +0200
From: John Harrison <jharriso@ra.abo.fi>


Paul writes:

| I need to rename (free) variables in theorems, eg,
|         |- a = b
| into
|         |- a = c
|
| Is there function in HOL88 which does this?  I can see
| how to write more own with a few functions, but I
| wanted to reuse if possible.

The INST function will probably do what you want. In the example you
cite one would do:

  INST ["c","b"] <theorem>

However it won't rename the same variable in assumptions; as far as
I know there's no function to do that directly, so you'd have to write
your own.

John.
