Discrete Structures Week 2 Flashcards
logical operators
produce new propositions out of old ones
- negation
- conjunction
-disconjunction
-exclusive or
-conditional
-biconditional
- equivalence
logical equivalence
p and q are equivalent id they have the same truth table
contrapositive
p -> q =(3lines) not q then not p
p if q is a different way to say…
q then p
p only if q means
p is T only if q is T so
not q -> not p = p -> q
1st Morgan Law
not (p ^ q) = not p v not q
every logical operator is equivalent to…
one that is written only in terms of ^, v, not
two operators A and B are logically equivalents if and only if…
A is true whenever B is true and A is false whenever B is false
2nd De Morgan Law
not (p v q) = not p ^ not q
- proof for this
T is # and F is #
and how to solve these problems
T is 1, F is 0
- compare is corresponding number with the operator
Contrapositive
p -> q = not q -> not p
De Morgan Laws
not (p ^ q) = not p v not q
- prove by truth table
not (p v q) = not p ^ not q
- two propositions proof
p = q if P =T whenever q = T and p =F whenever q =F
Tautology
a compound propositions that is always true
p v not p
contradiction
a compound propositions that is always false
p ^ not p
contingency
a compound proposition that is neither false or true always
p