• Keine Ergebnisse gefunden

Chase-Based Computation of Cores for Existential Rules

N/A
N/A
Protected

Academic year: 2022

Aktie "Chase-Based Computation of Cores for Existential Rules"

Copied!
89
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Chase-Based Computation of Cores for Existential Rules

Lukas Gerlach

Knowledge-Based Systems Group Technische Universit ¨at Dresden

16.09.2021

(2)

Existential Rules

∀ ~ x ∀ ~ y .Body( ~ x , ~ y ) → ∃ ~ z.Head( ~ x , ~ z )

• Body andHead: conjunctions of atoms

• ~x, ~y, ~z: pairwise disjoint lists of variables

Pizza(x) → ∃z.SameDeliverer(x , z) ∧ Pizza(z ) WeeklyOrder(y , x) → ∃z.WeeklyOrder(x , z)

Pizza(x) ∧ WeeklyOrder(x , y) → Pizza(y) ∧ SameDeliverer(x , y)

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(3)

Existential Rules

∀ ~ x ∀ ~ y .Body( ~ x , ~ y ) → ∃ ~ z.Head( ~ x , ~ z )

• Body andHead: conjunctions of atoms

• ~x, ~y, ~z: pairwise disjoint lists of variables

Pizza(x) → ∃z.SameDeliverer(x , z) ∧ Pizza(z ) WeeklyOrder(y , x) → ∃z.WeeklyOrder(x , z)

Pizza(x) ∧ WeeklyOrder(x , y) → Pizza(y) ∧ SameDeliverer(x , y)

(4)

Existential Rules

∀ ~ x ∀ ~ y .Body( ~ x , ~ y ) → ∃ ~ z.Head( ~ x , ~ z )

• Body andHead: conjunctions of atoms

• ~x, ~y, ~z: pairwise disjoint lists of variables

Pizza(x) → ∃z.SameDeliverer(x , z) ∧ Pizza(z)

WeeklyOrder(y , x) → ∃z.WeeklyOrder(x , z)

Pizza(x) ∧ WeeklyOrder(x , y) → Pizza(y) ∧ SameDeliverer(x , y)

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(5)

Existential Rules

∀ ~ x ∀ ~ y .Body( ~ x , ~ y ) → ∃ ~ z.Head( ~ x , ~ z )

• Body andHead: conjunctions of atoms

• ~x, ~y, ~z: pairwise disjoint lists of variables

Pizza(x) → ∃z.SameDeliverer(x , z) ∧ Pizza(z) WeeklyOrder(y , x) → ∃z.WeeklyOrder(x , z)

Pizza(x) ∧ WeeklyOrder(x , y) → Pizza(y) ∧ SameDeliverer(x , y)

(6)

Existential Rules

∀ ~ x ∀ ~ y .Body( ~ x , ~ y ) → ∃ ~ z.Head( ~ x , ~ z )

• Body andHead: conjunctions of atoms

• ~x, ~y, ~z: pairwise disjoint lists of variables

Pizza(x) → ∃z.SameDeliverer(x , z) ∧ Pizza(z) WeeklyOrder(y , x) → ∃z.WeeklyOrder(x , z)

Pizza(x) ∧ WeeklyOrder(x , y) → Pizza(y) ∧ SameDeliverer(x , y)

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(7)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2

:Pizza

WeeklyOrder

n3

:Pizza

WeeklyOrder SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

(8)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza

n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2

:Pizza

WeeklyOrder

n3

:Pizza

WeeklyOrder SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(9)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2

:Pizza

WeeklyOrder

n3

:Pizza

WeeklyOrder SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

(10)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2

:Pizza

WeeklyOrder

n3

:Pizza

WeeklyOrder SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(11)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2

:Pizza

WeeklyOrder

n3

:Pizza

WeeklyOrder

SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

(12)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2:Pizza WeeklyOrder

n3

:Pizza

WeeklyOrder SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(13)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2:Pizza WeeklyOrder

n3

:Pizza

WeeklyOrder SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

(14)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2:Pizza WeeklyOrder

n3:Pizza WeeklyOrder

SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(15)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2:Pizza WeeklyOrder

n3:Pizza WeeklyOrder

SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model. Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

(16)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2:Pizza WeeklyOrder

n3:Pizza WeeklyOrder

SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model.

Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(17)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2:Pizza WeeklyOrder

n3:Pizza WeeklyOrder

SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model.

Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

(18)

Chasing a Universal Core Model

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

order2:Pizza WeeklyOrder

n3:Pizza WeeklyOrder

SameDeliverer

n4:Pizza SameDeliverer

SameDeliverer

. . . .

Therestricted chaseand it yields auniversal model.

Thecore chaseand it yields auniversal core model.

Withoutalternative matches, therestricted chasealso yields auniversal core model.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(19)

Some Rule Set Classifications

R∈CTres∀∃

For the rule setRandallstarting fact sets,somerestrictedchase sequence terminates.

CTres∀∀ ⊂CTres∀∃⊂CTcore Each of these classes is undecidable.

R∈AM∀∃

For the rule setRandallstarting fact sets,somerestricted chase sequence does not have an alternative match.

AM∀∀⊂AM∀∃

AM∀∃is undecidable whereas AM∀∀is decidable.

(20)

Some Rule Set Classifications

R∈CTres∀∃

For the rule setRandallstarting fact sets,somerestrictedchase sequence terminates.

CTres∀∀ ⊂CTres∀∃⊂CTcore

Each of these classes is undecidable.

R∈AM∀∃

For the rule setRandallstarting fact sets,somerestricted chase sequence does not have an alternative match.

AM∀∀⊂AM∀∃

AM∀∃is undecidable whereas AM∀∀is decidable.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(21)

Some Rule Set Classifications

R∈CTres∀∃

For the rule setRandallstarting fact sets,somerestrictedchase sequence terminates.

CTres∀∀ ⊂CTres∀∃⊂CTcore Each of these classes is undecidable.

R∈AM∀∃

For the rule setRandallstarting fact sets,somerestricted chase sequence does not have an alternative match.

AM∀∀⊂AM∀∃

AM∀∃is undecidable whereas AM∀∀is decidable.

(22)

Some Rule Set Classifications

R∈CTres∀∃

For the rule setRandallstarting fact sets,somerestrictedchase sequence terminates.

CTres∀∀ ⊂CTres∀∃⊂CTcore Each of these classes is undecidable.

R∈AM∀∃

For the rule setRandallstarting fact sets,somerestricted chase sequence does not have an alternative match.

AM∀∀⊂AM∀∃

AM∀∃is undecidable whereas AM∀∀is decidable.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(23)

Some Rule Set Classifications

R∈CTres∀∃

For the rule setRandallstarting fact sets,somerestrictedchase sequence terminates.

CTres∀∀ ⊂CTres∀∃⊂CTcore Each of these classes is undecidable.

R∈AM∀∃

For the rule setRandallstarting fact sets,somerestricted chase sequence does not have an alternative match.

AM∀∀⊂AM∀∃

AM∀∃is undecidable whereas AM∀∀is decidable.

(24)

Some Rule Set Classifications

R∈CTres∀∃

For the rule setRandallstarting fact sets,somerestrictedchase sequence terminates.

CTres∀∀ ⊂CTres∀∃⊂CTcore Each of these classes is undecidable.

R∈AM∀∃

For the rule setRandallstarting fact sets,somerestricted chase sequence does not have an alternative match.

AM∀∀⊂AM∀∃

AM∀∃is undecidable whereas AM∀∀is decidable.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(25)

Relations between Rules [Kr ¨otzsch, 2020]

Definition

A ruleρrestrainsa ruleρ0, writtenρ≺ρ0, if the application ofρafterρ0may introduce an alternative match forρ0.

Proposition

Consider a chase. If for each ruleρ, all rulesρ0withρ0ρare applied exhaustively beforeρ, then the chase does not have an alternative match.

Proposition

A rule setRdoes not have restraining relations iffR∈AM∀∀.

If we respect restraining relations, we find a restricted chase sequence that yields a core.

(26)

Relations between Rules [Kr ¨otzsch, 2020]

Definition

A ruleρrestrainsa ruleρ0, writtenρ≺ρ0, if the application ofρafterρ0may introduce an alternative match forρ0.

Proposition

Consider a chase. If for each ruleρ, all rulesρ0withρ0ρare applied exhaustively beforeρ, then the chase does not have an alternative match.

Proposition

A rule setRdoes not have restraining relations iffR∈AM∀∀.

If we respect restraining relations, we find a restricted chase sequence that yields a core.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(27)

Relations between Rules [Kr ¨otzsch, 2020]

Definition

A ruleρrestrainsa ruleρ0, writtenρ≺ρ0, if the application ofρafterρ0may introduce an alternative match forρ0.

Proposition

Consider a chase. If for each ruleρ, all rulesρ0withρ0ρare applied exhaustively beforeρ, then the chase does not have an alternative match.

Proposition

A rule setRdoes not have restraining relations iffR∈AM∀∀.

If we respect restraining relations, we find a restricted chase sequence that yields a core.

(28)

Relations between Rules [Kr ¨otzsch, 2020]

Definition

A ruleρrestrainsa ruleρ0, writtenρ≺ρ0, if the application ofρafterρ0may introduce an alternative match forρ0.

Proposition

Consider a chase. If for each ruleρ, all rulesρ0withρ0ρare applied exhaustively beforeρ, then the chase does not have an alternative match.

Proposition

A rule setRdoes not have restraining relations iffR∈AM∀∀.

If we respect restraining relations, we find a restricted chase sequence that yields a core.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(29)

Relations between Rules [Kr ¨otzsch, 2020]

Definition

A ruleρ0positively relieson a ruleρ, writtenρ≺4ρ0, if the application ofρmay allowρ0to be applied.

Definition

Thedownward closureρ↓of a ruleρis the set containing each ruleρ0for that we find ρ0((≺4)◦ ≺)+ρ, i.e.ρ0directly or indirectly restrainsρ.

Definition

A rule set iscore-stratifiedif for every ruleρ, we haveρ /∈ρ↓.

(30)

Relations between Rules [Kr ¨otzsch, 2020]

Definition

A ruleρ0positively relieson a ruleρ, writtenρ≺4ρ0, if the application ofρmay allowρ0to be applied.

Definition

Thedownward closureρ↓of a ruleρis the set containing each ruleρ0for that we find ρ0((≺4)◦ ≺)+ρ, i.e.ρ0directly or indirectly restrainsρ.

Definition

A rule set iscore-stratifiedif for every ruleρ, we haveρ /∈ρ↓.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(31)

Relations between Rules [Kr ¨otzsch, 2020]

Definition

A ruleρ0positively relieson a ruleρ, writtenρ≺4ρ0, if the application ofρmay allowρ0to be applied.

Definition

Thedownward closureρ↓of a ruleρis the set containing each ruleρ0for that we find ρ0((≺4)◦ ≺)+ρ, i.e.ρ0directly or indirectly restrainsρ.

Definition

A rule set iscore-stratifiedif for every ruleρ, we haveρ /∈ρ↓.

(32)

The Power of Core Stratification

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(33)

Core-Stratification is sufficient for AM ∀∃

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) We findρ3ρ124ρ334ρ1andρi4ρi for everyi ∈ {1,2,3}.

Thus, we haveρ1 ={ρ23}andρ23 =∅.

Theorem

If a rule set R is core stratified, then R∈AM∀∃.

(OriginallyR∈CTres∀∀is also required [Kr ¨otzsch, 2020].)

(34)

Core-Stratification is sufficient for AM ∀∃

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) We findρ3ρ124ρ334ρ1andρi4ρi for everyi ∈ {1,2,3}.

Thus, we haveρ1 ={ρ23}andρ23 =∅.

Theorem

If a rule set R is core stratified, then R∈AM∀∃.

(OriginallyR∈CTres∀∀is also required [Kr ¨otzsch, 2020].)

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(35)

Avoiding Alternative Matches when Chasing

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) (R2) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z) (R1) Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) (R1)

