“The grand aim of all science is to cover the greatest number of empirical facts by logical deduction from the smallest possible number of hypotheses or axioms.”
—Albert Einstein
Although logical entailment is our gold standard for deciding whether a formula logically follows from a formula , it is not feasible to directly check infinitely many possible models to confirm that every models where is true also makes true.
So instead, we need a proof system for Predicate Logic; then instead of checking all possible models, it suffices to find a step-by-step argument showing that follows from using sound (truth-preserving) inference rules.
As with Propositional Logic, logicians have studied many different proof systems for Predicate Logic. Here we focus on Natural Deduction, as it has the closest connection to traditional proofs in mathematics and Computer Science.
Natural Deduction for Predicate Logic is just a simple extension of Natural Deduction for Propositional Logic . That is, just keep the same rules as before, and then add four new rules (introduction and elimination rules for the two kinds of quantifier).
We start with a relatively simple rule. The rule explains what directly follows from a universally quantified formula:
where is an arbitrary term.
If we know (or have assumed)
we can use to immediately conclude consequences such as
If the allows us to derive consequences from a universally quantified formula, the rule explains how to prove (most directly) that a universally quantified statement is true:
That is, if we can prove some formula knowing absolutely nothing about , then our proof is completely generic (would work for any value of ) and hence is true.
Knowing nothing about , we can still show that
By , it immediately follows that
which can be abbreviated as
The rule explains the most direct route to proving an existential formula true:
where is an arbitrary term.
The idea is that the easist way to prove something with a property exists is to find such a thing.
Since we know that , it follows immediately by that:
Applying the rule again to the first of these formulas, we can infer further consequences including:
Finally, the rule explains how we can derive direct consequences from an existentially-quantified formula:
where is a variable not free in any assumption.
That is, if we know something exists with property , we can give a specific name to that thing. All we know about is that it has property , but if just knowing that allows us to prove a conclusion then must be true.
The name we chose for the thing that exists is essentially arbitrary; we just have to choose any variable name (,,,…) that isn’t already being used in our proof. Since the name we choose doesn’t matter and is just a temporary choice inside our proof, we don’t let that name appear in our ultimate conclusion .
Suppose we know (i.e., everything with property also has property ) and (i.e., there exists something having property ).
Let’s see how to use the above rules to prove (i.e., there exists something having property ).
Since our second assumption tells us there exists an individual with property , we can give that individual a name, say ; we know nothing about except that is true.
Then we can apply to the first assumption and conclude . By , it follows that . Finally, by , we can conclude .
Since we proved our conclusion from the assumption that is true (knowing nothing else about ), and the conclusion doesn’t mention our temporary variable , we can use to turn our assumption into the conclusion .