1. Home
  2. Explore
  3. Mathematics
  4. Discrete Mathematics: Logic and Proofs

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Discrete Mathematics: Logic and Proofs

  • 47Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Logic Foundations
Logic provides a mathematical way to represent
statements encountered in everyday life.

47 questions

  1. 1
    Logic provides a mathematical way to represent
    _____
    statements encountered in everyday life.
    Hint

    Think of statements that assert something and can be judged true or false.

    Answer

    declarative

    Explanation

    Logic translates declarative statements into a precise mathematical form so their truth and relationships can be analyzed.

  2. 2
    One application of logic in computer design is helping describe digital electronics and
    _____
    circuits.
    Hint

    Think of the physical components that carry out operations inside a computer.

    Answer

    electronic

    Explanation

    Mathematical representations of logical statements help designers reason about digital electronics and circuits.

  3. 3
    In programming, logic can help reason about a program's
    _____
    —what its statements mean and whether they behave as intended.
    Hint

    Contrast the meaning of a program with the rules for writing its syntax.

    Answer

    semantics

    Explanation

    The lecture connects logic with understanding program meaning, such as decisions about loops and iteration.

  4. 4
    Mathematical logic can be used to show that an
    _____
    is correct.
    Hint

    This is a step-by-step procedure for solving a problem.

    Answer

    algorithm

    Explanation

    A proof can establish that an algorithm produces the intended result.

  5. 5
    The two types of logic introduced are propositional logic and
    _____
    logic.
    Hint

    This type of logic uses variables and quantifiers.

    Answer

    predicate

    Explanation

    The lecture distinguishes propositional logic from predicate logic.

  6. 6
    Propositional logic represents declarative statements using symbols such as
    _____
    and qqq.
    Hint

    This is the first of the two lowercase letters used in the lecture's example.

    Answer

    ppp

    Explanation

    A propositional variable such as ppp stands for a complete declarative statement.

  7. 7
    A predicate such as P(x)P(x)P(x) includes a variable, while substituting a particular value for that variable produces a
    _____
    statement.
    Hint

    After substitution, the statement no longer has an unfilled variable.

    Answer

    propositional

    Explanation

    For example, substituting a name for xxx in a predicate can produce a declarative proposition.

  8. 8
    The logical connective that combines two statements with the meaning “both” is
    _____
    .
    Hint

    It requires both component statements to hold.

    Answer

    and

    Explanation

    A conjunction joins two statements and is true only when both component statements are true.

  9. 9
    The logical connective “or” in the lecture is inclusive: the combined statement is true if either part is true or
    _____
    parts are true.
    Hint

    Unlike exclusive-or, this connective allows the two statements to hold together.

    Answer

    both

    Explanation

    Inclusive disjunction is true when at least one component is true, including when both are true.

  10. 10
    The operator that reverses a proposition's truth value is called
    _____
    or negation.
    Hint

    It asserts that the original statement does not hold.

    Answer

    not

    Explanation

    Negation changes a true proposition to false and a false proposition to true.

  11. 11
    Truth-table rows list the possible assignments of
    _____
    and false to the component propositions.
    Hint

    These are the two possible truth values used in classical propositional logic.

    Answer

    true

    Explanation

    Each proposition is assigned one of the two truth values, true or false.

  12. 12
    A truth table for two independent propositions has
    _____
    possible rows.
    Hint

    Each proposition has two possible truth values, and the combinations are listed.

    Answer

    four

    Explanation

    Two propositions yield four combinations: true/true, true/false, false/true, and false/false.

  13. 13
    For nnn independent propositions, a complete truth table has 2n2^n2n rows; for three propositions, it has
    _____
    .
    Hint

    Each added proposition doubles the number of combinations.

    Answer

    eight

    Explanation

    Each of the nnn propositions can be true or false, giving 2n2^n2n combinations. With three propositions, there are eight rows.

  14. 14
    A conjunction ppp and qqq is true only when
    _____
    component propositions are true.
    Hint

    The connective means that the two statements hold together.

    Answer

    both

    Explanation

    A conjunction is false in every row except the row where both propositions are true.

  15. 15
    A disjunction ppp or qqq is false only when
    _____
    component propositions are false.
    Hint

    If either proposition is true, the inclusive disjunction is true.

    Answer

    both

    Explanation

    Inclusive disjunction is true in the other three combinations and false when both components are false.

  16. 16
    For a negated proposition, if ppp is true, then not ppp is
    _____
    .
    Hint

    Negation reverses the original truth value.

    Answer

    false

    Explanation

    Negation is false whenever the proposition being negated is true.

  17. 17
    An implication from ppp to qqq is false precisely when ppp is true and qqq is
    _____
    .
    Hint

    This is the one case in which the stated condition occurs but its required result does not.

    Answer

    false

    Explanation

    The implication ppp implies qqq is false only when its antecedent is true and its consequent is false.

  18. 18
    If the antecedent ppp of an implication is false, the truth value of qqq does not affect whether the implication is
    _____
    .
    Hint

    In the two rows where ppp is false, the implication has the same truth value.

    Answer

    true

    Explanation

    An implication with a false antecedent is true whether its consequent is true or false.

  19. 19
    The biconditional ppp if and only if qqq is true when the two propositions have the
    _____
    truth value.
    Hint

    Compare the two values in each row of its truth table.

    Answer

    same

    Explanation

    A biconditional is true when both propositions are true or both are false.

  20. 20
    A compound statement that is true for every possible truth-value assignment is a
    _____
    .
    Hint

    Its truth-table column contains no false values.

    Answer

    tautology

    Explanation

    A tautology is true under every possible assignment of truth values.

  21. 21
    A compound statement that is false for every possible truth-value assignment is a
    _____
    .
    Hint

    Its truth-table column contains no true values.

    Answer

    contradiction

    Explanation

    A contradiction is false under every possible assignment of truth values.

  22. 22
    The property illustrated by the equivalence of ppp or qqq and qqq or ppp is the
    _____
    property.
    Hint

    This property concerns changing the order of the operands.

    Answer

    commutative

    Explanation

    The commutative property says that exchanging the order of the propositions does not change the result of these operations.

  23. 23
    A predicate P(x)P(x)P(x) can express a property of an object, such as “xxx is a
    _____
    .”
    Hint

    This is the example property used in the lecture.

    Answer

    student

    Explanation

    A predicate contains a variable and describes a condition that may hold for an object assigned to that variable.

  24. 24
    In the predicate Q(x,y)Q(x,y)Q(x,y) stating that x+y=3x+y=3x+y=3, substituting values for both variables determines whether the predicate is
    _____
    .
    Hint

    Try values such as x=1x=1x=1 and y=2y=2y=2.

    Answer

    true

    Explanation

    A predicate with all variables assigned can be evaluated as true or false; for example, 1+2=31+2=31+2=3 is true.

  25. 25
    The set of values from which a quantified variable may be chosen is its universe, also called its
    _____
    .
    Hint

    It specifies which objects are under consideration.

    Answer

    domain

    Explanation

    A universe or domain identifies the permissible values for a variable in a predicate statement.

  26. 26
    The universe for a predicate saying “xxx is a student” should contain suitable objects, such as people, rather than only
    _____
    .
    Hint

    Choose a set whose members could meaningfully satisfy the predicate.

    Answer

    integers

    Explanation

    The domain must fit the predicate. Integer values would not be an appropriate universe for a statement about being a student.

  27. 27
    The universal quantifier means that a predicate holds for
    _____
    value in the specified universe.
    Hint

    It is read as “for all.”

    Answer

    every

    Explanation

    A universally quantified statement is true only if the predicate holds for every member of its domain.

  28. 28
    The existential quantifier asserts that the predicate holds for at least
    _____
    value in the specified universe.
    Hint

    It is read as “there exists.”

    Answer

    one

    Explanation

    An existentially quantified statement is true when at least one member of the domain satisfies the predicate.

  29. 29
    In programming-language terms, the universal quantifier is associated with a
    _____
    statement.
    Hint

    This loop form applies an operation across all values in a collection.

    Answer

    for

    Explanation

    The lecture relates a universal quantifier to a “for” statement because it concerns every value in a domain.

  30. 30
    In the lecture's programming analogy, the existential quantifier is associated with searching for a value using a combination of
    _____
    statements.
    Hint

    This statement tests whether a condition holds.

    Answer

    if

    Explanation

    An existential claim asks whether at least one value satisfies a condition, which can be checked by testing values with “if” statements.

  31. 31
    In a nested quantified expression, the scope or domain of a variable is the portion of the predicate governed by that variable's
    _____
    .
    Hint

    It identifies how far the variable's “for all” or “there exists” applies.

    Answer

    quantifier

    Explanation

    A variable's scope is the part of the predicate to which its quantifier applies; another variable may have a different scope.

  32. 32
    Logical connectives applied to predicates determine the compound statement after values are
    _____
    for the variables.
    Hint

    The predicates must first be evaluated for particular objects.

    Answer

    substituted

    Explanation

    A connective combines the truth values of predicates once values have been assigned to their variables.

  33. 33
    Negating “for all xxx, P(x)P(x)P(x)” is equivalent to saying that there
    _____
    an xxx for which P(x)P(x)P(x) is false.
    Hint

    A single counterexample is enough to show that a universal claim fails.

    Answer

    exists

    Explanation

    The negation of a universal statement is existential: not every object satisfies PPP, so at least one object does not.

  34. 34
    Negating “there exists an xxx such that P(x)P(x)P(x)” is equivalent to saying that for all xxx, P(x)P(x)P(x) is
    _____
    .
    Hint

    If no object satisfies the predicate, it fails for every object.

    Answer

    false

    Explanation

    The negation of an existential statement says that no object in the domain satisfies the predicate.

  35. 35
    When a negation is pushed through a conjunction, De Morgan's law changes the conjunction into a
    _____
    .
    Hint

    The two component predicates are negated, and the connective switches from “and” to “or.”

    Answer

    disjunction

    Explanation

    De Morgan's law states that not of PPP and QQQ is equivalent to not PPP or not QQQ.

  36. 36
    When a negation is pushed through a disjunction, De Morgan's law changes the disjunction into a
    _____
    .
    Hint

    The two component predicates are negated, and the connective switches from “or” to “and.”

    Answer

    conjunction

    Explanation

    De Morgan's law states that not of PPP or QQQ is equivalent to not PPP and not QQQ.

  37. 37
    To negate a nested quantified statement, move the negation inward one step at a time, changing each quantifier to its
    _____
    .
    Hint

    A universal quantifier and an existential quantifier exchange roles under negation.

    Answer

    opposite

    Explanation

    Negating a universal quantifier produces an existential quantifier, and negating an existential quantifier produces a universal quantifier; the predicates are negated as well.

  38. 38
    The negation of a negated proposition returns the original proposition, a rule called double
    _____
    .
    Hint

    Applying “not” twice cancels the first application.

    Answer

    negation

    Explanation

    Double negation states that not of not PPP is equivalent to PPP.

  39. 39
    A rule of inference uses accepted premises to justify a further statement called the
    _____
    .
    Hint

    It is the claim written below the inference line.

    Answer

    conclusion

    Explanation

    Rules of inference specify when a conclusion follows from one or more given premises.

  40. 40
    From ppp, it is valid to infer “ppp or qqq,” because a true disjunction needs at least one true
    _____
    .
    Hint

    The premise already establishes that one side of the disjunction holds.

    Answer

    proposition

    Explanation

    If ppp is true, then the inclusive disjunction ppp or qqq is true regardless of qqq.

  41. 41
    From “ppp and qqq,” it is valid to infer ppp alone; this uses the fact that a true conjunction makes each component
    _____
    .
    Hint

    A conjunction can be true only if both of its parts are true.

    Answer

    true

    Explanation

    Since ppp and qqq is true only when both components are true, either component may be inferred.

  42. 42
    From the premises ppp and qqq, one may validly infer “ppp and $q”; this is conjunction
    _____
    .
    Hint

    The rule combines two established statements into one conjunction.

    Answer

    introduction

    Explanation

    Conjunction introduction allows separate true premises to be combined into a conjunction.

  43. 43
    From “ppp or qqq,” one cannot conclude ppp alone, because the case where ppp is false and qqq is true still makes the premise
    _____
    .
    Hint

    Inclusive “or” does not identify which disjunct holds.

    Answer

    true

    Explanation

    The disjunction is true when either component is true, so it does not guarantee that ppp is true.

  44. 44
    From ppp implies qqq and ppp, the valid conclusion qqq follows by modus
    _____
    .
    Hint

    This rule affirms the antecedent of an implication.

    Answer

    ponens

    Explanation

    Modus ponens applies the implication and its true antecedent to infer its consequent.

  45. 45
    From ppp implies qqq and not qqq, one may infer not ppp by modus
    _____
    .
    Hint

    This rule uses the failure of the consequent to reject the antecedent.

    Answer

    tollens

    Explanation

    Modus tollens states that if an implication holds and its consequent is false, then its antecedent must be false.

  46. 46
    If the universal statement “for all xxx, P(x)P(x)P(x)” is true, then P(a)P(a)P(a) is true for a particular value aaa in the domain; this is universal
    _____
    .
    Hint

    This rule applies a universal claim to one selected object.

    Answer

    instantiation

    Explanation

    Universal instantiation allows a universally quantified predicate to be applied to any particular member of its domain.

  47. 47
    If P(c)P(c)P(c) is true for a particular member ccc of the domain, one may infer that there exists an xxx such that P(x)P(x)P(x); this is existential
    _____
    .
    Hint

    A witnessed example supports a claim that at least one suitable value exists.

    Answer

    generalization

    Explanation

    Existential generalization moves from a predicate true of one particular object to the claim that some object satisfies it.

1 of 47
Question 1 of 47

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent