Skip to content

Generate clauses of which  #43

@vale1410

Description

@vale1410

The following program should not generate any unit clauses:

#ground f[1],f[2],f[3]. 
f[X] :: var(X). 

Bule grounds this to:

Warning. Undeclared variables: var(1) var(2) var(3)

 var(1).
 var(2).
 var(3).

It's good that it notifies that clauses are generated of which no variables are introduced.
In my opinion it should not generate the clauses at all.

For example:

#ground f[1],f[2].     
f[X] :: #exists[0] foo(X).  
f[X] :: bar(X) | foo(X). 

In my opinion it should not generate the clauses.

Alternative option: it generates the clauses with the atoms that have been introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions