(0) Obligation:

Clauses:

preorder(X, Y) :- pdl(X, -(Y, [])).
pdl(nil, Y) :- ','(!, eq(Y, -(X, X))).
pdl(T, -(.(X, Xs), Zs)) :- ','(value(T, X), ','(left(T, L), ','(right(T, R), ','(pdl(L, -(Xs, Ys)), pdl(R, -(Ys, Zs)))))).
left(nil, nil).
left(tree(L, X1, X2), L).
right(nil, nil).
right(tree(X3, X4, R), R).
value(nil, X5).
value(tree(X6, X, X7), X).
eq(X, X).

Queries:

preorder(g,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

pdl3(nil, []).
pdl3(tree(T21, T22, T23), .(T22, T17)) :- pdl24(T21, T17, X27).
pdl3(tree(T21, T22, T23), .(T22, T17)) :- ','(pdl24(T21, T17, T24), pdl3(T23, T24)).
pdl24(nil, T27, T27).
pdl24(tree(T40, T41, T42), .(T41, T36), X66) :- pdl24(T40, T36, X65).
pdl24(tree(T40, T41, T42), .(T41, T36), X66) :- ','(pdl24(T40, T36, T43), pdl24(T42, T43, X66)).
preorder1(nil, []).
preorder1(tree(T21, T22, T23), .(T22, T17)) :- pdl24(T21, T17, X27).
preorder1(tree(T21, T22, T23), .(T22, T17)) :- ','(pdl24(T21, T17, T24), pdl3(T23, T24)).

Queries:

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

preorder1_in_ga(nil, []) → preorder1_out_ga(nil, [])
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U7_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
pdl24_in_gaa(nil, T27, T27) → pdl24_out_gaa(nil, T27, T27)
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U4_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U5_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U6_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T42, T43, X66)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U4_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, X65)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U7_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U8_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U8_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U9_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
pdl3_in_ga(nil, []) → pdl3_out_ga(nil, [])
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U1_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
U1_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U2_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U3_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U3_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
U9_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))

The argument filtering Pi contains the following mapping:
preorder1_in_ga(x1, x2)  =  preorder1_in_ga(x1)
nil  =  nil
preorder1_out_ga(x1, x2)  =  preorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
pdl24_in_gaa(x1, x2, x3)  =  pdl24_in_gaa(x1)
pdl24_out_gaa(x1, x2, x3)  =  pdl24_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
pdl3_in_ga(x1, x2)  =  pdl3_in_ga(x1)
pdl3_out_ga(x1, x2)  =  pdl3_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

preorder1_in_ga(nil, []) → preorder1_out_ga(nil, [])
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U7_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
pdl24_in_gaa(nil, T27, T27) → pdl24_out_gaa(nil, T27, T27)
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U4_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U5_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U6_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T42, T43, X66)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U4_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, X65)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U7_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U8_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U8_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U9_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
pdl3_in_ga(nil, []) → pdl3_out_ga(nil, [])
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U1_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
U1_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U2_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U3_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U3_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
U9_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))

The argument filtering Pi contains the following mapping:
preorder1_in_ga(x1, x2)  =  preorder1_in_ga(x1)
nil  =  nil
preorder1_out_ga(x1, x2)  =  preorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
pdl24_in_gaa(x1, x2, x3)  =  pdl24_in_gaa(x1)
pdl24_out_gaa(x1, x2, x3)  =  pdl24_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
pdl3_in_ga(x1, x2)  =  pdl3_in_ga(x1)
pdl3_out_ga(x1, x2)  =  pdl3_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

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

