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

Provenance displays incorrect facts in derivation tree for less-than relation #2466

Open
justinlubin opened this issue Jan 16, 2024 · 0 comments

Comments

@justinlubin
Copy link

Steps to reproduce

  1. Create a file test.dl with the following content:
.decl node(x: number)

.decl link(x: number, y: number, z: number)
.output link

node(1).
node(2).
node(3).

link(x, y, z) :- node(x), node(y), node(z), x < y, y < z.
  1. Run souffle -texplain test.dl and enter the command explain link(1, 2, 3).

Expected output

node(1) node(2) node(3) 1 < 2 2 < 3
--------------------------------(R1)
           link(1, 2, 3)

Actual output

node(1) node(2) node(3) 1 < 2 1 < 1
--------------------------------(R1)
           link(1, 2, 3)

This derivation tree is incorrect because the premises in the top-right corner do not match up with the premises in the definition of link; moreover, the 1 < 1 premise is simply not true.

P.S. Thanks for all your work on Soufflé — the tool and papers are amazing! :)

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