Propositional Formulas in CNF - semantics Flashcards

(26 cards)

1
Q

What is the semantic definition of a propositional formula?

A

A propositional formula is either satisfiable or unsatisfiable based on whether there exists an assignment of variables that makes it true

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

What is an assignment in propositional logic?

A

A mapping that gives every variable either the value true (1) or false (0)

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

How can an assignment be written as a set of literals?

A

As a set of literals where x is included if ν(x)=1 and ¬x is included if ν(x)=0

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

For n variables how many possible assignments exist?

A

2^n possible assignments

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

What is the value of Top (⊤) under any assignment?

A

Always true (1) regardless of assignment

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

What is the value of Bottom (⊥) under any assignment?

A

Always false (0) regardless of assignment

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

How is the value of a negation (¬v) calculated?

A

1 minus the value of v: if v is 1 then ¬v is 0 and vice versa

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

When is a clause true under an assignment?

A

A clause is true if at least one of its literals is true under the assignment

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

What does an empty clause (⊥) evaluate to?

A

Always false since it contains no literals that could be true

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

What are the three key properties of disjunction?

A

Commutative (order doesn’t matter), idempotent (repetition doesn’t matter), and associative (grouping doesn’t matter)

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

When is a CNF formula true under an assignment?

A

When all of its clauses are true under that assignment

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

What does an empty formula (⊤) evaluate to?

A

Always true since it contains no clauses that could be false

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

What are the three key properties of conjunction?

A

Commutative (order doesn’t matter), idempotent (repetition doesn’t matter), and associative (grouping doesn’t matter)

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

What is a CNF formula’s set representation?

A

A set of sets of literals where each inner set represents a clause

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

How do you add a clause C to CNF φ?

A

Write φ ∪ {C}

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

How do you remove a clause C from CNF φ?

A

Write φ∖{C}

17
Q

What is the SAT problem?

A

The task of finding a satisfying assignment for a propositional formula (or proving none exists)

18
Q

When is a formula considered satisfiable?

A

When there exists at least one assignment under which the formula evaluates to true

19
Q

When is a formula considered unsatisfiable?

A

When the formula is false under all possible assignments

20
Q

What’s the relationship between a clause and its literals?

A

A clause is true if ANY of its literals are true (disjunction)

21
Q

What’s the relationship between a CNF formula and its clauses?

A

A CNF formula is true if ALL of its clauses are true (conjunction)

22
Q

Why is the empty clause (⊥) always false?

A

Because it has no literals that could make it true

23
Q

Why is the empty formula (⊤) always true?

A

Because it has no clauses that could make it false

24
Q

How do you calculate the value of a CNF formula given an assignment?

A

Evaluate each clause (true if any literal is true) then check if all clauses are true

25
What determines which variables need assignments?
The variables that appear in the formula need assignments
26
How is a literal evaluated under an assignment?
If it's a positive literal x its value is ν(x), if it's a negative literal ¬x its value is 1-ν(x)