Resolution-Based Uniform Interpolation and Forgetting for Expressive - - PowerPoint PPT Presentation

resolution based uniform interpolation and forgetting for
SMART_READER_LITE
LIVE PREVIEW

Resolution-Based Uniform Interpolation and Forgetting for Expressive - - PowerPoint PPT Presentation

Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Patrick Koopmann December 12, 2017 1/60 Resolution-Based Uniform


slide-1
SLIDE 1

1/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics

Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics

Patrick Koopmann December 12, 2017

slide-2
SLIDE 2

2/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction

Forgetting

Predicate forgetting Given L sentence φ, predicate P, compute φ−P s.t. P does not occur in φ−P for every L sentence ψ without P:

φ−P | = ψ iff φ | = ψ

slide-3
SLIDE 3

2/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction

Forgetting

Predicate forgetting Given L sentence φ, predicate P, compute φ−P s.t. P does not occur in φ−P for every L sentence ψ without P:

φ−P | = ψ iff φ | = ψ

Theorem for first order logic: Iff φ−P exists, then φ−P ≡ ∃P.φ

slide-4
SLIDE 4

3/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction

Uniform Interpolation

Craig Interpolation: Given F | = G, compute interpolant I s.t.

F | = I, I | = G I contains only symbols common to F and G

slide-5
SLIDE 5

3/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction

Uniform Interpolation

Craig Interpolation: Given F | = G, compute interpolant I s.t.

F | = I, I | = G I contains only symbols common to F and G

Uniform Interpolation Given

formula F signature Σ of symbols

compute uniform interpolant (UI) F Σ s.t.

F Σ only uses symbols from Σ for every ψ in Σ, F | = ψ iff F Σ | = ψ

slide-6
SLIDE 6

3/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction

Uniform Interpolation

Craig Interpolation: Given F | = G, compute interpolant I s.t.

F | = I, I | = G I contains only symbols common to F and G

Uniform Interpolation Given

formula F signature Σ of symbols

compute uniform interpolant (UI) F Σ s.t.

F Σ only uses symbols from Σ for every ψ in Σ, F | = ψ iff F Σ | = ψ

Dual to Forgetting: UI for Σ ⇔ forget everything not in Σ

slide-7
SLIDE 7

4/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction

Uniform Interpolation

Input Ontology

Male ⊓ Female ⊑ ⊥ ⊤ ⊑ ∀hasParent.Parent Parent ⊑ Male ⊔ Female Father ≡ Parent ⊓ Male Mother ≡ Parent ⊓ Female Orphan ≡ ∀hasParent.¬Alive hasParent(peter, thomas) Male(thomas) Alive(thomas) hasParent(thomas, ingrid)

Uniform Interpolant

Father ⊓ Mother ⊑ ⊥ ¬Orphan(peter) Father(thomas) (Father ⊔ Mother)(ingrid)

slide-8
SLIDE 8

5/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction Motivation

Ontology Reuse

Big General Ontology New Ontology UI

slide-9
SLIDE 9

6/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction Motivation

Explore Hidden Relations

Select concept and role names of interest Make relations between them explicit

slide-10
SLIDE 10

7/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction Motivation

Logical Difference

v1 v2 v3 v4 v5 ui2 ui2 Compare ontology versions Capture all new entailments in signature Σ:

logDiff(T1, T2, Σ) = {α ∈ T Σ

2 | T1 |

= α}

Σ: common signature, or set of “core” symbols

slide-11
SLIDE 11

8/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction Motivation

Module Extraction

UI Subsumption modules: Subset of the ontology preserving entailments in signature UI + axiom pinpointing/justification

slide-12
SLIDE 12

9/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction Motivation

Applications of UI

Further applications:

Multi-agent systems Conflict resolution Abduction (see later talk)

Similar applications in modal logics

Most techniques presented here also apply to modal logics

slide-13
SLIDE 13

9/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Introduction Motivation

Applications of UI

Further applications:

Multi-agent systems Conflict resolution Abduction (see later talk)

Similar applications in modal logics

Most techniques presented here also apply to modal logics

Not an application: modal correspondence

Apply SOQE to obtain frame properties: ∀p : p → p ⇐ ⇒ ∀xyz.(r(x, y) ∧ r(y, z) → r(x, z)) Requires elimination to preserve all models UI only preserves entailments in language under consideration

slide-14
SLIDE 14

10/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Preliminaries

Expressive Description Logics

Concepts ALC ⊥ | ⊤ | A | ¬C | C ⊔ D | C ⊓ D | ∃r.C | ∀r.C TBox Axioms ALC C ⊑ D | C ≡ D ABox Axioms ALC C(a) | r(a, b) ALCH: Role Hierarchies r ⊑ s ALCF: Local Functionality ≤1r.⊤, ≥2r.⊤ SH: Transitive Roles trans(r) SHQ: Number Restrictions ≥nr.C, ≤nr.C SHI: Inverse Roles r−1

slide-15
SLIDE 15

11/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Preliminaries

Example

UI of Pizza ontology, for 10 most frequent concept and role names

∃hasTopping.⊤ ⊑ Pizza ⊤ ⊑ ∀hasTopping.PizzaTopping ∃hasSpiciness.(Pizza ⊔ PizzaTopping) ⊑ ⊥ NamedPizza ⊑ Pizza VegetableTopping ⊑ PizzaTopping MozzarellaTopping ⊑ PizzaTopping ⊓ ∃hasSpiciness.Mild OliveTopping ⊑ VegetableTopping ⊓ ∃hasSpiciness.Mild TomatoTopping ⊑ VegetableTopping ⊓ ∃hasSpiciness.Mild Pizza ⊓ Mild ⊑ ⊥ Pizza ⊓ PizzaTopping ⊑ ⊥ PizzaTopping ⊓ Mild ⊑ ⊥ MozzarellaTopping ⊓ VegetableTopping ⊑ ⊥ OliveTopping ⊓ TomatoTopping ⊑ ⊥

slide-16
SLIDE 16

12/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Preliminaries

Relation to Modal Logic

There is a direct relation to multi-modal logics:

∃r.C corresponds to ♦r.C ′ ∀r.C corresponds to r.C ′ ∃r −.C corresponds to ♦⌣

r .C ′

number restrictions correspond to graded modalities transitivity as in S4 for selected roles

Concepts correspond to modal logic formulae But: TBox axioms hold globally

slide-17
SLIDE 17

13/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Preliminaries Uniform Interpolation

Relation to Second-Order Quantifier Elimination

In first order logic, forgetting corresponds to SOQE: Iff φ−P exists, then φ−P ≡ ∃P.φ This does not apply in the logics considered Consider ⊤ ⊑ ∃r.A ⊓ ∃r.¬A Forgetting A from the FO-representation yields: ∃A.∀x∃yz.

  • r(x, y) ∧ A(y) ∧ r(x, z) ∧ ¬A(z)
  • ≡ ∀x∃yz.
  • r(x, y) ∧ r(x, z) ∧ y = z
  • In ALC, the UI is just:

⊤ ⊑ ∃r.⊤

slide-18
SLIDE 18

14/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Preliminaries Uniform Interpolation

Challenges Uniform Interpolation

A lot of modal logics have uniform interpolation:

K, IPC, GL, S4Grz [Visser, 1996] modal µ-calculus [D’Agostino, Hollenberg, 1996]

In most DLs, TBoxes break this property

Consider: A ⊑ B B ⊑ ∃r.B Σ = {A, r} UI for Σ: A ⊑ ∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r.∃r. . . .

slide-19
SLIDE 19

15/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Preliminaries Uniform Interpolation

Challenges Uniform Interpolation in DLs

In general, we may have to approximate or to use more expressive DLs Deciding existence of UIs in ALC is 2ExpTime-complete A second challenge is size

If exists, T Σ can have size O

  • 222|T |

Already for lightweight DL EL ALC: [Lutz, Wolter, 2010], EL: [Nikitina, Rudolph, 2014]

slide-20
SLIDE 20

16/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Computing Uniform Interpolants

Computing Uniform Interpolants Practically

Can we compute uniform interpolants practically? Upper bound on size directly gives us a method for computing UIs:

1 Iterate over all axioms in signature of size 222|T| 2 Collect all those that are entailed

⇒ However, this is not practical at all!

slide-21
SLIDE 21

17/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Computing Uniform Interpolants

Using Tableaux to Compute Uniform Interpolants

First more “practical” idea: use tableaux Directly generate entailed axioms Each tree corresponds to disjunct in result Different edges for ∃- and ∀-restrictions

∃r.B, ∀s.(C ⊔ ∃r.D) B ∃r C ⊔ ∃r.D C ∀s ∃r.B, ∀s.(C ⊔ ∃r.D) B ∃r C ⊔ ∃r.D ∃r.D ∀s D ∃r

Modal Logic: [Kracht, 2007], ALC: [Wang, Wang et al, 2010]

slide-22
SLIDE 22

18/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Computing Uniform Interpolants

Using Tableaux to Compute Uniform Interpolants

Obtain ⊤ ⊑ C1 ⊔ . . . ⊔ Cn from tableau Each Ci constructed from one tree Only keep what is in signature With TBox, tableau might not be finite Allows to compute arbitrary approximations Equivalence test to check for termination

last approximation equivalent to current

slide-23
SLIDE 23

19/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Computing Uniform Interpolants

Using Tableaux to Compute Uniform Interpolants

Disadvantages of approach: Result big disjunction

Unusual representation for ontologies

Expansions not goal-oriented Expensive termination condition

slide-24
SLIDE 24

20/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation

Using Resolution to Compute Uniform Interpolation

Resolution addresses short-comings Usually works on conjunctive normal forms

Conjunction of disjunctions Closer to typical shape of ontologies

Infers information on specific symbol

  • Prop. Resolution

C1 ∨ p C2 ∨ ¬p C1 ∨ C2 First Order Resolution C1 ∨ P(s1, . . . , sn) C2 ∨ ¬P(t1, . . . , tn) C1 ∨ C2 ∨ s1 = t1 ∨ . . . ∨ sn = tn

slide-25
SLIDE 25

21/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with SCAN

Using SCAN to Compute Uniform Interpolants

Main idea used by SOQE method SCAN [Gabbay, Ohlbach, 1992]

1 Clausify input formula 2 Infer all inferences on predicate to eliminate 3 Filter out occurrences of that predicate 4 Deskolemise resulting set of clauses

slide-26
SLIDE 26

22/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with SCAN

Using SCAN to Compute Uniform Interpolants

Let’s try it! We want to forget B from following ontology: A ⊑ ∀r.B C ⊑ ∃r.¬B

slide-27
SLIDE 27

22/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with SCAN

Using SCAN to Compute Uniform Interpolants

Let’s try it! We want to forget B from following ontology: A ⊑ ∀r.B C ⊑ ∃r.¬B Representation as First-Order clauses: 1.¬A(x) ∨ ¬r(x, y) ∨ B(y) 2.¬C(x) ∨ r(x, f (x)) 3.¬C(x) ∨ ¬B(f (x))

slide-28
SLIDE 28

23/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with SCAN

Using SCAN to Compute Uniform Interpolants

Representation as First-Order clauses:

  • 1. ¬A(x) ∨ ¬r(x, y) ∨ B(y)
  • 2. ¬C(x) ∨ r(x, f (x))
  • 3. ¬C(x) ∨ ¬B(f (x))

Inferences on B:

  • 4. ¬A(x) ∨ ¬r(x, y) ∨ ¬C(x) ∨ y = f (x)

(Resolution 1,3)

  • 5. ¬A(x) ∨ ¬r(x, f (x)) ∨ ¬C(x)

(Constr. Elim.)

slide-29
SLIDE 29

23/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with SCAN

Using SCAN to Compute Uniform Interpolants

Representation as First-Order clauses:

  • 1. ¬A(x) ∨ ¬r(x, y) ∨ B(y)
  • 2. ¬C(x) ∨ r(x, f (x))
  • 3. ¬C(x) ∨ ¬B(f (x))

Inferences on B:

  • 4. ¬A(x) ∨ ¬r(x, y) ∨ ¬C(x) ∨ y = f (x)

(Resolution 1,3)

  • 5. ¬A(x) ∨ ¬r(x, f (x)) ∨ ¬C(x)

(Constr. Elim.) ⇒ SCAN terminates, but we have insufficient information for UI!

slide-30
SLIDE 30

24/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with SCAN

Using SCAN to Compute Uniform Interpolants

Representation as First-Order clauses:

  • 1. ¬A(x) ∨ ¬r(x, y) ∨ B(y)
  • 2. ¬C(x) ∨ r(x, f (x))
  • 3. ¬C(x) ∨ ¬B(f (x))

Inferences on B:

  • 4. ¬A(x) ∨ ¬r(x, y) ∨ ¬C(x) ∨ y = f (x)

(Resolution 1,3)

  • 5. ¬A(x) ∨ ¬r(x, f (x)) ∨ ¬C(x)

(Constr. Elim. 4) Additional steps complete the picture:

  • 6. ¬A(x) ∨ ¬C(x) ∨ f (x) = f (x)

(Resolution 2,5)

  • 7. ¬A(x) ∨ ¬C(x)

(Constr. Elim. 6)

slide-31
SLIDE 31

25/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with SCAN

Using SCAN to Compute Uniform Interpolants

Complete Clause Set:

  • 1. ¬A(x) ∨ ¬r(x, y) ∨ B(y)
  • 2. ¬C(x) ∨ r(x, f (x))
  • 3. ¬C(x) ∨ ¬B(f (x))
  • 4. ¬A(x) ∨ ¬r(x, y) ∨ ¬C(x) ∨ y = f (x)
  • 5. ¬A(x) ∨ ¬r(x, f (x)) ∨ ¬C(x)
  • 6. ¬A(x) ∨ ¬C(x) ∨ f (x) = f (x)
  • 7. ¬A(x) ∨ ¬C(x)

Uniform Interpolant: C ⊑ ∃r.⊤ A ⊓ C ⊑ ⊥

slide-32
SLIDE 32

26/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with SCAN

Using Resolution to Compute Uniform Interpolants

Downsides of SCAN:

Infers too much Infers too little

Needed: More than just SOQE ⇒ Infer consequences that are

in target signature translate to logic under consideration

More direct approach:

Stay in logic under consideration

slide-33
SLIDE 33

27/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with Modal Resolution

Uniform Interpolation Using Modal Resolution

Idea first followed by [Herzig and Mengin, 2008] for modal logic K Based on resolution calculus for modal logics by [Enjalbert and Fari˜ nas, 1985] Allow to resolve on arbitrary levels of formula: C1 ∨ ♦(C2 ∨ p) C3 ∨ ♦♦(C4 ∨ ¬p) = ⇒ C1 ∨ C3 ∨ ♦♦(C2 ∨ C4) Idea: use system of “meta”-rules to generate rules with arbitrary nesting depth

slide-34
SLIDE 34

28/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with Modal Resolution

Modal Resolution after Enjalbert and Fari˜ nas

Normal form assumes DNF/CNF on each level of formula

CNF under diamond: ♦(C1, . . . , Cn) DNF under box: (T1 ∨ . . . ∨ Tn)

Base rules: C1 ∨ ⊥, C2 ∨ ♦E = ⇒α C1 ∨ C2 C1 ∨ p, C2 ∨ ¬p = ⇒α C1 ∨ C2 Extended rules provided C1, C2 = ⇒α C3 / C1 = ⇒α C2 C ′

1 ∨ C1,

C ′

2 ∨ ♦(C2, E)

= ⇒α C ′

1 ∨ C ′ 2 ∨ ♦(C2, E, C3)

C ′

1 ∨ C1,

C ′

2 ∨ C2

= ⇒α C ′

1 ∨ C ′ 2 ∨ C3

C ∨ ♦(C1, C2, E) = ⇒α C ∨ ♦(C1, C2, E, C3) C ∨ ♦(C1, E) = ⇒α C ∨ ♦(C1, E, C2) C ∨ C1 = ⇒α C ∨ C2

slide-35
SLIDE 35

29/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with Modal Resolution

Computing UIs using Modal Resolution

UI computed similar to SCAN:

Compute all resolvents on symbols to forget

Forms complete method for modal logic K Termination assured by maximum nesting depth in K Extended to ALC in [Ludwig and Konev, 2014]:

First practical method for UI in ALC Additional rules to handle TBox axioms Termination cannot be guaranteed, but arbitrary approximations computed

slide-36
SLIDE 36

30/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with Modal Resolution

Computing UIs by Modal Resolution

Goal-oriented approach allows for practicality The cost is completeness A ⊑ B B ⊑ C ⊔ ∃r.B A ⊑ ∀r.∀r.⊥ Σ = {A, C, r} Computing inferences only on B will not terminate However, there is a uniform interpolant for {A, C, r}: A ⊑ C ⊔ ∃r.C A ⊑ ∀r.∀r.⊥ Probably in general no easy solution

slide-37
SLIDE 37

31/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with Modal Resolution

Computing UIs using Resolution

What to do about termination problem?

slide-38
SLIDE 38

31/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation Computing UIs with Modal Resolution

Computing UIs using Resolution

What to do about termination problem? ⇒ Move to language that has uniform interpolation!

slide-39
SLIDE 39

32/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation DLs with Greatest Fixpoints

DLs With Greatest Fixpoint Operators

New concept constructor νX.C[X]

C[X]: concept that contains X only positively

Allows to represent loops: A ⊓ νX.(C ⊓ ∃r.X) ⇐ ⇒ A ⊓ C ⊓ ∃r. ⇐ ⇒ A ⊓ (C ⊓ ∃r.(C ⊓ ∃r.(C ⊓ ∃r.(. . .))))

slide-40
SLIDE 40

33/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation DLs with Greatest Fixpoints

Example

Consider the following ontology: A ⊑ B ⊔ C B ⊑ ∃r.B C ⊑ ∀r.¬B No UI for Σ = {A, C, r} in ALC However, in ALCν, we have the following UI: C ⊑ ∀r.(¬A ⊔ C) A ⊑ C ⊔ νX.(¬C ⊓ ∃r.X)

slide-41
SLIDE 41

34/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Resolution Based Uniform Interpolation DLs with Greatest Fixpoints

DLs with Greatest Fixpoint Operators

Greatest fixpoint operators give us uniform interpolation in ALC–ALCHI They can be easily approximated: νX.C[X] ≈ C[C[C[C[C[⊤]]]]] They can be “simulated” using auxiliary concept names: A ⊑ νX.C[X] becomes A ⊑ D, D ⊑ C[D]

slide-42
SLIDE 42

35/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach

Flattened Approach

Final approach: Uses resolution Uses flattened normal form to ensure termination Always terminates for ALCHν (ALCH+greatest fixpoints)

Fixpoints can then be approximated or simulated in ALCH

slide-43
SLIDE 43

36/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Normal form, ALCH

ALCH Clause r ⊑ s ⊤ ⊑ L1 ⊔ . . . ⊔ Ln Li: ALC literal ALC Literal A | ¬A | ∃r.D | ∀r.D A: any concept name, D: definer symbol Definer symbols: special concept names, not part of signature Invariant: max 1 negative definer symbol per clause

⇒ ¬D1 ⊔ ∃r.D2 ⊔ ¬B, ✭✭✭✭✭✭ ✭ ¬D1 ⊔ ¬D2 ⊔ A

slide-44
SLIDE 44

37/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Definer symbols

Invariant: max 1 negative definer symbol per clause Allows easy translation to clausal form and back:

C1 ⊔ Qr.C2 ⇐ ⇒ C1 ⊔ Qr.D1, ¬D1 ⊔ C2 C1 ⊔ νX.C2[X] ⇐ ⇒ C1 ⊔ Qr.D1, ¬D1 ⊔ C2[D]

New definer symbols introduced by calculus

At most exponentially many

slide-45
SLIDE 45

38/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Basic Method

Input Language Finitely Bounded Representation

O N N+ NΣ OΣ

translate Derive Implicit Knowledge Filter Concepts & Roles translate

Input Result

O OΣ

slide-46
SLIDE 46

39/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Rules of the Calculus

Concept forgetting in ALC uses two rules Resolution C1 ⊔ A C2 ⊔ ¬A C1 ⊔ C2 Role Propagation C1 ⊔ ∀r.D1 C2 ⊔ Qr.D2 C1 ⊔ C2 ⊔ Qr.D12 where Q ∈ {∀, ∃} D12 is a possibly new definer representing D1 ⊓ D2 side condition: C1 ⊔ C2 does not contain more than one negative definer literal

slide-47
SLIDE 47

40/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Example

Assume the following ontology: C1 ⊑ ∃r.A C2 ⊑ ∀r.(B ⊔ ¬A) Normalisation brings four clauses: ¬C1 ⊔ ∃r.D1 ¬D1 ⊔ A ¬C2 ⊔ ∀r.D2 ¬D2 ⊔ B ⊔ ¬A

slide-48
SLIDE 48

41/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Example

¬D1 ⊔ A ¬C1 ⊔ ∃r.D1 ¬D2 ⊔ B ⊔ ¬A ¬C2 ⊔ ∀r.D2

slide-49
SLIDE 49

41/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Example

¬D1 ⊔ A ¬C1 ⊔ ∃r.D1 ¬D2 ⊔ B ⊔ ¬A ¬C2 ⊔ ∀r.D2 Cannot resolve due invariant

slide-50
SLIDE 50

41/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Example

¬D1 ⊔ A ¬C1 ⊔ ∃r.D1 ¬D2 ⊔ B ⊔ ¬A ¬C2 ⊔ ∀r.D2 Cannot resolve due invariant combine ¬C1 ⊔ ¬C2 ⊔ ∃r.D12 ¬D12 ⊔ A ¬D12 ⊔ B ⊔ ¬A

slide-51
SLIDE 51

41/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Example

¬D1 ⊔ A ¬C1 ⊔ ∃r.D1 ¬D2 ⊔ B ⊔ ¬A ¬C2 ⊔ ∀r.D2 Cannot resolve due invariant combine ¬C1 ⊔ ¬C2 ⊔ ∃r.D12 ¬D12 ⊔ A ¬D12 ⊔ B ⊔ ¬A Resolves to ¬D12 ⊔ B

slide-52
SLIDE 52

42/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Example

Final clause set: ¬C1 ⊔ ∃r.D1 ¬D1 ⊔ A ¬C2 ⊔ ∀r.D2 ¬D2 ⊔ B ⊔ ¬A ¬C1 ⊔ ¬C2 ⊔ ∃r.D12 ¬D12 ⊔ D1 ¬D12 ⊔ D2 ¬D12 ⊔ B We obtain as uniform interpolant for {r, B, C1, C2}: C1 ⊑ ∃r.⊤ C2 ⊑ ∀r.⊤ C1 ⊓ C2 ⊑ ∃r.B

slide-53
SLIDE 53

43/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Forgetting Concept and Role Names in ALCH

∃-elimination C ⊔ ∃r.D ¬D C Role hierarchy r ⊑ s s ⊑ t r ⊑ t Universal roles C1 ⊔ ∀s.D1 r ⊑ s C1 ⊔ ∀r.D1 Existential roles C1 ⊔ ∃s.D1 s ⊑ r C1 ⊔ ∃r.D1 ⇒ Rules form refutational and interpolation complete calculus

