124
Motivation Basic Modal Logic Logic Engineering 10—Modal Logic I CS 5209: Foundation in Logic and AI Martin Henz and Aquinas Hobor March 25, 2010 Generated on Thursday 25 th March, 2010, 16:22 CS 5209: Foundation in Logic and AI 10—Modal Logic I 1

10---Modal Logic I

  • Upload
    others

  • View
    11

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

10—Modal Logic I

CS 5209: Foundation in Logic and AI

Martin Henz and Aquinas Hobor

March 25, 2010

Generated on Thursday 25th March, 2010, 16:22

CS 5209: Foundation in Logic and AI 10—Modal Logic I 1

Page 2: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

1 Motivation

2 Basic Modal Logic

3 Logic Engineering

CS 5209: Foundation in Logic and AI 10—Modal Logic I 2

Page 3: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

1 Motivation

2 Basic Modal Logic

3 Logic Engineering

CS 5209: Foundation in Logic and AI 10—Modal Logic I 3

Page 4: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Necessity

You are crime investigator and consider different suspects.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 4

Page 5: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Necessity

You are crime investigator and consider different suspects.Maybe the cook did it with a knife?

CS 5209: Foundation in Logic and AI 10—Modal Logic I 5

Page 6: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Necessity

You are crime investigator and consider different suspects.Maybe the cook did it with a knife?Maybe the maid did it with a pistol?

CS 5209: Foundation in Logic and AI 10—Modal Logic I 6

Page 7: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Necessity

You are crime investigator and consider different suspects.Maybe the cook did it with a knife?Maybe the maid did it with a pistol?

But: “The victim Ms Smith made the call before she waskilled.” is necessarily true.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 7

Page 8: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Necessity

You are crime investigator and consider different suspects.Maybe the cook did it with a knife?Maybe the maid did it with a pistol?

But: “The victim Ms Smith made the call before she waskilled.” is necessarily true.

“Necessarily” means in all possible scenarios (worlds)under consideration.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 8

Page 9: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Notions of Truth

Often, it is not enough to distinguish between “true” and“false”.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 9

Page 10: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Notions of Truth

Often, it is not enough to distinguish between “true” and“false”.We need to consider modalities if truth, such as:

necessity (“in all possible scenarios”)morality/law (“in acceptable/legal scenarios”)time (“forever in the future”)

CS 5209: Foundation in Logic and AI 10—Modal Logic I 10

Page 11: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Notions of Truth

Often, it is not enough to distinguish between “true” and“false”.We need to consider modalities if truth, such as:

necessity (“in all possible scenarios”)morality/law (“in acceptable/legal scenarios”)time (“forever in the future”)

Modal logic constructs a framework using which modalitiescan be formalized and reasoning methods can beestablished.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 11

Page 12: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

1 Motivation

2 Basic Modal LogicSyntaxSemanticsEquivalences

3 Logic Engineering

CS 5209: Foundation in Logic and AI 10—Modal Logic I 12

Page 13: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Syntax of Basic Modal Logic

φ ::= ⊤ | ⊥ | p | (¬φ) | (φ ∧ φ)

| (φ ∨ φ) | (φ→ φ)

| (φ↔ φ)

| (�φ) | (♦φ)

CS 5209: Foundation in Logic and AI 10—Modal Logic I 13

Page 14: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Pronunciation and Examples

Pronunciation

If we want to keep the meaning open, we simply say “box” and“diamond”.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 14

Page 15: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Pronunciation and Examples

Pronunciation

If we want to keep the meaning open, we simply say “box” and“diamond”.If we want to appeal to our intuition, we may say “necessarily”and “possibly” (or “forever in the future” and “sometime in thefuture”)

CS 5209: Foundation in Logic and AI 10—Modal Logic I 15

Page 16: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Pronunciation and Examples

Pronunciation

If we want to keep the meaning open, we simply say “box” and“diamond”.If we want to appeal to our intuition, we may say “necessarily”and “possibly” (or “forever in the future” and “sometime in thefuture”)

Examples

(p ∧ ♦(p → �¬r))

CS 5209: Foundation in Logic and AI 10—Modal Logic I 16

Page 17: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Pronunciation and Examples

Pronunciation

If we want to keep the meaning open, we simply say “box” and“diamond”.If we want to appeal to our intuition, we may say “necessarily”and “possibly” (or “forever in the future” and “sometime in thefuture”)

Examples

(p ∧ ♦(p → �¬r))

�((♦q ∧ ¬r) → �p)

CS 5209: Foundation in Logic and AI 10—Modal Logic I 17

Page 18: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Kripke Models

Definition

A model M of basic modal logic is specified by three things:

CS 5209: Foundation in Logic and AI 10—Modal Logic I 18

Page 19: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Kripke Models

Definition

A model M of basic modal logic is specified by three things:1 A set W , whose elements are called worlds;

CS 5209: Foundation in Logic and AI 10—Modal Logic I 19

Page 20: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Kripke Models

Definition

A model M of basic modal logic is specified by three things:1 A set W , whose elements are called worlds;2 A relation R on W , meaning R ⊆ W × W , called the

accessibility relation;

CS 5209: Foundation in Logic and AI 10—Modal Logic I 20

Page 21: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Kripke Models

Definition

A model M of basic modal logic is specified by three things:1 A set W , whose elements are called worlds;2 A relation R on W , meaning R ⊆ W × W , called the

accessibility relation;3 A function L : W → P(Atoms), called the labeling function.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 21

Page 22: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Who is Kripke?

How do I know I am not dreaming? Kripke asked himself thisquestion in 1952, at the age of 12.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 22

Page 23: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Who is Kripke?

How do I know I am not dreaming? Kripke asked himself thisquestion in 1952, at the age of 12. His father toldhim about the philosopher Descartes.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 23

Page 24: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Who is Kripke?

How do I know I am not dreaming? Kripke asked himself thisquestion in 1952, at the age of 12. His father toldhim about the philosopher Descartes.

Modal logic at 17 Kripke’s self-studies in philosophy and logicled him to prove a fundamental completenesstheorem on modal logic at the age of 17.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 24

Page 25: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Who is Kripke?

How do I know I am not dreaming? Kripke asked himself thisquestion in 1952, at the age of 12. His father toldhim about the philosopher Descartes.

Modal logic at 17 Kripke’s self-studies in philosophy and logicled him to prove a fundamental completenesstheorem on modal logic at the age of 17.

Bachelor in Mathematics from Harvard is his onlynon-honorary degree

CS 5209: Foundation in Logic and AI 10—Modal Logic I 25

Page 26: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Who is Kripke?

How do I know I am not dreaming? Kripke asked himself thisquestion in 1952, at the age of 12. His father toldhim about the philosopher Descartes.

Modal logic at 17 Kripke’s self-studies in philosophy and logicled him to prove a fundamental completenesstheorem on modal logic at the age of 17.

Bachelor in Mathematics from Harvard is his onlynon-honorary degree

At Princeton Kripke taught philosophy from 1977 onwards.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 26

Page 27: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Who is Kripke?

How do I know I am not dreaming? Kripke asked himself thisquestion in 1952, at the age of 12. His father toldhim about the philosopher Descartes.

Modal logic at 17 Kripke’s self-studies in philosophy and logicled him to prove a fundamental completenesstheorem on modal logic at the age of 17.

Bachelor in Mathematics from Harvard is his onlynon-honorary degree

At Princeton Kripke taught philosophy from 1977 onwards.

Contributions include modal logic, naming, belief, truth, themeaning of “I”

CS 5209: Foundation in Logic and AI 10—Modal Logic I 27

Page 28: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Example

W = {x1, x2, x3, x4, x5, x6}R = {(x1, x2), (x1, x3), (x2, x2), (x2, x3), (x3, x2), (x4, x5), (x5, x4), (x5, x6)}L = {(x1, {q}), (x2, {p,q}), (x3, {p}), (x4, {q}), (x5, {}), (x6, {p})}

pq

p

q

p, q

x1

x2

x3

x4

x5

x6

CS 5209: Foundation in Logic and AI 10—Modal Logic I 28

Page 29: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

CS 5209: Foundation in Logic and AI 10—Modal Logic I 29

Page 30: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

x ⊤

CS 5209: Foundation in Logic and AI 10—Modal Logic I 30

Page 31: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

x ⊤x 6 ⊥

CS 5209: Foundation in Logic and AI 10—Modal Logic I 31

Page 32: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

x ⊤x 6 ⊥x p iff p ∈ L(x)

CS 5209: Foundation in Logic and AI 10—Modal Logic I 32

