D420 Discrete Math: Logic

studied byStudied by 3 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 99

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

100 Terms

1

proposition

a statement that is either true or false

New cards
2

^

and

<p>and</p>
New cards
3

v

or

<p>or</p>
New cards
4

¬

negation

New cards
5

conditional operation, "if p, then q"

<p>conditional operation, "if p, then q"</p>
New cards
6

Equivalent English expressions that mean "if p, then q"

If p, q

q, if p

p implies q

p only if q

p is sufficient for q

q is necessary for p

New cards
7

in a conditional proposition "→" p is the _______ and q is the __________

p is the hypothesis and q is the conclusion

New cards
8

The converse is the opposite of the conditional statement

For example, the converse of p → q (if p then q) is q → p (if q then p). If p → q is true, it does NOT guarantee that q → p is true

New cards
9

The inverse is the negation of the conditional statement

For example, the inverse of p → q (if p then q) is ¬p → ¬q (if not p then not q). If p → q is true, it does NOT guarantee that ¬p → ¬q is true

New cards
10

The contrapositive is the opposite and negative of the conditional statement

For example, the contrapositive of p → q (if p then q) is ¬q → ¬p (if not q then not p). If p → q is true, it DOES guarantee that ¬q → ¬p is true

New cards
11

biconditional operation

is read "p is necessary and sufficient for q" or "if p then q, and conversely" or "p if and only if q"

<p>is read "p is necessary and sufficient for q" or "if p then q, and conversely" or "p if and only if q"</p>
New cards
12

Logical equivalence p ≡ q

Two compound propositions are logically equivalent if they have the same truth value. That is, the truth value in the final column in a truth table is the same for both compound propositions

New cards
13

tautology

If the compound propositions is always true. For example, p∨¬p.

New cards
14

contradiction

if the compound proposition is always false. For example, p∧¬p.

New cards
15

De Morgan's Law

logical equivalences that show how to correctly distribute a negation operation inside a parenthesized expression containing the disjunction or conjunction operator.

¬(p ∨ q) = (¬p ∧ ¬q)

¬(p ∧ q) = (¬p ∨ ¬q)

New cards
16

Absorption laws

p ∨ (p ∧ q) ≡ p

p ∧ (p ∨ q) ≡ p

New cards
17

Associative laws

(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)

(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)

New cards
18

Commutative laws

p ∨ q ≡ q ∨ p

p ∧ q ≡ q ∧ p

New cards
19

Complement laws

p ∧ ¬p ≡ F

¬T ≡ F

p ∨ ¬p ≡ T

¬F ≡ T

New cards
20

Conditional identities

p → q ≡ ¬p ∨ q

p ↔ q ≡ ( p → q ) ∧ ( q → p )

New cards
21

Distributive laws

p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)

p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)

New cards
22

Domination laws

p ∨ T ≡ T

p ∧ F ≡ F

New cards
23

Double negation law

¬(¬p) ≡ p

New cards
24

idempotent laws

p ∨ p ≡ p

p ∧ p ≡ p

New cards
25

identity laws

p ∧ T ≡ p

p ∨ F ≡ p

New cards
26

predicate

a logical statement whose truth value is a function of one or more variables

New cards
27

domain of the predicate

the set of all possible x values for P(x) is called the domain of the predicate

New cards
28

universal quantifier

"for all x", is denoted ∀x, P(x). This means that for all values of x in the domain of P(x), the predicate is true.

New cards
29

existential quantifier

"there exists an x" such that P(x) is denoted ∃x, P(x). This means there is at least one x in the domain of the predicate that yields a truth value for P(x).

New cards
30

To show that ∀x, P(x) is not a true statement

we need only show for one x, P(x) is false.

New cards
31

To show that ∃x, P(x) is not a true statement

we need to show for all values of x, P(x) is false

New cards
32

free variable

A variable x in the predicate P(x) is called a free variable because it is not quantified. That is, the variable is free to take on any value in the domain.

New cards
33

bound variable

The variable x in the statement ∀xP(x) is a bound variable because it is quantified. That is, the variable is bound to a quantifier.

New cards
34

If statement has no free variables...

then the statement is a proposition because its truth value can be determined

