Positive modal separation logics Fredrik Dahlqvist University - - PowerPoint PPT Presentation

positive modal separation logics
SMART_READER_LITE
LIVE PREVIEW

Positive modal separation logics Fredrik Dahlqvist University - - PowerPoint PPT Presentation

Positive modal separation logics Fredrik Dahlqvist University College London Resource Reasoning Meeting 13 January 2016 Positive modal logic First studied by Jon Michael Dunn in 1995 Positive modal logic First studied by Jon Michael Dunn in


slide-1
SLIDE 1

Positive modal separation logics

Fredrik Dahlqvist University College London Resource Reasoning Meeting 13 January 2016

slide-2
SLIDE 2

Positive modal logic

First studied by Jon Michael Dunn in 1995

slide-3
SLIDE 3

Positive modal logic

First studied by Jon Michael Dunn in 1995 a ::= p | a ∧ a | a ∨ a | ♦a | a, p ∈ V

slide-4
SLIDE 4

Positive modal logic

First studied by Jon Michael Dunn in 1995 a ::= p | a ∧ a | a ∨ a | ♦a | a, p ∈ V Axioms: distribution laws (K) and Interaction Axioms:

♦a ∧ b ⊢ ♦(a ∧ b), (a ∨ b) ⊢ ♦a ∨ b

slide-5
SLIDE 5

Positive modal logic

First studied by Jon Michael Dunn in 1995 a ::= p | a ∧ a | a ∨ a | ♦a | a, p ∈ V Axioms: distribution laws (K) and Interaction Axioms:

♦a ∧ b ⊢ ♦(a ∧ b), (a ∨ b) ⊢ ♦a ∨ b

Strong completeness w.r.t. Kripke frames

slide-6
SLIDE 6

Positive modal logic

First studied by Jon Michael Dunn in 1995 a ::= p | a ∧ a | a ∨ a | ♦a | a, p ∈ V Axioms: distribution laws (K) and Interaction Axioms:

♦a ∧ b ⊢ ♦(a ∧ b), (a ∨ b) ⊢ ♦a ∨ b

Strong completeness w.r.t. Kripke frames Problem: incompletness in the presence of axioms, e.g. add

♦♦a ⊢ ♦a to the logic and a ⊢ a is valid but not derivable.

slide-7
SLIDE 7

Positive modal logic

1996: Celani and Jansana offer a solution by altering the semantics.

slide-8
SLIDE 8

Positive modal logic

1996: Celani and Jansana offer a solution by altering the semantics. New semantics in terms of ordered Kripke frames with compatibility requirements between R and . Valuations in upsets.

slide-9
SLIDE 9

Positive modal logic

1996: Celani and Jansana offer a solution by altering the semantics. New semantics in terms of ordered Kripke frames with compatibility requirements between R and . Valuations in upsets. Strong completeness preserved.

slide-10
SLIDE 10

Positive modal logic

1996: Celani and Jansana offer a solution by altering the semantics. New semantics in terms of ordered Kripke frames with compatibility requirements between R and . Valuations in upsets. Strong completeness preserved. This solves the problem:

♦♦p | =♦p iff (R; ) is transitive p | =p iff (R; ) is transitive

slide-11
SLIDE 11

Positive modal logic

2005: Gehrke, Nagahshi and Venema define a related ordered Kripke semantics with two relations: R♦, R and compatibility relations with .

slide-12
SLIDE 12

Positive modal logic

2005: Gehrke, Nagahshi and Venema define a related ordered Kripke semantics with two relations: R♦, R and compatibility relations with . 2015: Semantics based on coalgebraic ideas: ordered Kripke frames, valuations in upsets, convex relations R♦, R. w |

= ♦p if ∃wR♦x, x | = p

w |

= p if ∀wRx, x | = p

slide-13
SLIDE 13

Positive modal logic

2005: Gehrke, Nagahshi and Venema define a related ordered Kripke semantics with two relations: R♦, R and compatibility relations with . 2015: Semantics based on coalgebraic ideas: ordered Kripke frames, valuations in upsets, convex relations R♦, R. w |

= ♦p if ∃wR♦x, x | = p

w |

= p if ∀wRx, x | = p

All these semantics are related. Coalgebraic semantics: start with R♦, R and use Interaction axioms to prove one R is enough.

slide-14
SLIDE 14

Positive modal logic

Working with positive modal logic is a bit different. w x y z w |

= ♦p ∧ q

x |

= p

y |

= q

z |

= p ∧ q

R♦, R R♦ R

