<<

Introduction & Review Tables Logical & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Announcements For 09.15.11

1 HW1 was due on Tuesday The of Boolean Connectives • If you didn’t turn it in, it’s late 2 HW2 & HW3 are due next Tuesday (09.20) Truth Tables, Tautologies & Logical Truths • Electronic HW must be submitted before class • Written HW must be handed in at beginning of class William Starr • Otherwise, it’s late 3 Optional sections have been scheduled • Wednesday 1:25-2:10, Uris 307 09.15.11 • Thursday 1:25-2:10, Uris G22

William Starr | Phil 2621: Minds & Machines | Cornell University 1/45 William Starr | Phil 2621: Minds & Machines | Cornell University 2/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Outline Introduction Truth Functions

• Last class, we learned the meaning of ∧, ∨, ¬ in terms 1 Introduction & Review of truth functions • We also saw that truth functions allowed us to do 2 Truth Tables something useful: • Figure out the of a complex sentence from 3 Logical Truths & Tautologies the truth values of its atomic parts, and vice versa • For example, we know that ¬(Cube(a) ∨ Cube(b)) is true in a world where neither a nor b are cubes, since: 4 Equivalence • If ¬(Cube(a) ∨ Cube(b)) is true, then Cube(a) ∨ Cube(b) is 5 Consequence • If Cube(a) ∨ Cube(b) is false, then Cube(a) and Cube(b) are false

William Starr | Phil 2621: Minds & Machines | Cornell University 3/45 William Starr | Phil 2621: Minds & Machines | Cornell University 5/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction Review Truth Tables The Boolean Connectives

Truth Table for ¬ for ∨ • These calculations — ones like the one we just went P ¬P through — are a bit clunky P Q P ∨ Q true false • There’s a more elegant method: Truth tables false true true true true • As it turns out, truth tables will also provide us with a true false true helpful way to understand 3 core logical : false true true false false false 1 Truth Table for ∧ 2 P Q P ∧ Q 3 Logical Equivalence • ¬ flips the value true true true • Today, we’ll learn all about truth tables & these true false false • ∧ takes the applications! false true false ‘worst’ value false false false • ∨ takes the ‘best’ value

William Starr | Phil 2621: Minds & Machines | Cornell University 6/45 William Starr | Phil 2621: Minds & Machines | Cornell University 7/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence The Basics The Basics Step 1: The Columns Step 2: Inside Out

• We are going to construct a truth table for Truth Table for (1) (1) Cube(a) ∨ ¬Cube(a) Cube(a) Cube(a) ∨¬ Cube(a) First, some columns: Truth Table for (1) t f 1 Reference Columns: f t Cube(a) Cube(a) ∨¬ Cube(a) columns for each atomic sub-sentence of (1) t f • Third, fill column beneath innermost connective ¬: 2 A column for (1) itself • In the first row, Cube(a) is t so ¬Cube(a) is f Second, fill the reference columns w/truth values. • In the second row, Cube(a) is f so ¬Cube(a) is t • One row for each unique logical possibility

William Starr | Phil 2621: Minds & Machines | Cornell University 10/45 William Starr | Phil 2621: Minds & Machines | Cornell University 11/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence The Basics The Basics Step 3: The Main Connective Summary: In General

Truth Table for (1) How to Construct a Truth Table for Any Sentence P Cube(a) Cube(a) ∨¬ Cube(a) 1 Reference Columns: Draw a column for each atomic t t f sub-sentence of P, these columns are called the f t t reference columns and are filled with every possible combination of truth-values for the sub-sentences • Last, fill columns beneath outermost connective ∨: 2 Inside Out: Draw a column for P itself. Then fill in • In the first row, Cube(a) is t and ¬Cube(a) is f, so the column below P’s innermost connective. Repeat their disjunction is t for the next innermost connective, until you get to the • In the first row, Cube(a) is f and ¬Cube(a) is t, so main connective. their disjunction is t 3 Main Connective: Fill in the column under the main • This column lists every logically possible truth value connective. This row lists the possible truth values of P for (1)

William Starr | Phil 2621: Minds & Machines | Cornell University 12/45 William Starr | Phil 2621: Minds & Machines | Cornell University 13/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Reference Columns Reference Columns There is More to It... How Many Rows? Let’s figure it out: • We have 2 atomic sub-sentences • When you have more than one atomic sub-sentence, • Each can have 2 different truth values (t,f) filling in the reference columns requires more thought • So there 22 = 4 possible combinations of truth values • Remember that each row of the reference columns lists and atomic sub-sentences a unique logical possibility • Therefore, a table for a formula with 2 atomic • Also remember that there is supposed to be a row for sub-sentences needs 4 rows every unique possibility You Always Need 2n Rows • Okay, well how many rows would we need for a formula with 2 atomic sub-sentences? In general, if there are n atomic sub-sentences of P then there will be 2n possible assignments of truth values to those atomic sub-sentences, in which case the truth table for P should have 2n rows.

William Starr | Phil 2621: Minds & Machines | Cornell University 15/45 William Starr | Phil 2621: Minds & Machines | Cornell University 16/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Another Example Another Example Step 1 Steps 2 & 3

• Let’s construct a truth table for: Truth Table for (2) (2) ¬(Cube(a) ∧ Cube(b)) • We need 2 reference columns: Cube(a) Cube(b) ¬(Cube(a) ∧¬ Cube(b)) • In them, we need a row for each of the 4 logical t t t f f possibilities t f f t t • Cube(a) can be t and Cube(b) t; Cube(a) t and f t t f f Cube(b) f, and so on. f f t f t Truth Table for (2) • Next, the innermost connective ¬: • Cube(a) Cube(b) ¬(Cube(a) ∧ ¬Cube(b)) It will flip each value of Cube(b) t t • Now, the next innermost ∧: t f • ∧ takes worst value of the pair f t • Finally, the main connective ¬: f f • ¬ flips the value of the conjunction we just computed

William Starr | Phil 2621: Minds & Machines | Cornell University 17/45 William Starr | Phil 2621: Minds & Machines | Cornell University 18/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Building Reference Columns Yet Another Example A Helpful Routine Step 1

• You need to list each possibility exactly once when We’ll construct a table for: filling in reference columns (3)( Cube(a) ∧ ¬Cube(b)) ∨ ¬Cube(c) • Here’s a helpful routine for this: Let A = Cube(a), B = Cube(b), C = Cube(c) 1 In the innermost ref. column, you alternate t’s and f’s Table for (3) 2 In the next innermost column, you double that A B C (A ∧ ¬B) ∨ ¬C • First, the 8 rows of the alternation, and so on for any more rows t t t reference columns: Truth Table for (2) t t f 1 Alternate on innermost Cube(a) Cube(b) ¬(Cube(a) ∧ ¬Cube(a)) t f t column t t t f f f t t 2 Double this alternation t f on the next f t f t f 3 Double again f f f f t f f f Let’s put this routine to work

William Starr | Phil 2621: Minds & Machines | Cornell University 19/45 William Starr | Phil 2621: Minds & Machines | Cornell University 20/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Yet Another Example You Try It Steps 2 & 3 In Class Exercise

Table for (3) • Next, rows for innermost connectives (¬) A B C (A ∧ ¬B) ∨ ¬C t t t f f f f • ¬B: flips value of B Break into groups of 4-6 and construct a truth table for: t t f f f t t • ¬C: flips value of C t f t t t t f • Now, the row for the next t f f t t t t innermost connective (∧) f t t f f f f f t f f f t t • ∧ takes lowest value (4)( B ∨ ¬C) ∧ ¬A f f t f t f f f f f f t t t

• Finally, the row for the main connective (∨): • ∨ takes highest value

