Article View: comp.lang.prolog
Article #2147Re: Occurs check
From: Gert Smolka
Date: Mon, 21 Dec 1992 13:17
Date: Mon, 21 Dec 1992 13:17
31 lines
2225 bytes
2225 bytes
In article <24435@alice.att.com>, pereira@alice.att.com (Fernando Pereira) writes: |> If you want to program with cyclic terms, you have gone outside |> bare first-order logic to a system in which terms are interpreted |> in a different way. The theoretical framework and practical value |> of that alternative were established with the Prolog II work at Marseille, |> and there's certainly a sound way of thinking about Prolog with cyclic |> terms. However, as far as I know there is no free lunch. Sound and |> terminating unification of cyclic terms can be more costly than |> unsound Prolog unification. I seriously doubt that rational tree unification pays any significant efficiency penalties in practise over Edinburgh-style unification without occurs check. As has been mentioned by Torkel before, UNIFICATION IN SICSTUS IS RATIONAL TREE UNIFICATION, and Sicstus seems to be rather efficient. Isn't it strange that the forthcoming Prolog standard will explicitly accept implementations of unification that may not terminate on certain terms. I certainly understand that finite tree unifications is needed for some interesting applications. However, given the efficiency and the clean *logical* status of rational tree unification, I would expect that rational tree unification is taken as default and finite tree unification is accommodated as a built-in predicate. By the way, was it Edinburgh or Marseille which first dropped the occurs check? -- Gert Smolka, DFKI, Stuhlsatzenhausweg 3, D-W-6600 Saarbr"ucken, Germany Tel: +49 681 302-5311; Fax: +49 681 302-5341; Net: smolka@dfki.uni-sb.de
Technical Details
Message-ID:
<1h4g5tINN5l6@eagle.dfki.uni-sb.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!sbusol.rz.uni-sb.de!gs-serv3.dfki.uni-sb.de!dfki.uni-sb.de!smolkaReferences:
<1992Dec13.173016.8849@nntp.hut.fi> <1992Dec17.111142.24450@dcs.qmw.ac.uk> <24435@alice.att.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!sbusol.rz.uni-sb.de!gs-serv3.dfki.uni-sb.de!dfki.uni-sb.de!smolka From: smolka@dfki.uni-sb.de (Gert Smolka) Newsgroups: comp.lang.prolog Subject: Re: Occurs check Date: 21 Dec 1992 14:17:49 +0100 Organization: DFKI - German Research Center for AI Lines: 32 Sender: gs-soft@gs-serv3.dfki.uni-sb.de Distribution: world Message-ID: <1h4g5tINN5l6@eagle.dfki.uni-sb.de> References: <1992Dec13.173016.8849@nntp.hut.fi> <1992Dec17.111142.24450@dcs.qmw.ac.uk> <24435@alice.att.com> NNTP-Posting-Host: gs-serv1.dfki.uni-sb.de