(0) Obligation:

Clauses:

app([], L, L) :- !.
app(X, Y, .(H, Z)) :- ','(head(X, H), ','(tail(X, T), app(T, Y, Z))).
head([], X1).
head(.(X, X2), X).
tail([], []).
tail(.(X3, Xs), Xs).

Queries:

app(g,a,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

app13(T15, T15, X14, T9, T10, T11).
app13(T23, .(T22, T24), X14, T9, T10, T11) :- app13(T23, T24, X27, T19, T20, T21).
app1([], T4, T4).
app1([], T15, .(T12, T15)).
app1([], T23, .(T12, .(T22, T24))) :- app13(T23, T24, X27, T19, T20, T21).
app1(.(T29, T30), T27, .(T29, T28)) :- app1(T30, T27, T28).

Queries:

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

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(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:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(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:

APP1_IN_GAA([], T23, .(T12, .(T22, T24))) → U2_GAA(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
APP1_IN_GAA([], T23, .(T12, .(T22, T24))) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)
APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → U1_AAAAAA(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)
APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → U3_GAA(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → APP1_IN_GAA(T30, T27, T28)

The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x5)
APP1_IN_GAA(x1, x2, x3)  =  APP1_IN_GAA(x1)
U2_GAA(x1, x2, x3, x4, x5)  =  U2_GAA(x5)
APP13_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  APP13_IN_AAAAAA
U1_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_AAAAAA(x8)
U3_GAA(x1, x2, x3, x4, x5)  =  U3_GAA(x5)

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

(6) Obligation:

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

APP1_IN_GAA([], T23, .(T12, .(T22, T24))) → U2_GAA(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
APP1_IN_GAA([], T23, .(T12, .(T22, T24))) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)
APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → U1_AAAAAA(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)
APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → U3_GAA(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → APP1_IN_GAA(T30, T27, T28)

The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x5)
APP1_IN_GAA(x1, x2, x3)  =  APP1_IN_GAA(x1)
U2_GAA(x1, x2, x3, x4, x5)  =  U2_GAA(x5)
APP13_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  APP13_IN_AAAAAA
U1_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_AAAAAA(x8)
U3_GAA(x1, x2, x3, x4, x5)  =  U3_GAA(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 4 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)

The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x5)
APP13_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  APP13_IN_AAAAAA

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:

APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)

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

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:

APP13_IN_AAAAAAAPP13_IN_AAAAAA

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 = APP13_IN_AAAAAA evaluates to t =APP13_IN_AAAAAA

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 APP13_IN_AAAAAA to APP13_IN_AAAAAA.



(15) FALSE

(16) Obligation:

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

APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → APP1_IN_GAA(T30, T27, T28)

The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x5)
APP1_IN_GAA(x1, x2, x3)  =  APP1_IN_GAA(x1)

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:

APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → APP1_IN_GAA(T30, T27, T28)

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

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:

APP1_IN_GAA(.(T29, T30)) → APP1_IN_GAA(T30)

R is empty.
Q is empty.
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:

  • APP1_IN_GAA(.(T29, T30)) → APP1_IN_GAA(T30)
    The graph contains the following edges 1 > 1

(22) TRUE

(23) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
app1_in: (b,f,f)
app13_in: (f,f,f,f,f,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa(x1)
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x1, x2, x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(24) Obligation:

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

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa(x1)
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x1, x2, x5)

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

APP1_IN_GAA([], T23, .(T12, .(T22, T24))) → U2_GAA(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
APP1_IN_GAA([], T23, .(T12, .(T22, T24))) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)
APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → U1_AAAAAA(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)
APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → U3_GAA(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → APP1_IN_GAA(T30, T27, T28)

The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa(x1)
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x1, x2, x5)
APP1_IN_GAA(x1, x2, x3)  =  APP1_IN_GAA(x1)
U2_GAA(x1, x2, x3, x4, x5)  =  U2_GAA(x5)
APP13_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  APP13_IN_AAAAAA
U1_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_AAAAAA(x8)
U3_GAA(x1, x2, x3, x4, x5)  =  U3_GAA(x1, x2, x5)

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

(26) Obligation:

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