slide-15
SLIDE 15

Positive modal logic

Working with positive modal logic is a bit different. w x y z w |

= ♦p ∧ q

x |

= p

y |

= q

z |

= p ∧ q

R♦, R R♦ R

Strong completeness.

Positive ML is strongly complete w.r.t. to Kripke frames with two convex relations R♦, R and upset valuation validating Interaction axioms. Moreover: w |

=R♦×R a

iff w |

=(R♦∩R)×(R♦∩R) a

slide-16
SLIDE 16

‘Separation logic’ as positive ML

a ::= I | p | a ∗ a | a −

∗a | a ∗ −a,

p ∈ V

slide-17
SLIDE 17

‘Separation logic’ as positive ML

a ::= I | p | a ∗ a | a −

∗a | a ∗ −a,

p ∈ V Models: posets with convex binary relations and downset of ‘special points’: w |

= I if w ∈ I

w |

= p ∗ q if ∃wR∗(x, y), x | = p and y | = q

w |

= p − ∗q if ∀wR−

∗(x, y), x |

= p implies y | = q

w |

= p ∗ −q if ∀wR∗

−(x, y), y |

= p implies x | = q

slide-18
SLIDE 18

‘Separation logic’ as positive ML

a ::= I | p | a ∗ a | a −

∗a | a ∗ −a,

p ∈ V Models: posets with convex binary relations and downset of ‘special points’: w |

= I if w ∈ I

w |

= p ∗ q if ∃wR∗(x, y), x | = p and y | = q

w |

= p − ∗q if ∀wR−

∗(x, y), x |

= p implies y | = q

w |

= p ∗ −q if ∀wR∗

−(x, y), y |

= p implies x | = q

Axioms: distribution laws of ∗, −

∗, ∗ − (think K) plus

1

a ∗ I ⊣⊢ a, I ∗ a ⊣⊢ a

2

I ⊢ a − ∗a, I ⊢ a ∗ −a

3

a ∗ (b − ∗c) ⊢ (a ∗ b − ∗)c

4 (c ∗

−b) ∗ a ⊢ c ∗ −(a ∗ b)

5 (a ∗

−b) ∗ b ⊢ a

6

b ∗ (b − ∗a) ⊢ a

slide-19
SLIDE 19

‘Separation logic’ as positive ML

Strong completeness of ‘separation logic’

Positive ‘separation logic’ is strongly complete w.r.t. Kripke frames with convex ternary relations R∗, R−

∗, R∗ − validating its axioms. This means

that it is complete w.r.t. to Kripke frames with a single convex ternary relation R w |

= p ∗ q iff ∃wR(x, y), x | = p and y | = q

w |

= p − ∗q iff ∀xR(w, y), x | = p implies y | = q

w |

= p ∗ −q iff ∀yR(x, w), y | = p implies x | = q

slide-20
SLIDE 20

‘Separation logic’ as positive ML

Strong completeness of ‘separation logic’

Positive ‘separation logic’ is strongly complete w.r.t. Kripke frames with convex ternary relations R∗, R−

∗, R∗ − validating its axioms. This means

that it is complete w.r.t. to Kripke frames with a single convex ternary relation R w |

= p ∗ q iff ∃wR(x, y), x | = p and y | = q

w |

= p − ∗q iff ∀xR(w, y), x | = p implies y | = q

w |

= p ∗ −q iff ∀yR(x, w), y | = p implies x | = q

Much more general result: residuation is preserved under canonical extension on boolean algebras, distributive lattices, semi-lattices and even posets!

slide-21
SLIDE 21

‘Separation logic’ as positive ML

Some posets with convex ternary relation and ‘identities’:

slide-22
SLIDE 22

‘Separation logic’ as positive ML

Some posets with convex ternary relation and ‘identities’: Take W = {f : N+ ⇀f N} with f g whenever f = g ↾ domf,

I = {IdU | U ∈ Pf(N+)} and

f R(g, h) iff domg ∩ domh = ∅, g f, h f

slide-23
SLIDE 23

‘Separation logic’ as positive ML

Some posets with convex ternary relation and ‘identities’: Take W = {f : N+ ⇀f N} with f g whenever f = g ↾ domf,

I = {IdU | U ∈ Pf(N+)} and

f R(g, h) iff domg ∩ domh = ∅, g f, h f For (P, ◦, I) a partial monoid, take W = P with a b if

∃c, a ◦ c = b, I = I and aR(b, c) iff b ∗ c a

slide-24
SLIDE 24

‘Separation logic’ as positive ML

