∴Logic WikiA library of reasoningSearch concepts, fallacies, and cases/中文

Testing arguments with truth tables

用真值表检验论证

Inspect rows with all premises true and look for a false conclusion.

Check with a truth table

Look for a row with true premises and a false conclusion. One counterexample defeats deductive validity.

Classical two-valued semantics: T is true, F is false.
PQP → QCounterexample
TTT—
TFF—
FTT—
FFT—

The concept and its limits

There are 2ⁿ valuations for n distinct propositional letters. Evaluate subformulas before compounds. A valid argument does not require a true conclusion in every row, only in every row where all premises are true.

Truth tables test a completed propositional formalization. They do not choose a translation for ordinary language or directly analyze internal quantifier relations.

Working through an example

For “P → Q; Q; therefore P,” choose P false and Q true. Both premises are true and the conclusion false. This single row establishes invalidity.

Evaluate each connective first

This tutorial uses classical two-valued propositional logic. Each sentence letter is true or false under a valuation, and connective values depend on their components. T and F label truth values rather than additional sentence letters.

Inclusive P ∨ Q is true when both disjuncts are true. Material P → Q is false only when P is true and Q false. This supplies a precise model of a conditional; causal, temporal, and relevance requirements in ordinary language need separate attention.

Five basic connectives
PQ¬PP ∧ QP ∨ QP → QP ↔ Q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT

Section sources: forall x, chapter 9: characteristic truth tables ↗ · forall x, chapter 11: complete truth tables ↗

Build a complete table systematically

Count distinct sentence letters; repeated occurrences count once. Three letters require eight rows. One orderly arrangement alternates the first column after four rows, the second after two, and the third after each row. Other orders work if every assignment occurs once.

Evaluate inside brackets before moving outward. For ¬(P ∧ Q) → R, first calculate P ∧ Q, then negate that result, then evaluate the conditional with R. Brackets determine the scope of negation.

  1. List every valuation and label each premise and the conclusion.
  2. Add columns for difficult subformulas and identify the main connective.
  3. Inspect the conclusion on rows where all premises are true, retaining any counterexample.

Section sources: forall x, chapter 11: section 11.1: constructing a complete table ↗

A full example: disjunctive syllogism

Consider this original scenario: the key is in the cabinet or the bag; it is not in the cabinet; therefore it is in the bag. Let P and Q represent the two locations. The last columns show whether both premises hold and whether the row is a counterexample.

P ∨ Q, ¬P ⊨ Q
PQP ∨ Q¬PBoth premises true?Counterexample?
TTTFNoNo
TFTFNoNo
FTTTYesNo
FFFTNoNo

Section sources: forall x, chapter 12: validity in truth tables ↗

Tautology, true premises, and empty cases

Only the third row in the example requires checking the conclusion; Q is true there, so the argument is valid. The other rows fail to satisfy all premises and cannot refute the argument.

A tautology is true on every row. Validity requires truth preservation on rows satisfying all premises. In classical semantics, contradictory premises entail any conclusion because no row satisfies them all. That does not make the premises acceptable facts or the argument sound. Consistency and premise truth require separate checks.

Section sources: forall x, chapter 12: validity, consistency, and tautology ↗

Test your method on new arguments

These exercises use different arguments from the worked key example. Write valuations before deciding.

Independent exercise 1

Premises: A → B and ¬A. Conclusion: ¬B. Find and explain a counterexample.

Show answer and reasoning

Set A false and B true. The conditional and ¬A are true, while ¬B is false. This meets the counterexample requirement, establishing invalidity.

Independent exercise 2

Premises: A and ¬A. Conclusion: B. Does any row satisfy both premises? Does this make both premises reasonable?

Show answer and reasoning

No row satisfies both. There is no counterexample, so the argument is classically valid. Its premises cannot both be true, so it is unsound and gains no factual support.

Check your understanding

Question: Does a row with a false premise and false conclusion show invalidity? Answer: No. It is not the required counterexample row.

References

  1. forall x: Calgary ↗
    P. D. Magnus, Tim Button, Robert Trueman, Richard Zach et al. · Selected sections
    Version, terms, and access scope