I've been trying to study logic lately, as part of my AI course, and I've been going through some old, simple exam questions from my school. There is one question about resolution in particular that I don't know how to solve (there are no answers/explanations provided). So, here goes:
Sonny, Bonny and Conny are all elephants. We know that:
- Sonny is gray.
- Conny is pink and Conny likes Bonny.
- Bonny is either pink or gray (but not both) and Bonny likes Sonny.
Using resolution, prove that the sentence: "A pink elephant likes a gray elephant" is true.
Additional question: How exactly does the 'but not both' part affect the sentence? I doubt I should be using XOR since we haven't mentioned it once in the entire course.
Thanks a lot in advance!
If Bonnie is grey then since Connie likes Bonnie and Connie is pink then there is a pink elephant (namely Connie) that likes a grey elephant (namely Bonnie). Otherwise, Bonnie is pink and there is a pink elephant (namely Bonnie) that likes a grey elephant (namely Sonny).