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.

Rules of inference

A truth table certifies that no counterexample exists and gives no account of why the conclusion follows, which is the difference between a verdict and a proof.

There is a second reason to want something better, and it is arithmetic: the previous lessons' method doubles in size with every atom, so an argument with thirty atoms is a billion rows. This lesson replaces enumeration with derivation. A derivation is a numbered list of formulas, each one either a premise or the result of applying a stated rule to earlier lines, ending at the conclusion. Nobody has to trust the writer, because every line names what it came from, and checking a derivation is mechanical even when finding it was not.

The system built here is natural deduction, designed by Gerhard Gentzen in 1934 with the explicit aim of matching how mathematicians actually argue. Its organising idea is that each connective gets exactly two rules: one to introduce it and one to eliminate it.

The shape of a derivation

A derivation is written in three columns: the line number, the formula, and the justification, which names the earlier lines used and the rule applied. Premises are justified by the word "premise" and by nothing else.

Here is the smallest interesting one, the chain from the first lesson. From PQ, QR and P, derive R.

#FormulaJustification
1PQpremise
2QRpremise
3Ppremise
4Q1, 3, E
5R2, 4, E

Two things are worth noticing before any rule is stated. Each new line is a formula that must be true whenever the lines it cites are true, which is the only property a rule needs. And the derivation is checkable line by line without ever considering the argument as a whole, which is exactly what a table cannot offer.

When the premises Γ yield φ by such a derivation, write Γφ, read "Γ proves φ". Keep it firmly apart from Γφ from the third lesson, which was about rows of a table. One is a claim about what can be written down with these rules, the other about what is true in every valuation, and the relation between them is the subject of the end of the next lesson.

Rules for conjunction

Conjunction is the easiest connective and shows the pattern.

Conjunction introduction (I): from φ and ψ on any two earlier lines, write φψ. Conjunction elimination (E): from φψ, write either φ or ψ.

Both are justified by the table. The introduction rule is sound because the only row where a conjunction is false is one where a conjunct is false, so if both conjuncts are true on their lines, the conjunction cannot be false. The elimination rule is sound because a true conjunction has both parts true.

That justification is the pattern for every rule below, and it is why the system is not a set of conventions. A rule is admitted only if it can never take you from true lines to a false one, and the truth tables are the court of appeal.

Rules for the conditional

Conditional elimination (E) is modus ponens: from φψ and φ, write ψ. It is sound because the only row where a conditional is true with its antecedent true has the consequent true as well, which is a restatement of the single false row of the conditional table.

There is no introduction rule here yet. To write a conditional you must be able to suppose its antecedent, and supposing needs machinery that the next lesson supplies. Until then the system can take conditionals apart and cannot build them, which is a real gap and worth feeling rather than patching.

Three further rules about conditionals are derived: each can be reconstructed from the basic ones, and each is used often enough to be worth naming. Modus tollens (MT): from φψ and ¬ψ, write ¬φ. Hypothetical syllogism (HS): from φψ and ψχ, write φχ. Disjunctive syllogism (DS): from φψ and ¬φ, write ψ.

Calling them derived matters for a reason that will return in the next lesson. A small set of basic rules is easier to prove things about, and a large set is easier to work with, so systems keep the basic set minimal and then license the convenient ones once. Nothing is lost either way.

Example. Derive R from the premises (PQ)R, P, SQ and S.

The conclusion is the consequent of the first premise, so the target is its antecedent, PQ. P is already given, and Q is one step from the last two premises.

#FormulaJustification
1(PQ)Rpremise
2Ppremise
3SQpremise
4Spremise
5Q3, 4, E
6PQ2, 5, I
7R1, 6, E

The strategy generalises: look at what the conclusion is a part of, and work backwards to what would deliver it. Derivations are found from both ends and written forwards.

Now you. Derive D from AB, BC, ¬C and AD.

Answer
#FormulaJustification
1ABpremise
2BCpremise
3¬Cpremise
4ADpremise
5AC1, 2, HS
6¬A5, 3, MT
7D4, 6, DS

Rules for disjunction

Disjunction introduction (I): from φ, write φψ for any ψ at all. This looks like cheating. From "the sample is copper" it licenses "the sample is copper or the moon is hollow", which no sensible person would say.

It is nevertheless sound, and the table shows why immediately: a disjunction is true whenever either side is true, so a true line cannot yield a false disjunction. What offends is not the truth of the conclusion but its uselessness, and logic guarantees only truth preservation. The rule earns its place because a disjunction is the input to disjunctive syllogism and to argument by cases, so manufacturing one deliberately is often the step that makes a proof go through.