Page 33: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

x ⊤x 6 ⊥x p iff p ∈ L(x)

x ¬φ iff x 6 φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 33

Page 34: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

x ⊤x 6 ⊥x p iff p ∈ L(x)

x ¬φ iff x 6 φ

x φ ∧ ψ iff x φ and x ψ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 34

Page 35: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

x ⊤x 6 ⊥x p iff p ∈ L(x)

x ¬φ iff x 6 φ

x φ ∧ ψ iff x φ and x ψ

x φ ∨ ψ iff x φ or x ψ

...

CS 5209: Foundation in Logic and AI 10—Modal Logic I 35

Page 36: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition (continued)

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

...

x φ→ ψ iff x ψ, whenever x φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 36

Page 37: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition (continued)

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

...

x φ→ ψ iff x ψ, whenever x φ

x φ↔ ψ iff (x φ iff x ψ)

CS 5209: Foundation in Logic and AI 10—Modal Logic I 37

Page 38: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition (continued)

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

...

x φ→ ψ iff x ψ, whenever x φ

x φ↔ ψ iff (x φ iff x ψ)

x �φ iff for each y ∈ W with R(x , y), we have y φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 38

Page 39: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

When is a formula true in a possible world?

Definition (continued)

Let M = (W ,R,L), x ∈ W , and φ a formula in basic modallogic. We define x φ via structural induction:

...

x φ→ ψ iff x ψ, whenever x φ

x φ↔ ψ iff (x φ iff x ψ)

x �φ iff for each y ∈ W with R(x , y), we have y φ

x ♦φ iff there is a y ∈ W such that R(x , y) and y φ.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 39

Page 40: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Example

pq

p

q

p, q

x1

x2

x3

x4

x5

x6

CS 5209: Foundation in Logic and AI 10—Modal Logic I 40

Page 41: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Example

pq

p

q

p, q

x1

x2

x3

x4

x5

x6

x1 q

CS 5209: Foundation in Logic and AI 10—Modal Logic I 41

Page 42: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Example

pq

p

q

p, q

x1

x2

x3

x4

x5

x6

x1 q

x1 ♦q, x1 6 �q

CS 5209: Foundation in Logic and AI 10—Modal Logic I 42

Page 43: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Example

pq

p

q

p, q

x1

x2

x3

x4

x5

x6

x1 q

x1 ♦q, x1 6 �q

x5 6 �p, x5 6 �q, x5 6 �p ∨ �q, x5 �(p ∨ q)

CS 5209: Foundation in Logic and AI 10—Modal Logic I 43

Page 44: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Example

pq

p

q

p, q

x1

x2

x3

x4

x5

x6

x1 q

x1 ♦q, x1 6 �q

x5 6 �p, x5 6 �q, x5 6 �p ∨ �q, x5 �(p ∨ q)

x6 �φ holds for all φ, but x6 6 ♦φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 44

Page 45: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Formula Schemes

Example

We said x6 �φ holds for all φ, but x6 6 ♦φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 45

Page 46: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Formula Schemes

Example

We said x6 �φ holds for all φ, but x6 6 ♦φ

Notation

Greek letters denote formulas, and are not propositional atoms.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 46

Page 47: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Formula Schemes

Example

We said x6 �φ holds for all φ, but x6 6 ♦φ

Notation

Greek letters denote formulas, and are not propositional atoms.

Formula schemes

Terms where Greek letters appear instead of propositionalatoms are called formula schemes.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 47

Page 48: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Entailment and Equivalence

Definition

A set of formulas Γ entails a formula ψ of basic modal logic if, inany world x of any model M = (W ,R,L), whe have x ψ

whenever x φ for all φ ∈ Γ. We say Γ entails ψ and writeΓ |= ψ.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 48

Page 49: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Entailment and Equivalence

Definition

A set of formulas Γ entails a formula ψ of basic modal logic if, inany world x of any model M = (W ,R,L), whe have x ψ

whenever x φ for all φ ∈ Γ. We say Γ entails ψ and writeΓ |= ψ.

Equivalence

We write φ ≡ ψ if φ |= ψ and ψ |= φ.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 49

Page 50: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Some Equivalences

De Morgan rules: ¬�φ ≡ ♦¬φ, ¬♦φ ≡ �¬φ.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 50

