[PDF] 2. Propositional Equivalences 2.1. Tautology/Contradiction





Previous PDF Next PDF



Solution of Assignment #2 CS/191

by the implication law (the first law in Table 7.) ≡q ∨ (¬p) by commutative Show that (p ∨ q) ∧ (¬p ∨ r) → (q ∨ r) is a tautology. sol: (p ∨ q) ...



Propositional Logic Discrete Mathematics

Prove that: [(p → q) ∧ (q → r)] → [p → r] is a tautology. By using truth table. By using logic equivalence laws. We will show these examples in class. c 



Chapter 1 Logic

Similarly (q ∨ r) ∧ p ⇔ (q ∧ p) ∨ (r ∧ p). The Laws of Logic can be used in several other ways. One of them is to prove that a statement is a tautology 



Math 55: Discrete Mathematics

By the definition of conditional statements on page 6 using the Com- mutativity Law



Basic Argument Forms

if p then q; and if r then s; but either not q or not s; therefore either not p or not r. Simplification. (p ∧ q). ∴ p p and q are true; therefore p is 



Logical Inference and Mathematical Proof Need for inference

This rule plays an important role in AI systems. Intuitively it means: if P implies R and ¬ P implies Q (why? Where do we get these implications?)



7. Let p and q be the propositions - p: It is below freezing. q

(p^q) ^r = p ^ (q ^ r) EXAMPLE 6*. Show that (p ^ q) → (p ≤ q) is a tautology. Solution: To show that this statement is a tautology we will use logical ...



MA0301 ELEMENTARY DISCRETE MATHEMATICS NTNU

Jan 6 2020 ≡ ¬p ∨ q. (Using that (¬p ∨ p) is a tautology). D. Exercise 9. Use the laws of logic to simplify (s ∨ (p ∧ r ∧ s)) ∧ (p ∨ (p ∧ q ∧ ¬r) ...



Inference Rules and Proof Methods

The argument is valid since ((p → q) ∧ p) → q is a tautology. CSI2101 A real number r is rational if there exists integers p and q with q = 0 such.



Solution of Assignment #2 CS/191

Since [(p ? q) ? (q ? r)] ? (p ? r) is always T it is a tautology. (0 points) (c) by the implication law (the first law in Table 7.) ?q ? (¬p).



CSE 311: Foundations of Computing I Section: Gates and

q ? (p ? r) following propositional formulae are tautologies by showing they are equivalent ... simplify it using axioms and laws of boolean algebra.



Propositional Logic Discrete Mathematics

Prove that: [(p ? q) ? (q ? r)] ? [p ? r] is a tautology. By using truth table. By using logic equivalence laws. We will show these examples in class. c 



2. Propositional Equivalences 2.1. Tautology/Contradiction

Example 2.1.2. p ? ¬p. Definition 2.1.3. A contingency is a proposition that is neither a tautology nor a contradiction. Example 2.1.3. p ? q ? ¬r.



(1) Propositional Logic

) Show that ( p ? q ) ? ( p ? r ) and p ? ( q ? r ) are logically equivalent ? Solution: Page 22. Math 151 Discrete Mathematics ( Propositional Logic ). By 



Midterm Exam

(4 points) Show that (P ? (Q ? R)) ? ((P ?Q) ? R) is tautology using logical (4 points) Validate the following argument by rules of inference ...



Lecture 5 - 188 200 Discrete Mathematics and Linear Algebra

The rules of logic specify the meaning of mathematical statement. (equivalent). Example p ? q. ? r. ? p ? (q ? r). Pattarawit Polpinit. Lecture 5 ...



Math 55: Discrete Mathematics

d) q ? p: If the votes are counted then the election is decided. e) ¬q ? ¬p: The 1.3.30 Show that (p ? q) ? (¬p ? r) ? (q ? r) is a tautology.



Chapter 1 Logic

p ? ¬q. Using the same reasoning or by negating the negation



MATH 363 Discrete Mathematics SOLUTIONS: Assingment 1 1

