CSCI 301 L06 Notes

Lecture 6 - Notes

Logic 2

Announcements

Statements, Revisited

How can a sentence be a statement (i.e., definitely true or definitely false) without us knowing which?

Example: The Collatz Conjecture

Start with a positive integer \(x\). Repeat the following:

Given any initial positive integer \(x\), after iterating this a finite number of times, \(x\) becomes 1.

This is a statement (it’s either true or not). But nobody has figured out which!

Logic, Continued

See also whiteboard notes

Conditional (if/then) statements

Example: If \(x = y\), then \(x^2 = y^2\).

Notice: this does not commute.

False Implies Anything Weirdness

Notice: If false, then anything! This gets weird sometimes.

\(P\) : If I am healthy, then I will come to class.

Suppose you are sick; then the statement “If I am healthy, then I will come to class” is true whether or not you come to class.

Mental model suggestions:

Do Exercises Part B

Natural Language Weirdness

Equivalent ways of writing “if \(P\) then \(Q\)”:

Definition/aside: “If \(Q\) then \(P\)” is the converse of “If \(P\) then \(Q\)”.

Do Exercises Part C

Biconditional - “if and only if”: \(P \Leftrightarrow Q\) means \(P \Rightarrow Q\) and \(Q \Rightarrow P\) are both true.

Do exercises Part D