William Starr | Phil 2621: Minds & Machines | Cornell University 21/45 William Starr | Phil 2621: Minds & Machines | Cornell University 22/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Boole Truth Tables An Introduction Summary

• LPL contains a program called Boole, which is for • Okay, we’ve learned how to draw these pretty tables, but how do they help us do logic? constructing truth tables 1 Truth tables probe logical possibility • Now that you’ve done a one by hand, you can 2 This underlies several important concepts: appreciate how nice of a tool this is! • Logical truth • Let’s run through the basics of Boole by using it to • Logical consequence construct a table for (3) • Logical equivalence • Let’s see how

William Starr | Phil 2621: Minds & Machines | Cornell University 24/45 William Starr | Phil 2621: Minds & Machines | Cornell University 25/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Logical Truth Tautologies The Basics Logical Truth Truth Table for (1) P is a logical truth it is logically necessary. P is a tautology if and only if the Cube(a) Cube(a) ∨ ¬Cube(a) That is, it is not possible for the laws of logic to hold truth table for P has only t’s in t tf while P is false. the column under P’s main f tt connective • Logical truths are those sentences which are guaranteed by logic alone to be true • So, (1) is a tautology • Logical possibility is different from physical & other • Intuitively, is (1) a logical truth? kinds of possibility • Yes! • Cube(a) ∨ ¬Cube(a) vs. Cube(a) ∨ Tet(a) ∨ Dodec(a) • So, it looks like the idea of a tautology is a way of • Traveling the speed of light vs. a round square making the idea of a logical truth a bit more precise • This sounds vague, can we do any better? • This is because truth tables are a precise way of • Yes, if we use truth tables thinking about logical possibility

William Starr | Phil 2621: Minds & Machines | Cornell University 27/45 William Starr | Phil 2621: Minds & Machines | Cornell University 28/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Tautologies Tautologies vs. Logical Truths Some Examples

• Recall that logical truths are sentences which are guaranteed to be true by the laws of logic alone • Cube(c) ∨ ¬Cube(c) is a tautology • All tautologies are logical truths • ¬(Tet(a) ∧ ¬Tet(a)) is a tautology • But are all logical truths tautologies? • Tet(a) ∨ Cube(a) is not a tautology • In other words, can we just replace the idea of a logical truth with that of a tautology? • No! Seeing this actually takes a little creativity

William Starr | Phil 2621: Minds & Machines | Cornell University 29/45 William Starr | Phil 2621: Minds & Machines | Cornell University 30/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence A Curious Logical Truth Tautologies & Logical Truths Which isn’t a Tautolgy Summary

• Surely it is a logical truth that Jay is Jay and that Kay is Kay: Remember (5) j = j ∧ k = k 1 P is a tautology if and only if every row of the truth • But consider the truth table for (5): table assigns t to P • Truth Table for (5) First, reference columns 2 If P is a tautology, then P is a logical truth • Second, main connective j = j k = k j = j ∧ k = k 3 But some logical truths are not tautologies • t t t But wait, there are f’s in 4 P is tt-possible if and only if at least one row of its t f f that column! truth table assigns t to P f t f • When you build reference f f f columns, you just list all the Let’s do exercise 4.5 combinations • But, some combinations don’t make sense!

William Starr | Phil 2621: Minds & Machines | Cornell University 31/45 William Starr | Phil 2621: Minds & Machines | Cornell University 32/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Summary Equivalence What We Just Did Two Varieties

Logical Equivalence • We learned how to construct truth tables, by hand & Two sentences are logically equivalent if and only if they with Boole have the same truth values in every possible situation • We then applied truth tables to the problem of precisely defining: • For example: Tet(a) and ¬¬Tet(a) are logically equivalent 1 Logical truth • We came up with a similar : Tautological Equivalence 1 Tautology Two sentences are tautologically equivalent just in case the • We saw that all Tautologies are logical truths, but columns under their main connectives in a joint truth table some logical truths are not tautologies are identical

