General
Material
Lecture 1
Lecture 2
Lecture 3
Lecture 4
Lecture 5

Solution

greater_than(succ(_),0).
greater_than(succ(X),succ(Y)) :- greater_than(X,Y).
    

Back to the exercise.