Intuitionistic Temporal Logic from Reactive Programming Wolfgang - - PowerPoint PPT Presentation

intuitionistic temporal logic from reactive programming
SMART_READER_LITE
LIVE PREVIEW

Intuitionistic Temporal Logic from Reactive Programming Wolfgang - - PowerPoint PPT Presentation

Intuitionistic Temporal Logic from Reactive Programming Wolfgang Jeltsch Institute of Cybernetics at Tallinn University of Technology EstonianFinnish Logic Meeting Rakvere, Estonia 14 October 2015 Wolfgang Jeltsch (Institute of Cybernetics)


slide-1
SLIDE 1

Intuitionistic Temporal Logic from Reactive Programming

Wolfgang Jeltsch

Institute of Cybernetics at Tallinn University of Technology

Estonian–Finnish Logic Meeting

Rakvere, Estonia 14 October 2015

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 1 / 20

slide-2
SLIDE 2

1

Functional reactive programming and intuitionistic temporal logic

2

Logical operators

3

Inference rules

4

Conclusions and outlook

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 2 / 20

slide-3
SLIDE 3

1

Functional reactive programming and intuitionistic temporal logic

2

Logical operators

3

Inference rules

4

Conclusions and outlook

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 3 / 20

slide-4
SLIDE 4

Functional reactive programming (FRP)

extension of functional programming with support for describing temporal behavior time is a totally ordered set (T, ≤):

linear not necessarily discrete

key constructs for behavior descriptions:

signals events

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 4 / 20

slide-5
SLIDE 5

Signals and events

signals are time-varying values: Signalα:

α

events are times with associated values: Eventβ:

β

examples: Signal audio channel in a multimedia application Event Σ key press

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 5 / 20

slide-6
SLIDE 6

Correspondence to temporal logic operators

Signal corresponds to a future-only variant of :

′A:

A Event corresponds to a future-only variant of :

′B:

B

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 6 / 20

slide-7
SLIDE 7

Establishment of a Curry–Howard correspondence

FRP inspires temporal logic, making it intuitionistic in several ways:

double negation elimination does not hold:

¬¬A A ′ and ′ are not interdefinable: ′A ¬′¬A ′B ¬′¬B ′ does not distribute over finite disjunctions: ′(A ∨ B) ′A ∨ ′B ′⊥ ⊥ ′A ∨ ′B ⊢ ′(A ∨ B) ⊥ ⊢ ′⊥ temporal logic inspires FRP: time-dependent truth −→ time-dependent type inhabitance “until” proofs −→ processes

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 7 / 20

slide-8
SLIDE 8

1

Functional reactive programming and intuitionistic temporal logic

2

Logical operators

3

Inference rules

4

Conclusions and outlook

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 8 / 20

slide-9
SLIDE 9

“Until” operators

family of future-only “until” operators: A ⊲′′

c B:

A B A parameter c is termination constraint:

termination behaviors are elements of T ∪ {∞}: t ∈ T termination at time t

∞ nontermination

termination constraints are downward closed sets of permitted termination behaviors special cases: T termination guaranteed T ∪ {∞} nontermination possible shortcuts:

↓ = T = T ∪ {∞}

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 9 / 20

slide-10
SLIDE 10

Derivation of “always” and “eventually” operators

derivation of ′:

′A = A ⊲′′

⊥:

A derivation of ′:

′B = ⊤ ⊲′′

↓ B:

B

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 10 / 20

slide-11
SLIDE 11

Present-also versions of “always” and “eventually”

present-also version of ′:

A = A × ′A:

A present-also version of ′:

B = B + ′B:

B B

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 11 / 20

slide-12
SLIDE 12

Present-also versions of “until”

derivation analogous to derivation of : A ⊲′

c B = A × A ⊲′′ c B:

A B derivation analogous to derivation of : A ⊲c B = B + A ⊲′

c B:

B A B

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 12 / 20

slide-13
SLIDE 13

1

Functional reactive programming and intuitionistic temporal logic

2

Logical operators

3

Inference rules

4

Conclusions and outlook

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 13 / 20

slide-14
SLIDE 14

Map

judgment application under ⊲′′: A ⊢ A′ B ⊢ B′ A ⊲′′

c B ⊢ A′ ⊲′′ c B′

(Map) A ⊲′′

c B:

A B A′ ⊲′′

c B′:

A′ B′

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 14 / 20

slide-15
SLIDE 15

Join

elimination of right nesting: A ⊲′′

c (A ⊲c B) ⊢ A ⊲′′ c B

(Join) A ⊲′′

c (A ⊲c B):

