Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

Proof with quantifiers

Searching for a countermodel can establish that an argument fails and can never establish that it succeeds, so predicate logic needs derivations even more than propositional logic did.

The previous lesson closed with the reason: the semantic method is no longer a procedure, since domains are unbounded and no algorithm decides validity. Derivation still works. The system of the sixth and seventh lessons carries over unchanged, and four rules are added, one to introduce and one to eliminate each quantifier. Two of the four are as simple as anything in the subject. The other two carry restrictions, and this lesson spends most of its length on those restrictions, because without them the system proves that everything is everything.

Universal elimination

Universal elimination (E): from xφ, write φ with any name substituted for x throughout.

If everything is mortal then Socrates is, and so is the alloy, and so is anything else you can name. The rule is sound because the premise says the formula holds of every object in the domain, and a name picks out one of them. There is no restriction: the name may be new or already in use, and it may be one that occurs in the premises, since instantiating a universal claim to something you already know about is exactly what the claim licenses.

Existential introduction

Existential introduction (I): from a formula containing a name, write the existential formula got by replacing that name with a variable and binding it.

If Socrates is mortal then something is. Soundness is immediate: the named object is a witness. Note that the rule may replace some or all occurrences of the name, so from Laa, "a loves a", you may infer xLxx, that someone loves themselves, or xLxa, that someone loves a, and the two are different claims.

Those two rules alone settle the argument that broke propositional logic.

#FormulaJustification
1x(MxFx)premise
2Mspremise
3MsFs1, E
4Fs3, 2, E

Four lines for the mortality of Socrates, which propositional logic could not do at all.

Universal introduction, and its restriction

To prove that everything is F, prove it of an arbitrary object.

Universal introduction (I): from φ containing a name a, write xφ with x replacing a, provided a appears in no premise and in no assumption still open.

The proviso is the whole rule. It makes a genuinely arbitrary: nothing anywhere in the proof said anything special about it, so whatever was shown of it could have been shown of any object, and the generalisation is safe. This is exactly what a mathematician means by "let n be an arbitrary integer", and the restriction is the formal version of the discipline of not smuggling in extra assumptions about n.

Drop the proviso and the system collapses. From the premise Fa, meaning that this particular alloy is magnetic, I would give xFx, that everything is magnetic. The name a occurs in a premise, so it is not arbitrary, and the restriction blocks exactly this.

Now the syllogism in full generality: from "all M are F" and "all S are M", derive "all S are F".

#FormulaJustification
1x(MxFx)premise
2x(SxMx)premise
3Saassumption
4SaMa2, E
5Ma4, 3, E
6MaFa1, E
7Fa6, 5, E
8SaFa3-7, I
9x(SxFx)8, I

Line 9 is legal because by then the assumption introducing a has been discharged: a occurs in no premise and in no open assumption. Applying I at line 7 instead would have been illegal, since the assumption at line 3 was still in force and it did say something special about a, namely that it was S. That is the single most common error in quantifier proofs, and the timing is the whole of it.

Example. Derive x(FxHx) from x(FxGx) and x(GxHx).

#FormulaJustification
1x(FxGx)premise
2x(GxHx)premise
3Faassumption
4FaGa1, E
5Ga4, 3, E
6GaHa2, E
7Ha6, 5, E
8FaHa3-7, I
9x(FxHx)8, I

The shape is identical to the syllogism, which is the point: one derivation covers every argument of that form.

Now you. Derive xGx from x(FxGx).

Answer
#FormulaJustification
1x(FxGx)premise
2FaGa1, E
3Ga2, E
4xGx3, I

Line 4 is legal because a was introduced by E from a premise that does not itself contain a, so nothing special was ever said about it.

Existential elimination, and its restriction

Knowing that something is F does not tell you which thing, so the rule cannot simply hand over a name. It works like argument by cases with a single case.

Existential elimination (E): given xφ, open a subproof assuming φ with a fresh name substituted for x, derive some conclusion ψ, and close it, writing ψ. The fresh name must not occur in any premise, in any earlier line still available, or in ψ itself.

The name is a temporary label for whatever the witness is, in the way a mathematician writes "let n be such an integer" and then never assumes anything further about it. The requirement that ψ not contain the name is what stops the label from escaping into a conclusion where it would look like a real reference.

Here is what the restriction prevents. Suppose "something is odd", xOx, and "something is even", xEx. Taking a name from each with the same letter a gives Oa and Ea, then OaEa, then x(OxEx): something is both odd and even. Freshness fails at the second step, since a already occurred, and that single requirement is all that stands between the system and arithmetic nonsense.