Page 51: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Some Equivalences

De Morgan rules: ¬�φ ≡ ♦¬φ, ¬♦φ ≡ �¬φ.

Distributivity of � over ∧:

�(φ ∧ ψ) ≡ �φ ∧ �ψ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 51

Page 52: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Some Equivalences

De Morgan rules: ¬�φ ≡ ♦¬φ, ¬♦φ ≡ �¬φ.

Distributivity of � over ∧:

�(φ ∧ ψ) ≡ �φ ∧ �ψ

Distributivity of ♦ over ∨:

♦(φ ∨ ψ) ≡ ♦φ ∨ ♦ψ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 52

Page 53: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Some Equivalences

De Morgan rules: ¬�φ ≡ ♦¬φ, ¬♦φ ≡ �¬φ.

Distributivity of � over ∧:

�(φ ∧ ψ) ≡ �φ ∧ �ψ

Distributivity of ♦ over ∨:

♦(φ ∨ ψ) ≡ ♦φ ∨ ♦ψ

�⊤ ≡ ⊤, ♦⊥ ≡ ⊥

CS 5209: Foundation in Logic and AI 10—Modal Logic I 53

Page 54: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Validity

Definition

A formula φ is valid if it is true in every world of every model, i.e.iff |= φ holds.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 54

Page 55: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Examples of Valid Formulas

All valid formulas of propositional logic

CS 5209: Foundation in Logic and AI 10—Modal Logic I 55

Page 56: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Examples of Valid Formulas

All valid formulas of propositional logic

¬�φ↔ ♦¬φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 56

Page 57: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Examples of Valid Formulas

All valid formulas of propositional logic

¬�φ↔ ♦¬φ�(φ ∧ ψ) ↔ �φ ∧ �ψ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 57

Page 58: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Examples of Valid Formulas

All valid formulas of propositional logic

¬�φ↔ ♦¬φ�(φ ∧ ψ) ↔ �φ ∧ �ψ

♦(φ ∨ ψ) ↔ ♦φ ∨ ♦ψ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 58

Page 59: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

SyntaxSemanticsEquivalences

Examples of Valid Formulas

All valid formulas of propositional logic

¬�φ↔ ♦¬φ�(φ ∧ ψ) ↔ �φ ∧ �ψ

♦(φ ∨ ψ) ↔ ♦φ ∨ ♦ψ

Formula K : �(φ→ ψ) ∧ �φ→ �ψ.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 59

Page 60: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

1 Motivation

2 Basic Modal Logic

3 Logic EngineeringValid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

CS 5209: Foundation in Logic and AI 10—Modal Logic I 60

Page 61: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

In a particular context �φ could mean:

CS 5209: Foundation in Logic and AI 10—Modal Logic I 61

Page 62: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

In a particular context �φ could mean:

It is necessarily true that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 62

Page 63: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

In a particular context �φ could mean:

It is necessarily true that φ

It will always be true that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 63

Page 64: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

In a particular context �φ could mean:

It is necessarily true that φ

It will always be true that φ

It ought to be that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 64

Page 65: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

In a particular context �φ could mean:

It is necessarily true that φ

It will always be true that φ

It ought to be that φ

Agent Q believes that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 65

Page 66: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

In a particular context �φ could mean:

It is necessarily true that φ

It will always be true that φ

It ought to be that φ

Agent Q believes that φ

Agent Q knows that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 66

Page 67: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

In a particular context �φ could mean:

It is necessarily true that φ

It will always be true that φ

It ought to be that φ

Agent Q believes that φ

Agent Q knows that φ

After any execution of program P, φ holds.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 67

Page 68: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

In a particular context �φ could mean:

It is necessarily true that φ

It will always be true that φ

It ought to be that φ

Agent Q believes that φ

Agent Q knows that φ

After any execution of program P, φ holds.

Since ♦φ ≡ ¬�¬φ, we can infer the meaning of ♦ in eachcontext.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 68

Page 69: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 69

Page 70: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 70

Page 71: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 71

Page 72: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 72

Page 73: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φIt ought to be that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 73

Page 74: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φIt ought to be that φ It is permitted to be that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 74

Page 75: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φIt ought to be that φ It is permitted to be that φAgent Q believes that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 75

Page 76: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φIt ought to be that φ It is permitted to be that φAgent Q believes that φ φ is consistent with Q’s beliefs