Elimination for disjunction is the hard one, because knowing φψ tells you almost nothing on its own. The honest rule is argument by cases: show that the conclusion follows from φ and also from ψ. That needs suppositions again, so like conditional introduction it waits for the next lesson. Disjunctive syllogism is the poor relation available in the meantime, and it works only when one disjunct can be ruled out.

Rules for negation and the biconditional

Double negation elimination (¬¬E): from ¬¬φ, write φ. Its converse, introducing a double negation, is equally sound, and both follow from the one-line table for ¬¬P.

Introducing a negation properly means proving that an assumption leads to disaster, which again waits for the next lesson. So negation, like the conditional and the disjunction, currently has an elimination rule and no introduction rule, and the pattern of what is missing is now unmistakable.

The biconditional is handled by trading it for two conditionals. Biconditional elimination (E): from φψ, write φψ, or write ψφ. Biconditional introduction (I): from φψ and ψφ, write φψ. This one is available now because it does not need a supposition, only two conditionals already in hand, though in practice those conditionals will have come from the next lesson's machinery.

Example. Derive ¬B from (AB)C, A and ¬C.

Modus tollens on the first and third premises gives the negation of the antecedent, and the rest is reading what that negation says.

#FormulaJustification
1(AB)Cpremise
2Apremise
3¬Cpremise
4¬(AB)1, 3, MT
5¬A¬B4, De Morgan
6¬¬A2, double negation
7¬B5, 6, DS

Lines 5 and 6 use equivalences from the previous lesson as rewriting steps, which is legitimate because equivalent formulas are interchangeable everywhere. Many textbooks list those equivalences among the rules for exactly this reason, and the derivation is shorter for it.

Now you. Derive QS from PQ, RS and PR.

Answer
#FormulaJustification
1PQpremise
2RSpremise
3PRpremise
4P3, E
5R3, E
6Q1, 4, E
7S2, 5, E
8QS6, 7, I

Finding a derivation

The rules say what may be written; they do not say what to write, and that is a genuine difficulty rather than a lack of practice. Three habits cover most cases.

Work backwards from the conclusion. If it is a conjunction, plan to get both halves and use I. If it is an atom sitting as the consequent of a premise, plan to get that premise's antecedent. If it appears as a disjunct, plan to eliminate the other disjunct.

Take every premise apart as far as it goes. Conjunctions should be split immediately, biconditionals turned into their two conditionals, and double negations removed, because a formula buried inside a compound cannot be used.

Watch for a negation among the premises. It is almost always there to fire modus tollens or disjunctive syllogism, and spotting which premise it is aimed at usually unlocks the problem.

Example. Derive S from PQ, PR, ¬R and QS.

S is the consequent of the fourth premise, so the target is Q. Q is the right-hand side of the biconditional, so it will come from P, and P comes from the second and third premises.

#FormulaJustification
1PQpremise
2PRpremise
3¬Rpremise
4QSpremise
5P2, 3, DS
6PQ1, E
7Q6, 5, E
8S4, 7, E

Disjunctive syllogism at line 5 works with the negated disjunct on the right, which is fine: the rule cares that one disjunct is denied, not which.

Now you. Derive C from AB, ¬A, BD and DC.

Answer
#FormulaJustification
1ABpremise
2¬Apremise
3BDpremise
4DCpremise
5B1, 2, DS
6BD3, E
7D6, 5, E
8C4, 7, E

What the system cannot yet do

Count the gaps. Conjunction has both rules. The biconditional has both. The conditional, the disjunction and the negation each have an elimination rule and no way to be introduced, apart from the disjunction's near-useless one.

The consequence is severe. This system cannot derive PP, the most obvious tautology there is, because with no premises there is nothing to eliminate and no way to build an arrow. It cannot prove any tautology at all from no premises. It cannot use a disjunction except by killing one side. Whatever else it is, it is not complete.

Every one of those gaps has the same cause. Building a conditional requires reasoning under a supposition you do not believe; building a negation requires assuming something in order to wreck it; using a disjunction requires taking each case in turn as a temporary assumption. Suppositions are the missing machinery, and they need a bookkeeping discipline, since a formula proved under an assumption must not escape and be used as though it had been proved outright. That discipline, and the two most important proof techniques in mathematics that come out of it, are the next lesson.