Question

In: Computer Science

Given the following sentences: All hounds howl at night. Anyone who has any cats will not...

Given the following sentences:

  1. All hounds howl at night.
  2. Anyone who has any cats will not have any mice.
  3. Light sleepers do not have anything which howls at night.
  4. John has either a cat or a hound.
  5. (Conclusion) If John is a light sleeper, then John does not have any mice.
  1. Negate the conclusion
  2. Use resolution to prove the conclusion

Solutions

Expert Solution

a) Negate the conclusion " If John is a light sleeper, then John does not have any mice"

First we convert conclusion in well formed formula (wff) :

LS(John) → ¬ ∃ (z) (Have(John,z) ∧ Mouse(z)) (LS means Light Sleeper)

¬ [LS(John) → ¬ ∃ z (Have(John,z) ∧ Mouse(z))] (negate the conclusion)

¬ [¬ LS (John) ∨ ¬ ∃ z (Have (John, z) ∧ Mouse(z))] (using P --> Q =>  ¬P ∨ Q )

LS(John) ∧ ∃ z (Have(John, z) ∧ Mouse(z)))

Hence, LS(John) ∧ Have(John,b) ∧ Mouse(b)

b)  To prove conclusion using Resolution, First we convert sentences into well formed formula (wff) :-

  1. ∀ x (Hound(x) → Howl(x))
  2. ∀ x ∀ y (Have(x,y) ∧ Cat(y) → ¬ ∃ z (Have(x,z) ∧ Mouse(z)))
  3. ∀ x (LS(x) → ¬ ∃ y (Have(x,y) ∧ Howl(y)))
  4. ∃ x (Have(John,x) ∧ (Cat(x) ∨ Hound(x)))
  5. LS(John) → ¬ ∃ z (Have(John,z) ∧ Mouse(z))

=> Then we convert well formed formula (wff) into conjunctive normal form (CNF):-

  1. ∀ x (Hound(x) → Howl(x))

    ¬ Hound(x) ∨ Howl(x)

  2. ∀ x: ∀ y: (Have(x,y) ∧ Cat(y) →   ¬ ∃ z (Have(x,z) ∧ Mouse(z)))

    ∀ x: ∀ y: (Have(x,y) ∧ Cat (y) →  ∀ z ¬ (Have(x,z) ∧ Mouse(z)))

    ∀ x: ∀ y ∀ z (¬ (Have(x,y) ∧ Cat(y)) ∨ ¬ (Have(x,z) ∧ Mouse(z)))

    ¬ Have(x,y) ∨ ¬ Cat(y) ∨ ¬ Have(x,z) ∨ ¬ Mouse(z)

  3. ∀ x (LS(x) →  ¬ ∃ y (Have(x,y) ∧ Howl(y)))

    ∀ x (LS(x) → ∀ y ¬ (Have(x,y) ∧ Howl(y)))

    ∀ x ∀ y (LS(x) → ¬ Have(x,y) ∨ ¬ Howl(y))

    ∀ x ∀ y (¬ LS(x) ∨ ¬ Have(x,y) ∨ ¬ Howl(y))

    ¬ LS(x) ∨ ¬ Have(x,y) ∨ ¬ Howl(y)

  4. ∃ x (Have(John,x) ∧ (Cat(x) ∨ Hound(x)))

    Have(John,a) ∧ (Cat(a) ∨ Hound(a))

  5. ¬ [LS(John) → ¬ ∃ z (Have(John,z) ∧ Mouse(z))]

    ¬ [¬ LS (John) ∨ ¬ ∃ z (Have(John, z) ∧ Mouse(z))]

    LS(John) ∧ ∃ z (Have(John, z) ∧ Mouse(z)))

    LS(John) ∧ HAVE(John,b) ∧ Mouse(b)

=> So, we have set of CNF clauses:-

  1. ¬ Hound(x) ∨ Howl(x)
  2. ¬ Have(x,y) ∨ ¬ Cat(y) ∨ ¬ Have(x,z) ∨ ¬ Mouse(z)
  3. ¬ LS(x) ∨ ¬ Have(x,y) ∨ ¬ Howl(y)
  4. a) Have(John,a)   b) Cat(a) ∨ Hound(a)
  1. a) LS(John) b) Have(John,b) c) Mouse(b)

=> Resolution Proof:-  In this we cancel the negate predicate with normal predicate

using [1.,4.(b):] 6. CAT(a) ∨ HOWL(a)

using [2,5.(c):]

7. ¬ HAVE(x,y) ∨ ¬ CAT(y) ∨ ¬ HAVE(x,b)

using [7,5.(b):]

8. ¬ HAVE(John,y) ∨ ¬ CAT(y)

using [6,8:]

