(0) Obligation:

Clauses:

app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).
app([], Ys, Ys).
reverse(.(X, Xs), Ys) :- ','(reverse(Xs, Zs), app(Zs, .(X, []), Ys)).
reverse([], []).

Queries:

reverse(a,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

reverse10(.(T42, T41), X69) :- reverse10(T41, X68).
reverse10(.(T46, T41), X69) :- ','(reverse10(T41, T45), app18(T45, T46, X69)).
reverse10([], []).
app18(.(T64, T67), T68, .(T64, X112)) :- app18(T67, T68, X112).
app18([], T74, .(T74, [])).
app31(.(T103, T107), T108, .(T103, T106)) :- app31(T107, T108, T106).
app31([], T115, .(T115, [])).
reverse1(.(T23, .(T22, T21)), T8) :- reverse10(T21, X32).
reverse1(.(T28, .(T27, T21)), T8) :- ','(reverse10(T21, T26), app18(T26, T27, X33)).
reverse1(.(T79, .(T27, T21)), T8) :- ','(reverse10(T21, T26), ','(app18(T26, T27, T78), app31(T78, T79, T8))).
reverse1(.(T121, []), .(T121, [])).
reverse1([], []).
reverse1([], []).

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)
reverse10_in: (f,f)
app18_in: (f,f,f)
app31_in: (b,f,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag

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(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag

(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(.(T23, .(T22, T21)), T8) → U6_AG(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
REVERSE1_IN_AG(.(T23, .(T22, T21)), T8) → REVERSE10_IN_AA(T21, X32)
REVERSE10_IN_AA(.(T42, T41), X69) → U1_AA(T42, T41, X69, reverse10_in_aa(T41, X68))
REVERSE10_IN_AA(.(T42, T41), X69) → REVERSE10_IN_AA(T41, X68)
REVERSE10_IN_AA(.(T46, T41), X69) → U2_AA(T46, T41, X69, reverse10_in_aa(T41, T45))
U2_AA(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_AA(T46, T41, X69, app18_in_aaa(T45, T46, X69))
U2_AA(T46, T41, X69, reverse10_out_aa(T41, T45)) → APP18_IN_AAA(T45, T46, X69)
APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → U4_AAA(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → APP18_IN_AAA(T67, T68, X112)
REVERSE1_IN_AG(.(T28, .(T27, T21)), T8) → U7_AG(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_AG(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_AG(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U7_AG(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → APP18_IN_AAA(T26, T27, X33)
REVERSE1_IN_AG(.(T79, .(T27, T21)), T8) → U9_AG(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_AG(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_AG(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U9_AG(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → APP18_IN_AAA(T26, T27, T78)
U10_AG(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_AG(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
U10_AG(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → APP31_IN_GAG(T78, T79, T8)
APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → U5_GAG(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → APP31_IN_GAG(T107, T108, T106)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag
REVERSE1_IN_AG(x1, x2)  =  REVERSE1_IN_AG(x2)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x5)
REVERSE10_IN_AA(x1, x2)  =  REVERSE10_IN_AA
U1_AA(x1, x2, x3, x4)  =  U1_AA(x4)
U2_AA(x1, x2, x3, x4)  =  U2_AA(x4)
U3_AA(x1, x2, x3, x4)  =  U3_AA(x2, x4)
APP18_IN_AAA(x1, x2, x3)  =  APP18_IN_AAA
U4_AAA(x1, x2, x3, x4, x5)  =  U4_AAA(x5)
U7_AG(x1, x2, x3, x4, x5)  =  U7_AG(x5)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x3, x5)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x4, x5)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x3, x4, x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x3, x5)
APP31_IN_GAG(x1, x2, x3)  =  APP31_IN_GAG(x1, x3)
U5_GAG(x1, x2, x3, x4, x5)  =  U5_GAG(x5)

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(.(T23, .(T22, T21)), T8) → U6_AG(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
REVERSE1_IN_AG(.(T23, .(T22, T21)), T8) → REVERSE10_IN_AA(T21, X32)
REVERSE10_IN_AA(.(T42, T41), X69) → U1_AA(T42, T41, X69, reverse10_in_aa(T41, X68))
REVERSE10_IN_AA(.(T42, T41), X69) → REVERSE10_IN_AA(T41, X68)
REVERSE10_IN_AA(.(T46, T41), X69) → U2_AA(T46, T41, X69, reverse10_in_aa(T41, T45))
U2_AA(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_AA(T46, T41, X69, app18_in_aaa(T45, T46, X69))
U2_AA(T46, T41, X69, reverse10_out_aa(T41, T45)) → APP18_IN_AAA(T45, T46, X69)
APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → U4_AAA(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → APP18_IN_AAA(T67, T68, X112)
REVERSE1_IN_AG(.(T28, .(T27, T21)), T8) → U7_AG(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_AG(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_AG(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U7_AG(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → APP18_IN_AAA(T26, T27, X33)
REVERSE1_IN_AG(.(T79, .(T27, T21)), T8) → U9_AG(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_AG(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_AG(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U9_AG(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → APP18_IN_AAA(T26, T27, T78)
U10_AG(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_AG(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
U10_AG(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → APP31_IN_GAG(T78, T79, T8)
APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → U5_GAG(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → APP31_IN_GAG(T107, T108, T106)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag
REVERSE1_IN_AG(x1, x2)  =  REVERSE1_IN_AG(x2)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x5)
REVERSE10_IN_AA(x1, x2)  =  REVERSE10_IN_AA
U1_AA(x1, x2, x3, x4)  =  U1_AA(x4)
U2_AA(x1, x2, x3, x4)  =  U2_AA(x4)
U3_AA(x1, x2, x3, x4)  =  U3_AA(x2, x4)
APP18_IN_AAA(x1, x2, x3)  =  APP18_IN_AAA
U4_AAA(x1, x2, x3, x4, x5)  =  U4_AAA(x5)
U7_AG(x1, x2, x3, x4, x5)  =  U7_AG(x5)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x3, x5)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x4, x5)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x3, x4, x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x3, x5)
APP31_IN_GAG(x1, x2, x3)  =  APP31_IN_GAG(x1, x3)
U5_GAG(x1, x2, x3, x4, x5)  =  U5_GAG(x5)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 16 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → APP31_IN_GAG(T107, T108, T106)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag
APP31_IN_GAG(x1, x2, x3)  =  APP31_IN_GAG(x1, x3)

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

(10) UsableRulesProof (EQUIVALENT transformation)

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

(11) Obligation:

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

APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → APP31_IN_GAG(T107, T108, T106)

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

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

(12) PiDPToQDPProof (SOUND transformation)

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

(13) Obligation:

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

APP31_IN_GAG(.(T107), .(T106)) → APP31_IN_GAG(T107, T106)

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

(14) 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:

  • APP31_IN_GAG(.(T107), .(T106)) → APP31_IN_GAG(T107, T106)
    The graph contains the following edges 1 > 1, 2 > 2

(15) YES

(16) Obligation:

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

APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → APP18_IN_AAA(T67, T68, X112)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag
APP18_IN_AAA(x1, x2, x3)  =  APP18_IN_AAA

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

(17) UsableRulesProof (EQUIVALENT transformation)

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

(18) Obligation:

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

APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → APP18_IN_AAA(T67, T68, X112)

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

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

(19) PiDPToQDPProof (SOUND transformation)

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

(20) Obligation:

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

APP18_IN_AAAAPP18_IN_AAA

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

(21) 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 = APP18_IN_AAA evaluates to t =APP18_IN_AAA

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Semiunifier: [ ]
  • Matcher: [ ]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from APP18_IN_AAA to APP18_IN_AAA.



(22) NO

(23) Obligation:

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

REVERSE10_IN_AA(.(T42, T41), X69) → REVERSE10_IN_AA(T41, X68)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag
REVERSE10_IN_AA(x1, x2)  =  REVERSE10_IN_AA

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

(24) UsableRulesProof (EQUIVALENT transformation)

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

(25) Obligation:

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

REVERSE10_IN_AA(.(T42, T41), X69) → REVERSE10_IN_AA(T41, X68)

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

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

(26) PiDPToQDPProof (SOUND transformation)

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

(27) Obligation:

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

REVERSE10_IN_AAREVERSE10_IN_AA

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

(28) 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 = REVERSE10_IN_AA evaluates to t =REVERSE10_IN_AA

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Matcher: [ ]
  • Semiunifier: [ ]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from REVERSE10_IN_AA to REVERSE10_IN_AA.



(29) NO

(30) 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)
reverse10_in: (f,f)
app18_in: (f,f,f)
app31_in: (b,f,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x4, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x2, x4, x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag(x1, x3)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(31) Obligation:

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

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x4, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x2, x4, x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag(x1, x3)

(32) 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(.(T23, .(T22, T21)), T8) → U6_AG(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
REVERSE1_IN_AG(.(T23, .(T22, T21)), T8) → REVERSE10_IN_AA(T21, X32)
REVERSE10_IN_AA(.(T42, T41), X69) → U1_AA(T42, T41, X69, reverse10_in_aa(T41, X68))
REVERSE10_IN_AA(.(T42, T41), X69) → REVERSE10_IN_AA(T41, X68)
REVERSE10_IN_AA(.(T46, T41), X69) → U2_AA(T46, T41, X69, reverse10_in_aa(T41, T45))
U2_AA(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_AA(T46, T41, X69, app18_in_aaa(T45, T46, X69))
U2_AA(T46, T41, X69, reverse10_out_aa(T41, T45)) → APP18_IN_AAA(T45, T46, X69)
APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → U4_AAA(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → APP18_IN_AAA(T67, T68, X112)
REVERSE1_IN_AG(.(T28, .(T27, T21)), T8) → U7_AG(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_AG(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_AG(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U7_AG(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → APP18_IN_AAA(T26, T27, X33)
REVERSE1_IN_AG(.(T79, .(T27, T21)), T8) → U9_AG(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_AG(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_AG(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U9_AG(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → APP18_IN_AAA(T26, T27, T78)
U10_AG(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_AG(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
U10_AG(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → APP31_IN_GAG(T78, T79, T8)
APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → U5_GAG(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → APP31_IN_GAG(T107, T108, T106)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x4, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x2, x4, x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag(x1, x3)
REVERSE1_IN_AG(x1, x2)  =  REVERSE1_IN_AG(x2)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x4, x5)
REVERSE10_IN_AA(x1, x2)  =  REVERSE10_IN_AA
U1_AA(x1, x2, x3, x4)  =  U1_AA(x4)
U2_AA(x1, x2, x3, x4)  =  U2_AA(x4)
U3_AA(x1, x2, x3, x4)  =  U3_AA(x2, x4)
APP18_IN_AAA(x1, x2, x3)  =  APP18_IN_AAA
U4_AAA(x1, x2, x3, x4, x5)  =  U4_AAA(x5)
U7_AG(x1, x2, x3, x4, x5)  =  U7_AG(x4, x5)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x3, x4, x5)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x4, x5)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x3, x4, x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x3, x4, x5)
APP31_IN_GAG(x1, x2, x3)  =  APP31_IN_GAG(x1, x3)
U5_GAG(x1, x2, x3, x4, x5)  =  U5_GAG(x2, x4, x5)

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

(33) Obligation:

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

REVERSE1_IN_AG(.(T23, .(T22, T21)), T8) → U6_AG(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
REVERSE1_IN_AG(.(T23, .(T22, T21)), T8) → REVERSE10_IN_AA(T21, X32)
REVERSE10_IN_AA(.(T42, T41), X69) → U1_AA(T42, T41, X69, reverse10_in_aa(T41, X68))
REVERSE10_IN_AA(.(T42, T41), X69) → REVERSE10_IN_AA(T41, X68)
REVERSE10_IN_AA(.(T46, T41), X69) → U2_AA(T46, T41, X69, reverse10_in_aa(T41, T45))
U2_AA(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_AA(T46, T41, X69, app18_in_aaa(T45, T46, X69))
U2_AA(T46, T41, X69, reverse10_out_aa(T41, T45)) → APP18_IN_AAA(T45, T46, X69)
APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → U4_AAA(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → APP18_IN_AAA(T67, T68, X112)
REVERSE1_IN_AG(.(T28, .(T27, T21)), T8) → U7_AG(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_AG(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_AG(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U7_AG(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → APP18_IN_AAA(T26, T27, X33)
REVERSE1_IN_AG(.(T79, .(T27, T21)), T8) → U9_AG(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_AG(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_AG(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U9_AG(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → APP18_IN_AAA(T26, T27, T78)
U10_AG(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_AG(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
U10_AG(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → APP31_IN_GAG(T78, T79, T8)
APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → U5_GAG(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → APP31_IN_GAG(T107, T108, T106)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x4, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x2, x4, x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag(x1, x3)
REVERSE1_IN_AG(x1, x2)  =  REVERSE1_IN_AG(x2)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x4, x5)
REVERSE10_IN_AA(x1, x2)  =  REVERSE10_IN_AA
U1_AA(x1, x2, x3, x4)  =  U1_AA(x4)
U2_AA(x1, x2, x3, x4)  =  U2_AA(x4)
U3_AA(x1, x2, x3, x4)  =  U3_AA(x2, x4)
APP18_IN_AAA(x1, x2, x3)  =  APP18_IN_AAA
U4_AAA(x1, x2, x3, x4, x5)  =  U4_AAA(x5)
U7_AG(x1, x2, x3, x4, x5)  =  U7_AG(x4, x5)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x3, x4, x5)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x4, x5)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x3, x4, x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x3, x4, x5)
APP31_IN_GAG(x1, x2, x3)  =  APP31_IN_GAG(x1, x3)
U5_GAG(x1, x2, x3, x4, x5)  =  U5_GAG(x2, x4, x5)

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

(34) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 16 less nodes.

(35) Complex Obligation (AND)

(36) Obligation:

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

APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → APP31_IN_GAG(T107, T108, T106)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x4, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x2, x4, x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag(x1, x3)
APP31_IN_GAG(x1, x2, x3)  =  APP31_IN_GAG(x1, x3)

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

(37) UsableRulesProof (EQUIVALENT transformation)

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

(38) Obligation:

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

APP31_IN_GAG(.(T103, T107), T108, .(T103, T106)) → APP31_IN_GAG(T107, T108, T106)

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

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

(39) PiDPToQDPProof (SOUND transformation)

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

(40) Obligation:

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

APP31_IN_GAG(.(T107), .(T106)) → APP31_IN_GAG(T107, T106)

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

(41) 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:

  • APP31_IN_GAG(.(T107), .(T106)) → APP31_IN_GAG(T107, T106)
    The graph contains the following edges 1 > 1, 2 > 2

(42) YES

(43) Obligation:

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

APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → APP18_IN_AAA(T67, T68, X112)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x4, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x2, x4, x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag(x1, x3)
APP18_IN_AAA(x1, x2, x3)  =  APP18_IN_AAA

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

(44) UsableRulesProof (EQUIVALENT transformation)

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

(45) Obligation:

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

APP18_IN_AAA(.(T64, T67), T68, .(T64, X112)) → APP18_IN_AAA(T67, T68, X112)

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

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

(46) PiDPToQDPProof (SOUND transformation)

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

(47) Obligation:

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

APP18_IN_AAAAPP18_IN_AAA

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

(48) 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 = APP18_IN_AAA evaluates to t =APP18_IN_AAA

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Matcher: [ ]
  • Semiunifier: [ ]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from APP18_IN_AAA to APP18_IN_AAA.



(49) NO

(50) Obligation:

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

REVERSE10_IN_AA(.(T42, T41), X69) → REVERSE10_IN_AA(T41, X68)

The TRS R consists of the following rules:

reverse1_in_ag(.(T23, .(T22, T21)), T8) → U6_ag(T23, T22, T21, T8, reverse10_in_aa(T21, X32))
reverse10_in_aa(.(T42, T41), X69) → U1_aa(T42, T41, X69, reverse10_in_aa(T41, X68))
reverse10_in_aa(.(T46, T41), X69) → U2_aa(T46, T41, X69, reverse10_in_aa(T41, T45))
reverse10_in_aa([], []) → reverse10_out_aa([], [])
U2_aa(T46, T41, X69, reverse10_out_aa(T41, T45)) → U3_aa(T46, T41, X69, app18_in_aaa(T45, T46, X69))
app18_in_aaa(.(T64, T67), T68, .(T64, X112)) → U4_aaa(T64, T67, T68, X112, app18_in_aaa(T67, T68, X112))
app18_in_aaa([], T74, .(T74, [])) → app18_out_aaa([], T74, .(T74, []))
U4_aaa(T64, T67, T68, X112, app18_out_aaa(T67, T68, X112)) → app18_out_aaa(.(T64, T67), T68, .(T64, X112))
U3_aa(T46, T41, X69, app18_out_aaa(T45, T46, X69)) → reverse10_out_aa(.(T46, T41), X69)
U1_aa(T42, T41, X69, reverse10_out_aa(T41, X68)) → reverse10_out_aa(.(T42, T41), X69)
U6_ag(T23, T22, T21, T8, reverse10_out_aa(T21, X32)) → reverse1_out_ag(.(T23, .(T22, T21)), T8)
reverse1_in_ag(.(T28, .(T27, T21)), T8) → U7_ag(T28, T27, T21, T8, reverse10_in_aa(T21, T26))
U7_ag(T28, T27, T21, T8, reverse10_out_aa(T21, T26)) → U8_ag(T28, T27, T21, T8, app18_in_aaa(T26, T27, X33))
U8_ag(T28, T27, T21, T8, app18_out_aaa(T26, T27, X33)) → reverse1_out_ag(.(T28, .(T27, T21)), T8)
reverse1_in_ag(.(T79, .(T27, T21)), T8) → U9_ag(T79, T27, T21, T8, reverse10_in_aa(T21, T26))
U9_ag(T79, T27, T21, T8, reverse10_out_aa(T21, T26)) → U10_ag(T79, T27, T21, T8, app18_in_aaa(T26, T27, T78))
U10_ag(T79, T27, T21, T8, app18_out_aaa(T26, T27, T78)) → U11_ag(T79, T27, T21, T8, app31_in_gag(T78, T79, T8))
app31_in_gag(.(T103, T107), T108, .(T103, T106)) → U5_gag(T103, T107, T108, T106, app31_in_gag(T107, T108, T106))
app31_in_gag([], T115, .(T115, [])) → app31_out_gag([], T115, .(T115, []))
U5_gag(T103, T107, T108, T106, app31_out_gag(T107, T108, T106)) → app31_out_gag(.(T103, T107), T108, .(T103, T106))
U11_ag(T79, T27, T21, T8, app31_out_gag(T78, T79, T8)) → reverse1_out_ag(.(T79, .(T27, T21)), T8)
reverse1_in_ag(.(T121, []), .(T121, [])) → reverse1_out_ag(.(T121, []), .(T121, []))
reverse1_in_ag([], []) → reverse1_out_ag([], [])

The argument filtering Pi contains the following mapping:
reverse1_in_ag(x1, x2)  =  reverse1_in_ag(x2)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
reverse10_in_aa(x1, x2)  =  reverse10_in_aa
U1_aa(x1, x2, x3, x4)  =  U1_aa(x4)
U2_aa(x1, x2, x3, x4)  =  U2_aa(x4)
reverse10_out_aa(x1, x2)  =  reverse10_out_aa(x1)
U3_aa(x1, x2, x3, x4)  =  U3_aa(x2, x4)
.(x1, x2)  =  .(x2)
[]  =  []
app18_in_aaa(x1, x2, x3)  =  app18_in_aaa
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
app18_out_aaa(x1, x2, x3)  =  app18_out_aaa(x1, x3)
reverse1_out_ag(x1, x2)  =  reverse1_out_ag(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x4, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
app31_in_gag(x1, x2, x3)  =  app31_in_gag(x1, x3)
U5_gag(x1, x2, x3, x4, x5)  =  U5_gag(x2, x4, x5)
app31_out_gag(x1, x2, x3)  =  app31_out_gag(x1, x3)
REVERSE10_IN_AA(x1, x2)  =  REVERSE10_IN_AA

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

(51) UsableRulesProof (EQUIVALENT transformation)

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

(52) Obligation:

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

REVERSE10_IN_AA(.(T42, T41), X69) → REVERSE10_IN_AA(T41, X68)

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

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

(53) PiDPToQDPProof (SOUND transformation)

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

(54) Obligation:

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

REVERSE10_IN_AAREVERSE10_IN_AA

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

(55) 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 = REVERSE10_IN_AA evaluates to t =REVERSE10_IN_AA

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Semiunifier: [ ]
  • Matcher: [ ]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from REVERSE10_IN_AA to REVERSE10_IN_AA.



(56) NO