CS 5209: Foundation in Logic and AI 10—Modal Logic I 76

Page 77: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φIt ought to be that φ It is permitted to be that φAgent Q believes that φ φ is consistent with Q’s beliefsAgent Q knows that φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 77

Page 78: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φIt ought to be that φ It is permitted to be that φAgent Q believes that φ φ is consistent with Q’s beliefsAgent Q knows that φ For all Q knows, φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 78

Page 79: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φIt ought to be that φ It is permitted to be that φAgent Q believes that φ φ is consistent with Q’s beliefsAgent Q knows that φ For all Q knows, φAfter any run of P, φ holds.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 79

Page 80: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

A Range of Modalities

From the meaning of �φ, we can conclude the meaning of ♦φ,since ♦φ ≡ ¬�¬φ:�φ ♦φ

It is necessarily true that φ It is possibly true that φIt will always be true that φ Sometime in the future φIt ought to be that φ It is permitted to be that φAgent Q believes that φ φ is consistent with Q’s beliefsAgent Q knows that φ For all Q knows, φAfter any run of P, φ holds. After some run of P, φ holds

CS 5209: Foundation in Logic and AI 10—Modal Logic I 80

Page 81: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Formula Schemes that hold wrt some Modalities

�φ �φ→φ

�φ→

��φ

♦φ→

�♦φ

♦⊤ �φ→

♦φ

�φ∨�

¬φ

�(φ→ψ)

∧�φ→

�ψ

♦φ∧ ♦ψ

→♦(φ

∧ ψ)

It is necessary that φ√ √ √ √ √ × √ ×

It will always be that φ × √ × × × × √ ×It ought to be that φ × × × √ √ × √ ×Agent Q believes that φ × √ √ √ √ × √ ×Agent Q knows that φ

√ √ √ √ √ × √ ×After running P, φ × × × × × × √ ×

CS 5209: Foundation in Logic and AI 10—Modal Logic I 81

Page 82: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Modalities lead to Interpretations of R�φ R(x , y)

It is necessarily true that φ y is possible world according to info at x

It will always be true that φ y is a future world of x

It ought to be that φ y is an acceptable world according to theinformation at x

Agent Q believes that φ y could be the actual world according toQ’s beliefs at x

Agent Q knows that φ y could be the actual world according toQ’s knowledge at x

After any execution of P, φholds

y is a possible resulting state after execu-tion of P at x

CS 5209: Foundation in Logic and AI 10—Modal Logic I 82

Page 83: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 83

Page 84: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).symmetric: for every x , y ∈ W , we have R(x , y) impliesR(y , x).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 84

Page 85: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).symmetric: for every x , y ∈ W , we have R(x , y) impliesR(y , x).serial: for every x there is a y such that R(x , y).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 85

Page 86: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).symmetric: for every x , y ∈ W , we have R(x , y) impliesR(y , x).serial: for every x there is a y such that R(x , y).transitive: for every x , y , z ∈ W , we have R(x , y) andR(y , z) imply R(x , z).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 86

Page 87: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).symmetric: for every x , y ∈ W , we have R(x , y) impliesR(y , x).serial: for every x there is a y such that R(x , y).transitive: for every x , y , z ∈ W , we have R(x , y) andR(y , z) imply R(x , z).Euclidean: for every x , y , z ∈ W with R(x , y) and R(x , z),we have R(y , z).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 87

Page 88: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).symmetric: for every x , y ∈ W , we have R(x , y) impliesR(y , x).serial: for every x there is a y such that R(x , y).transitive: for every x , y , z ∈ W , we have R(x , y) andR(y , z) imply R(x , z).Euclidean: for every x , y , z ∈ W with R(x , y) and R(x , z),we have R(y , z).functional: for each x there is a unique y such that R(x , y).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 88

Page 89: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).symmetric: for every x , y ∈ W , we have R(x , y) impliesR(y , x).serial: for every x there is a y such that R(x , y).transitive: for every x , y , z ∈ W , we have R(x , y) andR(y , z) imply R(x , z).Euclidean: for every x , y , z ∈ W with R(x , y) and R(x , z),we have R(y , z).functional: for each x there is a unique y such that R(x , y).linear: for every x , y , z ∈ W with R(x , y) and R(x , z), wehave R(y , z) or y = z or R(z, y).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 89

