Summary
Until now De Morgan's laws and the distributive laws have been stated for two terms; normal forms, by contrast, gather conjunctions and disjunctions of any number of terms, and require those laws in that generality. This lesson defines by recursion the conjunction and the disjunction of a list of formulas , which are written and , associating to the left, and proves by induction on the number of terms the value lemma (a conjunction is true if and only if all its terms are; a disjunction, if and only if some term is), generalized associativity, which licenses regrouping, the independence of order and of repetitions, the generalized De Morgan laws and generalized distributivity in the form that the lesson on normal forms will use: the conjunction of two disjunctions, of and of terms, is equivalent to the disjunction of the conjunctions of one term from each, and dually. The problems count valuations, locate the error in a proof that passes off a regrouping as a definition, measure the growth of a distribution and obtain from it a tautology of terms.
Learning objectives
- Write conjunctions and disjunctions of terms with the notation and , unfold them as strings associated to the left and compute their truth value with the value lemma.
- Prove by induction on the number of terms generalized associativity, the independence of order and of repetitions and the generalized De Morgan laws, distinguishing at each step identity of strings from semantic equivalence.
- Prove generalized distributivity and its dual by organizing the induction on two indices, and count the terms that a distribution produces.
- Locate the error in a proof by induction whose base case is miswritten or whose step hides a regrouping, and repair it.
Laws for any number of terms
The lesson on semantic consequence and equivalence established the laws of equivalence for two terms: among them, the commutativity and associativity of and of , De Morgan's laws and the two distributivities. Now, a formula in disjunctive normal form is a disjunction of conjunctions, each with as many terms as needed, and transforming a formula into that form requires negating, regrouping and distributing conjunctions and disjunctions of any length. If this is so, the binary laws do not suffice as they stand: they must be extended to terms, and this must be done once and for all .
For each fixed , the De Morgan law of terms could be verified with a truth table of rows, written with variables, and the uniform substitution of the previous lesson, applied to the biconditional between both sides, would extend it to arbitrary formulas. But there are infinitely many values of , and no number of tables exhausts them. It follows that the claim “for every ” is not an equivalence between two formulas but a statement about infinitely many equivalences, formulated in the metalanguage; its proof is, like those of the lesson on induction on the natural numbers and on formulas, an external proof, and its instrument is induction on the number of terms. The notation also belongs to the metalanguage: it is not a new symbol of the language but a name for a string of circles and disks, just as is.
Three relations that must not be confused should be fixed from the outset. The equality says that and are the same string; definitions, which are written with , introduce names for strings, and what is obtained by unfolding a definition is equal, not merely equivalent. Semantic equivalence says that for every valuation . The provable equivalence of the unit on deduction says that each formula is deducible from the other. This lesson works with the first two; the third appears only in a remark.
What is used
From the lesson on the semantics of propositional logic we take valuations, functions from the variables to , and their extension to all formulas, which is written with the same letter ; the value of the defined connectives, computed from the official abbreviations: , , so that the conjunction has value if and only if its two components have value , and if and only if or ; the coincidence lemma (if two valuations agree on the variables of a formula, they agree on the formula); and the formulas and , a fixed tautology and a fixed contradiction. From the lesson on semantic consequence and equivalence we take that is reflexive, symmetric and transitive, the semantic replacement theorem and the catalogue of laws with their names: commutativity, and ; associativity, and its analogue for ; De Morgan, and ; distributivity, and ; double negation, ; idempotence, ; identity, ; and excluded middle, . The laws hold for arbitrary formulas , , , which are metavariables.
At each step of the proofs that follow, a part of a formula is replaced by an equivalent one. The semantic replacement theorem licenses this for one occurrence at a time; the following lemma, which is a particular case of it, gives it at once for the parts of a negation, a conjunction or a disjunction. It should be noted that this is not a syntactic triviality: is the string , in which occurs twice, and therefore contains eight occurrences of and eight of .
If and , then , and .
Proof
Let be any valuation. By hypothesis, and have the same value, and so do and .
The value of a negation and that of a conjunction depend only on the values of their components.
The same holds for disjunction: it has value if and only if some component has value , and the components have the same values on both sides.
Since was arbitrary, the three equivalences hold.
Loading the content…
Completed
Sign in to save your progress