Parametric completeness for separation theories (via hybrid logic) - - PowerPoint PPT Presentation

parametric completeness for separation theories via
SMART_READER_LITE
LIVE PREVIEW

Parametric completeness for separation theories (via hybrid logic) - - PowerPoint PPT Presentation

Parametric completeness for separation theories (via hybrid logic) James Brotherston University College London New York University, 11 December 2014 Joint work with Jules Villard 1/ 26 Part I Introduction, motivation and background 2/ 26


slide-1
SLIDE 1

Parametric completeness for separation theories (via hybrid logic)

James Brotherston

University College London

New York University, 11 December 2014 Joint work with Jules Villard

1/ 26

slide-2
SLIDE 2

Part I Introduction, motivation and background

2/ 26

slide-3
SLIDE 3

Introduction

  • In mathematical logic, there is usually a trade-off between

expressivity and complexity of a logical language:

3/ 26

slide-4
SLIDE 4

Introduction

  • In mathematical logic, there is usually a trade-off between

expressivity and complexity of a logical language:

  • weaker languages cannot capture interesting properties, but

3/ 26

slide-5
SLIDE 5

Introduction

  • In mathematical logic, there is usually a trade-off between

expressivity and complexity of a logical language:

  • weaker languages cannot capture interesting properties, but
  • richer languages have higher complexity, may lack sensible

proof theories and may be unavoidably incomplete (cf. G¨

  • del).

3/ 26

slide-6
SLIDE 6

Introduction

  • In mathematical logic, there is usually a trade-off between

expressivity and complexity of a logical language:

  • weaker languages cannot capture interesting properties, but
  • richer languages have higher complexity, may lack sensible

proof theories and may be unavoidably incomplete (cf. G¨

  • del).
  • Incompleteness manifests as a gap between two key

concepts:

3/ 26

slide-7
SLIDE 7

Introduction

  • In mathematical logic, there is usually a trade-off between

expressivity and complexity of a logical language:

  • weaker languages cannot capture interesting properties, but
  • richer languages have higher complexity, may lack sensible

proof theories and may be unavoidably incomplete (cf. G¨

  • del).
  • Incompleteness manifests as a gap between two key

concepts:

  • provability in some formal system for the logic

(which corresponds to validity in some class of models); and

3/ 26

slide-8
SLIDE 8

Introduction

  • In mathematical logic, there is usually a trade-off between

expressivity and complexity of a logical language:

  • weaker languages cannot capture interesting properties, but
  • richer languages have higher complexity, may lack sensible

proof theories and may be unavoidably incomplete (cf. G¨

  • del).
  • Incompleteness manifests as a gap between two key

concepts:

  • provability in some formal system for the logic

(which corresponds to validity in some class of models); and

  • validity in a (class of) intended model(s) of the logic.

3/ 26

slide-9
SLIDE 9

Introduction (contd.)

  • Thus, given a logical language L, and an intended class C of

models for that language, there are two natural questions:

4/ 26

slide-10
SLIDE 10

Introduction (contd.)

  • Thus, given a logical language L, and an intended class C of

models for that language, there are two natural questions:

  • 1. Is the class C finitely axiomatisable, a.k.a. definable in L?

4/ 26

slide-11
SLIDE 11

Introduction (contd.)

  • Thus, given a logical language L, and an intended class C of

models for that language, there are two natural questions:

  • 1. Is the class C finitely axiomatisable, a.k.a. definable in L?
  • 2. Is there a complete proof system for L w.r.t. validity in C?

4/ 26

slide-12
SLIDE 12

Introduction (contd.)

  • Thus, given a logical language L, and an intended class C of

models for that language, there are two natural questions:

  • 1. Is the class C finitely axiomatisable, a.k.a. definable in L?
  • 2. Is there a complete proof system for L w.r.t. validity in C?

(Note that these questions are not connected, in general.)

4/ 26

slide-13
SLIDE 13

Introduction (contd.)

  • Thus, given a logical language L, and an intended class C of

models for that language, there are two natural questions:

  • 1. Is the class C finitely axiomatisable, a.k.a. definable in L?
  • 2. Is there a complete proof system for L w.r.t. validity in C?

(Note that these questions are not connected, in general.)

  • Here, we examine these questions in the context of pure

separation logic, where

4/ 26

slide-14
SLIDE 14

Introduction (contd.)

  • Thus, given a logical language L, and an intended class C of

models for that language, there are two natural questions:

  • 1. Is the class C finitely axiomatisable, a.k.a. definable in L?
  • 2. Is there a complete proof system for L w.r.t. validity in C?

(Note that these questions are not connected, in general.)

  • Here, we examine these questions in the context of pure

separation logic, where

  • the language is given by the logic Boolean BI (BBI);

4/ 26

slide-15
SLIDE 15

Introduction (contd.)

  • Thus, given a logical language L, and an intended class C of

models for that language, there are two natural questions:

  • 1. Is the class C finitely axiomatisable, a.k.a. definable in L?
  • 2. Is there a complete proof system for L w.r.t. validity in C?

(Note that these questions are not connected, in general.)

  • Here, we examine these questions in the context of pure

separation logic, where

  • the language is given by the logic Boolean BI (BBI);
  • the intended models are given by separation theories, which

specify a collection of useful model properties.

4/ 26

slide-16
SLIDE 16

Outline

The rest of the talk goes as follows:

  • 1. First, we recall the standard presentation of BBI.

5/ 26

slide-17
SLIDE 17

Outline

The rest of the talk goes as follows:

  • 1. First, we recall the standard presentation of BBI.
  • 2. We introduce separation theories, which describe

practically interesting classes of models, and show that many such theories are not definable in BBI.

5/ 26

slide-18
SLIDE 18

Outline

The rest of the talk goes as follows:

  • 1. First, we recall the standard presentation of BBI.
  • 2. We introduce separation theories, which describe

practically interesting classes of models, and show that many such theories are not definable in BBI.

  • 3. We then propose an extension of BBI based on hybrid

logic, which adds a theory of naming to BBI, and show that these properties become definable to this extension.

5/ 26

