Summary
This lesson opens the first unit of the course, devoted to the language of propositional logic. It presents the unit's four lessons and the thread that joins them, from the distinction between validity and truth to the formalization of English arguments; it places the unit on the complete path of the course, which goes from language to deduction, to semantics and to metatheory, and explains why syntax must precede the other three; it justifies the choice of a language of only two symbols, the circle and the disk, with a single formation rule; it specifies the little that is taken for granted, namely careful reading and elementary arithmetic; it states the problem that the unit solves, that of writing so that each expression has a single reading and of proving it for infinitely many formulas, and it gives advice for studying the unit.
Learning objectives
- Describe the sequence of contents of the unit and explain what each lesson contributes to the next.
- Place the unit on the path of the course (language, deduction, semantics and metatheory) and explain why syntax is studied before the other three parts.
- Explain, with an example, why a notation with the connective between its arguments and without parentheses is ambiguous, and why the language of circles and disks is not.
- Recognize the little that the unit presupposes and organize its study, with the entry self-assessment as the starting point.
Entry assessment
Before working through the unit, it is worth measuring the starting point. This assessment is a self-assessment: it is not graded, and its only purpose is to guide your study. Its eleven questions cover, in order, the four lessons of the unit: three the first, three the second, two the third and three the fourth. Anyone who has never studied logic should not expect to get them all right, and that does not matter: every answer, right or wrong, explains the point and names the lesson that deals with it. The same skills are measured again at the end, in the synthesis lesson; since this is the first unit of a course with no entry requirements, there are no questions about previous units.
Before starting the unit, measure your starting point. It is a short self-assessment: it is not graded and its result is stored only in your browser.
Question 1An argument is valid, and its conclusion is false. What can be asserted about its premises?
It confuses validity with truth. Validity is a property of the form: “every prime is odd; is prime; therefore, is odd” is valid, and its conclusion is false because its first premise is.It demands too much: in the argument about the number , the premise “ is prime” is true. Validity only guarantees that not all of them are true.The premises of an argument may be anything, even mere suppositions; validity says nothing about their truth, only about what happens if they are true.A valid argument cannot have all its premises true and its conclusion false: if all of them were true, the conclusion would be true. Therefore, with the conclusion false, some premise fails; one is enough.Review: What is mathematical logic
Question 2What does the sentence “‘Rome’ has four letters” speak about, and is it true?
That would hold for “Rome has four letters”, without quotation marks, where the word is used to speak about the city. With quotation marks, the sentence speaks about the word.It mixes up use and mention: if the sentence spoke about the city, it would attribute letters to it, which a city does not have; what has four letters is its name, and that is what the sentence speaks about.The sentence does not speak about itself, but about a word; it is a declarative sentence, true or false, and therefore a proposition.The quotation marks turn the expression into the name of that expression: the sentence mentions the word, it does not use it to designate the city. The word does indeed have four letters.Review: What is mathematical logic
Question 3About the list of numbers , , it is asserted: “all the numbers in the list are not prime”. What can be said about this sentence?
That is only one of its readings, the one that negates each number separately. The sentence admits another, equally grammatical, and with this list the two have different values.That is the reading “not all are prime”; the sentence also admits “none is prime”, which is false. Before evaluating an ambiguous sentence, one has to decide which of its readings is being evaluated.A paradox deduces a contradiction from acceptable hypotheses; here none is deduced: there are two readings, each with its own value. Ambiguity is not a paradox.It is a scope ambiguity: it is not known whether the negation affects each number or the whole assertion. Since is prime, the first reading is false; since is not, the second is true.Review: What is mathematical logic
Question 4How many different strings of length can be written with the two symbols and ?
Correct answer:
Each of the four places admits two symbols, and each choice gives a different string: in passing from one length to the next, the number of strings doubles, so that there are , , and strings of lengths to . Whoever obtains has multiplied by the length instead of raising it to that power; whoever obtains has added up the strings of all the lengths from to .Question 5If and , which string is the concatenation , which consists in writing after ?
That is : has been written first. Concatenation is not commutative, and the order of the letters indicates the order of the strings.A string is not a set of symbols: repeated symbols count each time they occur, and concatenation keeps all those of both strings.Concatenation produces a single string, of three symbols; the letters and only named its two parts.One writes the symbols of and then those of , in that order; the length is the sum of the lengths, .Question 6In the language of the course, the variables are the strings , , , and so on, and the single rule says that, if and are formulas, so is . Which of the following strings is a formula?
It begins with a circle, so that, if it were a formula, it would be a variable; but after the variable a disk is left over, and no variable ends with two disks.The initial disk requires two formulas after it, and here there is only one, the variable .Every formula ends in a disk: the variables end that way, and the rule keeps the last symbol of . A string that ends in a circle is not a formula.It is a disk followed by the variables and : the rule applied once to two formulas.Question 7Someone proves that, for every natural number , if is even, then is even. What can this person conclude from it?
It omits the base case, which is not a formality: without it, the inductive step may be true for a property that never holds, like this one.The inductive step establishes no starting point; to conclude from on, one would have to prove that is even, and it is not.Without a true case to start from, the inductive step does not guarantee a single one; and in this case there is none.The inductive step only asserts that the property is transmitted from each natural number to the next; if it does not hold for the first, the chain of implications is not anchored to anything. Here is odd, and the product of odd numbers is odd.Question 8To prove that all the formulas of the language of circles and disks have a certain property, what is it enough to prove?
It leaves out the other variables and almost all compound formulas: the negation of is the particular string , and formulas such as , with two different components, are not negations.The only formula of length is ; checking one case, or many, says nothing about the infinitely many others. A step is needed that transmits the property to compound formulas.No number of verified examples proves an assertion about infinitely many formulas; that is why the unit builds induction.It is the principle of induction on the complexity of formulas: its base case covers all the initial pieces, and its inductive step, the single formation rule. Every formula is obtained with those pieces and that rule, so that none is left out.Question 9With the dictionary , “it rains”, and , “the match is called off”, how is “the match is called off only if it rains” formalized?
It confuses “only if” with “if”: this formula says that rain is enough to call off the match, and the statement does not assert that; it only says that without rain there is no calling off.It adds a condition that the statement does not contain: that rain is enough to call off the match. “Only if” gives a single direction.It asserts that it rains and that the match is called off, whereas the statement is conditional: it is also true on a day without rain on which the match is played.“ only if ” says that does not happen without : if the match is called off, then it rains. The arrow points towards what follows “only if”, which is the necessary condition.Question 10With the dictionary , “it is raining”, and , “it is cold”, which formula literally follows the construction “it is neither raining nor cold”?
This formula is true as soon as at least one of the two things fails to hold, for example if it is raining and not cold; the statement, by contrast, requires that both fail.It says “not both”, which is true when only one of them holds; “neither… nor” requires that neither holds.It would say “it is neither not raining nor not cold”, that is, that it is raining and cold: joint denial already contains the negations, and negating its parts doubles them.Joint denial is true exactly when its two parts are false, and it is read “neither nor ”: English has a construction that corresponds exactly to the only primitive connective of the course.Question 11In which cases is the implication of the course, called the material conditional, false?
The other way round: with a false antecedent, the implication is true, whatever may be. “For every , if is a multiple of , it is even” must be true also with .The material conditional asserts no connection, causal or of meaning, between its parts: its truth depends only on the truth of and of .It confuses the implication with its converse, . With a true consequent, is true.The implication abbreviates , which is true when is false or is true; it fails in a single case. That is the only thing a conditional forbids.
The contents of the unit
This unit serves, above all, the first of the course objectives, to distinguish the object language from the metalanguage and to decide with the formation rules whether a string is a formula; it also serves the second, to formalize statements and arguments of natural language, and it prepares the fourth, to prove metatheorems by induction, which will accompany the course up to its last unit. Its goal is that whoever completes it should know what logic studies, have at hand a formal language built with full rigor, know how to prove properties of all its formulas and be able to translate into it statements and arguments of English, knowing what the translation preserves and what it loses. Its four lessons form a chain in which each one rests on the previous ones.
- What is mathematical logic. It delimits the object of the discipline: not the truth of particular statements, but validity, the relation between premises and conclusion that guarantees that the truth of the former passes to the latter. It distinguishes validity from truth, shows why natural language, ambiguous and able to speak about itself, is not enough to study it, and establishes the distinction between object language and metalanguage. It analyzes, with their hypotheses made explicit, the liar, Berry, barber and Russell paradoxes, and it ends with the map of the course.
- The language of propositional logic. It teaches the indispensable minimum about sets and strings of symbols, counts the strings that can be written with two symbols and builds the base language: infinitely many variables written with circles and disks, a single formation rule and a closure clause, from which a principle for proving properties of all formulas is derived. It gives a procedure for deciding whether a string is a formula and builds, on the base language, the metalanguage that will be used from then on: metavariables, joint denial written with parentheses and the official abbreviations of the other connectives.
- Induction on the natural numbers and on formulas. It teaches induction on the natural numbers, simple and strong, and carries it over to formulas. With it, the lesson proves the weight lemma and, from the lemma, the unique readability theorem, which the previous lesson had stated: each compound formula decomposes in only one way. Unique readability legitimizes, finally, definitions by recursion on formulas (length, subformulas, depth) and the substitution of one subformula by another.
- The formalization of natural language. It builds the bridge between English and the formal language: the dictionary of a formalization, the reading of each connective deduced from that of the primitive connective, the subtleties of “but”, “only if” and “unless”, the scope of the connectives, the material conditional and what propositional logic cannot express. It ends by formalizing complete arguments as a set of premises and a conclusion, which the following units will submit to deduction and to semantics.
The unit ends with the synthesis and challenges lesson, which gathers what has been achieved into a deductive chain, repeats in its exit assessment the skills of the entry assessment and proposes challenges that combine several lessons.
The place of the unit in the course
For the simplest language of logic, the course goes along the complete path of a logical theory, and it does so in four parts, which are its four content units. The first, this one, fixes the language. The second, deduction, defines what it means for a formula to be obtained from a set of formulas by means of axioms and rules of inference, which will be written ; it is the syntactic face of validity, in which symbols are manipulated without attending to their meaning. The third, semantics, assigns to each formula a truth value under each valuation and defines what it means for to be a consequence of , which will be written ; it is the semantic face of validity. The fourth, metatheory, proves that both faces coincide: soundness says that everything derivable is a consequence, and completeness, that every consequence is derivable.
If this is so, syntax is not a preamble that can be cut short, but the condition of the other three parts. A deduction is a sequence of formulas, and to decide whether a sequence is one, one has to know, without hesitation, which strings are formulas and how they decompose; a valuation is extended from the variables to all formulas by recursion, and recursion gives a single value to each formula only if each formula is read in only one way; the theorems of metatheory are proved by induction, on the complexity of formulas or on the length of deductions. From this follows the order of the unit: first, what one wants to study and why a formal language is needed; then, the language; next, the instrument for proving something about all its formulas, with which unique readability is proved; and, finally, the bridge to the arguments of English, which are the reason for everything that comes before.
Why a language of circles and disks
The language of the course has an alphabet of only two symbols, the circle and the disk , and a single formation rule: if and are formulas, so is . The th variable is the string of circles followed by a disk, . At first sight, the choice is strange, because formulas written in this way are hard to read. It has, however, four precise reasons.
The first is that two symbols are enough to write infinitely many variables without leaving a finite alphabet, so that every formula is, literally, a finite string of symbols from a two-element set, and questions about the language are questions about strings, which can be counted and compared. The second is that a single rule leaves a single case in each proof by induction: what is proved for the variables and for is thereby proved for all formulas, without one case per connective. The third is that the rule puts the connective in front of its two arguments, as in the notation that Jan Łukasiewicz proposed in the 1920s, and that is why it needs no parentheses: unique readability is proved with a one-page argument, which assigns to each variable the weight and to each connective disk the weight . The fourth is that the single connective, joint denial, “neither nor ”, is enough to express all the others, as Charles Sanders Peirce observed around 1880 and Henry Sheffer published in 1913, and as the unit on semantics will prove; so the economy of the language sacrifices nothing of what propositional logic can say.
Now, the price of that economy is readability, and the unit pays it in the metalanguage: nobody will write strings of circles and disks day to day, but their names, , , , defined only once and unfoldable, at any moment, into the string they designate. Therefore, the course works with two levels at once: a minimal base language, about which theorems are proved, and a convenient notation, with which one writes; and the distinction between object language and metalanguage, which the first lesson introduces, is what makes it possible not to confuse them.
What is taken for granted
The unit starts from almost nothing. It does not presuppose having studied logic, or knowing set theory, or ever having proved a theorem: what it uses about sets is taught in the second lesson, and what it uses about induction, in the third. It presupposes only two things. The first, careful reading: in a formal language, a symbol added or omitted changes the string, and the order of the words of a definition matters as much as the words themselves. The second, the elementary arithmetic of the natural numbers, which in this course are : adding and multiplying, computing powers of , telling even numbers from odd ones and recognizing a prime number.
Anyone who wants additional support for induction can consult the lessons on the Peano axioms and on summations and induction of the course Algebra and Geometry I; it is not necessary, because the third lesson of this unit teaches induction starting from its statement.
The problem the unit solves
Logic studies validity, and validity depends on the form of arguments. But to speak of form with rigor, each expression must have a single form, and natural language does not guarantee it: “twice three plus four” may be or , depending on how it is grouped. This raises two problems, which are those of the unit. The first is to build a language in which each expression is read in only one way. The second is to prove it: formulas are infinitely many, and no case-by-case check, however long, establishes that all of them are read in only one way. The following example shows both problems in a single expression.
The expression , written with the connective between its arguments and without parentheses, does not indicate which of the two connectives is the main one. In the language of circles and disks, by contrast, each grouping is a different string, and the string itself says how it is grouped.
Proof
First reading: the first connective joins with , and the second is the main one. In the base language, the two disks go in front.
Second reading: the second connective joins with , and the first is the main one. The second disk goes between and .
Written with circles and disks, the two strings already differ in their second symbol: they are different formulas.
To read the first string, it is enough to count: after the initial disk, each connective disk subtracts and each variable adds , and the first component ends where the sum first reaches .
Whence the first component is and the second, : the string is read as the first reading, and in no other way. That this count works for all formulas, and not only for this one, is the unique readability theorem, which the third lesson proves by induction.
The unit's answer to these two problems has, therefore, two parts. For the first, a language whose single rule puts the connective in front, so that parentheses are superfluous, and a metalanguage whose abbreviations each designate a single string. For the second, a principle of proof, induction on the complexity of formulas, which passes from a finite number of verifications (the variables and the rule) to all formulas, just as induction on the natural numbers passes from and from the step from to to all numbers. With both parts, the form of an argument becomes a precise object, and the question of its validity can be posed with rigor in the following units.
How to study the unit
It is advisable to begin with this entry assessment and to note the questions missed, which point to the lessons where one must linger. The four lessons must be studied in order, because each one uses what the previous ones establish. In the second and the third, study requires paper and pencil: strings of circles and disks are hard to read on a screen, and it is advisable to copy them, separate their words (each variable and each single disk) and note the weight of each one, until the count of unique readability becomes a habit. Proofs are published as step-by-step players, and each step should be justifiable before moving on. In the first and the fourth, the work is one of careful reading: faced with each English sentence, ask exactly what it asserts, what readings it admits and which formula represents it. Finally, the hint and the answer of each proposed problem are opened only after having seriously attempted it.
Where it leads
At the end of the unit, the language will be fixed, and the following units will build on it without discussing it again. The unit on deduction will define a system of axioms and two rules of inference, modus ponens and, once double negation has been proved, replacement of double negation, whose deductions are sequences of formulas; its axioms are written with the official abbreviations, which this unit defines, and its deduction theorem is proved by induction on the length of deductions, with the instrument learned here. Its first lesson is the one on formal deductive systems. The unit on semantics will assign truth values to the variables and extend them to all formulas by recursion, which is possible only thanks to unique readability; it will justify with tables the informal readings of the connectives that the fourth lesson uses, and it will prove, in the lesson on functional completeness, that joint denial is enough to express any connective. The unit on metatheory, finally, will prove by induction soundness and completeness, and the arguments that this unit teaches how to formalize can at last be decided by deduction or by semantics indifferently.
Outside this course, the syntax of a formal language is that of every programming language: a compiler, like those of Programming in C++ I, begins by deciding whether a program is well formed and by decomposing it in a single way. The distinction between validity and truth is also the starting point of Aristotelian Logic, which studies the form of syllogisms; and the induction of the third lesson is the same one that proves the properties of numbers in Algebra and Geometry I. In all those domains, as in the drafting of regulations and contracts, the lesson is the same: saying precisely what is asserted requires a language in which each expression has a single reading.
Completed
Sign in to save your progress