Discrete Mathematics: Propositions & Logic

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What logical expression correctly represents that getting an A on the final and doing every exercise is sufficient for getting an A in the class?

  • (p ∧ q) → r (correct)
  • r → (p ∧ q)
  • (p ∨ q) → r
  • (p ∧ q) ↔ r

Which of the following propositions states that getting an A in this class is necessary if you get an A on the final exam?

  • q → p (correct)
  • p → q
  • ¬p → ¬q
  • q ↔ p

Which logical implication is false?

  • If 2 + 3 = 6, then God exists. (correct)
  • If 2 + 3 = 5, then pigs can fly.
  • If 2 + 3 = 4, then 3 + 3 = 5.
  • If pigs can fly, then 1 + 3 = 5.

What is the expression that indicates that it is not snowing if it is below freezing?

<p>p → ¬q (C)</p> Signup and view all the answers

Which logical statement represents that if it is snowing, then it must be below freezing?

<p>q → p (A)</p> Signup and view all the answers

Which of the following correctly expresses that you don't get an A in class unless you get an A on the final?

<p>¬p → ¬q (B)</p> Signup and view all the answers

If both propositions p and q are true, what can be concluded about p ∧ q?

<p>It is true. (C)</p> Signup and view all the answers

What does the expression (p ∧ q) ↔ r imply?

<p>p and q together lead to r, and r implies p and q. (D)</p> Signup and view all the answers

Which of these expresses the proposition (𝑝𝑝 ∨ 𝑞𝑞) ∧ (𝑝𝑝 → ¬𝑞𝑞) as an English sentence?

<p>It is either below freezing or it is snowing, but it is not snowing if it is below freezing. (A)</p> Signup and view all the answers

What English sentence represents the proposition ¬𝑝𝑝 ↔ 𝑞𝑞?

<p>If you don’t miss the final examination then you pass the course, and conversely. (B)</p> Signup and view all the answers

What is necessary for a compound proposition to be classified as a tautology?

<p>It is always true, no matter what the truth values of the propositions that occur in it. (D)</p> Signup and view all the answers

Which condition signifies that the propositions p and q are logically equivalent?

<p>They must always produce the same truth values regardless of their input. (C)</p> Signup and view all the answers

Identify the expression that represents a tautology.

<p>(𝑝𝑝 → 𝑞𝑞) ↔ (¬𝑞𝑞 → 𝑝𝑝) (B)</p> Signup and view all the answers

What is the union of sets A and B?

<p>The set containing elements that are in A, B, or both (B)</p> Signup and view all the answers

Which statement accurately describes the intersection of sets A and B?

<p>It includes elements that are in both A and B. (B)</p> Signup and view all the answers

Which of the following statements correctly describes the conditions of a contradiction?

<p>It is always false, no matter what the truth values of the propositions that occur in it. (D)</p> Signup and view all the answers

Which option represents a distributive law in logic?

<p>𝑝𝑝 ∧ (𝑞𝑞 ∨ 𝑟𝑟) = (𝑝𝑝 ∧ 𝑞𝑞) ∨ (𝑝𝑝 ∧ 𝑟𝑟) (D)</p> Signup and view all the answers

What is the complement of set A when U = {1, 2, 3, 4, 5, 6, 7, 8} and A = {1, 3, 4, 5, 8}?

<p>{2, 6, 7} (A)</p> Signup and view all the answers

In the context of functions, what is the codomain of a function f from set A to set B?

<p>The set B (B)</p> Signup and view all the answers

What is the codomain of a function that assigns the first three bits of a bit string of length 3 or greater?

<p>The set {000, 001, 010, 100, 011, 101, 110, 111} (D)</p> Signup and view all the answers

For sets A and B, given the mapping of function f, what is the image of set S = {c, d, e, g}?

<p>{2, 0, 5, 1} (A)</p> Signup and view all the answers

Which of these describes the relationship between the elements within set A = {1, 3, 4, 5, 8} and the elements in the universal set U = {1, 2, 3, 4, 5, 6, 7, 8}?

<p>Elements in A are a subset of U. (B)</p> Signup and view all the answers

Identify the incorrect statement regarding the function f based on the provided outputs of A to B.

<p>f(e) = 4 (D)</p> Signup and view all the answers

Which logical expression best represents the statement that there is a student at the university who can speak Kazakh but does not know Delphi?

<p>∃x(P(x) ∧ ¬Q(x)) (C)</p> Signup and view all the answers

Which statement is true regarding the integers and the relation S(x, y) defined as x + y = x · y?

<p>∀x∃yS(x, y) (C)</p> Signup and view all the answers

What is the correct logical representation of the statement encapsulating x + 3y = 3x – y for all integers?

<p>∀y∃xS(x, y) (A)</p> Signup and view all the answers

Which expression correctly rewrites ¬∃y∀xS(x, y) so that negations are only within predicates?

<p>∃y∀x¬P(x, y) (A)</p> Signup and view all the answers

Which of the following statements is true if the universe of discourse is the set of all integers?

<p>∀n(n^2 ≥ 1) (B)</p> Signup and view all the answers

Which statement is true if the universe of discourse for each variable is the set of real numbers?

<p>∃x(x^2 = 8) (D)</p> Signup and view all the answers

When is the statement ∀y∃xS(x, y) considered false?

<p>There is a y such that P(x, y) is false for every x. (A)</p> Signup and view all the answers

What must be true for the statement ∃y∀xS(x, y) to be valid?

<p>There is a y such that P(x, y) is true for every x. (B)</p> Signup and view all the answers

Which of the following correctly represents the quantifiers and logical connectives for the statement "for every y, there exists an x such that x > 0"?

<p>∀y∃x(x &gt; 0) (A)</p> Signup and view all the answers

What is the logical equivalence of the proposition $p \to q$?

<p>¬$p$ ∨ $q$ (D)</p> Signup and view all the answers

Which statement correctly describes a contingency?

<p>It is neither a tautology nor a contradiction. (B)</p> Signup and view all the answers

Identify the compound proposition that is true when $p$ and $q$ are false and $r$ is true.

<p>¬$p$ ∧ ¬$q$ ∧ $r$ (A)</p> Signup and view all the answers

What is the compound proposition that is false when $p$ is false and $q$ and $r$ are true?

<p>$p$ → ¬($q$ ∧ $r$) (C)</p> Signup and view all the answers

Which compound proposition is true when $p$ and $q$ are true and $r$ is false?

<p>$p$ ∧ $q$ ∧ ¬$r$ (B)</p> Signup and view all the answers

Express the proposition $∃x¬P(x)$ in English where $P(x)$ means 'x spends less than three hours every weekday in class'.

<p>There is a student who spends no less than three hours every weekday in class. (A)</p> Signup and view all the answers

What does the proposition $∃y∀xP(x, y)$ state given $P(x, y)$ means 'x has taken y'?

<p>There is a computer course at your school taken by all students in your class. (B)</p> Signup and view all the answers

Which proposition logically represents ¬($p$ ∧ $q$)?

<p>¬$p$ ∨ ¬$q$ (A)</p> Signup and view all the answers

What proposition holds when $p$ is true and $q$ is false?

<p>$p$ ∧ ¬$q$ (B)</p> Signup and view all the answers

Which expression is a tautology?

<p>$p$ ∨ ¬$p$ (A)</p> Signup and view all the answers

What defines an injective function?

<p>f(x) ≠ f(y) implies that x ≠ y for all x and y (A), f(x) = f(y) implies that x = y for all x and y (C)</p> Signup and view all the answers

Which statement is true about a surjective function?

<p>For every b ∈ B, there is an a ∈ A with f(a) = b (D)</p> Signup and view all the answers

What is required for a function to be considered a bijection?

<p>It is both one-to-one and onto (C)</p> Signup and view all the answers

What is the composition of the functions f(x) = 3x - 4 and g(x) = 4x - 3?

<p>12x - 19 (C)</p> Signup and view all the answers