slide-19
SLIDE 19

Outline

The rest of the talk goes as follows:

  • 1. First, we recall the standard presentation of BBI.
  • 2. We introduce separation theories, which describe

practically interesting classes of models, and show that many such theories are not definable in BBI.

  • 3. We then propose an extension of BBI based on hybrid

logic, which adds a theory of naming to BBI, and show that these properties become definable to this extension.

  • 4. We give proof systems for our hybrid logic that is

parametrically complete w.r.t. the axioms defining separation theories.

5/ 26

slide-20
SLIDE 20

Part II Boolean BI

6/ 26

slide-21
SLIDE 21

BBI: language and provability

  • BBI extends standard classical logic with “multiplicative”

connectives ∗, − − ∗ and I.

7/ 26

slide-22
SLIDE 22

BBI: language and provability

  • BBI extends standard classical logic with “multiplicative”

connectives ∗, − − ∗ and I.

  • Provability for the multiplicatives is given by

7/ 26

slide-23
SLIDE 23

BBI: language and provability

  • BBI extends standard classical logic with “multiplicative”

connectives ∗, − − ∗ and I.

  • Provability for the multiplicatives is given by

A ∗ B ⊢ B ∗ A A ∗ (B ∗ C) ⊢ (A ∗ B) ∗ C A ⊢ A ∗ I A ∗ I ⊢ A A1 ⊢ B1 A2 ⊢ B2 A1 ∗ A2 ⊢ B1 ∗ B2 A ∗ B ⊢ C A ⊢ B − − ∗ C A ⊢ B − − ∗ C A ∗ B ⊢ C

7/ 26

slide-24
SLIDE 24

BBI-models

A BBI-model is a relational commutative monoid, i.e. a tuple W, ◦, E, where

8/ 26

slide-25
SLIDE 25

BBI-models

A BBI-model is a relational commutative monoid, i.e. a tuple W, ◦, E, where

  • ◦ : W × W → P(W) is associative and commutative (we

extend ◦ pointwise to sets), and

8/ 26

slide-26
SLIDE 26

BBI-models

A BBI-model is a relational commutative monoid, i.e. a tuple W, ◦, E, where

  • ◦ : W × W → P(W) is associative and commutative (we

extend ◦ pointwise to sets), and

  • E ⊆ W satisfies w ◦ E = {w} for all w ∈ W (we call E the

set of units of ◦).

8/ 26

slide-27
SLIDE 27

BBI-models

A BBI-model is a relational commutative monoid, i.e. a tuple W, ◦, E, where

  • ◦ : W × W → P(W) is associative and commutative (we

extend ◦ pointwise to sets), and

  • E ⊆ W satisfies w ◦ E = {w} for all w ∈ W (we call E the

set of units of ◦). Typical example: heap models H, ◦, {e}, where

8/ 26

slide-28
SLIDE 28

BBI-models

A BBI-model is a relational commutative monoid, i.e. a tuple W, ◦, E, where

  • ◦ : W × W → P(W) is associative and commutative (we

extend ◦ pointwise to sets), and

  • E ⊆ W satisfies w ◦ E = {w} for all w ∈ W (we call E the

set of units of ◦). Typical example: heap models H, ◦, {e}, where

  • H is the set of heaps, i.e. finite partial maps from locations

to values,

8/ 26

slide-29
SLIDE 29

BBI-models

A BBI-model is a relational commutative monoid, i.e. a tuple W, ◦, E, where

  • ◦ : W × W → P(W) is associative and commutative (we

extend ◦ pointwise to sets), and

  • E ⊆ W satisfies w ◦ E = {w} for all w ∈ W (we call E the

set of units of ◦). Typical example: heap models H, ◦, {e}, where

  • H is the set of heaps, i.e. finite partial maps from locations

to values,

  • ◦ is union of domain-disjoint heaps, and

8/ 26

slide-30
SLIDE 30

BBI-models

A BBI-model is a relational commutative monoid, i.e. a tuple W, ◦, E, where

  • ◦ : W × W → P(W) is associative and commutative (we

extend ◦ pointwise to sets), and

  • E ⊆ W satisfies w ◦ E = {w} for all w ∈ W (we call E the

set of units of ◦). Typical example: heap models H, ◦, {e}, where

  • H is the set of heaps, i.e. finite partial maps from locations

to values,

  • ◦ is union of domain-disjoint heaps, and
  • e is the empty heap that is undefined everywhere.

8/ 26

slide-31
SLIDE 31

Semantics of BBI

Semantics of formula A wrt. BBI-model M = W, ◦, E, valuation ρ, and w ∈ W given by relation M, w | =ρ A:

9/ 26

slide-32
SLIDE 32

Semantics of BBI

Semantics of formula A wrt. BBI-model M = W, ◦, E, valuation ρ, and w ∈ W given by relation M, w | =ρ A:

M, w | =ρ P ⇔ w ∈ ρ(P)

9/ 26

slide-33
SLIDE 33

Semantics of BBI

Semantics of formula A wrt. BBI-model M = W, ◦, E, valuation ρ, and w ∈ W given by relation M, w | =ρ A:

M, w | =ρ P ⇔ w ∈ ρ(P) M, w | =ρ A1 ∧ A2 ⇔ M, w | =ρ A1 and M, w | =ρ A2

9/ 26

slide-34
SLIDE 34

Semantics of BBI

Semantics of formula A wrt. BBI-model M = W, ◦, E, valuation ρ, and w ∈ W given by relation M, w | =ρ A:

M, w | =ρ P ⇔ w ∈ ρ(P) M, w | =ρ A1 ∧ A2 ⇔ M, w | =ρ A1 and M, w | =ρ A2 . . . M, w | =ρ I ⇔ w ∈ E

9/ 26

slide-35
SLIDE 35

Semantics of BBI

Semantics of formula A wrt. BBI-model M = W, ◦, E, valuation ρ, and w ∈ W given by relation M, w | =ρ A:

M, w | =ρ P ⇔ w ∈ ρ(P) M, w | =ρ A1 ∧ A2 ⇔ M, w | =ρ A1 and M, w | =ρ A2 . . . M, w | =ρ I ⇔ w ∈ E M, w | =ρ A1 ∗ A2 ⇔ w ∈ w1 ◦ w2 and M, w1 | =ρ A1 and M, w2 | =ρ A2

9/ 26

slide-36
SLIDE 36

Semantics of BBI

Semantics of formula A wrt. BBI-model M = W, ◦, E, valuation ρ, and w ∈ W given by relation M, w | =ρ A:

M, w | =ρ P ⇔ w ∈ ρ(P) M, w | =ρ A1 ∧ A2 ⇔ M, w | =ρ A1 and M, w | =ρ A2 . . . M, w | =ρ I ⇔ w ∈ E M, w | =ρ A1 ∗ A2 ⇔ w ∈ w1 ◦ w2 and M, w1 | =ρ A1 and M, w2 | =ρ A2 M, w | =ρ A1 − − ∗ A2 ⇔ ∀w′, w′′ ∈ W. if w′′ ∈ w ◦ w′ and M, w′ | =ρ A1 then M, w′′ | =ρ A2

9/ 26

slide-37
SLIDE 37

Semantics of BBI

Semantics of formula A wrt. BBI-model M = W, ◦, E, valuation ρ, and w ∈ W given by relation M, w | =ρ A:

M, w | =ρ P ⇔ w ∈ ρ(P) M, w | =ρ A1 ∧ A2 ⇔ M, w | =ρ A1 and M, w | =ρ A2 . . . M, w | =ρ I ⇔ w ∈ E M, w | =ρ A1 ∗ A2 ⇔ w ∈ w1 ◦ w2 and M, w1 | =ρ A1 and M, w2 | =ρ A2 M, w | =ρ A1 − − ∗ A2 ⇔ ∀w′, w′′ ∈ W. if w′′ ∈ w ◦ w′ and M, w′ | =ρ A1 then M, w′′ | =ρ A2 A is valid in M iff M, w | =ρ A for all ρ and w ∈ W.

9/ 26

slide-38
SLIDE 38

Semantics of BBI

Semantics of formula A wrt. BBI-model M = W, ◦, E, valuation ρ, and w ∈ W given by relation M, w | =ρ A:

M, w | =ρ P ⇔ w ∈ ρ(P) M, w | =ρ A1 ∧ A2 ⇔ M, w | =ρ A1 and M, w | =ρ A2 . . . M, w | =ρ I ⇔ w ∈ E M, w | =ρ A1 ∗ A2 ⇔ w ∈ w1 ◦ w2 and M, w1 | =ρ A1 and M, w2 | =ρ A2 M, w | =ρ A1 − − ∗ A2 ⇔ ∀w′, w′′ ∈ W. if w′′ ∈ w ◦ w′ and M, w′ | =ρ A1 then M, w′′ | =ρ A2 A is valid in M iff M, w | =ρ A for all ρ and w ∈ W. Theorem (Galmiche and Larchey-Wendling 2006) Provability in BBI coincides with validity in BBI-models.

9/ 26

slide-39
SLIDE 39

Part III (Un)definable properties in BBI

10/ 26

slide-40
SLIDE 40

Separation theories

Applications of separation logic are typically based on BBI-models satisfying some collection of algebraic properties which we call a separation theory.

11/ 26

slide-41
SLIDE 41

Separation theories

Applications of separation logic are typically based on BBI-models satisfying some collection of algebraic properties which we call a separation theory. We consider the following:

Partial functionality: w, w′ ∈ w1 ◦ w2 implies w = w′;

11/ 26

slide-42
SLIDE 42

Separation theories

Applications of separation logic are typically based on BBI-models satisfying some collection of algebraic properties which we call a separation theory. We consider the following:

Partial functionality: w, w′ ∈ w1 ◦ w2 implies w = w′; Cancellativity: (w ◦ w1) ∩ (w ◦ w2) = ∅ implies w1 = w2;

11/ 26

slide-43
SLIDE 43

Separation theories

Applications of separation logic are typically based on BBI-models satisfying some collection of algebraic properties which we call a separation theory. We consider the following:

Partial functionality: w, w′ ∈ w1 ◦ w2 implies w = w′; Cancellativity: (w ◦ w1) ∩ (w ◦ w2) = ∅ implies w1 = w2; Single unit: w, w′ ∈ E implies w = w′;

11/ 26

slide-44
SLIDE 44

Separation theories

Applications of separation logic are typically based on BBI-models satisfying some collection of algebraic properties which we call a separation theory. We consider the following:

Partial functionality: w, w′ ∈ w1 ◦ w2 implies w = w′; Cancellativity: (w ◦ w1) ∩ (w ◦ w2) = ∅ implies w1 = w2; Single unit: w, w′ ∈ E implies w = w′; Indivisible units: (w ◦ w′) ∩ E = ∅ implies w ∈ E;

11/ 26

slide-45
SLIDE 45

Separation theories

Applications of separation logic are typically based on BBI-models satisfying some collection of algebraic properties which we call a separation theory. We consider the following:

Partial functionality: w, w′ ∈ w1 ◦ w2 implies w = w′; Cancellativity: (w ◦ w1) ∩ (w ◦ w2) = ∅ implies w1 = w2; Single unit: w, w′ ∈ E implies w = w′; Indivisible units: (w ◦ w′) ∩ E = ∅ implies w ∈ E; Disjointness: w ◦ w = ∅ implies w ∈ E;

11/ 26

slide-46
SLIDE 46

Separation theories

Applications of separation logic are typically based on BBI-models satisfying some collection of algebraic properties which we call a separation theory. We consider the following:

Partial functionality: w, w′ ∈ w1 ◦ w2 implies w = w′; Cancellativity: (w ◦ w1) ∩ (w ◦ w2) = ∅ implies w1 = w2; Single unit: w, w′ ∈ E implies w = w′; Indivisible units: (w ◦ w′) ∩ E = ∅ implies w ∈ E; Disjointness: w ◦ w = ∅ implies w ∈ E; Divisibility: for every w ∈ E there are w1, w2 / ∈ E such that w ∈ w1 ◦ w2;

