0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 QDPSizeChangeProof (⇔)
↳20 TRUE
↳21 PiDP
↳22 UsableRulesProof (⇔)
↳23 PiDP
↳24 PiDPToQDPProof (⇐)
↳25 QDP
↳26 MRRProof (⇔)
↳27 QDP
↳28 PisEmptyProof (⇔)
↳29 TRUE
↳30 PrologToPiTRSProof (⇐)
↳31 PiTRS
↳32 DependencyPairsProof (⇔)
↳33 PiDP
↳34 DependencyGraphProof (⇔)
↳35 AND
↳36 PiDP
↳37 UsableRulesProof (⇔)
↳38 PiDP
↳39 PiDPToQDPProof (⇐)
↳40 QDP
↳41 QDPSizeChangeProof (⇔)
↳42 TRUE
↳43 PiDP
↳44 UsableRulesProof (⇔)
↳45 PiDP
↳46 PiDPToQDPProof (⇐)
↳47 QDP
↳48 QDPSizeChangeProof (⇔)
↳49 TRUE
↳50 PiDP
↳51 UsableRulesProof (⇔)
↳52 PiDP
↳53 PiDPToQDPProof (⇐)
↳54 QDP
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP2_IN_AAG(X1s, .(X, X2s), Xs)
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U2_AAG(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → APP1_IN_GGA(X1s, X2s, Zs)
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U1_GGA(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP2_IN_AAG(X1s, .(X, X2s), Xs)
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U2_AAG(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → APP1_IN_GGA(X1s, X2s, Zs)
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U1_GGA(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
APP1_IN_GGA(.(Xs), Ys) → APP1_IN_GGA(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
APP2_IN_AAG(.(Zs)) → APP2_IN_AAG(Zs)
From the DPs we obtained the following set of size-change graphs:
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_GA(app2_out_aag(X1s, .(X2s))) → U4_GA(app1_in_gga(X1s, X2s))
U4_GA(app1_out_gga(Zs)) → PERM_IN_GA(Zs)
PERM_IN_GA(Xs) → U3_GA(app2_in_aag(Xs))
app1_in_gga(.(Xs), Ys) → U1_gga(app1_in_gga(Xs, Ys))
app1_in_gga([], Ys) → app1_out_gga(Ys)
app2_in_aag(.(Zs)) → U2_aag(app2_in_aag(Zs))
app2_in_aag(Ys) → app2_out_aag([], Ys)
U1_gga(app1_out_gga(Zs)) → app1_out_gga(.(Zs))
U2_aag(app2_out_aag(Xs, Ys)) → app2_out_aag(.(Xs), Ys)
app1_in_gga(x0, x1)
app2_in_aag(x0)
U1_gga(x0)
U2_aag(x0)
U3_GA(app2_out_aag(X1s, .(X2s))) → U4_GA(app1_in_gga(X1s, X2s))
U4_GA(app1_out_gga(Zs)) → PERM_IN_GA(Zs)
PERM_IN_GA(Xs) → U3_GA(app2_in_aag(Xs))
app1_in_gga([], Ys) → app1_out_gga(Ys)
app2_in_aag(Ys) → app2_out_aag([], Ys)
POL(.(x1)) = 5 + x1
POL(PERM_IN_GA(x1)) = 2 + x1
POL(U1_gga(x1)) = 5 + x1
POL(U2_aag(x1)) = 5 + x1
POL(U3_GA(x1)) = x1
POL(U4_GA(x1)) = x1
POL([]) = 0
POL(app1_in_gga(x1, x2)) = 4 + x1 + x2
POL(app1_out_gga(x1)) = 3 + x1
POL(app2_in_aag(x1)) = 1 + x1
POL(app2_out_aag(x1, x2)) = x1 + x2
app1_in_gga(.(Xs), Ys) → U1_gga(app1_in_gga(Xs, Ys))
app2_in_aag(.(Zs)) → U2_aag(app2_in_aag(Zs))
U1_gga(app1_out_gga(Zs)) → app1_out_gga(.(Zs))
U2_aag(app2_out_aag(Xs, Ys)) → app2_out_aag(.(Xs), Ys)
app1_in_gga(x0, x1)
app2_in_aag(x0)
U1_gga(x0)
U2_aag(x0)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP2_IN_AAG(X1s, .(X, X2s), Xs)
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U2_AAG(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → APP1_IN_GGA(X1s, X2s, Zs)
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U1_GGA(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP2_IN_AAG(X1s, .(X, X2s), Xs)
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U2_AAG(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → APP1_IN_GGA(X1s, X2s, Zs)
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U1_GGA(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
APP1_IN_GGA(.(Xs), Ys) → APP1_IN_GGA(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
APP2_IN_AAG(.(Zs)) → APP2_IN_AAG(Zs)
From the DPs we obtained the following set of size-change graphs:
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_GA(Xs, app2_out_aag(X1s, .(X2s), Xs)) → U4_GA(Xs, app1_in_gga(X1s, X2s))
U4_GA(Xs, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs)
PERM_IN_GA(Xs) → U3_GA(Xs, app2_in_aag(Xs))
app1_in_gga(.(Xs), Ys) → U1_gga(Xs, Ys, app1_in_gga(Xs, Ys))
app1_in_gga([], Ys) → app1_out_gga([], Ys, Ys)
app2_in_aag(.(Zs)) → U2_aag(Zs, app2_in_aag(Zs))
app2_in_aag(Ys) → app2_out_aag([], Ys, Ys)
U1_gga(Xs, Ys, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(Xs), Ys, .(Zs))
U2_aag(Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(Xs), Ys, .(Zs))
app1_in_gga(x0, x1)
app2_in_aag(x0)
U1_gga(x0, x1, x2)
U2_aag(x0, x1)