(0) Obligation:

Clauses:

reverse(L, LR) :- revacc(L, LR, []).
revacc([], L, L).
revacc(.(EL, T), R, A) :- revacc(T, R, .(EL, A)).

Queries:

reverse(g,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

revacc68([], .(T460, T461), T460, T461).
revacc68(.(T472, T473), T477, T475, T476) :- revacc68(T473, T477, T472, .(T475, T476)).
reverse1([], []).
reverse1(.(T36, []), .(T36, [])).
reverse1(.(T70, .(T69, [])), .(T69, .(T70, []))).
reverse1(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))).
reverse1(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))).
reverse1(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))).
reverse1(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))).
reverse1(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))).
reverse1(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) :- revacc68(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))).

Queries:

reverse1(g,a).

(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: (b,f)
revacc68_in: (b,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_ga([], []) → reverse1_out_ga([], [])
reverse1_in_ga(.(T36, []), .(T36, [])) → reverse1_out_ga(.(T36, []), .(T36, []))
reverse1_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverse1_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverse1_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverse1_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverse1_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverse1_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverse1_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverse1_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverse1_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverse1_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverse1_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverse1_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverse1_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revacc68_in_gagg([], .(T460, T461), T460, T461) → revacc68_out_gagg([], .(T460, T461), T460, T461)
revacc68_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revacc68_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revacc68_out_gagg(T473, T477, T472, .(T475, T476))) → revacc68_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverse1_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverse1_in_ga(x1, x2)  =  reverse1_in_ga(x1)
[]  =  []
reverse1_out_ga(x1, x2)  =  reverse1_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revacc68_in_gagg(x1, x2, x3, x4)  =  revacc68_in_gagg(x1, x3, x4)
revacc68_out_gagg(x1, x2, x3, x4)  =  revacc68_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(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_ga([], []) → reverse1_out_ga([], [])
reverse1_in_ga(.(T36, []), .(T36, [])) → reverse1_out_ga(.(T36, []), .(T36, []))
reverse1_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverse1_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverse1_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverse1_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverse1_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverse1_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverse1_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverse1_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverse1_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverse1_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverse1_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverse1_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverse1_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revacc68_in_gagg([], .(T460, T461), T460, T461) → revacc68_out_gagg([], .(T460, T461), T460, T461)
revacc68_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revacc68_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revacc68_out_gagg(T473, T477, T472, .(T475, T476))) → revacc68_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverse1_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverse1_in_ga(x1, x2)  =  reverse1_in_ga(x1)
[]  =  []
reverse1_out_ga(x1, x2)  =  reverse1_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revacc68_in_gagg(x1, x2, x3, x4)  =  revacc68_in_gagg(x1, x3, x4)
revacc68_out_gagg(x1, x2, x3, x4)  =  revacc68_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(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_GA(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_GA(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
REVERSE1_IN_GA(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → REVACC68_IN_GAGG(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))
REVACC68_IN_GAGG(.(T472, T473), T477, T475, T476) → U1_GAGG(T472, T473, T477, T475, T476, revacc68_in_gagg(T473, T477, T472, .(T475, T476)))
REVACC68_IN_GAGG(.(T472, T473), T477, T475, T476) → REVACC68_IN_GAGG(T473, T477, T472, .(T475, T476))

The TRS R consists of the following rules:

reverse1_in_ga([], []) → reverse1_out_ga([], [])
reverse1_in_ga(.(T36, []), .(T36, [])) → reverse1_out_ga(.(T36, []), .(T36, []))
reverse1_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverse1_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverse1_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverse1_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverse1_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverse1_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverse1_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverse1_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverse1_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverse1_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverse1_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverse1_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverse1_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revacc68_in_gagg([], .(T460, T461), T460, T461) → revacc68_out_gagg([], .(T460, T461), T460, T461)
revacc68_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revacc68_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revacc68_out_gagg(T473, T477, T472, .(T475, T476))) → revacc68_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverse1_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverse1_in_ga(x1, x2)  =  reverse1_in_ga(x1)
[]  =  []
reverse1_out_ga(x1, x2)  =  reverse1_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revacc68_in_gagg(x1, x2, x3, x4)  =  revacc68_in_gagg(x1, x3, x4)
revacc68_out_gagg(x1, x2, x3, x4)  =  revacc68_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(x6)
REVERSE1_IN_GA(x1, x2)  =  REVERSE1_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_GA(x11)
REVACC68_IN_GAGG(x1, x2, x3, x4)  =  REVACC68_IN_GAGG(x1, x3, x4)
U1_GAGG(x1, x2, x3, x4, x5, x6)  =  U1_GAGG(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_GA(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_GA(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
REVERSE1_IN_GA(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → REVACC68_IN_GAGG(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))
REVACC68_IN_GAGG(.(T472, T473), T477, T475, T476) → U1_GAGG(T472, T473, T477, T475, T476, revacc68_in_gagg(T473, T477, T472, .(T475, T476)))
REVACC68_IN_GAGG(.(T472, T473), T477, T475, T476) → REVACC68_IN_GAGG(T473, T477, T472, .(T475, T476))

The TRS R consists of the following rules:

reverse1_in_ga([], []) → reverse1_out_ga([], [])
reverse1_in_ga(.(T36, []), .(T36, [])) → reverse1_out_ga(.(T36, []), .(T36, []))
reverse1_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverse1_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverse1_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverse1_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverse1_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverse1_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverse1_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverse1_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverse1_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverse1_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverse1_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverse1_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverse1_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revacc68_in_gagg([], .(T460, T461), T460, T461) → revacc68_out_gagg([], .(T460, T461), T460, T461)
revacc68_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revacc68_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revacc68_out_gagg(T473, T477, T472, .(T475, T476))) → revacc68_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverse1_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverse1_in_ga(x1, x2)  =  reverse1_in_ga(x1)
[]  =  []
reverse1_out_ga(x1, x2)  =  reverse1_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revacc68_in_gagg(x1, x2, x3, x4)  =  revacc68_in_gagg(x1, x3, x4)
revacc68_out_gagg(x1, x2, x3, x4)  =  revacc68_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(x6)
REVERSE1_IN_GA(x1, x2)  =  REVERSE1_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_GA(x11)
REVACC68_IN_GAGG(x1, x2, x3, x4)  =  REVACC68_IN_GAGG(x1, x3, x4)
U1_GAGG(x1, x2, x3, x4, x5, x6)  =  U1_GAGG(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:

REVACC68_IN_GAGG(.(T472, T473), T477, T475, T476) → REVACC68_IN_GAGG(T473, T477, T472, .(T475, T476))

The TRS R consists of the following rules:

reverse1_in_ga([], []) → reverse1_out_ga([], [])
reverse1_in_ga(.(T36, []), .(T36, [])) → reverse1_out_ga(.(T36, []), .(T36, []))
reverse1_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverse1_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverse1_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverse1_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverse1_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverse1_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverse1_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverse1_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverse1_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverse1_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverse1_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverse1_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverse1_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revacc68_in_gagg([], .(T460, T461), T460, T461) → revacc68_out_gagg([], .(T460, T461), T460, T461)
revacc68_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revacc68_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revacc68_out_gagg(T473, T477, T472, .(T475, T476))) → revacc68_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revacc68_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverse1_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverse1_in_ga(x1, x2)  =  reverse1_in_ga(x1)
[]  =  []
reverse1_out_ga(x1, x2)  =  reverse1_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revacc68_in_gagg(x1, x2, x3, x4)  =  revacc68_in_gagg(x1, x3, x4)
revacc68_out_gagg(x1, x2, x3, x4)  =  revacc68_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(x6)
REVACC68_IN_GAGG(x1, x2, x3, x4)  =  REVACC68_IN_GAGG(x1, 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:

REVACC68_IN_GAGG(.(T472, T473), T477, T475, T476) → REVACC68_IN_GAGG(T473, T477, T472, .(T475, T476))

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
REVACC68_IN_GAGG(x1, x2, x3, x4)  =  REVACC68_IN_GAGG(x1, 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:

REVACC68_IN_GAGG(.(T472, T473), T475, T476) → REVACC68_IN_GAGG(T473, T472, .(T475, T476))

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

(13) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • REVACC68_IN_GAGG(.(T472, T473), T475, T476) → REVACC68_IN_GAGG(T473, T472, .(T475, T476))
    The graph contains the following edges 1 > 1, 1 > 2

(14) YES