Discrete Mathematics: Logic and Proofs
- 45Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
Why represent everyday statements using mathematical logic?
A formal representation makes statements easier to analyze and reason about precisely.
Or swipe the card
45 cards
Why represent everyday statements using mathematical logic?
A formal representation makes statements easier to analyze and reason about precisely.
How is logic used in digital electronics?
It provides mathematical representations that help describe and design digital circuits and computer components.
How can logic help with computer programs?
It supports precise reasoning about program meaning and behavior, including choices and iterations.
How does logic support proofs about algorithms or graphs?
It provides a formal way to express statements and reason toward conclusions, such as whether an algorithm is correct or a graph has a particular property.
What are the two types of logic introduced, and how do they differ?
Propositional logic represents declarative statements as whole units; predicate logic represents statements involving variables and predicates.
What is a proposition in propositional logic?
A declarative statement that has a truth value: true or false.
How can propositional variables represent statements?
A symbol such as p or q stands for a particular declarative statement.
When is a conjunction p∧q true?
Only when both p and q are true.
When is a disjunction p∨q true?
When at least one of p and q is true, including when both are true.
What does negation ¬p mean, and what kind of operator is it?
It means “not p” and reverses p’s truth value. It is a unary operator because it acts on one statement.
What does implication p→q mean?
It means “if p, then q”: whenever p is true, q must also be true.
When is an implication p→q false?
Only when p is true and q is false. It is true when p is false, regardless of q.
What does equivalence p↔q mean?
“p if and only if q”: the statements have the same truth value, so each implies the other.
How many rows does a truth table need for n propositional variables?
2n rows, since each variable can be either true or false.
What is a tautology?
A compound statement that is true for every possible assignment of truth values.
What is a contradiction?
A compound statement that is false for every possible assignment of truth values.
How can a truth table show that two propositions are logically equivalent?
Their truth-table columns match in every row; equivalently, their biconditional is a tautology.
What is an example of the commutative property for propositional connectives?
p∨q and q∨p have the same truth value in every case.
What is a predicate?
A statement pattern involving one or more variables; its truth value depends on the values assigned to those variables.
What happens when a value is substituted for every variable in a predicate?
The predicate becomes a declarative statement, or proposition, that is true or false.
If P(x) means “x is a student,” what does P(a) express?
It expresses the proposition “a is a student,” with the value a substituted for x.
How can a predicate represent a relation involving two variables?
For example, Q(x,y) can represent the statement x+y=3; assigning values to both variables determines its truth value.
What is the universe or domain of a predicate variable?
The set of values that the variable is allowed to take. It should fit the predicate being considered.
What does the universal quantifier ∀xP(x) mean?
For every value of x in the domain, P(x) is true.
What does the existential quantifier ∃xP(x) mean?
There is at least one value of x in the domain for which P(x) is true.
What does the scope of a quantifier determine?
It determines which part of a predicate statement the quantified variable applies to.
How do propositional connectives combine predicates?
The connectives combine the truth values of the predicate statements after values have been assigned to their variables.
What programming constructs were used as rough analogies for the quantifiers?
The universal quantifier was compared to a “for each” loop, and the existential quantifier to a search involving conditions. These are analogies for their meanings.
How can the negation of a universal statement be rewritten?
¬(∀xP(x))≡∃x¬P(x). One counterexample is enough to show that P(x) does not hold for every x.
How can the negation of an existential statement be rewritten?
¬(∃xP(x))≡∀x¬P(x). No value in the domain satisfies P(x).
What happens to a conjunction when it is negated?
By De Morgan’s law, ¬(p∧q)≡(¬p∨¬q).
What happens to a disjunction when it is negated?
By De Morgan’s law, ¬(p∨q)≡(¬p∧¬q).
What is the double-negation law?
¬(¬p)≡p.
What does negating “every integer is even” assert?
It asserts that at least one integer is not even: ∃x¬P(x), where P(x) means “x is even.”
What is a rule of inference?
A valid pattern for deriving a conclusion from one or more given premises.
In the common horizontal-line notation for an inference, what do the statements above and below the line represent?
The statements above the line are premises; the statement below it is the conclusion claimed to follow from them.
What is modus ponens?
From p→q and p, infer q.
What is modus tollens?
From p→q and ¬q, infer ¬p.
What is conjunction introduction?
From p and q, infer p∧q.
What can be inferred from a true conjunction p∧q?
Either conjunct can be inferred individually; for example, infer p from p∧q.
What is disjunction introduction?
From p, infer p∨q; the disjunction is true regardless of whether q is true or false.
Why is the inference from p∨q to p invalid?
Because p∨q can be true when p is false and q is true.
What is universal instantiation?
From ∀xP(x), infer P(c) for a particular value c in the domain.
What is existential generalization?
From P(c) for a particular value c in the domain, infer ∃xP(x).
How can modus ponens prove that an even integer is divisible by 2?
Let P(x) mean “x is even” and Q(x) mean “x is divisible by 2.” From P(x)→Q(x) and P(x), modus ponens gives Q(x).

Ask anything
We've read this whole study set, so questions about it get the best answers.