discrete math 1 midterm Flashcards
proposition
A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. All the following declarative sentences are propositions. 1. Washington, D.C., is the capital of the United States of America. 2. Toronto is the capital of Canada. 3. 1 + 1 = 2. 4. 2 + 2 = 3.
propositional variables
variables that represent propositions, just as letters are used to denote numerical variables. The conventional letters used for propositional variables are p, q, r, s, . . . . The truth value of a proposition is true, denoted by T, if it is a true proposition, and the truth value of a proposition is false, denoted by F, if it is a false proposition.
propositional calculus
The area of logic that deals with propositions The area of logic that deals with propositions is called the propositional calculus or propositional logic. It was first developed systematically by the Greek philosopher Aristotle more than 2300 years ago.
compound propositions
formed from existing propositions using logical operators
truth table
a diagram in rows and columns showing how the truth or falsity of a proposition varies with that of its components.
negation operator
¬p
conjunction operator
ᐱ
disjunction operator
ᐯ
p ∧ q
conjunction “and”
p ∨ q
disjunction “or”
¬p
negation “not”
inclusive or
p ∨ q “disjunction” p or q (but not both)”
conditional operator
→ The conditional statement p → q is false when p is true and q is false, and true otherwise
→
conditional statement
implication
→ A conditional statement is also called an implication
“If I am elected, then I will lower taxes.”
conditional statement
if 2 + 2 = 4 then x := x + 1
conditional statement
CONVERSE
one of three related conditional statements that occur so often that they have special names q → p is called the converse of p → q
CONTRAPOSITIVE
one of three related conditional statements that occur so often that they have special names p → q is the proposition ¬q →¬p
INVERSE
one of three related conditional statements that occur so often that they have special names ¬p →¬q is called the inverse of p → q
equivalent
When two compound propositions always have the same truth value. conditional statement and its contrapositive are equivalent: p → q = ¬q →¬p “If it is raining, then the home team wins.” “If the home team does not win, then it is not raining.”
biconditional statement
p ↔ q proposition “p if and only if q.” also called bi-implications
p ↔ q
biconditional proposition “p if and only if q.”
bi-implications
p ↔ q proposition “p if and only if q.” also called biconditional statement
“if and only if”
biconditional statement p ↔ q
“q whenever p”
→ conditional statement
“not”
negation operator ¬p
p → q “p only if q” Is Same As ?
“if p, then q,”
¬p →¬q
inverse
q → p is considered what of p → q
converse
p → q is considered what of ¬q →¬p
contrapositive
¬p →¬q is considered what of p → q
inverse
What are the contrapositive, the converse, and the inverse of the conditional statement “The home team wins whenever it is raining?”
Consequently, the contrapositive of this conditional statement is “If the home team does not win, then it is not raining.” The converse is “If the home team wins, then it is raining.” The inverse is “If it is not raining, then the home team does not win.” Only the contrapositive is equivalent to the original statement.
“iff”
“if and only if.” biconditional statement p ↔ q
(p → q) ∧ (q → p).
Note that p ↔ q has exactly the same truth value as (p → q) ∧ (q → p). **** biconditional statement ****
What is the Precedence of Logical Operator →
¬ 1 ∧ 2 ∨ 3 → 4 ↔ 5
What is the Precedence of Logical Operator ¬
¬ 1 ∧ 2 ∨ 3 → 4 ↔ 5
What is the Precedence of Logical Operator ↔
¬ 1 ∧ 2 ∨ 3 → 4 ↔ 5