Discrete Mathematics: Logic and Proofs
- 54Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the basic purpose of logic in discrete mathematics?
54 questions
- 1
What is the basic purpose of logic in discrete mathematics?
Model answer
Logic provides a mathematical way to represent and reason about statements encountered in everyday life.
Explanation
The lesson describes logic as a way to express declarative statements in mathematical form.
- 2
Give two ways logic is useful in computer science.
Model answer
It supports the design of digital circuits and helps with reasoning about programs, algorithms, and their correctness.
Explanation
The lesson connects logic to both digital electronics and computational reasoning.
- 3
How can logic help when reasoning about a program?
Model answer
It provides a clear representation for examining what a program does, including its conditions and iterative behavior.
Explanation
The lesson highlights using logic to think about program semantics, such as loops and iteration variables.
- 4
What are the two types of logic discussed, and how do they differ?
Model answer
Propositional logic represents declarative statements, while predicate logic extends this approach to statements involving variables and predicates.
Explanation
Predicate logic builds on propositional logic and can express statements involving variables.
- 5
Why is propositional logic introduced before predicate logic?
Model answer
Predicate logic uses ideas from propositional logic, so understanding propositional logic provides a foundation for it.
Explanation
The lesson explicitly presents propositional logic first because predicate logic relies on it.
- 6
How can logic be used when proving that an algorithm or a graph has a property?
Model answer
The relevant claims can be represented as logical statements and used in a structured proof.
Explanation
The lesson describes logic as useful for proving claims about problems, graphs, and algorithm correctness.
- 7
What is a proposition in the context of propositional logic?
Model answer
A proposition is a declarative statement that can be assigned a truth value: true or false.
Explanation
The lesson treats declarative statements as true or false and represents them using propositional variables.
- 8
How can a propositional variable represent a sentence?
Model answer
A variable such as p can stand for a particular declarative sentence, and another variable such as q can stand for a different sentence.
Explanation
The lesson uses propositional letters as shorthand for statements such as claims about Delhi.
- 9
What does the conjunction of two propositions mean?
Model answer
The conjunction, written p∧q, means that both p and q are true.
Explanation
The English connector “and” is true only when both component statements are true.
- 10
When is a disjunction p∨q true?
Model answer
It is true when at least one of p or q is true, including when both are true.
Explanation
The lesson explains that “or” includes the case where both statements hold and is false only when both are false.
- 11
What does the negation of a proposition express?
Model answer
The negation ¬p says that p is not true.
Explanation
Negation reverses the truth value of the proposition it applies to.
- 12
What does the implication p→q assert?
Model answer
It asserts that if p is true, then q must be true; when p is false, the implication places no requirement on q.
Explanation
The lesson defines implication by the condition that a true antecedent requires a true consequent.
- 13
When is an implication p→q false?
Model answer
It is false when p is true and q is false.
Explanation
This is the one case that violates the condition “if p, then q.”
- 14
What does the equivalence p↔q mean?
Model answer
It means that p and q have the same truth value: each implies the other.
Explanation
The lesson describes equivalence as “if and only if” and as the conjunction of the two implications.
- 15
How can p↔q be expressed using implications and conjunction?
Model answer
It can be expressed as (p→q)∧(q→p).
Explanation
The lesson explains that equivalence requires both directions of implication to hold.
- 16
How many rows are needed in a truth table with one, two, or three propositional variables?
Model answer
One variable needs 2 rows, two need 4, and three need 8.
Explanation
Each variable has two possible truth values, so the number of combinations doubles with each added variable.
- 17
How many rows does a truth table need for n propositional variables?
Model answer
It needs 2n rows, one for every possible combination of truth values.
Explanation
Each of the n variables can independently be true or false.
- 18
When is a conjunction p∧q true, and when is it false?
Model answer
It is true only when both propositions are true; it is false in all other cases.
Explanation
This follows from the meaning of “and” as requiring both statements to hold.
- 19
When is a disjunction p∨q false?
Model answer
It is false only when both p and q are false.
Explanation
If either proposition is true, the disjunction is true.
- 20
How does negation change a proposition's truth value?
Model answer
If the proposition is true, its negation is false; if it is false, its negation is true.
Explanation
Negation reverses the truth value in each possible case.
- 21
What is a tautology?
Model answer
A tautology is a compound proposition that is true for every possible assignment of truth values to its variables.
Explanation
In a truth table, every entry in the final column of a tautology is true.
- 22
What is a contradiction?
Model answer
A contradiction is a compound proposition that is false for every possible assignment of truth values to its variables.
Explanation
In a truth table, every entry in its final column is false.
- 23
How can a truth table establish whether two compound propositions are equivalent?
Model answer
Compare their truth-table columns; the propositions are equivalent if the columns have the same values in every row.
Explanation
The lesson treats propositions with matching truth values in all cases as equivalent.
- 24
State the commutative property of disjunction described in the lesson.
Model answer
p∨q is equivalent to q∨p.
Explanation
Swapping the order of the propositions does not change the truth value of their disjunction.
- 25
How can a predicate such as “x is a student” be represented?
Model answer
It can be represented by a predicate such as P(x), with x standing for an object or individual.
Explanation
A predicate contains a variable whose value determines the statement being made.
- 26
What happens when a specific value is substituted for a predicate's variable?
Model answer
The predicate becomes a declarative proposition that can be evaluated as true or false.
Explanation
For example, substituting a particular individual for x in P(x) produces a complete statement.
- 27
How can a predicate involving two variables be represented?
Model answer
It can be written as a predicate such as Q(x,y), where the truth of the statement depends on values assigned to both variables.
Explanation
The lesson gives a two-variable predicate involving a relationship between x and y.
- 28
What is the universe or domain of a predicate variable?
Model answer
It is the collection of values that the variable is allowed to represent.
Explanation
Quantified statements are interpreted over a specified or understood universe of possible values.
- 29
Why must the universe be appropriate for the predicate?
Model answer
The universe must contain values that make sense for the predicate being considered.
Explanation
For example, a predicate about being a student should not use an unrelated universe such as integers.
- 30
What does the universal quantifier ∀ mean?
Model answer
It means “for every” value in the relevant universe.
Explanation
A universally quantified predicate must hold for every value in its domain.
- 31
What does the existential quantifier ∃ mean?
Model answer
It means that at least one value in the relevant universe makes the predicate true.
Explanation
An existential statement requires one or more witnesses in the domain.
- 32
How do propositional operators apply to predicates?
Model answer
They connect or modify the propositions obtained when values are substituted for the predicates’ variables.
Explanation
The lesson explains that operators such as “and” and “or” apply after the relevant predicate instances are considered.
- 33
What does the scope of a quantified variable determine?
Model answer
It determines which part of a predicate statement is governed by that variable's quantifier.
Explanation
A variable's quantifier applies only within its scope, which may be smaller than the full compound predicate.
- 34
How can you identify the scope of a variable in a nested predicate statement?
Model answer
Locate the part of the predicate governed by that variable's quantifier; another variable may have a different scope.
Explanation
The lesson illustrates that a variable may occur in only one component of a larger predicate expression.
- 35
What does ¬∀xP(x) mean in words?
Model answer
It means that it is not true that P(x) holds for every value of x in the universe.
Explanation
Negating a universal claim says that the claim does not hold across the entire domain.
- 36
How can ¬∀xP(x) be rewritten using an existential quantifier?
Model answer
It is equivalent to ∃x¬P(x).
Explanation
A universal claim fails exactly when there is at least one value for which the predicate is false.
- 37
How can ¬∃xP(x) be rewritten using a universal quantifier?
Model answer
It is equivalent to ∀x¬P(x).
Explanation
If no value makes the predicate true, then the predicate is false for every value in the universe.
- 38
When negating a quantified statement, what happens to its quantifier?
Model answer
A universal quantifier changes to an existential quantifier, and an existential quantifier changes to a universal quantifier.
Explanation
Negation switches between “for every” and “there exists” while negating the predicate.
- 39
State De Morgan's law for the negation of a conjunction.
Model answer
¬(P∧Q) is equivalent to ¬P∨¬Q.
Explanation
Negating a conjunction changes “and” to “or” and negates both component propositions.
- 40
State De Morgan's law for the negation of a disjunction.
Model answer
¬(P∨Q) is equivalent to ¬P∧¬Q.
Explanation
Negating a disjunction changes “or” to “and” and negates both component propositions.
- 41
What is a rule of inference?
Model answer
It is a valid pattern for deriving a conclusion from one or more given statements.
Explanation
The lesson describes inference as using established statements and steps to reach a further statement.
- 42
Does p∨q by itself allow you to conclude p? Explain.
Model answer
No. The disjunction could be true because q is true while p is false.
Explanation
A disjunction guarantees at least one true component, not that a particular component is true.
- 43
From p∧q, what can be inferred about p?
Model answer
You can infer p is true.
Explanation
A conjunction is true only when both of its components are true.
- 44
From p and q, what can be inferred?
Model answer
You can infer p∧q.
Explanation
If both component propositions are true, their conjunction is true.
- 45
From p and ¬q, what can be inferred about p∨¬q?
Model answer
You can infer that p∨¬q is true.
Explanation
Both disjuncts are given as true, so their disjunction is true.
- 46
State modus ponens.
Model answer
From p→q and p, infer q.
Explanation
If the implication is true and its antecedent is true, its consequent must be true.
- 47
State modus tollens.
Model answer
From p→q and ¬q, infer ¬p.
Explanation
If p were true, the implication would require q to be true; since q is false, p must be false.
- 48
How does modus ponens differ from modus tollens?
Model answer
Modus ponens uses a true antecedent to infer the consequent; modus tollens uses a false consequent to infer that the antecedent is false.
Explanation
Both rules start from an implication, but they use different additional premises and reach different conclusions.
- 49
Why is the inference from p→q and p to q valid?
Model answer
Because a true implication with a true antecedent can only have a true consequent.
Explanation
The truth-table definition of implication rules out the case where p is true and q is false.
- 50
Why is the inference from p→q and ¬q to ¬p valid?
Model answer
If p were true, q would have to be true; since q is false, p cannot be true.
Explanation
This is the reasoning behind modus tollens.
- 51
What is universal instantiation?
Model answer
It is the rule that allows you to infer P(c) for a particular value c from ∀xP(x).
Explanation
If a predicate holds for every value in the universe, it holds for any specific value in that universe.
- 52
What condition must a value satisfy when applying universal instantiation?
Model answer
The chosen value must belong to the universe over which the universal statement is quantified.
Explanation
The universal claim applies only to values in its stated or understood domain.
- 53
What is existential generalization?
Model answer
It is the rule that allows you to infer ∃xP(x) from a true instance P(c) for some value c in the universe.
Explanation
One verified instance is enough to establish that at least one value satisfies the predicate.
- 54
Why does one true instance of a predicate justify an existential claim?
Model answer
That instance provides a witness showing that at least one value in the universe satisfies the predicate.
Explanation
Existential statements require only one satisfying value, not all values.

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