Question

In: Computer Science

Convert the logical statement ~(P || ~R) || (Q -> R) to conjunctive normal form. Please...

Convert the logical statement ~(P || ~R) || (Q -> R) to conjunctive normal form. Please explain the steps!!

Solutions

Expert Solution

Conjunctive normal form is equivalent to Product of Sums(POS). It is a conjunction of disjunctive clauses.

Assumption:- || stands for logical OR. (disjunction). ^ stands for logical AND(Conjunction)

General Outline: (Only for propositional logic -- There are additional rules for FOL.)

1. Remove double implication, P <-> Q ≡ (P -> Q) ^ (Q -> P)

2. Remove implication, P->Q ≡ ~P || Q

3. Apply demorgan's laws to get individual literals

4. Check if the result is in CNF. If it is not keep applying distributive law( (P ^ Q) || R ≡ (P || R) ^ (Q || R)) until it comes in CNF form.

Question:

~(P || ~R) || (Q -> R)

Remove the implication(->)

≡ ~(P || ~R) || (~Q || R) [Since, P->Q ≡ ~P || Q, by definition]

Apply demorgan's law to ~(P || ~R).

≡ (~P ^ ~ (~R)) || (~Q || R) [~(P || Q) ≡ (~P ^ ~Q)]

≡ (~P ^ R) || (~Q || R) [~(~P) ≡ P, by involution]

It is not in CNF. So apply distributive law :

≡ (~P || ~Q || R) ^ (R || ~Q || R) [(P ^ Q) || R ≡ (P || R) ^ (Q || R)]

≡ (~P || ~Q || R) ^ (~Q || R) ....(Answer) [Since P || P ≡ P , identity law]

The above result is in CNF with two clauses ~P || ~Q || R and  ~Q || R.


Related Solutions

1.) Suppose that the statement form ((p ∧ ∼ q)∨(p ∧ ∼ r))∧(∼ p ∨ ∼...
1.) Suppose that the statement form ((p ∧ ∼ q)∨(p ∧ ∼ r))∧(∼ p ∨ ∼ s) is true. What can you conclude about the truth values of the variables p, q, r and s? Explain your reasoning 2.Use the Laws of Logical Equivalence (provided in class and in the textbook page 35 of edition 4 and page 49 of edition 5) to show that: ((∼ (p ∨ ∼ q) ∨ (∼ p ∧ ∼ r)) ∧ s) ≡ ((r...
prove or disprove using logical equivalences (a) p ∧ (q → r) ⇐⇒ (p → q)...
prove or disprove using logical equivalences (a) p ∧ (q → r) ⇐⇒ (p → q) → r (b) x ∧ (¬y ↔ z) ⇐⇒ ((x → y) ∨ ¬z) → (x ∧ ¬(y → z)) (c) (x ∨ y ∨ ¬z) ∧ (¬x ∨ y ∨ z) ⇐⇒ ¬y → (x ↔ z)
Show that if P;Q are projections such that R(P) = R(Q) and N(P) = N(Q), then...
Show that if P;Q are projections such that R(P) = R(Q) and N(P) = N(Q), then P = Q.
Prove p → (q ∨ r), q → s, r → s ⊢ p → s
Prove p → (q ∨ r), q → s, r → s ⊢ p → s
Using logical equivalence laws, show that (((p v ~ q) ⊕ p) v ~p) ⊕ (p...
Using logical equivalence laws, show that (((p v ~ q) ⊕ p) v ~p) ⊕ (p v ~q) is equivalent to p v q. v = or, ~ = not, ⊕ = exclusive or (XOR). Please show the steps with the name of the law beside each step, thanks so much!
(4) Determine if the following logical statement is valid. First convert each statement to a symbolic...
(4) Determine if the following logical statement is valid. First convert each statement to a symbolic logic, and then create a truth table. Don’t forget you need to state if the statement is valid or not and state why. Prop A. Steve can exclusively either Study or Sleep. Prop B. If Steve studies, then he’ll Pass his Exam. Conclusion: If Steve Sleeps, then he’ll NOT Pass his Exam.
Convert this into Chomsky normal form, where each rule is in the form: A --> BC...
Convert this into Chomsky normal form, where each rule is in the form: A --> BC or A --> a A --> A + B | B B --> B x C | C C --> (A) | 5
Please explain why and how the following are true. I. p ⇒(q∧r) is equivalent to (p...
Please explain why and how the following are true. I. p ⇒(q∧r) is equivalent to (p ⇒q)∧(p ⇒r) II. Let p(x) and p(x) be defined on an random/arbitrary universe of discourse. Why, in words, is (∀x)[p(x) ∧ q(x)] equivalent to[(∀x)p (x)] ∧ [(∀x)q(x)]
Construct a truth table for the statement [q∨(~r∧p)]→~p. Complete the truth table below by filling in...
Construct a truth table for the statement [q∨(~r∧p)]→~p. Complete the truth table below by filling in the blanks. (T or F) p q r ~r ~r∧p q∨(~r∧p) ~p [q∨(~r∧p)]→~p T T T T T F T F T T F F
FOR EAICH PAIR OF PROPOSITIONS P AND Q STATE WHETHER ON NOT p=q p=(s→(p ∧¬r)) ∧...
FOR EAICH PAIR OF PROPOSITIONS P AND Q STATE WHETHER ON NOT p=q p=(s→(p ∧¬r)) ∧ ((p→(r ∨ q)) ∧ s), Q=p ∨ t
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT