
Logic Programming and Artificial Intelligence
24 February 2010
Solutions to LPA Problem Sheet 5
Note: We shall often use the following shorthand notation for trees.
A A
B / \
F = B C
C / / \
D F D E
E
1. • ∀x F emale(m(x))
All mothers are female.
• ∀x Male(f(x))
All fathers are male.
• ∀x(Male(x)↔ ¬F emale(x))
Everyone is either male or female, but not both.
• ∃y∀x¬P(y, x)
There is someone who is the parent of no one.
• ∀x¬P(x, x)
No one is his own parent.
• ∀x1x2P(x1, x2)→ ¬P(x2, x1)
One’s parent is not one’s child.
• ∀x1x2x3P(x1, x2)∧P(x2, x3)→ ¬P(x3, x1)
One’s grandparent is not one’s child.
•The above series continues infinitely, and in general for n≥2 we have
∀x1x2· · · xnP(x1, x2)∧P(x2, x3)∧ · · · ∧ P(xn−1, xn)→ ¬P(xn, x1)
One’s ancestor is not one’s child. (This is also the same as “One’s descendant is
not one’s parent.”)
• ∀x, y P (x, y )↔x=f(y)∨x=m(y)
One person is the parent of a second person if and only if the first is the mother
or the father of the second.
It follows from these axioms that there is a male and that there is a female. It also
follows that the father of someone is his parent and that the mother of someone is his
parent.
It follows from these axioms that a mother is not a father. It also follows that everyone
has exactly two parents. In particular, the last axiom entails that each person has at
most two parents—a father and a mother. And since, fathers are not mothers, each
person has exactly two parents, exactly one of which is male and exactly one of which
is female.
In addition to the sequence of axioms capturing that one’s ancestor is not one’s child,
which we already have, we can consider two other sequences: one capturing that one’s
parent is not one’s descendant and one capturing that one’s ancestor is not one’s de-
scendant. Interestingly, and certainly not obviously, the sequence which we have entails
the other two sequences.
2. Adding a non-redundant axiom to the theory reduces the set of models that satisfy the
theory. So in order to eliminate models in which social conventions are not followed,
more axioms would have to be added to the theory.
3. Since this system can derive only the premises themselves every sentence it derives must
be a logical consequence of the premises. On the other hand, this system cannot derive
any other logical consequences so it is incomplete.
1