G22.2390-001 Logic in Computer Science Fall 2009 Lecture 2 1 - - PowerPoint PPT Presentation

g22 2390 001 logic in computer science fall 2009 lecture 2
SMART_READER_LITE
LIVE PREVIEW

G22.2390-001 Logic in Computer Science Fall 2009 Lecture 2 1 - - PowerPoint PPT Presentation

G22.2390-001 Logic in Computer Science Fall 2009 Lecture 2 1 Review Last week Propositional Logic: Syntax Well-Formed Formulas ( wffs ) Induction and Recursion 2 Outline Recognizing Well-Formed Formulas Propositional


slide-1
SLIDE 1

G22.2390-001 Logic in Computer Science Fall 2009 Lecture 2

1

slide-2
SLIDE 2

Review

Last week

  • Propositional Logic: Syntax
  • Well-Formed Formulas (wffs)
  • Induction and Recursion

2

slide-3
SLIDE 3

Outline

  • Recognizing Well-Formed Formulas
  • Propositional Logic: Semantics
  • Truth Tables
  • Satisfiability and Tautologies
  • Propositional Connectives and Boolean Functions
  • Compactness
  • Computability and Decidability

Sources: Enderton, Sections: 1.2, 1.3, 1.5, 1.7.

  • N. J. Cutland. Computability.
  • W. Hodges. A Shorter Model Theory. Cambridge Press, 1997.

3

slide-4
SLIDE 4

Propositional Logic: Well-Formed Formulas

Recall our inductive definition of the set W of well-formed formulas in propositional logic. Given the alphabet {(, ), ¬, ∧, ∨, →, ↔, A1, A2, . . .},

  • U =
  • B =
  • F =

4

slide-5
SLIDE 5

Propositional Logic: Well-Formed Formulas

Recall our inductive definition of the set W of well-formed formulas in propositional logic. Given the alphabet {(, ), ¬, ∧, ∨, →, ↔, A1, A2, . . .},

  • U = the set of all expressions over the alphabet.
  • B =
  • F =

4-a

slide-6
SLIDE 6

Propositional Logic: Well-Formed Formulas

Recall our inductive definition of the set W of well-formed formulas in propositional logic. Given the alphabet {(, ), ¬, ∧, ∨, →, ↔, A1, A2, . . .},

  • U = the set of all expressions over the alphabet.
  • B = the set of expressions consisting of a single propositional symbol.
  • F =

4-b

slide-7
SLIDE 7

Propositional Logic: Well-Formed Formulas

Recall our inductive definition of the set W of well-formed formulas in propositional logic. Given the alphabet {(, ), ¬, ∧, ∨, →, ↔, A1, A2, . . .},

  • U = the set of all expressions over the alphabet.
  • B = the set of expressions consisting of a single propositional symbol.
  • F = the set of formula-building operations:

– E¬(α) = (¬α) – E∧(α, β) = (α ∧ β) – E∨(α, β) = (α ∨ β) – E→(α, β) = (α → β) – E↔(α, β) = (α ↔ β)

4-c

slide-8
SLIDE 8

An Algorithm for Recognizing WFFs

Lemma Let α be a wff. Then exactly one of the following is true.

  • α is a propositional symbol.
  • α = (¬β) where β is a wff.
  • α = (β ⊙ γ) where ⊙ is one of {∧, ∨, →, ↔}, β is the first