A B A ⊲′′

c B:

A B

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 15 / 20

slide-16
SLIDE 16

Expand

introduction of left nesting: A ⊲′′

c B ⊢ (A ⊲′ c B) ⊲′′ B

(Expand) A ⊲′′

c B:

A B

(A ⊲′

c B) ⊲′′ c B:

A ⊲′

c B

B

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 16 / 20

slide-17
SLIDE 17

Merge

merging of two ⊲′′-statements: A1 ⊲′′

c1 B1 × A2 ⊲′′ c2 B2 ⊢ (A1 × A2) ⊲′′ c1∩c2 R

(Merge) R = B1 × A2 + A1 × B2 + B1 × B2 A1 ⊲′′

c1 B1:

A1 B1 A2 ⊲′′

c2 B2:

A2 B2

(A1 × A2) ⊲′′

c1∩c2 R:

A1 × A2 B1 × A2

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 17 / 20

slide-18
SLIDE 18

Merge

merging of two ⊲′′-statements: A1 ⊲′′

c1 B1 × A2 ⊲′′ c2 B2 ⊢ (A1 × A2) ⊲′′ c1∩c2 R

(Merge) R = B1 × A2 + A1 × B2 + B1 × B2 A1 ⊲′′

c1 B1:

A1 B1 A2 ⊲′′

c2 B2:

A2 B2

(A1 × A2) ⊲′′

c1∩c2 R:

A1 × A2 B1 × A2

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 17 / 20

slide-19
SLIDE 19

Merge

merging of two ⊲′′-statements: A1 ⊲′′

c1 B1 × A2 ⊲′′ c2 B2 ⊢ (A1 × A2) ⊲′′ c1∩c2 R

(Merge) R = B1 × A2 + A1 × B2 + B1 × B2 A1 ⊲′′

c1 B1:

A1 B1 A2 ⊲′′

c2 B2:

A2 B2

(A1 × A2) ⊲′′

c1∩c2 R:

A1 × A2 B1 × A2

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 17 / 20

slide-20
SLIDE 20

Merge

merging of two ⊲′′-statements: A1 ⊲′′

c1 B1 × A2 ⊲′′ c2 B2 ⊢ (A1 × A2) ⊲′′ c1∩c2 R

(Merge) R = B1 × A2 + A1 × B2 + B1 × B2 A1 ⊲′′

c1 B1:

A1 B1 A2 ⊲′′

c2 B2:

A2 B2

(A1 × A2) ⊲′′

c1∩c2 R:

A1 × A2 A1 × B2

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 17 / 20

slide-21
SLIDE 21

Merge

merging of two ⊲′′-statements: A1 ⊲′′

c1 B1 × A2 ⊲′′ c2 B2 ⊢ (A1 × A2) ⊲′′ c1∩c2 R

(Merge) R = B1 × A2 + A1 × B2 + B1 × B2 A1 ⊲′′

c1 B1:

A1 B1 A2 ⊲′′

c2 B2:

A2 B2

(A1 × A2) ⊲′′

c1∩c2 R:

A1 × A2 B1 × B2

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 17 / 20

slide-22
SLIDE 22

Merge

merging of two ⊲′′-statements: A1 ⊲′′

c1 B1 × A2 ⊲′′ c2 B2 ⊢ (A1 × A2) ⊲′′ c1∩c2 R

(Merge) R = B1 × A2 + A1 × B2 + B1 × B2 A1 ⊲′′

c1 B1:

A1 B1 A2 ⊲′′

c2 B2:

A2 B2

(A1 × A2) ⊲′′

c1∩c2 R:

A1 × A2 B1 × A2

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 17 / 20

slide-23
SLIDE 23

Nontermination introduction

nullary variant of Merge:

⊤ ⊢ ⊤ ⊲′′

(Nontermination introduction)

⊤ ⊲′′

⊥:

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 18 / 20

slide-24
SLIDE 24

1

Functional reactive programming and intuitionistic temporal logic

2

Logical operators

3

Inference rules

4

Conclusions and outlook

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 19 / 20

slide-25
SLIDE 25

Conclusions and outlook

conclusions:

discovery of correspondence between FRP and temporal logic profits both FRP and temporal logic causality as a temporal intuitionistic concept inference rules inspired by core operations of FRP

  • utlook:

integration of our intuitionistic temporal logic and the logic of bunched implication interpretation of the resulting logic as a variant of FRP with support for side effects

Wolfgang Jeltsch (Institute of Cybernetics) Intuitionistic Temporal Logic Estonian–Finnish Logic Meeting 20 / 20