Some posets with convex ternary relation and ‘identities’: Take W = {f : N+ ⇀f N} with f g whenever f = g ↾ domf,

I = {IdU | U ∈ Pf(N+)} and

f R(g, h) iff domg ∩ domh = ∅, g f, h f For (P, ◦, I) a partial monoid, take W = P with a b if

∃c, a ◦ c = b, I = I and aR(b, c) iff b ∗ c a

For (P, , ◦, I) an ordered partial monoid: same as above with native order.

slide-25
SLIDE 25

‘Separation logic’ as positive ML

Some posets with convex ternary relation and ‘identities’: Take W = {f : N+ ⇀f N} with f g whenever f = g ↾ domf,

I = {IdU | U ∈ Pf(N+)} and

f R(g, h) iff domg ∩ domh = ∅, g f, h f For (P, ◦, I) a partial monoid, take W = P with a b if

∃c, a ◦ c = b, I = I and aR(b, c) iff b ∗ c a

For (P, , ◦, I) an ordered partial monoid: same as above with native order. For any set X, take W = {S ⊆ X × X} with given by ⊆,

I = {IdU | U ⊆ X} and SR(T1, T2) whenever T1; T2 ⊆ S.

slide-26
SLIDE 26

Modularity

Given a modal signature Σ, let LΣ be the associated positive modal language.

slide-27
SLIDE 27

Modularity

Given a modal signature Σ, let LΣ be the associated positive modal language. Given two signatures Σ1, Σ2, define

LΣ1 ⊕ LΣ2 = LΣ1

Σ2

the fusion of LΣ1 and LΣ2

slide-28
SLIDE 28

Modularity

Given a modal signature Σ, let LΣ be the associated positive modal language. Given two signatures Σ1, Σ2, define

LΣ1 ⊕ LΣ2 = LΣ1

Σ2

the fusion of LΣ1 and LΣ2 The coalgebraic method used to prove strong completeness is modular:

slide-29
SLIDE 29

Modularity

Given a modal signature Σ, let LΣ be the associated positive modal language. Given two signatures Σ1, Σ2, define

LΣ1 ⊕ LΣ2 = LΣ1

Σ2

the fusion of LΣ1 and LΣ2 The coalgebraic method used to prove strong completeness is modular:

Strong completeness is modular

Let Σ1, Σ2 be two signatures and Ax1, Ax2 be sets of canonical axioms in

LΣ1 and LΣ2 which include distribution laws, then LΣ1 ⊕ LΣ2/{Ax1 ∪ Ax2} is strongly complete w.r.t. to Kripke frames with

convex n-ary relations Rσ, σ ∈ Σ1 ∪ Σ1 validating the axioms in Ax1 ∪ Ax2.

slide-30
SLIDE 30

Positive Modal Separation Logics

Idea: describe evolving resources by combining positive modal logics with positive separation logic and keep strong completeness.

slide-31
SLIDE 31

Positive Modal Separation Logics

Idea: describe evolving resources by combining positive modal logics with positive separation logic and keep strong completeness. Choice of ‘granularity’ of a description

slide-32
SLIDE 32

Positive Modal Separation Logics

Idea: describe evolving resources by combining positive modal logics with positive separation logic and keep strong completeness. Choice of ‘granularity’ of a description

Coarsest description: can observe that a step has occurred: K+⊕PSL. For example: w | = ♦(p ∗ q), w | = ♦p ∗ ♦q

slide-33
SLIDE 33

Positive Modal Separation Logics

Idea: describe evolving resources by combining positive modal logics with positive separation logic and keep strong completeness. Choice of ‘granularity’ of a description

Coarsest description: can observe that a step has occurred: K+⊕PSL. For example: w | = ♦(p ∗ q), w | = ♦p ∗ ♦q Steps compose (transitivity): K+4⊕PSL where 4 = {♦♦p ⊢ ♦p, p ⊢ p}. Strong completeness since axioms canonical.

slide-34
SLIDE 34

Positive Modal Separation Logics

Idea: describe evolving resources by combining positive modal logics with positive separation logic and keep strong completeness. Choice of ‘granularity’ of a description

Coarsest description: can observe that a step has occurred: K+⊕PSL. For example: w | = ♦(p ∗ q), w | = ♦p ∗ ♦q Steps compose (transitivity): K+4⊕PSL where 4 = {♦♦p ⊢ ♦p, p ⊢ p}. Strong completeness since axioms canonical. Encode models of time: e.g. the smallest temporal logic K P,F

+ 4P4FCPCF⊕SPL where

