Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
91 views
28 pages
Propositional Logic
Uploaded by
sangiwenmoyo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Propositional Logic For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
91 views
28 pages
Propositional Logic
Uploaded by
sangiwenmoyo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Propositional Logic For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Propositional Logic For Later
You are on page 1
/ 28
Search
Fullscreen
Propositional Logic Syllabus Definition, Statements & Notatio, Tables, Well-formed Formulas, Implications, Examples ”, Truth Values, Tautologies, Ene Statement Formulas & Truth lence of Formulas, Duality Law, Tautological Contents 4.1 Logic 42. Statements (or Propositions) 43° Open Statement 44. Truth Value of a Statement 45 Truth Table 4.6 Logical Connectives 47 Tautology 48 Contradiction 49 Precedence Rule 4.10 Logical Equivalence 4.11 Normal Forms a9Proposition) Discrete ae te ma Logic (or oi is analysis of language, which consists of sig Lo axioms) which we can use to draw valid conclusions: my Statements (or Propositions) Statements are kinds of sentences which we have to use to convey our thoughts b others. A sentence is a statement or proposition if it is possible to say whether wha conveyed by the sentence is true or false. gic is a set of rules pon, 4 Sentence of which itis meaningful, 0 58, whether it is, tue or false batty ‘oth is called a statement or proposition We denote statements by letters p, q, 1) §- Examples 1. Pune is capital of India 2. Mars is a planet. 3.9 > 13. 4y+8=12 5. 6 € (1, 2, 3, 4} 6xEA. 7. There are 12 months in a year. Examples (2: and (7) are true statements. Examples‘1', 3°, ©) are false statements. In example 4), if we write 4 in place of y, it becomes a true sentence and if y is not 4 then it is a false sentence. Similarly in \6) we cannot say whether this sentence is true or not unless we are told what are the elements of A. Thus only those sentences are statements about which we can say whether these are true or false. Definition A statement is a declarative sentence with a definite truth value. Hence (1), ‘2 ®, @ are statements. > is not a statement since its truth value depends on the value of y- If y is 4 the sentence is true, if y # 4 then the sentence is false. ‘Also@) is not a statement since its truth value depends on set A, if A = fx ¥ 4 then © is true but if A = (1, 2, 3, 4} then ©6/is false. TECHNICAL PUBLICATIONS” - An up thrust for knowledgeje Mathematics te ae = Propositional Logic Open Statement xample @ above if w ee Ine ie ug ae oun ue nt = 4, it becomes a true statement, if we take value of yates atements are open statements. Thus if a mathematical sntence is neither true nor false it is called open senten 4 ce. pefinition ‘An open statement is a sentence that contains one or more variables such that when qntain values are substituted for the variables, we get statements examples 1xt7=9 23x+2>8 3.xeA GO Truth Value of a Statement Statement has a definite truth value which is either true or false. True values are denoted by (I) and false values are denoted by (F). EI Truth Table ‘A table giving all possible truth values of a statement is called truth table. |Exercise 4.1 | 1. Which of the following statements are true and which are false ? a9<22 ») 2 is a prime number. ) 41 is a composite number. @2+5=34+9 What type of the sentence is x+8=17? For what value of x following sentences till become true statements ? a)3x+9=15 b)xt+6=8 ox+1>5 djx+2<8 ¢) Sx 25 ff) 5x $25 Which of the following open statemen| a)x+4=6 whenx=2 c)x+5#8 whenx=3 ) 3x + Sy = 11 when x = 0, = ee TECHNICAL PUBLICATIONS? An up tus for knowledge its are true ? p) x +44 6when x =2 d) 2x + 4y = 14 when x= 1 y=3 y22 Se lt 2, x) when x =5foe ele aioe cian iaince oak by an example. ®) Statement “ b) True c) False_d) False 2 b)x=2 x25 Dx<6orx<5 x25 fx<5 a) True b) False c) False 4) True ¢) False f) True. na Logical Connectives Every statement must be If 3 two or more stat fements, they can be combined to produce a These statements are called compound statements. To combine statements we use following symbols. ag Conjunction (‘' or ‘and') Tf p and q are statements, Conjunction q' or 'p meet q- '\’ denotes ‘and’ and is known as conjunction, Examples either true or false but not both. NeW’ stay the compound statement 'p q' is 'p and q' and s 1. Let us consider P : Shalaka is in senior KG. q : Shalaka likes drawing, then p A q is the ‘statement Shalaka is in senior KG, and likes drawing, Definitionnematics i _ agate Methorne 4-5 Propositional Logic pi3>2 q:9 is an odd number, then p 4 q is the statement 3 >2and 9 is an odd number, p: 28 is divisible by 5. q : Shalaka likes swimming, then p 4 q is the statement 25 is divisible by 5 and Shalaka likes swimming, Remark i, If there is no connection between two statements still we can combine them in logic. ii, ‘But’ and 'while’ are treated as equivalent words to ‘and’. iii, Conjunction is a binary connective as in conjunction we need atleast two statements to combine.] 1. If p is true and q is true then p q means the resulting statement is true. 2, If p is false and q is false then p » q is false. 3, If pis false and q is true then p a q is false. 4. If p is true and q is false then p A q is false. Truth table for p aq P\qis true only when both are true otherwise false. ty Disjunction ('v’ or ‘or') When two or more statements are combined by the word ‘or’, the compound Statement ig aa dines The symbol 'p v q' is read as 'p or q! or 'p disjunction q' or 'p join q). TECHNICAL PUBLICATIONS? - An up thrust for knowiedge4-6 Discrete Mathematics Examples Let us consider the statements 1. P: I will purchase a dress 4: Lwill purchase a book, then p v q is the statement he T will purchase a dress or I will purchase 2. P : a is equal to 5. 4: b is equal to 7, then p v q is the statement a is equal to 5 or b is equal to 7. 1. If pis true and q is true, then p v q is true. 2. If p is true and q is false, then p v q is true. 3. If p is false and q is true, then p v q is true. 4. If p is false and q is false, then p v q is false. Truth table for p vq Remark - Fen teas citer & tue or gis tue or both p and q aw Ee is false if both p and q are false, a fi, Disjunction is a binary connective. 4H The exclusive disjunction of exclusive ‘OR Propositi 2 Satenent Either piste or qs true but boing Pee Bg AP ba ta ne uaa ) SEHsete Mathematics 4-7 Propositional Logic jv,Inclusive disjunction or inclusive ‘OR’ of two propositions p and q is the statement. ‘Either p is true or q is true or both true: ie. pyYyq@ truth table for p®q [exclusive ‘OR'] aa ee ee a j | P L q Pea | | ee ane F [2 ube = =| nce eg ee example for exclusive ‘OR’ | shall go for walk or I shall watch TV. Here the connective ‘or’ is used in exclusive sense. ie, Either one or the other is possible at a time but both are not possible. [EGEI Negation (~) Let p be any statement then negation of p is denoted by '~p' (or ) is read as ‘not p'. Ifp is true then ~ p is false. If p is false then ~ p is true. Truth table ~ p is a unary connective as only one statement is required to form negation. Examples 1. If p is the statement ‘Ram is intelligent boy’, then ~ p is the statement. ‘Ram is not intelligent boy.’ or It is not the case that Ram is intelligent boy.’ 2. If p is the statement 'I like to read’, then ~ p is the statement. ‘T don't like to read’ or It is not the case that I like to read. TECHNICAL PUBLICATIONS” An up thrust for knowledgeDiscrete Mathematics EEA conditional connectives (if - _Consider the proposition ‘If Akash ge will get admission for engineering course: s in 12" examinati ts 90 % or more ™ then i, We can write this statement as ‘If p then q' P : Akash gets 90 % or more in 12'" examination. q : Akash will get admission for engineering course. This is an example of implication of q by P- Definition Let p and q be two propositions, then the statement ‘if p then q' is denoted by p — q (p implies q) or 'p is sufficient for q' or 'p only if or 'q if p' or 'q is necessary for p’. P is known as hypothesis or antecedent and q is known as conclusion or consequent, A statement or Proposition of the form p > 4 is called a conditional statement or conditional proposition. Example ‘If a is in §, then a is in € (complex number) the hypothesis is a € R and the conclusion is ae €. This can be expressed as ae R > ac 1) If p is true, q is true then P qis true. 2) If p is true, q is false then Pp q is false. 3) If p is false, q is true then P— qis true. 4) If p is false, q is false then P— qis true. Truth table for p > qpscrete Mathematios 4-9 Propositional Logic ae 5 SS -———++—_+ I F T See eae % Seem ee | Examples for conditional connectives 1. p: The function is differentiable. q: The function is continuous. If p then q ie pq or p is sufficient for q. 2. p: Weather is good. q: Match will take place. If weather is good then the match will take place. p>q 3. p: (E+) isa field. q: (, +,>) is an integral domain. 1: (R, +,) is a ring. Opa Every field is an integral domain. (i) por Every field is a ring. (i) q>r Every integral domain is a ring. Remark If p, then q qifp P only if q, P is sufficient for q q is necessary for p are all equivalent to the statement. Pq. a TECHNICAL PUBLICATIONS®- Anup thst or IowiedgeProposit Discrete Mathematics 4240 St Lope Remark 1. Converse of p > q is q > p. 2. Inverse of p > q is ~ p> ~ 4. i valence) EXE Biconditional (or Double Implication or Equiv ) " ‘ alled bi i If p and q are two propositions, then 'p > q' and 'q > P 1S & conditional 9, double implication. It is written as etal and it is known as 'p if and only if q’ : ae ‘if and only if is shortened as ‘iff’. © is also known as ‘implies and is implied’, We also say 'p is necessary and sufficient for q’. P © q is true when truth values of p and q are same, ie. either both true or both false and false otherwise. Truth table for po q Betas) a oP PQS @>9AG>p) Ze Biss F F T Example Ina triangle ABC, p:2C=90° q: (AC)? +(BC)? = (AB)? If p then q peak od aD [By Pythagoras theorem] Also if q then p ieq>p ~ @) [lf (AC)? +(BC)? =(AB)2 then ZC = 904) From equations (1) and (2),Propositional Logic piscrete Mathematics [EI Contrapositive of an Implication The implication ~ q — ~ p is called the contrapositive of the implication p > q- ie. implication p — q and ~ q - ~ p are the contrapositive of each other. Example i) If ina triangle ABC, 2 A = 90° then (AB)? +(AC)? =(BC)?. ii) If in a triangle ABC, (AB)? +(AC)? # (BC)? then 2 A 490°, ‘Above two implications are the contrapositive of each other. 1) If p is true, q is true then p — q is true and ~ q is false, ~ p is false but ~ q> ~ pis true. 2) If p is true and q is false then p — q is false, ~ q is true and ~ p is false but ~q—> ~ pis false. 3) If p is false, q is true, then p + q is true, ~ q is false, ~ p is true but ~ q> ~ pis true. 4) If p is false, q is false, then p — q is true, ~ q is true, ~ p is true and ~ q— ~ pis true. The following table gives the truth value of the implications p > q and ~ q > ~ p. Truth table for p > q and ~q >~p IED ers ting There are many clouds i)4-2 y clouds in the SKY- : i) p: There are many q: It rain. PA~q ii) p: I will get first class. q: I study well. 1: Score above 80 in mathematics. “~ P&(qan iii) p : Computers are cheap. q : Softwares are costly. “pag iv) p : It is very hot. q: It is very humid. 1: Ramesh is having heart problem. “ @PAQyvr v) p : In small restaurant food is good. q : Service is poor. “Pad vi) p :I finish my submission before 5.00 pm. q : It is very hot. r: I will go. s : I will play a game of hockey. “ (pa~q) > (ras) TECINCAL PURLCATION® Ano at browscrote Mathematics ; 2 Propositional Logic solution: i) PAq ii) (PAA > p) iii) pO~q iv) (~PA~Q>~r v)~pa~qa~r. GERD err te ont, cn converse, ini conditional statement given below : werse and negation forms of the ‘if x is rational, then x is real,’ Solution: Let p : x is rational, q: x is real. Symbolic form : p > q Contrapositive : (~ q > ~ p) If x is not real, then x is not rational. Converse : (q > p) If x is real then x is rational. Inverse : (~ p > ~ q) If x is not rational, then x is not real. Negation : ~ (p — q) = 609) “eae sap (EERE) press the conirapostive, . if3
t Contrapositive : (~ r > ~ (p49) ie. ~r—+(~pv~q) ie. if sin % 5 then 326 or 14142 = TECHNICAL PUBLICATIONS” - An up thrust for knowledgePro a a Converse : r > (p aq) ie. if sin $= then 3
~1 he. (~pv~q)o-r ie. if 32bor1+1+#2 then sin | | Exercise 4.2 ed, wv » IF ‘p’ stands for the statement ‘I read book’ and ‘g’ stands for 'T go for swimming’, trang the following in words aprq »pva o~pvq a pa(~q If ‘p’ stands for the statement ‘Ramesh is a player’ and ‘q” stands for ‘Mohan is q strong boy’, translate the following in words : apaq D~paq pag) d)~paq D-pad fl-~peq pr>~q If ‘p’ stands for ‘I run fast’ and ‘q’ stands for ‘I shall win’, express the following symbolically : 2) I do not run fast. 5) If I run fast, I shall win. ©) L run fast or I shall not win. 4) I run fast and 1 shall win. ¢) I neither run fast nor I shall win. f) I shall win if and only if I run fast. Jf p stands for ‘it is cold’ and q stands for ‘it is raining’ translate the following into symbols : 4) It is cold or it is raining. b) It is cold and it is raining. ©) It is cold but it is not raining. 4) It is not cold but it is raining. 0) If it is not cold then it is not raining. fi Sufficient condition for rain is that itis cold, ) A necessary condition for raining is that it be cold Wy A necessary and sufficient condition for raining is that it be cold. TECHNICAL PUBLCATONS. Anup mt er inounagepisorote Mathematics 4-15 Propositional Logic ‘Answers 1. a) [read book and I go for swimming, b) I read book or I go for swimming, ¢) Either I do not read book or I go for swimming. d) I read book and I do not go for swimming. 2, a) Ramesh is a player and Mohan is a strong boy. b) Ramesh is not a player and Mohan is a strong boy. c) Ramesh is a player and Mohan is not a strong boy. d) Neither Ramesh is a player nor Mohan is a strong boy. e) This is not the case that Ramesh is a player and Mohan is a strong boy. £) Ramesh is not a player if and only if Mohan is a strong boy. g) If Ramesh is a player then Mohan is not a strong boy. 3 2)-P Ppaed pv (~q) dpaq e)~pa-q Nqop 4 apvq Doct ) pa(~q) d) (~p)aq e)~p>-~q fq>p s)P>4 Bybee Tautology A tautology is a proposition which is true for all truth values of its sub-propositions. In other words a proposition is a tautology if it is always true for all assignments of truth values. EE] contradiction A proposition is a contradiction if it is always false for all assignments of truth values. Remark : A proposition which is neither a tautology nor a contradiction is called a contingency. corsa enenean nN [ecole 45 Ea ine a teitaleey TECHNICAL PUBLICATIONS? An up tus for knowledgeDiscrete Mathematics Solution ; Since in p > p all the truth values are true (7), ERRORS Show that p v (~ p) is a tautology. hence p — P is a tautology. Solution : Since in p v (~ p), all the truth values are true (T), hence p v (~ p) Sh tat p's) a lpg a Solution : Hence ~ (p (~ p)) is a tautology. Remark : p » (~ p) is a contradiction as all the truth values are false (F). Tes istey - oe Hence (p > q) © (~ p) vq is a tautology. TECHNICAL PUBLICATIONS. Anup tua er nowoage peepiserete Mathematics ee scnatteee! Construct truth table for (question 1 to question 5) to find if each of the following is a tautology, contradiction or contingency. 1 PG) (+9 > 7), Solution : Consider the truth table, r ®59 &>9 G59 P>q@>m Poqg>—>9 PIG>D> @>9>e> mon bso laos Bileeliat a lerlelenta | mimo In the last column all truth values are (T), hence (p> >») > (P > 9) > (P > 2) is a tautology. 2)((pvqa~P)>4 Solution: Consider the truth table. Hence ((pvq) ~ p) > q is a tautology. 3) (P99 AG>01 (P>) Solution: Consider the truth table. TECHNICAL PUBLICATIONS? - An up thrust for knowledgeHence [(p — q) a (q 1)] + (p> 1) is a tautology: 4) (PAg A~(pvag Solution ; Consider the truth table. See Hence (pq) ~ (pv q) is a contradiction. 5) (p> 9) o(qv~p) Solution : Consider the truth table. E v-p (po@d—> @v~p) (©3964) i P q P p74 4 aver) 559) Wee 2 F F oe T Hence (p— q) © (qv ~ p) is a tautology. CEERI vi te position =) i te. Solution : Prise ces a Pag ~@aq@ eet z stew ion 2 eae pear a ett inte Sole aE, = F F E Hence pv ~ (pq) is a tautology. TECHNICAL PUBLICATIONS. An up trust or imowledgeDiscrete Mathematics a: Soild, Propositional Logic (EB) Precedence Rule ee ee ty Operations on numbers, we realize the importance of BODMAS ce ane Se a on ues calculating the value of an arithmetic expression, we lue of the Bracketed part thé Prats Be dition and subteatieaeie ame cee ek apply of, division, multiplication, Similarly while calculating the truth value of compound propositions involving more than one connective, we have a similar convention which tell us which connective to apply first. Suppose we did not have an order of preference and want to find the truth of ~ pv q- Some may ‘consider the value of (~p)v q and some may consider ~(pvq). The truth values can be different in these cases. For example : If p and q are both true, then (~ p) vq is true but ~ (pv q) is false. So, for the purpose of unambiguity, we agree to such an order or rule. The rule of precedence : The order of preference in which the connectives are applied in a formula of propositions that has no brackets is i)~ ii) A iii) v and ® iv) > and & Remark : 1. 'v includes ‘exclusive or’ and ‘inclusive or’ both. 2. 'v' and '@' which are both third in order of preference. If both these appear in a statement, we first apply the leftmost one. The same applies to the > and «>. no Logical Equivalence In mathematics, as in ordinary language, there can be several ways of saying the same thing. Definition Two propositions A and B are logically equioalent if and only if they have the same truth value for every choice of truth values of simple propositions involved in them. We denote this fact by A = B. In other words two propositions A and B are logically equivalent if and only if Ae Bis a tautology. TECHNICAL PUBLICATIONS? - An up thrust fr knowdge'Y equivalent using truth tables Prove that (p vq) \~ p =~ PA: Solution : Consider the truth table. P q ~P Pea Sa! eT T F E aad F F Bs F T T T F F T F I From the table, truth values of (p vq) ~ p and ~ p Aq are same for each choice of P and q. Hence (p v q) 4 ~ p is equivalent to ~ p 0 q- ie. (PVqa~p = ~paq Prove that @9G>n)=(P>99047) Solution : Consider truth table. por pa) ~ >a 559 saa ee F F me er E T as | PPRrees ere | T ie een a T T T In last two columns, truth values are same for each choice of truth values of p,q and r hence P>@>*) = (P>q>(P>n) or (P>(q>»)) = (Pq) > (pn) Duality Law Two formulas A and AY are said to be the duals of each other if either one can be obtained from the other by replacing 's’ by \V and 'V’ by ‘s. The connectives ‘a’ and V are also called dual of each other. TECHNICAL PUBLCATONS. An pat owmpepiscrete Mathematics 4-21 Propositional Logic Logical identities 4, DeMorgan's laws i) ~(pvq@ = (~pa~q) ii) ~(PAq) = (~pv~q) [Dual of (i)] 2, Associative laws i) pv(avt) § (pvqyvr ii) PA(AD) = (PAQ)ar {Dual of (i)] 3. Commutative laws i) PYq * qvp ii) PAG = qAp [Dual of (i)] 4, Idempotent laws i) PVP =p ii) PAP =P [Dual of ()] 5, Double negation = CP) ae 6, Distributive laws i) py(qax) = (pyg)a (Pv2) ii) pA(qvr) = (pag (par) [Dual of ()] 7. Absorption laws i) Pv(PAq) = P i) patpv@) =P Deal of Logically equivalent TECHNICAL PUBLICATIONS” - An up thrust for knowledgeProposition 4-22 oboe Solution: i) ~ (pvq) = ~pa-4a Consider the truth table. eae ~(pv@ Paw From the table, truth values of ~ (pv q) and ~ p’~ q are same for each choice of p and q. Hence ~(pvq) =~pa~q a) ~(PAq) = ~py~q Consider the table. q Ss el pad ~(PA@ —~Pvaq F a T a From the table, truth values of ~ (pq) and (~ pv ~ q) are same for each choice of p and q. Hence ~(paq) = (~pv~q) Example 4.14 Ee ace Solution :. i) pv(paq) =p TECHNICAL PUBLICATIONS. An ptt or konote Mathomatics om 4-23 Propositional Logic Dis p. a PAq 4g T T rr F F b FE ala Rane F ac ae ee From the table, in last two columns, trut » truth val each choice of p and q. Hence values of pv(paq) and p are same for Pv(PAq) = p ii) pa(pva) =p Consider the table. mains From the table, last two columns are identical, hence PA(pvg) = P Note : Proofs of remaining identities are left as an exercise to the students. CEE es - Solution: Consider the table. P Te — are Es - as ee ee : T Sea eA: F tie eee he Hence ~ pv q and pq are logically equivalent. TECHNICAL PUBLICATIONS? - An up thrust for knowledgeDiscrete Mathematics “4 ——s = pg B® logically equivalent to (p>dAG —p) also (p> 9) Aq 5) @ logically equivalent to (~ pv q) a(~ 4 P) Solution : Consider the table. Po 9 ~P ~a pq q rp Po@aca>p) Pod ~PYd “IVP CPvq, Cavp tl afetr| ot T ig) ae T oF al T F T F 3 y E e Fetalet | Fe | rato F Li [Fler oa T T T T a a T From the table, t_t_______ Pq = (~pvq)a(-qvp)=(p> dA P) Normal Forms In logic, with the help of truth table we can compare if two statements are equivalent. But when more statements or propositions are involved, then this method is not practical. [As if n propositions are involved, its truth values will be 2" ] Hence, it is necessary to apply another method. One method is to transform Sj andS3 to some standard form Sj and $5. Such that a simple comparison of Sj and $3 should establish whether Si = S}. The standard forms are called normal forms or canonical forms. Disjunctive Normal Form [dnf] Disjunctive normal form is a disjunction (V) of fundamental conjunctions (a) . Now fundamental conjunctions (1) are conjunction of simple statements [i.e. joining two statements by 'a]. fe. Pr, PAG ~PAG ~PA~q, PA~p, qa~q, pa~q, ~ p are fundamental conjunctions. Hence disjunction of fundamental conjunctions are joining fundamental conjunction by 'v. TECHNICAL PUBLICATIONS. Anup ato SNe eee seathematics p pero ath 4-25 Propositional Logic examples 1) (PADYPYGA~P) 2) (PAGADY(PAQ’AT) VP’ Agar) 3) (p'AGAN)V(pAQ) 4) (pagv) 5) (pag v (tag) v(~ rap) Remark qa~ 4 PA~P are always false. Hence if a fundamental conjunction contains at least one pair of (p and ~ p) or (q 4 ~ q) etc., it will be false. Example 1. Obtain the dnf of the form pap) = pa(~ pvq) [as p>q = ~pval = (pPA~p)v (Pag) [Using distributive law] = Fv(paq) =(paq) dnf Conjunctive Normal Form (cnf) Conjunctive normal form is a conjunction (A) of fundamental disjunctions (v). Now fundamental disjunctions (v) are disjunction of simple statements. [ie. joining two statements by 'v] Example PYq, PY~q,~PVq ~PY~ 4, ~ P, ~ % P, q ete. are fundamental disjunctions. "Hence conjunction of fundamental disjunctions are joining fundamental disjunction by'a. Examples 1 (pvg)a (qvi)a (~ py~n) 2. pa(~qv~r) 3.(pvqv~1)a (pvg)a (- pvav~) TECHNICAL PUBLICATIONS" - An up thrust for knowledge4-26 Discrete Mathematics eae Truth Table Method to Find dnf ” Pi, P2” Let p be a proposition containing " variables P1 To find its dnf from the truth table. Step 1 : Consider the true values (T) from P. Step 2 : Form the conjunction ('4') (Pi Apa A ws Pi A ARK A oA Pav where if p; is true consider p; and if py is false consider ~ Px such a term is called minterm. Step 3 : The disjunction of minterms is the anf of the given form. Conjunctive normal forms and disjunctive normal forms (cnf and dnf) Obtain conjunctive normal form of D(-prnaer” i) (PADVH PAGAN, Solution : i) (~ p> )a(P7 = (~(-p)vaaPvd = (py@a(- pv) cnt ii) (pag (pagan = (pve pagans v= PAGAD) . (py~p) apy aawvn)a(ay-PAav dala) = Tapa apy) Aav-P)A@AaYD) = (pyv@atpynaqy~p)a@atays) one (QEEEIERED Fit conjunctive normal form and disjunctive normal form for the without using truth table. (p>gag>P) Solution: (pq) (a>P) = (~pyq@a(-qvp) nf ©) Pires Pky oe Propositiongy lows Pn- [As p> q = ~pvq] [As ~ = p=pl [Using left distributive law] = ((~p)a(-avp))v(qa(~qvp)) [Using distributive law] = (~pa~d)v(~Parp)v(qa~a)v(qap) = (~pa~q)VFVFv(qap) = (~pa~q)v(qnp) dn TECHNICAL PUBLICATIONS’ - An up thrust for knowledgepiscrote Mathematics 4-27 Propositional Logic Obtain disjunctive normal form of )DPIDAC PAg) i) PAP >) 4 Solution: i) (Pp q)A (~ pag) = C PY A png) (p> = ~pval = (PA pag)viqa~ pag) [Using distributive law] =(GPA~p)agviqaqn~p) [By associative and commutative laws] = (~ paq)v(qa~ p) anf [By idempotent law] i) (pap) > 4 = (PAC pyg)3q [p> qs ~pval (PA pyg))vq = ~pv(-(~pvq)vq = ~pv(pa~q)vq dnt Obtain the conjunctive normal form ay of the following : dp AG >9) ii) ~(pvg)eo(pagq) Solution: i) pa (p> q) = pa(- pvq) enf i) ~(pvq) @ (PA) = (pvav@aglal-(prgv~(pvg) [Po q=(- pyvga qvp)] = [pva vagal py~ av(~pr~q)] = [pvavp)A@vav Al py~ qv ~ p)a(- pv~qv~@)] = (PYQaA(py@a(- py~ DA PY~ 9) = (py (~pv~q) ent — IP aQvn)>~P — (~3)>9> 4 Solution: Using truth table method, find dnf, which is logically equivalent a given form. TEGHMIGAL PUBLIGATIONS?- Anup tus for howeDiscrete Mathematics “ = eau poy? Pe@vns. 4 r - > T D T F T - ay a T F F a 7 eceesir) r | ate TF oa F 2B T T T T F F T ofr T T F pan, F_ T on | ot EF [sci et Lt Consider only (I) from last column and choose corresponding ye a from p,q, eg. for marked row (9), corresponding p is true, q and r are false, 80 consider (PAQ’Ar) oF (PA~qa~D). Similarly for other (T) values choose truth values from column of P, qt. Choose p ig P is true otherwise p’ or ~ p if p is false. Hence the logically equivalent form of (POqvn)>~pP = (Pag aryV(p AgANYPAGATIV PAD AD) v(p'ag’ar) sane «2 (GAT) A= p9(~ pa~n)) by truth table method. — oe Solution r~po(~pr~vd (p> qan) ACP P 4 © -Pp~r qarpoqar~P bala |e fo | | alm la alalalal Hence the logically equivalent form is (PAGAN AgAr)V(p'Ag’ ar’) TECHNICAL PUBLICATIONS. Anup hat or
You might also like
DM> Unit 1 Text Book PDF
PDF
No ratings yet
DM> Unit 1 Text Book PDF
53 pages
Engineering Mathematics - III Module 3-1
PDF
100% (1)
Engineering Mathematics - III Module 3-1
60 pages
MATH 10 Logic and Reasoning
PDF
100% (2)
MATH 10 Logic and Reasoning
36 pages
Discrete Mathematics
PDF
100% (1)
Discrete Mathematics
210 pages
Propositions and Connectives - Lesson 1
PDF
No ratings yet
Propositions and Connectives - Lesson 1
6 pages
Discrete Mathematics Notes
PDF
No ratings yet
Discrete Mathematics Notes
14 pages
Math PDNF Normal Forms
PDF
No ratings yet
Math PDNF Normal Forms
407 pages
Chapter 2 - Propositional Logic & Hardware
PDF
No ratings yet
Chapter 2 - Propositional Logic & Hardware
35 pages
Chapter 1 p.1
PDF
No ratings yet
Chapter 1 p.1
58 pages
Softwareengineerng (Discrete2024 2025) MJ
PDF
No ratings yet
Softwareengineerng (Discrete2024 2025) MJ
354 pages
DBM20083 Mathematic Discrete - Notes LW1
PDF
No ratings yet
DBM20083 Mathematic Discrete - Notes LW1
32 pages
NEW Lesson 4.1 Introduction To Logic
PDF
No ratings yet
NEW Lesson 4.1 Introduction To Logic
123 pages
Chapter 1
PDF
No ratings yet
Chapter 1
85 pages
Logic and Propositional Logic
PDF
No ratings yet
Logic and Propositional Logic
66 pages
Propositional Logic
PDF
No ratings yet
Propositional Logic
28 pages
2nd Sem L1
PDF
No ratings yet
2nd Sem L1
40 pages
18CS36 DMS Module 1 Notes PDF
PDF
92% (13)
18CS36 DMS Module 1 Notes PDF
63 pages
Discrete Structures1
PDF
No ratings yet
Discrete Structures1
31 pages
2 - Logic (Part 1)
PDF
No ratings yet
2 - Logic (Part 1)
66 pages
Chapter 1 Complete Slides
PDF
No ratings yet
Chapter 1 Complete Slides
117 pages
Screenshot 2025-01-27 at 6.56.35 PM
PDF
No ratings yet
Screenshot 2025-01-27 at 6.56.35 PM
37 pages
Lesson 2. Nature of Logic
PDF
No ratings yet
Lesson 2. Nature of Logic
47 pages
MMW Formal Logic
PDF
No ratings yet
MMW Formal Logic
35 pages
18CS36 DMS Module 1 Notes of VTU 3rd Semester CSE/ISE Discrete Mathematics
PDF
80% (5)
18CS36 DMS Module 1 Notes of VTU 3rd Semester CSE/ISE Discrete Mathematics
63 pages
3 Propositional Logic
PDF
No ratings yet
3 Propositional Logic
24 pages
Logic
PDF
No ratings yet
Logic
37 pages
MMW Formal Logic
PDF
No ratings yet
MMW Formal Logic
35 pages
Module 7 Logicpdf
PDF
No ratings yet
Module 7 Logicpdf
33 pages
Lecture 1 MTH401
PDF
No ratings yet
Lecture 1 MTH401
41 pages
DS Lecture 1
PDF
No ratings yet
DS Lecture 1
52 pages
Module-3 4th Sem MathsSpectrum1
PDF
No ratings yet
Module-3 4th Sem MathsSpectrum1
51 pages
Propositional Calculus - I
PDF
No ratings yet
Propositional Calculus - I
7 pages
DS Lecture 1
PDF
No ratings yet
DS Lecture 1
44 pages
Group C (Logic)
PDF
No ratings yet
Group C (Logic)
15 pages
Discrete Mathematics
PDF
No ratings yet
Discrete Mathematics
120 pages
LOGIC & STATEMENTS (Readings)
PDF
No ratings yet
LOGIC & STATEMENTS (Readings)
9 pages
Lec 1 DM
PDF
No ratings yet
Lec 1 DM
48 pages
There Exists An Integer That Is Not The Sum of Two Squares Importance of Mathematical Logic
PDF
No ratings yet
There Exists An Integer That Is Not The Sum of Two Squares Importance of Mathematical Logic
10 pages
Lecture 5 - Logic PDF
PDF
No ratings yet
Lecture 5 - Logic PDF
77 pages
DS-Lecture 01
PDF
No ratings yet
DS-Lecture 01
54 pages
Topic 1 Basic Logic
PDF
No ratings yet
Topic 1 Basic Logic
33 pages
MTH203 Logic
PDF
No ratings yet
MTH203 Logic
12 pages
Mathematical Reasoning Chapter 14
PDF
No ratings yet
Mathematical Reasoning Chapter 14
8 pages
MTH 401 Unit 1
PDF
No ratings yet
MTH 401 Unit 1
28 pages
DMGT 1-Basic Logic
PDF
No ratings yet
DMGT 1-Basic Logic
26 pages
ITEC-322 Discrete Structures: Introduction To Subject
PDF
No ratings yet
ITEC-322 Discrete Structures: Introduction To Subject
73 pages
Discrete Structures: Dr. Amer Rasheed
PDF
No ratings yet
Discrete Structures: Dr. Amer Rasheed
52 pages
Unit 1 Propositional Logics
PDF
No ratings yet
Unit 1 Propositional Logics
32 pages
Logic
PDF
No ratings yet
Logic
37 pages
Chap 5
PDF
No ratings yet
Chap 5
12 pages
Discrete Structures: (MATH3901)
PDF
No ratings yet
Discrete Structures: (MATH3901)
42 pages
Minor Data Science Content
PDF
No ratings yet
Minor Data Science Content
12 pages
Government Engineering College Gandhinagar Group G1
PDF
No ratings yet
Government Engineering College Gandhinagar Group G1
16 pages
Gec104 Module 5
PDF
100% (1)
Gec104 Module 5
19 pages
Lesson 2.3 Elementary Logic
PDF
No ratings yet
Lesson 2.3 Elementary Logic
8 pages
Discrete Mathematics
PDF
No ratings yet
Discrete Mathematics
21 pages
MTH110
PDF
No ratings yet
MTH110
8 pages