APP1_IN_GAA([], T23, .(T12, .(T22, T24))) → U2_GAA(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
APP1_IN_GAA([], T23, .(T12, .(T22, T24))) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)
APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → U1_AAAAAA(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)
APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → U3_GAA(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → APP1_IN_GAA(T30, T27, T28)

The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa(x1)
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x1, x2, x5)
APP1_IN_GAA(x1, x2, x3)  =  APP1_IN_GAA(x1)
U2_GAA(x1, x2, x3, x4, x5)  =  U2_GAA(x5)
APP13_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  APP13_IN_AAAAAA
U1_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_AAAAAA(x8)
U3_GAA(x1, x2, x3, x4, x5)  =  U3_GAA(x1, x2, x5)

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

(27) DependencyGraphProof (EQUIVALENT transformation)

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

(28) Complex Obligation (AND)

(29) Obligation:

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

APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)

The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa(x1)
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x1, x2, x5)
APP13_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  APP13_IN_AAAAAA

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

(30) UsableRulesProof (EQUIVALENT transformation)

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

(31) Obligation:

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

APP13_IN_AAAAAA(T23, .(T22, T24), X14, T9, T10, T11) → APP13_IN_AAAAAA(T23, T24, X27, T19, T20, T21)

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

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

(32) PiDPToQDPProof (SOUND transformation)

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

(33) Obligation:

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

APP13_IN_AAAAAAAPP13_IN_AAAAAA

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

(34) 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 = APP13_IN_AAAAAA evaluates to t =APP13_IN_AAAAAA

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 APP13_IN_AAAAAA to APP13_IN_AAAAAA.



(35) FALSE

(36) Obligation:

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

APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → APP1_IN_GAA(T30, T27, T28)

The TRS R consists of the following rules:

app1_in_gaa([], T4, T4) → app1_out_gaa([], T4, T4)
app1_in_gaa([], T15, .(T12, T15)) → app1_out_gaa([], T15, .(T12, T15))
app1_in_gaa([], T23, .(T12, .(T22, T24))) → U2_gaa(T23, T12, T22, T24, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
app13_in_aaaaaa(T15, T15, X14, T9, T10, T11) → app13_out_aaaaaa(T15, T15, X14, T9, T10, T11)
app13_in_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11) → U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_in_aaaaaa(T23, T24, X27, T19, T20, T21))
U1_aaaaaa(T23, T22, T24, X14, T9, T10, T11, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app13_out_aaaaaa(T23, .(T22, T24), X14, T9, T10, T11)
U2_gaa(T23, T12, T22, T24, app13_out_aaaaaa(T23, T24, X27, T19, T20, T21)) → app1_out_gaa([], T23, .(T12, .(T22, T24)))
app1_in_gaa(.(T29, T30), T27, .(T29, T28)) → U3_gaa(T29, T30, T27, T28, app1_in_gaa(T30, T27, T28))
U3_gaa(T29, T30, T27, T28, app1_out_gaa(T30, T27, T28)) → app1_out_gaa(.(T29, T30), T27, .(T29, T28))

The argument filtering Pi contains the following mapping:
app1_in_gaa(x1, x2, x3)  =  app1_in_gaa(x1)
[]  =  []
app1_out_gaa(x1, x2, x3)  =  app1_out_gaa(x1)
U2_gaa(x1, x2, x3, x4, x5)  =  U2_gaa(x5)
app13_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_in_aaaaaa
app13_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  app13_out_aaaaaa
U1_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U1_aaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
U3_gaa(x1, x2, x3, x4, x5)  =  U3_gaa(x1, x2, x5)
APP1_IN_GAA(x1, x2, x3)  =  APP1_IN_GAA(x1)

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

(37) UsableRulesProof (EQUIVALENT transformation)

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

(38) Obligation:

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

APP1_IN_GAA(.(T29, T30), T27, .(T29, T28)) → APP1_IN_GAA(T30, T27, T28)

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

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

(39) PiDPToQDPProof (SOUND transformation)

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

(40) Obligation:

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

APP1_IN_GAA(.(T29, T30)) → APP1_IN_GAA(T30)

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

(41) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • APP1_IN_GAA(.(T29, T30)) → APP1_IN_GAA(T30)
    The graph contains the following edges 1 > 1

(42) TRUE