Question

In: Computer Science

Read the following paragraph and answer the questions. Every man does not hit a woman whom...

Read the following paragraph and answer the questions.

Every man does not hit a woman whom he loves. John and Bill are men and Mary is a woman. Mary loves either John or Bill. Bill hit Mary. Does Mary love John?

a) Represent the above sentences into FOL (First Order Logic) formulas with defining your ontology. (5 Points)

b) In order to get the correct answer, if you need additional knowledge give the additional FOL formulas. And write the question (answer) into FOL formula (3 Points).

c) Prove the answer is true by the refutation-resolution.

Solutions

Expert Solution

Solution:

a) Every man does not hit a woman whom he loves.

∀x (man(x)→∃y[(woman(y)∧~hit(x,y))→loves(x,y)])

John and Bill are men and Mary is a woman

Man(John)^Man(Bill)^Woman(Mary)

Mary loves either John or Bill (it is clear that not both) that means exclusive or. The logic expression for exclusive or is p⊕q=(p∧¬q)∨(¬p∧q)=(¬p∨¬q)∧(p∨q)=p<->q=p->q^q->p

[loves(Mary,John) -> loves(Mary,Bill)]^[loves(Mary,Bill) -> loves(Mary,John)]

Bill hit Mary.

hit(Bill,Mary)

b) Now, let us represent the Conjucative Normal Form for the first order logic given in part a).

1. ∀x (man(x)→∃y[(woman(y)∧~hit(x,y))→loves(x,y)])^

2. Man(John)^

3. Man(Bill)^

4. Woman(Mary)^

5. [loves(Mary,John) -> loves(Mary,Bill)]^[loves(Mary,Bill) -> loves(Mary,John)]^

6. hit(Bill,Mary)

Take the statement (1). Here y is Mary as she is woman and remove ∃ using existential elimination . x belongs to {John,Bill}

We know that p->q=~pvq.

Let p be man(x) and q be [(woman(y)∧~hit(x,y))→loves(x,y)]

So, we can write first statement as ~ ∀x (man(x)v[(woman(Mary)∧~hit(x,y))→loves(x,y)])

Now let us consider p as woman(Mary)∧~hit(x,y) and q as loves(x,y).

So, we can write the statement as ~[woman(Mary)∧~hit(x,y)]vloves(x,y)

~woman(Mary)vhit(x,y)vloves(x,y)

Statement 5 can be written as [~loves(Mary,John) v loves(Mary,Bill)] ^ [~ loves(Mary,Bill) v loves(Mary,John) ]

Finally, we can rewrite the sentences as

1. ~ ∀x man(x) v ~woman(Mary) v hit(x,Mary) v loves(x,Mary)^

2. Man(John)^

3. Man(Bill)^

4. Woman(Mary)^

5. [~loves(Mary,John) v loves(Mary,Bill)] ^

6. [~ loves(Mary,Bill) v loves(Mary,John) ] ^

7. hit(Bill,Mary)

Goal: love(Mary,John)

c) Refutation resolution: It is a technique to reach the goal by going with contradiction.

7.Take statement 1 and 2: We get ~woman(Mary) v hit(x,Mary) v loves(x,Mary) where x ={John}

8. Take statement 7 and 4: We get hit(John,Mary) v loves(John,Mary)

9. In the above statement we get two contradiction i.e...there is no statement hit(Jobn,Mary).

Hence we have Mary loves John.


Related Solutions

Please answer all of the questions. Spider-Man and Spider-Woman are planning to have children in the...
Please answer all of the questions. Spider-Man and Spider-Woman are planning to have children in the near future. Spider-Man is able to spin webs (S) and cling to walls (C), whereas Spider-Woman can spin webs but cannot cling to walls. If both of these traits are inherited in a dominant manner (i.e., the dominant trait will always mask the recessive trait), Spider-Man is heterozygous for each trait, and Spider-Woman is heterozygous for the web-spinning trait... What would be the phenotypic...
Please answer all the questions Spider-Man and Spider-Woman are planning to have children in the near...
Please answer all the questions Spider-Man and Spider-Woman are planning to have children in the near future. Spider-Man is able to spin webs (S) and cling to walls (C), whereas Spider-Woman can spin webs but cannot cling to walls. If both of these traits are inherited in a dominant manner (i.e., the dominant trait will always mask the recessive trait), Spider-Man is heterozygous for each trait, and Spider-Woman is heterozygous for the web-spinning trait... What is Spider-Man's genotype? a. SSCc...
Read Eva’s story and answer the questions. Eva, a single woman without children, is excited to...
Read Eva’s story and answer the questions. Eva, a single woman without children, is excited to know that her best friend, Anna, has given birth a baby boy recently. Anna invites Eva to attend the 100th Day Birth Celebration Party for her baby boy, which is in this evening. Since Eva won’t have any time between work and the party in the evening, she must go today during her lunch break to buy a special baby gift for Anna. After...
Answer the following 3 questions in one paragraph (no more than 6 sentences): What does it...
Answer the following 3 questions in one paragraph (no more than 6 sentences): What does it mean when we say a government is "legitimate" or "illegitimate"? Do you think that your country’s government is legitimate? Why or why not?
Read the following case study and answer the questions.                                  &
Read the following case study and answer the questions.                                     1*6=6 RBC’s Youth Marketing Strategy As stated above, the marketing strategy consists of selecting a target market and designing the marketing mix of your product, price, place, and promotion to appeal to your competitors. RBC, Canada’s largest bank, obviously has many different target markets, which results in the key managing different marketing mixes. One key target market for the bank is university students and recent graduates. The group is particularly...
Q2. Read the paragraph and answer the following (write it down on a paper) "A bottled...
Q2. Read the paragraph and answer the following (write it down on a paper) "A bottled water company want to change how they are selling their product by the traditional method. They want from their customers to have the option to buy from them directly instead of buying their products through Supermarkets or grocery stores". - What are the options the company can take to allow customers to buy directly from them? - How can they create a value to...
Answer the FOLLOWING questions in paragraph format: Where does NYC drinking water come from? How is...
Answer the FOLLOWING questions in paragraph format: Where does NYC drinking water come from? How is the drinking water quality monitored? How is the infrastructure maintained? What are some methods of disinfection? Are there any pipes that contain lead in the system?
Read the case and answer the following questions.                                  30 Mark
Read the case and answer the following questions.                                  30 Marks                                Richard Dana Associates (RDA) was brought in by the owners of a family-owned business with complex relationship issues at a time preceding an anticipated leadership transition. Following individual and group coaching sessions, RDA was able to help the leadership separate personal issues, and codify practices through formal policies to allow the leadership group to focus on business issues without personal complications. At the end of RDA's engagement, the client was...
Read the following excerpt and answer question 3. Money down the drain Households hit by sky...
Read the following excerpt and answer question 3. Money down the drain Households hit by sky high power bills have also been silently battling surging water and sewage costs in a double – whammy on their budgets A Herald Sun analysis of 10 years of bureau of Statistics data has found that water and sewerage charges jumped an average 91 per cent since 2007, not far behind electricity’s jump 116 per cent jump. …… Water economics specialist and Australian National...
Read the following accounting case and then answer the questions thoroughly. Questions are listed below the...
Read the following accounting case and then answer the questions thoroughly. Questions are listed below the case. Taylor and Ryan co-own and operate Hatfield Office Equipment (HOE) for 30 years. A local bank has continually financed HOE, which has an inventory worth millions of dollars. The siblings share ownership of the business. They hired James, Taylor’s son, to handle the company’s bookkeeping responsibilities. James, 30, had been working in various jobs at the business since high school. He eventually was...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT