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

  • 45Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Logic Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

Why represent everyday statements using mathematical logic?

Tap to flipClick to flipspace

A formal representation makes statements easier to analyze and reason about precisely.

Or swipe the card

45 cards

  1. Why represent everyday statements using mathematical logic?

    A formal representation makes statements easier to analyze and reason about precisely.

  2. How is logic used in digital electronics?

    It provides mathematical representations that help describe and design digital circuits and computer components.

  3. How can logic help with computer programs?

    It supports precise reasoning about program meaning and behavior, including choices and iterations.

  4. 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.

  5. 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.

  6. What is a proposition in propositional logic?

    A declarative statement that has a truth value: true or false.

  7. How can propositional variables represent statements?

    A symbol such as ppp or qqq stands for a particular declarative statement.

  8. When is a conjunction p∧qp \land qp∧q true?

    Only when both ppp and qqq are true.

  9. When is a disjunction p∨qp \lor qp∨q true?

    When at least one of ppp and qqq is true, including when both are true.

  10. What does negation ¬p\neg p¬p mean, and what kind of operator is it?

    It means “not ppp” and reverses ppp’s truth value. It is a unary operator because it acts on one statement.

  11. What does implication p→qp \to qp→q mean?

    It means “if ppp, then qqq”: whenever ppp is true, qqq must also be true.

  12. When is an implication p→qp \to qp→q false?

    Only when ppp is true and qqq is false. It is true when ppp is false, regardless of qqq.

  13. What does equivalence p↔qp \leftrightarrow qp↔q mean?

    “ppp if and only if qqq”: the statements have the same truth value, so each implies the other.

  14. How many rows does a truth table need for nnn propositional variables?

    2n2^n2n rows, since each variable can be either true or false.

  15. What is a tautology?

    A compound statement that is true for every possible assignment of truth values.

  16. What is a contradiction?

    A compound statement that is false for every possible assignment of truth values.

  17. 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.

  18. What is an example of the commutative property for propositional connectives?

    p∨qp \lor qp∨q and q∨pq \lor pq∨p have the same truth value in every case.

  19. What is a predicate?

    A statement pattern involving one or more variables; its truth value depends on the values assigned to those variables.

  20. 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.

  21. If P(x)P(x)P(x) means “xxx is a student,” what does P(a)P(a)P(a) express?

    It expresses the proposition “aaa is a student,” with the value aaa substituted for xxx.

  22. How can a predicate represent a relation involving two variables?

    For example, Q(x,y)Q(x,y)Q(x,y) can represent the statement x+y=3x+y=3x+y=3; assigning values to both variables determines its truth value.

  23. 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.

  24. What does the universal quantifier ∀x P(x)\forall x\,P(x)∀xP(x) mean?

    For every value of xxx in the domain, P(x)P(x)P(x) is true.

  25. What does the existential quantifier ∃x P(x)\exists x\,P(x)∃xP(x) mean?

    There is at least one value of xxx in the domain for which P(x)P(x)P(x) is true.

  26. What does the scope of a quantifier determine?

    It determines which part of a predicate statement the quantified variable applies to.

  27. How do propositional connectives combine predicates?

    The connectives combine the truth values of the predicate statements after values have been assigned to their variables.

  28. 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.

  29. How can the negation of a universal statement be rewritten?

    ¬(∀x P(x))≡∃x ¬P(x)\neg(\forall x\,P(x)) \equiv \exists x\,\neg P(x)¬(∀xP(x))≡∃x¬P(x). One counterexample is enough to show that P(x)P(x)P(x) does not hold for every xxx.

  30. How can the negation of an existential statement be rewritten?

    ¬(∃x P(x))≡∀x ¬P(x)\neg(\exists x\,P(x)) \equiv \forall x\,\neg P(x)¬(∃xP(x))≡∀x¬P(x). No value in the domain satisfies P(x)P(x)P(x).

  31. What happens to a conjunction when it is negated?

    By De Morgan’s law, ¬(p∧q)≡(¬p∨¬q)\neg(p \land q) \equiv (\neg p \lor \neg q)¬(p∧q)≡(¬p∨¬q).

  32. What happens to a disjunction when it is negated?

    By De Morgan’s law, ¬(p∨q)≡(¬p∧¬q)\neg(p \lor q) \equiv (\neg p \land \neg q)¬(p∨q)≡(¬p∧¬q).

  33. What is the double-negation law?

    ¬(¬p)≡p\neg(\neg p) \equiv p¬(¬p)≡p.

  34. What does negating “every integer is even” assert?

    It asserts that at least one integer is not even: ∃x ¬P(x)\exists x\,\neg P(x)∃x¬P(x), where P(x)P(x)P(x) means “xxx is even.”

  35. What is a rule of inference?

    A valid pattern for deriving a conclusion from one or more given premises.

  36. 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.

  37. What is modus ponens?

    From p→qp \to qp→q and ppp, infer qqq.

  38. What is modus tollens?

    From p→qp \to qp→q and ¬q\neg q¬q, infer ¬p\neg p¬p.

  39. What is conjunction introduction?

    From ppp and qqq, infer p∧qp \land qp∧q.

  40. What can be inferred from a true conjunction p∧qp \land qp∧q?

    Either conjunct can be inferred individually; for example, infer ppp from p∧qp \land qp∧q.

  41. What is disjunction introduction?

    From ppp, infer p∨qp \lor qp∨q; the disjunction is true regardless of whether qqq is true or false.

  42. Why is the inference from p∨qp \lor qp∨q to ppp invalid?

    Because p∨qp \lor qp∨q can be true when ppp is false and qqq is true.

  43. What is universal instantiation?

    From ∀x P(x)\forall x\,P(x)∀xP(x), infer P(c)P(c)P(c) for a particular value ccc in the domain.

  44. What is existential generalization?

    From P(c)P(c)P(c) for a particular value ccc in the domain, infer ∃x P(x)\exists x\,P(x)∃xP(x).

  45. How can modus ponens prove that an even integer is divisible by 222?

    Let P(x)P(x)P(x) mean “xxx is even” and Q(x)Q(x)Q(x) mean “xxx is divisible by 222.” From P(x)→Q(x)P(x) \to Q(x)P(x)→Q(x) and P(x)P(x)P(x), modus ponens gives Q(x)Q(x)Q(x).

Card 1 of 45
Card 1 of 45

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent