(0) Obligation:

Clauses:

reverse(X1s, X2s) :- reverse(X1s, [], X2s).
reverse([], Xs, Xs).
reverse(.(X, X1s), X2s, Ys) :- reverse(X1s, .(X, X2s), Ys).

Queries:

reverse(a,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

reverse68([], T433, T434, .(T433, T434)).
reverse68(.(T451, T450), T452, T453, T449) :- reverse68(T450, T451, .(T452, T453), T449).
reverse1([], []).
reverse1(.(T25, []), .(T25, [])).
reverse1(.(T54, .(T53, [])), .(T53, .(T54, []))).
reverse1(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))).
reverse1(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))).
reverse1(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))).
reverse1(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))).
reverse1(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))).
reverse1(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) :- reverse68(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394).

Queries:

reverse1(a,g).

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
reverse1_in: (f,b)
reverse68_in: (f,f,b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x6)

(5) DependencyPairsProof (EQUIVALENT transformation)

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

REVERSE1_IN_AG(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_AG(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
REVERSE1_IN_AG(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → REVERSE68_IN_AAGG(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)
REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → U1_AAGG(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → REVERSE68_IN_AAGG(T450, T451, .(T452, T453), T449)

The TRS R consists of the following rules:

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x6)
REVERSE1_IN_AG(x1, x2)  =  REVERSE1_IN_AG(x2)
U2_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_AG(x11)
REVERSE68_IN_AAGG(x1, x2, x3, x4)  =  REVERSE68_IN_AAGG(x3, x4)
U1_AAGG(x1, x2, x3, x4, x5, x6)  =  U1_AAGG(x6)

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

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVERSE1_IN_AG(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_AG(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
REVERSE1_IN_AG(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → REVERSE68_IN_AAGG(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)
REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → U1_AAGG(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → REVERSE68_IN_AAGG(T450, T451, .(T452, T453), T449)

The TRS R consists of the following rules:

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x6)
REVERSE1_IN_AG(x1, x2)  =  REVERSE1_IN_AG(x2)
U2_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_AG(x11)
REVERSE68_IN_AAGG(x1, x2, x3, x4)  =  REVERSE68_IN_AAGG(x3, x4)
U1_AAGG(x1, x2, x3, x4, x5, x6)  =  U1_AAGG(x6)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes.

(8) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → REVERSE68_IN_AAGG(T450, T451, .(T452, T453), T449)

The TRS R consists of the following rules:

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x6)
REVERSE68_IN_AAGG(x1, x2, x3, x4)  =  REVERSE68_IN_AAGG(x3, x4)

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

(9) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(10) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → REVERSE68_IN_AAGG(T450, T451, .(T452, T453), T449)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
REVERSE68_IN_AAGG(x1, x2, x3, x4)  =  REVERSE68_IN_AAGG(x3, x4)

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

(11) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(12) Obligation:

Q DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(T453, T449) → REVERSE68_IN_AAGG(.(T453), T449)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(13) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule REVERSE68_IN_AAGG(T453, T449) → REVERSE68_IN_AAGG(.(T453), T449) we obtained the following new rules [LPAR04]:

REVERSE68_IN_AAGG(.(z0), z1) → REVERSE68_IN_AAGG(.(.(z0)), z1)

(14) Obligation:

Q DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(.(z0), z1) → REVERSE68_IN_AAGG(.(.(z0)), z1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(15) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule REVERSE68_IN_AAGG(.(z0), z1) → REVERSE68_IN_AAGG(.(.(z0)), z1) we obtained the following new rules [LPAR04]:

REVERSE68_IN_AAGG(.(.(z0)), z1) → REVERSE68_IN_AAGG(.(.(.(z0))), z1)

(16) Obligation:

Q DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(.(.(z0)), z1) → REVERSE68_IN_AAGG(.(.(.(z0))), z1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(17) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = REVERSE68_IN_AAGG(.(.(z0)), z1) evaluates to t =REVERSE68_IN_AAGG(.(.(.(z0))), z1)

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Semiunifier: [ ]
  • Matcher: [z0 / .(z0)]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from REVERSE68_IN_AAGG(.(.(z0)), z1) to REVERSE68_IN_AAGG(.(.(.(z0))), z1).



(18) NO

(19) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
reverse1_in: (f,b)
reverse68_in: (f,f,b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x10, x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1, x3, x4)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x4, x5, x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(20) Obligation:

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

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x10, x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1, x3, x4)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x4, x5, x6)

(21) DependencyPairsProof (EQUIVALENT transformation)

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

REVERSE1_IN_AG(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_AG(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
REVERSE1_IN_AG(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → REVERSE68_IN_AAGG(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)
REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → U1_AAGG(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → REVERSE68_IN_AAGG(T450, T451, .(T452, T453), T449)

The TRS R consists of the following rules:

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x10, x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1, x3, x4)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x4, x5, x6)
REVERSE1_IN_AG(x1, x2)  =  REVERSE1_IN_AG(x2)
U2_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_AG(x10, x11)
REVERSE68_IN_AAGG(x1, x2, x3, x4)  =  REVERSE68_IN_AAGG(x3, x4)
U1_AAGG(x1, x2, x3, x4, x5, x6)  =  U1_AAGG(x4, x5, x6)

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

(22) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVERSE1_IN_AG(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_AG(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
REVERSE1_IN_AG(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → REVERSE68_IN_AAGG(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)
REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → U1_AAGG(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → REVERSE68_IN_AAGG(T450, T451, .(T452, T453), T449)

The TRS R consists of the following rules:

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x10, x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1, x3, x4)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x4, x5, x6)
REVERSE1_IN_AG(x1, x2)  =  REVERSE1_IN_AG(x2)
U2_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_AG(x10, x11)
REVERSE68_IN_AAGG(x1, x2, x3, x4)  =  REVERSE68_IN_AAGG(x3, x4)
U1_AAGG(x1, x2, x3, x4, x5, x6)  =  U1_AAGG(x4, x5, x6)

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

(23) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes.

(24) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → REVERSE68_IN_AAGG(T450, T451, .(T452, T453), T449)

The TRS R consists of the following rules:

reverse1_in_ag([], []) → reverse1_out_ag([], [])
reverse1_in_ag(.(T25, []), .(T25, [])) → reverse1_out_ag(.(T25, []), .(T25, []))
reverse1_in_ag(.(T54, .(T53, [])), .(T53, .(T54, []))) → reverse1_out_ag(.(T54, .(T53, [])), .(T53, .(T54, [])))
reverse1_in_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, [])))) → reverse1_out_ag(.(T94, .(T93, .(T92, []))), .(T92, .(T93, .(T94, []))))
reverse1_in_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, []))))) → reverse1_out_ag(.(T145, .(T144, .(T143, .(T142, [])))), .(T142, .(T143, .(T144, .(T145, [])))))
reverse1_in_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, [])))))) → reverse1_out_ag(.(T207, .(T206, .(T205, .(T204, .(T203, []))))), .(T203, .(T204, .(T205, .(T206, .(T207, []))))))
reverse1_in_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, []))))))) → reverse1_out_ag(.(T280, .(T279, .(T278, .(T277, .(T276, .(T275, [])))))), .(T275, .(T276, .(T277, .(T278, .(T279, .(T280, [])))))))
reverse1_in_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, [])))))))) → reverse1_out_ag(.(T364, .(T363, .(T362, .(T361, .(T360, .(T359, .(T358, []))))))), .(T358, .(T359, .(T360, .(T361, .(T362, .(T363, .(T364, []))))))))
reverse1_in_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394) → U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_in_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394))
reverse68_in_aagg([], T433, T434, .(T433, T434)) → reverse68_out_aagg([], T433, T434, .(T433, T434))
reverse68_in_aagg(.(T451, T450), T452, T453, T449) → U1_aagg(T451, T450, T452, T453, T449, reverse68_in_aagg(T450, T451, .(T452, T453), T449))
U1_aagg(T451, T450, T452, T453, T449, reverse68_out_aagg(T450, T451, .(T452, T453), T449)) → reverse68_out_aagg(.(T451, T450), T452, T453, T449)
U2_ag(T403, T402, T401, T400, T399, T398, T397, T396, T395, T394, reverse68_out_aagg(T395, T396, .(T397, .(T398, .(T399, .(T400, .(T401, .(T402, .(T403, []))))))), T394)) → reverse1_out_ag(.(T403, .(T402, .(T401, .(T400, .(T399, .(T398, .(T397, .(T396, T395)))))))), T394)

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
[]  =  []
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
.(x1, x2)  =  .(x2)
U2_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ag(x10, x11)
reverse68_in_aagg(x1, x2, x3, x4)  =  reverse68_in_aagg(x3, x4)
reverse68_out_aagg(x1, x2, x3, x4)  =  reverse68_out_aagg(x1, x3, x4)
U1_aagg(x1, x2, x3, x4, x5, x6)  =  U1_aagg(x4, x5, x6)
REVERSE68_IN_AAGG(x1, x2, x3, x4)  =  REVERSE68_IN_AAGG(x3, x4)

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

