Truth Tables and Gates, proof of implies

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/52

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

53 Terms

1
New cards
And

Rewrite: min(p, q)

Algebraic: p · q

2
New cards
Or

Rewrite: max(p, q)

Algebraic: p + q - (p · q)

3
New cards
Negation

Algebraic: 1 - p

4
New cards
Implies

Rewrite: not p or q

Algebraic: 1 - p + p·q

5
New cards
If and only if (iff)

Rewrite: (p implies q) and (q implies p)

Algebraic: p · q + (1 - p)(1 - q)

6
New cards

Questions for all of them

And: are they both 1?
Or: is there a one?

Implies: you know this

Iff: are they the same:

XOR: are they different?

7
New cards

Contrapositivity Theorem

For p, q propositions:

p implies q equiv to:

neg q implies neg p

Can prove by truth table

8
New cards
Identity Law 1
p and 1 ≡ p
9
New cards
Identity Law 2
p or 0 ≡ p
10
New cards
Domination Law 1
p or 1 ≡ 1
11
New cards
Domination Law 2
p and 0 ≡ 0
12
New cards
Negation Law 1
not (not p) ≡ p
13
New cards
Negation Law 2
p or (not p) ≡ 1
14
New cards
Negation Law 3
p and (not p) ≡ 0
15
New cards
Idempotent Law 1
p and p ≡ p
16
New cards
Idempotent Law 2
p or p ≡ p
17
New cards
Commutativity Law 1
p and q ≡ q and p
18
New cards
Commutativity Law 2
p or q ≡ q or p &
19
New cards
Identity Laws
p and 1 ≡ p, p or 0 ≡ p
20
New cards
Domination Laws
p or 1 ≡ 1, p and 0 ≡ 0
21
New cards
Negation Laws
not (not p) ≡ p, p or (not p) ≡ 1, p and (not p) ≡ 0
22
New cards
Idempotent Laws
p and p ≡ p, p or p ≡ p
23
New cards
Commutativity Laws
p and q ≡ q and p, p or q ≡ q or p &
24
New cards
De Morgan's Law 1
¬(p ∧ q) ≡ ¬p ∨ ¬q
25
New cards
De Morgan's Law 2
¬(p ∨ q) ≡ ¬p ∧ ¬q
26
New cards
Absorption Law 1
p ∧ (p ∨ q) ≡ p
27
New cards
Absorption Law 2
p ∨ (p ∧ q) ≡ p
28
New cards
Distributive Law 1
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
29
New cards
Distributive Law 2
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
30
New cards
Associative Law 1
(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
31
New cards
Associative Law 2
(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
32
New cards

De Morgan's Laws

¬(p ∧ q) ≡ ¬p ∨ ¬q

¬(p ∨ q) ≡ ¬p ∧ ¬q

33
New cards

Absorption Laws

p ∧ (p ∨ q) ≡ p

p ∨ (p ∧ q) ≡ p

34
New cards

Distributive Laws

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

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

35
New cards

Associative Laws

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

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

36
New cards

(p =⇒ q) ≡

(¬q) =⇒ (¬p)

37
New cards

Theorem 3. 1.2.2 (p =⇒ q) ≡ (¬q) =⇒ (¬p) step 1

38
New cards

Theorem 3. 1.2.2 (p =⇒ q) ≡ (¬q) =⇒ (¬p) step 2

39
New cards

Theorem 3. 1.2.2 (p =⇒ q) ≡ (¬q) =⇒ (¬p) step 3

40
New cards

Theorem 3. 1.2.2 (p =⇒ q) ≡ (¬q) =⇒ (¬p)

41
New cards

Theorem 4. 1.2.3 Proving DeMorgan’s Law

42
New cards

1.2.4 Gates Fan-in and fan-out, and gate

Fan-in: 2

Fan-out: unbounded

43
New cards

1.2.4 Gates Fan-in and fan-out, or gate

Fan-in: 2

Fan-out: unbounded

44
New cards

1.2.4 Gates Fan-in and fan-out, not gate

Fan-in: 1

Fan-out: unbounded

45
New cards

1.2.4 Gates Fan-in and fan-out, input gate

Fan-out: 1

Fan-in: 0

46
New cards

The final output gate is either

47
New cards

1.2.5 Formulas

special circuits where every gate has fan out ≤ 1

48
New cards

1.2.6 Satisfiable and not satisfiable equations

What it sounds like, some expressions will never evaluate to True

49
New cards

1.3.1 Prefix string encoding:

Start at top, then go left to right.

50
New cards

1.3.2 Quantifiers

Where x is unknown, the expression x2 + 8 = 17 is not a valid proposition, but

it can be made into one by using a quantifier.

51
New cards

Existential Quantifier ∃

(∃x P (x))

There exists an x such that P (x) is true.

Common number sets:

• Complex numbers: C

• Real numbers: R

• Real numbers: ∀

52
New cards

1.3.3 Transformation Rule (Quantifiers)

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

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

53
New cards

1.3.4 One Bit Addition