Page 90: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).symmetric: for every x , y ∈ W , we have R(x , y) impliesR(y , x).serial: for every x there is a y such that R(x , y).transitive: for every x , y , z ∈ W , we have R(x , y) andR(y , z) imply R(x , z).Euclidean: for every x , y , z ∈ W with R(x , y) and R(x , z),we have R(y , z).functional: for each x there is a unique y such that R(x , y).linear: for every x , y , z ∈ W with R(x , y) and R(x , z), wehave R(y , z) or y = z or R(z, y).total: for every x , y ∈ W , we have R(x , y) and R(y , x).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 90

Page 91: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Possible Properties of R

reflexive: for every w ∈ W , we have R(x , x).symmetric: for every x , y ∈ W , we have R(x , y) impliesR(y , x).serial: for every x there is a y such that R(x , y).transitive: for every x , y , z ∈ W , we have R(x , y) andR(y , z) imply R(x , z).Euclidean: for every x , y , z ∈ W with R(x , y) and R(x , z),we have R(y , z).functional: for each x there is a unique y such that R(x , y).linear: for every x , y , z ∈ W with R(x , y) and R(x , z), wehave R(y , z) or y = z or R(z, y).total: for every x , y ∈ W , we have R(x , y) and R(y , x).equivalence: reflexive, symmetric and transitive.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 91

Page 92: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Example

Consider the modality in which �φ means“it ought to be that φ”.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 92

Page 93: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Example

Consider the modality in which �φ means“it ought to be that φ”.

Should R be reflexive?

CS 5209: Foundation in Logic and AI 10—Modal Logic I 93

Page 94: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Example

Consider the modality in which �φ means“it ought to be that φ”.

Should R be reflexive?

Should R be serial?

CS 5209: Foundation in Logic and AI 10—Modal Logic I 94

Page 95: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Necessarily true and Reflexivity

Guess

R is reflexive if and only if �φ→ φ is valid.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 95

Page 96: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Motivation

We would like to establish that some formulas holdwhenever R has a particular property.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 96

Page 97: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Motivation

We would like to establish that some formulas holdwhenever R has a particular property.

Ignore L, and only consider the (W ,R) part of a model,called frame.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 97

Page 98: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Motivation

We would like to establish that some formulas holdwhenever R has a particular property.

Ignore L, and only consider the (W ,R) part of a model,called frame.

Establish formula schemes based on properties of frames.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 98

Page 99: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Reflexivity and Transitivity

Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

R is reflexive;

F satisfies �φ→ φ;

F satisfies �p → p for any atom p

CS 5209: Foundation in Logic and AI 10—Modal Logic I 99

Page 100: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Reflexivity and Transitivity

Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

R is reflexive;

F satisfies �φ→ φ;

F satisfies �p → p for any atom p

Theorem 2

The following statements are equivalent:

R is transitive;

F satisfies �φ→ ��φ;

F satisfies �p → ��p for any atom p

CS 5209: Foundation in Logic and AI 10—Modal Logic I 100

Page 101: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

CS 5209: Foundation in Logic and AI 10—Modal Logic I 101

Page 102: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

1 ⇒ 2: Let R be reflexive.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 102

Page 103: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

1 ⇒ 2: Let R be reflexive. Let L be any labeling function;M = (W ,R,L).

CS 5209: Foundation in Logic and AI 10—Modal Logic I 103

Page 104: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

1 ⇒ 2: Let R be reflexive. Let L be any labeling function;M = (W ,R,L). Need to show for any x :x �φ→ φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 104

Page 105: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

1 ⇒ 2: Let R be reflexive. Let L be any labeling function;M = (W ,R,L). Need to show for any x :x �φ→ φ Suppose x �φ.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 105

Page 106: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

1 ⇒ 2: Let R be reflexive. Let L be any labeling function;M = (W ,R,L). Need to show for any x :x �φ→ φ Suppose x �φ.Since R is reflexive, we have x φ.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 106

Page 107: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

1 ⇒ 2: Let R be reflexive. Let L be any labeling function;M = (W ,R,L). Need to show for any x :x �φ→ φ Suppose x �φ.Since R is reflexive, we have x φ.Using the semantics of →: x �φ→ φ

CS 5209: Foundation in Logic and AI 10—Modal Logic I 107

Page 108: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

