UNIHIVE

Study Hub UNIPORT PHL 200

PHL 200 · Introduction to Logic

Propositional logic and truth tables

Simple and compound statements, the five connectives, truth tables, and testing arguments for validity.

Our notes

2 min read

Simple and compound statements

  • Simple statement: no other statement as a part: "Ada is a student" (letter p).
  • Compound statement: built from simple ones with connectives.

The five connectives

ConnectiveSymbolReadTrue when
Negation~pnot pp is false
Conjunctionp · q (or p ∧ q)p and qboth are true
Disjunctionp ∨ qp or qat least one is true (inclusive)
Conditionalp ⊃ q (or p → q)if p then qfalse only when p is true and q false
Biconditionalp ≡ q (or p ↔ q)p if and only if qp and q have the same truth value

Truth table for the conditional

pqp ⊃ q
TTT
TFF
FTT
FFT

A promise "If you pass, I will pay you" is broken only if you pass and I do not pay.

Building a truth table

With n simple statements there are 2ⁿ rows. For p and q: 4 rows; with p, q, r: 8 rows.

Tautology, contradiction, contingency

  • Tautology: true in every row: p ∨ ~p.
  • Self-contradiction: false in every row: p · ~p.
  • Contingent: true in some rows, false in others: p ⊃ q.

Testing validity by truth table

An argument is valid if no row has all premises true and the conclusion false.

Worked example: modus tollens. Premises p ⊃ q and ~q; conclusion ~p.

pqp ⊃ q~q~p
TTTFF
TFFTF
FTTFT
FFTTT

Only row 4 has both premises true, and there ~p is true. Valid.

Affirming the consequent: premises p ⊃ q and q, conclusion p. Row 3 (p false, q true): both premises true, conclusion false. Invalid.

Translating

  • "Ada will pass if she studies": S ⊃ P (the "if" part is the antecedent).
  • "Ada will pass only if she studies": P ⊃ S.
  • "Unless you pay, you will be sent out": ~P ⊃ O (or P ∨ O).
  • "Neither p nor q": ~p · ~q.

Exams usually ask

  • Construct truth tables for compound statements.
  • Test an argument for validity by a truth table.
  • Classify a statement as tautologous, contradictory or contingent.

Common mistake

Translating "only if" like "if". "p only if q" is p ⊃ q: q is a necessary condition for p.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

Practise

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All PHL 200 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.