(0) Obligation:

Clauses:

app3_a(Xs, Ys, Zs, Us) :- ','(app(Xs, Ys, Vs), app(Vs, Zs, Us)).
app3_b(Xs, Ys, Zs, Us) :- ','(app(Ys, Zs, Vs), app(Xs, Vs, Us)).
app([], Ys, Ys).
app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).

Query: app3_b(g,g,g,a)

(1) PrologToPiTRSViaGraphTransformerProof (SOUND transformation)

Transformed Prolog program to (Pi-)TRS.

(2) Obligation:

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

app3_bA_in_ggga(T9, [], T18, T13) → U1_ggga(T9, T18, T13, appB_in_gga(T9, T18, T13))
appB_in_gga([], T25, T25) → appB_out_gga([], T25, T25)
appB_in_gga(.(T34, T35), T36, .(T34, T38)) → U3_gga(T34, T35, T36, T38, appB_in_gga(T35, T36, T38))
U3_gga(T34, T35, T36, T38, appB_out_gga(T35, T36, T38)) → appB_out_gga(.(T34, T35), T36, .(T34, T38))
U1_ggga(T9, T18, T13, appB_out_gga(T9, T18, T13)) → app3_bA_out_ggga(T9, [], T18, T13)
app3_bA_in_ggga(T9, .(T47, T48), T49, T13) → U2_ggga(T9, T47, T48, T49, T13, pC_in_ggagga(T48, T49, X50, T9, T47, T13))
pC_in_ggagga(T48, T49, T52, T9, T47, T13) → U5_ggagga(T48, T49, T52, T9, T47, T13, appD_in_gga(T48, T49, T52))
appD_in_gga([], T59, T59) → appD_out_gga([], T59, T59)
appD_in_gga(.(T66, T67), T68, .(T66, X74)) → U4_gga(T66, T67, T68, X74, appD_in_gga(T67, T68, X74))
U4_gga(T66, T67, T68, X74, appD_out_gga(T67, T68, X74)) → appD_out_gga(.(T66, T67), T68, .(T66, X74))
U5_ggagga(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → U6_ggagga(T48, T49, T52, T9, T47, T13, appB_in_gga(T9, .(T47, T52), T13))
U6_ggagga(T48, T49, T52, T9, T47, T13, appB_out_gga(T9, .(T47, T52), T13)) → pC_out_ggagga(T48, T49, T52, T9, T47, T13)
U2_ggga(T9, T47, T48, T49, T13, pC_out_ggagga(T48, T49, X50, T9, T47, T13)) → app3_bA_out_ggga(T9, .(T47, T48), T49, T13)

The argument filtering Pi contains the following mapping:
app3_bA_in_ggga(x1, x2, x3, x4)  =  app3_bA_in_ggga(x1, x2, x3)
[]  =  []
U1_ggga(x1, x2, x3, x4)  =  U1_ggga(x1, x2, x4)
appB_in_gga(x1, x2, x3)  =  appB_in_gga(x1, x2)
appB_out_gga(x1, x2, x3)  =  appB_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
app3_bA_out_ggga(x1, x2, x3, x4)  =  app3_bA_out_ggga(x1, x2, x3, x4)
U2_ggga(x1, x2, x3, x4, x5, x6)  =  U2_ggga(x1, x2, x3, x4, x6)
pC_in_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_in_ggagga(x1, x2, x4, x5)
U5_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U5_ggagga(x1, x2, x4, x5, x7)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U6_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U6_ggagga(x1, x2, x3, x4, x5, x7)
pC_out_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_out_ggagga(x1, x2, x3, x4, x5, x6)

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

APP3_BA_IN_GGGA(T9, [], T18, T13) → U1_GGGA(T9, T18, T13, appB_in_gga(T9, T18, T13))
APP3_BA_IN_GGGA(T9, [], T18, T13) → APPB_IN_GGA(T9, T18, T13)
APPB_IN_GGA(.(T34, T35), T36, .(T34, T38)) → U3_GGA(T34, T35, T36, T38, appB_in_gga(T35, T36, T38))
APPB_IN_GGA(.(T34, T35), T36, .(T34, T38)) → APPB_IN_GGA(T35, T36, T38)
APP3_BA_IN_GGGA(T9, .(T47, T48), T49, T13) → U2_GGGA(T9, T47, T48, T49, T13, pC_in_ggagga(T48, T49, X50, T9, T47, T13))
APP3_BA_IN_GGGA(T9, .(T47, T48), T49, T13) → PC_IN_GGAGGA(T48, T49, X50, T9, T47, T13)
PC_IN_GGAGGA(T48, T49, T52, T9, T47, T13) → U5_GGAGGA(T48, T49, T52, T9, T47, T13, appD_in_gga(T48, T49, T52))
PC_IN_GGAGGA(T48, T49, T52, T9, T47, T13) → APPD_IN_GGA(T48, T49, T52)
APPD_IN_GGA(.(T66, T67), T68, .(T66, X74)) → U4_GGA(T66, T67, T68, X74, appD_in_gga(T67, T68, X74))
APPD_IN_GGA(.(T66, T67), T68, .(T66, X74)) → APPD_IN_GGA(T67, T68, X74)
U5_GGAGGA(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → U6_GGAGGA(T48, T49, T52, T9, T47, T13, appB_in_gga(T9, .(T47, T52), T13))
U5_GGAGGA(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → APPB_IN_GGA(T9, .(T47, T52), T13)

The TRS R consists of the following rules:

app3_bA_in_ggga(T9, [], T18, T13) → U1_ggga(T9, T18, T13, appB_in_gga(T9, T18, T13))
appB_in_gga([], T25, T25) → appB_out_gga([], T25, T25)
appB_in_gga(.(T34, T35), T36, .(T34, T38)) → U3_gga(T34, T35, T36, T38, appB_in_gga(T35, T36, T38))
U3_gga(T34, T35, T36, T38, appB_out_gga(T35, T36, T38)) → appB_out_gga(.(T34, T35), T36, .(T34, T38))
U1_ggga(T9, T18, T13, appB_out_gga(T9, T18, T13)) → app3_bA_out_ggga(T9, [], T18, T13)
app3_bA_in_ggga(T9, .(T47, T48), T49, T13) → U2_ggga(T9, T47, T48, T49, T13, pC_in_ggagga(T48, T49, X50, T9, T47, T13))
pC_in_ggagga(T48, T49, T52, T9, T47, T13) → U5_ggagga(T48, T49, T52, T9, T47, T13, appD_in_gga(T48, T49, T52))
appD_in_gga([], T59, T59) → appD_out_gga([], T59, T59)
appD_in_gga(.(T66, T67), T68, .(T66, X74)) → U4_gga(T66, T67, T68, X74, appD_in_gga(T67, T68, X74))
U4_gga(T66, T67, T68, X74, appD_out_gga(T67, T68, X74)) → appD_out_gga(.(T66, T67), T68, .(T66, X74))
U5_ggagga(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → U6_ggagga(T48, T49, T52, T9, T47, T13, appB_in_gga(T9, .(T47, T52), T13))
U6_ggagga(T48, T49, T52, T9, T47, T13, appB_out_gga(T9, .(T47, T52), T13)) → pC_out_ggagga(T48, T49, T52, T9, T47, T13)
U2_ggga(T9, T47, T48, T49, T13, pC_out_ggagga(T48, T49, X50, T9, T47, T13)) → app3_bA_out_ggga(T9, .(T47, T48), T49, T13)

The argument filtering Pi contains the following mapping:
app3_bA_in_ggga(x1, x2, x3, x4)  =  app3_bA_in_ggga(x1, x2, x3)
[]  =  []
U1_ggga(x1, x2, x3, x4)  =  U1_ggga(x1, x2, x4)
appB_in_gga(x1, x2, x3)  =  appB_in_gga(x1, x2)
appB_out_gga(x1, x2, x3)  =  appB_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
app3_bA_out_ggga(x1, x2, x3, x4)  =  app3_bA_out_ggga(x1, x2, x3, x4)
U2_ggga(x1, x2, x3, x4, x5, x6)  =  U2_ggga(x1, x2, x3, x4, x6)
pC_in_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_in_ggagga(x1, x2, x4, x5)
U5_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U5_ggagga(x1, x2, x4, x5, x7)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U6_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U6_ggagga(x1, x2, x3, x4, x5, x7)
pC_out_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_out_ggagga(x1, x2, x3, x4, x5, x6)
APP3_BA_IN_GGGA(x1, x2, x3, x4)  =  APP3_BA_IN_GGGA(x1, x2, x3)
U1_GGGA(x1, x2, x3, x4)  =  U1_GGGA(x1, x2, x4)
APPB_IN_GGA(x1, x2, x3)  =  APPB_IN_GGA(x1, x2)
U3_GGA(x1, x2, x3, x4, x5)  =  U3_GGA(x1, x2, x3, x5)
U2_GGGA(x1, x2, x3, x4, x5, x6)  =  U2_GGGA(x1, x2, x3, x4, x6)
PC_IN_GGAGGA(x1, x2, x3, x4, x5, x6)  =  PC_IN_GGAGGA(x1, x2, x4, x5)
U5_GGAGGA(x1, x2, x3, x4, x5, x6, x7)  =  U5_GGAGGA(x1, x2, x4, x5, x7)
APPD_IN_GGA(x1, x2, x3)  =  APPD_IN_GGA(x1, x2)
U4_GGA(x1, x2, x3, x4, x5)  =  U4_GGA(x1, x2, x3, x5)
U6_GGAGGA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GGAGGA(x1, x2, x3, x4, x5, x7)

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

(4) Obligation:

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

APP3_BA_IN_GGGA(T9, [], T18, T13) → U1_GGGA(T9, T18, T13, appB_in_gga(T9, T18, T13))
APP3_BA_IN_GGGA(T9, [], T18, T13) → APPB_IN_GGA(T9, T18, T13)
APPB_IN_GGA(.(T34, T35), T36, .(T34, T38)) → U3_GGA(T34, T35, T36, T38, appB_in_gga(T35, T36, T38))
APPB_IN_GGA(.(T34, T35), T36, .(T34, T38)) → APPB_IN_GGA(T35, T36, T38)
APP3_BA_IN_GGGA(T9, .(T47, T48), T49, T13) → U2_GGGA(T9, T47, T48, T49, T13, pC_in_ggagga(T48, T49, X50, T9, T47, T13))
APP3_BA_IN_GGGA(T9, .(T47, T48), T49, T13) → PC_IN_GGAGGA(T48, T49, X50, T9, T47, T13)
PC_IN_GGAGGA(T48, T49, T52, T9, T47, T13) → U5_GGAGGA(T48, T49, T52, T9, T47, T13, appD_in_gga(T48, T49, T52))
PC_IN_GGAGGA(T48, T49, T52, T9, T47, T13) → APPD_IN_GGA(T48, T49, T52)
APPD_IN_GGA(.(T66, T67), T68, .(T66, X74)) → U4_GGA(T66, T67, T68, X74, appD_in_gga(T67, T68, X74))
APPD_IN_GGA(.(T66, T67), T68, .(T66, X74)) → APPD_IN_GGA(T67, T68, X74)
U5_GGAGGA(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → U6_GGAGGA(T48, T49, T52, T9, T47, T13, appB_in_gga(T9, .(T47, T52), T13))
U5_GGAGGA(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → APPB_IN_GGA(T9, .(T47, T52), T13)

The TRS R consists of the following rules:

app3_bA_in_ggga(T9, [], T18, T13) → U1_ggga(T9, T18, T13, appB_in_gga(T9, T18, T13))
appB_in_gga([], T25, T25) → appB_out_gga([], T25, T25)
appB_in_gga(.(T34, T35), T36, .(T34, T38)) → U3_gga(T34, T35, T36, T38, appB_in_gga(T35, T36, T38))
U3_gga(T34, T35, T36, T38, appB_out_gga(T35, T36, T38)) → appB_out_gga(.(T34, T35), T36, .(T34, T38))
U1_ggga(T9, T18, T13, appB_out_gga(T9, T18, T13)) → app3_bA_out_ggga(T9, [], T18, T13)
app3_bA_in_ggga(T9, .(T47, T48), T49, T13) → U2_ggga(T9, T47, T48, T49, T13, pC_in_ggagga(T48, T49, X50, T9, T47, T13))
pC_in_ggagga(T48, T49, T52, T9, T47, T13) → U5_ggagga(T48, T49, T52, T9, T47, T13, appD_in_gga(T48, T49, T52))
appD_in_gga([], T59, T59) → appD_out_gga([], T59, T59)
appD_in_gga(.(T66, T67), T68, .(T66, X74)) → U4_gga(T66, T67, T68, X74, appD_in_gga(T67, T68, X74))
U4_gga(T66, T67, T68, X74, appD_out_gga(T67, T68, X74)) → appD_out_gga(.(T66, T67), T68, .(T66, X74))
U5_ggagga(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → U6_ggagga(T48, T49, T52, T9, T47, T13, appB_in_gga(T9, .(T47, T52), T13))
U6_ggagga(T48, T49, T52, T9, T47, T13, appB_out_gga(T9, .(T47, T52), T13)) → pC_out_ggagga(T48, T49, T52, T9, T47, T13)
U2_ggga(T9, T47, T48, T49, T13, pC_out_ggagga(T48, T49, X50, T9, T47, T13)) → app3_bA_out_ggga(T9, .(T47, T48), T49, T13)

The argument filtering Pi contains the following mapping:
app3_bA_in_ggga(x1, x2, x3, x4)  =  app3_bA_in_ggga(x1, x2, x3)
[]  =  []
U1_ggga(x1, x2, x3, x4)  =  U1_ggga(x1, x2, x4)
appB_in_gga(x1, x2, x3)  =  appB_in_gga(x1, x2)
appB_out_gga(x1, x2, x3)  =  appB_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
app3_bA_out_ggga(x1, x2, x3, x4)  =  app3_bA_out_ggga(x1, x2, x3, x4)
U2_ggga(x1, x2, x3, x4, x5, x6)  =  U2_ggga(x1, x2, x3, x4, x6)
pC_in_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_in_ggagga(x1, x2, x4, x5)
U5_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U5_ggagga(x1, x2, x4, x5, x7)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U6_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U6_ggagga(x1, x2, x3, x4, x5, x7)
pC_out_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_out_ggagga(x1, x2, x3, x4, x5, x6)
APP3_BA_IN_GGGA(x1, x2, x3, x4)  =  APP3_BA_IN_GGGA(x1, x2, x3)
U1_GGGA(x1, x2, x3, x4)  =  U1_GGGA(x1, x2, x4)
APPB_IN_GGA(x1, x2, x3)  =  APPB_IN_GGA(x1, x2)
U3_GGA(x1, x2, x3, x4, x5)  =  U3_GGA(x1, x2, x3, x5)
U2_GGGA(x1, x2, x3, x4, x5, x6)  =  U2_GGGA(x1, x2, x3, x4, x6)
PC_IN_GGAGGA(x1, x2, x3, x4, x5, x6)  =  PC_IN_GGAGGA(x1, x2, x4, x5)
U5_GGAGGA(x1, x2, x3, x4, x5, x6, x7)  =  U5_GGAGGA(x1, x2, x4, x5, x7)
APPD_IN_GGA(x1, x2, x3)  =  APPD_IN_GGA(x1, x2)
U4_GGA(x1, x2, x3, x4, x5)  =  U4_GGA(x1, x2, x3, x5)
U6_GGAGGA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GGAGGA(x1, x2, x3, x4, x5, x7)

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

(5) DependencyGraphProof (EQUIVALENT transformation)

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

(6) Complex Obligation (AND)

(7) Obligation:

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

APPD_IN_GGA(.(T66, T67), T68, .(T66, X74)) → APPD_IN_GGA(T67, T68, X74)

The TRS R consists of the following rules:

app3_bA_in_ggga(T9, [], T18, T13) → U1_ggga(T9, T18, T13, appB_in_gga(T9, T18, T13))
appB_in_gga([], T25, T25) → appB_out_gga([], T25, T25)
appB_in_gga(.(T34, T35), T36, .(T34, T38)) → U3_gga(T34, T35, T36, T38, appB_in_gga(T35, T36, T38))
U3_gga(T34, T35, T36, T38, appB_out_gga(T35, T36, T38)) → appB_out_gga(.(T34, T35), T36, .(T34, T38))
U1_ggga(T9, T18, T13, appB_out_gga(T9, T18, T13)) → app3_bA_out_ggga(T9, [], T18, T13)
app3_bA_in_ggga(T9, .(T47, T48), T49, T13) → U2_ggga(T9, T47, T48, T49, T13, pC_in_ggagga(T48, T49, X50, T9, T47, T13))
pC_in_ggagga(T48, T49, T52, T9, T47, T13) → U5_ggagga(T48, T49, T52, T9, T47, T13, appD_in_gga(T48, T49, T52))
appD_in_gga([], T59, T59) → appD_out_gga([], T59, T59)
appD_in_gga(.(T66, T67), T68, .(T66, X74)) → U4_gga(T66, T67, T68, X74, appD_in_gga(T67, T68, X74))
U4_gga(T66, T67, T68, X74, appD_out_gga(T67, T68, X74)) → appD_out_gga(.(T66, T67), T68, .(T66, X74))
U5_ggagga(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → U6_ggagga(T48, T49, T52, T9, T47, T13, appB_in_gga(T9, .(T47, T52), T13))
U6_ggagga(T48, T49, T52, T9, T47, T13, appB_out_gga(T9, .(T47, T52), T13)) → pC_out_ggagga(T48, T49, T52, T9, T47, T13)
U2_ggga(T9, T47, T48, T49, T13, pC_out_ggagga(T48, T49, X50, T9, T47, T13)) → app3_bA_out_ggga(T9, .(T47, T48), T49, T13)

The argument filtering Pi contains the following mapping:
app3_bA_in_ggga(x1, x2, x3, x4)  =  app3_bA_in_ggga(x1, x2, x3)
[]  =  []
U1_ggga(x1, x2, x3, x4)  =  U1_ggga(x1, x2, x4)
appB_in_gga(x1, x2, x3)  =  appB_in_gga(x1, x2)
appB_out_gga(x1, x2, x3)  =  appB_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
app3_bA_out_ggga(x1, x2, x3, x4)  =  app3_bA_out_ggga(x1, x2, x3, x4)
U2_ggga(x1, x2, x3, x4, x5, x6)  =  U2_ggga(x1, x2, x3, x4, x6)
pC_in_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_in_ggagga(x1, x2, x4, x5)
U5_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U5_ggagga(x1, x2, x4, x5, x7)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U6_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U6_ggagga(x1, x2, x3, x4, x5, x7)
pC_out_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_out_ggagga(x1, x2, x3, x4, x5, x6)
APPD_IN_GGA(x1, x2, x3)  =  APPD_IN_GGA(x1, x2)

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

(8) UsableRulesProof (EQUIVALENT transformation)

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

(9) Obligation:

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

APPD_IN_GGA(.(T66, T67), T68, .(T66, X74)) → APPD_IN_GGA(T67, T68, X74)

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

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

(10) PiDPToQDPProof (SOUND transformation)

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

(11) Obligation:

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

APPD_IN_GGA(.(T66, T67), T68) → APPD_IN_GGA(T67, T68)

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

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

  • APPD_IN_GGA(.(T66, T67), T68) → APPD_IN_GGA(T67, T68)
    The graph contains the following edges 1 > 1, 2 >= 2

(13) YES

(14) Obligation:

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

APPB_IN_GGA(.(T34, T35), T36, .(T34, T38)) → APPB_IN_GGA(T35, T36, T38)

The TRS R consists of the following rules:

app3_bA_in_ggga(T9, [], T18, T13) → U1_ggga(T9, T18, T13, appB_in_gga(T9, T18, T13))
appB_in_gga([], T25, T25) → appB_out_gga([], T25, T25)
appB_in_gga(.(T34, T35), T36, .(T34, T38)) → U3_gga(T34, T35, T36, T38, appB_in_gga(T35, T36, T38))
U3_gga(T34, T35, T36, T38, appB_out_gga(T35, T36, T38)) → appB_out_gga(.(T34, T35), T36, .(T34, T38))
U1_ggga(T9, T18, T13, appB_out_gga(T9, T18, T13)) → app3_bA_out_ggga(T9, [], T18, T13)
app3_bA_in_ggga(T9, .(T47, T48), T49, T13) → U2_ggga(T9, T47, T48, T49, T13, pC_in_ggagga(T48, T49, X50, T9, T47, T13))
pC_in_ggagga(T48, T49, T52, T9, T47, T13) → U5_ggagga(T48, T49, T52, T9, T47, T13, appD_in_gga(T48, T49, T52))
appD_in_gga([], T59, T59) → appD_out_gga([], T59, T59)
appD_in_gga(.(T66, T67), T68, .(T66, X74)) → U4_gga(T66, T67, T68, X74, appD_in_gga(T67, T68, X74))
U4_gga(T66, T67, T68, X74, appD_out_gga(T67, T68, X74)) → appD_out_gga(.(T66, T67), T68, .(T66, X74))
U5_ggagga(T48, T49, T52, T9, T47, T13, appD_out_gga(T48, T49, T52)) → U6_ggagga(T48, T49, T52, T9, T47, T13, appB_in_gga(T9, .(T47, T52), T13))
U6_ggagga(T48, T49, T52, T9, T47, T13, appB_out_gga(T9, .(T47, T52), T13)) → pC_out_ggagga(T48, T49, T52, T9, T47, T13)
U2_ggga(T9, T47, T48, T49, T13, pC_out_ggagga(T48, T49, X50, T9, T47, T13)) → app3_bA_out_ggga(T9, .(T47, T48), T49, T13)

The argument filtering Pi contains the following mapping:
app3_bA_in_ggga(x1, x2, x3, x4)  =  app3_bA_in_ggga(x1, x2, x3)
[]  =  []
U1_ggga(x1, x2, x3, x4)  =  U1_ggga(x1, x2, x4)
appB_in_gga(x1, x2, x3)  =  appB_in_gga(x1, x2)
appB_out_gga(x1, x2, x3)  =  appB_out_gga(x1, x2, x3)
.(x1, x2)  =  .(x1, x2)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
app3_bA_out_ggga(x1, x2, x3, x4)  =  app3_bA_out_ggga(x1, x2, x3, x4)
U2_ggga(x1, x2, x3, x4, x5, x6)  =  U2_ggga(x1, x2, x3, x4, x6)
pC_in_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_in_ggagga(x1, x2, x4, x5)
U5_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U5_ggagga(x1, x2, x4, x5, x7)
appD_in_gga(x1, x2, x3)  =  appD_in_gga(x1, x2)
appD_out_gga(x1, x2, x3)  =  appD_out_gga(x1, x2, x3)
U4_gga(x1, x2, x3, x4, x5)  =  U4_gga(x1, x2, x3, x5)
U6_ggagga(x1, x2, x3, x4, x5, x6, x7)  =  U6_ggagga(x1, x2, x3, x4, x5, x7)
pC_out_ggagga(x1, x2, x3, x4, x5, x6)  =  pC_out_ggagga(x1, x2, x3, x4, x5, x6)
APPB_IN_GGA(x1, x2, x3)  =  APPB_IN_GGA(x1, x2)

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

(15) UsableRulesProof (EQUIVALENT transformation)

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

(16) Obligation:

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

APPB_IN_GGA(.(T34, T35), T36, .(T34, T38)) → APPB_IN_GGA(T35, T36, T38)

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

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

(17) PiDPToQDPProof (SOUND transformation)

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

(18) Obligation:

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

APPB_IN_GGA(.(T34, T35), T36) → APPB_IN_GGA(T35, T36)

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

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

  • APPB_IN_GGA(.(T34, T35), T36) → APPB_IN_GGA(T35, T36)
    The graph contains the following edges 1 > 1, 2 >= 2

(20) YES