SLIDE 1
Positive modal separation logics Fredrik Dahlqvist University - - PowerPoint PPT Presentation
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 2
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
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
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
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
Positive modal logic
1996: Celani and Jansana offer a solution by altering the semantics.
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
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
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
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
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
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
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
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
‘Separation logic’ as positive ML
a ::= I | p | a ∗ a | a −
∗a | a ∗ −a,
p ∈ V
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
‘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
‘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
‘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
‘Separation logic’ as positive ML
Some posets with convex ternary relation and ‘identities’:
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
‘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
‘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
‘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
Modularity
Given a modal signature Σ, let LΣ be the associated positive modal language.
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
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
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
Positive Modal Separation Logics
Idea: describe evolving resources by combining positive modal logics with positive separation logic and keep strong completeness.
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
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
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
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
Positive Modal Separation Logics
Finer level of details: labelled-transitions
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
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
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
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
Conclusion
‘Separation logic’ can be seen as a positive modal logic and be given a strongly complete relational semantics.
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
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
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
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
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
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