parentheses-balanced initial segment of the result of dropping the first ( from

α, and β and γ are wffs.

5

slide-9
SLIDE 9

An Algorithm for Recognizing WFFs

Lemma Let α be a wff. Then exactly one of the following is true.

  • α is a propositional symbol.
  • α = (¬β) where β is a wff.
  • α = (β ⊙ γ) where ⊙ is one of {∧, ∨, →, ↔}, β is the first

parentheses-balanced initial segment of the result of dropping the first ( from

α, and β and γ are wffs.

How would you prove this?

5-a

slide-10
SLIDE 10

An Algorithm for Recognizing WFFs

Lemma Let α be a wff. Then exactly one of the following is true.

  • α is a propositional symbol.
  • α = (¬β) where β is a wff.
  • α = (β ⊙ γ) where ⊙ is one of {∧, ∨, →, ↔}, β is the first

parentheses-balanced initial segment of the result of dropping the first ( from

α, and β and γ are wffs.

How would you prove this? Induction, of course!

5-b

slide-11
SLIDE 11

An Algorithm for Recognizing WFFs

Input: expression α Output: true or false (indicating whether α is a wff).

  • 0. Begin with an initial construction tree T containing a single node labeled with

α.

  • 1. If all leaves of T are labeled with propositional symbols, return true.
  • 2. Select a leaf labeled with an expression α1 which is not a propositional

symbol.

  • 3. If α1 does not begin with ( return false.
  • 4. If α1 = (¬β), then add a child to the leaf labeled by α1, label it with β, and

goto 1.

  • 5. Scan α1 until first reaching (β, where β is a nonempty expression having the

same number of left and right parentheses. If there is no such β, return false.

  • 6. If α1 = (β ⊙ γ) where ⊙ is one of {∧, ∨, →, ↔}, then add two children to

the leaf labeled by α1, label them with β and γ, and goto 1.

  • 7. Return false.

6

slide-12
SLIDE 12

An Algorithm for Recognizing WFFs

Termination How do we prove termination of this algorithm?

7

slide-13
SLIDE 13

An Algorithm for Recognizing WFFs

Termination How do we prove termination of this algorithm? We can show that the sum of the lengths of all the expressions labeling leaves decreases on each iteration of the loop.

7-a

slide-14
SLIDE 14

An Algorithm for Recognizing WFFs

Termination How do we prove termination of this algorithm? We can show that the sum of the lengths of all the expressions labeling leaves decreases on each iteration of the loop. Soundness If the algorithm returns true when given input α, then α is a wff. The proof is by induction on the tree T generated by the algorithm from the leaves up to the root.

7-b

slide-15
SLIDE 15

An Algorithm for Recognizing WFFs

Termination How do we prove termination of this algorithm? We can show that the sum of the lengths of all the expressions labeling leaves decreases on each iteration of the loop. Soundness If the algorithm returns true when given input α, then α is a wff. The proof is by induction on the tree T generated by the algorithm from the leaves up to the root. Completeness If α is a wff, then the algorithm will return true. Proof using the induction principle for the set of wffs.

7-c

slide-16
SLIDE 16

Notational Conventions

  • Larger variety of propositional symbols: A, B, C, D, p, q, r, etc.
  • Outermost parentheses can be omitted: A ∧ B instead of (A ∧ B).
  • Negation symbol binds stronger than binary connectives and its scope is as

small as possible: ¬A ∧ B means ((¬A) ∧ B).

  • {∧, ∨} bind stronger than {→, ↔}: A ∧ B → ¬C ∨ D is

((A ∧ B) → ((¬C) ∨ D))

  • When one symbol is used repeatedly, grouping is to the right: A ∧ B ∧ C is

(A ∧ (B ∧ C))

Note that conventions are only unambiguous for wffs, not for arbitrary expressions.

8

slide-17
SLIDE 17

Propositional Logic: Semantics

Intuitively, given a wff α and a value (either T or F) for each propositional symbol in α, we should be able to determine the value of α. How do we make this precise? Let v be a function from B to {F, T}. We call this function a truth assignment. Now, we define v, a function from W to {F, T} as follows (we compute with F and T as if they were 0 and 1 respectively).

  • For each propositional symbol Ai, v(Ai) = v(Ai).
  • v(E¬(α)) = T − v(α)
  • v(E∧(α, β)) = min(v(α), v(β))
  • v(E∨(α, β)) = max(v(α), v(β))
  • v(E→(α, β)) = max(T − v(α), v(β))
  • v(E↔(α, β)) = T − |v(α) − v(β)|

The recursion theorem and the unique readability theorem guarantee that v is well-defined.

9

slide-18
SLIDE 18

Truth Tables

There are other ways to present the semantics which are less formal but perhaps more intuitive.

α ¬α T F α β α ∧ β T T T F F T F F α β α ∨ β T T T F F T F F α β α → β T T T F F T F F α β α ↔ β T T T F F T F F

10

slide-19
SLIDE 19

Truth Tables

There are other ways to present the semantics which are less formal but perhaps more intuitive.

α ¬α T F F T α β α ∧ β T T T F F T F F α β α ∨ β T T T F F T F F α β α → β T T T F F T F F α β α ↔ β T T T F F T F F

10-a

slide-20
SLIDE 20

Truth Tables

There are other ways to present the semantics which are less formal but perhaps more intuitive.

α ¬α T F F T α β α ∧ β T T T T F F F T F F F F α β α ∨ β T T T F F T F F α β α → β T T T F F T F F α β α ↔ β T T T F F T F F

10-b

slide-21
SLIDE 21

Truth Tables

There are other ways to present the semantics which are less formal but perhaps more intuitive.

α ¬α T F F T α β α ∧ β T T T T F F F T F F F F α β α ∨ β T T T T F T F T T F F F α β α → β T T T T F F F T T F F T α β α ↔ β T T T T F F F T F F F T

10-c

slide-22
SLIDE 22

Complex truth tables

Truth tables can also be used to calculate all possible values of v for a given wff: We associate a column with each propositional symbol and a column with each propositional connective. There is a row for each possible truth assignment to the propositional connectives.

A1 A2 A3 (A1 ∨ (A2 ∧ ¬A3)) T T T T T T T F T T T F T T F T F F T F F T T F T F T F F T F F T F F F F F F F

11

slide-23
SLIDE 23

Complex truth tables

Truth tables can also be used to calculate all possible values of v for a given wff: We associate a column with each propositional symbol and a column with each propositional connective. There is a row for each possible truth assignment to the propositional connectives.

A1 A2 A3 (A1 ∨ (A2 ∧ ¬A3)) T T T T T F T T F T T T T F T T F F T F F T F T F T T F T F F T F F T T F F T F F F F F F F F T

11-a

slide-24
SLIDE 24

Complex truth tables

Truth tables can also be used to calculate all possible values of v for a given wff: We associate a column with each propositional symbol and a column with each propositional connective. There is a row for each possible truth assignment to the propositional connectives.

A1 A2 A3 (A1 ∨ (A2 ∧ ¬A3)) T T T T T F F T T F T T T T T F T T F F F T F F T F F T F T T F T F F F T F F T T T F F T F F F F F F F F F F T

11-b

slide-25
SLIDE 25

Complex truth tables

Truth tables can also be used to calculate all possible values of v for a given wff: We associate a column with each propositional symbol and a column with each propositional connective. There is a row for each possible truth assignment to the propositional connectives.

A1 A2 A3 (A1 ∨ (A2 ∧ ¬A3)) T T T T T T F F T T F T T T T T T F T T T F F F T F F T T F F T F T T F F T F F F T F F T T T T F F T F F F F F F F F F F F F T

11-c

slide-26
SLIDE 26

Definitions

If α is a wff, then a truth assignment v satisfies α if v(α) = T.

12

slide-27
SLIDE 27

Definitions

If α is a wff, then a truth assignment v satisfies α if v(α) = T. A wff α is satisfiable if there exists some truth assignment v which satisfies α.

12-a

slide-28
SLIDE 28

Definitions

If α is a wff, then a truth assignment v satisfies α if v(α) = T. A wff α is satisfiable if there exists some truth assignment v which satisfies α. Suppose Σ is a set of wffs. Then Σ tautologically implies α, Σ |

= α, if every

truth assignment which satisfies each formula in Σ also satisfies α.

12-b

slide-29
SLIDE 29

Definitions

If α is a wff, then a truth assignment v satisfies α if v(α) = T. A wff α is satisfiable if there exists some truth assignment v which satisfies α. Suppose Σ is a set of wffs. Then Σ tautologically implies α, Σ |

= α, if every

truth assignment which satisfies each formula in Σ also satisfies α. Particular cases:

  • If ∅ |

= α, then we say α is a tautology or α is valid and write | = α.

12-c

slide-30
SLIDE 30

Definitions

If α is a wff, then a truth assignment v satisfies α if v(α) = T. A wff α is satisfiable if there exists some truth assignment v which satisfies α. Suppose Σ is a set of wffs. Then Σ tautologically implies α, Σ |

= α, if every

truth assignment which satisfies each formula in Σ also satisfies α. Particular cases:

  • If ∅ |

= α, then we say α is a tautology or α is valid and write | = α.

  • If Σ is unsatisfiable, then Σ |

= α for every wff α.

12-d

slide-31
SLIDE 31

Definitions

If α is a wff, then a truth assignment v satisfies α if v(α) = T. A wff α is satisfiable if there exists some truth assignment v which satisfies α. Suppose Σ is a set of wffs. Then Σ tautologically implies α, Σ |

= α, if every

truth assignment which satisfies each formula in Σ also satisfies α. Particular cases:

  • If ∅ |

= α, then we say α is a tautology or α is valid and write | = α.

  • If Σ is unsatisfiable, then Σ |

= α for every wff α.

  • If α |

= β (shorthand for {α} | = β) and β | = α, then α and β are

tautologically equivalent.

12-e

slide-32
SLIDE 32

Definitions

If α is a wff, then a truth assignment v satisfies α if v(α) = T. A wff α is satisfiable if there exists some truth assignment v which satisfies α. Suppose Σ is a set of wffs. Then Σ tautologically implies α, Σ |

= α, if every

truth assignment which satisfies each formula in Σ also satisfies α. Particular cases:

  • If ∅ |

= α, then we say α is a tautology or α is valid and write | = α.

  • If Σ is unsatisfiable, then Σ |

= α for every wff α.

  • If α |

= β (shorthand for {α} | = β) and β | = α, then α and β are

tautologically equivalent.

  • Σ |

= α if and only if (Σ) → α is valid.

12-f

slide-33
SLIDE 33

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B)

13

slide-34
SLIDE 34

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.

13-a

slide-35
SLIDE 35

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B)

13-b

slide-36
SLIDE 36

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.

13-c

slide-37
SLIDE 37

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.
  • {A, A → B} |

= B

  • {A, ¬A} |

= (A ∧ ¬A)

13-d

slide-38
SLIDE 38

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.
  • {A, A → B} |

= B

  • {A, ¬A} |

= (A ∧ ¬A)

  • ¬(A ∧ B) is tautologically equivalent to ¬A ∨ ¬B

13-e

slide-39
SLIDE 39

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.
  • {A, A → B} |

= B

  • {A, ¬A} |

= (A ∧ ¬A)

  • ¬(A ∧ B) is tautologically equivalent to ¬A ∨ ¬B

Suppose you had an algorithm SAT which would take a wff α as input and return true if α is satisfiable and false otherwise. How would you use this algorithm to verify each of the claims made above?

13-f

slide-40
SLIDE 40

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.
  • {A, A → B} |

= B (A ∧ (A → B) ∧ (¬B))

  • {A, ¬A} |

= (A ∧ ¬A)

  • ¬(A ∧ B) is tautologically equivalent to ¬A ∨ ¬B

Suppose you had an algorithm SAT which would take a wff α as input and return true if α is satisfiable and false otherwise. How would you use this algorithm to verify each of the claims made above?

13-g

slide-41
SLIDE 41

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.
  • {A, A → B} |

= B (A ∧ (A → B) ∧ (¬B))

  • {A, ¬A} |

= (A ∧ ¬A) (A ∧ (¬A) ∧ ¬(A ∧ ¬A))

  • ¬(A ∧ B) is tautologically equivalent to ¬A ∨ ¬B

Suppose you had an algorithm SAT which would take a wff α as input and return true if α is satisfiable and false otherwise. How would you use this algorithm to verify each of the claims made above?

13-h

slide-42
SLIDE 42

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.
  • {A, A → B} |

= B (A ∧ (A → B) ∧ (¬B))

  • {A, ¬A} |

= (A ∧ ¬A) (A ∧ (¬A) ∧ ¬(A ∧ ¬A))

  • ¬(A ∧ B) is tautologically equivalent to ¬A ∨ ¬B

¬(¬(A ∧ B) ↔ (¬A ∨ ¬B))

Suppose you had an algorithm SAT which would take a wff α as input and return true if α is satisfiable and false otherwise. How would you use this algorithm to verify each of the claims made above?

13-i

slide-43
SLIDE 43

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.
  • {A, A → B} |

= B (A ∧ (A → B) ∧ (¬B))

  • {A, ¬A} |

= (A ∧ ¬A) (A ∧ (¬A) ∧ ¬(A ∧ ¬A))

  • ¬(A ∧ B) is tautologically equivalent to ¬A ∨ ¬B

¬(¬(A ∧ B) ↔ (¬A ∨ ¬B))

Now suppose you had an algorithm CHECKVALID which returns true when α is valid and false otherwise. How would you verify the claims given this algorithm?

14

slide-44
SLIDE 44

Examples

  • (A ∨ B) ∧ (¬A ∨ ¬B) is satisfiable, but not valid.
  • (A ∨ B) ∧ (¬A ∨ ¬B) ∧ (A ↔ B) is unsatisfiable.
  • {A, A → B} |

= B (A ∧ (A → B) ∧ (¬B))

  • {A, ¬A} |

= (A ∧ ¬A) (A ∧ (¬A) ∧ ¬(A ∧ ¬A))

  • ¬(A ∧ B) is tautologically equivalent to ¬A ∨ ¬B

¬(¬(A ∧ B) ↔ (¬A ∨ ¬B))

Now suppose you had an algorithm CHECKVALID which returns true when α is valid and false otherwise. How would you verify the claims given this algorithm? Satisfiability and validity are dual notions: α is unsatisfiable if and only if ¬α is valid.

14-a

slide-45
SLIDE 45

Determining Satisfiability using Truth Tables

An Algorithm for Satisfiability To check whether α is satisfiable, form the truth table for α. If there is a row in which T appears as the value for α, then α is satisfiable. Otherwise, α is unsatisfiable.

15

slide-46
SLIDE 46

Determining Satisfiability using Truth Tables

An Algorithm for Satisfiability To check whether α is satisfiable, form the truth table for α. If there is a row in which T appears as the value for α, then α is satisfiable. Otherwise, α is unsatisfiable. An Algorithm for Tautological Implication To check whether {α1, . . . , αk} |

= β, check the satisfiability of (α1 ∧ . . . ∧ αk) ∧ (¬β). If it is unsatisfiable, then {α1, . . . , αk} | = β,

  • therwise {α1, . . . , αk} |

= β.

15-a

slide-47
SLIDE 47

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B))

16

slide-48
SLIDE 48

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B))

