Discrete Structures Week 1 Flashcards
What is a proposition?
a statement that is true or false
What is a truth value?
T or F
- the truth value of a proposition is T or F
What are logical variables?
propositions are called variables
- represent a proposition with a symbol
- make new propositions out of old ones
Negation operator
“not p”
the little corner p
principle of noncontradiction
a proposition and its negation cant be true at the same time
conjunction operator
“p and q are true”
p ^ q
disconjunction operator
“p or q is true (or both)”
p v q
truth table, what for, and how to set up
a logical operator is fully determined by its truth table
- the truth values of the operator if we are given the truth values of p and q
1 - 2 ^ propositions
2- 1st row, half true, half false
3- half of half true, half of half false
4- alternating
conditional operator
“if p, then q”
p -> q
vacuously true
the assumption is false, statement t
p -> q
if p is false
p -> q is t
biconditional operator
“p if and only if q”
p <-> q
“if p, then q, and if q, then p”
p -> q ^ q -> p
exclusive or operator
XoR
“p or q, but not both”
p “direct sum(plus inside a circle” q
equivalence
2 logical operators are equivalent if they have the same truth table
equivalence proposition
p <=> q
“p and q are equivalent id p and q have the same truth table”
- asks you to prove, already know they are the same