Statements and Logic
Jim Hefferon · GFDL + CC BY-SA 2.5 · Introduction to Proofs
A proposition is a statement that is either true or false. Logical connectives (and, or, not, implies) combine propositions into compound statements. The truth value of any compound statement is determined entirely by the truth values of its parts.
Propositions
A proposition is a declarative sentence with a definite truth value. "5 is prime" is a proposition (true). "Close the door" is not. "x + 1 = 3" is not, until you fix x. Questions and commands are never propositions.
Connectives
The four main connectives: not (negation), and (conjunction), or (disjunction), and implies (conditional). "Or" in math is inclusive: P or Q is true when both are true.
Truth tables
A truth table lists every possible combination of truth values for the inputs and shows the output. For two variables, that is four rows. The implication P implies Q is false only when P is true and Q is false. This is the row that trips everyone up.
Logical equivalence
Two compound statements are logically equivalent when they have the same truth value for every possible assignment. The most important equivalence: P implies Q is equivalent to (not Q) implies (not P). This is the contrapositive, and it is the basis of an entire proof technique.
The conditional — why "false implies anything" is true
The conditional P implies Q is a promise: "if P happens, then Q will happen." It can only be broken when P happens and Q does not. If P never happens, the promise is vacuously kept. "If pigs fly, I will eat my hat" is true, because pigs do not fly. This is vacuous truth.
Neighbors
- 🔑 Logic Ch.2 — propositional logic formalized
- 🔑 Logic Ch.3 — translation between English and formal logic
- 🔑 Logic Ch.2 — propositional logic formalized with syntax and rules
- 🔑 Logic Ch.3 — truth tables and semantic consequence
- 🔢 Discrete Math Ch.3 — symbolic logic from a different angle