16-a

slide-49
SLIDE 49

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) F F F F T T T T T

16-b

slide-50
SLIDE 50

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) F F F F T T T T T F F T F T T T T T

16-c

slide-51
SLIDE 51

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) F F F F T T T T T F F T F T T T T T F T F F T T F F F

16-d

slide-52
SLIDE 52

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) F F F F T T T T T F F T F T T T T T F T F F T T F F F F T T F T T T T F

16-e

slide-53
SLIDE 53

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) F F F F T T T T T F F T F T T T T T F T F F T T F F F F T T F T T T T F T F F F F F F T T

16-f

slide-54
SLIDE 54

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) F F F F T T T T T F F T F T T T T T F T F F T T F F F F T T F T T T T F T F F F F F F T T T F T F F F F T T

16-g

slide-55
SLIDE 55

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) F F F F T T T T T F F T F T T T T T F T F F T T F F F F T T F T T T T F T F F F F F F T T T F T F F F F T T T T F F T F F F F

16-h

slide-56
SLIDE 56

Determining Satisfiability using Truth Tables

Example

A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) A B C A ∧ ((B ∨ ¬A) ∧ (C ∨ ¬B)) F F F F T T T T T F F T F T T T T T F T F F T T F F F F T T F T T T T F T F F F F F F T T T F T F F F F T T T T F F T F F F F T T T T T F T T F

