(0) Obligation:

Clauses:

inorder(nil, []).
inorder(tree(L, V, R), I) :- ','(inorder(L, LI), ','(inorder(R, RI), append(LI, .(V, RI), I))).
append([], X, X).
append(.(X, Xs), Ys, .(X, Zs)) :- append(Xs, Ys, Zs).

Queries:

inorder(g,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

inorder14(nil, []).
inorder14(tree(T19, T20, T21), X37) :- inorder14(T19, X35).
inorder14(tree(T19, T20, T21), X37) :- ','(inorder14(T19, T22), inorder14(T21, X36)).
inorder14(tree(T19, T20, T21), X37) :- ','(inorder14(T19, T22), ','(inorder14(T21, T23), append27(T22, T20, T23, X37))).
append27([], T36, T37, .(T36, T37)).
append27(.(T46, T47), T48, T49, .(T46, X64)) :- append27(T47, T48, T49, X64).
append52([], T101, T102, .(T101, T102)).
append52(.(T113, T114), T115, T116, .(T113, T118)) :- append52(T114, T115, T116, T118).
inorder1(nil, []).
inorder1(tree(nil, T8, T9), T11) :- inorder14(T9, X14).
inorder1(tree(nil, T66, T9), .(T66, T67)) :- inorder14(T9, T67).
inorder1(tree(tree(T74, T75, T76), T8, T9), T11) :- inorder14(T74, X99).
inorder1(tree(tree(T74, T75, T76), T8, T9), T11) :- ','(inorder14(T74, T77), inorder14(T76, X100)).
inorder1(tree(tree(T74, T75, T76), T8, T9), T11) :- ','(inorder14(T74, T77), ','(inorder14(T76, T78), append27(T77, T75, T78, X101))).
inorder1(tree(tree(T74, T75, T76), T8, T9), T11) :- ','(inorder14(T74, T77), ','(inorder14(T76, T78), ','(append27(T77, T75, T78, T83), inorder14(T9, X14)))).
inorder1(tree(tree(T74, T75, T76), T8, T9), T11) :- ','(inorder14(T74, T77), ','(inorder14(T76, T78), ','(append27(T77, T75, T78, T83), ','(inorder14(T9, T88), append52(T83, T8, T88, T11))))).

Queries:

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

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga(x1)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x3, x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x2, x3, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x1, x2, x3, x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x1, x2, x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x1, x2, x3, x4, x5, x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x1, x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x1, x2, x3, x4, x5, x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x1, x2, x3, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x1, x2, x3, x4, x5, x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x1, x2, x3, x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x1, x2, x3, x4, x5, x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x1, x2, x3, x4, x5, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x1, x2, x3, x4, x5, x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga(x1)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x3, x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x2, x3, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x1, x2, x3, x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x1, x2, x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x1, x2, x3, x4, x5, x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x1, x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x1, x2, x3, x4, x5, x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x1, x2, x3, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x1, x2, x3, x4, x5, x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x1, x2, x3, x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x1, x2, x3, x4, x5, x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x1, x2, x3, x4, x5, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x1, x2, x3, x4, x5, x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)

(5) DependencyPairsProof (EQUIVALENT transformation)

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

