↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
subset2: (f,b)
member2: (f,b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PrologToPiTRSProof
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_in_ag2(X, Ys))
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> MEMBER_2_IN_AG2(X, Ys)
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> IF_MEMBER_2_IN_1_AG4(X, Y, Xs, member_2_in_ag2(X, Xs))
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> MEMBER_2_IN_AG2(X, Xs)
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> IF_SUBSET_2_IN_2_AG4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> SUBSET_2_IN_AG2(Xs, Ys)
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PrologToPiTRSProof
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_in_ag2(X, Ys))
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> MEMBER_2_IN_AG2(X, Ys)
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> IF_MEMBER_2_IN_1_AG4(X, Y, Xs, member_2_in_ag2(X, Xs))
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> MEMBER_2_IN_AG2(X, Xs)
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> IF_SUBSET_2_IN_2_AG4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> SUBSET_2_IN_AG2(Xs, Ys)
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PrologToPiTRSProof
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> MEMBER_2_IN_AG2(X, Xs)
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PrologToPiTRSProof
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> MEMBER_2_IN_AG2(X, Xs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PrologToPiTRSProof
MEMBER_2_IN_AG1(._22(Y, Xs)) -> MEMBER_2_IN_AG1(Xs)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PrologToPiTRSProof
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> SUBSET_2_IN_AG2(Xs, Ys)
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_in_ag2(X, Ys))
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PrologToPiTRSProof
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> SUBSET_2_IN_AG2(Xs, Ys)
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ PrologToPiTRSProof
IF_SUBSET_2_IN_1_AG2(Ys, member_2_out_ag1(X)) -> SUBSET_2_IN_AG1(Ys)
SUBSET_2_IN_AG1(Ys) -> IF_SUBSET_2_IN_1_AG2(Ys, member_2_in_ag1(Ys))
member_2_in_ag1(._22(Y, Xs)) -> if_member_2_in_1_ag1(member_2_in_ag1(Xs))
member_2_in_ag1(._22(X, Xs)) -> member_2_out_ag1(X)
if_member_2_in_1_ag1(member_2_out_ag1(X)) -> member_2_out_ag1(X)
member_2_in_ag1(x0)
if_member_2_in_1_ag1(x0)
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_in_ag2(X, Ys))
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> MEMBER_2_IN_AG2(X, Ys)
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> IF_MEMBER_2_IN_1_AG4(X, Y, Xs, member_2_in_ag2(X, Xs))
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> MEMBER_2_IN_AG2(X, Xs)
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> IF_SUBSET_2_IN_2_AG4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> SUBSET_2_IN_AG2(Xs, Ys)
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_in_ag2(X, Ys))
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> MEMBER_2_IN_AG2(X, Ys)
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> IF_MEMBER_2_IN_1_AG4(X, Y, Xs, member_2_in_ag2(X, Xs))
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> MEMBER_2_IN_AG2(X, Xs)
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> IF_SUBSET_2_IN_2_AG4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> SUBSET_2_IN_AG2(Xs, Ys)
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> MEMBER_2_IN_AG2(X, Xs)
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
MEMBER_2_IN_AG2(X, ._22(Y, Xs)) -> MEMBER_2_IN_AG2(X, Xs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> SUBSET_2_IN_AG2(Xs, Ys)
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_in_ag2(X, Ys))
subset_2_in_ag2(._22(X, Xs), Ys) -> if_subset_2_in_1_ag4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))
if_subset_2_in_1_ag4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_in_ag2(Xs, Ys))
subset_2_in_ag2([]_0, Ys) -> subset_2_out_ag2([]_0, Ys)
if_subset_2_in_2_ag4(X, Xs, Ys, subset_2_out_ag2(Xs, Ys)) -> subset_2_out_ag2(._22(X, Xs), Ys)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_out_ag2(X, Ys)) -> SUBSET_2_IN_AG2(Xs, Ys)
SUBSET_2_IN_AG2(._22(X, Xs), Ys) -> IF_SUBSET_2_IN_1_AG4(X, Xs, Ys, member_2_in_ag2(X, Ys))
member_2_in_ag2(X, ._22(Y, Xs)) -> if_member_2_in_1_ag4(X, Y, Xs, member_2_in_ag2(X, Xs))
member_2_in_ag2(X, ._22(X, Xs)) -> member_2_out_ag2(X, ._22(X, Xs))
if_member_2_in_1_ag4(X, Y, Xs, member_2_out_ag2(X, Xs)) -> member_2_out_ag2(X, ._22(Y, Xs))