Learn · Mathematics · Grade 9 · Logic

Propositions, connectives and quantifiers

True-or-false statements, and / or / not / if-then, truth tables, negating a statement with "all" or "some".

High school Lesson 1 of 31 Interactive figure Practice

First, the rules

Statements that are true or false

A proposition is a sentence that is definitely true or definitely false — "7 is prime" is one, "close the door" is not. Logic is the arithmetic of such sentences.

★ Connectives
Example 1
¬p not · p ∧ q and · p ∨ q or (at least one) · p → q if p then q · p ↔ q if and only if
★ Truth table of the basic pairs
Example 1
pqp ∧ qp ∨ qp → qp ↔ q
TTTTTT
TFFTFF
FTFTTF
FFFFTT
An implication is false only when the "if" part is true and the "then" part is false.
Tautology and contradiction
Always true (p ∨ ¬p) · always false (p ∧ ¬p).
★ The four forms of an implication
Example 2
p → q (original) · q → p (converse) · ¬p → ¬q (inverse) · ¬q → ¬p (contrapositive). Only the contrapositive is equivalent to the original.
De Morgan
Example 3
¬(p ∧ q) ≡ ¬p ∨ ¬q, ¬(p ∨ q) ≡ ¬p ∧ ¬q
Negating an implication
Example 3
¬(p → q) ≡ p ∧ ¬q
"If it rains I stay home" is contradicted by: it rains AND I do not stay home.
★ Quantifiers
Example 3
∀ for all · ∃ there exists. Negation swaps them: ¬(∀x, P(x)) ≡ ∃x, ¬P(x) — "not all" means "some … not".

See it

Flip p and q, light the lamp

Two switches, one statement. Flip p and q and watch the lamp; the table row that matches lights up. Pick a second statement to compare columns — identical columns mean the two are equivalent.

Step by step

Worked examples

1

Building a truth table

connectives

Make the truth table of (p → q) ∧ ¬q and decide for which values it is true.

Ask yourself: Work column by column: first p → q, then ¬q, then the ∧ of those two.

Show the solution
  1. Rows TT, TF, FT, FF. p → q gives T, F, T, T. ¬q gives F, T, F, T.
  2. The ∧ is true only where both columns are T: only the last row (p false, q false).
  3. So the statement is true exactly when p and q are both false.

Answer true only for p = F, q = F

2

Converse, inverse, contrapositive

implications

Statement: "If a number ends in 0, then it is divisible by 5." Write the three related forms and say which are true.

Ask yourself: The original is true. Which rearrangement must have the same truth value?

Show the solution
  1. Converse: "If a number is divisible by 5, then it ends in 0." — false (15 is divisible by 5).
  2. Inverse: "If a number does not end in 0, then it is not divisible by 5." — false (same counterexample, 15).
  3. Contrapositive: "If a number is not divisible by 5, then it does not end in 0." — true, like the original; it is the same statement in disguise.

Answer contrapositive true; converse and inverse false

3

Negating with care

De Morgan · quantifiers

Negate: (a) "Every student in the class is over 16." (b) "x is even and x is positive." (c) "If I study, I pass."

Ask yourself: "Every" becomes "some … not"; "and" becomes "or" with each part negated; an implication is denied by the "if" being true and the "then" failing.

Show the solution
  1. (a) "Some student in the class is not over 16" — one counterexample is enough; "no student is over 16" says far too much.
  2. (b) "x is odd or x is not positive" (De Morgan: negate each part, swap ∧ for ∨).
  3. (c) "I study and I do not pass."

Answer (a) some … not · (b) odd OR not positive · (c) study AND not pass

Practice: logic

0 / 0

Negate a statement, evaluate a compound statement, name the converse / inverse / contrapositive, or count the rows of a truth table. Your best score is kept in this browser only.

About this lesson

Propositions, connectives and quantifiers: true-or-false statements, and / or / not / if-then, truth tables, the converse, inverse and contrapositive of an implication, De Morgan’s laws, and how to negate a statement with “all” or “some”. Worked examples and practice questions with explanations.

Part of Learn mathematics · Grade 9 · Logic. Check a number with the scientific calculator or draw a function with the function plotter. Everything on this page runs in your browser; nothing you type is sent or stored, and your practice score stays in this browser only. Spotted an error? Tell us.