Download presentation
Presentation is loading. Please wait.
1
Sets and Logicβ¦. Chapter 2
An experimentβ¦.. Sets and Logicβ¦. Chapter 2
2
Logical Laws DeMorganβs Laws Commutative, Associative, and Idempotent
Β¬ πβ§π ππ πππ’ππ£πππππ‘ π‘π Β¬πβ¨Β¬π Β¬ πβ¨π ππ πππ’ππ£πππππ‘ π‘π Β¬πβ§Β¬π Commutative, Associative, and Idempotent Distributive πβ§ πβ¨π
ππ πππ’ππ£πππππ‘ π‘π (πβ§π)β¨(πβ§π
) πβ¨ Qβ§π
ππ πππ’ππ£πππππ‘ π‘π πβ¨π β§ πβ¨π
Absorption: πβ¨ πβ§π
ππ πππ’ππ£πππππ‘ π‘π π πβ§ πβ¨π
ππ πππ’ππ£πππππ‘ π‘π π
3
Tautologies and Contradictions
Statements or Formulas which are always true are Tautologies Formulas that are always false are Contradictions πβ§ π‘ππ’π‘πππππ¦ ; πβ¨ π‘ππ’π‘ππππππ¦ πβ§ ππππ‘ππππππ‘πππ ; πβ¨(ππππ‘ππππππ‘πππ)
4
Variables and Sets We will consider statements dependent upon a variable or a number of variables Exβs P(x): x is a prime number D(x,y): x is divisible by y In this case we donβt have truth tablesβ¦ we have truth sets
5
Conditional Statements
P implies Q: πβπ If its raining and I donβt have my umbrella, then Iβll get wet. If Mary did her homework, then the teacher wonβt collect it, and if she didnβt, the heβll ask her to do it on the board
6
Equivalences πβπ is equivalent to Β¬πβ¨π πβπ is equivalent to Β¬(πβ§Β¬π)
7
The Converse and Contrapositive
Consider πβπ and πβπ πβπ is called the converse of πβπ Β¬πβΒ¬π is the contrapositive of πβπ The converse of πβπ is not equivalent The contrapositive isβ¦β¦.. πβπ ππ πππ’ππ£πππππ‘ π‘π Β¬πβΒ¬π
8
Chapter 2: Quantifiers Three ideas
For all or for every, we use the notation: β There is one, or there exists: β The universeβ¦β¦
9
Seven Operators Connectives Quantifiers
Β¬ β§ β¨ β β Quantifiers β πππ β This is really all we need to write any mathematical statement!
10
New Notation βπ₯ π₯>2β π₯ 2 >4 Is there and implied universe?
11
Examples βπ₯ π₯ 2 >0 in what universe? βπ₯ π₯ 2 β2π₯+3=0 , Universe
βπ₯ π π₯ β§π΅ π₯ , where M(x) is ( x is a man) and B(x) is ( x has brown hair ) βπ₯ π π₯ βπ΅ π₯ βπ₯πΏ(π₯,π¦) where L(x,y) is a like function from x to y.
12
Write as Logical Statements
Someone didnβt do the homework Everything in that store is either overpriced or poorly made Nobodyβs perfect Susan likes everyone who dislikes Joe π΄βπ΅ π΄β©π΅βπ΅\C
13
Write as Statements Everybody in the dorm has a roommate he doesnβt like Nobody likes a sore loser Anyone who has a friend who has the measles will have to be quarantined If anyone in the dorm has a friend who has the measles, then everyone in the dorm will have to be quarantined If π΄βπ΅, then A and C\B are disjoint
14
Multiple Quantifiers βπ₯βπ¦ π₯<π¦ βπ¦βπ₯ π₯<π¦ βπ₯βπ¦ π₯<π¦ βπ¦βπ₯ π₯<π¦
βπ₯βπ¦ π₯<π¦ βπ₯βπ¦(π₯<π¦)
15
EquivaleNce Involving Quantifiers
Quantifier Negation Laws Β¬βπ₯π π₯ ππ πππ’ππ£πππππ‘ π‘πβπ₯Β¬π π₯ Β¬βπ₯π π₯ ππ πππ’ππ£πππππ‘ π‘π βπ₯Β¬π(π₯)
16
Examples Negate the statements, and then reexpress the results as equivalent positive statements π΄βπ΅ Everyone has a relative he doesnβt like
17
Analyze the logical forms
All married couples have fights Everyone likes at least two people John likes exactly one person
18
Anayze the Logical Forms
Statements about the natural numbers β x is a perfect square x is a multiple of y x is prime x is the smallest number that is a multiple of both y and z
19
Analyze the statements
Statements about real numbers β The identity element for addition is 0. Every real number has and additive inverse Negative numbers donβt have square roots Every positive number has exactly two square roots
20
2.3β¦. More on Sets Instead of just π₯ π(π₯) we can consider more general forms π(π₯) π₯β[0,1] ππ₯+π ππ₯+π π₯π[0,1]
21
More Examples π¦π 3 π₯ π₯πβ π₯ π πππΌ βπ΄ π 2 ππβ and π 3 ππβ are disjoint
22
The Power Set The Power Set β π΄ = π΅ π΅βπ΄
β π΄ = π΅ π΅βπ΄ Find the Power Set for π΄= π,π,π
23
AnAlyze the logical forms
π₯πβ π΄ β π΄ ββ π΅ π΅π β(π΄) π΄ββ± π₯πβ π΄β©π΅ π₯πβ(π΄)ββ(π΅)
24
Intersections and Unions
β±= 1,2,3,4 , 2,3,4,5}, 3,4,5,6 Find β©β±β¦βͺβ±
25
Definitions: Unions and Intersections
β©β±= π₯ βπ΄πβ± π₯ππ΄ = π₯ βπ΄(π΄πβ±βπ₯ππ΄ βͺβ±= π₯ βπ΄πβ± π₯ππ΄ = π₯ βπ΄(π΄πβ±β§π₯ππ΄
26
Analyze the logical forms
π₯πβ©β± β©β±ββ©G π₯πβ βͺβ± π₯πβͺ β(π΄) π΄πβ±
27
Another Example πΌ= 1,2,3 π΄ π = π,π+1,π+2,π+3
πΌ= 1,2,3 π΄ π = π,π+1,π+2,π+3 Find βͺ πππΌ π΄ π and β© πππΌ π΄ π
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.