(2pt each) Write these propositions using r s



Methods of proof - Michigan State University

Prove: If p ?r and q ?¬r then p ?q ?s Equivalently prove: (p ?r) ?(q ?¬r ) ?(p ?q ?s) 1 p ?r Premise 2 ¬p ?r 1 Implication 3 q ?¬r Premise 4 ¬q ?¬r 3 Implication 5 ¬p ?¬q 2 4 Resolution 6 ¬(p ?q ) 5 DeMorgan



P Q R)) P Q R - University of Oxford

p q r q p r ? q aka Disjunction Elimination Corresponding Tautology: ((p q) ? (r q) ? (p r )) q Example: Let p be “I will study discrete math ” Let q be “I will study Computer Science ” Let r be “I will study databases ” “If I will study discrete math then I will study Computer Science ”



13 Propositional Equivalences - University of Hawai?i

Tautologies Contradictions and Contingencies A tautology is a compound proposition which is always true A contradiction is a compound proposition which is always false A contingency is a compound proposition which is neither a tautology nor a contradiction Logical Equivalences



2 Propositional Equivalences 21 Tautology/Contradiction

Example 2 1 3 p_q!:r Discussion One of the important techniques used in proving theorems is to replace or sub-stitute one proposition by another one that is equivalent to it In this section we will list some of the basic propositional equivalences and show how they can be used to prove other equivalences



P Q R)) P Q R - University of Oxford

(P ? (Q ? R)) ? (P ?Q ? R) is a tautology A sentence of the language of propositional logic is a tautology (logically true) if and only if the main column has T in every line of the truth value (that is if and only if the sentence is true in any L Ô-structure)



Solutions to problem set 2 Problem 1 Equivalences

tation they lead to the same value Hint: use truth table to show the equivalence P R Q (P ? R) Q ? R (P ? R)? Q ? R (P ? Q) ? R) We can prove

What is a tautology in propositional logic?

A sentence of the language of propositional logic is a tautology (logically true) if and only if the main column has T in every line of the truth value (that is, if and only if the sentence is true in any L. Ô-structure). Ø(P ?(Q ?R)) ?(P ? Q ?R) As it stands, the sentence (P ? (Q ? R)) ? (P ?Q ? R) is merely in abbreviated form.

What is the difference between a tautology and a contradiction?

1.3 Propositional Equivalences Tautologies, Contradictions, and Contingencies A tautology is a compound proposition which is always true. A contradiction is a compound proposition which is always false. A contingency is a compound proposition which is neither a tautology nor a contradiction.

What does tautology mean?

?a tautology, or ?an axiom/law of the domain (e.g., 1+3=4 orx> +1 ) ?justified by definition, or ?logically equivalent to orimpliedby one or more propositions  pk

What is the best way to prove P?R?

?Prove: If  p?rand ¬r, then q?¬p ?Equivalently, prove: (p?r) ?( ¬r ) ?( q?¬p) 1. p?r Premise 2. ¬r Premise 3. ¬p1, 2, modus tollens

2. PROPOSITIONAL EQUIVALENCES 33

2. Propositional Equivalences

2.1. Tautology/Contradiction/Contingency.

Definition2.1.1.Atautologyis a proposition that is always true.

Example2.1.1.p_ :p

Definition2.1.2.Acontradictionis a proposition that is always false.

Example2.1.2.p^ :p

Definition2.1.3.Acontingencyis a proposition that is neither a tautology nor a contradiction.

Example2.1.3.p_q! :r

Discussion