order1:Pizza

order2

:Pizza

WeeklyOrder

SameDeliverer

n3

:Pizza

WeeklyOrder SameDeliverer

. . .

unhappyOrder:Pizza

n4:Pizza SameDeliverer

. . .

λ11121314, . . .[,λ2122, . . .]

This is atransfinite chase sequenceon arestrained partitioning. Observation:ρ1applications could be done earlier: λ111221131422, . . .

(36)

Avoiding Alternative Matches when Chasing

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) (R2) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z) (R1) Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) (R1)

order1:Pizza

order2:Pizza WeeklyOrder

SameDeliverer

n3

:Pizza

WeeklyOrder SameDeliverer

. . .

unhappyOrder:Pizza

n4:Pizza SameDeliverer

. . .

λ11

121314, . . .[,λ2122, . . .]

This is atransfinite chase sequenceon arestrained partitioning. Observation:ρ1applications could be done earlier: λ111221131422, . . .

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(37)

Avoiding Alternative Matches when Chasing

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) (R2) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z) (R1) Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) (R1)

order1:Pizza

order2:Pizza WeeklyOrder

SameDeliverer

n3

:Pizza

WeeklyOrder

SameDeliverer

. . .

unhappyOrder:Pizza

n4:Pizza SameDeliverer

. . .

λ1112

1314, . . .[,λ2122, . . .]

This is atransfinite chase sequenceon arestrained partitioning. Observation:ρ1applications could be done earlier: λ111221131422, . . .

(38)

Avoiding Alternative Matches when Chasing

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) (R2) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z) (R1) Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) (R1)

order1:Pizza

order2:Pizza WeeklyOrder

SameDeliverer

n3:Pizza WeeklyOrder

SameDeliverer

. . .

unhappyOrder:Pizza

n4:Pizza SameDeliverer

. . .

λ111213

14, . . .[,λ2122, . . .]

This is atransfinite chase sequenceon arestrained partitioning. Observation:ρ1applications could be done earlier: λ111221131422, . . .

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(39)

Avoiding Alternative Matches when Chasing

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) (R2) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z) (R1) Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) (R1)

order1:Pizza

order2:Pizza WeeklyOrder

SameDeliverer

n3:Pizza WeeklyOrder

SameDeliverer

. . . unhappyOrder:Pizza

n4:Pizza SameDeliverer

. . .

λ11121314, . . .

[,λ2122, . . .]

This is atransfinite chase sequenceon arestrained partitioning. Observation:ρ1applications could be done earlier: λ111221131422, . . .

(40)

Avoiding Alternative Matches when Chasing

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) (R2) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z) (R1) Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) (R1)

order1:Pizza

order2:Pizza WeeklyOrder

SameDeliverer

n3:Pizza WeeklyOrder

SameDeliverer

. . . unhappyOrder:Pizza

n4:Pizza SameDeliverer

. . .

λ11121314, . . .[,λ2122, . . .]

This is atransfinite chase sequenceon arestrained partitioning. Observation:ρ1applications could be done earlier: λ111221131422, . . .

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(41)

Avoiding Alternative Matches when Chasing

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) (R2) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z) (R1) Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) (R1)

order1:Pizza

order2:Pizza WeeklyOrder

SameDeliverer

n3:Pizza WeeklyOrder

SameDeliverer

. . . unhappyOrder:Pizza

n4:Pizza SameDeliverer

. . .

λ11121314, . . .[,λ2122, . . .]

This is atransfinite chase sequenceon arestrained partitioning.

Observation:ρ1applications could be done earlier: λ111221131422, . . .

(42)

Avoiding Alternative Matches when Chasing

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) (R2) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z) (R1) Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y) (R1)

order1:Pizza

order2:Pizza WeeklyOrder

SameDeliverer

n3:Pizza WeeklyOrder

SameDeliverer

. . . unhappyOrder:Pizza

n4:Pizza SameDeliverer

. . .

λ11121314, . . .[,λ2122, . . .]

This is atransfinite chase sequenceon arestrained partitioning.

Observation:ρ1applications could be done earlier: λ111221131422, . . .

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(43)

