(0) Obligation:

Clauses:

in_order(void, []).
in_order(tree(X, Left, Right), Xs) :- ','(in_order(Left, Ls), ','(in_order(Right, Rs), app(Ls, .(X, Rs), Xs))).
app([], X, X).
app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).

Queries:

in_order(g,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

in_order14(void, []).
in_order14(tree(T19, T20, T21), X37) :- in_order14(T20, X35).
in_order14(tree(T19, T20, T21), X37) :- ','(in_order14(T20, T22), in_order14(T21, X36)).
in_order14(tree(T19, T20, T21), X37) :- ','(in_order14(T20, T22), ','(in_order14(T21, T23), app27(T22, T19, T23, X37))).
app27([], T36, T37, .(T36, T37)).
app27(.(T46, T47), T48, T49, .(T46, X64)) :- app27(T47, T48, T49, X64).
app52([], T101, T102, .(T101, T102)).
app52(.(T113, T114), T115, T116, .(T113, T118)) :- app52(T114, T115, T116, T118).
in_order1(void, []).
in_order1(tree(T7, void, T9), T11) :- in_order14(T9, X14).
in_order1(tree(T66, void, T9), .(T66, T67)) :- in_order14(T9, T67).
in_order1(tree(T7, tree(T74, T75, T76), T9), T11) :- in_order14(T75, X99).
in_order1(tree(T7, tree(T74, T75, T76), T9), T11) :- ','(in_order14(T75, T77), in_order14(T76, X100)).
in_order1(tree(T7, tree(T74, T75, T76), T9), T11) :- ','(in_order14(T75, T77), ','(in_order14(T76, T78), app27(T77, T74, T78, X101))).
in_order1(tree(T7, tree(T74, T75, T76), T9), T11) :- ','(in_order14(T75, T77), ','(in_order14(T76, T78), ','(app27(T77, T74, T78, T83), in_order14(T9, X14)))).
in_order1(tree(T7, tree(T74, T75, T76), T9), T11) :- ','(in_order14(T75, T77), ','(in_order14(T76, T78), ','(app27(T77, T74, T78, T83), ','(in_order14(T9, T88), app52(T83, T7, T88, T11))))).

Queries:

in_order1(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:
in_order1_in: (b,f)
in_order14_in: (b,f)
app27_in: (f,b,f,f)
app52_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:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(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:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(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:

IN_ORDER1_IN_GA(tree(T7, void, T9), T11) → U8_GA(T7, T9, T11, in_order14_in_ga(T9, X14))
IN_ORDER1_IN_GA(tree(T7, void, T9), T11) → IN_ORDER14_IN_GA(T9, X14)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U1_GA(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → IN_ORDER14_IN_GA(T20, X35)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_GA(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → IN_ORDER14_IN_GA(T21, X36)
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_GA(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_GA(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_GA(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
U4_GA(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → APP27_IN_AGAA(T22, T19, T23, X37)
APP27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → U6_AGAA(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
APP27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APP27_IN_AGAA(T47, T48, T49, X64)
IN_ORDER1_IN_GA(tree(T66, void, T9), .(T66, T67)) → U9_GA(T66, T9, T67, in_order14_in_ga(T9, T67))
IN_ORDER1_IN_GA(tree(T66, void, T9), .(T66, T67)) → IN_ORDER14_IN_GA(T9, T67)
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → U10_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → IN_ORDER14_IN_GA(T75, X99)
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → U11_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → IN_ORDER14_IN_GA(T76, X100)
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_GA(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → APP27_IN_AGAA(T77, T74, T78, X101)
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_GA(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → IN_ORDER14_IN_GA(T9, X14)
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_GA(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → APP52_IN_AGAA(T83, T7, T88, T11)
APP52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → U7_AGAA(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
APP52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APP52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
IN_ORDER1_IN_GA(x1, x2)  =  IN_ORDER1_IN_GA(x1)
U8_GA(x1, x2, x3, x4)  =  U8_GA(x4)
IN_ORDER14_IN_GA(x1, x2)  =  IN_ORDER14_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
U4_GA(x1, x2, x3, x4, x5, x6)  =  U4_GA(x1, x6)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)
APP27_IN_AGAA(x1, x2, x3, x4)  =  APP27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_GA(x1, x2, x3, x4, x5, x6, x7)  =  U18_GA(x7)
APP52_IN_AGAA(x1, x2, x3, x4)  =  APP52_IN_AGAA(x2)
U7_AGAA(x1, x2, x3, x4, x5, x6)  =  U7_AGAA(x6)

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

(6) Obligation:

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

IN_ORDER1_IN_GA(tree(T7, void, T9), T11) → U8_GA(T7, T9, T11, in_order14_in_ga(T9, X14))
IN_ORDER1_IN_GA(tree(T7, void, T9), T11) → IN_ORDER14_IN_GA(T9, X14)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U1_GA(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → IN_ORDER14_IN_GA(T20, X35)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_GA(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → IN_ORDER14_IN_GA(T21, X36)
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_GA(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_GA(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_GA(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
U4_GA(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → APP27_IN_AGAA(T22, T19, T23, X37)
APP27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → U6_AGAA(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
APP27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APP27_IN_AGAA(T47, T48, T49, X64)
IN_ORDER1_IN_GA(tree(T66, void, T9), .(T66, T67)) → U9_GA(T66, T9, T67, in_order14_in_ga(T9, T67))
IN_ORDER1_IN_GA(tree(T66, void, T9), .(T66, T67)) → IN_ORDER14_IN_GA(T9, T67)
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → U10_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → IN_ORDER14_IN_GA(T75, X99)
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → U11_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → IN_ORDER14_IN_GA(T76, X100)
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_GA(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → APP27_IN_AGAA(T77, T74, T78, X101)
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_GA(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → IN_ORDER14_IN_GA(T9, X14)
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_GA(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → APP52_IN_AGAA(T83, T7, T88, T11)
APP52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → U7_AGAA(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
APP52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APP52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
IN_ORDER1_IN_GA(x1, x2)  =  IN_ORDER1_IN_GA(x1)
U8_GA(x1, x2, x3, x4)  =  U8_GA(x4)
IN_ORDER14_IN_GA(x1, x2)  =  IN_ORDER14_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
U4_GA(x1, x2, x3, x4, x5, x6)  =  U4_GA(x1, x6)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)
APP27_IN_AGAA(x1, x2, x3, x4)  =  APP27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_GA(x1, x2, x3, x4, x5, x6, x7)  =  U18_GA(x7)
APP52_IN_AGAA(x1, x2, x3, x4)  =  APP52_IN_AGAA(x2)
U7_AGAA(x1, x2, x3, x4, x5, x6)  =  U7_AGAA(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:

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

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
APP52_IN_AGAA(x1, x2, x3, x4)  =  APP52_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:

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

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

APP52_IN_AGAA(T115) → APP52_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 = APP52_IN_AGAA(T115) evaluates to t =APP52_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 APP52_IN_AGAA(T115) to APP52_IN_AGAA(T115).



(15) NO

(16) Obligation:

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

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

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
APP27_IN_AGAA(x1, x2, x3, x4)  =  APP27_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:

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

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

APP27_IN_AGAA(T48) → APP27_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 = APP27_IN_AGAA(T48) evaluates to t =APP27_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 APP27_IN_AGAA(T48) to APP27_IN_AGAA(T48).



(22) NO

(23) Obligation:

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

IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → IN_ORDER14_IN_GA(T21, X36)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → IN_ORDER14_IN_GA(T20, X35)

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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(x1, x2, 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(x1, x2, 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(x1, 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(x1, x8)
U18_ga(x1, x2, x3, x4, x5, x6, x7)  =  U18_ga(x7)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x6)
IN_ORDER14_IN_GA(x1, x2)  =  IN_ORDER14_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, 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:

IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → IN_ORDER14_IN_GA(T21, X36)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → IN_ORDER14_IN_GA(T20, X35)

The TRS R consists of the following rules:

in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))

The argument filtering Pi contains the following mapping:
void  =  void
tree(x1, x2, x3)  =  tree(x1, x2, x3)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5, x6)  =  U4_ga(x1, x6)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_out_agaa(x1)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x6)
.(x1, x2)  =  .(x2)
IN_ORDER14_IN_GA(x1, x2)  =  IN_ORDER14_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, 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:

IN_ORDER14_IN_GA(tree(T19, T20, T21)) → U2_GA(T19, T21, in_order14_in_ga(T20))
U2_GA(T19, T21, in_order14_out_ga) → IN_ORDER14_IN_GA(T21)
IN_ORDER14_IN_GA(tree(T19, T20, T21)) → IN_ORDER14_IN_GA(T20)

The TRS R consists of the following rules:

in_order14_in_ga(void) → in_order14_out_ga
in_order14_in_ga(tree(T19, T20, T21)) → U1_ga(in_order14_in_ga(T20))
in_order14_in_ga(tree(T19, T20, T21)) → U2_ga(T19, T21, in_order14_in_ga(T20))
U1_ga(in_order14_out_ga) → in_order14_out_ga
U2_ga(T19, T21, in_order14_out_ga) → U3_ga(in_order14_in_ga(T21))
U2_ga(T19, T21, in_order14_out_ga) → U4_ga(T19, in_order14_in_ga(T21))
U3_ga(in_order14_out_ga) → in_order14_out_ga
U4_ga(T19, in_order14_out_ga) → U5_ga(app27_in_agaa(T19))
U5_ga(app27_out_agaa(T22)) → in_order14_out_ga
app27_in_agaa(T36) → app27_out_agaa([])
app27_in_agaa(T48) → U6_agaa(app27_in_agaa(T48))
U6_agaa(app27_out_agaa(T47)) → app27_out_agaa(.(T47))

The set Q consists of the following terms:

in_order14_in_ga(x0)
U1_ga(x0)
U2_ga(x0, x1, x2)
U3_ga(x0)
U4_ga(x0, x1)
U5_ga(x0)
app27_in_agaa(x0)
U6_agaa(x0)

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, T21, in_order14_out_ga) → IN_ORDER14_IN_GA(T21)
    The graph contains the following edges 2 >= 1

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

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

(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:
in_order1_in: (b,f)
in_order14_in: (b,f)
app27_in: (f,b,f,f)
app52_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:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_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)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_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

(31) Obligation:

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

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_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)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, 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:

IN_ORDER1_IN_GA(tree(T7, void, T9), T11) → U8_GA(T7, T9, T11, in_order14_in_ga(T9, X14))
IN_ORDER1_IN_GA(tree(T7, void, T9), T11) → IN_ORDER14_IN_GA(T9, X14)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U1_GA(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → IN_ORDER14_IN_GA(T20, X35)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_GA(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → IN_ORDER14_IN_GA(T21, X36)
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_GA(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_GA(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_GA(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
U4_GA(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → APP27_IN_AGAA(T22, T19, T23, X37)
APP27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → U6_AGAA(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
APP27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APP27_IN_AGAA(T47, T48, T49, X64)
IN_ORDER1_IN_GA(tree(T66, void, T9), .(T66, T67)) → U9_GA(T66, T9, T67, in_order14_in_ga(T9, T67))
IN_ORDER1_IN_GA(tree(T66, void, T9), .(T66, T67)) → IN_ORDER14_IN_GA(T9, T67)
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → U10_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → IN_ORDER14_IN_GA(T75, X99)
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → U11_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → IN_ORDER14_IN_GA(T76, X100)
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_GA(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → APP27_IN_AGAA(T77, T74, T78, X101)
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_GA(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → IN_ORDER14_IN_GA(T9, X14)
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_GA(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → APP52_IN_AGAA(T83, T7, T88, T11)
APP52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → U7_AGAA(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
APP52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APP52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_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)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
IN_ORDER1_IN_GA(x1, x2)  =  IN_ORDER1_IN_GA(x1)
U8_GA(x1, x2, x3, x4)  =  U8_GA(x1, x2, x4)
IN_ORDER14_IN_GA(x1, x2)  =  IN_ORDER14_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)
APP27_IN_AGAA(x1, x2, x3, x4)  =  APP27_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)
APP52_IN_AGAA(x1, x2, x3, x4)  =  APP52_IN_AGAA(x2)
U7_AGAA(x1, x2, x3, x4, x5, x6)  =  U7_AGAA(x3, x6)

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

(33) Obligation:

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

IN_ORDER1_IN_GA(tree(T7, void, T9), T11) → U8_GA(T7, T9, T11, in_order14_in_ga(T9, X14))
IN_ORDER1_IN_GA(tree(T7, void, T9), T11) → IN_ORDER14_IN_GA(T9, X14)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U1_GA(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → IN_ORDER14_IN_GA(T20, X35)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_GA(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → IN_ORDER14_IN_GA(T21, X36)
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_GA(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_GA(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_GA(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
U4_GA(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → APP27_IN_AGAA(T22, T19, T23, X37)
APP27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → U6_AGAA(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
APP27_IN_AGAA(.(T46, T47), T48, T49, .(T46, X64)) → APP27_IN_AGAA(T47, T48, T49, X64)
IN_ORDER1_IN_GA(tree(T66, void, T9), .(T66, T67)) → U9_GA(T66, T9, T67, in_order14_in_ga(T9, T67))
IN_ORDER1_IN_GA(tree(T66, void, T9), .(T66, T67)) → IN_ORDER14_IN_GA(T9, T67)
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → U10_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → IN_ORDER14_IN_GA(T75, X99)
IN_ORDER1_IN_GA(tree(T7, tree(T74, T75, T76), T9), T11) → U11_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → IN_ORDER14_IN_GA(T76, X100)
U11_GA(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_GA(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → APP27_IN_AGAA(T77, T74, T78, X101)
U13_GA(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_GA(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_GA(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → IN_ORDER14_IN_GA(T9, X14)
U15_GA(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_GA(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
U17_GA(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → APP52_IN_AGAA(T83, T7, T88, T11)
APP52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → U7_AGAA(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
APP52_IN_AGAA(.(T113, T114), T115, T116, .(T113, T118)) → APP52_IN_AGAA(T114, T115, T116, T118)

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_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)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
IN_ORDER1_IN_GA(x1, x2)  =  IN_ORDER1_IN_GA(x1)
U8_GA(x1, x2, x3, x4)  =  U8_GA(x1, x2, x4)
IN_ORDER14_IN_GA(x1, x2)  =  IN_ORDER14_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)
APP27_IN_AGAA(x1, x2, x3, x4)  =  APP27_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)
APP52_IN_AGAA(x1, x2, x3, x4)  =  APP52_IN_AGAA(x2)
U7_AGAA(x1, x2, x3, x4, x5, x6)  =  U7_AGAA(x3, 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:

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

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_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)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
APP52_IN_AGAA(x1, x2, x3, x4)  =  APP52_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:

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

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

APP52_IN_AGAA(T115) → APP52_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 = APP52_IN_AGAA(T115) evaluates to t =APP52_IN_AGAA(T115)

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




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from APP52_IN_AGAA(T115) to APP52_IN_AGAA(T115).



(42) NO

(43) Obligation:

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

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

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_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)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
APP27_IN_AGAA(x1, x2, x3, x4)  =  APP27_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:

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

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

APP27_IN_AGAA(T48) → APP27_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 = APP27_IN_AGAA(T48) evaluates to t =APP27_IN_AGAA(T48)

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




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from APP27_IN_AGAA(T48) to APP27_IN_AGAA(T48).



(49) NO

(50) Obligation:

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

IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → IN_ORDER14_IN_GA(T21, X36)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → IN_ORDER14_IN_GA(T20, X35)

The TRS R consists of the following rules:

in_order1_in_ga(void, []) → in_order1_out_ga(void, [])
in_order1_in_ga(tree(T7, void, T9), T11) → U8_ga(T7, T9, T11, in_order14_in_ga(T9, X14))
in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U8_ga(T7, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, void, T9), T11)
in_order1_in_ga(tree(T66, void, T9), .(T66, T67)) → U9_ga(T66, T9, T67, in_order14_in_ga(T9, T67))
U9_ga(T66, T9, T67, in_order14_out_ga(T9, T67)) → in_order1_out_ga(tree(T66, void, T9), .(T66, T67))
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U10_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, X99))
U10_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, X99)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
in_order1_in_ga(tree(T7, tree(T74, T75, T76), T9), T11) → U11_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T75, T77))
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U12_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T76, X100))
U12_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T76, X100)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U11_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T75, T77)) → U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_in_ga(T76, T78))
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U14_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, X101))
U14_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, X101)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U13_ga(T7, T74, T75, T76, T9, T11, T77, in_order14_out_ga(T76, T78)) → U15_ga(T7, T74, T75, T76, T9, T11, app27_in_agaa(T77, T74, T78, T83))
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U16_ga(T7, T74, T75, T76, T9, T11, in_order14_in_ga(T9, X14))
U16_ga(T7, T74, T75, T76, T9, T11, in_order14_out_ga(T9, X14)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)
U15_ga(T7, T74, T75, T76, T9, T11, app27_out_agaa(T77, T74, T78, T83)) → U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_in_ga(T9, T88))
U17_ga(T7, T74, T75, T76, T9, T11, T83, in_order14_out_ga(T9, T88)) → U18_ga(T7, T74, T75, T76, T9, T11, app52_in_agaa(T83, T7, T88, T11))
app52_in_agaa([], T101, T102, .(T101, T102)) → app52_out_agaa([], T101, T102, .(T101, T102))
app52_in_agaa(.(T113, T114), T115, T116, .(T113, T118)) → U7_agaa(T113, T114, T115, T116, T118, app52_in_agaa(T114, T115, T116, T118))
U7_agaa(T113, T114, T115, T116, T118, app52_out_agaa(T114, T115, T116, T118)) → app52_out_agaa(.(T113, T114), T115, T116, .(T113, T118))
U18_ga(T7, T74, T75, T76, T9, T11, app52_out_agaa(T83, T7, T88, T11)) → in_order1_out_ga(tree(T7, tree(T74, T75, T76), T9), T11)

The argument filtering Pi contains the following mapping:
in_order1_in_ga(x1, x2)  =  in_order1_in_ga(x1)
void  =  void
in_order1_out_ga(x1, x2)  =  in_order1_out_ga(x1)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U8_ga(x1, x2, x3, x4)  =  U8_ga(x1, x2, x4)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_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)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_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)
app52_in_agaa(x1, x2, x3, x4)  =  app52_in_agaa(x2)
app52_out_agaa(x1, x2, x3, x4)  =  app52_out_agaa(x1, x2)
U7_agaa(x1, x2, x3, x4, x5, x6)  =  U7_agaa(x3, x6)
IN_ORDER14_IN_GA(x1, x2)  =  IN_ORDER14_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

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

IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → U2_GA(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U2_GA(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → IN_ORDER14_IN_GA(T21, X36)
IN_ORDER14_IN_GA(tree(T19, T20, T21), X37) → IN_ORDER14_IN_GA(T20, X35)

The TRS R consists of the following rules:

in_order14_in_ga(void, []) → in_order14_out_ga(void, [])
in_order14_in_ga(tree(T19, T20, T21), X37) → U1_ga(T19, T20, T21, X37, in_order14_in_ga(T20, X35))
in_order14_in_ga(tree(T19, T20, T21), X37) → U2_ga(T19, T20, T21, X37, in_order14_in_ga(T20, T22))
U1_ga(T19, T20, T21, X37, in_order14_out_ga(T20, X35)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U3_ga(T19, T20, T21, X37, in_order14_in_ga(T21, X36))
U2_ga(T19, T20, T21, X37, in_order14_out_ga(T20, T22)) → U4_ga(T19, T20, T21, X37, T22, in_order14_in_ga(T21, T23))
U3_ga(T19, T20, T21, X37, in_order14_out_ga(T21, X36)) → in_order14_out_ga(tree(T19, T20, T21), X37)
U4_ga(T19, T20, T21, X37, T22, in_order14_out_ga(T21, T23)) → U5_ga(T19, T20, T21, X37, app27_in_agaa(T22, T19, T23, X37))
U5_ga(T19, T20, T21, X37, app27_out_agaa(T22, T19, T23, X37)) → in_order14_out_ga(tree(T19, T20, T21), X37)
app27_in_agaa([], T36, T37, .(T36, T37)) → app27_out_agaa([], T36, T37, .(T36, T37))
app27_in_agaa(.(T46, T47), T48, T49, .(T46, X64)) → U6_agaa(T46, T47, T48, T49, X64, app27_in_agaa(T47, T48, T49, X64))
U6_agaa(T46, T47, T48, T49, X64, app27_out_agaa(T47, T48, T49, X64)) → app27_out_agaa(.(T46, T47), T48, T49, .(T46, X64))

The argument filtering Pi contains the following mapping:
void  =  void
tree(x1, x2, x3)  =  tree(x1, x2, x3)
in_order14_in_ga(x1, x2)  =  in_order14_in_ga(x1)
in_order14_out_ga(x1, x2)  =  in_order14_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)
app27_in_agaa(x1, x2, x3, x4)  =  app27_in_agaa(x2)
app27_out_agaa(x1, x2, x3, x4)  =  app27_out_agaa(x1, x2)
U6_agaa(x1, x2, x3, x4, x5, x6)  =  U6_agaa(x3, x6)
.(x1, x2)  =  .(x2)
IN_ORDER14_IN_GA(x1, x2)  =  IN_ORDER14_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

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

IN_ORDER14_IN_GA(tree(T19, T20, T21)) → U2_GA(T19, T20, T21, in_order14_in_ga(T20))
U2_GA(T19, T20, T21, in_order14_out_ga(T20)) → IN_ORDER14_IN_GA(T21)
IN_ORDER14_IN_GA(tree(T19, T20, T21)) → IN_ORDER14_IN_GA(T20)

The TRS R consists of the following rules:

in_order14_in_ga(void) → in_order14_out_ga(void)
in_order14_in_ga(tree(T19, T20, T21)) → U1_ga(T19, T20, T21, in_order14_in_ga(T20))
in_order14_in_ga(tree(T19, T20, T21)) → U2_ga(T19, T20, T21, in_order14_in_ga(T20))
U1_ga(T19, T20, T21, in_order14_out_ga(T20)) → in_order14_out_ga(tree(T19, T20, T21))
U2_ga(T19, T20, T21, in_order14_out_ga(T20)) → U3_ga(T19, T20, T21, in_order14_in_ga(T21))
U2_ga(T19, T20, T21, in_order14_out_ga(T20)) → U4_ga(T19, T20, T21, in_order14_in_ga(T21))
U3_ga(T19, T20, T21, in_order14_out_ga(T21)) → in_order14_out_ga(tree(T19, T20, T21))
U4_ga(T19, T20, T21, in_order14_out_ga(T21)) → U5_ga(T19, T20, T21, app27_in_agaa(T19))
U5_ga(T19, T20, T21, app27_out_agaa(T22, T19)) → in_order14_out_ga(tree(T19, T20, T21))
app27_in_agaa(T36) → app27_out_agaa([], T36)
app27_in_agaa(T48) → U6_agaa(T48, app27_in_agaa(T48))
U6_agaa(T48, app27_out_agaa(T47, T48)) → app27_out_agaa(.(T47), T48)

The set Q consists of the following terms:

in_order14_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)
app27_in_agaa(x0)
U6_agaa(x0, x1)

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(T19, T20, T21, in_order14_out_ga(T20)) → IN_ORDER14_IN_GA(T21)
    The graph contains the following edges 3 >= 1

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

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

(56) YES