One of the important techniques used in proving theorems is to replace, or sub- stitute, one proposition by another one that is equivalent to it. In this section we will list some of the basic propositional equivalences and show how they can be used to prove other equivalences. Let us look at the classic example of a tautology,p_ :p. The truth table p:pp_ :pTFT FTT shows thatp_ :pis true no matter the truth value ofp. [Side Note.This tautology, called thelaw of excluded middle, is a direct consequence of our basic assumption that a proposition is a statement that is either true or false. Thus, the logic we will discuss here, so-called Aristotelian logic, might be described as a \2-valued" logic, and it is the logical basis for most of the theory of modern mathematics, at least as it has developed in western culture. There is, however, a consistent logical system, known as constructivist, or intuitionistic, logic which does not assume the law of excluded middle. This results in a 3-valued logic in which one allows for

2. PROPOSITIONAL EQUIVALENCES 34

a third possibility, namely, \other." In this system proving that a statement is \not true" is not the same as proving that it is \false," so that indirect proofs, which we shall soon discuss, would not be valid. If you are tempted to dismiss this concept, you should be aware that there are those who believe that in many ways this type of logic is much closer to the logic used in computer science than Aristotelian logic. You are encouraged to explore this idea: there is plenty of material to be found in your library or through the worldwide web.] The propositionp_ :(p^q) is also a tautology as the following the truth table illustrates. pq(p^q):(p^q)p_ :(p^q)TTTFT TFFTT FTFTT FFFTT Exercise2.1.1.Build a truth table to verify that the proposition(p$q)^(:p^q) is a contradiction.

2.2. Logically Equivalent.

Definition2.2.1.Propositionsrandsarelogically equivalentif the statement r$sis a tautology. Notation:Ifrandsare logically equivalent, we write r,s:

Discussion

A second notation often used to mean statementsrandsare logically equivalent isrs. You can determine whether compound propositionsrandsare logically equivalent by building a single truth table for both propositions and checking to see that they have exactly the same truth values. Notice the new symbolr,s, which is used to denote thatrandsare logically equivalent, is dened to mean the statementr$sis a tautology. In a sense the

2. PROPOSITIONAL EQUIVALENCES 35

symbols$and,convey similar information when used in a sentence. However, r,sis generally used to assert that the statementr$sis, in fact, true while the statementr$salone does not imply any particular truth value. The symbol,is the preferred shorthand for \is equivalent to."

2.3. Examples.

Example2.3.1.Show that(p!q)^(q!p)is logically equivalent top$q. Solution 1.Show the truth values of both propositions are identical.

Truth Table:pqp!qq!p(p!q)^(q!p)p$qTTTTTT

TFFTFF

FTTFFF

FFTTTT

Solution 2.Examine every possible case in which the statement(p!q)^(q!p) may not have the same truth value asp$q Case 1. Suppose(p!q)^(q!p)is false andp$qis true. There are two possible cases where(p!q)^(q!p)is false. Namely,p!qis false orq!p is false (note that this covers the possibility both are false since we use the inclusive \or" on logic). (a) Assumep!qis false. Thenpis true andqis false. But if this is the case, thep$qis false. (b) Assumeq!pis false. Thenqis true andpis false. But if this is the case, thep$qis false. Case 2. Suppose(p!q)^(q!p)is true andp$qis false. If the latter is false, thepandqdo not have the same truth value and the there are two possible ways this may occur that we address below. (a) Assumepis true andqis false. Thenp!qis false, so the conjunction also must be false. (b) Assumepis false andqis true. Thenq!pis false, so the conjunction is also false. We exhausted all the possibilities, so the two propositions must be logically equivalent.

2. PROPOSITIONAL EQUIVALENCES 36

Discussion

This example illustrates an alternative to using truth tables to establish the equiv- alence of two propositions. An alternative proof is obtained by excluding all possible ways in which the propositions may fail to be equivalent. Here is another example.

Example2.3.2.Show:(p!q)is equivalent top^ :q.

Solution 1.Build a truth table containing each of the statements.pq:qp!q:(p!q)p^ :qTTFTFF

TFTFTT

FTFTFF

FFTTFF

Since the truth values for:(p!q) andp^:qare exactly the same for all possible combinations of truth values ofpandq, the two propositions are equivalent. Solution 2.We consider how the two propositions couldfailto be equivalent. This can happen only if the rst is true and the second is false or vice versa.

Case 1. Suppose:(p!q) is true andp^ :qis false.

:(p!q) would be true ifp!qis false. Now this only occurs ifpis true andqis false. However, ifpis true andqis false, thenp^ :qwill be true.

Hence this case is not possible.

Case 2. Suppose:(p!q) is false andp^ :qis true.

p^ :qis true only ifpis true andqis false. But in this case,:(p!q) will be true. So this case is not possible either. Since it is not possible for the two propositions to have dierent truth values, they must be equivalent. Exercise2.3.1.Use a truth table to show that the propositionsp$qand:(pq) are equivalent. Exercise2.3.2.Use the method of Solution 2 in Example 2.3.2 to show that the propositionsp$qand:(pq)are equivalent.

2. PROPOSITIONAL EQUIVALENCES 37

2.4. Important Logical Equivalences.The logical equivalences below are im-

portant equivalences that should be memorized.

Identity Laws:p^T,p

p_F,p

Domination Laws:p_T,T

p^F,F

Idempotent Laws:p_p,p

p^p,p

Double Negation:(:p),p

Law:

Commutative Laws:p_q,q_p

p^q,q^p

Associative Laws: (p_q)_r,p_(q_r)

(p^q)^r,p^(q^r)

Distributive Laws:p_(q^r),(p_q)^(p_r)

p^(q_r),(p^q)_(p^r)

De Morgan's Laws::(p^q), :p_ :q

:(p_q), :p^ :q

Absorption Laws:p^(p_q),p

p_(p^q),p

2. PROPOSITIONAL EQUIVALENCES 38

Implication Law: (p!q),(:p_q)

Contrapositive Law: (p!q),(:q! :p)

Tautology:p_ :p,T

Contradiction:p^ :p,F

Equivalence: (p!q)^(q!p),(p$q)

Discussion

Study carefully what each of these equivalences is saying. With the possible exceptions of the De Morgan Laws, they are fairly straight-forward to understand. The main diculty you might have with these equivalences is remembering their names. Example2.4.1.Use the logical equivalences above and substitution to establish the equivalence of the statements in Example 2.3.2.

Solution.

:(p!q), :(:p_q)Implication Law , ::p^ :qDe Morgan's Law ,p^ :qDouble Negation Law This method is very similar to simplifying an algebraic expression. You are using the basic equivalences in somewhat the same way you use algebraic rules like 2x3x= xor(x+ 1)(x3)x3=x+ 1. Exercise2.4.1.Use the propositional equivalences in the list of important logical equivalences above to prove[(p!q)^ :q]! :pis a tautology. Exercise2.4.2.Use truth tables to verify De Morgan's Laws.

2.5. Simplifying Propositions.

2. PROPOSITIONAL EQUIVALENCES 39

Example2.5.1.Use the logical equivalences above to show that:(p_ :(p^q)) is a contradiction.

Solution.

:(p_ :(p^q)) , :p^ :(:(p^q))De Morgan's Law , :p^(p^q)Double Negation Law ,(:p^p)^qAssociative Law ,F^qContradiction ,FDomination Law and Commutative Law Example2.5.2.Find a simple form for the negation of the proposition \If the sun is shining, then I am going to the ball game." Solution.This proposition is of the formp!q. As we showed in Example 2.3.2 its negation,:(p!q), is equivalent top^ :q. This is the proposition \The sun is shining, and I am not going to the ball game."

Discussion

The main thing we should learn from Examples 2.3.2 and 2.5.2 is that the negation of an implication isnotequivalent to another implication, such as \If the sun is shining, then I am not going to the ball game" or \If the sun is not shining, I am going to the ball game." This may be seen by comparing the corresponding truth tables: pqp! :q:(p!q),(p^ :q):p!qTTFFT TFTTT FTTFT FFTFF If you were to construct truth tables for all of the other possible implications of the formr!s, where each ofrandsis one ofp,:p,q, or:q, you will observe that none of these propositions is equivalent to:(p!q).

2. PROPOSITIONAL EQUIVALENCES 40

The rule:(p!q),p^ :qshould be memorized. One way to memorize this equivalence is to keep in mind that the negation ofp!qis the statement that describes the only case in whichp!qis false. Exercise2.5.1.Which of the following are equivalent to:(p!r)! :q? There may be more than one or none. (1):(p!r)_q (2)(p^ :r)_q (3)(:p! :r)_q (4)q!(p!r) (5):q!(:p! :r) (6):q!(:p_r) (7):q! :(p!r) Exercise2.5.2.Which of the following is the negation of the statement \If you go to the beach this weekend, then you should bring your books and study"? (1) If you do not go to the beach this weekend, then you should not bring your books and you should not study. (2) If you do not go to the beach this weekend, then you should not bring your books or you should not study. (3) If you do not go to the beach this weekend, then you should bring your books and study. (4) You will not go to the beach this weekend, and you should not bring your books and you should not study. (5) You will not go to the beach this weekend, and you should not bring your books or you should not study. (6) You will go to the beach this weekend, and you should not bring your books and you should not study. (7) You will go to the beach this weekend, and you should not bring your books or you should not study. Exercise2.5.3.pis the statement \I will prove this by cases",qis the statement \There are more than 500 cases," andris the statement \I can nd another way." State the negation of(:r_ :q)!p. in simple English. Do not use the expression \It is not the case."

2.6. Implication.

Definition2.6.1.We say the propositionrimplies the propositionsand write r)sifr!sis a tautology. This is very similar to the ideas previously discussed regarding the,verses$. We user)sto imply that the statementr!sis true, while that statementr!s

