Summary
This lesson closes the unit devoted to metatheory and, with it, the content of the course. It rebuilds the deductive chain that runs from the validity of the axioms to the soundness of the system; from the two lemmas on joint denial to Kalmár's lemma and to completeness for finite sets of premises; from the two-witness lemma to the compactness theorem and, through it, to strong completeness; and from the clausal form to the soundness and the refutation completeness of the resolution method, pointing out at each link which results it uses and in which lesson it is proved. It shows how the three earlier parts of the course, language, deduction and semantics, converge in the coincidence of and , and what each of them contributes to that coincidence; it distinguishes what the course proved from what it assumed and from what it leaves open. It repeats in its exit assessment the skills of the entry assessment, and it ends with six challenges, harder than the problems of the lessons, which require combining the tools of several of them.
Learning objectives
- Rebuild the logical order of the results of the unit, identifying the earlier results on which each one rests and the lesson in which it is proved, and justify the order of compactness and strong completeness.
- Explain how language, deduction and semantics converge in the coincidence of and , and which result of each unit of the course is indispensable for it.
- Distinguish what the course proved from what it assumed (the axiom schemas, the primitive rules and induction) and from what it leaves open (the cost of deciding satisfiability, and logic with quantifiers).
- Solve problems that combine markings, Kalmár's lemma, uniform substitution, compactness and resolution, using in each case the easy side of the coincidence.
What the unit achieved
The unit set out to compare the two relations that the previous units had built on the same language, derivability and semantic consequence , and to prove that they coincide. The aim has been achieved without reservations in the statements: both relations are the same for every set of premises, finite or infinite, and resolution offers a third way, equally sound and complete, of deciding consequence. The reservations lie in the methods, and each one was declared in its place: the completeness of the first lesson is constructive but not practical, because it produces deductions as long as the table; compactness ensures that a valuation exists, but does not teach how to find it; and resolution decides, but its cost in the worst case is an open question. With these reservations, the path travelled can be read as a single deductive chain in four segments.
Soundness
The lesson on soundness and completeness began by fixing the vocabulary: the system is sound if , and complete if the converse holds, in three degrees (weak, for finite sets and strong). It took apart a circular argument that claims to obtain completeness “by soundness” by passing from to , a step that is the contrapositive of weak completeness, and it showed that the two properties are independent. It then proved that every instance of A1, A2 and A3 is valid, by supposing a valuation that refuted it and arriving, through the false row of the implication, at impossible values; and, by strong induction on the number of lines, soundness, with one case for the axioms, another for the premises, semantic modus ponens and, for the rule of replacement of double negation, the equivalence with the semantic replacement theorem. The property transmitted from line to line is not validity but satisfaction by a fixed valuation that satisfies the premises, and that is why soundness holds with premises, even infinitely many. From it followed the consistency of every satisfiable set, in particular that of the system, and the method that the unit on deduction lacked: a countermodel proves that a deduction does not exist.
Kalmár and finite completeness
The same lesson proved the converse in two steps. The first is Kalmár's lemma: if the variables of are among , then for every valuation , where is if and otherwise; the system deduces from each row what the row says about the formula. Its induction on complexity has a single compound case, , because joint denial is the only primitive connective, and within it three subcases, which call for two lemmas of the system, the second in two forms: , deduced with conjunction introduction, double negation and two applications of the rule RDN, and and , deduced with disjunction introduction. The second step eliminates the premises: if is a tautology, it is deduced from the premises of each of the rows, and proof by cases eliminates the literal of the last variable, then that of the last but one, until reaching , weak completeness. With the semantic deduction theorem and the converse of the syntactic one, completeness was extended to finite sets of premises; whence, for finite premises, deduction and consequence coincide, provable equivalence coincides with semantic equivalence and derivability is decidable, because the table answers for it.
Compactness and strong completeness
The lesson on the compactness theorem faced the infinite case, which Kalmár's lemma does not reach, because infinitely many premises cannot be discharged into an implication. It proved, without mentioning any deduction, that a set is satisfiable if and only if each of its finite subsets is. A sequence of values for is good if every finite subset of the set is satisfied by some valuation that extends it; the two-witness lemma ensures that a good sequence extends to a good one, because if neither of the two extensions were good, the union of the two finite witnesses would contradict that the sequence is good; and the valuation that results from always preferring the value when possible satisfies each formula, by the coincidence lemma, because each formula has finitely many variables. The construction does not need the axiom of choice, because the variables are numbered and each step has a rule. From compactness followed its equivalent forms, the unsatisfiability form and the consequence form; from the latter, from completeness for finite sets of premises and from monotonicity, strong completeness; and from this and from soundness, the full coincidence: for every , and a set is consistent if and only if it is satisfiable. The lesson warned that this order is not a matter of preference: obtaining compactness from a strong completeness not yet available would be circular. It ended with the coloring of countable graphs, which translates an infinite problem into a set of formulas whose finite parts are satisfiable, and with the limits of what a set of formulas can express.
Resolution
The lesson on the resolution method replaced sets of formulas by sets of clauses, each a finite set of literals, with two representations: the clausal form, which has the same models, and the definitional form, which introduces a new variable for each compound written subform, preserves only satisfiability and grows like the formula, not like a power of two. A single rule acts on clauses: from and , with and , one infers , and a refutation is a derivation that reaches . Soundness was proved like that of the system, by induction on the derivation and with the resolvent as a consequence of its premises; refutation completeness, by induction on the number of variables, with the elimination of a variable, which preserves satisfiability and whose proof constructs a model; and for infinite sets, once again with compactness. It followed that if and only if a clausal form of has a refutation, and that saturation, finite because with variables there are no more than clauses, decides satisfiability without tables. The lesson presented the satisfiability problem, whose cost in the worst case nobody knows, and two cases that are decided quickly, Horn clauses and clauses of two literals.
The following figure gathers the four segments into a single chain. Each node of the column is a result, numbered according to the logical order and joined by an arc to the earlier links that its proof uses; around them float the supports, that is, the principles and tools to which the chain turns again and again, each joined by a solid line to the links that rest on it and by a dotted one to the link where it is established, except those that come from the previous units, which are drawn as rings. Clicking a support highlights all the links that use it, and each link refers to the lesson in which it is proved. Note that soundness and compactness, established one in the first segment and the other in the third, reappear in the following segments, and that the most visited support of the unit is valuations and coincidence, followed by induction, in its three forms: on the lines of a deduction, on the complexity of a formula and on the number of variables of a set of clauses.
Supports of the chain
- AInduction and recursion. Strong induction on the natural numbers, induction on the complexity of formulas, with the single compound case , and definition by recursion. They were proved in the first unit. Admitted without proof in this unit.
- BCourse system. A1, A2 and A3, modus ponens and the rule RDN; reflexivity, monotonicity, modus ponens between deductions, finiteness and . They were established in the second unit. Admitted without proof in this unit.
- CDerived techniques. Double negation, from the lesson on the four techniques; conjunction and disjunction introduction and proof by cases (if and , then ), from the lesson on the techniques of classical logic. They were proved in the second unit. Admitted without proof in this unit.
- DValuations and coincidence. ; if two valuations agree on , they give the same value; validity is decided with rows. They were proved in the third unit. Admitted without proof in this unit.
- ESemantic consequence. False row of the implication, monotonicity, , if and only if is unsatisfiable, and the semantic replacement theorem. They were proved in the third unit. Admitted without proof in this unit.
- FConjunctive forms. Value lemma; every formula is equivalent to a conjunctive normal form, which may need clauses; a disjunction of literals is valid if and only if it contains a complementary pair. They were proved in the third unit. Admitted without proof in this unit.
- GSoundness. If , then , for every set ; a countermodel proves that a deduction does not exist. Established in: 2. Soundness.
- HCompactness. A set of formulas is satisfiable if and only if every finite subset of it is satisfiable; whence what is unsatisfiable is already so in a finite part. Established in: 11. Compactness theorem.
Segment 1 Soundness
- Check that every instance of the schemas is valid without building its table.
- Prove soundness by strong induction on the number of lines, with the case of the rule of replacement of double negation.
- Prove with a countermodel that a formula is not deduced, and obtain consistency from soundness.
Validity of the axioms. Every instance of A1, A2 and A3 is valid: a valuation that refuted it would require, through the false row of the implication, impossible values.
Rests on: E (Semantic consequence). Proved in: Soundness and completeness.
Soundness. If , then , for every : by strong induction on the number of lines, with one case for the axioms, another for the premises, semantic modus ponens and, for the rule RDN, with semantic replacement.
Uses: 1. Validity of the axioms. Rests on: A (Induction and recursion), B (Course system), E (Semantic consequence). Proved in: Soundness and completeness.
Consistency and countermodels. Every satisfiable set is consistent; the system is consistent and ; if a valuation satisfies and refutes , then , and the table certifies that what is not valid is not a theorem.
Rests on: G (Soundness), D (Valuations and coincidence). Proved in: Soundness and completeness.
Segment 2 Kalmár and finite completeness
- Deduce in the system the two lemmas on joint denial, with the rule of replacement of double negation where needed.
- Prove Kalmár's lemma by induction on complexity, with a single compound case.
- Eliminate with proof by cases the premises of the rows, and discharge finite premises with the two deduction theorems.
- Decide derivability, provable equivalence and consistency from finite premises with the table.
Joint denial introduction. and : the conjunction of the negations is ; double negation removes the outer one, and the rule RDN the two inner ones.
Rests on: B (Course system), C (Derived techniques). Proved in: Soundness and completeness.
Negated joint denial. and , because is and disjunction introduction suffices.
Rests on: B (Course system), C (Derived techniques). Proved in: Soundness and completeness.
Kalmár's lemma. If , then for every valuation ; the inductive step has a single case, , with three subcases according to the values of and of .
Uses: 4. Joint denial introduction, 5. Negated joint denial. Rests on: A (Induction and recursion), D (Valuations and coincidence), B (Course system). Proved in: Soundness and completeness.
Weak completeness. If , then : Kalmár's lemma deduces from each row, and proof by cases eliminates the literals from the last variable to the first, with uses of the lemma and of proof by cases.
Uses: 6. Kalmár's lemma. Rests on: C (Derived techniques). Proved in: Soundness and completeness.
Completeness for finite sets of premises. : the semantic deduction theorem leads to a tautology, weak completeness deduces it and the converse of the deduction theorem gives the premises back.
Uses: 7. Weak completeness. Rests on: E (Semantic consequence), B (Course system). Proved in: Soundness and completeness.
Finite coincidence and decision. For finite , , and ; whence derivability from finite premises is decidable, by the table.
Uses: 8. Completeness for finite sets of premises. Rests on: G (Soundness), D (Valuations and coincidence). Proved in: Soundness and completeness.
Segment 3 Compactness and strong completeness
- Prove compactness by fixing the values of the variables one by one, with the invariant of good sequences and the two-witness argument.
- Move between the satisfiability form, the unsatisfiability form and the consequence form.
- Obtain strong completeness from compactness, without circularity, and from it the coincidence of consistency with satisfiability.
- Encode in sets of formulas problems about infinite objects and solve them with compactness.
Two-witness lemma. If the sequence of fixed values is good (every finite subset of the set is satisfied by a valuation that extends it), so is or : if neither were, the union of the two finite witnesses would contradict that is good.
Rests on: D (Valuations and coincidence). Proved in: The compactness theorem.
Compactness theorem. is satisfiable if and only if every finite subset is: is fixed at if is good and at otherwise, and the resulting valuation satisfies each formula by the coincidence lemma. The axiom of choice is not needed, because the variables are numbered.
Uses: 10. Two-witness lemma. Rests on: A (Induction and recursion), D (Valuations and coincidence). Proved in: The compactness theorem.
Equivalent forms. is unsatisfiable if and only if some finite part is; if and only if for some finite ; and this last form implies, in turn, the theorem.
Uses: 11. Compactness theorem. Rests on: E (Semantic consequence). Proved in: The compactness theorem.
Strong completeness. If , then , for every : the consequence form gives a finite , completeness for finite sets of premises gives , and monotonicity .
Uses: 8. Completeness for finite sets of premises, 12. Equivalent forms. Rests on: B (Course system). Proved in: The compactness theorem.
Deduction is consequence. for every ; the theorems are exactly the tautologies, and a set is consistent if and only if it is satisfiable.
Uses: 13. Strong completeness. Rests on: G (Soundness). Proved in: The compactness theorem.
Coloring of countable graphs. With a variable for each vertex and color, and formulas saying that each vertex has one color and only one and that neighbors differ, a countable graph admits a coloring with colors if every finite subgraph admits one.
Rests on: H (Compactness), F (Conjunctive forms). Proved in: The compactness theorem.
Segment 4 Resolution
- Represent a set of formulas as a set of clauses, by the conjunctive form or by the definitional one.
- Build refutations without eliminating two complementary pairs in one step.
- Prove the soundness and the refutation completeness of resolution, for finite sets and, with compactness, for arbitrary ones.
- Decide consequences by saturation and recognize the cases that are decided quickly.
Clausal form. A clause is a finite set of literals, satisfied if some literal takes the value , and is unsatisfiable; a clausal form of has the same models, and if and only if a clausal form of is unsatisfiable.
Rests on: F (Conjunctive forms), E (Semantic consequence). Proved in: The resolution method.
Definitional clausal form. With a new variable per written subform and its definition clauses, is equisatisfiable with and has at most clauses of at most three literals; definitional forms decide consequence from finite premises.
Uses: 16. Clausal form. Rests on: A (Induction and recursion), D (Valuations and coincidence). Proved in: The resolution method.
Soundness of resolution. , by cases on the value of ; by strong induction on the derivation, for every clause derived from , and if has a refutation, it is unsatisfiable.
Uses: 16. Clausal form. Rests on: A (Induction and recursion). Proved in: The resolution method.
Elimination of a variable. , which keeps the clauses without or and adds the resolvents on , does not contain and is equisatisfiable with ; from a model of it one obtains a model of by choosing the value of .
Uses: 18. Soundness of resolution. Rests on: D (Valuations and coincidence). Proved in: The resolution method.
Finite refutation completeness. Every finite unsatisfiable set of clauses has a refutation, by induction on the number of variables: the last one is eliminated and the premises of each resolvent are inserted.
Uses: 19. Elimination of a variable. Rests on: A (Induction and recursion). Proved in: The resolution method.
Refutation completeness. A set of clauses, finite or infinite, is unsatisfiable if and only if it has a refutation; whence if and only if a clausal form of has a refutation.
Uses: 16. Clausal form, 18. Soundness of resolution, 20. Finite refutation completeness. Rests on: H (Compactness). Proved in: The resolution method.
Saturation decides. With variables, the set of the derived clauses has at most elements; saturation terminates and decides satisfiability without tables, though not always faster than they do.
Uses: 18. Soundness of resolution, 20. Finite refutation completeness. Proved in: The resolution method.
The end of the course. The chain ends where the two faces of the course are recognized as a single relation and a method for deciding it is available. What remains open is no longer a question about propositional logic, but about its cost and about its extension to quantifiers.
Loading the content…
Completed
Sign in to save your progress