Metatheory

“[A] somewhat different extension of our subject matter occurs when we discuss the form of our metamathematical definitions and theorems in turn. If we chose to be meticulous in our way of doing this, it would constitute a metametamathematics.”
—Stephen Kleene

Now that we have formal (mathematically precise) definitions of WFFs, truth, and proof, we can think about proving facts about formulas and proofs. Proofs about logical systems are known as metaproofs and the study of metaproofs is called metatheory.

Soundness

Theorem (Soundness)

For all A1,,An,B{\cal A}_1,\ldots,{\cal A}_n,{\cal B},

A1,,AnB  {\cal A}_1,\ldots,{\cal A}_n \vdash {\cal B}\ \ implies   A1,,AnB\ \ {\cal A}_1,\ldots,{\cal A}_n \vDash {\cal B}.

How might we prove this theorem? The full details are beyond the scope of these notes, but here’s the basic idea:

  • Proofs are finite sequences of steps, justified by the natural deduction rules.
  • Since proofs are finite, if there is a property that all ND proofs have, we can try to prove that property by induction on the length of the ND proof.
  • Specifically, we can prove that all ND proofs have the following property, by induction on the length of the ND proof:
    • Every line is either an assumption, or is a formula that is true (according to truth tables) whenever the assumptions it depends on are true.
  • Intuitively, the reason the inductive step works (going from a proof of length nn with this property to a proof of length n+1n+1) is that the last line of the proof will be justified by one of the dozen or so ND rules, and each of the ND rules “preserves truth.” If the premises of the rule are already true, then the conclusion is true.

Completeness

Theorem (Completeness)

For all A1,,An,B{\cal A}_1,\ldots,{\cal A}_n,{\cal B},

A1,,AnB{\cal A}_1,\ldots,{\cal A}_n \vDash {\cal B} implies A1,,AnB{\cal A}_1,\ldots,{\cal A}_n \vdash {\cal B}.

How might we show that Natural Deduction is sound for classical propositional logic? The full proof is beyond the scope of these notes, but the basic idea involves three steps.

Step 1: A Lemma

Definition

If MM is a model in propositional logic then we will write M\ldots M\ldots to mean the list of literals (propositional variables and negated propositional variables) that are true in MM.

For example, if MM sets PP true, QQ false, and RR true, then M\ldots M \ldots will be the list P,¬Q,RP, \lnot Q, R Conversely if MM sets QQ true, and PP and RR and SS false, then M\ldots M \ldots would be the list ¬P,Q,¬R,¬S\lnot P, Q, \lnot R, \lnot S

Lemma 1

The following property holds for all WFFs A{\cal A} and all models MM:

  • if MM makes the WFF A{\cal A} true, then M  A\ldots M \ldots \ \vdash \ {\cal A}.
  • if MM makes the WFF A{\cal A} false, then M  ¬A\ldots M \ldots \ \vdash \ \lnot {\cal A}.

That is, if we explicitly assume the propositional variables involved in A{\cal A} are true or false, then A{\cal A} is provable if the truth tables tell us A{\cal A} should be true, and ¬A\lnot {\cal A} is provable if the truth tables tell us A{\cal A} should be false.

Example

For example,

