Logic Lecture 3 Flashcards

1
Q

What is Disjunctive Normal Form (DNF)?

A

A disjunction of conjunctions of literals.

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

What is a literal in propositional logic?

A

A propositional variable or its negation.

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

How is a truth table used to extract a DNF formula?

A

Identify rows where the formula is true and construct a disjunction of conjunctions from those rows.

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

Give an example of a DNF formula.

A

(p ∧ ¬q ∧ ¬r) ∨ (¬p ∧ q ∧ r) ∨ (¬p ∧ ¬q ∧ ¬r).

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

Is the formula ‘p’ in DNF?

A

Yes, because it consists of a single literal.

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

What is an example of a DNF extracted from a truth table?

A

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

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

What is an adequate system of connectives?

A

A set of logical operators that can express all possible truth tables.

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

Which connectives form an adequate system?

A

{¬, ∧, ∨}.

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

Why is {¬, ∧} an adequate system?

A

Because disjunction (∨) can be expressed as ¬(¬p ∧ ¬q).

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

Why is {¬, ∨} an adequate system?

A

Because conjunction (∧) can be expressed as ¬(¬p ∨ ¬q).

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

What is the Sheffer stroke (|)?

A

A single connective (NAND) that forms an adequate system.

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

What is the meaning of the Sheffer stroke?

A

φ | ψ ≡ ¬(φ ∧ ψ), meaning ‘not both φ and ψ’.

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

How can negation (¬) be expressed using only the Sheffer stroke?

A

¬φ ≡ φ | φ.

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

How can disjunction (∨) be expressed using only the Sheffer stroke?

A

φ ∨ ψ ≡ (φ | φ) | (ψ | ψ).

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

How can conjunction (∧) be expressed using only the Sheffer stroke?

A

φ ∧ ψ ≡ (φ | ψ) | (φ | ψ).

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

What is Conjunctive Normal Form (CNF)?

A

A conjunction of disjunctions of literals.

17
Q

What is a clause in CNF?

A

A disjunction of literals.

18
Q

How can a truth table be used to extract a CNF formula?

A

Identify rows where the formula is false and construct a conjunction of disjunctions that exclude those cases.

19
Q

What are the three steps for transforming a formula into CNF?

A
  1. Remove implications, 2. Move negations inward, 3. Distribute ∨ over ∧.
20
Q

How is the tautology test applied to CNFs?

A

A CNF is a tautology if every clause contains both a literal and its negation.

21
Q

What is satisfiability?

A

The problem of determining if there exists an assignment of truth values that makes a formula true.

22
Q

Why is the satisfiability problem significant?

A

It is NP-complete and used in AI, cryptography, and theorem proving.

23
Q

What is a SAT solver?

A

A tool designed to solve the satisfiability problem efficiently.

24
Q

How is Sudoku encoded as a satisfiability problem?

A

Each number placement is represented as a propositional variable with constraints forming a CNF formula.

25
Q

What are the five Sudoku rules expressed in propositional logic?

A
  1. Each cell contains one number, 2. Each row contains each number exactly once, 3. Each column contains each number exactly once, 4. Each 3x3 box contains each number exactly once, 5. The given numbers are fixed.
26
Q

What is the Davis-Putnam-Logemann-Loveland (DPLL) procedure?

A

An algorithm used to determine the satisfiability of CNF formulas.

27
Q

What are the simplification rules in the DPLL procedure?

A

Eliminate unit clauses, eliminate pure literals, and apply backtracking.

28
Q

What does the DPLL procedure do if a formula simplifies to ‘true’?

A

It determines that the formula is satisfiable.

29
Q

What does the DPLL procedure do if a formula simplifies to ‘false’?

A

It determines that the formula is unsatisfiable.