Logic Lecture 4 Flashcards

1
Q

What are the basic axioms of Boolean algebra?

A

Commutativity, Idempotence, Associativity, Complement, Distributivity, De Morgan’s laws, Domination, and Involution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the commutativity property in Boolean algebra?

A

φ ∨ ψ ≡ ψ ∨ φ and φ ∧ ψ ≡ ψ ∧ φ.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the idempotence property in Boolean algebra?

A

φ ∨ φ ≡ φ and φ ∧ φ ≡ φ.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the associativity property in Boolean algebra?

A

φ ∨ (ψ ∨ χ) ≡ (φ ∨ ψ) ∨ χ and φ ∧ (ψ ∧ χ) ≡ (φ ∧ ψ) ∧ χ.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the complement property in Boolean algebra?

A

φ ∨ ¬φ ≡ > and φ ∧ ¬φ ≡ ⊥.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the distributivity property in Boolean algebra?

A

φ ∨ (ψ ∧ χ) ≡ (φ ∨ ψ) ∧ (φ ∨ χ) and φ ∧ (ψ ∨ χ) ≡ (φ ∧ ψ) ∨ (φ ∧ χ).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are De Morgan’s laws?

A

¬(φ ∨ ψ) ≡ ¬φ ∧ ¬ψ and ¬(φ ∧ ψ) ≡ ¬φ ∨ ¬ψ.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the domination property in Boolean algebra?

A

φ ∨ ⊥ ≡ φ, φ ∨ > ≡ >, φ ∧ > ≡ φ, φ ∧ ⊥ ≡ ⊥.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the involution property in Boolean algebra?

A

¬¬φ ≡ φ.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does it mean for Boolean algebra to be sound?

A

Its axioms only equate semantically equivalent formulas.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does it mean for Boolean algebra to be complete?

A

All valid equations between formulas can be derived using the axioms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does it mean for Boolean algebra to be irredundant?

A

No axiom can be derived from the others.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an equivalence relation?

A

A binary relation that is reflexive, symmetric, and transitive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the correspondence between Boolean algebra and set theory?

A

Logical operations correspond to set operations: ∨ → ∪ (union), ∧ → ∩ (intersection), ¬ → ′ (complement).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the basic set theory operations corresponding to Boolean algebra?

A

Union (∪), intersection (∩), and complement (′).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an example of a set equation corresponding to a Boolean equivalence?

A

(A′ ∪ B) ∩ (A ∪ B′) = (A ∩ B) ∪ (A′ ∩ B′) corresponds to (¬φ ∨ ψ) ∧ (φ ∨ ¬ψ) ≡ (φ ∧ ψ) ∨ (¬φ ∧ ¬ψ).

17
Q

What are equivalence classes of formulas?

A

Sets of formulas that are semantically equivalent.

18
Q

What are the four equivalence classes for one variable p?

A

> , ⊥, p, and ¬p.

19
Q

How many equivalence classes exist for two variables?

A

16 equivalence classes.

20
Q

What is the general formula for the number of equivalence classes for n variables?

21
Q

What is a Boolean function?

A

A function mapping tuples of truth values (0 or 1) to truth values.

22
Q

What are common representations of Boolean functions?

A

Truth tables, logical formulas, logic circuits, and binary decision diagrams.

23
Q

What are the three basic logic gates?

A

AND, OR, and NOT.

24
Q

What does an AND gate represent?

A

Logical conjunction (∧).

25
Q

What does an OR gate represent?

A

Logical disjunction (∨).

26
Q

What does a NOT gate represent?

A

Logical negation (¬).

27
Q

What is a half adder?

A

A logic circuit that adds two bits and outputs a sum and carry bit.

28
Q

What is a full adder?

A

A logic circuit that adds three bits (two input bits and a carry bit) and outputs a sum and a carry.

29
Q

What is the sum bit formula in a half adder?

A

s0 = x0 ⊕ y0.

30
Q

What is the carry bit formula in a half adder?

A

c1 = x0 ∧ y0.