PQR(PQ)RTTTTTTFFTFTTTFFFFTTTFTFFFFTFFFFF¬P,¬Q,¬R ¬((PQ)R¬P,¬Q,¬R ¬((PQ)R)¬P,¬Q,¬R ¬((PQ)R¬P,¬Q,¬R ¬((PQ)R)¬P,¬Q,¬R ¬((PQ)R¬P,¬Q,¬R ¬((PQ)R)¬P,¬Q,¬R ¬((PQ)R)¬P,¬Q,¬R ¬((PQ)R)\begin{array}{ccc|c} P & Q & R & (P\lor Q)\land R \\ \hline T & T & T & T\\ T & T & F & F\\ T & F & T & T\\ T & F & F & F\\ F & T & T & T\\ F & T & F & F\\ F & F & T & F\\ F & F & F & F\\ \end{array} \qquad \begin{array}{ll} \phantom{\lnot}P, \phantom{\lnot}Q, \phantom{\lnot}R & \vdash \ \phantom{\lnot\bigl(}(P\lor Q) \land R \\ \phantom{\lnot}P, \phantom{\lnot}Q, \lnot R & \vdash \ \lnot\bigl((P\lor Q) \land R\bigr) \\ \phantom{\lnot}P, \lnot Q, \phantom{\lnot}R & \vdash \ \phantom{\lnot\bigl(}(P\lor Q) \land R \\ \phantom{\lnot}P, \lnot Q, \lnot R & \vdash \ \lnot\bigl((P\lor Q) \land R\bigr) \\ \lnot P, \phantom{\lnot}Q, \phantom{\lnot}R & \vdash \ \phantom{\lnot\bigl(}(P\lor Q) \land R \\ \lnot P, \phantom{\lnot}Q, \lnot R & \vdash \ \lnot\bigl((P\lor Q) \land R\bigr) \\ \lnot P, \lnot Q, \phantom{\lnot}R & \vdash \ \lnot\bigl((P\lor Q) \land R\bigr) \\ \lnot P, \lnot Q, \lnot R & \vdash \ \lnot\bigl((P\lor Q) \land R\bigr) \\ \end{array}

How can we prove this lemma? Well, every WFF is a finite sequence of symbols, and the proof of this property proceeds by induction on the length of A{\cal A}.

In the base case, A{\cal A} is a propositional variable (and we just use the corresponding assumption) or a constant (and we either proof \top or ¬\lnot\bot as needed).

In the inductive case, we consider all the different kinds of WFF that A{\cal A} could be:

  • If A{\cal A} is a conjunction of the form CD{\cal C}\land {\cal D}, then (since C{\cal C} and D{\cal D} are strictly smaller than A{\cal A}) we can apply the inductive hypotheses to both C{\cal C} and D{\cal D}. Then:
    • If MM makes A{\cal A} true, it must be because MM makes C{\cal C} true and MM makes D{\cal D} true. So by the inductive hypothesis, we can assume that M  C\ldots M\ldots \ \vdash \ {\cal C} and M  D\ldots M\ldots \ \vdash \ {\cal D}. Putting these together (with the I\land I rule) guarantees we can prove M CD\ldots M\ldots \ \vdash {\cal C}\land {\cal D}. That is, M  A\ldots M\ldots \ \vdash \ {\cal A}.
    • If MM makes A{\cal A} false, it must be because MM makes C{\cal C} false or because MM makes D{\cal D} false (or both). In the first case, the inductive hypothesis tells us that M  ¬C\ldots M\ldots \ \vdash \ \lnot {\cal C}, and in the other cases, we can show that M  ¬D\ldots M\ldots \ \vdash \ \lnot {\cal D}. Either of these proofs can be extended (with a few more proof steps) to show that M  ¬(CD)\ldots M\ldots \ \vdash \ \lnot ({\cal C}\land {\cal D}). That is, M  ¬A\ldots M\ldots \ \vdash \ \lnot {\cal A}.
  • If A{\cal A} is a disjunction, implication, or negation, then we proceed similarly.

Step 2: Completeness for Tautologies

Lemma 2

For all B{\cal B},

B\vDash {\cal B} implies B\vdash {\cal B}.

That is, tautologies (formulas true in every model) are provable in Natural Deduction from no assumptions.

The proof works as follows: Suppose the propositional variables in B{\cal B} are p1,,pnp_1,\ldots,p_n. Then we can apply LEM and E\lor E to consider all 2n2^n cases of those propositional variables being assumed true or false. For example, in the case where n=2n=2, we set up a proof with the following form, where we have to prove B{\cal B} in 22=42^2 = 4 sub-subcases:

Since B{\cal B} is a tautology, Lemma 1 guarantees that

¬P,¬Q  B¬P,¬Q  B¬P,¬Q  B¬P,¬Q  B\begin{array}{l} \phantom{\lnot}P, \phantom{\lnot}Q\ \vdash \ {\cal B}\\ \phantom{\lnot}P, \lnot Q\ \vdash \ {\cal B}\\ \lnot P, \phantom{\lnot}Q\ \vdash \ {\cal B}\\ \lnot P, \lnot Q\ \vdash \ {\cal B}\\ \end{array}

and so the gaps in the above proof (lines 5, 7, 11, and 13) can be filled.

Step 3: Completeness

Corollary (Completeness)

For all A1,,An,B{\cal A}_1,\ldots,{\cal A}_n,{\cal B},

A1,,AnB{\cal A}_1,\ldots,{\cal A}_n \vDash {\cal B} implies A1,,AnB{\cal A}_1,\ldots,{\cal A}_n \vdash {\cal B}.

The argument goes as follows:

  1. Assume A1,,AnB{\cal A}_1,\ldots,{\cal A}_n \vDash {\cal B} (i.e., that B{\cal B} is true in every model where the A{\cal A}’s are true).
  2. Then by the truth table for implication, (A1An)B\vDash ({\cal A}_1\land\cdots\land {\cal A}_n) \to {\cal B}.
  3. By Lemma 2, (A1An)B\vdash ({\cal A}_1\land\cdots\land {\cal A}_n) \to {\cal B}.
  4. Using that proof and the I\land I and E\to E rules, we can build a proof showing A1,,AnB{\cal A}_1,\ldots,{\cal A}_n \vdash {\cal B}.