11/ 26

slide-47
SLIDE 47

Separation theories

Applications of separation logic are typically based on BBI-models satisfying some collection of algebraic properties which we call a separation theory. We consider the following:

Partial functionality: w, w′ ∈ w1 ◦ w2 implies w = w′; Cancellativity: (w ◦ w1) ∩ (w ◦ w2) = ∅ implies w1 = w2; Single unit: w, w′ ∈ E implies w = w′; Indivisible units: (w ◦ w′) ∩ E = ∅ implies w ∈ E; Disjointness: w ◦ w = ∅ implies w ∈ E; Divisibility: for every w ∈ E there are w1, w2 / ∈ E such that w ∈ w1 ◦ w2; Cross-split property: whenever (a ◦ b) ∩ (c ◦ d) = ∅, there exist ac, ad, bc, bd such that a ∈ ac ◦ ad, b ∈ bc ◦ bd, c ∈ ac ◦ bc and d ∈ ad ◦ bd.

11/ 26

slide-48
SLIDE 48

Definable properties

A property P of BBI-models is said to be L-definable if there exists an L-formula A such that for all BBI-models M, A is valid in M ⇐ ⇒ M ∈ P.

12/ 26

slide-49
SLIDE 49

Definable properties

A property P of BBI-models is said to be L-definable if there exists an L-formula A such that for all BBI-models M, A is valid in M ⇐ ⇒ M ∈ P. Proposition The following separation theory properties are BBI-definable:

12/ 26

slide-50
SLIDE 50

Definable properties

A property P of BBI-models is said to be L-definable if there exists an L-formula A such that for all BBI-models M, A is valid in M ⇐ ⇒ M ∈ P. Proposition The following separation theory properties are BBI-definable: Indivisible units: I ∧ (A ∗ B) ⊢ A

12/ 26

slide-51
SLIDE 51

Definable properties

A property P of BBI-models is said to be L-definable if there exists an L-formula A such that for all BBI-models M, A is valid in M ⇐ ⇒ M ∈ P. Proposition The following separation theory properties are BBI-definable: Indivisible units: I ∧ (A ∗ B) ⊢ A Divisibility: ¬I ⊢ ¬I ∗ ¬I

12/ 26

slide-52
SLIDE 52

Definable properties

A property P of BBI-models is said to be L-definable if there exists an L-formula A such that for all BBI-models M, A is valid in M ⇐ ⇒ M ∈ P. Proposition The following separation theory properties are BBI-definable: Indivisible units: I ∧ (A ∗ B) ⊢ A Divisibility: ¬I ⊢ ¬I ∗ ¬I Proof. Just directly verify the needed biimplication.

12/ 26

slide-53
SLIDE 53

Undefinability via disjoint union

To show a property is not BBI-definable, we show it is not preserved by some validity-preserving model construction.

13/ 26

slide-54
SLIDE 54

Undefinability via disjoint union

To show a property is not BBI-definable, we show it is not preserved by some validity-preserving model construction. Definition If M1 = W1, ◦1, E1 and M2 = W2, ◦2, E2 are BBI-models and W1, W2 are disjoint then their disjoint union is given by

13/ 26

slide-55
SLIDE 55

Undefinability via disjoint union

To show a property is not BBI-definable, we show it is not preserved by some validity-preserving model construction. Definition If M1 = W1, ◦1, E1 and M2 = W2, ◦2, E2 are BBI-models and W1, W2 are disjoint then their disjoint union is given by M1 ⊎ M2

def

= W1 ∪ W2, ◦1 ∪ ◦2, E1 ∪ E2 (where ◦1 ∪ ◦2 is lifted to W1 ∪ W2 in the obvious way)

13/ 26

slide-56
SLIDE 56

Undefinability via disjoint union

To show a property is not BBI-definable, we show it is not preserved by some validity-preserving model construction. Definition If M1 = W1, ◦1, E1 and M2 = W2, ◦2, E2 are BBI-models and W1, W2 are disjoint then their disjoint union is given by M1 ⊎ M2

def

= W1 ∪ W2, ◦1 ∪ ◦2, E1 ∪ E2 (where ◦1 ∪ ◦2 is lifted to W1 ∪ W2 in the obvious way) Proposition If A is valid in M1 and in M2, and M1 ⊎ M2 is defined, then it is also valid in M1 ⊎ M2.

13/ 26

slide-57
SLIDE 57

Undefinability via disjoint union

To show a property is not BBI-definable, we show it is not preserved by some validity-preserving model construction. Definition If M1 = W1, ◦1, E1 and M2 = W2, ◦2, E2 are BBI-models and W1, W2 are disjoint then their disjoint union is given by M1 ⊎ M2

def

= W1 ∪ W2, ◦1 ∪ ◦2, E1 ∪ E2 (where ◦1 ∪ ◦2 is lifted to W1 ∪ W2 in the obvious way) Proposition If A is valid in M1 and in M2, and M1 ⊎ M2 is defined, then it is also valid in M1 ⊎ M2. Proof. Structural induction on A.

13/ 26

slide-58
SLIDE 58

Undefinability of single-unit property

Lemma Let P be a property of BBI-models, and suppose that there exist BBI-models M1 and M2 such that M1, M2 ∈ P but M1 ⊎ M2 ∈ P. Then P is not BBI-definable.

14/ 26

slide-59
SLIDE 59

Undefinability of single-unit property

Lemma Let P be a property of BBI-models, and suppose that there exist BBI-models M1 and M2 such that M1, M2 ∈ P but M1 ⊎ M2 ∈ P. Then P is not BBI-definable. Proof. If P were definable via A say, then A would be true in M1 and M2 but not in M1 ⊎ M2, contradicting previous Proposition.

14/ 26

slide-60
SLIDE 60

Undefinability of single-unit property

Lemma Let P be a property of BBI-models, and suppose that there exist BBI-models M1 and M2 such that M1, M2 ∈ P but M1 ⊎ M2 ∈ P. Then P is not BBI-definable. Proof. If P were definable via A say, then A would be true in M1 and M2 but not in M1 ⊎ M2, contradicting previous Proposition. Theorem The single unit property is not BBI-definable.

