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!
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
Find a prenex normal form for the following wff. ∃x p(x) ∧ ∃x q(x) → ∃x...
Find a prenex normal form for the following wff. ∃x p(x) ∧ ∃x q(x) → ∃x (p(x) ∨ q(x))
Suppose S = {p, q, r, s, t, u} and A = {p, q, s, t}...
Suppose S = {p, q, r, s, t, u} and A = {p, q, s, t} and B = {r, s, t, u} are events. x p q r s t u p(x) 0.15 0.25 0.2 0.15 0.1 (a) Determine what must be p(s). (b) Find p(A), p(B) and p(A∩B). (c) Determine whether A and B are independent. Explain. (d) Arer A and B mutually exclusive? Explain. (e) Does this table represent a probability istribution of any random variable? Explain.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT