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

Support Safe Rules without Positive Body Atoms #608

Open
monsterkrampe opened this issue Jan 29, 2025 · 1 comment
Open

Support Safe Rules without Positive Body Atoms #608

monsterkrampe opened this issue Jan 29, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@monsterkrampe
Copy link
Member

One could write rules like the following (which might be useful when auto-generating rules):

A(1) :- 1 = 1.

Nemo however does not allow this since the body lacks a positive atom.
I would be convenient to allow writing rules that lack positive body atoms (as long as they are safe).

@monsterkrampe monsterkrampe added the enhancement New feature or request label Jan 29, 2025
@github-project-automation github-project-automation bot moved this to Todo in nemo Jan 29, 2025
@monsterkrampe
Copy link
Member Author

For now, the workaround is to create a dummy fact and add it to the rule body as follows:

Dummy(0).
A(1) :- Dummy(0), 1 = 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant