(0) Obligation:

Clauses:

star(X1, []).
star(.(X, U), .(X, W)) :- ','(app(U, V, W), star(.(X, U), W)).
app([], L, L).
app(.(X, L), M, .(X, N)) :- app(L, M, N).

Queries:

star(g,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

app10([], T8, T8).
app10(.(T9, T10), X24, .(T9, T11)) :- app10(T10, X24, T11).
p8(T5, X11, T6, T4) :- app10(T5, X11, T6).
p8(T13, T7, [], T12) :- app10(T13, T7, []).
p8(T15, T7, .(T14, T16), T14) :- ','(app10(T15, T7, .(T14, T16)), p8(T15, X34, T16, T14)).
star1(T3, []).
star1(.(T4, T5), .(T4, T6)) :- app10(T5, X11, T6).
star1(.(T12, T13), .(T12, [])) :- app10(T13, T7, []).
star1(.(T14, T15), .(T14, .(T14, T16))) :- ','(app10(T15, T7, .(T14, T16)), p8(T15, X34, T16, T14)).

Queries:

star1(g,g).

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

star1_in_gg(T3, []) → star1_out_gg(T3, [])
star1_in_gg(.(T4, T5), .(T4, T6)) → U6_gg(T4, T5, T6, app10_in_gag(T5, X11, T6))
app10_in_gag([], T8, T8) → app10_out_gag([], T8, T8)
app10_in_gag(.(T9, T10), X24, .(T9, T11)) → U1_gag(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
U1_gag(T9, T10, X24, T11, app10_out_gag(T10, X24, T11)) → app10_out_gag(.(T9, T10), X24, .(T9, T11))
U6_gg(T4, T5, T6, app10_out_gag(T5, X11, T6)) → star1_out_gg(.(T4, T5), .(T4, T6))
star1_in_gg(.(T12, T13), .(T12, [])) → U7_gg(T12, T13, app10_in_gag(T13, T7, []))
U7_gg(T12, T13, app10_out_gag(T13, T7, [])) → star1_out_gg(.(T12, T13), .(T12, []))
star1_in_gg(.(T14, T15), .(T14, .(T14, T16))) → U8_gg(T14, T15, T16, app10_in_gag(T15, T7, .(T14, T16)))
U8_gg(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → U9_gg(T14, T15, T16, p8_in_gagg(T15, X34, T16, T14))
p8_in_gagg(T5, X11, T6, T4) → U2_gagg(T5, X11, T6, T4, app10_in_gag(T5, X11, T6))
U2_gagg(T5, X11, T6, T4, app10_out_gag(T5, X11, T6)) → p8_out_gagg(T5, X11, T6, T4)
p8_in_gagg(T13, T7, [], T12) → U3_gagg(T13, T7, T12, app10_in_gag(T13, T7, []))
U3_gagg(T13, T7, T12, app10_out_gag(T13, T7, [])) → p8_out_gagg(T13, T7, [], T12)
p8_in_gagg(T15, T7, .(T14, T16), T14) → U4_gagg(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
U4_gagg(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → U5_gagg(T15, T7, T14, T16, p8_in_gagg(T15, X34, T16, T14))
U5_gagg(T15, T7, T14, T16, p8_out_gagg(T15, X34, T16, T14)) → p8_out_gagg(T15, T7, .(T14, T16), T14)
U9_gg(T14, T15, T16, p8_out_gagg(T15, X34, T16, T14)) → star1_out_gg(.(T14, T15), .(T14, .(T14, T16)))

The argument filtering Pi contains the following mapping:
star1_in_gg(x1, x2)  =  star1_in_gg(x1, x2)
[]  =  []
star1_out_gg(x1, x2)  =  star1_out_gg
.(x1, x2)  =  .(x1, x2)
U6_gg(x1, x2, x3, x4)  =  U6_gg(x4)
app10_in_gag(x1, x2, x3)  =  app10_in_gag(x1, x3)
app10_out_gag(x1, x2, x3)  =  app10_out_gag(x2)
U1_gag(x1, x2, x3, x4, x5)  =  U1_gag(x5)
U7_gg(x1, x2, x3)  =  U7_gg(x3)
U8_gg(x1, x2, x3, x4)  =  U8_gg(x1, x2, x3, x4)
U9_gg(x1, x2, x3, x4)  =  U9_gg(x4)
p8_in_gagg(x1, x2, x3, x4)  =  p8_in_gagg(x1, x3, x4)
U2_gagg(x1, x2, x3, x4, x5)  =  U2_gagg(x5)
p8_out_gagg(x1, x2, x3, x4)  =  p8_out_gagg(x2)
U3_gagg(x1, x2, x3, x4)  =  U3_gagg(x4)
U4_gagg(x1, x2, x3, x4, x5)  =  U4_gagg(x1, x3, x4, x5)
U5_gagg(x1, x2, x3, x4, x5)  =  U5_gagg(x2, x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

star1_in_gg(T3, []) → star1_out_gg(T3, [])
star1_in_gg(.(T4, T5), .(T4, T6)) → U6_gg(T4, T5, T6, app10_in_gag(T5, X11, T6))
app10_in_gag([], T8, T8) → app10_out_gag([], T8, T8)
app10_in_gag(.(T9, T10), X24, .(T9, T11)) → U1_gag(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
U1_gag(T9, T10, X24, T11, app10_out_gag(T10, X24, T11)) → app10_out_gag(.(T9, T10), X24, .(T9, T11))
U6_gg(T4, T5, T6, app10_out_gag(T5, X11, T6)) → star1_out_gg(.(T4, T5), .(T4, T6))
star1_in_gg(.(T12, T13), .(T12, [])) → U7_gg(T12, T13, app10_in_gag(T13, T7, []))
U7_gg(T12, T13, app10_out_gag(T13, T7, [])) → star1_out_gg(.(T12, T13), .(T12, []))
star1_in_gg(.(T14, T15), .(T14, .(T14, T16))) → U8_gg(T14, T15, T16, app10_in_gag(T15, T7, .(T14, T16)))
U8_gg(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → U9_gg(T14, T15, T16, p8_in_gagg(T15, X34, T16, T14))
p8_in_gagg(T5, X11, T6, T4) → U2_gagg(T5, X11, T6, T4, app10_in_gag(T5, X11, T6))
U2_gagg(T5, X11, T6, T4, app10_out_gag(T5, X11, T6)) → p8_out_gagg(T5, X11, T6, T4)
p8_in_gagg(T13, T7, [], T12) → U3_gagg(T13, T7, T12, app10_in_gag(T13, T7, []))
U3_gagg(T13, T7, T12, app10_out_gag(T13, T7, [])) → p8_out_gagg(T13, T7, [], T12)
p8_in_gagg(T15, T7, .(T14, T16), T14) → U4_gagg(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
U4_gagg(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → U5_gagg(T15, T7, T14, T16, p8_in_gagg(T15, X34, T16, T14))
U5_gagg(T15, T7, T14, T16, p8_out_gagg(T15, X34, T16, T14)) → p8_out_gagg(T15, T7, .(T14, T16), T14)
U9_gg(T14, T15, T16, p8_out_gagg(T15, X34, T16, T14)) → star1_out_gg(.(T14, T15), .(T14, .(T14, T16)))

The argument filtering Pi contains the following mapping:
star1_in_gg(x1, x2)  =  star1_in_gg(x1, x2)
[]  =  []
star1_out_gg(x1, x2)  =  star1_out_gg
.(x1, x2)  =  .(x1, x2)
U6_gg(x1, x2, x3, x4)  =  U6_gg(x4)
app10_in_gag(x1, x2, x3)  =  app10_in_gag(x1, x3)
app10_out_gag(x1, x2, x3)  =  app10_out_gag(x2)
U1_gag(x1, x2, x3, x4, x5)  =  U1_gag(x5)
U7_gg(x1, x2, x3)  =  U7_gg(x3)
U8_gg(x1, x2, x3, x4)  =  U8_gg(x1, x2, x3, x4)
U9_gg(x1, x2, x3, x4)  =  U9_gg(x4)
p8_in_gagg(x1, x2, x3, x4)  =  p8_in_gagg(x1, x3, x4)
U2_gagg(x1, x2, x3, x4, x5)  =  U2_gagg(x5)
p8_out_gagg(x1, x2, x3, x4)  =  p8_out_gagg(x2)
U3_gagg(x1, x2, x3, x4)  =  U3_gagg(x4)
U4_gagg(x1, x2, x3, x4, x5)  =  U4_gagg(x1, x3, x4, x5)
U5_gagg(x1, x2, x3, x4, x5)  =  U5_gagg(x2, x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

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

STAR1_IN_GG(.(T4, T5), .(T4, T6)) → U6_GG(T4, T5, T6, app10_in_gag(T5, X11, T6))
STAR1_IN_GG(.(T4, T5), .(T4, T6)) → APP10_IN_GAG(T5, X11, T6)
APP10_IN_GAG(.(T9, T10), X24, .(T9, T11)) → U1_GAG(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
APP10_IN_GAG(.(T9, T10), X24, .(T9, T11)) → APP10_IN_GAG(T10, X24, T11)
STAR1_IN_GG(.(T12, T13), .(T12, [])) → U7_GG(T12, T13, app10_in_gag(T13, T7, []))
STAR1_IN_GG(.(T12, T13), .(T12, [])) → APP10_IN_GAG(T13, T7, [])
STAR1_IN_GG(.(T14, T15), .(T14, .(T14, T16))) → U8_GG(T14, T15, T16, app10_in_gag(T15, T7, .(T14, T16)))
STAR1_IN_GG(.(T14, T15), .(T14, .(T14, T16))) → APP10_IN_GAG(T15, T7, .(T14, T16))
U8_GG(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → U9_GG(T14, T15, T16, p8_in_gagg(T15, X34, T16, T14))
U8_GG(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → P8_IN_GAGG(T15, X34, T16, T14)
P8_IN_GAGG(T5, X11, T6, T4) → U2_GAGG(T5, X11, T6, T4, app10_in_gag(T5, X11, T6))
P8_IN_GAGG(T5, X11, T6, T4) → APP10_IN_GAG(T5, X11, T6)
P8_IN_GAGG(T13, T7, [], T12) → U3_GAGG(T13, T7, T12, app10_in_gag(T13, T7, []))
P8_IN_GAGG(T13, T7, [], T12) → APP10_IN_GAG(T13, T7, [])
P8_IN_GAGG(T15, T7, .(T14, T16), T14) → U4_GAGG(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
P8_IN_GAGG(T15, T7, .(T14, T16), T14) → APP10_IN_GAG(T15, T7, .(T14, T16))
U4_GAGG(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → U5_GAGG(T15, T7, T14, T16, p8_in_gagg(T15, X34, T16, T14))
U4_GAGG(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → P8_IN_GAGG(T15, X34, T16, T14)

The TRS R consists of the following rules:

star1_in_gg(T3, []) → star1_out_gg(T3, [])
star1_in_gg(.(T4, T5), .(T4, T6)) → U6_gg(T4, T5, T6, app10_in_gag(T5, X11, T6))
app10_in_gag([], T8, T8) → app10_out_gag([], T8, T8)
app10_in_gag(.(T9, T10), X24, .(T9, T11)) → U1_gag(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
U1_gag(T9, T10, X24, T11, app10_out_gag(T10, X24, T11)) → app10_out_gag(.(T9, T10), X24, .(T9, T11))
U6_gg(T4, T5, T6, app10_out_gag(T5, X11, T6)) → star1_out_gg(.(T4, T5), .(T4, T6))
star1_in_gg(.(T12, T13), .(T12, [])) → U7_gg(T12, T13, app10_in_gag(T13, T7, []))
U7_gg(T12, T13, app10_out_gag(T13, T7, [])) → star1_out_gg(.(T12, T13), .(T12, []))
star1_in_gg(.(T14, T15), .(T14, .(T14, T16))) → U8_gg(T14, T15, T16, app10_in_gag(T15, T7, .(T14, T16)))
U8_gg(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → U9_gg(T14, T15, T16, p8_in_gagg(T15, X34, T16, T14))
p8_in_gagg(T5, X11, T6, T4) → U2_gagg(T5, X11, T6, T4, app10_in_gag(T5, X11, T6))
U2_gagg(T5, X11, T6, T4, app10_out_gag(T5, X11, T6)) → p8_out_gagg(T5, X11, T6, T4)
p8_in_gagg(T13, T7, [], T12) → U3_gagg(T13, T7, T12, app10_in_gag(T13, T7, []))
U3_gagg(T13, T7, T12, app10_out_gag(T13, T7, [])) → p8_out_gagg(T13, T7, [], T12)
p8_in_gagg(T15, T7, .(T14, T16), T14) → U4_gagg(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
U4_gagg(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → U5_gagg(T15, T7, T14, T16, p8_in_gagg(T15, X34, T16, T14))
U5_gagg(T15, T7, T14, T16, p8_out_gagg(T15, X34, T16, T14)) → p8_out_gagg(T15, T7, .(T14, T16), T14)
U9_gg(T14, T15, T16, p8_out_gagg(T15, X34, T16, T14)) → star1_out_gg(.(T14, T15), .(T14, .(T14, T16)))

The argument filtering Pi contains the following mapping:
star1_in_gg(x1, x2)  =  star1_in_gg(x1, x2)
[]  =  []
star1_out_gg(x1, x2)  =  star1_out_gg
.(x1, x2)  =  .(x1, x2)
U6_gg(x1, x2, x3, x4)  =  U6_gg(x4)
app10_in_gag(x1, x2, x3)  =  app10_in_gag(x1, x3)
app10_out_gag(x1, x2, x3)  =  app10_out_gag(x2)
U1_gag(x1, x2, x3, x4, x5)  =  U1_gag(x5)
U7_gg(x1, x2, x3)  =  U7_gg(x3)
U8_gg(x1, x2, x3, x4)  =  U8_gg(x1, x2, x3, x4)
U9_gg(x1, x2, x3, x4)  =  U9_gg(x4)
p8_in_gagg(x1, x2, x3, x4)  =  p8_in_gagg(x1, x3, x4)
U2_gagg(x1, x2, x3, x4, x5)  =  U2_gagg(x5)
p8_out_gagg(x1, x2, x3, x4)  =  p8_out_gagg(x2)
U3_gagg(x1, x2, x3, x4)  =  U3_gagg(x4)
U4_gagg(x1, x2, x3, x4, x5)  =  U4_gagg(x1, x3, x4, x5)
U5_gagg(x1, x2, x3, x4, x5)  =  U5_gagg(x2, x5)
STAR1_IN_GG(x1, x2)  =  STAR1_IN_GG(x1, x2)
U6_GG(x1, x2, x3, x4)  =  U6_GG(x4)
APP10_IN_GAG(x1, x2, x3)  =  APP10_IN_GAG(x1, x3)
U1_GAG(x1, x2, x3, x4, x5)  =  U1_GAG(x5)
U7_GG(x1, x2, x3)  =  U7_GG(x3)
U8_GG(x1, x2, x3, x4)  =  U8_GG(x1, x2, x3, x4)
U9_GG(x1, x2, x3, x4)  =  U9_GG(x4)
P8_IN_GAGG(x1, x2, x3, x4)  =  P8_IN_GAGG(x1, x3, x4)
U2_GAGG(x1, x2, x3, x4, x5)  =  U2_GAGG(x5)
U3_GAGG(x1, x2, x3, x4)  =  U3_GAGG(x4)
U4_GAGG(x1, x2, x3, x4, x5)  =  U4_GAGG(x1, x3, x4, x5)
U5_GAGG(x1, x2, x3, x4, x5)  =  U5_GAGG(x2, x5)

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

(6) Obligation:

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

STAR1_IN_GG(.(T4, T5), .(T4, T6)) → U6_GG(T4, T5, T6, app10_in_gag(T5, X11, T6))
STAR1_IN_GG(.(T4, T5), .(T4, T6)) → APP10_IN_GAG(T5, X11, T6)
APP10_IN_GAG(.(T9, T10), X24, .(T9, T11)) → U1_GAG(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
APP10_IN_GAG(.(T9, T10), X24, .(T9, T11)) → APP10_IN_GAG(T10, X24, T11)
STAR1_IN_GG(.(T12, T13), .(T12, [])) → U7_GG(T12, T13, app10_in_gag(T13, T7, []))
STAR1_IN_GG(.(T12, T13), .(T12, [])) → APP10_IN_GAG(T13, T7, [])
STAR1_IN_GG(.(T14, T15), .(T14, .(T14, T16))) → U8_GG(T14, T15, T16, app10_in_gag(T15, T7, .(T14, T16)))
STAR1_IN_GG(.(T14, T15), .(T14, .(T14, T16))) → APP10_IN_GAG(T15, T7, .(T14, T16))
U8_GG(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → U9_GG(T14, T15, T16, p8_in_gagg(T15, X34, T16, T14))
U8_GG(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → P8_IN_GAGG(T15, X34, T16, T14)
P8_IN_GAGG(T5, X11, T6, T4) → U2_GAGG(T5, X11, T6, T4, app10_in_gag(T5, X11, T6))
P8_IN_GAGG(T5, X11, T6, T4) → APP10_IN_GAG(T5, X11, T6)
P8_IN_GAGG(T13, T7, [], T12) → U3_GAGG(T13, T7, T12, app10_in_gag(T13, T7, []))
P8_IN_GAGG(T13, T7, [], T12) → APP10_IN_GAG(T13, T7, [])
P8_IN_GAGG(T15, T7, .(T14, T16), T14) → U4_GAGG(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
P8_IN_GAGG(T15, T7, .(T14, T16), T14) → APP10_IN_GAG(T15, T7, .(T14, T16))
U4_GAGG(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → U5_GAGG(T15, T7, T14, T16, p8_in_gagg(T15, X34, T16, T14))
U4_GAGG(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → P8_IN_GAGG(T15, X34, T16, T14)

The TRS R consists of the following rules:

star1_in_gg(T3, []) → star1_out_gg(T3, [])
star1_in_gg(.(T4, T5), .(T4, T6)) → U6_gg(T4, T5, T6, app10_in_gag(T5, X11, T6))
app10_in_gag([], T8, T8) → app10_out_gag([], T8, T8)
app10_in_gag(.(T9, T10), X24, .(T9, T11)) → U1_gag(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
U1_gag(T9, T10, X24, T11, app10_out_gag(T10, X24, T11)) → app10_out_gag(.(T9, T10), X24, .(T9, T11))
U6_gg(T4, T5, T6, app10_out_gag(T5, X11, T6)) → star1_out_gg(.(T4, T5), .(T4, T6))
star1_in_gg(.(T12, T13), .(T12, [])) → U7_gg(T12, T13, app10_in_gag(T13, T7, []))
U7_gg(T12, T13, app10_out_gag(T13, T7, [])) → star1_out_gg(.(T12, T13), .(T12, []))
star1_in_gg(.(T14, T15), .(T14, .(T14, T16))) → U8_gg(T14, T15, T16, app10_in_gag(T15, T7, .(T14, T16)))
U8_gg(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → U9_gg(T14, T15, T16, p8_in_gagg(T15, X34, T16, T14))
p8_in_gagg(T5, X11, T6, T4) → U2_gagg(T5, X11, T6, T4, app10_in_gag(T5, X11, T6))
U2_gagg(T5, X11, T6, T4, app10_out_gag(T5, X11, T6)) → p8_out_gagg(T5, X11, T6, T4)
p8_in_gagg(T13, T7, [], T12) → U3_gagg(T13, T7, T12, app10_in_gag(T13, T7, []))
U3_gagg(T13, T7, T12, app10_out_gag(T13, T7, [])) → p8_out_gagg(T13, T7, [], T12)
p8_in_gagg(T15, T7, .(T14, T16), T14) → U4_gagg(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
U4_gagg(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → U5_gagg(T15, T7, T14, T16, p8_in_gagg(T15, X34, T16, T14))
U5_gagg(T15, T7, T14, T16, p8_out_gagg(T15, X34, T16, T14)) → p8_out_gagg(T15, T7, .(T14, T16), T14)
U9_gg(T14, T15, T16, p8_out_gagg(T15, X34, T16, T14)) → star1_out_gg(.(T14, T15), .(T14, .(T14, T16)))

The argument filtering Pi contains the following mapping:
star1_in_gg(x1, x2)  =  star1_in_gg(x1, x2)
[]  =  []
star1_out_gg(x1, x2)  =  star1_out_gg
.(x1, x2)  =  .(x1, x2)
U6_gg(x1, x2, x3, x4)  =  U6_gg(x4)
app10_in_gag(x1, x2, x3)  =  app10_in_gag(x1, x3)
app10_out_gag(x1, x2, x3)  =  app10_out_gag(x2)
U1_gag(x1, x2, x3, x4, x5)  =  U1_gag(x5)
U7_gg(x1, x2, x3)  =  U7_gg(x3)
U8_gg(x1, x2, x3, x4)  =  U8_gg(x1, x2, x3, x4)
U9_gg(x1, x2, x3, x4)  =  U9_gg(x4)
p8_in_gagg(x1, x2, x3, x4)  =  p8_in_gagg(x1, x3, x4)
U2_gagg(x1, x2, x3, x4, x5)  =  U2_gagg(x5)
p8_out_gagg(x1, x2, x3, x4)  =  p8_out_gagg(x2)
U3_gagg(x1, x2, x3, x4)  =  U3_gagg(x4)
U4_gagg(x1, x2, x3, x4, x5)  =  U4_gagg(x1, x3, x4, x5)
U5_gagg(x1, x2, x3, x4, x5)  =  U5_gagg(x2, x5)
STAR1_IN_GG(x1, x2)  =  STAR1_IN_GG(x1, x2)
U6_GG(x1, x2, x3, x4)  =  U6_GG(x4)
APP10_IN_GAG(x1, x2, x3)  =  APP10_IN_GAG(x1, x3)
U1_GAG(x1, x2, x3, x4, x5)  =  U1_GAG(x5)
U7_GG(x1, x2, x3)  =  U7_GG(x3)
U8_GG(x1, x2, x3, x4)  =  U8_GG(x1, x2, x3, x4)
U9_GG(x1, x2, x3, x4)  =  U9_GG(x4)
P8_IN_GAGG(x1, x2, x3, x4)  =  P8_IN_GAGG(x1, x3, x4)
U2_GAGG(x1, x2, x3, x4, x5)  =  U2_GAGG(x5)
U3_GAGG(x1, x2, x3, x4)  =  U3_GAGG(x4)
U4_GAGG(x1, x2, x3, x4, x5)  =  U4_GAGG(x1, x3, x4, x5)
U5_GAGG(x1, x2, x3, x4, x5)  =  U5_GAGG(x2, 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 15 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

APP10_IN_GAG(.(T9, T10), X24, .(T9, T11)) → APP10_IN_GAG(T10, X24, T11)

The TRS R consists of the following rules:

star1_in_gg(T3, []) → star1_out_gg(T3, [])
star1_in_gg(.(T4, T5), .(T4, T6)) → U6_gg(T4, T5, T6, app10_in_gag(T5, X11, T6))
app10_in_gag([], T8, T8) → app10_out_gag([], T8, T8)
app10_in_gag(.(T9, T10), X24, .(T9, T11)) → U1_gag(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
U1_gag(T9, T10, X24, T11, app10_out_gag(T10, X24, T11)) → app10_out_gag(.(T9, T10), X24, .(T9, T11))
U6_gg(T4, T5, T6, app10_out_gag(T5, X11, T6)) → star1_out_gg(.(T4, T5), .(T4, T6))
star1_in_gg(.(T12, T13), .(T12, [])) → U7_gg(T12, T13, app10_in_gag(T13, T7, []))
U7_gg(T12, T13, app10_out_gag(T13, T7, [])) → star1_out_gg(.(T12, T13), .(T12, []))
star1_in_gg(.(T14, T15), .(T14, .(T14, T16))) → U8_gg(T14, T15, T16, app10_in_gag(T15, T7, .(T14, T16)))
U8_gg(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → U9_gg(T14, T15, T16, p8_in_gagg(T15, X34, T16, T14))
p8_in_gagg(T5, X11, T6, T4) → U2_gagg(T5, X11, T6, T4, app10_in_gag(T5, X11, T6))
U2_gagg(T5, X11, T6, T4, app10_out_gag(T5, X11, T6)) → p8_out_gagg(T5, X11, T6, T4)
p8_in_gagg(T13, T7, [], T12) → U3_gagg(T13, T7, T12, app10_in_gag(T13, T7, []))
U3_gagg(T13, T7, T12, app10_out_gag(T13, T7, [])) → p8_out_gagg(T13, T7, [], T12)
p8_in_gagg(T15, T7, .(T14, T16), T14) → U4_gagg(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
U4_gagg(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → U5_gagg(T15, T7, T14, T16, p8_in_gagg(T15, X34, T16, T14))
U5_gagg(T15, T7, T14, T16, p8_out_gagg(T15, X34, T16, T14)) → p8_out_gagg(T15, T7, .(T14, T16), T14)
U9_gg(T14, T15, T16, p8_out_gagg(T15, X34, T16, T14)) → star1_out_gg(.(T14, T15), .(T14, .(T14, T16)))

The argument filtering Pi contains the following mapping:
star1_in_gg(x1, x2)  =  star1_in_gg(x1, x2)
[]  =  []
star1_out_gg(x1, x2)  =  star1_out_gg
.(x1, x2)  =  .(x1, x2)
U6_gg(x1, x2, x3, x4)  =  U6_gg(x4)
app10_in_gag(x1, x2, x3)  =  app10_in_gag(x1, x3)
app10_out_gag(x1, x2, x3)  =  app10_out_gag(x2)
U1_gag(x1, x2, x3, x4, x5)  =  U1_gag(x5)
U7_gg(x1, x2, x3)  =  U7_gg(x3)
U8_gg(x1, x2, x3, x4)  =  U8_gg(x1, x2, x3, x4)
U9_gg(x1, x2, x3, x4)  =  U9_gg(x4)
p8_in_gagg(x1, x2, x3, x4)  =  p8_in_gagg(x1, x3, x4)
U2_gagg(x1, x2, x3, x4, x5)  =  U2_gagg(x5)
p8_out_gagg(x1, x2, x3, x4)  =  p8_out_gagg(x2)
U3_gagg(x1, x2, x3, x4)  =  U3_gagg(x4)
U4_gagg(x1, x2, x3, x4, x5)  =  U4_gagg(x1, x3, x4, x5)
U5_gagg(x1, x2, x3, x4, x5)  =  U5_gagg(x2, x5)
APP10_IN_GAG(x1, x2, x3)  =  APP10_IN_GAG(x1, x3)

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:

APP10_IN_GAG(.(T9, T10), X24, .(T9, T11)) → APP10_IN_GAG(T10, X24, T11)

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

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:

APP10_IN_GAG(.(T9, T10), .(T9, T11)) → APP10_IN_GAG(T10, T11)

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

(14) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • APP10_IN_GAG(.(T9, T10), .(T9, T11)) → APP10_IN_GAG(T10, T11)
    The graph contains the following edges 1 > 1, 2 > 2

(15) TRUE

(16) Obligation:

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

P8_IN_GAGG(T15, T7, .(T14, T16), T14) → U4_GAGG(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
U4_GAGG(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → P8_IN_GAGG(T15, X34, T16, T14)

The TRS R consists of the following rules:

star1_in_gg(T3, []) → star1_out_gg(T3, [])
star1_in_gg(.(T4, T5), .(T4, T6)) → U6_gg(T4, T5, T6, app10_in_gag(T5, X11, T6))
app10_in_gag([], T8, T8) → app10_out_gag([], T8, T8)
app10_in_gag(.(T9, T10), X24, .(T9, T11)) → U1_gag(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
U1_gag(T9, T10, X24, T11, app10_out_gag(T10, X24, T11)) → app10_out_gag(.(T9, T10), X24, .(T9, T11))
U6_gg(T4, T5, T6, app10_out_gag(T5, X11, T6)) → star1_out_gg(.(T4, T5), .(T4, T6))
star1_in_gg(.(T12, T13), .(T12, [])) → U7_gg(T12, T13, app10_in_gag(T13, T7, []))
U7_gg(T12, T13, app10_out_gag(T13, T7, [])) → star1_out_gg(.(T12, T13), .(T12, []))
star1_in_gg(.(T14, T15), .(T14, .(T14, T16))) → U8_gg(T14, T15, T16, app10_in_gag(T15, T7, .(T14, T16)))
U8_gg(T14, T15, T16, app10_out_gag(T15, T7, .(T14, T16))) → U9_gg(T14, T15, T16, p8_in_gagg(T15, X34, T16, T14))
p8_in_gagg(T5, X11, T6, T4) → U2_gagg(T5, X11, T6, T4, app10_in_gag(T5, X11, T6))
U2_gagg(T5, X11, T6, T4, app10_out_gag(T5, X11, T6)) → p8_out_gagg(T5, X11, T6, T4)
p8_in_gagg(T13, T7, [], T12) → U3_gagg(T13, T7, T12, app10_in_gag(T13, T7, []))
U3_gagg(T13, T7, T12, app10_out_gag(T13, T7, [])) → p8_out_gagg(T13, T7, [], T12)
p8_in_gagg(T15, T7, .(T14, T16), T14) → U4_gagg(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
U4_gagg(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → U5_gagg(T15, T7, T14, T16, p8_in_gagg(T15, X34, T16, T14))
U5_gagg(T15, T7, T14, T16, p8_out_gagg(T15, X34, T16, T14)) → p8_out_gagg(T15, T7, .(T14, T16), T14)
U9_gg(T14, T15, T16, p8_out_gagg(T15, X34, T16, T14)) → star1_out_gg(.(T14, T15), .(T14, .(T14, T16)))

The argument filtering Pi contains the following mapping:
star1_in_gg(x1, x2)  =  star1_in_gg(x1, x2)
[]  =  []
star1_out_gg(x1, x2)  =  star1_out_gg
.(x1, x2)  =  .(x1, x2)
U6_gg(x1, x2, x3, x4)  =  U6_gg(x4)
app10_in_gag(x1, x2, x3)  =  app10_in_gag(x1, x3)
app10_out_gag(x1, x2, x3)  =  app10_out_gag(x2)
U1_gag(x1, x2, x3, x4, x5)  =  U1_gag(x5)
U7_gg(x1, x2, x3)  =  U7_gg(x3)
U8_gg(x1, x2, x3, x4)  =  U8_gg(x1, x2, x3, x4)
U9_gg(x1, x2, x3, x4)  =  U9_gg(x4)
p8_in_gagg(x1, x2, x3, x4)  =  p8_in_gagg(x1, x3, x4)
U2_gagg(x1, x2, x3, x4, x5)  =  U2_gagg(x5)
p8_out_gagg(x1, x2, x3, x4)  =  p8_out_gagg(x2)
U3_gagg(x1, x2, x3, x4)  =  U3_gagg(x4)
U4_gagg(x1, x2, x3, x4, x5)  =  U4_gagg(x1, x3, x4, x5)
U5_gagg(x1, x2, x3, x4, x5)  =  U5_gagg(x2, x5)
P8_IN_GAGG(x1, x2, x3, x4)  =  P8_IN_GAGG(x1, x3, x4)
U4_GAGG(x1, x2, x3, x4, x5)  =  U4_GAGG(x1, x3, x4, 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:

P8_IN_GAGG(T15, T7, .(T14, T16), T14) → U4_GAGG(T15, T7, T14, T16, app10_in_gag(T15, T7, .(T14, T16)))
U4_GAGG(T15, T7, T14, T16, app10_out_gag(T15, T7, .(T14, T16))) → P8_IN_GAGG(T15, X34, T16, T14)

The TRS R consists of the following rules:

app10_in_gag([], T8, T8) → app10_out_gag([], T8, T8)
app10_in_gag(.(T9, T10), X24, .(T9, T11)) → U1_gag(T9, T10, X24, T11, app10_in_gag(T10, X24, T11))
U1_gag(T9, T10, X24, T11, app10_out_gag(T10, X24, T11)) → app10_out_gag(.(T9, T10), X24, .(T9, T11))

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
app10_in_gag(x1, x2, x3)  =  app10_in_gag(x1, x3)
app10_out_gag(x1, x2, x3)  =  app10_out_gag(x2)
U1_gag(x1, x2, x3, x4, x5)  =  U1_gag(x5)
P8_IN_GAGG(x1, x2, x3, x4)  =  P8_IN_GAGG(x1, x3, x4)
U4_GAGG(x1, x2, x3, x4, x5)  =  U4_GAGG(x1, x3, x4, 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:

P8_IN_GAGG(T15, .(T14, T16), T14) → U4_GAGG(T15, T14, T16, app10_in_gag(T15, .(T14, T16)))
U4_GAGG(T15, T14, T16, app10_out_gag(T7)) → P8_IN_GAGG(T15, T16, T14)

The TRS R consists of the following rules:

app10_in_gag([], T8) → app10_out_gag(T8)
app10_in_gag(.(T9, T10), .(T9, T11)) → U1_gag(app10_in_gag(T10, T11))
U1_gag(app10_out_gag(X24)) → app10_out_gag(X24)

The set Q consists of the following terms:

app10_in_gag(x0, x1)
U1_gag(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:

  • U4_GAGG(T15, T14, T16, app10_out_gag(T7)) → P8_IN_GAGG(T15, T16, T14)
    The graph contains the following edges 1 >= 1, 3 >= 2, 2 >= 3

  • P8_IN_GAGG(T15, .(T14, T16), T14) → U4_GAGG(T15, T14, T16, app10_in_gag(T15, .(T14, T16)))
    The graph contains the following edges 1 >= 1, 2 > 2, 3 >= 2, 2 > 3

(22) TRUE