slide-54
SLIDE 54

44/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Forgetting Role Names

Alternative rule allows for more convenient implementation Provided T | = D0 ⊓ . . . ⊓ Dn ⊓ D ⊑ ⊥, apply: Role Restriction Resolution C0 ⊔ ∀r.D0 . . . Cn ⊔ ∀r.Dn C ⊔ ∃r.D C0 ⊔ . . . ⊔ Cn ⊔ C Side condition: C0 ⊔ . . . ⊔ Cn ⊔ C does not contain more than

  • ne negative definer literal

⇒ Use external reasoner

slide-55
SLIDE 55

45/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Forgetting Algorithm

To eliminate (concept/role) name X:

1 Determine literals that allow for inference on name 2 If result would break invariant:

Check whether role propagation makes inference possible

  • Evt. recursively call Step 2
slide-56
SLIDE 56

45/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Basic Calculus

Forgetting Algorithm

To eliminate (concept/role) name X:

1 Determine literals that allow for inference on name 2 If result would break invariant:

Check whether role propagation makes inference possible

  • Evt. recursively call Step 2

General Algorithm:

1 Process names by number of occurrences 2 Use simplification heuristics at each step to keep result small

Determine tautological fixpoints: νX.C[X] where C[⊤] = ⊤

slide-57
SLIDE 57

46/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Flattened Approach

General structure of calculus:

1 Resolution-like rule (Resolution, ∃-elimination, etc.) 2 Combination rule (role propagation rule)

Purpose of combination rule is to introduce definers More combination rules possible in more expressive DLs

slide-58
SLIDE 58

47/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Functional Role Restrictions

ALCF has constructors ≤1r.⊤ and ≥2r.⊤ ⇒ local functionality and its complement Universalisation C1 ⊔ ∃r.D1 C2 ⊔ ≤1r.⊤ C1 ⊔ C2 ⊔ ∀r.D1 ∃∃-Role Propagation C1 ⊔ ∃r.D1 C2 ⊔ ∃r.D2 C1 ⊔ C2 ⊔ ∃r.D12 ⊔ ≥2r.⊤

slide-59
SLIDE 59

48/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Example Functional Role Restrictions

Example: A ⊑ ∃r.B A ⊑ ∃r.¬B Clauses:

  • 1. ¬A ⊔ ∃r.D1
  • 2. ¬D1 ⊔ A
  • 3. ¬A ⊔ ∃r.D2
  • 4. ¬D2 ⊔ ¬A
slide-60
SLIDE 60

49/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Example Functional Role Restrictions

Clauses:

  • 1. ¬A ⊔ ∃r.D1
  • 2. ¬D1 ⊔ A
  • 3. ¬A ⊔ ∃r.D2
  • 4. ¬D2 ⊔ ¬A

Inferences:

  • 5. ¬A ⊔ ∃r.D12 ⊔ ≥2r.⊤

(∃∃-Role Prop. 1,3)

slide-61
SLIDE 61

49/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Example Functional Role Restrictions

Clauses:

  • 1. ¬A ⊔ ∃r.D1
  • 2. ¬D1 ⊔ A
  • 3. ¬A ⊔ ∃r.D2
  • 4. ¬D2 ⊔ ¬A

Inferences:

  • 5. ¬A ⊔ ∃r.D12 ⊔ ≥2r.⊤

(∃∃-Role Prop. 1,3)

  • 6. ¬D12 ⊔ A

(D12 ⊑ D1)

  • 7. ¬D12 ⊔ ¬A

(D12 ⊑ D2)

slide-62
SLIDE 62

49/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Example Functional Role Restrictions

Clauses:

  • 1. ¬A ⊔ ∃r.D1
  • 2. ¬D1 ⊔ A
  • 3. ¬A ⊔ ∃r.D2
  • 4. ¬D2 ⊔ ¬A

Inferences:

  • 5. ¬A ⊔ ∃r.D12 ⊔ ≥2r.⊤

(∃∃-Role Prop. 1,3)

  • 6. ¬D12 ⊔ A

(D12 ⊑ D1)

  • 7. ¬D12 ⊔ ¬A

(D12 ⊑ D2)

  • 8. ¬D12

(Resolution 6,7)

slide-63
SLIDE 63

49/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Example Functional Role Restrictions

Clauses:

  • 1. ¬A ⊔ ∃r.D1
  • 2. ¬D1 ⊔ A
  • 3. ¬A ⊔ ∃r.D2
  • 4. ¬D2 ⊔ ¬A

Inferences:

  • 5. ¬A ⊔ ∃r.D12 ⊔ ≥2r.⊤