INORDER1_IN_GA(tree(nil, T8, T9), T11) → U8_GA(T8, T9, T11, inorder14_in_ga(T9, X14))
INORDER1_IN_GA(tree(nil, T8, T9), T11) → INORDER14_IN_GA(T9, X14)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → U1_GA(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
INORDER14_IN_GA(tree(T19, T20, T21), X37) → INORDER14_IN_GA(T19, X35)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_GA(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → INORDER14_IN_GA(T21, X36)
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_GA(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_GA(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_GA(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
U4_GA(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → APPEND27_IN_AGAA(T22, T20, T23, X37)
APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → U6_AGAA(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APPEND27_IN_AGAA(T47, T48, T49, X64)
INORDER1_IN_GA(tree(nil, T66, T9), .(T66, T67)) → U9_GA(T66, T9, T67, inorder14_in_ga(T9, T67))
INORDER1_IN_GA(tree(nil, T66, T9), .(T66, T67)) → INORDER14_IN_GA(T9, T67)
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → U10_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → INORDER14_IN_GA(T74, X99)
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → U11_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → INORDER14_IN_GA(T76, X100)
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_GA(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → APPEND27_IN_AGAA(T77, T75, T78, X101)
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_GA(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → INORDER14_IN_GA(T9, X14)
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_GA(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → APPEND52_IN_AGAA(T83, T8, T88, T11)
APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → U7_AGAA(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APPEND52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga(x1)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x3, x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x2, x3, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x1, x2, x3, x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x1, x2, x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x1, x2, x3, x4, x5, x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x1, x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x1, x2, x3, x4, x5, x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x1, x2, x3, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x1, x2, x3, x4, x5, x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x1, x2, x3, x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x1, x2, x3, x4, x5, x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x1, x2, x3, x4, x5, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x1, x2, x3, x4, x5, x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
INORDER1_IN_GA(x1, x2)  =  INORDER1_IN_GA(x1)
U8_GA(x1, x2, x3, x4)  =  U8_GA(x1, x2, x4)
INORDER14_IN_GA(x1, x2)  =  INORDER14_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x1, x2, x3, x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, x2, x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x1, x2, x3, x5)
U4_GA(x1, x2, x3, x4, x5, x6)  =  U4_GA(x1, x2, x3, x6)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x1, x2, x3, x5)
APPEND27_IN_AGAA(x1, x2, x3, x4)  =  APPEND27_IN_AGAA(x2)
U6_AGAA(x1, x2, x3, x4, x5, x6)  =  U6_AGAA(x3, x6)
U9_GA(x1, x2, x3, x4)  =  U9_GA(x1, x2, x4)
U10_GA(x1, x2, x3, x4, x5, x6, x7)  =  U10_GA(x1, x2, x3, x4, x5, x7)
U11_GA(x1, x2, x3, x4, x5, x6, x7)  =  U11_GA(x1, x2, x3, x4, x5, x7)
U12_GA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GA(x1, x2, x3, x4, x5, x7)
U13_GA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GA(x1, x2, x3, x4, x5, x8)
U14_GA(x1, x2, x3, x4, x5, x6, x7)  =  U14_GA(x1, x2, x3, x4, x5, x7)
U15_GA(x1, x2, x3, x4, x5, x6, x7)  =  U15_GA(x1, x2, x3, x4, x5, x7)
U16_GA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GA(x1, x2, x3, x4, x5, x7)
U17_GA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_GA(x1, x2, x3, x4, x5, x8)
U18_GA(x1, x2, x3, x4, x5, x6, x7)  =  U18_GA(x1, x2, x3, x4, x5, x7)
APPEND52_IN_AGAA(x1, x2, x3, x4)  =  APPEND52_IN_AGAA(x2)
U7_AGAA(x1, x2, x3, x4, x5, x6)  =  U7_AGAA(x3, x6)

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

(6) Obligation:

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

INORDER1_IN_GA(tree(nil, T8, T9), T11) → U8_GA(T8, T9, T11, inorder14_in_ga(T9, X14))
INORDER1_IN_GA(tree(nil, T8, T9), T11) → INORDER14_IN_GA(T9, X14)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → U1_GA(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
INORDER14_IN_GA(tree(T19, T20, T21), X37) → INORDER14_IN_GA(T19, X35)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_GA(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → INORDER14_IN_GA(T21, X36)
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_GA(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_GA(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_GA(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
U4_GA(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → APPEND27_IN_AGAA(T22, T20, T23, X37)
APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → U6_AGAA(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APPEND27_IN_AGAA(T47, T48, T49, X64)
INORDER1_IN_GA(tree(nil, T66, T9), .(T66, T67)) → U9_GA(T66, T9, T67, inorder14_in_ga(T9, T67))
INORDER1_IN_GA(tree(nil, T66, T9), .(T66, T67)) → INORDER14_IN_GA(T9, T67)
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → U10_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → INORDER14_IN_GA(T74, X99)
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → U11_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → INORDER14_IN_GA(T76, X100)
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_GA(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → APPEND27_IN_AGAA(T77, T75, T78, X101)
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_GA(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → INORDER14_IN_GA(T9, X14)
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_GA(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → APPEND52_IN_AGAA(T83, T8, T88, T11)
APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → U7_AGAA(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APPEND52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga(x1)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x3, x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x2, x3, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x1, x2, x3, x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x1, x2, x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x1, x2, x3, x4, x5, x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x1, x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x1, x2, x3, x4, x5, x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x1, x2, x3, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x1, x2, x3, x4, x5, x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x1, x2, x3, x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x1, x2, x3, x4, x5, x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x1, x2, x3, x4, x5, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x1, x2, x3, x4, x5, x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
INORDER1_IN_GA(x1, x2)  =  INORDER1_IN_GA(x1)
U8_GA(x1, x2, x3, x4)  =  U8_GA(x1, x2, x4)
INORDER14_IN_GA(x1, x2)  =  INORDER14_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x1, x2, x3, x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, x2, x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x1, x2, x3, x5)
U4_GA(x1, x2, x3, x4, x5, x6)  =  U4_GA(x1, x2, x3, x6)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x1, x2, x3, x5)
APPEND27_IN_AGAA(x1, x2, x3, x4)  =  APPEND27_IN_AGAA(x2)
U6_AGAA(x1, x2, x3, x4, x5, x6)  =  U6_AGAA(x3, x6)
U9_GA(x1, x2, x3, x4)  =  U9_GA(x1, x2, x4)
U10_GA(x1, x2, x3, x4, x5, x6, x7)  =  U10_GA(x1, x2, x3, x4, x5, x7)
U11_GA(x1, x2, x3, x4, x5, x6, x7)  =  U11_GA(x1, x2, x3, x4, x5, x7)
U12_GA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GA(x1, x2, x3, x4, x5, x7)
U13_GA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GA(x1, x2, x3, x4, x5, x8)
U14_GA(x1, x2, x3, x4, x5, x6, x7)  =  U14_GA(x1, x2, x3, x4, x5, x7)
U15_GA(x1, x2, x3, x4, x5, x6, x7)  =  U15_GA(x1, x2, x3, x4, x5, x7)
U16_GA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GA(x1, x2, x3, x4, x5, x7)
U17_GA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_GA(x1, x2, x3, x4, x5, x8)
U18_GA(x1, x2, x3, x4, x5, x6, x7)  =  U18_GA(x1, x2, x3, x4, x5, x7)
APPEND52_IN_AGAA(x1, x2, x3, x4)  =  APPEND52_IN_AGAA(x2)
U7_AGAA(x1, x2, x3, x4, x5, x6)  =  U7_AGAA(x3, x6)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

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

(8) Complex Obligation (AND)

(9) Obligation:

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

APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APPEND52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga(x1)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x3, x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x2, x3, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x1, x2, x3, x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x1, x2, x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x1, x2, x3, x4, x5, x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x1, x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x1, x2, x3, x4, x5, x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x1, x2, x3, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x1, x2, x3, x4, x5, x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x1, x2, x3, x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x1, x2, x3, x4, x5, x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x1, x2, x3, x4, x5, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x1, x2, x3, x4, x5, x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
APPEND52_IN_AGAA(x1, x2, x3, x4)  =  APPEND52_IN_AGAA(x2)

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:

APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APPEND52_IN_AGAA(T114, T115, T116, T118)

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

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:

APPEND52_IN_AGAA(T115) → APPEND52_IN_AGAA(T115)

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

(14) 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 = APPEND52_IN_AGAA(T115) evaluates to t =APPEND52_IN_AGAA(T115)

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 APPEND52_IN_AGAA(T115) to APPEND52_IN_AGAA(T115).



(15) NO

(16) Obligation:

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

APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APPEND27_IN_AGAA(T47, T48, T49, X64)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga(x1)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x3, x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x2, x3, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x1, x2, x3, x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x1, x2, x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x1, x2, x3, x4, x5, x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x1, x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x1, x2, x3, x4, x5, x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x1, x2, x3, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x1, x2, x3, x4, x5, x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x1, x2, x3, x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x1, x2, x3, x4, x5, x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x1, x2, x3, x4, x5, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x1, x2, x3, x4, x5, x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
APPEND27_IN_AGAA(x1, x2, x3, x4)  =  APPEND27_IN_AGAA(x2)

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:

APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APPEND27_IN_AGAA(T47, T48, T49, X64)

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

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:

APPEND27_IN_AGAA(T48) → APPEND27_IN_AGAA(T48)

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 = APPEND27_IN_AGAA(T48) evaluates to t =APPEND27_IN_AGAA(T48)

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 APPEND27_IN_AGAA(T48) to APPEND27_IN_AGAA(T48).



(22) NO

(23) Obligation:

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

INORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → INORDER14_IN_GA(T21, X36)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → INORDER14_IN_GA(T19, X35)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga(x1)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x3, x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x2, x3, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x1, x2, x3, x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x1, x2, x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x1, x2, x3, x4, x5, x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x1, x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x1, x2, x3, x4, x5, x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x1, x2, x3, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x1, x2, x3, x4, x5, x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x1, x2, x3, x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x1, x2, x3, x4, x5, x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x1, x2, x3, x4, x5, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x1, x2, x3, x4, x5, x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
INORDER14_IN_GA(x1, x2)  =  INORDER14_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, x2, x3, x5)

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:

INORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → INORDER14_IN_GA(T21, X36)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → INORDER14_IN_GA(T19, X35)

The TRS R consists of the following rules:

inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))

The argument filtering Pi contains the following mapping:
nil  =  nil
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga(x1)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x3, x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x2, x3, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x1, x2, x3, x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
INORDER14_IN_GA(x1, x2)  =  INORDER14_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, x2, x3, x5)

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:

INORDER14_IN_GA(tree(T19, T20, T21)) → U2_GA(T19, T20, T21, inorder14_in_ga(T19))
U2_GA(T19, T20, T21, inorder14_out_ga(T19)) → INORDER14_IN_GA(T21)
INORDER14_IN_GA(tree(T19, T20, T21)) → INORDER14_IN_GA(T19)

The TRS R consists of the following rules:

inorder14_in_ga(nil) → inorder14_out_ga(nil)
inorder14_in_ga(tree(T19, T20, T21)) → U1_ga(T19, T20, T21, inorder14_in_ga(T19))
inorder14_in_ga(tree(T19, T20, T21)) → U2_ga(T19, T20, T21, inorder14_in_ga(T19))
U1_ga(T19, T20, T21, inorder14_out_ga(T19)) → inorder14_out_ga(tree(T19, T20, T21))
U2_ga(T19, T20, T21, inorder14_out_ga(T19)) → U3_ga(T19, T20, T21, inorder14_in_ga(T21))
U2_ga(T19, T20, T21, inorder14_out_ga(T19)) → U4_ga(T19, T20, T21, inorder14_in_ga(T21))
U3_ga(T19, T20, T21, inorder14_out_ga(T21)) → inorder14_out_ga(tree(T19, T20, T21))
U4_ga(T19, T20, T21, inorder14_out_ga(T21)) → U5_ga(T19, T20, T21, append27_in_agaa(T20))
U5_ga(T19, T20, T21, append27_out_agaa(T22, T20)) → inorder14_out_ga(tree(T19, T20, T21))
append27_in_agaa(T36) → append27_out_agaa([], T36)
append27_in_agaa(T48) → U6_agaa(T48, append27_in_agaa(T48))
U6_agaa(T48, append27_out_agaa(T47, T48)) → append27_out_agaa(.(T47), T48)

The set Q consists of the following terms:

inorder14_in_ga(x0)
U1_ga(x0, x1, x2, x3)
U2_ga(x0, x1, x2, x3)
U3_ga(x0, x1, x2, x3)
U4_ga(x0, x1, x2, x3)
U5_ga(x0, x1, x2, x3)
append27_in_agaa(x0)
U6_agaa(x0, x1)

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:

  • U2_GA(T19, T20, T21, inorder14_out_ga(T19)) → INORDER14_IN_GA(T21)
    The graph contains the following edges 3 >= 1

  • INORDER14_IN_GA(tree(T19, T20, T21)) → INORDER14_IN_GA(T19)
    The graph contains the following edges 1 > 1

  • INORDER14_IN_GA(tree(T19, T20, T21)) → U2_GA(T19, T20, T21, inorder14_in_ga(T19))
    The graph contains the following edges 1 > 1, 1 > 2, 1 > 3

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

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x2, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x2, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x4, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(31) Obligation:

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

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x2, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x2, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x4, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)

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

INORDER1_IN_GA(tree(nil, T8, T9), T11) → U8_GA(T8, T9, T11, inorder14_in_ga(T9, X14))
INORDER1_IN_GA(tree(nil, T8, T9), T11) → INORDER14_IN_GA(T9, X14)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → U1_GA(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
INORDER14_IN_GA(tree(T19, T20, T21), X37) → INORDER14_IN_GA(T19, X35)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_GA(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → INORDER14_IN_GA(T21, X36)
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_GA(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_GA(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_GA(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
U4_GA(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → APPEND27_IN_AGAA(T22, T20, T23, X37)
APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → U6_AGAA(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APPEND27_IN_AGAA(T47, T48, T49, X64)
INORDER1_IN_GA(tree(nil, T66, T9), .(T66, T67)) → U9_GA(T66, T9, T67, inorder14_in_ga(T9, T67))
INORDER1_IN_GA(tree(nil, T66, T9), .(T66, T67)) → INORDER14_IN_GA(T9, T67)
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → U10_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → INORDER14_IN_GA(T74, X99)
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → U11_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → INORDER14_IN_GA(T76, X100)
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_GA(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → APPEND27_IN_AGAA(T77, T75, T78, X101)
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_GA(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → INORDER14_IN_GA(T9, X14)
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_GA(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → APPEND52_IN_AGAA(T83, T8, T88, T11)
APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → U7_AGAA(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APPEND52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x2, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x2, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x4, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
INORDER1_IN_GA(x1, x2)  =  INORDER1_IN_GA(x1)
U8_GA(x1, x2, x3, x4)  =  U8_GA(x4)
INORDER14_IN_GA(x1, x2)  =  INORDER14_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x2, x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
U4_GA(x1, x2, x3, x4, x5, x6)  =  U4_GA(x2, x6)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)
APPEND27_IN_AGAA(x1, x2, x3, x4)  =  APPEND27_IN_AGAA(x2)
U6_AGAA(x1, x2, x3, x4, x5, x6)  =  U6_AGAA(x6)
U9_GA(x1, x2, x3, x4)  =  U9_GA(x4)
U10_GA(x1, x2, x3, x4, x5, x6, x7)  =  U10_GA(x7)
U11_GA(x1, x2, x3, x4, x5, x6, x7)  =  U11_GA(x2, x3, x4, x5, x7)
U12_GA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GA(x7)
U13_GA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GA(x2, x4, x5, x8)
U14_GA(x1, x2, x3, x4, x5, x6, x7)  =  U14_GA(x7)
U15_GA(x1, x2, x3, x4, x5, x6, x7)  =  U15_GA(x4, x5, x7)
U16_GA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GA(x7)
U17_GA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_GA(x4, x8)
U18_GA(x1, x2, x3, x4, x5, x6, x7)  =  U18_GA(x7)
APPEND52_IN_AGAA(x1, x2, x3, x4)  =  APPEND52_IN_AGAA(x2)
U7_AGAA(x1, x2, x3, x4, x5, x6)  =  U7_AGAA(x6)

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

(33) Obligation:

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

INORDER1_IN_GA(tree(nil, T8, T9), T11) → U8_GA(T8, T9, T11, inorder14_in_ga(T9, X14))
INORDER1_IN_GA(tree(nil, T8, T9), T11) → INORDER14_IN_GA(T9, X14)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → U1_GA(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
INORDER14_IN_GA(tree(T19, T20, T21), X37) → INORDER14_IN_GA(T19, X35)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_GA(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → INORDER14_IN_GA(T21, X36)
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_GA(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_GA(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_GA(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
U4_GA(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → APPEND27_IN_AGAA(T22, T20, T23, X37)
APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → U6_AGAA(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APPEND27_IN_AGAA(T47, T48, T49, X64)
INORDER1_IN_GA(tree(nil, T66, T9), .(T66, T67)) → U9_GA(T66, T9, T67, inorder14_in_ga(T9, T67))
INORDER1_IN_GA(tree(nil, T66, T9), .(T66, T67)) → INORDER14_IN_GA(T9, T67)
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → U10_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → INORDER14_IN_GA(T74, X99)
INORDER1_IN_GA(tree(tree(T74, T75, T76), T8, T9), T11) → U11_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → INORDER14_IN_GA(T76, X100)
U11_GA(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_GA(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → APPEND27_IN_AGAA(T77, T75, T78, X101)
U13_GA(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_GA(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_GA(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → INORDER14_IN_GA(T9, X14)
U15_GA(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_GA(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
U17_GA(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → APPEND52_IN_AGAA(T83, T8, T88, T11)
APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → U7_AGAA(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APPEND52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x2, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x2, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x4, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
INORDER1_IN_GA(x1, x2)  =  INORDER1_IN_GA(x1)
U8_GA(x1, x2, x3, x4)  =  U8_GA(x4)
INORDER14_IN_GA(x1, x2)  =  INORDER14_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x2, x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
U4_GA(x1, x2, x3, x4, x5, x6)  =  U4_GA(x2, x6)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)
APPEND27_IN_AGAA(x1, x2, x3, x4)  =  APPEND27_IN_AGAA(x2)
U6_AGAA(x1, x2, x3, x4, x5, x6)  =  U6_AGAA(x6)
U9_GA(x1, x2, x3, x4)  =  U9_GA(x4)
U10_GA(x1, x2, x3, x4, x5, x6, x7)  =  U10_GA(x7)
U11_GA(x1, x2, x3, x4, x5, x6, x7)  =  U11_GA(x2, x3, x4, x5, x7)
U12_GA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GA(x7)
U13_GA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GA(x2, x4, x5, x8)
U14_GA(x1, x2, x3, x4, x5, x6, x7)  =  U14_GA(x7)
U15_GA(x1, x2, x3, x4, x5, x6, x7)  =  U15_GA(x4, x5, x7)
U16_GA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GA(x7)
U17_GA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_GA(x4, x8)
U18_GA(x1, x2, x3, x4, x5, x6, x7)  =  U18_GA(x7)
APPEND52_IN_AGAA(x1, x2, x3, x4)  =  APPEND52_IN_AGAA(x2)
U7_AGAA(x1, x2, x3, x4, x5, x6)  =  U7_AGAA(x6)

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

(34) DependencyGraphProof (EQUIVALENT transformation)

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

(35) Complex Obligation (AND)

(36) Obligation:

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

APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APPEND52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x2, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x2, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x4, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
APPEND52_IN_AGAA(x1, x2, x3, x4)  =  APPEND52_IN_AGAA(x2)

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:

APPEND52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APPEND52_IN_AGAA(T114, T115, T116, T118)

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

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:

APPEND52_IN_AGAA(T115) → APPEND52_IN_AGAA(T115)

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

(41) 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 = APPEND52_IN_AGAA(T115) evaluates to t =APPEND52_IN_AGAA(T115)

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 APPEND52_IN_AGAA(T115) to APPEND52_IN_AGAA(T115).



(42) NO

(43) Obligation:

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

APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APPEND27_IN_AGAA(T47, T48, T49, X64)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x2, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x2, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x4, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
APPEND27_IN_AGAA(x1, x2, x3, x4)  =  APPEND27_IN_AGAA(x2)

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:

APPEND27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APPEND27_IN_AGAA(T47, T48, T49, X64)

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

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:

APPEND27_IN_AGAA(T48) → APPEND27_IN_AGAA(T48)

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 = APPEND27_IN_AGAA(T48) evaluates to t =APPEND27_IN_AGAA(T48)

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 APPEND27_IN_AGAA(T48) to APPEND27_IN_AGAA(T48).



(49) NO

(50) Obligation:

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

INORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → INORDER14_IN_GA(T21, X36)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → INORDER14_IN_GA(T19, X35)

The TRS R consists of the following rules:

inorder1_in_ga(nil, []) → inorder1_out_ga(nil, [])
inorder1_in_ga(tree(nil, T8, T9), T11) → U8_ga(T8, T9, T11, inorder14_in_ga(T9, X14))
inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(nil, T8, T9), T11)
inorder1_in_ga(tree(nil, T66, T9), .(T66, T67)) → U9_ga(T66, T9, T67, inorder14_in_ga(T9, T67))
U9_ga(T66, T9, T67, inorder14_out_ga(T9, T67)) → inorder1_out_ga(tree(nil, T66, T9), .(T66, T67))
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U10_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, X99))
U10_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, X99)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
inorder1_in_ga(tree(tree(T74, T75, T76), T8, T9), T11) → U11_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T74, T77))
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U12_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T76, X100))
U12_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T76, X100)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U11_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T74, T77)) → U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_in_ga(T76, T78))
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U14_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, X101))
U14_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, X101)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U13_ga(T74, T75, T76, T8, T9, T11, T77, inorder14_out_ga(T76, T78)) → U15_ga(T74, T75, T76, T8, T9, T11, append27_in_agaa(T77, T75, T78, T83))
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U16_ga(T74, T75, T76, T8, T9, T11, inorder14_in_ga(T9, X14))
U16_ga(T74, T75, T76, T8, T9, T11, inorder14_out_ga(T9, X14)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)
U15_ga(T74, T75, T76, T8, T9, T11, append27_out_agaa(T77, T75, T78, T83)) → U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_in_ga(T9, T88))
U17_ga(T74, T75, T76, T8, T9, T11, T83, inorder14_out_ga(T9, T88)) → U18_ga(T74, T75, T76, T8, T9, T11, append52_in_agaa(T83, T8, T88, T11))
append52_in_agaa([], T101, T102, .(T101, T102)) → append52_out_agaa([], T101, T102, .(T101, T102))
append52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, append52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, append52_out_agaa(T114, T115, T116, T118)) → append52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T74, T75, T76, T8, T9, T11, append52_out_agaa(T83, T8, T88, T11)) → inorder1_out_ga(tree(tree(T74, T75, T76), T8, T9), T11)

The argument filtering Pi contains the following mapping:
inorder1_in_ga(x1, x2)  =  inorder1_in_ga(x1)
nil  =  nil
inorder1_out_ga(x1, x2)  =  inorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x2, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
U9_ga(x1, x2, x3, x4)  =  U9_ga(x4)
U10_ga(x1, x2, x3, x4, x5, x6, x7)  =  U10_ga(x7)
U11_ga(x1, x2, x3, x4, x5, x6, x7)  =  U11_ga(x2, x3, x4, x5, x7)
U12_ga(x1, x2, x3, x4, x5, x6, x7)  =  U12_ga(x7)
U13_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_ga(x2, x4, x5, x8)
U14_ga(x1, x2, x3, x4, x5, x6, x7)  =  U14_ga(x7)
U15_ga(x1, x2, x3, x4, x5, x6, x7)  =  U15_ga(x4, x5, x7)
U16_ga(x1, x2, x3, x4, x5, x6, x7)  =  U16_ga(x7)
U17_ga(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_ga(x4, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
append52_in_agaa(x1, x2, x3, x4)  =  append52_in_agaa(x2)
append52_out_agaa(x1, x2, x3, x4)  =  append52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
INORDER14_IN_GA(x1, x2)  =  INORDER14_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x2, x3, x5)

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:

INORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U2_GA(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → INORDER14_IN_GA(T21, X36)
INORDER14_IN_GA(tree(T19, T20, T21), X37) → INORDER14_IN_GA(T19, X35)

The TRS R consists of the following rules:

inorder14_in_ga(nil, []) → inorder14_out_ga(nil, [])
inorder14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, inorder14_in_ga(T19, X35))
inorder14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, inorder14_in_ga(T19, T22))
U1_ga(T19, T20, T21, X37, inorder14_out_ga(T19, X35)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U3_ga(T19, T20, T21, X37, inorder14_in_ga(T21, X36))
U2_ga(T19, T20, T21, X37, inorder14_out_ga(T19, T22)) → U4_ga(T19, T20, T21, X37, T22, inorder14_in_ga(T21, T23))
U3_ga(T19, T20, T21, X37, inorder14_out_ga(T21, X36)) → inorder14_out_ga(tree(T19, T20, T21), X37)
U4_ga(T19, T20, T21, X37, T22, inorder14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, append27_in_agaa(T22, T20, T23, X37))
U5_ga(T19, T20, T21, X37, append27_out_agaa(T22, T20, T23, X37)) → inorder14_out_ga(tree(T19, T20, T21), X37)
append27_in_agaa([], T36, T37, .(T36, T37)) → append27_out_agaa([], T36, T37, .(T36, T37))
append27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, append27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, append27_out_agaa(T47, T48, T49, X64)) → append27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))

The argument filtering Pi contains the following mapping:
nil  =  nil
tree(x1, x2, x3)  =  tree(x1, x2, x3)
inorder14_in_ga(x1, x2)  =  inorder14_in_ga(x1)
inorder14_out_ga(x1, x2)  =  inorder14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x2, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x2, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
append27_in_agaa(x1, x2, x3, x4)  =  append27_in_agaa(x2)
append27_out_agaa(x1, x2, x3, x4)  =  append27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
INORDER14_IN_GA(x1, x2)  =  INORDER14_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x2, x3, x5)

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:

INORDER14_IN_GA(tree(T19, T20, T21)) → U2_GA(T20, T21, inorder14_in_ga(T19))
U2_GA(T20, T21, inorder14_out_ga) → INORDER14_IN_GA(T21)
INORDER14_IN_GA(tree(T19, T20, T21)) → INORDER14_IN_GA(T19)

The TRS R consists of the following rules:

inorder14_in_ga(nil) → inorder14_out_ga
inorder14_in_ga(tree(T19, T20, T21)) → U1_ga(inorder14_in_ga(T19))
inorder14_in_ga(tree(T19, T20, T21)) → U2_ga(T20, T21, inorder14_in_ga(T19))
U1_ga(inorder14_out_ga) → inorder14_out_ga
U2_ga(T20, T21, inorder14_out_ga) → U3_ga(inorder14_in_ga(T21))
U2_ga(T20, T21, inorder14_out_ga) → U4_ga(T20, inorder14_in_ga(T21))
U3_ga(inorder14_out_ga) → inorder14_out_ga
U4_ga(T20, inorder14_out_ga) → U5_ga(append27_in_agaa(T20))
U5_ga(append27_out_agaa(T22)) → inorder14_out_ga
append27_in_agaa(T36) → append27_out_agaa([])
append27_in_agaa(T48) → U6_agaa(append27_in_agaa(T48))
U6_agaa(append27_out_agaa(T47)) → append27_out_agaa(.(T47))

The set Q consists of the following terms:

inorder14_in_ga(x0)
U1_ga(x0)
U2_ga(x0, x1, x2)
U3_ga(x0)
U4_ga(x0, x1)
U5_ga(x0)
append27_in_agaa(x0)
U6_agaa(x0)

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:

  • U2_GA(T20, T21, inorder14_out_ga) → INORDER14_IN_GA(T21)
    The graph contains the following edges 2 >= 1

  • INORDER14_IN_GA(tree(T19, T20, T21)) → INORDER14_IN_GA(T19)
    The graph contains the following edges 1 > 1

  • INORDER14_IN_GA(tree(T19, T20, T21)) → U2_GA(T20, T21, inorder14_in_ga(T19))
    The graph contains the following edges 1 > 1, 1 > 2

(56) YES