CS 5209: Foundation in Logic and AI 10—Modal Logic I 108

Page 109: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

2 ⇒ 3: Just set φ to be p

CS 5209: Foundation in Logic and AI 10—Modal Logic I 109

Page 110: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

CS 5209: Foundation in Logic and AI 10—Modal Logic I 110

Page 111: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

3 ⇒ 1: Suppose the frame satisfies �p → p.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 111

Page 112: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

3 ⇒ 1: Suppose the frame satisfies �p → p.Take any world x from W .

CS 5209: Foundation in Logic and AI 10—Modal Logic I 112

Page 113: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

3 ⇒ 1: Suppose the frame satisfies �p → p.Take any world x from W .Choose a labeling function L such that p 6∈ L(x),but p ∈ L(y) for all y with y 6= x

CS 5209: Foundation in Logic and AI 10—Modal Logic I 113

Page 114: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

3 ⇒ 1: Suppose the frame satisfies �p → p.Take any world x from W .Choose a labeling function L such that p 6∈ L(x),but p ∈ L(y) for all y with y 6= xProof by contradiction: Assume (x , x) 6∈ R.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 114

Page 115: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Proof of Theorem 1

Let F = (W ,R) be a frame. The following statements areequivalent:

1 R is reflexive;2 F satisfies �φ→ φ;3 F satisfies �p → p for any atom p

3 ⇒ 1: Suppose the frame satisfies �p → p.Take any world x from W .Choose a labeling function L such that p 6∈ L(x),but p ∈ L(y) for all y with y 6= xProof by contradiction: Assume (x , x) 6∈ R. Thenwe would have x �p, but not x p.Contradiction!

CS 5209: Foundation in Logic and AI 10—Modal Logic I 115

Page 116: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Formula Schemes and Properties of R

name formula scheme property of RT �φ→ φ reflexiveB φ→ �♦φ symmetricD �φ→ ♦φ serial4 �φ→ ��φ transitive5 ♦φ→ �♦φ Euclidean

�φ↔ ♦φ functional�(φ ∧ �φ→ ψ) ∨ �(ψ ∧ �ψ → φ) linear

CS 5209: Foundation in Logic and AI 10—Modal Logic I 116

Page 117: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Which Formula Schemes to Choose?

Definition

Let L be a set of formula schemes and Γ ∪ {ψ} a set offormulas of basic modal logic.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 117

Page 118: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Which Formula Schemes to Choose?

Definition

Let L be a set of formula schemes and Γ ∪ {ψ} a set offormulas of basic modal logic.

A set of formula schemes is said to be closed iff it containsall substitution instances of its elements.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 118

Page 119: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Which Formula Schemes to Choose?

Definition

Let L be a set of formula schemes and Γ ∪ {ψ} a set offormulas of basic modal logic.

A set of formula schemes is said to be closed iff it containsall substitution instances of its elements.

Let Lc be the smallest closed superset of L.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 119

Page 120: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Which Formula Schemes to Choose?

Definition

Let L be a set of formula schemes and Γ ∪ {ψ} a set offormulas of basic modal logic.

A set of formula schemes is said to be closed iff it containsall substitution instances of its elements.

Let Lc be the smallest closed superset of L.

Γ entails ψ in L iff Γ ∪ Lc semantically entails ψ. We sayΓ |=L ψ.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 120

Page 121: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Examples of Modal Logics: K

K is the weakest modal logic, L = ∅.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 121

Page 122: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Examples of Modal Logics: KT45

L = {T ,4,5}

CS 5209: Foundation in Logic and AI 10—Modal Logic I 122

Page 123: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Examples of Modal Logics: KT45

L = {T ,4,5}

Used for reasoning about knowledge.

T: Truth: agent Q only knows true things.

4: Positive introspection: If Q knows something, he knowsthat he knows it.

5: Negative introspection: If Q doesn’t know something, heknows that he doesn’t know it.

CS 5209: Foundation in Logic and AI 10—Modal Logic I 123

Page 124: 10---Modal Logic I

MotivationBasic Modal LogicLogic Engineering

Valid Formulas wrt ModalitiesProperties of RCorrespondence TheoryPreview: Some Modal Logics

Next Week

Examples of Modal Logic

Natural deduction in modal logic

CS 5209: Foundation in Logic and AI 10—Modal Logic I 124