Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion PROLOG THEORY BUG!

Received: by 10.224.219.144 with SMTP id hu16mr6952099qab.1.1351590987300;
        Tue, 30 Oct 2012 02:56:27 -0700 (PDT)
Path: gf5ni5675617qab.0!nntp.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!panix3.panix.com!marsh
From: William Elliot <ma...@panix.com>
Newsgroups: sci.logic,sci.math,comp.lang.prolog,comp.ai.philosophy
Subject: Re: PROLOG THEORY BUG!
Date: Tue, 30 Oct 2012 02:56:24 -0700
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 39
Message-ID: <Pine.NEB.4.64.1210300250560.22739@panix3.panix.com>
References: <ba9c7e82-a984-4d41-9d38-5db56c8b1e16@i7g2000pbf.googlegroups.com>
NNTP-Posting-Host: panix3.panix.com
Mime-Version: 1.0
X-Trace: reader1.panix.com 1351590986 15533 166.84.1.3 (30 Oct 2012 09:56:26 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Tue, 30 Oct 2012 09:56:26 +0000 (UTC)
In-Reply-To: <ba9c7e82-a984-4d41-9d38-5db56c8b1e16@i7g2000pbf.googlegroups.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 30 Oct 2012, Hercules ofZeus wrote:

> f(0).
> t(1).
> 
> wff(X) :- t(X).
> wff(X) :- f(X).
> what(X,true) :- t(X).
> what(X,false) :- f(X).
> 
> if(X,Y) :- t(X), t(Y).
> if(X,Y) :- f(X), f(Y).
> if(X,Y) :- f(X), t(Y).
> 
> f(if(X,Y)) :- t(X),f(Y).
> 
What's f?

> t(if(X,Y)) :- if(X,Y).
 
t(X) :- X

What's :- supposed to mean?

> OK, X should be any Boolean Predicate Formula, just if(x,y) at this
> stage.
> 
> ?-  wff(  if(1,1) )
> YES
> 
> ?- wff(  if(1,0) )
> *HANGS*
> 
You got a problem with a lynching?

> It should complete matching the WFF(X) :- t(X) without success and
> proceed onto WFF(X) :- f(X).

Why?