Restricted and Core Chase coincide

Theorem

For a rule set R∈AM∀∃, we have R∈CTres∀∃iff R∈CTcore .

Corollary

A transfinite chase sequence on a restrained partitioning terminates (yielding a finite universal core model) iff a finite universal (core) model exists.

Theorem

For a rule set R∈AM∀∀, we have R∈CTres∀∀iff R∈CTres∀∃iff R∈CTcore . (CTres∀∀is decidable for single-head guarded existential rules.)

(44)

Restricted and Core Chase coincide

Theorem

For a rule set R∈AM∀∃, we have R∈CTres∀∃iff R∈CTcore .

Corollary

A transfinite chase sequence on a restrained partitioning terminates (yielding a finite universal core model) iff a finite universal (core) model exists.

Theorem

For a rule set R∈AM∀∀, we have R∈CTres∀∀iff R∈CTres∀∃iff R∈CTcore . (CTres∀∀is decidable for single-head guarded existential rules.)

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(45)

Restricted and Core Chase coincide

Theorem

For a rule set R∈AM∀∃, we have R∈CTres∀∃iff R∈CTcore .

Corollary

A transfinite chase sequence on a restrained partitioning terminates (yielding a finite universal core model) iff a finite universal (core) model exists.

Theorem

For a rule set R∈AM∀∀, we have R∈CTres∀∀iff R∈CTres∀∃iff R∈CTcore . (CTres∀∀is decidable for single-head guarded existential rules.)

(46)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]: S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(47)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

(48)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(49)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b)

,S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

(50)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b)

, . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(51)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

(52)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1.

ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(53)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

(54)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(55)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

The problem of the Fairness Theorem [Gogacz et al., 2020]:

S(a,b,b)

ρ1:=S(x,y,y)→ ∃z.S(x,z,y)∧S(z,y,y) ρ2:=S(x,y,z)→S(z,z,z)

Byρ1, we obtain:

S(a,n1,b),S(n1,b,b),S(n1,n2,b),S(n2,b,b), . . .

Any application ofρ2yieldsS(b,b,b)and blocks all (further) applications ofρ1. ρ2strongly restrainsρ1and no infinite fair sequence exists.

However:There are also single-head rules that restrain each other.

(56)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

Theorem

For a rule set without strong restraining relations, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

Conjecture

Consider a guarded rule setRwithout strong restraining relations. It is decidable if R∈CTres∀∀.

(We obtain decidability for CTcore for guarded rule sets without restraining relations.)

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(57)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

Theorem

For a rule set without strong restraining relations, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

Conjecture

Consider a guarded rule setRwithout strong restraining relations. It is decidable if R∈CTres∀∀.

(We obtain decidability for CTcore for guarded rule sets without restraining relations.)

(58)

Decidability of CT res ∀∀

Proposition (Fairness Theorem [Gogacz et al., 2020])

For a rule set of only single-head rules, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

Theorem

For a rule set without strong restraining relations, if there exists an unfair non-terminating restricted chase sequence, then there exists a fair non-terminating restricted chase sequence.

Conjecture

Consider a guarded rule setRwithout strong restraining relations. It is decidable if R∈CTres∀∀.

(We obtain decidability for CTcore for guarded rule sets without restraining relations.)

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(59)

Computing Cores for Non-Core-Stratified Rule Sets

(60)

Computing Cores directly with Alternative Matches

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

. . .

order2:Pizza WeeklyOrder

SameDeliverer

n3:Pizza WeeklyOrder

. . . n4:Pizza

SameDeliverer . . .

SameDeliverer

Problem: Alternative Matches do not always yield an endomorphism over the fact set.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(61)

Computing Cores directly with Alternative Matches

Pizza(x)→ ∃z.SameDeliverer(x,z)∧Pizza(z) WeeklyOrder(y,x)→ ∃z.WeeklyOrder(x,z)

Pizza(x)∧WeeklyOrder(x,y)→Pizza(y)∧SameDeliverer(x,y)

order1:Pizza n1:Pizza SameDeliverer

n2:Pizza SameDeliverer

