I having trouble with a question on my assignment and I've exhausted other avenues of help. So here's the question (my prof speaks English as a second language and it shows in the wording of this question):
One day Lady Smith returned home and was surprised by a big birthday cake prepared by her three children, named Ada, Bob, and Chris. She was reliably informed that only one of them made this special gift for her. Regarding which child made the cake children requested Lady Smith to figure it out. For this purpose Ada and Bob made their following statements:
Ada: I did not make the cake. Bob: I actually made.
Lady Smith then asked Chris: "Whether this cake really made by Bob?" Chris answered: Yes, he did!
Lady Smith knows that at least two of the children did not tell the truth. Please help Lady Smith to prove that Ada made the cake by using Resolution and Unification.
So the part I'm stuck on is part a of the question which asks us to "use logical expressions to represent essential statements above".
I was thinking something like this, but I'm not sure that's a valid way to actually do this.
Says (x, y) = x says y Bake(x) = x baked the cake
$Bake(Ada) \lor Bake(Bob) \lor (Bake(Chris) \equiv T$ $Says(Ada, \lnot (Bake(Ada)) \to Bake(Bob) \lor Bake(Chris)$ $Says(Bob), Bake(Bob)) \to Bake(Bob) \land \lnot Bake(Ada) \land \lnot Bake(Chris)$ $Says(Chris, Bake(Bob) \to Bake(Bob) \land \lnot Bake(Ada) \land \lnot Bake(Chris)$
HINT
As Henning already said, you really don't want to use a Says predicate, as it will complicate things, and unnecessarily so. in fact, I would just use propositional logic here: A: Ada baked the cake, B: Bob baked the cake, C: Chris baked the cake
Also, make sure that exactly one of them baked the cake, so instead of just using $A \lor B \lor C$ (which allow for multiple bakers) you should rule out two (or more) bakers, so you get the following statements:
$A \lor B \lor C$
$\neg (A \land B)$
$\neg (A \land C)$
$\neg (B \land C)$
To represent that at least two of the children were not telling the truth, you can represent the claims that it is not possible to have two children telling the truth.
Now, Ada says $\neg A$, Bob says $B$, and Chris says $B$. So, we must have:
$\neg (\neg A \land B)$ (Ada and Bob are not both telling the truth)
$\neg (\neg A \land B)$ (Ada and Chris are not both telling the truth)
$\neg (B \land B)$ (Bob and Chris are not both telling the truth)
So, in sum, you get:
$A \lor B \lor C$
$\neg (A \land B)$
$\neg (A \land C)$
$\neg (B \land C)$
$\neg (\neg A \land B)$ (duplicate removed)
$\neg (B \land B)$
These becomes the following clauses:
$A, B, C$
$\neg A, \neg B$
$\neg A, \neg C$
$\neg B, \neg C$
$A, \neg B$
$\neg B$
2,4, and 5 are subsumed by 6, so can be removed:
$A, B, C$
$\neg A, \neg C$
$\neg B$
1 and 6 resolve to:
... and that's as far as you can get (resolving 3 and 7 only gives you tautologies).
So: it seems there are 2 solutions: Ada baked the cake, or Chris baked the cake!