2. PROPOSITIONAL EQUIVALENCES 41

alone does not imply any particular truth value. The symbol)is often used in proofs as a shorthand for \implies."

Exercise2.6.1.Prove(p!q)^ :q) :p.

Exercise2.6.2.Provep^(p!q)! :qis a contingency using a truth table. Exercise2.6.3.Provep!(p_q)is a tautology using a verbal argument. Exercise2.6.4.Prove(p^q)!pis a tautology using the table of propositional equivalences. Exercise2.6.5.Prove[(p!q)^(q!r)])(p!r)using a truth table. Exercise2.6.6.Prove[(p_q)^ :p])qusing a verbal argument. Exercise2.6.7.Prove(p^q)!(p_q)is a tautology using the table of proposi- tional equivalences.

2.7. Normal or Canonical Forms.

Definition2.7.1.Every compound proposition in the propositional variablesp, q,r, ..., is uniquely equivalent to a proposition that is formed by taking the disjunction of conjunctions of some combination of the variablesp;q;r;:::or their negations. This is called thedisjunctive normal formof a proposition.

Discussion

Thedisjunctive normal formof a compound proposition is a natural and useful choice for representing the proposition from among all equivalent forms, although it may not be the simplest representative. We will nd this concept useful when we arrive at the module on Boolean algebra.