• What is a joint truth table?

William Starr | Phil 2621: Minds & Machines | Cornell University 33/45 William Starr | Phil 2621: Minds & Machines | Cornell University 35/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Equivalence Equivalence Joint Truth Tables Logical vs. Tautological

• The idea of a joint truth table is quite simple, just add • We started by characterizing two kinds of equivalence a column on the right for another formula and 1 Logical calculate as before 2 Tautological • Every two sentences that are tautologically equivalent Joint Truth Table are logically equivalent P Q ¬ (P ∧ Q) ¬P ∨¬ Q 1 Ref. columns t t f t f f f • Does the reverse hold? 2 Inner connectives t f t f f t t • No, this pair is logically equivalent: f t t f t t f 3 Main connectives (6) a = b ∧ Cube(a) f f t f t t t (7) a = b ∧ Cube(b) • The columns under the main connectives are identical • But we can show with Boole that they aren’t • So, these two sentences are tautologically equivalent tautologically equivalent

William Starr | Phil 2621: Minds & Machines | Cornell University 36/45 William Starr | Phil 2621: Minds & Machines | Cornell University 37/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Consequence Two Varieties Again An Example

Logical Consequence 1 Joint Truth Table for Argument 1 C is a logical consequence of P1,..., Pn just in case it is logically A B A ∨ B ¬A B impossible for C to be false while P1,..., Pn are true A ∨ B t t t f t • We’ve already met this concept of /consequence ¬A t f t f f f t t t t • It doesn’t help us much with figuring out whether an B f f f t f argument is valid • provides one method, truth tables another: • First two columns for the • Last column for conclusion Tautological Consequence • Every row where both premises are t, the conclusion is C is a tautological consequence of P1,... Pn just in case every t row in their joint truth table that lists t under P1,..., Pn also lists t under C • So B is a tautological consequence of A ∨ B and ¬A

William Starr | Phil 2621: Minds & Machines | Cornell University 39/45 William Starr | Phil 2621: Minds & Machines | Cornell University 40/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Tautological Consequence Tautological Consequence Another Example: Exercise 4.20 In-Class Exercise

Exercise 4.21

Taller(claire, max) ∨ Taller(max, claire) Let’s run through exercise 4.20 Taller(claire, max) ¬Taller(max, claire)

William Starr | Phil 2621: Minds & Machines | Cornell University 41/45 William Starr | Phil 2621: Minds & Machines | Cornell University 42/45

Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Consequence Taut Con Questions Tautological Consequence in Fitch

1 If C is a tautological consequence of P1,..., Pn, is C a logical consequence of P1,... Pn? • Truth tables provide a powerful but purely mechanical • Yes, clearly procedure to test for logical consequence

2 If C is a logical consequence of P1,..., Pn, is C a • But, they often get really tedious and long tautological consequence of P1,... Pn? • But, that’s what computers are good at • No, lets show it using Boole to construct a joint truth • Fitch has a built-in mechanism for testing for table for this argument: tautological consequence Argument 2 • Taut Con • Much like Ana Con, this is not a rule of , a = b ∧ b = c but a computational mechanism • Let’s run through exercise 4.26 a = c

William Starr | Phil 2621: Minds & Machines | Cornell University 43/45 William Starr | Phil 2621: Minds & Machines | Cornell University 44/45 Introduction & Review Truth Tables Logical Truths & Tautologies Equivalence Consequence Summary What we did today

• We learned how to construct truth tables, by hand & with Boole • We applied truth tables to the problem of precisely defining: 1 Logical truth 2 Logical equivalence 3 Logical consequence • We came up with three similar concepts: 1 Tautology 2 Tautological equivalence 3 Tautological consequence • In each case Tautological implied Logical, but Logical did not imply Tautological

William Starr | Phil 2621: Minds & Machines | Cornell University 45/45