. . .

order2:Pizza WeeklyOrder

SameDeliverer

n3:Pizza WeeklyOrder

. . . n4:Pizza

SameDeliverer . . .

SameDeliverer

Problem: Alternative Matches do not always yield an endomorphism over the fact set.

(62)

Compute Cores directly with Alternative Matches

→ ∃z.P(z) P(x)→ ∃z.Q(x,z)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) Q(x,y)∧S(x,z)→S(x,y)

c

n1:P

n2

Q n3:P

Q S Q

S

n4:P Q

S

Problem:After remappings of nulls, other remappings may be necessary that are not captured by alternative matches.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(63)

Compute Cores directly with Alternative Matches

→ ∃z.P(z) P(x)→ ∃z.Q(x,z)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) Q(x,y)∧S(x,z)→S(x,y)

c n1:P

n2

Q n3:P

Q S Q

S

n4:P Q

S

Problem:After remappings of nulls, other remappings may be necessary that are not captured by alternative matches.

(64)

Compute Cores directly with Alternative Matches

→ ∃z.P(z) P(x)→ ∃z.Q(x,z)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) Q(x,y)∧S(x,z)→S(x,y)

c n1:P

n2

Q

n3:P Q

S Q

S

n4:P Q

S

Problem:After remappings of nulls, other remappings may be necessary that are not captured by alternative matches.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(65)

Compute Cores directly with Alternative Matches

→ ∃z.P(z) P(x)→ ∃z.Q(x,z)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) Q(x,y)∧S(x,z)→S(x,y)

c n1:P

n2

Q n3:P

Q S Q

S

n4:P Q

S

Problem:After remappings of nulls, other remappings may be necessary that are not captured by alternative matches.

(66)

Compute Cores directly with Alternative Matches

→ ∃z.P(z) P(x)→ ∃z.Q(x,z)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) Q(x,y)∧S(x,z)→S(x,y)

c n1:P

n2

Q n3:P

Q S Q

S

n4:P Q

S

Problem:After remappings of nulls, other remappings may be necessary that are not captured by alternative matches.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(67)

Compute Cores directly with Alternative Matches

→ ∃z.P(z) P(x)→ ∃z.Q(x,z)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) Q(x,y)∧S(x,z)→S(x,y)

c n1:P

n2

Q n3:P

Q S Q

S

n4:P Q

S

Problem:After remappings of nulls, other remappings may be necessary

(68)

The Hybrid Chase

P(x)→ ∃z.Q(x,z) (R1)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) (R2)

Q(x,y)∧S(x,z)→S(x,y) (R1)

Thehybrid chaseon arelaxed restrained partitioningis defined like the transfinite chase but uses the core chase in the last sequence.

c a:P

S

n2

Q S

n3:P Q

S Q

S

n4:P Q

S

Nulls that are introduced before the last sequence can be treated as constants.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(69)

The Hybrid Chase

P(x)→ ∃z.Q(x,z) (R1)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) (R2)

Q(x,y)∧S(x,z)→S(x,y) (R1)

Thehybrid chaseon arelaxed restrained partitioningis defined like the transfinite chase but uses the core chase in the last sequence.

c a:P

S

n2

Q

S

n3:P Q

S Q

S

n4:P Q

S

Nulls that are introduced before the last sequence can be treated as constants.

(70)

The Hybrid Chase

P(x)→ ∃z.Q(x,z) (R1)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) (R2)

Q(x,y)∧S(x,z)→S(x,y) (R1)

Thehybrid chaseon arelaxed restrained partitioningis defined like the transfinite chase but uses the core chase in the last sequence.

c a:P

S

n2

Q S

n3:P Q

S Q

S

n4:P Q

S

Nulls that are introduced before the last sequence can be treated as constants.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(71)

The Hybrid Chase

P(x)→ ∃z.Q(x,z) (R1)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) (R2)

Q(x,y)∧S(x,z)→S(x,y) (R1)

Thehybrid chaseon arelaxed restrained partitioningis defined like the transfinite chase but uses the core chase in the last sequence.

c a:P

S

