Sie sind auf Seite 1von 125

Motivation Basic Modal Logic Logic Engineering

07Modal Logic
CS 3234: Logic and Formal Systems
Martin Henz and Aquinas Hobor

October 1, 2009

Generated on Thursday 1st October, 2009, 12:55

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic Engineering

Motivation Basic Modal Logic Logic Engineering

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic Engineering

Motivation Basic Modal Logic Logic Engineering

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic Engineering

Necessity

You are crime investigator and consider different suspects.

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic Engineering

Necessity

You are crime investigator and consider different suspects.


Maybe the cook did it with a knife?

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic 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 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic 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 was killed. is necessarily true.

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic 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 was killed. is necessarily true. Necessarily means in all possible scenarios (worlds) under consideration.

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic Engineering

Notions of Truth

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

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic 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 3234: Logic and Formal Systems

07Modal Logic

10

Motivation Basic Modal Logic Logic 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 modalities can be formalized and reasoning methods can be established.

CS 3234: Logic and Formal Systems

07Modal Logic

11

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Motivation Basic Modal Logic Syntax Semantics Equivalences Logic Engineering

CS 3234: Logic and Formal Systems

07Modal Logic

12

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Syntax of Basic Modal Logic

::= | | p | () | ( ) | ( ) | ( ) | ( )

| ( ) | ()

CS 3234: Logic and Formal Systems

07Modal Logic

13

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Pronunciation and Examples


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

CS 3234: Logic and Formal Systems

07Modal Logic

14

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

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 the future)

CS 3234: Logic and Formal Systems

07Modal Logic

15

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

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 the future) Examples (p (p r ))

CS 3234: Logic and Formal Systems

07Modal Logic

16

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

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 the future) Examples (p (p r )) p)
17

((q r )
CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Kripke Models

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

CS 3234: Logic and Formal Systems

07Modal Logic

18

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Kripke Models

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


1

A set W , whose elements are called worlds;

CS 3234: Logic and Formal Systems

07Modal Logic

19

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Kripke Models

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


1 2

A set W , whose elements are called worlds;

A relation R on W , meaning R W W , called the accessibility relation;

CS 3234: Logic and Formal Systems

07Modal Logic

20

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Kripke Models

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


1 2

A set W , whose elements are called worlds;

A relation R on W , meaning R W W , called the accessibility relation; A function L : W P(Atoms), called the labeling function.

CS 3234: Logic and Formal Systems

07Modal Logic

21

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

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

CS 3234: Logic and Formal Systems

07Modal Logic

22

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Who is Kripke?
How do I know I am not dreaming? Kripke asked himself this question in 1952, at the age of 12. His father told him about the philosopher Descartes.

CS 3234: Logic and Formal Systems

07Modal Logic

23

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Who is Kripke?
How do I know I am not dreaming? Kripke asked himself this question in 1952, at the age of 12. His father told him about the philosopher Descartes. Modal logic at 17 Kripkes self-studies in philosophy and logic led him to prove a fundamental completeness theorem on modal logic at the age of 17.

CS 3234: Logic and Formal Systems

07Modal Logic

24

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Who is Kripke?
How do I know I am not dreaming? Kripke asked himself this question in 1952, at the age of 12. His father told him about the philosopher Descartes. Modal logic at 17 Kripkes self-studies in philosophy and logic led him to prove a fundamental completeness theorem on modal logic at the age of 17. Bachelor in Mathematics from Harvard is his only non-honorary degree

CS 3234: Logic and Formal Systems

07Modal Logic

25

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Who is Kripke?
How do I know I am not dreaming? Kripke asked himself this question in 1952, at the age of 12. His father told him about the philosopher Descartes. Modal logic at 17 Kripkes self-studies in philosophy and logic led him to prove a fundamental completeness theorem on modal logic at the age of 17. Bachelor in Mathematics from Harvard is his only non-honorary degree At Princeton Kripke taught philosophy from 1977 onwards.

CS 3234: Logic and Formal Systems

07Modal Logic

26

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Who is Kripke?
How do I know I am not dreaming? Kripke asked himself this question in 1952, at the age of 12. His father told him about the philosopher Descartes. Modal logic at 17 Kripkes self-studies in philosophy and logic led him to prove a fundamental completeness theorem on modal logic at the age of 17. Bachelor in Mathematics from Harvard is his only non-honorary degree At Princeton Kripke taught philosophy from 1977 onwards. Contributions include modal logic, naming, belief, truth, the meaning of I

CS 3234: Logic and Formal Systems

07Modal Logic

27

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Example
W 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})} x2
p, q

= {x1 , x2 , x3 , x4 , x5 , x6 }

x1
q

x3
p

x4
q

x6 x5

CS 3234: Logic and Formal Systems

07Modal Logic

28

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?


Denition Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction:

