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

[BUG?] Dynamic Consistency Check (DCC) does not preserve semantics #6

Open
jinulee-v opened this issue Sep 8, 2023 · 0 comments
Open

Comments

@jinulee-v
Copy link

jinulee-v commented Sep 8, 2023

While experimenting, I have found an unexpected behavior regarding the following code.

a :- b(c(d(X))).
b(c(O)) :- e(O).
e(h).
?- not a.
% Model: {e(h)  b(c(h))   not b(c(X | X \notin {h}))   not a}

While normal execution can find a correct model+proof, running with option --dcc fails to find a valid model in this case.

Is there a recursion depth limit for --dcc, that I can manually modify?

Minimal pairs (success with --dcc)

a :- b(c(d(X))).
b(c(h)). % Induction does not have to continue further
?- not a.
a :- b(d(X)). % Only two layers deep
b(O) :- e(O).
e(h).
?- not a.
@jinulee-v jinulee-v changed the title Dynamic Consistency Check (DCC) does not preserve semantics [BUG?] Dynamic Consistency Check (DCC) does not preserve semantics Sep 8, 2023
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