New cards
35

DeMorgan's laws for quantified statements

¬∀xP(x) ≡ ∃x¬P(x)

¬∃xP(x) ≡ ∀x¬P(x)

DeMorgan's law for quantified statements are the same laws for propositions

New cards
36

nested quantifiers

A logical expression with more than one quantifier that binds different variables in the same predicate

New cards
37

∀x∀y M(x,y)

For every pair of x and y, M(x,y) is true

New cards
38

∃x∃y M(x,y)

There exists at least one pair of x and y such that M(x,y) is true

New cards
39

∃x∀y M(x,y)

There exists at least one x that pairs with ALL y, such that M(x,y) is true

New cards
40

∀x∃y M(x,y)

For each x, there is at least one y, such that M(x,y) is true

New cards
41

DeMorgan's law with nested quantifiers

¬∀x ∀y P(x, y) ≡ ∃x ∃y ¬P(x, y)

It is not true for all x and for all y, P(x, y).

There exists at least one pair (x, y) such that P(x, y) is false.

New cards
42

DeMorgan's law with nested quantifiers

¬∀x ∃y P(x, y) ≡ ∃x ∀y ¬P(x, y)

It is not true for all x there exists a y, such that P(x, y) is true

There exists at least one x and for all y, P(x, y) is false.

New cards
43

DeMorgan's law with nested quantifiers

¬∃x ∀y P(x, y) ≡ ∀x ∃y ¬P(x, y)

It is not true that there exists an x for all y, such P(x, y) is true

For all x, there is at least one y, such that P(x, y) is false.

New cards
44

DeMorgan's law with nested quantifiers

¬∃x ∃y P(x, y) ≡ ∀x ∀y ¬P(x, y)

It is not true that there exists a pair of x and y, such that P(x, y) is true.

For every pair of (x, y), P(x, y) is false.

New cards
45

argument

consists of a collection of propositions that include a set of premises called the hypotheses and a concluding one called the conclusion. Symbolically, we use p1, p2, ... pn to represent the hypotheses and c for the conclusion.

New cards
46

argument is expressed as

(p1 ∧ p2∧ ... ∧ pn) → c

New cards
47

A proposition can be true or false whereas an argument is

valid or invalid

New cards
48

The argument is valid if...

all the premises are true AND the conclusion is true. It is invalid otherwise.

New cards
49

Modus ponens

Given p;

if p then q;

then q can be inferred

<p>Given p;</p><p>if p then q; </p><p>then q can be inferred</p>
New cards
50

Modus tollens

Given NOT q;

if p then q;

then NOT p can be inferred

<p>Given NOT q; </p><p>if p then q; </p><p>then NOT p can be inferred</p>
New cards
51

Addition

Given p;

p OR q can be inferred

<p>Given p; </p><p>p OR q can be inferred</p>
New cards
52

Simplification

Given p AND q;

p can be inferred

<p>Given p AND q; </p><p>p can be inferred</p>
New cards
53

Conjunction

Given p;

Given q;

p AND q can be inferred

<p>Given p; </p><p>Given q; </p><p>p AND q can be inferred</p>
New cards
54

Hypothetical syllogism

If p implies q;

and q implies r;

Then p implies r can be inferred

<p>If p implies q; </p><p>and q implies r; </p><p>Then p implies r can be inferred</p>
New cards
55

Disjunctive syllogism

Given p OR q;

Given NOT p;

Then q can be inferred

<p>Given p OR q; </p><p>Given NOT p; </p><p>Then q can be inferred</p>
New cards
56

Resolution

Given p OR q ;

Given NOT p OR r;

Then q OR r can be inferred

<p>Given p OR q ; </p><p>Given NOT p OR r; </p><p>Then q OR r can be inferred</p>
New cards
57

elements

New cards
58

arbitrary element

An element that refers to any unspecified x in the domain.

For example, "Let x be any element in the domain of P(x)."

New cards
59

particular element

An element that refers to an x in the domain with certain properties

For example, "Let x be in the domain of P(x) such that x is also even."

New cards
60

Universal instantiation

Rule of Inference:

c is an element (arbitrary or particular)

∀x P(x)

∴ P(c)

Explanation:

c is an element

For all of x, P(x)

Therefore, P(c)

New cards
61

Universal generalization

Rule of Inference:

c is an arbitrary element

P(c) ______

∴ ∀x P(x)

Explanation:

Let c be an arbitrary element.

P(c)

Therefore for every x, P(x).

New cards
62

Existential instantiation

Rule of Inference:

∃x P(x)

∴ (c is a particular element) ∧ P(c)

Explanation:

There exists an x, P(x).

Therefore, there is a particular c such that P(c).

New cards
63

Existential generalization

Rule of Inference:

c is an element (arbitrary or particular)

P(c)

∴ ∃x P(x)

Explanation:

There is an element c such that P(c).

Therefore, there exists an x such that P(x).

New cards
64

theorem

a claim that can be proved true using logical arguments

New cards
65

proof

process we use to show the theorem is true

New cards
66

axioms

Claims that we accept to be true without proof

New cards
67

For proofs of universal statements...

a proof by exhaustion is one technique that shows the claim is true for all x in the domain.

New cards
68

To prove a claim is true by exhaustion...

plug each element in the domain with a value and determine its truth value.

New cards
69

For infinite domains and large finite domains...

this process is not possible and one must show the statement is true for an arbitrary element in the domain.

New cards
70

To disprove a universal statement...

find one counterexample to the claim

For example, to disprove the statement, "All prime numbers are odd" find one example where this statement is false—the number 2—which is both even and prime.

New cards
71

Use a direct proof to..

prove a claim implies a conclusion for a conditional statement ().

New cards
72

In a direct proof

start with the hypothesis of a statement and make one deduction after another until you reach the conclusion.

New cards
73

Symbolically, to prove with a direct proof

start with the original claim p then justify a sequential order of steps. The following is the structure of a direct proof.

p and show

p → p1 then

p1 → p2 then

pn → c for a sequence of steps, p1, p2, ... ,pn.

New cards
74

To prove a statement by contraposition, start with the contrapositive of the statement

In this example ¬c→¬p is the contrapositive of p→c. Then prove the contrapositive by a direct proof and conclude that the original statement is true. (For a refresher on direct proofs, review the previous lesson.)

New cards
75

The proof by contrapositive is often used for number theory proofs

It is good to know that the definition of an even number can be expressed as 2n where n is an integer. An odd number can be expressed as 2n + 1 for some integer n.

New cards
76

The proof by contrapositive is often used with statements with rational numbers.

A rational number can be expressed as the quotient of integers. An irrational number is one that cannot.

New cards
77

proof by contradiction

An indirect way to prove a theorem is to assume it is false and then show how, under this assumption, a mathematical contradiction will arise.

New cards
78

To prove by contradiction

start with the conditional statement p→c and assume the premise (p) is true but that conclusion (c) is false. Then proceed to show there is a contradiction using the same steps as the direct proof.

New cards
79

Use proofs by contradiction when it is more difficult to prove the theorem directly

For example, to show that the sum of an irrational number and a rational number is irrational, it is easier to prove it indirectly by assuming the sum is rational and showing that a contradiction arises, than to prove it directly.

New cards
80

proof by cases

To prove a predicate P(x) is true on its domain, sometimes it is easier to show the predicate is true by breaking up the domain into different classes and offering proofs for each class separately.

New cards
81

Boolean algebra

an expansion of the logic chapter covered in a previous unit where true (T) is now represented by 1 and false (F) is now 0.

<p>an expansion of the logic chapter covered in a previous unit where true (T) is now represented by 1 and false (F) is now 0.</p>
New cards
82

Boolean addition (+)

Logical ∨ (OR)

New cards
83

Boolean multiplication (⋅)

Logical ∧ (AND)

New cards
84

Boolean complement (bar symbol xˉ)

Logical ¬ (NOT)

New cards
85

Boolean exclusive or (⊕)

Logical ⊕ (XOR)

New cards
86

Boolean order of operations

Parentheses can override any other precedence

Complements are calculated before addition or multiplication

Multiplication takes precedence over addition

New cards
87

Absorption laws (Boolean algebra)

Since x ⋅ x requires x, x+(x × y) is just x.