CP = {a ⊢ [P]Fa, p[F]a ⊢ a}, CF = {a ⊢ [F]Pa, F[P]a ⊢ a}

slide-35
SLIDE 35

Positive Modal Separation Logics

Finer level of details: labelled-transitions

slide-36
SLIDE 36

Positive Modal Separation Logics

Finer level of details: labelled-transitions

Coarsest description: labels only:

l∈L K+⊕PSL.

w | = l(p ∗ q), w | = l1p ∗ l2q

slide-37
SLIDE 37

Positive Modal Separation Logics

Finer level of details: labelled-transitions

Coarsest description: labels only:

l∈L K+⊕PSL.

w | = l(p ∗ q), w | = l1p ∗ l2q Combine labels with a grammar and encode the grammar as axioms. For example l ::= π | l; l and l1l2p ⊣⊢ l1; l2p, [l1][l2]p ⊣⊢ [l1; l2]p Strong completeness since axioms canonical.

slide-38
SLIDE 38

Positive Modal Separation Logics

Finer level of details: labelled-transitions

Coarsest description: labels only:

l∈L K+⊕PSL.

w | = l(p ∗ q), w | = l1p ∗ l2q Combine labels with a grammar and encode the grammar as axioms. For example l ::= π | l; l and l1l2p ⊣⊢ l1; l2p, [l1][l2]p ⊣⊢ [l1; l2]p Strong completeness since axioms canonical. *-free PDL ⊕ PSL is strongly complete by modularity.

slide-39
SLIDE 39

Positive Modal Separation Logics

Finer level of details: labelled-transitions

Coarsest description: labels only:

l∈L K+⊕PSL.

w | = l(p ∗ q), w | = l1p ∗ l2q Combine labels with a grammar and encode the grammar as axioms. For example l ::= π | l; l and l1l2p ⊣⊢ l1; l2p, [l1][l2]p ⊣⊢ [l1; l2]p Strong completeness since axioms canonical. *-free PDL ⊕ PSL is strongly complete by modularity. Beyond fusions: introducing modal-separation interaction e.g. l ::= π | l; l | l l l1 l2p ⊣⊢ l1p ∗ l2p, [l1 l2]p ⊣⊢ [l1]p ∗ [l2]p Modularity does not provide strong completeness anymore, but canonicity of all the axioms does.

slide-40
SLIDE 40

Conclusion

‘Separation logic’ can be seen as a positive modal logic and be given a strongly complete relational semantics.

slide-41
SLIDE 41

Conclusion

‘Separation logic’ can be seen as a positive modal logic and be given a strongly complete relational semantics. The semantics covers many well-known cases.

slide-42
SLIDE 42

Conclusion

‘Separation logic’ can be seen as a positive modal logic and be given a strongly complete relational semantics. The semantics covers many well-known cases. Positive modal logics can also be given a strongly complete relational semantics.

slide-43
SLIDE 43

Conclusion

‘Separation logic’ can be seen as a positive modal logic and be given a strongly complete relational semantics. The semantics covers many well-known cases. Positive modal logics can also be given a strongly complete relational semantics. Using the modularity of strong completeness we can build strongly complete fusions of modal and separation logic

slide-44
SLIDE 44

Conclusion

‘Separation logic’ can be seen as a positive modal logic and be given a strongly complete relational semantics. The semantics covers many well-known cases. Positive modal logics can also be given a strongly complete relational semantics. Using the modularity of strong completeness we can build strongly complete fusions of modal and separation logic Using canonicity we can build strongly complete positive modal separation logics where labels interact with ∗

slide-45
SLIDE 45

Conclusion

‘Separation logic’ can be seen as a positive modal logic and be given a strongly complete relational semantics. The semantics covers many well-known cases. Positive modal logics can also be given a strongly complete relational semantics. Using the modularity of strong completeness we can build strongly complete fusions of modal and separation logic Using canonicity we can build strongly complete positive modal separation logics where labels interact with ∗ ... it can all be done with ⊥ and ⊤ too ...

slide-46
SLIDE 46

Conclusion

‘Separation logic’ can be seen as a positive modal logic and be given a strongly complete relational semantics. The semantics covers many well-known cases. Positive modal logics can also be given a strongly complete relational semantics. Using the modularity of strong completeness we can build strongly complete fusions of modal and separation logic Using canonicity we can build strongly complete positive modal separation logics where labels interact with ∗ ... it can all be done with ⊥ and ⊤ too ... and negations as well ...

slide-47
SLIDE 47

Thank you.