%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Encoding for stable extensions
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
out(X) :- arg(X), not natt(X,X).
%% Guess a set S \subseteq A
in(X) :- not out(X), arg(X).
out(X) :- not in(X), arg(X).
%% S has to be conflict-free
:- in(X), in(Y), not natt(X,Y).
%% The argument x is defeated by the set S
defeated(X) :- in(Y), not natt(Y,X), arg(X).
%% S defeats all arguments which do not belong to S
:- out(X), not defeated(X).
#show in/1.