14/ 26

slide-61
SLIDE 61

Undefinability of single-unit property

Lemma Let P be a property of BBI-models, and suppose that there exist BBI-models M1 and M2 such that M1, M2 ∈ P but M1 ⊎ M2 ∈ P. Then P is not BBI-definable. Proof. If P were definable via A say, then A would be true in M1 and M2 but not in M1 ⊎ M2, contradicting previous Proposition. Theorem The single unit property is not BBI-definable. Proof. The disjoint union of any two single-unit BBI-models (e.g. two copies of N under addition) is not a single-unit model, so we are done by the above Lemma.

14/ 26

slide-62
SLIDE 62

Undefinability via bounded morphisms

We adapt the notion of bounded morphism from modal logic to BBI-models, and can show it is also validity-preserving.

15/ 26

slide-63
SLIDE 63

Undefinability via bounded morphisms

We adapt the notion of bounded morphism from modal logic to BBI-models, and can show it is also validity-preserving. Theorem None of the following separation theory properties (or any combination thereof) is BBI-definable:

15/ 26

slide-64
SLIDE 64

Undefinability via bounded morphisms

We adapt the notion of bounded morphism from modal logic to BBI-models, and can show it is also validity-preserving. Theorem None of the following separation theory properties (or any combination thereof) is BBI-definable:

  • functionality;

15/ 26

slide-65
SLIDE 65

Undefinability via bounded morphisms

We adapt the notion of bounded morphism from modal logic to BBI-models, and can show it is also validity-preserving. Theorem None of the following separation theory properties (or any combination thereof) is BBI-definable:

  • functionality;
  • cancellativity;

15/ 26

slide-66
SLIDE 66

Undefinability via bounded morphisms

We adapt the notion of bounded morphism from modal logic to BBI-models, and can show it is also validity-preserving. Theorem None of the following separation theory properties (or any combination thereof) is BBI-definable:

  • functionality;
  • cancellativity;
  • disjointness.

15/ 26

slide-67
SLIDE 67

Undefinability via bounded morphisms

We adapt the notion of bounded morphism from modal logic to BBI-models, and can show it is also validity-preserving. Theorem None of the following separation theory properties (or any combination thereof) is BBI-definable:

  • functionality;
  • cancellativity;
  • disjointness.

Proof. E.g., for functionality, we build models M and M′ such that there is a bounded morphism from M to M′, but M is functional while M′ is not. See paper for details.

15/ 26

slide-68
SLIDE 68

Part IV Hybrid extensions of BBI

16/ 26

slide-69
SLIDE 69

HyBBI: a hybrid extension of BBI

  • We saw that BBI is not expressive enough to accurately

capture many separation theories.

17/ 26

slide-70
SLIDE 70

HyBBI: a hybrid extension of BBI

  • We saw that BBI is not expressive enough to accurately

capture many separation theories.

  • Idea: conservatively increase the expressivity of BBI, using

machinery of hybrid logic.

17/ 26

slide-71
SLIDE 71

HyBBI: a hybrid extension of BBI

  • We saw that BBI is not expressive enough to accurately

capture many separation theories.

  • Idea: conservatively increase the expressivity of BBI, using

machinery of hybrid logic.

  • HyBBI extends the language of BBI by: any nominal ℓ is a

formula, and so is any formula of the form @ℓA.

17/ 26

slide-72
SLIDE 72

HyBBI: a hybrid extension of BBI

  • We saw that BBI is not expressive enough to accurately

capture many separation theories.

  • Idea: conservatively increase the expressivity of BBI, using

machinery of hybrid logic.

  • HyBBI extends the language of BBI by: any nominal ℓ is a

formula, and so is any formula of the form @ℓA.

  • Valuations interpret nominals as individual worlds in a

BBI-model.

17/ 26

slide-73
SLIDE 73

HyBBI: a hybrid extension of BBI

  • We saw that BBI is not expressive enough to accurately

capture many separation theories.

  • Idea: conservatively increase the expressivity of BBI, using

machinery of hybrid logic.

  • HyBBI extends the language of BBI by: any nominal ℓ is a

formula, and so is any formula of the form @ℓA.

  • Valuations interpret nominals as individual worlds in a

BBI-model.

  • We extend the forcing relation by:

M, w | =ρ ℓ ⇔ w = ρ(ℓ)

17/ 26

slide-74
SLIDE 74

HyBBI: a hybrid extension of BBI

  • We saw that BBI is not expressive enough to accurately

capture many separation theories.

  • Idea: conservatively increase the expressivity of BBI, using

machinery of hybrid logic.

  • HyBBI extends the language of BBI by: any nominal ℓ is a

formula, and so is any formula of the form @ℓA.

  • Valuations interpret nominals as individual worlds in a

BBI-model.

  • We extend the forcing relation by:

M, w | =ρ ℓ ⇔ w = ρ(ℓ) M, w | =ρ @ℓA ⇔ M, ρ(ℓ) | =ρ A

17/ 26

slide-75
SLIDE 75

HyBBI: a hybrid extension of BBI

  • We saw that BBI is not expressive enough to accurately

capture many separation theories.

  • Idea: conservatively increase the expressivity of BBI, using

machinery of hybrid logic.

  • HyBBI extends the language of BBI by: any nominal ℓ is a

formula, and so is any formula of the form @ℓA.

  • Valuations interpret nominals as individual worlds in a

BBI-model.

  • We extend the forcing relation by:

M, w | =ρ ℓ ⇔ w = ρ(ℓ) M, w | =ρ @ℓA ⇔ M, ρ(ℓ) | =ρ A Easy to see that HyBBI is a conservative extension of BBI.

17/ 26

slide-76
SLIDE 76

Definable properties in HyBBI

A formula is pure if it contains no propositional variables. Pure formulas have particularly nice properties wrt. completeness.

18/ 26

slide-77
SLIDE 77

Definable properties in HyBBI

A formula is pure if it contains no propositional variables. Pure formulas have particularly nice properties wrt. completeness. Theorem The following separation theory properties are HyBBI-definable, using pure formulas:

18/ 26

slide-78
SLIDE 78

Definable properties in HyBBI

A formula is pure if it contains no propositional variables. Pure formulas have particularly nice properties wrt. completeness. Theorem The following separation theory properties are HyBBI-definable, using pure formulas: Functionality: @ℓ(j ∗ k) ∧ @ℓ′(j ∗ k) ⊢ @ℓℓ′

18/ 26

slide-79
SLIDE 79

Definable properties in HyBBI

A formula is pure if it contains no propositional variables. Pure formulas have particularly nice properties wrt. completeness. Theorem The following separation theory properties are HyBBI-definable, using pure formulas: Functionality: @ℓ(j ∗ k) ∧ @ℓ′(j ∗ k) ⊢ @ℓℓ′ Cancellativity: ℓ ∗ j ∧ ℓ ∗ k ⊢ @jk

18/ 26

slide-80
SLIDE 80

Definable properties in HyBBI

A formula is pure if it contains no propositional variables. Pure formulas have particularly nice properties wrt. completeness. Theorem The following separation theory properties are HyBBI-definable, using pure formulas: Functionality: @ℓ(j ∗ k) ∧ @ℓ′(j ∗ k) ⊢ @ℓℓ′ Cancellativity: ℓ ∗ j ∧ ℓ ∗ k ⊢ @jk Single unit: @ℓ1I ∧ @ℓ2I ⊢ @ℓ1ℓ2

18/ 26

slide-81
SLIDE 81

Definable properties in HyBBI

A formula is pure if it contains no propositional variables. Pure formulas have particularly nice properties wrt. completeness. Theorem The following separation theory properties are HyBBI-definable, using pure formulas: Functionality: @ℓ(j ∗ k) ∧ @ℓ′(j ∗ k) ⊢ @ℓℓ′ Cancellativity: ℓ ∗ j ∧ ℓ ∗ k ⊢ @jk Single unit: @ℓ1I ∧ @ℓ2I ⊢ @ℓ1ℓ2 Disjointness: ℓ ∗ ℓ ⊢ I ∧ ℓ

18/ 26

slide-82
SLIDE 82

Definable properties in HyBBI

A formula is pure if it contains no propositional variables. Pure formulas have particularly nice properties wrt. completeness. Theorem The following separation theory properties are HyBBI-definable, using pure formulas: Functionality: @ℓ(j ∗ k) ∧ @ℓ′(j ∗ k) ⊢ @ℓℓ′ Cancellativity: ℓ ∗ j ∧ ℓ ∗ k ⊢ @jk Single unit: @ℓ1I ∧ @ℓ2I ⊢ @ℓ1ℓ2 Disjointness: ℓ ∗ ℓ ⊢ I ∧ ℓ Proof. Easy verifications!

18/ 26

slide-83
SLIDE 83

A word about cross-split

We have brushed over the cross-split property:

(a ◦ b) ∩ (c ◦ d) = ∅, implies ∃ac, ad, bc, bd with a ∈ ac ◦ ad, b ∈ bc ◦ bd, c ∈ ac ◦ bc, d ∈ ad ◦ bd.

19/ 26

slide-84
SLIDE 84

A word about cross-split

We have brushed over the cross-split property:

(a ◦ b) ∩ (c ◦ d) = ∅, implies ∃ac, ad, bc, bd with a ∈ ac ◦ ad, b ∈ bc ◦ bd, c ∈ ac ◦ bc, d ∈ ad ◦ bd.

a b ac ad bd bc c d

19/ 26

slide-85
SLIDE 85

A word about cross-split

We have brushed over the cross-split property:

(a ◦ b) ∩ (c ◦ d) = ∅, implies ∃ac, ad, bc, bd with a ∈ ac ◦ ad, b ∈ bc ◦ bd, c ∈ ac ◦ bc, d ∈ ad ◦ bd.

a b ac ad bd bc c d

We conjecture this is not definable in BBI or in HyBBI.

19/ 26

slide-86
SLIDE 86

A word about cross-split

We have brushed over the cross-split property:

(a ◦ b) ∩ (c ◦ d) = ∅, implies ∃ac, ad, bc, bd with a ∈ ac ◦ ad, b ∈ bc ◦ bd, c ∈ ac ◦ bc, d ∈ ad ◦ bd.

a b ac ad bd bc c d

We conjecture this is not definable in BBI or in HyBBI. If we add the ↓ binder to HyBBI, defined by M, w | =ρ ↓ℓ. A ⇔ M, w | =ρ[ℓ:=w] A

19/ 26

slide-87
SLIDE 87

A word about cross-split

We have brushed over the cross-split property:

(a ◦ b) ∩ (c ◦ d) = ∅, implies ∃ac, ad, bc, bd with a ∈ ac ◦ ad, b ∈ bc ◦ bd, c ∈ ac ◦ bc, d ∈ ad ◦ bd.

a b ac ad bd bc c d

We conjecture this is not definable in BBI or in HyBBI. If we add the ↓ binder to HyBBI, defined by M, w | =ρ ↓ℓ. A ⇔ M, w | =ρ[ℓ:=w] A then cross-split is definable as the pure formula

(a ∗ b) ∧ (c ∗ d) ⊢ @a(⊤ ∗ ↓ac. @a(⊤ ∗ ↓ad. @a(ac ∗ ad) ∧ @b(⊤ ∗ ↓bc. @b(⊤ ∗ ↓bd. @b(bc ∗ bd) ∧ @c(ac ∗ bc) ∧ @d(ad ∗ bd)))))

19/ 26

slide-88
SLIDE 88

Part V Parametric completeness for HyBBI(↓)

20/ 26

slide-89
SLIDE 89

Axiomatic proof systems for HyBBI(↓)

Our axiom system KHyBBI(↓) is chosen to make the completeness proof as clean as possible.

21/ 26

slide-90
SLIDE 90

Axiomatic proof systems for HyBBI(↓)

Our axiom system KHyBBI(↓) is chosen to make the completeness proof as clean as possible. Some example axioms and rules:

