Propositions
- A declarative statement that can either be true or false
- βEarth is flatβ β T
- βTen is less than sevenβ β F
Boolean Algebra
Conditional Statements
- Negation () β not
- Conjunction () β and
- Disjunction () β or
- Exclusive Or () β xor
Variations
- Implication () β if then
- β vacuous truth
- Converse (q p)
- If you failed the course, then you did poorly on an exam
- Inverse ()
- You did not do poorly on an exam, you will not fail the course
- Contrapositive ()
- If you didnβt fail, you didnβt do poorly on a test
- Biconditional () β βif and only ifβ
Vacuous Truth
- If is false, is always true.
Predicates + Quantifiers
- Predicate β a function that returns a boolean value based on input
- Universal Quantifier β for all , must be true
- Existential Quantifier β there exists and where is true
Terms
- Tautology β a statement that is always true
- Contradiction β a statement that is always false
Logical Properties
- Commutative β
- Associative β
- Distributive β