n2

Q S

n3:P Q

S Q

S

n4:P Q

S

Nulls that are introduced before the last sequence can be treated as constants.

(72)

The Hybrid Chase

P(x)→ ∃z.Q(x,z) (R1)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) (R2)

Q(x,y)∧S(x,z)→S(x,y) (R1)

Thehybrid chaseon arelaxed restrained partitioningis defined like the transfinite chase but uses the core chase in the last sequence.

c a:P

S

n2

Q S

n3:P Q

S Q

S

n4:P Q

S

Nulls that are introduced before the last sequence can be treated as constants.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(73)

The Hybrid Chase

P(x)→ ∃z.Q(x,z) (R1)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) (R2)

Q(x,y)∧S(x,z)→S(x,y) (R1)

Thehybrid chaseon arelaxed restrained partitioningis defined like the transfinite chase but uses the core chase in the last sequence.

c a:P

S

n2

Q S

n3:P Q

S Q

S

n4:P Q

S

Nulls that are introduced before the last sequence can be treated as constants.

(74)

The Hybrid Chase

P(x)→ ∃z.Q(x,z) (R1)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) (R2)

Q(x,y)∧S(x,z)→S(x,y) (R1)

Thehybrid chaseon arelaxed restrained partitioningis defined like the transfinite chase but uses the core chase in the last sequence.

c a:P

S

n2

Q S

n3:P Q

S Q

S

n4:P Q

S

Nulls that are introduced before the last sequence can be treated as constants.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(75)

The Hybrid Chase

P(x)→ ∃z.Q(x,z) (R1)

Q(x,y)→ ∃z.Q(z,y)∧Q(z,c)∧P(z)∧S(z,y) (R2)

Q(x,y)∧S(x,z)→S(x,y) (R1)

Thehybrid chaseon arelaxed restrained partitioningis defined like the transfinite chase but uses the core chase in the last sequence.

c a:P

S

n2

Q S

n3:P Q

S Q

S

n4:P Q

S

(76)

Summary

Results:

• Restricted and core chase coincide for core-stratified rule sets.

• Conjecture: Slightly larger fragment of guarded rules for which CTres∀∀ is decidable.

• Ideas for more efficient computation of universal core models for arbitrary rule sets.

Open Questions / Future Work:

• Is AM∀∃decidable for (single-head) guarded existential rules?

• Is CTres∀∃ decidable for (single-head) guarded existential rules?

• Verify decidability of CTres∀∀ for guarded rules without strong restraining relations.

• Implement/Evaluate/Improve core computation heuristic and hybrid chase.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(77)

Summary

Results:

• Restricted and core chase coincide for core-stratified rule sets.

• Conjecture: Slightly larger fragment of guarded rules for which CTres∀∀ is decidable.

• Ideas for more efficient computation of universal core models for arbitrary rule sets.

Open Questions / Future Work:

• Is AM∀∃decidable for (single-head) guarded existential rules?

• Is CTres∀∃ decidable for (single-head) guarded existential rules?

• Verify decidability of CTres∀∀ for guarded rules without strong restraining relations.

• Implement/Evaluate/Improve core computation heuristic and hybrid chase.

(78)

Summary

Results:

• Restricted and core chase coincide for core-stratified rule sets.

• Conjecture: Slightly larger fragment of guarded rules for which CTres∀∀ is decidable.

• Ideas for more efficient computation of universal core models for arbitrary rule sets.

Open Questions / Future Work:

• Is AM∀∃decidable for (single-head) guarded existential rules?

• Is CTres∀∃ decidable for (single-head) guarded existential rules?

• Verify decidability of CTres∀∀ for guarded rules without strong restraining relations.

• Implement/Evaluate/Improve core computation heuristic and hybrid chase.

Lukas Gerlach Chase-Based Computation of Cores for Existential Rules 16.09.2021

(79)

References I

(2010).

Proceedings of the 25th Annual IEEE Symposium on Logic in Computer Science, LICS 2010, 11-14 July 2010, Edinburgh, United Kingdom. IEEE Computer Society.

Abiteboul, S., Hull, R., and Vianu, V. (1995).

Foundations of Databases.

Addison-Wesley.

Baget, J., Lecl `ere, M., Mugnier, M., and Salvat, E. (2011a).

On rules with existential variables: Walking the decidability line.

Artif. Intell., 175(9-10):1620–1654.

Baget, J., Mugnier, M., Rudolph, S., and Thomazo, M. (2011b).

Walking the complexity lines for generalized guarded existential rules.

In [Walsh, 2011], pages 712–717.

(80)

References II

B ´ar ´any, V., Gottlob, G., and Otto, M. (2010).

Querying the guarded fragment.

In [DBL, 2010], pages 1–10.

Barcel ´o, P. and Calautti, M., editors (2019).

22nd International Conference on Database Theory, ICDT 2019, March 26-28, 2019, Lisbon, Portugal, volume 127 ofLIPIcs. Schloss Dagstuhl - Leibniz-Zentrum f ¨ur Informatik.

Bauslaugh, B. L. (1995).

Core-like properties of infinite graphs and structures.

Discret. Math., 138(1-3):101–111.

Beeri, C. and Vardi, M. Y. (1981).

The implication problem for data dependencies.

In [Even and Kariv, 1981], pages 73–85.

(81)

References III

Beeri, C. and Vardi, M. Y. (1984).

A proof procedure for data dependencies.

J. ACM, 31(4):718–741.

Benedikt, M., Konstantinidis, G., Mecca, G., Motik, B., Papotti, P., Santoro, D., and Tsamoura, E. (2017).

Benchmarking the chase.

In [Sallinger et al., 2017], pages 37–52.

Boutilier, C., editor (2009).

IJCAI 2009, Proceedings of the 21st International Joint Conference on Artificial Intelligence, Pasadena, California, USA, July 11-17, 2009.

Calautti, M., Gottlob, G., and Pieris, A. (2015).

Chase termination for guarded existential rules.

In [Milo and Calvanese, 2015], pages 91–103.

(82)

References IV

Calvanese, D., Erdem, E., and Thielscher, M., editors (2020).

Proceedings of the 17th International Conference on Principles of Knowledge Representation and Reasoning, KR 2020, Rhodes, Greece, September 12-18, 2020.

Carral, D., Dragoste, I., and Kr ¨otzsch, M. (2017).

Restricted chase (non)termination for existential rules with disjunctions.

In [Sierra, 2017], pages 922–928.

Carral, D., Kr ¨otzsch, M., Marx, M., Ozaki, A., and Rudolph, S. (2018).

Preserving constraints with the stable chase.

In [Kimelfeld and Amsterdamer, 2018], pages 12:1–12:19.

Deutsch, A., Nash, A., and Remmel, J. B. (2008).

The chase revisited.

In [Lenzerini and Lembo, 2008], pages 149–158.

Referenzen

ÄHNLICHE DOKUMENTE

In order to show that core-stratified rule sets always admit a (fair) restricted chase sequence without alternative matches, Gerlach in- troduced the concept of a transfinite chase

In this section, we present equality model-faithful acyclic- ity (EMFA), an acyclicity notion based on model-faithful acyclicity (MFA) (Cuenca Grau et al. 2013) that can be di-

Theorem: A finite, fully stratified chase yield a unique stable model that is a core, the perfect core

Since it suffices to guess one fact set in each chase step, we end up in N2ExpTime by using a similar step by step computation as for the DMFA check.. Thus, BCQ entailment is

After observing the superior expressive power of the standard and Datalog-first chase on polynomial time problems, we turn to the question of whether one can also express queries

* A Practical Acyclicity Notion for Query Answering over Horn-SRIQ Ontologies [ISWC 2016]. * Restricted Chase (Non)Termination for Existential Rules with Disjunctions

* A Practical Acyclicity Notion for Query Answering over Horn-SRIQ Ontologies [ISWC 2016]. * Restricted Chase (Non)Termination for Existential Rules with Disjunctions

David Carral, Irina Dragoste, Markus Krötzsch TU Dresden... BCQ entailment: co-N2ExpTime