Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem about subsumption. #2382

Open
DerZc opened this issue Jan 3, 2023 · 0 comments
Open

A problem about subsumption. #2382

DerZc opened this issue Jan 3, 2023 · 0 comments

Comments

@DerZc
Copy link

DerZc commented Jan 3, 2023

Hi,

Consider the following program:

.decl a(A:number)
a(1).
a(2).
a(A1)<=a(A2):-A1<A2.
a(A1)<=a(A2):-A1>A2.
.output a

Souffle has empty result on this program.

The following program is equivalent to this program:

.decl a(A:number)
a(1).
a(A+1):-a(A), A<2.
a(A1)<=a(A2):-A1<A2.
a(A1)<=a(A2):-A1>A2.
.output a

Souffle has the following result:

---------------
a
A
===============
1
===============

Whether they should have equal results, Or maybe I'm wrong to write subsumption like this.

I have another small question, when dealing with subsumption, should it be treated as a separate rule?

The current version of Souffle I use is 3cd802d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant