This repository has been archived on 2025-09-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2025LogProg-project-GhentPr.../examples/basics/backtracking.pl

9 lines
128 B
Prolog

leq(0, _).
leq(s(X), s(Y)) :- leq(X, Y).
:- initialization(main).
main :-
leq(A, s(s(s(0)))),
write(A), nl,
fail.