Sections 4.1 and 4.3 made formulas into objects:
every formula is built from atoms and by the connectives
in exactly one way, and so a function on formulas can be
defined one clause per connective. So far a formula is
only a string of symbols. It says nothing, and it is
neither true nor false. This section gives formulas a
meaning. We say what it takes to fix the truth or
falsity of every atom, and then compute the truth value
of every formula from the values of its atoms, one
connective at a time. The result is the truth table, the
second way of looking at a formula that Chapters 1 and 2
kept promising.
Throughout, formulas are those of Definition 4.1.1,
with atoms , and we use Chapter 1’s shorthand
for them (outer parentheses dropped, the usual
precedence,
grouped to the right), as Section 4.1 allows.
Reading a
table off the rules
Before any definition, a question. Suppose we want to
call each statement true or false, and we want the rules
of Chapters 1 and 2 to be safe:
whenever the lines a rule cites are true, the line it
writes is true. How must “true” behave for each
connective? The rules answer almost completely. This
subsection is motivation only; nothing later rests on
it, and Section 4.8 makes it exact.
Conjunction. Take statements and . If both are true,
writes from them, so must
be true. If is true,
writes and
writes , so
both must be true; turned around, if either of them is
false, then must be false. All four combinations of
values are settled: Here stands for
“true” and for
“false”.
Contradiction. The rule writes
any statement from . If were ever true,
would lead from a true line to every statement, false
ones included. So must be false,
always.
Negation. The rule writes
from and . Since is false, and are never
both true: if is true, is false. And
Proposition 2.5.3
derives from no premises at all, so at
least one of the two is true: if is false, is true.
Negation flips the value.
Implication. The rule writes
from and
. So in the
combination “ true, false”, the
implication cannot be true: that is the one row where
is
false. The other three rows are forced by derivations.
Proposition 2.1.2
derives
from , so
whenever is false
(and
therefore true), must be true, whatever is. And is derivable from
alone (Exercise (B2: An assumption that is not used)
(a) of Section 1.4):
1
2asm, for
3 1
4 2–3
so whenever is
true, must
be true. That settles the rows with false (by the first
derivation) and the row with both true (by the
second).
The vacuous rows of , “if is false, then is true”, are
often presented as a convention to be swallowed. Here
they are forced by , the
rule that closes an impossible case, exactly as Section
2.1 said they would be. The rows of and can be
read off their rules in the same way, and Exercise C3 of
Section 4.5 asks for a sharper version of the argument
for . We now
turn the answers into a definition.
↺Second readingA
pair of rules with no table
The rules of Chapters 1 and 2 determine their tables
almost completely. Not every pair of rules does. Invent
a connective with an
introduction rule “from , infer ”
and an elimination rule “from ,
infer ”, and
read a table off them as above. The first rule needs
true whenever is; the second
needs true
whenever is. In a row with true and false the two
demands clash, so no table makes both rules safe. Worse,
the two rules together derive anything from anything:
from , the first
gives ,
and the second then gives . (Logicians call this
connective tonk.) A pair of rules does not give
a connective a meaning just by being written down.
Section 4.8 shows that the rules of Chapters 1 and 2 do,
row by row.
Valuations
A formula such as cannot be true or false on its
own, because and
are atoms:
letters with no content. What decides its value is a
choice of which atoms are true. We need a word for one
such choice.
A valuation is one possible situation, described
by saying which atoms are true and which are
false.
Definition
4.4.1 (Valuation)
A valuation assigns to
every atom exactly
one of the two truth values and . We write
for the value
it assigns to ,
and say that is
true under if ,
false under if .
In words: a valuation answers, for each atom
separately, the question “true or false?”, and it
answers every such question. Two valuations are equal
when they give every atom the same value. Nothing links
the values of different atoms: and may be chosen
freely, and that freedom is the whole point.
We let a valuation decide every atom
so that one valuation gives a value to every formula at
once. In practice only the few atoms a formula contains
matter, and the Coincidence Lemma below says so.
Some valuations, simplest first.
- The all-T valuation gives every
atom the value ; the
all-F valuation gives every atom . They are the
two extreme cases, and both will return as tests.
- The valuation with , and for
every other atom .
This is the typical way to describe a valuation: give
the values of the few atoms we care about, and fix the
rest once and for all.
A valuation fixes the atoms. The value of every other
formula should then follow, computed from the values of
its parts by the tables of the first subsection. Since
formulas are built by the clauses of Definition 4.1.1,
this is a definition by recursion.
The value of a formula is computed from the
bottom of its parse tree upwards, one connective at a
time.
Definition
4.4.2 (Truth Value of a Formula)
Let be a
valuation. The truth value of a formula
under is defined by recursion
on :
- (V1) for an atom
, is the value the
valuation assigns to ; and ;
- (V2) if ,
and if ;
- (V3) if
and ; otherwise ;
- (V4) if
or (or both); otherwise ;
- (V5) if
and ; otherwise ;
- (V6) if ;
otherwise .
We say
is true under , or makes
true, if
; otherwise is false
under .
Clauses (V2)–(V6) say that the value of a compound
formula depends only on the values of
its immediate parts, and they are summed up in the
tables of the five connectives:
Read them clause by clause. (V1): an atom has the
value the valuation gives it, and is false under every
valuation. (V2): negation flips. (V3): a conjunction
needs both parts. (V4): a disjunction needs at least one
part; “or” is inclusive, as the rule
of Section 1.5 already said, so the row with both parts
true gives . (V5): an
implication is false in exactly one case, a true
hypothesis with a false conclusion. (V6): a
biconditional says the two sides agree.
The columns for , and , and the value of
, are the ones
the first subsection read off the rules. Section 4.8
proves that every row of every table is, in a precise
sense, a derivable sequent.
Well defined. Clause (V1) gives a
value to every atom and to , and each of
(V2)–(V6) gives a rule computing the value of a compound
formula from the values of its immediate parts. By Theorem 4.3.4,
such clauses define exactly one function on all
formulas. This is what Section 4.3 was for. Section 4.3
showed the danger with the string , whose
two readings take different values when and are false and is true. A formula of
Definition 4.1.1
carries its parentheses, and has one value.
Example
(Computing a value)
Let be a
valuation with , and . Compute for
Solution. Work from the leaves of
the parse tree up to its root, one node at a time, each
time using one clause of Definition 4.4.2.
List the subformulas so that each comes after its
immediate parts:
| , , |
(V1) |
,
, |
|
(V2): |
|
|
(V4): both parts |
|
|
(V3): |
|
|
(V5): the hypothesis is |
|
So . The last step did not need the
value of : a false hypothesis makes an implication true
whatever its conclusion is. Computing by hand, one may
stop a branch as soon as its value is decided.
↺Second readingEdge
cases
Nonexample. “ is true” and “ is false” together do
not describe a valuation: the definition asks for
exactly one value per atom. And a list
that gives the
value
and says nothing about the other atoms is not a
valuation either, since it fails “every atom”. We never
need more than such a partial list, but we complete it
(by ,
say) so that the definition applies.
Nonexample. The rule “every formula gets the
value ”
agrees with the all-T valuation on every atom, but it is
not the truth value of Definition 4.4.2
under any valuation. It breaks (V1) at , and it breaks (V2)
at , where
and would both be
. The
truth value under the all-T valuation is the function
that (V1)–(V6) produce from it, and it makes false.
Warning. Values do not distribute
over connectives the way symbols seem to. The value of
is
not computed by negating and and keeping the : under a valuation
with and , the formula is (since is ), while is
(since
is ). Always
follow the parse tree: the main connective is applied
last.
Quick check. Let , , . What
is ?
Solution. . Bottom up:
is , by (V4),
since is ; is , by (V2); and
an implication with a true hypothesis and a false
conclusion is , by (V5).
Quick check. Let and
.
What is ?
Solution. . is by (V2). is
by (V6),
since both sides are ( by (V1)). So the
disjunction is by (V4).
A game for the clauses. Clauses
(V2)–(V4) can be acted out. Two players argue about a
formula built from atoms by , and , under a valuation
. The
verifier claims that the formula is
true under , the
falsifier that it is false. Play starts
at the whole formula and moves down its parse tree. At
the falsifier chooses a conjunct to dispute, and play
goes on there; at the verifier chooses a disjunct to
defend. At the two
players swap roles, and play goes on at . At an atom the game ends: the
verifier wins if , the falsifier if . Run it
once on , with and . At the the players swap, so
the verifier of now disputes . At the the choice is
hers: she picks ,
and she wins. A formula is true under exactly when the
verifier can always win, whatever the falsifier does;
Exercise C3 proves it, and nothing later rests on the
game.
A valuation fixes infinitely many values, but a
formula contains only finitely many atoms. We expect the
value of a formula to depend only on the values of its
own atoms. That is the fact that makes truth tables
finite, and it is our first proof by structural
induction about meaning.
Recall from Section 4.3 that , the set
of atoms occurring in , is defined by
recursion: for an atom , is empty,
, and the atoms of , for
each binary connective , are those of together with
those of . Two
valuations and
agree
on a set of atoms if for every
atom in it.
Lemma
4.4.1 (Coincidence Lemma)
Let be a
formula, and let
and be valuations
that agree on . Then
.
Idea. Structural induction on , with the
property “for all valuations , that agree on the atoms
of , ”.
At an atom, the two valuations agree by hypothesis. At a
compound formula, both values are computed by the same
clause from the values of the immediate parts, and every
atom of a part is an atom of the whole, so the two
valuations agree on the atoms of each part and the
hypothesis for the parts applies.
Proof. We apply Theorem 4.3.1
to the property : for all
valuations and
that agree on
,
.
Atoms. Let be an atom and let
, agree on . Then
, which
is .
.
By (V1), for all valuations , . So holds.
Negation. Assume , and let , agree on .
Since , they agree on , so
by . By
(V2), is
determined by and by through the
same rule, so . This proves .
Conjunction. Assume and , and let , agree on . Every atom of is an atom of
, so
and agree on
,
and by . In the same
way by . By (V3), exactly when , that is, exactly when , that is, exactly when . Hence , which is .
Disjunction, implication, biconditional.
Assume
and , and
let , agree on the atoms of
.
As in the conjunction case,
and . One clause of Definition 4.4.2
then turns these equal inputs into equal outputs:
|
(V4) |
exactly when one of the two parts is , and the parts
have the same values under and under |
|
(V5) |
exactly when the first part is and the second
, and the
parts have the same values under and under |
|
(V6) |
exactly when the two parts have equal values, and the
parts have the same values under and under |
Every clause of Definition 4.1.1
has been covered, so by Theorem 4.3.1,
holds
for every formula . This proves the
lemma.
The table’s three cases are the conjunction case
again, with another clause. The fold writes each one out
in words.
↺Second readingThe
three remaining cases, written out
Disjunction. Assume and , and let , agree on . As in the previous case,
and . By (V4), exactly when one of , is , that is, when
one of ,
is , that is, when
. So .
Implication. Assume and , and let , agree on .
Again and . By
(V5), exactly when
and , that is, when
and , that is, when . So .
Biconditional. Assume and , and let , agree on . Again
and . By (V6), exactly when ,
that is, when , that is, when . So .
Two consequences. First, to know we need only
the values of on
the finitely many atoms of : if has atoms, it has exactly
different
“situations”, one for each way of giving its atoms the
values
and .
(Each atom has two choices, and the choices are
independent, so the number of ways doubles with each new
atom: . This count is itself a small induction on
, by Axiom 4.2.1.)
Second, the extra atoms a valuation happens to fix are
irrelevant: two valuations that differ only on atoms not
in give
the same
value.
Quick check. Let . Two valuations and agree on and but disagree on and on every . What does Lemma 4.4.1
say about and ? Does it say
anything about and ?
Solution. , and ,
agree there, so
. For the
atoms are , , , and the valuations
disagree on , so
the lemma does not apply. Indeed the values can differ:
is true
under every valuation (if is true, so is ), so and , which differ.
Truth
tables
Lemma 4.4.1
says that a formula’s value is decided by finitely many
choices, and so it can be tabulated once and for
all.
A truth table lists the value of a formula in
every possible situation, one row per way of giving its
atoms values.
Definition
4.4.3 (Truth Table)
Let be a
formula and let be a list of distinct atoms that
includes every atom of . A
row is an assignment of a truth value
to each of . The truth table of (on ) lists,
for each of the
rows, the value for a
valuation that
agrees with the row on . We say
is true (or
false) in the row.
Well defined. Two things must be checked.
Existence: every row comes from a
valuation, for instance the one that gives the row’s
values and every other atom .
Independence of the choice: two
valuations that agree with the same row agree on , hence on
, so
by Lemma 4.4.1
they give
the same value. Without the lemma, “the value in a row”
would not make sense, since a row says nothing about the
infinitely many other atoms.
The list is allowed to contain atoms that do not
occur in ;
then pairs of rows that differ only there show the same
value. This freedom lets us compare several formulas in
one table, over the atoms of all of them, and Section
4.5 does that constantly. When has no atoms at
all, as or
do,
the list may be empty, and the table has row: such a
formula has the same value under every valuation.
Conventions. The atom columns come
first. The rows are listed with before , the last atom
alternating fastest: for two atoms, TT, TF, FT, FF. In
practice we add a column for each subformula, building
up to in
the order of the parse tree, as in Example (Computing a value),
but now for every row at once.
Example
(The truth table of modus ponens)
Make the truth table of on ,
and read off from it what
does.
Solution. Columns for the two
atoms, then for each subformula in turn: The third column is (V5): only in the
row TF. The fourth is (V3) applied to the third column
and the column:
only in
the first row. The last is (V5) again, with the fourth
column as hypothesis and as conclusion: the
hypothesis is false in rows 2–4, so those rows are , and in row 1
the conclusion is
.
So the formula is true in every row. Read as a
statement about : the
only row in which both given lines and are true is row 1, and
in that row the line the rule writes, , is true as well. The
rule never leads from true lines to a false one, at
least when
and are the
atoms and . Section 4.7 proves
this for every rule and every formula.
Now a table built column by column for a
biconditional, whose two sides Chapter 2 related by
derivations.
Example
(An implication and its contrapositive)
Make the truth table of .
Solution. The columns and are identical: each is only in row 2.
For that is the row where the hypothesis is and the
conclusion
is , that
is, false and
true, which is
the same row TF. So the biconditional is in every
row.
Compare Chapter 2. There Proposition 2.3.2
derived from with the rules for implication and negation,
and Proposition 2.5.2
derived the way back with a derivation that uses . The table
sees no difference between the two directions; it only
sees that the two columns agree. What a table can and
cannot tell about derivations is the subject of Sections
4.7 and 4.8.
A table with
atoms has rows,
so three atoms give 8 and five give 32. Often we do not
need all of them.
Example
(Working backwards from F)
Find every row in which is false: first with the full table on , then without
it.
Solution. The full table.
The formula is false in exactly one row, row
2: and true, false.
Backwards from F. An implication is false in
exactly one way, by (V5): hypothesis true, conclusion
false. Apply that to the main connective of , and then to
whatever it forces.
- is
exactly
when is
and
is .
- is exactly when
is and is .
- With true,
is exactly when
is .
- With true,
is exactly when
is .
Each step was forced, so there is exactly one row
making
false: , , . Four short steps replace eight
rows.
The second method has a name in this book:
working backwards from F. Assume the
formula is false, and ask what each part is forced to
be, starting from the main connective. Implications and
disjunctions are false in only one way, and conjunctions
are true in only one way, so they force values; a false
conjunction, a true disjunction, or a true implication
leaves a choice, and then we split into cases. If every
case ends in a contradiction (some atom would need both
values), the formula is false in no
row. A case that ends in a consistent assignment,
completed in every way on the atoms it leaves unset,
gives rows making the formula false, and together these
cases give all such rows.
Truth-functional connectives
Each of the clauses (V2)–(V6) computes the value of a
compound formula from the values of its immediate parts
alone. Nothing else about the parts
enters: not what they say, not how long they are. The
general form of such a rule has a name.
Definition
4.4.4 (Truth Function)
Let . A
truth function with inputs assigns to
each list of
truth values (each is or ) a truth value
.
A formula
expresses if
In words: a truth function is a truth table with
input columns and
one output column, with no formula attached. Each of our
connectives is a truth function. Negation is the
one-input function , ; conjunction is the two-input
function that is only at ;
disjunction, implication and the biconditional are the
two-input functions read off the tables of (V4), (V5)
and (V6). A way of joining statements whose value is
fixed by the values of its parts is called
truth-functional, and (V2)–(V6) say
that all five connectives are.
Not every way of joining two statements is. Take
“ because
”:
A “because” claim with a false part is false, so
three rows are settled. The first is not. “ is even because is a multiple of ” and “ is even because is a multiple of ” both have two true
parts. The first is false, since being a multiple of
does not make a
number even; the second is true. The values of the parts
do not decide the value of the whole.
The same happens with “it was proved before 1900 that
”:
A statement that was proved is true, so the second
row is .
But “ is
irrational” and “for no does have a solution in positive integers”
are both true, and only the first was proved before
1900. So “because” and “it was proved before 1900 that”
are not connectives of our language, and no truth table
can stand for them.
Quick check. Is “neither nor ” truth-functional?
Give its table and a formula that expresses it.
Solution. Yes. It is when both
parts are , and in the other
three rows, whatever the parts say. The formula
expresses it.
Warning. A truth table sees only
the connectives. Everything inside an atom is invisible
to it. Fix a real number . The statement “if
, then
” is
true, but its propositional form, with the atoms : “” and : “”, is , which is false
in the row with
true and false.
That row cannot happen for any real , and the reason lies in
algebra, not in the connectives. The quantified
statement “for every real , if , then ” is, like “for
every there is an such that …”, a single
atom for a truth table, with two rows and nothing to
compute.
Quick check. Why does Definition 4.4.3
need Lemma 4.4.1?
What would go wrong in a table for if the value of
could
depend on the atom ?
Solution. A row gives values to the
listed atoms only, and many valuations agree with it,
differing on the other atoms. The table records “the”
value of the formula in the row, so all those valuations
must give the same value; Lemma 4.4.1
guarantees it. If could depend on , the row , would
contain valuations giving different values, and there
would be no single entry to write.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Make the truth
tables of and of .
- (b) Make the truth
table of . Is it true in any row?
- (c) Compute the
value of under the all-F valuation, and
under the all-T valuation.
- (d) How many rows
has the truth table of a formula on the atoms ?
- (e) True or false,
with a reason: if , then .
Solution.
- (a) The first formula has the same column as : false only in
row TF.
(b) In the row , is , and in the
row ,
is ; the two sides
always differ, so by (V6) the formula is in both rows.
It is true in no row.
(c) The disjunct has a false
hypothesis, since under every valuation (V1), so it is
by (V5),
and the disjunction is by (V4). This
holds under both valuations (and under every other).
(d) .
(e) False. The formula is true
under every valuation: if , the
hypothesis is false; if , the conclusion has a true
conclusion. So
and give it the
value
however they differ. Lemma 4.4.1
says that agreement on the atoms forces agreement on the
formula; it says nothing in the other direction.
Exercise
(A2: Drill)
The parts run from computing one value, through
partial information and backward computation, to the
game and the truth-functional connectives.
- (a) Let and
.
What is ?
- (b) Same : what is ?
- (c) Same : what is ?
- (d) How many rows
has a table on ?
- (e) Only is
known. Which of , , , already have a value, and which value?
- (f) Give a row
making false.
- (g) Is there a row
making
true?
- (h) Work backwards
from F: in which rows is false?
- (i) Find every row
in which is true, forcing what you can
first.
- (j) Valuations agree on and differ on . Must ?
- (k) In the game at
,
with and : who chooses at the , what should be
chosen, and who wins?
- (l) Is “not both
and ” truth-functional?
If so, give a formula that expresses it.
Solution.
(a) : a true
hypothesis and a false conclusion.
(b) : the
hypothesis
is .
(c) : both sides
are .
(d) .
(e) is (one true
disjunct is enough); is (true
conclusion); is (false
hypothesis). waits for .
(f) , (or , ).
(g) Yes, .
(h) Only , .
(i) A true
conjunction forces both parts: true forces . A true
leaves
three choices, so the rows are = TTF, TFF,
FTF.
(j) Yes, both are
, since
is under every
valuation. But Lemma 4.4.1
does not say so, because and differ on the atom
: the lemma gives
a sufficient condition, not a necessary one.
(k) At the the players swap, so
the original verifier disputes and chooses at
the . She
chooses the conjunct , which is false, and
wins: is true.
(l) Yes: it is
only
when both parts are . The formula
expresses it.
B. Practice
Exercise
(B1: Backwards from F)
For each formula, work backwards from F to find every
row on its atoms in which it is false, or show that
there is none.
- (a) .
- (b) .
- (c) .
- (d) .
Solution. (a) Suppose the
formula is . Then is , and the
hypothesis is , so each of
, , is (V3). With
false, true forces , and true forces . Then
is , a
contradiction. So the formula is false in no row. It is
the table’s version of proof by cases: if follows from each of
and , and one of them holds,
then holds.
(b) Suppose it is . Then is and
is ; the
latter forces to be and to be , and the last
forces , . Then true with true forces . Now has a
true hypothesis and the conclusion , which is (true , false ), so it is , a
contradiction. False in no row.
(c) Suppose it is . Then is : and is . And
is : with
false, is exactly when
, and
exactly
when ; so at least one of , is . Together with
true:
exactly one of ,
is . This leaves a
choice, so split. The formula is false in exactly two
rows: and . Check the first: is , so the
hypothesis is ; is and is , so the
conclusion is .
(d) Suppose it is . Then is : , . The
hypothesis must be : is because is , and is because is , whatever
is. Nothing
forces . So the
formula is false in exactly two rows: , , and either value.
Exercise
(B2: Counting atoms, the last step blank)
Call a formula binary-built if it is
built from atoms by the four binary connectives only, so
that neither
nor occurs in
it; the immediate parts of a binary-built formula are
again binary-built. Define by recursion (Theorem 4.3.4)
the number of
atom occurrences and the number of
binary connectives: for every atom and every binary
connective .
(For and give both functions
any values; they play no part below.) Here is a proof,
by Theorem 4.3.1,
that every binary-built formula has The property is : if is binary-built,
then .
and
negation. Neither nor a formula is
binary-built, so
holds for them: its “if” is never met.
Atoms. .
Conjunction. Assume and , and let be
binary-built. Then and are binary-built, so
Disjunction and biconditional. The
computation is the same with , and with , in place
of .
Implication. ______
Name the move, then complete it.
Solution. The move is
induction on the shape of a formula (Theorem 4.3.1):
the case for a compound formula uses the property for
its immediate parts, and nothing else.
Implication. Assume and , and let be
binary-built. Its immediate parts and are binary-built, so
and . Hence which is . All clauses of Definition 4.1.1
are covered, so Theorem 4.3.1
gives
for every formula, and in particular the equation for
every binary-built formula.
For instance has four atom occurrences
( counted twice)
and three binary connectives.
Solution. True in every row. The only row in which both
and are true is row 3,
and there is
true. This is disjunctive syllogism, (Proposition 2.3.4):
from and
, infer .
Exercise
(B4: Exactly one is true)
An integer is
such that exactly one of these three
statements is true.
- (B) If is even, then is divisible by .
- (C) is divisible by , or is odd.
With the atom
for “ is even” and
the atom for
“ is divisible by
”, write (A), (B),
(C) as formulas, find every row on in which exactly one
of them is true, and say what can be.
Solution.
- (A) is , (B) is , and (C) is (“ is odd” is “ is not even”).
|
|
|
|
|
three |
|
|
|
|
|
one |
|
|
|
|
|
two |
|
|
|
|
|
two |
In the row TF, (B) has a true hypothesis and a false
conclusion, and (C) has two false disjuncts. In the rows
with false, (B)
has a false hypothesis and (C) the true disjunct . So only the row
,
makes exactly one statement true: is even and not
divisible by , for
instance , or .
The row FT is impossible for an integer, since a
number divisible by is even; it does not
matter, as it fails the puzzle anyway. (B) and (C) agree
in every row, and Section 4.5 explains why.
Marking scheme. (10 points)
- 3: the three formulas.
- 3: the four rows evaluated.
- 2: the conclusion about .
- 2: an example.
Exercise
(B5: Which primes divide n?)
Of an integer
we know that all four of these claims hold.
- If divides
, then does not.
- divides , or divides .
- If divides
, then does.
- and do not both divide
.
With the atoms , , for “”, “”, “”, find every row
making all four claims true by working backwards, and
give two such integers . Why may the three
atoms be treated as independent here?
Solution. The claims are , , and .
If were , claim 3 would
force (a true implication with a true
hypothesis has a true conclusion), and then would be , against claim
4. So . Then claim 2 forces , and claim
1 forces : with true, its conclusion
would be
false. Check: the row , , makes all four claims true, and
since every step was forced, it is the only such
row.
So divides
, and and do not: , or , for instance.
Independence: each of the eight rows is the row of
some integer. The integers
give the rows TTT, TTF, TFT, TFF, FTT, FTF, FFT, FFF, in
that order. So arithmetic rules out no row in advance,
and the table’s answer is the answer about integers.
Marking scheme. (10 points)
- 2: the four formulas.
- 4: the forced steps, each with its clause.
- 2: the check and two values of .
- 2: independence.
C. Going deeper
Exercise
(C1: A formula built from biconditionals)
Call a formula -built
if it is built from atoms by alone.
For a valuation
and a formula , let be the
number of occurrences of atoms in that are false
under , counted
with repetition.
- (a) Prove by
structural induction that every -built
is true
under exactly
when
is even.
- (b) Deduce that
has the same value as under every
valuation.
Solution (Hint 1). Put “if is -built”
inside the property, as in Exercise B2.
Solution (Hint 2). In the step,
. When is a sum
of two numbers even?
Solution. (a) The property
is :
if is
-built,
then for every valuation :
iff is
even. The cases , and the other three
binary connectives are vacuous, since such formulas are
not -built.
Atoms. If , then , which is
even; if , then , which is odd.
Either way, iff is even.
Step. Assume and , and let be -built.
Its parts are -built, so
the hypotheses apply to them. By (V6), iff , iff
and
are both
even or both odd (by the hypotheses), iff their sum
is even.
Every clause of Definition 4.1.1
is covered, so Theorem 4.3.1
gives
for every formula.
(b) In , the atom
occurs twice and
once. So counts if is false ( otherwise), plus if is false ( otherwise), which is
even exactly when
is true. By (a), the formula is true exactly when is.
Marking scheme. (10 points)
- 2: the property stated for every formula, with the
restriction inside and “for every ”.
- 1: the vacuous cases named.
- 2: the atom case, both values.
- 4: the step, with (V6) and the parity of a sum.
- 1: (b).
Fatal errors (0 for the step): a step that uses the
hypothesis for one part only; fixing outside the property
and then using another valuation.
Exercise
(C2: Find the error, used later)
Here is a claim and a “proof”.
Claim. Let be the
all-T valuation. Every formula built from atoms by , and only is true under
.
Proof. By Theorem 4.3.1,
with the property “if is built from
atoms by ,
, only, then ”. The formulas , and are not built in this way, so the property
holds for them. If a formula built in this way is ,
or , then and are built in this
way too, so the hypothesis applies to them. (1) For an
atom , by the definition of . (2) If
and , then by (V3). (3) If and , then by (V4), since at least one part
is true. (4) If and , then by (V5), because and an implication with a false
hypothesis is true. This covers every clause, and proves
the claim.
- (a) Is the claim
true?
- (b) Name the line
that fails and say exactly what is wrong with it.
- (c) Give a formula
on which the reason given in that line is false.
- (d) Repair the
line.
Solution. (a) Yes. The
claim is true, and the repaired proof in (d) proves it.
So no formula is a counterexample to the claim; the
error is in the argument only.
(b) Line (4). Its hypothesis states , and its reason states . The reason contradicts the
induction hypothesis it is supposed to use: it quotes
the vacuous row of (V5), which does not apply here. The
conclusion is correct, but not for the reason
given.
(c) . Under , , so the stated reason “” is false, although holds.
(d) (4) If and , then by (V5), because the conclusion
is true, so we
are not in the one row (true hypothesis, false
conclusion) where an implication is false. With
this line the induction is correct, and the claim
follows. Section 4.9 uses this fact to show that , and cannot express
negation.
Marking scheme. (10 points)
- 2: the claim is true (with the reason: the repaired
proof).
- 3: names line (4), and says its reason contradicts
the hypothesis of that very case.
- 2: a formula, such as , on which the stated reason fails.
- 3: the repair, citing the row of (V5) that actually
applies (conclusion true).
Fatal errors (0 for the step): calling the claim
false; locating the error in line (3) (at least one part
true is correct) or in the handling of , , .
Exercise
(C3: The game and the clauses)
Fix a valuation . For formulas built
from atoms by ,
, alone, define by
recursion (Theorem 4.3.4,
applied to the pair of truth values of the two
statements as one function, since each clause for calls on the other
statement; give , and any
values, they play no part) two statements,
(“the verifier can always win at ”) and
(“the falsifier can always win at ”):
| an atom |
|
|
|
|
|
|
and
|
or
|
|
or
|
and
|
- (a) Say in words why
each clause matches the rules of the game.
- (b) Prove by
structural induction that for every such formula ,
holds iff , and
holds iff .
- (c) Why must the two
statements of (b) be proved together?
Solution (Hint 1). Put “if is built from
, , ” inside the
property.
Solution (Hint 2). The step for
needs the
claim about for the
part.
Solution. (a) At an atom
the game ends, and the value of the atom decides the
winner. At
the falsifier chooses, so the verifier wins only if she
can win at both parts, whichever he picks, and the
falsifier wins if he can win at one of them, by picking
it. At the
verifier chooses, so the roles are reversed: she needs
one part, he needs both. At the players swap, so
winning as verifier at is winning as
falsifier at , and the other way
round.
(b) The property is : if is built from
, , , then ( iff
) and ( iff
). For , and it is
vacuous. For an atom both halves are the definition.
Negation. Assume . Then
iff iff
iff , by (V2). Likewise
iff iff
iff .
Conjunction. Assume and . iff both and
,
iff both parts are true, iff , by (V3). iff holds of one
part, iff one part is false, iff .
Disjunction. The same with (V4): iff one part
is true, iff both
parts are false.
Every clause of Definition 4.1.1
is covered, so Theorem 4.3.1
gives
for every formula.
(c) The step for uses the
hypothesis about for the
part, and the
step for uses the one
about .
Either half alone does not pass through the step, so the
property must carry both: Section 4.2’s move, proving
more in order to prove less.
Marking scheme. (10 points)
- 2: (a).
- 2: the property, with the restriction and both
halves.
- 1: the vacuous cases and the atoms.
- 2: the
step.
- 2: the
and
steps.
- 1: (c).
Fatal error (0 for the step): proving only the half and
using the half in the
step without
proof.