Question

In: Computer Science

Do the following proofs deductively. Justify each step in your proof with a law or inference...

Do the following proofs deductively. Justify each step in your proof with a law or inference rule.

a) If P ⇒ Q, ¬R ⇒¬Q, and P then prove R.

b) If P ⇒ (Q ∧ R) and ¬R ∧ Q then prove ¬P.

Solutions

Expert Solution

a) (P Q) ( ¬R ¬Q) P

(¬P V Q) ( ¬(¬R) V ¬Q) P  { Law of Implies (AB) = ¬AVB }

(¬P V Q) ( R V ¬Q) P { By Demorgan's law ¬( ¬A) = A }

.(¬P V Q) ( ¬Q V R) P { Commutative law A V B = B V A }

.¬P V (Q ¬Q) V R P { Associative law (A V B) V C  = A V ( B V C ) }

.¬P V (F) V R P  { We know that A   ¬A = F }

.¬P V P (F) V R { Commutative law A V B = B V A }

​​​​​​​.(¬P V P) (F) V R  { Associative law (A V B) V C  = A V ( B V C ) }

​​​​​​​​​​​​​​.(T) (F) V R { We know that A V ¬A = T }

​​​​​​​​​​​​​​.(T F) V R

​​​​​​​​​​​​​​.( F) V R { We know that T F = F }

R  { We know that F V A = A }

Hence Proved

b) P (Q R) (¬R ∧ Q)

P Q (R ¬R) ∧ Q  { Associative law (A V B) V C  = A V ( B V C ) }

P Q (F) ​​​​​​​Q { We know that A   ¬A = F }

P Q Q (F)   { Commutative law A V B = B V A }

P ( Q​​​​​​​ Q ) (F)

P ( Q​​​​​​​) (F)  { We know that A A = A }

¬P V ( Q​​​​​​​) (F)   { Law of Implies (AB) = ¬AVB }

¬P V ( Q​​​​​​​ F)  

¬P V ( F)  { We know that A F = F }

(¬P V F)

¬P   { We know that F V ¬A = ¬A }

​​​​​​​Hence Proved


Related Solutions

Prove the following equivalences without using truth tables, and specify at each step of your proof...
Prove the following equivalences without using truth tables, and specify at each step of your proof the equivalence law you are using. (a) ¬ (p ∨ (¬ p ∧ q)) ≡ ¬ p ∧ ¬ q (b) ( x → y) ∧ ( x → z) ≡ x → ( y ∧ z) (c) (q → (p → r)) ≡ (p → (q → r)) (d) ( Q → P) ∧ ( ¬Q → P) ≡ P
Prove that the following two statements are not logically equivalent. In your proof, completely justify your...
Prove that the following two statements are not logically equivalent. In your proof, completely justify your answer. (a) A real number is less than 1 only if its reciprocal is greater than 1. (b) Having a reciprocal greater than 1 is a sufficient condition for a real number to be less than 1. Proof: #2. Prove that the following is a valid argument:          All real numbers have nonnegative squares. The number i has a negative square. Therefore, the...
Exercise 2.4.1: Proofs by contradiction. About Give a proof for each statement. (c)The average of three...
Exercise 2.4.1: Proofs by contradiction. About Give a proof for each statement. (c)The average of three real numbers is greater than or equal to at least one of the numbers. (e)There is no smallest integer.
NATURAL DEDUCTION Construct a proof that reveals the validity of the following inference. Make sure that...
NATURAL DEDUCTION Construct a proof that reveals the validity of the following inference. Make sure that you symbolize it first. Tom was involved in the fight at the party Friday and stole money from Monica’s purse later that same night. The parole officer had told me that if he was involved in the fight then he’d have to go back to the rehab clinic and the social worker told me that if he stole the money then control over his...
Determine if the statement below is True or False. Justify your answer by giving a proof...
Determine if the statement below is True or False. Justify your answer by giving a proof or counterexample. Let A,B,C∈Mn×n(R) . Suppose C is invertible and C=AB. Then the columns of A, B and C are each bases for Rn and B is the change of basis matrix from the columns of C to the columns of A.
For each of the following statements, determine whether it is true or false and justify your...
For each of the following statements, determine whether it is true or false and justify your answer. a. Every function f : [0, 1] ~ lR has a maximum. b. Every continuous function f :[a, b] ~ lR has a minimum. c. Every continuous function f : (0, 1) ~ lR has a maximum. d. Every continuous function f : (0, 1) ~ lR has a bounded image. e. If the image of the continuous function f: (0, 1) ~...
For each of the following statements, determine whether it is true or false and justify your...
For each of the following statements, determine whether it is true or false and justify your answer. a. If the function f + g: IR --> IR is continuous, then the functions f :IR --> IR and g :IR --> IR also are continuous. b. If the function f^2 : IR --> R is continuous, then so is the function f :R --> IR. c. If the functions f + g: IR and g: IR --> IR are continuous, then...
Choose the member with the higher entropy in each of the following pairs, and justify your...
Choose the member with the higher entropy in each of the following pairs, and justify your choice. (Assume constant temperature, except in problem e). Show work for each please. a) 1 mol of SO2(g) or 1 mol of SO3(g) b) 1 mol of CO2(s) or 1 mol of CO2(g) c) 3 mol of O¬2(g) or 2 mol of O3(g) d) 1 mol of KBr(s) or 1 mol of KBr(aq) e) Seawater at 2oC or at 23oC f) 1 mol of...
Derive the equation P = pgh Justify each step with explanations and comment on the physical...
Derive the equation P = pgh Justify each step with explanations and comment on the physical meaning of your result.
4. Which chemical bond is involved in each of the following? Explain your answer. Justify each...
4. Which chemical bond is involved in each of the following? Explain your answer. Justify each answer with a reason.                                                                                                            [] a. Copper b. Salt (Nacl). c. Plastic cup. * Please answer in clear and readable writing or by typing. The solution is with all the right steps.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT