Starting points for the Knights/Knaves tautology checker...

Possible helper rules:

This problem does not require a lot of code, but it does require some careful thinking about


To this end, here are some helper functions - and the two we wrote in class - feel free to take this decomposition or to try another on your own...

Checking if something is a number...

In addition, keep in mind that you can use number(N), a predicate built-in to Prolog that makes sure N is bound to a number.