Help: Multiple Proof Trees
- From: "Pasquale Renna" <pasqualerenna@xxxxxxxxx>
- Date: 29 Aug 2005 15:12:32 -0700
Let's take this small program as an example:
:- op(500, xfy, <==).
prove(true, true).
prove( (Goal1, Goal2), (Proof1, Proof2) ) :- prove(Goal1, Proof1),
prove(Goal2, Proof2).
prove( Goal, Goal <== Proof) :- clause(Goal, Body), prove(Body, Proof).
a :- b,c.
a :- e.
b.
c.
e.
The goal prove(a, Proof) succeeds for the first time, but it gives
errors on backtracking. Any suggestions on obtaining all the proof
trees for a specified goal? Thanks in advance!
.
- Follow-Ups:
- Re: Help: Multiple Proof Trees
- From: Bart Demoen
- Re: Help: Multiple Proof Trees
- Prev by Date: Re: I now realize WHY my 'consistency check' was pointless: CLP.
- Next by Date: Re: Help: Multiple Proof Trees
- Previous by thread: Re: turbo prolog or visual prolog
- Next by thread: Re: Help: Multiple Proof Trees
- Index(es):
Relevant Pages
|