16-i

slide-57
SLIDE 57

Determining Satisfiability using Truth Tables

What is the complexity of this algorithm?

17

slide-58
SLIDE 58

Determining Satisfiability using Truth Tables

What is the complexity of this algorithm?

2n where n is the number of propositional symbols.

17-a

slide-59
SLIDE 59

Determining Satisfiability using Truth Tables

What is the complexity of this algorithm?

2n where n is the number of propositional symbols.

Can you think of a way to speed up these algorithms?

17-b

slide-60
SLIDE 60

Determining Satisfiability using Truth Tables

What is the complexity of this algorithm?

2n where n is the number of propositional symbols.

Can you think of a way to speed up these algorithms? In an upcoming lecture, we will discuss some of the applications and best-known techniques for the SAT algorithm.

17-c

slide-61
SLIDE 61

Some tautologies

Associative and Commutative laws for ∧, ∨, ↔

18

slide-62
SLIDE 62

Some tautologies

Associative and Commutative laws for ∧, ∨, ↔ Distributive Laws

  • (A ∧ (B ∨ C)) ↔ ((A ∧ B) ∨ (A ∧ C)).
  • (A ∨ (B ∧ C)) ↔ ((A ∨ B) ∧ (A ∨ C)).

18-a

slide-63
SLIDE 63

Some tautologies

Associative and Commutative laws for ∧, ∨, ↔ Distributive Laws

  • (A ∧ (B ∨ C)) ↔ ((A ∧ B) ∨ (A ∧ C)).
  • (A ∨ (B ∧ C)) ↔ ((A ∨ B) ∧ (A ∨ C)).

Negation

  • ¬¬A ↔ A
  • ¬(A → B) ↔ (A ∧ ¬B)
  • ¬(A ↔ B) ↔ ((A ∧ ¬B) ∨ (¬A ∧ B))

18-b

slide-64
SLIDE 64

Some tautologies

Associative and Commutative laws for ∧, ∨, ↔ Distributive Laws

  • (A ∧ (B ∨ C)) ↔ ((A ∧ B) ∨ (A ∧ C)).
  • (A ∨ (B ∧ C)) ↔ ((A ∨ B) ∧ (A ∨ C)).

Negation

  • ¬¬A ↔ A
  • ¬(A → B) ↔ (A ∧ ¬B)
  • ¬(A ↔ B) ↔ ((A ∧ ¬B) ∨ (¬A ∧ B))

De Morgan’s Laws

  • ¬(A ∧ B) ↔ (¬A ∨ ¬B)
  • ¬(A ∨ B) ↔ (¬A ∧ ¬B)

18-c

slide-65
SLIDE 65

More Tautologies

Implication

  • (A → B) ↔ (¬A ∨ B)

19

slide-66
SLIDE 66

More Tautologies

Implication

  • (A → B) ↔ (¬A ∨ B)

Excluded Middle

  • A ∨ ¬A

19-a

slide-67
SLIDE 67

More Tautologies

Implication

  • (A → B) ↔ (¬A ∨ B)

Excluded Middle

  • A ∨ ¬A

Contradiction

  • ¬(A ∧ ¬A)

19-b

slide-68
SLIDE 68

More Tautologies

Implication

  • (A → B) ↔ (¬A ∨ B)

Excluded Middle

  • A ∨ ¬A

Contradiction

  • ¬(A ∧ ¬A)

Contraposition

  • (A → B) ↔ (¬B → ¬A)

19-c

slide-69
SLIDE 69

More Tautologies

Implication

  • (A → B) ↔ (¬A ∨ B)

Excluded Middle

  • A ∨ ¬A

Contradiction

  • ¬(A ∧ ¬A)

Contraposition

  • (A → B) ↔ (¬B → ¬A)

Exportation

  • ((A ∧ B) → C) ↔ (A → (B → C))

19-d

slide-70
SLIDE 70

Propositional Connectives

We have five connectives: ¬, ∧, ∨, →, ↔. Would we gain anything by having more? Would we lose anything by having fewer?

20

slide-71
SLIDE 71

Propositional Connectives

We have five connectives: ¬, ∧, ∨, →, ↔. Would we gain anything by having more? Would we lose anything by having fewer? Example: Ternary Majority Connective #

E#(α, β, γ) = (#αβγ) v((#αβγ)) = T iff the majority of v(α), v(β), and v(γ) are T.

20-a

slide-72
SLIDE 72

Propositional Connectives

We have five connectives: ¬, ∧, ∨, →, ↔. Would we gain anything by having more? Would we lose anything by having fewer? Example: Ternary Majority Connective #

E#(α, β, γ) = (#αβγ) v((#αβγ)) = T iff the majority of v(α), v(β), and v(γ) are T.

What does this new connective do for us?

20-b

slide-73
SLIDE 73

Propositional Connectives

We have five connectives: ¬, ∧, ∨, →, ↔. Would we gain anything by having more? Would we lose anything by having fewer? Example: Ternary Majority Connective #

E#(α, β, γ) = (#αβγ) v((#αβγ)) = T iff the majority of v(α), v(β), and v(γ) are T.

What does this new connective do for us? Claim: The extended language obtained by allowing this new symbol has the same expressive power as the original language.

20-c

slide-74
SLIDE 74

Propositional Connectives

We have five connectives: ¬, ∧, ∨, →, ↔. Would we gain anything by having more? Would we lose anything by having fewer? Example: Ternary Majority Connective #

E#(α, β, γ) = (#αβγ) v((#αβγ)) = T iff the majority of v(α), v(β), and v(γ) are T.

What does this new connective do for us? Claim: The extended language obtained by allowing this new symbol has the same expressive power as the original language. How do we show this formally?

20-d

slide-75
SLIDE 75

Boolean Functions

For k ≥ 0, a k-place Boolean function is a function from {F, T}k to {F, T}. A Boolean function then is anything which is a k-place Boolean function for some k. Each wff α determines a corresponding Boolean function Bα. For example, if

α = A1 ∧ A2, then Bα is a 2-place Boolean function whose value is given by

the following table.

X1 X2 Bα(X1, X2) T T T T F F F T F F F F

21

slide-76
SLIDE 76

Realizing Boolean Functions

In general, suppose that α is a wff whose propositional symbols are included in

A1, . . . , An. We define an n-place Boolean function Bn

α, the Boolean function

realized by α as

Bn

α(X1, . . . , Xn) = the truth value given to α when A1, . . . , An are

given the values X1, . . . , Xn.

22

slide-77
SLIDE 77

Realizing Boolean Functions

In general, suppose that α is a wff whose propositional symbols are included in

A1, . . . , An. We define an n-place Boolean function Bn

α, the Boolean function

realized by α as

Bn

α(X1, . . . , Xn) = the truth value given to α when A1, . . . , An are

given the values X1, . . . , Xn. In other words,

Bn

α(X1, . . . , Xn) = v(α) where v(Ai) = Xi.

22-a

slide-78
SLIDE 78

Realizing Boolean Functions

In general, suppose that α is a wff whose propositional symbols are included in

A1, . . . , An. We define an n-place Boolean function Bn

α, the Boolean function

realized by α as

Bn

α(X1, . . . , Xn) = the truth value given to α when A1, . . . , An are

given the values X1, . . . , Xn. In other words,

Bn

α(X1, . . . , Xn) = v(α) where v(Ai) = Xi.

Note that the function Bn

α is determined by both the formula α and the choice of

  • n. In particular, α does not need to include all the symbols in A1, . . . , An.

22-c

slide-79
SLIDE 79

Examples

  • In

i = Bn Ai

  • N = B1

¬A1

  • K = B2

A1∧A2

  • A = B2

A1∨A2

  • C = B2

A1→A2

  • E = B2

A1↔A2

23

slide-80
SLIDE 80

Examples

  • In

i = Bn Ai

  • N = B1

¬A1

  • K = B2

A1∧A2

  • A = B2

A1∨A2

  • C = B2

A1→A2

  • E = B2

A1↔A2

From these functions, we can construct others by composition.

B2

¬A1∨¬A2(X1, X2) = A(N(I2 1(X1, X2)), N(I2 2(X1, X2)))

23-a

slide-81
SLIDE 81

Examples

  • In

i = Bn Ai

  • N = B1

¬A1

  • K = B2

A1∧A2

  • A = B2

A1∨A2

  • C = B2

A1→A2

  • E = B2

A1↔A2

From these functions, we can construct others by composition.

B2

¬A1∨¬A2(X1, X2) = A(N(I2 1(X1, X2)), N(I2 2(X1, X2)))

Claim: Every Boolean function can be obtained as a composition of I, N,

K, A, C, and E.

We will explain why this is true shortly.

23-b

slide-82
SLIDE 82

Formulas and the Boolean Functions they Realize

Theorem Let α and β be wffs whose sentence symbols are among A1, . . . , An. (a) α |

= β iff Bn

α(

X) ≤ Bn

β(

X) for all X ∈ {F, T}n.

(b) α is tautologically equivalent to β iff Bn

α = Bn β .

(c) |

= β iff the range of Bn

β = {T}.

24

slide-83
SLIDE 83

Formulas and the Boolean Functions they Realize

Theorem Let α and β be wffs whose sentence symbols are among A1, . . . , An. (a) α |

= β iff Bn

α(

X) ≤ Bn

β(

X) for all X ∈ {F, T}n.

(b) α is tautologically equivalent to β iff Bn

α = Bn β .

(c) |

= β iff the range of Bn

β = {T}.

Proof (a)

α | = β

iff every truth assignment satisfying α also satisfies β iff for every truth assignment v, v(α) = T implies v(β) = T iff for all n-tuples

X, Bn

α(

X) = T implies Bn

β(

X) = T

iff for all n-tuples

X, Bn

α(

X) ≤ Bn

β(

X)

(b) Follows from (a) and X = Y iff X ≤ Y and Y ≤ X. (c) Follows from definition of tautology.

24-a

slide-84
SLIDE 84

Formulas and the Boolean Functions they Realize

Theorem Let α and β be wffs whose sentence symbols are among A1, . . . , An. (a) α |

= β iff Bn

α(

X) ≤ Bn

β(

X) for all X ∈ {F, T}n.

(b) α is tautologically equivalent to β iff Bn

α = Bn β .

(c) |

= β iff the range of Bn

β = {T}.

Proof (a)

α | = β

iff every truth assignment satisfying α also satisfies β iff for every truth assignment v, v(α) = T implies v(β) = T iff for all n-tuples

