Summary
Every formula determines a truth table; this lesson proves the converse statement: every table, that is, every assignment of truth values to the rows, is the table of some formula. It defines truth functions, counts those of arguments () and makes precise when a formula represents one of them. It then proves the functional completeness theorem by means of the table formula, a disjunction of conjunctions of literals built row by row, which the lesson on normal forms will use as the first proof of the existence of the disjunctive normal form. Since every formula of the course is a string of circles and disks, it follows with no further work that joint denial suffices by itself, and the lesson shows how any function is written with it. Finally, it studies which sets of connectives suffice to represent all functions: it proves a general criterion, applies it to , , , and to alternative denial, and proves that does not suffice, because all its formulas preserve the value .
Learning objectives
- Count the truth functions of arguments and decide, by means of the functions they represent, when two formulas are equivalent.
- Build, from the table of a truth function, a formula that represents it, and look for a shorter equivalent formula when that is convenient.
- Explain why, in the language of the course, joint denial suffices by itself, and write with it alone formulas that represent given functions.
- Prove that a set of connectives is adequate by expressing joint denial with its formulas.
- Prove that a set of connectives is not adequate by means of a property that all its formulas preserve.
Truth functions
The lesson on the semantics of propositional logic assigned to each formula, under each valuation, a truth value, and showed that this value depends only on the values of the variables that occur in it; hence every formula with variables has a truth table of rows. The question of this lesson is the inverse one. Given an arbitrary table, that is, a column of ones and zeros written at will next to the rows, is there a formula that has it as its table? If this holds for every table, the language has no expressive gaps: everything that can be said about the truth value of statements, as a function of their values, is said by a formula. And since in this course every compound formula is a joint denial, the answer will also tell whether a single connective suffices to say everything.
What is used from the previous lessons
A valuation is a function from the set of variables to , where is the true and the false; its extension to all formulas, also written , is defined by recursion: if and only if and . From the official abbreviations, the same lesson computed, in the theorem on the values of the defined connectives, the value of each connective; written with sums and products, they are the following, for every valuation and all formulas and :
Moreover, , which equals if and only if , and , which equals if and only if . Since the values are or , the square of a value is the value itself, , and a product of values equals if and only if each factor equals ; both observations will be used without repeating them. The coincidence lemma is also used: if two valuations agree on the variables of , that is, on the variables that are subformulas of , they give the same value. From the lesson on semantic consequence and equivalence we take semantic equivalence: when for every valuation . Finally, the letter convention of the lesson on formalization applies: , and denote the variables , and .
Truth functions and their number
Let be a natural number. A row of values is a sequence in which each is or ; the set of all of them is denoted . A truth function of arguments is a function
that assigns a truth value to each row. It is presented as a table: the rows are written in the order of the table, starting from the one in which all the values are (for two arguments, , , , ), and next to each row its value is written. A truth function is, therefore, a truth table without a formula: the right-hand column, with nothing written in its header.
For every natural number , there are exactly rows of values and truth functions of arguments.
Proof
A row is a sequence of symbols, each of which is or . If the disk is written in place of and the circle in place of , the rows correspond, one to one, to the strings of length over the two-symbol alphabet, of which there are by the first solved problem of the lesson on induction, proved there by induction on .
A truth function is determined by its values on the rows, and any choice of those values gives a function. If the values are written in the order of the table, the functions correspond, one to one, to the sequences of symbols, each or .
By the same count, applied now to sequences of length , there are to the power functions.
The first values show how fast the number grows: with five arguments there are already more than four billion functions.
The four functions of one argument are the constant , the identity, the one that changes the value and the constant ; the formulas , , and , where and are those fixed in the lesson on semantics, have, respectively, those tables. Among the sixteen functions of two arguments are those of the six connectives of the course: joint denial, disjunction, conjunction, implication, the biconditional and exclusive disjunction. Ten others remain, among them the two constants, those that take only one of the arguments into account and alternative denial, which equals only when both arguments equal ; solved problem 1 classifies them all.
Formulas that represent functions
A formula and a truth function are related as follows. If is a formula whose variables are among , is said to represent the truth function of arguments when, for every valuation ,
that is, when the table of , written with the variables , is the table of . The condition on the variables is not a detail: the formula represents no function of one argument, because its value does not depend only on that of .
Let be a formula whose variables are among . Then represents exactly one truth function of arguments, which is denoted . If is another formula whose variables are among , then if and only if .
Proof
For each row there is a valuation that gives each the value : it suffices to give the other variables the value .
If two valuations give the values of the row , they agree on the variables of , and by the coincidence lemma they give the same value. That common value is taken as ; by construction, represents .
If also represents a function , on each row we have : the represented function is unique.
If , then for every valuation the values of and of are the value of the same function on the same row; hence .
Conversely, if , then on each row the valuation gives the same value to both formulas, and therefore .
There are infinitely many formulas with variables among and only functions; therefore, many formulas represent the same function, and the proposition says that they are exactly those equivalent to one another. What remains to be known is whether every function is represented by some formula, or whether some tables are left without a formula that has them.
Loading the content…
Completed
Sign in to save your progress