(K@) @ℓ(A → B) ⊢ @ℓA → @ℓB

21/ 26

slide-91
SLIDE 91

Axiomatic proof systems for HyBBI(↓)

Our axiom system KHyBBI(↓) is chosen to make the completeness proof as clean as possible. Some example axioms and rules:

(K@) @ℓ(A → B) ⊢ @ℓA → @ℓB (@-intro) ℓ ∧ A ⊢ @ℓA

21/ 26

slide-92
SLIDE 92

Axiomatic proof systems for HyBBI(↓)

Our axiom system KHyBBI(↓) is chosen to make the completeness proof as clean as possible. Some example axioms and rules:

(K@) @ℓ(A → B) ⊢ @ℓA → @ℓB (@-intro) ℓ ∧ A ⊢ @ℓA (Bridge ∗) @ℓ(k ∗ k′) ∧ @kA ∧ @k′B ⊢ @ℓ(A ∗ B)

21/ 26

slide-93
SLIDE 93

Axiomatic proof systems for HyBBI(↓)

Our axiom system KHyBBI(↓) is chosen to make the completeness proof as clean as possible. Some example axioms and rules:

(K@) @ℓ(A → B) ⊢ @ℓA → @ℓB (@-intro) ℓ ∧ A ⊢ @ℓA (Bridge ∗) @ℓ(k ∗ k′) ∧ @kA ∧ @k′B ⊢ @ℓ(A ∗ B) (Bind ↓ . ) ⊢ @j(↓ℓ. B ↔ B[j/ℓ])

21/ 26

slide-94
SLIDE 94

Axiomatic proof systems for HyBBI(↓)

Our axiom system KHyBBI(↓) is chosen to make the completeness proof as clean as possible. Some example axioms and rules:

(K@) @ℓ(A → B) ⊢ @ℓA → @ℓB (@-intro) ℓ ∧ A ⊢ @ℓA (Bridge ∗) @ℓ(k ∗ k′) ∧ @kA ∧ @k′B ⊢ @ℓ(A ∗ B) (Bind ↓ . ) ⊢ @j(↓ℓ. B ↔ B[j/ℓ]) @ℓ(k ∗ k′) ∧ @kA ∧ @k′B ⊢ C k, k′ not in A, B, C or {ℓ} (Paste ∗) @ℓ(A ∗ B) ⊢ C

21/ 26

slide-95
SLIDE 95

Axiomatic proof systems for HyBBI(↓)

Our axiom system KHyBBI(↓) is chosen to make the completeness proof as clean as possible. Some example axioms and rules:

(K@) @ℓ(A → B) ⊢ @ℓA → @ℓB (@-intro) ℓ ∧ A ⊢ @ℓA (Bridge ∗) @ℓ(k ∗ k′) ∧ @kA ∧ @k′B ⊢ @ℓ(A ∗ B) (Bind ↓ . ) ⊢ @j(↓ℓ. B ↔ B[j/ℓ]) @ℓ(k ∗ k′) ∧ @kA ∧ @k′B ⊢ C k, k′ not in A, B, C or {ℓ} (Paste ∗) @ℓ(A ∗ B) ⊢ C

Proposition (Soundness) Any KHyBBI(↓)-provable sequent is valid in all BBI-models.

21/ 26

slide-96
SLIDE 96

Completeness

Standard modal logic approach to completeness via maximal consistent sets (MCSs):

22/ 26

slide-97
SLIDE 97

Completeness

Standard modal logic approach to completeness via maximal consistent sets (MCSs):

  • 1. Show that any consistent set of formulas can be extended

to an MCS (known as the Lindenbaum construction);

22/ 26

slide-98
SLIDE 98

Completeness

Standard modal logic approach to completeness via maximal consistent sets (MCSs):

  • 1. Show that any consistent set of formulas can be extended

to an MCS (known as the Lindenbaum construction);

  • 2. Define a canonical model whose worlds are MCSs, and a

valuation s.t. proposition P is true at Γ iff P ∈ Γ.

22/ 26

slide-99
SLIDE 99

Completeness

Standard modal logic approach to completeness via maximal consistent sets (MCSs):

  • 1. Show that any consistent set of formulas can be extended

to an MCS (known as the Lindenbaum construction);

  • 2. Define a canonical model whose worlds are MCSs, and a

valuation s.t. proposition P is true at Γ iff P ∈ Γ.

  • 3. Truth Lemma: A is true at Γ iff A ∈ Γ for any formula A.

22/ 26

slide-100
SLIDE 100

Completeness

Standard modal logic approach to completeness via maximal consistent sets (MCSs):

  • 1. Show that any consistent set of formulas can be extended

to an MCS (known as the Lindenbaum construction);

  • 2. Define a canonical model whose worlds are MCSs, and a

valuation s.t. proposition P is true at Γ iff P ∈ Γ.

  • 3. Truth Lemma: A is true at Γ iff A ∈ Γ for any formula A.
  • 4. Now, if A is unprovable, {¬A} is consistent so there is an

MCS Γ ⊃ {¬A}. Then A is false at Γ in the canonical model, hence invalid.

22/ 26

slide-101
SLIDE 101

Completeness

Standard modal logic approach to completeness via maximal consistent sets (MCSs):

  • 1. Show that any consistent set of formulas can be extended

to an MCS (known as the Lindenbaum construction);

  • 2. Define a canonical model whose worlds are MCSs, and a

valuation s.t. proposition P is true at Γ iff P ∈ Γ.

  • 3. Truth Lemma: A is true at Γ iff A ∈ Γ for any formula A.
  • 4. Now, if A is unprovable, {¬A} is consistent so there is an

MCS Γ ⊃ {¬A}. Then A is false at Γ in the canonical model, hence invalid. (In our case, we also have to show that the canonical model is really a BBI-model.)

22/ 26

slide-102
SLIDE 102

Parametric completeness

  • Call a BBI-model M = W, ◦, E named by ρ iff for all

w ∈ W there is a nominal ℓ with ρ(ℓ) = w.

23/ 26

slide-103
SLIDE 103

