Article View: comp.lang.prolog
Article #2231Re: Occurs check
From: Torkel Franzen
Date: Sun, 20 Dec 1992 09:49
Date: Sun, 20 Dec 1992 09:49
26 lines
1883 bytes
1883 bytes
In article <24454@alice.att.com> pereira@alice.att.com (Fernando Pereira)
writes:
>I agree. Adding the first-order theory of rational trees to the left of the
>|- is precisely restricting the class of models under consideration
>from arbitrary first-order models to rational tree models.
This is not so, since the class of rational tree models cannot be
characterized by any set of first order axioms, any more than the finite
tree models.
>In any case, one needs to be *very* clear about what one
>is assuming to the left of the |-.
In a more perspicuous description of Prolog-style Horn clause programming,
I think it's a good idea to separate the constraint system from the
resolution mechanism. Thus Prolog (in the simplified version here considered),
whatever the constraint system used, delivers answers to a question A(x)
of the form C(x,y), where C(x,y) is a conjunction of constraints, and
it always holds that
(1) C(x,y) -> A(x)
is a logical consequence of the program, read as a set of Horn clauses. Of
course (1) does not imply that there is an x such that A(x); for this to
follow, the constraint theory must be used.
Technical Details
Message-ID:
<TORKEL.92Dec20104928@bast.sics.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!sics.se!torkelReferences:
<1992Dec13.173016.8849@nntp.hut.fi> <1992Dec17.111142.24450@dcs.qmw.ac.uk> <24435@alice.att.com> <TORKEL.92Dec17201903@bast.sics.se> <24439@alice.att.com> <TORKEL.92Dec18231028@lludd.sics.se> <24454@alice.att.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.prolog Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!sics.se!torkel From: torkel@sics.se (Torkel Franzen) Subject: Re: Occurs check In-Reply-To: pereira@alice.att.com's message of 20 Dec 92 02:05:36 GMT Message-ID: <TORKEL.92Dec20104928@bast.sics.se> Sender: news@sics.se Organization: Swedish Institute of Computer Science, Kista References: <1992Dec13.173016.8849@nntp.hut.fi> <1992Dec17.111142.24450@dcs.qmw.ac.uk> <24435@alice.att.com> <TORKEL.92Dec17201903@bast.sics.se> <24439@alice.att.com> <TORKEL.92Dec18231028@lludd.sics.se> <24454@alice.att.com> Date: Sun, 20 Dec 1992 09:49:28 GMT Lines: 27