“[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,
A1,…,An⊢B implies A1,…,An⊨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 n with this property to a proof of length n+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,
A1,…,An⊨B implies A1,…,An⊢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 M is a model in propositional logic then we will write
…M… to mean the list of literals
(propositional variables and negated propositional variables) that are
true in M.
For example, if M sets P true, Q false, and R true, then
…M… will be the list P,¬Q,R
Conversely if M sets Q true, and P and R and S false, then
…M… would be the list ¬P,Q,¬R,¬S
Lemma 1
The following property holds for all WFFs A and all models M:
- if M makes the WFF A true, then
…M… ⊢ A.
- if M makes the WFF A false, then …M… ⊢ ¬A.
That is, if we explicitly assume the propositional variables involved in
A are true or false, then A is provable if the truth tables tell us
A should be true, and ¬A is provable if the truth tables tell
us A should be false.
Example
For example,
PTTTTFFFFQTTFFTTFFRTFTFTFTF(P∨Q)∧RTFTFTFFF¬P,¬Q,¬R¬P,¬Q,¬R¬P,¬Q,¬R¬P,¬Q,¬R¬P,¬Q,¬R¬P,¬Q,¬R¬P,¬Q,¬R¬P,¬Q,¬R⊢ ¬((P∨Q)∧R⊢ ¬((P∨Q)∧R)⊢ ¬((P∨Q)∧R⊢ ¬((P∨Q)∧R)⊢ ¬((P∨Q)∧R⊢ ¬((P∨Q)∧R)⊢ ¬((P∨Q)∧R)⊢ ¬((P∨Q)∧R)
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.
In the base case, A is a propositional variable (and we just use the
corresponding assumption) or a constant (and we either proof ⊤ or
¬⊥ as needed).
In the inductive case, we consider all the different kinds of WFF that
A could be:
- If A is a conjunction of the form C∧D, then (since C and
D are strictly smaller than A) we can apply the inductive
hypotheses to both C and D. Then:
- If M makes A true, it must be because M makes C true and
M makes D true. So by the inductive hypothesis, we can
assume that …M… ⊢ C and
…M… ⊢ D. Putting these together (with the
∧I rule) guarantees we can prove
…M… ⊢C∧D. That is,
…M… ⊢ A.
- If M makes A false, it must be because M makes C false
or because M makes D false (or both). In the first case, the
inductive hypothesis tells us that …M… ⊢ ¬C, and in the other cases, we can show that
…M… ⊢ ¬D. Either of these proofs can
be extended (with a few more proof steps) to show that
…M… ⊢ ¬(C∧D). That is,
…M… ⊢ ¬A.
- If A is a disjunction, implication, or negation, then we proceed
similarly.
Step 2: Completeness for Tautologies
Lemma 2
For all B,
⊨B implies ⊢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
are p1,…,pn. Then we can apply LEM and ∨E to consider all
2n cases of those propositional variables being assumed true or
false. For example, in the case where n=2, we set up a proof with the
following form, where we have to prove B in 22=4 sub-subcases:
Since B is a tautology, Lemma 1 guarantees that
¬P,¬Q ⊢ B¬P,¬Q ⊢ B¬P,¬Q ⊢ B¬P,¬Q ⊢ B
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,
A1,…,An⊨B implies A1,…,An⊢B.
The argument goes as follows:
- Assume A1,…,An⊨B (i.e., that B is true in every
model where the A’s are true).
- Then by the truth table for implication,
⊨(A1∧⋯∧An)→B.
- By Lemma 2, ⊢(A1∧⋯∧An)→B.
- Using that proof and the ∧I and →E rules, we can build a proof showing
A1,…,An⊢B.