(0) Obligation:

Clauses:

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

Queries:

rev(g,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

rev23([], []).
rev23(.(T28, T29), X56) :- rev23(T29, X55).
rev23(.(T28, T29), X56) :- ','(rev23(T29, T30), app34(T30, T28, X56)).
app34([], T37, .(T37, [])).
app34(.(T44, T45), T46, .(T44, X82)) :- app34(T45, T46, X82).
app44([], T60, .(T60, [])).
app44(.(T69, T70), T71, .(T69, T73)) :- app44(T70, T71, T73).
rev1([], []).
rev1(.(T16, []), .(T16, [])).
rev1(.(T6, .(T21, T22)), T9) :- rev23(T22, X38).
rev1(.(T6, .(T21, T22)), T9) :- ','(rev23(T22, T23), app34(T23, T21, X39)).
rev1(.(T6, .(T21, T22)), T9) :- ','(rev23(T22, T23), ','(app34(T23, T21, T51), app44(T51, T6, T9))).

Queries:

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

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga(x1)
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x3, x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x2, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x2, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x2, x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x3, x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x3, x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x3, x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x1, x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x2, x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga(x1)
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x3, x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x2, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x2, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x2, x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x3, x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x3, x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x3, x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x1, x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x2, x5)

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

REV1_IN_GA(.(T6, .(T21, T22)), T9) → U6_GA(T6, T21, T22, T9, rev23_in_ga(T22, X38))
REV1_IN_GA(.(T6, .(T21, T22)), T9) → REV23_IN_GA(T22, X38)
REV23_IN_GA(.(T28, T29), X56) → U1_GA(T28, T29, X56, rev23_in_ga(T29, X55))
REV23_IN_GA(.(T28, T29), X56) → REV23_IN_GA(T29, X55)
REV23_IN_GA(.(T28, T29), X56) → U2_GA(T28, T29, X56, rev23_in_ga(T29, T30))
U2_GA(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_GA(T28, T29, X56, app34_in_aaa(T30, T28, X56))
U2_GA(T28, T29, X56, rev23_out_ga(T29, T30)) → APP34_IN_AAA(T30, T28, X56)
APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → U4_AAA(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → APP34_IN_AAA(T45, T46, X82)
REV1_IN_GA(.(T6, .(T21, T22)), T9) → U7_GA(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_GA(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → APP34_IN_AAA(T23, T21, X39)
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_GA(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_GA(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_GA(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
U9_GA(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → APP44_IN_GAA(T51, T6, T9)
APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → U5_GAA(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → APP44_IN_GAA(T70, T71, T73)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga(x1)
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x3, x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x2, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x2, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x2, x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x3, x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x3, x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x3, x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x1, x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x2, x5)
REV1_IN_GA(x1, x2)  =  REV1_IN_GA(x1)
U6_GA(x1, x2, x3, x4, x5)  =  U6_GA(x3, x5)
REV23_IN_GA(x1, x2)  =  REV23_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x2, x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x2, x4)
U3_GA(x1, x2, x3, x4)  =  U3_GA(x2, x4)
APP34_IN_AAA(x1, x2, x3)  =  APP34_IN_AAA
U4_AAA(x1, x2, x3, x4, x5)  =  U4_AAA(x5)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x3, x5)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x3, x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x3, x5)
U10_GA(x1, x2, x3, x4, x5)  =  U10_GA(x3, x5)
APP44_IN_GAA(x1, x2, x3)  =  APP44_IN_GAA(x1)
U5_GAA(x1, x2, x3, x4, x5)  =  U5_GAA(x2, x5)

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

(6) Obligation:

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

REV1_IN_GA(.(T6, .(T21, T22)), T9) → U6_GA(T6, T21, T22, T9, rev23_in_ga(T22, X38))
REV1_IN_GA(.(T6, .(T21, T22)), T9) → REV23_IN_GA(T22, X38)
REV23_IN_GA(.(T28, T29), X56) → U1_GA(T28, T29, X56, rev23_in_ga(T29, X55))
REV23_IN_GA(.(T28, T29), X56) → REV23_IN_GA(T29, X55)
REV23_IN_GA(.(T28, T29), X56) → U2_GA(T28, T29, X56, rev23_in_ga(T29, T30))
U2_GA(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_GA(T28, T29, X56, app34_in_aaa(T30, T28, X56))
U2_GA(T28, T29, X56, rev23_out_ga(T29, T30)) → APP34_IN_AAA(T30, T28, X56)
APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → U4_AAA(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → APP34_IN_AAA(T45, T46, X82)
REV1_IN_GA(.(T6, .(T21, T22)), T9) → U7_GA(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_GA(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → APP34_IN_AAA(T23, T21, X39)
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_GA(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_GA(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_GA(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
U9_GA(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → APP44_IN_GAA(T51, T6, T9)
APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → U5_GAA(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → APP44_IN_GAA(T70, T71, T73)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga(x1)
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x3, x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x2, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x2, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x2, x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x3, x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x3, x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x3, x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x1, x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x2, x5)
REV1_IN_GA(x1, x2)  =  REV1_IN_GA(x1)
U6_GA(x1, x2, x3, x4, x5)  =  U6_GA(x3, x5)
REV23_IN_GA(x1, x2)  =  REV23_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x2, x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x2, x4)
U3_GA(x1, x2, x3, x4)  =  U3_GA(x2, x4)
APP34_IN_AAA(x1, x2, x3)  =  APP34_IN_AAA
U4_AAA(x1, x2, x3, x4, x5)  =  U4_AAA(x5)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x3, x5)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x3, x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x3, x5)
U10_GA(x1, x2, x3, x4, x5)  =  U10_GA(x3, x5)
APP44_IN_GAA(x1, x2, x3)  =  APP44_IN_GAA(x1)
U5_GAA(x1, x2, x3, x4, x5)  =  U5_GAA(x2, 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 14 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → APP44_IN_GAA(T70, T71, T73)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga(x1)
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x3, x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x2, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x2, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x2, x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x3, x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x3, x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x3, x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x1, x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x2, x5)
APP44_IN_GAA(x1, x2, x3)  =  APP44_IN_GAA(x1)

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:

APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → APP44_IN_GAA(T70, T71, T73)

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

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:

APP44_IN_GAA(.(T70)) → APP44_IN_GAA(T70)

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:

  • APP44_IN_GAA(.(T70)) → APP44_IN_GAA(T70)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

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

APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → APP34_IN_AAA(T45, T46, X82)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga(x1)
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x3, x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x2, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x2, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x2, x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x3, x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x3, x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x3, x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x1, x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x2, x5)
APP34_IN_AAA(x1, x2, x3)  =  APP34_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:

APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → APP34_IN_AAA(T45, T46, X82)

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

APP34_IN_AAAAPP34_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 = APP34_IN_AAA evaluates to t =APP34_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 APP34_IN_AAA to APP34_IN_AAA.



(22) NO

(23) Obligation:

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

REV23_IN_GA(.(T28, T29), X56) → REV23_IN_GA(T29, X55)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga(x1)
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x3, x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x2, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x2, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x2, x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x3, x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x3, x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x3, x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x1, x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x2, x5)
REV23_IN_GA(x1, x2)  =  REV23_IN_GA(x1)

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:

REV23_IN_GA(.(T28, T29), X56) → REV23_IN_GA(T29, X55)

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

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:

REV23_IN_GA(.(T29)) → REV23_IN_GA(T29)

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

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

  • REV23_IN_GA(.(T29)) → REV23_IN_GA(T29)
    The graph contains the following edges 1 > 1

(29) YES

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

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(31) Obligation:

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

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x5)

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

REV1_IN_GA(.(T6, .(T21, T22)), T9) → U6_GA(T6, T21, T22, T9, rev23_in_ga(T22, X38))
REV1_IN_GA(.(T6, .(T21, T22)), T9) → REV23_IN_GA(T22, X38)
REV23_IN_GA(.(T28, T29), X56) → U1_GA(T28, T29, X56, rev23_in_ga(T29, X55))
REV23_IN_GA(.(T28, T29), X56) → REV23_IN_GA(T29, X55)
REV23_IN_GA(.(T28, T29), X56) → U2_GA(T28, T29, X56, rev23_in_ga(T29, T30))
U2_GA(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_GA(T28, T29, X56, app34_in_aaa(T30, T28, X56))
U2_GA(T28, T29, X56, rev23_out_ga(T29, T30)) → APP34_IN_AAA(T30, T28, X56)
APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → U4_AAA(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → APP34_IN_AAA(T45, T46, X82)
REV1_IN_GA(.(T6, .(T21, T22)), T9) → U7_GA(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_GA(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → APP34_IN_AAA(T23, T21, X39)
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_GA(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_GA(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_GA(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
U9_GA(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → APP44_IN_GAA(T51, T6, T9)
APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → U5_GAA(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → APP44_IN_GAA(T70, T71, T73)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x5)
REV1_IN_GA(x1, x2)  =  REV1_IN_GA(x1)
U6_GA(x1, x2, x3, x4, x5)  =  U6_GA(x5)
REV23_IN_GA(x1, x2)  =  REV23_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x4)
U3_GA(x1, x2, x3, x4)  =  U3_GA(x4)
APP34_IN_AAA(x1, x2, x3)  =  APP34_IN_AAA
U4_AAA(x1, x2, x3, x4, x5)  =  U4_AAA(x5)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x5)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x5)
U10_GA(x1, x2, x3, x4, x5)  =  U10_GA(x5)
APP44_IN_GAA(x1, x2, x3)  =  APP44_IN_GAA(x1)
U5_GAA(x1, x2, x3, x4, x5)  =  U5_GAA(x5)

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

(33) Obligation:

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

REV1_IN_GA(.(T6, .(T21, T22)), T9) → U6_GA(T6, T21, T22, T9, rev23_in_ga(T22, X38))
REV1_IN_GA(.(T6, .(T21, T22)), T9) → REV23_IN_GA(T22, X38)
REV23_IN_GA(.(T28, T29), X56) → U1_GA(T28, T29, X56, rev23_in_ga(T29, X55))
REV23_IN_GA(.(T28, T29), X56) → REV23_IN_GA(T29, X55)
REV23_IN_GA(.(T28, T29), X56) → U2_GA(T28, T29, X56, rev23_in_ga(T29, T30))
U2_GA(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_GA(T28, T29, X56, app34_in_aaa(T30, T28, X56))
U2_GA(T28, T29, X56, rev23_out_ga(T29, T30)) → APP34_IN_AAA(T30, T28, X56)
APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → U4_AAA(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → APP34_IN_AAA(T45, T46, X82)
REV1_IN_GA(.(T6, .(T21, T22)), T9) → U7_GA(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_GA(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → APP34_IN_AAA(T23, T21, X39)
U7_GA(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_GA(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_GA(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_GA(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
U9_GA(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → APP44_IN_GAA(T51, T6, T9)
APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → U5_GAA(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → APP44_IN_GAA(T70, T71, T73)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x5)
REV1_IN_GA(x1, x2)  =  REV1_IN_GA(x1)
U6_GA(x1, x2, x3, x4, x5)  =  U6_GA(x5)
REV23_IN_GA(x1, x2)  =  REV23_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x4)
U3_GA(x1, x2, x3, x4)  =  U3_GA(x4)
APP34_IN_AAA(x1, x2, x3)  =  APP34_IN_AAA
U4_AAA(x1, x2, x3, x4, x5)  =  U4_AAA(x5)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x5)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x5)
U10_GA(x1, x2, x3, x4, x5)  =  U10_GA(x5)
APP44_IN_GAA(x1, x2, x3)  =  APP44_IN_GAA(x1)
U5_GAA(x1, x2, x3, x4, x5)  =  U5_GAA(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 14 less nodes.

(35) Complex Obligation (AND)

(36) Obligation:

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

APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → APP44_IN_GAA(T70, T71, T73)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x5)
APP44_IN_GAA(x1, x2, x3)  =  APP44_IN_GAA(x1)

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:

APP44_IN_GAA(.(T69, T70), T71, .(T69, T73)) → APP44_IN_GAA(T70, T71, T73)

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

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:

APP44_IN_GAA(.(T70)) → APP44_IN_GAA(T70)

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:

  • APP44_IN_GAA(.(T70)) → APP44_IN_GAA(T70)
    The graph contains the following edges 1 > 1

(42) YES

(43) Obligation:

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

APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → APP34_IN_AAA(T45, T46, X82)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x5)
APP34_IN_AAA(x1, x2, x3)  =  APP34_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:

APP34_IN_AAA(.(T44, T45), T46, .(T44, X82)) → APP34_IN_AAA(T45, T46, X82)

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

APP34_IN_AAAAPP34_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 = APP34_IN_AAA evaluates to t =APP34_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 APP34_IN_AAA to APP34_IN_AAA.



(49) NO

(50) Obligation:

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

REV23_IN_GA(.(T28, T29), X56) → REV23_IN_GA(T29, X55)

The TRS R consists of the following rules:

rev1_in_ga([], []) → rev1_out_ga([], [])
rev1_in_ga(.(T16, []), .(T16, [])) → rev1_out_ga(.(T16, []), .(T16, []))
rev1_in_ga(.(T6, .(T21, T22)), T9) → U6_ga(T6, T21, T22, T9, rev23_in_ga(T22, X38))
rev23_in_ga([], []) → rev23_out_ga([], [])
rev23_in_ga(.(T28, T29), X56) → U1_ga(T28, T29, X56, rev23_in_ga(T29, X55))
rev23_in_ga(.(T28, T29), X56) → U2_ga(T28, T29, X56, rev23_in_ga(T29, T30))
U2_ga(T28, T29, X56, rev23_out_ga(T29, T30)) → U3_ga(T28, T29, X56, app34_in_aaa(T30, T28, X56))
app34_in_aaa([], T37, .(T37, [])) → app34_out_aaa([], T37, .(T37, []))
app34_in_aaa(.(T44, T45), T46, .(T44, X82)) → U4_aaa(T44, T45, T46, X82, app34_in_aaa(T45, T46, X82))
U4_aaa(T44, T45, T46, X82, app34_out_aaa(T45, T46, X82)) → app34_out_aaa(.(T44, T45), T46, .(T44, X82))
U3_ga(T28, T29, X56, app34_out_aaa(T30, T28, X56)) → rev23_out_ga(.(T28, T29), X56)
U1_ga(T28, T29, X56, rev23_out_ga(T29, X55)) → rev23_out_ga(.(T28, T29), X56)
U6_ga(T6, T21, T22, T9, rev23_out_ga(T22, X38)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
rev1_in_ga(.(T6, .(T21, T22)), T9) → U7_ga(T6, T21, T22, T9, rev23_in_ga(T22, T23))
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U8_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, X39))
U8_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, X39)) → rev1_out_ga(.(T6, .(T21, T22)), T9)
U7_ga(T6, T21, T22, T9, rev23_out_ga(T22, T23)) → U9_ga(T6, T21, T22, T9, app34_in_aaa(T23, T21, T51))
U9_ga(T6, T21, T22, T9, app34_out_aaa(T23, T21, T51)) → U10_ga(T6, T21, T22, T9, app44_in_gaa(T51, T6, T9))
app44_in_gaa([], T60, .(T60, [])) → app44_out_gaa([], T60, .(T60, []))
app44_in_gaa(.(T69, T70), T71, .(T69, T73)) → U5_gaa(T69, T70, T71, T73, app44_in_gaa(T70, T71, T73))
U5_gaa(T69, T70, T71, T73, app44_out_gaa(T70, T71, T73)) → app44_out_gaa(.(T69, T70), T71, .(T69, T73))
U10_ga(T6, T21, T22, T9, app44_out_gaa(T51, T6, T9)) → rev1_out_ga(.(T6, .(T21, T22)), T9)

The argument filtering Pi contains the following mapping:
rev1_in_ga(x1, x2)  =  rev1_in_ga(x1)
[]  =  []
rev1_out_ga(x1, x2)  =  rev1_out_ga
.(x1, x2)  =  .(x2)
U6_ga(x1, x2, x3, x4, x5)  =  U6_ga(x5)
rev23_in_ga(x1, x2)  =  rev23_in_ga(x1)
rev23_out_ga(x1, x2)  =  rev23_out_ga
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
app34_in_aaa(x1, x2, x3)  =  app34_in_aaa
app34_out_aaa(x1, x2, x3)  =  app34_out_aaa(x1, x3)
U4_aaa(x1, x2, x3, x4, x5)  =  U4_aaa(x5)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
app44_in_gaa(x1, x2, x3)  =  app44_in_gaa(x1)
app44_out_gaa(x1, x2, x3)  =  app44_out_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5)  =  U5_gaa(x5)
REV23_IN_GA(x1, x2)  =  REV23_IN_GA(x1)

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:

REV23_IN_GA(.(T28, T29), X56) → REV23_IN_GA(T29, X55)

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

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:

REV23_IN_GA(.(T29)) → REV23_IN_GA(T29)

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

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

  • REV23_IN_GA(.(T29)) → REV23_IN_GA(T29)
    The graph contains the following edges 1 > 1

(56) YES