Problem
Formalize addition with successor and show a canonical entailment
We use a standard Peano-style signature with a constant and a unary function:
// Symbols: // 0 // zero // s(x) // successor of x // Predicate: // add(x, y, z) // "x + y = z" // // Axioms for addition (Horn clauses): // A1: add(x, 0, x). // A2: add(x, y, z) -> add(x, s(y), s(z)).
Goal (ground instance to prove by Resolution):
add(s(0), s(0), s(s(0))) — i.e., 1 + 1 = 2.