Back to the on-screen lesson ·

Syntax, semantics and soundness

The two relations a formal system has, the theorem that says everything derivable is entailed, how it is proved rule by rule, and what it does not say.

Paper packet. Every task here also exists on screen, where it is checked automatically; answers written on paper are not assessed by Nydus. When you are back at a device, enter your answers there.

1. What you will learn

By the end of this lesson you will be able to state the difference between derivability and entailment, state the soundness theorem, say what follows from it and what does not, use its contrapositive to rule out a derivation from a countermodel, order the stages of its proof, and recognise when its hypothesis has not been met.

2. What you already have

You can test an argument with a table and you can derive a conclusion with rules. Those are two different activities that have so far agreed with each other. This unit is about why they agree, and about what is proved when one says they do.

3. The words this lesson uses

$\Gamma \vdash \phi$ — derivability — says a derivation exists. $\Gamma \models \phi$ — entailment — says no valuation satisfies $\Gamma$ with $\phi$ false. A system is sound when $\vdash$ implies $\models$ and complete when $\models$ implies $\vdash$. Note that sound said of a single argument means something else: valid with true premises.

4. Syntax, semantics and soundness

A formal system has two relations between a set of formulas and a formula, and they are defined in completely different terms. $\Gamma \vdash \phi$ is syntactic: there is a finite list of lines, each a premise or the result of a rule applied to lines above it, ending on $\phi$. Checking it requires no tables and no meanings — only that each line fits its rule. $\Gamma \models \phi$ is semantic: no valuation satisfies every member of $\Gamma$ and makes $\phi$ false. Checking it requires no rules. The soundness theorem says that the first implies the second: anything derivable is entailed. It is proved by induction on the length of a derivation — a premise line is entailed because it is a member of $\Gamma$, and each rule is checked once to see that it takes entailed lines to entailed lines. Two things follow at once. A derivation is a certificate of entailment, which is what makes proofs worth writing. And a countermodel shows that no derivation exists, because a derivation would have made the argument valid.

Another way: steps

  1. To use soundness forwards: find a derivation, and conclude the entailment.
  2. To use it backwards: find a countermodel, and conclude no derivation exists.
  3. Check the hypothesis is really met before applying it.
  4. Never read it in the other direction; that is the completeness theorem.

Another way: example

From $P \to Q$ and $Q$, there is no derivation of $P$ in a sound system: the valuation making $P$ false and $Q$ true satisfies both premises and refutes the conclusion, so the entailment fails, so by the contrapositive of soundness no derivation exists.

5. Where this goes wrong

The first error is reading a derivation as establishing its conclusion outright: it establishes a conditional claim about valuations, and says nothing about whether any premise is true. The second is using soundness in the direction it does not run — from a failed search to the failure of an entailment — which is completeness, and a separate theorem. The third is confusing the two uses of sound: an argument is sound when it is valid with true premises, and a system is sound when everything it derives is entailed.

6. Using the theorem forwards

  1. A derivation of $R$ from $P \to Q$, $Q \to R$ and $P$ exists: two detachments.

    The hypothesis is met.

  2. Soundness gives $\{P \to Q, Q \to R, P\} \models R$.

    Apply the theorem.

  3. Eight rows would have shown the same thing. Five lines showed it instead, and would have done so for twenty atoms.

    This is what the theorem buys.

7. Using the contrapositive

  1. Does $P$ follow from $P \to Q$ and $Q$? The valuation with $P$ false and $Q$ true satisfies both premises.

    Find a countermodel.

  2. So the entailment fails. By the contrapositive of soundness, no derivation of $P$ from those premises exists.

    Contrapositive, not converse.

  3. That is stronger than saying nobody has found one: it says nobody will.

    A search is not a proof.

8. Your turn: a sound system derives $\phi$ from the empty set. What follows?

  1. Soundness gives that the empty set entails $\phi$: no valuation whatever makes $\phi$ false.

  2. Your turn: work this step out. Its working is at the end of the packet.

    That is exactly what it is for $\phi$ to be a tautology. With a non-empty set the conclusion would have been weaker.

9. Guided practice

Match each notation or phrase to what it says.

There is a derivation of the formula from the set, using the rulesEvery valuation satisfying the set satisfies the formulaWhenever there is a derivation, the entailment holds as wellWhenever the entailment holds, there is a derivation as well
$\Gamma \vdash \phi$
$\Gamma \models \phi$
The system is sound
The system is complete

10. Guided practice

Take the soundness theorem as stated: whenever $\Gamma \vdash \phi$, also $\Gamma \models \phi$. You have written a derivation of $\phi$ from $\Gamma$. What does the theorem let you conclude?

11. Guided practice

Take this as the only thing you are given: whenever $\Gamma \vdash \phi$, also $\Gamma \models \phi$. Mark every statement that follows from it.

This task has no paper form; do it on a device.

12. Practice

Premises: P -> Q and Q. Conclusion: P. Does the conclusion follow? If it does not, give a row that breaks it.

P -> Q
Q
∴ P

valid invalid — countermodel:

13. Practice

Put the four stages of the soundness proof into the order they are done in.

Number the steps in order (write the number in the box):

14. Somewhere new

The system is sound: whenever $\Gamma \vdash \phi$, also $\Gamma \models \phi$. You have looked hard for a derivation of $\phi$ from $\Gamma$ and have not found one. What does soundness entitle you to conclude about whether $\Gamma \models \phi$?

15. Lesson test

Lesson test: one question per skill, one attempt each, no hints. Your answers are checked when you submit.

16. Test question

From the premises Q -> R, R -> S and Q, derive S. Give one line at a time, with the rule and the lines it uses.

Q -> R
R -> S
Q
∴ S

#FormulaRuleLines
1
2
3
4
5
6

17. What you can do now

You can state the soundness theorem and apply it in both the forward and the contrapositive direction. Say in your own words why a countermodel shows that no derivation exists.

Working for the steps left to you

8. Your turn: a sound system derives $\phi$ from the empty set. What follows?, step 2