<p>Since x ⋅ x requires x, x+(x × y) is just x.</p>
New cards
88

Associative laws (Boolean algebra)

Only applies when the operators are all addition, or are all multiplication. Rearranging the parentheses in an expression will not change the expression's value.

<p>Only applies when the operators are all addition, or are all multiplication. Rearranging the parentheses in an expression will not change the expression's value.</p>
New cards
89

Commutative laws (Boolean algebra)

Rearranging the values will not change the truth value.

<p>Rearranging the values will not change the truth value.</p>
New cards
90

Complement laws (Boolean algebra)

Addition or multiplication by the complement will equal either the multiplicative or additive identity value. Also, the complement of 1 is zero, and the complement of 0 is one.

<p>Addition or multiplication by the complement will equal either the multiplicative or additive identity value. Also, the complement of 1 is zero, and the complement of 0 is one.</p>
New cards
91

De Morgan's laws (Boolean algebra)

The complement of an OR expression is the same as an AND statement of their individual complements. The complement of an AND statement is the same as an OR statement of their individual complements.

<p>The complement of an OR expression is the same as an AND statement of their individual complements. The complement of an AND statement is the same as an OR statement of their individual complements.</p>
New cards
92

Distributive laws (Boolean algebra)

Addition can be distributed to each factor; multiplication can be distributed to each term.

<p>Addition can be distributed to each factor; multiplication can be distributed to each term.</p>
New cards
93

Domination laws (Boolean algebra)

Multiplication by the additive identity, 0, equals 0. Addition by the multiplicative identity, 1, equals 1.

<p>Multiplication by the additive identity, 0, equals 0. Addition by the multiplicative identity, 1, equals 1.</p>
New cards
94

Double complement law (Boolean algebra)

A double negative makes a positive.

<p>A double negative makes a positive.</p>
New cards
95

Idempotent laws (Boolean algebra)

To say x OR x—or to say x AND x—is redundant. In both cases, we just have x.

<p>To say x OR x—or to say x AND x—is redundant. In both cases, we just have x.</p>
New cards
96

Identity laws (Boolean algebra)

Addition or multiplication by the identity values of 0 and 1 respectively, does not change the original value

<p>Addition or multiplication by the identity values of 0 and 1 respectively, does not change the original value</p>
New cards
97

Literal

a single Boolean variable or its complement; for example, x¯ and x.

New cards
98

Minterm

the product of literals; for example, x¯yz

New cards
99

To find a Boolean expression that is equivalent to a Boolean function defined by an input/output table:

Each row of a table defining a Boolean function corresponds to a minterm.

Find each row where the value of f=1.

Write the expression for each row whose minterm equals 1.

Put an addition operator (+) between each expression.

New cards
100

The rules for disjunctive normal form DNF (the sum of products of literals):

Complements are applied to only single variables:

No addition within a term:

<p>Complements are applied to only single variables:</p><p>No addition within a term:</p>
New cards

Explore top notes

note Note
studied byStudied by 29 people
400 days ago
5.0(1)
note Note
studied byStudied by 41 people
282 days ago
5.0(1)
note Note
studied byStudied by 6 people
882 days ago
5.0(1)
note Note
studied byStudied by 14 people
829 days ago
5.0(2)
note Note
studied byStudied by 12 people
64 days ago
4.0(2)
note Note
studied byStudied by 12 people
904 days ago
5.0(1)
note Note
studied byStudied by 10 people
1008 days ago
5.0(1)
note Note
studied byStudied by 275 people
681 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (20)
studied byStudied by 29 people
662 days ago
5.0(1)
flashcards Flashcard (259)
studied byStudied by 38 people
45 days ago
5.0(1)
flashcards Flashcard (111)
studied byStudied by 4 people
823 days ago
5.0(1)
flashcards Flashcard (143)
studied byStudied by 151 people
756 days ago
3.8(10)
flashcards Flashcard (72)
studied byStudied by 6 people
253 days ago
5.0(2)
flashcards Flashcard (164)
studied byStudied by 93 people
39 days ago
5.0(2)
flashcards Flashcard (24)
studied byStudied by 10 people
739 days ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 2761 people
417 days ago
4.8(33)
robot