(0) Obligation:
Clauses:
num(0).
num(X) :- ','(no(zero(0)), ','(p(X, Y), num(Y))).
p(0, 0).
p(s(X), X).
zero(0).
no(X) :- ','(X, ','(!, failure(a))).
no(X1).
failure(b).
Queries:
num(g).
(1) CutEliminatorProof (SOUND transformation)
Eliminated all cuts by simply ignoring them[PROLOG].
(2) Obligation:
Clauses:
num(0).
num(X) :- ','(no(zero(0)), ','(p(X, Y), num(Y))).
p(0, 0).
p(s(X), X).
zero(0).
no(X) :- ','(X, failure(a)).
no(X1).
failure(b).
Queries:
num(g).