X, Bn

α(

X) = T implies Bn

β(

X) = T

iff for all n-tuples

X, Bn

α(

X) ≤ Bn

β(

X)

(b) Follows from (a) and X = Y iff X ≤ Y and Y ≤ X. (c) Follows from definition of tautology.

By shifting our focus from formulas to Boolean functions, tautologically equivalent wffs are identified.

24-b

slide-85
SLIDE 85

Completeness of Propositional Connectives

Theorem (Post 1921) Let G be an n-place Boolean function, n ≥ 1. There exists a wff α such that

G = Bn

α, i.e., such that α realizes the function G.

25

slide-86
SLIDE 86

Completeness of Propositional Connectives

Theorem (Post 1921) Let G be an n-place Boolean function, n ≥ 1. There exists a wff α such that

G = Bn

α, i.e., such that α realizes the function G.

Proof If the range of G is just {F}, then let α = A1 ∧ ¬A1. Clearly, Bn

α = G.

Otherwise, G = T somewhere. Suppose there are k points where G = T:

G(X11, X12, . . . , X1n) = T G(X21, X22, . . . , X2n) = T

. . .

G(Xk1, Xk2, . . . , Xkn) = T

Let

βij =

  • Aj

if Xij = T

¬Aj

if Xij = F

γi = βi1 ∧ . . . ∧ βin α = γ1 ∨ γ2 ∨ . . . ∨ γk

Then α realizes G

25-a

slide-87
SLIDE 87

Completeness of Propositional Connectives

Proof, continued We know that Bn

α(

X) = v(α) where v(Ai) = Xi.

Since α = γ1 ∨ γ2 ∨ . . . ∨ γk, it follows that Bn

α(

X) = max(Bn

γi(

X)).

But by construction, Bn

γi(

X) = T iff X = Xi1, . . . , Xin.

Thus Bn

α(

X) = T iff X is one of the points where G is T. ✷

26

slide-88
SLIDE 88

Completeness of Propositional Connectives

Proof, continued We know that Bn

α(

X) = v(α) where v(Ai) = Xi.

Since α = γ1 ∨ γ2 ∨ . . . ∨ γk, it follows that Bn

α(

X) = max(Bn

γi(

X)).

But by construction, Bn

γi(

X) = T iff X = Xi1, . . . , Xin.

Thus Bn

α(

X) = T iff X is one of the points where G is T. ✷

This shows that every Boolean function can be realized by a wff. In fact, every Boolean function can be realized by a wff which uses only the connectives

{¬, ∧, ∨}. We say that this set of connectives is complete.

The realizing formula is not unique. The formula built is in so-called disjunctive normal form (DNF). A formula is in DNF if it is a disjunction of formulas, each of which is a conjunction of literals, where a literal is either a propositional symbol or its negation. Thus, a corollary is that for every wff, there exists a tautologically equivalent wff in disjunctive normal form.

26-a

slide-89
SLIDE 89

Completeness of Propositional Connectives

Example Let G be a 3-place Boolean function defined as follows:

G(F, F, F) = F G(F, F, T) = T G(F, T, F) = T G(F, T, T) = F G(T, F, F) = T G(T, F, T) = F G(T, T, F) = F G(T, T, T) = T

27

slide-90
SLIDE 90

Completeness of Propositional Connectives

Example Let G be a 3-place Boolean function defined as follows:

G(F, F, F) = F G(F, F, T) = T G(F, T, F) = T G(F, T, T) = F G(T, F, F) = T G(T, F, T) = F G(T, T, F) = F G(T, T, T) = T

There are four points at which G is true, so a DNF formula which realizes G is

(¬A1∧¬A2∧A3)∨(¬A1∧A2∧¬A3)∨(A1∧¬A2∧¬A3)∨(A1∧A2∧A3).

27-a

slide-91
SLIDE 91

Completeness of Propositional Connectives

Example Let G be a 3-place Boolean function defined as follows:

G(F, F, F) = F G(F, F, T) = T G(F, T, F) = T G(F, T, T) = F G(T, F, F) = T G(T, F, T) = F G(T, T, F) = F G(T, T, T) = T

There are four points at which G is true, so a DNF formula which realizes G is

(¬A1∧¬A2∧A3)∨(¬A1∧A2∧¬A3)∨(A1∧¬A2∧¬A3)∨(A1∧A2∧A3).

Note that another formula which realizes G is A1 ↔ A2 ↔ A3. Thus, adding additional connectives to a complete set may allow a function to be realized more concisely.

27-b

slide-92
SLIDE 92

Completeness of Propositional Connectives

Recall our definition of some basic Boolean functions:

  • In

i = Bn Ai

  • N = B1

¬A1

  • K = B2

A1∧A2

  • A = B2

A1∨A2

Given that {¬, ∧, ∨} is complete, it is not hard to see that any Boolean function can be constructed using only the Boolean functions I, N, K, and A.

28

slide-93
SLIDE 93

Completeness of Propositional Connectives

Recall our definition of some basic Boolean functions:

  • In

i = Bn Ai

  • N = B1

¬A1

  • K = B2

A1∧A2

  • A = B2

A1∨A2

Given that {¬, ∧, ∨} is complete, it is not hard to see that any Boolean function can be constructed using only the Boolean functions I, N, K, and A. In fact, we can do better. It turns out that {¬, ∧} and {¬, ∨} are complete as well.

28-a

slide-94
SLIDE 94

Completeness of Propositional Connectives

Recall our definition of some basic Boolean functions:

  • In

i = Bn Ai

  • N = B1

¬A1

  • K = B2

A1∧A2

  • A = B2

A1∨A2

Given that {¬, ∧, ∨} is complete, it is not hard to see that any Boolean function can be constructed using only the Boolean functions I, N, K, and A. In fact, we can do better. It turns out that {¬, ∧} and {¬, ∨} are complete as well. Why?

28-b

slide-95
SLIDE 95

Completeness of Propositional Connectives

Recall our definition of some basic Boolean functions:

  • In

i = Bn Ai

  • N = B1

¬A1

  • K = B2

A1∧A2

  • A = B2

A1∨A2