2.8. Examples.

Example2.8.1.Construct a proposition in disjunctive normal form that is true precisely when (1)pis true andqis false

Solution.p^ :q

(2)pis true andqis false or whenpis true andqis true.

Solution.(p^ :q)_(p^q)

(3) eitherpis true orqis true, andris false Solution.(p_q)^ :r,(p^ :r)_(q^ :r)(Distributive Law) (Notice that the second example could be simplied to justp.)

2. PROPOSITIONAL EQUIVALENCES 42

Discussion

The methods by which we arrived at the disjunctive normal form in these examples may seem a littlead hoc. We now demonstrate, through further examples, a sure-re method for its construction.

2.9. Constructing Disjunctive Normal Forms.

Example2.9.1.Find the disjunctive normal form for the propositionp!q.

Solution.Construct a truth table forp!q:

pqp!qTTT TFF FTT FFT p!qis true when either pis true andqis true, or pis false andqis true, or pis false andqis false.

The disjunctive normal form is then

(p^q)_(:p^q)_(:p^ :q)

Discussion

This example shows how a truth table can be used in a systematic way to construct the disjunctive normal forms. Here is another example. Example2.9.2.Construct the disjunctive normal form of the proposition (p!q)^ :r

Solution.Write out the truth table for(p!q)^ :r:

2. PROPOSITIONAL EQUIVALENCES 43

pqrp!q:r(p!q)^ :rTTTTFF

TTFTTT

TFTFFF

FTTTFF

TFFFTF

FTFTTT

FFTTFF

FFFTTT

The disjunctive normal form will be a disjunction of three conjunctions, one for each row in the truth table that gives the truth value T for(p!q)^:r. These rows have been boxed. In each conjunction we will usepif the truth value ofpin that row is T and:pif the truth value ofpis F,qif the truth value ofqin that row is T and:qif the truth value ofqis F, etc. The disjunctive normal form for(p!q)^ :ris then (p^q^ :r)_(:p^q^ :r)_(:p^ :q^ :r); because each of these conjunctions is true only for the combination of truth values of p,q, andrfound in the corresponding row. That is,(p^q^ :r)has truth value T only for the combination of truth values in row 2,(:p^q^:r)has truth value T only for the combination of truth values in row 6, etc. Their disjunction will be true for precisely the three combinations of truth values ofp,q, andrfor which(p!q)^:r is also true. Terminology.The individual conjunctions that make up the disjunctive normal form are calledminterms. In the previous example, the disjunctive normal form for the proposition (p!q)^ :rhas three minterms, (p^q^ :r), (:p^q^ :r), and (:p^ :q^ :r).

2.10. Conjunctive Normal Form.Theconjunctive normal formof a propo-

sition is another \canonical form" that may occasionally be useful, but not to the same degree as the disjunctive normal form. As the name should suggests after our discus- sion above, the conjunctive normal form of a proposition is the equivalent form that consists of a \conjunction of disjunctions." It is easily constructed indirectly using disjunctive normal forms by observing that if you negate a disjunctive normal form you get a conjunctive normal form. For example, three applications of De Morgan's

Laws gives

:[(p^ :q)_(:p^ :q)],(:p_q)^(p_q):

2. PROPOSITIONAL EQUIVALENCES 44

Thus, if you want to get the conjunctive normal form of a proposition, construct the disjunctive normal form of itsnegationand then negate again and apply De Morgan's Laws. Example2.10.1.Find the conjunctive normal form of the proposition(p^:q)_r.

Solution.

(1) Negate::[(p^ :q)_r],(:p_q)^ :r: (2) Find the disjunctive normal form of (:p_q)^ :r: pqr:p:r:p_q(:p_q)^ :rTTTFFTF

TTFFTTT

TFTFFFF

FTTTFTF

TFFFTFF

FTFTTTT

FFTTFTF

FFFTTTT

The disjunctive normal form for (:p_q)^ :ris

(p^q^ :r)_(:p^q^ :r)_(:p^ :q^ :r): (3) The conjunctive normal form for (p^:q)_ris then the negation of this last expression, which, by De Morgan's Laws, is (:p_ :q_r)^(p_ :q_r)^(p_q_r):quotesdbs_dbs17.pdfusesText_23
[PDF] show that (p ? r) ? q ? r and p ? q ? r are logically equivalent

[PDF] show that 2^p+1 is a factor of n

[PDF] show that 2^p 1(2p 1) is a perfect number

[PDF] show that 4p^2 20p+9 0

[PDF] show that a sequence xn of real numbers has no convergent subsequence if and only if xn ? ? asn ? ?

[PDF] show that etm turing reduces to atm.

[PDF] show that every infinite turing recognizable language has an infinite decidable subset.

[PDF] show that every tree with exactly two vertices of degree one is a path

[PDF] show that f is continuous on (?? ?)

[PDF] show that for each n 1 the language bn is regular

[PDF] show that if a and b are integers with a ? b mod n then f(a ? f(b mod n))

[PDF] show that if an and bn are convergent series of nonnegative numbers then ? anbn converges

[PDF] show that if f is integrable on [a

[PDF] show that if lim sn

[PDF] show that p ? q and p ? q are logically equivalent slader