What is the range of the function that assigns the first digit to each positive integer?

<p>{1, 2, 3, 4, 5, 6, 7, 8, 9} (C)</p> Signup and view all the answers

Which of the following functions from {a, b, c, d} to itself is one-to-one?

<p>f(a) = d, f(b) = c, f(c) = b, f(d) = a (A)</p> Signup and view all the answers

Evaluate the expression ↱– 22, 333 ↰.

<p>-3 (D)</p> Signup and view all the answers

Evaluate the expression ↱ 11/11 + ↳ 99/111 ↲.

<p>9/10 (D)</p> Signup and view all the answers

Flashcards

Sufficient Condition

A propositional formula that represents the statement: "Getting an A on the final and doing every exercise in this book is sufficient for getting an A in this class."

Implication

A propositional formula where the consequent (the outcome) is true only if the antecedent (the condition) is also true.

Necessary Condition

The proposition where getting an A on the final exam (p) is a necessary condition for getting an A in the class (q); if you get an A in the class, you must have gotten an A on the final.

Necessary Condition Formula

A propositional formula that represents the statement: "To get an A in this class, it is necessary for you to get an A on the final."

Signup and view all the flashcards

Truth Table of Implication

An implication is false only when the antecedent is true and the consequent is false.

Signup and view all the flashcards

False Implication Example

The antecedent is true, but the consequent is false. This makes the overall statement false.

Signup and view all the flashcards

Implication Truth Table

The proposition p implies q, written as p→q, means that if p is true, then q must also be true. The truth table for implication shows that the only case where p→q is false is when p is true and q is false.

Signup and view all the flashcards

Symbol for Implication

The symbol '→' represents implication, which is a logical connective that indicates that the truth of the first proposition (antecedent) implies the truth of the second proposition (consequent). For example, if p is "It is raining" and q is "The ground is wet", then the implication p→q means "If it is raining, then the ground is wet."

Signup and view all the flashcards

Union of Sets A and B

The set that contains those elements that are either in A or in B, or in both

Signup and view all the flashcards

Intersection of Sets A and B

The set containing those elements that are in both A and B

Signup and view all the flashcards

Complement of Set A

The set of all elements in the universal set that are not in set A

Signup and view all the flashcards

Codomain of a function f: A->B

The set B

Signup and view all the flashcards

Codomain of a Function

The set of all possible output values of the function

Signup and view all the flashcards

Codomain of f

The set of all bit strings of length 3 or greater

Signup and view all the flashcards

Image of a set S under a function f

The set of all images of elements in S under the function f

Signup and view all the flashcards

Image of an element under a function

The output value produced by the function when applied to a specific input element.

Signup and view all the flashcards

Express (𝑝𝑝 ∨ 𝑞𝑞) ∧ (𝑝𝑝 → ¬𝑞𝑞) as an English sentence

It is either below freezing or it is snowing, but it is not snowing if it is below freezing.

Signup and view all the flashcards

Express (𝑝𝑝 ∨ 𝑞𝑞) ∧ (𝑝𝑝 → ¬𝑞𝑞) as an English sentence

It is below freezing or snowing, but it is not snowing only if it is below freezing.

Signup and view all the flashcards

Express ¬𝑝𝑝 ↔ 𝑞𝑞 as an English sentence

If you don’t miss the final examination then you pass the course, and conversely.

Signup and view all the flashcards

Tautology

A compound proposition is a tautology if it is always true, no matter what the truth values of the propositions that occur in it.

Signup and view all the flashcards

Logical Equivalence

The propositions p and q are logically equivalent if 𝑝𝑝 ↔ 𝑞𝑞 is a tautology.

Signup and view all the flashcards

Find the tautology

¬(𝑝𝑝 ∨ 𝑞𝑞) ↔ (¬𝑝𝑝 ∧ ¬𝑞𝑞)

Signup and view all the flashcards

Distributive Law

This equivalence states that the negation of the disjunction of two propositions is equivalent to the conjunction of their negations.

Signup and view all the flashcards

Distributive Law

