Re: Uniqueness in a set of variables

From: Warwick Harvey <wh_at_icparc.ic.ac.uk>
Date: Wed 03 Oct 2001 05:56:12 PM GMT
Message-ID: <20011003185612.D57@tempest.icparc.ic.ac.uk>
On Tue, Oct 02, 2001 at 08:56:03PM +0300, Loizos Michael wrote:
> I want to keep the minimum subset of these terms, such that the fully grounded
> set of terms that can be unified with the subset remains the same as with the
> fully grounded set of terms that can be unified with the initial set. Each
> variable in the term takes finite grounded values.

It sounds like the kind of thing you're looking for is the instance/2
predicate.  See the documentation for details, but basically it succeeds if
and only if one term is an instance of another (i.e. they can be made the
same by possibly binding some variables) --- assuming there are no shared
variables involved.  So what you want to do is go through your terms and
throw out any which are instances of others.

Cheers,
Warwick
Received on Wed Oct 03 18:56:41 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:10 PM GMT GMT