Given that {¬, ∧, ∨} is complete, it is not hard to see that any Boolean function can be constructed using only the Boolean functions I, N, K, and A. In fact, we can do better. It turns out that {¬, ∧} and {¬, ∨} are complete as well. Why?

α ∨ β ↔ ¬(¬α ∧ ¬β) α ∧ β ↔ ¬(¬α ∨ ¬β)

Using these identities, the completeness can be easily proved by induction.

28-c

slide-96
SLIDE 96

Incompleteness of Connectives

To prove that some set of connectives is incomplete, we find a property that is true of all wffs built using those connectives, but that is not true for some Boolean function.

29

slide-97
SLIDE 97

Incompleteness of Connectives

To prove that some set of connectives is incomplete, we find a property that is true of all wffs built using those connectives, but that is not true for some Boolean function. Example

{∧, →} is not complete.

29-a

slide-98
SLIDE 98

Incompleteness of Connectives

To prove that some set of connectives is incomplete, we find a property that is true of all wffs built using those connectives, but that is not true for some Boolean function. Example

{∧, →} is not complete.

Proof Let α be a wff which uses only these connectives, and let v be a truth assignment such that v(Ai) = T for all Ai. We prove by induction that v(α) = T.

29-b

slide-99
SLIDE 99

Incompleteness of Connectives

To prove that some set of connectives is incomplete, we find a property that is true of all wffs built using those connectives, but that is not true for some Boolean function. Example

{∧, →} is not complete.

Proof Let α be a wff which uses only these connectives, and let v be a truth assignment such that v(Ai) = T for all Ai. We prove by induction that v(α) = T. Base Case

v(Ai) = v(Ai) = T.

29-c

slide-100
SLIDE 100

Incompleteness of Connectives

To prove that some set of connectives is incomplete, we find a property that is true of all wffs built using those connectives, but that is not true for some Boolean function. Example

{∧, →} is not complete.

Proof Let α be a wff which uses only these connectives, and let v be a truth assignment such that v(Ai) = T for all Ai. We prove by induction that v(α) = T. Base Case

v(Ai) = v(Ai) = T.

Inductive Case

v(β ∧ γ) = min(v(β), v(γ)) = min(T, T) = T v(β → γ) = max(T − v(α), v(β)) = max(F, T) = T

29-d

slide-101
SLIDE 101

Incompleteness of Connectives

To prove that some set of connectives is incomplete, we find a property that is true of all wffs built using those connectives, but that is not true for some Boolean function. Example

{∧, →} is not complete.

Proof Let α be a wff which uses only these connectives, and let v be a truth assignment such that v(Ai) = T for all Ai. We prove by induction that v(α) = T. Base Case

v(Ai) = v(Ai) = T.

Inductive Case

v(β ∧ γ) = min(v(β), v(γ)) = min(T, T) = T v(β → γ) = max(T − v(α), v(β)) = max(F, T) = T

Thus, v(α) = T for all wffs α built from {∧, →}. But v(¬A1) = F, so there is no such formula tautologically equivalent to ¬A1.

29-e

slide-102
SLIDE 102

Other Propositional Connectives

For each n, there are 22n different n-place Boolean functions B(X1, . . . , Xn) Why?

30

slide-103
SLIDE 103

Other Propositional Connectives

For each n, there are 22n different n-place Boolean functions B(X1, . . . , Xn) Why? There are 2n different input points and 2 possible output values for each input

  • point. 22n

is also the number of possible n-ary propositional connectives.

30-a

slide-104
SLIDE 104

Other Propositional Connectives

For each n, there are 22n different n-place Boolean functions B(X1, . . . , Xn) Why? There are 2n different input points and 2 possible output values for each input

  • point. 22n

is also the number of possible n-ary propositional connectives. 0-ary connectives There are two 0-place Boolean functions: the constants F and T. We can construct corresponding 0-ary connectives ⊥ and ⊤ with the meaning that

v(⊥) = F and v(⊤) = T regardless of the truth assignment v.

30-b

slide-105
SLIDE 105

Other Propositional Connectives

For each n, there are 22n different n-place Boolean functions B(X1, . . . , Xn) Why? There are 2n different input points and 2 possible output values for each input

  • point. 22n

is also the number of possible n-ary propositional connectives. 0-ary connectives There are two 0-place Boolean functions: the constants F and T. We can construct corresponding 0-ary connectives ⊥ and ⊤ with the meaning that

v(⊥) = F and v(⊤) = T regardless of the truth assignment v.

Unary connectives There are four 1-place functions, but these include the two constant functions mentioned above and the identity function. Thus the only additional connective of interest is negation: ¬.

30-c

slide-106
SLIDE 106

Other Propositional Connectives

For each n, there are 22n different n-place Boolean functions B(X1, . . . , Xn) Why? There are 2n different input points and 2 possible output values for each input

  • point. 22n

is also the number of possible n-ary propositional connectives. 0-ary connectives There are two 0-place Boolean functions: the constants F and T. We can construct corresponding 0-ary connectives ⊥ and ⊤ with the meaning that

v(⊥) = F and v(⊤) = T regardless of the truth assignment v.

Unary connectives There are four 1-place functions, but these include the two constant functions mentioned above and the identity function. Thus the only additional connective of interest is negation: ¬. Binary connectives There are sixteen 2-place Boolean functions. They are cataloged in the following

  • table. Note that the first six correspond to 0-ary and unary connectives.

30-d

slide-107
SLIDE 107

Symbol Equivalent Description

constant F

constant T

A

projection of first argument

B

projection of second argument

¬A

negation of first argument

¬B

negation of second argument

∧ A ∧ B

and

∨ A ∨ B

  • r

→ A → B

conditional

↔ A ↔ B

bi-conditional

← B → A

reverse conditional

⊕ (A ∧ ¬B) ∨ (¬A ∧ B)

exclusive or

↓ ¬(A ∨ B)

nor (or Nicod stroke)

| ¬(A ∧ B)

nand (or Sheffer stroke)

< ¬A ∧ B

less than

> A ∧ ¬B

greater than

31

slide-108
SLIDE 108

Compactness

Recall that a wff α is satisfiable if there exists a truth assignment v such that

