logic-and-learning-lab/Popper

Usage of the extra bias for specifing the clause

Closed this issue · 2 comments

Hello. I want to define some more specific properties in the bias file. I learned from the file alan.pl, but things don't work as I guess. For instance, I want to make sure that

  • Two clauses.
  • Only one of them contains the predicate q in the body.

So I write the following things in the bias.pl.

:-
    not clause(1).

:-
    head_literal(1,_,_,_), %%allowing the 0 clause to contain q.
    body_literal(_,q,_,_).

But the result seems to show that neither of them contains q predicate. Obviously, the second clause I write makes it failed, but what is the reason? And is there a way to express what I want to restrict?

Thank you.

Thanks, it helps a lot. I got the reason.