🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2233

Re: Occurs check

#2233
From: Fernando Pereira
Date: Sun, 20 Dec 1992 22:53
29 lines
2377 bytes
In article <TORKEL.92Dec20104928@bast.sics.se> torkel@sics.se (Torkel Franzen) writes:
>In article <24454@alice.att.com> pereira@alice.att.com (Fernando Pereira)
>   >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.
It cannot be characterized by any *finite* set of first-order formulas.
Notice that I used *theory*, not program in my note. The term "theory"
in logic means any deductively closed set of formulas. In fact, for a finite
signature you can characterize the finite tree models by a finite set
of equality and inequality formulas -- that's precisely what the Clark
completion uses. I don't have handy the relevant papers on rational tree
models, but I believe the same is true for them (papers by Joxan Jaffar and
Michael Maher?).

Anyway, this is just fine print, the main points have already been made clear:
(i) the occurs check is needed for sound deduction in pure first-order
logic; (ii) unification without the occurs check is sound for
deduction over rational tree models; (iii) Prolog unification (by this
I mean what was in Prolog originally) can construct rational terms,
but may not termfinate when unifying them; (iv) there are various
unification algorithms for rational trees, the asymptotically most efficient
of which I believe are all based on UNION-FIND (DFA equivalence). 

Fernando Pereira
pereira@research.att.com
Technical Details
Message-ID: <24458@alice.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!usc!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!att!allegra!alice!pereira
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> <TORKEL.92Dec20104928@bast.sics.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!usc!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!att!allegra!alice!pereira
From: pereira@alice.att.com (Fernando Pereira)
Newsgroups: comp.lang.prolog
Subject: Re: Occurs check
Message-ID: <24458@alice.att.com>
Date: 20 Dec 92 22:53:14 GMT
Article-I.D.: alice.24458
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> <TORKEL.92Dec20104928@bast.sics.se>
Reply-To: pereira@alice.UUCP ()
Organization: AT&T, Bell Labs
Lines: 31