CS 3234: Logic and Formal Systems

07Modal Logic

29

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?


Denition Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: x

CS 3234: Logic and Formal Systems

07Modal Logic

30

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?


Denition Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: x x

CS 3234: Logic and Formal Systems

07Modal Logic

31

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?


Denition Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: x x x p iff p L(x)

CS 3234: Logic and Formal Systems

07Modal Logic

32

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?


Denition Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: x x x x p iff p L(x) iff x

CS 3234: Logic and Formal Systems

07Modal Logic

33

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?


Denition Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: x x x x x p iff p L(x) iff x iff x and x

CS 3234: Logic and Formal Systems

07Modal Logic

34

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?


Denition Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: x x x x x x ... p iff p L(x) iff x iff x iff x and x or x

CS 3234: Logic and Formal Systems

07Modal Logic

35

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?

Denition (continued) Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: ... x iff x , whenever x

CS 3234: Logic and Formal Systems

07Modal Logic

36

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?

Denition (continued) Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: ... x x iff x , whenever x iff x ) iff (x

CS 3234: Logic and Formal Systems

07Modal Logic

37

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?

Denition (continued) Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: ... x x x iff x , whenever x iff x ) iff (x

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

CS 3234: Logic and Formal Systems

07Modal Logic

38

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

When is a formula true in a possible world?

Denition (continued) Let M = (W , R, L), x W , and a formula in basic modal logic. We dene x via structural induction: ... x x x x iff x , whenever x iff x ) . iff (x

iff there is a y W such that R(x, y) and y

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

CS 3234: Logic and Formal Systems

07Modal Logic

39

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Example
x2
p, q

x1
q

x3
p

x4
q

x6 x5

CS 3234: Logic and Formal Systems

07Modal Logic

40

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Example
x2
p, q

x1
q

x3
p

x4
q

x6 x5
q

x1

CS 3234: Logic and Formal Systems

07Modal Logic

41

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Example
x2
p, q

x1
q

x3
p

x4
q

x6 x5
q q, x1 q

x1 x1

CS 3234: Logic and Formal Systems

07Modal Logic

42

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Example
x2
p, q

x1
q

x3
p

x4
q

x6 x5
q q, x1 p, x5 q q, x5 p q, x5
07Modal Logic

x1 x1 x5

(p q)
43

CS 3234: Logic and Formal Systems

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Example
x2
p, q

x1
q

x3
p

x4
q

x6 x5
q q, x1 p, x5 q q, x5 p q, x5 (p q)
44

x1 x1 x5 x6

holds for all , but x6

CS 3234: Logic and Formal Systems

07Modal Logic

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Formula Schemes

Example We said x6 holds for all , but x6

CS 3234: Logic and Formal Systems

07Modal Logic

45

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Formula Schemes

Example We said x6 holds for all , but x6

Notation Greek letters denote formulas, and are not propositional atoms.

CS 3234: Logic and Formal Systems

07Modal Logic

46

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Formula Schemes

Example We said x6 holds for all , but x6

Notation Greek letters denote formulas, and are not propositional atoms. Formula schemes Terms where Greek letters appear instead of propositional atoms are called formula schemes.

CS 3234: Logic and Formal Systems

07Modal Logic

47

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Entailment and Equivalence

Denition A set of formulas entails a formula of basic modal logic if, in any world x of any model M = (W , R, L), whe have x whenever x for all . We say entails and write |= .

CS 3234: Logic and Formal Systems

07Modal Logic

48

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Entailment and Equivalence

Denition A set of formulas entails a formula of basic modal logic if, in any 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 3234: Logic and Formal Systems

07Modal Logic

49

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Some Equivalences
De Morgan rules: , .

CS 3234: Logic and Formal Systems

07Modal Logic

50

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Some Equivalences
De Morgan rules: , Distributivity of over : ( ) .

CS 3234: Logic and Formal Systems

07Modal Logic

51

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Some Equivalences
De Morgan rules: , Distributivity of over : ( ) Distributivity of over : ( ) .

CS 3234: Logic and Formal Systems

07Modal Logic

52

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Some Equivalences
De Morgan rules: , Distributivity of over : ( ) Distributivity of over : ( ) ,
CS 3234: Logic and Formal Systems 07Modal Logic 53

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Validity

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

CS 3234: Logic and Formal Systems

07Modal Logic

54

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Examples of Valid Formulas

All valid formulas of propositional logic

CS 3234: Logic and Formal Systems

07Modal Logic

55

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Examples of Valid Formulas

All valid formulas of propositional logic

CS 3234: Logic and Formal Systems

07Modal Logic

56

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Examples of Valid Formulas

All valid formulas of propositional logic ( )

CS 3234: Logic and Formal Systems

07Modal Logic

57

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Examples of Valid Formulas

All valid formulas of propositional logic ( )

( )

CS 3234: Logic and Formal Systems

07Modal Logic

58

Motivation Basic Modal Logic Logic Engineering

Syntax Semantics Equivalences

Examples of Valid Formulas

All valid formulas of propositional logic ( ) .

( ) Formula K :

( )

CS 3234: Logic and Formal Systems

07Modal Logic

59

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Motivation Basic Modal Logic Logic Engineering Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

CS 3234: Logic and Formal Systems

07Modal Logic

60

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

A Range of Modalities
In a particular context could mean:

CS 3234: Logic and Formal Systems

07Modal Logic

61

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

A Range of Modalities
In a particular context could mean:

It is necessarily true that

CS 3234: Logic and Formal Systems

07Modal Logic

62

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

63

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

64

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

65

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

66

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

67

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 each context.

CS 3234: Logic and Formal Systems

07Modal Logic

68

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

A Range of Modalities

From the meaning of , we can conclude the meaning of , since : It is necessarily true that

CS 3234: Logic and Formal Systems

07Modal Logic

69

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

70

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

71

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

72

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

73

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

74

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 3234: Logic and Formal Systems

07Modal Logic

75

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 Qs beliefs

CS 3234: Logic and Formal Systems

07Modal Logic

76

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 Qs beliefs Agent Q knows that

CS 3234: Logic and Formal Systems

07Modal Logic

77

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 Qs beliefs Agent Q knows that For all Q knows,

CS 3234: Logic and Formal Systems

07Modal Logic

78

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 Qs beliefs Agent Q knows that For all Q knows, After any run of P, holds.

CS 3234: Logic and Formal Systems

07Modal Logic

79

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 Qs beliefs Agent Q knows that For all Q knows, After any run of P, holds. After some run of P, holds

CS 3234: Logic and Formal Systems

07Modal Logic

80

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Formula Schemes that hold wrt some Modalities


) ( ) (
07Modal Logic 81

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 3234: Logic and Formal Systems

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Modalities lead to Interpretations of R


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 P, holds R(x, y) y is possible world according to info at x y is a future world of x y is an acceptable world according to the information at x y could be the actual world according to Qs beliefs at x y could be the actual world according to Qs knowledge at x y is a possible resulting state after execution of P at x
07Modal Logic 82

CS 3234: Logic and Formal Systems

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x).

