Summary
This lesson delimits the object of mathematical logic: not the truth of particular statements, which belongs to each science, but the form of reasoning and validity, that is, the relation between premises and conclusion that guarantees that the truth of the former passes to the latter. It defines proposition, argument, premise, conclusion, form and counterexample; it distinguishes validity from truth by means of valid arguments with a false conclusion and invalid arguments with a true conclusion; it shows why natural language, ambiguous and able to speak about itself, does not suffice to study validity rigorously, and it establishes the distinction between object language and metalanguage, which governs the whole course. It then sets out, with their explicit hypotheses and their proofs, the paradoxes of the liar, of Berry and of the barber, together with Russell's, which the barber anticipates, and explains how a formal language avoids them or turns them into theorems. It ends with the four pillars of mathematical logic and with the map of the course.
Learning objectives
- Distinguish the validity of an argument from the truth of its premises and of its conclusion, and refute an invalid form by constructing a counterexample.
- Recognize ambiguities of natural language and make each reading of an ambiguous statement precise.
- Distinguish the object language from the metalanguage, and the use of an expression from its mention.
- Analyze a paradox: isolate its hypotheses, deduce the contradiction and decide which hypothesis must be abandoned.
What logic studies
All knowledge that is not obtained by direct observation is obtained by reasoning: from certain assertions that are accepted one passes to another that follows from them. In geometry, whoever knows that the angles of a triangle add up to two right angles concludes that no triangle has two obtuse angles; in medicine, whoever knows that a certain disease produces fever, and that the person examined has none, rules that disease out. Logic is the discipline that studies when that step is legitimate, and mathematical logic is the one that studies it with the methods of mathematics: defining its objects exactly, which are languages, formulas and deductions, and proving theorems about them.
To state precisely what it studies, it is convenient first to fix the vocabulary. A proposition is a declarative sentence of which it makes sense to say that it is true or that it is false: “ is a prime number” is a true proposition; “every even number is greater than ”, a false proposition. On the other hand, questions (“what time is it?”), commands (“close the door”) and expressions with free variables, such as “ is even”, whose value depends on what designates, are not propositions.
An argument is a list of propositions, the premises, together with another proposition, the conclusion, which is presented as a consequence of them. The premises may be any propositions whatsoever: true, false, known or mere suppositions; the only thing that distinguishes them is the place they occupy in the argument. We shall write arguments with the premises on successive lines and the conclusion preceded by “therefore”:
If a number is a multiple of , it is even. The number is a multiple of . Therefore, is even.
Its premises are “if a number is a multiple of , it is even” and “ is a multiple of ”; its conclusion, “ is even”.
Logic is not a theory of truth
If this is so, logic does not have the task of finding out whether the premises of an argument are true. Whether is a multiple of is decided by arithmetic; whether a person has a fever, by the thermometer; whether a battle took place in a certain year, by history. Nor does it fall to logic to define what truth is, a question that belongs to philosophy. Logic grants that propositions have a truth value, whatever it may be, and studies how those values are related to one another: in particular, when the truth of some propositions forces the truth of another. In other words, logic is not a theory of truth, but a theory of the transmission of truth.
Now, what transmits truth does not depend on the subject matter of the argument, but on its structure. Compare the previous argument with this one: “if an animal is a mammal, it breathes air; the whale is a mammal; therefore, the whale breathes air”. Both have the same form: “if something is , it is ; is ; therefore, is ”. The form of an argument is what remains when its non-logical terms (numbers, animals, properties) are replaced by letters, keeping the logical words: “not”, “and”, “or”, “if… then”, “all”, “some”. Each argument obtained from a form by giving content to its letters is an instance of it.
A form is valid when none of its instances has all its premises true and its conclusion false; an argument is valid when its form is. An instance with true premises and a false conclusion is called a counterexample to the form: whence a form is invalid exactly when it has a counterexample.
In the proofs of this lesson we shall use a shorthand of English: abbreviates “ is true” and , “ is false”; abbreviates “not”, abbreviates “and”, abbreviates “or”, abbreviates “if… then” and abbreviates “if and only if”; is read “for all” and , “there exists”. These signs are here mere abbreviations of words of the metalanguage, and the double arrows are reserved throughout the course for that use. In the next lesson the single-stroke signs, and , will appear, together with , and , as abbreviations of a formal language, with a meaning that the course will fix exactly; the difference in stroke between the arrows will recall at which level one is speaking.
If an argument is valid and all its premises are true, its conclusion is true. Consequently, if a valid argument has a false conclusion, some one of its premises is false.
Proof
Let there be a valid argument with premises and conclusion , and suppose that all the premises are true.
Every argument is an instance of its own form: it suffices to give the letters of the form the content they had in the argument.
By the definition of validity, no instance of that form has its premises true and its conclusion false; in particular, the argument itself does not.
Since the premises are true, the only thing that can fail in the negated conjunction is the falsity of the conclusion: the conclusion is true.
If, on the contrary, the conclusion is false, the premises cannot all be true, because then the conclusion would be.
The proposition states what validity guarantees; it is worth seeing just as clearly what it does not guarantee. Of the eight possible combinations of the validity of the argument, the truth of all its premises and the truth of its conclusion, only one is excluded, that of the valid argument with true premises and a false conclusion; the others all occur.
Every prime number is odd. The number is prime. Therefore, is odd.
The form is the same as that of the first argument of the lesson, so the argument is valid; nevertheless, its conclusion is false. The preceding proposition points out where the defect lies: some premise is false, and indeed the first one is, because is prime and even. A valid argument does not produce truths; it only preserves those it receives.
If a number is a multiple of , it is even. The number is even. Therefore, is a multiple of .
Premises and conclusion are true, and even so the argument is invalid. Its form, “if something is , it is ; is ; therefore, is ”, has a counterexample: with the number in place of , the premises remain true (“if a number is a multiple of , it is even”; “ is even”) and the conclusion, “ is a multiple of ”, is false. The truth of the original conclusion does not come from the premises, but from arithmetic: . This invalid form, frequent in everyday reasoning, is called affirming the consequent.
From this follows the practical rule that the lesson will exercise: to show that an argument is invalid it is not enough to point out that some premise or the conclusion is false, and to show that it is valid it is not enough that everything in it be true; the former requires exhibiting a counterexample to its form, and the latter, a reasoning that holds for all its instances.
Natural language and formal language
The definition of validity rests on two operations: recognizing the form of an argument and deciding whether a proposition is true or false. Both presuppose that each sentence has a single reading. Natural language, English, Chinese or Arabic, which human beings learn without formal instruction and use to communicate, does not meet that condition: its flexibility, which makes it fit for poetry, conversation and nuance, also makes it ambiguous.
- Lexical ambiguity: a word has several meanings. “I sat down by the bank” may refer to the edge of a river or to a financial institution.
- Syntactic ambiguity: a sentence admits several structures. “Twice three plus four” may be or .
- Scope ambiguity: it is unclear which part of the sentence a logical word affects. “All the students did not pass” may mean that none passed or that not all passed.
- Imprecise connectives: “or” sometimes allows both alternatives to hold (“a degree or experience is required”) and sometimes excludes it (“coffee or tea”); “if… then” sometimes expresses a cause, sometimes a rule, sometimes a mere succession.
To ambiguity is added a deeper feature: natural language can speak about itself. It contains the words “sentence”, “true” and “define”, and with them it can form sentences that refer to themselves, such as “this sentence has five words”. This self-reference is, in general, harmless; but, as will be seen, combined with the notion of truth it produces sentences that can be neither true nor false.
A formal language is designed to eliminate both sources of difficulty. One fixes an alphabet, a collection of symbols, and some formation rules that say, leaving no room for interpretation, which sequences of symbols are well-formed expressions; the meaning of each expression is fixed afterwards by equally precise definitions. Thus, asking whether a sequence of symbols belongs to the language is a question that is settled mechanically, by checking rules, and each expression is read in only one way. The language of this course, which the lesson on the language of propositional logic builds, has an alphabet of only two symbols, the circle and the disk , and a single formation rule.
The price is flexibility: a formal language is no good for conversation, and each formal language expresses only what its rules allow. It is not true, however, that all expressive power is sacrificed: the formal languages of first-order logic suffice to write almost all of mathematics. What is sacrificed is ambiguity and uncontrolled self-reference; what is gained is the possibility of proving theorems about the language itself.
Object language and metalanguage
To study a language one has to speak about it, and to speak about it another language is needed. The object language is the language under study; the metalanguage is the language in which it is studied. In a Latin grammar written in English, Latin is the object language and English the metalanguage. In this course, the object language will be the formal language of circles and disks, and the metalanguage will be English, enriched with mathematical signs and with Greek letters, , , which will designate arbitrary formulas of the object language without belonging to it.
The distinction is central for a precise reason: the assertions that the course will prove about the formal language (that every formula is read in only one way, that everything derivable is true) are not formulas of the formal language, but sentences of the metalanguage. That is why they will be called metatheorems, to distinguish them from the theorems that the deductive system produces within the object language.
An elementary form of the distinction is the one that separates the use of an expression from its mention. In “Rome is a city” the word is used to speak about the city; in “‘Rome’ has four letters” the word is mentioned, and the quotation marks indicate it: the sentence speaks about the word, not about the city. Confusing the two produces absurd statements, such as “Rome has four letters”, or fallacious arguments, such as “Rome is a city; ‘Rome’ is a four-letter word; therefore, a city is a four-letter word”.
Let us take Latin as the object language. The sentence “Roma aeterna est” belongs to the object language. The sentence “‘Roma aeterna est’ has three words” belongs to the metalanguage, English, and is true. The sentence “the preceding sentence is written in English” speaks about a sentence of the metalanguage: it belongs to a third level, the metalanguage of the metalanguage, even though it is written in the same language. Nothing prevents one and the same language from serving at several levels; what matters is not to lose sight of what is being spoken about.
The paradoxes of language
A contradiction is an assertion together with its negation, such as . A paradox is a piece of reasoning that, starting from hypotheses that seem acceptable and advancing by steps that seem valid, arrives at a contradiction. By the proposition on what validity guarantees, if the steps are really valid, some hypothesis is false: resolving a paradox consists in finding which. One should not confuse paradox with ambiguity, which is merely the multiplicity of readings, nor with what is merely surprising.
The liar
The oldest paradox of this kind is attributed to Eubulides of Miletus, in the fourth century before the common era. In its precise form it does not speak of lying, which presupposes the intention to deceive, but of falsity: let be the sentence “the sentence is false”. To obtain the contradiction two hypotheses suffice, which it is worth writing out explicitly.
- Bivalence (B): every proposition is true or false, and not both; being false is equivalent to not being true.
- Truth schema (T): a sentence is true if and only if what it says is the case. For example, “snow is white” is true if and only if snow is white.
The hypotheses of bivalence and of the truth schema, applied to the sentence , lead to a contradiction: there is no way of assigning to a truth value that respects them. In the figure, the sentence points to itself, and the arrows run through the two possibilities.
Proof
By bivalence, is true or false, and not both: being false is not being true.
What says is that is false. By the truth schema, is true exactly when what it says is the case.
Chaining both equivalences, the truth of is equivalent to its own negation.
If were true, by the equivalence read from left to right it would not be: the supposition refutes itself, and is not true.
But then, by the equivalence read from right to left, is true: one has at once an assertion and its negation.
The theorem does not say that logic is contradictory, but that the two hypotheses cannot be maintained together for a language that contains the sentence . There are, therefore, three ways out: abandoning bivalence and admitting sentences without a truth value; restricting the truth schema; or preventing the language from forming the sentence . The third is that of Alfred Tarski, in 1933: the predicate “is true” of a language does not belong to that language, but to its metalanguage. In such a language, is not a well-formed sentence, and the paradox cannot be stated.
Berry's paradox
Published by Bertrand Russell in 1906, who attributed it to George Berry, a librarian at Oxford, this paradox does not use the word “true”, but the word “define”. An English phrase is said to define a natural number when it describes it in such a way that the number can be identified without ambiguity: “the smallest prime number greater than ten” defines . Let us consider the phrase “the smallest natural number that cannot be defined in fewer than twenty words”, which must be read just as it is written, and let us call the number it purports to define. The natural numbers, in this course, are
If the vocabulary of English is finite and the relation “the phrase defines the number” is well determined, a contradiction is reached: the number exists, and at the same time it can and cannot be defined in fewer than twenty words. In the figure, the short phrases are sent to the numbers they define, which are few; the first number left free is .
Proof
Let be the number of words in the dictionary. The phrases of one word are at most ; those of two, at most ; and so on up to those of nineteen. The phrases of fewer than twenty words are, therefore, a finite number .
Each phrase defines at most one number. Let be the set of the naturals that some phrase of fewer than twenty words defines: it has at most elements.
Among the numbers there is some one that is not in . Running through them in order, the first one that is not in is the smallest natural number that cannot be defined in fewer than twenty words: all the preceding ones are in .
But the phrase “the smallest natural number that cannot be defined in fewer than twenty words” has thirteen words, and defines precisely .
One has at once an assertion and its negation.
The usual exposition, which confines itself to observing that the phrase has fewer than twenty words, omits half of the argument: that the number exists, which requires the finiteness of the vocabulary and the choice of the first number missing. The hypothesis that fails is the second: “define” is not a precise relation of English, because the phrase that defines uses the very word “define”, and its sense depends on which phrases count as definitions. In a formal language one can make precise what “definable in ” means, but that notion is expressible only in the metalanguage; the phrase that defines does not belong to , and the contradiction disappears: is not definable in with few symbols, although it is so in the metalanguage.
The barber and Russell's set
The barber paradox is usually told thus: in a village there is a barber, a man of the village, who shaves all the men of the village who do not shave themselves, and only them. Does the barber shave himself? The words “and only them” are essential: a barber who shaved all those who do not shave themselves, without the restriction, could also shave himself without any contradiction. The paradox is a particular case of a general lemma, of diagonal form, which it is worth proving once and for all.
Let be a collection of objects and a relation between them, such that, for each pair , of objects of , the assertion is true or false. Then there is no object of such that, for every of , holds if and only if does not hold. In the figure, each row is an object and each column an object , and a cell is filled when holds; the row we are looking for for would have to invert the diagonal, and that is why it differs from each row in that row's diagonal cell.
Proof
Suppose there exists such a in .
The condition holds for every of , and is one of them: we can take .
If holds, by the equivalence it does not hold: a contradiction.
If does not hold, by the equivalence it holds: a contradiction as well.
Since one of the two cases must occur, the supposition is untenable: there is no such .
In no village is there a man of the village who shaves all the men of the village who do not shave themselves, and only them.
Proof
Let be the collection of the men of the village and the relation “ shaves ”. The barber is a man of the village, so he is in ; that he is a barber as described means that he shaves each man of the village exactly when that man does not shave himself.
By the diagonal lemma, no man of the village satisfies that condition: the barber described does not exist. The story is not a paradox, but the proof that its protagonist is impossible.
The conclusion about the barber is harmless: nobody had claimed that such a barber existed. The same does not happen with its version in set theory. In 1902, Russell wrote to Gottlob Frege that his system, which aimed to found arithmetic on logic, admitted the following comprehension principle: for every property there is a set whose elements are exactly the objects that have it. Applied to the property of not belonging to itself, the principle asserts that there exists the set
The comprehension principle, without restrictions, is contradictory.
Proof
Let be the collection of all sets and the relation “ belongs to ”. The comprehension principle, applied to the property , asserts that there exists a set whose elements are the sets that do not belong to themselves.
With the relation chosen, the condition on is exactly that of the diagonal lemma, with in place of : is , and is .
The set is a set, so it is in ; by the diagonal lemma, no such exists, and taking one obtains the impossible equivalence. But the principle asserts that it exists. The principle therefore implies a contradiction.
Unlike the barber, here the existence of was not a supposition in a story, but a principle of the theory. Russell's paradox is not resolved by declaring that does not exist, but by reforming the theory: Zermelo's axiomatic set theory, of 1908, only allows forming, with a property, subsets of an already given set, and with that restriction the contradiction is not deduced.
What is not a paradox
The observation that the empty set exists although it has no elements, as if an existing object had to be made of existing objects, has sometimes been called the “paradox of the empty set”. There is no contradiction in it whatsoever: a set is not made of its elements as a wall is made of its bricks, but is determined by them, and the collection of the elements of a set may have none, just as an empty box is still a box. That a fact is surprising does not make it paradoxical; a paradox requires deducing a contradiction, and here none is deduced.
How a formal language deals with them
From the foregoing it follows that a formal language does not avoid the paradoxes by magic, but in two precise ways. The first is that it may lack the resources that produce them. The language of propositional logic, which this course builds, has no sentences that refer to themselves and no truth predicate: in it the liar sentence cannot be written, and its semantics assigns to each formula, under each assignment of values to the variables, a single truth value. The second is that, in richer languages, the paradox becomes a theorem: the liar's reasoning, carried out rigorously, proves that the truth of a sufficiently expressive language is not definable in that same language (Tarski); that of the barber and of Russell proves that certain collections are not sets; and arguments related to Berry's lie at the heart of Kurt Gödel's incompleteness theorems, of 1931. Thus, what in natural language is a perplexity, in a formal language is information.
The four pillars of mathematical logic
Mathematical logic was born at the end of the nineteenth century and the beginning of the twentieth, with Frege, Peano, Russell and David Hilbert, as the answer to a precise question: on what foundations mathematics rests and whether those foundations are free from contradiction. Today it is divided into four great branches, which constantly intertwine.
- Proof theory: it studies formal proofs as mathematical objects, that is, as finite sequences of formulas that follow explicit rules; it asks what can be proved in a system, whether a system is consistent and how some proofs are transformed into others. The deduction unit of this course is a first contact with it.
- Model theory: it studies the relation between a formal language and the structures that interpret it, its models; it asks which structures satisfy a set of formulas and which properties of structures can be expressed in a given language. The semantics unit, with its assignments of truth values, is its most elementary version.
- Set theory: it studies sets with precise axioms, such as those of Zermelo and Fraenkel, in which almost all of mathematics can be written; it was born, in good part, from the need to avoid Russell's paradox.
- Computability theory: it studies which problems can be solved by a mechanical procedure and which cannot. Propositional logic is decidable, as the course will show: there is a procedure that decides in a finite number of steps whether a formula is valid; predicate logic, on the other hand, is not.
No pillar is studied in depth without touching the others: completeness, a central result of this course, is at once a theorem of proof theory and of model theory, and the decidability obtained from it belongs to computability.
The map of the course
The course travels, for the simplest language of logic, the propositional one, the complete path of a logical theory, in four units.
- Language: syntax. The object language is built with its two-symbol alphabet and its formation rule, it is proved that each formula is read in only one way, one learns to prove by induction, and statements and arguments of natural language are translated into the formal language, pointing out what the translation preserves and what it loses.
- Deduction: a system of axioms and rules of inference is fixed, and it is defined what it means for a formula to be deduced from a set of formulas , which is written . It is the syntactic face of validity: manipulating symbols according to rules, without attending to their meaning.
- Semantics: each formula is given a truth value under each assignment, and it is defined what it means for to be a consequence of , which is written : every assignment that makes the formulas of true makes true. It is the semantic face of validity, the definition of this lesson made precise.
- Metatheory: it is proved that both faces coincide. Soundness says that everything derivable is a consequence, and completeness, that every consequence is derivable. Afterwards compactness is studied, together with a mechanical method, resolution, for deciding whether a set of formulas can be satisfied.
If this is so, the course is the first complete example of a mathematical theory whose object is reasoning itself; and all its assertions about the formal language will be, as has been seen in this lesson, sentences of the metalanguage proved with the rigor of mathematics.
Solved problems
The following problems exercise, in increasing difficulty, the distinctions of the lesson: refuting an argument whose sentences are all true, separating the readings of an ambiguous statement, classifying expressions of the object language and of the metalanguage, and analyzing two pieces of reasoning of paradoxical appearance to decide whether they are paradoxes.
Show that the following argument is invalid, even though its premises and its conclusion are true: “every multiple of is even; the number is even; therefore, is a multiple of ”.
Solution
We abbreviate “ is a multiple of ” by and “ is even” by . The premises and the conclusion are true, because .
The form is obtained by replacing the name with a letter : two premises and a conclusion.
We look for an instance with true premises: the first does not depend on , and the second asks for an even number. We take .
The conclusion of this instance is false, because is not a multiple of .
The form has a counterexample: it is invalid, and so is the argument. The truth of its conclusion comes from arithmetic, not from the premises.
Let be the list of numbers , , . Show that the sentence “all the numbers of are not prime” has two readings, and that with this list one is true and the other false.
Solution
We abbreviate “ is prime” by . First reading: the negation affects each number, and the sentence says that none is prime.
Second reading: the negation affects the whole assertion, and the sentence says that not all are prime.
Since is prime, the last term of the first reading is false, and with it the whole conjunction: the first reading is false.
Since is not prime, the conjunction of the second reading is false, and its negation true: the second reading is true.
The two readings are not equivalent: the first implies the second, but not conversely, and this list shows it. In mathematics, the second is written “not all the numbers of are prime”, and the first, “no number of is prime”.
Let us take as object language the sequences of the symbols and , and as metalanguage English, with Greek letters that designate arbitrary sequences. Classify each of the following expressions and decide, where appropriate, whether it is true: (a) ; (b) “ has three symbols”; (c) “for every sequence , the sequence begins with a disk”; (d) “ is true”.
Solution
Expression (a) belongs to the object language: it is a sequence of symbols, not an English sentence, and it is neither true nor false; it is spoken about, but it asserts nothing.
Expression (b) is a sentence of the metalanguage that mentions sequence (a) and counts its symbols: it is true.
Expression (c) is a sentence of the metalanguage. The letter is not a symbol of the object language, but a variable of the metalanguage that ranges over its sequences; the sentence is true, because begins, by construction, with the disk.
Expression (d) belongs to the metalanguage, but it does not yet have a truth value: the sequence will be a variable of the language of the course, and a variable is neither true nor false by itself, but only when an assignment, in the semantics unit, gives it a value. In the next lesson it will be called .
On a blackboard there is written the sentence , perhaps among others: “every sentence written on this blackboard is false”. Granting bivalence and the truth schema, prove that is false and that there is some other true sentence on the blackboard; and deduce that there is a paradox exactly when no other sentence on the blackboard is true, as happens if is the only one.
Solution
Let be the set of the sentences on the blackboard; is one of them. By the truth schema, is true if and only if all the sentences of are false.
If were true, all the sentences of would be false, and is in : would be false, and by bivalence it would not be true. The supposition refutes itself.
Therefore, is not true; by bivalence, it is false.
By the truth schema, that is false means that not all the sentences of are false: some one is true, and it is not , which is false.
If there is another true sentence on the blackboard, everything is coherent: is simply false. If, on the other hand, no other sentence is true, there is no different from in that is true, and a contradiction is obtained, as in the liar; this happens, in particular, when is the only sentence on the blackboard. Whether the paradox appears depends, therefore, on an empirical fact: what is written on the blackboard.
An adjective is autological if it applies to itself (“polysyllabic” is polysyllabic; “short” is a short word) and heterological if it does not (“monosyllabic” is not monosyllabic; “long” is not a long word). Prove that, if “heterological” is an adjective and the relation “applies to” is well determined for all adjectives, a contradiction is reached; and decide which hypothesis to abandon.
Solution
Let be the collection of the adjectives of English and the relation “the adjective applies to the word ”. An adjective is autological if and heterological if .
Let be the adjective “heterological”. By its definition, it applies to an adjective exactly when that adjective does not apply to itself.
If is an adjective, it is in , and its condition is that of the diagonal lemma. Taking , the impossible equivalence is obtained.
By the diagonal lemma, no object of satisfies the condition of . If is in , there is a contradiction.
The hypothesis that fails is the second: “applies to” is not a precise relation for adjectives that, like “heterological”, are themselves defined by that same relation. In a formal language, the relation would be defined in the metalanguage, and the adjective would not belong to the object language, so that the condition would be false and there would be no contradiction.
Proposed problems
The first two problems exercise validity and ambiguity; the third, use and mention; the last two ask you to analyze a new paradox and to apply the diagonal lemma outside linguistics. Each one has a hint, which is best opened only after having attempted the problem.
Consider the following two forms: (a) “if , then ; not ; therefore, not ”; (b) “if , then ; not ; therefore, not ”. Decide which is valid and which is not; for the invalid one, construct a counterexample with statements about numbers, and for the valid one, explain why no instance can be a counterexample.
Hint
For form (b), look for a true implication between properties of numbers, such as “if is a multiple of , it is even”, and a number that does not have the first property but does have the second. For form (a), suppose that the premises are true and ask yourself what would happen if were true.
Answer
Form (a), called modus tollens, is valid: if the premises are true and were true, would be true as well, against the second premise. Form (b), denying the antecedent, is invalid: “if is a multiple of , is even; is not a multiple of ; therefore, is not even” has true premises and a false conclusion.
A notice says: “to enter, a passport or a national identity card and a visa are required”. Write its two readings with the letters (passport), (national identity card) and (visa), and describe a traveler whom one reading lets in and the other does not.
Hint
The question is whether the visa goes only with the national identity card or with either of the two documents. Try a traveler who has a single document.
Answer
The readings are and . A traveler with a passport and without a visa can enter according to the first and not according to the second.
Decide whether each sentence speaks about the city or about the word, and whether it is true or false: (a) “Rome has four letters”; (b) “‘Rome’ has four letters”; (c) “‘Rome’ is the capital of Italy”; (d) “the sentence ‘Rome is the capital of Italy’ contains the word ‘Rome’”.
Hint
Quotation marks turn an expression into the name of that expression. Ask yourself, in each case, what object the subject of the sentence designates: a city, a word or a sentence.
Answer
(a) It speaks about the city and is false, because a city has no letters. (b) It speaks about the word and is true. (c) It speaks about the word and is false, because a word is not a capital. (d) It speaks about a sentence and about a word, and is true.
On one side of a card the sentence is written: “sentence is true”; on the other side, the sentence : “sentence is false”. Granting bivalence and the truth schema, prove that there is no way of assigning truth values to and to . What happens if says, instead, “sentence is true”?
Hint
Write the truth schema for each sentence, and chain the equivalences until you obtain one that relates to itself. In the variant, do the same and check which assignments satisfy it.
Answer
In the first version one obtains , as in the liar, without any sentence speaking about itself. In the variant, admits two assignments, both true or both false: there is no contradiction, but nothing decides between them.
Worked solution
Solution
By the truth schema, is true exactly when is.
By the truth schema, is true exactly when is false; by bivalence, being false is not being true.
Chaining both equivalences, the truth of is equivalent to its own negation, and one reasons as in the liar: if is true, it is not, and if it is not, it is.
In the variant, the truth schema for gives , which together with the first equivalence only requires that both have the same value: there are two coherent assignments and no contradiction.
Let be any list of infinite sequences of zeros and ones, and let us write for the -th term of the sequence . Prove, with the diagonal lemma, that the sequence defined by when , and when , does not appear in the list. Deduce that no numbered list contains all the sequences of zeros and ones.
Hint
Take as collection the natural numbers and as relation the assertion . What condition would a number such that satisfy?
Answer
If held, the number would satisfy for every , which the diagonal lemma forbids. Therefore differs from each at least in the -th term, and no list contains all the sequences.
Worked solution
Solution
Let be the set of the natural numbers and the assertion that the -th term of equals .
By its definition, equals exactly when does not equal .
Suppose that appears in the list in place , that is, . Then, for every , is equivalent to , which is equivalent to .
By the diagonal lemma, no satisfies that condition: the sequence does not appear in the list. Concretely, it differs from in the -th term.
Since the list was arbitrary, no numbered list contains all the sequences of zeros and ones: every list lacks, at least, its diagonal sequence.
Completed
Sign in to save your progress