(∃∃-Role Prop. 1,3)

  • 6. ¬D12 ⊔ A

(D12 ⊑ D1)

  • 7. ¬D12 ⊔ ¬A

(D12 ⊑ D2)

  • 8. ¬D12

(Resolution 6,7)

  • 9. ¬A ⊔ ≥2r.⊤

(∃-elimination 5,8)

slide-64
SLIDE 64

50/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Functional Role Restrictions

Example: A ⊑ ∃r.B A ⊑ ∃r.¬B Clauses:

  • 1. ¬A ⊔ ∃r.D1
  • 2. ¬D1 ⊔ A
  • 3. ¬A ⊔ ∃r.D2
  • 4. ¬D2 ⊔ ¬A
  • 5. ¬A ⊔ ∃r.D12 ⊔ ≥2r.⊤
  • 6. ¬D12 ⊔ A
  • 7. ¬D12 ⊔ ¬A
  • 8. ¬D12
  • 9. ¬A ⊔ ≥2r.⊤

Uniform interpolant for Σ = {A, r}: A ⊑ ≥2r.⊤

slide-65
SLIDE 65

51/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

General Number Restrictions

Rules can be generalised to support qualified number restrictions ≤≤-Combination:

C1 ⊔ ≤n1r1.¬D1 C2 ⊔ ≤n2r2.¬D2 r ⊑ r1 r ⊑ r2 C1 ⊔ C2 ⊔ ≤(n1 + n2)r.¬D12

≤≥-Combination:

C1 ⊔ ≤n1r1.¬D1 C2 ⊔ ≥n2r2.D2 r2 ⊑R r1 n1 ≥ n2 C1 ⊔ C2 ⊔ ≤(n1 − n2)r1.¬(D1 ⊔ D2) ⊔ ≥1r1.D12 . . . C1 ⊔ C2 ⊔ ≤(n1 − 1)r1.¬(D1 ⊔ D2) ⊔ ≥n2r1.D12

≥≤-Combination:

C1 ⊔ ≥n1r1.(D1 ⊔ . . . ⊔ Dm) C2 ⊔ ≤n2r2.¬Da r1 ⊑R r2 C1 ⊔ C2 ⊔ ≥(n1 − n2)r1.(D1a ⊔ . . . ⊔ Dma)

≥≥-Combination:

C1 ⊔ ≥n1r1.D1 C2 ⊔ ≥n2r2.D2 r1 ⊑R r r2 ⊑R r C1 ⊔ C2 ⊔ ≥(n1 + n2)r.(D1 ⊔ D2) ⊔ ≥1r.D12 . . . C1 ⊔ C2 ⊔ ≥(n1 + 1)r.(D1 ⊔ D2) ⊔ ≥n2r.D12

slide-66
SLIDE 66

52/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Extensions for More Expressive DLs

Limits of Approach

Approach has been extended to DLs supporting:

local functionality number restrictions (graded modalities) transitive roles (as in modal logic S4) inverse roles (converse modalities) ABoxes

⇒ Complete methods for SHIν, SIFν and SHQν

Transitive roles cannot be eliminated SHQ: only forgetting concept names

Combining rules further breaks completeness

Possibly limit of resolution approach Might require support for role conjunctions

slide-67
SLIDE 67

53/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Evaluation

Evaluation of Forgetting

ALCH, forget 50 symbols Success Rate: 91.10% Without Fixpoints: 95.29% Duration Mean: 7.68 sec. Duration Median: 2.74 sec. Duration 90th percentile: 12.45 sec. ALC w. ABoxes, forget 50 symbols Success Rate: 94.79% Without Fixpoints: 92.91% Duration Mean: 23.94 sec. Duration Median: 3.01 sec. Duration 90th percentile: 29.00 sec. SHQ, forget 50 concept symbols Success Rate: 95.83% Without Fixpoints: 93.40% Duration Mean: 7.62 sec. Duration Median: 1.04 sec. Duration 90th percentile: 4.89 sec. ALCH, forget 100 symbols Success Rate: 88.10% Without Fixpoints: 93.27% Duration Mean: 18.03 sec. Duration Median: 3.81 sec. Duration 90th percentile: 21.17 sec. ALC w. ABoxes, forget 100 symbols Success Rate: 91.37% Fixpoints: 92.48% Duration Mean: 57.87 sec. Duration Median: 6.43 sec. Duration 90th percentile: 99.26 sec. SHQ, forget 100 concept symbols Timeouts: 90.77% Fixpoints: 91.99% Duration Mean: 13.51 sec. Duration Median: 1.60 sec. Duration 90th percentile: 11.65 sec.

Corpus Respective fragments of 306 ontologies from BioPortal having at most 100,000 axioms. Timeout 30 minutes