(𝑝𝑝 → 𝑞𝑞) ↔ (¬𝑞𝑞 ∨ 𝑝𝑝)

Signup and view all the flashcards

Contingency

A proposition is a contingency if it is neither a tautology nor a contradiction.

Signup and view all the flashcards

Distributive Law in Logic

The distributive law of logic states that the logical conjunction of a proposition with a logical disjunction is equivalent to the logical disjunction of the logical conjunctions of the proposition with each disjunct.

Signup and view all the flashcards

Proposition

A proposition is a statement that has a truth value, either true or false.

Signup and view all the flashcards

Negation

The negation of a proposition is a proposition that has the opposite truth value.

Signup and view all the flashcards

Contradiction

A proposition is a contradiction if it is always false regardless of the truth values of its variables.

Signup and view all the flashcards

Conditional statement equivalence

The conditional statement "𝑝𝑝 → 𝑞𝑞" is logically equivalent to "¬𝑝𝑝 ∨ 𝑞𝑞".

Signup and view all the flashcards

∃𝑥𝑥¬𝑃𝑃(𝑥𝑥)

The statement "∃𝑥𝑥¬𝑃𝑃(𝑥𝑥)" means "There is a student who does not spend less than three hours every weekday in class."

Signup and view all the flashcards

∃𝑦𝑦∀𝑥𝑥𝑃𝑃(𝑥𝑥, 𝑦𝑦)

The statement "∃𝑦𝑦∀𝑥𝑥𝑃𝑃(𝑥𝑥, 𝑦𝑦)" means "There is a computer course at your school taken by all students in your class."

Signup and view all the flashcards

What is an injective function?

A function is injective (or one-to-one) if each element in the codomain is mapped to by at most one element in the domain.

Signup and view all the flashcards

What is a surjective function?

A function is surjective (or onto) if every element in the codomain is mapped to by at least one element in the domain.

Signup and view all the flashcards

What is a bijective function?

A function is bijective (or one-to-one correspondence) if it is both injective and surjective.

Signup and view all the flashcards

What is the composition of functions?

Given functions f and g, the composition g o f is a function where g(f(x)) is calculated for every input x.

Signup and view all the flashcards

What is the range of a function?

The range of a function is the set of all possible outputs (values) that the function can produce.

Signup and view all the flashcards

What is the floor function?

The operation denoted by is called floor and it returns the greatest integer less than or equal to the input.

Signup and view all the flashcards

What is the ceiling function?

The operation denoted by is called ceiling and it returns the least integer greater than or equal to the input.

Signup and view all the flashcards

How to determine if a function is one-to-one?

A function is one-to-one (injective) if no two distinct inputs produce the same output. In other words, if f(x) = f(y) then x = y always.

Signup and view all the flashcards

∀𝑥𝑥(𝑃𝑃(𝑥𝑥) → ¬𝑄𝑄(𝑥𝑥))

This statement asserts that for every element x in the universe, if x can speak Kazakh (P(x)), then x does not know Delphi (¬Q(x)). In other words, no student at your university can speak Kazakh and know Delphi.

Signup and view all the flashcards

∃𝑥𝑥(𝑃𝑃(𝑥𝑥) ∧ ¬𝑄𝑄(𝑥𝑥))

The sentence means that there is a student x in the university who satisfies both conditions: x can speak Kazakh (P(x)) and x does not know Delphi (¬Q(x)). So, there exists a student who can speak Kazakh but is not a Delphi programmer.

Signup and view all the flashcards

∃𝑥𝑥∀𝑦𝑦(𝑥𝑥 + 𝑦𝑦 = 𝑥𝑥 ∙ 𝑦𝑦)

This statement means that there exists an element x in the universe of discourse (integers) such that for every element y in the universe of discourse, the statement 'x + y = x * y' is true. In other words, there is an integer x that satisfies the equation with any integer y.

Signup and view all the flashcards

∀𝑥𝑥∃𝑦𝑦(𝑥𝑥 + 3𝑦𝑦 = 3𝑥𝑥 − 𝑦𝑦)