CS 3234: Logic and Formal Systems

07Modal Logic

83

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x). symmetric: for every x, y W , we have R(x, y) implies R(y, x).

CS 3234: Logic and Formal Systems

07Modal Logic

84

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x). symmetric: for every x, y W , we have R(x, y) implies R(y, x). serial: for every x there is a y such that R(x, y).

CS 3234: Logic and Formal Systems

07Modal Logic

85

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x). symmetric: for every x, y W , we have R(x, y) implies R(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) and R(y, z) imply R(x, z).

CS 3234: Logic and Formal Systems

07Modal Logic

86

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x). symmetric: for every x, y W , we have R(x, y) implies R(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) and R(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 3234: Logic and Formal Systems

07Modal Logic

87

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x). symmetric: for every x, y W , we have R(x, y) implies R(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) and R(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 3234: Logic and Formal Systems

07Modal Logic

88

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x). symmetric: for every x, y W , we have R(x, y) implies R(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) and R(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), we have R(y, z) or y = z or R(z, y).

CS 3234: Logic and Formal Systems

07Modal Logic

89

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x). symmetric: for every x, y W , we have R(x, y) implies R(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) and R(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), we have 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 3234: Logic and Formal Systems 07Modal Logic 90

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Possible Properties of R
reexive: for every w W , we have R(x, x). symmetric: for every x, y W , we have R(x, y) implies R(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) and R(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), we have 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: reexive, symmetric and transitive.
CS 3234: Logic and Formal Systems 07Modal Logic 91

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Example

Consider the modality in which it ought to be that .

means

CS 3234: Logic and Formal Systems

07Modal Logic

92

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Example

Consider the modality in which it ought to be that . Should R be reexive?

means

CS 3234: Logic and Formal Systems

07Modal Logic

93

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Example

Consider the modality in which it ought to be that . Should R be reexive? Should R be serial?

means

CS 3234: Logic and Formal Systems

07Modal Logic

94

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Necessarily true and Reexivity

Guess R is reexive if and only if

is valid.

CS 3234: Logic and Formal Systems

07Modal Logic

95

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Motivation

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

CS 3234: Logic and Formal Systems

07Modal Logic

96

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Motivation

We would like to establish that some formulas hold whenever R has a particular property. Ignore L, and only consider the (W , R) part of a model, called frame.

CS 3234: Logic and Formal Systems

07Modal Logic

97

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Motivation

We would like to establish that some formulas hold whenever 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 3234: Logic and Formal Systems

07Modal Logic

98

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Reexivity and Transitivity


