Summary
This lesson closes the unit devoted to semantics. It rebuilds the deductive chain that runs from the extension of a valuation to all formulas and from the coincidence lemma to consequence, equivalence and their two working theorems, replacement and uniform substitution; from there to the laws for any number of terms, to functional completeness and to the sets of connectives, and from there to normal forms, to their algorithm and to circuits, pointing out at each link which results it uses and in which lesson it is proved. It distinguishes what the unit proved from what it took from the previous ones, decides in three ways an argument that the course has carried along since the first unit and explains why the question that the unit leaves open, that of knowing whether what is true under every valuation coincides with what is derivable, leads to metatheory. 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.
- Explain how the recursive extension, the coincidence lemma, semantic replacement and the generalized laws lead to functional completeness, to the existence of normal forms and to the correctness and termination of their algorithm.
- Distinguish what the unit proved from what it took from the previous ones and from what it left to metatheory, in particular the coincidence of semantic consequence with derivability, and compactness.
- Solve problems that combine calculation with values, consequence, uniform substitution, sets of connectives, normal forms and circuits.
What the unit achieved
The unit set out to give meaning to the formulas of the language built in the first unit, without touching the deductive system of the second, and to obtain from that meaning procedures for deciding the questions that logic asks about them: whether a formula is valid, whether it is satisfiable, whether it follows from others, whether it says the same as another. The purpose has been fulfilled with a few reservations, each one declared in its place: bivalence and truth-functionality, which are not proved but chosen, and whose price was shown by the lesson on formalization; unique readability, definition by recursion, induction and the official abbreviations, which were proved or fixed in the first unit and are used here; and the indispensable facts about sets and functions, which were recalled where they were needed. With those reservations, the path travelled can be read as a single deductive chain in six segments, one per lesson.
The value of a formula
The lesson on the semantics of propositional logic defined a valuation as a function from the variables to and proved, with the theorem of definition by recursion on formulas, that it extends in a unique way to all formulas with a single clause: . From the official abbreviations it computed, without stipulating anything else, the value of each defined connective, written as a polynomial in the values of the components, and with it the table of implication, which is here a theorem. It proved by induction on complexity the coincidence lemma, from which it follows that the truth table, with rows, contains everything that the infinitely many valuations say about a formula with variables; it defined satisfaction, validity, satisfiability, contradiction and contingency, made precise that says that is not valid and not that it is contradictory, fixed and , and obtained the decidability of validity and of satisfiability, at an exponential cost that the directed search for a falsifying valuation reduces without eliminating it.
Consequence and equivalence
The lesson on semantic consequence and equivalence defined consequence from a set of premises, finite or infinite, and proved that it has the structural properties of deduction (reflexivity, monotonicity, cut and transitivity), with proofs that go through valuations instead of manipulating lines. The semantic deduction theorem, , was reduced to the only false row of implication, and consequence was reduced to unsatisfiability: is unsatisfiable. Semantic equivalence, defined as the equality of values, turned out to coincide with mutual consequence and with the validity of the biconditional. Its two working theorems were proved by induction on complexity: the replacement of an occurrence of a subformula by an equivalent one, with the case of the total occurrence, which cannot be omitted, and the uniform substitution of arbitrary formulas for variables, which preserves validity, equivalence and consequence. With them, the laws of the catalogue, verified as identities between polynomials, apply anywhere in any formula and can be chained.
Laws for any number of terms
The lesson on the generalized De Morgan and distributive laws defined by recursion, associating to the left, the conjunction and the disjunction of formulas, and proved by induction on the number of terms the value lemma, which says that a conjunction is true if and only if all its terms are and a disjunction if and only if some term is. With it and with the compatibility of the connectives with equivalence, it obtained generalized associativity, which was proved with a chain of equivalences so that it also holds for provable equivalence, the independence of order and of repetitions, the generalized De Morgan laws and generalized distributivity, whose induction on two indices was organized so that the induction hypothesis covers all the lengths of the second list; the dual law was obtained by De Morgan, without repeating the double induction.
Truth functions
The lesson on functional completeness travelled the opposite path, from the table to the formula. It counted the truth functions of arguments, , showed that each formula represents exactly one of them and that two formulas are equivalent if and only if they represent the same one, and proved the functional completeness theorem: the conjunction of a row is true exactly on its row, and the disjunction of the conjunctions of the rows on which the function takes the value represents it. Since that formula is a string of circles and disks, joint denial suffices by itself; with the joint denial criterion, , , and alternative denial also suffice; and with the closure principle, it proved that all the formulas of preserve , so that this set does not suffice.
Normal forms
The lesson on normal forms chose, in each class of equivalent formulas, representatives of a fixed shape. It defined literals, clauses and elementary conjunctions, and proved that the negation of a normal form is equivalent to its dual, which changes each conjunction into a disjunction and each literal into its opposite. It built from the table the canonical forms, unique once the variables are fixed, and proved the existence of both normal forms in two ways: by the table, as a corollary of functional completeness, and by induction on complexity, with the only case of joint denial, which is equivalent to the conjunction of the negations of its components, and with an induction hypothesis that asks for both forms at once, because negation interchanges them. It showed, lastly, that the validity of a conjunctive form and the satisfiability of a disjunctive one can be read at a glance in their complementary pairs.
The algorithm and the circuits
The lesson on the normal form algorithm and its applications turned the second proof of existence into a procedure that acts on written forms: eliminate the connectives other than , and , push the negations down to the variables and distribute. It proved its correctness with replacement in a written form, which adapts the replacement theorem to abbreviations, and its termination with three measures that decrease at each step, the last of which reads conjunction as a product; it also proved that the conjunctive form of necessarily has clauses, so that the growth is not a defect of the algorithm. It then obtained the normal forms of a black box from its table, shortened them by merging adjacent rows and turned them into switching circuits, whose conduction is the value of their formula.
The following figure gathers the six segments into a single chain. Each node of the column is a definition or 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 this chain does not prove (unique readability with recursion, induction and the official abbreviations, from the first unit), 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 induction and the values of the connectives are the most visited supports of the unit, and that the value lemma, although it is proved in the third lesson, supports almost everything that the last three say about conjunctions and disjunctions.
Supports of the chain
- AUnique readability and recursion. If , with the four strings formulas, then and ; hence a rule that computes the value of from , from and from their values defines a single function on formulas. It was proved in the first unit. Admitted without proof in this unit.
- BInduction. Simple and strong on the natural numbers, and on the complexity of formulas, whose only cases are the variables and joint denial . It was proved in the first unit. Admitted without proof in this unit.
- COfficial abbreviations. , , , , and . They were fixed in the first unit. Admitted without proof in this unit.
- DValues of the connectives. With and : , , , , and , where . Established in: 1. Extension of a valuation.
- ECoincidence lemma. If two valuations agree on the variables of , they give the same value; that is why the table with rows says everything. Established in: 2. Coincidence lemma and tables.
- FSemantic replacement. If and results from replacing in an occurrence of by , then . Established in: 7. Semantic replacement theorem.
- GLaws of equivalence. Double negation, idempotence, commutativity, associativity, distributivity, De Morgan, absorption, identity, domination, excluded middle and non-contradiction, for arbitrary formulas. Established in: 9. Laws of equivalence.
- HValue lemma. if and only if for every ; if and only if for some . Established in: 10. Value lemma and compatibility.
Segment 1 The value of a formula
- Compute the value of a formula with the clause of joint denial and derive from the abbreviations that of each defined connective.
- Prove the coincidence lemma and justify with it that a table with rows suffices.
- Classify formulas and sets without confusing with contradiction, and decide validity by searching for a falsifying valuation.
Extension of a valuation. Each valuation extends in a unique way to all formulas with the clause ; by unfolding the abbreviations one computes the value of , , , , and .
Rests on: A (Unique readability and recursion), C (Official abbreviations). Proved in: Semantics of propositional logic.
Coincidence lemma and tables. If and agree on , then , by induction on complexity; hence the values of under all valuations are exactly those of the rows of its table.
Uses: 1. Extension of a valuation. Rests on: B (Induction). Proved in: Semantics of propositional logic.
Classification and decision. Every formula is exactly one of three things: valid, contingent or a contradiction; is valid if and only if is a contradiction, and it is a contradiction if and only if . and the excluded middle are valid, is a contradiction, and validity and satisfiability are decided by going through the rows.
Rests on: D (Values of the connectives), E (Coincidence lemma). Proved in: Semantics of propositional logic.
Segment 2 Consequence and equivalence
- Decide consequences from finite or infinite sets, by exhibiting a countermodel or by proving that none exists.
- Apply the semantic deduction theorem and the reduction of consequence to unsatisfiability.
- Distinguish the replacement of an occurrence from uniform substitution, and prove both by induction on complexity.
- Establish equivalences by chains, naming each law correctly.
Consequence and its properties. if every valuation that satisfies satisfies ; if and only if ; reflexivity, monotonicity, cut and transitivity hold, and an unsatisfiable set has every formula as a consequence.
Uses: 3. Classification and decision. Proved in: Semantic consequence and equivalence.
Semantic deduction and unsatisfiability. , by the only false row of implication; ; and if and only if is unsatisfiable.
Uses: 4. Consequence and its properties. Rests on: D (Values of the connectives). Proved in: Semantic consequence and equivalence.
Semantic equivalence. if and only if and , if and only if ; equivalence is reflexive, symmetric and transitive, and two equivalent formulas are interchangeable as premises and as conclusions.
Uses: 4. Consequence and its properties. Rests on: D (Values of the connectives). Proved in: Semantic consequence and equivalence.
Semantic replacement theorem. If , replacing in an occurrence of by , the total occurrence included, gives a formula equivalent to ; and so does substituting all the occurrences at once.
Uses: 1. Extension of a valuation, 6. Semantic equivalence. Rests on: A (Unique readability and recursion), B (Induction). Proved in: Semantic consequence and equivalence.
Uniform substitution. If , then ; hence, if , also , and substitution preserves equivalence and consequence, but not satisfiability or contingency.
Uses: 1. Extension of a valuation, 4. Consequence and its properties, 6. Semantic equivalence. Rests on: A (Unique readability and recursion), B (Induction). Proved in: Semantic consequence and equivalence.
Laws of equivalence. The laws of the catalogue are verified as identities between polynomials with ; with replacement and transitivity, they apply to subformulas and can be chained.
Uses: 3. Classification and decision, 6. Semantic equivalence. Rests on: D (Values of the connectives), F (Semantic replacement). Proved in: Semantic consequence and equivalence.
Segment 3 Laws for any number of terms
- Unfold conjunctions and disjunctions of terms as strings associated to the left and compute their value.
- Prove by induction on the number of terms generalized associativity, the independence of order and the generalized De Morgan laws.
- Prove generalized distributivity with an induction on two indices, and count the terms it produces.
Value lemma and compatibility. If and , then , and ; a conjunction of terms has the value if and only if all its terms have the value , a disjunction if and only if some term has the value , and equivalent terms give equivalent conjunctions and disjunctions.
Uses: 6. Semantic equivalence. Rests on: D (Values of the connectives), B (Induction). Proved in: Generalized De Morgan and distributive laws.
Associativity and order. The conjunction of the conjunctions of two lists is equivalent to that of their concatenation, and every grouping is equivalent to the one associated to the left; two lists with the same terms give equivalent conjunctions and disjunctions, whatever the order and the repetitions.
Rests on: H (Value lemma), G (Laws of equivalence), B (Induction). Proved in: Generalized De Morgan and distributive laws.
Generalized De Morgan laws. and , by applying the binary law to the last join and the induction hypothesis to what remains inside.
Rests on: H (Value lemma), G (Laws of equivalence), B (Induction). Proved in: Generalized De Morgan and distributive laws.
Generalized distributivity. , with terms in lexicographic order; and its dual, which distributes the disjunction of two conjunctions, by De Morgan.
Uses: 11. Associativity and order, 12. Generalized De Morgan laws. Rests on: H (Value lemma), G (Laws of equivalence), B (Induction). Proved in: Generalized De Morgan and distributive laws.
Segment 4 Truth functions
- Count the truth functions and decide equivalence by comparing the functions that two formulas represent.
- Build the formula of a table and write any function with joint denial alone.
- Prove that a set of connectives is adequate with the joint denial criterion, or that it is not with a property that its formulas preserve.
Truth functions. There are truth functions of arguments; a formula with variables among represents exactly one of them, , and .
Uses: 6. Semantic equivalence. Rests on: E (Coincidence lemma). Proved in: Functional completeness.
Functional completeness. The conjunction of a row has the value exactly on its row; the disjunction of the conjunctions of the rows on which has the value , or if there are none, represents ; and every formula is equivalent to the formula of its table.
Uses: 14. Truth functions. Rests on: H (Value lemma), D (Values of the connectives). Proved in: Functional completeness.
Adequate and inadequate sets. Joint denial suffices, because the abbreviations can be unfolded; if the formulas of express the value , is adequate, as are , , and ; the formulas of have the value when all the variables have the value , and that set is not adequate.
Uses: 15. Functional completeness. Rests on: C (Official abbreviations), B (Induction), D (Values of the connectives). Proved in: Functional completeness.
Segment 5 Normal forms
- Recognize literals, clauses and normal forms, distinguishing the shape of the string from its meaning.
- Build the canonical forms from the table and prove their uniqueness.
- Prove by induction the existence of normal forms, with the induction hypothesis that asks for both.
- Decide at a glance the validity of a conjunctive form and the satisfiability of a disjunctive one.
Literals and duality. ; an elementary conjunction is satisfiable if and only if it contains no complementary pair, and a clause is valid if and only if it contains one; the negation of a normal form is equivalent to its dual, so that the conjunctive form of is the dual of the disjunctive form of .
Uses: 12. Generalized De Morgan laws. Rests on: G (Laws of equivalence), F (Semantic replacement), H (Value lemma). Proved in: Normal forms.
Canonical forms. If is satisfiable, it is equivalent to its disjunctive canonical form, and if it is not valid, to the conjunctive one; once the variables are fixed, two canonical forms are equivalent if and only if they are the same string, and two satisfiable formulas are equivalent if and only if they have the same disjunctive canonical form.
Uses: 15. Functional completeness, 17. Literals and duality. Rests on: H (Value lemma), E (Coincidence lemma). Proved in: Normal forms.
Existence by induction. ; normal forms are preserved under conjunction and disjunction, the disjunctive form of a conjunction and the conjunctive form of a disjunction by generalized distributivity; by induction, with the induction hypothesis for both forms, every formula has a disjunctive form and a conjunctive one.
Uses: 17. Literals and duality, 11. Associativity and order, 13. Generalized distributivity. Rests on: B (Induction), F (Semantic replacement). Proved in: Normal forms.
What can be seen at a glance. A conjunctive form is valid if and only if each clause contains a complementary pair; a disjunctive form is satisfiable if and only if some elementary conjunction contains none.
Uses: 17. Literals and duality. Rests on: H (Value lemma). Proved in: Normal forms.
Segment 6 The algorithm and the circuits
- Apply the rewriting algorithm and choose the elimination of the biconditional that is convenient.
- Prove its correctness and its termination, and explain why the conjunctive form can grow exponentially.
- Obtain and simplify the normal forms of a black box, and design switching circuits with them.
Correctness and termination of the algorithm. Replacing a written subform by an equivalent one gives an equivalent written form; each rule is an equivalence, and an irreducible written form is a normal form grouped in some way; the measures , , with , and , with , decrease at each step.
Uses: 19. Existence by induction, 11. Associativity and order. Rests on: G (Laws of equivalence), D (Values of the connectives), B (Induction). Proved in: The normal form algorithm and its applications.
Exponential growth. is equivalent to a conjunctive form with clauses, and every equivalent conjunctive form has at least non-valid clauses.
Uses: 19. Existence by induction, 17. Literals and duality. Rests on: H (Value lemma). Proved in: The normal form algorithm and its applications.
Adjacent rows and circuits. and its dual; a series-parallel circuit conducts in the state if and only if , and every truth function is realized by some circuit.
Uses: 15. Functional completeness, 18. Canonical forms, 17. Literals and duality, 11. Associativity and order. Rests on: G (Laws of equivalence), F (Semantic replacement), D (Values of the connectives), B (Induction). Proved in: The normal form algorithm and its applications.
Towards metatheory. The chain stops where semantics reaches a procedure for every question about formulas. It remains to know whether what is true under every valuation is exactly what is deduced in the system: the next unit will compare both notions.
Loading the content…
Completed
Sign in to save your progress