Skip to content

Answer-Sets missing with negated count-equals aggregate. #357

@AntoniusW

Description

@AntoniusW

The following program unexpectedly has Alpha report 2 answer sets while there should be three.

:- not 1=#count{ na_1 : a; nb_1 : b; nc_1 : c }.
na_1 :- not a.
a :- not na_1.
nb_1 :- not b.
b :- not nb_1.
nc_1 :- not c.
c :- not nc_1.

Commandline: -n 0 -str [above program]
Output:

Answer set 1:
{ b, na_1, nc_1 }
Answer set 2:
{ c, na_1, nb_1 }
SATISFIABLE

Expected: a third answer set { a, nb_1, nc_1}.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions