(0) Obligation:

Clauses:

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

Query: at(a,a)

(1) PrologToPiTRSViaGraphTransformerProof (SOUND transformation)

Transformed Prolog program to (Pi-)TRS.

(2) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

atA_in_aa(jm, fido) → atA_out_aa(jm, fido)
atA_in_aa(ta, mary) → atA_out_aa(ta, mary)
atA_in_aa(jm, mary) → atA_out_aa(jm, mary)

The argument filtering Pi contains the following mapping:
atA_in_aa(x1, x2)  =  atA_in_aa
atA_out_aa(x1, x2)  =  atA_out_aa(x1, x2)

(3) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
P is empty.
The TRS R consists of the following rules:

atA_in_aa(jm, fido) → atA_out_aa(jm, fido)
atA_in_aa(ta, mary) → atA_out_aa(ta, mary)
atA_in_aa(jm, mary) → atA_out_aa(jm, mary)

The argument filtering Pi contains the following mapping:
atA_in_aa(x1, x2)  =  atA_in_aa
atA_out_aa(x1, x2)  =  atA_out_aa(x1, x2)

We have to consider all (P,R,Pi)-chains

(4) Obligation:

Pi DP problem:
P is empty.
The TRS R consists of the following rules:

atA_in_aa(jm, fido) → atA_out_aa(jm, fido)
atA_in_aa(ta, mary) → atA_out_aa(ta, mary)
atA_in_aa(jm, mary) → atA_out_aa(jm, mary)

The argument filtering Pi contains the following mapping:
atA_in_aa(x1, x2)  =  atA_in_aa
atA_out_aa(x1, x2)  =  atA_out_aa(x1, x2)

We have to consider all (P,R,Pi)-chains

(5) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,R,Pi) chain.

(6) YES