Drop links or images here to add them to the editor.

Write predicates to compare Peano numbers. In this system, \(0\) is presented by 0, \(1\) by s(1), \(2\) by s(s(0)), and so on. To be precise, \(n\) is represented by taking 0 and wrapping it \(n\) times with s/1.

The predicates that need to be written are: