06.09.2021 Views

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

202 3. Symbolic Logic and Proofs<br />

it is saying, or how to prove or refute it. By using truth tables we can<br />

systematically verify that two statements are indeed logically equivalent.<br />

Example 3.1.3<br />

Are the statements, “it will not rain or snow” and “it will not rain<br />

and it will not snow” logically equivalent?<br />

Solution. We want to know whether ¬(P ∨Q) is logically equivalent<br />

to ¬P ∧ ¬Q. Make a truth table which includes both statements:<br />

P Q ¬(P ∨ Q) ¬P ∧ ¬Q<br />

T T F F<br />

T F F F<br />

F T F F<br />

F F T T<br />

Since in every row the truth values for the two statements are<br />

equal, the two statements are logically equivalent.<br />

Notice that this example gives us a way to “distribute” a negation<br />

over a disjunction (an “or”). We have a similar rule for distributing over<br />

conjunctions (“and”s):<br />

De Morgan’s Laws.<br />

¬(P ∧ Q) is logically equivalent to ¬P ∨ ¬Q.<br />

¬(P ∨ Q) is logically equivalent to ¬P ∧ ¬Q.<br />

This suggests there might be a sort of “algebra” you could apply to<br />

statements (okay, there is: it is called Boolean algebra) to transform one<br />

statement into another. We can start collecting useful examples of logical<br />

equivalence, and apply them in succession to a statement, instead of<br />

writing out a complicated truth table.<br />

De Morgan’s laws do not do not directly help us with implications, but<br />

as we saw above, every implication can be written as a disjunction:<br />

Implications are Disjunctions.<br />

P → Q is logically equivalent to ¬P ∨ Q.<br />

Example: “If a number is a multiple of 4, then it is even” is<br />

equivalent to, “a number is not a multiple of 4 or (else) it is even.”<br />

With this and De Morgan’s laws, you can take any statement and<br />

simplify it to the point where negations are only being applied to atomic

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!