This statement asserts that for every integer x, there exists an integer y such that the equation 'x + 3y = 3x - y' is true. So, no matter what integer you choose for x, there will always be a corresponding integer y that satisfies the equation.

Signup and view all the flashcards

∀𝑥𝑥∃𝑦𝑦¬(𝑥𝑥 + 𝑦𝑦 = 𝑥𝑥 ∙ 𝑦𝑦)

This statement means that for every integer x, there exists an integer y such that 'x + y = x * y' is false. In other words, for every integer x, you can find at least one integer y that does not satisfy the given equation.

Signup and view all the flashcards

∃𝑛𝑛(𝑛𝑛2 = 8)

This statement means that there exists an integer n such that n2 = 8. In other words, there is an integer whose square is 8.

Signup and view all the flashcards

∀𝑥𝑥∃𝑦𝑦(𝑥𝑥 = 𝑦𝑦2)

This statement says that for every real number x, there exists a real number y such that x is equal to the square of y. In other words, every real number has a square root.

Signup and view all the flashcards

∀𝑥𝑥∃𝑦𝑦(𝑥𝑥 ∙ 𝑦𝑦 = 4)

This statement says that for every real number x, there exists a real number y such that x multiplied by y equals 4. In other words, every real number can be multiplied by some other real number to equal 4.

Signup and view all the flashcards

∀𝑦𝑦∃𝑥𝑥(𝑥𝑥 + 3𝑦𝑦 = 3𝑥𝑥 − 𝑦𝑦)

The statement is true. You can check it by plugging in the values for x and y. For example, if x = 1 and y = 2, it gives us 1 + 3(2) = 3(1) - 2 which simplifies to 7 = 1. This contradicts the given information.

Signup and view all the flashcards

∀𝑛𝑛(𝑛𝑛2 ≥ 1)

This statement asserts that for every natural number n, the square of n is always greater than or equal to 1.

Signup and view all the flashcards

Study Notes

Proposition

  • A proposition is a declarative sentence that is either true or false.
  • Examples of propositions include: 3 + 2 = 6, Take this pencil, Can you help me? are not propositions. x + 2 = 6, and Why should you study discrete mathematics? are not propositions.

Negation

  • The negation of a proposition p, denoted by ¬p, is the proposition that is true when p is false, and false when p is true.

Conjunction

  • The conjunction of two propositions p and q, denoted by p ∧ q, is the proposition that is true when both p and q are true, and is false otherwise.

Disjunction

  • The disjunction of two propositions p and q, denoted by p ∨ q, is the proposition that is true when at least one of p and q is true, and is false otherwise.

Conditional

  • The conditional of p and q, denoted by p → q, is the proposition that is false when p is true and q is false, and is true otherwise.

Biconditional

  • The biconditional of p and q, denoted by p ↔ q, is the proposition that is true when p and q have the same truth value, and is false otherwise.

Converse

  • The converse of p → q is q → p

Contrapositive

  • The contrapositive of p → q is ¬q → ¬p

Bitwise Operations

  • Bitwise AND: True if both bits are 1, False otherwise
  • Bitwise OR: True if at least one bit is 1, False otherwise
  • Bitwise XOR: True if the bits are different, False otherwise

Truth Table

  • A truth table systematically lists all possible truth values for the propositions in the statement and the corresponding truth value for the compound statement.

Tautology

  • A compound proposition that is always true, regardless of the truth values of its components.

Contradiction

  • A compound proposition that is always false, regardless of the truth values of its components.

Contingency

  • A compound proposition that is neither a tautology nor a contradiction.

Logical Equivalence

  • Two propositions are logically equivalent if they have the same truth value for all possible combinations of truth values of their simple propositions.

Quantifiers

  • Universal quantifier (∀): ∀x P(x) states that P(x) is true for every x in a given set.
  • Existential quantifier (∃): ∃x P(x) states that P(x) is true for at least one x in a given set.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Midterm Exam PDF

More Like This

Use Quizgecko on...
Browser
Browser