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 PrologToPiTRSProof (⇐)
↳27 PiTRS
↳28 DependencyPairsProof (⇔)
↳29 PiDP
↳30 DependencyGraphProof (⇔)
↳31 AND
↳32 PiDP
↳33 UsableRulesProof (⇔)
↳34 PiDP
↳35 PiDPToQDPProof (⇐)
↳36 QDP
↳37 QDPSizeChangeProof (⇔)
↳38 TRUE
↳39 PiDP
↳40 UsableRulesProof (⇔)
↳41 PiDP
↳42 PiDPToQDPProof (⇐)
↳43 QDP
↳44 QDPSizeChangeProof (⇔)
↳45 TRUE
↳46 PiDP
↳47 UsableRulesProof (⇔)
↳48 PiDP
↳49 PiDPToQDPProof (⇐)
↳50 QDP
↳51 MRRProof (⇔)
↳52 QDP
↳53 PisEmptyProof (⇔)
↳54 TRUE
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_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([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP_IN_AAG(X1s, .(X, X2s), Xs)
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U4_AAG(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → APP_IN_GGA(X1s, X2s, Zs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP_IN_AAG(X1s, .(X, X2s), Xs)
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U4_AAG(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → APP_IN_GGA(X1s, X2s, Zs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
APP_IN_GGA(.(Xs), Ys) → APP_IN_GGA(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
APP_IN_AAG(.(Zs)) → APP_IN_AAG(Zs)
From the DPs we obtained the following set of size-change graphs:
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_GA(Xs, app_out_aag(X1s, .(X2s), Xs)) → U2_GA(Xs, app_in_gga(X1s, X2s))
U2_GA(Xs, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs)
PERM_IN_GA(Xs) → U1_GA(Xs, app_in_aag(Xs))
app_in_gga([], X) → app_out_gga([], X, X)
app_in_gga(.(Xs), Ys) → U4_gga(Xs, Ys, app_in_gga(Xs, Ys))
app_in_aag(X) → app_out_aag([], X, X)
app_in_aag(.(Zs)) → U4_aag(Zs, app_in_aag(Zs))
U4_gga(Xs, Ys, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(Xs), Ys, .(Zs))
U4_aag(Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(Xs), Ys, .(Zs))
app_in_gga(x0, x1)
app_in_aag(x0)
U4_gga(x0, x1, x2)
U4_aag(x0, x1)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_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([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP_IN_AAG(X1s, .(X, X2s), Xs)
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U4_AAG(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → APP_IN_GGA(X1s, X2s, Zs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP_IN_AAG(X1s, .(X, X2s), Xs)
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U4_AAG(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → APP_IN_GGA(X1s, X2s, Zs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
APP_IN_GGA(.(Xs), Ys) → APP_IN_GGA(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
APP_IN_AAG(.(Zs)) → APP_IN_AAG(Zs)
From the DPs we obtained the following set of size-change graphs:
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_GA(app_out_aag(X1s, .(X2s))) → U2_GA(app_in_gga(X1s, X2s))
U2_GA(app_out_gga(Zs)) → PERM_IN_GA(Zs)
PERM_IN_GA(Xs) → U1_GA(app_in_aag(Xs))
app_in_gga([], X) → app_out_gga(X)
app_in_gga(.(Xs), Ys) → U4_gga(app_in_gga(Xs, Ys))
app_in_aag(X) → app_out_aag([], X)
app_in_aag(.(Zs)) → U4_aag(app_in_aag(Zs))
U4_gga(app_out_gga(Zs)) → app_out_gga(.(Zs))
U4_aag(app_out_aag(Xs, Ys)) → app_out_aag(.(Xs), Ys)
app_in_gga(x0, x1)
app_in_aag(x0)
U4_gga(x0)
U4_aag(x0)
U1_GA(app_out_aag(X1s, .(X2s))) → U2_GA(app_in_gga(X1s, X2s))
U2_GA(app_out_gga(Zs)) → PERM_IN_GA(Zs)
PERM_IN_GA(Xs) → U1_GA(app_in_aag(Xs))
app_in_gga([], X) → app_out_gga(X)
app_in_aag(X) → app_out_aag([], X)
POL(.(x1)) = 5 + x1
POL(PERM_IN_GA(x1)) = 2 + x1
POL(U1_GA(x1)) = x1
POL(U2_GA(x1)) = x1
POL(U4_aag(x1)) = 5 + x1
POL(U4_gga(x1)) = 5 + x1
POL([]) = 0
POL(app_in_aag(x1)) = 1 + x1
POL(app_in_gga(x1, x2)) = 4 + x1 + x2
POL(app_out_aag(x1, x2)) = x1 + x2
POL(app_out_gga(x1)) = 3 + x1
app_in_gga(.(Xs), Ys) → U4_gga(app_in_gga(Xs, Ys))
app_in_aag(.(Zs)) → U4_aag(app_in_aag(Zs))
U4_gga(app_out_gga(Zs)) → app_out_gga(.(Zs))
U4_aag(app_out_aag(Xs, Ys)) → app_out_aag(.(Xs), Ys)
app_in_gga(x0, x1)
app_in_aag(x0)
U4_gga(x0)
U4_aag(x0)