Snick  snack Supplement: Worked Set Proofs Based on work by Meghan Allen.

Slides:



Advertisements
Similar presentations
Set Operations. When sets are equal A equals B iff for all x, x is in A iff x is in B or … and this is what we do to prove sets equal.
Advertisements

Union Definition: The union of sets A and B, denoted by A B, contains those elements that are in A or B or both: Example: { 1, 2, 3} {3, 4, 5} = { 1,
Chapter 3 Elementary Number Theory and Methods of Proof.
Chapter 3 Direct Proof and Proof by Contrapositive
CSE 20 Lecture 9 Boolean Algebra: Theorems and Proofs CK Cheng April 26, 2011 Lecture notes 1.
1 In this lecture  Number Theory ● Rational numbers ● Divisibility  Proofs ● Direct proofs (cont.) ● Common mistakes in proofs ● Disproof by counterexample.
Copyright © Cengage Learning. All rights reserved.
Prof. Johnnie Baker Module Basic Structures: Sets
Instructor: Hayk Melikya
(CSC 102) Discrete Structures Lecture 14.
Elementary Number Theory and Methods of Proof
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Discrete Mathematics Lecture 4 Harper Langston New York University.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
1 More Applications of the Pumping Lemma. 2 The Pumping Lemma: Given a infinite regular language there exists an integer for any string with length we.
Snick  snack CPSC 121: Models of Computation 2010 Winter Term 2 Sets Steve Wolfman, based on notes by Patrice Belleville and others 1.
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
1 Set Theory. 2 Set Properties Commutative Laws: Associative Laws: Distributive Laws:
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
CSE115/ENGR160 Discrete Mathematics 03/29/11 Ming-Hsuan Yang UC Merced 1.
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
CSE 311 Foundations of Computing I Lecture 8 Proofs and Set Theory Spring
Mathematical Preliminaries (Hein 1.1 and 1.2) Sets are collections in which order of elements and duplication of elements do not matter. – {1,a,1,1} =
Chapter 5 Existence and Proof by contradiction
CS201: Data Structures and Discrete Mathematics I
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
Week 6 - Friday.  What did we talk about last time?  Solving recurrence relations.
1 Introduction to Abstract Mathematics Sets Section 2.1 Basic Notions of Sets Section 2.2 Operations with sets Section 2.3 Indexed Sets Instructor: Hayk.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
Sets 2/10/121. What is a Set? Informally, a collection of objects, determined by its members, treated as a single mathematical object Not a real definition:
CSE 311 Foundations of Computing I Lecture 9 Proofs and Set Theory Autumn 2012 CSE
Relations & Their Properties: Selected Exercises.
Math 344 Winter 07 Group Theory Part 2: Subgroups and Isomorphism
Introduction to Set theory. Ways of Describing Sets.
Set identities.
Lecture # 12 Set Identities
Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A  B | = | A | + | B | – | A  B| | A  B  C | = | A | + | B | + | C.
Based on slides by Patrice Belleville and Steve Wolfman CPSC 121: Models of Computation Unit 11: Sets.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
1 Section 1.2 Sets A set is a collection of things. If S is a set and x is a member or element of S we write x  S. Othewise we write x  S. The set with.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
5.1 Indirect Proof Objective: After studying this section, you will be able to write indirect proofs.
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Lesson 1.6 Paragraph Proofs Objective: Write paragraph proofs.
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Thinking Mathematically Venn Diagrams and Set Operations.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Section 6.1 Set and Set Operations. Set: A set is a collection of objects/elements. Ex. A = {w, a, r, d} Sets are often named with capital letters. Order.
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
Copyright © Cengage Learning. All rights reserved.
Set Theory.
CPSC 121: Models of Computation 2012 Summer Term 2
Week 7 - Monday CS322.
Set Topology MTH 251 Lecture # 8.
CPSC 121: Models of Computation 2016W2
Chapter 2 Notes Math 309 Probability.
Mathematical Induction
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
5.6 Inequalities in Two Triangles and Indirect Proof
Chapter 5 Parallel Lines and Related Figures
5.1 Indirect Proof Let’s take a Given: Prove: Proof: Either or
Presentation transcript:

snick  snack Supplement: Worked Set Proofs Based on work by Meghan Allen

Proofs with Sets #1 version 1 Prove that for all sets A and B: A  B = A  B Proof #1: A  B = {x  U | x  ( A  B)} = {x  U | ~(x  A  x  B)} = {x  U | x  A  x  B} = {x  U | x  A  x  B} = A  B Def’n of  De Morgan’s Def’n of Def’n of  Def’n of

Proofs with Sets #1 version 2 Remember that for any two sets C and D, C = D iff C is a subset of D and D is a subset of C. C = D  [C  D  D  C]

Proofs with Sets #1 version 2 a)Prove that: A  B  A  B Pick an arbitrary x  A  B, Then x  A  B. ~(x  A  x  B) x  A  x  B x  A  x  B x  ( A  B) Def’n of  De Morgan’s Def’n of Def’n of 

Proofs with Sets #1 version 2 b)Prove that: A  B  A  B Pick an arbitrary x  A  B Then, x  A  x  B x  A  x  B ~(x  A  x  B) x  A  B x  A  B

Proofs with Sets #1 version 2 conclusion We have shown that A  B  A  B and A  B  A  B. Therefore, A  B = A  B.

Proof with Sets #2 Prove that, for all sets A, B and C: (A  B) – C = (A – C)  (B – C) This time we’ll use the Set Identities LHS: (A  B) – C = (A  B)  C Set Difference Law = C  (A  B) Commutative Law = (C  A)  (C  B) Distributive Law = (A  C)  (B  C) Commutative Law = (A - C)  (B – C) Set Difference Law

Proofs with Sets #3 Prove or disprove, for all sets A and B, A – B = B – A We can disprove this with a counterexample. Let A = {1,2} and B = {2,3} Then, A-B = {1} and B-A = {3} A – B ≠ B – A

Proofs with Sets #4 Prove that for all sets A and B, if A  B then A  B =  Proof by contradiction. Assume A  B and A  B  . Then, there exists an element x  A  B. By the definition of intersection, that means x  A and x  B. Since x  B, x  B by the definition of complement. But, A  B, so since x  A, x  B by definition of subset. Thus, x  B and x  B which is a contradiction. Hence the assumption is false and therefore for all sets A and B, if A  B then A  B = 

Proofs with Sets #5 Prove that for all sets A and B, if A  B then P(A)  P(B) WLOG, let A and B be sets. Proof by antecedent assumption: Assume A  B. Now, consider X  P(A). X  A by the definition of power set. But, because A  B, X  B by the transitive property of subsets* and thus, by the definition of power set, X  P(B). This proves that for all X, if X  P(A) then X  P(B) and so P(A)  P(B). *Epp -Theorem 5.2.1

Proofs with Sets #6 version 1 Prove that for all sets S,   S. We proceed by contradiction. Assume that there is a set S such that the empty set is not a subset of S. Then, by definition of subset, there must be some element x of the empty set that is not an element of S. However, the empty set has no elements. This is a contradiction. QED

Proofs with Sets #6 version 2 Prove that for all sets S,   S. Note that   S   x  U, x    x  S   x  U, x    x  S. We proceed by proving this last statement. We know nothing is an element of the empty set:  x  U, x  . By generalization, it follows that:  x  U, x    x  S. QED