A Judgmental Formulation of Modal Logic

45
A Judgmental Formulation of Modal Logic Estonian Theory Days Jan 30, 2009 Sungwoo Park Pohang University of Science and Technology South Korea

Transcript of A Judgmental Formulation of Modal Logic

Page 1: A Judgmental Formulation of Modal Logic

A Judgmental Formulation of

Modal Logic

Estonian Theory Days

Jan 30, 2009

Sungwoo Park

Pohang University of Science and Technology

South Korea

Page 2: A Judgmental Formulation of Modal Logic

2

Outline

• Study of logic

– Model theory vs Proof theory

– Classical logic vs Constructive logic

• Judgmental analysis of propositional logic

• Modal logic

• Summary

Page 3: A Judgmental Formulation of Modal Logic

3

Model vs. Proof

Model theory

• Model I

– Eg. assignment of

truth values

• Semantic consequenceA1, ···, An �I

C

A1, ···, An � C

Proof theory

• Inference rules

– use premises

to obtain the conclusion

• Syntactic entailmentA1, ···, An ⊢ C

Page 4: A Judgmental Formulation of Modal Logic

4

Classical Logic

• Every proposition is either true or false.

• Concerned with:

– "whether a given proposition is true or not."

• Tautologies in classical logic

Page 5: A Judgmental Formulation of Modal Logic

5

Constructive Logic

• We know only what we can prove.

• Concerned with:

– "how a given proposition becomes true."

• Not provable in constructive logic

Page 6: A Judgmental Formulation of Modal Logic

This talk is about

Constructive Proof Theory.

• Per Martin-Löf. On the meaning of the logical constants and the justifications of the logical

laws, Nordic Journal of Philosophical Logic, 1(1):11-60, 1996.

• Frank Pfenning and Rowan Davies. A judgmental reconstruction of modal logic,

Mathematical Structures in Computer Science, 11(4)-511-540, 2001.

Page 7: A Judgmental Formulation of Modal Logic

7

Outline

• Study of logic

– Model theory vs Proof theory

– Classical logic vs Constructive logic

• Judgmental analysis of propositional logic

• Judgmental analysis of modal logic

• Summary

Page 8: A Judgmental Formulation of Modal Logic

8

Judgments and Proofs

• A judgment = an object of knowledge that may or may not be provable.

– If there exists a proof,

• the judgment becomes evident.

• we know the judgment.

• Examples

– "1 - 1 is equal to 0" is true.

– "1 + 1 is equal to 0" is false.

– "It is snowing" is true.

– "1 - 1 is equal to 0" is false.

Page 9: A Judgmental Formulation of Modal Logic

9

• A proof consists of applications of inference rules.

• Ji are premises (1 � i � n).

• J is a conclusion.

– "If J1 through Jn (premises) hold,

then J (conclusion) holds."

• If n = 0 (no premise), the inference rule is an axiom.

Inference Rules and Axioms

Page 10: A Judgmental Formulation of Modal Logic

10

Proposition

• A statement such that we know what counts as a

verification of it.

– If A is a proposition, we know how to check the

validity of the proof of its truth.

• Example: "It is raining."

• Secondary notion

Page 11: A Judgmental Formulation of Modal Logic

11

Proposition

• Without arithmetic rules, what is the meaning of

"1 - 1 is equal to 0"?

Page 12: A Judgmental Formulation of Modal Logic

12

Propositional Logic

• Propositions

• Judgments:

Page 13: A Judgmental Formulation of Modal Logic

13

Natural Deduction System

• Introduced by Gentzen, 1934

• For each connective ∧, ∨, ⊃, ...

– introduction rule: how to establish a proof

– elimination rule: how to exploit an existing proof

Page 14: A Judgmental Formulation of Modal Logic

14

Implication

Page 15: A Judgmental Formulation of Modal Logic

15

Disjunction

Page 16: A Judgmental Formulation of Modal Logic

16

Truth and Falsehood

Page 17: A Judgmental Formulation of Modal Logic

17

What if Elimination Rules were …

• Too strong

• Too weak

Page 18: A Judgmental Formulation of Modal Logic

18

• Local soundness

– Elimination rules are not too strong.

• Local completeness

– Elimination rules are not too weak

Elimination Rules are OK

Page 19: A Judgmental Formulation of Modal Logic

19

Local Soundness and Completeness

Page 20: A Judgmental Formulation of Modal Logic

20

Hypothetical Judgments

• Definition

• Substitution principle

Page 21: A Judgmental Formulation of Modal Logic

21

Inference Rules

Page 22: A Judgmental Formulation of Modal Logic

22

Outline

• Study of logic

• Judgmental analysis of propositional logic

• Judgmental analysis of modal logic

– Modal necessity ����

– Modal possibility ♦♦♦♦

– Lax modality O

• Summary

Page 23: A Judgmental Formulation of Modal Logic

23

POSTECH

Page 24: A Judgmental Formulation of Modal Logic

24

Modal Logic

• Modalities � and ♦

– � A : necessarily A

– ♦ A : possibly A

• Spatial interpretation:

– � A : everywhere A

– ♦ A : somewhere A

• Temporal interpretation:

– � A : always A

– ♦ A : sometime A

Page 25: A Judgmental Formulation of Modal Logic

Modal necessity �

First Judgments,Then Propositions.

Page 26: A Judgmental Formulation of Modal Logic

26

Validity Judgment

• A valid

≈ A is valid if A is true at a world about which we

know nothing, or at any world.

• Modal proposition � A

– Introduction rule

Page 27: A Judgmental Formulation of Modal Logic

27

New Forms of Hypothetical Judgments

• Definition

• Substitution principle

Page 28: A Judgmental Formulation of Modal Logic

28

Modal necessity �

Page 29: A Judgmental Formulation of Modal Logic

29

Local Soundness and Completeness

Page 30: A Judgmental Formulation of Modal Logic

30

Axiomatic Characterization (S4)

Page 31: A Judgmental Formulation of Modal Logic

Modal possibility ♦

Again,First Judgments,

Then Propositions.

Page 32: A Judgmental Formulation of Modal Logic

32

Possibility Judgment

• A poss

≈ A is possibly true if A is true at a certain world.

Page 33: A Judgmental Formulation of Modal Logic

33

Modal possibility ♦

Page 34: A Judgmental Formulation of Modal Logic

34

Local Soundness and Completeness

Page 35: A Judgmental Formulation of Modal Logic

35

Axiomatic Characterization

Page 36: A Judgmental Formulation of Modal Logic

Lax modality O

Yet again,First Judgments,

Then Propositions.

Page 37: A Judgmental Formulation of Modal Logic

37

Lax Judgment

• A lax

≈ A is true under a certain constraint.

Page 38: A Judgmental Formulation of Modal Logic

38

Lax Modality O

Page 39: A Judgmental Formulation of Modal Logic

39

Local Soundness and Completeness

Page 40: A Judgmental Formulation of Modal Logic

40

Axiomatic Characterization

Page 41: A Judgmental Formulation of Modal Logic

41

Outline

• Study of logic

• Judgmental analysis of propositional logic

• Judgmental analysis of modal logic

– Modal necessity �

– Modal possibility ♦

– Lax modality O

• Summary

Page 42: A Judgmental Formulation of Modal Logic

42

Applications

• �, ♦

– Type system for staged computation

– Type system for distributed computation

• O

– Type system for effectful computation

– Monad in functional language Haskell

Page 43: A Judgmental Formulation of Modal Logic

43

• Normal proofs

• Internalizing normal proofs using a modality

• Introduction and elimination rules

Internalizing Normal Proofs

Page 44: A Judgmental Formulation of Modal Logic

44

Sequent Calculus

• Uses two judgments

• Satisfies cut-elimination

Page 45: A Judgmental Formulation of Modal Logic

Thank you.

[email protected]