slide-68
SLIDE 68

54/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Flattened Approach Evaluation

Evaluation of Uniform Interpolation

ALC Knowledge Bases, #S = 50 Success Rate: 84.78% Without Fixpoints: 96.06% Duration Mean: 113.90 sec. Duration Median: 29.58 sec. Duration 90th percent.: 330.56 sec. Axioms Mean: 198.52 Axioms Median: 31.00 Axioms 90th percent.: 426.00

  • Ax. Size Mean:

6.15

  • Ax. Size Median:

3.00

  • Ax. Size 90th percent.:

5.59 ALC Knowledge Bases, #S = 100 Success Rate: 80.54% Without Fixpoints: 95.04% Duration Mean: 313.28 sec. Duration Median: 214.56 sec. Duration 90th percent.: 780.30 sec. Axioms Mean: 302.78 Axioms Median: 84.00 Axioms 90th percent.: 709.00

  • Ax. Size Mean:

4.66

  • Ax. Size Median:

3.04

  • Ax. Size 90th percent.:

5.82

Corpus Respective fragments of 306 ontologies from BioPortal having at most 100,000 axioms. Timeout 30 minutes

slide-69
SLIDE 69

55/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Conclusion

Conclusion

UI has many applications in DLs, but also in modal logics Resolution often allows to compute UIs practically Method implemented in tool/library Lethe, available online Calculi might have applications outside UI Not covered in this tutorial:

Forgetting with ABoxes Forgetting with background knowledge

slide-70
SLIDE 70

56/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Conclusion

Thank you!

slide-71
SLIDE 71

57/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Conclusion

References

Uniform Interpolation in Modal Logics [Visser, 1996]A Visser. Uniform interpolation and layered

  • bisimulation. In Godel’96, 1996.

[D’Agostino, Hollenberg, 1996]. G D’Agostino, M. Hollenberg. Uniform interpolation, automata and the modal µ-calculus. Logic Group Preprint Series, 165, 1996. Foundations of Uniform Interpolation in DL: [Lutz,Wolter,2010] C. Lutz, F. Wolter. Foundations for Uniform Interpolation and Forgetting in Expressive Description Logics, In Proceedings of ICJAI 2011. [Nikitina,Rudolph,2014] N. Nikitina, S. Rudolph. (Non-)Succinctness of Uniform Interpolants of General Terminologies in the Description Logic EL. In Artificial Intelligence, 2014.

slide-72
SLIDE 72

58/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Conclusion

References

Uniform Interpolation with Tableaux [Kracht, 2007] M. Kracht. Modal Consequence Relations. In Handbook of Modal Logic, chapter 8, 2007. [Wang, Wang, et al, 2010] Z. Wang, K. Wang, R. Topor, X.

  • Zhang. Tableau-Based Forgetting in ALC Ontologies. In

Proceedings of ECAI, 2010. Resolution-Based Second-Order Quantifier Elimination [Gabbay, Ohlbach, 1992] D. Gabbay, Hans J¨ urgen Ohlbach. Quantifier Elimination in Second-Order Predicate Logic. In Proceedings of KR, 1992. Modal Resolution [Enjalbert and Fari˜ nas, 1985] P. Enjalbert, L. Fari˜ nas del Cerro. Modal Resolution in Clausal Form. Theoretical Computer Science, 65(1):1–33, 1989.

slide-73
SLIDE 73

59/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Conclusion

References

Resolution-Based Uniform Interpolation [Herzig and Mengin, 2008] A. Herzig, J. Mengin. Uniform Interpolation by Resolution in Modal Logic. In Proceedings of JELIA, 2008. [Ludwig and Konev, 2014] M. Ludwig, B. Konev. Practical Uniform Interpolation and Forgetting for ALC TBoxes with Applications to Logical Difference. In Proceedings of KR, 2014. [Koopmann, Schmidt, 2013] P. Koopmann, R. A. Schmidt. Forgetting Concept and Role Symbols in ALCH-Ontologies. In Proceedings of LPAR, 2013. [Koopmann, Schmidt, 2014] P. Koopmann, R. A. Schmidt. Count and Forget: Uniform Interpolation of SHQ-Ontologies. In Proceedings of IJCAR, 2014.

slide-74
SLIDE 74

60/60 Resolution-Based Uniform Interpolation and Forgetting for Expressive Description Logics Conclusion

[Koopmann, Schmidt, 2015] P. Koopmann, R. A. Schmidt. Uniform Interpolation and Forgetting for ALC Ontologies with

  • ABoxes. In Proceedings of AAAI, 2015.

Methods for other DLs Mentioned [Koopmann, 2015] P. Koopmann. Practical Uniform Interpolation for Expressive Description Logics. PhD-Thesis, University of Manchester, 2015.