PREORDER1_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U7_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
PREORDER1_IN_GA(tree(T21, T22, T23), .(T22, T17)) → PDL24_IN_GAA(T21, T17, X27)
PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → U4_GAA(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → PDL24_IN_GAA(T40, T36, X65)
PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → U5_GAA(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_GAA(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_GAA(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U5_GAA(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → PDL24_IN_GAA(T42, T43, X66)
PREORDER1_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U8_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U8_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U9_GA(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U8_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → PDL3_IN_GA(T23, T24)
PDL3_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U1_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
PDL3_IN_GA(tree(T21, T22, T23), .(T22, T17)) → PDL24_IN_GAA(T21, T17, X27)
PDL3_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U2_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U3_GA(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U2_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → PDL3_IN_GA(T23, T24)

The TRS R consists of the following rules:

preorder1_in_ga(nil, []) → preorder1_out_ga(nil, [])
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U7_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
pdl24_in_gaa(nil, T27, T27) → pdl24_out_gaa(nil, T27, T27)
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U4_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U5_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U6_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T42, T43, X66)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U4_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, X65)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U7_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U8_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U8_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U9_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
pdl3_in_ga(nil, []) → pdl3_out_ga(nil, [])
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U1_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
U1_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U2_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U3_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U3_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
U9_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))

The argument filtering Pi contains the following mapping:
preorder1_in_ga(x1, x2)  =  preorder1_in_ga(x1)
nil  =  nil
preorder1_out_ga(x1, x2)  =  preorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
pdl24_in_gaa(x1, x2, x3)  =  pdl24_in_gaa(x1)
pdl24_out_gaa(x1, x2, x3)  =  pdl24_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
pdl3_in_ga(x1, x2)  =  pdl3_in_ga(x1)
pdl3_out_ga(x1, x2)  =  pdl3_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
PREORDER1_IN_GA(x1, x2)  =  PREORDER1_IN_GA(x1)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x5)
PDL24_IN_GAA(x1, x2, x3)  =  PDL24_IN_GAA(x1)
U4_GAA(x1, x2, x3, x4, x5, x6)  =  U4_GAA(x6)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x3, x6)
U6_GAA(x1, x2, x3, x4, x5, x6)  =  U6_GAA(x6)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x3, x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x5)
PDL3_IN_GA(x1, x2)  =  PDL3_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)

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

(6) Obligation:

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

PREORDER1_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U7_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
PREORDER1_IN_GA(tree(T21, T22, T23), .(T22, T17)) → PDL24_IN_GAA(T21, T17, X27)
PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → U4_GAA(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → PDL24_IN_GAA(T40, T36, X65)
PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → U5_GAA(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_GAA(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_GAA(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U5_GAA(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → PDL24_IN_GAA(T42, T43, X66)
PREORDER1_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U8_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U8_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U9_GA(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U8_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → PDL3_IN_GA(T23, T24)
PDL3_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U1_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
PDL3_IN_GA(tree(T21, T22, T23), .(T22, T17)) → PDL24_IN_GAA(T21, T17, X27)
PDL3_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U2_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U3_GA(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U2_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → PDL3_IN_GA(T23, T24)

The TRS R consists of the following rules:

preorder1_in_ga(nil, []) → preorder1_out_ga(nil, [])
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U7_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
pdl24_in_gaa(nil, T27, T27) → pdl24_out_gaa(nil, T27, T27)
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U4_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U5_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U6_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T42, T43, X66)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U4_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, X65)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U7_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U8_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U8_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U9_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
pdl3_in_ga(nil, []) → pdl3_out_ga(nil, [])
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U1_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
U1_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U2_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U3_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U3_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
U9_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))

The argument filtering Pi contains the following mapping:
preorder1_in_ga(x1, x2)  =  preorder1_in_ga(x1)
nil  =  nil
preorder1_out_ga(x1, x2)  =  preorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
pdl24_in_gaa(x1, x2, x3)  =  pdl24_in_gaa(x1)
pdl24_out_gaa(x1, x2, x3)  =  pdl24_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
pdl3_in_ga(x1, x2)  =  pdl3_in_ga(x1)
pdl3_out_ga(x1, x2)  =  pdl3_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
PREORDER1_IN_GA(x1, x2)  =  PREORDER1_IN_GA(x1)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x5)
PDL24_IN_GAA(x1, x2, x3)  =  PDL24_IN_GAA(x1)
U4_GAA(x1, x2, x3, x4, x5, x6)  =  U4_GAA(x6)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x3, x6)
U6_GAA(x1, x2, x3, x4, x5, x6)  =  U6_GAA(x6)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x3, x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x5)
PDL3_IN_GA(x1, x2)  =  PDL3_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x3, x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 2 SCCs with 10 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → U5_GAA(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_GAA(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → PDL24_IN_GAA(T42, T43, X66)
PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → PDL24_IN_GAA(T40, T36, X65)

The TRS R consists of the following rules:

preorder1_in_ga(nil, []) → preorder1_out_ga(nil, [])
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U7_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
pdl24_in_gaa(nil, T27, T27) → pdl24_out_gaa(nil, T27, T27)
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U4_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U5_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U6_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T42, T43, X66)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U4_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, X65)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U7_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U8_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U8_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U9_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
pdl3_in_ga(nil, []) → pdl3_out_ga(nil, [])
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U1_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
U1_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U2_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U3_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U3_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
U9_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))