The other half of the restriction blocks a subtler leak. If the conclusion of the subproof were allowed to contain the fresh name, then from xFx one could assume Fb, conclude Fb, and export it, ending with a claim about a particular object that was never given.

Example. Derive x(SxPx) from x(MxPx) and x(SxMx). This is the syllogism Darii.

#FormulaJustification
1x(MxPx)premise
2x(SxMx)premise
3SbMbassumption, b fresh
4Sb3, E
5Mb3, E
6MbPb1, E
7Pb6, 5, E
8SbPb4, 7, I
9x(SxPx)8, I
10x(SxPx)2, 3-9, E

Line 9 is the crucial one. The existential is introduced inside the subproof, which removes the name b before the subproof closes, so line 10 satisfies the requirement that the conclusion be free of the fresh name. Almost every E proof ends this way.

Now you. Derive xGx from xFx and x(FxGx).

Answer
#FormulaJustification
1xFxpremise
2x(FxGx)premise
3Fbassumption, b fresh
4FbGb2, E
5Gb4, 3, E
6xGx5, I
7xGx1, 3-6, E

Both restrictions at once

The instructive proof is the one from the previous lesson's quantifier ordering, since it uses all four rules and both restrictions.

From yxRxy, derive xyRxy.

#FormulaJustification
1yxRxypremise
2xRxbassumption, b fresh
3Rab2, E
4yRay3, I
5yRay1, 2-4, E
6xyRxy5, I

Line 5 is legal because yRay contains a but not the fresh name b. Line 6 is legal because a occurs in no premise and in no open assumption, having been introduced only by an instantiation.

Now try the converse, which the previous lesson refuted with a two-object countermodel, and watch the rules refuse. From xyRxy you may instantiate to yRay, then assume Rab with b fresh. To reach xRxb you would need I on a, but you are inside a subproof whose assumption Rab contains a, so a is not arbitrary and the rule is blocked. The proof cannot be completed, which is what soundness guarantees: the rules never prove something a countermodel refutes.

Example. What is wrong with this derivation of xFx from xFx: line 1 the premise, line 2 Fa from line 1 by E, line 3 xFx from line 2 by I?

Two things, and either alone is fatal. Line 2 misuses E, which does not simply produce a line with a name in it; it requires a subproof whose conclusion is free of the fresh name. And line 3 misuses I, since a was introduced by an assumption still in force and so is not arbitrary. The result, that something being F makes everything F, is the standard demonstration of why both restrictions exist.

Now you. From xFx and xGx, is x(FxGx) derivable? If not, give a countermodel.

Answer

Not derivable, and it is invalid. Take the domain {1,2} with F true of 1 only and G true of 2 only. Both premises hold and the conclusion fails. Any attempted derivation must take a witness for each premise, and the freshness requirement forces two different names, which then cannot be conjoined into one claim.

Strategy

Quantifier proofs have a standard order of operations, and following it turns most exercises into bookkeeping.

Strip the quantifiers off the premises first. Universals come off by E, and the name to instantiate to should be chosen by looking at the conclusion, since instantiating to the wrong name is the usual reason a proof stalls. Existentials come off by opening an E subproof at once, with a name used nowhere else.

Then look at the conclusion and plan backwards. A universal conclusion means the proof will end with I, so aim at the matrix with an arbitrary name and check at the end that the name really was arbitrary. An existential conclusion means it will end with I, so aim at the matrix with any name you can get. A negated quantifier should be pushed inward with the laws of the ninth lesson before anything else, since ¬ is unusable and the ¬ it equals is not.

What the system is worth

The four rules, added to the propositional system of the seventh lesson, give a complete proof system for first-order logic. Gödel proved this in his doctoral dissertation of 1929, published in 1930: every valid first-order argument has a derivation. Soundness holds too, and by the same style of argument as before, checking each rule against the definition of truth in a model.

Completeness and undecidability sit side by side without conflict, and the combination is worth stating precisely because it is easy to garble. Every valid formula has a proof, and the proofs can be enumerated by machine, so a search will eventually find one if it exists. What no algorithm can do is tell you in advance, or after any finite time, whether the search is going to succeed. Validity is provable when it holds and not detectable when it fails.

One thing is still missing from the language, and it shows up in counting. Nothing so far can say that there are at least two things of some kind: xFxyFy is satisfied by a single object named twice, because two variables may take the same value. Saying that two objects are different needs a predicate the notation does not yet have, and that is the next lesson.