v(α) = T.

32

slide-109
SLIDE 109

Compactness

Recall that a wff α is satisfiable if there exists a truth assignment v such that

v(α) = T.

A set Σ of wffs is satisfiable if there exists a truth assignment v such that

v(α) = T for each α ∈ Σ.

32-a

slide-110
SLIDE 110

Compactness

Recall that a wff α is satisfiable if there exists a truth assignment v such that

v(α) = T.

A set Σ of wffs is satisfiable if there exists a truth assignment v such that

v(α) = T for each α ∈ Σ.

A set Σ is finitely satisfiable iff every finite subset of Σ is satisfiable.

32-b

slide-111
SLIDE 111

Compactness

Recall that a wff α is satisfiable if there exists a truth assignment v such that

v(α) = T.

A set Σ of wffs is satisfiable if there exists a truth assignment v such that

v(α) = T for each α ∈ Σ.

A set Σ is finitely satisfiable iff every finite subset of Σ is satisfiable. Compactness Theorem A set of wffs is satisfiable iff it is finitely satisfiable.

32-c

slide-112
SLIDE 112

Compactness

Recall that a wff α is satisfiable if there exists a truth assignment v such that

v(α) = T.

A set Σ of wffs is satisfiable if there exists a truth assignment v such that

v(α) = T for each α ∈ Σ.

A set Σ is finitely satisfiable iff every finite subset of Σ is satisfiable. Compactness Theorem A set of wffs is satisfiable iff it is finitely satisfiable. Proof The only if direction is trivial since any subset of a satisfiable set is clearly satisfiable.

32-d

slide-113
SLIDE 113

Compactness

Recall that a wff α is satisfiable if there exists a truth assignment v such that

v(α) = T.

A set Σ of wffs is satisfiable if there exists a truth assignment v such that

v(α) = T for each α ∈ Σ.

A set Σ is finitely satisfiable iff every finite subset of Σ is satisfiable. Compactness Theorem A set of wffs is satisfiable iff it is finitely satisfiable. Proof The only if direction is trivial since any subset of a satisfiable set is clearly satisfiable. To prove the other direction, assume that Σ is a set which is finitely satisfiable. We must show that Σ is satisfiable.

32-e

slide-114
SLIDE 114

Compactness

Let Σ be finitely satisfiable. We extend Σ to form a maximal finitely satisfiable set

∆ as follows.

Let α1, . . . , αn, . . . be a fixed enumeration of all wffs. Why is this possible?

33

slide-115
SLIDE 115

Compactness

Let Σ be finitely satisfiable. We extend Σ to form a maximal finitely satisfiable set

∆ as follows.

Let α1, . . . , αn, . . . be a fixed enumeration of all wffs. Why is this possible? The set of all sequences of a countable set is countable.

33-a

slide-116
SLIDE 116

Compactness

Let Σ be finitely satisfiable. We extend Σ to form a maximal finitely satisfiable set

∆ as follows.

Let α1, . . . , αn, . . . be a fixed enumeration of all wffs. Why is this possible? The set of all sequences of a countable set is countable. Then, let

∆0 = Σ, ∆n+1 =

  • ∆n ∪ {αn+1}

if this is finitely satisfiable,

∆n ∪ {¬αn+1}

  • therwise.

33-b

slide-117
SLIDE 117

Compactness

Let Σ be finitely satisfiable. We extend Σ to form a maximal finitely satisfiable set

∆ as follows.

Let α1, . . . , αn, . . . be a fixed enumeration of all wffs. Why is this possible? The set of all sequences of a countable set is countable. Then, let

∆0 = Σ, ∆n+1 =

  • ∆n ∪ {αn+1}

if this is finitely satisfiable,

∆n ∪ {¬αn+1}

  • therwise.

It is not hard to show that each ∆n is finitely satisfiable. Let ∆ =

n ∆n. It is then clear that

  • 1. Σ ⊆ ∆
  • 2. α ∈ ∆ or ¬α ∈ ∆ for any wff α, and
  • 3. ∆ is finitely satisfiable.

33-c

slide-118
SLIDE 118

Compactness

Now we show that ∆ is satisfiable (and thus Σ ⊆ ∆ is also satisfiable). Define a truth assignment v as follows. For each propositional symbol Ai,

v(Ai) = T iff Ai ∈ ∆.

We claim that for any wff α, v satisfies α iff α ∈ ∆. The proof is by induction on well-formed formulas.

34

slide-119
SLIDE 119

Compactness

Now we show that ∆ is satisfiable (and thus Σ ⊆ ∆ is also satisfiable). Define a truth assignment v as follows. For each propositional symbol Ai,

v(Ai) = T iff Ai ∈ ∆.

We claim that for any wff α, v satisfies α iff α ∈ ∆. The proof is by induction on well-formed formulas. Base Case Follows directly from the definition of v.

34-a

slide-120
SLIDE 120

Compactness

Now we show that ∆ is satisfiable (and thus Σ ⊆ ∆ is also satisfiable). Define a truth assignment v as follows. For each propositional symbol Ai,

v(Ai) = T iff Ai ∈ ∆.

We claim that for any wff α, v satisfies α iff α ∈ ∆. The proof is by induction on well-formed formulas. Base Case Follows directly from the definition of v. Induction Case We will just consider one case. Suppose α = β ∧ γ. Then

v(α) = T iff both v(β) = T and v(γ) = T iff both β ∈ ∆ and γ ∈ ∆.

Now, if both β and γ are in ∆, then since {β, γ, ¬α} is not satisfiable, we must have α ∈ ∆. Similarly, if one of β or γ is not in ∆, then its negation must be in ∆, so α ∈ ∆.✷

34-b

slide-121
SLIDE 121

Compactness

Corollary If Σ |

= α then there is a finite Σ0 ⊆ Σ such that Σ0 | = α.

Proof Suppose that Σ0 |

= α for every finite Σ0 ⊆ Σ.

Then, Σ0 ∪ {¬α} is satisfiable for every finite Σ0 ⊆ Σ. So, by compactness, Σ ∪ {¬α} is satisfiable which contradicts the fact that

Σ | = α. ✷

35