The argument filtering Pi contains the following mapping:
preorder1_in_ga(x1, x2)  =  preorder1_in_ga(x1)
nil  =  nil
preorder1_out_ga(x1, x2)  =  preorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
pdl24_in_gaa(x1, x2, x3)  =  pdl24_in_gaa(x1)
pdl24_out_gaa(x1, x2, x3)  =  pdl24_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
pdl3_in_ga(x1, x2)  =  pdl3_in_ga(x1)
pdl3_out_ga(x1, x2)  =  pdl3_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
PDL24_IN_GAA(x1, x2, x3)  =  PDL24_IN_GAA(x1)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x3, x6)

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:

PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → U5_GAA(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_GAA(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → PDL24_IN_GAA(T42, T43, X66)
PDL24_IN_GAA(tree(T40, T41, T42), .(T41, T36), X66) → PDL24_IN_GAA(T40, T36, X65)

The TRS R consists of the following rules:

pdl24_in_gaa(nil, T27, T27) → pdl24_out_gaa(nil, T27, T27)
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U4_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U5_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U4_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, X65)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U5_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U6_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T42, T43, X66)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)

The argument filtering Pi contains the following mapping:
nil  =  nil
tree(x1, x2, x3)  =  tree(x1, x2, x3)
pdl24_in_gaa(x1, x2, x3)  =  pdl24_in_gaa(x1)
pdl24_out_gaa(x1, x2, x3)  =  pdl24_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
PDL24_IN_GAA(x1, x2, x3)  =  PDL24_IN_GAA(x1)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x3, x6)

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:

PDL24_IN_GAA(tree(T40, T41, T42)) → U5_GAA(T42, pdl24_in_gaa(T40))
U5_GAA(T42, pdl24_out_gaa) → PDL24_IN_GAA(T42)
PDL24_IN_GAA(tree(T40, T41, T42)) → PDL24_IN_GAA(T40)

The TRS R consists of the following rules:

pdl24_in_gaa(nil) → pdl24_out_gaa
pdl24_in_gaa(tree(T40, T41, T42)) → U4_gaa(pdl24_in_gaa(T40))
pdl24_in_gaa(tree(T40, T41, T42)) → U5_gaa(T42, pdl24_in_gaa(T40))
U4_gaa(pdl24_out_gaa) → pdl24_out_gaa
U5_gaa(T42, pdl24_out_gaa) → U6_gaa(pdl24_in_gaa(T42))
U6_gaa(pdl24_out_gaa) → pdl24_out_gaa

The set Q consists of the following terms:

pdl24_in_gaa(x0)
U4_gaa(x0)
U5_gaa(x0, x1)
U6_gaa(x0)

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

(14) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • U5_GAA(T42, pdl24_out_gaa) → PDL24_IN_GAA(T42)
    The graph contains the following edges 1 >= 1

  • PDL24_IN_GAA(tree(T40, T41, T42)) → PDL24_IN_GAA(T40)
    The graph contains the following edges 1 > 1

  • PDL24_IN_GAA(tree(T40, T41, T42)) → U5_GAA(T42, pdl24_in_gaa(T40))
    The graph contains the following edges 1 > 1

(15) TRUE

(16) Obligation:

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

PDL3_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U2_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → PDL3_IN_GA(T23, T24)

The TRS R consists of the following rules:

preorder1_in_ga(nil, []) → preorder1_out_ga(nil, [])
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U7_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
pdl24_in_gaa(nil, T27, T27) → pdl24_out_gaa(nil, T27, T27)
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U4_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U5_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U5_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U6_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T42, T43, X66)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U4_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, X65)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U7_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))
preorder1_in_ga(tree(T21, T22, T23), .(T22, T17)) → U8_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U8_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U9_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
pdl3_in_ga(nil, []) → pdl3_out_ga(nil, [])
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U1_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, X27))
U1_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, X27)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
pdl3_in_ga(tree(T21, T22, T23), .(T22, T17)) → U2_ga(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_ga(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → U3_ga(T21, T22, T23, T17, pdl3_in_ga(T23, T24))
U3_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → pdl3_out_ga(tree(T21, T22, T23), .(T22, T17))
U9_ga(T21, T22, T23, T17, pdl3_out_ga(T23, T24)) → preorder1_out_ga(tree(T21, T22, T23), .(T22, T17))

The argument filtering Pi contains the following mapping:
preorder1_in_ga(x1, x2)  =  preorder1_in_ga(x1)
nil  =  nil
preorder1_out_ga(x1, x2)  =  preorder1_out_ga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
pdl24_in_gaa(x1, x2, x3)  =  pdl24_in_gaa(x1)
pdl24_out_gaa(x1, x2, x3)  =  pdl24_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x3, x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
pdl3_in_ga(x1, x2)  =  pdl3_in_ga(x1)
pdl3_out_ga(x1, x2)  =  pdl3_out_ga
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x3, x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
PDL3_IN_GA(x1, x2)  =  PDL3_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x3, x5)

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:

PDL3_IN_GA(tree(T21, T22, T23), .(T22, T17)) → U2_GA(T21, T22, T23, T17, pdl24_in_gaa(T21, T17, T24))
U2_GA(T21, T22, T23, T17, pdl24_out_gaa(T21, T17, T24)) → PDL3_IN_GA(T23, T24)

The TRS R consists of the following rules:

pdl24_in_gaa(nil, T27, T27) → pdl24_out_gaa(nil, T27, T27)
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U4_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, X65))
pdl24_in_gaa(tree(T40, T41, T42), .(T41, T36), X66) → U5_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T40, T36, T43))
U4_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, X65)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)
U5_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T40, T36, T43)) → U6_gaa(T40, T41, T42, T36, X66, pdl24_in_gaa(T42, T43, X66))
U6_gaa(T40, T41, T42, T36, X66, pdl24_out_gaa(T42, T43, X66)) → pdl24_out_gaa(tree(T40, T41, T42), .(T41, T36), X66)

The argument filtering Pi contains the following mapping:
nil  =  nil
tree(x1, x2, x3)  =  tree(x1, x2, x3)
pdl24_in_gaa(x1, x2, x3)  =  pdl24_in_gaa(x1)
pdl24_out_gaa(x1, x2, x3)  =  pdl24_out_gaa
U4_gaa(x1, x2, x3, x4, x5, x6)  =  U4_gaa(x6)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
PDL3_IN_GA(x1, x2)  =  PDL3_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x3, x5)

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:

PDL3_IN_GA(tree(T21, T22, T23)) → U2_GA(T23, pdl24_in_gaa(T21))
U2_GA(T23, pdl24_out_gaa) → PDL3_IN_GA(T23)

The TRS R consists of the following rules:

pdl24_in_gaa(nil) → pdl24_out_gaa
pdl24_in_gaa(tree(T40, T41, T42)) → U4_gaa(pdl24_in_gaa(T40))
pdl24_in_gaa(tree(T40, T41, T42)) → U5_gaa(T42, pdl24_in_gaa(T40))
U4_gaa(pdl24_out_gaa) → pdl24_out_gaa
U5_gaa(T42, pdl24_out_gaa) → U6_gaa(pdl24_in_gaa(T42))
U6_gaa(pdl24_out_gaa) → pdl24_out_gaa

The set Q consists of the following terms:

pdl24_in_gaa(x0)
U4_gaa(x0)
U5_gaa(x0, x1)
U6_gaa(x0)

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

(21) 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(T23, pdl24_out_gaa) → PDL3_IN_GA(T23)
    The graph contains the following edges 1 >= 1

  • PDL3_IN_GA(tree(T21, T22, T23)) → U2_GA(T23, pdl24_in_gaa(T21))
    The graph contains the following edges 1 > 1

(22) TRUE