Logic and Proofs Flashcards
What is a proposition?
is a statement that is either true or false.
What is logic?
is the study of formal reasoning
What is a truth value?
is a value indicating whether the proposition is actually true or false.
What is a compound proposition?
is created by connecting individual propositions with logical operations
What is a logical operator
Combines propositions using a particular composition rule.
Conjunction operator.
“AND” both must be true
What does a truth table do?
shows the truth value of a compound proposition for every possible combination of truth values for the variables contained in the compound proposition.
Disjunction operator
“OR” (∨) operation and evaluates to true when one or both of the propositions are true.
What is the difference between inclusive and exclusive “or” operator?
exclusive or: evaluates to true when p is true and q is false or when q is true and p is false.
inclusive or: is the same as the disjunction (∨) operation and evaluates to true when one or both of the propositions are true.
How to use the negation operator to search for something specific online?
Type: [what you want to search] and “-“ [what you don’t want to search]
What does the negation operator do? “-“
acts on just one proposition and has the effect of reversing the truth value of the proposition. The negation of proposition p is denoted ¬p and is read as “not p”.
How is the conditional operator represented?
The conditional operation is denoted with the symbol →. The proposition p → q is read “if p then q”..
What are p and q known as in a conditional proposition?
In p → q, the proposition p is called the hypothesis, and the proposition q is called the conclusion.
What is the converse of a conditional proposition?
The “reverse” of proposition. The converse of p → q is q → p.
What is the contrapositive of a conditional prop?
The reverse and negation of both props
The contrapositive of p → q is ¬q → ¬p.