9. ¬ HAVE(John,a) ∨ HOWL(a)

using [4.(a),9:]

10. HOWL(a)

using [3,10:]

11. ¬ LS(x) ∨ ¬ HAVE(x,a)

using [4.(a),11:]

12. ¬ LS(John)

using [5.(a),12:]

13. □ (null)

Related Solutions

Given the following sentences: All hounds howl at night. Anyone who has any cats will not...
Given the following sentences: All hounds howl at night. Anyone who has any cats will not have any mice. Light sleepers do not have anything which howls at night. John has either a cat or a hound. (Conclusion) If John is a light sleeper, then John does not have any mice. Negate the conclusion (FOL) Use resolution to prove the conclusion (FOL)
A hotel has 100 rooms. On any given night, it takes up to 105 reservations, because...
A hotel has 100 rooms. On any given night, it takes up to 105 reservations, because of the possibility of no-shows. Past records indicate that the number of daily reservations is uniformly distributed over the range 96-105. That is, each integer number in this range has a probability of 10%, of showing up. The no-shows are represented by the distribution in the table below. Number of No-Shows Probability 0 15% 1 20% 2 35% 3 15% 4 15% Based on...
Answer the following questions in your post: Do you know anyone who has had their DNA...
Answer the following questions in your post: Do you know anyone who has had their DNA analyzed by 23andMe, Ancestry or another company?    How did they feel about it? explain why you think people are motivated to pay to have their DNA analyzed. After listening to the podcasts, would you be interested in testing your DNA? Why or why not? Explain two distinct criticisms of DTC testing as discussed by the experts in the podcasts.   Pick the ones you think...
A randomly selected sample of 14 students who stayed up all night to study for an...
A randomly selected sample of 14 students who stayed up all night to study for an exam received an average grade of 68% with a standard deviation of 8%. Another randomly selected sample of 12 students who wrote the same exam after a good night’s sleep received an average grade of 75% with a standard deviation of 7%. At a 5% significance level, does the sample provide enough statistical evidence to support a claim that students who stay awake all...
has anyone finished all the parts to the question Programs Plus is a retail firm that...
has anyone finished all the parts to the question Programs Plus is a retail firm that sells computer programs for home and business use. On December 31, 2019, its general ledger contained the accounts and balances shown below: Only finding bits and pieces on here. College accounting Programs Plus is a retail firm that sells computer programs for home and business use. On  December 31, 2019, its general ledger contained the accounts and balances shown below: ACCOUNTS BALANCES Cash $ 15,280...
In 2002, Congress passed the Body Armor Act that made it illegal for anyone who has...
In 2002, Congress passed the Body Armor Act that made it illegal for anyone who has been convicted of a violent felony to possess body armor. Cedrick Alder- man was convicted of violating the statute, and he then challenged the law’s constitutionality during appeal. Alderman contended that Congress had exceeded its authority because the law was not sufficiently related to interstate commerce. CASE QUESTIONS 1. Is the Body Armor Act constitutional? 2. If Alderman purchased the body armor in the...
Anyone who has studied statistics or research has heard the saying "Correlation does not imply causation."...
Anyone who has studied statistics or research has heard the saying "Correlation does not imply causation." What factors must an analyst consider to decide whether the correlation is meaningful enough to investigate further?
While working the night shift in the ER, you see a patient who has sustained a...
While working the night shift in the ER, you see a patient who has sustained a collapsed lung. The patient is struggling to breath. Which muscles would you see the patient using to inhale? a. The accessory muscles for inhalation are the scalenes and abdominal muscles. b. The accessory muscles for inhalation are the internal intercostals, scalenes, and pectoralis minor. c. The accessory muscles for inhalation are the external intercostals, sternocleidomastoid, scalenes, and pectoralis minor. d. The accessory muscles for...
Anyone who has been outdoors on a summer evening has probably heard crickets. Did you know...
Anyone who has been outdoors on a summer evening has probably heard crickets. Did you know that it is possible to use the cricket as a thermometer? Crickets tend to chirp more frequently as temperatures increase. This phenomenon was studied in detail by George W. Pierce, a physics professor at Harvard. In the following data, x is a random variable representing chirps per second and y is a random variable representing temperature (°F). x 20.8 15.7 20.1 18.0 16.7 15.5...
Anyone who has been outdoors on a summer evening has probably heard crickets. Did you know...
Anyone who has been outdoors on a summer evening has probably heard crickets. Did you know that it is possible to use the cricket as a thermometer? Crickets tend to chirp more frequently as temperatures increase. This phenomenon was studied in detail by George W. Pierce, a physics professor at Harvard. In the following data, x is a random variable representing chirps per second and y is a random variable representing temperature (°F). x 20.5 16.0 20.0 17.4 16.5 15.5...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT