The Lawfare Academy

Lawfare Group → Knowledge Institute → Lawfare Academy

← Logic and Argumentation

Unit 4

Truth tables and semantic testing

Learning objectives

  • Construct a truth table with all assignments.
  • Distinguish equivalence, satisfiability and entailment.
  • Find an assignment that refutes a propositional argument.

Construct the rows and columns

Truth tables enumerate every assignment of truth values to the atoms in a finite propositional formula. With two atoms there are four rows: TT, TF, FT and FF. With three there are eight. List the atom columns first, then add columns for inner subformulas before the whole sentence. This order makes errors local and visible. To compute ¬(P ∧ Q) → R, calculate P ∧ Q, negate that column, then look for the rows with the resulting antecedent true and R false. Exactly those rows make the conditional false.

For an argument, place each premise and the conclusion in separate columns. Keep your eye on rows where all premises are true. Invalidity requires at least one of these rows to have a false conclusion. A missing or false premise disables the row as a counterexample. If every jointly true premise row has a true conclusion, the argument is valid. Listing the truth table in an orderly way is helpful, but one clearly specified bad row is enough to disprove validity.

Compare properties rather than names

A formula is a tautology if it is true on every row, and a contradiction if it is false on every row. It is contingent if its truth value varies. A set is satisfiable if at least one row makes all its members true. Equivalence concerns two formulas with the same truth values on all rows. Entailment is directional. A set of premises entails a conclusion when every assignment satisfying the set also satisfies the conclusion. Inconsistent premises have no jointly satisfying assignment, so the classical semantic test finds no counterexample to any conclusion from that set. This result flags that the premises themselves need scrutiny.

For example, compare ¬(P ∨ Q) and ¬P ∨ ¬Q. With P true and Q false the first is false and the second true. The correct De Morgan counterpart to ¬(P ∨ Q) is ¬P ∧ ¬Q. Test it by observing that the original disjunction is false exactly when both atoms are false. Another useful comparison is P → Q and ¬Q → ¬P. Each is false precisely on the row P true and Q false, so the formulas are equivalent.

Work a complete small argument

Test P ∨ Q and P → Q, with conclusion Q. On row TT both premises and Q hold. On row TF the disjunction is true and the conditional false. On row FT both premises and Q hold. On row FF the disjunction is false. Since the two relevant rows have Q true, the argument is valid. It would become invalid if the second premise were Q → P. On row TF the disjunction and that reversed conditional would both be true with Q false.

Now test your fluency by changing one premise at a time. Replace P ∨ Q with ¬(P ∧ Q) and check whether row FF is a counterexample to deriving Q from that formula and P → Q. Work in text first. Neither atom holds, so the conjunction fails and its negation holds. The conditional has a false antecedent and is true, while Q is false. Write down just this assignment and why it works. Full tables are a good audit of uncertainty. Compact counterexamples can communicate the result more directly.

Apply the idea

A committee thinks that P → Q and ¬P ∨ Q are different rules because only the first is written as a conditional.

Test the formulas row by row and report whether the committee can distinguish them by any assignment.

Read the worked reasoning

Both formulas are true on TT, FT and FF, and false on TF. Consequently they are equivalent in classical propositional logic. A natural-language policy could carry additional causal or procedural meaning, outside this test.

Check understanding

On which row are P → Q and ¬P ∨ Q both false?

  1. P false, Q true
    Feedback

    A false antecedent makes the first formula true, and ¬P makes the second true.

  2. P true, Q true
    Feedback

    Q true satisfies the conditional and the disjunction.

  3. P true, Q false
    Feedback

    The conditional has a true antecedent and false consequent. Both disjuncts of the second formula are false.

Further reading

Reproduce the four-row test for P ∨ Q and P → Q. Replace P ∨ Q with ¬(P ∧ Q) and find the relevant counterexample.

My learning →