Theorem 1 Let F = (W , R) be a frame. The following statements are equivalent: R is reexive; F satises F satises ; p p for any atom p

CS 3234: Logic and Formal Systems

07Modal Logic

99

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Reexivity and Transitivity


Theorem 1 Let F = (W , R) be a frame. The following statements are equivalent: R is reexive; F satises F satises ; p p for any atom p

Theorem 2 The following statements are equivalent: R is transitive; F satises F satises p ; p for any atom p
07Modal Logic 100

CS 3234: Logic and Formal Systems

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

CS 3234: Logic and Formal Systems

07Modal Logic

101

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

1 2: Let R be reexive.

CS 3234: Logic and Formal Systems

07Modal Logic

102

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

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

CS 3234: Logic and Formal Systems

07Modal Logic

103

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

1 2: Let R be reexive. Let L be any labeling function; M = (W , R, L). Need to show for any x: x

CS 3234: Logic and Formal Systems

07Modal Logic

104

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

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

CS 3234: Logic and Formal Systems

07Modal Logic

105

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

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

CS 3234: Logic and Formal Systems

07Modal Logic

106

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

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

CS 3234: Logic and Formal Systems

07Modal Logic

107

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1

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


1 2 3

R is reexive; F satises F satises ; p p for any atom p

CS 3234: Logic and Formal Systems

07Modal Logic

108

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1

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


1 2 3

R is reexive; F satises F satises ; p p for any atom p

2 3: Just set to be p

CS 3234: Logic and Formal Systems

07Modal Logic

109

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

CS 3234: Logic and Formal Systems

07Modal Logic

110

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p p p.

3 1: Suppose the frame satises

CS 3234: Logic and Formal Systems

07Modal Logic

111

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p p p.

3 1: Suppose the frame satises Take any world x from W .

CS 3234: Logic and Formal Systems

07Modal Logic

112

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

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

CS 3234: Logic and Formal Systems

07Modal Logic

113

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

3 1: Suppose the frame satises p p. Take any world x from W . Choose a labeling function L such that p L(x), but p L(y) for all y with y = x Proof by contradiction: Assume (x, x) R.

CS 3234: Logic and Formal Systems

07Modal Logic

114

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Proof of Theorem 1
Let F = (W , R) be a frame. The following statements are equivalent:
1 2 3

R is reexive; F satises F satises ; p p for any atom p

3 1: Suppose the frame satises p p. Take any world x from W . Choose a labeling function L such that p L(x), but p L(y) for all y with y = x Proof by contradiction: Assume (x, x) R. Then we would have x p, but not x p. Contradiction!
CS 3234: Logic and Formal Systems 07Modal Logic 115

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Formula Schemes and Properties of R

name T B D 4 5

formula scheme ( )

property of R reexive symmetric serial transitive Euclidean functional linear

CS 3234: Logic and Formal Systems

07Modal Logic

116

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Which Formula Schemes to Choose?

Denition Let L be a set of formula schemes and {} a set of formulas of basic modal logic.

CS 3234: Logic and Formal Systems

07Modal Logic

117

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Which Formula Schemes to Choose?

Denition Let L be a set of formula schemes and {} a set of formulas of basic modal logic. A set of formula schemes is said to be closed iff it contains all substitution instances of its elements.

CS 3234: Logic and Formal Systems

07Modal Logic

118

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Which Formula Schemes to Choose?

Denition Let L be a set of formula schemes and {} a set of formulas of basic modal logic. A set of formula schemes is said to be closed iff it contains all substitution instances of its elements. Let Lc be the smallest closed superset of L.

CS 3234: Logic and Formal Systems

07Modal Logic

119

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Which Formula Schemes to Choose?

Denition Let L be a set of formula schemes and {} a set of formulas of basic modal logic. A set of formula schemes is said to be closed iff it contains all substitution instances of its elements. entails in L iff Lc semantically entails . We say |=L . Let Lc be the smallest closed superset of L.

CS 3234: Logic and Formal Systems

07Modal Logic

120

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Examples of Modal Logics: K

K is the weakest modal logic, L = .

CS 3234: Logic and Formal Systems

07Modal Logic

121

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Examples of Modal Logics: KT45

L = {T , 4, 5}

CS 3234: Logic and Formal Systems

07Modal Logic

122

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: 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 knows that he knows it. 5: Negative introspection: If Q doesnt know something, he knows that he doesnt know it.

CS 3234: Logic and Formal Systems

07Modal Logic

123

Motivation Basic Modal Logic Logic Engineering

Valid Formulas wrt Modalities Properties of R Correspondence Theory Preview: Some Modal Logics

Next Week

Examples of Modal Logic Natural deduction in modal logic

CS 3234: Logic and Formal Systems

07Modal Logic

124

Das könnte Ihnen auch gefallen