Parametric completeness

  • Call a BBI-model M = W, ◦, E named by ρ iff for all

w ∈ W there is a nominal ℓ with ρ(ℓ) = w. Lemma Let M be named by ρ and let A be a pure formula. If M, w | =ρ A[θ] for any nominal substitution θ and w ∈ W, then A is valid in M.

23/ 26

slide-104
SLIDE 104

Parametric completeness

  • Call a BBI-model M = W, ◦, E named by ρ iff for all

w ∈ W there is a nominal ℓ with ρ(ℓ) = w. Lemma Let M be named by ρ and let A be a pure formula. If M, w | =ρ A[θ] for any nominal substitution θ and w ∈ W, then A is valid in M.

  • So, for an extension of KHyBBI(↓) + Ax with pure axioms

Ax, we build a canonical model M named by our valuation.

23/ 26

slide-105
SLIDE 105

Parametric completeness

  • Call a BBI-model M = W, ◦, E named by ρ iff for all

w ∈ W there is a nominal ℓ with ρ(ℓ) = w. Lemma Let M be named by ρ and let A be a pure formula. If M, w | =ρ A[θ] for any nominal substitution θ and w ∈ W, then A is valid in M.

  • So, for an extension of KHyBBI(↓) + Ax with pure axioms

Ax, we build a canonical model M named by our valuation.

  • By the above Lemma + MCS properties, the Ax are valid

in M.

23/ 26

slide-106
SLIDE 106

Parametric completeness

  • Call a BBI-model M = W, ◦, E named by ρ iff for all

w ∈ W there is a nominal ℓ with ρ(ℓ) = w. Lemma Let M be named by ρ and let A be a pure formula. If M, w | =ρ A[θ] for any nominal substitution θ and w ∈ W, then A is valid in M.

  • So, for an extension of KHyBBI(↓) + Ax with pure axioms

Ax, we build a canonical model M named by our valuation.

  • By the above Lemma + MCS properties, the Ax are valid

in M.

  • That is, KHyBBI(↓) + Ax is complete for the models s.t. Ax!

23/ 26

slide-107
SLIDE 107

Statement of completeness

Following the above approach (non-trivial; details in paper) we

  • btain the following, for any set of pure axioms Ax:

24/ 26

slide-108
SLIDE 108

Statement of completeness

Following the above approach (non-trivial; details in paper) we

  • btain the following, for any set of pure axioms Ax:

Theorem (Parametric completeness) If A is valid in the class of BBI-models satisfying Ax, then it is provable in KHyBBI(↓) + Ax.

24/ 26

slide-109
SLIDE 109

Statement of completeness

Following the above approach (non-trivial; details in paper) we

  • btain the following, for any set of pure axioms Ax:

Theorem (Parametric completeness) If A is valid in the class of BBI-models satisfying Ax, then it is provable in KHyBBI(↓) + Ax. Corollary By a suitable choice of axioms, we have a sound and complete axiomatic proof system for any given separation theory from our collection.

24/ 26

slide-110
SLIDE 110

Conclusions and future work

  • BBI is insufficiently expressive to capture the classes of

models of typical practical interest.

25/ 26

slide-111
SLIDE 111

Conclusions and future work

  • BBI is insufficiently expressive to capture the classes of

models of typical practical interest.

  • One way to gain this expressivity is to incorporate naming

machinery from hybrid logic.

25/ 26

slide-112
SLIDE 112

Conclusions and future work

  • BBI is insufficiently expressive to capture the classes of

models of typical practical interest.

  • One way to gain this expressivity is to incorporate naming

machinery from hybrid logic.

  • We have parametric completeness for any set of axioms

expressed as pure formulas.

25/ 26

slide-113
SLIDE 113

Conclusions and future work

  • BBI is insufficiently expressive to capture the classes of

models of typical practical interest.

  • One way to gain this expressivity is to incorporate naming

machinery from hybrid logic.

  • We have parametric completeness for any set of axioms

expressed as pure formulas.

  • In particular, this yields complete proof systems for any

separation theory from those we consider.

25/ 26

slide-114
SLIDE 114

Conclusions and future work

  • BBI is insufficiently expressive to capture the classes of

models of typical practical interest.

  • One way to gain this expressivity is to incorporate naming

machinery from hybrid logic.

  • We have parametric completeness for any set of axioms

expressed as pure formulas.

  • In particular, this yields complete proof systems for any

separation theory from those we consider.

  • Future work on our hybrid logics could include

25/ 26

slide-115
SLIDE 115

Conclusions and future work

  • BBI is insufficiently expressive to capture the classes of

models of typical practical interest.

  • One way to gain this expressivity is to incorporate naming

machinery from hybrid logic.

  • We have parametric completeness for any set of axioms

expressed as pure formulas.

  • In particular, this yields complete proof systems for any

separation theory from those we consider.

  • Future work on our hybrid logics could include
  • identification of decidable fragments;

25/ 26

slide-116
SLIDE 116

Conclusions and future work

  • BBI is insufficiently expressive to capture the classes of

models of typical practical interest.

  • One way to gain this expressivity is to incorporate naming

machinery from hybrid logic.

  • We have parametric completeness for any set of axioms

expressed as pure formulas.

  • In particular, this yields complete proof systems for any

separation theory from those we consider.

  • Future work on our hybrid logics could include
  • identification of decidable fragments;
  • search for nice structural proof theories;

25/ 26

slide-117
SLIDE 117

Conclusions and future work

  • BBI is insufficiently expressive to capture the classes of

models of typical practical interest.

  • One way to gain this expressivity is to incorporate naming

machinery from hybrid logic.

  • We have parametric completeness for any set of axioms

expressed as pure formulas.

  • In particular, this yields complete proof systems for any

separation theory from those we consider.

  • Future work on our hybrid logics could include
  • identification of decidable fragments;
  • search for nice structural proof theories;
  • investigate possible applications to program analysis.

25/ 26

slide-118
SLIDE 118

Thanks for listening!

Prelim version of paper available from authors’ webpages:

  • J. Brotherston and J. Villard.

Parametric completeness for separation theories. To appear at POPL’14.

26/ 26