Unit 1 Propositional Logics
Unit 1 Propositional Logics
p even] ...(A) Againlet p= 2m,meZ .-.Q) then (1) and (2) =» 2g? = (2m)? => 24 = 4m? = q? = an? = @° isalso an even integer .B) (A) and (B) > P and q both are even integers. = 2 is common factors between p and q \Which contradict the assumption of p and q to be mutually prime. ‘Therefore the original assumption of y2 tobea rational number is wrong. Hence J is irrational. : e To disprove the result, we nced only find one example called counter ‘example for which the implication is false. Since (—3)? = 3? but (-3) #3 . the result is false.BM} LUSCrEle HIGEREMALCS Ex. 2. Given an indirect proof of the theorem " If 3n + 2 is odd, then nis odd.” Sol. Assume that the conclusion of this implication is false; namely. assume that 7 is even. The n= 2k for some integer k . It follows that 3n + 2 = 3(2k)+2 =6k +2 =2(3k4 1) so 3n + 2 is even (since it isa multiple of 2) and therefore not odd. Because the negation of the conclusion of the implication implies that the hypothesis is false, the original implication ig true. 3 Ex. 3. Give a proof by contradiction of the theorem " If 3n + 2is odd, then nis odd,” Sol. We assume that 31 + 2 is odd and that 7 is not odd, so that 7 is even. Following the same steps as in the earlier solution, we can show that ifn is even, then 3n + 2 is even. This contradicts the assumption that 37 + 2 is odd, completing the proof. Ex. 4. Prove or disprove the statement that if x and y are real numbers, (x? = y?)@ (x=). | Sol. The statement can be restared in the form Vx Vy R(x, y). Thus, to prove this result, we would need to provide steps, cach of which would be true for all x and y. §3.37. Contrapositive method: (p > yg) =(~4q =~ p) This states that an implication is equivalent to its contradiction. Thus to prove p = q indirectly, we assume q is false (the statement ~ q ) and show that p is then false (the statement ~ p). This method of proof is closely related by proof of contradiction. This method consists of three stages : (1) Given a statement q that we wish to prove (2) Assume the opposite, ~ q (3) Deduce a statement p that is known to be false. Ex. 1. Let n be an integer that if n? is odd, then n is odd. Sol. Let p : n? is odd and q: n is odd. We have to prove that p = q istrue. Instead, we prove the contrapositive ~q = ~ P. "Thus suppose that 1 is not odd, so that 7 is even, Then n= 2k, where k is an integer We have n? = (2k)? = 4k? = 2(2k)?, 0 n? is even. We thus show that ifn is even, than n? is even, which is the contrapositive of the given statement. pai = Hence the given statement has been proved. : : Ex, 2. ‘Show that there is no prime number n other than three for which, n+ 1is@ fect square. va Proof. We have to prove the statement mis.a prime => (n +1) is not a perfect square. Son + 1 is perfect square = 7 is not prime Iflet n+1= 0?=(m+1)(m=1) Since n is expressed as the product of number (m + 1) and (m — 1). Itis not prime unless the smaller: number /7— Lis 1. In this case m = 2 and n = 3, n= 3 is the only possibility. §3.38. Proof by Exhausting cases: If Pj; P2>----s Pn be the set of alternate premises of a conclusion g, then we have PLY P2ssVPn OO The tautology [(ar ¥ P2 Yo Pn) 4] @[(r1 9 9) a (Pp 29) A A (Pn > O)] So each of p; + q should be true. Ex. 1. Prove that " If n is an integer not divisible by 3, then n® = \ (mod 3) Sol. Let p : 1 be not divisible by 3 and q: »,2 = 1 (mod 3) Then p = pj V pz where p, =n = 1 (mod3), pp =n = 2 (mod 3) Herewehavetoshowthat p > q. Forthiswehavetoshowthat p; > g and p2 > q. First let p; be true, then 7 = 1 (mod 3). So=n=3k+ 1 for some integer k This? = (3k +1)? = 9k? + 6k +1=3(3k? + 2k) 41 = 3m 41 m= 3k? + 2k isan integer. so pj > q is true. Now let p2 be true, then n = 2 (mod 3) = so n = 3k +2 for some integer k Thus pn? = (3k +2)" =9k? 12k +4 =e 3(3k? 44k +1)+1 => 3m, +1 where m, — 3k? + 4k +1 isan integer 80. Pat @ Since p) > q, pz > qistrue,so P > 7 is also true.1. Examine the following tautologie: ( Hit rains then the crop will be good. It did not rain therefore the crop will not be good, (ii) If it rains then the crops are good and crops were not good, therefore it did not rain, Examine the validity of the following arguments on the basis of truth table : (Q2-5) 2. ‘Either the candidate is not good at studies or paper is out of course. Paper is not out of course, therefore candidate is not good at studies.’ 3. ‘If Anjugets married, I shall present hera saree. Either she got married or Iwas out ofstation, I did not present her a saree, therefore | was out of station." 4. 'Ibring sweets on the birth day of my child. Either it is the birth day of my child oI work in the office for late hours. Today I did not bring sweets for my child, therefore] worked inthe office for late hours." 5. Acompany makes the following declaration for its office clerks. A clerk who passes Hindi examination in first attempt, will be given an advanced increment. Five clerks 4, B, C, D, E appeared in Hindi examination first timeand A, B passed theexamination, The company also gave advanced increments to Cand D togetherwith and B. claims theadvanced increment comparing himself with C and D but the Company refuses. Is the refusal of the Company is justified ? How should the statement be worded so that only A and B will be entitled for advanced increment. [ Hint : The declaration by the company isin the form p => q, therefore valid. Only Aand B gets increment, for that the proposition should be in the form p > q ] 6. Check the validity of following statement : (a) Smoking is healthy, if smoking is healthy then cigarettes are prescribed by physicians, so cigarettes are prescribed by physicans. (b) Iftherewasa ball game, then travalling was difficult, ifthey arrived ontime, then; travelling was not difficult, They arrived on time, therefore, there was no ball game. 7. Find the DNF of following : (@) p> [(p 3 9)a~(~ pv ~P)] 0) ~[p > (gar)] 8. Find the CNF of following : @) (py ~49)>(~ Par) ) (av (par))a~((pyr)ag) 9. Find the PDNF of following : @ aa(py~a) ) p> (PA(q> P)) 10, Findthe PCNF of following: @ (~p>r)ae pP) ) (9 P)A(~ Pa) Exercise pine 1. (a) False (6) True a / 2. Valid. 3. Valid. 4, Valid: 5. Valid. 7 @ (pa~ay(pagy(prn~q) ) (pA~a)y(pa~r) 8. (a) (pva)a(py~a)a(ay P) () (pv~paag)a(~qan~ryn") 9. (@) (pag) () (pag) (~ paayy(pa~a)v(~ Pra) ) (py g)al~ pv a) A(Py~aa~ (Pv ~4 a) 10.(a) (PAqAT)