CHAPTER 6. Copyright Cengage Learning. All rights reserved.

Similar documents
Set Theory. CSE 215, Foundations of Computer Science Stony Brook University

CSCI3390-Lecture 6: An Undecidable Problem

The Limits of Computation

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

With Question/Answer Animations. Chapter 2

SET THEORY. Disproving an Alleged Set Property. Disproving an Alleged Set. Example 1 Solution CHAPTER 6

THE LOGIC OF COMPOUND STATEMENTS

Introduction to Proofs

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Introduction to Logic

Russell s logicism. Jeff Speaks. September 26, 2007

Chapter 2 Sets, Relations and Functions

Discrete Mathematics. (c) Marcin Sydow. Sets. Set operations. Sets. Set identities Number sets. Pair. Power Set. Venn diagrams

COMP Logic for Computer Scientists. Lecture 16

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

A Little History Incompleteness The First Theorem The Second Theorem Implications. Gödel s Theorem. Anders O.F. Hendrickson

Turing Machine Recap

Theory of Computation

Artificial Intelligence

Set Theory Basics of Set Theory. 6.2 Properties of Sets and Element Argument. 6.3 Algebraic Proofs 6.4 Boolean Algebras.

COMP Logic for Computer Scientists. Lecture 16

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

INTRODUCTION TO LOGIC

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015)

The Limit of Humanly Knowable Mathematical Truth

COMP Intro to Logic for Computer Scientists. Lecture 15

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

CS20a: Turing Machines (Oct 29, 2002)

Chapter 2: The Logic of Compound Statements

Math Final Exam December 14, 2009 Page 1 of 5

Math 109 September 1, 2016

We introduce one more operation on sets, perhaps the most important

Logic Synthesis and Verification

7.6 The Inverse of a Square Matrix

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

CS 173: Discrete Structures. Eric Shaffer Office Hour: Wed. 1-2, 2215 SC

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 20. To Infinity And Beyond: Countability and Computability

CS/MA 109 Quantitative Reasoning. Wayne Snyder Computer Science Department Boston University

HANDOUT AND SET THEORY. Ariyadi Wijaya

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall

CHAPTER 7 FUNCTIONS. Alessandro Artale UniBZ - artale/

Tautologies, Contradictions, and Contingencies

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Learning Goals of CS245 Logic and Computation

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Handbook of Logic and Proof Techniques for Computer Science

(c) Give a proof of or a counterexample to the following statement: (3n 2)= n(3n 1) 2

Lecture 2: Axiomatic semantics

cse541 LOGIC FOR COMPUTER SCIENCE

CSC Discrete Math I, Spring Propositional Logic

Introduction to Computer Science

FOUNDATIONS & PROOF LECTURE NOTES by Dr Lynne Walling

Sec$on Summary. Definition of sets Describing Sets

Decidability: Church-Turing Thesis

Advanced Topics in LP and FP

cse371/mat371 LOGIC Professor Anita Wasilewska Fall 2018

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Informal Statement Calculus

Sets and Games. Logic Tea, ILLC Amsterdam. 14. September Stefan Bold. Institute for Logic, Language and Computation. Department of Mathematics

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B


Lecture 11: Measuring the Complexity of Proofs

CHAPTER 11. Introduction to Intuitionistic Logic

Part I: Propositional Calculus

Comment: The induction is always on some parameter, and the basis case is always an integer or set of integers.

Huan Long Shanghai Jiao Tong University

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

How to Make a Proof of Halting Problem More Convincing: A Pedagogical Remark

CPSC 421: Tutorial #1

Axiomatic set theory. Chapter Why axiomatic set theory?

Chapter 4. Basic Set Theory. 4.1 The Language of Set Theory

Chapter 2: Introduction to Propositional Logic

GÖDEL S COMPLETENESS AND INCOMPLETENESS THEOREMS. Contents 1. Introduction Gödel s Completeness Theorem

Boolean algebra. Values

Fundamentals of Mathematics (MATH 1510)

1.1 Language and Logic

2.2: Logical Equivalence: The Laws of Logic

10.2 Systems of Linear Equations

CM10196 Topic 2: Sets, Predicates, Boolean algebras

THE LOGIC OF QUANTIFIED STATEMENTS

Equivalence and Implication

ON1 Big Mock Test 4 October 2013 Answers This test counts 4% of assessment for the course. Time allowed: 10 minutes

Warm-Up Problem. Please fill out your Teaching Evaluation Survey! Please comment on the warm-up problems if you haven t filled in your survey yet.

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA

Elementary constructions on sets

Mathematics. Lecture and practice. Norbert Bogya. University of Szeged, Bolyai Institute. Norbert Bogya (Bolyai Institute) Mathematics / 27

Introduction to Metalogic

Announcements CompSci 102 Discrete Math for Computer Science

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

11.4 The Comparison Tests. Copyright Cengage Learning. All rights reserved.

Logical Agent & Propositional Logic

DISCRETE MATH: FINAL REVIEW

Transcription:

CHAPTER 6 SET THEORY Copyright Cengage Learning. All rights reserved.

SECTION 6.4 Boolean Algebras, Russell s Paradox, and the Halting Problem Copyright Cengage Learning. All rights reserved.

Boolean Algebras, Russell s Paradox, and the Halting Problem Table 6.4.1 summarizes the main features of the logical equivalences from Theorem 2.1.1 and the set properties from Theorem 6.2.2. Notice how similar the entries in the two columns are. Table 6.4.1 3

Boolean Algebras, Russell s Paradox, and the Halting Problem Table 6.4.1 (continued) 4

Boolean Algebras, Russell s Paradox, and the Halting Problem 5

Boolean Algebras, Russell s Paradox, and the Halting Problem 6

Boolean Algebras, Russell s Paradox, and the Halting Problem cont d 7

Boolean Algebras, Russell s Paradox, and the Halting Problem If you let (or) correspond to (union), (and) correspond to (intersection), t (a tautology) correspond to U (a universal set), c (a contradiction) correspond to Ø (the empty set), and ~ (negation) correspond to c (complementation), then you can see that the structure of the set of statement forms with operations and is essentially identical to the structure of the set of subsets of a universal set with operations and. In fact, both are special cases of the same general structure, known as a Boolean algebra. 8

Boolean Algebras, Russell s Paradox, and the Halting Problem In this section we show how to derive the various properties associated with a Boolean algebra from a set of just five axioms. 9

Boolean Algebras, Russell s Paradox, and the Halting Problem 10

Boolean Algebras, Russell s Paradox, and the Halting Problem In any Boolean algebra, the complement of each element is unique, the quantities 0 and 1 are unique, and identities analogous to those in Theorem 2.1.1 and Theorem 6.2.2 can be deduced. 11

Boolean Algebras, Russell s Paradox, and the Halting Problem cont d 12

Boolean Algebras, Russell s Paradox, and the Halting Problem You may notice that all parts of the definition of a Boolean algebra and most parts of Theorem 6.4.1 contain paired statements. For instance, the distributive laws state that for all a, b, and c in B, (a) a + (b c) = (a + b) (a + c) (b) a (b + c) = (a b) + (a c), and and the identity laws state that for all a in B, (a) a + 0 = a and (b) a 1 = a. 13

Boolean Algebras, Russell s Paradox, and the Halting Problem Note that each of the paired statements can be obtained from the other by interchanging all the + and signs and interchanging 1 and 0. Such interchanges transform any Boolean identity into its dual identity. It can be proved that the dual of any Boolean identity is also an identity. This fact is often called the duality principle for a Boolean algebra. 14

Example 1 Proof of the Double Complement Law Prove that for all elements a in a Boolean algebra Solution: Start by supposing that B is a Boolean algebra and a is any element of B. The basis for the proof is the uniqueness of the complement law: that each element in B has a unique complement that satisfies certain equations with respect to it. So if a can be shown to satisfy those equations with respect to, then a must be the complement of. 15

Example 1 Solution cont d Proof: Suppose B is a Boolean algebra and a is any element of B. Then and 16

Example 1 Solution cont d Thus a satisfies the two equations with respect to that are satisfied by the complement of. From the fact that the complement of a is unique, we conclude that = a. 17

Russell s Paradox 18

Russell s Paradox Russell s Paradox: Most sets are not elements of themselves. For instance, the set of all integers is not an integer and the set of all horses is not a horse. However, we can imagine the possibility of a set s being an element of itself. For instance, the set of all abstract ideas might be considered an abstract idea. If we are allowed to use any description of a property as the defining property of a set, we can let S be the set of all sets that are not elements of themselves: 19

Russell s Paradox Is S an element of itself? The answer is neither yes nor no. For if S S, then S satisfies the defining property for S, and hence S S. But if S S, then S is a set such that S S and so S satisfies the defining property for S, which implies that S S. Thus neither is S S nor is S S, which is a contradiction. To help explain his discovery to laypeople, Russell devised a puzzle, the barber puzzle, whose solution exhibits the same logic as his paradox. 20

Example 3 The Barber Puzzle In a certain town there is a male barber who shaves all those men, and only those men, who do not shave themselves. Question: Does the barber shave himself? Solution: Neither yes nor no. If the barber shaves himself, he is a member of the class of men who shave themselves. But no member of this class is shaved by the barber, and so the barber does not shave himself. 21

Example 3 Solution cont d On the other hand, if the barber does not shave himself, he belongs to the class of men who do not shave themselves. But the barber shaves every man in this class, so the barber does shave himself. 22

Russell s Paradox So let s accept the fact that the paradox has no easy resolution and see where that thought leads. Since the barber neither shaves himself nor doesn t shave himself, the sentence The barber shaves himself is neither true nor false. But the sentence arose in a natural way from a description of a situation. If the situation actually existed, then the sentence would have to be true or false. Thus we are forced to conclude that the situation described in the puzzle simply cannot exist in the world as we know it. 23

Russell s Paradox In a similar way, the conclusion to be drawn from Russell s paradox itself is that the object S is not a set. Because if it actually were a set, in the sense of satisfying the general properties of sets that we have been assuming, then it either would be an element of itself or not. Let U be a universal set and suppose that all sets under discussion are subsets of U. Let 24

Russell s Paradox In Russell s paradox, both implications are proved, and the contradictory conclusion is therefore deduced. In the situation in which all sets under discussion are subsets of U, the implication S S S S is proved in almost the same way as it is for Russell s paradox: (Suppose S S. Then by definition of S, S U and S S. In particular, S S.) 25

Russell s Paradox On the other hand, from the supposition that S S we can only deduce that the statement S U and S S is false. By one of De Morgan s laws, this means that S U or S S. Since S S would contradict the supposition that S S, we eliminate it and conclude that S U. In other words, the only conclusion we can draw is that the seeming definition of S is faulty that is, that S is not a set in U. 26

The Halting Problem 27

The Halting Problem If you have some experience programming computers, you know how badly an infinite loop can tie up a computer system. It would be useful to be able to preprocess a program and its data set by running it through a checking program that determines whether execution of the given program with the given data set would result in an infinite loop. Can an algorithm for such a program be written? 28

The Halting Problem In other words, can an algorithm be written that will accept any algorithm X and any data set D as input and will then print halts or loops forever to indicate whether X terminates in a finite number of steps or loops forever when run with data set D? In the 1930s, Turing proved that the answer to this question is no. 29

The Halting Problem In recent years, the axioms for set theory that guarantee that Russell s paradox will not arise have been found inadequate to deal with the full range of recursively defined objects in computer science, and a new theory of non-well-founded sets has been developed. In addition, computer scientists and logicians working on programs to enable computers to process natural language have seen the importance of exploring further the kinds of semantic issues raised by the barber puzzle and are developing new theories of logic to deal with them. 30