Re: Prologs with Occurs Check constantly on?
- From: ulrich@xxxxxxxxxxxxxxxxxxxxxxxxxx (Ulrich Neumerkel)
- Date: Thu, 13 Oct 2011 15:48:56 GMT
Jan Burse <janburse@xxxxxxxxxxx> writes:
Jan Wielemaker schrieb:
As Ulrich pointed out, the world of unification with occurs-check
combines poorly with the world of cyclic terms. This was the main
conclusion from a debate whether A=f(A), unify_with_occurs_check(A,_)
should succeed or fail.
But in the meantime since 2011-04 or so SWI has a very nice and new
definition failing only for "new cycles". There are some cases still
awaiting perfection, but its seems really the best way to go.
....
I probably don't need to give you examples,
but here is one:
?- X=f(X), Y=f(Y), X=Y.
I guess it will hang in 75% of the Prolog
systems, or is it 95%?
Lets look at X=f(X), Y=f(Y), X\=Y. instead, to avoid
issues with printing the answer.
IF, SWI, YAP, SICStus, Ciao, Eclipse all fail finitely
B, GNU, XSB loop
.
- Follow-Ups:
- Re: Prologs with Occurs Check constantly on?
- From: bart demoen
- Re: Prologs with Occurs Check constantly on?
- References:
- Prologs with Occurs Check constantly on?
- From: Jan Burse
- Re: Prologs with Occurs Check constantly on?
- From: Jan Wielemaker
- Re: Prologs with Occurs Check constantly on?
- From: Jan Burse
- Re: Prologs with Occurs Check constantly on?
- From: Jan Wielemaker
- Re: Prologs with Occurs Check constantly on?
- From: Jan Burse
- Prologs with Occurs Check constantly on?
- Prev by Date: Re: Prologs with Occurs Check constantly on?
- Next by Date: Re: Prologs with Occurs Check constantly on?
- Previous by thread: Re: Prologs with Occurs Check constantly on?
- Next by thread: Re: Prologs with Occurs Check constantly on?
- Index(es):
Relevant Pages
|