Logic Flashcards
logic
the study of formal reasoning
proposition
a statement that is either true or false, typically declarative sentences
truth value
indicating whether the proposition is actually true or false
compound proposition
created by connecting individual propositions with logical operators
logical operation
combines propositions using a particular composition rule
conjunction
/\, ‘p and q’, true if both p and q are true, false if one or both are false
truth table
shows truth value of a compound proposition for every possible combination of truth values for the variables
conjunction english examples
p and h, p but h, although p, h
disjunction
\/, ‘p or q’ ‘p \/ q’ true if either p or q or both are true, false if both are false
exclusive or (circle w/ plus)
evaluates to true when p is true and q is false, or vise versa
inclusive or
operates the same as disjunction
negation
reverses the truth value of the proposition
order of operations w/o parentheses
- negation, 2. conjunction, 3. disjunction, 4. exclusive or, 5. conditional operation, 6. biconditional operation
how many rows will be in a truth table?
n variables = 2^n rows
conditional operation
->, reads if p then q, false if p is true and q is false, otherwise, true