Ciao Preprocessor (integrated Alpha version)
 | This is an alpha distribution, meant only for testing. Please do let us 
 | know at ciaopp-bugclip.dia.fi.upm.es any problems you may have.

{loaded in 3404.212 msec.}
{preprocessed for plai in 0.0 msec.}
{analyzed by plai using det with local-control off in 4.0 msec.}
{written file /tmp/tmp_GqvFh/at_det_co.pl}
:- module(_1,[at/2],[assertions]).

:- entry at(A,B).

:- true pred at(A,B)
         : ( native_props:mshare([[A],[A,B],[B]]), term(A), term(B) )
        => ( ground([A,B]), rt4(A), rt10(B) )
         + ( is_det, mut_exclusive ).

:- true pred at(A,mary)
         : ( native_props:mshare([[A]]), term(A) )
        => ( ground([A]), rt7(A) )
         + ( is_det, mut_exclusive ).

at(X,fido) :-
        at(X,mary),
        near(X).
at(ta,mary).
at(jm,mary).

:- true pred near(_1)
         : ( ground([_1]), rt7(_1) )
        => ( ground([_1]), rt8(_1) )
         + ( is_det, mut_exclusive ).

near(jm).


:- regtype rt4/1.

rt4(jm).
rt4(ta).


:- regtype rt10/1.

rt10(fido).
rt10(mary).


:- regtype rt7/1.

rt7(jm).
rt7(ta).


:- regtype rt8/1.

rt8(jm).