(25) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(26) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(.(T451, T450), T452, T453, T449) → REVERSE68_IN_AAGG(T450, T451, .(T452, T453), T449)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
REVERSE68_IN_AAGG(x1, x2, x3, x4)  =  REVERSE68_IN_AAGG(x3, x4)

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

(27) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(28) Obligation:

Q DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(T453, T449) → REVERSE68_IN_AAGG(.(T453), T449)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(29) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule REVERSE68_IN_AAGG(T453, T449) → REVERSE68_IN_AAGG(.(T453), T449) we obtained the following new rules [LPAR04]:

REVERSE68_IN_AAGG(.(z0), z1) → REVERSE68_IN_AAGG(.(.(z0)), z1)

(30) Obligation:

Q DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(.(z0), z1) → REVERSE68_IN_AAGG(.(.(z0)), z1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(31) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule REVERSE68_IN_AAGG(.(z0), z1) → REVERSE68_IN_AAGG(.(.(z0)), z1) we obtained the following new rules [LPAR04]:

REVERSE68_IN_AAGG(.(.(z0)), z1) → REVERSE68_IN_AAGG(.(.(.(z0))), z1)

(32) Obligation:

Q DP problem:
The TRS P consists of the following rules:

REVERSE68_IN_AAGG(.(.(z0)), z1) → REVERSE68_IN_AAGG(.(.(.(z0))), z1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(33) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = REVERSE68_IN_AAGG(.(.(z0)), z1) evaluates to t =REVERSE68_IN_AAGG(.(.(.(z0))), z1)

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Semiunifier: [ ]
  • Matcher: [z0 / .(z0)]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from REVERSE68_IN_AAGG(.(.(z0)), z1) to REVERSE68_IN_AAGG(.(.(.(z0))), z1).



(34) NO